From a34e37918509354286baa61be2351926c56a8537 Mon Sep 17 00:00:00 2001 From: jiangyy Date: Wed, 23 Nov 2022 15:29:54 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=92=E8=89=B2=E8=A7=A3=E7=A6=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../base/organization/organization.vue | 61 ++++++++++++++++++- 1 file changed, 59 insertions(+), 2 deletions(-) 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";