Browse Source

Merge commit '81bb6d99293dd1c5569879668bfdd89a45416e06' into gzb

gzb
guozhongbo 9 months ago
parent
commit
05bf484d73

+ 4
- 3
src/router/school.js View File

@@ -198,9 +198,10 @@ export default {
198 198
       }
199 199
     },
200 200
     {
201
-      path: "device",
202
-      component: () => import("@/views/schoolSection/setting/device.vue"),
203
-      name: "device",
201
+      path: "deviceSetting",
202
+      component: () =>
203
+        import("@/views/schoolSection/setting/deviceSetting.vue"),
204
+      name: "deviceSetting",
204 205
       meta: {
205 206
         keepAlive: true,
206 207
         isAuth: true,

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

@@ -48,12 +48,7 @@
48 48
             >
49 49
           </div>
50 50
         </div>
51
-        <div
52
-          :class="[
53
-            'module_item drop_down',
54
-            logManageSelected ? 'selected' : ''
55
-          ]"
56
-        >
51
+        <div :class="['module_item drop_down', logSelected ? 'selected' : '']">
57 52
           <span class="module_title">日志</span>
58 53
           <Icon class="arrow_dropdown" type="md-arrow-dropdown" :size="20" />
59 54
           <div class="drop_down_list" v-if="routeDropdown">
@@ -97,7 +92,7 @@ export default {
97 92
       return this.$route.path.includes("/platform/whitelistLibrary");
98 93
     },
99 94
     // 日志路由选中
100
-    logManageSelected() {
95
+    logSelected() {
101 96
       return this.$route.path.includes("/platform/deviceExport");
102 97
     }
103 98
   },

+ 292
- 0
src/views/schoolSection/index.vue View File

@@ -5,6 +5,242 @@
5 5
         <router-link tag="div" to="/school/home" class="module_item">
6 6
           <span>首页</span>
7 7
         </router-link>
8
+        <div
9
+          :class="[
10
+            'module_item drop_down',
11
+            appManageSelected ? 'selected' : ''
12
+          ]"
13
+        >
14
+          <span class="module_title">应用管理</span>
15
+          <Icon class="arrow_dropdown" type="md-arrow-dropdown" :size="20" />
16
+          <div class="drop_down_list" v-if="routeDropdown">
17
+            <router-link
18
+              @click.native="routeDropdownChange()"
19
+              tag="div"
20
+              to="/school/applicationList"
21
+              class="drop_down_list_item"
22
+              >应用列表</router-link
23
+            >
24
+            <router-link
25
+              @click.native="routeDropdownChange()"
26
+              tag="div"
27
+              to="/school/greenBrowser"
28
+              class="drop_down_list_item"
29
+              >绿色浏览器访问网址</router-link
30
+            >
31
+          </div>
32
+        </div>
33
+        <router-link tag="div" to="/school/userManage" class="module_item">
34
+          <span>用户管理</span>
35
+        </router-link>
36
+        <div
37
+          :class="['module_item drop_down', strategySelected ? 'selected' : '']"
38
+        >
39
+          <span class="module_title">策略</span>
40
+          <Icon class="arrow_dropdown" type="md-arrow-dropdown" :size="20" />
41
+          <div class="drop_down_list" v-if="routeDropdown">
42
+            <router-link
43
+              @click.native="routeDropdownChange()"
44
+              tag="div"
45
+              to="/school/strategyManage"
46
+              class="drop_down_list_item"
47
+              >策略管理</router-link
48
+            >
49
+            <router-link
50
+              @click.native="routeDropdownChange()"
51
+              tag="div"
52
+              to="/school/strategyTemplate"
53
+              class="drop_down_list_item"
54
+              >策略模版</router-link
55
+            >
56
+          </div>
57
+        </div>
58
+        <router-link
59
+          tag="div"
60
+          to="/school/applicationStrategy"
61
+          class="module_item"
62
+        >
63
+          <span>应用策略</span>
64
+        </router-link>
65
+        <div
66
+          :class="[
67
+            'module_item drop_down',
68
+            deviceManageSelected ? 'selected' : ''
69
+          ]"
70
+        >
71
+          <span class="module_title">设备管理</span>
72
+          <Icon class="arrow_dropdown" type="md-arrow-dropdown" :size="20" />
73
+          <div class="drop_down_list" v-if="routeDropdown">
74
+            <router-link
75
+              @click.native="routeDropdownChange()"
76
+              tag="div"
77
+              to="/school/deviceManage"
78
+              class="drop_down_list_item"
79
+              >设备管理</router-link
80
+            >
81
+            <router-link
82
+              @click.native="routeDropdownChange()"
83
+              tag="div"
84
+              to="/school/breakRuleDevice"
85
+              class="drop_down_list_item"
86
+              >违规设备</router-link
87
+            >
88
+            <router-link
89
+              @click.native="routeDropdownChange()"
90
+              tag="div"
91
+              to="/school/outControlDevice"
92
+              class="drop_down_list_item"
93
+              >疑似脱管设备</router-link
94
+            >
95
+            <router-link
96
+              @click.native="routeDropdownChange()"
97
+              tag="div"
98
+              to="/school/removeControlDevice"
99
+              class="drop_down_list_item"
100
+              >解除管控设备</router-link
101
+            >
102
+            <router-link
103
+              @click.native="routeDropdownChange()"
104
+              tag="div"
105
+              to="/school/parentControlDevice"
106
+              class="drop_down_list_item"
107
+              >家长管控设备</router-link
108
+            >
109
+            <router-link
110
+              @click.native="routeDropdownChange()"
111
+              tag="div"
112
+              to="/school/inLineDevice"
113
+              class="drop_down_list_item"
114
+              >在线设备</router-link
115
+            >
116
+          </div>
117
+        </div>
118
+        <div
119
+          :class="[
120
+            'module_item drop_down',
121
+            networkManageSelected ? 'selected' : ''
122
+          ]"
123
+        >
124
+          <span class="module_title">网络管理</span>
125
+          <Icon class="arrow_dropdown" type="md-arrow-dropdown" :size="20" />
126
+          <div class="drop_down_list" v-if="routeDropdown">
127
+            <router-link
128
+              @click.native="routeDropdownChange()"
129
+              tag="div"
130
+              to="/school/whitelistLibrary"
131
+              class="drop_down_list_item"
132
+              >白名单库</router-link
133
+            >
134
+            <router-link
135
+              @click.native="routeDropdownChange()"
136
+              tag="div"
137
+              to="/school/whitelist"
138
+              class="drop_down_list_item"
139
+              >网址白名单</router-link
140
+            >
141
+          </div>
142
+        </div>
143
+        <div
144
+          :class="['module_item drop_down', settingSelected ? 'selected' : '']"
145
+        >
146
+          <span class="module_title">设置</span>
147
+          <Icon class="arrow_dropdown" type="md-arrow-dropdown" :size="20" />
148
+          <div class="drop_down_list" v-if="routeDropdown">
149
+            <router-link
150
+              @click.native="routeDropdownChange()"
151
+              tag="div"
152
+              to="/school/wallpaper"
153
+              class="drop_down_list_item"
154
+              >壁纸</router-link
155
+            >
156
+            <router-link
157
+              @click.native="routeDropdownChange()"
158
+              tag="div"
159
+              to="/school/logo"
160
+              class="drop_down_list_item"
161
+              >LOGO</router-link
162
+            >
163
+            <router-link
164
+              @click.native="routeDropdownChange()"
165
+              tag="div"
166
+              to="/school/deviceSetting"
167
+              class="drop_down_list_item"
168
+              >设备设置</router-link
169
+            >
170
+          </div>
171
+        </div>
172
+        <div :class="['module_item drop_down', logSelected ? 'selected' : '']">
173
+          <span class="module_title">日志</span>
174
+          <Icon class="arrow_dropdown" type="md-arrow-dropdown" :size="20" />
175
+          <div class="drop_down_list" v-if="routeDropdown">
176
+            <router-link
177
+              @click.native="routeDropdownChange()"
178
+              tag="div"
179
+              to="/school/admin"
180
+              class="drop_down_list_item"
181
+              >管理员日志</router-link
182
+            >
183
+            <router-link
184
+              @click.native="routeDropdownChange()"
185
+              tag="div"
186
+              to="/school/devicePush"
187
+              class="drop_down_list_item"
188
+              >设备推送日志</router-link
189
+            >
190
+            <router-link
191
+              @click.native="routeDropdownChange()"
192
+              tag="div"
193
+              to="/school/deviceLocation"
194
+              class="drop_down_list_item"
195
+              >设备位置日志</router-link
196
+            >
197
+            <router-link
198
+              @click.native="routeDropdownChange()"
199
+              tag="div"
200
+              to="/school/deviceEvents"
201
+              class="drop_down_list_item"
202
+              >设备事件日志</router-link
203
+            >
204
+            <router-link
205
+              @click.native="routeDropdownChange()"
206
+              tag="div"
207
+              to="/school/violatingDevice"
208
+              class="drop_down_list_item"
209
+              >违规设备日志</router-link
210
+            >
211
+            <router-link
212
+              @click.native="routeDropdownChange()"
213
+              tag="div"
214
+              to="/school/applicationDownload"
215
+              class="drop_down_list_item"
216
+              >应用下载日志</router-link
217
+            >
218
+            <router-link
219
+              @click.native="routeDropdownChange()"
220
+              tag="div"
221
+              to="/school/appLaunch"
222
+              class="drop_down_list_item"
223
+              >应用启动日志</router-link
224
+            >
225
+            <router-link
226
+              @click.native="routeDropdownChange()"
227
+              tag="div"
228
+              to="/school/deviceInstallation"
229
+              class="drop_down_list_item"
230
+              >设备已安装应用</router-link
231
+            >
232
+            <router-link
233
+              @click.native="routeDropdownChange()"
234
+              tag="div"
235
+              to="/school/deviceExport"
236
+              class="drop_down_list_item"
237
+              >设备导出</router-link
238
+            >
239
+          </div>
240
+        </div>
241
+        <router-link tag="div" to="/school/notice" class="module_item">
242
+          <span>公告</span>
243
+        </router-link>
8 244
       </div>
