Browse Source

密码验证优化;应用策略时间可不选;隐藏设置”启用截屏“

gzb
wangzhonglu 8 months ago
parent
commit
e3d035403c

+ 6
- 3
src/utils/index.js View File

@@ -2,11 +2,14 @@
2 2
 let _timezone = 8; //目标时区时间,东八区   东时区正数 西时区负数
3 3
 let _offset_GMT = new Date().getTimezoneOffset(); // 本地时间和格林威治的时间差,单位为分钟
4 4
 let diffTime = _offset_GMT * 60 * 1000 + _timezone * 60 * 60 * 1000; //0
5
-
5
+/**
6
+ * 字符串是6-16位的大小写英文字母、数字组合。
7
+ */
6 8
 export const reg = /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d]{6,16}$/;
7
-// 密码验证
9
+/**
10
+ * 字符串是6-16位的大小写英文字母、数字组合。
11
+ */
8 12
 export const pwdCheck = (rule, value, callback) => {
9
-  const reg = /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d]{6,16}$/;
10 13
   if (!reg.test(value)) {
11 14
     return callback(new Error("密码格式不正确!"));
12 15
   } else {

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

@@ -547,11 +547,8 @@ export default {
547 547
             this.adminInfo.adminid &&
548 548
             (this.adminInfo.loginpwd || this.adminInfo.loginpwd1)
549 549
           ) {
550
-            const reg = /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d]{8,32}$/;
551 550
             if (!reg.test(this.adminInfo.loginpwd)) {
552
-              this.$Message.error(
553
-                "密码必须包含大小写字母和数字的组合,长度在8-32之间。"
554
-              );
551
+              this.$Message.error("密码格式不正确。");
555 552
               return;
556 553
             }
557 554
             if (this.adminInfo.loginpwd != this.adminInfo.loginpwd1) {

+ 14
- 6
src/views/platformSection/regionManage/regionManage.vue View File

@@ -82,7 +82,11 @@
82 82
             placeholder="请输入登录账号"
83 83
           ></Input>
84 84
         </FormItem>
85
-        <FormItem label="密码" prop="loginpwd" style="width: calc(50% - 10px)">
85
+        <FormItem
86
+          label="密码"
87
+          prop="admin.loginpwd"
88
+          style="width: calc(50% - 10px)"
89
+        >
86 90
           <Input
87 91
             v-model="regionInfo.admin.loginpwd"
88 92
             placeholder="请输入密码"
@@ -90,7 +94,7 @@
90 94
         </FormItem>
91 95
         <FormItem
92 96
           label="确认密码"
93
-          prop="loginpwd1"
97
+          prop="admin.loginpwd1"
94 98
           style="width: calc(50% - 10px)"
95 99
         >
96 100
           <Input
@@ -98,7 +102,11 @@
98 102
             placeholder="请输入确认密码"
99 103
           ></Input>
100 104
         </FormItem>
101
-        <FormItem label="手机号码" prop="phone" style="width: calc(50% - 10px)">
105
+        <FormItem
106
+          label="手机号码"
107
+          prop="admin.phone"
108
+          style="width: calc(50% - 10px)"
109
+        >
102 110
           <Input
103 111
             v-model="regionInfo.admin.phone"
104 112
             placeholder="请输入手机号码"
@@ -119,13 +127,13 @@
119 127
             }}
120 128
           </div>
121 129
         </FormItem>
122
-        <FormItem label="地址" prop="address" style="width: 100%">
130
+        <FormItem label="地址" prop="admin.address" style="width: 100%">
123 131
           <Input
124 132
             v-model="regionInfo.admin.address"
125 133
             placeholder="请输入地址"
126 134
           ></Input>
127 135
         </FormItem>
128
-        <FormItem label="描述信息" prop="comm" style="width: 100%">
136
+        <FormItem label="描述信息" prop="admin.comm" style="width: 100%">
129 137
           <Input
130 138
             type="textarea"
131 139
             v-model="regionInfo.admin.comm"
@@ -351,7 +359,7 @@ export default {
351 359
             trigger: "blur"
352 360
           }
353 361
         ],
