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

chore: update

上级 aba82f95
No preview for this file type
import httpRequest from '@/utils/httpRequest' import httpRequest from '@/utils/httpRequest'
import store from '@/store/index'
const projectId = process.env.projectId
/** /**
* 获取用户信息 * 获取用户信息
*/ */
...@@ -34,13 +32,13 @@ export function sendCode(data) { ...@@ -34,13 +32,13 @@ export function sendCode(data) {
* 获取报名信息 * 获取报名信息
*/ */
export function getApplication(params) { export function getApplication(params) {
return httpRequest.get(`/api/enrollment/v1.0/application-materials/${projectId}`, { params }) return httpRequest.get(`/api/enrollment/v1.0/application-materials/${store().state.projectId}`, { params })
} }
/** /**
* 获取报名信息 * 获取报名信息
*/ */
export function updateApplication(data) { export function updateApplication(data) {
return httpRequest.post(`/api/enrollment/v1.0/application-materials/${projectId}/put`, data, { return httpRequest.post(`/api/enrollment/v1.0/application-materials/${store().state.projectId}/put`, data, {
headers: { 'Content-Type': 'application/json' } headers: { 'Content-Type': 'application/json' }
}) })
} }
...@@ -49,7 +47,7 @@ export function updateApplication(data) { ...@@ -49,7 +47,7 @@ export function updateApplication(data) {
* 获取报名审核状态 * 获取报名审核状态
*/ */
export function getApplicationStatus() { export function getApplicationStatus() {
return httpRequest.get(`/api/enrollment/v1.0/application-materials/profile/${projectId}`) return httpRequest.get(`/api/enrollment/v1.0/application-materials/profile/${store().state.projectId}`)
} }
/** /**
...@@ -57,7 +55,7 @@ export function getApplicationStatus() { ...@@ -57,7 +55,7 @@ export function getApplicationStatus() {
*/ */
export function getOrder(params) { export function getOrder(params) {
return httpRequest.get( return httpRequest.get(
`/api/enrollment/v1.0/application-materials/payment-records/request/${projectId}/APPLICATION_FEE`, `/api/enrollment/v1.0/application-materials/payment-records/request/${store().state.projectId}/APPLICATION_FEE`,
{ params } { params }
) )
} }
...@@ -67,7 +65,9 @@ export function getOrder(params) { ...@@ -67,7 +65,9 @@ export function getOrder(params) {
*/ */
export function checkPay(id, params) { export function checkPay(id, params) {
return httpRequest.get( return httpRequest.get(
`/api/enrollment/v1.0/application-materials/payment-records/check-status/${projectId}/APPLICATION_FEE/${id}`, `/api/enrollment/v1.0/application-materials/payment-records/check-status/${
store().state.projectId
}/APPLICATION_FEE/${id}`,
{ params } { params }
) )
} }
...@@ -77,7 +77,9 @@ export function checkPay(id, params) { ...@@ -77,7 +77,9 @@ export function checkPay(id, params) {
*/ */
export function addLetter(userId, letterId, data) { export function addLetter(userId, letterId, data) {
return httpRequest.post( return httpRequest.post(
`/api/enrollment/v1.0/application-materials/reco-letters/submit/${projectId}/${userId}/${letterId}/put`, `/api/enrollment/v1.0/application-materials/reco-letters/submit/${
store().state.projectId
}/${userId}/${letterId}/put`,
data, data,
{ {
headers: { 'Content-Type': 'application/json' } headers: { 'Content-Type': 'application/json' }
...@@ -90,7 +92,9 @@ export function addLetter(userId, letterId, data) { ...@@ -90,7 +92,9 @@ export function addLetter(userId, letterId, data) {
*/ */
export function updateProvider(letterId, data) { export function updateProvider(letterId, data) {
return httpRequest.post( return httpRequest.post(
`/api/enrollment/v1.0/application-materials/reco-letters/change-provider/${projectId}/${letterId}/put`, `/api/enrollment/v1.0/application-materials/reco-letters/change-provider/${
store().state.projectId
}/${letterId}/put`,
data, data,
{ {
headers: { 'Content-Type': 'application/json' } headers: { 'Content-Type': 'application/json' }
...@@ -102,7 +106,9 @@ export function updateProvider(letterId, data) { ...@@ -102,7 +106,9 @@ export function updateProvider(letterId, data) {
*/ */
export function sendToProvider(letterId) { export function sendToProvider(letterId) {
return httpRequest.get( return httpRequest.get(
`/api/enrollment/v1.0/application-materials/reco-letters/send-invitation-to-provider/${projectId}/${letterId}` `/api/enrollment/v1.0/application-materials/reco-letters/send-invitation-to-provider/${
store().state.projectId
}/${letterId}`
) )
} }
...@@ -111,7 +117,7 @@ export function sendToProvider(letterId) { ...@@ -111,7 +117,7 @@ export function sendToProvider(letterId) {
*/ */
export function sendToProviders() { export function sendToProviders() {
return httpRequest.get( return httpRequest.get(
`/api/enrollment/v1.0/application-materials/reco-letters/send-invitation-to-providers/${projectId}` `/api/enrollment/v1.0/application-materials/reco-letters/send-invitation-to-providers/${store().state.projectId}`
) )
} }
/** /**
...@@ -126,7 +132,9 @@ export function logout() { ...@@ -126,7 +132,9 @@ export function logout() {
*/ */
export function changeFileStatus(userId, recordId, status) { export function changeFileStatus(userId, recordId, status) {
return httpRequest.get( return httpRequest.get(
`/api/enrollment/v1.0/application-materials/attachments/change-status/${projectId}/${userId}/${recordId}`, `/api/enrollment/v1.0/application-materials/attachments/change-status/${
store().state.projectId
}/${userId}/${recordId}`,
{ params: { status } } { params: { status } }
) )
} }
...@@ -151,3 +159,10 @@ export function createSign(data) { ...@@ -151,3 +159,10 @@ export function createSign(data) {
export function getSignDocument(params) { export function getSignDocument(params) {
return httpRequest.get('/api/usercenter/v1/sign/document', { params }) return httpRequest.get('/api/usercenter/v1/sign/document', { params })
} }
/**
* 获取报名信息
*/
export function getApplicationProfiles(params) {
return httpRequest.get(`/api/enrollment/v1.0/application-materials/profiles/1016,1022`, { params })
}
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
</div> </div>
</div> </div>
</header> </header>
<nav class="nav"><h1 class="title">纽约州立大学石溪分校金融学硕士(MSF)学位项目推荐信</h1></nav> <nav class="nav"><h1 class="title">玛丽伍德大学工商管理硕士(MBA保研项目)项目推荐信</h1></nav>
<section class="content"> <section class="content">
<el-form <el-form
:model="ruleForm" :model="ruleForm"
......
...@@ -24,13 +24,14 @@ ...@@ -24,13 +24,14 @@
</div> </div>
<div class="welcome" v-if="welcomeShow"> <div class="welcome" v-if="welcomeShow">
<div class="inner"> <div class="inner">
<div class="welcome-close" @click="handleClose"></div> <!-- <div class="welcome-close" @click="handleClose"></div> -->
<div class="welcome-main"> <div class="welcome-main">
<img src="https://webapp-pub.ezijing.com/project/application/images/welcome.png" width="350" /> <img src="https://webapp-pub.ezijing.com/project/application/images/welcome.png" width="350" />
<div class="welcome-content"> <div class="welcome-content">
<h1>欢迎您报考</h1> <h1>欢迎报名玛丽伍德大学保研项目</h1>
<h2>纽约州立大学石溪分校</h2> <h2>请选择您的项目</h2>
<div class="welcome-button" @click="handleStart">马上开始</div> <div class="welcome-button" @click="handleStart(1016)">工商管理硕士</div>
<div class="welcome-button" @click="handleStart(1022)">管理信息系统硕士</div>
</div> </div>
</div> </div>
</div> </div>
...@@ -83,17 +84,17 @@ export default { ...@@ -83,17 +84,17 @@ export default {
}, },
// 获取报名信息 // 获取报名信息
getApplication() { getApplication() {
api.getApplication().then(response => { return api.getApplication().then(response => {
const { data, error, message } = response const { data, error, message } = response
if (error.toString() === '0') { if (error.toString() === '0') {
const { material, progress } = data const { material, progress } = data
this.material = material this.material = material
this.progress = progress this.progress = progress
const welcomeShowed = window.localStorage.getItem(this.user.id) === 'true' // const welcomeShowed = window.localStorage.getItem(this.user.id) === 'true'
material.attachments = material.attachments || [] // material.attachments = material.attachments || []
if (!material.attachments.length && !welcomeShowed) { // if (!material.attachments.length && !welcomeShowed) {
this.welcomeShow = true // this.welcomeShow = true
} // }
} else { } else {
this.$message.error(message) this.$message.error(message)
} }
...@@ -101,10 +102,11 @@ export default { ...@@ -101,10 +102,11 @@ export default {
}, },
// 获取报名审核状态 // 获取报名审核状态
getApplicationStatus() { getApplicationStatus() {
api.getApplicationStatus().then(response => { return api.getApplicationStatus().then(response => {
this.result = response.data this.result = response.data
}) })
}, },
// 报名申请 // 报名申请
toApplication() { toApplication() {
this.$router.push('/my/application?active=application_info') this.$router.push('/my/application?active=application_info')
...@@ -125,8 +127,11 @@ export default { ...@@ -125,8 +127,11 @@ export default {
} }
this.$router.push('/my/admission') this.$router.push('/my/admission')
}, },
handleStart() { handleStart(projectId) {
this.welcomeShow = false this.welcomeShow = false
this.$store.commit('setProjectId', projectId)
this.getApplication()
this.getApplicationStatus()
this.createDriver() this.createDriver()
}, },
handleClose() { handleClose() {
...@@ -177,9 +182,14 @@ export default { ...@@ -177,9 +182,14 @@ export default {
driver.start() driver.start()
} }
}, },
beforeMount() { async beforeMount() {
console.log(this.$store.state.projectId)
if (this.$store.state.projectId) {
this.getApplication() this.getApplication()
this.getApplicationStatus() this.getApplicationStatus()
} else {
this.welcomeShow = true
}
} }
} }
</script> </script>
...@@ -282,9 +292,16 @@ export default { ...@@ -282,9 +292,16 @@ export default {
color: #fff; color: #fff;
line-height: 26px; line-height: 26px;
} }
p {
margin-top: 40px;
font-size: 26px;
font-weight: normal;
color: #fff;
line-height: 26px;
}
} }
.welcome-button { .welcome-button {
margin-top: 40px; margin: 20px 10px 0;
display: inline-block; display: inline-block;
padding: 10px 32px; padding: 10px 32px;
font-size: 20px; font-size: 20px;
......
import store from '@/store/index'
export default { export default {
id: 'admission_byzs', id: 'admission_byzs',
title: '毕业证书注册备案表', title: '毕业证书注册备案表',
get: { get: {
action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${process.env.projectId}`, action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${store().state.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 +35,12 @@ export default { ...@@ -33,8 +35,12 @@ export default {
required: true, required: true,
model: 'DIPLOMA_FILING_TABLE', model: 'DIPLOMA_FILING_TABLE',
attrs: { attrs: {
action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/put`, action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${
deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/delete`, store().state.projectId
}/put`,
deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${
store().state.projectId
}/delete`,
data: { file_type: 'DIPLOMA_FILING_TABLE' } data: { file_type: 'DIPLOMA_FILING_TABLE' }
}, },
prepend: ` prepend: `
......
export default function(_this) { export default function(_this) {
return { return {
id: 'admission_cjd', id: 'admission_cjd',
title: '成绩单', title: '成绩单(中+英)',
get: { get: {
action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${process.env.projectId}`, action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${_this.$store.state.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 = ['FILLING', 'PREPAYMENT', 'INTERVIEW_APPLICATION', 'AUDITION', 'INTERVIEW', 'PAYMENT', 'REGISTRATION', 'CLOSED'] const stageList = [
'FILLING',
'PREPAYMENT',
'INTERVIEW_APPLICATION',
'AUDITION',
'INTERVIEW',
'PAYMENT',
'REGISTRATION',
'CLOSED'
]
this.form.options.disabled = stageList.findIndex(item => item === submissionStage) > 6 this.form.options.disabled = stageList.findIndex(item => item === submissionStage) > 6
return attachments.reduce( return attachments.reduce(
(result, item) => { (result, item) => {
...@@ -23,7 +32,7 @@ export default function(_this) { ...@@ -23,7 +32,7 @@ export default function(_this) {
} }
}, },
form: { form: {
next: { to: { query: { active: 'admission_xy' } } }, next: { to: { query: { active: 'admission_yynl' } } },
hasButton: false, hasButton: false,
options: { 'label-position': 'top' }, options: { 'label-position': 'top' },
hint: ` hint: `
...@@ -33,25 +42,22 @@ export default function(_this) { ...@@ -33,25 +42,22 @@ export default function(_this) {
`, `,
items: [ items: [
{ {
required: true,
type: 'v-upload', type: 'v-upload',
label: '中文成绩单', label: '中文成绩单',
model: 'REPORT_CARD_CN', model: 'REPORT_CARD_CN',
attrs: { attrs: {
disabled: true, action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${_this.$store.state.projectId}/put`,
action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/put`, deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${_this.$store.state.projectId}/delete`,
deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/delete`,
data: { file_type: 'REPORT_CARD_CN' } data: { file_type: 'REPORT_CARD_CN' }
} }
}, },
{ {
required: true,
type: 'v-upload', type: 'v-upload',
label: '英文成绩单', label: '英文成绩单',
model: 'REPORT_CARD_EN', model: 'REPORT_CARD_EN',
attrs: { attrs: {
action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/put`, action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${_this.$store.state.projectId}/put`,
deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/delete`, deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${_this.$store.state.projectId}/delete`,
data: { file_type: 'REPORT_CARD_EN' } data: { file_type: 'REPORT_CARD_EN' }
} }
} }
......
...@@ -4,7 +4,7 @@ import cjd from './cjd' ...@@ -4,7 +4,7 @@ import cjd from './cjd'
import xy from './xy' import xy from './xy'
import xfjn from './xfjn' import xfjn from './xfjn'
import tjx from './tjx' import tjx from './tjx'
// import yynl from './yynl' import yynl from './yynl'
export default function(_this) { export default function(_this) {
return { return {
...@@ -12,6 +12,7 @@ export default function(_this) { ...@@ -12,6 +12,7 @@ export default function(_this) {
title: '入学办理', title: '入学办理',
children: [ children: [
cjd(_this), cjd(_this),
yynl(_this),
// tjx(_this), // tjx(_this),
xy(_this), xy(_this),
xfjn(_this) xfjn(_this)
......
...@@ -7,7 +7,7 @@ export default function(_this) { ...@@ -7,7 +7,7 @@ export default function(_this) {
id: 'admission_tjx', id: 'admission_tjx',
title: '推荐信', title: '推荐信',
get: { get: {
action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${process.env.projectId}`, action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${_this.$store.state.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 = [
...@@ -27,7 +27,7 @@ export default function(_this) { ...@@ -27,7 +27,7 @@ export default function(_this) {
} }
}, },
update: { update: {
action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${process.env.projectId}/put`, action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${_this.$store.state.projectId}/put`,
beforeRequest(data) { beforeRequest(data) {
return { reco_letters: data } return { reco_letters: data }
}, },
...@@ -44,7 +44,7 @@ export default function(_this) { ...@@ -44,7 +44,7 @@ export default function(_this) {
}, },
form: { form: {
minlength: 2, minlength: 2,
prev: { to: { query: { active: 'admission_cjd' } }, isSubmit: true }, prev: { to: { query: { active: 'admission_yynl' } }, isSubmit: true },
next: { to: { query: { active: 'admission_xy' } }, isSubmit: true }, next: { to: { query: { active: 'admission_xy' } }, isSubmit: true },
hasAdd: true, hasAdd: true,
options: { disabled: false, labelWidth: '140px' }, options: { disabled: false, labelWidth: '140px' },
......
...@@ -3,10 +3,19 @@ export default function(_this) { ...@@ -3,10 +3,19 @@ export default function(_this) {
id: 'admission_xfjn', id: 'admission_xfjn',
title: '缴费凭证', title: '缴费凭证',
get: { get: {
action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${process.env.projectId}`, action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${_this.$store.state.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 = ['FILLING', 'PREPAYMENT', 'INTERVIEW_APPLICATION', 'AUDITION', 'INTERVIEW', 'PAYMENT', 'REGISTRATION', 'CLOSED'] const stageList = [
'FILLING',
'PREPAYMENT',
'INTERVIEW_APPLICATION',
'AUDITION',
'INTERVIEW',
'PAYMENT',
'REGISTRATION',
'CLOSED'
]
this.form.options.disabled = stageList.findIndex(item => item === submissionStage) > 6 this.form.options.disabled = stageList.findIndex(item => item === submissionStage) > 6
const PAYMENT_VOUCHER = attachments.filter(item => { const PAYMENT_VOUCHER = attachments.filter(item => {
return item.file_type_id === 'PAYMENT_VOUCHER' return item.file_type_id === 'PAYMENT_VOUCHER'
...@@ -28,13 +37,12 @@ export default function(_this) { ...@@ -28,13 +37,12 @@ export default function(_this) {
<p>支付宝户名:清控紫荆(北京)教育科技股份有限公司</p>`, <p>支付宝户名:清控紫荆(北京)教育科技股份有限公司</p>`,
items: [ items: [
{ {
required: true,
type: 'v-upload', type: 'v-upload',
model: 'PAYMENT_VOUCHER', model: 'PAYMENT_VOUCHER',
label: '上传缴费凭证', label: '上传缴费凭证',
attrs: { attrs: {
action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/put`, action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${_this.$store.state.projectId}/put`,
deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/delete`, deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${_this.$store.state.projectId}/delete`,
data: { file_type: 'PAYMENT_VOUCHER' } data: { file_type: 'PAYMENT_VOUCHER' }
}, },
append: `申请者可将转账/支付缴费凭证截图或拍照后提交。<br> append: `申请者可将转账/支付缴费凭证截图或拍照后提交。<br>
......
...@@ -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: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${process.env.projectId}`, action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${_this.$store.state.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,23 +24,22 @@ export default function(_this) { ...@@ -24,23 +24,22 @@ export default function(_this) {
} }
}, },
form: { form: {
prev: { to: { query: { active: 'admission_cjd' } } }, prev: { to: { query: { active: 'admission_yynl' } } },
next: { to: { query: { active: 'admission_xfjn' } } }, next: { to: { query: { active: 'admission_xfjn' } } },
hasButton: false, hasButton: false,
options: { 'label-position': 'top' }, options: {},
items: [ items: [
{ {
type: 'v-upload', type: 'v-upload',
required: true, required: true,
label: '入学协议',
model: 'ADMISSION_AGREEMENT', model: 'ADMISSION_AGREEMENT',
attrs: { attrs: {
action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/put`, action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${_this.$store.state.projectId}/put`,
deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/delete`, deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${_this.$store.state.projectId}/delete`,
data: { file_type: 'ADMISSION_AGREEMENT' } data: { file_type: 'ADMISSION_AGREEMENT' }
}, },
prepend: ` prepend: `
<p><a href="https://webapp-pub.ezijing.com/project/marywood-plus-sdau/%E5%85%A5%E5%AD%A6%E5%8D%8F%E8%AE%AE.pdf" target="_blank" download="入学协议">下载入学协议</a></p> <p><a href="https://zws-imgs-pub.ezijing.com/pc/marywood/%E5%85%A5%E5%AD%A6%E5%8D%8F%E8%AE%AE.pdf" target="_blank" download="入学协议">下载入学协议</a></p>
<p>申请者可将签字后的入学协议原件扫描或拍照后提交。</p> <p>申请者可将签字后的入学协议原件扫描或拍照后提交。</p>
<p>学员应仔细阅读《入学协议》以及课程介绍,如对入学协议或课程有异议,请第一时间与课程顾问咨询确认。请用A4纸打印后,在入学协议上签上姓名和日期,内容需显示完整、格式整齐、字迹清晰可辨。上传文件仅限“jpg,jpeg,pdf,png”格式,文件小于10Mb。</p> <p>学员应仔细阅读《入学协议》以及课程介绍,如对入学协议或课程有异议,请第一时间与课程顾问咨询确认。请用A4纸打印后,在入学协议上签上姓名和日期,内容需显示完整、格式整齐、字迹清晰可辨。上传文件仅限“jpg,jpeg,pdf,png”格式,文件小于10Mb。</p>
` `
......
import store from '@/store/index'
export default { export default {
id: 'admission_ywjl', id: 'admission_ywjl',
title: '英文简历', title: '英文简历',
get: { get: {
action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${process.env.projectId}`, action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${store().state.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,12 +35,16 @@ export default { ...@@ -33,12 +35,16 @@ export default {
required: true, required: true,
model: 'RESUME_EN', model: 'RESUME_EN',
attrs: { attrs: {
action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/put`, action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${
deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/delete`, store().state.projectId
}/put`,
deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${
store().state.projectId
}/delete`,
data: { file_type: 'RESUME_EN' } data: { file_type: 'RESUME_EN' }
}, },
append: ` append: `
<p>请下载填写英文简历模板后上传 [<a href="https://webapp-pub.ezijing.com/project/marywood-plus/%E8%8B%B1%E6%96%87%E7%AE%80%E5%8E%86%E6%A8%A1%E6%9D%BF--%E7%9F%B3%E6%BA%AA.doc" target="_blank" download="英文简历模板">下载模板</a>]</p> <p>请下载填写英文简历模板后上传 [<a href="https://webapp-pub.ezijing.com/project/marywood-plus/%E8%8B%B1%E6%96%87%E7%AE%80%E5%8E%86%E6%A8%A1%E6%9D%BF1%2B1.doc" target="_blank" download="英文简历模板">下载模板</a>]</p>
<p>请将英文简历填写完存为"pdf"格式上传,文件小于10MB。</p>` <p>请将英文简历填写完存为"pdf"格式上传,文件小于10MB。</p>`
} }
] ]
......
...@@ -3,7 +3,7 @@ export default function(_this) { ...@@ -3,7 +3,7 @@ export default function(_this) {
id: 'admission_yynl', id: 'admission_yynl',
title: '语言能力证明', title: '语言能力证明',
get: { get: {
action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${process.env.projectId}`, action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${_this.$store.state.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,7 +33,7 @@ export default function(_this) { ...@@ -33,7 +33,7 @@ export default function(_this) {
}, },
form: { form: {
prev: { to: { query: { active: 'admission_cjd' } } }, prev: { to: { query: { active: 'admission_cjd' } } },
next: { to: { query: { active: 'admission_tjx' } } }, next: { to: { query: { active: 'admission_xy' } } },
hasButton: false, hasButton: false,
options: { 'label-position': 'top' }, options: { 'label-position': 'top' },
items: [ items: [
...@@ -42,8 +42,8 @@ export default function(_this) { ...@@ -42,8 +42,8 @@ export default function(_this) {
label: '国内语言成绩', label: '国内语言成绩',
model: 'DOMESTIC_LANGUAGE_SCORE', model: 'DOMESTIC_LANGUAGE_SCORE',
attrs: { attrs: {
action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/put`, action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${_this.$store.state.projectId}/put`,
deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/delete`, deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${_this.$store.state.projectId}/delete`,
data: { file_type: 'DOMESTIC_LANGUAGE_SCORE' } data: { file_type: 'DOMESTIC_LANGUAGE_SCORE' }
}, },
append: `<p>有大学英语四级或六级成绩,请上传凭证</p>` append: `<p>有大学英语四级或六级成绩,请上传凭证</p>`
...@@ -53,8 +53,8 @@ export default function(_this) { ...@@ -53,8 +53,8 @@ export default function(_this) {
label: '国际语言成绩', label: '国际语言成绩',
model: 'INTERNATIONAL_LANGUAGE_SCORE', model: 'INTERNATIONAL_LANGUAGE_SCORE',
attrs: { attrs: {
action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/put`, action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${_this.$store.state.projectId}/put`,
deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/delete`, deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${_this.$store.state.projectId}/delete`,
data: { file_type: 'INTERNATIONAL_LANGUAGE_SCORE' } data: { file_type: 'INTERNATIONAL_LANGUAGE_SCORE' }
}, },
append: `<p>有托福,雅思,GMAT,GRE或其他考试成绩,请上传凭证</p>` append: `<p>有托福,雅思,GMAT,GRE或其他考试成绩,请上传凭证</p>`
......
<template> <template>
<el-dialog <el-dialog
title="您当前完成进度如下:" title="您当前完成进度如下:"
width="448px" width="388px"
:center="true" :center="true"
:close-on-click-modal="false" :close-on-click-modal="false"
:visible.sync="dialogVisible" :visible.sync="dialogVisible"
...@@ -57,44 +57,45 @@ export default { ...@@ -57,44 +57,45 @@ export default {
], ],
[ [
{ {
title: '毕业证书&学位证书/在读证明', title: '毕业证书/在读证明',
code: 'interviewByzs', code: 'interviewByzs',
view: { to: { path: '/my/interview', query: { active: 'interview_byzs' } } } view: { to: { path: '/my/interview', query: { active: 'interview_byzs' } } }
}, },
// { // {
// title: '毕业证书',
// code: 'interviewByzs',
// view: { to: { path: '/my/interview', query: { active: 'interview_byzs' } } }
// },
// {
// title: '学位证书', // title: '学位证书',
// code: 'interviewXwzs', // code: 'interviewXwzs',
// view: { to: { path: '/my/interview', query: { active: 'interview_byzs' } } } // view: { to: { path: '/my/interview', query: { active: 'interview_xwzs' } } }
// }, // },
// { // {
// title: '在读证明', // title: '学位证书英文证明',
// code: 'interviewZdzm', // code: 'interviewXwzsEnglish',
// view: { to: { path: '/my/interview', query: { active: 'interview_byzs' } } } // 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: '成绩单',
// code: 'interviewCjd',
// view: { to: { path: '/my/interview', query: { active: 'interview_cjd' } } }
// },
// {
// title: '2寸照片',
// code: 'interviewZp',
// view: { to: { path: '/my/interview', query: { active: 'interview_zp' } } }
// }
{ {
title: '推荐信', title: '推荐信',
code: 'interviewTjx', code: 'interviewTjx',
view: { to: { path: '/my/interview', query: { active: 'interview_tjx' } } } view: { to: { path: '/my/interview', query: { active: 'interview_tjx' } } }
},
{
title: '成绩单',
code: 'interviewCjd',
view: { to: { path: '/my/interview', query: { active: 'interview_cjd' } } }
},
{
title: '语言能力证明',
code: 'interviewYynlzm',
view: { to: { path: '/my/interview', query: { active: 'interview_yynl' } } }
},
{
title: '个人照片',
code: 'interviewZp',
view: { to: { path: '/my/interview', query: { active: 'interview_zp' } } }
} }
] ]
] ]
...@@ -151,28 +152,19 @@ export default { ...@@ -151,28 +152,19 @@ export default {
interviewZp.progress = missedRequiredList.PERSONAL_PHOTO_FOR_ID ? 0 : 1 interviewZp.progress = missedRequiredList.PERSONAL_PHOTO_FOR_ID ? 0 : 1
// 毕业证书 // 毕业证书
const interviewByzs = { progress: 0 } const interviewByzs = { progress: 0 }
interviewByzs.progress = interviewByzs.progress = missedRequiredList.DIPLOMA_CN || missedRequiredList.PROOF_READING ? 0 : 1
missedRequiredList.DIPLOMA_CN || missedRequiredList.DEGREE_CERT_CN || missedRequiredList.PROOF_READING
? 0
: 1
// 学位证书 // 学位证书
const interviewXwzs = { progress: 0 } const interviewXwzs = { progress: 0 }
interviewXwzs.progress = missedRequiredList.DEGREE_CERT_CN ? 0 : 1 interviewXwzs.progress = missedRequiredList.DEGREE_CERT_CN ? 0 : 1
// 学位证书英文 // 学位证书英文
const interviewXwzsEnglish = { progress: 0 } const interviewXwzsEnglish = { progress: 0 }
interviewXwzsEnglish.progress = missedRequiredList.DEGREE_CERT_EN ? 0 : 1 interviewXwzsEnglish.progress = missedRequiredList.DEGREE_CERT_EN ? 0 : 1
// 在读证明
const interviewZdzm = { progress: 0 }
interviewZdzm.progress = missedRequiredList.PROOF_READING ? 0 : 1
// 英文简历 // 英文简历
const interviewYwjl = { progress: 0 } const interviewYwjl = { progress: 0 }
interviewYwjl.progress = missedRequiredList.RESUME_EN ? 0 : 1 interviewYwjl.progress = missedRequiredList.RESUME_EN ? 0 : 1
// 成绩单 // 成绩单
const interviewCjd = { progress: 0 } const interviewCjd = { progress: 0 }
interviewCjd.progress = missedRequiredList.REPORT_CARD_CN || missedRequiredList.REPORT_CARD_EN ? 0 : 1 interviewCjd.progress = missedRequiredList.REPORT_CARD_CN || missedRequiredList.REPORT_CARD_EN ? 0 : 1
// 语言能力证明
const interviewYynlzm = { progress: 0 }
interviewYynlzm.progress = missedRequiredList.INTERNATIONAL_LANGUAGE_SCORE ? 0 : 1
// 推荐信 // 推荐信
const interviewTjx = { progress: 0 } const interviewTjx = { progress: 0 }
interviewTjx.progress = missedRequiredList.RECOMMENDATION_LETTER ? 0 : 1 interviewTjx.progress = missedRequiredList.RECOMMENDATION_LETTER ? 0 : 1
...@@ -185,10 +177,8 @@ export default { ...@@ -185,10 +177,8 @@ export default {
interviewByzs, interviewByzs,
interviewXwzs, interviewXwzs,
interviewXwzsEnglish, interviewXwzsEnglish,
interviewZdzm,
interviewYwjl, interviewYwjl,
interviewCjd, interviewCjd,
interviewYynlzm,
interviewTjx interviewTjx
} }
} else { } else {
...@@ -217,7 +207,7 @@ li { ...@@ -217,7 +207,7 @@ li {
align-items: center; align-items: center;
} }
.name { .name {
width: 190px; width: 120px;
text-align: right; text-align: right;
} }
.line { .line {
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
</div> </div>
<h1>欢迎您</h1> <h1>欢迎您</h1>
<p class="t1"> <p class="t1">
申请纽约州立大学石溪分校金融学硕士(MSF)项目,本项目的申请费为<span>700</span>元,请扫描二维码以完成报名。 申请玛丽伍德大学{{ projectName }}项目,本项目的申请费为<span>700</span>元,请扫描二维码以完成报名。
</p> </p>
</div> </div>
<div class="qrcode-error" v-if="qrcodeError"> <div class="qrcode-error" v-if="qrcodeError">
...@@ -35,6 +35,9 @@ export default { ...@@ -35,6 +35,9 @@ export default {
// 二维码地址 // 二维码地址
qrcodeValue() { qrcodeValue() {
return this.order.payment_url return this.order.payment_url
},
projectName() {
return this.$store.state.projectId == 1022 ? '管理信息系统硕士' : '工商管理硕士(MBA保研项目)'
} }
}, },
methods: { methods: {
......
...@@ -3,6 +3,12 @@ ...@@ -3,6 +3,12 @@
*/ */
export default function(_this) { export default function(_this) {
const prepend =
_this.$store.state.projectId == 1022
? `<p>1、本人知晓此申请表及所附文件将作为申请玛丽伍德大学管理信息系统硕士和背景评估的参考依据,一旦成功录取,有关资料将作为学生信息存档。</p>
<p>2、本人声明所填资料正确无误,知晓任何不真实的信息或不诚信的行为,均会影响申请结果,已取得的成绩和资格会被取消。我理解并同意所有报名材料归紫荆教育所有,无论考生录取与否均不退回。我授权紫荆教育使用报名表中的信息查询本人学习和工作记录。</p>`
: `<p>1、本人知晓此申请表及所附文件将作为申请玛丽伍德大学MBA面试和背景评估的参考依据,一旦成功录取,有关资料将作为学生信息存档。</p>
<p>2、本人声明所填资料正确无误,知晓任何不真实的信息或不诚信的行为,均会影响申请结果,已取得的成绩和资格会被取消。我理解并同意所有报名材料归紫荆教育所有,无论考生录取与否均不退回。我授权紫荆教育使用报名表中的信息查询本人学习和工作记录。</p>`
return { return {
id: 'application_declare', id: 'application_declare',
title: '申请声明', title: '申请声明',
...@@ -10,7 +16,7 @@ export default function(_this) { ...@@ -10,7 +16,7 @@ export default function(_this) {
return _this.visible return _this.visible
}, },
get: { get: {
action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${process.env.projectId}`, action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${_this.$store.state.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 +28,7 @@ export default function(_this) { ...@@ -22,7 +28,7 @@ export default function(_this) {
} }
}, },
update: { update: {
action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/submit/${process.env.projectId}`, action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/submit/${_this.$store.state.projectId}`,
callback() { callback() {
_this.getApplication() _this.getApplication()
this.form.options.disabled = true this.form.options.disabled = true
...@@ -44,8 +50,7 @@ export default function(_this) { ...@@ -44,8 +50,7 @@ export default function(_this) {
values: [{ label: '同意', value: 1 }], values: [{ label: '同意', value: 1 }],
model: 'isAgree', model: 'isAgree',
rules: [{ required: true, message: '请阅读协议', trigger: 'change' }], rules: [{ required: true, message: '请阅读协议', trigger: 'change' }],
prepend: `<p>1、本人知晓此申请表及所附文件将作为申请纽约州立大学石溪分校金融学硕士(MSF)面试和背景评估的参考依据,一旦成功录取,有关资料将作为学生信息存档。</p> prepend: prepend
<p>2、本人声明所填资料正确无误,知晓任何不真实的信息或不诚信的行为,均会影响申请结果,已取得的成绩和资格会被取消。我理解并同意所有报名材料归所有,无论考生录取与否均不退回。我授权使用报名表中的信息查询本人学习和工作记录。</p>`
} }
] ]
} }
......
...@@ -3,6 +3,10 @@ ...@@ -3,6 +3,10 @@
*/ */
export default function(_this) { export default function(_this) {
const question1 =
_this.$store.state.projectId == 1022
? '您为什么要申请玛丽伍德大学管理信息系统硕士项目?'
: '您为什么要申请玛丽伍德大学工商管理硕士(MBA)保研项目?'
return { return {
id: 'application_info_answer', id: 'application_info_answer',
title: '学习目的', title: '学习目的',
...@@ -11,7 +15,7 @@ export default function(_this) { ...@@ -11,7 +15,7 @@ export default function(_this) {
return _this.visible return _this.visible
}, },
get: { get: {
action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${process.env.projectId}`, action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${_this.$store.state.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'
...@@ -19,7 +23,7 @@ export default function(_this) { ...@@ -19,7 +23,7 @@ export default function(_this) {
const [first = {}, second = {}] = answers const [first = {}, second = {}] = answers
return { return {
qid1: first.qid || '1', qid1: first.qid || '1',
question1: '您为什么要申请纽约州立大学石溪分校金融学硕士(MSF)项目?', question1: question1,
answer1: first.answer, answer1: first.answer,
qid2: second.qid || '2', qid2: second.qid || '2',
question2: '您的短期和长期职业发展目标是什么?您打算如何达成此愿景?', question2: '您的短期和长期职业发展目标是什么?您打算如何达成此愿景?',
...@@ -28,7 +32,7 @@ export default function(_this) { ...@@ -28,7 +32,7 @@ export default function(_this) {
} }
}, },
update: { update: {
action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${process.env.projectId}/put`, action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${_this.$store.state.projectId}/put`,
beforeRequest(data) { beforeRequest(data) {
return { return {
answers: [ answers: [
...@@ -45,7 +49,7 @@ export default function(_this) { ...@@ -45,7 +49,7 @@ export default function(_this) {
items: [ items: [
{ {
type: 'v-input', type: 'v-input',
label: '您为什么要申请纽约州立大学石溪分校金融学硕士(MSF)项目?(60字以上,1000字以内)', label: `${question1}(60字以上,1000字以内)`,
model: 'answer1', model: 'answer1',
attrs: { type: 'textarea', rows: '8', maxlength: '1000', style: 'width:100%' }, attrs: { type: 'textarea', rows: '8', maxlength: '1000', style: 'width:100%' },
rules: [ rules: [
......
...@@ -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: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${process.env.projectId}`, action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${_this.$store.state.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: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${process.env.projectId}/put`, action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${_this.$store.state.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: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${process.env.projectId}`, action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${_this.$store.state.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: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${process.env.projectId}/put`, action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${_this.$store.state.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: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${process.env.projectId}`, action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${_this.$store.state.projectId}`,
callback(data) { callback(data) {
const { const {
basic_info: basicInfo = {}, basic_info: basicInfo = {},
...@@ -37,7 +37,7 @@ export default function(_this) { ...@@ -37,7 +37,7 @@ export default function(_this) {
} }
}, },
update: { update: {
action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${process.env.projectId}/put`, action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${_this.$store.state.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]
...@@ -80,8 +80,8 @@ export default function(_this) { ...@@ -80,8 +80,8 @@ export default function(_this) {
label: '身份证人像面', label: '身份证人像面',
model: 'ID_CARD_BACK', model: 'ID_CARD_BACK',
attrs: { attrs: {
action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/put`, action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${_this.$store.state.projectId}/put`,
deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/delete`, deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${_this.$store.state.projectId}/delete`,
data: { file_type: 'ID_CARD_BACK' }, data: { file_type: 'ID_CARD_BACK' },
limit: 1, limit: 1,
accept: 'image/*', accept: 'image/*',
...@@ -98,8 +98,8 @@ export default function(_this) { ...@@ -98,8 +98,8 @@ export default function(_this) {
label: '身份证国徽面', label: '身份证国徽面',
model: 'ID_CARD_FRONT', model: 'ID_CARD_FRONT',
attrs: { attrs: {
action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/put`, action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${_this.$store.state.projectId}/put`,
deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/delete`, deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${_this.$store.state.projectId}/delete`,
data: { file_type: 'ID_CARD_FRONT' }, data: { file_type: 'ID_CARD_FRONT' },
limit: 1, limit: 1,
accept: 'image/*', accept: 'image/*',
...@@ -116,8 +116,8 @@ export default function(_this) { ...@@ -116,8 +116,8 @@ export default function(_this) {
label: '港澳台身份证', label: '港澳台身份证',
model: 'HK_ID_CARD', model: 'HK_ID_CARD',
attrs: { attrs: {
action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/put`, action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${_this.$store.state.projectId}/put`,
deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/delete`, deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${_this.$store.state.projectId}/delete`,
data: { file_type: 'HK_ID_CARD' }, data: { file_type: 'HK_ID_CARD' },
limit: 1, limit: 1,
accept: 'image/*' accept: 'image/*'
...@@ -133,8 +133,8 @@ export default function(_this) { ...@@ -133,8 +133,8 @@ export default function(_this) {
label: '中国护照', label: '中国护照',
model: 'PASSPORT', model: 'PASSPORT',
attrs: { attrs: {
action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/put`, action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${_this.$store.state.projectId}/put`,
deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/delete`, deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${_this.$store.state.projectId}/delete`,
data: { file_type: 'PASSPORT' }, data: { file_type: 'PASSPORT' },
limit: 1, limit: 1,
accept: 'image/*' accept: 'image/*'
...@@ -150,8 +150,8 @@ export default function(_this) { ...@@ -150,8 +150,8 @@ export default function(_this) {
label: '其他证件', label: '其他证件',
model: 'OTHER_ID_CARD_PHOTO', model: 'OTHER_ID_CARD_PHOTO',
attrs: { attrs: {
action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/put`, action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${_this.$store.state.projectId}/put`,
deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/delete`, deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${_this.$store.state.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: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${process.env.projectId}`, action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${_this.$store.state.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: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${process.env.projectId}/put`, action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${_this.$store.state.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: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${process.env.projectId}`, action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${_this.$store.state.projectId}`,
callback(data) { callback(data) {
const { const {
basic_info: basicInfo = {}, basic_info: basicInfo = {},
...@@ -40,7 +40,7 @@ export default function(_this) { ...@@ -40,7 +40,7 @@ export default function(_this) {
} }
}, },
update: { update: {
action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${process.env.projectId}/put`, action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${_this.$store.state.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
...@@ -102,8 +102,8 @@ export default function(_this) { ...@@ -102,8 +102,8 @@ export default function(_this) {
label: '身份证人像面', label: '身份证人像面',
model: 'ID_CARD_BACK', model: 'ID_CARD_BACK',
attrs: { attrs: {
action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/put`, action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${_this.$store.state.projectId}/put`,
deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/delete`, deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${_this.$store.state.projectId}/delete`,
data: { file_type: 'ID_CARD_BACK' }, data: { file_type: 'ID_CARD_BACK' },
limit: 1, limit: 1,
accept: 'image/*', accept: 'image/*',
...@@ -120,8 +120,8 @@ export default function(_this) { ...@@ -120,8 +120,8 @@ export default function(_this) {
label: '身份证国徽面', label: '身份证国徽面',
model: 'ID_CARD_FRONT', model: 'ID_CARD_FRONT',
attrs: { attrs: {
action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/put`, action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${_this.$store.state.projectId}/put`,
deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/delete`, deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${_this.$store.state.projectId}/delete`,
data: { file_type: 'ID_CARD_FRONT' }, data: { file_type: 'ID_CARD_FRONT' },
limit: 1, limit: 1,
accept: 'image/*', accept: 'image/*',
...@@ -138,8 +138,8 @@ export default function(_this) { ...@@ -138,8 +138,8 @@ export default function(_this) {
label: '港澳台身份证', label: '港澳台身份证',
model: 'HK_ID_CARD', model: 'HK_ID_CARD',
attrs: { attrs: {
action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/put`, action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${_this.$store.state.projectId}/put`,
deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/delete`, deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${_this.$store.state.projectId}/delete`,
data: { file_type: 'HK_ID_CARD' }, data: { file_type: 'HK_ID_CARD' },
limit: 1, limit: 1,
accept: 'image/*' accept: 'image/*'
...@@ -155,8 +155,8 @@ export default function(_this) { ...@@ -155,8 +155,8 @@ export default function(_this) {
label: '中国护照', label: '中国护照',
model: 'PASSPORT', model: 'PASSPORT',
attrs: { attrs: {
action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/put`, action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${_this.$store.state.projectId}/put`,
deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/delete`, deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${_this.$store.state.projectId}/delete`,
data: { file_type: 'PASSPORT' }, data: { file_type: 'PASSPORT' },
limit: 1, limit: 1,
accept: 'image/*' accept: 'image/*'
...@@ -172,8 +172,8 @@ export default function(_this) { ...@@ -172,8 +172,8 @@ export default function(_this) {
label: '其他证件', label: '其他证件',
model: 'OTHER_ID_CARD_PHOTO', model: 'OTHER_ID_CARD_PHOTO',
attrs: { attrs: {
action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/put`, action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${_this.$store.state.projectId}/put`,
deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/delete`, deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${_this.$store.state.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: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${process.env.projectId}`, action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${_this.$store.state.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: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${process.env.projectId}/put`, action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${_this.$store.state.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: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${process.env.projectId}`, action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${_this.$store.state.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: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${process.env.projectId}/put`, action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${_this.$store.state.projectId}/put`,
beforeRequest(data) { beforeRequest(data) {
return { reco_letters: data } return { reco_letters: data }
} }
......
...@@ -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: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${process.env.projectId}`, action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${_this.$store.state.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: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/put`, action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${_this.$store.state.projectId}/put`,
deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/delete`, deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${_this.$store.state.projectId}/delete`,
data: { file_type: 'NO_CRIMINAL_CERT' }, data: { file_type: 'NO_CRIMINAL_CERT' },
limit: 1 limit: 1
}, },
......
...@@ -4,17 +4,26 @@ ...@@ -4,17 +4,26 @@
<div class="preview-hd"> <div class="preview-hd">
<el-steps align-center :active="options.length"> <el-steps align-center :active="options.length">
<template v-for="item in options"> <template v-for="item in options">
<el-step :title="item.title" :status="(progress.FILLING[item.code] && progress.FILLING[item.code].progress === 1) || !item.required ? 'success' : 'error'" :key="item.code"></el-step> <el-step
:title="item.title"
:status="progress.FILLING[item.code] && progress.FILLING[item.code].progress === 1 ? 'success' : 'error'"
:key="item.code"
></el-step>
</template> </template>
</el-steps> </el-steps>
</div> </div>
<div class="preivew-bd"> <div class="preivew-bd">
<template v-for="item in options"> <template v-for="item in options">
<div class="preview-item" :class="progress.FILLING[item.code].progress === 1 || !item.required ? 'is-success' : 'is-error'" :key="item.code" v-if="progress.FILLING[item.code]"> <div
class="preview-item"
:class="progress.FILLING[item.code].progress === 1 ? 'is-success' : 'is-error'"
:key="item.code"
v-if="progress.FILLING[item.code]"
>
<div class="preview-item-hd"> <div class="preview-item-hd">
<div class="title"> <div class="title">
{{ item.title }} {{ item.title }}
<template v-if="progress.FILLING[item.code].progress === 1 || !item.required">(已完善)</template> <template v-if="progress.FILLING[item.code].progress === 1">(已完善)</template>
<template v-else>(待完善)</template> <template v-else>(待完善)</template>
</div> </div>
<div class="line"></div> <div class="line"></div>
...@@ -26,7 +35,11 @@ ...@@ -26,7 +35,11 @@
</template> </template>
<template v-else-if="item.isMultiple"> <template v-else-if="item.isMultiple">
<div class="group" v-for="(data, index) in material[item.code]" :key="index"> <div class="group" v-for="(data, index) in material[item.code]" :key="index">
<dl v-for="subitem in item.items" :key="subitem.code" v-show="subitem.visible ? subitem.visible() : true"> <dl
v-for="subitem in item.items"
:key="subitem.code"
v-show="subitem.visible ? subitem.visible() : true"
>
<dt>{{ subitem.label }}</dt> <dt>{{ subitem.label }}</dt>
<dd> <dd>
<template v-if="subitem.computed"> <template v-if="subitem.computed">
...@@ -74,7 +87,9 @@ ...@@ -74,7 +87,9 @@
</div> </div>
</div> </div>
<el-button-group v-if="hasButton" style="margin-left: 40px"> <el-button-group v-if="hasButton" style="margin-left: 40px">
<el-button size="mini" :disabled="item.status === 'INACTIVE'" @click="handleRemove(item)">删除</el-button> <el-button size="mini" :disabled="item.status === 'INACTIVE'" @click="handleRemove(item)"
>删除</el-button
>
<el-button size="mini" :disabled="item.status === 'LOG'" @click="handleSave(item)">存档</el-button> <el-button size="mini" :disabled="item.status === 'LOG'" @click="handleSave(item)">存档</el-button>
</el-button-group> </el-button-group>
</li> </li>
...@@ -183,7 +198,6 @@ export default { ...@@ -183,7 +198,6 @@ export default {
options() { options() {
const options = [ const options = [
{ {
required: true,
title: '个人资料', title: '个人资料',
code: 'basic_info', code: 'basic_info',
edit: { edit: {
...@@ -213,7 +227,6 @@ export default { ...@@ -213,7 +227,6 @@ export default {
] ]
}, },
{ {
required: true,
title: '教育背景', title: '教育背景',
code: 'educations', code: 'educations',
edit: { edit: {
...@@ -263,7 +276,6 @@ export default { ...@@ -263,7 +276,6 @@ export default {
] ]
}, },
{ {
required: true,
title: '学习目的', title: '学习目的',
code: 'answers', code: 'answers',
edit: { edit: {
......
...@@ -4,7 +4,7 @@ export default function(_this) { ...@@ -4,7 +4,7 @@ export default function(_this) {
id: 'interview_byzs', id: 'interview_byzs',
title: '毕业证书或在读证明', title: '毕业证书或在读证明',
get: { get: {
action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${process.env.projectId}`, action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${_this.$store.state.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 = [
...@@ -23,15 +23,12 @@ export default function(_this) { ...@@ -23,15 +23,12 @@ export default function(_this) {
if (item.file_type_id === 'DIPLOMA_CN') { if (item.file_type_id === 'DIPLOMA_CN') {
result.DIPLOMA_CN.push(item) result.DIPLOMA_CN.push(item)
} }
if (item.file_type_id === 'DEGREE_CERT_CN') {
result.DEGREE_CERT_CN.push(item)
}
if (item.file_type_id === 'PROOF_READING') { if (item.file_type_id === 'PROOF_READING') {
result.PROOF_READING.push(item) result.PROOF_READING.push(item)
} }
return result return result
}, },
{ DIPLOMA_CN: [], DEGREE_CERT_CN: [], PROOF_READING: [] } { DIPLOMA_CN: [], PROOF_READING: [] }
) )
} }
}, },
...@@ -39,49 +36,30 @@ export default function(_this) { ...@@ -39,49 +36,30 @@ export default function(_this) {
next: { to: { query: { active: 'interview_ywjl' } } }, next: { to: { query: { active: 'interview_ywjl' } } },
hasButton: false, hasButton: false,
options: { 'label-position': 'top' }, options: { 'label-position': 'top' },
hint: `
提示:<br />
1、请同时上传毕业证书及学位证书<br />
2、如尚未毕业,请上传在读证明`,
items: [ items: [
{ {
required: true,
label: '毕业证书', label: '毕业证书',
type: 'v-upload', type: 'v-upload',
model: 'DIPLOMA_CN', model: 'DIPLOMA_CN',
attrs: { attrs: {
action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/put`, action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${_this.$store.state.projectId}/put`,
deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/delete`, deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${_this.$store.state.projectId}/delete`,
data: { file_type: 'DIPLOMA_CN' } data: { file_type: 'DIPLOMA_CN' }
}, },
append: append:
'申请者需要将本科或以上毕业证书原件扫描或者拍照后提交。<br> 可上传多个文件,请确保证书号码清晰可辨。<br> 上传文件仅限“jpg,jpeg,png”格式,文件小于10MB。' '申请者需要将本科或以上毕业证书原件扫描或者拍照后提交。<br> 可上传多个文件,请确保证书号码清晰可辨。<br> 上传文件仅限“jpg,jpeg,png”格式,文件小于10MB。'
}, },
{ {
required: true,
label: '学位证书',
type: 'v-upload',
model: 'DEGREE_CERT_CN',
attrs: {
action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/put`,
deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/delete`,
data: { file_type: 'DEGREE_CERT_CN' }
},
append:
'已毕业学员请提交学位证书<br />申请者需要将本科或以上的学位证书原件扫描或拍照后提交<br />可上传多个文件,请确保公章清晰可辨。'
},
{
required: true,
label: '在读证明', label: '在读证明',
type: 'v-upload', type: 'v-upload',
model: 'PROOF_READING', model: 'PROOF_READING',
attrs: { attrs: {
action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/put`, action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${_this.$store.state.projectId}/put`,
deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/delete`, deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${_this.$store.state.projectId}/delete`,
data: { file_type: 'PROOF_READING' } data: { file_type: 'PROOF_READING' }
}, },
append: append:
'未毕业学员提交加盖公章的在读证明<br/>申请者需要将本科或以上在读证明原件扫描或拍照后提交。<br> 可上传多个文件,请确保公章清晰可辨。' '未毕业学员提交加盖公章的在读证明<br/>申请者需要将本科或以上在读证明原件扫描或拍照后提交。<br> 可上传多个文件,请确保公章清晰可辨。<br> 上传文件仅限“jpg,jpeg,png”格式,文件小于10MB。'
} }
] ]
} }
......
export default function(_this) { export default function(_this) {
return { return {
required: true,
id: 'interview_cjd', id: 'interview_cjd',
title: '成绩单', title: '成绩单(中+英)',
get: { get: {
action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${process.env.projectId}`, action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${_this.$store.state.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,37 +32,34 @@ export default function(_this) { ...@@ -33,37 +32,34 @@ export default function(_this) {
} }
}, },
form: { form: {
prev: { to: { query: { active: 'interview_tjx' } } }, next: { to: { query: { active: 'interview_ywjl' } } },
next: { to: { query: { active: 'interview_yynl' } } },
hasButton: false, hasButton: false,
options: { 'label-position': 'top' }, options: { 'label-position': 'top' },
hint: ` hint: `
<p>已毕业学生需提交完整成绩单,未毕业学生提交现有成绩单,成绩单需要加盖学校公章</p> <p>请将中英文成绩单原件扫描或者拍照后提交。</p>
<p>请将中文成绩单原件扫描或者拍照后提交。</p>
<p>获取途径:联系大学时就读学校相关部门(档案馆/教务处)获取成绩单。</p> <p>获取途径:联系大学时就读学校相关部门(档案馆/教务处)获取成绩单。</p>
`, `,
items: [ items: [
{ {
required: true,
type: 'v-upload', type: 'v-upload',
label: '中文成绩单', label: '中文成绩单',
model: 'REPORT_CARD_CN', model: 'REPORT_CARD_CN',
attrs: { attrs: {
action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/put`, action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${_this.$store.state.projectId}/put`,
deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/delete`, deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${_this.$store.state.projectId}/delete`,
data: { file_type: 'REPORT_CARD_CN' } data: { file_type: 'REPORT_CARD_CN' }
} }
},
{
type: 'v-upload',
label: '英文成绩单',
model: 'REPORT_CARD_EN',
attrs: {
action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${_this.$store.state.projectId}/put`,
deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${_this.$store.state.projectId}/delete`,
data: { file_type: 'REPORT_CARD_EN' }
}
} }
// {
// type: 'v-upload',
// label: '英文成绩单',
// model: 'REPORT_CARD_EN',
// attrs: {
// action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/put`,
// deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/delete`,
// data: { file_type: 'REPORT_CARD_EN' }
// }
// }
] ]
} }
} }
......
import byzs from './byzs' import byzs from './byzs'
import cjd from './cjd'
import yynl from './yynl'
// import xwzs from './xwzs' // import xwzs from './xwzs'
import ywjl from './ywjl' import ywjl from './ywjl'
import zp from './zp'
import tjx from './tjx' import tjx from './tjx'
// import zp from './zp'
export default function(_this) { export default function(_this) {
return { return {
id: 'interview', id: 'interview',
title: '申请面试', title: '申请面试',
children: [byzs(_this), ywjl(_this), tjx(_this), cjd(_this), yynl(_this), zp(_this)] children: [byzs(_this), ywjl(_this), tjx(_this)]
} }
} }
...@@ -4,7 +4,7 @@ export default function(_this) { ...@@ -4,7 +4,7 @@ export default function(_this) {
id: 'interview_tjx', id: 'interview_tjx',
title: '推荐信', title: '推荐信',
get: { get: {
action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${process.env.projectId}`, action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${_this.$store.state.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,34 +33,32 @@ export default function(_this) { ...@@ -33,34 +33,32 @@ export default function(_this) {
) )
} }
}, },
// update: { update: {
// action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/submit/${process.env.projectId}`, action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/submit/${_this.$store.state.projectId}`,
// beforeRequest(data) { beforeRequest(data) {
// return { submission_stage: 'INTERVIEW_APPLICATION' } return { submission_stage: 'INTERVIEW_APPLICATION' }
// }, },
// callback() { callback() {
// this.form.options.disabled = true this.form.options.disabled = true
// _this.dialogVisible = true _this.dialogVisible = true
// _this.getApplication() _this.getApplication()
// }, },
// errorCallback() { errorCallback() {
// _this.completeVisible = true _this.completeVisible = true
// } }
// }, },
form: { form: {
prev: { to: { query: { active: 'interview_ywjl' } } }, prev: { to: { query: { active: 'interview_ywjl' } } },
next: { to: { query: { active: 'interview_cjd' } } }, submitText: '申请面试',
hasButton: false, model: { submission_stage: 'INTERVIEW_APPLICATION' },
// submitText: '申请面试', options: { 'label-position': 'top' },
// model: { submission_stage: 'INTERVIEW_APPLICATION' },
options: {},
items: [ items: [
{ {
type: 'v-upload', type: 'v-upload',
model: 'RECOMMENDATION_LETTER', model: 'RECOMMENDATION_LETTER',
attrs: { attrs: {
action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/put`, action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${_this.$store.state.projectId}/put`,
deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/delete`, deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${_this.$store.state.projectId}/delete`,
data: { file_type: 'RECOMMENDATION_LETTER' }, data: { file_type: 'RECOMMENDATION_LETTER' },
accept: 'image/*' accept: 'image/*'
}, },
......
import store from '@/store/index'
export default { export default {
id: 'interview_xwzs', id: 'interview_xwzs',
title: '学位证书', title: '学位证书',
get: { get: {
action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${process.env.projectId}`, action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${store().state.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 +34,12 @@ export default { ...@@ -33,8 +34,12 @@ export default {
required: true, required: true,
model: 'DEGREE_CERT_CN', model: 'DEGREE_CERT_CN',
attrs: { attrs: {
action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/put`, action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${
deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/delete`, store().state.projectId
}/put`,
deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${
store().state.projectId
}/delete`,
data: { file_type: 'DEGREE_CERT_CN' } data: { file_type: 'DEGREE_CERT_CN' }
}, },
append: append:
......
import store from '@/store/index'
export default { export default {
id: 'interview_xwzsywzm', id: 'interview_xwzsywzm',
title: '学位证书英文证明', title: '学位证书英文证明',
get: { get: {
action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${process.env.projectId}`, action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${store().state.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 +34,12 @@ export default { ...@@ -33,8 +34,12 @@ export default {
required: true, required: true,
model: 'DEGREE_CERT_EN', model: 'DEGREE_CERT_EN',
attrs: { attrs: {
action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/put`, action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${
deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/delete`, store().state.projectId
}/put`,
deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${
store().state.projectId
}/delete`,
data: { file_type: 'DEGREE_CERT_EN' } data: { file_type: 'DEGREE_CERT_EN' }
}, },
append: '请将学校出具的学位证书英文证明原件扫描或者拍照后提交。' append: '请将学校出具的学位证书英文证明原件扫描或者拍照后提交。'
......
...@@ -4,7 +4,7 @@ export default function(_this) { ...@@ -4,7 +4,7 @@ export default function(_this) {
id: 'interview_ywjl', id: 'interview_ywjl',
title: '英文简历', title: '英文简历',
get: { get: {
action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${process.env.projectId}`, action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${_this.$store.state.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,23 +24,38 @@ export default function(_this) { ...@@ -24,23 +24,38 @@ export default function(_this) {
return { RESUME_EN } return { RESUME_EN }
} }
}, },
// update: {
// action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/submit/${_this.$store.state.projectId}`,
// beforeRequest(data) {
// return { submission_stage: 'INTERVIEW_APPLICATION' }
// },
// callback() {
// this.form.options.disabled = true
// _this.dialogVisible = true
// _this.getApplication()
// },
// errorCallback() {
// _this.completeVisible = true
// }
// },
form: { form: {
prev: { to: { query: { active: 'interview_byzs' } } }, prev: { to: { query: { active: 'interview_byzs' } } },
next: { to: { query: { active: 'interview_tjx' } } }, next: { to: { query: { active: 'interview_tjx' } } },
hasButton: false, hasButton: false,
options: { 'label-position': 'top' }, // submitText: '申请面试',
// model: { submission_stage: 'INTERVIEW_APPLICATION' },
options: {},
items: [ items: [
{ {
required: true,
type: 'v-upload', type: 'v-upload',
model: 'RESUME_EN', model: 'RESUME_EN',
attrs: { attrs: {
action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/put`, action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${_this.$store.state.projectId}/put`,
deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/delete`, deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${_this.$store.state.projectId}/delete`,
data: { file_type: 'RESUME_EN' } data: { file_type: 'RESUME_EN' }
}, },
append: ` append: `
<p>请下载填写英文简历模板后上传 [<a href="https://webapp-pub.ezijing.com/project/marywood-plus/%E8%8B%B1%E6%96%87%E7%AE%80%E5%8E%86%E6%A8%A1%E6%9D%BF--%E7%9F%B3%E6%BA%AA.doc" target="_blank" download="英文简历模板">下载模板</a>]</p> <p>请下载填写英文简历模板后上传 [<a href="https://webapp-pub.ezijing.com/project/marywood-plus/%E8%8B%B1%E6%96%87%E7%AE%80%E5%8E%86%E6%A8%A1%E6%9D%BF1%2B1.doc" target="_blank" download="英文简历模板">下载模板</a>]</p>
<p>请将英文简历填写完存为"pdf"格式上传,文件小于10MB。</p>` <p>请将英文简历填写完存为"pdf"格式上传,文件小于10MB。</p>`
} }
] ]
......
export default function(_this) {
return {
required: true,
id: 'interview_yynl',
title: '语言能力证明',
get: {
action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${process.env.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
return attachments.reduce(
(result, item) => {
if (item.file_type_id === 'INTERNATIONAL_LANGUAGE_SCORE') {
result.INTERNATIONAL_LANGUAGE_SCORE.push(item)
}
return result
},
{ INTERNATIONAL_LANGUAGE_SCORE: [] }
)
}
},
form: {
prev: { to: { query: { active: 'interview_cjd' } } },
next: { to: { query: { active: 'interview_zp' } } },
hasButton: false,
options: { 'label-position': 'top' },
hint: '成绩单类型包括:大学英语六级(450分及以上)、托福、雅思、Duolingo、iTEP Academic',
items: [
{
required: true,
type: 'v-upload',
model: 'INTERNATIONAL_LANGUAGE_SCORE',
attrs: {
action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/put`,
deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/delete`,
data: { file_type: 'INTERNATIONAL_LANGUAGE_SCORE' }
}
}
]
}
}
}
export default function(_this) { export default function(_this) {
return { return {
id: 'interview_zp', id: 'interview_zp',
title: '个人照片', title: '2寸照片',
get: { get: {
action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${process.env.projectId}`, action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${_this.$store.state.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: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/submit/${process.env.projectId}`, action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/submit/${_this.$store.state.projectId}`,
beforeRequest(data) { beforeRequest(data) {
return { submission_stage: 'INTERVIEW_APPLICATION' } return { submission_stage: 'INTERVIEW_APPLICATION' }
}, },
...@@ -38,21 +38,22 @@ export default function(_this) { ...@@ -38,21 +38,22 @@ export default function(_this) {
} }
}, },
form: { form: {
prev: { to: { query: { active: 'interview_yynl' } } }, prev: { to: { query: { active: 'interview_byzs' } } },
submitText: '申请面试', submitText: '申请面试',
model: { submission_stage: 'INTERVIEW_APPLICATION' }, model: { submission_stage: 'INTERVIEW_APPLICATION' },
options: { 'label-position': 'top' }, options: {},
items: [ items: [
{ {
type: 'v-upload', type: 'v-upload',
model: 'PERSONAL_PHOTO_FOR_ID', model: 'PERSONAL_PHOTO_FOR_ID',
attrs: { attrs: {
action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/put`, action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${_this.$store.state.projectId}/put`,
deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/delete`, deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${_this.$store.state.projectId}/delete`,
data: { file_type: 'PERSONAL_PHOTO_FOR_ID' }, data: { file_type: 'PERSONAL_PHOTO_FOR_ID' },
limit: 1 limit: 1
}, },
append: '申请者需提交白底两寸个人照片<br> 确保图片清晰可辨。<br> 上传文件仅限“jpg,jpeg,png”格式,文件小于5MB' append:
'申请者需要上传本人半年以内的两寸彩色近照。<br> 只需上传一个文件,且照片完整、干净。<br> 上传文件仅限“jpg,jpeg,gif,png”格式的图片文件,且文件小于10MB。'
} }
] ]
} }
......
...@@ -16,7 +16,13 @@ ...@@ -16,7 +16,13 @@
</template> </template>
</vue-form> </vue-form>
<app-complete :type="1" v-model="completeVisible"></app-complete> <app-complete :type="1" v-model="completeVisible"></app-complete>
<el-dialog title="您的申请资料已提交成功" :visible.sync="dialogVisible" :center="true" :close-on-click-modal="false" width="348px"> <el-dialog
title="您的申请资料已提交成功"
:visible.sync="dialogVisible"
:center="true"
:close-on-click-modal="false"
width="348px"
>
<div class="dialog-tips"> <div class="dialog-tips">
<div class="icon"><img src="https://webapp-pub.ezijing.com/project/application/images/icon_success.png" /></div> <div class="icon"><img src="https://webapp-pub.ezijing.com/project/application/images/icon_success.png" /></div>
</div> </div>
...@@ -59,7 +65,16 @@ export default { ...@@ -59,7 +65,16 @@ export default {
}, },
computed: { computed: {
isSubmited() { isSubmited() {
const stageList = ['FILLING', 'PREPAYMENT', 'INTERVIEW_APPLICATION', 'AUDITION', 'INTERVIEW', 'PAYMENT', 'REGISTRATION', 'CLOSED'] const stageList = [
'FILLING',
'PREPAYMENT',
'INTERVIEW_APPLICATION',
'AUDITION',
'INTERVIEW',
'PAYMENT',
'REGISTRATION',
'CLOSED'
]
if (this.detail) { if (this.detail) {
return stageList.findIndex(item => item === this.detail.material.submission_stage) > 2 return stageList.findIndex(item => item === this.detail.material.submission_stage) > 2
} }
......
...@@ -4,11 +4,19 @@ ...@@ -4,11 +4,19 @@
<qrcode-pay @update="handleUpdateOrder" v-else></qrcode-pay> <qrcode-pay @update="handleUpdateOrder" v-else></qrcode-pay>
<div class="pay-ft"> <div class="pay-ft">
<p class="t2"> <p class="t2">
欢迎您申请纽约州立大学石溪分校金融学硕士(MSF)<br /> 欢迎您申请玛丽伍德大学金融方向工商管理硕士(FMBA)<br />
申请流程:①支付报名费②填写报名资料并提供相关材料(身份证扫描件、毕业证书扫描件、2寸照片)③参加面试④获得录取⑤缴纳学费并签署入学协议⑥入学学习(办 理入学手续:提供成绩单、学籍注册等)<br />申请费提交后不予退还 申请流程:①支付报名费②填写报名资料并提供相关材料(身份证扫描件、毕业证书扫描件、2寸照片)③参加面试④获得录取⑤缴纳学费并签署入学协议⑥入学学习(办
理入学手续:提供成绩单、学籍注册等)<br />申请费提交后不予退还
</p> </p>
</div> </div>
<el-dialog title="报名费缴费成功" :visible.sync="dialogVisible" :center="true" :show-close="false" :close-on-click-modal="false" width="348px"> <el-dialog
title="报名费缴费成功"
:visible.sync="dialogVisible"
:center="true"
:show-close="false"
:close-on-click-modal="false"
width="348px"
>
<div class="dialog-pay"> <div class="dialog-pay">
<p>请按照要求填写报名所需材料,完成“提交报名申请”及“申请面试”</p> <p>请按照要求填写报名所需材料,完成“提交报名申请”及“申请面试”</p>
<div class="icon"><img src="https://webapp-pub.ezijing.com/project/application/images/icon_success.png" /></div> <div class="icon"><img src="https://webapp-pub.ezijing.com/project/application/images/icon_success.png" /></div>
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
</div> </div>
<h1>欢迎您</h1> <h1>欢迎您</h1>
<p class="t1"> <p class="t1">
申请纽约州立大学石溪分校金融学硕士(MSF)项目,请在填写以下内容并<br /> 申请玛丽伍德大学工商管理硕士项目,请在填写以下内容并<br />
提交报名申请后,扫码支付本项目的申请费共计<span>700</span>元。 提交报名申请后,扫码支付本项目的申请费共计<span>700</span>元。
</p> </p>
</div> </div>
......
export default ({ app, store }) => { export default ({ app, store }) => {
let isSetProjectId = false
app.router.beforeEach(async (to, from, next) => { app.router.beforeEach(async (to, from, next) => {
const isLogin = store.state.user.id || (await store.dispatch('checkLogin')) const isLogin = store.state.user.id || (await store.dispatch('checkLogin'))
...@@ -6,6 +7,17 @@ export default ({ app, store }) => { ...@@ -6,6 +7,17 @@ export default ({ app, store }) => {
location.href = `${process.env.loginURL}/login/index?redirect_uri=${encodeURIComponent(location.href)}` location.href = `${process.env.loginURL}/login/index?redirect_uri=${encodeURIComponent(location.href)}`
return return
} }
if (location.hostname.includes('marywood-mis')) {
store.commit('setProjectId', 1022)
}
if (to.path.includes('/my') && !isSetProjectId) {
await store.dispatch('setProjectId')
isSetProjectId = true
if (to.path !== '/my/account' && !store.state.projectId) {
next('/my/account')
return
}
}
next() next()
}) })
} }
import { getUser, logout } from '@/api/my' import Vuex from 'vuex'
import { getUser, logout, getApplicationProfiles } from '@/api/my'
export const state = () => ({ export const state = () => ({
user: {}, user: {},
isMobile: false, isMobile: false,
searchVisible: false, searchVisible: false,
menuVisible: false menuVisible: false,
projectId: process.env.projectId
}) })
export const mutations = { export const mutations = {
...@@ -21,6 +23,9 @@ export const mutations = { ...@@ -21,6 +23,9 @@ export const mutations = {
}, },
toggleMenu(state, visible) { toggleMenu(state, visible) {
state.menuVisible = visible state.menuVisible = visible
},
setProjectId(state, projectId) {
state.projectId = projectId
} }
} }
...@@ -49,5 +54,28 @@ export const actions = { ...@@ -49,5 +54,28 @@ export const actions = {
return false return false
}) })
return isLogin return isLogin
},
// 设置项目ID
async setProjectId({ commit }) {
return getApplicationProfiles().then(response => {
const [first = {}] = response.data || []
commit('setProjectId', first.project_id)
return first.project_id
})
} }
} }
let store
const initStore = () => {
return (
store ||
(store = new Vuex.Store({
state,
mutations,
actions
}))
)
}
export default initStore
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论