...
|
...
|
@@ -186,6 +186,7 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', ' |
|
|
|
|
|
//不带分页的列表
|
|
|
function renderTableList(resType) {
|
|
|
|
|
|
//渲染表格
|
|
|
var resTableList;
|
|
|
//获取配置的列
|
...
|
...
|
@@ -194,6 +195,7 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', ' |
|
|
moduleId: 'resIndex',
|
|
|
resType: resType
|
|
|
},function (retCols) {
|
|
|
|
|
|
var cols;
|
|
|
if (retCols) {
|
|
|
cols = retCols;
|
...
|
...
|
@@ -1101,6 +1103,7 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', ' |
|
|
, limits: [150, 200, 300]
|
|
|
, cols: [cols]
|
|
|
, done: function (res, curr, count) {
|
|
|
|
|
|
soulTable.render(this)
|
|
|
|
|
|
//调用收藏方法
|
...
|
...
|
@@ -1109,7 +1112,7 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', ' |
|
|
|
|
|
commonCols.colsClickEvent(editFlag);
|
|
|
|
|
|
loadRightResTypeSelectEvent(curTreeNode.id, "normal", res.obj);
|
|
|
loadRightResTypeSelectEvent(curTreeNode.id?curTreeNode.id: curTreeNode.data.id, "normal", res.obj);
|
|
|
|
|
|
//表格排序监听 joke add 20200408
|
|
|
table.on('sort(resListTable)', function (obj) {
|
...
|
...
|
@@ -1397,6 +1400,7 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', ' |
|
|
}
|
|
|
//加载右侧资源类型下拉框
|
|
|
function loadRightResTypeSelectEvent(resType, type, obj) {
|
|
|
|
|
|
layer.closeAll('tips');
|
|
|
var str = '';
|
|
|
var domStr = 'resListContent'
|
...
|
...
|
|