|
|
|
@ -2,7 +2,8 @@ |
|
|
|
import Scene from '../../index/scene' |
|
|
|
import Dialog from '../../../components/dialog/dialog' |
|
|
|
import { getRoleList} from "../../../api/saas" |
|
|
|
import { editEmploye, deleteEmploye, auditEmploye } from "../../../api/user" |
|
|
|
import { editEmploye, auditEmploye } from "../../../api/user" |
|
|
|
import { deleteEmploye } from "../../../api/saas" |
|
|
|
const util = require('../../../utils/util') |
|
|
|
const event = require('../../../utils/event') |
|
|
|
|
|
|
|
@ -113,7 +114,8 @@ Scene({ |
|
|
|
deleteForm: function(){ |
|
|
|
Dialog.confirm({ title: '温馨提示', message: '确定删除该员工?' }).then(() => { |
|
|
|
wx.showLoading({ title: '处理中', mask: true }) |
|
|
|
deleteEmploye({idList: [this.data.form.enterpriseMemberId] }).then(result => { |
|
|
|
var enterpriseDepartmentId = this.data.form.enterpriseDepartmentId |
|
|
|
deleteEmploye({idList: [this.data.form.enterpriseMemberId], enterpriseDepartmentId }).then(result => { |
|
|
|
wx.hideLoading() |
|
|
|
util.showBackToast('员工已经删除') |
|
|
|
const channel = this.getOpenerEventChannel() |
|
|
|
|