From 40e24ffdfc95c186bccc24c2bc99a0ffcfec73e3 Mon Sep 17 00:00:00 2001 From: zc <zc> Date: 星期一, 29 七月 2024 10:48:21 +0800 Subject: [PATCH] 订单组托代码 --- src/main/webapp/static/js/role/role.js | 19 ++++++++++--------- 1 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/main/webapp/static/js/role/role.js b/src/main/webapp/static/js/role/role.js index 119e7f2..3bdce29 100644 --- a/src/main/webapp/static/js/role/role.js +++ b/src/main/webapp/static/js/role/role.js @@ -10,7 +10,7 @@ if (res.code === 200){ powerTreeData = res.data; } else if (res.code === 403){ - top.location.href = baseUrl; + top.location.href = baseUrl+"/"; } else { layer.msg(res.msg) } @@ -32,6 +32,7 @@ url: baseUrl+'/role/list/auth', page: true, limit: 16, + limits: [16, 30, 50, 100, 200, 500], toolbar: '#toolbar', cellMinWidth: 50, cols: [[ @@ -39,7 +40,7 @@ ,{field: 'id', title: 'ID', sort: true,align: 'center', fixed: 'left', width: 80} ,{field: 'code', align: 'center',title: '缂栫爜'} ,{field: 'name', align: 'center',title: '鍚嶇О'} - ,{field: 'leader$', align: 'center',title: '涓婄骇',event: 'leader', style: 'text-decoration: underline;cursor:pointer'} + ,{field: 'leader$', align: 'center',title: '涓婄骇'} // ,{field: 'level$', align: 'center',title: '瑙掕壊绛夌骇'} ,{fixed: 'right', title:'鎿嶄綔', align: 'center', toolbar: '#operate', width:150} @@ -61,7 +62,7 @@ }, done: function(res, curr, count) { if (res.code === 403) { - top.location.href = baseUrl; + top.location.href = baseUrl+"/"; } pageCurr=curr; limit(); @@ -83,7 +84,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = baseUrl; + top.location.href = baseUrl+"/"; } pageCurr=curr; limit(); @@ -138,7 +139,7 @@ layer.closeAll(); tableReload(false); } else if (res.code === 403){ - top.location.href = baseUrl; + top.location.href = baseUrl+"/"; } else { layer.msg(res.msg) } @@ -148,7 +149,7 @@ } break; case 'exportData': - layer.confirm('纭畾瀵煎嚭Excel鍚�', function(){ + layer.confirm('纭畾瀵煎嚭Excel鍚�', {shadeClose: true}, function(){ var titles=[]; var fields=[]; obj.config.cols[0].map(function (col) { @@ -177,7 +178,7 @@ if (res.code === 200) { table.exportFile(titles,res.data,'xls'); } else if (res.code === 403) { - top.location.href = baseUrl; + top.location.href = baseUrl+"/"; } else { layer.msg(res.msg) } @@ -304,7 +305,7 @@ $(this).val(""); }); } else if (res.code === 403){ - top.location.href = baseUrl; + top.location.href = baseUrl+"/"; }else { layer.msg(res.msg) } @@ -348,7 +349,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = baseUrl; + top.location.href = baseUrl+"/"; } pageCurr=curr; if (res.data.length === 0 && count !== 0) { -- Gitblit v1.9.1