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
dc6b1449
Commit
dc6b1449
authored
Mar 14, 2024
by
mzx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(确认试验方案): 页面布局调整
parent
347c1f9c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
129 additions
and
212 deletions
+129
-212
index.vue
src/views/processing/carTest/confirmation-test/index.vue
+129
-212
No files found.
src/views/processing/carTest/confirmation-test/index.vue
View file @
dc6b1449
...
@@ -47,7 +47,7 @@
...
@@ -47,7 +47,7 @@
<div
class=
"message-list"
>
<div
class=
"message-list"
>
<div
class=
"message-box"
style=
"background-color: #2eba3c"
>
<div
class=
"message-box"
style=
"background-color: #2eba3c"
>
<div
class=
"message-detail"
>
<div
class=
"message-detail"
>
<div
class=
"detail-title"
>
审查细则
(条)
</div>
<div
class=
"detail-title"
>
测试用例
(条)
</div>
<div
class=
"detail-num mt10"
>
<div
class=
"detail-num mt10"
>
{{
model
.
carReviewTask
.
details
}}
{{
model
.
carReviewTask
.
details
}}
</div>
</div>
...
@@ -61,9 +61,9 @@
...
@@ -61,9 +61,9 @@
</div>
</div>
<div
class=
"message-box"
style=
"background-color: #477bba"
>
<div
class=
"message-box"
style=
"background-color: #477bba"
>
<div
class=
"message-detail"
>
<div
class=
"message-detail"
>
<div
class=
"detail-title"
>
审查细则符合率(%
)
</div>
<div
class=
"detail-title"
>
标准条款(条
)
</div>
<div
class=
"detail-num mt10"
>
<div
class=
"detail-num mt10"
>
{{
model
.
carReviewTask
.
detailsPass
}}
%
{{
model
.
carReviewTask
.
detailsPass
}}
</div>
</div>
</div>
</div>
<svg-icon
<svg-icon
...
@@ -75,9 +75,9 @@
...
@@ -75,9 +75,9 @@
</div>
</div>
<div
class=
"message-box"
style=
"background-color: #eca740"
>
<div
class=
"message-box"
style=
"background-color: #eca740"
>
<div
class=
"message-detail"
>
<div
class=
"message-detail"
>
<div
class=
"detail-title"
>
标准条款(条
)
</div>
<div
class=
"detail-title"
>
测试通过率(%
)
</div>
<div
class=
"detail-num mt10"
>
<div
class=
"detail-num mt10"
>
{{
model
.
carReviewTask
.
standards
}}
{{
model
.
carReviewTask
.
standards
}}
%
</div>
</div>
</div>
</div>
<svg-icon
<svg-icon
...
@@ -89,9 +89,9 @@
...
@@ -89,9 +89,9 @@
</div>
</div>
<div
class=
"message-box"
style=
"background-color: #47baba"
>
<div
class=
"message-box"
style=
"background-color: #47baba"
>
<div
class=
"message-detail"
>
<div
class=
"message-detail"
>
<div
class=
"detail-title"
>
标准条款通过率
</div>
<div
class=
"detail-title"
>
测试通过(个)
</div>
<div
class=
"detail-num mt10"
>
<div
class=
"detail-num mt10"
>
{{
model
.
carReviewTask
.
standardsPass
}}
%
{{
model
.
carReviewTask
.
standardsPass
}}
</div>
</div>
</div>
</div>
<svg-icon
<svg-icon
...
@@ -103,7 +103,7 @@
...
@@ -103,7 +103,7 @@
</div>
</div>
<div
class=
"message-box"
style=
"background-color: #6c47ba"
>
<div
class=
"message-box"
style=
"background-color: #6c47ba"
>
<div
class=
"message-detail"
>
<div
class=
"message-detail"
>
<div
class=
"detail-title"
>
参与审查人数(人
)
</div>
<div
class=
"detail-title"
>
测试未通过(个
)
</div>
<div
class=
"detail-num mt10"
>
<div
class=
"detail-num mt10"
>
{{
model
.
carReviewTask
.
person
}}
{{
model
.
carReviewTask
.
person
}}
</div>
</div>
...
@@ -119,106 +119,63 @@
...
@@ -119,106 +119,63 @@
</div>
</div>
</div>
</div>
<!--
审查表单
概要-->
<!--
测试情况
概要-->
<div>
<div>
<div
class=
"form-review-questionnaire"
>
<div
class=
"form-review-questionnaire"
>
<div
class=
"title-display"
>
<div
class=
"title-display"
>
<span
class=
"title-i"
></span>
<span
class=
"title-i"
></span>
<span
class=
"title-content"
>
审查表单概要
</span>
<span
class=
"title-content"
>
测试情况概要
</span>
<div
class=
"control-btns"
>
<div
class=
"control-btn"
@
click=
"openAll()"
>
<icon-park
type=
"down-c"
theme=
"outline"
size=
"16"
style=
"margin-right: 5px"
fill=
"#303133"
/>
全部展开
</div>
<div
class=
"control-btn"
@
click=
"closeAll()"
>
<icon-park
type=
"up-c"
theme=
"outline"
size=
"16"
style=
"margin-right: 5px"
fill=
"#303133"
/>
全部收起
</div>
</div>
</div>
</div>
<!--审查表单概要-->
<!--审查表单概要-->
<collapse
v-model=
"activeNames"
class=
"mt10"
>
<collapse-item
v-for=
"(item, key) in model.carReviewTask.standard"
:key=
"key"
:name=
"item.chapter"
>
<span
slot=
"title"
style=
"width: 100%"
>
<div
class=
"standard-box"
>
<div
class=
"standard-left"
>
<div
class=
"standard"
>
标准:
</div>
<div
class=
"standard-title"
>
{{
item
.
chapter
+
item
.
text
}}
</div>
</div>
<div
class=
"standard-result"
>
审查结果:
<span
v-if=
"item.passed == 1"
class=
"green"
>
符合
</span>
<span
v-else
class=
"orange"
>
不符合
</span>
</div>
</div>
</span>
<table
class=
"table"
>
<table
class=
"table"
>
<col
style=
"width: 100px"
/>
<thead>
<tr>
<tr>
<th>
审查要点
</th>
<th>
章节号
</th>
<th>
审查细则
</th>
<th>
标准技术要求
</th>
<th
class=
"investigate-result"
>
审查结果
</th>
<th>
标准测试方法
</th>
<th
class=
"written-by"
>
填写人
</th>
<th>
测试场景
</th>
<th>
测试类型
</th>
<th>
用例编号
</th>
<th>
测试结果
</th>
</tr>
</tr>
<template
v-for=
"(keyPoint, keyPointKey) in item.keyPointList"
>
</thead>
<tr
:key=
"keyPointKey"
>
<tbody>
<td
:rowspan=
"keyPoint.reviewDetailsList.length + 1"
>
<!-- 循环遍历 keyPointList -->
{{
keyPoint
.
text
}}
<template
v-for=
"(i, PointIndex) in tableData.keyPointList"
>
<tr
:key=
"'PointIndex1' + PointIndex"
>
<td
align=
"center"
:rowspan=
"getRows(i)"
>
{{
'7.1.1'
}}
</td>
<td
align=
"center"
:rowspan=
"getRows(i)"
>
{{
i
.
text
}}
</td>
<td
align=
"center"
:rowspan=
"getRows(i)"
>
{{
i
.
text
}}
</td>
</td>
</tr>
</tr>
<template
<!-- 循环遍历 reviewDetailsList -->
v-for=
"(
<template
v-for=
"(v, reviewDetailIndex) in i.reviewDetailsList"
>
reviewDetail, reviewDetailKey
<tr
) in keyPoint.reviewDetailsList"
:key=
"'reviewDetailIndex' + PointIndex + reviewDetailIndex"
>
<tr
:key=
"reviewDetailKey"
>
<td
align=
"center"
>
{{
reviewDetail
.
text
}}
</td>
<td
align=
"center"
class=
"investigate-result"
>
<el-tag
v-if=
"reviewDetail.result.passed === 1"
size=
"medium"
type=
"success"
>
符合
</el-tag
>
<el-tag
v-if=
"reviewDetail.result.passed === 0"
size=
"medium"
type=
"danger"
>
不符合
</el-tag
>
>
<td
align=
"center"
>
{{
'测试场景'
}}
</td>
</td>
<td
align=
"center"
class=
"written-by
"
>
<td
align=
"center
"
>
{{
{{
'测试类型'
}}
reviewDetail
.
result
</td>
?
reviewDetail
.
result
.
userName
<td
align=
"center"
>
?
reviewDetail
.
result
.
userName
{{
'用例编号'
}}
:
'__'
</td>
:
'__'
<td
align=
"center"
>
}}
{{
'测试结果'
}}
</td>
</td>
</tr>
</tr>
</
template
>
</
template
>
</template>
</template>
</tbody>
</table>
</table>
</collapse-item>
</collapse>
</div>
</div>
<!--签字确认-->
<!--签字确认-->
<div
class=
"form-signature-confirmation"
>
<div
class=
"form-signature-confirmation"
>
...
@@ -265,59 +222,27 @@
...
@@ -265,59 +222,27 @@
</template>
</template>
<!--js逻辑-->
<!--js逻辑-->
<
script
>
<
script
>
import
{
checkTaskDetail
,
carTaskSubmit
,
getBySubtaskId
}
from
'@/api/task/task'
import
collapse
from
'@/components/Collapse/collapse'
import
collapseItem
from
'@/components/Collapse/collapse-item'
import
routerMixins
from
'@/mixins/router'
import
routerMixins
from
'@/mixins/router'
import
{
getRows
,
getRows2
}
from
'../../../../utils/reviewDetailsTable'
import
{
listInspection
}
from
'../../../../api/setting/standardTerms'
export
default
{
export
default
{
name
:
'Index'
,
name
:
'Index'
,
components
:
{
collapse
:
collapse
,
'collapse-item'
:
collapseItem
},
dicts
:
[
'test_cartype_type'
],
dicts
:
[
'test_cartype_type'
],
mixins
:
[
routerMixins
],
mixins
:
[
routerMixins
],
data
()
{
data
()
{
return
{
return
{
isShow
:
true
,
tableData
:
[]
,
task
:
{},
task
:
{},
auditRequirement
:
0
,
testScenarioList
:
[
{
value
:
0
,
label
:
'TBOX-蜂窝以太网接口'
,
check
:
false
},
{
value
:
1
,
label
:
'WiFi AP接口'
,
check
:
false
},
{
value
:
2
,
label
:
'WiFi Client接口'
,
check
:
false
},
{
value
:
3
,
label
:
'充电以太网接口'
,
check
:
false
},
{
value
:
4
,
label
:
'CAN 诊断接口(OBD)'
,
check
:
false
},
{
value
:
5
,
label
:
'以太网诊断接口(OBD)'
,
check
:
false
},
{
value
:
6
,
label
:
'车载摄像头以太网接口(无线)'
,
check
:
false
},
{
value
:
7
,
label
:
'第三方应用软件'
,
check
:
false
},
{
value
:
8
,
label
:
'远程控车应用'
,
check
:
false
},
{
value
:
9
,
label
:
'USB接口'
,
check
:
false
},
{
value
:
10
,
label
:
'XCB标定'
,
check
:
false
},
{
value
:
11
,
label
:
'CCP标定'
,
check
:
false
},
{
value
:
12
,
label
:
'安全启动'
,
check
:
false
},
{
value
:
13
,
label
:
'远程控车'
,
check
:
false
},
{
value
:
14
,
label
:
'V2X'
,
check
:
false
},
{
value
:
15
,
label
:
'BT'
,
check
:
false
},
{
value
:
16
,
label
:
'BLE'
,
check
:
false
},
{
value
:
17
,
label
:
'NFC'
,
check
:
false
},
{
value
:
18
,
label
:
'射频钥匙'
,
check
:
false
},
{
value
:
19
,
label
:
'软件升级'
,
check
:
false
},
{
value
:
20
,
label
:
'ECU固体'
,
check
:
false
}
],
checkTestScenarioList
:
[],
model
:
{
model
:
{
carReviewTask
:
{},
carReviewTask
:
{},
reviewSceneChangeTasks
:
{},
reviewSceneChangeTasks
:
{},
detailsList
:
[]
detailsList
:
[]
},
},
columns
:
[],
ruleForm
:
{
ruleForm
:
{
enterpriseLeader
:
''
,
enterpriseLeader
:
''
,
inspectionLeader
:
''
,
inspectionLeader
:
''
,
result
:
[]
result
:
[]
},
},
activeNames
:
[],
rules
:
{
rules
:
{
enterpriseLeader
:
[
enterpriseLeader
:
[
{
required
:
true
,
message
:
'请输入车企负责人'
,
trigger
:
'blur'
}
{
required
:
true
,
message
:
'请输入车企负责人'
,
trigger
:
'blur'
}
...
@@ -337,96 +262,88 @@ export default {
...
@@ -337,96 +262,88 @@ export default {
// await this.getTask()
// await this.getTask()
// this.openAll()
// this.openAll()
// },
// },
mounted
()
{
this
.
init
()
},
methods
:
{
methods
:
{
/**
getRows
,
* 获取任务详情
getRows2
,
*/
/** 获取体系审查、车型审查检验内容
*/
async
getTask
()
{
init
()
{
this
.
loading
=
true
this
.
loading
=
true
const
res
=
await
checkTaskDetail
({
listInspection
({
id
:
'1744181159757221888'
}).
then
(
res
=>
{
taskId
:
this
.
taskId
this
.
tableData
=
res
.
data
})
this
.
loading
=
false
this
.
loading
=
false
if
(
res
.
code
===
200
)
{
})
this
.
model
=
res
.
data
await
this
.
getTaskDetail
()
if
(
this
.
model
.
carReviewTask
.
imagesUrl
)
{
const
imgs
=
this
.
model
.
carReviewTask
.
imagesUrl
.
split
(
','
)
this
.
ruleForm
.
enterpriseLeader
?
process
.
env
.
VUE_APP_IMAGE_API
+
imgs
[
0
]
:
''
this
.
ruleForm
.
inspectionLeader
?
process
.
env
.
VUE_APP_IMAGE_API
+
imgs
[
1
]
:
''
}
}
else
{
this
.
$modal
.
msgError
(
res
.
msg
)
}
},
},
/**
/**
* 获取任务详情
* 获取任务详情
*/
*/
async
getTaskDetail
()
{
// async getTask() {
const
result
=
await
getBySubtaskId
({
// this.loading = true
id
:
this
.
taskId
// const res = await checkTaskDetail({
})
// taskId: this.taskId
if
(
result
.
code
===
200
)
{
// })
this
.
task
=
result
.
data
// this.loading = false
}
// if (res.code === 200) {
},
// this.model = res.data
// await this.getTaskDetail()
// if (this.model.carReviewTask.imagesUrl) {
// const imgs = this.model.carReviewTask.imagesUrl.split(',')
// this.ruleForm.enterpriseLeader
// ? process.env.VUE_APP_IMAGE_API + imgs[0]
// : ''
// this.ruleForm.inspectionLeader
// ? process.env.VUE_APP_IMAGE_API + imgs[1]
// : ''
// }
// } else {
// this.$modal.msgError(res.msg)
// }
// },
/**
* 获取任务详情
*/
// async getTaskDetail() {
// const result = await getBySubtaskId({
// id: this.taskId
// })
// if (result.code === 200) {
// this.task = result.data
// }
// },
/* 返回跳转*/
/* 返回跳转*/
goToProcessedReview
()
{
goToProcessedReview
()
{
// if (!this.ruleForm.enterpriseLeader) {
// this.ruleForm.taskId = this.taskId
// this.$message.error('请车企负责人签字')
// const formData = {
// return
// imagesUrl: [
// this.ruleForm.enterpriseLeader,
// this.ruleForm.inspectionLeader
// ],
// taskId: this.taskId
// }
// }
// if (!this.ruleForm.inspectionLeader) {
// carTaskSubmit(formData).then(res => {
// this.$message.error('请检验负责人签字')
// if (res.code === 200) {
// return
// this.$modal.msgSuccess('确认提交成功')
// this.$router.push({
// path: '/processing/unprocessed-review'
// })
// } else {
// this.$modal.msgError(res.msg)
// }
// }
this
.
ruleForm
.
taskId
=
this
.
taskId
// })
const
formData
=
{
imagesUrl
:
[
this
.
ruleForm
.
enterpriseLeader
,
this
.
ruleForm
.
inspectionLeader
],
taskId
:
this
.
taskId
}
carTaskSubmit
(
formData
).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
this
.
$modal
.
msgSuccess
(
'确认提交成功'
)
this
.
$router
.
push
({
path
:
'/processing/unprocessed-review'
})
}
else
{
this
.
$modal
.
msgError
(
res
.
msg
)
}
})
},
handleTestScenario
(
item
)
{
// 查看item.value在this.checkTestScenarioList里面存不存在
// 存在则删除
if
(
this
.
checkTestScenarioList
.
includes
(
item
.
value
))
{
this
.
checkTestScenarioList
.
splice
(
this
.
checkTestScenarioList
.
indexOf
(
item
.
label
),
1
)
item
.
check
=
false
}
else
{
item
.
check
=
true
this
.
checkTestScenarioList
.
push
(
item
.
value
)
}
console
.
log
(
'李斯特'
,
this
.
checkTestScenarioList
)
},
openAll
()
{
this
.
activeNames
=
this
.
model
.
carReviewTask
.
standard
.
map
(
i
=>
{
return
i
.
chapter
})
},
closeAll
()
{
this
.
activeNames
=
[]
}
}
}
}
}
}
</
script
>
</
script
>
<
style
scoped
>
.form-signature-confirmation
.img-item
.img
{
width
:
50%
!important
;
}
.table
{
margin-top
:
20px
;
}
.table
th
{
background-color
:
#f2f2f2
!important
;
}
</
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