浏览代码

1.处理页面导航文本

306132416@qq.com 4 年之前
父节点
当前提交
f2a77d33f9
共有 2 个文件被更改,包括 117 次插入117 次删除
  1. 113 113
      src/config/router.js
  2. 4 4
      src/router/index.js

+ 113 - 113
src/config/router.js

@@ -1,113 +1,113 @@
-const ROUTER = [
-    {
-        title: "数据管理", // 厂商数据管理
-        path: "/uploadRecord", // 点击数据管理展示的路由
-        img1: require("../img/edit-manage1.png"), // 没点击的背景图
-        img2: require("../img/edit-manage2.png"), // 点击了的背景图
-        role: "manufacturer", // 厂商权限
-        list: [
-            {
-                title: "上传记录",
-                path: "/uploadRecord",
-            },
-            {
-                title: "链接上传", // 厂商的链接上传
-                path: "/uploadLinks",
-            },
-            {
-                title: "上传资料",
-                path: "/uploadInfor",
-            },
-        ],
-        pathList: ['/uploadRecord', '/uploadLinks', '/uploadInfor'] // 方便判断是否展开
-    },
-    {
-        title: "传播项目", // 进销商数据管理
-        path: "/inforList", // 点击数据管理展示的路由
-        img1: require("../img/edit-manage1.png"), // 没点击的背景图
-        img2: require("../img/edit-manage2.png"), // 点击了的背景图
-        role: "distributor", // 厂商和经销商都有权限
-        list: [
-            {
-                title: "资料下载",
-                path: "/inforList",
-            },
-            {
-                title: "传播反馈", // 经销商链接上传
-                path: "/uploadLink",
-            },
-        ],
-        pathList: ['/inforList', '/uploadLink']
-    },
-    {
-        title: "账号管理", // 厂商的账号管理
-        path: "/accountIndex",
-        img1: require("../img/User-Settings1.png"),
-        img2: require("../img/User-Settings2.png"),
-        list: [],
-        role: "manufacturer", // 厂商有权限
-    },
-    {
-        title: "账号管理",
-        path: "/accountManage",
-        img1: require("../img/User-Settings1.png"),
-        img2: require("../img/User-Settings2.png"),
-        list: [],
-        role: "distributor", // 经销商有权限
-    },
-    {
-        title: "参数设置",
-        path: "/parameterIndex",
-        img1: require("../img/Setting1.png"),
-        img2: require("../img/Setting2.png"),
-        list: [],
-        role: "manufacturer", // 厂商有权限
-    },
-];
-const TAG = [
-    {
-        num: 1,
-        title: '车系车型',
-        path: '/carSeries'
-    },
-    {
-        num: 2,
-        title: '平台版块',
-        path: '/platformModule'
-    },
-    {
-        num: 3,
-        title: '稿件类别',
-        path: '/contentCategory1'
-    },
-    {
-        num: 4,
-        title: '内容分类',
-        path: '/contentCategory2'
-    },
-    {
-        num: 5,
-        title: '媒体平台',
-        path: '/mediaPlatform'
-    },
-    {
-        num: 6,
-        title: '权限分组',
-        path: '/grouping'
-    }
-    // {
-    //     num: 7,
-    //     title: '链接上传',
-    //     path: 'linkUpload'
-    // },
-    // {
-    //     num: 8,
-    //     title: '常用参数',
-    //     path: 'commonParam'
-    // }
-]
-
-module.exports = {
-    ROUTER,
-    TAG
-}
+const ROUTER = [
+    {
+        title: "数据管理", // 厂商数据管理
+        path: "/uploadRecord", // 点击数据管理展示的路由
+        img1: require("../img/edit-manage1.png"), // 没点击的背景图
+        img2: require("../img/edit-manage2.png"), // 点击了的背景图
+        role: "manufacturer", // 厂商权限
+        list: [
+            {
+                title: "传播项目",
+                path: "/uploadRecord",
+            },
+            {
+                title: "传播反馈", // 厂商的链接上传
+                path: "/uploadLinks",
+            },
+            {
+                title: "上传资料",
+                path: "/uploadInfor",
+            },
+        ],
+        pathList: ['/uploadRecord', '/uploadLinks', '/uploadInfor'] // 方便判断是否展开
+    },
+    {
+        title: "传播项目", // 进销商数据管理
+        path: "/inforList", // 点击数据管理展示的路由
+        img1: require("../img/edit-manage1.png"), // 没点击的背景图
+        img2: require("../img/edit-manage2.png"), // 点击了的背景图
+        role: "distributor", // 厂商和经销商都有权限
+        list: [
+            {
+                title: "资料下载",
+                path: "/inforList",
+            },
+            {
+                title: "传播反馈", // 经销商链接上传
+                path: "/uploadLink",
+            },
+        ],
+        pathList: ['/inforList', '/uploadLink']
+    },
+    {
+        title: "账号管理", // 厂商的账号管理
+        path: "/accountIndex",
+        img1: require("../img/User-Settings1.png"),
+        img2: require("../img/User-Settings2.png"),
+        list: [],
+        role: "manufacturer", // 厂商有权限
+    },
+    {
+        title: "账号管理",
+        path: "/accountManage",
+        img1: require("../img/User-Settings1.png"),
+        img2: require("../img/User-Settings2.png"),
+        list: [],
+        role: "distributor", // 经销商有权限
+    },
+    {
+        title: "参数设置",
+        path: "/parameterIndex",
+        img1: require("../img/Setting1.png"),
+        img2: require("../img/Setting2.png"),
+        list: [],
+        role: "manufacturer", // 厂商有权限
+    },
+];
+const TAG = [
+    {
+        num: 1,
+        title: '车系车型',
+        path: '/carSeries'
+    },
+    {
+        num: 2,
+        title: '平台版块',
+        path: '/platformModule'
+    },
+    {
+        num: 3,
+        title: '稿件类别',
+        path: '/contentCategory1'
+    },
+    {
+        num: 4,
+        title: '内容分类',
+        path: '/contentCategory2'
+    },
+    {
+        num: 5,
+        title: '媒体平台',
+        path: '/mediaPlatform'
+    },
+    {
+        num: 6,
+        title: '权限分组',
+        path: '/grouping'
+    }
+    // {
+    //     num: 7,
+    //     title: '链接上传',
+    //     path: 'linkUpload'
+    // },
+    // {
+    //     num: 8,
+    //     title: '常用参数',
+    //     path: 'commonParam'
+    // }
+]
+
+module.exports = {
+    ROUTER,
+    TAG
+}

+ 4 - 4
src/router/index.js

@@ -68,7 +68,7 @@ const routes = [
                 url: ''
             },
             {
-                name: "上传记录",
+                name: "传播项目",
                 url: '/uploadRecord'
             }
         ],
@@ -82,7 +82,7 @@ const routes = [
                         url: ''
                     },
                     {
-                        name: "上传记录",
+                        name: "传播项目",
                         url: '/uploadRecord'
                     },
                     {
@@ -121,7 +121,7 @@ const routes = [
                     },
                     {
                         name: "详情",
-                        url: "/uploadLink/sonUploadLink" 
+                        url: "/uploadLink/sonUploadLink"
                     }
                 ],
             }
@@ -136,7 +136,7 @@ const routes = [
                 url: ''
             },
             {
-                name: "链接上传",
+                name: "传播反馈",
                 url: '/uploadLinks'
             }
         ],