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
916e1951
authored
2023-08-16 10:57:45 +0800
by
renchao@pashanhoo.com
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'dev'
2 parents
431e8ce3
68bf5aae
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
15 deletions
src/views/registerBook/qlxxFormData.js
src/views/workflow/components/dialog/zsyl.vue
src/views/registerBook/qlxxFormData.js
View file @
916e195
...
...
@@ -465,20 +465,20 @@ class data extends filter {
label
:
"分摊土地面积(m²)"
,
},
{
prop
:
"td
syqzsj
"
,
label
:
"土地
使用期限
"
,
prop
:
"td
xzmc
"
,
label
:
"土地
性质
"
,
},
{
prop
:
"
syq
qzsj"
,
prop
:
"
tdsy
qzsj"
,
label
:
"使用权起止时间"
,
},
},
{
prop
:
"qdjgmc"
,
label
:
"房地产交易价格"
,
},
{
prop
:
"ytmc"
,
label
:
"
规划
用途"
,
label
:
"
房屋
用途"
,
},
{
prop
:
"fwxzmc"
,
...
...
src/views/workflow/components/dialog/zsyl.vue
View file @
916e195
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-08-16 10:
37:1
3
* @LastEditTime: 2023-08-16 10:
56:3
3
-->
<
template
>
<div
class=
"from-clues loadingtext"
v-Loading=
"loading"
element-loading-text=
"拼命加载中..."
style=
"height:720px;text-align: center;"
>
...
...
@@ -124,7 +124,7 @@
const
image
=
new
Image
();
image
.
onload
=
()
=>
{
context
.
drawImage
(
image
,
0
,
0
);
context
.
font
=
'1
4
px 楷体'
;
context
.
font
=
'1
6
px 楷体'
;
context
.
fillStyle
=
'#000000'
;
context
.
fillText
(
this
.
bdcqz
.
sjjc
?
this
.
bdcqz
.
sjjc
:
''
,
60
,
56
);
context
.
fillText
(
this
.
bdcqz
.
djnd
?
this
.
bdcqz
.
djnd
:
''
,
113
,
56
);
...
...
@@ -133,18 +133,17 @@
context
.
fillText
(
this
.
bdcqz
.
qlr
?
this
.
bdcqz
.
qlr
:
''
,
129
,
97
);
context
.
fillText
(
this
.
bdcqz
.
gyqk
?
this
.
bdcqz
.
gyqk
:
''
,
129
,
136
);
// context.fillText(this.bdcqz.zl ? this.bdcqz.zl : '', 129, 170);
let
arr
=
this
.
bdcqz
.
bdcdyh
.
split
(
'F'
)
this
.
bdcqz
.
bdcdyh
=
arr
[
0
].
slice
(
0
,
6
)
+
' '
+
arr
[
0
].
slice
(
6
,
12
)
+
' '
+
arr
[
0
].
slice
(
12
,
arr
[
0
].
length
)
+
' F'
+
arr
[
1
]
context
.
fillText
(
this
.
bdcqz
.
bdcdyh
?
this
.
bdcqz
.
bdcdyh
:
''
,
129
,
223
);
context
.
fillText
(
this
.
bdcqz
.
bdcdyh
?
this
.
bdcqz
.
bdcdyh
:
''
,
129
,
223
);
context
.
fillText
(
this
.
bdcqz
.
qllx
?
this
.
bdcqz
.
qllx
:
''
,
129
,
263
);
context
.
fillText
(
this
.
bdcqz
.
qlxz
?
this
.
bdcqz
.
qlxz
:
''
,
129
,
303
);
context
.
fillText
(
this
.
bdcqz
.
yt
?
this
.
bdcqz
.
yt
:
''
,
129
,
346
);
context
.
fillText
(
this
.
bdcqz
.
mj
?
this
.
bdcqz
.
mj
:
''
,
129
,
386
);
context
.
fillText
(
this
.
bdcqz
.
syqx
?
this
.
bdcqz
.
syqx
:
''
,
129
,
429
);
//
context.fillText(this.bdcqz.syqx ? this.bdcqz.syqx : '', 129, 429);
// qlqtzk
const
maxWidth
=
280
;
// 最大宽度限制
let
lines
=
this
.
bdcqz
.
qlqtzk
?
this
.
bdcqz
.
qlqtzk
.
split
(
'\n'
)
:
[];
...
...
@@ -187,6 +186,26 @@
context
.
fillText
(
line
,
580
,
y
+
(
index
*
20
));
// 调整行高
})
})
let
lines3
=
this
.
bdcqz
.
syqx
?
this
.
bdcqz
.
syqx
.
split
(
' '
)
:
[];
lines3
.
forEach
((
line
,
index
)
=>
{
const
y
=
423
+
(
index
*
20
);
// 每行文本的垂直位置
let
currentLine
=
''
;
let
arr
=
[];
for
(
let
word
of
line
)
{
const
testLine
=
currentLine
+
word
;
const
lineWidth
=
context
.
measureText
(
testLine
).
width
;
if
(
lineWidth
<=
315
)
{
currentLine
=
testLine
;
}
else
{
arr
.
push
(
currentLine
);
currentLine
=
word
;
}
}
arr
.
push
(
currentLine
);
arr
.
forEach
((
line
,
index
)
=>
{
context
.
fillText
(
line
,
129
,
y
+
(
index
*
20
));
// 调整行高
})
})
...
...
@@ -231,10 +250,7 @@
context
.
fillText
(
line
,
129
,
y
+
(
index
*
20
));
// 调整行高
})
})
}
}
image
.
src
=
this
.
imgSrc
},
...
...
Please
register
or
sign in
to post a comment