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
c2158393
Commit
c2158393
authored
May 11, 2024
by
mengzixuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(标准库管理): dialog添加检验项目字段
parent
0ae604a7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
13 deletions
+43
-13
SchemeView.vue
...ing/carTest/execution-test-plan/components/SchemeView.vue
+8
-8
Tixidialog.vue
src/views/setting/standard/components/Tixidialog.vue
+26
-2
index.vue
src/views/setting/useCaseLibrary/index.vue
+9
-3
No files found.
src/views/processing/carTest/execution-test-plan/components/SchemeView.vue
View file @
c2158393
...
...
@@ -120,14 +120,14 @@
<collapse-item
v-for=
"(item, key) in model"
:key=
"key"
:name=
"item.
chapt
er"
:name=
"item.
serial_numb
er"
>
<span
slot=
"title"
style=
"width: 100%"
>
<div
class=
"standard-box"
>
<div
class=
"standard-left"
>
<div
class=
"standard-title"
>
<div
class=
"standard"
>
标准要求:
</div>
{{ item.
chapter + item.text
}}
{{ item.
serial_number + item.requirements
}}
</div>
</div>
<!-- <div class="standard-result">
...
...
@@ -146,19 +146,19 @@
<th>
对应输入
</th>
<th
class=
"investigate-result"
>
测试结果
</th>
</tr>
<
template
v-for=
"(v, k) in item.
testCaseL
ist"
>
<
template
v-for=
"(v, k) in item.
case_result_l
ist"
>
<tr
:key=
"k"
>
<td>
{{
v
.
testS
cenario
}}
{{
v
.
s
cenario
}}
</td>
<td>
{{
v
.
test
Scenario
}}
{{
v
.
test
_type
}}
</td>
<td>
{{
v
.
usecaseNo
}}
{{
v
.
serial_number
}}
</td>
<td>
{{
v
.
testScenario
}}
{{
v
.
name
}}
</td>
<td></td>
<td
align=
"center"
class=
"investigate-result"
>
...
...
@@ -236,7 +236,7 @@ export default {
/** 全部展开 */
openAll
()
{
this
.
activeNames
=
this
.
model
.
map
(
i
=>
{
return
i
.
chapt
er
return
i
.
serial_numb
er
})
},
/** 全部收起 */
...
...
src/views/setting/standard/components/Tixidialog.vue
View file @
c2158393
...
...
@@ -163,6 +163,20 @@ export default {
{},
()
=>
{
this
.
dialogManger
.
dialogVisible
=
true
const
dictList
=
this
.
model
.
dictList
if
(
dictList
.
length
>
0
)
{
dictList
.
forEach
((
item
,
index
)
=>
{
this
.
inspectionItemList
.
forEach
((
item2
,
index2
)
=>
{
if
(
item2
.
value
===
item
.
dictCode
)
{
item2
.
check
=
true
}
})
})
}
else
{
this
.
inspectionItemList
.
forEach
((
item
,
index
)
=>
{
item
.
check
=
false
})
}
},
()
=>
{
this
.
$emit
(
'refresh'
)
...
...
@@ -175,7 +189,8 @@ export default {
},
methods
:
{
handleInspectionItem
(
item
)
{
console
.
log
(
'字典'
,
item
)
// console.log('字典', item)
item
.
check
=
!
item
.
check
},
/** 获取检验项目字典数据 */
getInspectionItemDict
()
{
...
...
@@ -193,6 +208,9 @@ export default {
},
handleClose
()
{
this
.
model
.
reset
()
this
.
inspectionItemList
.
forEach
((
item
,
index
)
=>
{
item
.
check
=
false
})
this
.
dialogManger
.
dialogEditId
=
null
this
.
dialogManger
.
dialogVisible
=
false
// this.$emit('close')
...
...
@@ -205,11 +223,17 @@ export default {
// console.log('体系审查')
// }
// })
this
.
model
.
dictList
=
[]
this
.
$refs
[
'form'
].
validate
(
valid
=>
{
if
(
valid
)
{
console
.
log
(
'表单验证通过'
)
this
.
inspectionItemList
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
check
===
true
)
{
this
.
model
.
dictList
.
push
({
dictCode
:
item
.
value
})
}
})
this
.
model
.
save
(
()
=>
{
this
.
model
.
dictList
=
[]
this
.
$message
.
success
(
'保存成功'
)
this
.
$emit
(
'refresh'
)
this
.
handleClose
()
...
...
src/views/setting/useCaseLibrary/index.vue
View file @
c2158393
...
...
@@ -10,7 +10,7 @@
>
<el-form-item
prop=
"status"
>
<el-select
v-model=
"queryParams.
testScenarioId
"
v-model=
"queryParams.
scenario
"
placeholder=
"请选择测试场景"
clearable
>
...
...
@@ -26,7 +26,7 @@
</el-form-item>
<el-form-item
prop=
"status"
>
<el-select
v-model=
"queryParams.
testTypeI
d"
v-model=
"queryParams.
metho
d"
placeholder=
"请选择测试方法"
clearable
>
...
...
@@ -141,6 +141,8 @@ export default {
queryParams
:
{
offset
:
0
,
limit
:
10
,
scenario
:
''
,
method
:
''
,
searchKeywords
:
''
},
total
:
0
,
...
...
@@ -228,7 +230,11 @@ export default {
field
:
this
.
orderBy
.
field
,
order
:
this
.
orderBy
.
order
},
search
:
this
.
queryParams
.
searchKeywords
searchFields
:
{
name
:
this
.
queryParams
.
searchKeywords
,
scenario
:
this
.
queryParams
.
scenario
,
method
:
this
.
queryParams
.
method
}
}
listTestCase
(
data
).
then
(
res
=>
{
this
.
tableData
=
res
.
data
.
useCases
...
...
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