diff --git a/src/views/modules/base/organization/organization.vue b/src/views/modules/base/organization/organization.vue index 610d7e034..adee93749 100644 --- a/src/views/modules/base/organization/organization.vue +++ b/src/views/modules/base/organization/organization.vue @@ -166,6 +166,10 @@ type="danger" icon="el-icon-circle-close" @click="DisablePeo(scope.row)">禁用 + 重置密码 @@ -640,6 +644,7 @@ + { + this.resetPassword(row.staffId); + }) + .catch((err) => { + if (err == "cancel") { + } + }); + }, + async resetPassword(staffId){ + const url = "/epmetuser/customerstaff/resetPassword"; + let params = { + staffId: staffId + }; + const { data, code, msg } = await requestPost(url, params); + console.log(data,code,msg,"sdfjksdlkf"); + if (code===0) { + this.$message.success("重置密码成功"); + } + + }, // 确定禁用 async submitDisable () { const url = "/epmetuser/customerstaff/disabledstaff";