提交 7437bf76 authored 作者: 王鹏飞's avatar 王鹏飞

新增考试测评

上级 77f504ff
......@@ -1119,9 +1119,9 @@
}
},
"@ezijing/vue-form": {
"version": "2.1.3",
"resolved": "https://registry.npmjs.org/@ezijing/vue-form/-/vue-form-2.1.3.tgz",
"integrity": "sha512-No21m6zSkCuj5+1MQVYnnNDnw3LlYF23j18sGCPvmRO6guV/Ws8BS0MkgvBCJRsFCVszBBp+QfkbnjUaO3NyCQ==",
"version": "2.1.8",
"resolved": "https://registry.npmjs.org/@ezijing/vue-form/-/vue-form-2.1.8.tgz",
"integrity": "sha512-le1M/h8Lp2q5nUNLIPGr4OGIUGk8ur0t3GQ7l656IFvgm1SnPe9gSDGJHXSERO8HaXILT6M0gFaKzuPS1i2oeg==",
"requires": {
"@vue/babel-helper-vue-jsx-merge-props": "^1.0.0",
"@vue/babel-preset-jsx": "^1.1.2",
......
......@@ -72,7 +72,7 @@
"webpack-merge": "^4.2.2"
},
"dependencies": {
"@ezijing/vue-form": "^2.1.3",
"@ezijing/vue-form": "^2.1.8",
"@ezijing/vue-passport": "^1.0.0",
"axios": "^0.21.0",
"bootstrap": "^4.5.3",
......
......@@ -112,3 +112,10 @@ export function sendToProvider(letterId) {
export function logout() {
return httpRequest.get('/passport/rest/logout')
}
/**
* 获取考试测评url
*/
export function getExamTestUrl() {
return httpRequest.get('/usercenter/v1/evaluation/get-address')
}
import info from './info'
import tjx from './tjx'
import wfzsm from './wfzzm'
import declare from './declare'
export default function(_this) {
......
......@@ -37,7 +37,7 @@ export default function(_this) {
form: {
minlength: 2,
prev: { to: { query: { active: 'application_info', tab: 'application_info_honor' } }, isSubmit: true },
next: { to: { query: { active: 'application_wfzzm' } }, isSubmit: true },
next: { to: { query: { active: 'application_declare' } }, isSubmit: true },
hasAdd: true,
disabled(data) {
return !!data.letter_content
......
......@@ -9,6 +9,19 @@ export default function(_this) {
return {
id: 'interview',
title: '申请面试',
children: [zp(_this), byzs, xwzs, xwzszm, ywjl, cjd(_this)]
children: [
zp(_this),
byzs,
xwzs,
xwzszm,
ywjl,
cjd(_this),
{
id: 'interview_exam',
title: '考试测评',
show: false,
href: ''
}
]
}
}
......@@ -38,7 +38,7 @@ export default function(_this) {
limit: 1
},
append:
'申请者需要上传本人半年以内的寸彩色近照。<br> 只需上传一个文件,且照片完整、干净。<br> 上传文件仅限“jpg,jpeg,gif,png”格式的图片文件,且文件小于10MB。'
'申请者需要上传本人半年以内的寸彩色近照。<br> 只需上传一个文件,且照片完整、干净。<br> 上传文件仅限“jpg,jpeg,gif,png”格式的图片文件,且文件小于10MB。'
}
]
}
......
......@@ -9,6 +9,7 @@
@back="$router.push('/my/account')"
@prev="handlePrev"
@next="handleNext"
@uploaded="getApplication"
>
<template #aside-append>
<div class="aside-logout" @click="$store.dispatch('logout')"><span>退出登录</span></div>
......@@ -91,6 +92,7 @@ export default {
const { data, error, message } = response
if (error.toString() === '0') {
this.detail = data
this.showExamText(data)
} else {
this.$message.error(message)
}
......@@ -115,6 +117,18 @@ export default {
},
handleNext(to) {
this.$router.push(to)
},
// 考试测评
showExamText(data) {
if (data.progress.INTERVIEW_APPLICATION.total_progress !== 1) {
return
}
const menu = this.menus[0]
const found = menu.children.find(item => item.id === 'interview_exam')
api.getExamTestUrl().then(data => {
found.href = data.address
found.show = true
})
}
},
beforeMount() {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论