增加商品详情的案例查询;删除部分技术债务

This commit is contained in:
2022-08-16 16:32:40 +08:00
parent 3661ff357f
commit 31f2be73d4
4 changed files with 144 additions and 7 deletions

View File

@@ -10,6 +10,7 @@ define(["jquery", "easy-admin"], function ($, ea) {
export_url: 'mall.goods/export',
modify_url: 'mall.goods/modify',
stock_url: 'mall.goods/stock',
read_url: 'mall.goods/read',
};
var Controller = {
@@ -65,7 +66,14 @@ define(["jquery", "easy-admin"], function ($, ea) {
method: 'open',
auth: 'stock',
class: 'layui-btn layui-btn-xs layui-btn-normal',
}],
}, {
text: '详情',
url: init.read_url,
method: 'open',
auth: 'edit',
extend: 'data-full="true"',
class: 'layui-btn layui-btn-xs layui-btn-primary',
},],
'delete']
}
]],
@@ -82,6 +90,9 @@ define(["jquery", "easy-admin"], function ($, ea) {
stock: function () {
ea.listen();
},
read: function () {
ea.listen();
},
};
return Controller;
});