| | |
| | | icon="el-icon-delete" |
| | | type="danger" size="small" |
| | | >{{ $t('common.delete') }}</el-button> |
| | | <el-button |
| | | @click="submitForm('ruleForm')" |
| | | icon="el-icon-search" size="small" |
| | | type="primary" |
| | | >{{ |
| | | $t('common.iquery') |
| | | }}</el-button> |
| | | <!-- <el-button--> |
| | | <!-- @click="submitForm('ruleForm')"--> |
| | | <!-- icon="el-icon-search" size="small"--> |
| | | <!-- type="primary"--> |
| | | <!-- >{{--> |
| | | <!-- $t('common.iquery')--> |
| | | <!-- }}</el-button>--> |
| | | <el-button |
| | | @click="resetForm('ruleForm')" |
| | | icon="el-icon-refresh" |
| | |
| | | :data="tableData" |
| | | style="width: 100%" |
| | | fit |
| | | border |
| | | height="calc(100% - 45px)" |
| | | @selection-change="handleSelectionChange" |
| | | > |
| | |
| | | :title="$t('userManage.userInfoObj.addPermission')" |
| | | style="overflow: hidden" |
| | | :visible.sync="InsertFormdialog" |
| | | :before-close="handleClose" |
| | | > |
| | | |
| | | <el-form :model="insertform" label-position="top"> |
| | |
| | | this.getRoleTabelData(); |
| | | }, |
| | | EditFromDataClose() { |
| | | this.EditFormdialog = false; |
| | | this.upform = {}; |
| | | this.$confirm("关闭后无法保存,是否关闭?") |
| | | .then((_) => { |
| | | this.EditFormdialog = false; |
| | | this.upform = {}; |
| | | this.getRoleTabelData(); |
| | | }) |
| | | .catch((_) => { }); |
| | | }, |
| | | async EditFromData() { |
| | | const data = await updateAuth(this.upform); |
| | |
| | | this.getRoleTabelData(); |
| | | }, |
| | | insertFromDataClose() { |
| | | this.InsertFormdialog = false; |
| | | this.insertform = {}; |
| | | this.$confirm("关闭后无法保存,是否关闭?") |
| | | .then((_) => { |
| | | this.InsertFormdialog = false; |
| | | this.insertform = {}; |
| | | }) |
| | | .catch((_) => { }); |
| | | }, |
| | | async insertFromData() { |
| | | const data = await insertAuth(this.insertform); |
| | |
| | | this.dialogTitle = row.name; |
| | | this.isTransfer = true; |
| | | }, |
| | | handleClose() { |
| | | this.$confirm("关闭后无法保存,是否关闭?") |
| | | .then((_) => { |
| | | this.InsertFormdialog = false |
| | | }) |
| | | .catch((_) => { }); |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |