Browse Source

统计优化

gzb
wangzhonglu 8 months ago
parent
commit
03f77ba321

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

47
 /**
47
 /**
48
  * 1.2.4个人中心--修改手机号
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
 /**
25
 /**
26
  * 2.1.6 区域--树形
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
  * 2.2区域--添加
31
  * 2.2区域--添加
31
  */
32
  */

+ 6
- 3
src/assets/less/common.less View File

360
   border-radius: 8px;
360
   border-radius: 8px;
361
 }
361
 }
362
 .ivu-modal-confirm-footer .ivu-btn.ivu-btn-text {
362
 .ivu-modal-confirm-footer .ivu-btn.ivu-btn-text {
363
-  margin-right: 16px;
364
   color: #7c8db5;
363
   color: #7c8db5;
365
   border: 1px solid #b8c2d9;
364
   border: 1px solid #b8c2d9;
366
   border-radius: 8px;
365
   border-radius: 8px;
367
 }
366
 }
367
+.ivu-modal-confirm-footer button + button,
368
+.ivu-modal-footer button + button {
369
+  margin-left: 16px;
370
+}
368
 .main_root {
371
 .main_root {
369
   //margin: 0 16px 10px;
372
   //margin: 0 16px 10px;
370
- height: calc(100% - 10px);
373
+  height: calc(100% - 10px);
371
   border-radius: 15px;
374
   border-radius: 15px;
372
   border: 1px solid #e9f0f9;
375
   border: 1px solid #e9f0f9;
373
   background-color: #fff;
376
   background-color: #fff;
467
       display: none;
470
       display: none;
468
     }
471
     }
469
   }
472
   }
470
-}
473
+}

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

160
         },
160
         },
161
         {
161
         {
162
           title: "设备号",
162
           title: "设备号",
163
+          width: 170,
163
           key: "sn",
164
           key: "sn",
164
           align: "center"
165
           align: "center"
165
         },
166
         },
166
         {
167
         {
167
           title: "设备型号",
168
           title: "设备型号",
169
+          width: 150,
168
           key: "deviceModel",
170
           key: "deviceModel",
169
           align: "center"
171
           align: "center"
170
         },
172
         },

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

213
         },
213
         },
214
         {
214
         {
215
           title: "设备号",
215
           title: "设备号",
216
+          width: 170,
216
           key: "sn",
217
           key: "sn",
217
           align: "center"
218
           align: "center"
218
         },
219
         },

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

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

+ 49
- 31
src/views/platformSection/regionManage/adminManage.vue View File

231
           style="margin-bottom: 0; width: calc(50% - 10px)"
231
           style="margin-bottom: 0; width: calc(50% - 10px)"
232
           >{{ viewInfo.phone }}</FormItem
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
         <FormItem label="地址" style="margin-bottom: 0; width: 100%">{{
240
         <FormItem label="地址" style="margin-bottom: 0; width: 100%">{{
238
           viewInfo.address
241
           viewInfo.address
239
         }}</FormItem>
242
         }}</FormItem>
255
   admin_edit,
258
   admin_edit,
256
   admin_delete,
259
   admin_delete,
257
   admin_enable,
260
   admin_enable,
258
-  admin_disabled
261
+  admin_disabled,
262
+  admin_detail
259
 } from "@/api/admin";
263
 } from "@/api/admin";
260
 import { region_list_sel_pt } from "@/api/region";
264
 import { region_list_sel_pt } from "@/api/region";
261
 import { login_msg_code } from "@/api/login";
265
 import { login_msg_code } from "@/api/login";
361
       // 查看
365
       // 查看
362
       viewInfo: {
366
       viewInfo: {
363
         show: false,
367
         show: false,
368
+        atype: null,
364
         enabled: "",
369
         enabled: "",
365
         aname: "",
370
         aname: "",
366
         loginname: "",
371
         loginname: "",
605
     },
610
     },
606
     // 查看
611
     // 查看
607
     toView(row) {
612
     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
-      };
613
+      admin_detail({ adminid: row.adminid }).then((data) => {
614
+        if (data.code === 0) {
615
+          this.viewInfo = {
616
+            show: true,
617
+            atype: data.obj.atype,
618
+            enabled: data.obj.enabled,
619
+            aname: data.obj.aname,
620
+            loginname: data.obj.loginname,
621
+            phone: data.obj.phone,
622
+            regionName: data.obj.regionName,
623
+            address: data.obj.address,
624
+            comm: data.obj.comm
625
+          };
626
+        } else {
627
+          this.$Message.error(data.msg);
628
+        }
629
+      });
618
     },
