1、相关方人员-pc端离职流程简化
parent
3b45fa6e24
commit
aad11f5e54
|
@ -500,15 +500,30 @@ 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(() => {
|
||||||
this.$message({
|
requestFN(
|
||||||
type: 'success',
|
'user/resign',
|
||||||
message: '离职成功!'
|
{
|
||||||
|
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(() => {
|
}).catch(() => {
|
||||||
this.$message({
|
this.$message({
|
||||||
|
|
Loading…
Reference in New Issue