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
c36311e2
Commit
c36311e2
authored
Aug 07, 2024
by
何远江
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
4eed1e4d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
1 deletion
+35
-1
EditArea.vue
src/views/comment-excel/components/EditArea/EditArea.vue
+35
-1
No files found.
src/views/comment-excel/components/EditArea/EditArea.vue
View file @
c36311e2
...
...
@@ -107,6 +107,40 @@
</vxe-table>
</el-col>
<el-col
:span=
"12"
>
<!-- dataTitles -->
<p
class=
"table-des"
>
结束区:
</p>
<vxe-table
:row-config=
"{ isCurrent: true }"
border
:data=
"currentForm.endTitles"
size=
"mini"
max-height=
"200"
:edit-config=
"{ trigger: 'click', mode: 'cell' }"
>
<vxe-column
title=
"单元格值"
field=
"title"
:edit-render=
"{}"
>
<
template
#
edit=
"{ row }"
>
<el-input
v-model=
"row.title"
size=
"small"
></el-input>
</
template
>
</vxe-column>
<vxe-column
title=
"单元格"
field=
"cell"
width=
"90"
>
<
template
#
default=
"{ row }"
>
{{
getRangetxt
(
row
.
row
,
row
.
row
,
row
.
colum
,
row
.
colum
)
}}
</
template
>
</vxe-column>
<vxe-column
title=
"操作"
field=
"action"
width=
"50"
>
<
template
#
default=
"{ row, $rowIndex }"
>
<el-link
style=
"font-size: 12px"
type=
"danger"
@
click=
"delCaptionAndExclude(row, $rowIndex, 3)"
>
删除
</el-link
>
</
template
>
</vxe-column>
</vxe-table>
</el-col>
<el-col
:span=
"12"
>
<!-- excelAreaTitle -->
<p
class=
"table-des"
>
标题区:
</p>
...
...
@@ -306,7 +340,7 @@ const delAreaTitle = (index: number) => {
const
delCaptionAndExclude
=
(
row
:
any
,
index
:
number
,
type
:
number
)
=>
{
delCapAndExc
.
value
.
push
({
...
row
,
type
})
// 删除本行
;(
type
==
1
?
currentForm
.
dataTitles
:
currentForm
.
exclude
Titles
).
splice
(
index
,
1
)
;(
type
==
1
?
currentForm
.
dataTitles
:
type
==
2
?
currentForm
.
excludeTitles
:
currentForm
.
end
Titles
).
splice
(
index
,
1
)
}
const
delGroupAreaTitle
=
(
index
:
number
)
=>
{
attchInfo
.
areaTitles
.
splice
(
index
,
1
)
...
...
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