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: '编辑',