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
3c6f7ac0
Commit
3c6f7ac0
authored
Dec 20, 2023
by
何远江
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
取消标题区域限制问题
parent
34184de7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
ExcelOperate.vue
...ws/comment-excel/components/ExcelOperate/ExcelOperate.vue
+6
-6
No files found.
src/views/comment-excel/components/ExcelOperate/ExcelOperate.vue
View file @
3c6f7ac0
...
@@ -540,9 +540,9 @@ const setAreaMark = async (type: 'data' | 'head' = 'data') => {
...
@@ -540,9 +540,9 @@ const setAreaMark = async (type: 'data' | 'head' = 'data') => {
const
isVertical
=
rangeData
.
length
>
1
const
isVertical
=
rangeData
.
length
>
1
// const isDirection = rangeData.length == 1
// const isDirection = rangeData.length == 1
if
(
isVertical
)
{
if
(
isVertical
)
{
if
(
er
-
br
+
1
!=
rangeData
.
length
)
{
//
if (er - br + 1 != rangeData.length) {
return
ElMessage
.
error
(
'请选择区域边缘作为标题区!'
)
//
return ElMessage.error('请选择区域边缘作为标题区!')
}
//
}
for
(
let
r
=
0
;
r
<
rangeData
.
length
;
r
++
)
{
for
(
let
r
=
0
;
r
<
rangeData
.
length
;
r
++
)
{
const
item
=
rangeData
[
r
][
0
]
const
item
=
rangeData
[
r
][
0
]
result
.
push
({
result
.
push
({
...
@@ -557,9 +557,9 @@ const setAreaMark = async (type: 'data' | 'head' = 'data') => {
...
@@ -557,9 +557,9 @@ const setAreaMark = async (type: 'data' | 'head' = 'data') => {
}
}
}
}
}
else
{
}
else
{
if
(
ec
-
bc
+
1
!=
rangeData
[
0
].
length
)
{
//
if (ec - bc + 1 != rangeData[0].length) {
return
ElMessage
.
error
(
'请选择区域边缘作为标题区!'
)
//
return ElMessage.error('请选择区域边缘作为标题区!')
}
//
}
for
(
let
c
=
0
;
c
<
rangeData
[
0
].
length
;
c
++
)
{
for
(
let
c
=
0
;
c
<
rangeData
[
0
].
length
;
c
++
)
{
const
item
=
rangeData
[
0
][
c
]
const
item
=
rangeData
[
0
][
c
]
console
.
log
(
item
,
'======'
)
console
.
log
(
item
,
'======'
)
...
...
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