Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
Vue-WebDriver
Project
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
高源
Vue-WebDriver
Commits
85aeb758
Commit
85aeb758
authored
Nov 29, 2023
by
郁子恒
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://git.kivii.org/gy/Vue-WebDriver
parents
93c06e86
a0b8da4d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
collectionTable.vue
src/components/collectionTable.vue
+6
-1
No files found.
src/components/collectionTable.vue
View file @
85aeb758
...
...
@@ -168,9 +168,11 @@ export default {
_this
.
SelectTableData
=
this
.
SelectTableData
.
filter
(
item
=>
item
.
_X_ROW_KEY
!==
row
.
_X_ROW_KEY
)
_this
.
setElementBackgroundColor
(
_this
.
$refs
.
xTableColumn
.
getCurrentRecord
().
xpath
,
''
)
// 先将删除的元素清空,并且将背景色还原
_this
.
SelectTableData
=
_this
.
SelectTableData
.
filter
(
xpath
=>
xpath
.
xpath
!==
row
.
xpath
);
_this
.
setElementBackgroundColor
(
row
.
xpath
,
''
)
// 将表格最后一个选中,添加背景色
if
(
_this
.
SelectTableData
.
length
>
0
)
{
console
.
log
(
_this
.
SelectTableData
)
...
...
@@ -278,7 +280,10 @@ export default {
// 将新加入的tableData添加高亮
// console.log(this.$refs.xTableColumn)
if
(
this
.
$refs
.
xTableColumn
!==
undefined
)
{
this
.
$refs
.
xTableColumn
.
setCurrentRow
(
_this
.
SelectTableData
[
_this
.
SelectTableData
.
length
-
1
])
// if (this.SelectTableData.length > 1) {
this
.
$refs
.
xTableColumn
.
setCurrentRow
(
_this
.
SelectTableData
[
0
])
// }
}
// 移除先前元素的背景色(如果有)
...
...
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