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
275b77af
authored
2024-01-18 11:05:32 +0800
by
renchao@pashanhoo.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:证书预览
1 parent
3181693a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
5 deletions
src/views/workflow/components/dialog/zsdy.vue
src/views/workflow/components/dialog/zsyl.vue
src/views/workflow/components/dialog/zsdy.vue
View file @
275b77a
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2024-01-18 11:0
0:00
* @LastEditTime: 2024-01-18 11:0
4:53
-->
<
template
>
<div>
...
...
@@ -269,7 +269,18 @@
context
.
fillStyle
=
'#000000'
;
context
.
fillText
(
this
.
bdcqz
.
sjjc
?
this
.
bdcqz
.
sjjc
:
''
,
60
,
56
);
context
.
fillText
(
this
.
bdcqz
.
djnd
?
this
.
bdcqz
.
djnd
:
''
,
113
,
56
);
context
.
fillText
(
this
.
bdcqz
.
sxqc
?
this
.
bdcqz
.
sxqc
:
''
,
180
,
56
);
// context.fillText(this.bdcqz.sxqc ? this.bdcqz.sxqc : '', 180, 56);
if
(
getByteLen
(
this
.
bdcqz
.
sxqc
)
>
14
)
{
const
originalFont
=
context
.
font
;
// 设置新的字体大小
context
.
font
=
'14px 楷体'
;
// 替换为你想要的字体和大小
// 绘制 bdcdyh
context
.
fillText
(
this
.
bdcqz
.
sxqc
?
this
.
bdcqz
.
sxqc
:
''
,
165
,
56
);
// 恢复原始字体设置
context
.
font
=
originalFont
;
}
context
.
fillText
(
this
.
bdcqz
.
sxh
?
this
.
bdcqz
.
sxh
:
''
,
370
,
56
);
context
.
fillText
(
this
.
bdcqz
.
qlr
?
this
.
bdcqz
.
qlr
:
''
,
129
,
97
);
context
.
fillText
(
this
.
bdcqz
.
gyqk
?
this
.
bdcqz
.
gyqk
:
''
,
129
,
136
);
...
...
src/views/workflow/components/dialog/zsyl.vue
View file @
275b77a
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2024-01-18 1
0:59:00
* @LastEditTime: 2024-01-18 1
1:04:37
-->
<
template
>
<div
class=
"from-clues loadingtext"
v-Loading=
"loading"
element-loading-text=
"拼命加载中..."
style=
"text-align: center;"
>
...
...
@@ -14,7 +14,7 @@
</el-tabs>
</div>
<el-empty
description=
"暂无数据"
v-if=
"headTabBdcqz.length == 0 && noData"
></el-empty>
<div
style=
"max-height:8
5
vh;"
>
<div
style=
"max-height:8
9
vh;"
>
<div
v-show=
"this.bdcqz.bdcqzlx==1"
>
<el-tabs
v-model=
"activeTitle"
>
<el-tab-pane
label=
"第一页"
name=
"title1"
></el-tab-pane>
...
...
@@ -198,7 +198,16 @@
context
.
fillStyle
=
'#000000'
;
context
.
fillText
(
this
.
bdcqz
.
sjjc
?
this
.
bdcqz
.
sjjc
:
''
,
60
,
56
);
context
.
fillText
(
this
.
bdcqz
.
djnd
?
this
.
bdcqz
.
djnd
:
''
,
113
,
56
);
context
.
fillText
(
this
.
bdcqz
.
sxqc
?
this
.
bdcqz
.
sxqc
:
''
,
180
,
56
);
// context.fillText(this.bdcqz.sxqc ? this.bdcqz.sxqc : '', 180, 56);
if
(
getByteLen
(
this
.
bdcqz
.
sxqc
)
>
14
)
{
const
originalFont
=
context
.
font
;
// 设置新的字体大小
context
.
font
=
'14px 楷体'
;
// 替换为你想要的字体和大小
// 绘制 bdcdyh
context
.
fillText
(
this
.
bdcqz
.
sxqc
?
this
.
bdcqz
.
sxqc
:
''
,
165
,
56
);
// 恢复原始字体设置
context
.
font
=
originalFont
;
}
context
.
fillText
(
this
.
bdcqz
.
sxh
?
this
.
bdcqz
.
sxh
:
''
,
370
,
56
);
context
.
fillText
(
this
.
bdcqz
.
qlr
?
this
.
bdcqz
.
qlr
:
''
,
129
,
97
);
context
.
fillText
(
this
.
bdcqz
.
gyqk
?
this
.
bdcqz
.
gyqk
:
''
,
129
,
136
);
...
...
Please
register
or
sign in
to post a comment