Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e54fa7e9
authored
Jul 22, 2026
by
renyizhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
保存协议
parent
4655fb4b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
src/api/member/recharge/index.ts
+1
-0
src/views/member/recharge/index.vue
+23
-0
No files found.
src/api/member/recharge/index.ts
View file @
e54fa7e9
...
...
@@ -31,6 +31,7 @@ export interface MemberRechargeRespVO {
redeemedName
:
string
manualOperatorId
:
number
manualProcessTime
:
string
agreementPdfUrl
:
string
}
export
interface
MemberRechargeManualReqVO
{
...
...
src/views/member/recharge/index.vue
View file @
e54fa7e9
...
...
@@ -162,6 +162,19 @@
<span
v-else
>
-
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"充值协议"
align=
"center"
width=
"120"
>
<
template
#
default=
"scope"
>
<el-button
v-if=
"scope.row.agreementPdfUrl"
type=
"primary"
link
@
click=
"openAgreementPdf(scope.row)"
>
下载协议
</el-button>
<span
v-else
>
-
</span>
</
template
>
</el-table-column>
</el-table>
<!-- 待充值列表 -->
...
...
@@ -421,6 +434,16 @@ const handleManualRecharge = async () => {
}
}
/** 打开充值协议 PDF(调 /infra/file/preview 在新标签页预览) */
const
openAgreementPdf
=
(
row
:
MemberRechargeRespVO
)
=>
{
if
(
!
row
.
agreementPdfUrl
)
{
ElMessage
.
warning
(
'该笔充值尚未生成协议 PDF'
)
return
}
const
previewUrl
=
`/infra/file/preview?url=
${
encodeURIComponent
(
row
.
agreementPdfUrl
)}
`
window
.
open
(
previewUrl
,
'_blank'
)
}
/** 初始化 */
onMounted
(()
=>
{
getList
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment