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
0521e3ef
Commit
0521e3ef
authored
Dec 20, 2023
by
何远江
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
标题区设置范围限制修改
parent
d24ab22a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ExcelOperate.vue
...ws/comment-excel/components/ExcelOperate/ExcelOperate.vue
+2
-2
No files found.
src/views/comment-excel/components/ExcelOperate/ExcelOperate.vue
View file @
0521e3ef
...
...
@@ -460,7 +460,7 @@ const setAreaMark = async (type: 'data' | 'head' = 'data') => {
const
isVertical
=
rangeData
.
length
>
1
// const isDirection = rangeData.length == 1
if
(
isVertical
)
{
if
((
e
ndRow
-
beginRow
+
1
)
!=
rangeData
.
length
)
{
if
((
e
r
-
br
+
1
)
!=
rangeData
.
length
)
{
return
ElMessage
.
error
(
'请选择区域边缘作为标题区!'
)
}
for
(
let
r
=
0
;
r
<
rangeData
.
length
;
r
++
)
{
...
...
@@ -477,7 +477,7 @@ const setAreaMark = async (type: 'data' | 'head' = 'data') => {
}
}
}
else
{
if
((
e
ndColum
-
beginColum
+
1
)
!=
rangeData
[
0
].
length
)
{
if
((
e
c
-
bc
+
1
)
!=
rangeData
[
0
].
length
)
{
return
ElMessage
.
error
(
'请选择区域边缘作为标题区!'
)
}
for
(
let
c
=
0
;
c
<
rangeData
[
0
].
length
;
c
++
)
{
...
...
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