| | |
| | | methods: { |
| | | fifterForm(params) { |
| | | this.queryParams = Object.assign(this.queryParams, params) |
| | | this.queryParams.status = 0 |
| | | // this.queryParams.status = 0 |
| | | this.search(1) |
| | | }, |
| | | // 查询table列表 |
| | | search(pageNum) { |
| | | if (pageNum != undefined) { |
| | | this.$refs.myTable.search(pageNum) |
| | | this.$refs.myTable.search({pageNum}) |
| | | } else { |
| | | this.$refs.myTable.search() |
| | | } |
| | |
| | | let text = row.status == 0 ? "禁用" : "启用"; |
| | | this.$modal.confirm('确认要' + text + '"' + row.role_name + '"角色吗?').then(function () { |
| | | row.status = row.status == 0 ? 1 : 0; |
| | | return changeRoleStatus(row.role_id, row.status); |
| | | return changeRoleStatus(row); |
| | | }).then(() => { |
| | | this.$modal.msgSuccess(text + "成功"); |
| | | this.search(); |