| | |
| | | /> |
| | | |
| | | <!-- 新增&编辑 --> |
| | | <el-dialog :title="adminDialogData.type=='add'?'新增管理员':'编辑管理员'" width="500px" :visible.sync="adminDialogVisible" append-to-body :before-close="hideDialog"> |
| | | <el-dialog :title="adminDialogData.type==='add'?'新增管理员':'编辑管理员'" width="500px" :visible.sync="adminDialogVisible" append-to-body> |
| | | <el-form ref="adminDialog" :model="adminDialogData" label-width="80px" :rules="rules" size="small"> |
| | | <el-form-item label="名称" prop="name"> |
| | | <el-input v-model="adminDialogData.name" placeholder="请输入名称" /> |
| | |
| | | <el-form-item label="账号" prop="account"> |
| | | <el-input v-model="adminDialogData.account" placeholder="请输入帐号" :disabled="adminDialogData.type!='add'" /> |
| | | </el-form-item> |
| | | <el-form-item label="密码" :prop="adminDialogData.type=='add'?'password':''"> |
| | | <el-form-item label="密码" :prop="adminDialogData.type==='add'?'password':'none'"> |
| | | <el-input v-model="adminDialogData.password" type="password" placeholder="请输入密码" /> |
| | | </el-form-item> |
| | | <el-form-item label="确认密码" :prop="adminDialogData.type=='add'?'passwordSure':''"> |
| | | <el-form-item label="确认密码" :prop="adminDialogData.type==='add'?'passwordSure':'none'"> |
| | | <el-input v-model="adminDialogData.passwordSure" type="password" placeholder="请输入确认密码" /> |
| | | </el-form-item> |
| | | <!-- 账号类型 --> |
| | |
| | | ], |
| | | accountType: [ |
| | | { required: true, message: '账号类型不能为空', trigger: 'change' } |
| | | ], |
| | | isUse: [ |
| | | { required: true, message: '是否启用不能为空', trigger: 'change' } |
| | | ] |
| | | } |
| | | } |
| | |
| | | mockData: { |
| | | code: 100, |
| | | msg: '', |
| | | data: [{ |
| | | id: 'xxx', |
| | | name: '野马发' |
| | | }] |
| | | data: { |
| | | list: [{ |
| | | id: 'xxx', |
| | | name: '野马发' |
| | | }] |
| | | } |
| | | } |
| | | }, (inf) => { |
| | | this.roleArr = inf.list || [] |