瀏覽代碼

路由优化

gzb
wangzhonglu 9 月之前
父節點
當前提交
6971ff7ac0

+ 4
- 4
src/router/platform.js 查看文件

@@ -24,7 +24,7 @@ export default {
24 24
     {
25 25
       path: "regionManage",
26 26
       component: () =>
27
-        import("@/views/platformSection/regionManage/region/index.vue"),
27
+        import("@/views/platformSection/regionManage/regionManage.vue"),
28 28
       name: "regionManage",
29 29
       meta: {
30 30
         keepAlive: true,
@@ -33,10 +33,10 @@ export default {
33 33
       }
34 34
     },
35 35
     {
36
-      path: "admin",
36
+      path: "adminManage",
37 37
       component: () =>
38
-        import("@/views/platformSection/regionManage/admin/index.vue"),
39
-      name: "admin",
38
+        import("@/views/platformSection/regionManage/adminManage.vue"),
39
+      name: "adminManage",
40 40
       meta: {
41 41
         keepAlive: true,
42 42
         isAuth: true,

+ 177
- 0
src/router/region.js 查看文件

@@ -20,6 +20,183 @@ export default {
20 20
         isAuth: true,
21 21
         title: "区域管控-首页"
22 22
       }
23
+    },
24
+    {
25
+      path: "regionManage",
26
+      component: () =>
27
+        import("@/views/regionSection/regionManage/region/index.vue"),
28
+      name: "regionManage",
29
+      meta: {
30
+        keepAlive: true,
31
+        isAuth: true,
32
+        title: "区域管控-区域管理"
33
+      }
34
+    },
35
+    {
36
+      path: "schoolManage",
37
+      component: () =>
38
+        import("@/views/regionSection/regionManage/school/index.vue"),
39
+      name: "schoolManage",
40
+      meta: {
41
+        keepAlive: true,
42
+        isAuth: true,
43
+        title: "区域管控-学校管理"
44
+      }
45
+    },
46
+    {
47
+      path: "adminManage",
48
+      component: () =>
49
+        import("@/views/regionSection/regionManage/admin/index.vue"),
50
+      name: "adminManage",
51
+      meta: {
52
+        keepAlive: true,
53
+        isAuth: true,
54
+        title: "区域管控-管理员"
55
+      }
56
+    },
57
+    {
58
+      path: "applicationGroup",
59
+      component: () =>
60
+        import("@/views/regionSection/applicationManage/applicationGroup.vue"),
61
+      name: "applicationGroup",
62
+      meta: {
63
+        keepAlive: true,
64
+        isAuth: true,
65
+        title: "区域管控-应用分组"
66
+      }
67
+    },
68
+    {
69
+      path: "applicationManage",
70
+      component: () =>
71
+        import("@/views/regionSection/applicationManage/applicationManage.vue"),
72
+      name: "applicationManage",
73
+      meta: {
74
+        keepAlive: true,
75
+        isAuth: true,
76
+        title: "区域管控-应用管理"
77
+      }
78
+    },
79
+    {
80
+      path: "whitelistLibrary",
81
+      component: () =>
82
+        import("@/views/regionSection/networkManage/whitelistLibrary.vue"),
83
+      name: "whitelistLibrary",
84
+      meta: {
85
+        keepAlive: true,
86
+        isAuth: true,
87
+        title: "区域管控-白名单库"
88
+      }
89
+    },
90
+    {
91
+      path: "whitelist",
92
+      component: () =>
93
+        import("@/views/regionSection/networkManage/whitelist.vue"),
94
+      name: "whitelist",
95
+      meta: {
96
+        keepAlive: true,
97
+        isAuth: true,
98
+        title: "区域管控-白名单"
99
+      }
100
+    },
101
+    {
102
+      path: "settingWallpaper",
103
+      component: () => import("@/views/regionSection/setting/wallpaper.vue"),
104
+      name: "wallpaper",
105
+      meta: {
106
+        keepAlive: true,
107
+        isAuth: true,
108
+        title: "区域管控-壁纸"
109
+      }
110
+    },
111
+    {
112
+      path: "settingLogo",
113
+      component: () => import("@/views/regionSection/setting/logo.vue"),
114
+      name: "logo",
115
+      meta: {
116
+        keepAlive: true,
117
+        isAuth: true,
118
+        title: "区域管控-LOGO"
119
+      }
120
+    },
121
+    {
122
+      path: "settingDevice",
123
+      component: () => import("@/views/regionSection/setting/device.vue"),
124
+      name: "setting_device",
125
+      meta: {
126
+        keepAlive: true,
127
+        isAuth: true,
128
+        title: "区域管控-设备设置"
129
+      }
130
+    },
131
+    {
132
+      path: "settingPowerUp",
133
+      component: () => import("@/views/regionSection/setting/powerUp.vue"),
134
+      name: "powerUp",
135
+      meta: {
136
+        keepAlive: true,
137
+        isAuth: true,
138
+        title: "区域管控-开机设置"
139
+      }
140
+    },
141
+    {
142
+      path: "searchAllUsers",
143
+      component: () => import("@/views/regionSection/search/allUsers.vue"),
144
+      name: "searchAllUsers",
145
+      meta: {
146
+        keepAlive: true,
147
+        isAuth: true,
148
+        title: "区域管控-搜索所有用户"
149
+      }
150
+    },
151
+    {
152
+      path: "searchDeviceUsers",
153
+      component: () => import("@/views/regionSection/search/deviceUsers.vue"),
154
+      name: "searchDeviceUsers",
155
+      meta: {
156
+        keepAlive: true,
157
+        isAuth: true,
158
+        title: "区域管控-搜索设备用户"
159
+      }
160
+    },
161
+    {
162
+      path: "searchDevice",
163
+      component: () => import("@/views/regionSection/search/device.vue"),
164
+      name: "searchDevice",
165
+      meta: {
166
+        keepAlive: true,
167
+        isAuth: true,
168
+        title: "区域管控-搜索设备"
169
+      }
170
+    },
171
+    {
172
+      path: "searchAllApps",
173
+      component: () => import("@/views/regionSection/search/allApps.vue"),
174
+      name: "searchAllApps",
175
+      meta: {
176
+        keepAlive: true,
177
+        isAuth: true,
178
+        title: "区域管控-搜索所有应用"
179
+      }
180
+    },
181
+    {
182
+      path: "searchAllWhitelists",
183
+      component: () => import("@/views/regionSection/search/allWhitelists.vue"),
184
+      name: "searchAllWhitelists",
185
+      meta: {
186
+        keepAlive: true,
187
+        isAuth: true,
188
+        title: "区域管控-搜索所有应用"
189
+      }
190
+    },
191
+    {
192
+      path: "notice",
193
+      component: () => import("@/views/regionSection/notice/index.vue"),
194
+      name: "notice",
195
+      meta: {
196
+        keepAlive: true,
197
+        isAuth: true,
198
+        title: "区域管控-公告"
199
+      }
23 200
     }
24 201
   ]
25 202
 };

+ 2
- 2
src/router/school.js 查看文件

@@ -1,6 +1,6 @@
1 1
 export default {
2 2
   path: "school",
3
-  component: () => import("@/views/school/index.vue"),
3
+  component: () => import("@/views/schoolSection/index.vue"),
4 4
   name: "school",
5 5
   meta: {
6 6
     keepAlive: true,
@@ -13,7 +13,7 @@ export default {
13 13
   children: [
14 14
     {
15 15
       path: "home",
16
-      component: () => import("@/views/school/home/index.vue"),
16
+      component: () => import("@/views/schoolSection/home/index.vue"),
17 17
       name: "home",
18 18
       meta: {
19 19
         keepAlive: true,

+ 2
- 2
src/views/platformSection/index.vue 查看文件

@@ -24,7 +24,7 @@
24 24
             <router-link
25 25
               @click.native="routeDropdownChange()"
26 26
               tag="div"
27
-              to="/platform/admin"
27
+              to="/platform/adminManage"
28 28
               class="drop_down_list_item"
29 29
               >管理员</router-link
30 30
             >
@@ -89,7 +89,7 @@ export default {
89 89
     platformManageSelected() {
90 90
       return (
91 91
         this.$route.path.includes("/platform/regionManage") ||
92
-        this.$route.path.includes("/platform/admin")
92
+        this.$route.path.includes("/platform/adminManage")
93 93
       );
94 94
     },
95 95
     // 网络管理路由选中

src/views/platformSection/regionManage/admin/index.vue → src/views/platformSection/regionManage/adminManage.vue 查看文件


src/views/platformSection/regionManage/region/index.vue → src/views/platformSection/regionManage/regionManage.vue 查看文件


+ 14
- 0
src/views/regionSection/applicationManage/applicationGroup.vue 查看文件

@@ -0,0 +1,14 @@
1
+<template>
2
+  <div></div>
3
+</template>
4
+
5
+<script>
6
+export default {
7
+  data() {
8
+    return {};
9
+  },
10
+  methods: {}
11
+};
12
+</script>
13
+
14
+<style lang="less" scoped></style>

+ 14
- 0
src/views/regionSection/applicationManage/applicationManage.vue 查看文件

@@ -0,0 +1,14 @@
1
+<template>
2
+  <div></div>
3
+</template>
4
+
5
+<script>
6
+export default {
7
+  data() {
8
+    return {};
9
+  },
10
+  methods: {}
11
+};
12
+</script>
13
+
14
+<style lang="less" scoped></style>

+ 2
- 20
src/views/regionSection/index.vue 查看文件

@@ -24,7 +24,7 @@
24 24
             <router-link
25 25
               @click.native="routeDropdownChange()"
26 26
               tag="div"
27
-              to="/region/admin"
27
+              to="/region/adminManage"
28 28
               class="drop_down_list_item"
29 29
               >管理员</router-link
30 30
             >
@@ -48,24 +48,6 @@
48 48
             >
49 49
           </div>
50 50
         </div>
51
-        <div
52
-          :class="[
53
-            'module_item drop_down',
54
-            logManageSelected ? 'selected' : ''
55
-          ]"
56
-        >
57
-          <span class="module_title">日志</span>
58
-          <Icon class="arrow_dropdown" type="md-arrow-dropdown" :size="20" />
59
-          <div class="drop_down_list" v-if="routeDropdown">
60
-            <router-link
61
-              @click.native="routeDropdownChange()"
62
-              tag="div"
63
-              to="/region/deviceExport"
64
-              class="drop_down_list_item"
65
-              >设备导出</router-link
66
-            >
67
-          </div>
68
-        </div>
69 51
         <router-link tag="div" to="/region/notice" class="module_item">
70 52
           <span>公告</span>
71 53
         </router-link>
@@ -89,7 +71,7 @@ export default {
89 71
     platformManageSelected() {
90 72
       return (
91 73
         this.$route.path.includes("/region/regionManage") ||
92
-        this.$route.path.includes("/region/admin")
74
+        this.$route.path.includes("/region/adminManage")
93 75
       );
94 76
     },
95 77
     // 网络管理路由选中

+ 14
- 0
src/views/regionSection/networkManage/whitelist.vue 查看文件

@@ -0,0 +1,14 @@
1
+<template>
2
+  <div></div>
3
+</template>
4
+
5
+<script>
6
+export default {
7
+  data() {
8
+    return {};
9
+  },
10
+  methods: {}
11
+};
12
+</script>
13
+
14
+<style lang="less" scoped></style>

+ 14
- 0
src/views/regionSection/search/allApps.vue 查看文件

@@ -0,0 +1,14 @@
1
+<template>
2
+  <div></div>
3
+</template>
4
+
5
+<script>
6
+export default {
7
+  data() {
8
+    return {};
9
+  },
10
+  methods: {}
11
+};
12
+</script>
13
+
14
+<style lang="less" scoped></style>

+ 14
- 0
src/views/regionSection/search/allUsers.vue 查看文件

@@ -0,0 +1,14 @@
1
+<template>
2
+  <div></div>
3
+</template>
4
+
5
+<script>
6
+export default {
7
+  data() {
8
+    return {};
9
+  },
10
+  methods: {}
11
+};
12
+</script>
13
+
14
+<style lang="less" scoped></style>

+ 14
- 0
src/views/regionSection/search/allWhitelists.vue 查看文件

@@ -0,0 +1,14 @@
1
+<template>
2
+  <div></div>
3
+</template>
4
+
5
+<script>
6
+export default {
7
+  data() {
8
+    return {};
9
+  },
10
+  methods: {}
11
+};
12
+</script>
13
+
14
+<style lang="less" scoped></style>

+ 14
- 0
src/views/regionSection/search/device.vue 查看文件

@@ -0,0 +1,14 @@
1
+<template>
2
+  <div></div>
3
+</template>
4
+
5
+<script>
6
+export default {
7
+  data() {
8
+    return {};
9
+  },
10
+  methods: {}
11
+};
12
+</script>
13
+
14
+<style lang="less" scoped></style>

+ 14
- 0
src/views/regionSection/search/deviceUsers.vue 查看文件

@@ -0,0 +1,14 @@
1
+<template>
2
+  <div></div>
3
+</template>
4
+
5
+<script>
6
+export default {
7
+  data() {
8
+    return {};
9
+  },
10
+  methods: {}
11
+};
12
+</script>
13
+
14
+<style lang="less" scoped></style>

+ 14
- 0
src/views/regionSection/setting/allApps.vue 查看文件

@@ -0,0 +1,14 @@
1
+<template>
2
+  <div></div>
3
+</template>
4
+
5
+<script>
6
+export default {
7
+  data() {
8
+    return {};
9
+  },
10
+  methods: {}
11
+};
12
+</script>
13
+
14
+<style lang="less" scoped></style>

+ 14
- 0
src/views/regionSection/setting/device.vue 查看文件

@@ -0,0 +1,14 @@
1
+<template>
2
+  <div></div>
3
+</template>
4
+
5
+<script>
6
+export default {
7
+  data() {
8
+    return {};
9
+  },
10
+  methods: {}
11
+};
12
+</script>
13
+
14
+<style lang="less" scoped></style>

+ 14
- 0
src/views/regionSection/setting/logo.vue 查看文件

@@ -0,0 +1,14 @@
1
+<template>
2
+  <div></div>
3
+</template>
4
+
5
+<script>
6
+export default {
7
+  data() {
8
+    return {};
9
+  },
10
+  methods: {}
11
+};
12
+</script>
13
+
14
+<style lang="less" scoped></style>

+ 14
- 0
src/views/regionSection/setting/powerUp.vue 查看文件

@@ -0,0 +1,14 @@
1
+<template>
2
+  <div></div>
3
+</template>
4
+
5
+<script>
6
+export default {
7
+  data() {
8
+    return {};
9
+  },
10
+  methods: {}
11
+};
12
+</script>
13
+
14
+<style lang="less" scoped></style>

+ 14
- 0
src/views/regionSection/setting/wallpaper.vue 查看文件

@@ -0,0 +1,14 @@
1
+<template>
2
+  <div></div>
3
+</template>
4
+
5
+<script>
6
+export default {
7
+  data() {
8
+    return {};
9
+  },
10
+  methods: {}
11
+};
12
+</script>
13
+
14
+<style lang="less" scoped></style>

Loading…
取消
儲存