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
d78c0d2e
authored
2024-01-24 17:33:11 +0800
by
renchao@pashanhoo.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:证明
1 parent
bf21b5a7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
37 deletions
src/views/workflow/components/dialog/zsdy.vue
src/views/workflow/components/dialog/zsyl.vue
src/views/workflow/components/dialog/zsdy.vue
View file @
d78c0d2
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2024-01-
18 11:00:00
* @LastEditTime: 2024-01-
24 17:31:21
-->
<
template
>
<div>
...
...
@@ -525,12 +525,11 @@
context
.
fillText
(
this
.
bdcqz
.
zmqlhsx
?
this
.
bdcqz
.
zmqlhsx
:
''
,
775
,
180
);
// context.fillText(this.bdcqz.qlr ? this.bdcqz.qlr : '', 775, 228);
// 权利人
let
qlrlines
=
this
.
bdcqz
.
qlr
?
this
.
bdcqz
.
qlr
.
split
(
' '
)
:
[];
if
(
getByteLen
(
this
.
bdcqz
.
qlr
)
>=
34
)
{
qlrlines
.
forEach
((
line
,
index
)
=>
{
let
qlrlines
=
this
.
bdcqz
.
qlr
if
(
getByteLen
(
this
.
bdcqz
.
qlr
)
>
36
)
{
let
currentLine
=
''
;
let
arr
=
[];
for
(
let
word
of
line
)
{
for
(
let
word
of
qlrlines
)
{
const
testLine
=
currentLine
+
word
;
const
lineWidth
=
context
.
measureText
(
testLine
).
width
;
if
(
lineWidth
<=
295
)
{
...
...
@@ -540,16 +539,22 @@
currentLine
=
word
;
}
}
arr
.
push
(
currentLine
);
arr
.
forEach
((
line
,
index
)
=>
{
context
.
fillText
(
line
,
775
,
218
+
(
index
*
20
));
// 调整行高
})
}
)
arr
.
push
(
currentLine
);
// 将最后一行添加到数组
// 绘制所有行
for
(
let
i
=
0
;
i
<
arr
.
length
;
i
++
)
{
context
.
fillText
(
arr
[
i
],
775
,
218
+
i
*
20
);
// lineHeight 为行高
}
}
else
{
qlrlines
.
forEach
((
line
,
index
)
=>
{
context
.
fillText
(
this
.
bdcqz
.
qlr
?
this
.
bdcqz
.
qlr
:
''
,
775
,
228
);
}
// 义务人
// context.fillText(this.bdcqz.ywr ? this.bdcqz.ywr : '', 775, 275);
let
ywrlines
=
this
.
bdcqz
.
ywr
if
(
getByteLen
(
this
.
bdcqz
.
ywr
)
>
36
)
{
let
currentLine
=
''
;
let
arr
=
[];
for
(
let
word
of
line
)
{
for
(
let
word
of
ywrlines
)
{
const
testLine
=
currentLine
+
word
;
const
lineWidth
=
context
.
measureText
(
testLine
).
width
;
if
(
lineWidth
<=
295
)
{
...
...
@@ -559,14 +564,16 @@
currentLine
=
word
;
}
}
arr
.
push
(
currentLine
);
arr
.
forEach
((
line
,
index
)
=>
{
context
.
fillText
(
line
,
775
,
228
+
(
index
*
20
));
// 调整行高
})
})
arr
.
push
(
currentLine
);
// 将最后一行添加到数组
// 绘制所有行
for
(
let
i
=
0
;
i
<
arr
.
length
;
i
++
)
{
context
.
fillText
(
arr
[
i
],
775
,
268
+
i
*
20
);
// lineHeight 为行高
}
// 义务人
}
else
{
context
.
fillText
(
this
.
bdcqz
.
ywr
?
this
.
bdcqz
.
ywr
:
''
,
775
,
275
);
}
let
lines2
=
this
.
bdcqz
.
zl
?
this
.
bdcqz
.
zl
.
split
(
' '
)
:
[];
if
(
getByteLen
(
this
.
bdcqz
.
zl
)
>
37
)
{
lines2
.
forEach
((
line
,
index
)
=>
{
...
...
src/views/workflow/components/dialog/zsyl.vue
View file @
d78c0d2
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2024-01-2
3 11:07:58
* @LastEditTime: 2024-01-2
4 17:29:20
-->
<
template
>
<div
class=
"from-clues loadingtext"
v-Loading=
"loading"
element-loading-text=
"拼命加载中..."
style=
"text-align: center;"
>
...
...
@@ -450,12 +450,11 @@
context
.
fillText
(
this
.
bdcqz
.
zmqlhsx
?
this
.
bdcqz
.
zmqlhsx
:
''
,
775
,
180
);
// context.fillText(this.bdcqz.qlr ? this.bdcqz.qlr : '', 775, 228);
// 权利人
let
qlrlines
=
this
.
bdcqz
.
qlr
?
this
.
bdcqz
.
qlr
.
split
(
' '
)
:
[];
if
(
getByteLen
(
this
.
bdcqz
.
qlr
)
>=
34
)
{
qlrlines
.
forEach
((
line
,
index
)
=>
{
let
qlrlines
=
this
.
bdcqz
.
qlr
if
(
getByteLen
(
this
.
bdcqz
.
qlr
)
>
36
)
{
let
currentLine
=
''
;
let
arr
=
[];
for
(
let
word
of
line
)
{
for
(
let
word
of
qlrlines
)
{
const
testLine
=
currentLine
+
word
;
const
lineWidth
=
context
.
measureText
(
testLine
).
width
;
if
(
lineWidth
<=
295
)
{
...
...
@@ -465,16 +464,22 @@
currentLine
=
word
;
}
}
arr
.
push
(
currentLine
);
arr
.
forEach
((
line
,
index
)
=>
{
context
.
fillText
(
line
,
775
,
218
+
(
index
*
20
));
// 调整行高
})
}
)
arr
.
push
(
currentLine
);
// 将最后一行添加到数组
// 绘制所有行
for
(
let
i
=
0
;
i
<
arr
.
length
;
i
++
)
{
context
.
fillText
(
arr
[
i
],
775
,
218
+
i
*
20
);
// lineHeight 为行高
}
}
else
{
qlrlines
.
forEach
((
line
,
index
)
=>
{
context
.
fillText
(
this
.
bdcqz
.
qlr
?
this
.
bdcqz
.
qlr
:
''
,
775
,
228
);
}
// 义务人
// context.fillText(this.bdcqz.ywr ? this.bdcqz.ywr : '', 775, 275);
let
ywrlines
=
this
.
bdcqz
.
ywr
if
(
getByteLen
(
this
.
bdcqz
.
ywr
)
>
36
)
{
let
currentLine
=
''
;
let
arr
=
[];
for
(
let
word
of
line
)
{
for
(
let
word
of
ywrlines
)
{
const
testLine
=
currentLine
+
word
;
const
lineWidth
=
context
.
measureText
(
testLine
).
width
;
if
(
lineWidth
<=
295
)
{
...
...
@@ -484,15 +489,15 @@
currentLine
=
word
;
}
}
arr
.
push
(
currentLine
);
arr
.
forEach
((
line
,
index
)
=>
{
context
.
fillText
(
line
,
775
,
228
+
(
index
*
20
));
// 调整行高
})
})
arr
.
push
(
currentLine
);
// 将最后一行添加到数组
// 绘制所有行
for
(
let
i
=
0
;
i
<
arr
.
length
;
i
++
)
{
context
.
fillText
(
arr
[
i
],
775
,
268
+
i
*
20
);
// lineHeight 为行高
}
// 义务人
}
else
{
context
.
fillText
(
this
.
bdcqz
.
ywr
?
this
.
bdcqz
.
ywr
:
''
,
775
,
275
);
}
// context.fillText(this.bdcqz.zl ? this.bdcqz.zl : '', 775, 325);
let
lines2
=
this
.
bdcqz
.
zl
?
this
.
bdcqz
.
zl
.
split
(
' '
)
:
[];
...
...
Please
register
or
sign in
to post a comment