完成layui table点击行选中优化

This commit is contained in:
yubaolee
2025-03-07 09:53:41 +08:00
parent 12d327ddac
commit 4e6287808b
9 changed files with 17 additions and 12 deletions

View File

@@ -62,6 +62,9 @@ layui.config({
}
});
}
clickTableRow(table,'mainList', 'list', function (obj) {
menuList({moduleId: obj.data.Id});
});
//菜单列表
var menucon = {}; //table的参数如搜索key点击tree的id
var menuList = function (options) {
@@ -212,11 +215,6 @@ layui.config({
};
}();
clickTableRow(table,'mainList', 'list');
//监听行单击事件
table.on('row(list)', function (obj) {
menuList({moduleId: obj.data.Id});
});
//监听页面主按钮操作
var active = {