Browse Source

平台管理员优化

gzb
wangzhonglu 9 months ago
parent
commit
3dc14579a7

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

530
     color: white;
530
     color: white;
531
   }
531
   }
532
 }
532
 }
533
-

+ 12
- 1
src/views/platformSection/regionManage/adminManage.vue View File

356
         loginname: "",
356
         loginname: "",
357
         loginpwd: "",
357
         loginpwd: "",
358
         loginpwd1: "",
358
         loginpwd1: "",
359
+        oldPhone: "",
359
         phone: "",
360
         phone: "",
360
         msgcode: "",
361
         msgcode: "",
361
         enabled: 1,
362
         enabled: 1,
507
         loginname: "",
508
         loginname: "",
508
         loginpwd: generateRandomString(),
509
         loginpwd: generateRandomString(),
509
         loginpwd1: "",
510
         loginpwd1: "",
511
+        oldPhone: "",
510
         phone: "",
512
         phone: "",
511
         msgcode: "",
513
         msgcode: "",
512
         enabled: 1,
514
         enabled: 1,
574
             this.$Message.error("手机号码格式不正确");
576
             this.$Message.error("手机号码格式不正确");
575
             return;
577
             return;
576
           }
578
           }
577
-          if (this.adminInfo.phone && !this.adminInfo.msgcode) {
579
+          if (
580
+            (!this.adminInfo.adminid &&
581
+              this.adminInfo.phone &&
582
+              !this.adminInfo.msgcode) ||
583
+            (this.adminInfo.adminid &&
584
+              this.adminInfo.phone &&
585
+              this.adminInfo.phone !== this.adminInfo.oldPhone &&
586
+              !this.adminInfo.msgcode)
587
+          ) {
578
             this.$Message.error("请输入短信验证码");
588
             this.$Message.error("请输入短信验证码");
579
             return;
589
             return;
580
           }
590
           }
649
             loginname: data.obj.loginname,
659
             loginname: data.obj.loginname,
650
             loginpwd: data.obj.loginpwd,
660
             loginpwd: data.obj.loginpwd,
651
             loginpwd1: data.obj.loginpwd1,
661
             loginpwd1: data.obj.loginpwd1,
662
+            oldPhone: data.obj.phone,
652
             phone: data.obj.phone,
663
             phone: data.obj.phone,
653
             msgcode: data.obj.msgcode,
664
             msgcode: data.obj.msgcode,
654
             enabled: data.obj.enabled,
665
             enabled: data.obj.enabled,

+ 1
- 1
src/views/platformSection/regionManage/regionManage.vue View File

