From d9cc69690e5c3ea805e8ff642a1839e0333c9b8f Mon Sep 17 00:00:00 2001
From: children117cl <278950112@qq.com>
Date: 星期五, 25 六月 2021 12:42:14 +0800
Subject: [PATCH] 登录页密码限制文案修复;新增管理员限制密码长度5-20;管理员列表修复帐号类型显示

---
 src/pages/login/index.vue  |    2 +-
 src/pages/system/admin.vue |    5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/pages/login/index.vue b/src/pages/login/index.vue
index 8ffdfc2..e3fd202 100644
--- a/src/pages/login/index.vue
+++ b/src/pages/login/index.vue
@@ -97,7 +97,7 @@
     }
     const validatePassword = (rule, value, callback) => {
       if (value.length < 5) {
-        callback(new Error('璐﹀彿涓嶈兘灏戜簬5浣�'))
+        callback(new Error('瀵嗙爜涓嶈兘灏戜簬5浣�'))
       } else {
         callback()
       }
diff --git a/src/pages/system/admin.vue b/src/pages/system/admin.vue
index 267bedd..dc81aaf 100644
--- a/src/pages/system/admin.vue
+++ b/src/pages/system/admin.vue
@@ -41,7 +41,7 @@
       <el-table-column label="璐﹀彿" prop="account" align="center" min-width="120" />
       <el-table-column label="璐﹀彿绫诲瀷" prop="account" align="center" min-width="120">
         <template slot-scope="scope">
-          <span v-if="accountTypeOptions[scope.row.type]">{{ accountTypeOptions[scope.row.type].name }}</span>
+          {{ accountTypeOptions.find(item=>item.id == scope.row.type) ? accountTypeOptions.find(item=>item.id == scope.row.type).name : '' }}
         </template>
       </el-table-column>
       <el-table-column label="瑙掕壊" prop="roleName" align="center" min-width="120" />
@@ -183,7 +183,8 @@
           { required: true, message: '璐﹀彿涓嶈兘涓虹┖', trigger: 'change' }
         ],
         password: [
-          { required: true, message: '瀵嗙爜涓嶈兘涓虹┖', trigger: 'change' }
+          { required: true, message: '瀵嗙爜涓嶈兘涓虹┖', trigger: 'change' },
+          { min: 5, max: 20, message: '瀵嗙爜鍦�5~20涓瓧涔嬮棿'}
         ],
         passwordSure: [
           { required: true, message: '纭瀵嗙爜涓嶈兘涓虹┖', trigger: 'change' },

--
Gitblit v1.8.0