Browse Source

Merge remote-tracking branch 'origin/gzb' into wzl

gzb
wangzhonglu 8 months ago
parent
commit
1a5e3902dd

+ 14
- 0
src/assets/less/common.less View File

@@ -491,3 +491,17 @@ fieldset[disabled] .ivu-input,
491 491
     }
492 492
   }
493 493
 }
494
+//开关组件
495
+.ivu-switch {
496
+  .ivu-switch-inner{
497
+    color: #798cb5;
498
+  }
499
+}
500
+.ivu-switch-checked {
501
+  border-color: #339dff;
502
+  background-color: #339dff;
503
+  .ivu-switch-inner{
504
+    color: white;
505
+  }
506
+}
507
+

+ 28
- 18
src/views/regionSection/applicationManage/applicationManage.vue View File

@@ -37,8 +37,8 @@
37 37
               <img :src="$api.showImageUrl + row.appIcon" />
38 38
             </div>
39 39
             <div class="app_comm">
40
-              <div>
41
-                {{ row.appName }}
40
+              <div :title="row.appName">
41
+                <div class="apptitle">{{ row.appName }}</div>
42 42
                 <div v-if="row.belong === 1" class="app_tag">公共</div>
43 43
                 <div v-else-if="row.belong === 2" class="web_tag">私有</div>
44 44
               </div>
@@ -305,7 +305,7 @@
305 305
               </uploader>
306 306
             </div>
307 307
             <div class="upProgress" v-if="file_list.length > 0">
308
-              <div v-for="file in file_list" key="file1">
308
+              <div v-for="(file, index) in file_list" :key="index">
309 309
                 <div class="file_name" :title="wallpaperInfo.appPackage">
310 310
                   <div class="show_name">
311 311
                     {{ wallpaperInfo.appPackage }}
