瀏覽代碼

区域码验证

gzb
guozhongbo 8 月之前
父節點
當前提交
fc56a02611

+ 3
- 2
src/assets/less/common.less 查看文件

@@ -376,11 +376,12 @@ fieldset[disabled] .ivu-input,
376 376
   border-radius: 8px;
377 377
 }
378 378
 .main_root {
379
-  margin: 0 16px 10px;
380
-  min-height: calc(100% - 10px);
379
+  //margin: 0 16px 10px;
380
+ height: calc(100% - 10px);
381 381
   border-radius: 15px;
382 382
   border: 1px solid #e9f0f9;
383 383
   background-color: #fff;
384
+  overflow: auto;
384 385
 }
385 386
 // 表格
386 387
 .table_wrap {

+ 7
- 0
src/utils/index.js 查看文件

@@ -16,6 +16,13 @@ export const pwdCheck = (rule, value, callback) => {
16 16
     callback();
17 17
   }
18 18
 };
19
+export const codeCheck = (rule, value, callback) => {
20
+  if ((value && value.length !== 6) || !value) {
21
+    return callback(new Error("请输入6位区域码!"));
22
+  } else {
23
+    callback();
24
+  }
25
+};
19 26
 export const padDevices = [
20 27
   {
21 28
     pdorder: 1,

+ 2
- 1
src/views/platformSection/index.vue 查看文件

@@ -200,7 +200,8 @@ export default {
200 200
     position: relative;
201 201
     width: 100%;
202 202
     height: calc(100% - 80px);
203
-    overflow: auto;
203
+    //overflow: auto;
204
+    padding: 0 16px 10px;
204 205
   }
205 206
 }
206 207
 </style>

+ 4
- 2
src/views/platformSection/regionManage/regionManage.vue 查看文件

@@ -60,6 +60,7 @@
60 60
           <Input
61 61
             v-model="regionInfo.regionCode"
62 62
             placeholder="请输入区域码"
63
+            :maxlength="6"
63 64
           ></Input>
64 65
         </FormItem>
65 66
         <FormItem
@@ -185,6 +186,7 @@
185 186
           <Input
186 187
             v-model="modifyRegion.regionCode"
187 188
             placeholder="请输入区域码"
189
+            :maxlength="6"
188 190
           ></Input>
189 191
         </FormItem>
190 192
         <FormItem label="地址" prop="address" style="width: 100%">
@@ -238,7 +240,7 @@
238 240
 </template>
239 241
 
240 242
 <script>
241
-import { generateRandomString, pwdCheck, reg } from "@/utils";
243
+import { generateRandomString, pwdCheck, reg, codeCheck } from "@/utils";
242 244
 import {
243 245
   region_list_pt,
244 246
   region_list_admin,
@@ -341,7 +343,7 @@ export default {
341 343
         regionCode: [
342 344
           {
343 345
             required: true,
344
-            message: "请输入6位区域码",
346
+            validator: codeCheck,
345 347
             trigger: "blur"
346 348
           }
347 349
         ],

+ 4
- 3
src/views/regionSection/index.vue 查看文件

@@ -429,7 +429,7 @@ export default {
429 429
             top: 32px;
430 430
             left: 0;
431 431
             padding: 10px 0;
432
-            min-width: 100px;
432
+            min-width: 110px;
433 433
             color: #253a70;
434 434
             font-size: 14px;
435 435
             font-weight: normal;
@@ -438,7 +438,7 @@ export default {
438 438
             box-shadow: 0 8px 30px 0 #bcc9e380;
439 439
             z-index: 999;
440 440
             .drop_down_list_item {
441
-              margin: 0 6px;
441
+              margin: 0 10px;
442 442
               padding: 0 10px;
443 443
               white-space: nowrap;
444 444
               line-height: 35px;
@@ -488,7 +488,8 @@ export default {
488 488
     position: relative;
489 489
     width: 100%;
490 490
     height: calc(100% - 80px);
491
-    overflow: auto;
491
+    //overflow: auto;
492
+    padding: 0 16px 10px;
492 493
   }
493 494
 }
494 495
 </style>

+ 2
- 2
src/views/regionSection/regionManage/regionManage.vue 查看文件

@@ -290,7 +290,7 @@
290 290
 </template>
291 291
 
292 292
 <script>
293
-import { generateRandomString, pwdCheck, reg } from "@/utils";
293
+import { codeCheck, generateRandomString, pwdCheck, reg } from "@/utils";
294 294
 import {
295 295
   region_list_admin,
296 296
   region_delete,
@@ -416,7 +416,7 @@ export default {
416 416
         regionCode: [
417 417
           {
418 418
             required: true,
419
-            message: "请输入6位区域码",
419
+            validator: codeCheck,
420 420
             trigger: "blur"
421 421
           }
422 422
         ],

+ 1
- 1
src/views/regionSection/search/deviceModel.vue 查看文件

@@ -85,7 +85,7 @@ export default {
85 85
         },
86 86
         {
87 87
           title: "学校设备总数",
88
-          key: "deviceModel",
88
+          key: "totalnum",
89 89
           width: 140,
90 90
           align: "center"
91 91
         }

+ 2
- 2
src/views/schoolSection/applicationManage/applicationList.vue 查看文件

@@ -245,13 +245,13 @@
245 245
               <span>选择是时,设备上允许清除该应用对应的缓存。</span>
246 246
             </div>
247 247
           </FormItem>
248
-          <FormItem label="默认授权" style="width: 100%">
248
+          <FormItem label="添加到已有策略" style="width: 100%">
249 249
             <div class="comm">
250 250
               <RadioGroup v-model="wallpaperInfo.strategy">
251 251
                 <Radio :label="1">是</Radio>
252 252
                 <Radio :label="0">否</Radio>
253 253
               </RadioGroup>
254
-              <span>仅对新建策略生效;选择是时,新建策略默认授权该应用。</span>
254
+              <span>选择添加到已有策略,则当前应用会被添加到其授权的且不存在相同包名应用的学校策略。</span>
255 255
             </div>
256 256
           </FormItem>
257 257
           <FormItem label="适配设备" style="width: 100%" class="require">

+ 2
- 1
src/views/schoolSection/index.vue 查看文件

@@ -471,7 +471,8 @@ export default {
471 471
     position: relative;
472 472
     width: 100%;
473 473
     height: calc(100% - 80px);
474
-    overflow: auto;
474
+    //overflow: auto;
475
+    padding: 0 16px 10px;
475 476
   }
476 477
 }
477 478
 </style>

+ 2
- 2
src/views/schoolSection/strategy/strategyManage.vue 查看文件

@@ -137,8 +137,8 @@ export default {
137 137
 
138 138
 <style lang="less" scoped>
139 139
 .main_root {
140
-  width: calc(100% - 32px);
141
-  height: calc(100% - 60px);
140
+  width: 100%;
141
+  height: 100%;
142 142
   background-color: transparent;
143 143
   border: none;
144 144
   display: flex;

+ 2
- 2
src/views/schoolSection/userManage/userManage.vue 查看文件

@@ -981,8 +981,8 @@ export default {
981 981
 
982 982
 <style lang="less" scoped>
983 983
 .main_root {
984
-  width: calc(100% - 32px);
985
-  height: calc(100% - 60px);
984
+  width: 100%;
985
+  height: 100%;
986 986
   background-color: transparent;
987 987
   border: none;
988 988
   display: flex;

Loading…
取消
儲存