Commit 2ed58a7f authored by 徐俊's avatar 徐俊

xujun

parent c85d48d0
......@@ -413,6 +413,10 @@ export default {
fax: null,
email: null,
resumeList: [],
membersList: [],
budgetList: [],
scientificList: [],
fileList: [],
},
rules: {
certId: [{ required: true, message: '*', trigger: 'blur' },],
......@@ -501,9 +505,9 @@ export default {
this.loading = true
this.$api.person.getPersonByCertId({ certId: this.formData.certId }).then(({ data = {} }) => {
if (data) {
console.log(data)
this.formData = data
this.formData.personId = data.id
this.formData.id = this.value
console.log(this.formData)
}
this.loading = false
......@@ -547,21 +551,22 @@ export default {
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)
})
console.log(par)
// 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
......@@ -574,7 +579,7 @@ export default {
switch (step) {
case 0:
obj = {
id: null, reportYear: null, certId: null, personName: null, nation: null, sex: null, birthday: null, degree: null, degreeTime: null,
id: null, reportYear: null, certId: null, personId: null, personName: null, nation: null, sex: null, birthday: null, degree: null, degreeTime: null,
degreeUnit: null, spec: null, graduateTeacher: null, title: null, politicalParty: null, duty: null, talentType: null, honoraryTitle: null,
holdPost1: null, holdPost2: null, holdPost3: null, mobile: null, fax: null, email: null,
}
......@@ -602,7 +607,7 @@ export default {
}
})
console.log('getObj处理后的数据:', obj)
//console.log('getObj处理后的数据:', obj)
return obj
},
checkInfo (step) {
......
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