登录页密码限制文案修复;新增管理员限制密码长度5-20;管理员列表修复帐号类型显示
| | |
| | | } |
| | | const validatePassword = (rule, value, callback) => { |
| | | if (value.length < 5) { |
| | | callback(new Error('账号不能少于5位')) |
| | | callback(new Error('密码不能少于5位')) |
| | | } else { |
| | | callback() |
| | | } |
| | |
| | | <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" /> |
| | |
| | | { 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' }, |