1、相关方人员-pc端离职流程简化

liujun-人员离职流程简化
liujun 2024-12-18 16:01:16 +08:00
parent 3b45fa6e24
commit aad11f5e54
1 changed files with 19 additions and 4 deletions

View File

@ -500,15 +500,30 @@ export default {
this.listLoading = false
})
},
resign() {
resign(e) {
this.$confirm('确定后该员工会离职, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.$message({
type: 'success',
message: '离职成功!'
requestFN(
'user/resign',
{
USER_ID: e.USER_ID
}
).then((data) => {
if (data.result === 'success') {
this.$message({
type: 'success',
message: '离职成功!'
})
this.getList()
} else {
this.$message.error('推送失败,' + data.msg)
this.getList()
}
}).catch((e) => {
this.listLoading = false
})
}).catch(() => {
this.$message({