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
95d32c21
Commit
95d32c21
authored
Mar 22, 2024
by
mzx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(确认试验方案): 接口对接
parent
2053f598
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
85 additions
and
114 deletions
+85
-114
task.js
src/api/task/task.js
+12
-0
index.vue
src/views/processing/carTest/confirmation-test/index.vue
+71
-111
index.vue
src/views/processing/carTest/review-form/index.vue
+2
-3
No files found.
src/api/task/task.js
View file @
95d32c21
...
...
@@ -217,4 +217,16 @@ export function geTaskCase(data) {
data
})
}
/**
*提交确认表单
*/
export
function
taskImageSubmit
(
data
)
{
return
request
({
url
:
'/car/test/task/submit'
,
method
:
'post'
,
data
})
}
src/views/processing/carTest/confirmation-test/index.vue
View file @
95d32c21
...
...
@@ -15,7 +15,7 @@
<div
class=
"task-item"
>
<span
class=
"task-label"
>
任务编号:
</span>
<span
class=
"task-content"
>
{{
model
.
carReviewT
ask
.
taskNo
}}
{{
t
ask
.
taskNo
}}
</span>
</div>
<div
class=
"task-item"
>
...
...
@@ -33,12 +33,7 @@
<div
class=
"task-item"
>
<span
class=
"task-label"
>
任务状态:
</span>
<span
class=
"task-content"
>
{{
getDictData
(
dict
.
type
.
test_cartype_type
,
model
.
carReviewTask
.
taskStatus
)
}}
{{
getDictData
(
dict
.
type
.
task_test_status
,
task
.
taskStatus
)
}}
</span>
</div>
</div>
...
...
@@ -131,45 +126,53 @@
<col
style=
"width: 100px"
/>
<thead>
<tr>
<th>
章节号
</th>
<th
style=
"width: 100px"
>
章节号
</th>
<th>
标准技术要求
</th>
<th>
标准测试方法
</th>
<th>
测试场景
</th>
<th>
测试类型
</th>
<th>
用例编号
</th>
<th>
测试结果
</th>
<th>
用例名称
</th>
<th>
工具
</th>
<th>
对应输入
</th>
<th
style=
"width: 370px"
>
测试用例
</th>
</tr>
</thead>
<tbody>
<!-- 循环遍历 keyPointList -->
<template
v-for=
"(i, PointIndex) in tableData.keyPointList"
>
<template
v-for=
"(i, PointIndex) in tableData"
>
<tr
:key=
"'PointIndex1' + PointIndex"
>
<td
align=
"center"
:rowspan=
"getRows(i)"
>
{{
'7.1.1'
}}
<td
align=
"center"
:rowspan=
"getRows
3
(i)"
>
{{
i
.
chapter
}}
</td>
<td
align=
"center"
:rowspan=
"getRows(i)"
>
<td
align=
"center"
:rowspan=
"getRows
3
(i)"
>
{{
i
.
text
}}
</td>
<td
align=
"center"
:rowspan=
"getRows(i)"
>
{{
i
.
te
xt
}}
<td
align=
"center"
:rowspan=
"getRows
3
(i)"
>
{{
i
.
te
stMethod
}}
</td>
</tr>
<!-- 循环遍历 reviewDetailsList -->
<template
v-for=
"(v, reviewDetailIndex) in i.reviewDetailsList"
>
<tr
:key=
"'reviewDetailIndex' + PointIndex + reviewDetailIndex"
>
<td
align=
"center"
>
{{
'测试场景'
}}
<template
v-for=
"(v, testCaseIndex) in i.testCaseList"
>
<tr
:key=
"'testCaseIndex' + PointIndex + testCaseIndex"
>
<td
align=
"center"
rowspan=
"1"
>
{{
v
.
testScenario
}}
</td>
<td
align=
"center"
rowspan=
"1"
>
{{
v
.
testType
}}
</td>
<td
align=
"center"
rowspan=
"1"
>
{{
v
.
usecaseNo
}}
</td>
<td
align=
"center"
>
{{
'测试类型'
}}
<td
align=
"center"
rowspan=
"1"
>
{{
v
.
name
}}
</td>
<td
align=
"center"
>
{{
'用例编号'
}}
<td
align=
"center"
rowspan=
"1"
>
{{
v
.
tools
}}
</td>
<td
align=
"center"
>
{{
'测试结果'
}}
<td
align=
"center"
rowspan=
"1"
>
{{
v
.
input
}}
</td>
<td
align=
"center"
rowspan=
"1"
>
{{
v
.
description
}}
</td>
</tr>
</
template
>
...
...
@@ -223,11 +226,12 @@
<!--js逻辑-->
<
script
>
import
routerMixins
from
'@/mixins/router'
import
{
getRows
,
getRows2
}
from
'../../../../utils/reviewDetailsTable'
import
{
listInspection
}
from
'../../../../api/setting/standardTerms'
import
{
getRows3
}
from
'../../../../utils/reviewDetailsTable'
import
{
testDetail
}
from
'../../../../api/task/test'
import
{
getBySubtaskId
,
taskImageSubmit
}
from
'../../../../api/task/task'
export
default
{
name
:
'Index'
,
dicts
:
[
't
est_cartype_type
'
],
dicts
:
[
't
ask_test_status
'
],
mixins
:
[
routerMixins
],
data
()
{
return
{
...
...
@@ -243,95 +247,51 @@ export default {
inspectionLeader
:
''
,
result
:
[]
},
rules
:
{
enterpriseLeader
:
[
{
required
:
true
,
message
:
'请输入车企负责人'
,
trigger
:
'blur'
}
],
inspectionLeader
:
[
{
required
:
true
,
message
:
'请输入检验负责人'
,
trigger
:
'blur'
}
]
},
taskId
:
''
,
loading
:
false
}
},
// async mounted() {
// if (this.$route.query.id) {
// this.taskId = this.$route.query.id
// }
// await this.getTask()
// this.openAll()
// },
mounted
()
{
this
.
init
()
this
.
getTest
()
this
.
getTestDetail
()
},
methods
:
{
getRows
,
getRows2
,
/** 获取体系审查、车型审查检验内容 */
init
()
{
this
.
loading
=
true
listInspection
({
id
:
'1744181159757221888'
}).
then
(
res
=>
{
this
.
tableData
=
res
.
data
this
.
loading
=
false
})
},
/**
* 获取任务详情
*/
// async getTask() {
// this.loading = true
// const res = await checkTaskDetail({
// taskId: this.taskId
// })
// 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
// }
// },
getRows3
,
/* 返回跳转*/
goToProcessedReview
()
{
// this.ruleForm.taskId =
this.taskId
//
const formData = {
// this.ruleForm.taskId =
'1771093631118106626'
const
formData
=
{
// imagesUrl: [
// this.ruleForm.enterpriseLeader,
// this.ruleForm.inspectionLeader
// ],
// taskId: this.taskId
// }
// carTaskSubmit(formData).then(res => {
// if (res.code === 200) {
// this.$modal.msgSuccess('确认提交成功')
imagesUrl
:
[
'1'
,
'2'
],
taskId
:
'1771093631118106626'
}
taskImageSubmit
(
formData
).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
this
.
$modal
.
msgSuccess
(
'确认提交成功'
)
// this.$router.push({
// path: '/processing/unprocessed-review'
// })
// } else {
// this.$modal.msgError(res.msg)
// }
// })
}
else
{
this
.
$modal
.
msgError
(
res
.
msg
)
}
})
},
/** 获取任务详情 */
getTest
()
{
getBySubtaskId
({
id
:
this
.
$route
.
query
.
id
}).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
this
.
task
=
res
.
data
}
})
},
getTestDetail
()
{
this
.
loading
=
true
testDetail
({
taskId
:
this
.
$route
.
query
.
id
}).
then
(
res
=>
{
this
.
tableData
=
res
.
data
this
.
loading
=
false
})
}
}
}
...
...
src/views/processing/carTest/review-form/index.vue
View file @
95d32c21
...
...
@@ -139,7 +139,6 @@ export default {
detailsList
:
[]
},
task
:
{},
taskId
:
''
,
loading
:
false
}
},
...
...
@@ -150,7 +149,7 @@ export default {
methods
:
{
getRows3
,
getTest
()
{
getBySubtaskId
({
id
:
'1768527384203460609'
}).
then
(
res
=>
{
getBySubtaskId
({
id
:
this
.
$route
.
query
.
id
}).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
this
.
task
=
res
.
data
}
...
...
@@ -159,7 +158,7 @@ export default {
/** 获取任务详情 */
getTestDetail
()
{
this
.
loading
=
true
testDetail
({
taskId
:
'1768527384203460609'
}).
then
(
res
=>
{
testDetail
({
taskId
:
this
.
$route
.
query
.
id
}).
then
(
res
=>
{
this
.
tableData
=
res
.
data
this
.
loading
=
false
})
...
...
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