Browse Source

路由优化

gzb
wangzhonglu 9 months ago
parent
commit
6971ff7ac0

+ 4
- 4
src/router/platform.js View File

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

+ 177
- 0
src/router/region.js View File

20
         isAuth: true,
20
         isAuth: true,
21
         title: "区域管控-首页"
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 View File

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

+ 2
- 2
src/views/platformSection/index.vue View File

24
             <router-link
24
             <router-link
25
               @click.native="routeDropdownChange()"
25
               @click.native="routeDropdownChange()"
26
               tag="div"
26
               tag="div"
27
-              to="/platform/admin"
27
+              to="/platform/adminManage"
28
               class="drop_down_list_item"
28
               class="drop_down_list_item"
29
               >管理员</router-link
29
               >管理员</router-link
30
             >
30
             >
89
     platformManageSelected() {
89
     platformManageSelected() {
90
       return (
90
       return (
91
         this.$route.path.includes("/platform/regionManage") ||
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 View File


src/views/platformSection/regionManage/region/index.vue → src/views/platformSection/regionManage/regionManage.vue View File


+ 14
- 0
src/views/regionSection/applicationManage/applicationGroup.vue View File

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 View File

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 View File

24
             <router-link
24
             <router-link
25
               @click.native="routeDropdownChange()"
25
               @click.native="routeDropdownChange()"
26
               tag="div"
26
               tag="div"
27
-              to="/region/admin"
27
+              to="/region/adminManage"
28
               class="drop_down_list_item"
28
               class="drop_down_list_item"
29
               >管理员</router-link
29
               >管理员</router-link
30
             >
30
             >
48
             >
48
             >
49
           </div>
49
           </div>
50
         </div>
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
         <router-link tag="div" to="/region/notice" class="module_item">
51
         <router-link tag="div" to="/region/notice" class="module_item">
70
           <span>公告</span>
52
           <span>公告</span>
71
         </router-link>
53
         </router-link>
89
     platformManageSelected() {
71
     platformManageSelected() {
90
       return (
72
       return (
91
         this.$route.path.includes("/region/regionManage") ||
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 View File

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 View File

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 View File

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 View File

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 View File

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 View File

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 View File

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 View File

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 View File

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 View File

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 View File

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…
Cancel
Save