提交 d5360538 authored 作者: matian's avatar matian

updates

上级 2b144053
...@@ -20,8 +20,7 @@ export default function(_this) { ...@@ -20,8 +20,7 @@ export default function(_this) {
} = data.data.material } = data.data.material
this.form.options.disabled = submissionStage !== 'FILLING' this.form.options.disabled = submissionStage !== 'FILLING'
list[0].education_status = basicInfo.education_status list[0].education_status = basicInfo.education_status
return list.length ? list : [{}]
return Object.assign({}, basicInfo, list.length ? list : [{}])
} }
}, },
update: { update: {
...@@ -33,8 +32,11 @@ export default function(_this) { ...@@ -33,8 +32,11 @@ export default function(_this) {
return result return result
}, {}) }, {})
}) })
const basic_info = { education_status: data[0].education_status } const basicInfo = { education_status: data[0].education_status }
return { basic_info, educations } return { basic_info: basicInfo, educations }
},
callback() {
_this.getApplication()
} }
}, },
form: { form: {
...@@ -42,6 +44,16 @@ export default function(_this) { ...@@ -42,6 +44,16 @@ export default function(_this) {
next: { to: { query: { active: 'application_info', tab: 'application_info_career' } }, isSubmit: true }, next: { to: { query: { active: 'application_info', tab: 'application_info_career' } }, isSubmit: true },
hasAdd: true, hasAdd: true,
options: { labelWidth: '140px' }, options: { labelWidth: '140px' },
appendItems: [
{
type: 'v-input',
label: '当前教育状态',
model: 'education_status',
attrs: { placeholder: '请填写当前教育状态' },
rules: [{ required: true, message: '请填写当前教育状态', trigger: 'blur' }],
append: '<p style="color:#606266">当前教育状态(填写示例:本科在读/大四)</p>'
}
],
items: [ items: [
{ {
type: 'v-datepicker', type: 'v-datepicker',
...@@ -96,16 +108,6 @@ export default function(_this) { ...@@ -96,16 +108,6 @@ export default function(_this) {
model: 'degree', model: 'degree',
rules: [{ required: true, message: '请选择学历/学位', trigger: 'change' }] rules: [{ required: true, message: '请选择学历/学位', trigger: 'change' }]
} }
],
appendItems: [
{
type: 'v-input',
label: '当前教育状态',
model: 'education_status',
attrs: { placeholder: '请填写当前教育状态' },
rules: [{ required: true, message: '请填写当前教育状态', trigger: 'blur' }],
append: '<p style="color:#606266">当前教育状态(填写示例:本科在读/大四)</p>'
}
] ]
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论