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
bc328e8b
Commit
bc328e8b
authored
Dec 04, 2023
by
高源
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
dd0a0633
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
15 deletions
+7
-15
collectionTable.vue
src/components/collectionTable.vue
+7
-15
No files found.
src/components/collectionTable.vue
View file @
bc328e8b
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
<el-button
size=
"mini"
style=
"width: 74px;height: 20px;margin-right: 7px;"
@
click=
"getTable"
v-if=
"isSelectTable"
>
获取表格信息
</el-button>
<el-button
size=
"mini"
style=
"width: 74px;height: 20px;margin-right: 7px;"
@
click=
"getTable"
v-if=
"isSelectTable"
>
获取表格信息
</el-button>
</div>
</div>
<!-- 全部表格信息 -->
<!-- 全部表格信息 -->
<div
style=
"overflow: auto;height: 230px;"
:style=
"{ width: widthResize + 'px' }"
>
git
<div
style=
"overflow: auto;height: 230px;"
:style=
"{ width: widthResize + 'px' }"
>
<vxe-table
:data=
"selectTableData"
ref=
"xTableColumn"
border
class=
"mytable-scrollbar"
height=
"220"
<vxe-table
:data=
"selectTableData"
ref=
"xTableColumn"
border
class=
"mytable-scrollbar"
height=
"220"
v-if=
"isSelectTable"
auto-resize
style=
"margin-bottom: 5px;"
@
current-change=
"currentChangeEvent"
v-if=
"isSelectTable"
auto-resize
style=
"margin-bottom: 5px;"
@
current-change=
"currentChangeEvent"
highlight-hover-row
highlight-current-row
>
highlight-hover-row
highlight-current-row
>
...
@@ -64,12 +64,10 @@
...
@@ -64,12 +64,10 @@
<span
style=
"font-size: 13px;"
>
操作
</span>
<span
style=
"font-size: 13px;"
>
操作
</span>
</
template
>
</
template
>
<
template
#
default=
"{ row }"
>
<
template
#
default=
"{ row }"
>
<<<<<<<
HEAD
<img
style=
"width: 38px;height: 28px;vertical-align: bottom;cursor: pointer;"
<img
style=
"width: 38px;height: 28px;vertical-align: bottom;cursor: pointer;"
src=
"../assets/close.svg"
@
click
.
stop=
"columnDelete(row)"
v-if=
"row.xpath !== ''"
>
src=
"../assets/close.svg"
@
click
.
stop=
"columnDelete(row)"
v-if=
"row.xpath !== ''"
>
=======
<img
style=
"width: 38px;height: 28px;vertical-align: bottom;cursor: pointer;"
src=
"../assets/close.svg"
@
click
.
stop=
"columnDelete(row)"
v-if=
"row.xpath !== ''"
>
>>>>>>> 5509792c37aa1abff718eb8e1a32b1f5cb234afd
<template
v-else
>
<template
v-else
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"点击按钮,右击页面元素添加数据"
placement=
"top"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"点击按钮,右击页面元素添加数据"
placement=
"top"
>
<img
style=
"width: 24px;height: 24px;vertical-align: bottom;cursor: pointer;background-color: transparent;"
src=
"../assets/addTable.svg"
@
click
.
stop=
"selectElement"
>
<img
style=
"width: 24px;height: 24px;vertical-align: bottom;cursor: pointer;background-color: transparent;"
src=
"../assets/addTable.svg"
@
click
.
stop=
"selectElement"
>
...
@@ -268,17 +266,11 @@ export default {
...
@@ -268,17 +266,11 @@ export default {
info
.
title
=
'columnName'
info
.
title
=
'columnName'
_this
.
selectTableData
.
unshift
(
info
)
_this
.
selectTableData
.
unshift
(
info
)
if
(
this
.
$refs
.
xTableColumn
!==
undefined
)
{
if
(
this
.
$refs
.
xTableColumn
!==
undefined
)
{
<<<<<<<
HEAD
this
.
$refs
.
xTableColumn
.
setCurrentRow
(
_this
.
selectTableData
[
0
])
}
if
(
this
.
selectedRow
!==
null
)
{
this
.
setElementBackgroundColor
(
this
.
selectedRow
.
xpath
,
''
);
=======
// if (this.SelectTableData.length > 1) {
// if (this.SelectTableData.length > 1) {
this
.
$refs
.
xTableColumn
.
setCurrentRow
(
_this
.
S
electTableData
[
0
])
this
.
$refs
.
xTableColumn
.
setCurrentRow
(
_this
.
s
electTableData
[
0
])
// }
// }
>>>>>>>
5509792
c37aa1abff718eb8e1a32b1f5cb234afd
}
}
// 移除先前元素的背景色(如果有)
// 移除先前元素的背景色(如果有)
if
(
window
.
currentlyHighlighted
)
{
if
(
window
.
currentlyHighlighted
)
{
...
@@ -353,8 +345,8 @@ export default {
...
@@ -353,8 +345,8 @@ export default {
}
}
this
.
updateSelectTableData
();
this
.
updateSelectTableData
();
//
this.setTableProperties();
this
.
setTableProperties
();
//
this.highlightTableAndCells();
this
.
highlightTableAndCells
();
},
},
// 更新tableData
// 更新tableData
updateSelectTableData
()
{
updateSelectTableData
()
{
...
...
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