Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vue-gjjs
Overview
Overview
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
zhouqian
vue-gjjs
Commits
2423f383
Commit
2423f383
authored
Dec 05, 2021
by
zhengxiaokui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zxk
parent
675d9809
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
+7
-1
EditTable.vue
src/components/EditTable.vue
+7
-1
No files found.
src/components/EditTable.vue
View file @
2423f383
...
...
@@ -119,11 +119,17 @@ export default {
methods
:
{
//获取表格数据索引,方便删除
tableRowClassName
({
row
,
rowIndex
})
{
row
.
row_index
=
rowIndex
;
Object
.
defineProperty
(
row
,
"row_index"
,
{
value
:
rowIndex
,
configurable
:
true
,
writable
:
true
,
enumerable
:
false
,
//不可枚举
});
},
// 记录选中行索引
handleClick
(
row
,
column
,
event
)
{
console
.
log
(
row
);
this
.
rowIndex
=
row
.
row_index
;
console
.
log
(
"选择:"
+
this
.
rowIndex
);
},
...
...
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