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
f08b666a
authored
2023-09-14 16:25:06 +0800
by
xiaomiao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
--no commit message
1 parent
51c4990a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
12 deletions
src/views/registerBook/components/printTemplate.vue
src/views/registerBook/components/printTemplate.vue
View file @
f08b666
...
...
@@ -12,6 +12,7 @@
style=
"page-break-after: always"
>
<div
class=
"title"
>
{{
title
}}
</div>
<div
class=
"num"
>
共
{{
datass
.
length
}}
页,第
{{
indexx
+
1
}}
页
</div>
<table
class=
"xxTable"
>
<tr
v-for=
"item in columns"
:key=
"item.name"
>
<td>
...
...
@@ -54,10 +55,10 @@ export default {
type
:
Array
,
default
:
()
=>
[],
},
render
:{
render
:
{
type
:
Boolean
,
default
:
false
,
}
}
,
},
created
()
{},
watch
:
{
...
...
@@ -68,7 +69,7 @@ export default {
},
render
:
{
handler
(
newValue
,
oldValue
)
{
if
(
newValue
)
{
if
(
newValue
)
{
this
.
loadData
();
}
},
...
...
@@ -89,7 +90,7 @@ export default {
this
.
columns
=
res
.
result
;
}
});
if
(
this
.
tableData
.
length
&&
this
.
datass
.
length
==
0
)
{
if
(
this
.
tableData
.
length
&&
this
.
datass
.
length
==
0
)
{
for
(
let
i
=
0
;
i
<
this
.
tableData
.
length
;
i
+=
4
)
{
this
.
datass
.
push
(
this
.
tableData
.
slice
(
i
,
i
+
4
));
}
...
...
@@ -109,8 +110,13 @@ export default {
<
style
lang=
"scss"
scoped
>
.tbalede
{
width
:
100%
;
//
height
:
1123px
;
margin
:
auto
;
position
:
relative
;
.num
{
position
:
absolute
;
right
:
10px
;
top
:
0px
;
}
.title
{
width
:
100%
;
font-weight
:
700
;
...
...
@@ -136,16 +142,15 @@ export default {
padding
:
5px
;
}
td
{
width
:
20px
!important
;
width
:
20px
!important
;
word-break
:
break-all
;
//
/* 方法一:使用 word-break */
//
word-break
:
break-all
;
//
//
/* 方法二:使用 white-space */
//
//
white-space
:
pre-wrap
;
//
//
/* 方法三:使用 overflow-wrap */
//
//
overflow-wrap
:
break-word
;
//
word-break
:
break-all
;
//
//
/* 方法二:使用 white-space */
//
//
white-space
:
pre-wrap
;
//
//
/* 方法三:使用 overflow-wrap */
//
//
overflow-wrap
:
break-word
;
}
}
}
</
style
>
...
...
Please
register
or
sign in
to post a comment