提交 8ef5c67c authored 作者: 王鹏飞's avatar 王鹏飞

修改报名申请表单配置

上级 71e0cd93
export default {
id: 'admission_byzs',
title: '毕业证书注册备案表',
get: {
action: `/api/enrollment/v1.0/application-materials/${webConf.others.projectId}`,
callback(data) {
const { attachments = [], submission_stage: submissionStage = 'FILLING' } = data.data.material
const stageList = [
'FILLING',
'PREPAYMENT',
'INTERVIEW_APPLICATION',
'AUDITION',
'INTERVIEW',
'PAYMENT',
'REGISTRATION',
'CLOSED'
]
this.form.options.disabled = stageList.findIndex(item => item === submissionStage) > 2
const DIPLOMA_FILING_TABLE = attachments.filter(item => {
return item.file_type_id === 'DIPLOMA_FILING_TABLE'
})
return { DIPLOMA_FILING_TABLE }
}
},
form: {
prev: { to: { query: { active: 'admission_cjd' } } },
next: { to: { query: { active: 'admission_ywjl' } } },
hasButton: false,
options: {},
items: [
{
type: 'v-upload',
required: true,
model: 'DIPLOMA_FILING_TABLE',
attrs: {
action: `/api/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/put`,
deleteAction: `/api/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/delete`,
data: { file_type: 'DIPLOMA_FILING_TABLE' }
},
prepend: `
<p>学信网《教育部学历证书电子注册备案表》[<a href="" target="_blank" download="毕业证书注册备案表">下载流程表</a>]
<p>学历在学信网可查的同学,请下载学信网电子注册备案表提交到系统,具体获取流程请</p>
<p>下载附件 上传文件仅限“jpg,jpeg,pdf,png”格式,文件小于10Mb。</p>
`
}
]
}
}
export default function(_this) { export default function(_this) {
return { return {
id: 'interview_cjd', id: 'admission_cjd',
title: '成绩单(中+英)', title: '成绩单(中+英)',
get: { get: {
action: `/api/enrollment/v1.0/application-materials/${webConf.others.projectId}`, action: `/api/enrollment/v1.0/application-materials/${webConf.others.projectId}`,
...@@ -32,7 +32,7 @@ export default function(_this) { ...@@ -32,7 +32,7 @@ export default function(_this) {
} }
}, },
form: { form: {
next: { to: { query: { active: 'admission_xy' } } }, next: { to: { query: { active: 'admission_byzs' } } },
hasButton: false, hasButton: false,
options: { 'label-position': 'top' }, options: { 'label-position': 'top' },
hint: ` hint: `
......
import cjd from './cjd' import cjd from './cjd'
import byzs from './byzs'
import ywjl from './ywjl'
import xy from './xy' import xy from './xy'
import xfjn from './xfjn' import xfjn from './xfjn'
...@@ -6,6 +8,6 @@ export default function(_this) { ...@@ -6,6 +8,6 @@ export default function(_this) {
return { return {
id: 'admission', id: 'admission',
title: '入学办理', title: '入学办理',
children: [cjd(_this), xy(_this), xfjn(_this)] children: [cjd(_this), byzs, ywjl, xy(_this), xfjn(_this)]
} }
} }
...@@ -24,7 +24,7 @@ export default function(_this) { ...@@ -24,7 +24,7 @@ export default function(_this) {
} }
}, },
form: { form: {
prev: { to: { query: { active: 'interview_cjd' } } }, prev: { to: { query: { active: 'admission_ywjl' } } },
next: { to: { query: { active: 'admission_xfjn' } } }, next: { to: { query: { active: 'admission_xfjn' } } },
hasButton: false, hasButton: false,
options: {}, options: {},
......
export default {
id: 'admission_ywjl',
title: '英文简历',
get: {
action: `/api/enrollment/v1.0/application-materials/${webConf.others.projectId}`,
callback(data) {
const { attachments = [], submission_stage: submissionStage = 'FILLING' } = data.data.material
const stageList = [
'FILLING',
'PREPAYMENT',
'INTERVIEW_APPLICATION',
'AUDITION',
'INTERVIEW',
'PAYMENT',
'REGISTRATION',
'CLOSED'
]
this.form.options.disabled = stageList.findIndex(item => item === submissionStage) > 2
const RESUME_EN = attachments.filter(item => {
return item.file_type_id === 'RESUME_EN'
})
return { RESUME_EN }
}
},
form: {
prev: { to: { query: { active: 'admission_byzs' } } },
next: { to: { query: { active: 'admission_xy' } } },
hasButton: false,
options: {},
items: [
{
type: 'v-upload',
required: true,
model: 'RESUME_EN',
attrs: {
action: `/api/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/put`,
deleteAction: `/api/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/delete`,
data: { file_type: 'RESUME_EN' }
},
append: `
<p>请下载填写英文简历模板后上传 [<a href="https://zws-imgs-pub.ezijing.com/static/public/2e8e4f6898f59e03636139a402ef16c1.docx" target="_blank" download="英文简历模板">下载模板</a>]</p>
<p>请将英文简历填写完存为"pdf"格式上传,文件小于10MB。</p>`
}
]
}
}
...@@ -45,7 +45,7 @@ export default { ...@@ -45,7 +45,7 @@ export default {
const menus = getMenu(this) const menus = getMenu(this)
return { return {
menus: [menus], menus: [menus],
currentActive: 'interview_cjd', currentActive: 'admission_cjd',
dialogVisible: false, dialogVisible: false,
detail: null detail: null
} }
...@@ -55,7 +55,7 @@ export default { ...@@ -55,7 +55,7 @@ export default {
immediate: true, immediate: true,
handler(route) { handler(route) {
const { query = {} } = route const { query = {} } = route
this.currentActive = query.active || 'interview_cjd' this.currentActive = query.active || 'admission_cjd'
} }
}, },
showSubmitedDialog(value) { showSubmitedDialog(value) {
......
...@@ -61,21 +61,21 @@ export default { ...@@ -61,21 +61,21 @@ export default {
code: 'interviewByzs', code: 'interviewByzs',
view: { to: { path: '/my/interview', query: { active: 'interview_byzs' } } } view: { to: { path: '/my/interview', query: { active: 'interview_byzs' } } }
}, },
{ // {
title: '学位证书', // title: '学位证书',
code: 'interviewXwzs', // code: 'interviewXwzs',
view: { to: { path: '/my/interview', query: { active: 'interview_xwzs' } } } // view: { to: { path: '/my/interview', query: { active: 'interview_xwzs' } } }
}, // },
// { // {
// title: '学位证书英文证明', // title: '学位证书英文证明',
// code: 'interviewXwzsEnglish', // code: 'interviewXwzsEnglish',
// view: { to: { path: '/my/interview', query: { active: 'interview_xwzsywzm' } } } // view: { to: { path: '/my/interview', query: { active: 'interview_xwzsywzm' } } }
// }, // },
{ // {
title: '英文简历', // title: '英文简历',
code: 'interviewYwjl', // code: 'interviewYwjl',
view: { to: { path: '/my/interview', query: { active: 'interview_ywjl' } } } // view: { to: { path: '/my/interview', query: { active: 'interview_ywjl' } } }
}, // },
// { // {
// title: '成绩单', // title: '成绩单',
// code: 'interviewCjd', // code: 'interviewCjd',
......
import byzs from './byzs' import byzs from './byzs'
import xwzs from './xwzs' // import xwzs from './xwzs'
import ywjl from './ywjl' // import ywjl from './ywjl'
import zp from './zp' import zp from './zp'
export default function(_this) { export default function(_this) {
return { return {
id: 'interview', id: 'interview',
title: '申请面试', title: '申请面试',
children: [byzs, xwzs, ywjl, zp(_this)] children: [byzs, zp(_this)]
} }
} }
...@@ -81,7 +81,7 @@ export default { ...@@ -81,7 +81,7 @@ export default {
return false return false
}, },
showSubmitedDialog() { showSubmitedDialog() {
return this.isSubmited && this.currentActive === 'interview_byzs' return this.isSubmited && this.currentActive === 'interview_zp'
} }
}, },
methods: { methods: {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论