|
|
@ -86,8 +86,6 @@ Scene({ |
|
|
editEmploye(this.data.form).then(result => { |
|
|
editEmploye(this.data.form).then(result => { |
|
|
wx.hideLoading() |
|
|
wx.hideLoading() |
|
|
event.emit('EventMessage', { what: 120, detail: '' }) |
|
|
event.emit('EventMessage', { what: 120, detail: '' }) |
|
|
const channel = this.getOpenerEventChannel() |
|
|
|
|
|
channel.emit('onCallback', { what: 120 }) |
|
|
|
|
|
util.showBackToast('保存成功') |
|
|
util.showBackToast('保存成功') |
|
|
}).catch(err => { |
|
|
}).catch(err => { |
|
|
wx.hideLoading() |
|
|
wx.hideLoading() |
|
|
@ -103,8 +101,7 @@ Scene({ |
|
|
this.data.form.status = 1 |
|
|
this.data.form.status = 1 |
|
|
auditEmploye(this.data.form).then(result => { |
|
|
auditEmploye(this.data.form).then(result => { |
|
|
wx.hideLoading() |
|
|
wx.hideLoading() |
|
|
const channel = this.getOpenerEventChannel() |
|
|
|
|
|
channel.emit('onCallback', { what: 120 }) |
|
|
|
|
|
|
|
|
event.emit('EventMessage', { what: 120 }) |
|
|
util.showBackToast('审核已通过') |
|
|
util.showBackToast('审核已通过') |
|
|
}).catch(err => { |
|
|
}).catch(err => { |
|
|
wx.hideLoading() |
|
|
wx.hideLoading() |
|
|
@ -117,8 +114,7 @@ Scene({ |
|
|
var enterpriseDepartmentId = this.data.form.enterpriseDepartmentId |
|
|
var enterpriseDepartmentId = this.data.form.enterpriseDepartmentId |
|
|
deleteEmploye({idList: [this.data.form.enterpriseMemberId], enterpriseDepartmentId }).then(result => { |
|
|
deleteEmploye({idList: [this.data.form.enterpriseMemberId], enterpriseDepartmentId }).then(result => { |
|
|
wx.hideLoading() |
|
|
wx.hideLoading() |
|
|
const channel = this.getOpenerEventChannel() |
|
|
|
|
|
channel.emit('onCallback', { what: 120 }) |
|
|
|
|
|
|
|
|
event.emit('EventMessage', { what: 120 }) |
|
|
util.showBackToast('员工已经删除') |
|
|
util.showBackToast('员工已经删除') |
|
|
}).catch(err => { |
|
|
}).catch(err => { |
|
|
wx.hideLoading() |
|
|
wx.hideLoading() |
|
|
|