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
83a15558
Commit
83a15558
authored
Oct 15, 2024
by
何远江
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
排除区可以设置空单元格
parent
3271ba26
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
excel.ts
src/utils/excel.ts
+5
-1
SetDataArea.vue
...iews/comment-excel/components/SetDataArea/SetDataArea.vue
+1
-1
No files found.
src/utils/excel.ts
View file @
83a15558
...
...
@@ -114,7 +114,7 @@ export function handleRangeTitle(range: any) {
return
titles
}
export
function
handleRangeCell
(
range
:
any
,
cb
?:
any
)
{
export
function
handleRangeCell
(
range
:
any
,
cb
?:
any
,
skipEmpty
:
boolean
=
true
)
{
console
.
log
(
luckysheet
.
getRangeValue
(),
'range-----'
)
// return
const
{
beginRow
,
beginColum
,
endRow
,
sheetNum
,
endColum
,
columnLen
,
rowLen
}
=
...
...
@@ -154,6 +154,10 @@ export function handleRangeCell(range: any, cb?: any) {
cb
&&
cb
(
t
)
}
catch
(
e
)
{
console
.
log
(
r
,
c
,
t
,
e
,
cell
,
'error'
)
if
(
!
skipEmpty
)
{
titles
.
push
(
t
)
cb
&&
cb
(
t
)
}
}
}
}
...
...
src/views/comment-excel/components/SetDataArea/SetDataArea.vue
View file @
83a15558
...
...
@@ -311,7 +311,7 @@ const getRangeCellValue = (type: 'caption' | 'exclude' | 'end') => {
c
.
colum
,
false
)
})
}
,
false
)
}
const
queryDict
=
async
(
code
:
string
)
=>
{
...
...
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