Commit 84981e41 by gongyang

提交代码

parent a6004906
Showing with 2 additions and 3 deletions
...@@ -30,9 +30,8 @@ layui.use(['jquery','element', 'layer', 'form','table','laypage','laydate','laye ...@@ -30,9 +30,8 @@ layui.use(['jquery','element', 'layer', 'form','table','laypage','laydate','laye
url: '/msgapi/systemUpdateList', url: '/msgapi/systemUpdateList',
page: true, page: true,
limit: 20, limit: 20,
id:'table',
cols: [[ //表头 cols: [[ //表头
{ type: 'checkbox', width: 50, align: 'center', fixed: 'left' }, {type: 'checkbox', width: 50, align: 'center', fixed: 'left' },
{field: 'smue_id', title: '序号',align:'center',width:100}, {field: 'smue_id', title: '序号',align:'center',width:100},
{field: 'update_time', title: '更新日期',align:'center',width:150}, {field: 'update_time', title: '更新日期',align:'center',width:150},
{field: 'system_name', title: '更新系统',align:'center',width:150}, {field: 'system_name', title: '更新系统',align:'center',width:150},
...@@ -71,7 +70,7 @@ layui.use(['jquery','element', 'layer', 'form','table','laypage','laydate','laye ...@@ -71,7 +70,7 @@ layui.use(['jquery','element', 'layer', 'form','table','laypage','laydate','laye
// 获取选中数据 // 获取选中数据
var checkStatus = table.checkStatus('systemUpdateList'); var checkStatus = table.checkStatus('systemUpdateList');
console.log('选中的数据:', checkStatus.data); console.log('选中的数据:', checkStatus.data.length);
alert(1); alert(1);
if(checkStatus.data.length === 0){ if(checkStatus.data.length === 0){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment