Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
project-online-pc
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
project-online-pc
Commits
5f245852
提交
5f245852
authored
12月 21, 2022
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore(报名申请): 预览页面文件权限修改
上级
91005034
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
50 行增加
和
2 行删除
+50
-2
preview.vue
modules/my/application/preview.vue
+50
-2
没有找到文件。
modules/my/application/preview.vue
浏览文件 @
5f245852
...
...
@@ -70,7 +70,7 @@
</div>
</div>
</template>
<div
class=
"preview-item is-success"
v-if=
"isManager
&& hasButton
"
>
<div
class=
"preview-item is-success"
v-if=
"isManager"
>
<div
class=
"preview-item-hd"
>
<div
class=
"title"
>
照片/附件
</div>
<div
class=
"line"
></div>
...
...
@@ -78,7 +78,7 @@
<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"
>
<li
class=
"attachments-item"
v-for=
"(item, index) in attachments"
:key=
"index"
>
<div
class=
"inner"
@
click=
"handlePreview(item)"
>
<el-image
:src=
"item.oss_sign_url"
class=
"pic"
>
<template
#
error
>
...
...
@@ -98,6 +98,11 @@
</el-button-group>
</li>
</ul>
<ul
class=
"attachments-progress"
v-for=
"group in attachmentsOptions"
v-if=
"!hasButton"
>
<li
v-for=
"item in group"
>
<el-checkbox
:value=
"attachmentsProgress(item.code)"
readonly
></el-checkbox>
{{ item.name }}
</li>
</ul>
</template>
</div>
</div>
...
...
@@ -408,6 +413,33 @@ export default {
]
})
return
options
},
attachments
()
{
const
attachments
=
this
.
material
.
attachments
||
[]
if
(
this
.
isManager
&&
!
this
.
hasButton
)
{
const
list
=
[
'ID_CARD_BACK'
,
'ID_CARD_FRONT'
]
return
attachments
.
filter
(
item
=>
list
.
includes
(
item
.
file_type_id
))
}
return
attachments
},
attachmentsOptions
()
{
return
[
[
{
name
:
'英文简历'
,
code
:
'RESUME_EN'
},
{
name
:
'成绩单(中文)'
,
code
:
'REPORT_CARD_CN'
},
{
name
:
'语言能力证明'
,
code
:
'INTERNATIONAL_LANGUAGE_SCORE'
}
],
[
{
name
:
'成绩单(英文)'
,
code
:
'REPORT_CARD_EN'
},
{
name
:
'推荐信'
,
code
:
[
'RECOMMENDATION_LETTER'
,
'RECOMMENDATION_LETTER_2'
]
},
{
name
:
'个人陈述'
,
code
:
'PERSONAL_STATEMENT'
},
{
name
:
'毕业证书或在读证明'
,
code
:
[
'DIPLOMA_CN'
,
'DEGREE_CERT_CN'
]
}
],
[
{
name
:
'缴费凭证'
,
code
:
'PAYMENT_VOUCHER'
},
{
name
:
'入学协议'
,
code
:
'ADMISSION_AGREEMENT'
}
]
]
}
},
methods
:
{
...
...
@@ -415,6 +447,15 @@ export default {
const
map
=
{
0
:
'否'
,
1
:
'是'
}
return
map
[
value
]
||
value
},
attachmentsProgress
(
prop
)
{
const
attachments
=
this
.
material
.
attachments
||
[]
if
(
Array
.
isArray
(
prop
))
{
return
prop
.
some
(
item
=>
{
return
!!
attachments
.
find
(
file
=>
file
.
file_type_id
===
item
)
})
}
return
!!
attachments
.
find
(
file
=>
file
.
file_type_id
===
prop
)
},
// 获取报名信息
getApplication
()
{
this
.
loading
=
true
...
...
@@ -633,4 +674,11 @@ export default {
.viewer-toolbar
>
ul
{
margin-bottom
:
20px
;
}
.attachments-progress
{
padding
:
10px
;
line-height
:
30px
;
}
.attachments-progress
+
.attachments-progress
{
border-top
:
1px
solid
#ebeef5
;
}
</
style
>
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论