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

xujun

parent c85d48d0
...@@ -413,6 +413,10 @@ export default { ...@@ -413,6 +413,10 @@ export default {
fax: null, fax: null,
email: null, email: null,
resumeList: [], resumeList: [],
membersList: [],
budgetList: [],
scientificList: [],
fileList: [],
}, },
rules: { rules: {
certId: [{ required: true, message: '*', trigger: 'blur' },], certId: [{ required: true, message: '*', trigger: 'blur' },],
...@@ -501,9 +505,9 @@ export default { ...@@ -501,9 +505,9 @@ export default {
this.loading = true this.loading = true
this.$api.person.getPersonByCertId({ certId: this.formData.certId }).then(({ data = {} }) => { this.$api.person.getPersonByCertId({ certId: this.formData.certId }).then(({ data = {} }) => {
if (data) { if (data) {
console.log(data)
this.formData = data this.formData = data
this.formData.personId = data.id this.formData.personId = data.id
this.formData.id = this.value
console.log(this.formData) console.log(this.formData)
} }
this.loading = false this.loading = false
...@@ -547,21 +551,22 @@ export default { ...@@ -547,21 +551,22 @@ export default {
let pars = isEmptyParams(obj) let pars = isEmptyParams(obj)
let par = { ...pars } let par = { ...pars }
this.$api.talent.save(par).then(({ data = {} }) => { console.log(par)
if (data) { // this.$api.talent.save(par).then(({ data = {} }) => {
this.formData.id = data // if (data) {
if (next) { // this.formData.id = data
this.$emit('close', 'save') // if (next) {
this.$emit('onStepChange', { step: step + 1, state: arr.toString() }) // this.$emit('close', 'save')
} else { // this.$emit('onStepChange', { step: step + 1, state: arr.toString() })
this.$message.success('成功!') // } else {
this.$emit('close', 'submit') // this.$message.success('成功!')
} // this.$emit('close', 'submit')
} // }
this.$emit('load', false) // }
}).catch(() => { // this.$emit('load', false)
this.$emit('load', false) // }).catch(() => {
}) // this.$emit('load', false)
// })
} else { } else {
this.$message.error('信息未填写完全!') this.$message.error('信息未填写完全!')
return false return false
...@@ -574,7 +579,7 @@ export default { ...@@ -574,7 +579,7 @@ export default {
switch (step) { switch (step) {
case 0: case 0:
obj = { 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, 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, holdPost1: null, holdPost2: null, holdPost3: null, mobile: null, fax: null, email: null,
} }
...@@ -602,7 +607,7 @@ export default { ...@@ -602,7 +607,7 @@ export default {
} }
}) })
console.log('getObj处理后的数据:', obj) //console.log('getObj处理后的数据:', obj)
return obj return obj
}, },
checkInfo (step) { 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