Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
N
njzsb
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
徐州
njzsb
Commits
fb93a81f
Commit
fb93a81f
authored
Sep 28, 2022
by
houyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除注释代码
parent
e4f920d2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
11 deletions
+5
-11
Jfzm_view.jsp
WebRoot/WEB-INF/pages/jfzm/Jfzm_view.jsp
+5
-11
No files found.
WebRoot/WEB-INF/pages/jfzm/Jfzm_view.jsp
View file @
fb93a81f
...
@@ -338,14 +338,8 @@
...
@@ -338,14 +338,8 @@
return
html2canvas
(
container
,
ops
).
then
(
canvas
=>
{
return
html2canvas
(
container
,
ops
).
then
(
canvas
=>
{
// 返回图片的二进制数据
// 返回图片的二进制数据
// return canvas.toDataURL("image/png");
const
imgUrl
=
canvas
.
toDataURL
(
"image/png"
);
const
imgUrl
=
canvas
.
toDataURL
(
"image/png"
)
return
imgUrl
;
console
.
log
(
imgUrl
);
document
.
getElementById
(
"img2"
).
setAttribute
(
'src'
,
imgUrl
)
//const a = document.createElement('a')
//a.src = imgUrl
<%--
a
.
setAttribute
(
'download'
,
`chart-download-
${
name
}
`
)
--%>
// a.click()
});
});
}
}
const
doPrint
=
async
()
=>
{
const
doPrint
=
async
()
=>
{
...
@@ -353,9 +347,9 @@
...
@@ -353,9 +347,9 @@
width
:
790
,
width
:
790
,
height
:
790
,
height
:
790
,
scale
:
1
scale
:
1
}).
then
(
x
=>
{
}).
then
(
pic
=>
{
console
.
log
(
x
);
console
.
log
(
pic
);
document
.
getElementById
(
"img2"
).
setAttribute
(
'src'
,
pic
)
})
})
}
}
</script>
</script>
...
...
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