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
e98e2873
Commit
e98e2873
authored
Nov 20, 2023
by
高源
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
采集表界面搭建完善
parent
afb96735
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
65 additions
and
60 deletions
+65
-60
App.vue
src/App.vue
+3
-3
collectionTable.vue
src/components/collectionTable.vue
+58
-53
sdk-table.js
src/sdk-table.js
+4
-4
No files found.
src/App.vue
View file @
e98e2873
...
@@ -847,7 +847,7 @@ export default {
...
@@ -847,7 +847,7 @@ export default {
.toolkitcontain
th
,
.toolkitcontain
th
,
.toolkitcontain
td
,
.toolkitcontain
td
,
.toolkitcontain
tr
{
.toolkitcontain
tr
{
border
:
1px
solid
rgb
(
78
,
78
,
78
)
!important
;
/* border: 1px solid rgb(78, 78, 78) !important; */
height
:
25px
!important
;
height
:
25px
!important
;
width
:
100px
!important
;
width
:
100px
!important
;
text-align
:
center
!important
;
text-align
:
center
!important
;
...
@@ -905,11 +905,11 @@ export default {
...
@@ -905,11 +905,11 @@ export default {
z-index
:
99999
!important
;
z-index
:
99999
!important
;
}
}
.vxe-table--render-default
.vxe-body--column
:not
(
.col--ellipsis
),
/*
.vxe-table--render-default .vxe-body--column:not(.col--ellipsis),
.vxe-table--render-default .vxe-footer--column:not(.col--ellipsis),
.vxe-table--render-default .vxe-footer--column:not(.col--ellipsis),
.vxe-table--render-default .vxe-header--column:not(.col--ellipsis) {
.vxe-table--render-default .vxe-header--column:not(.col--ellipsis) {
padding: 2px 0 !important;
padding: 2px 0 !important;
}
}
*/
.item
{
.item
{
padding
:
6px
;
padding
:
6px
;
...
...
src/components/collectionTable.vue
View file @
e98e2873
This diff is collapsed.
Click to expand it.
src/sdk-table.js
View file @
e98e2873
...
@@ -14,9 +14,9 @@ function table () {
...
@@ -14,9 +14,9 @@ function table () {
* 新生成一个单元格
* 新生成一个单元格
* @param {any} xpath
* @param {any} xpath
*/
*/
this
.
newCell
=
function
(
xpath
,
name
)
{
this
.
newCell
=
function
(
xpath
,
name
,
type
,
title
)
{
_isVerified
=
false
;
//加入了
_isVerified
=
false
;
//加入了
let
newCell
=
new
cell
(
xpath
,
name
);
let
newCell
=
new
cell
(
xpath
,
name
,
type
,
title
);
this
.
cells
.
push
(
newCell
);
this
.
cells
.
push
(
newCell
);
}
}
/**
/**
...
@@ -102,7 +102,7 @@ function table () {
...
@@ -102,7 +102,7 @@ function table () {
* @param {string} type 元素取值类型,文本,链接,元素路径(点击动作用)
* @param {string} type 元素取值类型,文本,链接,元素路径(点击动作用)
* @param {string} title 标题信息
* @param {string} title 标题信息
*/
*/
function
cell
(
xpath
,
name
,
type
=
""
,
title
=
""
)
{
function
cell
(
xpath
,
name
,
type
,
title
)
{
/**当前单元格的绝对路径,存入Action时有用 */
/**当前单元格的绝对路径,存入Action时有用 */
this
.
xpath
=
xpath
;
this
.
xpath
=
xpath
;
/**当前单元格存储数据时的属性名 */
/**当前单元格存储数据时的属性名 */
...
@@ -167,7 +167,7 @@ function cell (xpath, name , type = "", title = "") {
...
@@ -167,7 +167,7 @@ function cell (xpath, name , type = "", title = "") {
let
cellXpath
=
this
.
tableXpath
+
"["
+
index
+
"]"
+
'/'
+
this
.
relativeXpath
;
let
cellXpath
=
this
.
tableXpath
+
"["
+
index
+
"]"
+
'/'
+
this
.
relativeXpath
;
let
results
=
document
.
evaluate
(
cellXpath
,
document
,
null
,
XPathResult
.
FIRST_ORDERED_NODE_TYPE
,
null
);
let
results
=
document
.
evaluate
(
cellXpath
,
document
,
null
,
XPathResult
.
FIRST_ORDERED_NODE_TYPE
,
null
);
if
(
!!
results
.
singleNodeValue
)
{
if
(
!!
results
.
singleNodeValue
)
{
result
[
this
.
name
]
=
results
.
singleNodeValue
.
innerText
;
result
[
this
.
name
]
=
results
.
singleNodeValue
[
this
.
type
]
;
}
}
};
};
return
this
;
//返回当前对象
return
this
;
//返回当前对象
...
...
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