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