| | |
| | | <el-table-column label="状态" align="center" min-width="100"> |
| | | <template slot-scope="scope"> |
| | | <el-switch |
| | | v-if="scope.row.type!=0" |
| | | v-model="scope.row.isUse" |
| | | :active-value="1" |
| | | :inactive-value="0" |
| | |
| | | @click="showEditAdminDialog(scope.row)" |
| | | >编辑</el-button> |
| | | <el-button |
| | | v-if="getAuthValueFN('sys_admin_del')" |
| | | v-if="getAuthValueFN('sys_admin_del') && scope.row.type!=0" |
| | | size="mini" |
| | | type="text warn" |
| | | icon="el-icon-delete" |
| | |
| | | ], |
| | | password: [ |
| | | { required: true, message: '密码不能为空', trigger: 'change' }, |
| | | { min: 5, max: 20, message: '密码在5~20个字之间'} |
| | | { min: 5, max: 20, message: '密码在5~20个字之间' } |
| | | ], |
| | | passwordSure: [ |
| | | { required: true, message: '确认密码不能为空', trigger: 'change' }, |
| | |
| | | } |
| | | } |
| | | }, (inf) => { |
| | | this.roleArr = inf.list || [] |
| | | this.roleArr = inf.list && inf.list.filter(item => item.isUse === 1) || [] |
| | | }) |
| | | }, |
| | | |