category selection in both add and edit pages of the mall goods module. - Modify the corresponding JS file to support the new category display format. - Refactor controller code to assign categories using a more efficient method. - Ensure consistent category data processing across all related views. Note: This change updates the way categories are presented to the admin user, enhancing usability and maintainability of the goods management system.
14 lines
528 B
PHP
14 lines
528 B
PHP
<div class="layuimini-container">
|
|
<div class="layuimini-main">
|
|
<table id="currentTable" class="layui-table layui-hide"
|
|
data-auth-add="{:auth('mall.goods/add')}"
|
|
data-auth-edit="{:auth('mall.goods/edit')}"
|
|
data-auth-delete="{:auth('mall.goods/delete')}"
|
|
data-auth-stock="{:auth('mall.goods/stock')}"
|
|
lay-filter="currentTable">
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<script>
|
|
let cateSelects=JSON.parse('{$cate|json_encode=256|raw}')
|
|
</script> |