Browse Source

Merge commit '4200e0e0b9d5771166aabc388b91eda8c0c11cbd' into gzb

gzb
guozhongbo 8 months ago
parent
commit
3d70ce3348
35 changed files with 270 additions and 77 deletions
  1. 1
    1
      src/api/admin.js
  2. 2
    1
      src/api/region.js
  3. 12
    9
      src/assets/less/common.less
  4. 9
    0
      src/views/platformSection/deviceManage/deviceManageExport/deviceManageExport.vue
  5. 3
    0
      src/views/platformSection/deviceManage/deviceManageImport/batch.vue
  6. 4
    0
      src/views/platformSection/deviceManage/deviceManageImport/detail.vue
  7. 25
    0
      src/views/platformSection/home/index.vue
  8. 4
    0
      src/views/platformSection/log/logDeviceExport.vue
  9. 4
    0
      src/views/platformSection/networkManage/whitelistLibrary.vue
  10. 1
    0
      src/views/platformSection/notice/notice.vue
  11. 54
    32
      src/views/platformSection/regionManage/adminManage.vue
  12. 7
    32
      src/views/platformSection/regionManage/regionManage.vue
  13. 22
    1
      src/views/regionSection/home/index.vue
  14. 3
    0
      src/views/schoolSection/applicationManage/greenBrowser.vue
  15. 3
    0
      src/views/schoolSection/applicationStrategy/appStrategyTemplate.vue
  16. 4
    0
      src/views/schoolSection/deviceManage/breakRuleDevice.vue
  17. 5
    0
      src/views/schoolSection/deviceManage/deviceManage.vue
  18. 7
    0
      src/views/schoolSection/deviceManage/inLineDevice.vue
  19. 7
    0
      src/views/schoolSection/deviceManage/outControlDevice.vue
  20. 7
    0
      src/views/schoolSection/deviceManage/removeControlDevice.vue
  21. 22
    0
      src/views/schoolSection/home/index.vue
  22. 3
    0
      src/views/schoolSection/log/admin.vue
  23. 6
    0
      src/views/schoolSection/log/appLaunch.vue
  24. 7
    0
      src/views/schoolSection/log/applicationDownload.vue
  25. 7
    0
      src/views/schoolSection/log/deviceEvents.vue
  26. 7
    1
      src/views/schoolSection/log/deviceExport.vue
  27. 8
    0
      src/views/schoolSection/log/deviceInstallation.vue
  28. 6
    0
      src/views/schoolSection/log/deviceLocation.vue
  29. 3
    0
      src/views/schoolSection/log/devicePush.vue
  30. 6
    0
      src/views/schoolSection/log/violatingDevice.vue
  31. 2
    0
      src/views/schoolSection/networkManage/whitelist.vue
  32. 3
    0
      src/views/schoolSection/networkManage/whitelistLibrary.vue
  33. 1
    0
      src/views/schoolSection/notice/notice.vue
  34. 1
    0
      src/views/schoolSection/setting/logo.vue
  35. 4
    0
      src/views/schoolSection/setting/wallpaper.vue

+ 1
- 1
src/api/admin.js View File

@@ -47,4 +47,4 @@ export const admin_edit_pwd = (data) => setRequest("admin/edit_pwd", data);
47 47
 /**
48 48
  * 1.2.4个人中心--修改手机号
49 49
  */
50
-export const admin_edit_phone = (data) => setRequest("admin/edit_phone", data);
50
+export const admin_edit_phone = (data) => setRequest("admin/edit_phone", data);

+ 2
- 1
src/api/region.js View File

@@ -25,7 +25,8 @@ export const region_list_rs = (data) => setRequest("region/list_rs", data);
25 25
 /**
26 26
  * 2.1.6 区域--树形
27 27
  */
28
-export const region_list_sel_tree = (data) => setRequest("region/list_sel_tree", data);
28
+export const region_list_sel_tree = (data) =>
29
+  setRequest("region/list_sel_tree", data);
29 30
 /**
30 31
  * 2.2区域--添加
31 32
  */

+ 12
- 9
src/assets/less/common.less View File

@@ -141,12 +141,12 @@ body,
141 141
     line-height: 1.6;
142 142
     padding: 0 8px;
143 143
   }
144
-  .ivu-table-overflowX {
145
-    overflow: visible;
146
-  }
147
-  .ivu-table-tip {
148
-    overflow: hidden;
149
-  }
144
+  // .ivu-table-overflowX {
145
+  //   overflow: visible;
146
+  // }
147
+  // .ivu-table-tip {
148
+  //   overflow: hidden;
149
+  // }
150 150
 }
151 151
 // iview表单全局自定义样式
152 152
 .ivu-form {
@@ -378,14 +378,17 @@ fieldset[disabled] .ivu-input,
378 378
   border-radius: 8px;
379 379
 }
380 380
 .ivu-modal-confirm-footer .ivu-btn.ivu-btn-text {
381
-  margin-right: 16px;
382 381
   color: #7c8db5;
383 382
   border: 1px solid #b8c2d9;
384 383
   border-radius: 8px;
385 384
 }
385
+.ivu-modal-confirm-footer button + button,
386
+.ivu-modal-footer button + button {
387
+  margin-left: 16px;
388
+}
386 389
 .main_root {
387 390
   //margin: 0 16px 10px;
388
- height: calc(100% - 10px);
391
+  height: calc(100% - 10px);
389 392
   border-radius: 15px;
390 393
   border: 1px solid #e9f0f9;
391 394
   background-color: #fff;
@@ -484,4 +487,4 @@ fieldset[disabled] .ivu-input,
484 487
       display: none;
485 488
     }
486 489
   }
487
-}
490
+}

+ 9
- 0
src/views/platformSection/deviceManage/deviceManageExport/deviceManageExport.vue View File

@@ -97,21 +97,25 @@ export default {
97 97
           },
98 98
           {
99 99
             title: "所属区域",
100
+            minWidth: 100,
100 101
             key: "regionName",
101 102
             align: "center"
102 103
           },
103 104
           {
104 105
             title: "学校名称",
106
+            minWidth: 150,
105 107
             key: "schoolName",
106 108
             align: "center"
107 109
           },
