Эх сурвалжийг харах

refactor: shielding part function

Casper Dai 2 жил өмнө
parent
commit
7e3f48f32d

+ 2 - 2
src/components/service/EventTargetPicker/index.vue

@@ -146,8 +146,8 @@ export default {
     return {
       eventTypeOptions: [
         { value: EventTarget.ASSETS, label: EventTargetInfo[EventTarget.ASSETS] },
-        { value: EventTarget.PROGRAM, label: EventTargetInfo[EventTarget.PROGRAM] },
-        { value: EventTarget.RECUR, label: EventTargetInfo[EventTarget.RECUR] }
+        { value: EventTarget.PROGRAM, label: EventTargetInfo[EventTarget.PROGRAM] }/* ,
+        { value: EventTarget.RECUR, label: EventTargetInfo[EventTarget.RECUR] } */
       ],
       currentTarget: null,
       datasetSchema: {

+ 60 - 60
src/router/index.js

@@ -1,7 +1,7 @@
 import Vue from 'vue'
 import Router from 'vue-router'
 import {
-  ScheduleType,
+  // ScheduleType,
   Access,
   Camera,
   CameraInfo,
@@ -85,63 +85,63 @@ export const asyncRoutes = [
         component: () => import('@/views/screen/material/program/index'),
         meta: { title: '节目' }
       },
-      {
-        path: 'recur',
-        component: Solo,
-        meta: { title: '轮播' },
-        children: [
-          {
-            name: 'recur-list',
-            path: '',
-            component: () => import('@/views/screen/material/schedule/index'),
-            meta: { cache: 'ScheduleList' },
-            props: { type: ScheduleType.RECUR, redirect: 'recur-design' }
-          },
-          {
-            hidden: true,
-            name: 'recur-design',
-            path: ':id',
-            component: () => import('@/views/screen/material/schedule/designer/index'),
-            access: Access.MANAGE_CALENDAR,
-            meta: { title: '编辑', cache: 'ScheduleList' },
-            props: { redirect: 'recur-list' }
-          }
-        ]
-      },
-      {
-        path: 'schedule',
-        component: Solo,
-        meta: { title: '排期' },
-        children: [
-          {
-            name: 'schedule-list',
-            path: '',
-            component: () => import('@/views/screen/material/schedule/index'),
-            meta: { cache: 'ScheduleList' },
-            props: { type: ScheduleType.COMPLEX, redirect: 'schedule-design' }
-          },
-          {
-            hidden: true,
-            name: 'schedule-design',
-            path: ':id',
-            component: () => import('@/views/screen/material/schedule/designer/index'),
-            access: Access.MANAGE_CALENDAR,
-            meta: { title: '编辑', cache: 'ScheduleList' },
-            props: { redirect: 'schedule-list' }
-          }
-        ]
-      },
+      // {
+      //   path: 'recur',
+      //   component: Solo,
+      //   meta: { title: '轮播' },
+      //   children: [
+      //     {
+      //       name: 'recur-list',
+      //       path: '',
+      //       component: () => import('@/views/screen/material/schedule/index'),
+      //       meta: { cache: 'ScheduleList' },
+      //       props: { type: ScheduleType.RECUR, redirect: 'recur-design' }
+      //     },
+      //     {
+      //       hidden: true,
+      //       name: 'recur-design',
+      //       path: ':id',
+      //       component: () => import('@/views/screen/material/schedule/designer/index'),
+      //       access: Access.MANAGE_CALENDAR,
+      //       meta: { title: '编辑', cache: 'ScheduleList' },
+      //       props: { redirect: 'recur-list' }
+      //     }
+      //   ]
+      // },
+      // {
+      //   path: 'schedule',
+      //   component: Solo,
+      //   meta: { title: '排期' },
+      //   children: [
+      //     {
+      //       name: 'schedule-list',
+      //       path: '',
+      //       component: () => import('@/views/screen/material/schedule/index'),
+      //       meta: { cache: 'ScheduleList' },
+      //       props: { type: ScheduleType.COMPLEX, redirect: 'schedule-design' }
+      //     },
+      //     {
+      //       hidden: true,
+      //       name: 'schedule-design',
+      //       path: ':id',
+      //       component: () => import('@/views/screen/material/schedule/designer/index'),
+      //       access: Access.MANAGE_CALENDAR,
+      //       meta: { title: '编辑', cache: 'ScheduleList' },
+      //       props: { redirect: 'schedule-list' }
+      //     }
+      //   ]
+      // },
       {
         path: 'tag',
         component: () => import('@/views/screen/material/tag/index'),
         meta: { title: '资源标签' }
-      },
+      }/* ,
       {
         path: 'review',
         component: () => import('@/views/screen/review/single/index'),
         access: Access.MANAGE_GROUP,
         meta: { title: '审核' }
-      }
+      } */
     ]
   },
   {
@@ -398,15 +398,15 @@ export const asyncRoutes = [
         ],
         meta: { title: '报表导出' }
       },
-      {
-        path: 'internal:dashboard/v0',
-        access: Access.MANAGE_TENANT,
-        meta: { title: '大数据V0', internal: true }
-      },
+      // {
+      //   path: 'internal:dashboard/v0',
+      //   access: Access.MANAGE_TENANT,
+      //   meta: { title: '大数据V0', internal: true }
+      // },
       {
         path: 'internal:dashboard/v1',
         access: Access.MANAGE_TENANT,
-        meta: { title: '大数据V1', internal: true }
+        meta: { title: '大数据', internal: true }
       }
     ]
   },
@@ -601,11 +601,11 @@ export const asyncRoutes = [
     component: () => import('@/views/screen/material/program/ast/index'),
     props: true
   },
-  {
-    hidden: true,
-    path: '/d/dashboard/v0',
-    component: () => import('@/views/dashboard/v0/index')
-  },
+  // {
+  //   hidden: true,
+  //   path: '/d/dashboard/v0',
+  //   component: () => import('@/views/dashboard/v0/index')
+  // },
   {
     hidden: true,
     path: '/d/dashboard/v1',

+ 1 - 1
src/views/screen/deploy/device/index.vue

@@ -186,7 +186,7 @@ export default {
       eventOptions: null,
       typeOptions: [
         { value: PublishTargetType.EVENT, label: '事件' },
-        { value: PublishTargetType.CALENDAR, label: '排期' },
+        // { value: PublishTargetType.CALENDAR, label: '排期' },
         { value: DEFAULT_PLAYBACK, label: '默认播放' }
       ],
       schema: {