Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
project-online-old
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
project-online-old
Commits
4b771fcc
提交
4b771fcc
authored
12月 04, 2020
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
预览增加支付记录和附件状态更改
上级
8daa640d
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
68 行增加
和
11 行删除
+68
-11
my.js
src/api/my.js
+10
-0
preview.vue
src/pages/my/application/preview.vue
+58
-11
没有找到文件。
src/api/my.js
浏览文件 @
4b771fcc
...
@@ -112,3 +112,13 @@ export function sendToProvider(letterId) {
...
@@ -112,3 +112,13 @@ export function sendToProvider(letterId) {
export
function
logout
()
{
export
function
logout
()
{
return
httpRequest
.
get
(
'/passport/rest/logout'
)
return
httpRequest
.
get
(
'/passport/rest/logout'
)
}
}
/**
* 更改附件状态
*/
export
function
changeFileStatus
(
userId
,
recordId
,
status
)
{
return
httpRequest
.
get
(
`/enrollment/v1.0/application-materials/attachments/change-status/
${
projectId
}
/
${
userId
}
/
${
recordId
}
`
,
{
status
}
)
}
src/pages/my/application/preview.vue
浏览文件 @
4b771fcc
<
template
>
<
template
>
<div
class=
"preview"
v-loading=
"loading"
>
<div
class=
"preview"
v-loading=
"loading"
>
<template
v-if=
"
!loading
"
>
<template
v-if=
"
progress.FILLING
"
>
<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"
>
...
@@ -76,13 +76,36 @@
...
@@ -76,13 +76,36 @@
<a
class=
"inner"
:href=
"item.oss_sign_url"
target=
"_blank"
>
<a
class=
"inner"
:href=
"item.oss_sign_url"
target=
"_blank"
>
<div
class=
"pic"
><img
:src=
"item.oss_sign_url"
/></div>
<div
class=
"pic"
><img
:src=
"item.oss_sign_url"
/></div>
<div
class=
"name"
>
{{
item
.
file_type_label
}}
</div>
<div
class=
"name"
>
{{
item
.
file_type_label
}}
</div>
<div
class=
"time"
>
{{
item
.
upload_time
}}
</div>
<div
style=
"margin-right: 40px"
>
<el-tag
size=
"mini"
>
{{
item
.
status_desc
}}
</el-tag>
</div>
</a>
</a>
<el-button-group>
<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-group>
</li>
</li>
</ul>
</ul>
</
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.payment_records"
>
<el-table
:data=
"material.payment_records"
border
>
<el-table-column
prop=
"payment_method_desc"
label=
"支付方式"
>
</el-table-column>
<el-table-column
prop=
"bill_amount"
label=
"支付金额"
>
</el-table-column>
<el-table-column
prop=
"payment_status_desc"
label=
"支付状态"
>
</el-table-column>
</el-table>
</
template
>
</div>
</div>
</div>
</div>
</template>
</template>
</div>
</div>
...
@@ -164,7 +187,7 @@ export default {
...
@@ -164,7 +187,7 @@ export default {
label
:
'现居住城市'
,
label
:
'现居住城市'
,
code
:
'address_city'
,
code
:
'address_city'
,
computed
(
data
)
{
computed
(
data
)
{
return
`
${
data
.
address_province
}
-
${
data
.
address_city
}
`
return
data
.
address_city
?
`
${
data
.
address_province
}
-
${
data
.
address_city
}
`
:
''
}
}
},
},
{
label
:
'证件类型'
,
code
:
'id_type'
},
{
label
:
'证件类型'
,
code
:
'id_type'
},
...
@@ -303,6 +326,12 @@ export default {
...
@@ -303,6 +326,12 @@ export default {
]
]
}
}
},
},
computed
:
{
watermark
()
{
const
{
watermark
=
'清控紫荆教育'
}
=
this
.
$route
.
query
return
watermark
}
},
methods
:
{
methods
:
{
// 获取报名信息
// 获取报名信息
getApplication
()
{
getApplication
()
{
...
@@ -324,6 +353,19 @@ export default {
...
@@ -324,6 +353,19 @@ export default {
handleEdit
(
to
)
{
handleEdit
(
to
)
{
this
.
$emit
(
'edit'
,
to
)
this
.
$emit
(
'edit'
,
to
)
// this.$router.push(to)
// this.$router.push(to)
},
// 删除
handleRemove
(
data
)
{
this
.
changeFileStatus
(
data
,
'INACTIVE'
)
},
// 存档
handleSave
(
data
)
{
this
.
changeFileStatus
(
data
,
'LOG'
)
},
changeFileStatus
(
data
,
status
)
{
api
.
changeFileStatus
(
this
.
material
.
user_id
,
data
.
id
,
status
).
then
(
response
=>
{
this
.
getApplication
()
})
}
}
},
},
beforeMount
()
{
beforeMount
()
{
...
@@ -375,12 +417,14 @@ export default {
...
@@ -375,12 +417,14 @@ export default {
}
}
}
}
.preview-item-bd
{
.preview-item-bd
{
padding-top
:
20px
;
.group
{
.group
{
padding
:
20px
0
;
display
:
flex
;
display
:
flex
;
flex-wrap
:
wrap
;
flex-wrap
:
wrap
;
}
}
.group
+
.group
{
.group
+
.group
{
margin-top
:
10px
;
padding-top
:
20px
;
border-top
:
1px
solid
#f1f1f1
;
border-top
:
1px
solid
#f1f1f1
;
}
}
dl
{
dl
{
...
@@ -402,7 +446,6 @@ export default {
...
@@ -402,7 +446,6 @@ export default {
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
.preview
{
.preview
{
.answers
{
.answers
{
padding
:
20px
0
;
dl
{
dl
{
margin-bottom
:
10px
;
margin-bottom
:
10px
;
font-size
:
14px
;
font-size
:
14px
;
...
@@ -419,23 +462,24 @@ export default {
...
@@ -419,23 +462,24 @@ export default {
word-break
:
break-all
;
word-break
:
break-all
;
}
}
}
}
.attachments
{
padding
:
20px
0
;
}
.attachments-item
{
.attachments-item
{
display
:
flex
;
align-items
:
center
;
padding
:
0
10px
;
&
:hover
{
&
:hover
{
background-color
:
#f7f7f7
;
background-color
:
#f7f7f7
;
}
}
.inner
{
.inner
{
padding
:
10px
;
flex
:
1
;
padding
:
10px
0
;
height
:
40px
;
height
:
40px
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
color
:
#222
;
color
:
#222
;
}
}
.pic
{
.pic
{
width
:
32
px
;
width
:
40
px
;
height
:
32
px
;
height
:
40
px
;
img
{
img
{
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
...
@@ -450,5 +494,8 @@ export default {
...
@@ -450,5 +494,8 @@ export default {
font-size
:
12px
;
font-size
:
12px
;
}
}
}
}
.attachments-item
+
.attachments-item
{
border-top
:
1px
solid
#dadce0
;
}
}
}
</
style
>
</
style
>
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论