9 245
       <div class="out_region" @click="exitToPreviousLevel()">退出学校</div>
10 246
     </div>
@@ -21,6 +257,62 @@ export default {
21 257
       routeDropdown: true
22 258
     };
23 259
   },
260
+  computed: {
261
+    // 应用管理路由选中
262
+    appManageSelected() {
263
+      return (
264
+        this.$route.path.includes("/school/applicationList") ||
265
+        this.$route.path.includes("/school/greenBrowser")
266
+      );
267
+    },
268
+    // 策略路由选中
269
+    strategySelected() {
270
+      return (
271
+        this.$route.path.includes("/school/strategyManage") ||
272
+        this.$route.path.includes("/school/strategyTemplate")
273
+      );
274
+    },
275
+    // 设备管理路由选中
276
+    deviceManageSelected() {
277
+      return (
278
+        this.$route.path.includes("/school/deviceManage") ||
279
+        this.$route.path.includes("/school/breakRuleDevice") ||
280
+        this.$route.path.includes("/school/outControlDevice") ||
281
+        this.$route.path.includes("/school/removeControlDevice") ||
282
+        this.$route.path.includes("/school/parentControlDevice") ||
283
+        this.$route.path.includes("/school/inLineDevice")
284
+      );
285
+    },
286
+    // 网络管理路由选中
287
+    networkManageSelected() {
288
+      return (
289
+        this.$route.path.includes("/school/whitelistLibrary") ||
290
+        this.$route.path.includes("/school/whitelist")
291
+      );
292
+    },
293
+    // 设置路由选中
294
+    settingSelected() {
295
+      return (
296
+        this.$route.path.includes("/school/wallpaper") ||
297
+        this.$route.path.includes("/school/logo") ||
298
+        this.$route.path.includes("/school/deviceSetting")
299
+      );
300
+    },
301
+    // 日志路由选中
302
+    logSelected() {
303
+      return (
304
+        this.$route.path.includes("/school/admin") ||
305
+        this.$route.path.includes("/school/devicePush") ||
306
+        this.$route.path.includes("/school/deviceLocation") ||
307
+        this.$route.path.includes("/school/deviceEvents") ||
308
+        this.$route.path.includes("/school/violatingDevice") ||
309
+        this.$route.path.includes("/school/applicationDownload") ||
310
+        this.$route.path.includes("/school/appLaunch") ||
311
+        this.$route.path.includes("/school/deviceInstallation") ||
312
+        this.$route.path.includes("/school/deviceExport")
313
+      );
314
+    }
315
+  },
24 316
   methods: {
25 317
     // 选中菜单后隐藏下拉
26 318
     routeDropdownChange() {

+ 0
- 0
src/views/schoolSection/setting/device.vue View File


+ 14
- 0
src/views/schoolSection/setting/deviceSetting.vue View File

@@ -0,0 +1,14 @@
1
+<template>
2
+  <div class="main_root"></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/schoolSection/setting/logo.vue View File

@@ -0,0 +1,14 @@
1
+<template>
2
+  <div class="main_root"></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/schoolSection/setting/wallpaper.vue View File

@@ -0,0 +1,14 @@
1
+<template>
2
+  <div class="main_root"></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