From 5173f8e31d106abd003e123c8679cf53c7940b33 Mon Sep 17 00:00:00 2001
From: zhanghua <314079846@qq.com>
Date: 星期一, 30 一月 2023 11:54:12 +0800
Subject: [PATCH] 网格绘制

---
 src/views/systemSetting/baseSetting/user/components/createUser/index.vue |   36 ++++++++++++++++--------------------
 1 files changed, 16 insertions(+), 20 deletions(-)

diff --git a/src/views/systemSetting/baseSetting/user/components/createUser/index.vue b/src/views/systemSetting/baseSetting/user/components/createUser/index.vue
index 7d1cbe8..6f2f733 100644
--- a/src/views/systemSetting/baseSetting/user/components/createUser/index.vue
+++ b/src/views/systemSetting/baseSetting/user/components/createUser/index.vue
@@ -189,16 +189,12 @@
     };
     const validatePass = (rule, value, callback) => {
       //蹇呴』鍖呭惈瀛楁瘝銆佹暟瀛椼�侀暱搴﹀啀6-16浣嶄箣闂�
-      var regex = new RegExp("^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,16}$");
-      if (value === "") {
-        callback(new Error("鐢ㄦ埛瀵嗙爜涓嶈兘涓虹┖"));
-      } else if (value.length < 6 || value.length > 16) {
-        callback(new Error("璇疯緭饧�6~16浣嶅瘑鐮�"));
-      } else if (!regex.test(value)) {
-        callback(new Error("瀵嗙爜鍙兘鏄互鏁板瓧銆�26涓嫳鏂囧瓧姣嶇粍鎴愮殑瀛楃涓�"));
-      } else {
-        callback();
-      }
+      var rep =/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])[a-zA-Z0-9]{8,16}$/;
+          if (!rep.test(value) ) {
+            callback(new Error("瀵嗙爜闀垮害8鍒�16浣嶄笖瀵嗙爜涓殑瀛楃蹇呴』鍖呭惈瀛楁瘝澶у啓鍜屽瓧姣嶅皬鍐欏拰蹇呴』鍖呭惈鏁板瓧锛屼笉鑳藉寘鍚┖鏍�"));
+          } else {
+            callback();
+          }
 
       // if (!value) {
       //     callback(new Error("鐢ㄦ埛瀵嗙爜涓嶈兘涓虹┖"));
@@ -502,28 +498,28 @@
 <style lang="scss" scoped>
 .createUser {
   border-radius: 1px;
-  background-color: #09152f;
+  // background-color: #09152f;
 
   main {
     text-align: left;
     padding: 0 55px;
-    background-color: #09152f;
+    // background-color: #09152f;
     padding-bottom: 50px;
     padding-top: 20px;
 
     .mainContent {
       display: flex;
-      // justify-content: center;
+      justify-content: center;
       margin-top: 50px;
       width: 100%;
-      &::v-deep .el-form-item__label {
-        color: #4b9bb7;
-      }
+      // &::v-deep .el-form-item__label {
+      //   color: #4b9bb7;
+      // }
 
-      &::v-deep .el-input__inner {
-        background-color: #09152f;
-        border: 1px solid #17324c;
-      }
+      // &::v-deep .el-input__inner {
+      //   background-color: #09152f;
+      //   border: 1px solid #17324c;
+      // }
 
       .el-form-item__content {
         width: 400px;

--
Gitblit v1.8.0