108 110
           {
109 111
             title: "班级",
112
+            minWidth: 150,
110 113
             key: "classname",
111 114
             align: "center"
112 115
           },
113 116
           {
114 117
             title: "姓名",
118
+            minWidth: 100,
115 119
             key: "username",
116 120
             align: "center"
117 121
           },
@@ -145,26 +149,31 @@ export default {
145 149
         },
146 150
         {
147 151
           title: "学校名称",
152
+          minWidth: 150,
148 153
           key: "schoolName",
149 154
           align: "center"
150 155
         },
151 156
         {
152 157
           title: "班级",
158
+          minWidth: 150,
153 159
           key: "classname",
154 160
           align: "center"
155 161
         },
156 162
         {
157 163
           title: "姓名",
164
+          minWidth: 100,
158 165
           key: "username",
159 166
           align: "center"
160 167
         },
161 168
         {
162 169
           title: "设备号",
170
+          width: 170,
163 171
           key: "sn",
164 172
           align: "center"
165 173
         },
166 174
         {
167 175
           title: "设备型号",
176
+          width: 150,
168 177
           key: "deviceModel",
169 178
           align: "center"
170 179
         },

+ 3
- 0
src/views/platformSection/deviceManage/deviceManageImport/batch.vue View File

@@ -252,6 +252,7 @@ export default {
252 252
         },
253 253
         {
254 254
           title: "所属区域",
255
+          minWidth: 100,
255 256
           key: "regionName",
256 257
           align: "center"
257 258
         },
@@ -263,11 +264,13 @@ export default {
263 264
         },
264 265
         {
265 266
           title: "导入数量",
267
+          minWidth: 100,
266 268
           key: "importNum",
267 269
           align: "center"
268 270
         },
269 271
         {
270 272
           title: "操作人",
273
+          minWidth: 100,
271 274
           key: "updatename",
272 275
           align: "center"
273 276
         },

+ 4
- 0
src/views/platformSection/deviceManage/deviceManageImport/detail.vue View File

@@ -208,11 +208,13 @@ export default {
208 208
         },
209 209
         {
210 210
           title: "所属区域",
211
+          minWidth: 150,
211 212
           key: "regionName",
212 213
           align: "center"
213 214
         },
214 215
         {
215 216
           title: "设备号",
217
+          width: 170,
216 218
           key: "sn",
217 219
           align: "center"
218 220
         },
@@ -224,6 +226,7 @@ export default {
224 226
         },
225 227
         {
226 228
           title: "创建人",
229
+          minWidth: 100,
227 230
           key: "createname",
228 231
           align: "center"
229 232
         },
@@ -235,6 +238,7 @@ export default {
235 238
         },
236 239
         {
237 240
           title: "操作人",
241
+          minWidth: 100,
238 242
           key: "updatename",
239 243
           align: "center"
240 244
         },

+ 25
- 0
src/views/platformSection/home/index.vue View File

