diff --git a/src/views/modules/base/organization/organization.vue b/src/views/modules/base/organization/organization.vue index b3e03c026..362cd5f56 100644 --- a/src/views/modules/base/organization/organization.vue +++ b/src/views/modules/base/organization/organization.vue @@ -126,7 +126,16 @@ height="350"> + width="260"> + + @@ -161,10 +170,16 @@ type="info" icon="el-icon-rank" @click="transfer(scope.row)">调动 - 禁用 + 解禁 @@ -177,6 +192,7 @@ + @@ -1894,6 +1910,47 @@ export default { this.DisableForm.staffId = row.staffId; this.Disable = true; }, + enablestaff (row) { + this.$confirm("确认解禁该员工?", "提示", { + confirmButtonText: "确定", + cancelButtonText: "取消", + type: "warning" + }) + .then(() => { + this.submitEnable(row) + }) + .catch(err => { + if (err == "cancel") { + // this.$message({ + // type: "info", + // message: "已取消删除" + // }); + } + + }); + }, + // 确定解禁 + async submitEnable (row) { + const url = "/epmetuser/customerstaff/enablestaff"; + + let params = { + staffId: row.staffId, + + }; + + const { data, code, msg } = await requestPost(url, params); + + if (code === 0) { + this.$message.success("解禁成功"); + this.Disable = false; + this.getAgencyList(); + this.getDepartmentList(); + this.getGridList(); + this.getAgencyStaffListData(); + } else { + this.$message.error(msg); + } + }, // 确定禁用 async submitDisable () { const url = "/epmetuser/customerstaff/disabledstaff";