Przeglądaj źródła

fix: rename menu items for consistency and update paths in seed data

Dave 3 tygodni temu
rodzic
commit
cc2b08bf78
1 zmienionych plików z 24 dodań i 24 usunięć
  1. 24 24
      prisma/mongo/seed-admin.ts

+ 24 - 24
prisma/mongo/seed-admin.ts

@@ -105,7 +105,7 @@ const MENU_SEEDS: SeedMenu[] = [
     legacyParentId: 1,
     title: '视频管理',
     type: 'MENU',
-    name: 'videoList',
+    name: 'videoListMenu',
     path: '/marketing/video',
     icon: 'i-carbon:video',
     order: 1,
@@ -176,7 +176,7 @@ const MENU_SEEDS: SeedMenu[] = [
     legacyParentId: 1,
     title: '分类管理',
     type: 'MENU',
-    name: 'categoryList',
+    name: 'categoryListMenu',
     path: '/marketing/category',
     icon: 'i-carbon:category',
     order: 2,
@@ -247,7 +247,7 @@ const MENU_SEEDS: SeedMenu[] = [
     legacyParentId: 1,
     title: '标签管理',
     type: 'MENU',
-    name: 'tagList',
+    name: 'tagListMenu',
     path: '/marketing/tag',
     icon: 'i-carbon:tag',
     order: 3,
@@ -318,7 +318,7 @@ const MENU_SEEDS: SeedMenu[] = [
     legacyParentId: 1,
     title: '广告管理',
     type: 'MENU',
-    name: 'adsList',
+    name: 'adsListMenu',
     path: '/marketing/ads',
     icon: 'i-carbon:image-copy',
     order: 4,
@@ -389,8 +389,8 @@ const MENU_SEEDS: SeedMenu[] = [
     legacyParentId: 1,
     title: '参数管理',
     type: 'MENU',
-    name: 'paramList',
-    path: '/marketing/param',
+    name: 'paramListMenu',
+    path: '/setting/param',
     icon: 'i-carbon:settings',
     order: 5,
     meta: {
@@ -405,9 +405,9 @@ const MENU_SEEDS: SeedMenu[] = [
     title: '参数列表',
     type: 'SUBMENU',
     name: 'paramList',
-    path: '/marketing/paramList',
+    path: '/setting/paramList',
     icon: null,
-    componentKey: '@/views/marketing_center/param_mgnt/list.vue',
+    componentKey: '@/views/setting_mgnt/param_mgnt/list.vue',
     order: 1,
     meta: {
       title: '参数列表',
@@ -423,15 +423,15 @@ const MENU_SEEDS: SeedMenu[] = [
     title: '新增参数',
     type: 'SUBMENU',
     name: 'paramCreate',
-    path: '/marketing/param/detail',
+    path: '/setting/param/detail',
     icon: null,
-    componentKey: '@/views/marketing_center/param_mgnt/detail.vue',
+    componentKey: '@/views/setting_mgnt/param_mgnt/detail.vue',
     order: 2,
     meta: {
       title: '新增参数',
       i18n: 'route.general.param.create',
       sidebar: false,
-      activeMenu: '/marketing/paramList',
+      activeMenu: '/setting/paramList',
       cache: true,
       noCache: 'paramList',
     },
@@ -442,15 +442,15 @@ const MENU_SEEDS: SeedMenu[] = [
     title: '编辑参数',
     type: 'SUBMENU',
     name: 'paramEdit',
-    path: '/marketing/param/detail/:id',
+    path: '/setting/param/detail/:id',
     icon: null,
-    componentKey: '@/views/marketing_center/param_mgnt/detail.vue',
+    componentKey: '@/views/setting_mgnt/param_mgnt/detail.vue',
     order: 3,
     meta: {
       title: '编辑参数',
       i18n: 'route.general.param.edit',
       sidebar: false,
-      activeMenu: '/marketing/paramList',
+      activeMenu: '/setting/paramList',
       cache: true,
       noCache: 'paramList',
     },
@@ -460,7 +460,7 @@ const MENU_SEEDS: SeedMenu[] = [
     legacyParentId: 1,
     title: '渠道管理',
     type: 'MENU',
-    name: 'channelList',
+    name: 'channelListMenu',
     path: '/marketing/channel',
     icon: 'i-carbon:network-3',
     order: 6,
@@ -478,7 +478,7 @@ const MENU_SEEDS: SeedMenu[] = [
     name: 'channelList',
     path: '/marketing/channelList',
     icon: null,
-    componentKey: '@/views/marketing_center/channel_mgnt/list.vue',
+    componentKey: '@/views/setting_mgnt/channel_mgnt/list.vue',
     order: 1,
     meta: {
       title: '渠道列表',
@@ -496,7 +496,7 @@ const MENU_SEEDS: SeedMenu[] = [
     name: 'channelCreate',
     path: '/marketing/channel/detail',
     icon: null,
-    componentKey: '@/views/marketing_center/channel_mgnt/detail.vue',
+    componentKey: '@/views/setting_mgnt/channel_mgnt/detail.vue',
     order: 2,
     meta: {
       title: '新增渠道',
@@ -515,7 +515,7 @@ const MENU_SEEDS: SeedMenu[] = [
     name: 'channelEdit',
     path: '/marketing/channel/detail/:id',
     icon: null,
-    componentKey: '@/views/marketing_center/channel_mgnt/detail.vue',
+    componentKey: '@/views/setting_mgnt/channel_mgnt/detail.vue',
     order: 3,
     meta: {
       title: '编辑渠道',
@@ -550,7 +550,7 @@ const MENU_SEEDS: SeedMenu[] = [
     legacyParentId: 26,
     title: 'APP访问记录',
     type: 'MENU',
-    name: 'appAccessList',
+    name: 'appAccessListMenu',
     path: '/datacenter/appAccessRecord',
     icon: 'i-carbon:mobile',
     order: 1,
@@ -583,7 +583,7 @@ const MENU_SEEDS: SeedMenu[] = [
     legacyParentId: 26,
     title: '广告点击记录',
     type: 'MENU',
-    name: 'adsAccessList',
+    name: 'adsAccessListMenu',
     path: '/datacenter/adsAccessRecord',
     icon: 'i-carbon:touch-1',
     order: 2,
@@ -668,7 +668,7 @@ const MENU_SEEDS: SeedMenu[] = [
     legacyParentId: 31,
     title: '广告统计',
     type: 'MENU',
-    name: 'adsStatsList',
+    name: 'adsStatsListMenu',
     path: '/stats/adsStats',
     icon: 'i-carbon:chart-bar',
     order: 2,
@@ -735,7 +735,7 @@ const MENU_SEEDS: SeedMenu[] = [
     legacyParentId: 31,
     title: '渠道统计',
     type: 'MENU',
-    name: 'channelStatsList',
+    name: 'channelStatsListMenu',
     path: '/stats/channelStats',
     icon: 'i-carbon:flow',
     order: 4,
@@ -768,7 +768,7 @@ const MENU_SEEDS: SeedMenu[] = [
     legacyParentId: 31,
     title: '渠道汇总',
     type: 'MENU',
-    name: 'channelStatsSummaryList',
+    name: 'channelStatsSummaryListMenu',
     path: '/stats/channelStatsSummary',
     icon: 'i-carbon:report',
     order: 5,
@@ -836,7 +836,7 @@ const MENU_SEEDS: SeedMenu[] = [
     legacyParentId: 42,
     title: '角色列表',
     type: 'MENU',
-    name: 'roleList',
+    name: 'roleListMenu',
     path: '/system/roles',
     icon: 'i-carbon:user-role',
     order: 2,