From 268d58a278c6e93f2ebbd567686e70383aacfea4 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期五, 03 七月 2020 14:16:23 +0800 Subject: [PATCH] # --- src/main/webapp/views/crn.html | 8 ++++---- src/main/webapp/views/console.html | 10 +++++----- src/main/webapp/views/pipeline.html | 6 +++--- src/main/webapp/static/js/common.js | 4 ++-- src/main/webapp/static/js/cool.js | 4 ++-- 5 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/main/webapp/static/js/common.js b/src/main/webapp/static/js/common.js index fdc899f..c44918f 100644 --- a/src/main/webapp/static/js/common.js +++ b/src/main/webapp/static/js/common.js @@ -88,7 +88,7 @@ (child?parent:window).$('.'+res.data[i].code).css("display", "inline-block"); } } else if (res.code === 403){ - top.location.href = baseUrl; + window.location.href = baseUrl; } else { layer.msg(res.msg) } @@ -145,7 +145,7 @@ if (res.code === 200){ callback(res); } else if (res.code === 403){ - top.location.href = baseUrl+"/login"; + window.location.href = baseUrl+"/login"; } else { alert(res.msg); } diff --git a/src/main/webapp/static/js/cool.js b/src/main/webapp/static/js/cool.js index bbc4def..9aff404 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 = baseUrl; + window.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 = baseUrl; + window.location.href = baseUrl; } else if (res.code === 407) { banMsg = res.data + "涓嶅彲鐢�"; tips = layer.tips( diff --git a/src/main/webapp/views/console.html b/src/main/webapp/views/console.html index 50e2660..2675738 100644 --- a/src/main/webapp/views/console.html +++ b/src/main/webapp/views/console.html @@ -676,7 +676,7 @@ systemRunning = false; } } else if (res.code === 403){ - top.location.href = baseUrl+"/login"; + window.location.href = baseUrl+"/login"; } else { alert(res.msg); } @@ -703,7 +703,7 @@ systemRunning = false; } } else if (res.code === 403){ - top.location.href = baseUrl+"/login"; + window.location.href = baseUrl+"/login"; } else { alert(res.msg); } @@ -724,7 +724,7 @@ $("#site-"+sites[i].siteId).attr("class", "site " + sites[i].siteStatus); } } else if (res.code === 403){ - top.location.href = baseUrl+"/login"; + window.location.href = baseUrl+"/login"; } else { alert(res.msg); } @@ -745,7 +745,7 @@ crnAnimate(crns[i].crnId, crns[i].offset); } } else if (res.code === 403){ - top.location.href = baseUrl+"/login"; + window.location.href = baseUrl+"/login"; } else { alert(res.msg); } @@ -766,7 +766,7 @@ $("#code-decoder-data-"+barcodes[i].barcodeId).html(barcodes[i].codeValue); } } else if (res.code === 403){ - top.location.href = baseUrl+"/login"; + window.location.href = baseUrl+"/login"; } else { alert(res.msg); } diff --git a/src/main/webapp/views/crn.html b/src/main/webapp/views/crn.html index dce019a..ec56bd0 100644 --- a/src/main/webapp/views/crn.html +++ b/src/main/webapp/views/crn.html @@ -224,7 +224,7 @@ $("#crn"+commands[i].crnNo).val(commands[i].command); } } else if (res.code === 403) { - top.location.href = baseUrl + "/login"; + window.location.href = baseUrl + "/login"; } else { alert(res.msg); } @@ -263,7 +263,7 @@ setVal(tr.children("td").eq(12), table[i-1].warnCode); } } else if (res.code === 403){ - top.location.href = baseUrl+"/login"; + window.location.href = baseUrl+"/login"; } else { alert(res.msg); } @@ -299,7 +299,7 @@ setVal(tr.children("td").eq(9), table[i-1].command); } } else if (res.code === 403){ - top.location.href = baseUrl+"/login"; + window.location.href = baseUrl+"/login"; } else { alert(res.msg); } @@ -412,7 +412,7 @@ if (res.code === 200) { crnOutput(res.data); } else if (res.code === 403) { - top.location.href = baseUrl + "/login"; + window.location.href = baseUrl + "/login"; } else { alert(res.msg); } diff --git a/src/main/webapp/views/pipeline.html b/src/main/webapp/views/pipeline.html index 384f97d..96ba05f 100644 --- a/src/main/webapp/views/pipeline.html +++ b/src/main/webapp/views/pipeline.html @@ -119,7 +119,7 @@ tr.children("td").eq(2).html(table[i-1].error); } } else if (res.code === 403){ - top.location.href = baseUrl+"/login"; + window.location.href = baseUrl+"/login"; } else { alert(res.msg); } @@ -166,7 +166,7 @@ // tr.children("td").eq(9).html(table[i-1].staNo); } } else if (res.code === 403){ - top.location.href = baseUrl+"/login"; + window.location.href = baseUrl+"/login"; } else { alert(res.msg); } @@ -184,7 +184,7 @@ if (res.code === 200) { output(res.data); } else if (res.code === 403) { - top.location.href = baseUrl + "/login"; + window.location.href = baseUrl + "/login"; } else { alert(res.msg); } -- Gitblit v1.9.1