From d035d9dc6e0a410f4ab72f5ea58722f041ae1226 Mon Sep 17 00:00:00 2001 From: liuxy Date: Mon, 25 Jul 2022 17:18:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mes/qd/src/views/wms/sb/stat/task/bigScreen.vue | 4 +++- mes/qd/src/views/wms/sb/stat/taskscreen/taskScreen.vue | 8 ++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/mes/qd/src/views/wms/sb/stat/task/bigScreen.vue b/mes/qd/src/views/wms/sb/stat/task/bigScreen.vue index 59ed34aa..834092d8 100644 --- a/mes/qd/src/views/wms/sb/stat/task/bigScreen.vue +++ b/mes/qd/src/views/wms/sb/stat/task/bigScreen.vue @@ -68,7 +68,9 @@ export default { getMessage: function(msg) { debugger const data = JSON.parse(msg.data) - this.tableData = data.msg + if (data.msg.length !== 0) { + this.tableData = data.msg + } }, send: function() { // eslint-disable-next-line no-undef diff --git a/mes/qd/src/views/wms/sb/stat/taskscreen/taskScreen.vue b/mes/qd/src/views/wms/sb/stat/taskscreen/taskScreen.vue index 6b0f42a1..3d9708fa 100644 --- a/mes/qd/src/views/wms/sb/stat/taskscreen/taskScreen.vue +++ b/mes/qd/src/views/wms/sb/stat/taskscreen/taskScreen.vue @@ -75,8 +75,12 @@ export default { getMessage: function(msg) { debugger const data = JSON.parse(msg.data) - this.table = data.msg.requestArr - this.table2 = data.msg.repaiArr + if (data.msg.requestArr.length !== 0) { + this.table = data.msg.requestArr + } + if (data.msg.repaiArr.length !== 0) { + this.table2 = data.msg.repaiArr + } }, send: function() { // eslint-disable-next-line no-undef