From 57e481d9491d623a9c409a518460138ff20e4caf Mon Sep 17 00:00:00 2001 From: easy <1358086367@qq.com> Date: Tue, 7 Mar 2023 19:47:53 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E9=A6=96=E9=A1=B5-=E8=AE=BE=E5=A4=87?= =?UTF-8?q?=E6=8E=A5=E5=85=A5=E8=A7=86=E5=9B=BE=E7=BB=84=E4=BB=B6=E6=9B=BF?= =?UTF-8?q?=E6=8D=A2=E3=80=81=E5=BC=B9=E7=AA=97=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/home/components/BootCard.vue | 1 - .../home/components/DeviceHome/index.vue | 11 +- src/views/home/components/StepCard.vue | 66 +++-- .../components/dialogs/DeviceChooseDialog.vue | 231 +++++++----------- .../dialogs/ProductChooseDialog.vue | 71 ++---- 5 files changed, 147 insertions(+), 233 deletions(-) diff --git a/src/views/home/components/BootCard.vue b/src/views/home/components/BootCard.vue index 8783bb3f..27d14fb6 100644 --- a/src/views/home/components/BootCard.vue +++ b/src/views/home/components/BootCard.vue @@ -26,7 +26,6 @@ import { useMenuStore } from '@/store/menu'; const { jumpPage } = useMenuStore(); -const router = useRouter(); const props = defineProps({ cardData: Array, cardTitle: String, diff --git a/src/views/home/components/DeviceHome/index.vue b/src/views/home/components/DeviceHome/index.vue index 09f1098a..aa33af16 100644 --- a/src/views/home/components/DeviceHome/index.vue +++ b/src/views/home/components/DeviceHome/index.vue @@ -74,7 +74,7 @@ const deviceStepDetails: recommendList[] = [ details: '产品是设备的集合,通常指一组具有相同功能的设备。物联设备必须通过产品进行接入方式配置。', iconUrl: '/images/home/bottom-4.png', - linkUrl: 'iot/device/Product', + linkUrl: 'device/Product', auth: productPermission('add'), params: { type: 'add', @@ -85,7 +85,7 @@ const deviceStepDetails: recommendList[] = [ details: '通过产品对同一类型的设备进行统一的接入方式配置。请参照设备铭牌说明选择匹配的接入方式。', iconUrl: '/images/home/bottom-1.png', - linkUrl: 'iot/device/Product/detail', + linkUrl: 'device/Product/Detail', auth: productPermission('update'), dialogTag: 'accessMethod', }, @@ -93,7 +93,7 @@ const deviceStepDetails: recommendList[] = [ title: '添加测试设备', details: '添加单个设备,用于验证产品模型是否配置正确。', iconUrl: '/images/home/bottom-5.png', - linkUrl: 'iot/device/Instance', + linkUrl: 'device/Instance', auth: devicePermission('add'), params: { type: 'add', @@ -104,8 +104,7 @@ const deviceStepDetails: recommendList[] = [ details: '对添加的测试设备进行功能调试,验证能否连接到平台,设备功能是否配置正确。', iconUrl: '/images/home/bottom-2.png', - linkUrl: 'iot/device/Instance/detail', - // auth: devicePermission('update'), + linkUrl: 'device/Instance/Detail', auth: true, dialogTag: 'funcTest', }, @@ -113,7 +112,7 @@ const deviceStepDetails: recommendList[] = [ title: '批量添加设备', details: '批量添加同一产品下的设备', iconUrl: '/images/home/bottom-3.png', - linkUrl: 'iot/device/Instance', + linkUrl: 'device/Instance', auth: devicePermission('import'), params: { import: true, diff --git a/src/views/home/components/StepCard.vue b/src/views/home/components/StepCard.vue index 12827b4b..46ceb495 100644 --- a/src/views/home/components/StepCard.vue +++ b/src/views/home/components/StepCard.vue @@ -1,17 +1,17 @@ diff --git a/src/views/home/components/dialogs/ProductChooseDialog.vue b/src/views/home/components/dialogs/ProductChooseDialog.vue index a0c2067f..5ee070b0 100644 --- a/src/views/home/components/dialogs/ProductChooseDialog.vue +++ b/src/views/home/components/dialogs/ProductChooseDialog.vue @@ -1,59 +1,52 @@