Procházet zdrojové kódy

Merge branch 'all-v4-liufei' into 'all-v4'

更新前端路由表

See merge request skyeye/skyeye_frontend/skyeye-admin!235
Fei Liu před 1 rokem
rodič
revize
6ecc29e743

+ 7 - 7
src/router/full-routes.ts

@@ -143,7 +143,7 @@ const fullRoutes: AppRouteRecordRaw[] = [
         component: '/page-config/PageSceneList',
         component: '/page-config/PageSceneList',
         meta: {
         meta: {
           icon: '',
           icon: '',
-          title: '场景布局列表(菜单不可见)'
+          title: '场景布局列表'
         }
         }
       },
       },
       {
       {
@@ -153,7 +153,7 @@ const fullRoutes: AppRouteRecordRaw[] = [
         component: '/page-config/ConfigEdit',
         component: '/page-config/ConfigEdit',
         meta: {
         meta: {
           icon: '',
           icon: '',
-          title: '场景布局配置(菜单不可见)'
+          title: '场景布局配置'
         }
         }
       },
       },
       {
       {
@@ -173,7 +173,7 @@ const fullRoutes: AppRouteRecordRaw[] = [
         component: '/page-config/PageCameraList',
         component: '/page-config/PageCameraList',
         meta: { 
         meta: { 
           icon: '',
           icon: '',
-          title: '相机布局列表(菜单不可见)',
+          title: '相机布局列表',
         }
         }
       },
       },
       {
       {
@@ -183,7 +183,7 @@ const fullRoutes: AppRouteRecordRaw[] = [
         component: '/map-config/mini-map/MiniMapConfig',
         component: '/map-config/mini-map/MiniMapConfig',
         meta: { 
         meta: { 
           icon: '',
           icon: '',
-          title: '相机布局配置(菜单不可见)',
+          title: '相机布局配置',
         }
         }
       }
       }
     ]
     ]
@@ -309,7 +309,7 @@ const fullRoutes: AppRouteRecordRaw[] = [
         component: '/message/reportmessage/ReportOperation',
         component: '/message/reportmessage/ReportOperation',
         meta: { 
         meta: { 
           icon: '',
           icon: '',
-          title: '报表推送配置(菜单不可见)' 
+          title: '报表推送配置' 
         },
         },
       },
       },
       {
       {
@@ -329,7 +329,7 @@ const fullRoutes: AppRouteRecordRaw[] = [
         component: '/message/alarm-config/AlarmConfig',
         component: '/message/alarm-config/AlarmConfig',
         meta: { 
         meta: { 
           icon: '',
           icon: '',
-          title: '报警推送配置(菜单不可见)',
+          title: '报警推送配置',
         },
         },
       },
       },
       {
       {
@@ -349,7 +349,7 @@ const fullRoutes: AppRouteRecordRaw[] = [
         component: '/message/sysnotion-config/SysnotionConfig',
         component: '/message/sysnotion-config/SysnotionConfig',
         meta: { 
         meta: { 
           icon: '',
           icon: '',
-          title: '系统通知配置(菜单不可见)',
+          title: '系统通知配置',
         },
         },
       }, 
       }, 
       {
       {

+ 1 - 1
src/views/cameras/overview/CamerasOverview.vue

@@ -322,7 +322,7 @@
   };
   };
 
 
   const handlePreview = (_row) => {
   const handlePreview = (_row) => {
-    router.push(`/cameras/preview?cameraId=${_row.id}`);
+    router.push(`/algorithm/config?cameraId=${_row.id}`);
   };
   };
 
 
   const handleDelete = (row) => {
   const handleDelete = (row) => {

+ 1 - 1
src/views/cameras/preview/components/AlgorithmsSetting/AlgorithmsSetting.vue

@@ -77,7 +77,7 @@
   const cameraDetailStore = useCameraDetailStore();
   const cameraDetailStore = useCameraDetailStore();
   const userStore = useUserStore();
   const userStore = useUserStore();
 
 
-  const hasAddPermission = () => userStore.checkPermission('algo_add');
+  const hasAddPermission = () => userStore.checkPermission('back:algo:config:add');
   const algoSettingIsOpen = ref(false);
   const algoSettingIsOpen = ref(false);
 
 
   const handleToggleSetting = (algoId: number) => {
   const handleToggleSetting = (algoId: number) => {