630
     },
619
     // 编辑
631
     // 编辑
620
     toEdit(row) {
632
     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
-      };
633
+      admin_detail({ adminid: row.adminid }).then((data) => {
634
+        if (data.code === 0) {
635
+          this.adminInfo = {
636
+            show: true,
637
+            timer: null,
638
+            second: 60,
639
+            adminid: data.obj.adminid,
640
+            atype: data.obj.atype,
641
+            aname: data.obj.aname,
642
+            loginname: data.obj.loginname,
643
+            loginpwd: data.obj.loginpwd,
644
+            loginpwd1: data.obj.loginpwd1,
645
+            phone: data.obj.phone,
646
+            msgcode: data.obj.msgcode,
647
+            enabled: data.obj.enabled,
648
+            regionid: data.obj.regionid,
649
+            address: data.obj.address,
650
+            comm: data.obj.comm
651
+          };
652
+        } else {
653
+          this.$Message.error(data.msg);
654
+        }
655
+      });
638
     },
656
     },
639
     // 删除
657
     // 删除
640
     toDel(row) {
658
     toDel(row) {

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

187
             placeholder="请输入6位区域码"
187
             placeholder="请输入6位区域码"
188
           ></Input>
188
           ></Input>
189
         </FormItem>
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
       </Form>
190
       </Form>
204
       <div slot="footer">
191
       <div slot="footer">
205
         <Button @click="modifyRegion.show = false">取消</Button>
192
         <Button @click="modifyRegion.show = false">取消</Button>
216
       title="查看"
203
       title="查看"
217
     >
204
     >
218
       <div class="view_title">{{ viewInfo.regionName }}</div>
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
       <Table
209
       <Table
229
         style="border: 1px solid #e8eaec; border-bottom: none"
210
         style="border: 1px solid #e8eaec; border-bottom: none"
230
         :columns="viewInfo.columns"
211
         :columns="viewInfo.columns"
296
         regionid: null,
277
         regionid: null,
297
         regionName: "",
278
         regionName: "",
298
         regionCode: "",
279
         regionCode: "",
299
-        address: "",
300
-        comm: "",
301
         rversion: null
280
         rversion: null
302
       },
281
       },
303
       // 查看
282
       // 查看
305
         show: false,
284
         show: false,
306
         regionName: "",
285
         regionName: "",
307
         regionCode: "",
286
         regionCode: "",
308
-        address: "",
309
-        comm: "",
310
         list: [],
287
         list: [],
311
         columns: [
288
         columns: [
312
           {
289
           {
590
             objectid: this.powerParams.objectid,
567
             objectid: this.powerParams.objectid,
591
             regionName: this.modifyRegion.regionName,
568
             regionName: this.modifyRegion.regionName,
592
             regionCode: this.modifyRegion.regionCode,
569
             regionCode: this.modifyRegion.regionCode,
593
-            address: this.modifyRegion.address,
594
-            comm: this.modifyRegion.comm,
595
             regionid: this.modifyRegion.regionid,
570
             regionid: this.modifyRegion.regionid,
596
             rversion: this.modifyRegion.rversion
571
             rversion: this.modifyRegion.rversion
597
           }).then((data) => {
572
           }).then((data) => {
627
           this.viewInfo.show = true;
602
           this.viewInfo.show = true;
628
           this.viewInfo.regionName = row.regionName;
603
           this.viewInfo.regionName = row.regionName;
629
           this.viewInfo.regionCode = row.regionCode;
604
           this.viewInfo.regionCode = row.regionCode;
630
-          this.viewInfo.address = row.address;
631
-          this.viewInfo.comm = row.comm;
632
           this.viewInfo.list = data.obj;
605
           this.viewInfo.list = data.obj;
633
         } else {
606
         } else {
634
           this.$Message.error(data.msg);
607
           this.$Message.error(data.msg);
642
         regionid: row.regionid,
615
         regionid: row.regionid,
643
         regionName: row.regionName,
616
         regionName: row.regionName,
644
         regionCode: row.regionCode,
617
         regionCode: row.regionCode,
645
-        address: row.address,
646
-        comm: row.comm,
647
         rversion: row.rversion
618
         rversion: row.rversion
648
       };
619
       };
649
     },
620
     },

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

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

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

239
         // },
239
         // },
240
         {
240
         {
241
           title: "设备号",
241
           title: "设备号",
242
+          width: 170,
242
           key: "sn",
243
           key: "sn",
243
           align: "center"
244
           align: "center"
244
         },
245
         },

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

687
         },
687
         },
