| | |
| | | :popper-append-to-body="false" |
| | | v-model="insertform.depValue" |
| | | placeholder="请选择" |
| | | style="width:93%" |
| | | style="width:95%" |
| | | > |
| | | <el-option |
| | | :value="insertform.depid" |
| | |
| | | <el-dialog |
| | | :title="$t('userManage.RM.updateRole')" |
| | | top="15vh" |
| | | width="80vh" |
| | | width="50vh" |
| | | style="overflow: hidden" |
| | | :visible.sync="UpdateFormdialog" |
| | | > |
| | |
| | | :label-width="formLabelWidth" |
| | | :prop="updateform.depValue" |
| | | > |
| | | <el-input |
| | | <el-select |
| | | :popper-append-to-body="false" |
| | | v-model="updateform.depValue" |
| | | placeholder="请选择" |
| | | style="width:95%" |
| | | > |
| | | <el-option |
| | | :value="updateform.depid" |
| | | :label="updateform.depValue" |
| | | style=" height:auto" |
| | | > |
| | | <el-tree |
| | | ref="tree" |
| | | :data="depList" |
| | | node-key="id" |
| | | :props="props" |
| | | @node-click="handleUpdataDepList" |
| | | /> |
| | | </el-option> |
| | | </el-select> |
| | | |
| | | <!-- <el-input |
| | | v-model="updateform.depValue" |
| | | :disabled="true" |
| | | :placeholder="$t('common.pleaseInput')" |
| | |
| | | type="primary" |
| | | style="margin-left:10px" |
| | | @click="showDepTree(3)" |
| | | >{{ $t('common.choose') }}</el-button> |
| | | >{{ $t('common.choose') }}</el-button> --> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('userManage.RM.isAdmin')" |
| | |
| | | this.insertform.depid = data.id |
| | | this.insertform.depValue = data.name; |
| | | }, |
| | | handleUpdataDepList(data, node, nodeData) { |
| | | this.updateform.depid = data.id |
| | | this.updateform.depValue = data.name; |
| | | }, |
| | | setInsertFormdialog() { |
| | | this.InsertFormdialog = true; |
| | | }, |
| | |
| | | }); |
| | | } |
| | | }, |
| | | async handleDelete() { |
| | | handleDelete() { |
| | | var std = []; |
| | | for (var i in this.multipleSelection) { |
| | | std.push(this.multipleSelection[i].id); |
| | | } |
| | | const data = await deleteRoles({ ids: std.toString() }); |
| | | this.$confirm('此操作将永久删除该角色, 是否继续?', '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | | type: 'warning' |
| | | }).then(async () => { |
| | | const data = await deleteRoles({ ids: std.toString() }); |
| | | |
| | | if (data.code == 200) { |
| | | this.InsertFormdialog = false; |
| | | this.$message({ |
| | | message: '删除成功!', |
| | | type: 'success', |
| | | if (data.code == 200) { |
| | | this.InsertFormdialog = false; |
| | | this.$message({ |
| | | message: '删除成功!', |
| | | type: 'success', |
| | | }); |
| | | this.getRoleTabelData(); |
| | | } else { |
| | | this.$message({ |
| | | message: '删除失败!', |
| | | type: 'warning', |
| | | }); |
| | | } |
| | | }).catch(() => { |
| | | this.$message({ |
| | | type: 'info', |
| | | message: '已取消删除' |
| | | }); |
| | | }); |
| | | this.getRoleTabelData(); |
| | | } else { |
| | | this.$message({ |
| | | message: '删除失败!', |
| | | type: 'warning', |
| | | }); |
| | | } |
| | | }, |
| | | handleSizeChange(val) { |
| | | this.listData.pageSize = val; |