From 34d870f1ecefeea94e32834f418be56a6840071c Mon Sep 17 00:00:00 2001 From: 100011797 <2642441182@qq.com> Date: Thu, 23 Feb 2023 15:47:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E9=98=BF=E9=87=8C?= =?UTF-8?q?=E4=BA=91=E6=96=B0=E5=A2=9E=E5=92=8C=E5=8D=A1=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/AIcon/index.tsx | 3 +- src/components/PermissionButton/index.vue | 13 +- src/components/Table/index.tsx | 169 ++++++------ .../Northbound/AliCloud/Detail/index.vue | 16 +- src/views/Northbound/AliCloud/index.vue | 98 +++---- src/views/Northbound/DuerOS/Detail/index.vue | 30 ++- src/views/Northbound/DuerOS/index.vue | 123 ++++----- .../Detail/Info/components/Config/index.vue | 165 ++++++++---- .../Detail/Info/components/Relation/index.vue | 45 +++- .../Detail/Info/components/Tags/index.vue | 40 ++- .../device/Instance/Detail/Info/index.vue | 118 +++++++-- src/views/device/Instance/Detail/index.vue | 60 +++-- src/views/device/Instance/index.vue | 241 +++++++++--------- 13 files changed, 639 insertions(+), 482 deletions(-) diff --git a/src/components/AIcon/index.tsx b/src/components/AIcon/index.tsx index 35221782..42560b7c 100644 --- a/src/components/AIcon/index.tsx +++ b/src/components/AIcon/index.tsx @@ -51,7 +51,8 @@ const iconKeys = [ 'playCircleOutlined', 'RightOutlined', 'FileTextOutlined', - 'UploadOutlined' + 'UploadOutlined', + 'ArrowLeftOutlined' ] const Icon = (props: {type: string}) => { diff --git a/src/components/PermissionButton/index.vue b/src/components/PermissionButton/index.vue index 965c4c19..db1fe81b 100644 --- a/src/components/PermissionButton/index.vue +++ b/src/components/PermissionButton/index.vue @@ -4,7 +4,7 @@ - + \ No newline at end of file diff --git a/src/views/device/Instance/Detail/index.vue b/src/views/device/Instance/Detail/index.vue index 2d33e6ba..9401c2b3 100644 --- a/src/views/device/Instance/Detail/index.vue +++ b/src/views/device/Instance/Detail/index.vue @@ -8,7 +8,8 @@ @@ -197,38 +210,25 @@ /> @@ -278,6 +278,7 @@ import { queryOrgThree, } from '@/api/device/product'; import { queryTree } from '@/api/device/category'; +import { useMenuStore } from '@/store/menu'; const router = useRouter(); const instanceRef = ref>({}); @@ -291,6 +292,8 @@ const operationVisible = ref(false); const api = ref(''); const type = ref(''); +const menuStory = useMenuStore() + const statusMap = new Map(); statusMap.set('online', 'success'); statusMap.set('offline', 'error'); @@ -535,7 +538,7 @@ const handleAdd = () => { * 查看 */ const handleView = (id: string) => { - router.push('/iot/device/instance/detail/' + id); + menuStory.jumpPage('device/Instance/Detail', {id}) }; const getActions = ( @@ -556,7 +559,7 @@ const getActions = ( }, }, { - key: 'edit', + key: 'update', text: '编辑', tooltip: { title: '编辑',