From 9f0367f12a10376d19872700e0edb8000094a97c Mon Sep 17 00:00:00 2001 From: ruanqi Date: Tue, 10 Aug 2021 11:03:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/orderBoard.vue | 6 +- src/views/productOutBoard.vue | 473 +++++++++++++++++----------------- src/views/reportAbnormal.vue | 7 + src/views/scheduledBoard.vue | 5 +- 4 files changed, 257 insertions(+), 234 deletions(-) diff --git a/src/views/orderBoard.vue b/src/views/orderBoard.vue index 310dc17..ef1e64c 100644 --- a/src/views/orderBoard.vue +++ b/src/views/orderBoard.vue @@ -140,9 +140,13 @@ export default { let data_temp = data.rows; this.boardLoading(data_temp); } else { - alert.msg(data.msg); + this.jump(); } + }, + error: () => { + this.jump(); } + }) }, boardLoading(data_temp) { diff --git a/src/views/productOutBoard.vue b/src/views/productOutBoard.vue index 0e62dc4..9cd9bfe 100644 --- a/src/views/productOutBoard.vue +++ b/src/views/productOutBoard.vue @@ -1,268 +1,277 @@ \ No newline at end of file diff --git a/src/views/reportAbnormal.vue b/src/views/reportAbnormal.vue index 9f9744c..2749078 100644 --- a/src/views/reportAbnormal.vue +++ b/src/views/reportAbnormal.vue @@ -137,6 +137,7 @@ export default { data: {}, dataType: "json", success: function (data) { + if (data.success) { that.data1 = {"total": data.rows1.length, "rows": data.rows1}; that.data2 = {"total": data.rows2.length, "rows": data.rows2}; that.data3 = {"total": data.rows3.length, "rows": data.rows3}; @@ -168,7 +169,13 @@ export default { clearInterval(that.handler); } }, 1000 * that.refreshTime) + } else { + this.jump(); + } }, + error: () => { + this.jump(); + } }) }, diff --git a/src/views/scheduledBoard.vue b/src/views/scheduledBoard.vue index 387710c..801db00 100644 --- a/src/views/scheduledBoard.vue +++ b/src/views/scheduledBoard.vue @@ -166,8 +166,11 @@ export default { let data_temp = data.rows; this.boardLoading(data_temp); } else { - alert.msg(data.msg); + this.jump(); } + }, + error: () => { + this.jump(); } }); },