Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcjg-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
2f75927b
authored
2023-03-13 14:55:34 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:样式修改
1 parent
4b87346b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletions
src/utils/tools.js
src/utils/tools.js
View file @
2f75927
...
...
@@ -172,9 +172,15 @@ export function setExport2Excel (exportName) {
wrapText
:
1
,
indent
:
0
,
wrap_text
:
true
},
border
:
{
// 设置边框
top
:
{
style
:
'thin'
},
bottom
:
{
style
:
'thin'
},
left
:
{
style
:
'thin'
},
right
:
{
style
:
'thin'
}
}
}
}
else
if
(
key
.
indexOf
(
'!'
)
===
-
1
&&
wb
[
key
].
v
)
{
}
else
if
(
key
.
indexOf
(
'!'
)
===
-
1
)
{
wb
[
key
].
s
=
{
font
:
{
//字体设置
sz
:
13
,
...
...
@@ -210,6 +216,7 @@ function addRangeBorder (range, ws) {
range
.
forEach
(
item
=>
{
let
startColNumber
=
Number
(
item
.
s
.
r
),
endColNumber
=
Number
(
item
.
e
.
r
);
let
startRowNumber
=
Number
(
item
.
s
.
c
),
endRowNumber
=
Number
(
item
.
e
.
c
);
console
.
log
(
startColNumber
);
const
test
=
ws
[
arr
[
startRowNumber
]
+
(
startColNumber
+
1
)];
for
(
let
col
=
startColNumber
;
col
<=
endColNumber
;
col
++
)
{
for
(
let
row
=
startRowNumber
;
row
<=
endRowNumber
;
row
++
)
{
...
...
Please
register
or
sign in
to post a comment