Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qa-platform-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
QA
qa-platform-ui
Commits
8e2c4828
Commit
8e2c4828
authored
May 20, 2021
by
王晓铜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
样式修改
parent
6bffc0e6
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
52 additions
and
17 deletions
+52
-17
getAutoScene.js
src/api/getAutoScene.js
+8
-0
CaseList.vue
src/views/auto/CaseList.vue
+2
-2
EditScene.vue
src/views/auto/EditScene.vue
+5
-3
InterfaceList.vue
src/views/auto/InterfaceList.vue
+2
-2
SceneList.vue
src/views/auto/SceneList.vue
+35
-10
No files found.
src/api/getAutoScene.js
View file @
8e2c4828
...
...
@@ -46,3 +46,11 @@ export function executeScene(queryInfo) {
params
:
queryInfo
})
}
// 编辑场景接口
export
function
editScene
(
data
)
{
return
request
({
url
:
'
/auto/scene/modify
'
,
method
:
'
post
'
,
data
})
}
src/views/auto/CaseList.vue
View file @
8e2c4828
...
...
@@ -7,8 +7,8 @@
<el-option
v-for=
"item in modelList"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
></el-option>
</el-select>
<el-input
v-model=
"queryModuleInfo.testcaseName"
clearable
placeholder=
"请输入用例名称"
style=
"width: 300px;"
></el-input>
<el-button
type=
"primary"
style=
"margin-left:
2
0px"
icon=
"el-icon-search"
@
click=
"queryData"
>
查询
</el-button>
<el-button
type=
"primary"
style=
"margin-left:
2
0px"
icon=
"el-icon-circle-plus"
@
click=
"addPage"
>
新增
</el-button>
<el-button
type=
"primary"
style=
"margin-left:
1
0px"
icon=
"el-icon-search"
@
click=
"queryData"
>
查询
</el-button>
<el-button
type=
"primary"
style=
"margin-left:
1
0px"
icon=
"el-icon-circle-plus"
@
click=
"addPage"
>
新增
</el-button>
</div>
<el-table
:data=
"singleCaseList"
border
style=
"width: 100%;margin-top:20px"
>
<el-table-column
type=
'index'
width=
"50px"
></el-table-column>
...
...
src/views/auto/EditScene.vue
View file @
8e2c4828
...
...
@@ -688,8 +688,10 @@ export default {
</
script
>
<
style
lang=
"less"
scoped
>
div-style {
margin: 20px, 0, 0, 0;
float: right;
.el-select {
width:220px
}
.input{
width:300px;
}
</
style
>
src/views/auto/InterfaceList.vue
View file @
8e2c4828
...
...
@@ -11,8 +11,8 @@
<el-option
v-for=
"item in modelList"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
></el-option>
</el-select>
<el-input
v-model=
"queryModuleInfo.interfaceName"
clearable
placeholder=
"请输入接口名称"
style=
"width: 300px;"
></el-input>
<el-button
type=
"primary"
style=
"margin-left:
2
0px"
icon=
"el-icon-search"
@
click=
"queryData"
>
查询
</el-button>
<el-button
type=
"primary"
style=
"margin-left:
2
0px"
icon=
"el-icon-circle-plus"
@
click=
"addPage"
>
新增
</el-button>
<el-button
type=
"primary"
style=
"margin-left:
1
0px"
icon=
"el-icon-search"
@
click=
"queryData"
>
查询
</el-button>
<el-button
type=
"primary"
style=
"margin-left:
1
0px"
icon=
"el-icon-circle-plus"
@
click=
"addPage"
>
新增
</el-button>
</div>
<el-table
:data=
"interfaceList"
border
style=
"width: 100%;margin-top:20px"
>
<el-table-column
type=
'index'
width=
"50px"
></el-table-column>
...
...
src/views/auto/SceneList.vue
View file @
8e2c4828
...
...
@@ -4,8 +4,8 @@
<div>
场景名称:
<el-input
v-model=
"queryModuleInfo.sceneName"
clearable
placeholder=
"请输入场景名称"
style=
"width: 300px;"
></el-input>
<el-button
type=
"primary"
style=
"margin-left:
2
0px"
icon=
"el-icon-search"
@
click=
"queryData"
>
查询
</el-button>
<el-button
type=
"primary"
style=
"margin-left:
2
0px"
icon=
"el-icon-circle-plus"
@
click=
"DialogVisible = true"
>
新增
</el-button>
<el-button
type=
"primary"
style=
"margin-left:
1
0px"
icon=
"el-icon-search"
@
click=
"queryData"
>
查询
</el-button>
<el-button
type=
"primary"
style=
"margin-left:
1
0px"
icon=
"el-icon-circle-plus"
@
click=
"DialogVisible = true"
>
新增
</el-button>
</div>
<el-table
:data=
"sceneList"
border
style=
"width: 100%;margin-top:20px"
>
<el-table-column
type=
'index'
width=
"50px"
></el-table-column>
...
...
@@ -16,7 +16,8 @@
<el-table-column
label=
"操作"
>
<slot
slot-scope=
"scope"
>
<el-button
type=
"success"
icon=
"el-icon-link"
@
click=
"executeSceneFrom(scope.row)"
>
执行
</el-button>
<el-button
type=
"warning"
icon=
"el-icon-edit"
@
click=
"editeSceneFrom(scope.row)"
>
编辑
</el-button>
<el-button
type=
"warning"
icon=
"el-icon-edit"
@
click=
"editeSceneFrom(scope.row)"
>
编辑场景
</el-button>
<el-button
type=
"warning"
icon=
"el-icon-edit"
@
click=
"editeSceneCaseFrom(scope.row)"
>
编辑场景用例
</el-button>
<el-button
type=
"danger"
icon=
"el-icon-delete"
@
click=
"deleSceneFrom(scope.row)"
>
删除
</el-button>
</slot>
</el-table-column>
...
...
@@ -59,7 +60,8 @@ import {
getSceneList
,
addSecene
,
delSecne
,
executeScene
executeScene
,
editScene
}
from
'
@/api/getAutoScene
'
import
{
getProjectList
}
from
'
@/api/getAotoInterface
'
export
default
{
...
...
@@ -146,6 +148,11 @@ export default {
},
// 编辑场景
editeSceneFrom
(
row
)
{
this
.
DialogVisible
=
true
this
.
sceneForm
=
row
},
// 编辑场景用例
editeSceneCaseFrom
(
row
)
{
window
.
sessionStorage
.
setItem
(
'
curScene
'
,
JSON
.
stringify
(
row
))
this
.
$router
.
push
({
path
:
'
EditScene
'
})
// bus使用
...
...
@@ -196,6 +203,21 @@ export default {
},
// 添加场景
addSceneFrom
()
{
this
.
$refs
.
sceneFormAddRef
.
validate
((
valid
)
=>
{
if
(
!
valid
)
{
return
false
}
else
{
if
(
this
.
sceneForm
.
id
)
{
editScene
(
this
.
sceneForm
).
then
((
resp
)
=>
{
if
(
resp
.
data
.
data
===
true
)
{
this
.
DialogVisible
=
false
this
.
$message
.
success
(
'
修改成功!
'
)
this
.
getSecneList
()
}
else
{
this
.
$message
.
error
(
resp
.
data
.
msg
)
}
})
}
else
{
addSecene
(
this
.
sceneForm
).
then
((
resp
)
=>
{
if
(
resp
.
data
.
data
===
true
)
{
this
.
DialogVisible
=
false
...
...
@@ -205,6 +227,9 @@ export default {
this
.
$message
.
error
(
resp
.
data
.
msg
)
}
})
}
}
})
},
// 关闭清空数据
closeAddDialog
()
{
...
...
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