Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
web
Project
Project
Details
Activity
Releases
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
中汽测评-信息安全测评系统
web
Commits
860c2d66
Commit
860c2d66
authored
Feb 21, 2024
by
mzx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试类型库管理、测试场景库管理接口对接
parent
edb23bcd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
177 additions
and
166 deletions
+177
-166
index.vue
src/views/setting/scene/index.vue
+88
-105
index.vue
src/views/setting/testType/index.vue
+89
-61
No files found.
src/views/setting/scene/index.vue
View file @
860c2d66
<
template
>
<
template
>
<page-standard>
<page-standard>
<div
class=
"container"
>
<div>
<el-form
<el-form
v-show=
"showSearch"
v-show=
"showSearch"
ref=
"queryForm"
ref=
"queryForm"
...
@@ -9,17 +11,22 @@
...
@@ -9,17 +11,22 @@
>
>
<el-form-item
prop=
"status"
>
<el-form-item
prop=
"status"
>
<el-select
<el-select
v-model=
"queryParams.ask
"
v-model=
"queryParams.standardClassification
"
placeholder=
"标准分类"
placeholder=
"标准分类"
clearable
clearable
style=
"width: 100%"
style=
"width: 100%"
@
change=
"loadData"
>
>
<el-option
v-for=
"dict in dict.type.sys_detailed_classification"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
prop=
"status"
>
<el-form-item
prop=
"status"
>
<el-input
<el-input
v-model=
"queryParams.deptName
"
v-model=
"queryParams.testScenario
"
placeholder=
"测试场景"
placeholder=
"测试场景"
clearable
clearable
@
keyup
.
enter
.
native=
"handleQuery"
@
keyup
.
enter
.
native=
"handleQuery"
...
@@ -42,13 +49,14 @@
...
@@ -42,13 +49,14 @@
>
>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</div>
<el-row
:gutter=
"10"
class=
"mb10"
>
<div
>
<right-toolbar
<right-toolbar
:show-search
.
sync=
"showSearch"
:show-search
.
sync=
"showSearch"
@
queryTable=
"loadData"
@
queryTable=
"loadData"
></right-toolbar>
></right-toolbar>
</el-row>
</div>
</div>
<el-table
<el-table
v-if=
"refreshTable"
v-if=
"refreshTable"
v-loading=
"loading"
v-loading=
"loading"
...
@@ -65,82 +73,48 @@
...
@@ -65,82 +73,48 @@
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
label=
"标准分类"
label=
"标准分类"
prop=
"
type
"
prop=
"
standardClassification
"
width=
"240"
width=
"240"
sortable
sortable
align=
"left"
align=
"left"
>
>
<
template
slot-scope=
"scope"
>
<div
v-for=
"dict in classFicationList"
:key=
"dict.dictValue"
>
<div
v-if=
"dict.dictValue == scope.row.standardClassification"
style=
"display: flex"
>
{{
dict
.
dictLabel
}}
</div>
</div>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
label=
"测试场景"
label=
"测试场景"
prop=
"
content
"
prop=
"
testScenario
"
min-width=
"200"
min-width=
"200"
sortable
sortable
align=
"left"
align=
"left"
>
>
</el-table-column>
</el-table-column>
<!-- <el-table-column-->
<!-- label="测试类型"-->
<!-- prop="testType"-->
<!-- min-width="200"-->
<!-- sortable-->
<!-- align="left"-->
<!-- >-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- label="更新人员"-->
<!-- prop="user"-->
<!-- min-width="200"-->
<!-- align="left"-->
<!-- >-->
<!-- </el-table-column>-->
<el-table-column
<el-table-column
label=
"入库时间"
label=
"入库时间"
prop=
"
creat
eTime"
prop=
"
storag
eTime"
width=
"200"
width=
"200"
align=
"left"
align=
"left"
sortable
sortable
>
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span>
{{
parseTime
(
scope
.
row
.
creat
eTime
)
}}
</span>
<span>
{{
parseTime
(
scope
.
row
.
storag
eTime
)
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<!-- <el-table-column-->
<!-- label="操作"-->
<!-- align="left"-->
<!-- width="160"-->
<!-- fixed="right"-->
<!-- class-name="fixed-width"-->
<!-- >-->
<!-- <template slot-scope="scope">-->
<!-- <el-button-->
<!-- v-hasPermi="['setting:scene:update']"-->
<!-- plain-->
<!-- size="mini"-->
<!-- type="text"-->
<!-- icon="el-icon-edit"-->
<!-- @click="handleUpdate(scope.row)"-->
<!-- >修改</el-button-->
<!-- >-->
<!-- <el-button-->
<!-- v-hasPermi="['setting:scene:delete']"-->
<!-- plain-->
<!-- size="mini"-->
<!-- type="text"-->
<!-- icon="el-icon-delete"-->
<!-- @click="handleDelete(scope.row)"-->
<!-- >删除</el-button-->
<!-- >-->
<!-- </template>-->
<!-- </el-table-column>-->
</el-table>
</el-table>
<pagination
<pagination
v-show=
"total > 0"
v-show=
"total > 0"
:total=
"total"
:total=
"total"
:page
.
sync=
"queryParams.page"
:page
.
sync=
"queryParams.page
Num
"
:limit
.
sync=
"queryParams.
s
ize"
:limit
.
sync=
"queryParams.
pageS
ize"
@
pagination=
"loadData"
@
pagination=
"loadData"
>
>
</pagination>
</pagination>
...
@@ -159,10 +133,10 @@ export default {
...
@@ -159,10 +133,10 @@ export default {
'yan-dialog'
:
dialog
'yan-dialog'
:
dialog
},
},
mixins
:
[
page
],
mixins
:
[
page
],
dicts
:
[
'sys_
scene_type
'
],
dicts
:
[
'sys_
detailed_classification
'
],
data
()
{
data
()
{
return
{
return
{
listUrl
:
'/s
cene-l
ist'
,
listUrl
:
'/s
ystem/scenario/getL
ist'
,
showSearch
:
true
,
showSearch
:
true
,
tableData
:
[],
tableData
:
[],
dialogManger
:
{
dialogManger
:
{
...
@@ -170,12 +144,9 @@ export default {
...
@@ -170,12 +144,9 @@ export default {
refreshList
:
false
,
refreshList
:
false
,
source
:
{}
source
:
{}
},
},
form
:
{
form
:
{}
ask
:
'1'
}
}
}
},
},
watch
:
{
watch
:
{
'dialogManger.refreshList'
(
val
)
{
'dialogManger.refreshList'
(
val
)
{
if
(
val
)
{
if
(
val
)
{
...
@@ -184,13 +155,18 @@ export default {
...
@@ -184,13 +155,18 @@ export default {
}
}
}
}
},
},
mounted
()
{
this
.
getDicts
(
'sys_detailed_classification'
).
then
(
response
=>
{
this
.
classFicationList
=
response
.
data
})
},
methods
:
{
methods
:
{
loadData
()
{
loadData
()
{
this
.
loading
=
true
this
.
loading
=
true
console
.
log
(
this
.
queryParams
)
console
.
log
(
this
.
queryParams
)
request
({
request
({
url
:
this
.
listUrl
,
url
:
this
.
listUrl
,
method
:
'
ge
t'
,
method
:
'
pos
t'
,
params
:
this
.
queryParams
params
:
this
.
queryParams
})
})
.
then
(
res
=>
{
.
then
(
res
=>
{
...
@@ -231,3 +207,10 @@ export default {
...
@@ -231,3 +207,10 @@ export default {
}
}
}
}
</
script
>
</
script
>
<
style
scoped
>
.container
{
display
:
flex
;
justify-content
:
space-between
;
height
:
50px
;
}
</
style
>
src/views/setting/testType/index.vue
View file @
860c2d66
<
template
>
<
template
>
<page-standard>
<page-standard>
<div
class=
"container"
>
<div>
<el-form
<el-form
v-show=
"showSearch"
v-show=
"showSearch"
ref=
"queryForm"
ref=
"queryForm"
...
@@ -9,17 +11,22 @@
...
@@ -9,17 +11,22 @@
>
>
<el-form-item
prop=
"status"
>
<el-form-item
prop=
"status"
>
<el-select
<el-select
v-model=
"queryParams.ask
"
v-model=
"queryParams.standardClassification
"
placeholder=
"标准分类"
placeholder=
"标准分类"
clearable
clearable
style=
"width: 100%"
style=
"width: 100%"
@
change=
"loadData"
>
>
<el-option
v-for=
"dict in dict.type.sys_detailed_classification"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
prop=
"status"
>
<el-form-item
prop=
"status"
>
<el-input
<el-input
v-model=
"queryParams.deptNam
e"
v-model=
"queryParams.testTyp
e"
placeholder=
"测试类型"
placeholder=
"测试类型"
clearable
clearable
@
keyup
.
enter
.
native=
"handleQuery"
@
keyup
.
enter
.
native=
"handleQuery"
...
@@ -42,13 +49,14 @@
...
@@ -42,13 +49,14 @@
>
>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</div>
<el-row
:gutter=
"10"
class=
"mb10"
>
<div
>
<right-toolbar
<right-toolbar
:show-search
.
sync=
"showSearch"
:show-search
.
sync=
"showSearch"
@
queryTable=
"loadData"
@
queryTable=
"loadData"
></right-toolbar>
></right-toolbar>
</el-row>
</div>
</div>
<el-table
<el-table
v-if=
"refreshTable"
v-if=
"refreshTable"
v-loading=
"loading"
v-loading=
"loading"
...
@@ -65,15 +73,25 @@
...
@@ -65,15 +73,25 @@
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
label=
"标准分类"
label=
"标准分类"
prop=
"
type
"
prop=
"
standardClassification
"
width=
"240"
width=
"240"
sortable
sortable
align=
"left"
align=
"left"
>
>
<
template
slot-scope=
"scope"
>
<div
v-for=
"dict in classFicationList"
:key=
"dict.dictValue"
>
<div
v-if=
"dict.dictValue == scope.row.standardClassification"
style=
"display: flex"
>
{{
dict
.
dictLabel
}}
</div>
</div>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
label=
"测试类型"
label=
"测试类型"
prop=
"
content
"
prop=
"
testType
"
min-width=
"200"
min-width=
"200"
sortable
sortable
align=
"left"
align=
"left"
...
@@ -82,13 +100,13 @@
...
@@ -82,13 +100,13 @@
<el-table-column
<el-table-column
label=
"入库时间"
label=
"入库时间"
prop=
"
creat
eTime"
prop=
"
storag
eTime"
width=
"200"
width=
"200"
align=
"left"
align=
"left"
sortable
sortable
>
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span>
{{
parseTime
(
scope
.
row
.
creat
eTime
)
}}
</span>
<span>
{{
parseTime
(
scope
.
row
.
storag
eTime
)
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
@@ -96,8 +114,8 @@
...
@@ -96,8 +114,8 @@
<pagination
<pagination
v-show=
"total > 0"
v-show=
"total > 0"
:total=
"total"
:total=
"total"
:page
.
sync=
"queryParams.page"
:page
.
sync=
"queryParams.page
Num
"
:limit
.
sync=
"queryParams.
s
ize"
:limit
.
sync=
"queryParams.
pageS
ize"
@
pagination=
"loadData"
@
pagination=
"loadData"
>
>
</pagination>
</pagination>
...
@@ -108,25 +126,28 @@ import page from '@/mixins/page'
...
@@ -108,25 +126,28 @@ import page from '@/mixins/page'
import
request
from
'@/utils/request'
import
request
from
'@/utils/request'
export
default
{
export
default
{
mixins
:
[
page
],
mixins
:
[
page
],
dicts
:
[
'sys_
scene_type
'
],
dicts
:
[
'sys_
detailed_classification
'
],
data
()
{
data
()
{
return
{
return
{
listUrl
:
'/scene-list'
,
classFicationList
:
undefined
,
listUrl
:
'/system/type/getList'
,
showSearch
:
true
,
showSearch
:
true
,
tableData
:
[],
tableData
:
[],
form
:
{
form
:
{}
ask
:
'1'
}
}
}
},
},
mounted
()
{
this
.
getDicts
(
'sys_detailed_classification'
).
then
(
response
=>
{
this
.
classFicationList
=
response
.
data
})
},
methods
:
{
methods
:
{
loadData
()
{
loadData
()
{
this
.
loading
=
true
this
.
loading
=
true
console
.
log
(
this
.
queryParams
)
console
.
log
(
this
.
queryParams
)
request
({
request
({
url
:
this
.
listUrl
,
url
:
this
.
listUrl
,
method
:
'
ge
t'
,
method
:
'
pos
t'
,
params
:
this
.
queryParams
params
:
this
.
queryParams
})
})
.
then
(
res
=>
{
.
then
(
res
=>
{
...
@@ -147,3 +168,10 @@ export default {
...
@@ -147,3 +168,10 @@ export default {
}
}
}
}
</
script
>
</
script
>
<
style
scoped
>
.container
{
display
:
flex
;
justify-content
:
space-between
;
height
:
50px
;
}
</
style
>
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