Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
buildbank-replica
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
姚珂
buildbank-replica
Commits
3eb1f191
Commit
3eb1f191
authored
Apr 30, 2026
by
黄同智
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://git.ruanyiit.com/yaoke/buildbank-replica
parents
ead4c573
5fd11876
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
15 deletions
+29
-15
account.html
account.html
+29
-15
No files found.
account.html
View file @
3eb1f191
...
@@ -1204,6 +1204,7 @@
...
@@ -1204,6 +1204,7 @@
</div>
</div>
</body>
</body>
</html>
</html>
<script
src=
"https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.10.1/html2pdf.bundle.min.js"
></script>
<script>
<script>
function
onAccount
(
number
){
function
onAccount
(
number
){
if
(
number
==
1
){
if
(
number
==
1
){
...
@@ -1421,27 +1422,40 @@ function downloadTXT(data) {
...
@@ -1421,27 +1422,40 @@ function downloadTXT(data) {
var content = data.map(row => row.join('
\
t
')).join('
\
n
');
var content = data.map(row => row.join('
\
t
')).join('
\
n
');
downloadFile(content, '
活期账户列表下载
.
txt
', '
text
/
plain
');
downloadFile(content, '
活期账户列表下载
.
txt
', '
text
/
plain
');
}
}
function downloadExcel(data) {
var html = `
<table border="1">
${data.map(row =>
`<tr>${row.map(cell => `<td>${cell}</td>`).join('')}</tr>`
).join('')}
</table>
`;
downloadFile(html, '
活期账户列表下载
.
xls
', '
application
/
vnd
.
ms
-
excel
');
}
function downloadCSV(data) {
function downloadCSV(data) {
var content = data.map(row => row.join('
,
')).join('
\
n
');
var content = data.map(row => row.join('
,
')).join('
\
n
');
downloadFile(content, '
活期账户列表下载
.
csv
', '
text
/
csv
');
downloadFile(content, '
活期账户列表下载
.
csv
', '
text
/
csv
');
}
}
function downloadPDF(data) {
function downloadPDF(data) {
var win = window.open('', '
_blank
');
var container = document.createElement('
div
');
var html = `
container.innerHTML = `
<html>
<h3 style="text-align:center;">活期账户列表</h3>
<head><title>PDF</title></head>
<table border="1" cellspacing="0" cellpadding="5" style="width:100%;border-collapse:collapse;">
<body>
${data.map(row =>
<table border="1" cellspacing="0" cellpadding="5">
`<tr>${row.map(cell => `<td>${cell}</td>`).join('')}</tr>`
${data.map(row =>
).join('')}
`<tr>${row.map(cell => `<td>${cell}</td>`).join('')}</tr>`
</table>
).join('')}
</table>
</body>
</html>
`;
`;
win.document.write(html);
win.document.close();
html2pdf()
win.print();
.set({
margin: 10,
filename: '
活期账户列表下载
.
pdf
',
html2canvas: { scale: 2 },
jsPDF: { unit: '
mm
', format: '
a4
', orientation: '
landscape
' }
})
.from(container)
.save();
}
}
function printPage(type) {
function printPage(type) {
...
...
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