From 8142f16662c53dd97906c45a421f284931a333ef Mon Sep 17 00:00:00 2001 From: gtz217 <535262213@qq.com> Date: Fri, 18 Mar 2022 16:05:01 +0800 Subject: [PATCH] dashboard attribute number to string --- .../components/processStorageLink.vue | 28 +++++++++---------- src/views/dashboard/index.vue | 20 ++++++------- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/src/views/basicData/Warehouse/components/processStorageLink.vue b/src/views/basicData/Warehouse/components/processStorageLink.vue index 81ac54c..0abd5f4 100644 --- a/src/views/basicData/Warehouse/components/processStorageLink.vue +++ b/src/views/basicData/Warehouse/components/processStorageLink.vue @@ -2,7 +2,7 @@ * @Author: gtz * @Date: 2022-03-03 09:16:10 * @LastEditors: gtz - * @LastEditTime: 2022-03-16 19:25:19 + * @LastEditTime: 2022-03-18 16:02:21 * @Description: file content * @FilePath: \mt-ck-wms-ui\src\views\basicData\Warehouse\components\processStorageLink.vue --> @@ -89,13 +89,13 @@ cursor: z.portVoList[ (current - 1) * 80 + (item - 1) * 20 + (x - 1) - ].attribute === 3 + ].attribute === '3' ? 'not-allowed' : 'pointer', color: z.portVoList[ (current - 1) * 80 + (item - 1) * 20 + (x - 1) - ].attribute === 3 + ].attribute === '3' ? '#A2A8B5' : '', border: @@ -110,8 +110,8 @@ ) " > -
- {{ z.portVoList[(current - 1) * 80 + (item - 1) * 20 + (x - 1)].attribute !== 3 ? z.portVoList[(current - 1) * 80 + (item - 1) * 20 + (x - 1)].name : 'XXXX' }} +
+ {{ z.portVoList[(current - 1) * 80 + (item - 1) * 20 + (x - 1)].attribute !== '3' ? z.portVoList[(current - 1) * 80 + (item - 1) * 20 + (x - 1)].name : 'XXXX' }}
@@ -168,13 +168,13 @@ cursor: z.portVoList[ (current - 1) * 80 + (item - 1) * 20 + (x - 1) - ].attribute === 3 + ].attribute === '3' ? 'not-allowed' : 'pointer', color: z.portVoList[ (current - 1) * 80 + (item - 1) * 20 + (x - 1) - ].attribute === 3 + ].attribute === '3' ? '#A2A8B5' : '', border: @@ -189,8 +189,8 @@ ) " > -
- {{ z.portVoList[(current - 1) * 80 + (item - 1) * 20 + (x - 1)].attribute !== 3 ? z.portVoList[(current - 1) * 80 + (item - 1) * 20 + (x - 1)].name : 'XXXX' }} +
+ {{ z.portVoList[(current - 1) * 80 + (item - 1) * 20 + (x - 1)].attribute !== '3' ? z.portVoList[(current - 1) * 80 + (item - 1) * 20 + (x - 1)].name : 'XXXX' }}
@@ -217,13 +217,13 @@ cursor: z.portVoList[ (current - 1) * 80 + (item - 1) * 20 + (x - 1) - ].attribute === 3 + ].attribute === '3' ? 'not-allowed' : 'pointer', color: z.portVoList[ (current - 1) * 80 + (item - 1) * 20 + (x - 1) - ].attribute === 3 + ].attribute === '3' ? '#A2A8B5' : '', border: @@ -238,8 +238,8 @@ ) " > -
- {{ z.portVoList[(current - 1) * 80 + (item - 1) * 20 + (x - 1)].attribute !== 3 ? z.portVoList[(current - 1) * 80 + (item - 1) * 20 + (x - 1)].name : 'XXXX' }} +
+ {{ z.portVoList[(current - 1) * 80 + (item - 1) * 20 + (x - 1)].attribute !== '3' ? z.portVoList[(current - 1) * 80 + (item - 1) * 20 + (x - 1)].name : 'XXXX' }}
@@ -285,7 +285,7 @@ export default { this.selectStorageList.splice(0, this.selectStorageList.length) }, setType(item) { - if (item.attribute !== 3) { + if (item.attribute !== '3') { if (this.selectStorageList.findIndex(StorageItem => StorageItem.locationId === item.id) + 1) { this.selectStorageList.splice(this.selectStorageList.findIndex(StorageItem => StorageItem.locationId === item.id), 1) } else { diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue index 18ef2fb..6e03bcf 100644 --- a/src/views/dashboard/index.vue +++ b/src/views/dashboard/index.vue @@ -2,7 +2,7 @@ * @Author: gtz * @Date: 2022-03-03 09:16:10 * @LastEditors: gtz - * @LastEditTime: 2022-03-16 20:07:40 + * @LastEditTime: 2022-03-18 16:03:29 * @Description: file content * @FilePath: \mt-ck-wms-ui\src\views\dashboard\index.vue --> @@ -35,9 +35,9 @@ -
-
- {{ z.portVoList[(current - 1) * 80 + (item - 1) * 20 + (x - 1)].attribute !== 3 ? z.portVoList[(current - 1) * 80 + (item - 1) * 20 + (x - 1)].name : 'XXXX' }} +
+
+ {{ z.portVoList[(current - 1) * 80 + (item - 1) * 20 + (x - 1)].attribute !== '3' ? z.portVoList[(current - 1) * 80 + (item - 1) * 20 + (x - 1)].name : 'XXXX' }}
@@ -54,17 +54,17 @@ -
-
- {{ z.portVoList[(current - 1) * 80 + (item - 1) * 20 + (x - 1)].attribute !== 3 ? z.portVoList[(current - 1) * 80 + (item - 1) * 20 + (x - 1)].name : 'XXXX' }} +
+
+ {{ z.portVoList[(current - 1) * 80 + (item - 1) * 20 + (x - 1)].attribute !== '3' ? z.portVoList[(current - 1) * 80 + (item - 1) * 20 + (x - 1)].name : 'XXXX' }}
-
-
- {{ z.portVoList[(current - 1) * 80 + (item - 1) * 20 + (x - 1)].attribute !== 3 ? z.portVoList[(current - 1) * 80 + (item - 1) * 20 + (x - 1)].name : 'XXXX' }} +
+
+ {{ z.portVoList[(current - 1) * 80 + (item - 1) * 20 + (x - 1)].attribute !== '3' ? z.portVoList[(current - 1) * 80 + (item - 1) * 20 + (x - 1)].name : 'XXXX' }}