| | |
| | | <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' }, |