@@ -812,7 +812,7 @@ export default {
812 812
           {
813 813
             title: "序号",
814 814
             type: "index",
815
-            width: 70,
815
+            width: 60,
816 816
             align: "center"
817 817
           },
818 818
           {
@@ -895,7 +895,7 @@ export default {
895 895
         {
896 896
           title: "序号",
897 897
           align: "center",
898
-          width: 70,
898
+          Width: 50,
899 899
           render: (h, params) => {
900 900
             return h(
901 901
               "span",
@@ -909,45 +909,48 @@ export default {
909 909
           title: "应用",
910 910
           slot: "appName",
911 911
           align: "center",
912
-          minWidth: 160
912
+          minWidth: 250
913 913
         },
914 914
         {
915 915
           title: "分组",
916 916
           key: "appgroupName",
917
-          align: "center"
917
+          align: "center",
918
+          minWidth: 80
918 919
         },
919 920
         {
920 921
           title: "属性应用",
921 922
           slot: "appType",
922
-          align: "center"
923
+          align: "center",
924
+          minWidth: 80
923 925
         },
924 926
         {
925 927
           title: "状态",
926 928
           slot: "enabled",
927
-          align: "center"
929
+          align: "center",
930
+          minWidth: 50
928 931
         },
929 932
         {
930 933
           title: "网址白名单例外",
931 934
           slot: "whited",
932 935
           align: "center",
933
-          width: 140
936
+          minWidth: 80
934 937
         },
935 938
         {
936 939
           title: "操作时间",
937 940
           key: "updatetime",
938 941
           align: "center",
939
-          width: 180
942
+          width: 150
940 943
         },
941 944
         {
942 945
           title: "统计",
943 946
           slot: "countSlot",
944 947
           align: "center",
945
-          width: 160
948
+          width: 120
946 949
         },
947 950
         {
948 951
           title: "操作",
949 952
           slot: "actionSlot",
950
-          width: 180,
953
+          width: 140,
951 954
           align: "center"
952 955
         }
953 956
       ]
@@ -981,10 +984,8 @@ export default {
981 984
         (v) => v.versionName === this.viewInfo.versionName
982 985
       )[0];
983 986
       this.viewInfo.apkPath = obj.apkPath;
984
-      this.viewInfo.appAbbr = obj.appAbbr;
985 987
       this.viewInfo.appDeveloper = obj.appDeveloper;
986 988
       this.viewInfo.appIcon = obj.appIcon;
987
-      this.viewInfo.appImg = obj.appImg ? obj.appImg.split(";") : [];
988 989
       this.viewInfo.appPackage = obj.appPackage;
989 990
       this.viewInfo.appRenew = obj.appRenew;
990 991
       this.viewInfo.appSize = obj.appSize;
@@ -1519,7 +1520,8 @@ export default {
1519 1520
             appName: this.wallpaperInfo.appName,
1520 1521
             enabled: this.wallpaperInfo.enabled,
1521 1522
             appType: this.wallpaperInfo.appType,
1522
-            forced: this.wallpaperInfo.appType === 1?0:this.wallpaperInfo.forced,
1523
+            forced:
1524
+              this.wallpaperInfo.appType === 1 ? 0 : this.wallpaperInfo.forced,
1523 1525
             whited: this.wallpaperInfo.whited,
1524 1526
             showico: this.wallpaperInfo.showico,
1525 1527
             strategy: this.wallpaperInfo.strategy,
@@ -1714,6 +1716,7 @@ export default {
1714 1716
       border: 1px solid #e5e5e5;
1715 1717
       background: #ffffff;
1716 1718
       padding: 10px;
1719
+      margin-top: 8px;
1717 1720
       img {
1718 1721
         width: 38px;
1719 1722
         height: 38px;
@@ -1722,19 +1725,26 @@ export default {
1722 1725
     }
1723 1726
     .app_comm {
1724 1727
       flex: none;
1725
-      min-width: 120px;
1726 1728
       margin-left: 10px;
1727 1729
       text-align: left;
1728 1730
       div {
1731
+        display: flex;
1732
+        align-items: center;
1729 1733
         color: #339dff;
1730 1734
       }
1735
+      .apptitle {
1736
+        display: inline-block;
1737
+        max-width: 140px;
1738
+        white-space: nowrap;
1739
+        text-overflow: ellipsis;
1740
+        overflow: hidden;
1741
+      }
1731 1742
       .app_tag {
1732 1743
         display: inline-block;
1733 1744
         margin-left: 4px;
1734 1745
         width: 32px;
1735 1746
         text-align: center;
1736 1747
         color: #fff;
1737
-        line-height: 1.6;
1738 1748
         font-size: 12px;
1739 1749
         border-radius: 5px;
1740 1750
         background-color: #7854f6;

+ 4
- 5
src/views/regionSection/regionManage/adminManage.vue View File

@@ -419,7 +419,7 @@ export default {
419 419
         {
420 420
           title: "序号",
421 421
           align: "center",
422
-          width: 70,
422
+          width: 50,
423 423
           render: (h, params) => {
424 424
             return h(
425 425
               "span",
@@ -442,7 +442,6 @@ export default {
442 442
         {
443 443
           title: "手机号码",
444 444
           key: "phone",
445
-          width: 135,
446 445
           align: "center"
447 446
         },
448 447
         {
@@ -464,19 +463,19 @@ export default {
464 463
         {
465 464
           title: "最后登录IP",
466 465
           key: "lastip",
467
-          width: 150,
466
+          width: 130,
468 467
           align: "center"
469 468
         },
470 469
         {
471 470
           title: "最后登录时间",
472 471
           key: "lasttime",
473
-          width: 190,
472
+          width: 150,
474 473
           align: "center"
475 474
         },
476 475
         {
477 476
           title: "操作",
478 477
           slot: "actionSlot",
479
-          width: 180,
478
+          width: 140,
480 479
           align: "center"
481 480
         }
482 481
       ],

+ 8
- 2
src/views/regionSection/regionManage/regionManage.vue View File

@@ -22,7 +22,13 @@
22 22
             </div>
23 23
             <div @click="toView(row)">查看</div>
24 24
             <div @click="toEdit(row)">编辑</div>
25
-            <div class="action_del" @click="toDel(row)">删除</div>
25
+            <div
26
+              v-if="row.regionid != powerParams.objectid"
27
+              class="action_del"
28
+              @click="toDel(row)"
29
+            >
30
+              删除
31
+            </div>
26 32
             <div @click="toSet(row)">设置</div>
27 33
           </div>
28 34
         </template>
@@ -491,7 +497,7 @@ export default {
491 497
         {
492 498
           title: "操作",
493 499
           slot: "actionSlot",
494
-          width: 280,
500
+          width: 230,
495 501
           align: "center"
496 502
         }
497 503
       ],

+ 3
- 4
src/views/regionSection/regionManage/schoolManage.vue View File

@@ -410,7 +410,7 @@ export default {
410 410
         {
411 411
           title: "序号",
412 412
           align: "center",
413
-          width: 70,
413
+          width: 50,
414 414
           render: (h, params) => {
415 415
             return h(
416 416
               "span",
@@ -445,7 +445,6 @@ export default {
445 445
         {
446 446
           title: "所属区域",
447 447
           key: "regionName",
448
-          width: 150,
449 448
           align: "center"
450 449
         },
451 450
         {
@@ -457,13 +456,13 @@ export default {
457 456
         {
458 457
           title: "操作时间",
459 458
           key: "updatetime",
460
-          width: 190,
459
+          width: 150,
461 460
           align: "center"
462 461
         },
463 462
         {
464 463
           title: "操作",
465 464
           slot: "actionSlot",
466
-          width: 180,
465
+          width: 140,
467 466
           align: "center"
468 467
         }
469 468
       ],

+ 25
- 16
src/views/regionSection/search/allApps.vue View File

@@ -23,8 +23,8 @@
23 23
               <img :src="$api.showImageUrl + row.appIcon" />
24 24
             </div>
25 25
             <div class="app_comm">
26
-              <div>
27
-                {{ row.appName }}
26
+              <div :title="row.appName">
27
+                <div class="apptitle">{{ row.appName }}</div>
28 28
                 <div v-if="row.belong === 1" class="app_tag">公共</div>
29 29
                 <div v-else-if="row.belong === 2" class="web_tag">私有</div>
30 30
               </div>
@@ -440,7 +440,7 @@ export default {
440 440
         {
441 441
           title: "序号",
442 442
           align: "center",
443
-          width: 70,
443
+          width: 50,
444 444
           render: (h, params) => {
445 445
             return h(
446 446
               "span",
@@ -454,50 +454,54 @@ export default {
454 454
           title: "应用",
455 455
           slot: "appName",
456 456
           align: "center",
457
-          minWidth: 160
457
+          minWidth: 250
458 458
         },
459 459
         {
460 460
           title: "分组",
461 461
           key: "appgroupName",
462
-          align: "center"
462
+          align: "center",
463
+          minWidth: 80
463 464
         },
464 465
         {
465 466
           title: "属性应用",
466 467
           slot: "appType",
467
-          align: "center"
468
+          align: "center",
469
+          minWidth: 80
468 470
         },
469 471
         {
470 472
           title: "状态",
471 473
           slot: "enabled",
472
-          align: "center"
474
+          align: "center",
475
+          minWidth: 50
473 476
         },
474 477
         {
475 478
           title: "网址白名单例外",
476 479
           slot: "whited",
477
-          width: 140,
480
+          minWidth: 80,
478 481
           align: "center"
479 482
         },
480 483
         {
481 484
           title: "操作人",
482 485
           key: "updatename",
483
-          align: "center"
486
+          align: "center",
487
+          minWidth: 100
484 488
         },
485 489
         {
486 490
           title: "操作时间",
487 491
           key: "updatetime",
488
-          width: 180,
492
+          width: 150,
489 493
           align: "center"
490 494
         },
491 495
         {
492 496
           title: "统计",
493 497
           slot: "countSlot",
494
-          width: 160,
498
+          width: 120,
495 499
           align: "center"
496 500
         },
497 501
         {
498 502
           title: "操作",
499 503
           slot: "actionSlot",
500
-          width: 130,
504
+          width: 100,
501 505
           align: "center"
502 506
         }
503 507
       ]
@@ -662,10 +666,8 @@ export default {
662 666
         (v) => v.versionName === this.viewInfo.versionName
663 667
       )[0];
664 668
       this.viewInfo.apkPath = obj.apkPath;
665
-      this.viewInfo.appAbbr = obj.appAbbr;
666 669
       this.viewInfo.appDeveloper = obj.appDeveloper;
667 670
       this.viewInfo.appIcon = obj.appIcon;
668
-      this.viewInfo.appImg = obj.appImg ? obj.appImg.split(";") : [];
669 671
       this.viewInfo.appPackage = obj.appPackage;
670 672
       this.viewInfo.appRenew = obj.appRenew;
671 673
       this.viewInfo.appSize = obj.appSize;
@@ -707,7 +709,6 @@ export default {
707 709
             devices: res.obj.devices,
708 710
             schools: res.obj.schools
709 711
           };
710
-          console.log(this.viewInfo)
711 712
         } else {
712 713
           this.$Message.error(res.msg);
713 714
         }
@@ -810,12 +811,20 @@ export default {
810 811
     }
811 812
     .app_comm {
812 813
       flex: none;
813
-      min-width: 120px;
814 814
       margin-left: 10px;
815 815
       text-align: left;
816 816
       div {
817
+        display: flex;
818
+        align-items: center;
817 819
         color: #339dff;
818 820
       }
821
+      .apptitle {
822
+        display: inline-block;
823
+        max-width: 140px;
824
+        white-space: nowrap;
825
+        text-overflow: ellipsis;
826
+        overflow: hidden;
827
+      }
819 828
       .app_tag {
820 829
         display: inline-block;
821 830
         margin-left: 4px;

+ 0
- 3
src/views/regionSection/search/allUsers.vue View File

@@ -76,19 +76,16 @@ export default {
76 76
         {
77 77
           title: "学生姓名",
78 78
           key: "username",
79
-          width: 140,
80 79
           align: "center"
81 80
         },
82 81
         {
83 82
           title: "状态",
84 83
           slot: "enabled",
85
-          width: 190,
86 84
           align: "center"
87 85
         },
88 86
         {
89 87
           title: "学校名称",
90 88
           key: "schoolName",
91
-          width: 140,
92 89
           align: "center"
93 90
         },
94 91
         {

+ 24
- 14
src/views/schoolSection/applicationManage/applicationList.vue View File

@@ -53,8 +53,8 @@
53 53
               <img :src="$api.showImageUrl + row.appIcon" />
54 54
             </div>
55 55
             <div class="app_comm">
56
-              <div>
57
-                {{ row.appName }}
56
+              <div :title="row.appName">
57
+                <div class="apptitle">{{ row.appName }}</div>
58 58
                 <div v-if="row.belong === 1" class="app_tag">公共</div>
59 59
                 <div v-else-if="row.belong === 2" class="web_tag">私有</div>
60 60
               </div>
@@ -862,7 +862,7 @@ export default {
862 862
         {
863 863
           title: "序号",
864 864
           align: "center",
865
-          width: 70,
865
+          width: 50,
866 866
           render: (h, params) => {
867 867
             return h(
868 868
               "span",
@@ -876,45 +876,48 @@ export default {
876 876
           title: "应用",
877 877
           slot: "appName",
878 878
           align: "center",
879
-          minWidth: 160
879
+          minWidth: 250
880 880
         },
881 881
         {
882 882
           title: "分组",
883 883
           key: "appgroupName",
884
-          align: "center"
884
+          align: "center",
885
+          minWidth: 80
885 886
         },
886 887
         {
887 888
           title: "属性应用",
888 889
           slot: "appType",
889
-          align: "center"
890
+          align: "center",
891
+          minWidth: 80
890 892
         },
891 893
         {
892 894
           title: "状态",
893 895
           slot: "enabled",
894
-          align: "center"
896
+          align: "center",
897
+          minWidth: 50
895 898
         },
896 899
         {
897 900
           title: "网址白名单例外",
898 901
           slot: "whited",
899 902
           align: "center",
900
-          width: 140
903
+          width: 80
901 904
         },
902 905
         {
903 906
           title: "操作时间",
904 907
           key: "updatetime",
905 908
           align: "center",
906
-          width: 180
909
+          width: 150
907 910
         },
908 911
         {
909 912
           title: "统计",
910 913
           slot: "countSlot",
911 914
           align: "center",
912
-          width: 160
915
+          width: 120
913 916
         },
914 917
         {
915 918
           title: "操作",
916 919
           slot: "actionSlot",
917
-          width: 180,
920
+          width: 140,
918 921
           align: "center"
919 922
         }
920 923
       ]
@@ -948,10 +951,8 @@ export default {
948 951
         (v) => v.versionName === this.viewInfo.versionName
949 952
       )[0];
950 953
       this.viewInfo.apkPath = obj.apkPath;
951
-      this.viewInfo.appAbbr = obj.appAbbr;
952 954
       this.viewInfo.appDeveloper = obj.appDeveloper;
953 955
       this.viewInfo.appIcon = obj.appIcon;
954
-      this.viewInfo.appImg = obj.appImg ? obj.appImg.split(";") : [];
955 956
       this.viewInfo.appPackage = obj.appPackage;
956 957
       this.viewInfo.appRenew = obj.appRenew;
957 958
       this.viewInfo.appSize = obj.appSize;
@@ -1101,7 +1102,7 @@ export default {
1101 1102
               {
1102 1103
                 title: "序号",
1103 1104
                 type: "index",
1104
-                width: 70,
1105
+                width: 50,
1105 1106
                 align: "center"
1106 1107
               },
1107 1108
               {
@@ -1589,8 +1590,17 @@ export default {
1589 1590
       margin-left: 10px;
1590 1591
       text-align: left;
1591 1592
       div {
1593
+        display: flex;
1594
+        align-items: center;
1592 1595
         color: #339dff;
1593 1596
       }
1597
+      .apptitle {
1598
+        display: inline-block;
1599
+        max-width: 140px;
1600
+        white-space: nowrap;
1601
+        text-overflow: ellipsis;
1602
+        overflow: hidden;
1603
+      }
1594 1604
       .app_tag {
1595 1605
         display: inline-block;
1596 1606
         margin-left: 4px;

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

@@ -138,13 +138,13 @@ export default {
138 138
         {
139 139
           title: "操作时间",
140 140
           key: "updatetime",
141
-          width: 190,
141
+          width: 160,
142 142
           align: "center"
143 143
         },
144 144
         {
145 145
           title: "操作",
146 146
           slot: "actionSlot",
147
-          width: 140,
147
+          width: 120,
148 148
           align: "center"
149 149
         }
150 150
       ],

+ 4
- 3
src/views/schoolSection/strategy/personalStrategy.vue View File

@@ -460,7 +460,7 @@ export default {
460 460
         {
461 461
           title: "序号",
462 462
           align: "center",
463
-          width: 70,
463
+          width: 50,
464 464
           render: (h, params) => {
465 465
             return h(
466 466
               "span",
@@ -488,13 +488,14 @@ export default {
488 488
         {
489 489
           title: "操作时间",
490 490
           key: "updatetime",
491
-          align: "center"
491
+          align: "center",
492
+          width: 150
492 493
         },
493 494
         {
494 495
           title: "操作",
495 496
           slot: "operation",
496 497
           align: "center",
497
-          width: 220
498
+          width: 160
498 499
         }
499 500
       ]
500 501
     };

+ 1
- 1
src/views/schoolSection/strategy/strategyTemplate.vue View File

@@ -504,7 +504,7 @@ export default {
504 504
         {
505 505
           title: "操作",
506 506
           slot: "actionSlot",
507
-          width: 280,
507
+          width: 220,
508 508
           align: "center"
509 509
         }
510 510
       ]

+ 4
- 6
src/views/schoolSection/userManage/userManage.vue View File

@@ -121,10 +121,8 @@
121 121
           <template slot-scope="{ row }" slot="actionSlot">
122 122
             <div class="action_list">
123 123
               <div class="action_del" @click="toDel(row)">删除</div>
124
-              <div class="action_success pointer" @click="toCare(row)">
125
-                <span v-if="row.care === 2">重点关注</span>
126
-                <span v-else>取消关注</span>
127
-              </div>
124
+              <div v-if="row.care === 2" @click="toCare(row)">重点关注</div>
125
+              <div v-else class="action_del" @click="toCare(row)">取消关注</div>
128 126
             </div>
129 127
           </template>
130 128
         </Table>
@@ -566,12 +564,12 @@ export default {
566 564
           title: "最后登录时间",
567 565
           key: "lasttime",
568 566
           align: "center",
569
-          width: 180
567
+          width: 150
570 568
         },
571 569
         {
572 570
           title: "操作",
573 571
           slot: "actionSlot",
574
-          width: 240,
572
+          width: 160,
575 573
           align: "center"
576 574
         }
577 575
       ],

Loading…
Cancel
Save