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
a7517071
Commit
a7517071
authored
Mar 28, 2024
by
jiaxu.yan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 70882
parent
b8f87242
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
329 additions
and
4 deletions
+329
-4
process.scss
src/assets/styles/process.scss
+2
-2
collapse-item.vue
src/components/Collapse/collapse-item.vue
+1
-2
index.vue
src/views/processing/carTest/source-record/index.vue
+319
-0
index.vue
src/views/processing/fileLibrary/index.vue
+7
-0
No files found.
src/assets/styles/process.scss
View file @
a7517071
...
@@ -89,7 +89,7 @@
...
@@ -89,7 +89,7 @@
display
:
flex
;
display
:
flex
;
justify-content
:
flex-start
;
justify-content
:
flex-start
;
align-items
:
center
;
align-items
:
center
;
width
:
calc
(
100%
-
100px
)
;
width
:
60vw
;
}
}
.standard-title
{
.standard-title
{
width
:
calc
(
70%
-
40px
);
width
:
calc
(
70%
-
40px
);
...
@@ -108,7 +108,7 @@
...
@@ -108,7 +108,7 @@
.standard-result
{
.standard-result
{
color
:
#303133
;
color
:
#303133
;
font-weight
:
bold
;
font-weight
:
bold
;
width
:
1
6
0px
;
width
:
1
0
0px
;
white-space
:
nowrap
;
white-space
:
nowrap
;
}
}
}
}
...
...
src/components/Collapse/collapse-item.vue
View file @
a7517071
...
@@ -124,8 +124,7 @@ export default {
...
@@ -124,8 +124,7 @@ export default {
.el-collapse-item__header
{
.el-collapse-item__header
{
background-color
:
#f2f2f2
!important
;
background-color
:
#f2f2f2
!important
;
height
:
40px
;
height
:
40px
;
list-style
:
40px
;
padding-left
:
13px
;
padding
:
0
13px
;
}
}
.el-collapse-item__content
{
.el-collapse-item__content
{
padding
:
0
!important
;
padding
:
0
!important
;
...
...
src/views/processing/carTest/source-record/index.vue
0 → 100644
View file @
a7517071
<
template
>
<!--查看审查问卷页面-->
<task-standard
v-loading=
"loading"
>
<div
slot=
"header-right"
>
<header-button
icon=
"arrow-left"
type=
"no-line"
@
click=
"goBack"
>
返回
</header-button>
</div>
<!--2-统计值-->
<div
class=
"main-content-style"
>
<!--任务编号,名称,单位-->
<div
class=
"task-box"
>
<div
class=
"task-header"
>
<div
class=
"task-item"
>
<span
class=
"task-label"
>
任务编号:
</span>
<span
class=
"task-content"
>
{{
task
.
taskNo
}}
</span>
</div>
<div
class=
"task-item"
>
<span
class=
"task-label"
>
任务名称:
</span>
<span
class=
"task-content"
>
{{
task
.
taskName
}}
</span>
</div>
<div
class=
"task-item"
>
<span
class=
"task-label"
>
委托单位:
</span>
<span
class=
"task-content"
>
{{
task
.
entrustedUnit
}}
</span>
</div>
<!--
<div
class=
"task-item"
>
-->
<!--
<span
class=
"task-label"
>
任务状态:
</span>
-->
<!--
<span
class=
"task-content"
>
-->
<!--
{{
getDictData
(
dict
.
type
.
task_test_status
,
task
.
taskStatus
)
}}
-->
<!--
</span>
-->
<!--
</div>
-->
</div>
<div
class=
"task-body"
>
<!--card统计值-->
<div
class=
"message-list"
>
<div
class=
"message-box"
style=
"background-color: #2eba3c"
>
<div
class=
"message-detail"
>
<div
class=
"detail-title"
>
测试用例(条)
</div>
<div
class=
"detail-num mt10"
>
{{
model
.
carReviewTask
.
details
}}
</div>
</div>
<svg-icon
class=
"message-icon"
width=
"64px"
height=
"64px"
icon-class=
"tag_shechaxize"
></svg-icon>
</div>
<div
class=
"message-box"
style=
"background-color: #477bba"
>
<div
class=
"message-detail"
>
<div
class=
"detail-title"
>
标准条款(条)
</div>
<div
class=
"detail-num mt10"
>
{{
model
.
carReviewTask
.
detailsPass
}}
</div>
</div>
<svg-icon
class=
"message-icon"
width=
"64px"
height=
"64px"
icon-class=
"tag_fuhelv"
></svg-icon>
</div>
<div
class=
"message-box"
style=
"background-color: #eca740"
>
<div
class=
"message-detail"
>
<div
class=
"detail-title"
>
测试通过率(%)
</div>
<div
class=
"detail-num mt10"
>
{{
model
.
carReviewTask
.
standards
}}
%
</div>
</div>
<svg-icon
class=
"message-icon"
width=
"64px"
height=
"64px"
icon-class=
"tag_biaozhuntiaokuan"
></svg-icon>
</div>
<div
class=
"message-box"
style=
"background-color: #47baba"
>
<div
class=
"message-detail"
>
<div
class=
"detail-title"
>
测试通过(个)
</div>
<div
class=
"detail-num mt10"
>
{{
model
.
carReviewTask
.
standardsPass
}}
</div>
</div>
<svg-icon
class=
"message-icon"
width=
"64px"
height=
"64px"
icon-class=
"tag_biaozhuntiaokuan"
></svg-icon>
</div>
<div
class=
"message-box"
style=
"background-color: #6c47ba"
>
<div
class=
"message-detail"
>
<div
class=
"detail-title"
>
测试未通过(个)
</div>
<div
class=
"detail-num mt10"
>
{{
model
.
carReviewTask
.
person
}}
</div>
</div>
<svg-icon
class=
"message-icon"
icon-class=
"tag_shenehrenshu"
width=
"64px"
height=
"64px"
></svg-icon>
</div>
</div>
</div>
</div>
<!--测试情况概要-->
<div>
<div
class=
"form-review-questionnaire"
>
<div
class=
"title-display"
>
<span
class=
"title-i"
></span>
<span
class=
"title-content"
>
测试情况概要
</span>
</div>
<!--审查表单概要-->
<table
class=
"table"
>
<col
style=
"width: 100px"
/>
<thead>
<tr>
<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>
<template
v-for=
"(i, PointIndex) in tableData"
>
<tr
:key=
"'PointIndex1' + PointIndex"
>
<td
align=
"center"
:rowspan=
"getRows3(i)"
>
{{
i
.
chapter
}}
</td>
<td
align=
"center"
:rowspan=
"getRows3(i)"
>
{{
i
.
text
}}
</td>
<td
align=
"center"
:rowspan=
"getRows3(i)"
>
{{
i
.
testMethod
}}
</td>
</tr>
<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"
rowspan=
"1"
>
{{
''
}}
</td>
<!--
<td
align=
"center"
rowspan=
"1"
>
-->
<!--
{{
v
.
name
}}
-->
<!--
</td>
-->
<!--
<td
align=
"center"
rowspan=
"1"
>
-->
<!--
{{
v
.
tools
}}
-->
<!--
</td>
-->
<!--
<td
align=
"center"
rowspan=
"1"
>
-->
<!--
{{
v
.
input
}}
-->
<!--
</td>
-->
<!--
<td
align=
"center"
rowspan=
"1"
>
-->
<!--
{{
v
.
description
}}
-->
<!--
</td>
-->
</tr>
</
template
>
</template>
</tbody>
</table>
</div>
<!--签字确认-->
<div
class=
"form-signature-confirmation"
>
<div
class=
"title-display"
>
<span
class=
"title-i"
></span>
<span
class=
"title-content"
>
签字确认
</span>
</div>
<div
class=
"img-display"
>
<div
class=
"img-item"
>
<div
class=
"img-label label-required"
>
检验负责人
</div>
<img
v-if=
"ruleForm.inspectionLeader"
class=
"img"
:src=
"ruleForm.inspectionLeader"
/>
<div
v-else
class=
"img"
>
<iconpark-icon
name=
"wuqianzi"
size=
"120"
></iconpark-icon>
<div
class=
"img-text"
>
暂无签字
</div>
</div>
</div>
</div>
</div>
<!--返回按钮-->
<div
class=
"bottom-btn"
>
<footer-button
type=
"default"
icon=
"arrow-left"
@
click=
"$router.go(-1)"
>
返回
</footer-button>
<footer-button
v-if=
"this.isLeader !== false"
type=
"primary"
icon=
"hard-disk-one"
@
click=
"goToProcessedReview"
>
确认提交
</footer-button>
</div>
</div>
</div>
</task-standard>
</template>
<!--js逻辑-->
<
script
>
import
routerMixins
from
'@/mixins/router'
import
{
getRows3
}
from
'@/utils/reviewDetailsTable'
import
{
testDetail
}
from
'@/api/task/test'
import
{
getBySubtaskId
,
taskImageSubmit
}
from
'@/api/task/task'
export
default
{
name
:
'Index'
,
dicts
:
[
'task_test_status'
],
mixins
:
[
routerMixins
],
data
()
{
return
{
tableData
:
[],
task
:
{},
model
:
{
carReviewTask
:
{},
reviewSceneChangeTasks
:
{},
detailsList
:
[]
},
ruleForm
:
{
enterpriseLeader
:
''
,
inspectionLeader
:
''
,
result
:
[]
},
loading
:
false
,
isLeader
:
''
}
},
mounted
()
{
this
.
getTest
()
this
.
getTestDetail
()
},
methods
:
{
getRows3
,
/* 返回跳转*/
goToProcessedReview
()
{
// this.ruleForm.taskId = '1771093631118106626'
const
formData
=
{
// imagesUrl: [
// this.ruleForm.enterpriseLeader,
// this.ruleForm.inspectionLeader
// ],
imagesUrl
:
[{}],
taskId
:
this
.
$route
.
query
.
id
}
console
.
log
(
'formData'
,
formData
)
taskImageSubmit
(
formData
).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
this
.
$modal
.
msgSuccess
(
'确认提交成功'
)
this
.
$router
.
push
({
path
:
'/processing/unprocessed-review'
})
}
else
{
this
.
$modal
.
msgError
(
res
.
msg
)
}
})
},
/** 获取任务详情 */
getTest
()
{
getBySubtaskId
({
id
:
this
.
$route
.
query
.
id
}).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
this
.
task
=
res
.
data
const
auditors
=
res
.
data
.
auditors
this
.
isLeader
=
auditors
.
some
(
item
=>
item
.
isLeader
===
1
)
console
.
log
(
'found'
,
this
.
isLeader
)
// 输出: true 如果找到,否则输出: false
}
})
},
getTestDetail
()
{
this
.
loading
=
true
testDetail
({
taskId
:
this
.
$route
.
query
.
id
}).
then
(
res
=>
{
this
.
tableData
=
res
.
data
this
.
loading
=
false
})
}
}
}
</
script
>
<
style
scoped
>
.form-signature-confirmation
.img-item
.img
{
width
:
50%
!important
;
}
.table
{
margin-top
:
20px
;
}
.table
th
{
background-color
:
#f2f2f2
!important
;
}
</
style
>
src/views/processing/fileLibrary/index.vue
View file @
a7517071
...
@@ -225,6 +225,13 @@ export default {
...
@@ -225,6 +225,13 @@ export default {
refreshList
:
false
,
refreshList
:
false
,
dialogEditId
:
0
dialogEditId
:
0
}
,
}
,
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
taskId
:
this
.
$route
.
query
.
id
,
isAsc
:
'desc'
,
orderByColumn
:
'createTime'
}
,
refreshList
:
false
,
refreshList
:
false
,
baseUrl
:
process
.
env
.
VUE_APP_IMAGE_API
,
baseUrl
:
process
.
env
.
VUE_APP_IMAGE_API
,
listUrl
:
'/review/enterprise/archive/findEnterpriseArchiveByTaskId'
,
listUrl
:
'/review/enterprise/archive/findEnterpriseArchiveByTaskId'
,
...
...
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