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
6b8ff550
Commit
6b8ff550
authored
Jun 17, 2021
by
晓彤
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改数据结构
parent
c377f5f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
17 deletions
+9
-17
EditScene.vue
src/views/auto/EditScene.vue
+9
-17
No files found.
src/views/auto/EditScene.vue
View file @
6b8ff550
...
...
@@ -135,7 +135,7 @@
</el-table-column>
<el-table-column
label=
"操作"
>
<
template
slot-scope=
"scope"
>
<el-button
size=
"mini"
type=
"danger"
icon=
"el-icon-delete"
@
click=
"PreActi
ve
Delete(scope.$index)"
style=
"height:40px"
>
删除
</el-button>
<el-button
size=
"mini"
type=
"danger"
icon=
"el-icon-delete"
@
click=
"PreActi
on
Delete(scope.$index)"
style=
"height:40px"
>
删除
</el-button>
</
template
>
</el-table-column>
</el-table>
...
...
@@ -352,7 +352,9 @@ export default {
parameters
:
''
,
extract
:
''
,
validate
:
''
,
sceneId
:
''
sceneId
:
''
,
preAction
:
''
// 前置条件
// preAction: []
},
...
...
@@ -381,18 +383,6 @@ export default {
requestParamsList
:
[],
responseList
:
[],
assertionList
:
[],
caseForm
:
{
sceneId
:
''
,
interfaceId
:
''
,
name
:
''
,
headers
:
''
,
parameters
:
''
,
extract
:
''
,
validate
:
''
,
sequence
:
''
,
caseId
:
''
,
newInterfaceId
:
''
},
newIndex
:
0
,
newCaseIndex
:
0
,
// 保存传递的参数
...
...
@@ -537,7 +527,7 @@ export default {
// 编辑场景用例
editeSceneFrom
(
row
)
{
console
.
log
(
'
6666
'
,
row
)
//
console.log('6666', row)
this
.
editDialogVisible
=
true
this
.
sceneCaseForm
.
sequence
=
row
.
sequence
this
.
sceneCaseForm
.
interfaceId
=
row
.
interfaceId
...
...
@@ -573,7 +563,9 @@ export default {
// 返回断言
this
.
assertionList
=
JSON
.
parse
(
row
.
validate
)
// 前置条件
this
.
preActionList
=
JSON
.
parse
(
row
.
preAction
)
if
(
row
.
preAction
.
length
!==
0
)
{
this
.
preActionList
=
JSON
.
parse
(
row
.
preAction
)
}
},
// 保存场景用例方法
addSceneCaseFrom
()
{
...
...
@@ -743,7 +735,7 @@ export default {
})
},
// 删除前置条件
PreActi
ve
Delete
(
index
)
{
PreActi
on
Delete
(
index
)
{
this
.
preActionList
.
splice
(
index
,
1
)
}
}
...
...
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