提交 f996a743 authored 作者: lihuihui's avatar lihuihui

修改申请报名请求地址

上级 301eab1f
...@@ -3,7 +3,7 @@ export default function(_this) { ...@@ -3,7 +3,7 @@ export default function(_this) {
id: 'admission_xy', id: 'admission_xy',
title: '入学协议', title: '入学协议',
get: { get: {
action: `/api/enrollment/v1.0/application-materials/${webConf.others.projectId}`, action: `${webConf.apiBaseURL}/enrollment/v1.0/application-materials/${webConf.others.projectId}`,
callback(data) { callback(data) {
const { attachments = [], submission_stage: submissionStage = 'FILLING' } = data.data.material const { attachments = [], submission_stage: submissionStage = 'FILLING' } = data.data.material
const stageList = [ const stageList = [
...@@ -33,8 +33,8 @@ export default function(_this) { ...@@ -33,8 +33,8 @@ export default function(_this) {
required: true, required: true,
model: 'ADMISSION_AGREEMENT', model: 'ADMISSION_AGREEMENT',
attrs: { attrs: {
action: `/api/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/put`, action: `${webConf.apiBaseURL}/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/put`,
deleteAction: `/api/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/delete`, deleteaction: `${webConf.apiBaseURL}/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/delete`,
data: { file_type: 'ADMISSION_AGREEMENT' } data: { file_type: 'ADMISSION_AGREEMENT' }
}, },
// prepend: ` // prepend: `
......
...@@ -10,7 +10,7 @@ export default function(_this) { ...@@ -10,7 +10,7 @@ export default function(_this) {
return _this.visible return _this.visible
}, },
get: { get: {
action: `/api/enrollment/v1.0/application-materials/${webConf.others.projectId}`, action: `${webConf.apiBaseURL}/enrollment/v1.0/application-materials/${webConf.others.projectId}`,
callback(data) { callback(data) {
const { submission_stage: submissionStage = 'FILLING' } = data.data.material const { submission_stage: submissionStage = 'FILLING' } = data.data.material
const isSubmited = submissionStage !== 'FILLING' const isSubmited = submissionStage !== 'FILLING'
...@@ -22,7 +22,7 @@ export default function(_this) { ...@@ -22,7 +22,7 @@ export default function(_this) {
} }
}, },
update: { update: {
action: `/api/enrollment/v1.0/application-materials/submit/${webConf.others.projectId}`, action: `${webConf.apiBaseURL}/enrollment/v1.0/application-materials/submit/${webConf.others.projectId}`,
callback() { callback() {
_this.getApplication() _this.getApplication()
this.form.options.disabled = true this.form.options.disabled = true
......
...@@ -11,7 +11,7 @@ export default function(_this) { ...@@ -11,7 +11,7 @@ export default function(_this) {
return _this.visible return _this.visible
}, },
get: { get: {
action: `/api/enrollment/v1.0/application-materials/${webConf.others.projectId}`, action: `${webConf.apiBaseURL}/enrollment/v1.0/application-materials/${webConf.others.projectId}`,
callback(data) { callback(data) {
const { answers = [], submission_stage: submissionStage = 'FILLING' } = data.data.material const { answers = [], submission_stage: submissionStage = 'FILLING' } = data.data.material
this.form.options.disabled = submissionStage !== 'FILLING' this.form.options.disabled = submissionStage !== 'FILLING'
...@@ -35,7 +35,7 @@ export default function(_this) { ...@@ -35,7 +35,7 @@ export default function(_this) {
} }
}, },
update: { update: {
action: `/api/enrollment/v1.0/application-materials/${webConf.others.projectId}/put`, action: `${webConf.apiBaseURL}/enrollment/v1.0/application-materials/${webConf.others.projectId}/put`,
beforeRequest(data) { beforeRequest(data) {
return { return {
answers: [ answers: [
......
...@@ -11,7 +11,7 @@ export default function(_this) { ...@@ -11,7 +11,7 @@ export default function(_this) {
return _this.visible return _this.visible
}, },
get: { get: {
action: `/api/enrollment/v1.0/application-materials/${webConf.others.projectId}`, action: `${webConf.apiBaseURL}/enrollment/v1.0/application-materials/${webConf.others.projectId}`,
callback(data) { callback(data) {
const { careers: list = [], submission_stage: submissionStage = 'FILLING' } = data.data.material const { careers: list = [], submission_stage: submissionStage = 'FILLING' } = data.data.material
this.form.options.disabled = submissionStage !== 'FILLING' this.form.options.disabled = submissionStage !== 'FILLING'
...@@ -19,7 +19,7 @@ export default function(_this) { ...@@ -19,7 +19,7 @@ export default function(_this) {
} }
}, },
update: { update: {
action: `/api/enrollment/v1.0/application-materials/${webConf.others.projectId}/put`, action: `${webConf.apiBaseURL}/enrollment/v1.0/application-materials/${webConf.others.projectId}/put`,
beforeRequest(data) { beforeRequest(data) {
const careers = data.map(item => { const careers = data.map(item => {
return [ return [
......
...@@ -11,7 +11,7 @@ export default function(_this) { ...@@ -11,7 +11,7 @@ export default function(_this) {
return _this.visible return _this.visible
}, },
get: { get: {
action: `/api/enrollment/v1.0/application-materials/${webConf.others.projectId}`, action: `${webConf.apiBaseURL}/enrollment/v1.0/application-materials/${webConf.others.projectId}`,
callback(data) { callback(data) {
const { educations: list = [], submission_stage: submissionStage = 'FILLING' } = data.data.material const { educations: list = [], submission_stage: submissionStage = 'FILLING' } = data.data.material
this.form.options.disabled = submissionStage !== 'FILLING' this.form.options.disabled = submissionStage !== 'FILLING'
...@@ -19,7 +19,7 @@ export default function(_this) { ...@@ -19,7 +19,7 @@ export default function(_this) {
} }
}, },
update: { update: {
action: `/api/enrollment/v1.0/application-materials/${webConf.others.projectId}/put`, action: `${webConf.apiBaseURL}/enrollment/v1.0/application-materials/${webConf.others.projectId}/put`,
beforeRequest(data) { beforeRequest(data) {
const educations = data.map(item => { const educations = data.map(item => {
return ['start_date', 'end_date', 'school_name_cn', 'major_cn', 'degree'].reduce((result, key) => { return ['start_date', 'end_date', 'school_name_cn', 'major_cn', 'degree'].reduce((result, key) => {
......
...@@ -11,7 +11,7 @@ export default function(_this) { ...@@ -11,7 +11,7 @@ export default function(_this) {
return this.tabActive === 'application_info_first' return this.tabActive === 'application_info_first'
}, },
get: { get: {
action: `/api/enrollment/v1.0/application-materials/${webConf.others.projectId}`, action: `${webConf.apiBaseURL}/enrollment/v1.0/application-materials/${webConf.others.projectId}`,
callback(data) { callback(data) {
const { const {
basic_info: basicInfo = {}, basic_info: basicInfo = {},
...@@ -36,7 +36,7 @@ export default function(_this) { ...@@ -36,7 +36,7 @@ export default function(_this) {
} }
}, },
update: { update: {
action: `/api/enrollment/v1.0/application-materials/${webConf.others.projectId}/put`, action: `${webConf.apiBaseURL}/enrollment/v1.0/application-materials/${webConf.others.projectId}/put`,
beforeRequest(data) { beforeRequest(data) {
const basicInfo = ['phone_number', 'email', 'id_type'].reduce((result, key) => { const basicInfo = ['phone_number', 'email', 'id_type'].reduce((result, key) => {
result[key] = data[key] result[key] = data[key]
...@@ -78,8 +78,8 @@ export default function(_this) { ...@@ -78,8 +78,8 @@ export default function(_this) {
label: '身份证人像面', label: '身份证人像面',
model: 'ID_CARD_BACK', model: 'ID_CARD_BACK',
attrs: { attrs: {
action: `/api/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/put`, action: `${webConf.apiBaseURL}/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/put`,
deleteAction: `/api/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/delete`, deleteaction: `${webConf.apiBaseURL}/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/delete`,
data: { file_type: 'ID_CARD_BACK' }, data: { file_type: 'ID_CARD_BACK' },
limit: 1, limit: 1,
accept: 'image/*', accept: 'image/*',
...@@ -96,8 +96,8 @@ export default function(_this) { ...@@ -96,8 +96,8 @@ export default function(_this) {
label: '身份证国徽面', label: '身份证国徽面',
model: 'ID_CARD_FRONT', model: 'ID_CARD_FRONT',
attrs: { attrs: {
action: `/api/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/put`, action: `${webConf.apiBaseURL}/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/put`,
deleteAction: `/api/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/delete`, deleteaction: `${webConf.apiBaseURL}/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/delete`,
data: { file_type: 'ID_CARD_FRONT' }, data: { file_type: 'ID_CARD_FRONT' },
limit: 1, limit: 1,
accept: 'image/*', accept: 'image/*',
...@@ -114,8 +114,8 @@ export default function(_this) { ...@@ -114,8 +114,8 @@ export default function(_this) {
label: '港澳台身份证', label: '港澳台身份证',
model: 'HK_ID_CARD', model: 'HK_ID_CARD',
attrs: { attrs: {
action: `/api/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/put`, action: `${webConf.apiBaseURL}/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/put`,
deleteAction: `/api/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/delete`, deleteaction: `${webConf.apiBaseURL}/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/delete`,
data: { file_type: 'HK_ID_CARD' }, data: { file_type: 'HK_ID_CARD' },
limit: 1, limit: 1,
accept: 'image/*' accept: 'image/*'
...@@ -131,8 +131,8 @@ export default function(_this) { ...@@ -131,8 +131,8 @@ export default function(_this) {
label: '护照', label: '护照',
model: 'PASSPORT', model: 'PASSPORT',
attrs: { attrs: {
action: `/api/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/put`, action: `${webConf.apiBaseURL}/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/put`,
deleteAction: `/api/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/delete`, deleteaction: `${webConf.apiBaseURL}/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/delete`,
data: { file_type: 'PASSPORT' }, data: { file_type: 'PASSPORT' },
limit: 1, limit: 1,
accept: 'image/*' accept: 'image/*'
...@@ -148,8 +148,8 @@ export default function(_this) { ...@@ -148,8 +148,8 @@ export default function(_this) {
label: '其他证件', label: '其他证件',
model: 'OTHER_ID_CARD_PHOTO', model: 'OTHER_ID_CARD_PHOTO',
attrs: { attrs: {
action: `/api/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/put`, action: `${webConf.apiBaseURL}/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/put`,
deleteAction: `/api/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/delete`, deleteaction: `${webConf.apiBaseURL}/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/delete`,
data: { file_type: 'OTHER_ID_CARD_PHOTO' }, data: { file_type: 'OTHER_ID_CARD_PHOTO' },
limit: 1, limit: 1,
accept: 'image/*' accept: 'image/*'
......
...@@ -10,7 +10,7 @@ export default function(_this) { ...@@ -10,7 +10,7 @@ export default function(_this) {
return _this.visible return _this.visible
}, },
get: { get: {
action: `/api/enrollment/v1.0/application-materials/${webConf.others.projectId}`, action: `${webConf.apiBaseURL}/enrollment/v1.0/application-materials/${webConf.others.projectId}`,
callback(data) { callback(data) {
const { honors: list = [], submission_stage: submissionStage = 'FILLING' } = data.data.material const { honors: list = [], submission_stage: submissionStage = 'FILLING' } = data.data.material
this.form.options.disabled = submissionStage !== 'FILLING' this.form.options.disabled = submissionStage !== 'FILLING'
...@@ -18,7 +18,7 @@ export default function(_this) { ...@@ -18,7 +18,7 @@ export default function(_this) {
} }
}, },
update: { update: {
action: `/api/enrollment/v1.0/application-materials/${webConf.others.projectId}/put`, action: `${webConf.apiBaseURL}/enrollment/v1.0/application-materials/${webConf.others.projectId}/put`,
beforeRequest(data) { beforeRequest(data) {
const honors = data.map(item => { const honors = data.map(item => {
return ['time', 'title', 'institution_cn'].reduce((result, key) => { return ['time', 'title', 'institution_cn'].reduce((result, key) => {
......
...@@ -13,7 +13,7 @@ export default function(_this) { ...@@ -13,7 +13,7 @@ export default function(_this) {
return _this.visible return _this.visible
}, },
get: { get: {
action: `/api/enrollment/v1.0/application-materials/${webConf.others.projectId}`, action: `${webConf.apiBaseURL}/enrollment/v1.0/application-materials/${webConf.others.projectId}`,
callback(data) { callback(data) {
const { const {
basic_info: basicInfo = {}, basic_info: basicInfo = {},
...@@ -38,7 +38,7 @@ export default function(_this) { ...@@ -38,7 +38,7 @@ export default function(_this) {
} }
}, },
update: { update: {
action: `/api/enrollment/v1.0/application-materials/${webConf.others.projectId}/put`, action: `${webConf.apiBaseURL}/enrollment/v1.0/application-materials/${webConf.others.projectId}/put`,
beforeRequest(data) { beforeRequest(data) {
// let [province, city] = data.city.split('-') // let [province, city] = data.city.split('-')
// data.address_province = province // data.address_province = province
...@@ -101,8 +101,8 @@ export default function(_this) { ...@@ -101,8 +101,8 @@ export default function(_this) {
label: '身份证人像面', label: '身份证人像面',
model: 'ID_CARD_BACK', model: 'ID_CARD_BACK',
attrs: { attrs: {
action: `/api/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/put`, action: `${webConf.apiBaseURL}/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/put`,
deleteAction: `/api/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/delete`, deleteaction: `${webConf.apiBaseURL}/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/delete`,
data: { file_type: 'ID_CARD_BACK' }, data: { file_type: 'ID_CARD_BACK' },
limit: 1, limit: 1,
image: 'https://zws-imgs-pub.oss-cn-beijing.aliyuncs.com/pc/cu/id_card_back.png' image: 'https://zws-imgs-pub.oss-cn-beijing.aliyuncs.com/pc/cu/id_card_back.png'
...@@ -118,8 +118,8 @@ export default function(_this) { ...@@ -118,8 +118,8 @@ export default function(_this) {
label: '身份证国徽面', label: '身份证国徽面',
model: 'ID_CARD_FRONT', model: 'ID_CARD_FRONT',
attrs: { attrs: {
action: `/api/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/put`, action: `${webConf.apiBaseURL}/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/put`,
deleteAction: `/api/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/delete`, deleteaction: `${webConf.apiBaseURL}/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/delete`,
data: { file_type: 'ID_CARD_FRONT' }, data: { file_type: 'ID_CARD_FRONT' },
limit: 1, limit: 1,
image: 'https://zws-imgs-pub.oss-cn-beijing.aliyuncs.com/pc/cu/id_card_front.png' image: 'https://zws-imgs-pub.oss-cn-beijing.aliyuncs.com/pc/cu/id_card_front.png'
...@@ -135,8 +135,8 @@ export default function(_this) { ...@@ -135,8 +135,8 @@ export default function(_this) {
label: '港澳台身份证', label: '港澳台身份证',
model: 'HK_ID_CARD', model: 'HK_ID_CARD',
attrs: { attrs: {
action: `/api/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/put`, action: `${webConf.apiBaseURL}/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/put`,
deleteAction: `/api/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/delete`, deleteaction: `${webConf.apiBaseURL}/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/delete`,
data: { file_type: 'HK_ID_CARD' }, data: { file_type: 'HK_ID_CARD' },
limit: 1 limit: 1
}, },
...@@ -151,8 +151,8 @@ export default function(_this) { ...@@ -151,8 +151,8 @@ export default function(_this) {
label: '护照', label: '护照',
model: 'PASSPORT', model: 'PASSPORT',
attrs: { attrs: {
action: `/api/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/put`, action: `${webConf.apiBaseURL}/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/put`,
deleteAction: `/api/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/delete`, deleteaction: `${webConf.apiBaseURL}/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/delete`,
data: { file_type: 'PASSPORT' }, data: { file_type: 'PASSPORT' },
limit: 1 limit: 1
}, },
...@@ -167,8 +167,8 @@ export default function(_this) { ...@@ -167,8 +167,8 @@ export default function(_this) {
label: '其他证件', label: '其他证件',
model: 'OTHER_ID_CARD_PHOTO', model: 'OTHER_ID_CARD_PHOTO',
attrs: { attrs: {
action: `/api/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/put`, action: `${webConf.apiBaseURL}/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/put`,
deleteAction: `/api/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/delete`, deleteaction: `${webConf.apiBaseURL}/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/delete`,
data: { file_type: 'OTHER_ID_CARD_PHOTO' }, data: { file_type: 'OTHER_ID_CARD_PHOTO' },
limit: 1 limit: 1
}, },
......
...@@ -10,7 +10,7 @@ export default function(_this) { ...@@ -10,7 +10,7 @@ export default function(_this) {
return _this.visible return _this.visible
}, },
get: { get: {
action: `/api/enrollment/v1.0/application-materials/${webConf.others.projectId}`, action: `${webConf.apiBaseURL}/enrollment/v1.0/application-materials/${webConf.others.projectId}`,
callback(data) { callback(data) {
const { trainings: list = [], submission_stage: submissionStage = 'FILLING' } = data.data.material const { trainings: list = [], submission_stage: submissionStage = 'FILLING' } = data.data.material
this.form.options.disabled = submissionStage !== 'FILLING' this.form.options.disabled = submissionStage !== 'FILLING'
...@@ -18,7 +18,7 @@ export default function(_this) { ...@@ -18,7 +18,7 @@ export default function(_this) {
} }
}, },
update: { update: {
action: `/api/enrollment/v1.0/application-materials/${webConf.others.projectId}/put`, action: `${webConf.apiBaseURL}/enrollment/v1.0/application-materials/${webConf.others.projectId}/put`,
beforeRequest(data) { beforeRequest(data) {
const trainings = data.map(item => { const trainings = data.map(item => {
return ['start_date', 'end_date', 'institution_cn', 'course_cn'].reduce((result, key) => { return ['start_date', 'end_date', 'institution_cn', 'course_cn'].reduce((result, key) => {
......
...@@ -10,7 +10,7 @@ export default function(_this) { ...@@ -10,7 +10,7 @@ export default function(_this) {
return _this.visible return _this.visible
}, },
get: { get: {
action: `/api/enrollment/v1.0/application-materials/${webConf.others.projectId}`, action: `${webConf.apiBaseURL}/enrollment/v1.0/application-materials/${webConf.others.projectId}`,
callback(data) { callback(data) {
const { submission_stage: submissionStage = 'FILLING' } = data.data.material const { submission_stage: submissionStage = 'FILLING' } = data.data.material
const stageList = [ const stageList = [
...@@ -29,7 +29,7 @@ export default function(_this) { ...@@ -29,7 +29,7 @@ export default function(_this) {
} }
}, },
update: { update: {
action: `/api/enrollment/v1.0/application-materials/${webConf.others.projectId}/put`, action: `${webConf.apiBaseURL}/enrollment/v1.0/application-materials/${webConf.others.projectId}/put`,
beforeRequest(data) { beforeRequest(data) {
// const recoLetters = data.map(item => { // const recoLetters = data.map(item => {
// return ['provider_name', 'provider_phone_number', 'provider_email', 'provider_relationship'].reduce( // return ['provider_name', 'provider_phone_number', 'provider_email', 'provider_relationship'].reduce(
......
...@@ -6,7 +6,7 @@ export default function(_this) { ...@@ -6,7 +6,7 @@ export default function(_this) {
return _this.visible return _this.visible
}, },
get: { get: {
action: `/api/enrollment/v1.0/application-materials/${webConf.others.projectId}`, action: `${webConf.apiBaseURL}/enrollment/v1.0/application-materials/${webConf.others.projectId}`,
callback(data) { callback(data) {
const { attachments = [], submission_stage: submissionStage = 'FILLING' } = data.data.material const { attachments = [], submission_stage: submissionStage = 'FILLING' } = data.data.material
this.form.options.disabled = submissionStage !== 'FILLING' this.form.options.disabled = submissionStage !== 'FILLING'
...@@ -28,8 +28,8 @@ export default function(_this) { ...@@ -28,8 +28,8 @@ export default function(_this) {
required: true, required: true,
model: 'NO_CRIMINAL_CERT', model: 'NO_CRIMINAL_CERT',
attrs: { attrs: {
action: `/api/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/put`, action: `${webConf.apiBaseURL}/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/put`,
deleteAction: `/api/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/delete`, deleteaction: `${webConf.apiBaseURL}/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/delete`,
data: { file_type: 'NO_CRIMINAL_CERT' }, data: { file_type: 'NO_CRIMINAL_CERT' },
limit: 1 limit: 1
}, },
......
...@@ -2,7 +2,7 @@ export default { ...@@ -2,7 +2,7 @@ export default {
id: 'interview_byz', id: 'interview_byz',
title: '学历/学位证书', title: '学历/学位证书',
get: { get: {
action: `/api/enrollment/v1.0/application-materials/${webConf.others.projectId}`, action: `${webConf.apiBaseURL}/enrollment/v1.0/application-materials/${webConf.others.projectId}`,
callback(data) { callback(data) {
const { attachments = [], submission_stage: submissionStage = 'FILLING' } = data.data.material const { attachments = [], submission_stage: submissionStage = 'FILLING' } = data.data.material
const stageList = [ const stageList = [
...@@ -32,8 +32,8 @@ export default { ...@@ -32,8 +32,8 @@ export default {
required: true, required: true,
model: 'DEGREE_CERT_CN', model: 'DEGREE_CERT_CN',
attrs: { attrs: {
action: `/api/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/put`, action: `${webConf.apiBaseURL}/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/put`,
deleteAction: `/api/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/delete`, deleteaction: `${webConf.apiBaseURL}/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/delete`,
data: { file_type: 'DEGREE_CERT_CN' } data: { file_type: 'DEGREE_CERT_CN' }
}, },
append: '注意事项:需要将证书原件扫描或拍照后提交,请确保证书内容清晰可辨。' append: '注意事项:需要将证书原件扫描或拍照后提交,请确保证书内容清晰可辨。'
......
...@@ -2,7 +2,7 @@ export default { ...@@ -2,7 +2,7 @@ export default {
id: 'interview_cjd', id: 'interview_cjd',
title: '成绩单(中+英)', title: '成绩单(中+英)',
get: { get: {
action: `/api/enrollment/v1.0/application-materials/${webConf.others.projectId}`, action: `${webConf.apiBaseURL}/enrollment/v1.0/application-materials/${webConf.others.projectId}`,
callback(data) { callback(data) {
const { attachments = [], submission_stage: submissionStage = 'FILLING' } = data.data.material const { attachments = [], submission_stage: submissionStage = 'FILLING' } = data.data.material
const stageList = [ const stageList = [
...@@ -46,8 +46,8 @@ export default { ...@@ -46,8 +46,8 @@ export default {
required: true, required: true,
model: 'REPORT_CARD_CN', model: 'REPORT_CARD_CN',
attrs: { attrs: {
action: `/api/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/put`, action: `${webConf.apiBaseURL}/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/put`,
deleteAction: `/api/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/delete`, deleteaction: `${webConf.apiBaseURL}/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/delete`,
data: { file_type: 'REPORT_CARD_CN' } data: { file_type: 'REPORT_CARD_CN' }
} }
}, },
...@@ -57,8 +57,8 @@ export default { ...@@ -57,8 +57,8 @@ export default {
required: true, required: true,
model: 'REPORT_CARD_EN', model: 'REPORT_CARD_EN',
attrs: { attrs: {
action: `/api/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/put`, action: `${webConf.apiBaseURL}/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/put`,
deleteAction: `/api/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/delete`, deleteaction: `${webConf.apiBaseURL}/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/delete`,
data: { file_type: 'REPORT_CARD_EN' } data: { file_type: 'REPORT_CARD_EN' }
} }
} }
......
...@@ -3,7 +3,7 @@ export default function(_this) { ...@@ -3,7 +3,7 @@ export default function(_this) {
id: 'interview_zp', id: 'interview_zp',
title: '2寸照片', title: '2寸照片',
get: { get: {
action: `/api/enrollment/v1.0/application-materials/${webConf.others.projectId}`, action: `${webConf.apiBaseURL}/enrollment/v1.0/application-materials/${webConf.others.projectId}`,
callback(data) { callback(data) {
const { attachments = [], submission_stage: submissionStage = 'FILLING' } = data.data.material const { attachments = [], submission_stage: submissionStage = 'FILLING' } = data.data.material
const stageList = [ const stageList = [
...@@ -24,7 +24,7 @@ export default function(_this) { ...@@ -24,7 +24,7 @@ export default function(_this) {
} }
}, },
update: { update: {
action: `/api/enrollment/v1.0/application-materials/submit/${webConf.others.projectId}`, action: `${webConf.apiBaseURL}/enrollment/v1.0/application-materials/submit/${webConf.others.projectId}`,
beforeRequest(data) { beforeRequest(data) {
return { submission_stage: 'INTERVIEW_APPLICATION' } return { submission_stage: 'INTERVIEW_APPLICATION' }
}, },
...@@ -47,8 +47,8 @@ export default function(_this) { ...@@ -47,8 +47,8 @@ export default function(_this) {
type: 'v-upload', type: 'v-upload',
model: 'PERSONAL_PHOTO_FOR_ID', model: 'PERSONAL_PHOTO_FOR_ID',
attrs: { attrs: {
action: `/api/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/put`, action: `${webConf.apiBaseURL}/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/put`,
deleteAction: `/api/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/delete`, deleteaction: `${webConf.apiBaseURL}/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/delete`,
data: { file_type: 'PERSONAL_PHOTO_FOR_ID' } data: { file_type: 'PERSONAL_PHOTO_FOR_ID' }
}, },
prepend: '2寸照片:以电子版的形式上传文件', prepend: '2寸照片:以电子版的形式上传文件',
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论