|
|
@@ -96,7 +96,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
- import { create, update, load } from '@/api/platform/org/employee'
|
|
|
+ import { create, update, load,upEmployee } from '@/api/platform/org/employee'
|
|
|
import ActionUtils from '@/utils/action'
|
|
|
import BasicInfo from './basic-info'
|
|
|
import ExtAttr from './ext-attr'
|
|
|
@@ -206,6 +206,7 @@
|
|
|
// 验证表单是否填写
|
|
|
this.$refs.basicInfo.validate((valid) => {
|
|
|
if (valid) {
|
|
|
+ this.getUpEmployee()
|
|
|
this.saveData()
|
|
|
} else {
|
|
|
this.activeName = 'basic-info'
|
|
|
@@ -220,6 +221,16 @@
|
|
|
}
|
|
|
return true
|
|
|
},
|
|
|
+ getUpEmployee(){
|
|
|
+ let params = {
|
|
|
+ id: this.employee.id,
|
|
|
+ account: this.employee.account
|
|
|
+ }
|
|
|
+ console.log(params)
|
|
|
+ upEmployee(params).then(res => {
|
|
|
+ console.log('测试',res)
|
|
|
+ })
|
|
|
+ },
|
|
|
saveData() {
|
|
|
const attrValidator = this.$refs['attrInfo'] ? this.$refs['attrInfo'].callback() : null
|
|
|
const vo = this.formatSubmitData()
|
|
|
@@ -239,6 +250,7 @@
|
|
|
return
|
|
|
}
|
|
|
if (this.formId) {
|
|
|
+ console.log(vo)
|
|
|
update(vo).then(response => {
|
|
|
this.dialogLoading = false
|
|
|
this.$emit('dialog-callback', this)
|