mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 21:03:26 +08:00
【优化】优化后台门店列表管理左侧列表展示的数据。
This commit is contained in:
@@ -121,6 +121,7 @@
|
||||
method: 'Post',
|
||||
page: true,
|
||||
height: 'full-175',
|
||||
limit: 20,
|
||||
toolbar: ['<p>',
|
||||
'<button lay-event="add" class="layui-btn layui-btn-sm icon-btn"><i class="layui-icon"></i>添加</button> ',
|
||||
'<button lay-event="edit" class="layui-btn layui-btn-sm layui-btn-warm icon-btn"><i class="layui-icon"></i>修改</button> ',
|
||||
@@ -129,7 +130,18 @@
|
||||
defaultToolbar: [],
|
||||
cols: [[
|
||||
{ type: 'numbers' },
|
||||
{ field: 'storeName', title: '门店名称' }
|
||||
{ field: 'id', title: '序列', width: 60 },
|
||||
{ field: 'storeName', title: '门店名称' },
|
||||
{
|
||||
field: 'isDefault', title: '是否默认', width: 80, sort: true, templet: function (d) {
|
||||
if (d.isDefault) {
|
||||
return '<button type="button" class="layui-btn layui-btn-xs ">是</button>';
|
||||
} else {
|
||||
return '<button type="button" class="layui-btn layui-btn-xs layui-btn-disabled">否</button>'
|
||||
}
|
||||
|
||||
}
|
||||
},
|
||||
]],
|
||||
done: function (res, curr, count) {
|
||||
$('#storeTable+.layui-table-view .layui-table-body tbody>tr:first').trigger('click');
|
||||
|
||||
Reference in New Issue
Block a user