From de06dfddf474fd42f2c12246c83acbd5ec57f776 Mon Sep 17 00:00:00 2001 From: zwq Date: Tue, 14 Nov 2023 16:02:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=93=E5=BA=93-bug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../end-material/warehouseRealtimeLocation/index.vue | 2 +- src/views/warehouse/mixins/basic-page.js | 8 +++++--- .../out-material/warehouseRealtimeLocation/index.vue | 2 +- .../package-material/warehouseRealtimeLocation/index.vue | 2 +- .../part-material/warehouseRealtimeLocation/index.vue | 2 +- .../raw-material/warehouseRealtimeLocation/index.vue | 2 +- 6 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/views/warehouse/end-material/warehouseRealtimeLocation/index.vue b/src/views/warehouse/end-material/warehouseRealtimeLocation/index.vue index b7176d9e..bcf0cd57 100644 --- a/src/views/warehouse/end-material/warehouseRealtimeLocation/index.vue +++ b/src/views/warehouse/end-material/warehouseRealtimeLocation/index.vue @@ -17,7 +17,7 @@ diff --git a/src/views/warehouse/mixins/basic-page.js b/src/views/warehouse/mixins/basic-page.js index 86d05471..c0f73ed3 100644 --- a/src/views/warehouse/mixins/basic-page.js +++ b/src/views/warehouse/mixins/basic-page.js @@ -2,7 +2,7 @@ * @Author: zwq * @Date: 2022-08-24 11:19:43 * @LastEditors: zwq - * @LastEditTime: 2023-11-03 16:06:21 + * @LastEditTime: 2023-11-14 15:59:53 * @Description: */ export default { @@ -38,8 +38,10 @@ export default { getDataList() { this.dataListLoading = true; this.urlOptions.getDataListURL(this.listQuery).then(response => { - this.tableData = response.data.list; - this.listQuery.total = response.data.total; + if(response.hasOwnProperty('data')){ + this.tableData = response.data.list; + this.listQuery.total = response.data.total; + } this.dataListLoading = false; }); }, diff --git a/src/views/warehouse/out-material/warehouseRealtimeLocation/index.vue b/src/views/warehouse/out-material/warehouseRealtimeLocation/index.vue index 64d43daf..56bd9a47 100644 --- a/src/views/warehouse/out-material/warehouseRealtimeLocation/index.vue +++ b/src/views/warehouse/out-material/warehouseRealtimeLocation/index.vue @@ -17,7 +17,7 @@ diff --git a/src/views/warehouse/package-material/warehouseRealtimeLocation/index.vue b/src/views/warehouse/package-material/warehouseRealtimeLocation/index.vue index da46a2d8..eda55804 100644 --- a/src/views/warehouse/package-material/warehouseRealtimeLocation/index.vue +++ b/src/views/warehouse/package-material/warehouseRealtimeLocation/index.vue @@ -17,7 +17,7 @@ diff --git a/src/views/warehouse/part-material/warehouseRealtimeLocation/index.vue b/src/views/warehouse/part-material/warehouseRealtimeLocation/index.vue index b0c93ded..00779a9c 100644 --- a/src/views/warehouse/part-material/warehouseRealtimeLocation/index.vue +++ b/src/views/warehouse/part-material/warehouseRealtimeLocation/index.vue @@ -17,7 +17,7 @@ diff --git a/src/views/warehouse/raw-material/warehouseRealtimeLocation/index.vue b/src/views/warehouse/raw-material/warehouseRealtimeLocation/index.vue index aa2c9d51..5da72b0d 100644 --- a/src/views/warehouse/raw-material/warehouseRealtimeLocation/index.vue +++ b/src/views/warehouse/raw-material/warehouseRealtimeLocation/index.vue @@ -17,7 +17,7 @@