| | |
| | | min-width="160" |
| | | label="角色描述" |
| | | sortable="custom" |
| | | show-tooltip-when-overflow |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div v-if="row.description">{{ row.description }}</div> |
| | |
| | | DeleteRole({ RoleCode: row.role_code }).then(res => { |
| | | if (res.code === '200') { |
| | | this.$message.success('删除成功!') |
| | | if (this.form.page > 1 && this.tableData.length === 1) { |
| | | this.form.page-- |
| | | } |
| | | this.getRoleSearch() |
| | | } |
| | | }) |
| | |
| | | RoleTypeDelete({ RoleTypeCode: row.roletype_code }).then(res => { |
| | | if (res.code === '200') { |
| | | this.$message.success('删除成功!') |
| | | if (this.formSetting.page > 1 && this.RoleTypeCodeArr.length === 1) { |
| | | this.formSetting.page-- |
| | | } |
| | | this.getRoleTypeSearch() |
| | | } |
| | | }) |