563
     saveModifyInfo() {
563
     saveModifyInfo() {
564
       this.$refs.modifyForm.validate((valid) => {
564
       this.$refs.modifyForm.validate((valid) => {
565
         if (valid) {
565
         if (valid) {
566
-          this.regionInfo.show = false;
566
+          this.modifyRegion.show = false;
567
           region_edit({
567
           region_edit({
568
             rtype: this.powerParams.rtype,
568
             rtype: this.powerParams.rtype,
569
             objectid: this.powerParams.objectid,
569
             objectid: this.powerParams.objectid,

+ 73
- 50
src/views/schoolSection/applicationStrategy/appStrategyManage.vue View File

54
           <div @click="toSelectAppStrategy()">引用</div>
54
           <div @click="toSelectAppStrategy()">引用</div>
55
         </div>
55
         </div>
56
       </div>
56
       </div>
57
-      <div
58
-        class="strategy_item"
59
-        v-for="(groupItem, groupIndex) in appStrategyInfo.groups"
60
-        :key="groupIndex"
61
-      >
62
-        <table class="my_table">
63
-          <tr>
64
-            <th colspan="7">
65
-              <div class="table_header">
66
-                <div class="table_header_title">
67
-                  应用策略{{ groupIndex + 1 }}
68
-                </div>
69
-                <div class="table_header_action"></div>
70
-              </div>
71
-            </th>
72
-          </tr>
73
-          <tr>
74
-            <td v-for="weekItem in weekDay" :key="weekItem.value">
75
-              {{ weekItem.alias }}
76
-            </td>
77
-          </tr>
78
-          <tr>
79
-            <td v-for="weekItem in weekDay" :key="weekItem.value">
80
-              <div class="time_list">
81
-                <span
82
-                  v-for="(timeItem, timeIndex) in appStrategyGroupInfo[
83
-                    groupIndex
84
-                  ] && appStrategyGroupInfo[groupIndex][weekItem.value]"
85
-                  :key="timeIndex"
86
-                  >{{ timeItem.starttime }} - {{ timeItem.stoptime }}</span
87
-                >
88
-              </div>
89
-            </td>
90
-          </tr>
91
-          <tr>
92
-            <td colspan="7">
93
-              <div class="table_app_list">
94
-                <div
95
-                  class="table_app_item"
96
-                  v-for="appItem in groupItem.apps"
97
-                  :key="appItem.appid"
98
-                >
99
-                  <div class="app_top">
100
-                    <img :src="$api.showImageUrl + appItem.appIcon" />
57
+      <template v-if="appStrategyInfo.groups.length > 0">
58
+        <div
59
+          class="strategy_item"
60
+          v-for="(groupItem, groupIndex) in appStrategyInfo.groups"
61
+          :key="groupIndex"
62
+        >
63
+          <table class="my_table">
64
+            <tr>
65
+              <th colspan="7">
66
+                <div class="table_header">
67
+                  <div class="table_header_title">
68
+                    应用策略{{ groupIndex + 1 }}
101
                   </div>
69
                   </div>
102
-                  <div class="app_name">
103
-                    {{ appItem.appName }}
70
+                  <div class="table_header_action"></div>
71
+                </div>
72
+              </th>
73
+            </tr>
74
+            <tr>
75
+              <td v-for="weekItem in weekDay" :key="weekItem.value">
76
+                {{ weekItem.alias }}
77
+              </td>
78
+            </tr>
79
+            <tr>
80
+              <td v-for="weekItem in weekDay" :key="weekItem.value">
81
+                <div class="time_list">
82
+                  <span
83
+                    v-for="(timeItem, timeIndex) in appStrategyGroupInfo[
84
+                      groupIndex
85
+                    ] && appStrategyGroupInfo[groupIndex][weekItem.value]"
86
+                    :key="timeIndex"
87
+                    >{{ timeItem.starttime }} - {{ timeItem.stoptime }}</span
88
+                  >
89
+                </div>
90
+              </td>
91
+            </tr>
92
+            <tr>
93
+              <td colspan="7">
94
+                <div class="table_app_list">
95
+                  <div
96
+                    class="table_app_item"
97
+                    v-for="appItem in groupItem.apps"
98
+                    :key="appItem.appid"
99
+                  >
100
+                    <div class="app_top">
101
+                      <img :src="$api.showImageUrl + appItem.appIcon" />
102
+                    </div>
103
+                    <div class="app_name">
104
+                      {{ appItem.appName }}
105
+                    </div>
104
                   </div>
106
                   </div>
105
                 </div>
107
                 </div>
106
-              </div>
107
-            </td>
108
-          </tr>
109
-        </table>
108
+              </td>
109
+            </tr>
110
+          </table>
111
+        </div>
112
+      </template>
113
+      <div v-else class="no_data">
114
+        <div>
115
+          <img src="@/assets/img/nodata.png" />
116
+          <div>暂无数据</div>
117
+        </div>
110
       </div>
118
       </div>
111
     </div>
119
     </div>
112
     <Modal
120
     <Modal
563
     }
571
     }
564
   }
572
   }
565
 }
573
 }
574
+.no_data {
575
+  display: flex;
576
+  justify-content: center;
577
+  align-items: center;
578
+  width: 100%;
579
+  height: calc(100% - 50px);
580
+  font-size: 20px;
581
+  color: #798cb5;
582
+  text-align: center;
583
+  img {
584
+    margin-bottom: 25px;
585
+    width: 300px;
586
+    height: 180px;
587
+  }
588
+}
566
 </style>
589
 </style>

Loading…
Cancel
Save