提交 417325e0 authored 作者: 王鹏飞's avatar 王鹏飞

bug fixes

上级 c75f6df1
...@@ -348,9 +348,9 @@ ...@@ -348,9 +348,9 @@
} }
}, },
"@ezijing/vue-form": { "@ezijing/vue-form": {
"version": "2.0.6", "version": "2.0.7",
"resolved": "https://registry.npmjs.org/@ezijing/vue-form/-/vue-form-2.0.6.tgz", "resolved": "https://registry.npmjs.org/@ezijing/vue-form/-/vue-form-2.0.7.tgz",
"integrity": "sha512-tTS4/ilJ7KGtsrvR6131UaZxlYzEGBV09FPSioaRGcxjzBbxS4DgwHVvY3AJIeCJWVmXkP5uPgFxVCNTbc5OQA==", "integrity": "sha512-UZZ5IsQ3dLDlX9e/bFES0KTHMh+WwJfX/7NXRLJ4VIWRtY9p8rV7NTOOEDmwQGCK8zKaatcfWvI3XxcBruM+xw==",
"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",
......
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
"webpack-merge": "^4.2.2" "webpack-merge": "^4.2.2"
}, },
"dependencies": { "dependencies": {
"@ezijing/vue-form": "^2.0.6", "@ezijing/vue-form": "^2.0.7",
"animate.css": "^4.1.0", "animate.css": "^4.1.0",
"axios": "^0.19.2", "axios": "^0.19.2",
"cross-env": "^7.0.2", "cross-env": "^7.0.2",
......
差异被折叠。
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
* 个人信息 * 个人信息
*/ */
import country from './country'
export default function(_this) { export default function(_this) {
return { return {
id: 'application_info_profile', id: 'application_info_profile',
...@@ -198,11 +200,12 @@ export default function(_this) { ...@@ -198,11 +200,12 @@ export default function(_this) {
rules: [{ required: true, message: '请选择性别', trigger: 'change' }] rules: [{ required: true, message: '请选择性别', trigger: 'change' }]
}, },
{ {
type: 'v-input', type: 'v-select',
label: '国籍', label: '国籍',
model: 'nationality', model: 'nationality',
attrs: { placeholder: '请输入国籍' }, values: country,
rules: [{ required: true, message: '请输入国籍', trigger: 'blur' }] attrs: { placeholder: '请选择国籍', filterable: true },
rules: [{ required: true, message: '请选择国籍', trigger: 'blur' }]
}, },
{ {
type: 'v-datepicker', type: 'v-datepicker',
......
...@@ -31,8 +31,7 @@ export default function(_this) { ...@@ -31,8 +31,7 @@ export default function(_this) {
action: `/api/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/put`, action: `/api/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/put`,
deleteAction: `/api/enrollment/v1.0/application-materials/attachments/${webConf.others.projectId}/delete`, deleteAction: `/api/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
accept: 'image/*'
}, },
prepend: ` prepend: `
<p>第一步:点击下载按键获取无犯罪证明模板</p> <p>第一步:点击下载按键获取无犯罪证明模板</p>
......
...@@ -64,6 +64,25 @@ ...@@ -64,6 +64,25 @@
</template> </template>
</div> </div>
</div> </div>
<div class="preview-item is-success" v-if="isManager">
<div class="preview-item-hd">
<div class="title">照片/附件</div>
<div class="line"></div>
</div>
<div class="preview-item-bd">
<template v-if="material.attachments">
<ul class="attachments">
<li class="attachments-item" v-for="(item, index) in material.attachments" :key="index">
<a class="inner" :href="item.oss_sign_url" target="_blank">
<div class="pic"><img :src="item.oss_sign_url" /></div>
<div class="name">{{ item.file_type_label }}</div>
<div class="time">{{ item.upload_time }}</div>
</a>
</li>
</ul>
</template>
</div>
</div>
</div> </div>
</template> </template>
</div> </div>
...@@ -124,7 +143,7 @@ export default { ...@@ -124,7 +143,7 @@ export default {
name: 'Preview', name: 'Preview',
props: { props: {
hasEdit: { type: Boolean, default: false }, hasEdit: { type: Boolean, default: false },
hasContent: { type: Boolean, default: false } isManager: { type: Boolean, default: false }
}, },
data() { data() {
return { return {
...@@ -268,20 +287,22 @@ export default { ...@@ -268,20 +287,22 @@ export default {
label: '推荐信内容', label: '推荐信内容',
code: 'letter_content', code: 'letter_content',
visible: () => { visible: () => {
return this.hasContent return this.isManager
} }
} }
] ]
},
{
title: '无犯罪证明',
code: 'attachments',
edit: { to: { path: '/my/application', query: { active: 'application_wfzzm' } } },
computed(data) {
const found = data.find(item => item.file_type_id === 'NO_CRIMINAL_CERT')
return found
? `<a href="${found.oss_sign_url}" target="_blank"><img src="${found.oss_sign_url}" style="max-width:300px;margin:10px 0;"></a>`
: ''
}
} }
// {
// title: '无犯罪证明',
// code: 'attachments',
// edit: { to: { path: '/my/application', query: { active: 'application_wfzzm' } } },
// computed(data) {
// const found = data.find(item => item.file_type_id === 'NO_CRIMINAL_CERT')
// return found ? `<img src="${found.oss_sign_url}" style="max-width:300px;margin:10px 0;">` : ''
// }
// }
] ]
} }
}, },
...@@ -401,5 +422,36 @@ export default { ...@@ -401,5 +422,36 @@ export default {
word-break: break-all; word-break: break-all;
} }
} }
.attachments {
padding: 20px 0;
}
.attachments-item {
&:hover {
background-color: #f7f7f7;
}
.inner {
padding: 10px;
height: 40px;
display: flex;
align-items: center;
color: #222;
}
.pic {
width: 32px;
height: 32px;
img {
width: 100%;
height: 100%;
object-fit: contain;
}
}
.name {
flex: 1;
padding: 0 10px;
}
.time {
font-size: 12px;
}
}
} }
</style> </style>
...@@ -119,7 +119,7 @@ export const constantRoutes = [ ...@@ -119,7 +119,7 @@ export const constantRoutes = [
}, },
{ {
path: '/preview', path: '/preview',
props: { hasContent: true }, props: { isManager: true },
component: () => import(/* webpackChunkName: "preview" */ '@/pages/my/application/preview.vue') component: () => import(/* webpackChunkName: "preview" */ '@/pages/my/application/preview.vue')
}, },
{ {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论