| | |
| | | <el-table |
| | | :data="tableData" |
| | | style="width: 100%" |
| | | border |
| | | height="calc(100% - 45px)" |
| | | @selection-change="handleSelectionChange" |
| | | > |
| | |
| | | |
| | | <el-dialog |
| | | :title="$t('userManage.RM.insertRole')" |
| | | |
| | | :before-close="handleClose" |
| | | style="overflow: hidden" |
| | | :visible.sync="InsertFormdialog" |
| | | > |
| | |
| | | <el-dialog |
| | | :title="$t('userManage.RM.updateRole')" |
| | | :visible.sync="UpdateFormdialog" |
| | | :before-close="handleCloseEdit" |
| | | > |
| | | <div style="height: 500px; overflow: auto"> |
| | | <el-form :model="updateform" label-position="top"> |
| | |
| | | }); |
| | | }, |
| | | insertFromClose() { |
| | | this.InsertFormdialog = false; |
| | | this.insertform = {}; |
| | | this.$confirm("关闭后无法保存,是否关闭?") |
| | | .then((_) => { |
| | | this.InsertFormdialog = false; |
| | | this.insertform = {}; |
| | | }) |
| | | .catch((_) => { }); |
| | | }, |
| | | async insertFromData() { |
| | | if (this.insertform.depValue == null) { |
| | |
| | | } |
| | | }, |
| | | updateFromClose() { |
| | | this.UpdateFormdialog = false; |
| | | this.updateform = {}; |
| | | this.$confirm("关闭后无法保存,是否关闭?") |
| | | .then((_) => { |
| | | this.UpdateFormdialog = false; |
| | | this.updateform = {}; |
| | | this.getRoleTabelData(); |
| | | }) |
| | | .catch((_) => { }); |
| | | }, |
| | | async updateFromData() { |
| | | if (this.updateform.depValue == null) { |
| | |
| | | break; |
| | | } |
| | | }, |
| | | handleClose() { |
| | | this.$confirm("关闭后无法保存,是否关闭?") |
| | | .then((_) => { |
| | | this.InsertFormdialog = false |
| | | }) |
| | | .catch((_) => { }); |
| | | }, |
| | | handleCloseEdit() { |
| | | this.$confirm("关闭后无法保存,是否关闭?") |
| | | .then((_) => { |
| | | this.UpdateFormdialog = false |
| | | this.getRoleTabelData(); |
| | | }) |
| | | .catch((_) => { }); |
| | | }, |
| | | }, |
| | | beforeDestroy() { |
| | | this.timer && clearTimeout(this.timer); |