Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcdj-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
59941756
authored
2023-08-30 17:20:35 +0800
by
renchao@pashanhoo.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:证书预览打印
1 parent
c47d1fe2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
16 deletions
src/views/workflow/components/dialog/zsdy.vue
src/views/workflow/components/dialog/zsyl.vue
src/views/workflow/components/szxx.vue
src/views/workflow/components/dialog/zsdy.vue
View file @
5994175
This diff is collapsed.
Click to expand it.
src/views/workflow/components/dialog/zsyl.vue
View file @
5994175
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-08-30 1
0:33:52
* @LastEditTime: 2023-08-30 1
7:07:26
-->
<
template
>
<div
class=
"from-clues loadingtext"
v-Loading=
"loading"
element-loading-text=
"拼命加载中..."
style=
"height:720px;text-align: center;"
>
...
...
@@ -13,8 +13,8 @@
</el-tabs>
<el-empty
description=
"暂无数据"
v-if=
"headTabBdcqz.length == 0 && noData"
></el-empty>
<div
style=
"width:1180px;"
>
<canvas
ref=
"zs"
width=
"1000"
v-show=
"
headTabBdcqz[0]&&headTabBdcqz[0]
.bdcqzlx==1"
height=
"700"
></canvas>
<canvas
ref=
"zm"
width=
"1180"
v-show=
"
headTabBdcqz[0]&&headTabBdcqz[0].bdcqzlx!=1
"
height=
"780"
></canvas>
<canvas
ref=
"zs"
width=
"1000"
v-show=
"
this.bdcqz
.bdcqzlx==1"
height=
"700"
></canvas>
<canvas
ref=
"zm"
width=
"1180"
v-show=
"
this.bdcqz.bdcqzlx==2
"
height=
"780"
></canvas>
</div>
</div>
</
template
>
...
...
@@ -93,7 +93,7 @@
this
.
activeName
=
res
.
result
[
0
].
bsmBdcqz
this
.
bdcqz
=
res
.
result
[
0
]
this
.
headTabBdcqz
=
res
.
result
if
(
res
.
result
[
0
]
.
bdcqzlx
==
1
)
{
if
(
this
.
bdcqz
.
bdcqzlx
==
1
)
{
this
.
drawTextOnImage
()
}
else
{
this
.
drawTextzmImage
()
...
...
@@ -108,9 +108,8 @@
* @param {*} e
* @author: renchao
*/
handleClick
(
e
)
{
this
.
bdcqz
=
this
.
headTabBdcqz
[
e
.
index
-
0
]
this
.
activeName
=
this
.
headTabBdcqz
.
bsmBdcqz
handleClick
(
tab
,
event
)
{
this
.
bdcqz
=
this
.
headTabBdcqz
[
tab
.
index
]
if
(
this
.
bdcqz
.
bdcqzlx
==
1
)
{
this
.
drawTextOnImage
()
}
else
{
...
...
@@ -461,19 +460,20 @@
arr
.
push
(
currentLine
);
if
(
i
>
0
)
{
arr
.
forEach
((
line
,
index
)
=>
{
context
.
fillText
(
line
,
770
,
4
38
+
(
23
*
(
i
-
1
))
+
5
*
num
+
(
index
*
18
));
// 调整行高
context
.
fillText
(
line
,
770
,
4
28
+
(
23
*
(
i
-
1
))
+
5
*
num
+
(
index
*
14
));
// 调整行高
})
}
else
{
arr
.
forEach
((
line
,
index
)
=>
{
context
.
fillText
(
line
,
770
,
4
38
+
(
23
*
(
i
-
1
))
+
(
index
*
18
));
// 调整行高
context
.
fillText
(
line
,
770
,
4
28
+
(
23
*
(
i
-
1
))
+
(
index
*
14
));
// 调整行高
})
}
}
else
{
if
(
i
>
0
)
{
context
.
fillText
(
lines
[
i
]
?
lines
[
i
]
:
''
,
770
,
450
+
5
*
num
+
(
23
*
(
i
-
1
)));
}
else
{
context
.
fillText
(
lines
[
i
]
?
lines
[
i
]
:
''
,
770
,
450
+
(
23
*
(
i
-
1
)));
}
context
.
fillText
(
lines
[
i
]
?
lines
[
i
]
:
''
,
770
,
440
+
4
*
num
+
(
22
*
(
i
-
1
)));
// if (i > 0) {
// context.fillText(lines[i] ? lines[i] : '', 770, 440 + 5 * num + (23 * (i - 1)));
// } else {
// context.fillText(lines[i] ? lines[i] : '', 770, 440 + (23 * (i - 1)));
// }
}
}
// fj
...
...
src/views/workflow/components/szxx.vue
View file @
5994175
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-08-
29 10:03:25
* @LastEditTime: 2023-08-
30 16:54:26
-->
<
template
>
<div
class=
"szxx"
>
...
...
@@ -136,7 +136,7 @@
store
.
dispatch
(
'user/reWorkFresh'
,
false
)
if
(
type
==
1
)
{
//证书预览
this
.
$popupDialog
(
"证书预览"
,
"workflow/components/dialog/zsyl"
,
{
bdcqz
:
item
,
bsmSlsq
:
this
.
$route
.
query
.
bsmSlsq
},
"76%"
,
true
);
this
.
$popupDialog
(
"证书
证明
预览"
,
"workflow/components/dialog/zsyl"
,
{
bdcqz
:
item
,
bsmSlsq
:
this
.
$route
.
query
.
bsmSlsq
},
"76%"
,
true
);
}
else
{
this
.
$popupDialog
(
"证书证明打印"
,
"workflow/components/dialog/zsdy"
,
{
bdcqz
:
item
,
bsmSlsq
:
this
.
$route
.
query
.
bsmSlsq
},
"76%"
,
true
);
}
...
...
Please
register
or
sign in
to post a comment