Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
T
topsun-baoshen-excel
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
何远江
topsun-baoshen-excel
Commits
863758b0
Commit
863758b0
authored
Dec 27, 2023
by
何远江
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化回显标记区域
parent
07d14cda
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
50 deletions
+42
-50
ExcelOperate.vue
...ws/comment-excel/components/ExcelOperate/ExcelOperate.vue
+42
-50
No files found.
src/views/comment-excel/components/ExcelOperate/ExcelOperate.vue
View file @
863758b0
...
...
@@ -1013,11 +1013,11 @@ const loadExcel = () => {
},
sheetActivate
:
(
index
:
any
)
=>
{
const
sheet
=
luckysheet
.
getSheet
({
index
})
setSheetAreaMark
(
sheet
)
nextTick
(()
=>
setSheetAreaMark
(
sheet
)
)
},
workbookCreateAfter
:
()
=>
{
const
sheet
=
luckysheet
.
getSheet
()
setSheetAreaMark
(
sheet
)
nextTick
(()
=>
setSheetAreaMark
(
sheet
)
)
}
}
})
...
...
@@ -1035,64 +1035,56 @@ const setSheetAreaMark = (sheet: any) => {
if
(
locaExcelAreaMarks
[
sheet
.
order
].
length
)
{
locaExcelAreaMarks
[
sheet
.
order
].
forEach
((
item
:
any
)
=>
{
// 设置数据区标记
setTimeout
(()
=>
{
luckysheet
.
menuButton
.
customUpdateFormat
(
null
,
'bg'
,
areaMarksColor
[
'data'
],
item
.
beginRow
,
item
.
endRow
,
item
.
beginColum
,
item
.
endColum
,
false
)
},
50
)
luckysheet
.
menuButton
.
customUpdateFormat
(
null
,
'bg'
,
areaMarksColor
[
'data'
],
item
.
beginRow
,
item
.
endRow
,
item
.
beginColum
,
item
.
endColum
,
false
)
if
(
item
.
excelAreaTitle
.
length
)
{
const
areas
=
JSON
.
parse
(
item
.
titleArea
)
areas
.
forEach
((
area
:
any
)
=>
{
setTimeout
(()
=>
{
luckysheet
.
menuButton
.
customUpdateFormat
(
null
,
'bg'
,
areaMarksColor
[
'head'
],
area
.
sr
,
area
.
er
,
area
.
sc
,
area
.
ec
,
false
)
},
50
)
luckysheet
.
menuButton
.
customUpdateFormat
(
null
,
'bg'
,
areaMarksColor
[
'head'
],
area
.
sr
,
area
.
er
,
area
.
sc
,
area
.
ec
,
false
)
})
}
if
(
item
.
desGroups
.
length
)
{
item
.
desGroups
.
forEach
((
area
)
=>
{
setTimeout
(()
=>
{
luckysheet
.
menuButton
.
customUpdateFormat
(
null
,
'bg'
,
areaMarksColor
[
'attch'
],
area
.
beginRow
,
area
.
endRow
,
area
.
beginColum
,
area
.
endColum
,
false
)
},
50
)
luckysheet
.
menuButton
.
customUpdateFormat
(
null
,
'bg'
,
areaMarksColor
[
'attch'
],
area
.
beginRow
,
area
.
endRow
,
area
.
beginColum
,
area
.
endColum
,
false
)
if
(
area
.
titles
.
length
)
{
area
.
titles
.
forEach
((
a
)
=>
{
setTimeout
(()
=>
{
luckysheet
.
menuButton
.
customUpdateFormat
(
null
,
'bg'
,
areaMarksColor
[
'attch_head'
],
a
.
row
,
a
.
row
,
a
.
colum
,
a
.
colum
,
false
)
},
50
)
luckysheet
.
menuButton
.
customUpdateFormat
(
null
,
'bg'
,
areaMarksColor
[
'attch_head'
],
a
.
row
,
a
.
row
,
a
.
colum
,
a
.
colum
,
false
)
})
}
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment