From d27ddde2220cf209cb588edaeca48b6d30c09db2 Mon Sep 17 00:00:00 2001 From: z_yu <1534695664@qq.com> Date: Thu, 11 Aug 2022 10:47:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=A5=E8=AD=A6=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/components/WarehouseWarning.vue | 5 ++++- .../storeManage/warehouse3D/archivesStorage/index.vue | 10 +++------- .../storeManage/warehouse3D/collateRoom/index.vue | 3 ++- src/views/storeManage/warehouse3D/readRoom/index.vue | 11 ++++------- 4 files changed, 13 insertions(+), 16 deletions(-) diff --git a/src/views/components/WarehouseWarning.vue b/src/views/components/WarehouseWarning.vue index 61bd66a..d283cc0 100644 --- a/src/views/components/WarehouseWarning.vue +++ b/src/views/components/WarehouseWarning.vue @@ -70,8 +70,11 @@ export default { // this.tableData.push(...data) // }) // this.openSocket() + console.log(111111) alarmApi.info({ storeroomId: this.storeroomId }).then((data) => { - this.tableData.push(...data) + if (data && data.length > 0) { + this.tableData.push(...data) + } }) }, destroyed() { diff --git a/src/views/storeManage/warehouse3D/archivesStorage/index.vue b/src/views/storeManage/warehouse3D/archivesStorage/index.vue index 60537dd..a33fdf8 100644 --- a/src/views/storeManage/warehouse3D/archivesStorage/index.vue +++ b/src/views/storeManage/warehouse3D/archivesStorage/index.vue @@ -61,7 +61,7 @@