Commit e2917e62 authored by 徐俊's avatar 徐俊

xujun

parent f0fc85de
......@@ -504,7 +504,6 @@ export default {
this.formData.mobile = data.mobile
this.formData.email = data.email
this.formData.fax = data.fax
console.log(this.formData)
}
this.loading = false
}).catch(() => { this.loading = false })
......@@ -560,24 +559,23 @@ export default {
let state = obj.projState
if (state != 30 && step == 5)
obj.projState = 10
console.log(obj)
let pars = isEmptyParams(obj)
let par = { ...pars }
// this.$api.talent.save(par).then(({ data = {} }) => {
// if (data) {
// this.formData.id = data
// if (next) {
// this.$emit('close', 'save')
// this.$emit('onStepChange', { step: step + 1, state: arr.toString() })
// } else {
// this.$message.success('成功!')
// this.$emit('close', 'submit')
// }
// }
// this.$emit('load', false)
// }).catch(() => {
// this.$emit('load', false)
// })
this.$api.talent.save(par).then(({ data = {} }) => {
if (data) {
this.formData.id = data
if (next) {
this.$emit('close', 'save')
this.$emit('onStepChange', { step: step + 1, state: arr.toString() })
} else {
this.$message.success('成功!')
this.$emit('close', 'submit')
}
}
this.$emit('load', false)
}).catch(() => {
this.$emit('load', false)
})
} else {
this.$message.error('信息未填写完全!')
return false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment