Kaynağa Gözat

产品及设备新增页面配置

lipenghui 6 gün önce
ebeveyn
işleme
a2c8efd3cf

+ 39 - 0
src/router/modules/remaining.ts

@@ -612,6 +612,45 @@ const remainingRouter: AppRouteRecordRaw[] = [
     ]
   },
 
+
+  {
+    path: '/iotpms/iotvideopms', // 视频中心
+    component: Layout,
+    name: 'PmsVideoCenter',
+    meta: {
+      hidden: true
+    },
+    children: [
+      {
+        path: 'video/product/add',
+        component: () => import('@/views/pms/video_center/product/product-edit.vue'),
+        name: 'VideoCenterProductEdit',
+        meta: {
+          noCache: false,
+          hidden: true,
+          canTo: true,
+          icon: 'ep:add',
+          title: t('rem.AddEquipment'),
+          activeMenu: '/video/produvt/add'
+        }
+      },
+      {
+        path: 'video/device/add',
+        component: () => import('@/views/pms/video_center/device/device-edit.vue'),
+        name: 'VideoCenterDeviceEdit',
+        meta: {
+          noCache: false,
+          hidden: true,
+          canTo: true,
+          icon: 'ep:add',
+          title: t('rem.AddEquipment'),
+          activeMenu: '/video/device/add'
+        }
+      },
+    ]
+  },
+
+
   {
     path: '/iotpms/iotlockstock',
     component: Layout,

+ 3 - 1
src/views/pms/video_center/device/device-edit.vue

@@ -658,7 +658,9 @@ import DeptTree from '@/views/system/user/DeptTree.vue'
 import { defaultProps, handleTree } from '@/utils/tree'
 import * as DeptApi from '@/api/system/dept'
 import { IotDeviceApi } from '@/api/pms/device'
-
+defineOptions({
+  name: 'VideoCenterDeviceEdit'
+})
 
 // i18n
 const { t } = useI18n()

+ 1 - 1
src/views/pms/video_center/device/index.vue

@@ -928,7 +928,7 @@ function handleEditDevice(row, activeName) {
     isSubDevValue = row.subDeviceCount > 0 ? 1 : 0
   }
   router.push({
-    path: '/videocenter/device/device-edit',
+    name: 'VideoCenterDeviceEdit',
     query: {
       deviceId: deviceId,
       isSubDev: isSubDevValue,