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

新增考试测评

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