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 1/2] 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' }}
-- 2.24.3 From dd8e54f7435203d43c81dd39d9f45ab461076096 Mon Sep 17 00:00:00 2001 From: gtz217 <535262213@qq.com> Date: Fri, 18 Mar 2022 16:29:54 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E5=8E=BB=E9=99=A4?= =?UTF-8?q?=E7=BC=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 27 ++++++++++--------- src/views/dashboard/components/PortDetail.vue | 4 +-- src/views/dashboard/index.vue | 2 +- 3 files changed, 17 insertions(+), 16 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index 85cf483..ff29539 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -57,19 +57,6 @@ export const constantRoutes = [ component: () => import('@/views/login/index'), hidden: true }, - { - path: '/', - component: Layout, - redirect: '/dashboard', - children: [ - { - path: 'dashboard', - component: () => import('@/views/dashboard/index'), - name: 'Dashboard', - meta: { title: routerTitle.dashboard?.[language] || routerTitle.dashboard.en, icon: 'form', iconPart: 'dashboard', affix: true, required: true, requireToken: true } - } - ] - }, // { // path: '/', // component: () => import('@/views/ChoicePart'), @@ -91,6 +78,20 @@ export const constantRoutes = [ component: () => import('@/views/error-page/401'), hidden: true }, + { + path: '/dashboard', + component: Layout, + redirect: '/dashboard', + name: 'Dash', + children: [ + { + path: 'dashboard', + component: () => import('@/views/dashboard/index'), + name: 'Dashboard', + meta: { title: routerTitle.dashboard?.[language] || routerTitle.dashboard.en, icon: 'form', affix: true, required: true, requireToken: true, noCache: true } + } + ] + }, { path: '/', component: Layout, diff --git a/src/views/dashboard/components/PortDetail.vue b/src/views/dashboard/components/PortDetail.vue index 81d6201..b05cd8e 100644 --- a/src/views/dashboard/components/PortDetail.vue +++ b/src/views/dashboard/components/PortDetail.vue @@ -2,7 +2,7 @@ * @Author: zwq * @Date: 2020-12-29 16:37:56 * @LastEditors: gtz - * @LastEditTime: 2022-03-17 10:49:54 + * @LastEditTime: 2022-03-18 16:18:38 * @Description: -->