guozhongbo 9 месяцев назад
Родитель
Сommit
4f9f2778ea

+ 4
- 0
src/views/regionSection/applicationManage/applicationGroup.vue Просмотреть файл

@@ -307,6 +307,7 @@ export default {
307 307
     },
308 308
     // 获取列表
309 309
     getList() {
310
+      this.showLoading = true;
310 311
       appgroup_list({
311 312
         rtype: this.powerParams.rtype,
312 313
         objectid: this.powerParams.objectid,
@@ -314,6 +315,7 @@ export default {
314 315
         size: this.searchForm.size,
315 316
         appgroupName: this.searchForm.appgroupName
316 317
       }).then((res) => {
318
+        this.showLoading = false;
317 319
         if (res.code === 0) {
318 320
           this.searchForm.list = res.obj.data;
319 321
           this.searchForm.total = res.obj.total;
@@ -359,7 +361,9 @@ export default {
359 361
             form.appgroupid = this.wallpaperInfo.appgroupid;
360 362
             form.rversion = this.wallpaperInfo.rversion;
361 363
           }
364
+          this.showLoading = true;
362 365
           api(form).then((res) => {
366
+            this.showLoading = false;
363 367
             if (res.code === 0) {
364 368
               this.$Message.success(res.msg);
365 369
               this.searchList();

+ 1
- 2
src/views/regionSection/applicationManage/applicationManage.vue Просмотреть файл

@@ -1124,8 +1124,7 @@ export default {
1124 1124
         //获取历史版本
1125 1125
         this.showLoading = true;
1126 1126
         let res = await app_detail_history({ appid: row.appid });
1127
-        if (res.code === 0) {
1128
-        } else {
1127
+        if (res.code != 0) {
1129 1128
           this.$Message.error(res.msg);
1130 1129
         }
1131 1130
         //安装统计

+ 5
- 0
src/views/regionSection/networkManage/whitelist.vue Просмотреть файл

@@ -189,6 +189,10 @@
189 189
         <Button @click="viewInfo.show = false">关闭</Button>
190 190
       </div>
191 191
     </Modal>
192
+    <Spin fix v-if="showLoading" style="background-color: transparent">
193
+      <Icon type="ios-loading" size="18" class="demo-spin-icon-load"></Icon>
194
+      <div>加载中</div>
195
+    </Spin>
192 196
   </div>
193 197
 </template>
194 198
 
@@ -204,6 +208,7 @@ import { region_list_rs } from "@/api/region";
204 208
 export default {
205 209
   data() {
206 210
     return {
211
+      showLoading: false,
207 212
       searchForm: {
208 213
         whiteName: "",
209 214
         regionid: "",

+ 16
- 4
src/views/regionSection/regionManage/adminManage.vue Просмотреть файл

@@ -231,12 +231,15 @@
231 231
         <Button @click="viewInfo.show = false">关闭</Button>
232 232
       </div>
233 233
     </Modal>
234
+    <Spin fix v-if="showLoading" style="background-color: transparent">
235
+      <Icon type="ios-loading" size="18" class="demo-spin-icon-load"></Icon>
236
+      <div>加载中</div>
237
+    </Spin>
234 238
   </div>
235 239
 </template>
236 240
 
237 241
 <script>
238 242
 import {
239
-  admin_list_pt,
240 243
   admin_add,
241 244
   admin_edit,
242 245
   admin_delete,
@@ -245,7 +248,7 @@ import {
245 248
   admin_list_qy,
246 249
   admin_detail
247 250
 } from "@/api/admin";
248
-import { region_list_sel_pt, region_list_sel_qy } from "@/api/region";
251
+import { region_list_sel_qy } from "@/api/region";
249 252
 import { login_msg_code } from "@/api/login";
250 253
 import { generateRandomString } from "@/utils";
251 254
 export default {
@@ -424,6 +427,7 @@ export default {
424 427
           align: "center"
425 428
         }
426 429
       ],
430
+      showLoading: false,
427 431
       userInfo: {}
428 432
     };
429 433
   },
@@ -442,11 +446,13 @@ export default {
442 446
   methods: {
443 447
     // 获取搜索区域列表
444 448
     getSearchRegionList() {
449
+      this.showLoading = true;
445 450
       region_list_sel_qy({
446 451
         rtype: this.powerParams.rtype,
447 452
         objectid: this.powerParams.objectid,
448 453
         regionid: this.powerParams.objectid
449 454
       }).then((data) => {
455
+        this.showLoading = false;
450 456
         if (data.code === 0) {
451 457
           this.searchForm.dropList = data.obj;
452 458
         } else {
@@ -472,6 +478,7 @@ export default {
472 478
     },
473 479
     // 获取列表
474 480
     getList() {
481
+      this.showLoading = true;
475 482
       admin_list_qy({
476 483
         rtype: this.powerParams.rtype,
477 484
         objectid: this.powerParams.objectid,
@@ -481,10 +488,10 @@ export default {
481 488
         aname: this.searchForm.aname,
482 489
         regionid: this.searchForm.regionid
483 490
       }).then((data) => {
491
+        this.showLoading = false;
484 492
         if (data.code === 0) {
485 493
           this.searchForm.list = data.obj.data;
486 494
           this.searchForm.total = data.obj.total;
487
-          console.log(this.searchForm.list);
488 495
         } else {
489 496
           this.$Message.error(data.msg);
490 497
         }
@@ -523,9 +530,11 @@ export default {
523 530
         return;
524 531
       }
525 532
       this.setRegionSecond();
533
+      this.showLoading = true;
526 534
       login_msg_code({
527 535
         phone: this.adminInfo.phone
528 536
       }).then((data) => {
537
+        this.showLoading = false;
529 538
         if (data.code === 0) {
530 539
           this.$Message.success(data.msg);
531 540
         } else {
@@ -593,7 +602,9 @@ export default {
593 602
             form.adminid = this.adminInfo.adminid;
594 603
             form.rversion = this.adminInfo.rversion;
595 604
           }
605
+          this.showLoading = true;
596 606
           api(form).then((data) => {
607
+            this.showLoading = false;
597 608
             if (data.code === 0) {
598 609
               this.searchList();
599 610
               this.$Message.success(data.msg);
@@ -617,11 +628,13 @@ export default {
617 628
     },
618 629
     // 编辑
619 630
     toEdit(row) {
631
+      this.showLoading = true;
620 632
       admin_detail({
621 633
         rtype: this.powerParams.rtype,
622 634
         objectid: this.powerParams.objectid,
623 635
         adminid: row.adminid
624 636
       }).then((res) => {
637
+        this.showLoading = false;
625 638
         if (res.code === 0) {
626 639
           this.adminInfo = {
627 640
             show: true,
@@ -638,7 +651,6 @@ export default {
638 651
             regionid: res.obj.regionid,
639 652
             rversion: row.rversion
640 653
           };
641
-          console.log(this.adminInfo);
642 654
         } else {
643 655
           this.$Message.error(res.msg);
644 656
         }

+ 0
- 2
src/views/regionSection/regionManage/regionManage.vue Просмотреть файл

@@ -693,7 +693,6 @@ export default {
693 693
         if (data.code === 0) {
694 694
           this.searchForm.list = data.obj.data;
695 695
           this.searchForm.total = data.obj.total;
696
-          console.log(this.searchForm.list);
697 696
         } else {
698 697
           this.$Message.error(data.msg);
699 698
         }
@@ -740,7 +739,6 @@ export default {
740 739
             form.authKey = this.authInfo.authKey;
741 740
             form.authType = this.authInfo.authType;
742 741
           }
743
-          console.log(form);
744 742
           this.showLoading = true;
745 743
           region_set(form).then((data) => {
746 744
             this.showLoading = false;

+ 15
- 0
src/views/regionSection/regionManage/schoolManage.vue Просмотреть файл

@@ -311,6 +311,10 @@
311 311
         <Button @click="viewInfo.show = false">关闭</Button>
312 312
       </div>
313 313
     </Modal>
314
+    <Spin fix v-if="showLoading" style="background-color: transparent">
315
+      <Icon type="ios-loading" size="18" class="demo-spin-icon-load"></Icon>
316
+      <div>加载中</div>
317
+    </Spin>
314 318
   </div>
315 319
 </template>
316 320
 
@@ -498,6 +502,7 @@ export default {
498 502
       areaList: [],
499 503
       marketList: [],
500 504
       regionList: [],
505
+      showLoading: false,
501 506
       userInfo: {}
502 507
     };
503 508
   },
@@ -560,7 +565,9 @@ export default {
560 565
       this.searchList();
561 566
     },
562 567
     getAreaList() {
568
+      this.showLoading = true;
563 569
       area_list_sel({}).then((res) => {
570
+        this.showLoading = false;
564 571
         if (res.code === 0) {
565 572
           this.areaList = res.obj;
566 573
         } else {
@@ -570,11 +577,13 @@ export default {
570 577
     },
571 578
     // 获取搜索区域列表
572 579
     getSearchRegionList() {
580
+      this.showLoading = true;
573 581
       region_list_sel_qy({
574 582
         rtype: this.powerParams.rtype,
575 583
         objectid: this.powerParams.objectid,
576 584
         regionid: this.powerParams.objectid
577 585
       }).then((data) => {
586
+        this.showLoading = false;
578 587
         if (data.code === 0) {
579 588
           this.searchForm.dropList = data.obj;
580 589
         } else {
@@ -600,6 +609,7 @@ export default {
600 609
     },
601 610
     // 获取列表
602 611
     getList() {
612
+      this.showLoading = true;
603 613
       school_list({
604 614
         rtype: this.powerParams.rtype,
605 615
         objectid: this.powerParams.objectid,
@@ -609,6 +619,7 @@ export default {
609 619
         areaCode: this.searchForm.areaCodes,
610 620
         schoolName: this.searchForm.schoolName
611 621
       }).then((data) => {
622
+        this.showLoading = false;
612 623
         if (data.code === 0) {
613 624
           this.searchForm.list = data.obj.data;
614 625
           this.searchForm.total = data.obj.total;
@@ -741,7 +752,9 @@ export default {
741 752
               msgcode: this.adminInfo.admin.msgcode
742 753
             };
743 754
           }
755
+          this.showLoading = true;
744 756
           api(form).then((data) => {
757
+            this.showLoading = false;
745 758
             if (data.code === 0) {
746 759
               this.searchList();
747 760
               this.$Message.success(data.msg);
@@ -767,11 +780,13 @@ export default {
767 780
     toEdit(row) {
768 781
       this.marketList = [];
769 782
       this.regionList = [];
783
+      this.showLoading = true;
770 784
       school_detail({
771 785
         rtype: this.powerParams.rtype,
772 786
         objectid: this.powerParams.objectid,
773 787
         schoolid: row.schoolid
774 788
       }).then((res) => {
789
+        this.showLoading = false;
775 790
         if (res.code === 0) {
776 791
           let str = res.obj.areaCode;
777 792
           let obj1 = { areaCode: "" },

+ 0
- 2
src/views/regionSection/setting/device.vue Просмотреть файл

@@ -99,12 +99,10 @@ export default {
99 99
         trend: this.adminInfo.trend,
100 100
         password: this.adminInfo.password || null
101 101
       };
102
-      console.log(form);
103 102
       this.showLoading = true;
104 103
       password_edit(form).then((res) => {
105 104
         this.showLoading = false;
106 105
         if (res.code === 0) {
107
-          console.log(res.obj);
108 106
           this.$Message.success(res.msg);
109 107
         } else {
110 108
           this.$Message.error(res.msg);

+ 0
- 3
src/views/regionSection/setting/powerUp.vue Просмотреть файл

@@ -78,7 +78,6 @@ export default {
78 78
         this.showLoading = false;
79 79
         if (res.code === 0) {
80 80
           if (res.obj) {
81
-            console.log(res.obj);
82 81
             this.adminInfo = {
83 82
               appPackage: res.obj.appPackage,
84 83
               authUrl: res.obj.authUrl,
@@ -103,12 +102,10 @@ export default {
103 102
         authUrl: this.adminInfo.authUrl,
104 103
         singleType: this.adminInfo.singleType
105 104
       };
106
-      console.log(form);
107 105
       this.showLoading = true;
108 106
       autoapp_edit(form).then((res) => {
109 107
         this.showLoading = false;
110 108
         if (res.code === 0) {
111
-          console.log(res.obj);
112 109
           this.$Message.success(res.msg);
113 110
         } else {
114 111
           this.$Message.error(res.msg);

+ 12
- 11
src/views/schoolSection/applicationManage/applicationList.vue Просмотреть файл

@@ -966,11 +966,13 @@ export default {
966 966
     },
967 967
     // 查看
968 968
     toView(row) {
969
+      this.showLoading = true;
969 970
       app_detail({
970 971
         rtype: this.powerParams.rtype,
971 972
         objectid: this.powerParams.objectid,
972 973
         appid: row.appid
973 974
       }).then((res) => {
975
+        this.showLoading = true;
974 976
         if (res.code === 0) {
975 977
           this.viewInfo = {
976 978
             show: true,
@@ -999,7 +1001,6 @@ export default {
999 1001
             devices: res.obj.devices,
1000 1002
             schools: res.obj.schools
1001 1003
           };
1002
-          console.log(this.viewInfo);
1003 1004
         } else {
1004 1005
           this.$Message.error(res.msg);
1005 1006
         }
@@ -1018,7 +1019,6 @@ export default {
1018 1019
             appName: res.obj.appName,
1019 1020
             devices: res.obj.devices
1020 1021
           };
1021
-          console.log(this.deviceInfo);
1022 1022
         } else {
1023 1023
           this.$Message.error(res.msg);
1024 1024
         }
@@ -1026,12 +1026,14 @@ export default {
1026 1026
     },
1027 1027
     enabledChange(row) {
1028 1028
       let api = row.enabled === 1 ? app_edit_enable : app_edit_unenable;
1029
+      this.showLoading = true;
1029 1030
       api({
1030 1031
         rtype: this.powerParams.rtype,
1031 1032
         objectid: this.powerParams.objectid,
1032 1033
         appid: row.appid,
1033 1034
         rversion: row.rversion
1034 1035
       }).then((data) => {
1036
+        this.showLoading = true;
1035 1037
         this.searchList();
1036 1038
         if (data.code === 0) {
1037 1039
           this.$Message.success(data.msg);
@@ -1061,7 +1063,6 @@ export default {
1061 1063
       });
1062 1064
     },
1063 1065
     async countSlot(row, type) {
1064
-      console.log(row);
1065 1066
       if (type === 1) {
1066 1067
         //下载
1067 1068
         this.downloadInfo = {
@@ -1185,7 +1186,6 @@ export default {
1185 1186
     },
1186 1187
     onFileProgress(rootFile, file) {
1187 1188
       file.progress();
1188
-      this.showLiading = true;
1189 1189
     },
1190 1190
     onFileSuccess(rootFile, file, response) {
1191 1191
       let that = this;
@@ -1198,6 +1198,7 @@ export default {
1198 1198
         formData.append("identifier", file.uniqueIdentifier);
1199 1199
         formData.append("filename", `${file.resourcename}.${file.suffix}`);
1200 1200
         formData.append("savefolder", "app");
1201
+        that.showLoading = true;
1201 1202
         // 进行post 请求
1202 1203
         axios({
1203 1204
           method: "post",
@@ -1209,6 +1210,7 @@ export default {
1209 1210
           }
1210 1211
         })
1211 1212
           .then((response) => {
1213
+            that.showLoading = false;
1212 1214
             let res = response.data;
1213 1215
             if (res.code === 0) {
1214 1216
               that.wallpaperInfo.apkPath = res.obj.apkPath;
@@ -1239,7 +1241,6 @@ export default {
1239 1241
     },
1240 1242
     CheckboxDevice(dgroupid, val) {
1241 1243
       this.deviceids[dgroupid] = val;
1242
-      console.log(this.deviceids);
1243 1244
     },
1244 1245
     init() {
1245 1246
       //获取分组列表
@@ -1346,7 +1347,6 @@ export default {
1346 1347
           if (document.querySelector(".section_main")) {
1347 1348
             document.querySelector(".section_main").scrollTop = 0;
1348 1349
           }
1349
-          console.log(this.searchForm.list);
1350 1350
         } else {
1351 1351
           this.$Message.error(res.msg);
1352 1352
         }
@@ -1446,12 +1446,12 @@ export default {
1446 1446
             form.appid = this.wallpaperInfo.appid;
1447 1447
             form.rversion = this.wallpaperInfo.rversion;
1448 1448
           }
1449
-          console.log(form);
1449
+          this.showLoading = true;
1450 1450
           let api = this.wallpaperInfo.appid ? app_edit : app_add;
1451 1451
           api(form).then((res) => {
1452
+            this.showLoading = false;
1452 1453
             if (res.code === 0) {
1453 1454
               this.wallpaperInfo.show = false;
1454
-              console.log(res.obj);
1455 1455
               this.$Message.success(res.msg);
1456 1456
               this.searchList();
1457 1457
             } else {
@@ -1463,11 +1463,13 @@ export default {
1463 1463
     },
1464 1464
     // 编辑
1465 1465
     toEdit(row) {
1466
+      this.showLoading = true;
1466 1467
       app_detail({
1467 1468
         rtype: this.powerParams.rtype,
1468 1469
         objectid: this.powerParams.objectid,
1469 1470
         appid: row.appid
1470 1471
       }).then((res) => {
1472
+        this.showLoading = false;
1471 1473
         if (res.code === 0) {
1472 1474
           this.school_list = JSON.parse(JSON.stringify(this.curRegion));
1473 1475
           this.wallpaperInfo = {
@@ -1523,9 +1525,6 @@ export default {
1523 1525
               }
1524 1526
             }
1525 1527
           });
1526
-
1527
-          console.log(res.obj);
1528
-          console.log(this.wallpaperInfo);
1529 1528
         } else {
1530 1529
           this.$Message.error(res.msg);
1531 1530
         }
@@ -1537,12 +1536,14 @@ export default {
1537 1536
         title: "提示",
1538 1537
         content: "您确定删除选中数据吗?",
1539 1538
         onOk: () => {
1539
+          this.showLoading = true;
1540 1540
           app_delete({
1541 1541
             rtype: this.powerParams.rtype,
1542 1542
             objectid: this.powerParams.objectid,
1543 1543
             appid: row.appid,
1544 1544
             rversion: row.rversion
1545 1545
           }).then((res) => {
1546
+            this.showLoading = false;
1546 1547
             if (res.code === 0) {
1547 1548
               this.$Message.success(res.msg);
1548 1549
               this.searchList();

+ 9
- 0
src/views/schoolSection/applicationManage/greenBrowser.vue Просмотреть файл

@@ -78,6 +78,10 @@
78 78
         <Button @click="saveAddInfo()" type="primary">保存</Button>
79 79
       </div>
80 80
     </Modal>
81
+    <Spin fix v-if="showLoading" style="background-color: transparent">
82
+      <Icon type="ios-loading" size="18" class="demo-spin-icon-load"></Icon>
83
+      <div>加载中</div>
84
+    </Spin>
81 85
   </div>
82 86
 </template>
83 87
 
@@ -91,6 +95,7 @@ import {
91 95
 export default {
92 96
   data() {
93 97
     return {
98
+      showLoading: false,
94 99
       searchForm: {
95 100
         visitName: "",
96 101
         page: 1,
@@ -193,6 +198,7 @@ export default {
193 198
     },
194 199
     // 获取列表
195 200
     getList() {
201
+      this.showLoading = true;
196 202
       browser_list({
197 203
         rtype: this.powerParams.rtype,
198 204
         objectid: this.powerParams.objectid,
@@ -201,6 +207,7 @@ export default {
201 207
         size: this.searchForm.size,
202 208
         visitName: this.searchForm.visitName
203 209
       }).then((data) => {
210
+        this.showLoading = false;
204 211
         if (data.code === 0) {
205 212
           this.searchForm.list = data.obj.data;
206 213
           this.searchForm.total = data.obj.total;
@@ -235,7 +242,9 @@ export default {
235 242
             form.browserid = this.browserInfo.browserid;
236 243
             form.rversion = this.browserInfo.rversion;
237 244
           }
245
+          this.showLoading = true;
238 246
           api(form).then((data) => {
247
+            this.showLoading = false;
239 248
             if (data.code === 0) {
240 249
               this.searchList();
241 250
               this.$Message.success(data.msg);

+ 2
- 3
src/views/schoolSection/log/deviceExport.vue Просмотреть файл

@@ -1,15 +1,14 @@
1 1
 <template>
2 2
   <div class="main_root">
3 3
     <div class="search_header">
4
-      <div class="search_left">
5
-      </div>
4
+      <div class="search_left"></div>
6 5
       <Button type="primary" class="primary_btn" @click="toExport()"
7 6
         >导出</Button
8 7
       >
9 8
     </div>
10 9
     <div class="table_wrap">
11 10
       <Table :columns="columns" :data="searchForm.list">
12
-        <template slot-scope="{ row }" slot="violatedSlot">
11
+        <template slot-scope="{ row }" slot="violated">
13 12
           <div class="action_list">
14 13
             <!-- 0不违规1违规 -->
15 14
             <div v-if="row.violated === 1" class="action_success">是</div>

+ 25
- 15
src/views/schoolSection/userManage/userManage.vue Просмотреть файл

@@ -560,7 +560,7 @@ export default {
560 560
         this.$Message.error("请选择上传文件");
561 561
         return;
562 562
       }
563
-      this.wait_flag = true;
563
+      this.wait_flag = true; //showLoading
564 564
       let that = this;
565 565
       user_import(this.form_data)
566 566
         .then((res) => {
@@ -617,11 +617,13 @@ export default {
617 617
     },
618 618
     //导出
619 619
     userExport() {
620
+      this.showLoading = true;
620 621
       user_export({
621 622
         rtype: this.powerParams.rtype,
622 623
         objectid: this.powerParams.objectid,
623 624
         schoolid: this.powerParams.objectid
624 625
       }).then((res) => {
626
+        this.showLoading = false;
625 627
         if (res.code === 0) {
626 628
           exportToExcel(
627 629
             [
@@ -694,7 +696,9 @@ export default {
694 696
             cardid: this.addInfo.cardid
695 697
           };
696 698
           let api = this.addInfo.userid ? user_edit : user_add;
699
+          this.showLoading = true;
697 700
           api(form).then((res) => {
701
+            this.showLoading = false;
698 702
             if (res.code === 0) {
699 703
               this.addInfo.show = false;
700 704
               this.$Message.success(res.msg);
@@ -723,18 +727,25 @@ export default {
723 727
       });
724 728
     },
725 729
     toDel(row) {
726
-      user_delete({
727
-        rtype: this.powerParams.rtype,
728
-        objectid: this.powerParams.objectid,
729
-        userid: row.userid,
730
-        rversion: row.rversion
731
-      }).then((res) => {
732
-        if (res.code === 0) {
733
-          this.searchList();
734
-          this.$Message.success(res.msg);
735
-        } else {
736
-          this.$Message.error(res.msg);
737
-        }
730
+      this.$Modal.confirm({
731
+        title: "提示",
732
+        content: "您确定删除【" + row.username + "】吗?",
733
+        onOk: () => {
734
+          user_delete({
735
+            rtype: this.powerParams.rtype,
736
+            objectid: this.powerParams.objectid,
737
+            userid: row.userid,
738
+            rversion: row.rversion
739
+          }).then((res) => {
740
+            if (res.code === 0) {
741
+              this.searchList();
742
+              this.$Message.success(res.msg);
743
+            } else {
744
+              this.$Message.error(res.msg);
745
+            }
746
+          });
747
+        },
748
+        onCancel: () => {}
738 749
       });
739 750
     },
740 751
     enabledChange(row) {
@@ -790,7 +801,6 @@ export default {
790 801
     // 获取列表
791 802
     getList() {
792 803
       this.showLoading = true;
793
-      console.log(this.powerParams);
794 804
       user_list({
795 805
         rtype: this.powerParams.rtype,
796 806
         objectid: this.powerParams.objectid,
@@ -880,7 +890,7 @@ export default {
880 890
     display: flex;
881 891
     margin: 16px 0;
882 892
     .app_logo {
883
-      flex-wrap: none;
893
+      flex: none;
884 894
       width: 56px;
885 895
       height: 56px;
886 896
       border-radius: 20px;

Загрузка…
Отмена
Сохранить