@@ -104,6 +104,8 @@ import coordChinaMap from "@/assets/echartsMap/coordChinaMap.json";
104 104
 export default {
105 105
   data() {
106 106
     return {
107
+      // 图表实例
108
+      echartsInstances: [],
107 109
       // 概况信息
108 110
       regionOverviewInfo: {
109 111
         usernum: 0,
@@ -122,21 +124,25 @@ export default {
122 124
         },
123 125
         {
124 126
           title: "区域名称",
127
+          minWidth: 100,
125 128
           key: "regionName",
126 129
           align: "center"
127 130
         },
128 131
         {
129 132
           title: "学校数",
133
+          width: 80,
130 134
           key: "schoolnum",
131 135
           align: "center"
132 136
         },
133 137
         {
134 138
           title: "设备数",
139
+          width: 80,
135 140
           key: "devicenum",
136 141
           align: "center"
137 142
         },
138 143
         {
139 144
           title: "用户数",
145
+          width: 80,
140 146
           key: "usernum",
141 147
           align: "center"
142 148
         }
@@ -170,7 +176,20 @@ export default {
170 176
     this.getAppDownloadList();
171 177
     this.getDeviceActivityList();
172 178
   },
179
+  mounted() {
180
+    window.addEventListener("resize", this.echartsResize);
181
+  },
182
+  beforeDestroy() {
183
+    window.removeEventListener("resize", this.echartsResize);
184
+  },
173 185
   methods: {
186
+    echartsResize() {
187
+      this.echartsInstances.forEach((eInstance) => {
188
+        if (eInstance && eInstance.getOption()) {
189
+          eInstance.resize();
190
+        }
191
+      });
192
+    },
174 193
     // 概况信息
175 194
     getRegionOverview() {
176 195
       ra_list_rv({
@@ -371,6 +390,7 @@ export default {
371 390
       const eInstance = echarts.init(document.getElementById("mapAreaEcharts"));
372 391
       eInstance.clear();
373 392
       eInstance.setOption(options);
393
+      this.echartsInstances.push(eInstance);
374 394
     },
375 395
     // 设备类型信息
376 396
     getDeviceModelList() {
@@ -442,6 +462,7 @@ export default {
442 462
       );
443 463
       eInstance.clear();
444 464
       eInstance.setOption(options);
465
+      this.echartsInstances.push(eInstance);
445 466
     },
446 467
     // 客户端版本-管控应用
447 468
     getControlVersionList() {
@@ -511,6 +532,7 @@ export default {
511 532
       );
512 533
       eInstance.clear();
513 534
       eInstance.setOption(options);
535
+      this.echartsInstances.push(eInstance);
514 536
     },
515 537
     // 客户端版本-应用商店
516 538
     getAppVersionList() {
@@ -580,6 +602,7 @@ export default {
580 602
       );
581 603
       eInstance.clear();
582 604
       eInstance.setOption(options);
605
+      this.echartsInstances.push(eInstance);
583 606
     },
584 607
     // 应用下载
585 608
     getAppDownloadList() {
@@ -692,6 +715,7 @@ export default {
692 715
       );
693 716
       eInstance.clear();
694 717
       eInstance.setOption(options);
718
+      this.echartsInstances.push(eInstance);
695 719
     },
696 720
     // 设备活跃度
697 721
     getDeviceActivityList() {
@@ -839,6 +863,7 @@ export default {
839 863
       );
840 864
       eInstance.clear();
841 865
       eInstance.setOption(options);
866
+      this.echartsInstances.push(eInstance);
842 867
     }
843 868
   }
844 869
 };

+ 4
- 0
src/views/platformSection/log/logDeviceExport.vue View File

@@ -68,21 +68,25 @@ export default {
68 68
         },
69 69
         {
70 70
           title: "区域名称",
71
+          minWidth: 100,
71 72
           key: "regionName",
72 73
           align: "center"
73 74
         },
74 75
         {
75 76
           title: "学校数",
77
+          minWidth: 100,
76 78
           key: "schoolnum",
77 79
           align: "center"
78 80
         },
79 81
         {
80 82
           title: "用户数",
83
+          minWidth: 100,
81 84
           key: "usernum",
82 85
           align: "center"
83 86
         },
84 87
         {
85 88
           title: "设备数",
89
+          minWidth: 100,
86 90
           key: "snnum",
87 91
           align: "center"
88 92
         },

+ 4
- 0
src/views/platformSection/networkManage/whitelistLibrary.vue View File

@@ -237,21 +237,25 @@ export default {
237 237
         },
238 238
         {
239 239
           title: "应用名称",
240
+          minWidth: 150,
240 241
           slot: "nameSlot",
241 242
           align: "center"
242 243
         },
243 244
         {
244 245
           title: "版本名称",
246
+          minWidth: 100,
245 247
           key: "versionName",
246 248
           align: "center"
247 249
         },
248 250
         {
249 251
           title: "包名",
252
+          minWidth: 100,
250 253
           key: "website",
251 254
           align: "center"
252 255
         },
253 256
         {
254 257
           title: "网址",
258
+          minWidth: 100,
255 259
           slot: "whiteAddressSlot",
256 260
           align: "center"
257 261
         },

+ 1
- 0
src/views/platformSection/notice/notice.vue View File

@@ -234,6 +234,7 @@ export default {
234 234
         },
235 235
         {
236 236
           title: "标题",
237
+          minWidth: 100,
237 238
           key: "noticeTitle",
238 239
           align: "center"
239 240
         },

+ 54
- 32
src/views/platformSection/regionManage/adminManage.vue View File

@@ -231,9 +231,12 @@
231 231
           style="margin-bottom: 0; width: calc(50% - 10px)"
232 232
           >{{ viewInfo.phone }}</FormItem
233 233
         >
234
-        <FormItem label="所属区域" style="margin-bottom: 0; width: 100%">{{
235
-          viewInfo.regionName
236
-        }}</FormItem>
234
+        <FormItem
235
+          label="所属区域"
236
+          style="margin-bottom: 0; width: 100%"
237
+          v-if="viewInfo.atype !== 1"
238
+          >{{ viewInfo.regionName }}</FormItem
239
+        >
237 240
         <FormItem label="地址" style="margin-bottom: 0; width: 100%">{{
238 241
           viewInfo.address
239 242
         }}</FormItem>
@@ -255,7 +258,8 @@ import {
255 258
   admin_edit,
256 259
   admin_delete,
257 260
   admin_enable,
258
-  admin_disabled
261
+  admin_disabled,
262
+  admin_detail
259 263
 } from "@/api/admin";
260 264
 import { region_list_sel_pt } from "@/api/region";
261 265
 import { login_msg_code } from "@/api/login";
@@ -361,6 +365,7 @@ export default {
361 365
       // 查看
362 366
       viewInfo: {
363 367
         show: false,
368
+        atype: null,
364 369
         enabled: "",
365 370
         aname: "",
366 371
         loginname: "",
@@ -385,18 +390,20 @@ export default {
385 390
         },
386 391
         {
387 392
           title: "名称",
393
+          minWidth: 150,
388 394
           key: "aname",
389 395
           align: "center"
390 396
         },
391 397
         {
392 398
           title: "登录账号",
399
+          minWidth: 100,
393 400
           key: "loginname",
394 401
           align: "center"
395 402
         },
396 403
         {
397 404
           title: "手机号码",
398 405
           key: "phone",
399
-          width: 135,
406
+          width: 120,
400 407
           align: "center"
401 408
         },
402 409
         {
@@ -407,11 +414,13 @@ export default {
407 414
         },
408 415
         {
409 416
           title: "区域名称",
417
+          minWidth: 150,
410 418
           key: "regionName",
411 419
           align: "center"
412 420
         },
413 421
         {
414 422
           title: "最后登录IP",
423
+          width: 120,
415 424
           key: "lastip",
416 425
           align: "center"
417 426
         },
@@ -605,36 +614,49 @@ export default {
605 614
     },
606 615
     // 查看
607 616
     toView(row) {
608
-      this.viewInfo = {
609
-        show: true,
610
-        enabled: row.enabled,
611
-        aname: row.aname,
612
-        loginname: row.loginname,
613
-        phone: row.phone,
614
-        regionName: row.regionName,
615
-        address: row.address,
616
-        comm: row.comm
617
-      };
617
+      admin_detail({ adminid: row.adminid }).then((data) => {
618
+        if (data.code === 0) {
619
+          this.viewInfo = {
620
+            show: true,
621
+            atype: data.obj.atype,
622
+            enabled: data.obj.enabled,
623
+            aname: data.obj.aname,
624
+            loginname: data.obj.loginname,
625
+            phone: data.obj.phone,
626
+            regionName: data.obj.regionName,
627
+            address: data.obj.address,
628
+            comm: data.obj.comm
629
+          };
630
+        } else {
631
+          this.$Message.error(data.msg);
632
+        }
633
+      });
618 634
     },
619 635
     // 编辑
620 636
     toEdit(row) {
621
-      this.adminInfo = {
622
-        show: true,
623
-        timer: null,
624
-        second: 60,
625
-        adminid: row.adminid,
626
-        atype: row.atype,
627
-        aname: row.aname,
628
-        loginname: row.loginname,
629
-        loginpwd: row.loginpwd,
630
-        loginpwd1: row.loginpwd1,
631
-        phone: row.phone,
632
-        msgcode: row.msgcode,
633
-        enabled: row.enabled,
634
-        regionid: row.regionid,
635
-        address: row.address,
636
-        comm: row.comm
637
-      };
637
+      admin_detail({ adminid: row.adminid }).then((data) => {
638
+        if (data.code === 0) {
639
+          this.adminInfo = {
640
+            show: true,
641
+            timer: null,
642
+            second: 60,
643
+            adminid: data.obj.adminid,
644
+            atype: data.obj.atype,
645
+            aname: data.obj.aname,
646
+            loginname: data.obj.loginname,
647
+            loginpwd: data.obj.loginpwd,
648
+            loginpwd1: data.obj.loginpwd1,
649
+            phone: data.obj.phone,
650
+            msgcode: data.obj.msgcode,
651
+            enabled: data.obj.enabled,
652
+            regionid: data.obj.regionid,
653
+            address: data.obj.address,
654
+            comm: data.obj.comm
655
+          };
656
+        } else {
657
+          this.$Message.error(data.msg);
658
+        }
659
+      });
638 660
     },
639 661
     // 删除
640 662
     toDel(row) {

+ 7
- 32
src/views/platformSection/regionManage/regionManage.vue View File

@@ -187,19 +187,6 @@
187 187
             placeholder="请输入6位区域码"
188 188
           ></Input>
189 189
         </FormItem>
190
-        <FormItem label="地址" prop="address" style="width: 100%">
191
-          <Input
192
-            v-model="modifyRegion.address"
193
-            placeholder="请输入地址"
194
-          ></Input>
195
-        </FormItem>
196
-        <FormItem label="描述信息" prop="comm" style="width: 100%">
197
-          <Input
198
-            type="textarea"
199
-            v-model="modifyRegion.comm"
200
-            placeholder="请输入描述信息"
201
-          ></Input>
202
-        </FormItem>
203 190
       </Form>
204 191
       <div slot="footer">
205 192
         <Button @click="modifyRegion.show = false">取消</Button>
@@ -216,15 +203,9 @@
216 203
       title="查看"
217 204
     >
218 205
       <div class="view_title">{{ viewInfo.regionName }}</div>
219
-      <!-- <Form :label-width="80">
220
-        <FormItem label="区域码" style="margin-bottom: 0">{{
221
-          viewInfo.regionCode
222
-        }}</FormItem>
223
-        <FormItem label="地址" style="margin-bottom: 0">{{
224
-          viewInfo.address
225
-        }}</FormItem>
226
-        <FormItem label="描述信息">{{ viewInfo.comm }}</FormItem>
227
-      </Form> -->
206
+      <Form :label-width="65">
207
+        <FormItem label="区域码">{{ viewInfo.regionCode }}</FormItem>
208
+      </Form>
228 209
       <Table
229 210
         style="border: 1px solid #e8eaec; border-bottom: none"
230 211
         :columns="viewInfo.columns"
@@ -296,8 +277,6 @@ export default {
296 277
         regionid: null,
297 278
         regionName: "",
298 279
         regionCode: "",
299
-        address: "",
300
-        comm: "",
301 280
         rversion: null
302 281
       },
303 282
       // 查看
@@ -305,8 +284,6 @@ export default {
305 284
         show: false,
306 285
         regionName: "",
307 286
         regionCode: "",
308
-        address: "",
309
-        comm: "",
310 287
         list: [],
311 288
         columns: [
312 289
           {
@@ -317,16 +294,19 @@ export default {
317 294
           },
318 295
           {
319 296
             title: "名称",
297
+            minWidth: 100,
320 298
             key: "aname",
321 299
             align: "center"
322 300
           },
323 301
           {
324 302
             title: "账号",
303
+            minWidth: 100,
325 304
             key: "loginname",
326 305
             align: "center"
327 306
           },
328 307
           {
329 308
             title: "手机号码",
309
+            width: 120,
330 310
             key: "phone",
331 311
             align: "center"
332 312
           }
@@ -394,6 +374,7 @@ export default {
394 374
         },
395 375
         {
396 376
           title: "区域名称",
377
+          minWidth: 100,
397 378
           key: "regionName",
398 379
           align: "center"
399 380
         },
@@ -590,8 +571,6 @@ export default {
590 571
             objectid: this.powerParams.objectid,
591 572
             regionName: this.modifyRegion.regionName,
592 573
             regionCode: this.modifyRegion.regionCode,
593
-            address: this.modifyRegion.address,
594
-            comm: this.modifyRegion.comm,
595 574
             regionid: this.modifyRegion.regionid,
596 575
             rversion: this.modifyRegion.rversion
597 576
           }).then((data) => {
@@ -627,8 +606,6 @@ export default {
627 606
           this.viewInfo.show = true;
628 607
           this.viewInfo.regionName = row.regionName;
629 608
           this.viewInfo.regionCode = row.regionCode;
630
-          this.viewInfo.address = row.address;
631
-          this.viewInfo.comm = row.comm;
632 609
           this.viewInfo.list = data.obj;
633 610
         } else {
634 611
           this.$Message.error(data.msg);
@@ -642,8 +619,6 @@ export default {
642 619
         regionid: row.regionid,
643 620
         regionName: row.regionName,
644 621
         regionCode: row.regionCode,
645
-        address: row.address,
646
-        comm: row.comm,
647 622
         rversion: row.rversion
648 623
       };
649 624
     },

+ 22
- 1
src/views/regionSection/home/index.vue View File

@@ -98,6 +98,8 @@ import coordChinaMap from "@/assets/echartsMap/coordChinaMap.json";
98 98
 export default {
99 99
   data() {
100 100
     return {
101
+      // 图表实例
102
+      echartsInstances: [],
101 103
       // 概况信息
102 104
       regionOverviewInfo: {
103 105
         usernum: 0,
@@ -163,7 +165,20 @@ export default {
163 165
     this.getAppDownloadList();
164 166
     this.getDeviceActivityList();
165 167
   },
168
+  mounted() {
169
+    window.addEventListener("resize", this.echartsResize);
170
+  },
171
+  beforeDestroy() {
172
+    window.removeEventListener("resize", this.echartsResize);
173
+  },
166 174
   methods: {
175
+    echartsResize() {
176
+      this.echartsInstances.forEach((eInstance) => {
177
+        if (eInstance && eInstance.getOption()) {
178
+          eInstance.resize();
179
+        }
180
+      });
181
+    },
167 182
     // 概况信息
168 183
     getRegionOverview() {
169 184
       ra_list_sv({
@@ -364,6 +379,7 @@ export default {
364 379
       const eInstance = echarts.init(document.getElementById("mapAreaEcharts"));
365 380
       eInstance.clear();
366 381
       eInstance.setOption(options);
382
+      this.echartsInstances.push(eInstance);
367 383
     },
368 384
     // 设备类型信息
369 385
     getDeviceModelList() {
@@ -435,6 +451,7 @@ export default {
435 451
       );
436 452
       eInstance.clear();
437 453
       eInstance.setOption(options);
454
+      this.echartsInstances.push(eInstance);
438 455
     },
439 456
     // 客户端版本-管控应用
440 457
     getControlVersionList() {
@@ -504,6 +521,7 @@ export default {
504 521
       );
505 522
       eInstance.clear();
506 523
       eInstance.setOption(options);
524
+      this.echartsInstances.push(eInstance);
507 525
     },
508 526
     // 客户端版本-应用商店
509 527
     getAppVersionList() {
@@ -573,6 +591,7 @@ export default {
573 591
       );
574 592
       eInstance.clear();
575 593
       eInstance.setOption(options);
594
+      this.echartsInstances.push(eInstance);
576 595
     },
577 596
     // 应用下载
578 597
     getAppDownloadList() {
@@ -685,6 +704,7 @@ export default {
685 704
       );
686 705
       eInstance.clear();
687 706
       eInstance.setOption(options);
707
+      this.echartsInstances.push(eInstance);
688 708
     },
689 709
     // 设备活跃度
690 710
     getDeviceActivityList() {
@@ -832,6 +852,7 @@ export default {
832 852
       );
833 853
       eInstance.clear();
834 854
       eInstance.setOption(options);
855
+      this.echartsInstances.push(eInstance);
835 856
     }
836 857
   }
837 858
 };
@@ -847,7 +868,7 @@ export default {
847 868
     display: flex;
848 869
     justify-content: space-between;
849 870
     align-items: center;
850
-    &:last-of-type{
871
+    &:last-of-type {
851 872
       margin-bottom: 0;
852 873
     }
853 874
     .cell_item {

+ 3
- 0
src/views/schoolSection/applicationManage/greenBrowser.vue View File

@@ -119,16 +119,19 @@ export default {
119 119
         },
120 120
         {
121 121
           title: "名称",
122
+          minWidth: 100,
122 123
           key: "visitName",
123 124
           align: "center"
124 125
         },
125 126
         {
126 127
           title: "网址",
128
+          minWidth: 100,
127 129
           key: "visitUrl",
128 130
           align: "center"
129 131
         },
130 132
         {
131 133
           title: "操作人",
134
+          minWidth: 100,
132 135
           key: "updatename",
133 136
           align: "center"
134 137
         },

+ 3
- 0
src/views/schoolSection/applicationStrategy/appStrategyTemplate.vue View File

@@ -130,16 +130,19 @@ export default {
130 130
         },
131 131
         {
132 132
           title: "名称",
133
+          minWidth: 100,
133 134
           key: "name",
134 135
           align: "center"
135 136
         },
136 137
         {
137 138
           title: "状态",
139
+          width: 90,
138 140
           slot: "enabledSlot",
139 141
           align: "center"
140 142
         },
141 143
         {
142 144
           title: "操作人",
145
+          minWidth: 100,
143 146
           key: "updatename",
144 147
           align: "center"
145 148
         },

+ 4
- 0
src/views/schoolSection/deviceManage/breakRuleDevice.vue View File

@@ -239,6 +239,7 @@ export default {
239 239
         // },
240 240
         {
241 241
           title: "设备号",
242
+          width: 170,
242 243
           key: "sn",
243 244
           align: "center"
244 245
         },
@@ -255,6 +256,7 @@ export default {
255 256
         },
256 257
         {
257 258
           title: "累计违规数量",
259
+          minWidth: 100,
258 260
           key: "num",
259 261
           align: "center"
260 262
         },
@@ -274,11 +276,13 @@ export default {
274 276
         },
275 277
         {
276 278
           title: "设备使用人",
279
+          minWidth: 100,
277 280
           key: "username",
278 281
           align: "center"
279 282
         },
280 283
         {
281 284
           title: "违规事件",
285
+          minWidth: 100,
282 286
           slot: "doEventSlot",
283 287
           align: "center"
284 288
         },

+ 5
- 0
src/views/schoolSection/deviceManage/deviceManage.vue View File

@@ -671,11 +671,13 @@ export default {
671 671
         },
672 672
         {
673 673
           title: "登录账号",
674
+          minWidth: 100,
674 675
           slot: "loginnameSlot",
675 676
           align: "center"
676 677
         },
677 678
         {
678 679
           title: "姓名",
680
+          minWidth: 100,
679 681
           key: "username",
680 682
           align: "center"
681 683
         },
@@ -687,16 +689,19 @@ export default {
687 689
         },
688 690
         {
689 691
           title: "设备型号",
692
+          width: 150,
690 693
           key: "deviceModel",
691 694
           align: "center"
692 695
         },
693 696
         {
694 697
           title: "设备号",
698
+          width: 170,
695 699
           key: "sn",
696 700
           align: "center"
697 701
         },
698 702
         {
699 703
           title: "Rom版本",
704
+          minWidth: 200,
700 705
           key: "romVersion",
701 706
           align: "center"
702 707
         },

+ 7
- 0
src/views/schoolSection/deviceManage/inLineDevice.vue View File

@@ -91,36 +91,43 @@ export default {
91 91
         },
92 92
         {
93 93
           title: "登录账号",
94
+          minWidth: 100,
94 95
           key: "loginname",
95 96
           align: "center"
96 97
         },
97 98
         {
98 99
           title: "姓名",
100
+          minWidth: 100,
99 101
           key: "username",
100 102
           align: "center"
101 103
         },
102 104
         {
103 105
           title: "设备名称",
106
+          minWidth: 100,
104 107
           key: "device",
105 108
           align: "center"
106 109
         },
107 110
         {
108 111
           title: "管控状态",
112
+          width: 100,
109 113
           slot: "controlSlot",
110 114
           align: "center"
111 115
         },
112 116
         {
113 117
           title: "设备型号",
118
+          width: 150,
114 119
           key: "deviceModel",
115 120
           align: "center"
116 121
         },
117 122
         {
118 123
           title: "设备号",
124
+          width: 170,
119 125
           key: "sn",
120 126
           align: "center"
121 127
         },
122 128
         {
123 129
           title: "Rom版本",
130
+          minWidth: 200,
124 131
           key: "romVersion",
125 132
           align: "center"
126 133
         },

+ 7
- 0
src/views/schoolSection/deviceManage/outControlDevice.vue View File

@@ -92,36 +92,43 @@ export default {
92 92
         },
93 93
         {
94 94
           title: "登录账号",
95
+          minWidth: 100,
95 96
           key: "loginname",
96 97
           align: "center"
97 98
         },
98 99
         {
99 100
           title: "姓名",
101
+          minWidth: 100,
100 102
           key: "username",
101 103
           align: "center"
102 104
         },
103 105
         {
104 106
           title: "班级",
107
+          minWidth: 150,
105 108
           key: "classname",
106 109
           align: "center"
107 110
         },
108 111
         {
109 112
           title: "设备名称",
113
+          minWidth: 100,
110 114
           key: "device",
111 115
           align: "center"
112 116
         },
113 117
         {
114 118
           title: "设备型号",
119
+          width: 150,
115 120
           key: "deviceModel",
116 121
           align: "center"
117 122
         },
118 123
         {
119 124
           title: "设备号",
125
+          width: 170,
120 126
           key: "sn",
121 127
           align: "center"
122 128
         },
123 129
         {
124 130
           title: "Rom版本",
131
+          minWidth: 200,
125 132
           key: "romVersion",
126 133
           align: "center"
127 134
         },

+ 7
- 0
src/views/schoolSection/deviceManage/removeControlDevice.vue View File

@@ -67,36 +67,43 @@ export default {
67 67
         },
68 68
         {
69 69
           title: "登录账号",
70
+          minWidth: 100,
70 71
           key: "loginname",
71 72
           align: "center"
72 73
         },
73 74
         {
74 75
           title: "姓名",
76
+          minWidth: 100,
75 77
           key: "username",
76 78
           align: "center"
77 79
         },
78 80
         {
79 81
           title: "设备名称",
82
+          minWidth: 100,
80 83
           key: "device",
81 84
           align: "center"
82 85
         },
83 86
         {
84 87
           title: "管控状态",
88
+          width: 100,
85 89
           slot: "controlSlot",
86 90
           align: "center"
87 91
         },
88 92
         {
89 93
           title: "设备型号",
94
+          width: 150,
90 95
           key: "deviceModel",
91 96
           align: "center"
92 97
         },
93 98
         {
94 99
           title: "设备号",
100
+          width: 170,
95 101
           key: "sn",
96 102
           align: "center"
97 103
         },
98 104
         {
99 105
           title: "Rom版本",
106
+          minWidth: 200,
100 107
           key: "romVersion",
101 108
           align: "center"
102 109
         },

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

@@ -143,6 +143,8 @@ import * as echarts from "echarts";
143 143
 export default {
144 144
   data() {
145 145
     return {
146
+      // 图表实例
147
+      echartsInstances: [],
146 148
       // 设备用户信息
147 149
       deviceUserInfo: {},
148 150
       // 设备类型信息
@@ -177,7 +179,20 @@ export default {
177 179
       return this.$store.getters.powerParams;
178 180
     }
179 181
   },
182
+  mounted() {
183
+    window.addEventListener("resize", this.echartsResize);
184
+  },
185
+  beforeDestroy() {
186
+    window.removeEventListener("resize", this.echartsResize);
187
+  },
180 188
   methods: {
189
+    echartsResize() {
190
+      this.echartsInstances.forEach((eInstance) => {
191
+        if (eInstance && eInstance.getOption()) {
192
+          eInstance.resize();
193
+        }
194
+      });
195
+    },
181 196
     // 设备用户信息
182 197
     getDeviceUserList() {
183 198
       ra_get_du({
@@ -264,6 +279,7 @@ export default {
264 279
       );
265 280
       eInstance.clear();
266 281
       eInstance.setOption(options);
282
+      this.echartsInstances.push(eInstance);
267 283
     },
268 284
     // 设备类型信息
269 285
     getDeviceModelList() {
@@ -335,6 +351,7 @@ export default {
335 351
       );
336 352
       eInstance.clear();
337 353
       eInstance.setOption(options);
354
+      this.echartsInstances.push(eInstance);
338 355
     },
339 356
     // 客户端版本-管控应用
340 357
     getControlVersionList() {
@@ -404,6 +421,7 @@ export default {
404 421
       );
405 422
       eInstance.clear();
406 423
       eInstance.setOption(options);
424
+      this.echartsInstances.push(eInstance);
407 425
     },
408 426
     // 客户端版本-应用商店
409 427
     getAppVersionList() {
@@ -473,6 +491,7 @@ export default {
473 491
       );
474 492
       eInstance.clear();
475 493
       eInstance.setOption(options);
494
+      this.echartsInstances.push(eInstance);
476 495
     },
477 496
     // 增长趋势
478 497
     getGrowthTrendList() {
@@ -632,6 +651,7 @@ export default {
632 651
       );
633 652
       eInstance.clear();
634 653
       eInstance.setOption(options);
654
+      this.echartsInstances.push(eInstance);
635 655
     },
636 656
     getOnlineDeviceList() {
637 657
       ra_list_dn({
@@ -805,6 +825,7 @@ export default {
805 825
       const eInstance = echarts.init(document.getElementById(domId));
806 826
       eInstance.clear();
807 827
       eInstance.setOption(options);
828
+      this.echartsInstances.push(eInstance);
808 829
     },
809 830
     // 设备活跃度
810 831
     getDeviceActivityList() {
@@ -952,6 +973,7 @@ export default {
952 973
       );
953 974
       eInstance.clear();
954 975
       eInstance.setOption(options);
976
+      this.echartsInstances.push(eInstance);
955 977
     }
956 978
   }
957 979
 };

+ 3
- 0
src/views/schoolSection/log/admin.vue View File

@@ -71,16 +71,19 @@ export default {
71 71
         },
72 72
         {
73 73
           title: "登录名",
74
+          minWidth: 100,
74 75
           key: "loginname",
75 76
           align: "center"
76 77
         },
77 78
         {
78 79
           title: "姓名",
80
+          minWidth: 100,
79 81
           key: "aname",
80 82
           align: "center"
81 83
         },
82 84
         {
83 85
           title: "事件",
86
+          minWidth: 150,
84 87
           key: "content",
85 88
           align: "center"
86 89
         },

+ 6
- 0
src/views/schoolSection/log/appLaunch.vue View File

@@ -79,31 +79,37 @@ export default {
79 79
         },
80 80
         {
81 81
           title: "学校名称",
82
+          minWidth: 150,
82 83
           key: "schoolName",
83 84
           align: "center"
84 85
         },
85 86
         {
86 87
           title: "班级",
88
+          minWidth: 150,
87 89
           key: "classname",
88 90
           align: "center"
89 91
         },
90 92
         {
91 93
           title: "登录名",
94
+          minWidth: 100,
92 95
           key: "loginname",
93 96
           align: "center"
94 97
         },
95 98
         {
96 99
           title: "姓名",
100
+          minWidth: 100,
97 101
           key: "username",
98 102
           align: "center"
99 103
         },
100 104
         {
101 105
           title: "设备号",
106
+          width: 170,
102 107
           key: "sn",
103 108
           align: "center"
104 109
         },
105 110
         {
106 111
           title: "应用名称",
112
+          minWidth: 150,
107 113
           key: "appName",
108 114
           align: "center"
109 115
         },

+ 7
- 0
src/views/schoolSection/log/applicationDownload.vue View File

@@ -71,36 +71,43 @@ export default {
71 71
         },
72 72
         {
73 73
           title: "学校名称",
74
+          minWidth: 150,
74 75
           key: "schoolName",
75 76
           align: "center"
76 77
         },
77 78
         {
78 79
           title: "班级",
80
+          minWidth: 150,
79 81
           key: "classname",
80 82
           align: "center"
81 83
         },
82 84
         {
83 85
           title: "登录名",
86
+          minWidth: 100,
84 87
           key: "loginname",
85 88
           align: "center"
86 89
         },
87 90
         {
88 91
           title: "姓名",
92
+          minWidth: 100,
89 93
           key: "username",
90 94
           align: "center"
91 95
         },
92 96
         {
93 97
           title: "设备号",
98
+          width: 170,
94 99
           key: "sn",
95 100
           align: "center"
96 101
         },
97 102
         {
98 103
           title: "应用名称",
104
+          minWidth: 150,
99 105
           key: "appName",
100 106
           align: "center"
101 107
         },
102 108
         {
103 109
           title: "版本号",
110
+          minWidth: 100,
104 111
           key: "appVersion",
105 112
           align: "center"
106 113
         },

+ 7
- 0
src/views/schoolSection/log/deviceEvents.vue View File

@@ -102,36 +102,43 @@ export default {
102 102
         },
103 103
         {
104 104
           title: "学校名称",
105
+          minWidth: 150,
105 106
           key: "schoolName",
106 107
           align: "center"
107 108
         },
108 109
         {
109 110
           title: "班级",
111
+          minWidth: 150,
110 112
           key: "classname",
111 113
           align: "center"
112 114
         },
113 115
         {
114 116
           title: "登录名",
117
+          minWidth: 100,
115 118
           key: "loginname",
116 119
           align: "center"
117 120
         },
118 121
         {
119 122
           title: "姓名",
123
+          minWidth: 100,
120 124
           key: "username",
121 125
           align: "center"
122 126
         },
123 127
         {
124 128
           title: "设备号",
129
+          width: 170,
125 130
           key: "sn",
126 131
           align: "center"
127 132
         },
128 133
         {
129 134
           title: "事件",
135
+          minWidth: 150,
130 136
           slot: "doEventSlot",
131 137
           align: "center"
132 138
         },
133 139
         {
134 140
           title: "描述",
141
+          minWidth: 150,
135 142
           key: "comm",
136 143
           align: "center"
137 144
         },

+ 7
- 1
src/views/schoolSection/log/deviceExport.vue View File

@@ -61,6 +61,7 @@ export default {
61 61
         },
62 62
         {
63 63
           title: "学校名称",
64
+          minWidth: 150,
64 65
           key: "schoolName",
65 66
           align: "center"
66 67
         },
@@ -68,30 +69,35 @@ export default {
68 69
           title: "班级",
69 70
           key: "classname",
70 71
           align: "center",
71
-          width: 110
72
+          minWidth: 150
72 73
         },
73 74
         {
74 75
           title: "登录名",
76
+          minWidth: 100,
75 77
           key: "loginname",
76 78
           align: "center"
77 79
         },
78 80
         {
79 81
           title: "姓名",
82
+          minWidth: 100,
80 83
           key: "username",
81 84
           align: "center"
82 85
         },
83 86
         {
84 87
           title: "设备号",
88
+          width: 170,
85 89
           key: "sn",
86 90
           align: "center"
87 91
         },
88 92
         {
89 93
           title: "设备型号",
94
+          width: 150,
90 95
           key: "deviceModel",
91 96
           align: "center"
92 97
         },
93 98
         {
94 99
           title: "Rom版本",
100
+          minWidth: 200,
95 101
           key: "romVersion",
96 102
           align: "center"
97 103
         },

+ 8
- 0
src/views/schoolSection/log/deviceInstallation.vue View File

@@ -75,41 +75,49 @@ export default {
75 75
         },
76 76
         {
77 77
           title: "学校名称",
78
+          minWidth: 150,
78 79
           key: "schoolName",
79 80
           align: "center"
80 81
         },
81 82
         {
82 83
           title: "班级",
84
+          minWidth: 150,
83 85
           key: "classname",
84 86
           align: "center"
85 87
         },
86 88
         {
87 89
           title: "登录名",
90
+          minWidth: 100,
88 91
           key: "loginname",
89 92
           align: "center"
90 93
         },
91 94
         {
92 95
           title: "姓名",
96
+          minWidth: 100,
93 97
           key: "username",
94 98
           align: "center"
95 99
         },
96 100
         {
97 101
           title: "设备号",
102
+          width: 170,
98 103
           key: "sn",
99 104
           align: "center"
100 105
         },
101 106
         {
102 107
           title: "应用名称",
108
+          minWidth: 150,
103 109
           key: "appName",
104 110
           align: "center"
105 111
         },
106 112
         {
107 113
           title: "应用包名",
114
+          minWidth: 150,
108 115
           key: "appPackage",
109 116
           align: "center"
110 117
         },
111 118
         {
112 119
           title: "版本名称",
120
+          minWidth: 100,
113 121
           key: "appVersion",
114 122
           align: "center"
115 123
         },

+ 6
- 0
src/views/schoolSection/log/deviceLocation.vue View File

@@ -75,31 +75,37 @@ export default {
75 75
         },
76 76
         {
77 77
           title: "设备号",
78
+          width: 170,
78 79
           key: "sn",
79 80
           align: "center"
80 81
         },
81 82
         {
82 83
           title: "登录名",
84
+          minWidth: 100,
83 85
           key: "loginname",
84 86
           align: "center"
85 87
         },
86 88
         {
87 89
           title: "姓名",
90
+          minWidth: 100,
88 91
           key: "username",
89 92
           align: "center"
90 93
         },
91 94
         {
92 95
           title: "学校名称",
96
+          minWidth: 150,
93 97
           key: "schoolName",
94 98
           align: "center"
95 99
         },
96 100
         {
97 101
           title: "班级",
102
+          minWidth: 150,
98 103
           key: "classname",
99 104
           align: "center"
100 105
         },
101 106
         {
102 107
           title: "地址",
108
+          width: 210,
103 109
           key: "address",
104 110
           align: "center"
105 111
         },

+ 3
- 0
src/views/schoolSection/log/devicePush.vue View File

@@ -97,11 +97,13 @@ export default {
97 97
         },
98 98
         {
99 99
           title: "登录名",
100
+          minWidth: 100,
100 101
           key: "loginname",
101 102
           align: "center"
102 103
         },
103 104
         {
104 105
           title: "姓名",
106
+          minWidth: 100,
105 107
           key: "aname",
106 108
           align: "center"
107 109
         },
@@ -119,6 +121,7 @@ export default {
119 121
         },
120 122
         {
121 123
           title: "设备号",
124
+          width: 170,
122 125
           key: "sn",
123 126
           align: "center"
124 127
         },

+ 6
- 0
src/views/schoolSection/log/violatingDevice.vue View File

@@ -134,31 +134,37 @@ export default {
134 134
         },
135 135
         {
136 136
           title: "学校名称",
137
+          minWidth: 150,
137 138
           key: "schoolName",
138 139
           align: "center"
139 140
         },
140 141
         {
141 142
           title: "班级",
143
+          minWidth: 150,
142 144
           key: "classname",
143 145
           align: "center"
144 146
         },
145 147
         {
146 148
           title: "登录名",
149
+          minWidth: 100,
147 150
           key: "loginname",
148 151
           align: "center"
149 152
         },
150 153
         {
151 154
           title: "姓名",
155
+          minWidth: 100,
152 156
           key: "username",
153 157
           align: "center"
154 158
         },
155 159
         {
156 160
           title: "设备号",
161
+          width: 170,
157 162
           key: "sn",
158 163
           align: "center"
159 164
         },
160 165
         {
161 166
           title: "事件",
167
+          minWidth: 150,
162 168
           slot: "doEventSlot",
163 169
           align: "center"
164 170
         },

+ 2
- 0
src/views/schoolSection/networkManage/whitelist.vue View File

@@ -194,11 +194,13 @@ export default {
194 194
         },
195 195
         {
196 196
           title: "名称",
197
+          minWidth: 100,
197 198
           slot: "nameSlot",
198 199
           align: "center"
199 200
         },
200 201
         {
201 202
           title: "网址",
203
+          minWidth: 100,
202 204
           slot: "whiteAddressSlot",
203 205
           align: "center"
204 206
         },

+ 3
- 0
src/views/schoolSection/networkManage/whitelistLibrary.vue View File

@@ -71,16 +71,19 @@ export default {
71 71
         },
72 72
         {
73 73
           title: "应用名称",
74
+          minWidth: 150,
74 75
           slot: "nameSlot",
75 76
           align: "center"
76 77
         },
77 78
         {
78 79
           title: "版本名称",
80
+          minWidth: 100,
79 81
           key: "versionName",
80 82
           align: "center"
81 83
         },
82 84
         {
83 85
           title: "包名",
86
+          minWidth: 100,
84 87
           key: "website",
85 88
           align: "center"
86 89
         },

+ 1
- 0
src/views/schoolSection/notice/notice.vue View File

@@ -108,6 +108,7 @@ export default {
108 108
         },
109 109
         {
110 110
           title: "标题",
111
+          minWidth: 100,
111 112
           key: "noticeTitle",
112 113
           align: "center"
113 114
         },

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

@@ -208,5 +208,6 @@ export default {
208 208
   align-items: center;
209 209
   margin-left: 100px;
210 210
   margin-top: 20px;
211
+  margin-bottom: 20px;
211 212
 }
212 213
 </style>

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

@@ -324,21 +324,25 @@ export default {
324 324
         },
325 325
         {
326 326
           title: "横屏壁纸",
327
+          minWidth: 150,
327 328
           slot: "hpathSlot",
328 329
           align: "center"
329 330
         },
330 331
         {
331 332
           title: "竖屏壁纸",
333
+          minWidth: 150,
332 334
           slot: "vpathSlot",
333 335
           align: "center"
334 336
         },
335 337
         {
336 338
           title: "壁纸名称",
339
+          minWidth: 100,
337 340
           key: "wname",
338 341
           align: "center"
339 342
         },
340 343
         {
341 344
           title: "操作人",
345
+          minWidth: 100,
342 346
           key: "updatename",
343 347
           align: "center"
344 348
         },

Loading…
Cancel
Save