Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivManage
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
ReactWeb5
CivManage
Commits
2789b7be
Commit
2789b7be
authored
Sep 05, 2024
by
田翔
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 解决未知打印二维码异常问题
parent
ada095e6
Pipeline
#92394
failed with stages
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
2 deletions
+25
-2
index.js
...lMaintenance/maintenance/components/QRCodeDesign/index.js
+25
-2
No files found.
src/pages/bsmanager/patrolMaintenance/maintenance/components/QRCodeDesign/index.js
View file @
2789b7be
...
@@ -121,7 +121,6 @@ const QRCodeDesign = (props, ref) => {
...
@@ -121,7 +121,6 @@ const QRCodeDesign = (props, ref) => {
}}
}}
>
>
<
QRCodeView
<
QRCodeView
id
=
{
row
.
DeviceCode
}
values
=
{{
values
=
{{
CorporateName
:
row
.
CorporateName
||
'熊猫水务'
,
CorporateName
:
row
.
CorporateName
||
'熊猫水务'
,
Title
:
row
.
Title
||
'设备二维码'
,
Title
:
row
.
Title
||
'设备二维码'
,
...
@@ -229,7 +228,8 @@ const QRCodeDesign = (props, ref) => {
...
@@ -229,7 +228,8 @@ const QRCodeDesign = (props, ref) => {
allowTaint
:
false
,
allowTaint
:
false
,
useCORS
:
true
,
useCORS
:
true
,
width
:
610
,
width
:
610
,
scale
:
6
,
height
:
980
,
scale
:
1
,
})
})
let
a
=
document
.
createElement
(
'a'
);
let
a
=
document
.
createElement
(
'a'
);
a
.
setAttribute
(
'href'
,
can
.
toDataURL
());
//toDataUrl:将canvas画布信息转化为base64格式图片
a
.
setAttribute
(
'href'
,
can
.
toDataURL
());
//toDataUrl:将canvas画布信息转化为base64格式图片
...
@@ -510,6 +510,29 @@ const QRCodeDesign = (props, ref) => {
...
@@ -510,6 +510,29 @@ const QRCodeDesign = (props, ref) => {
isBatch={false}
isBatch={false}
/>
/>
</Modal>
</Modal>
<div id={'
QRCodeBoxs
'} style={{ position: '
fixed
', left: '
-
1200
px
', top: '
-
1200
px
', background: '
#
fff
' }}>
{
dataSource.map(row => {
return (
<QRCodeView
id={row.DeviceCode}
values={{
CorporateName: row.CorporateName || '
熊猫水务
',
Title: row.Title || '
设备二维码
',
IsSystemLogo: Boolean(row.IsSystemLogo) ? '
系统
LOGO
' : '
自定义
LOGO
',
IsPandaLogo: Boolean(row.IsPandaLogo),
LabelLogoUrl: row.LabelLogoUrl,
DeviceName: row.DeviceName,
DeviceCode: row.DeviceCode,
AccountName: row.AccountName,
}}
isBatch={false}
style={{ width: '
610
px
', height: '
980
px
', margin: '
0
auto
' }}
/>
)
})
}
</div>
</Modal>
</Modal>
)
)
}
}
...
...
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