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
bb4657e6
Commit
bb4657e6
authored
Nov 16, 2023
by
高源
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
div类表格界面搭建
parent
d172cacb
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
8 deletions
+13
-8
App.vue
src/App.vue
+10
-5
collectionTable.vue
src/components/collectionTable.vue
+0
-0
elClick.vue
src/components/elClick.vue
+1
-1
main.js
src/main.js
+2
-2
No files found.
src/App.vue
View file @
bb4657e6
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
<div>
<div>
<div
style=
"height: 35px;display: flex;justify-content: flex-start;align-items: center;margin-left: 15px;"
>
<div
style=
"height: 35px;display: flex;justify-content: flex-start;align-items: center;margin-left: 15px;"
>
<span>
动作集合:
</span>
<span>
动作集合:
</span>
<span
style=
"margin-left: 10px;"
@
click=
"onBreadcrumb(item)"
v-for=
"item in actionAll"
:key=
"item.
k
vid"
>
<span
style=
"margin-left: 10px;"
@
click=
"onBreadcrumb(item)"
v-for=
"item in actionAll"
:key=
"item.
K
vid"
>
<span
id=
"Breadcrumb"
style=
"color: blue;"
>
{{
item
.
name
}}
</span>
>
<span
id=
"Breadcrumb"
style=
"color: blue;"
>
{{
item
.
name
}}
</span>
>
</span>
</span>
</div>
</div>
...
@@ -46,10 +46,10 @@
...
@@ -46,10 +46,10 @@
@
start=
"onStart"
@
end=
"onEnd"
v-if=
"isChildrenTree == false"
>
@
start=
"onStart"
@
end=
"onEnd"
v-if=
"isChildrenTree == false"
>
<transition-group>
<transition-group>
<!--
<div
class=
"item"
v-for=
"element in myArray"
:key=
"element.id"
>
{{
element
.
name
}}
</div>
-->
<!--
<div
class=
"item"
v-for=
"element in myArray"
:key=
"element.id"
>
{{
element
.
name
}}
</div>
-->
<el-tag
class=
"boxtags"
:key=
"tag.tagId"
v-for=
"
(tag, index)
in treeNode"
@
click=
"selectTag(tag)"
>
<el-tag
class=
"boxtags"
:key=
"tag.tagId"
v-for=
"
tag
in treeNode"
@
click=
"selectTag(tag)"
>
<div
style=
"display: flex;align-items: center;height: 30px;position: relative;"
>
<div
style=
"display: flex;align-items: center;height: 30px;position: relative;"
>
<span
style=
"margin-left: 3px;min-width: 20px;"
>
{{
1
+
tag
.
actionName
}}
</span>
<span
style=
"margin-left: 3px;min-width: 20px;"
>
{{
tag
.
actionName
}}
</span>
<img
id=
"closeimg"
@
click=
"handleClose(tag)"
<img
id=
"closeimg"
@
click=
"handleClose(tag)"
style=
"width: 20px;position: absolute;top: -8px;right: -18px;"
src=
"./assets/close.png"
>
style=
"width: 20px;position: absolute;top: -8px;right: -18px;"
src=
"./assets/close.png"
>
</div>
</div>
...
@@ -59,10 +59,10 @@
...
@@ -59,10 +59,10 @@
<draggable
v-model=
"childrenTreeNode"
chosenClass=
"chosen"
forceFallback=
"true"
group=
"people"
<draggable
v-model=
"childrenTreeNode"
chosenClass=
"chosen"
forceFallback=
"true"
group=
"people"
animation=
"1000"
@
start=
"onStart"
@
end=
"onEnd"
v-if=
"isChildrenTree == true"
>
animation=
"1000"
@
start=
"onStart"
@
end=
"onEnd"
v-if=
"isChildrenTree == true"
>
<transition-group>
<transition-group>
<el-tag
class=
"boxtags"
:key=
"item.tagId"
v-for=
"
(item, index)
in childrenTreeNode"
<el-tag
class=
"boxtags"
:key=
"item.tagId"
v-for=
"
item
in childrenTreeNode"
@
click=
"selectTag(item)"
>
@
click=
"selectTag(item)"
>
<div
style=
"display: flex;align-items: center;height: 30px;position: relative;"
>
<div
style=
"display: flex;align-items: center;height: 30px;position: relative;"
>
<span
style=
"margin-left: 3px;"
>
{{
2
+
item
.
actionName
}}
</span>
<span
style=
"margin-left: 3px;"
>
{{
item
.
actionName
}}
</span>
<img
id=
"closeimg"
@
click=
"handleClose(item)"
<img
id=
"closeimg"
@
click=
"handleClose(item)"
style=
"width: 20px;position: absolute;top: -8px;right: -18px;"
src=
"./assets/close.png"
>
style=
"width: 20px;position: absolute;top: -8px;right: -18px;"
src=
"./assets/close.png"
>
</div>
</div>
...
@@ -117,6 +117,7 @@ export default {
...
@@ -117,6 +117,7 @@ export default {
actionName
:
''
,
actionName
:
''
,
actionType
:
''
,
actionType
:
''
,
dynamicTags
:
[],
dynamicTags
:
[],
winHeight
:
window
.
outerHeight
,
isShowAction
:
false
,
isShowAction
:
false
,
options
:
[{
options
:
[{
value
:
'select'
,
value
:
'select'
,
...
@@ -382,6 +383,7 @@ export default {
...
@@ -382,6 +383,7 @@ export default {
},
},
// 导航标签
// 导航标签
onBreadcrumb
(
item
)
{
onBreadcrumb
(
item
)
{
this
.
isShowAction
=
false
this
.
actionName
=
item
.
actionName
this
.
actionName
=
item
.
actionName
this
.
actionType
=
item
.
actionType
this
.
actionType
=
item
.
actionType
this
.
deleteObjectsAfterKvid
(
this
.
actionAll
,
item
.
Kvid
)
this
.
deleteObjectsAfterKvid
(
this
.
actionAll
,
item
.
Kvid
)
...
@@ -648,6 +650,9 @@ export default {
...
@@ -648,6 +650,9 @@ export default {
// 拖拽完最终结果
// 拖拽完最终结果
console
.
log
(
this
.
treeNode
)
console
.
log
(
this
.
treeNode
)
},
},
onResize
()
{
this
.
winHeight
=
window
.
outerHeight
},
},
},
}
}
</
script
>
</
script
>
...
...
src/components/collectionTable.vue
View file @
bb4657e6
This diff is collapsed.
Click to expand it.
src/components/elClick.vue
View file @
bb4657e6
...
@@ -84,7 +84,7 @@ export default {
...
@@ -84,7 +84,7 @@ export default {
this
.
actionConfig
.
Name
=
this
.
actionName
this
.
actionConfig
.
Name
=
this
.
actionName
this
.
actionConfig
.
Alias
=
this
.
actionType
this
.
actionConfig
.
Alias
=
this
.
actionType
this
.
$emit
(
'dataChanged'
,
this
.
actionConfig
);
this
.
$emit
(
'dataChanged'
,
this
.
actionConfig
);
// console.log(this.actionName)
},
},
// 获取页面元素
// 获取页面元素
selectElement
()
{
selectElement
()
{
...
...
src/main.js
View file @
bb4657e6
...
@@ -114,7 +114,7 @@ function generateToolkit () {
...
@@ -114,7 +114,7 @@ function generateToolkit () {
},
3000
);
},
3000
);
}
}
window
.
onload
=
function
()
{
//
window.onload = function () {
let
mousemovebind
=
false
;
//如果出现元素默认绑定了mousemove事件导致匹配不到元素的时候,开启第二种模式获得元素
let
mousemovebind
=
false
;
//如果出现元素默认绑定了mousemove事件导致匹配不到元素的时候,开启第二种模式获得元素
...
@@ -148,5 +148,5 @@ window.onload = function () {
...
@@ -148,5 +148,5 @@ window.onload = function () {
// 执行其他操作
// 执行其他操作
});
});
generateToolkit
();
generateToolkit
();
}
//
}
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