354
-        loginpwd: [
362
+        "admin.loginpwd": [
355 363
           {
356 364
             required: true,
357 365
             validator: pwdCheck,

+ 0
- 1
src/views/regionSection/regionManage/adminManage.vue View File

@@ -637,7 +637,6 @@ export default {
637 637
             this.adminInfo.adminid &&
638 638
             (this.adminInfo.loginpwd || this.adminInfo.loginpwd1)
639 639
           ) {
640
-            const reg = /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d]{8,32}$/;
641 640
             if (!reg.test(this.adminInfo.loginpwd)) {
642 641
               this.$Message.error("密码格式不正确!");
643 642
               return;

+ 4
- 4
src/views/schoolSection/applicationStrategy/appStrategyManageEdit.vue View File

@@ -319,10 +319,10 @@ export default {
319 319
     },
320 320
     toAddStrategySet() {
321 321
       let _tempStrategyInfo = JSON.parse(JSON.stringify(this.tempStrategyInfo));
322
-      if (_tempStrategyInfo.times.length === 0) {
323
-        this.$Message.error("请选择时间范围");
324
-        return;
325
-      }
322
+      // if (_tempStrategyInfo.times.length === 0) {
323
+      //   this.$Message.error("请选择时间范围");
324
+      //   return;
325
+      // }
326 326
       if (_tempStrategyInfo.apps.length === 0) {
327 327
         this.$Message.error("请选择应用");
328 328
         return;

+ 4
- 4
src/views/schoolSection/applicationStrategy/appStrategyTemplateAdd.vue View File

@@ -297,10 +297,10 @@ export default {
297 297
     },
298 298
     toAddStrategySet() {
299 299
       let _tempStrategyInfo = JSON.parse(JSON.stringify(this.tempStrategyInfo));
300
-      if (_tempStrategyInfo.times.length === 0) {
301
-        this.$Message.error("请选择时间范围");
302
-        return;
303
-      }
300
+      // if (_tempStrategyInfo.times.length === 0) {
301
+      //   this.$Message.error("请选择时间范围");
302
+      //   return;
303
+      // }
304 304
       if (_tempStrategyInfo.apps.length === 0) {
305 305
         this.$Message.error("请选择应用");
306 306
         return;

+ 4
- 4
src/views/schoolSection/applicationStrategy/appStrategyTemplateEdit.vue View File

@@ -320,10 +320,10 @@ export default {
320 320
     },
321 321
     toAddStrategySet() {
322 322
       let _tempStrategyInfo = JSON.parse(JSON.stringify(this.tempStrategyInfo));
323
-      if (_tempStrategyInfo.times.length === 0) {
324
-        this.$Message.error("请选择时间范围");
325
-        return;
326
-      }
323
+      // if (_tempStrategyInfo.times.length === 0) {
324
+      //   this.$Message.error("请选择时间范围");
325
+      //   return;
326
+      // }
327 327
       if (_tempStrategyInfo.apps.length === 0) {
328 328
         this.$Message.error("请选择应用");
329 329
         return;

+ 5
- 5
src/views/schoolSection/setting/deviceSetting.vue View File

@@ -115,12 +115,12 @@
115 115
             <Radio :label="0">否</Radio>
116 116
           </RadioGroup>
117 117
         </FormItem> -->
118
-        <FormItem label="启用截屏">
118
+        <!-- <FormItem label="启用截屏">
119 119
           <RadioGroup v-model="menuInfo.setDetail.screenshots">
120 120
             <Radio :label="1">是</Radio>
121 121
             <Radio :label="0">否</Radio>
122 122
           </RadioGroup>
123
-        </FormItem>
123
+        </FormItem> -->
124 124
         <!-- <FormItem label="启用客户端管理员">
125 125
           <RadioGroup v-model="menuInfo.setDetail.clientAdmin">
126 126
             <Radio :label="1">是</Radio>
@@ -267,7 +267,7 @@ export default {
267 267
           accelerate: 0,
268 268
           // gesturePwd: 0,
269 269
           // wifiAdvanced: 0,
270
-          screenshots: 0,
270
+          // screenshots: 0,
271 271
           // clientAdmin: 0,
272 272
           rotateSetting: 0,
273 273
           gallery: 0,
@@ -385,7 +385,7 @@ export default {
385 385
               accelerate: 0,
386 386
               // gesturePwd: 0,
387 387
               // wifiAdvanced: 0,
388
-              screenshots: 0,
388
+              // screenshots: 0,
389 389
               // clientAdmin: 0,
390 390
               rotateSetting: 0,
391 391
               gallery: 0,
@@ -460,7 +460,7 @@ export default {
460 460
         accelerate: this.menuInfo.setDetail.accelerate,
461 461
         // gesturePwd: this.menuInfo.setDetail.gesturePwd,
462 462
         // wifiAdvanced: this.menuInfo.setDetail.wifiAdvanced,
463
-        screenshots: this.menuInfo.setDetail.screenshots,
463
+        // screenshots: this.menuInfo.setDetail.screenshots,
464 464
         // clientAdmin: this.menuInfo.setDetail.clientAdmin,
465 465
         rotateSetting: this.menuInfo.setDetail.rotateSetting,
466 466
         gallery: this.menuInfo.setDetail.gallery,

Loading…
Cancel
Save