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
ca4cddfe
Commit
ca4cddfe
authored
Jun 17, 2021
by
晓彤
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改分页,报告前置条件展示问题,按钮显示问题
parent
cba75be1
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
47 additions
and
47 deletions
+47
-47
AddCase.vue
src/views/auto/AddCase.vue
+1
-2
AddInterface.vue
src/views/auto/AddInterface.vue
+7
-3
CaseList.vue
src/views/auto/CaseList.vue
+6
-4
EditScene.vue
src/views/auto/EditScene.vue
+2
-9
InterfaceList.vue
src/views/auto/InterfaceList.vue
+6
-2
ModelList.vue
src/views/auto/ModelList.vue
+5
-3
ProjectList.vue
src/views/auto/ProjectList.vue
+6
-4
ReportDetail.vue
src/views/auto/ReportDetail.vue
+2
-9
ReportList.vue
src/views/auto/ReportList.vue
+5
-3
SceneCaseDetail.vue
src/views/auto/SceneCaseDetail.vue
+0
-4
SceneList.vue
src/views/auto/SceneList.vue
+7
-4
No files found.
src/views/auto/AddCase.vue
View file @
ca4cddfe
...
@@ -132,7 +132,7 @@
...
@@ -132,7 +132,7 @@
<el-button
type=
"success"
plain
@
click=
"AddAssertionListRow()"
style=
"mragin-top:10px"
class=
"el-icon-circle-plus"
>
添加行
</el-button>
<el-button
type=
"success"
plain
@
click=
"AddAssertionListRow()"
style=
"mragin-top:10px"
class=
"el-icon-circle-plus"
>
添加行
</el-button>
</el-collapse-item>
</el-collapse-item>
</el-collapse>
</el-collapse>
<div
style=
"margin-left:
7
00px;margin-top:20px"
>
<div
style=
"margin-left:
8
00px;margin-top:20px"
>
<el-button
@
click=
"cancelCaseFrom"
>
取 消
</el-button>
<el-button
@
click=
"cancelCaseFrom"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"addCaseFrom"
>
确 定
</el-button>
<el-button
type=
"primary"
@
click=
"addCaseFrom"
>
确 定
</el-button>
</div>
</div>
...
@@ -205,7 +205,6 @@ export default {
...
@@ -205,7 +205,6 @@ export default {
assertionList
:
[],
assertionList
:
[],
headersList
:
[],
headersList
:
[],
requestParamsList
:
[],
requestParamsList
:
[],
// paramsList: [],
responseList
:
[],
responseList
:
[],
selectAssertionList
:
[
selectAssertionList
:
[
{
{
...
...
src/views/auto/AddInterface.vue
View file @
ca4cddfe
...
@@ -141,7 +141,7 @@
...
@@ -141,7 +141,7 @@
</el-collapse-item>
</el-collapse-item>
</el-collapse>
</el-collapse>
</el-form>
</el-form>
<div
style=
"margin-left:
7
00px;margin-top:20px"
>
<div
style=
"margin-left:
8
00px;margin-top:20px"
>
<el-button
@
click=
"cancelInterfaceFrom"
>
取 消
</el-button>
<el-button
@
click=
"cancelInterfaceFrom"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"addInterfaceFrom"
>
确 定
</el-button>
<el-button
type=
"primary"
@
click=
"addInterfaceFrom"
>
确 定
</el-button>
</div>
</div>
...
@@ -238,7 +238,11 @@ export default {
...
@@ -238,7 +238,11 @@ export default {
id
:
'
form
'
,
id
:
'
form
'
,
name
:
'
form
'
name
:
'
form
'
}
}
]
],
moduleInfo
:
{
pageNum
:
1
,
pageSize
:
100
}
}
}
},
},
created
()
{
created
()
{
...
@@ -274,7 +278,7 @@ export default {
...
@@ -274,7 +278,7 @@ export default {
getParamsMes
()
{},
getParamsMes
()
{},
// 模块列表
// 模块列表
getModelList
()
{
getModelList
()
{
getModulList
(
this
.
queryM
oduleInfo
).
then
((
resp
)
=>
{
getModulList
(
this
.
m
oduleInfo
).
then
((
resp
)
=>
{
this
.
modelList
=
resp
.
data
.
data
.
list
this
.
modelList
=
resp
.
data
.
data
.
list
})
})
},
},
...
...
src/views/auto/CaseList.vue
View file @
ca4cddfe
...
@@ -11,12 +11,15 @@
...
@@ -11,12 +11,15 @@
<el-button
type=
"primary"
style=
"margin-left:10px"
icon=
"el-icon-circle-plus"
@
click=
"addPage"
>
新增
</el-button>
<el-button
type=
"primary"
style=
"margin-left:10px"
icon=
"el-icon-circle-plus"
@
click=
"addPage"
>
新增
</el-button>
</div>
</div>
<el-table
:data=
"singleCaseList"
border
style=
"width: 100%;margin-top:20px"
>
<el-table
:data=
"singleCaseList"
border
style=
"width: 100%;margin-top:20px"
>
<el-table-column
type=
'index'
width=
"50px"
></el-table-column>
<el-table-column
type=
'index'
width=
"50px"
>
<template
slot-scope=
"scope"
>
<span>
{{
(
queryModuleInfo
.
pageNum
-
1
)
*
queryModuleInfo
.
pageSize
+
scope
.
$index
+
1
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"name"
label=
"用例名称"
width=
"250px"
></el-table-column>
<el-table-column
prop=
"name"
label=
"用例名称"
width=
"250px"
></el-table-column>
<el-table-column
prop=
"interfaceName"
label=
"接口名称"
width=
"250px"
></el-table-column>
<el-table-column
prop=
"interfaceName"
label=
"接口名称"
width=
"250px"
></el-table-column>
<el-table-column
prop=
"moduleName"
label=
"模块名称"
width=
"200px"
></el-table-column>
<el-table-column
prop=
"moduleName"
label=
"模块名称"
width=
"200px"
></el-table-column>
<el-table-column
prop=
"createTime"
label=
"创建日期"
width=
"200px"
></el-table-column>
<el-table-column
prop=
"createTime"
label=
"创建日期"
width=
"200px"
></el-table-column>
<!--
<el-table-column
prop=
"updateTime"
label=
"修改日期"
width=
"200px"
></el-table-column>
-->
<el-table-column
label=
"操作"
>
<el-table-column
label=
"操作"
>
<slot
slot-scope=
"scope"
>
<slot
slot-scope=
"scope"
>
<el-button
type=
"success"
icon=
"el-icon-link"
@
click=
"executeCaseFrom(scope.row)"
>
执行
</el-button>
<el-button
type=
"success"
icon=
"el-icon-link"
@
click=
"executeCaseFrom(scope.row)"
>
执行
</el-button>
...
@@ -48,13 +51,12 @@ import {
...
@@ -48,13 +51,12 @@ import {
executeCase
executeCase
// delCase
// delCase
}
from
'
@/api/getAutoCase
'
}
from
'
@/api/getAutoCase
'
// import bus from '@/utils/bus'
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
queryModuleInfo
:
{
queryModuleInfo
:
{
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
2
0
,
pageSize
:
1
0
,
moduleId
:
''
,
moduleId
:
''
,
testcaseName
:
''
testcaseName
:
''
},
},
...
...
src/views/auto/EditScene.vue
View file @
ca4cddfe
...
@@ -15,7 +15,6 @@
...
@@ -15,7 +15,6 @@
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
<el-collapse
style=
"margin-left:20px"
>
<el-collapse
style=
"margin-left:20px"
>
<el-collapse-item
title=
"全局参数"
>
<el-collapse-item
title=
"全局参数"
>
<el-form-item>
<el-form-item>
...
@@ -48,10 +47,8 @@
...
@@ -48,10 +47,8 @@
</el-col>
</el-col>
</el-row>
</el-row>
</el-form-item>
</el-form-item>
</el-collapse-item>
</el-collapse-item>
</el-collapse>
</el-collapse>
<el-form-item>
<el-form-item>
<!-- 列表展示 -->
<!-- 列表展示 -->
<el-table
:data=
"sceneTestcaseList"
border
style=
"width: 100%;margin-top:20px;cursor:pointer"
row-key=
"sequence"
>
<el-table
:data=
"sceneTestcaseList"
border
style=
"width: 100%;margin-top:20px;cursor:pointer"
row-key=
"sequence"
>
...
@@ -104,12 +101,10 @@
...
@@ -104,12 +101,10 @@
<!-- 编辑场景用例 -->
<!-- 编辑场景用例 -->
<el-dialog
title=
"编辑场景用例"
:visible.sync=
"editDialogVisible"
width=
"60%"
>
<el-dialog
title=
"编辑场景用例"
:visible.sync=
"editDialogVisible"
width=
"60%"
>
<!--
<el-card>
-->
<el-form>
<el-form>
<el-form-item
label=
"用例名称:"
style=
"width:300px"
>
<el-form-item
label=
"用例名称:"
style=
"width:300px"
>
<el-input
v-model=
"sceneCaseForm.name"
></el-input>
<el-input
v-model=
"sceneCaseForm.name"
></el-input>
</el-form-item>
</el-form-item>
<el-collapse
v-model=
"activeNames"
>
<el-collapse
v-model=
"activeNames"
>
<!-- 前置条件 -->
<!-- 前置条件 -->
<el-collapse-item
name=
"1"
title=
"前置条件"
>
<el-collapse-item
name=
"1"
title=
"前置条件"
>
...
@@ -257,13 +252,11 @@
...
@@ -257,13 +252,11 @@
<el-button
type=
"success"
plain
@
click=
"AddAssertionListRow()"
class=
"el-icon-circle-plus"
>
添加行
</el-button>
<el-button
type=
"success"
plain
@
click=
"AddAssertionListRow()"
class=
"el-icon-circle-plus"
>
添加行
</el-button>
</el-collapse-item>
</el-collapse-item>
</el-collapse>
</el-collapse>
<div
style=
"margin-top:20px;margin-left:600px"
>
<div
style=
"margin-top:20px;margin-left:600px"
>
<el-button
@
click=
"cancelCaseFrom"
>
取 消
</el-button>
<el-button
@
click=
"cancelCaseFrom"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"addCaseFrom"
>
确 定
</el-button>
<el-button
type=
"primary"
@
click=
"addCaseFrom"
>
确 定
</el-button>
</div>
</div>
</el-form>
</el-form>
<!-- </el-card> -->
</el-dialog>
</el-dialog>
</div>
</div>
</template>
</template>
...
@@ -510,7 +503,7 @@ export default {
...
@@ -510,7 +503,7 @@ export default {
sceneId
:
this
.
sceneCaseInfo
.
sceneId
,
sceneId
:
this
.
sceneCaseInfo
.
sceneId
,
sequence
:
this
.
sceneTestcaseList
.
length
+
1
sequence
:
this
.
sceneTestcaseList
.
length
+
1
})
})
console
.
log
(
'
save----
'
,
this
.
sceneTestcaseList
)
//
console.log('save----', this.sceneTestcaseList)
this
.
DialogVisible
=
false
this
.
DialogVisible
=
false
this
.
sceneCaseForm
.
moduleFrom
=
''
this
.
sceneCaseForm
.
moduleFrom
=
''
this
.
sceneCaseForm
.
interfaceFrom
=
''
this
.
sceneCaseForm
.
interfaceFrom
=
''
...
@@ -586,7 +579,7 @@ export default {
...
@@ -586,7 +579,7 @@ export default {
this
.
newSceneForm
.
sceneId
=
this
.
sceneCaseInfo
.
sceneId
this
.
newSceneForm
.
sceneId
=
this
.
sceneCaseInfo
.
sceneId
this
.
newSceneForm
.
sceneTestcaseList
=
this
.
sceneTestcaseList
this
.
newSceneForm
.
sceneTestcaseList
=
this
.
sceneTestcaseList
console
.
log
(
'
保存传递的参数值
'
,
this
.
newSceneForm
)
//
console.log('保存传递的参数值', this.newSceneForm)
this
.
$refs
.
sceneFormRef
.
validate
((
valid
)
=>
{
this
.
$refs
.
sceneFormRef
.
validate
((
valid
)
=>
{
if
(
!
valid
)
{
if
(
!
valid
)
{
return
false
return
false
...
...
src/views/auto/InterfaceList.vue
View file @
ca4cddfe
...
@@ -15,7 +15,11 @@
...
@@ -15,7 +15,11 @@
<el-button
type=
"primary"
style=
"margin-left:10px"
icon=
"el-icon-circle-plus"
@
click=
"addPage"
>
新增
</el-button>
<el-button
type=
"primary"
style=
"margin-left:10px"
icon=
"el-icon-circle-plus"
@
click=
"addPage"
>
新增
</el-button>
</div>
</div>
<el-table
:data=
"interfaceList"
border
style=
"width: 100%;margin-top:20px"
>
<el-table
:data=
"interfaceList"
border
style=
"width: 100%;margin-top:20px"
>
<el-table-column
type=
'index'
width=
"50px"
></el-table-column>
<el-table-column
type=
'index'
width=
"50px"
>
<template
slot-scope=
"scope"
>
<span>
{{
(
queryModuleInfo
.
pageNum
-
1
)
*
queryModuleInfo
.
pageSize
+
scope
.
$index
+
1
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"name"
label=
"接口名称"
width=
"250px"
></el-table-column>
<el-table-column
prop=
"name"
label=
"接口名称"
width=
"250px"
></el-table-column>
<el-table-column
prop=
"url"
label=
"接口路径"
width=
"350px"
></el-table-column>
<el-table-column
prop=
"url"
label=
"接口路径"
width=
"350px"
></el-table-column>
<el-table-column
prop=
"moduleName"
label=
"所属模块"
width=
"150px"
></el-table-column>
<el-table-column
prop=
"moduleName"
label=
"所属模块"
width=
"150px"
></el-table-column>
...
@@ -51,7 +55,7 @@ export default {
...
@@ -51,7 +55,7 @@ export default {
return
{
return
{
queryModuleInfo
:
{
queryModuleInfo
:
{
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
2
0
,
pageSize
:
1
0
,
projectId
:
''
,
projectId
:
''
,
moduleId
:
''
,
moduleId
:
''
,
interfaceName
:
''
interfaceName
:
''
...
...
src/views/auto/ModelList.vue
View file @
ca4cddfe
...
@@ -5,14 +5,16 @@
...
@@ -5,14 +5,16 @@
<el-button
type=
"primary"
icon=
"el-icon-circle-plus"
@
click=
"addModelBtn"
>
新增
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-circle-plus"
@
click=
"addModelBtn"
>
新增
</el-button>
</div>
</div>
<el-table
:data=
"modelList"
border
style=
"width: 100%;margin-top:20px"
>
<el-table
:data=
"modelList"
border
style=
"width: 100%;margin-top:20px"
>
<!--
<el-table-column
prop=
"id"
label=
"序号"
width=
"80px"
></el-table-column>
-->
<el-table-column
type=
'index'
width=
"50px"
>
<el-table-column
type=
'index'
width=
"50px"
></el-table-column>
<template
slot-scope=
"scope"
>
<span>
{{
(
queryModuleInfo
.
pageNum
-
1
)
*
queryModuleInfo
.
pageSize
+
scope
.
$index
+
1
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"name"
label=
"模块名称"
width=
"150px"
></el-table-column>
<el-table-column
prop=
"name"
label=
"模块名称"
width=
"150px"
></el-table-column>
<el-table-column
prop=
"projectName"
label=
"所属项目"
width=
"150px"
></el-table-column>
<el-table-column
prop=
"projectName"
label=
"所属项目"
width=
"150px"
></el-table-column>
<el-table-column
prop=
"domain"
label=
"域名"
width=
"350px"
></el-table-column>
<el-table-column
prop=
"domain"
label=
"域名"
width=
"350px"
></el-table-column>
<el-table-column
prop=
"description"
label=
"描述"
width=
"200px"
></el-table-column>
<el-table-column
prop=
"description"
label=
"描述"
width=
"200px"
></el-table-column>
<el-table-column
prop=
"createTime"
label=
"创建时间"
width=
"200px"
></el-table-column>
<el-table-column
prop=
"createTime"
label=
"创建时间"
width=
"200px"
></el-table-column>
<!--
<el-table-column
prop=
"updateTime"
label=
"修改时间"
width=
"200px"
></el-table-column>
-->
<el-table-column
label=
"操作"
>
<el-table-column
label=
"操作"
>
<slot
slot-scope=
"scope"
>
<slot
slot-scope=
"scope"
>
<el-button
type=
"warning"
icon=
"el-icon-edit"
@
click=
"openEditDialog(scope.row)"
>
编辑
</el-button>
<el-button
type=
"warning"
icon=
"el-icon-edit"
@
click=
"openEditDialog(scope.row)"
>
编辑
</el-button>
...
...
src/views/auto/ProjectList.vue
View file @
ca4cddfe
...
@@ -6,15 +6,17 @@
...
@@ -6,15 +6,17 @@
<el-button
type=
"primary"
icon=
"el-icon-search"
@
click=
"searchMockList"
>
查询
</el-button>
-->
<el-button
type=
"primary"
icon=
"el-icon-search"
@
click=
"searchMockList"
>
查询
</el-button>
-->
<!--
<el-button
type=
"primary"
icon=
"el-icon-circle-plus"
@
click=
"DialogAddVisible=true"
>
新增
</el-button>
-->
<!--
<el-button
type=
"primary"
icon=
"el-icon-circle-plus"
@
click=
"DialogAddVisible=true"
>
新增
</el-button>
-->
<el-button
type=
"primary"
icon=
"el-icon-circle-plus"
@
click=
"DialogAddVisible=true"
>
新增
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-circle-plus"
@
click=
"DialogAddVisible=true"
>
新增
</el-button>
</div>
</div>
<el-table
:data=
"projectList"
border
style=
"width: 100%;margin-top:20px"
>
<el-table
:data=
"projectList"
border
style=
"width: 100%;margin-top:20px"
>
<!--
<el-table-column
prop=
"id"
label=
"序号"
width=
"80px"
></el-table-column>
-->
<el-table-column
type=
'index'
width=
"50px"
>
<el-table-column
type=
'index'
width=
"50px"
></el-table-column>
<template
slot-scope=
"scope"
>
<span>
{{
(
queryModuleInfo
.
pageNum
-
1
)
*
queryModuleInfo
.
pageSize
+
scope
.
$index
+
1
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"name"
label=
"名称"
width=
"200px"
></el-table-column>
<el-table-column
prop=
"name"
label=
"名称"
width=
"200px"
></el-table-column>
<el-table-column
prop=
"description"
label=
"描述"
width=
"300px"
></el-table-column>
<el-table-column
prop=
"description"
label=
"描述"
width=
"300px"
></el-table-column>
<el-table-column
prop=
"createTime"
label=
"创建时间"
width=
"200px"
></el-table-column>
<el-table-column
prop=
"createTime"
label=
"创建时间"
width=
"200px"
></el-table-column>
<!--
<el-table-column
prop=
"updateTime"
label=
"修改时间"
width=
"200px"
></el-table-column>
-->
<el-table-column
label=
"操作"
>
<el-table-column
label=
"操作"
>
<slot
slot-scope=
"scope"
>
<slot
slot-scope=
"scope"
>
<el-button
type=
"warning"
icon=
"el-icon-edit"
@
click=
"openEditDialog(scope.row)"
>
编辑
</el-button>
<el-button
type=
"warning"
icon=
"el-icon-edit"
@
click=
"openEditDialog(scope.row)"
>
编辑
</el-button>
...
...
src/views/auto/ReportDetail.vue
View file @
ca4cddfe
...
@@ -46,13 +46,11 @@
...
@@ -46,13 +46,11 @@
</el-row>
</el-row>
</div>
</div>
</el-col>
</el-col>
<el-col
:span=
"14"
>
<el-col
:span=
"14"
>
<div
class=
"divStyle"
>
{{
sceneName
}}
用例执行结果
</div>
<div
class=
"divStyle"
>
{{
sceneName
}}
用例执行结果
</div>
<div
id=
"chartPie"
style=
"width:900px ;height:250px;margin-top:10px"
></div>
<div
id=
"chartPie"
style=
"width:900px ;height:250px;margin-top:10px"
></div>
</el-col>
</el-col>
</el-row>
</el-row>
</el-card>
</el-card>
<el-card>
<el-card>
<el-table
:data=
"reportDetailList"
style=
"width: 100%"
:header-cell-style=
"
{background:'#FFE4C4',color:'#606266'}">
<el-table
:data=
"reportDetailList"
style=
"width: 100%"
:header-cell-style=
"
{background:'#FFE4C4',color:'#606266'}">
...
@@ -119,10 +117,7 @@ export default {
...
@@ -119,10 +117,7 @@ export default {
opinionData
:
[],
opinionData
:
[],
reportDetailList
:
[],
reportDetailList
:
[],
sceneName
:
''
,
sceneName
:
''
,
validateList
:
[
validateList
:
[],
{
check
:
'
name
'
,
comparator
:
'
eq
'
,
expect
:
'
zhansan
'
},
{
check
:
'
age
'
,
comparator
:
'
eq
'
,
expect
:
'
18
'
}
],
isShowTable
:
false
,
isShowTable
:
false
,
totalElapsedTime
:
''
,
totalElapsedTime
:
''
,
totalPass
:
''
,
totalPass
:
''
,
...
@@ -132,7 +127,6 @@ export default {
...
@@ -132,7 +127,6 @@ export default {
},
},
created
()
{
created
()
{
this
.
$bus
.
$off
(
'
reportDetail
'
).
$on
(
'
reportDetail
'
,
(
row
)
=>
{
this
.
$bus
.
$off
(
'
reportDetail
'
).
$on
(
'
reportDetail
'
,
(
row
)
=>
{
// console.log('参数信息', row)
this
.
queryReportDetail
.
namespace
=
row
.
namespace
this
.
queryReportDetail
.
namespace
=
row
.
namespace
this
.
queryReportDetail
.
batch
=
row
.
batch
this
.
queryReportDetail
.
batch
=
row
.
batch
this
.
sceneName
=
row
.
sceneName
this
.
sceneName
=
row
.
sceneName
...
@@ -204,8 +198,7 @@ export default {
...
@@ -204,8 +198,7 @@ export default {
item
[
'
response
'
]
=
item
[
'
response
'
]
item
[
'
response
'
]
=
item
[
'
response
'
]
item
[
'
elapsedTime
'
]
=
item
[
'
elapsedTime
'
]
/
1000
item
[
'
elapsedTime
'
]
=
item
[
'
elapsedTime
'
]
/
1000
if
(
item
[
'
validate
'
]
!==
'
[]
'
)
{
if
(
item
[
'
validate
'
]
!==
'
[]
'
)
{
console
.
log
(
'
666
'
,
item
[
'
validate
'
].
length
)
this
.
validateList
=
JSON
.
parse
(
item
[
'
validate
'
])
this
.
validateList
=
item
[
'
validate
'
]
this
.
isShowTable
=
true
this
.
isShowTable
=
true
}
}
})
})
...
...
src/views/auto/ReportList.vue
View file @
ca4cddfe
...
@@ -14,7 +14,11 @@
...
@@ -14,7 +14,11 @@
<el-button
type=
"primary"
style=
"margin-left:10px"
icon=
"el-icon-search"
@
click=
"queryData"
>
查询
</el-button>
<el-button
type=
"primary"
style=
"margin-left:10px"
icon=
"el-icon-search"
@
click=
"queryData"
>
查询
</el-button>
</div>
</div>
<el-table
:data=
"reportList"
border
style=
"width: 100%;margin-top:20px"
>
<el-table
:data=
"reportList"
border
style=
"width: 100%;margin-top:20px"
>
<el-table-column
type=
'index'
width=
"50px"
></el-table-column>
<el-table-column
type=
'index'
width=
"50px"
>
<template
slot-scope=
"scope"
>
<span>
{{
(
queryReportInfo
.
pageNum
-
1
)
*
queryReportInfo
.
pageSize
+
scope
.
$index
+
1
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"sceneName"
label=
"场景名称"
width=
"200px"
></el-table-column>
<el-table-column
prop=
"sceneName"
label=
"场景名称"
width=
"200px"
></el-table-column>
<el-table-column
prop=
"projectName"
label=
"项目名称"
width=
"150px"
></el-table-column>
<el-table-column
prop=
"projectName"
label=
"项目名称"
width=
"150px"
></el-table-column>
<el-table-column
prop=
"namespace"
label=
"运行环境"
width=
"150px"
></el-table-column>
<el-table-column
prop=
"namespace"
label=
"运行环境"
width=
"150px"
></el-table-column>
...
@@ -68,7 +72,6 @@ export default {
...
@@ -68,7 +72,6 @@ export default {
this
.
getProjectList
()
this
.
getProjectList
()
this
.
getReportList
()
this
.
getReportList
()
this
.
$bus
.
$off
(
'
reportmsg
'
).
$on
(
'
reportmsg
'
,
(
row
)
=>
{
this
.
$bus
.
$off
(
'
reportmsg
'
).
$on
(
'
reportmsg
'
,
(
row
)
=>
{
// console.log('参数信息', row)
// 下拉框赋值
// 下拉框赋值
this
.
projectId
=
row
.
projectName
this
.
projectId
=
row
.
projectName
this
.
sceneId
=
row
.
name
this
.
sceneId
=
row
.
name
...
@@ -111,7 +114,6 @@ export default {
...
@@ -111,7 +114,6 @@ export default {
queryReportList
()
{
queryReportList
()
{
this
.
queryReportInfo
.
projectId
=
this
.
projectId
this
.
queryReportInfo
.
projectId
=
this
.
projectId
this
.
queryReportInfo
.
sceneId
=
this
.
sceneId
this
.
queryReportInfo
.
sceneId
=
this
.
sceneId
// console.log('参数信息6666', this.queryReportInfo)
this
.
queryReportInfo
.
namespace
=
window
.
sessionStorage
.
getItem
(
'
env
'
)
this
.
queryReportInfo
.
namespace
=
window
.
sessionStorage
.
getItem
(
'
env
'
)
getReportList
(
this
.
queryReportInfo
).
then
((
resp
)
=>
{
getReportList
(
this
.
queryReportInfo
).
then
((
resp
)
=>
{
this
.
reportList
=
resp
.
data
.
data
.
list
this
.
reportList
=
resp
.
data
.
data
.
list
...
...
src/views/auto/SceneCaseDetail.vue
View file @
ca4cddfe
...
@@ -42,8 +42,6 @@ export default {
...
@@ -42,8 +42,6 @@ export default {
data
()
{
data
()
{
return
{
return
{
sceneCaseForm
:
{
sceneCaseForm
:
{
// moduleFrom: '',
// interfaceFrom: '',
caseDetail
:
[]
caseDetail
:
[]
},
},
moduleFrom
:
{},
moduleFrom
:
{},
...
@@ -78,12 +76,10 @@ export default {
...
@@ -78,12 +76,10 @@ export default {
getModelList
()
{
getModelList
()
{
getModulList
(
this
.
moduleInfo
).
then
((
resp
)
=>
{
getModulList
(
this
.
moduleInfo
).
then
((
resp
)
=>
{
this
.
modelList
=
resp
.
data
.
data
.
list
this
.
modelList
=
resp
.
data
.
data
.
list
console
.
log
(
'
列表信息
'
,
this
.
modelList
)
})
})
},
},
// 模块下拉框改变事件
// 模块下拉框改变事件
selectChangeModel
()
{
selectChangeModel
()
{
console
.
log
(
'
下拉款信息
'
,
this
.
sceneCaseForm
.
moduleFrom
)
this
.
interfaceInfo
.
moduleId
=
this
.
moduleFrom
.
id
this
.
interfaceInfo
.
moduleId
=
this
.
moduleFrom
.
id
this
.
sceneCaseForm
.
moduleId
=
this
.
moduleFrom
.
id
this
.
sceneCaseForm
.
moduleId
=
this
.
moduleFrom
.
id
interfaceDetailList
(
this
.
interfaceInfo
).
then
((
resp
)
=>
{
interfaceDetailList
(
this
.
interfaceInfo
).
then
((
resp
)
=>
{
...
...
src/views/auto/SceneList.vue
View file @
ca4cddfe
...
@@ -8,11 +8,14 @@
...
@@ -8,11 +8,14 @@
<el-button
type=
"primary"
style=
"margin-left:10px"
icon=
"el-icon-circle-plus"
@
click=
"DialogVisible = true"
>
新增
</el-button>
<el-button
type=
"primary"
style=
"margin-left:10px"
icon=
"el-icon-circle-plus"
@
click=
"DialogVisible = true"
>
新增
</el-button>
</div>
</div>
<el-table
:data=
"sceneList"
border
style=
"width: 100%;margin-top:20px"
>
<el-table
:data=
"sceneList"
border
style=
"width: 100%;margin-top:20px"
>
<el-table-column
type=
'index'
width=
"50px"
></el-table-column>
<el-table-column
type=
'index'
width=
"50px"
>
<template
slot-scope=
"scope"
>
<span>
{{
(
queryModuleInfo
.
pageNum
-
1
)
*
queryModuleInfo
.
pageSize
+
scope
.
$index
+
1
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"name"
label=
"场景名称"
width=
"200px"
></el-table-column>
<el-table-column
prop=
"name"
label=
"场景名称"
width=
"200px"
></el-table-column>
<el-table-column
prop=
"projectName"
label=
"项目名称"
width=
"200px"
></el-table-column>
<el-table-column
prop=
"projectName"
label=
"项目名称"
width=
"200px"
></el-table-column>
<el-table-column
prop=
"createTime"
label=
"创建时间"
width=
"200px"
></el-table-column>
<el-table-column
prop=
"createTime"
label=
"创建时间"
width=
"200px"
></el-table-column>
<!--
<el-table-column
prop=
"updateTime"
label=
"修改时间"
width=
"200px"
></el-table-column>
-->
<el-table-column
label=
"操作"
>
<el-table-column
label=
"操作"
>
<slot
slot-scope=
"scope"
>
<slot
slot-scope=
"scope"
>
<el-button
type=
"success"
size=
"medium"
icon=
"el-icon-link"
@
click=
"executeSceneFrom(scope.row)"
style=
"width:80px;margin-left:1px"
>
执行
</el-button>
<el-button
type=
"success"
size=
"medium"
icon=
"el-icon-link"
@
click=
"executeSceneFrom(scope.row)"
style=
"width:80px;margin-left:1px"
>
执行
</el-button>
...
@@ -87,12 +90,12 @@ export default {
...
@@ -87,12 +90,12 @@ export default {
return
{
return
{
queryModuleInfo
:
{
queryModuleInfo
:
{
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
2
0
,
pageSize
:
1
0
,
sceneName
:
''
sceneName
:
''
},
},
queryProjectList
:
{
queryProjectList
:
{
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
2
0
pageSize
:
10
0
},
},
sceneList
:
[],
sceneList
:
[],
totalNum
:
0
,
totalNum
:
0
,
...
...
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