瀏覽代碼

补充 提交

yanghao 6 天之前
父節點
當前提交
02cbf844f8

+ 40 - 1
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,
@@ -2107,7 +2146,7 @@ const remainingRouter: AppRouteRecordRaw[] = [
       //   }
       // },
       // 新增/编辑 设备
-      {
+     {
         path: 'device/device-edit',
         component: () => import('@/views/pms/video_center/device/device-edit.vue'),
         name: 'VideoCenterDeviceEdit',

+ 6 - 4
src/views/pms/video_center/device/device-edit.vue

@@ -41,8 +41,8 @@
                   </el-input>
                 </el-form-item>
 
-                <el-form-item label="关联设备" prop="pms_device">
-                   <el-select v-model="form.pms_device" placeholder="请选择要关联的设备">
+                <el-form-item label="关联设备" prop="pmsDevice">
+                   <el-select v-model="form.pmsDevice" placeholder="请选择要关联的设备">
                       <el-option
                         v-for="item in deviceOptions"
                         :key="item.key"
@@ -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()
@@ -707,7 +709,7 @@ const form = reactive({
   productId: 0,
   status: 1,
   deptId: '',
-  pms_device:'',
+  pmsDevice:'',
   locationWay: 1,
   firmwareVersion: 1.0,
   serialNumber: '',

+ 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,