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