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
fcfaba08
Commit
fcfaba08
authored
Mar 08, 2024
by
jiaxu.yan
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into developer/yanjiaxu
parents
2c842a34
079f4e3d
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
140 additions
and
83 deletions
+140
-83
index.vue
src/views/setting/sample/index.vue
+1
-1
index.vue
src/views/task/new/index.vue
+100
-54
index.vue
src/views/task/task-detail/index.vue
+39
-28
No files found.
src/views/setting/sample/index.vue
View file @
fcfaba08
...
...
@@ -452,8 +452,8 @@ export default {
tableData
:
[],
total
:
0
,
dialogVisible
:
false
,
dialogTitle
:
'新建'
,
trademarkDisplay
:
true
,
dialogTitle
:
'新建'
,
samplePhotosDisplay
:
true
}
},
...
...
src/views/task/new/index.vue
View file @
fcfaba08
This diff is collapsed.
Click to expand it.
src/views/task/task-detail/index.vue
View file @
fcfaba08
...
...
@@ -56,10 +56,7 @@
</el-form-item>
</el-col>
</el-row>
<el-row
v-show=
"model.inspectionItemList.includes('trfis')"
:gutter=
"20"
>
<el-row
v-show=
"testScenarioShow"
:gutter=
"20"
>
<el-col
:span=
"24"
>
<el-form-item
label=
"请选择测试场景(可多选)"
...
...
@@ -211,7 +208,7 @@
<el-table-column
label=
"所属部门"
align=
"left"
prop=
"dept"
>
<
template
slot-scope=
"{ row }"
>
<span
v-if=
"row.userId === ''"
>
-
</span>
<span
v-else
>
{{
row
.
deptName
}}
</span>
<span
v-else
>
{{
row
.
deptName
||
'-'
}}
</span>
</
template
>
</el-table-column>
</el-table>
...
...
@@ -356,13 +353,13 @@ export default {
// { value: 2, label: '汽车信息安全技术要求', check: false }
],
testScenarioList
:
[
{
value
:
0
,
label
:
'
文档审核
'
,
check
:
false
},
{
value
:
1
,
label
:
'
TBOX-蜂窝以太网
接口'
,
check
:
false
},
{
value
:
2
,
label
:
'WiFi
AP
接口'
,
check
:
false
},
{
value
:
3
,
label
:
'
WiFi Client
接口'
,
check
:
false
},
{
value
:
4
,
label
:
'
充电以太网接口
'
,
check
:
false
},
{
value
:
5
,
label
:
'
CAN
诊断接口(OBD)'
,
check
:
false
},
{
value
:
6
,
label
:
'
以太网诊断接口(OBD
)'
,
check
:
false
},
{
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
},
...
...
@@ -375,9 +372,8 @@ export default {
{
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
:
'软件升级'
,
check
:
false
},
{
value
:
21
,
label
:
'ECU固件'
,
check
:
false
}
{
value
:
19
,
label
:
'软件升级'
,
check
:
false
},
{
value
:
20
,
label
:
'ECU固件'
,
check
:
false
}
],
rules
:
{
testScenarioList
:
[
...
...
@@ -495,7 +491,8 @@ export default {
}
],
// 任务详情
taskDetail
:
{}
taskDetail
:
{},
testScenarioShow
:
false
}
},
watch
:
{
...
...
@@ -583,17 +580,31 @@ export default {
// 小组信息
this
.
tableData
=
this
.
taskDetail
.
auditors
// 整车样品信息
this
.
carInfoArr
=
this
.
taskDetail
.
completeVehicleSample
this
.
carInfoArr
.
forEach
(
item
=>
{
item
.
sampleId
=
item
.
id
item
.
flag
=
0
})
if
(
this
.
taskDetail
.
completeVehicleSample
!==
null
)
{
this
.
carInfoArr
=
this
.
taskDetail
.
completeVehicleSample
this
.
carInfoArr
.
forEach
(
item
=>
{
item
.
sampleId
=
item
.
id
item
.
flag
=
0
})
}
// 零件样品信息
this
.
partInfoArr
=
this
.
taskDetail
.
partVehicleSample
this
.
partInfoArr
.
forEach
(
item
=>
{
item
.
sampleId
=
item
.
id
item
.
flag
=
1
})
if
(
this
.
taskDetail
.
partVehicleSample
!==
null
)
{
this
.
partInfoArr
=
this
.
taskDetail
.
partVehicleSample
this
.
partInfoArr
.
forEach
(
item
=>
{
item
.
sampleId
=
item
.
id
item
.
flag
=
1
})
}
if
(
this
.
taskDetail
.
taskList
.
split
(
','
).
length
===
1
&&
this
.
taskDetail
.
taskList
.
split
(
','
).
includes
(
'trfis'
)
)
{
this
.
testScenarioShow
=
true
}
else
{
this
.
testScenarioShow
=
false
}
console
.
log
(
'哈哈哈'
,
this
.
testScenarioShow
)
console
.
log
(
'零件样品信息'
,
this
.
partInfoArr
)
console
.
log
(
'model'
,
this
.
model
)
})
...
...
@@ -811,7 +822,7 @@ export default {
display
:
flex
;
flex-wrap
:
wrap
;
.test-scenario
{
width
:
2
37
px
;
width
:
2
28
px
;
height
:
32px
;
border
:
1px
solid
#dcdfe6
;
background-color
:
#ffffff
;
...
...
@@ -823,7 +834,7 @@ export default {
}
}
.check-test-scenario
{
width
:
2
37
px
;
width
:
2
28
px
;
height
:
32px
;
border
:
1px
solid
#1a6fd7
;
background-color
:
#e3eefc
;
...
...
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