688
         {
688
         {
689
           title: "设备型号",
689
           title: "设备型号",
690
+          width: 150,
690
           key: "deviceModel",
691
           key: "deviceModel",
691
           align: "center"
692
           align: "center"
692
         },
693
         },
693
         {
694
         {
694
           title: "设备号",
695
           title: "设备号",
696
+          width: 170,
695
           key: "sn",
697
           key: "sn",
696
           align: "center"
698
           align: "center"
697
         },
699
         },

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

111
         },
111
         },
112
         {
112
         {
113
           title: "设备型号",
113
           title: "设备型号",
114
+          width: 150,
114
           key: "deviceModel",
115
           key: "deviceModel",
115
           align: "center"
116
           align: "center"
116
         },
117
         },
117
         {
118
         {
118
           title: "设备号",
119
           title: "设备号",
120
+          width: 170,
119
           key: "sn",
121
           key: "sn",
120
           align: "center"
122
           align: "center"
121
         },
123
         },

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

112
         },
112
         },
113
         {
113
         {
114
           title: "设备型号",
114
           title: "设备型号",
115
+          width: 150,
115
           key: "deviceModel",
116
           key: "deviceModel",
116
           align: "center"
117
           align: "center"
117
         },
118
         },
118
         {
119
         {
119
           title: "设备号",
120
           title: "设备号",
121
+          width: 170,
120
           key: "sn",
122
           key: "sn",
121
           align: "center"
123
           align: "center"
122
         },
124
         },

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

87
         },
87
         },
88
         {
88
         {
89
           title: "设备型号",
89
           title: "设备型号",
90
+          width: 150,
90
           key: "deviceModel",
91
           key: "deviceModel",
91
           align: "center"
92
           align: "center"
92
         },
93
         },
93
         {
94
         {
94
           title: "设备号",
95
           title: "设备号",
96
+          width: 170,
95
           key: "sn",
97
           key: "sn",
96
           align: "center"
98
           align: "center"
97
         },
99
         },

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

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

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

99
         },
99
         },
100
         {
100
         {
101
           title: "设备号",
101
           title: "设备号",
102
+          width: 170,
102
           key: "sn",
103
           key: "sn",
103
           align: "center"
104
           align: "center"
104
         },
105
         },

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

91
         },
91
         },
92
         {
92
         {
93
           title: "设备号",
93
           title: "设备号",
94
+          width: 170,
94
           key: "sn",
95
           key: "sn",
95
           align: "center"
96
           align: "center"
96
         },
97
         },

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

122
         },
122
         },
123
         {
123
         {
124
           title: "设备号",
124
           title: "设备号",
125
+          width: 170,
125
           key: "sn",
126
           key: "sn",
126
           align: "center"
127
           align: "center"
127
         },
128
         },

+ 2
- 0
src/views/schoolSection/log/deviceExport.vue View File

82
         },
82
         },
83
         {
83
         {
84
           title: "设备号",
84
           title: "设备号",
85
+          width: 170,
85
           key: "sn",
86
           key: "sn",
86
           align: "center"
87
           align: "center"
87
         },
88
         },
88
         {
89
         {
89
           title: "设备型号",
90
           title: "设备型号",
91
+          width: 150,
90
           key: "deviceModel",
92
           key: "deviceModel",
91
           align: "center"
93
           align: "center"
92
         },
94
         },

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

95
         },
95
         },
96
         {
96
         {
97
           title: "设备号",
97
           title: "设备号",
98
+          width: 170,
98
           key: "sn",
99
           key: "sn",
99
           align: "center"
100
           align: "center"
100
         },
101
         },

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

75
         },
75
         },
76
         {
76
         {
77
           title: "设备号",
77
           title: "设备号",
78
+          width: 170,
78
           key: "sn",
79
           key: "sn",
79
           align: "center"
80
           align: "center"
80
         },
81
         },
100
         },
101
         },
101
         {
102
         {
102
           title: "地址",
103
           title: "地址",
104
+          width: 210,
103
           key: "address",
105
           key: "address",
104
           align: "center"
106
           align: "center"
105
         },
107
         },

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

119
         },
119
         },
120
         {
120
         {
121
           title: "设备号",
121
           title: "设备号",
122
+          width: 170,
122
           key: "sn",
123
           key: "sn",
123
           align: "center"
124
           align: "center"
124
         },
125
         },

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

154
         },
154
         },
155
         {
155
         {
156
           title: "设备号",
156
           title: "设备号",
157
+          width: 170,
157
           key: "sn",
158
           key: "sn",
158
           align: "center"
159
           align: "center"
159
         },
160
         },

Loading…
Cancel
Save