| | |
| | | /> |
| | | |
| | | <!-- 新增&编辑 --> |
| | | <el-dialog :title="adminDialogData.type=='add'?'新增管理员':'编辑管理员'" width="500px" :visible.sync="adminDialogVisible" append-to-body> |
| | | <el-dialog :title="adminDialogData.type=='add'?'新增管理员':'编辑管理员'" width="500px" :visible.sync="adminDialogVisible" append-to-body :before-close="hideDialog"> |
| | | <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-select> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="是否启用" prop="sysRoleId"> |
| | | <el-form-item label="是否启用" prop="isUse"> |
| | | <el-switch |
| | | v-model="adminDialogData.isUse" |
| | | :active-value="1" |
| | |
| | | ], |
| | | accountType: [ |
| | | { required: true, message: '账号类型不能为空', trigger: 'change' } |
| | | ], |
| | | isUse: [ |
| | | { required: true, message: '是否启用不能为空', trigger: 'change' } |
| | | ] |
| | | } |
| | | } |
| | |
| | | passwordSure: '', |
| | | sysRoleId: item.roId, |
| | | id: item.id, |
| | | isUse: item.isUse |
| | | isUse: item.isUse, |
| | | accountType: item.type |
| | | } |
| | | if (!item.type + '') adminDialogData.accountType = item.type |
| | | this.adminDialogVisible = true |
| | | this.$nextTick(() => { |
| | | this.adminDialogData = adminDialogData |