From 57ff43d744685f77b6509c69716c82b5c2073f2e Mon Sep 17 00:00:00 2001 From: vincent <1341870251@qq.com> Date: 星期一, 25 五月 2020 11:12:56 +0800 Subject: [PATCH] # --- src/main/webapp/static/js/basWhs/basWhs.js | 12 src/main/webapp/static/js/rowLastno/rowLastno.js | 12 src/main/webapp/static/js/basCrnError/basCrnError.js | 12 src/main/webapp/views/wrkMast/wrkDetl.html | 2 src/main/webapp/static/js/report/locMap.js | 2 src/main/webapp/views/home/console.html | 4 src/main/webapp/static/js/basDevp/basDevp.js | 12 src/main/webapp/static/js/operateLog/operateLog.js | 12 src/main/webapp/static/js/wrkMast/wrkMast.js | 18 +- src/main/webapp/static/js/stoMan/stoQue.js | 10 src/main/webapp/static/js/basLocType/basLocType.js | 12 src/main/webapp/static/js/permission/permission.js | 12 src/main/webapp/static/js/resource/resource.js | 12 src/main/webapp/static/js/report/workOut.js | 8 src/main/webapp/static/js/wrkMastLog/wrkMastLog.js | 12 src/main/webapp/static/js/config/config.js | 12 src/main/webapp/static/js/common.js | 2 src/main/webapp/static/js/user/user.js | 12 src/main/webapp/static/js/wrkLastno/wrkLastno.js | 12 src/main/webapp/static/js/wrkDetl/wrkDetl.js | 12 src/main/webapp/static/js/report/stayTime.js | 8 src/main/webapp/static/js/report/reportStockUse.js | 8 src/main/webapp/views/report/locDetl.html | 2 src/main/webapp/static/js/stkPlcm/stkPlcm.js | 12 src/main/webapp/static/js/basCrnStatus/basCrnStatus.js | 12 src/main/webapp/static/js/report/workIn.js | 8 src/main/webapp/static/js/host/host.js | 12 src/main/webapp/static/js/role/role.js | 14 +- src/main/webapp/static/js/staDesc/staDesc.js | 12 src/main/webapp/static/js/cool.js | 4 src/main/webapp/static/js/api/api.js | 12 src/main/webapp/static/js/locDetl/locDetl.js | 12 src/main/webapp/static/js/basCrnp/basCrnp.js | 12 src/main/webapp/views/password.html | 6 src/main/webapp/static/js/basWrkIotype/basWrkIotype.js | 12 src/main/webapp/views/detail.html | 4 src/main/webapp/static/js/report/inOut.js | 8 src/main/webapp/static/js/userLogin/userLogin.js | 12 src/main/webapp/static/js/role/rolePower.js | 4 src/main/webapp/static/js/locMast/locMast.js | 12 src/main/webapp/static/js/basWrkStatus/basWrkStatus.js | 12 41 files changed, 200 insertions(+), 200 deletions(-) diff --git a/src/main/webapp/static/js/api/api.js b/src/main/webapp/static/js/api/api.js index f832180..cff3fb7 100644 --- a/src/main/webapp/static/js/api/api.js +++ b/src/main/webapp/static/js/api/api.js @@ -45,7 +45,7 @@ }, done: function(res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; limit(); @@ -67,7 +67,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; limit(); @@ -122,7 +122,7 @@ layer.closeAll(); tableReload(false); } else if (res.code === 403){ - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg) } @@ -161,7 +161,7 @@ if (res.code === 200) { table.exportFile(titles,res.data,'xls'); } else if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg) } @@ -244,7 +244,7 @@ $(this).val(""); }); } else if (res.code === 403){ - top.location.href = "/"; + top.location.href = baseUrl; }else { layer.msg(res.msg) } @@ -295,7 +295,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; if (res.data.length === 0 && count !== 0) { diff --git a/src/main/webapp/static/js/basCrnError/basCrnError.js b/src/main/webapp/static/js/basCrnError/basCrnError.js index d96ba73..18a836f 100644 --- a/src/main/webapp/static/js/basCrnError/basCrnError.js +++ b/src/main/webapp/static/js/basCrnError/basCrnError.js @@ -45,7 +45,7 @@ }, done: function(res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; limit(); @@ -75,7 +75,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; limit(); @@ -128,7 +128,7 @@ layer.closeAll(); tableReload(false); } else if (res.code === 403){ - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg) } @@ -167,7 +167,7 @@ if (res.code === 200) { table.exportFile(titles,res.data,'xls'); } else if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg) } @@ -339,7 +339,7 @@ $(this).val(""); }); } else if (res.code === 403){ - top.location.href = "/"; + top.location.href = baseUrl; }else { layer.msg(res.msg) } @@ -401,7 +401,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; if (res.data.length === 0 && count !== 0) { diff --git a/src/main/webapp/static/js/basCrnStatus/basCrnStatus.js b/src/main/webapp/static/js/basCrnStatus/basCrnStatus.js index 0a00217..1660f43 100644 --- a/src/main/webapp/static/js/basCrnStatus/basCrnStatus.js +++ b/src/main/webapp/static/js/basCrnStatus/basCrnStatus.js @@ -45,7 +45,7 @@ }, done: function(res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; limit(); @@ -75,7 +75,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; limit(); @@ -127,7 +127,7 @@ layer.closeAll(); tableReload(false); } else if (res.code === 403){ - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg) } @@ -166,7 +166,7 @@ if (res.code === 200) { table.exportFile(titles,res.data,'xls'); } else if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg) } @@ -338,7 +338,7 @@ $(this).val(""); }); } else if (res.code === 403){ - top.location.href = "/"; + top.location.href = baseUrl; }else { layer.msg(res.msg) } @@ -400,7 +400,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; if (res.data.length === 0 && count !== 0) { diff --git a/src/main/webapp/static/js/basCrnp/basCrnp.js b/src/main/webapp/static/js/basCrnp/basCrnp.js index 862e2fb..b6dd4d2 100644 --- a/src/main/webapp/static/js/basCrnp/basCrnp.js +++ b/src/main/webapp/static/js/basCrnp/basCrnp.js @@ -70,7 +70,7 @@ }, done: function(res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; limit(); @@ -100,7 +100,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; limit(); @@ -153,7 +153,7 @@ layer.closeAll(); tableReload(false); } else if (res.code === 403){ - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg) } @@ -192,7 +192,7 @@ if (res.code === 200) { table.exportFile(titles,res.data,'xls'); } else if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg) } @@ -597,7 +597,7 @@ $(this).val(""); }); } else if (res.code === 403){ - top.location.href = "/"; + top.location.href = baseUrl; }else { layer.msg(res.msg) } @@ -659,7 +659,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; if (res.data.length === 0 && count !== 0) { diff --git a/src/main/webapp/static/js/basDevp/basDevp.js b/src/main/webapp/static/js/basDevp/basDevp.js index 4bacea1..ec5bfde 100644 --- a/src/main/webapp/static/js/basDevp/basDevp.js +++ b/src/main/webapp/static/js/basDevp/basDevp.js @@ -113,7 +113,7 @@ }, done: function(res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; limit(); @@ -143,7 +143,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; limit(); @@ -196,7 +196,7 @@ layer.closeAll(); tableReload(false); } else if (res.code === 403){ - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg) } @@ -235,7 +235,7 @@ if (res.code === 200) { table.exportFile(titles,res.data,'xls'); } else if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg) } @@ -436,7 +436,7 @@ $(this).val(""); }); } else if (res.code === 403){ - top.location.href = "/"; + top.location.href = baseUrl; }else { layer.msg(res.msg) } @@ -502,7 +502,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; if (res.data.length === 0 && count !== 0) { diff --git a/src/main/webapp/static/js/basLocType/basLocType.js b/src/main/webapp/static/js/basLocType/basLocType.js index 3ca66ba..227cc31 100644 --- a/src/main/webapp/static/js/basLocType/basLocType.js +++ b/src/main/webapp/static/js/basLocType/basLocType.js @@ -45,7 +45,7 @@ }, done: function(res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; limit(); @@ -67,7 +67,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; limit(); @@ -119,7 +119,7 @@ layer.closeAll(); tableReload(false); } else if (res.code === 403){ - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg) } @@ -158,7 +158,7 @@ if (res.code === 200) { table.exportFile(titles,res.data,'xls'); } else if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg) } @@ -327,7 +327,7 @@ $(this).val(""); }); } else if (res.code === 403){ - top.location.href = "/"; + top.location.href = baseUrl; }else { layer.msg(res.msg) } @@ -379,7 +379,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; if (res.data.length === 0 && count !== 0) { diff --git a/src/main/webapp/static/js/basWhs/basWhs.js b/src/main/webapp/static/js/basWhs/basWhs.js index c231279..ddb3e16 100644 --- a/src/main/webapp/static/js/basWhs/basWhs.js +++ b/src/main/webapp/static/js/basWhs/basWhs.js @@ -44,7 +44,7 @@ }, done: function(res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; limit(); @@ -74,7 +74,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; limit(); @@ -127,7 +127,7 @@ layer.closeAll(); tableReload(false); } else if (res.code === 403){ - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg) } @@ -166,7 +166,7 @@ if (res.code === 200) { table.exportFile(titles,res.data,'xls'); } else if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg) } @@ -339,7 +339,7 @@ $(this).val(""); }); } else if (res.code === 403){ - top.location.href = "/"; + top.location.href = baseUrl; }else { layer.msg(res.msg) } @@ -401,7 +401,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; if (res.data.length === 0 && count !== 0) { diff --git a/src/main/webapp/static/js/basWrkIotype/basWrkIotype.js b/src/main/webapp/static/js/basWrkIotype/basWrkIotype.js index 47f1fee..e16eeaa 100644 --- a/src/main/webapp/static/js/basWrkIotype/basWrkIotype.js +++ b/src/main/webapp/static/js/basWrkIotype/basWrkIotype.js @@ -47,7 +47,7 @@ }, done: function(res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; limit(); @@ -69,7 +69,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; limit(); @@ -121,7 +121,7 @@ layer.closeAll(); tableReload(false); } else if (res.code === 403){ - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg) } @@ -160,7 +160,7 @@ if (res.code === 200) { table.exportFile(titles,res.data,'xls'); } else if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg) } @@ -330,7 +330,7 @@ $(this).val(""); }); } else if (res.code === 403){ - top.location.href = "/"; + top.location.href = baseUrl; }else { layer.msg(res.msg) } @@ -382,7 +382,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; if (res.data.length === 0 && count !== 0) { diff --git a/src/main/webapp/static/js/basWrkStatus/basWrkStatus.js b/src/main/webapp/static/js/basWrkStatus/basWrkStatus.js index e328a3c..6220b30 100644 --- a/src/main/webapp/static/js/basWrkStatus/basWrkStatus.js +++ b/src/main/webapp/static/js/basWrkStatus/basWrkStatus.js @@ -45,7 +45,7 @@ }, done: function(res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; limit(); @@ -67,7 +67,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; limit(); @@ -119,7 +119,7 @@ layer.closeAll(); tableReload(false); } else if (res.code === 403){ - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg) } @@ -158,7 +158,7 @@ if (res.code === 200) { table.exportFile(titles,res.data,'xls'); } else if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg) } @@ -327,7 +327,7 @@ $(this).val(""); }); } else if (res.code === 403){ - top.location.href = "/"; + top.location.href = baseUrl; }else { layer.msg(res.msg) } @@ -379,7 +379,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; if (res.data.length === 0 && count !== 0) { diff --git a/src/main/webapp/static/js/common.js b/src/main/webapp/static/js/common.js index 3ddfc83..e06cccb 100644 --- a/src/main/webapp/static/js/common.js +++ b/src/main/webapp/static/js/common.js @@ -76,7 +76,7 @@ (child?parent:window).$('.'+res.data[i].code).css("display", "inline-block"); } } else if (res.code === 403){ - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg) } diff --git a/src/main/webapp/static/js/config/config.js b/src/main/webapp/static/js/config/config.js index 96de135..2f1a8f7 100644 --- a/src/main/webapp/static/js/config/config.js +++ b/src/main/webapp/static/js/config/config.js @@ -43,7 +43,7 @@ }, done: function(res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; limit(); @@ -65,7 +65,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; limit(); @@ -120,7 +120,7 @@ layer.closeAll(); tableReload(false); } else if (res.code === 403){ - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg) } @@ -159,7 +159,7 @@ if (res.code === 200) { table.exportFile(titles,res.data,'xls'); } else if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg) } @@ -240,7 +240,7 @@ $(this).val(""); }); } else if (res.code === 403){ - top.location.href = "/"; + top.location.href = baseUrl; }else { layer.msg(res.msg) } @@ -283,7 +283,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; if (res.data.length === 0 && count !== 0) { diff --git a/src/main/webapp/static/js/cool.js b/src/main/webapp/static/js/cool.js index ff51540..bbc4def 100644 --- a/src/main/webapp/static/js/cool.js +++ b/src/main/webapp/static/js/cool.js @@ -53,7 +53,7 @@ } selectDom.style.display='block'; } else if (res.code === 403){ - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg) } @@ -126,7 +126,7 @@ layer.close(tips); banMsg = null; } else if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } else if (res.code === 407) { banMsg = res.data + "涓嶅彲鐢�"; tips = layer.tips( diff --git a/src/main/webapp/static/js/host/host.js b/src/main/webapp/static/js/host/host.js index 6b22d7d..02d2e76 100644 --- a/src/main/webapp/static/js/host/host.js +++ b/src/main/webapp/static/js/host/host.js @@ -43,7 +43,7 @@ }, done: function(res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; limit(); @@ -65,7 +65,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; limit(); @@ -120,7 +120,7 @@ layer.closeAll(); tableReload(false); } else if (res.code === 403){ - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg) } @@ -159,7 +159,7 @@ if (res.code === 200) { table.exportFile(titles,res.data,'xls'); } else if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg) } @@ -240,7 +240,7 @@ $(this).val(""); }); } else if (res.code === 403){ - top.location.href = "/"; + top.location.href = baseUrl; }else { layer.msg(res.msg) } @@ -291,7 +291,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; if (res.data.length === 0 && count !== 0) { diff --git a/src/main/webapp/static/js/locDetl/locDetl.js b/src/main/webapp/static/js/locDetl/locDetl.js index 87ce65e..55c1b12 100644 --- a/src/main/webapp/static/js/locDetl/locDetl.js +++ b/src/main/webapp/static/js/locDetl/locDetl.js @@ -53,7 +53,7 @@ }, done: function(res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; limit(); @@ -83,7 +83,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; limit(); @@ -135,7 +135,7 @@ layer.closeAll(); tableReload(false); } else if (res.code === 403){ - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg) } @@ -174,7 +174,7 @@ if (res.code === 200) { table.exportFile(titles,res.data,'xls'); } else if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg) } @@ -392,7 +392,7 @@ $(this).val(""); }); } else if (res.code === 403){ - top.location.href = "/"; + top.location.href = baseUrl; }else { layer.msg(res.msg) } @@ -454,7 +454,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; if (res.data.length === 0 && count !== 0) { diff --git a/src/main/webapp/static/js/locMast/locMast.js b/src/main/webapp/static/js/locMast/locMast.js index 9f4e1fc..d2165b7 100644 --- a/src/main/webapp/static/js/locMast/locMast.js +++ b/src/main/webapp/static/js/locMast/locMast.js @@ -72,7 +72,7 @@ }, done: function(res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; limit(); @@ -102,7 +102,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; limit(); @@ -154,7 +154,7 @@ layer.closeAll(); tableReload(false); } else if (res.code === 403){ - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg) } @@ -193,7 +193,7 @@ if (res.code === 200) { table.exportFile(titles,res.data,'xls'); } else if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg) } @@ -460,7 +460,7 @@ $(this).val(""); }); } else if (res.code === 403){ - top.location.href = "/"; + top.location.href = baseUrl; }else { layer.msg(res.msg) } @@ -534,7 +534,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; if (res.data.length === 0 && count !== 0) { diff --git a/src/main/webapp/static/js/operateLog/operateLog.js b/src/main/webapp/static/js/operateLog/operateLog.js index b456d05..14073f1 100644 --- a/src/main/webapp/static/js/operateLog/operateLog.js +++ b/src/main/webapp/static/js/operateLog/operateLog.js @@ -45,7 +45,7 @@ }, done: function(res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; limit(); @@ -77,7 +77,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; limit(); @@ -132,7 +132,7 @@ layer.closeAll(); tableReload(false); } else if (res.code === 403){ - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg) } @@ -171,7 +171,7 @@ if (res.code === 200) { table.exportFile(titles,res.data,'xls'); } else if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg) } @@ -288,7 +288,7 @@ $(this).val(""); }); } else if (res.code === 403){ - top.location.href = "/"; + top.location.href = baseUrl; }else { layer.msg(res.msg) } @@ -335,7 +335,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; if (res.data.length === 0 && count !== 0) { diff --git a/src/main/webapp/static/js/permission/permission.js b/src/main/webapp/static/js/permission/permission.js index fc5bffa..f0ed216 100644 --- a/src/main/webapp/static/js/permission/permission.js +++ b/src/main/webapp/static/js/permission/permission.js @@ -42,7 +42,7 @@ }, done: function(res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; limit(); @@ -64,7 +64,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; limit(); @@ -119,7 +119,7 @@ layer.closeAll(); tableReload(false); } else if (res.code === 403){ - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg) } @@ -158,7 +158,7 @@ if (res.code === 200) { table.exportFile(titles,res.data,'xls'); } else if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg) } @@ -273,7 +273,7 @@ $(this).val(""); }); } else if (res.code === 403){ - top.location.href = "/"; + top.location.href = baseUrl; }else { layer.msg(res.msg) } @@ -316,7 +316,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; if (res.data.length === 0 && count !== 0) { diff --git a/src/main/webapp/static/js/report/inOut.js b/src/main/webapp/static/js/report/inOut.js index add532f..8d09ea0 100644 --- a/src/main/webapp/static/js/report/inOut.js +++ b/src/main/webapp/static/js/report/inOut.js @@ -41,7 +41,7 @@ }, done: function(res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; limit(); @@ -63,7 +63,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; limit(); @@ -101,7 +101,7 @@ if (res.code === 200) { table.exportFile(titles,res.data,'xls'); } else if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg) } @@ -136,7 +136,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; if (res.data.length === 0 && count !== 0) { diff --git a/src/main/webapp/static/js/report/locMap.js b/src/main/webapp/static/js/report/locMap.js index 3a3e6e8..99c242c 100644 --- a/src/main/webapp/static/js/report/locMap.js +++ b/src/main/webapp/static/js/report/locMap.js @@ -18,7 +18,7 @@ var html = template(res.data); $('#locMap').html(html); } else if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg) } diff --git a/src/main/webapp/static/js/report/reportStockUse.js b/src/main/webapp/static/js/report/reportStockUse.js index a1b7eb1..badf8d7 100644 --- a/src/main/webapp/static/js/report/reportStockUse.js +++ b/src/main/webapp/static/js/report/reportStockUse.js @@ -44,7 +44,7 @@ }, done: function(res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; limit(); @@ -66,7 +66,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; limit(); @@ -103,7 +103,7 @@ if (res.code === 200) { table.exportFile(titles,res.data,'xls'); } else if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg) } @@ -133,7 +133,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; if (res.data.length === 0 && count !== 0) { diff --git a/src/main/webapp/static/js/report/stayTime.js b/src/main/webapp/static/js/report/stayTime.js index f78b8fa..b885d1d 100644 --- a/src/main/webapp/static/js/report/stayTime.js +++ b/src/main/webapp/static/js/report/stayTime.js @@ -49,7 +49,7 @@ }, done: function(res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; limit(); @@ -71,7 +71,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; limit(); @@ -108,7 +108,7 @@ if (res.code === 200) { table.exportFile(titles,res.data,'xls'); } else if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg) } @@ -143,7 +143,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; if (res.data.length === 0 && count !== 0) { diff --git a/src/main/webapp/static/js/report/workIn.js b/src/main/webapp/static/js/report/workIn.js index 5557b91..7b7e75c 100644 --- a/src/main/webapp/static/js/report/workIn.js +++ b/src/main/webapp/static/js/report/workIn.js @@ -50,7 +50,7 @@ }, done: function(res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; limit(); @@ -72,7 +72,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; limit(); @@ -110,7 +110,7 @@ if (res.code === 200) { table.exportFile(titles,res.data,'xls'); } else if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg) } @@ -145,7 +145,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; if (res.data.length === 0 && count !== 0) { diff --git a/src/main/webapp/static/js/report/workOut.js b/src/main/webapp/static/js/report/workOut.js index 21f8b24..89fea61 100644 --- a/src/main/webapp/static/js/report/workOut.js +++ b/src/main/webapp/static/js/report/workOut.js @@ -50,7 +50,7 @@ }, done: function(res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; limit(); @@ -72,7 +72,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; limit(); @@ -110,7 +110,7 @@ if (res.code === 200) { table.exportFile(titles,res.data,'xls'); } else if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg) } @@ -145,7 +145,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; if (res.data.length === 0 && count !== 0) { diff --git a/src/main/webapp/static/js/resource/resource.js b/src/main/webapp/static/js/resource/resource.js index f1cfbff..68b5d99 100644 --- a/src/main/webapp/static/js/resource/resource.js +++ b/src/main/webapp/static/js/resource/resource.js @@ -44,7 +44,7 @@ }, done: function(res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; limit(); @@ -66,7 +66,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; limit(); @@ -121,7 +121,7 @@ layer.closeAll(); tableReload(false); } else if (res.code === 403){ - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg) } @@ -160,7 +160,7 @@ if (res.code === 200) { table.exportFile(titles,res.data,'xls'); } else if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg) } @@ -277,7 +277,7 @@ $(this).val(""); }); } else if (res.code === 403){ - top.location.href = "/"; + top.location.href = baseUrl; }else { layer.msg(res.msg) } @@ -320,7 +320,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; if (res.data.length === 0 && count !== 0) { diff --git a/src/main/webapp/static/js/role/role.js b/src/main/webapp/static/js/role/role.js index 41563b2..119e7f2 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 = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg) } @@ -61,7 +61,7 @@ }, done: function(res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; limit(); @@ -83,7 +83,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; limit(); @@ -138,7 +138,7 @@ layer.closeAll(); tableReload(false); } else if (res.code === 403){ - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg) } @@ -177,7 +177,7 @@ if (res.code === 200) { table.exportFile(titles,res.data,'xls'); } else if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg) } @@ -304,7 +304,7 @@ $(this).val(""); }); } else if (res.code === 403){ - top.location.href = "/"; + top.location.href = baseUrl; }else { layer.msg(res.msg) } @@ -348,7 +348,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; if (res.data.length === 0 && count !== 0) { diff --git a/src/main/webapp/static/js/role/rolePower.js b/src/main/webapp/static/js/role/rolePower.js index 7689621..ac4c0e9 100644 --- a/src/main/webapp/static/js/role/rolePower.js +++ b/src/main/webapp/static/js/role/rolePower.js @@ -24,7 +24,7 @@ if (res.code === 200){ tree.setChecked('powerTree', res.data); } else if (res.code === 403){ - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg) } @@ -63,7 +63,7 @@ if (res.code === 200){ parent.layer.closeAll(); } else if (res.code === 403){ - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg) } diff --git a/src/main/webapp/static/js/rowLastno/rowLastno.js b/src/main/webapp/static/js/rowLastno/rowLastno.js index 7119e25..c0265d5 100644 --- a/src/main/webapp/static/js/rowLastno/rowLastno.js +++ b/src/main/webapp/static/js/rowLastno/rowLastno.js @@ -48,7 +48,7 @@ }, done: function(res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; limit(); @@ -78,7 +78,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; limit(); @@ -130,7 +130,7 @@ layer.closeAll(); tableReload(false); } else if (res.code === 403){ - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg) } @@ -169,7 +169,7 @@ if (res.code === 200) { table.exportFile(titles,res.data,'xls'); } else if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg) } @@ -347,7 +347,7 @@ $(this).val(""); }); } else if (res.code === 403){ - top.location.href = "/"; + top.location.href = baseUrl; }else { layer.msg(res.msg) } @@ -409,7 +409,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; if (res.data.length === 0 && count !== 0) { diff --git a/src/main/webapp/static/js/staDesc/staDesc.js b/src/main/webapp/static/js/staDesc/staDesc.js index d7a8f03..f656d46 100644 --- a/src/main/webapp/static/js/staDesc/staDesc.js +++ b/src/main/webapp/static/js/staDesc/staDesc.js @@ -51,7 +51,7 @@ }, done: function(res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; limit(); @@ -81,7 +81,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; limit(); @@ -133,7 +133,7 @@ layer.closeAll(); tableReload(false); } else if (res.code === 403){ - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg) } @@ -172,7 +172,7 @@ if (res.code === 200) { table.exportFile(titles,res.data,'xls'); } else if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg) } @@ -493,7 +493,7 @@ $(this).val(""); }); } else if (res.code === 403){ - top.location.href = "/"; + top.location.href = baseUrl; }else { layer.msg(res.msg) } @@ -555,7 +555,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; if (res.data.length === 0 && count !== 0) { diff --git a/src/main/webapp/static/js/stkPlcm/stkPlcm.js b/src/main/webapp/static/js/stkPlcm/stkPlcm.js index 867a60e..fac1023 100644 --- a/src/main/webapp/static/js/stkPlcm/stkPlcm.js +++ b/src/main/webapp/static/js/stkPlcm/stkPlcm.js @@ -45,7 +45,7 @@ }, done: function(res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; limit(); @@ -75,7 +75,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; limit(); @@ -127,7 +127,7 @@ layer.closeAll(); tableReload(false); } else if (res.code === 403){ - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg) } @@ -166,7 +166,7 @@ if (res.code === 200) { table.exportFile(titles,res.data,'xls'); } else if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg) } @@ -454,7 +454,7 @@ $(this).val(""); }); } else if (res.code === 403){ - top.location.href = "/"; + top.location.href = baseUrl; }else { layer.msg(res.msg) } @@ -524,7 +524,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; if (res.data.length === 0 && count !== 0) { diff --git a/src/main/webapp/static/js/stoMan/stoQue.js b/src/main/webapp/static/js/stoMan/stoQue.js index bf2902c..cf18815 100644 --- a/src/main/webapp/static/js/stoMan/stoQue.js +++ b/src/main/webapp/static/js/stoMan/stoQue.js @@ -53,7 +53,7 @@ }, done: function(res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; limit(); @@ -86,7 +86,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; limit(); @@ -132,7 +132,7 @@ if (res.code === 200) { table.exportFile(titles,res.data,'xls'); } else if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg) } @@ -223,7 +223,7 @@ }, done: function(res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCur=curr; form.on('checkbox(tableCheckbox)', function (data) { @@ -265,7 +265,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; if (count === 1){ diff --git a/src/main/webapp/static/js/user/user.js b/src/main/webapp/static/js/user/user.js index fa62edf..cd24082 100644 --- a/src/main/webapp/static/js/user/user.js +++ b/src/main/webapp/static/js/user/user.js @@ -46,7 +46,7 @@ }, done: function(res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; limit(); @@ -68,7 +68,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; limit(); @@ -123,7 +123,7 @@ layer.closeAll(); tableReload(false); } else if (res.code === 403){ - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg) } @@ -162,7 +162,7 @@ if (res.code === 200) { table.exportFile(titles, res.data, 'xls'); } else if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg) } @@ -315,7 +315,7 @@ $(this).val(""); }); } else if (res.code === 403){ - top.location.href = "/"; + top.location.href = baseUrl; }else { layer.msg(res.msg) } @@ -370,7 +370,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; if (res.data.length === 0 && count !== 0) { diff --git a/src/main/webapp/static/js/userLogin/userLogin.js b/src/main/webapp/static/js/userLogin/userLogin.js index 05e1012..b28d977 100644 --- a/src/main/webapp/static/js/userLogin/userLogin.js +++ b/src/main/webapp/static/js/userLogin/userLogin.js @@ -41,7 +41,7 @@ }, done: function(res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; limit(); @@ -63,7 +63,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; limit(); @@ -118,7 +118,7 @@ layer.closeAll(); tableReload(false); } else if (res.code === 403){ - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg) } @@ -157,7 +157,7 @@ if (res.code === 200) { table.exportFile(titles, res.data, 'xls'); } else if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg) } @@ -271,7 +271,7 @@ $(this).val(""); }); } else if (res.code === 403){ - top.location.href = "/"; + top.location.href = baseUrl; }else { layer.msg(res.msg) } @@ -318,7 +318,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; if (res.data.length === 0 && count !== 0) { diff --git a/src/main/webapp/static/js/wrkDetl/wrkDetl.js b/src/main/webapp/static/js/wrkDetl/wrkDetl.js index 2601d21..2a6ba7c 100644 --- a/src/main/webapp/static/js/wrkDetl/wrkDetl.js +++ b/src/main/webapp/static/js/wrkDetl/wrkDetl.js @@ -58,7 +58,7 @@ }, done: function(res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; limit(); @@ -88,7 +88,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; limit(); @@ -140,7 +140,7 @@ layer.closeAll(); tableReload(false); } else if (res.code === 403){ - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg) } @@ -179,7 +179,7 @@ if (res.code === 200) { table.exportFile(titles,res.data,'xls'); } else if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg) } @@ -363,7 +363,7 @@ $(this).val(""); }); } else if (res.code === 403){ - top.location.href = "/"; + top.location.href = baseUrl; }else { layer.msg(res.msg) } @@ -429,7 +429,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; if (res.data.length === 0 && count !== 0) { diff --git a/src/main/webapp/static/js/wrkLastno/wrkLastno.js b/src/main/webapp/static/js/wrkLastno/wrkLastno.js index 27a9216..6610f16 100644 --- a/src/main/webapp/static/js/wrkLastno/wrkLastno.js +++ b/src/main/webapp/static/js/wrkLastno/wrkLastno.js @@ -44,7 +44,7 @@ }, done: function(res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; limit(); @@ -74,7 +74,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; limit(); @@ -126,7 +126,7 @@ layer.closeAll(); tableReload(false); } else if (res.code === 403){ - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg) } @@ -165,7 +165,7 @@ if (res.code === 200) { table.exportFile(titles,res.data,'xls'); } else if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg) } @@ -340,7 +340,7 @@ $(this).val(""); }); } else if (res.code === 403){ - top.location.href = "/"; + top.location.href = baseUrl; }else { layer.msg(res.msg) } @@ -402,7 +402,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; if (res.data.length === 0 && count !== 0) { diff --git a/src/main/webapp/static/js/wrkMast/wrkMast.js b/src/main/webapp/static/js/wrkMast/wrkMast.js index 3a09397..bdb6c00 100644 --- a/src/main/webapp/static/js/wrkMast/wrkMast.js +++ b/src/main/webapp/static/js/wrkMast/wrkMast.js @@ -82,7 +82,7 @@ }, done: function(res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; limit(); @@ -112,7 +112,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; limit(); @@ -150,7 +150,7 @@ if (res.code === 200){ $(".layui-laypage-btn")[0].click(); } else if (res.code === 403){ - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg) } @@ -185,7 +185,7 @@ if (res.code === 200){ $(".layui-laypage-btn")[0].click(); } else if (res.code === 403){ - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg) } @@ -226,7 +226,7 @@ layer.closeAll(); tableReload(false); } else if (res.code === 403){ - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg) } @@ -265,7 +265,7 @@ if (res.code === 200) { table.exportFile(titles,res.data,'xls'); } else if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg) } @@ -575,7 +575,7 @@ $(this).val(""); }); } else if (res.code === 403){ - top.location.href = "/"; + top.location.href = baseUrl; }else { layer.msg(res.msg) } @@ -711,7 +711,7 @@ }, done: function(res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCur=curr; form.on('checkbox(tableCheckbox)', function (data) { @@ -745,7 +745,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; if (res.data.length === 0 && count !== 0) { diff --git a/src/main/webapp/static/js/wrkMastLog/wrkMastLog.js b/src/main/webapp/static/js/wrkMastLog/wrkMastLog.js index 4ad3c06..621cce7 100644 --- a/src/main/webapp/static/js/wrkMastLog/wrkMastLog.js +++ b/src/main/webapp/static/js/wrkMastLog/wrkMastLog.js @@ -83,7 +83,7 @@ }, done: function(res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; limit(); @@ -113,7 +113,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; limit(); @@ -165,7 +165,7 @@ layer.closeAll(); tableReload(false); } else if (res.code === 403){ - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg) } @@ -204,7 +204,7 @@ if (res.code === 200) { table.exportFile(titles,res.data,'xls'); } else if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg) } @@ -681,7 +681,7 @@ $(this).val(""); }); } else if (res.code === 403){ - top.location.href = "/"; + top.location.href = baseUrl; }else { layer.msg(res.msg) } @@ -783,7 +783,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; if (res.data.length === 0 && count !== 0) { diff --git a/src/main/webapp/views/detail.html b/src/main/webapp/views/detail.html index 323814b..d38ca41 100644 --- a/src/main/webapp/views/detail.html +++ b/src/main/webapp/views/detail.html @@ -116,7 +116,7 @@ $('#person-detail').find(":input[id='" + val + "']").val(user[val]); } } else if (res.code === 403){ - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg); } @@ -159,7 +159,7 @@ localStorage.setItem("username", user.username); parent.$('#person-username').text(localStorage.getItem('username')); } else if (res.code === 403){ - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg); } diff --git a/src/main/webapp/views/home/console.html b/src/main/webapp/views/home/console.html index 9c219d8..c78e3fa 100644 --- a/src/main/webapp/views/home/console.html +++ b/src/main/webapp/views/home/console.html @@ -268,7 +268,7 @@ }, done: function(res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; } @@ -289,7 +289,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCurr=curr; } diff --git a/src/main/webapp/views/password.html b/src/main/webapp/views/password.html index 30d71fb..76186a3 100644 --- a/src/main/webapp/views/password.html +++ b/src/main/webapp/views/password.html @@ -114,17 +114,17 @@ btn: ['纭畾'], btn1: function(){ localStorage.removeItem("token"); - top.location.href = "/"; + top.location.href = baseUrl; }, cancel: function(){ localStorage.removeItem("token"); - top.location.href = "/"; + top.location.href = baseUrl; }, closeBtn: 0, shadeClose: false, }) } else if (res.code === 403){ - top.location.href = "/"; + top.location.href = baseUrl; } else { layer.msg(res.msg); } diff --git a/src/main/webapp/views/report/locDetl.html b/src/main/webapp/views/report/locDetl.html index 01019b3..e4583cd 100644 --- a/src/main/webapp/views/report/locDetl.html +++ b/src/main/webapp/views/report/locDetl.html @@ -81,7 +81,7 @@ }, done: function(res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCur=curr; form.on('checkbox(tableCheckbox)', function (data) { diff --git a/src/main/webapp/views/wrkMast/wrkDetl.html b/src/main/webapp/views/wrkMast/wrkDetl.html index e267ab7..c1ff1e3 100644 --- a/src/main/webapp/views/wrkMast/wrkDetl.html +++ b/src/main/webapp/views/wrkMast/wrkDetl.html @@ -79,7 +79,7 @@ }, done: function(res, curr, count) { if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl; } pageCur=curr; form.on('checkbox(tableCheckbox)', function (data) { -- Gitblit v1.9.1