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
6d14f05e
authored
2024-01-24 17:33:36 +0800
by
renchao@pashanhoo.com
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'dev'
2 parents
5121589e
d78c0d2e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
90 additions
and
78 deletions
src/views/workflow/components/dialog/zsdy.vue
src/views/workflow/components/dialog/zsyl.vue
src/views/workflow/components/dialog/zsdy.vue
View file @
6d14f05
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2024-01-2
2 16:34:1
5
* @LastEditTime: 2024-01-2
4 17:33:3
5
-->
<
template
>
<div>
...
...
@@ -538,48 +538,55 @@
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
currentLine
=
''
;
let
arr
=
[];
for
(
let
word
of
line
)
{
const
testLine
=
currentLine
+
word
;
const
lineWidth
=
context
.
measureText
(
testLine
).
width
;
if
(
lineWidth
<=
295
)
{
currentLine
=
testLine
;
}
else
{
arr
.
push
(
currentLine
);
currentLine
=
word
;
}
let
qlrlines
=
this
.
bdcqz
.
qlr
if
(
getByteLen
(
this
.
bdcqz
.
qlr
)
>
36
)
{
let
currentLine
=
''
;
let
arr
=
[];
for
(
let
word
of
qlrlines
)
{
const
testLine
=
currentLine
+
word
;
const
lineWidth
=
context
.
measureText
(
testLine
).
width
;
if
(
lineWidth
<=
295
)
{
currentLine
=
testLine
;
}
else
{
arr
.
push
(
currentLine
);
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
)
=>
{
let
currentLine
=
''
;
let
arr
=
[];
for
(
let
word
of
line
)
{
const
testLine
=
currentLine
+
word
;
const
lineWidth
=
context
.
measureText
(
testLine
).
width
;
if
(
lineWidth
<=
295
)
{
currentLine
=
testLine
;
}
else
{
arr
.
push
(
currentLine
);
currentLine
=
word
;
}
}
arr
.
push
(
currentLine
);
arr
.
forEach
((
line
,
index
)
=>
{
context
.
fillText
(
line
,
775
,
228
+
(
index
*
20
));
// 调整行高
})
})
context
.
fillText
(
this
.
bdcqz
.
qlr
?
this
.
bdcqz
.
qlr
:
''
,
775
,
228
);
}
// 义务人
context
.
fillText
(
this
.
bdcqz
.
ywr
?
this
.
bdcqz
.
ywr
:
''
,
775
,
275
);
// 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
ywrlines
)
{
const
testLine
=
currentLine
+
word
;
const
lineWidth
=
context
.
measureText
(
testLine
).
width
;
if
(
lineWidth
<=
295
)
{
currentLine
=
testLine
;
}
else
{
arr
.
push
(
currentLine
);
currentLine
=
word
;
}
}
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 @
6d14f05
<!--
* @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;"
>
...
...
@@ -460,49 +460,54 @@
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
currentLine
=
''
;
let
arr
=
[];
for
(
let
word
of
line
)
{
const
testLine
=
currentLine
+
word
;
const
lineWidth
=
context
.
measureText
(
testLine
).
width
;
if
(
lineWidth
<=
295
)
{
currentLine
=
testLine
;
}
else
{
arr
.
push
(
currentLine
);
currentLine
=
word
;
}
let
qlrlines
=
this
.
bdcqz
.
qlr
if
(
getByteLen
(
this
.
bdcqz
.
qlr
)
>
36
)
{
let
currentLine
=
''
;
let
arr
=
[];
for
(
let
word
of
qlrlines
)
{
const
testLine
=
currentLine
+
word
;
const
lineWidth
=
context
.
measureText
(
testLine
).
width
;
if
(
lineWidth
<=
295
)
{
currentLine
=
testLine
;
}
else
{
arr
.
push
(
currentLine
);
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
)
=>
{
let
currentLine
=
''
;
let
arr
=
[];
for
(
let
word
of
line
)
{
const
testLine
=
currentLine
+
word
;
const
lineWidth
=
context
.
measureText
(
testLine
).
width
;
if
(
lineWidth
<=
295
)
{
currentLine
=
testLine
;
}
else
{
arr
.
push
(
currentLine
);
currentLine
=
word
;
}
}
arr
.
push
(
currentLine
);
arr
.
forEach
((
line
,
index
)
=>
{
context
.
fillText
(
line
,
775
,
228
+
(
index
*
20
));
// 调整行高
})
})
context
.
fillText
(
this
.
bdcqz
.
qlr
?
this
.
bdcqz
.
qlr
:
''
,
775
,
228
);
}
// 义务人
context
.
fillText
(
this
.
bdcqz
.
ywr
?
this
.
bdcqz
.
ywr
:
''
,
775
,
275
);
// 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
ywrlines
)
{
const
testLine
=
currentLine
+
word
;
const
lineWidth
=
context
.
measureText
(
testLine
).
width
;
if
(
lineWidth
<=
295
)
{
currentLine
=
testLine
;
}
else
{
arr
.
push
(
currentLine
);
currentLine
=
word
;
}
}
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