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
2053f598
Commit
2053f598
authored
Mar 22, 2024
by
mzx
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of
http://gitlab.91isoft.com:90/car-test/web
into mengzixuan
parents
1d77967d
a74a5787
Changes
25
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
533 additions
and
384 deletions
+533
-384
.env.development
.env.development
+1
-1
.env.staging
.env.staging
+1
-1
index.html
public/index.html
+1
-1
process.scss
src/assets/styles/process.scss
+6
-8
TaskStandard.vue
src/components/Page/TaskStandard.vue
+2
-6
index.vue
src/views/processing/carReview/source-record/index.vue
+9
-7
index.vue
src/views/processing/carReview/vehicle-type/index.vue
+16
-12
companyFile.vue
...ing/carReview/write-check-form/components/companyFile.vue
+0
-3
previewView.vue
...ing/carReview/write-check-form/components/previewView.vue
+9
-5
index.vue
src/views/processing/carReview/write-check-form/index.vue
+186
-134
index.vue
src/views/processing/carTest/execution-test-plan/index.vue
+2
-2
dialog.vue
src/views/processing/fileLibrary/components/dialog.vue
+0
-3
index.vue
src/views/processing/fileLibrary/index.vue
+1
-0
index.vue
src/views/processing/systemReview/source-record/index.vue
+9
-7
companyFile.vue
.../systemReview/write-check-form/components/companyFile.vue
+0
-3
previewView.vue
.../systemReview/write-check-form/components/previewView.vue
+9
-5
index.vue
src/views/processing/systemReview/write-check-form/index.vue
+208
-137
index.vue
src/views/setting/sample/index.vue
+6
-4
authUser.vue
src/views/system/role/authUser.vue
+4
-0
index.vue
src/views/system/role/index.vue
+2
-2
index.vue
src/views/system/user/index.vue
+14
-14
index.vue
src/views/task/edit/index.vue
+20
-24
PartInfo.vue
src/views/task/new/components/PartInfo.vue
+10
-1
index.vue
src/views/task/new/index.vue
+16
-4
index.vue
src/views/task/task-detail/index.vue
+1
-0
No files found.
.env.development
View file @
2053f598
# 页面标题
# 页面标题
VUE_APP_TITLE =
安全信息
检测平台
VUE_APP_TITLE =
周期性
检测平台
# 开发环境配置
# 开发环境配置
ENV = 'development'
ENV = 'development'
...
...
.env.staging
View file @
2053f598
# 页面标题
# 页面标题
VUE_APP_TITLE =
安全信息
检测平台
VUE_APP_TITLE =
周期性
检测平台
# 开发环境配置
# 开发环境配置
ENV = 'staging'
ENV = 'staging'
...
...
public/index.html
View file @
2053f598
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"
>
<link
rel=
"icon"
href=
"<%= BASE_URL %>favicon.ico"
>
<link
rel=
"icon"
href=
"<%= BASE_URL %>favicon.ico"
>
<!-- <link href="https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css" rel="stylesheet"> -->
<!-- <link href="https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css" rel="stylesheet"> -->
<script
src=
"https://lf1-cdn-tos.bytegoofy.com/obj/iconpark/icons_31435_85.f03f7ada23edcf4cd72e61338ed55693
.js"
></script>
<script
src=
"https://lf1-cdn-tos.bytegoofy.com/obj/iconpark/icons_31435_86.9b2d26764ccec5f05296d7ffca18aa56
.js"
></script>
<title><
%=
webpackConfig
.
name
%
></title>
<title><
%=
webpackConfig
.
name
%
></title>
<!--[if lt IE 11]>
<!--[if lt IE 11]>
<script>window.location.href = '/html/ie.html';</script><![endif]-->
<script>window.location.href = '/html/ie.html';</script><![endif]-->
...
...
src/assets/styles/process.scss
View file @
2053f598
...
@@ -709,15 +709,13 @@
...
@@ -709,15 +709,13 @@
width
:
120px
!
important
;
width
:
120px
!
important
;
// text-align: center !important;
// text-align: center !important;
}
}
.passed
{
.el-progress
{
.el-form-item__label
{
margin-left
:
-10px
;
}
}
.el-progress
{
display
:
flex
;
display
:
flex
;
}
}
.empty-message
{
.empty-message
{
text-align
:
center
;
margin
:
0
10px
;
margin
:
0
10px
;
display
:
flex
;
flex-flow
:
column
;
align-items
:
center
;
color
:
#ccc
;
}
}
src/components/Page/TaskStandard.vue
View file @
2053f598
...
@@ -36,11 +36,7 @@ export default {
...
@@ -36,11 +36,7 @@ export default {
},
},
methods
:
{
methods
:
{
goBack
()
{
goBack
()
{
// 获取当前路由信息
this
.
$router
.
back
()
const
currentRoute
=
this
.
$router
.
currentRoute
// 获取来源页面的路由信息
const
fromRoute
=
currentRoute
.
from
console
.
log
(
currentRoute
)
}
}
}
}
}
}
...
@@ -48,7 +44,7 @@ export default {
...
@@ -48,7 +44,7 @@ export default {
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.page-data
{
.page-data
{
padding
:
0
24px
;
padding
:
0
24px
;
padding-bottom
:
24px
;
padding-bottom
:
24px
;
}
}
.card-box
{
.card-box
{
...
...
src/views/processing/carReview/source-record/index.vue
View file @
2053f598
...
@@ -212,13 +212,15 @@
...
@@ -212,13 +212,15 @@
<div
v-else
>
__
</div>
<div
v-else
>
__
</div>
</td>
</td>
<td
align=
"center"
>
<td
align=
"center"
>
<div
<div
v-if=
"reviewDetail.result"
>
v-if=
"
<div
v-if=
"reviewDetail.result.fileList"
>
reviewDetail.result && reviewDetail.result.fileName
<template
v-for=
"i in reviewDetail.result.fileList"
>
"
《
{{
i
.
fileName
}}
》
{{
i
.
catalogue
}}
>
</
template
>
《
{{
reviewDetail
.
result
.
fileName
}}
》
</div>
{{
reviewDetail
.
result
.
catalogue
}}
<div
v-if=
"reviewDetail.result.comment"
>
{{ reviewDetail.result.comment }}
</div>
</div>
</div>
<div
v-else
>
__
</div>
<div
v-else
>
__
</div>
</td>
</td>
...
...
src/views/processing/carReview/vehicle-type/index.vue
View file @
2053f598
...
@@ -191,18 +191,21 @@
...
@@ -191,18 +191,21 @@
<tr
:key=
"reviewDetailKey"
>
<tr
:key=
"reviewDetailKey"
>
<td
align=
"center"
>
{{
reviewDetail
.
text
}}
</td>
<td
align=
"center"
>
{{
reviewDetail
.
text
}}
</td>
<td
align=
"center"
class=
"investigate-result"
>
<td
align=
"center"
class=
"investigate-result"
>
<el-tag
<div
v-if=
"reviewDetail.result"
>
v-if=
"reviewDetail.result.passed === 1"
<el-tag
size=
"medium"
v-if=
"reviewDetail.result.passed === 1"
type=
"success"
size=
"medium"
>
符合
</el-tag
type=
"success"
>
>
符合
</el-tag
<el-tag
>
v-if=
"reviewDetail.result.passed === 0"
<el-tag
size=
"medium"
v-if=
"reviewDetail.result.passed === 0"
type=
"danger"
size=
"medium"
>
不符合
</el-tag
type=
"warning"
>
>
不符合
</el-tag
>
</div>
<div
v-else
>
__
</div>
</td>
</td>
<td
align=
"center"
class=
"written-by"
>
<td
align=
"center"
class=
"written-by"
>
{{
{{
...
@@ -231,6 +234,7 @@
...
@@ -231,6 +234,7 @@
</div>
</div>
<div
class=
"img-item"
>
<div
class=
"img-item"
>
<div
class=
"img-label"
style=
"margin-top: 20px"
>
选择测试场景
</div>
<div
class=
"img-label"
style=
"margin-top: 20px"
>
选择测试场景
</div>
<div
class=
"img-label"
style=
"margin-top: 20px"
>
选择测试场景
</div>
</div>
</div>
<!-- 测试场景 -->
<!-- 测试场景 -->
<div
class=
"test-scenario-container"
>
<div
class=
"test-scenario-container"
>
...
...
src/views/processing/carReview/write-check-form/components/companyFile.vue
View file @
2053f598
...
@@ -129,9 +129,6 @@ export default {
...
@@ -129,9 +129,6 @@ export default {
],
],
identifyNumber
:
[
identifyNumber
:
[
{
required
:
true
,
message
:
'请输入文件识别号'
,
trigger
:
'blur'
}
{
required
:
true
,
message
:
'请输入文件识别号'
,
trigger
:
'blur'
}
],
photo
:
[
{
required
:
true
,
message
:
'请选择文件照片'
,
trigger
:
'change'
}
]
]
},
},
model
:
this
.
$modelDataSource
({
model
:
this
.
$modelDataSource
({
...
...
src/views/processing/carReview/write-check-form/components/previewView.vue
View file @
2053f598
...
@@ -99,11 +99,15 @@
...
@@ -99,11 +99,15 @@
<div
v-else
>
__
</div>
<div
v-else
>
__
</div>
</td>
</td>
<td
align=
"center"
>
<td
align=
"center"
>
<div
<div
v-if=
"reviewDetail.result"
>
v-if=
"reviewDetail.result && reviewDetail.result.fileName"
<div
v-if=
"reviewDetail.result.fileList"
>
>
<template
v-for=
"i in reviewDetail.result.fileList"
>
《
{{
reviewDetail
.
result
.
fileName
}}
》
《
{{
i
.
fileName
}}
》
{{
i
.
catalogue
}}
{{
reviewDetail
.
result
.
catalogue
}}
</
template
>
</div>
<div
v-if=
"reviewDetail.result.comment"
>
{{ reviewDetail.result.comment }}
</div>
</div>
</div>
<div
v-else
>
__
</div>
<div
v-else
>
__
</div>
</td>
</td>
...
...
src/views/processing/carReview/write-check-form/index.vue
View file @
2053f598
This diff is collapsed.
Click to expand it.
src/views/processing/carTest/execution-test-plan/index.vue
View file @
2053f598
<!-- 测试用例详情 -->
<!-- 测试用例详情 -->
<
template
>
<
template
>
<
page
-standard>
<
task
-standard>
<div
class=
"web-page"
>
<div
class=
"web-page"
>
<iframe
<iframe
:src=
"url"
:src=
"url"
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
style=
"width: 100%; height: 100%"
style=
"width: 100%; height: 100%"
></iframe>
></iframe>
</div>
</div>
</
page
-standard>
</
task
-standard>
</
template
>
</
template
>
<
script
>
<
script
>
...
...
src/views/processing/fileLibrary/components/dialog.vue
View file @
2053f598
...
@@ -135,9 +135,6 @@ export default {
...
@@ -135,9 +135,6 @@ export default {
],
],
identifyNumber
:
[
identifyNumber
:
[
{
required
:
true
,
message
:
'请输入文件识别号'
,
trigger
:
'blur'
}
{
required
:
true
,
message
:
'请输入文件识别号'
,
trigger
:
'blur'
}
],
photo
:
[
{
required
:
true
,
message
:
'请选择文件照片'
,
trigger
:
'change'
}
]
]
}
}
}
}
...
...
src/views/processing/fileLibrary/index.vue
View file @
2053f598
...
@@ -157,6 +157,7 @@
...
@@ -157,6 +157,7 @@
prop
=
"createBy"
prop
=
"createBy"
label
=
"创建人员"
label
=
"创建人员"
min
-
width
=
"130"
min
-
width
=
"130"
show
-
overflow
-
tooltip
align
=
"left"
align
=
"left"
>
>
<
/el-table-column
>
<
/el-table-column
>
...
...
src/views/processing/systemReview/source-record/index.vue
View file @
2053f598
...
@@ -217,13 +217,15 @@
...
@@ -217,13 +217,15 @@
<div
v-else
>
__
</div>
<div
v-else
>
__
</div>
</td>
</td>
<td
align=
"center"
>
<td
align=
"center"
>
<div
<div
v-if=
"reviewDetail.result"
>
v-if=
"
<div
v-if=
"reviewDetail.result.fileList"
>
reviewDetail.result && reviewDetail.result.fileName
<template
v-for=
"i in reviewDetail.result.fileList"
>
"
《
{{
i
.
fileName
}}
》
{{
i
.
catalogue
}}
>
</
template
>
《
{{
reviewDetail
.
result
.
fileName
}}
》
</div>
{{
reviewDetail
.
result
.
catalogue
}}
<div
v-if=
"reviewDetail.result.comment"
>
{{ reviewDetail.result.comment }}
</div>
</div>
</div>
<div
v-else
>
__
</div>
<div
v-else
>
__
</div>
</td>
</td>
...
...
src/views/processing/systemReview/write-check-form/components/companyFile.vue
View file @
2053f598
...
@@ -129,9 +129,6 @@ export default {
...
@@ -129,9 +129,6 @@ export default {
],
],
identifyNumber
:
[
identifyNumber
:
[
{
required
:
true
,
message
:
'请输入文件识别号'
,
trigger
:
'blur'
}
{
required
:
true
,
message
:
'请输入文件识别号'
,
trigger
:
'blur'
}
],
photo
:
[
{
required
:
true
,
message
:
'请选择文件照片'
,
trigger
:
'change'
}
]
]
},
},
model
:
this
.
$modelDataSource
({
model
:
this
.
$modelDataSource
({
...
...
src/views/processing/systemReview/write-check-form/components/previewView.vue
View file @
2053f598
...
@@ -99,11 +99,15 @@
...
@@ -99,11 +99,15 @@
<div
v-else
>
__
</div>
<div
v-else
>
__
</div>
</td>
</td>
<td
align=
"center"
>
<td
align=
"center"
>
<div
<div
v-if=
"reviewDetail.result"
>
v-if=
"reviewDetail.result && reviewDetail.result.fileName"
<div
v-if=
"reviewDetail.result.fileList"
>
>
<template
v-for=
"i in reviewDetail.result.fileList"
>
《
{{
reviewDetail
.
result
.
fileName
}}
》
《
{{
i
.
fileName
}}
》
{{
i
.
catalogue
}}
{{
reviewDetail
.
result
.
catalogue
}}
</
template
>
</div>
<div
v-if=
"reviewDetail.result.comment"
>
{{ reviewDetail.result.comment }}
</div>
</div>
</div>
<div
v-else
>
__
</div>
<div
v-else
>
__
</div>
</td>
</td>
...
...
src/views/processing/systemReview/write-check-form/index.vue
View file @
2053f598
This diff is collapsed.
Click to expand it.
src/views/setting/sample/index.vue
View file @
2053f598
...
@@ -360,7 +360,7 @@
...
@@ -360,7 +360,7 @@
height=
"150px"
height=
"150px"
></image-preview>
></image-preview>
</div>
</div>
<div
v-else
>
暂无数据
</div>
<div
v-else
>
--未上传--
</div>
</el-form-item>
</el-form-item>
<el-form-item
label=
"样品照片:"
prop=
"samplePhotos"
>
<el-form-item
label=
"样品照片:"
prop=
"samplePhotos"
>
<div
v-if=
"clickNameForm.samplePhotos"
>
<div
v-if=
"clickNameForm.samplePhotos"
>
...
@@ -373,7 +373,7 @@
...
@@ -373,7 +373,7 @@
:src=
"item"
:src=
"item"
></image-preview>
></image-preview>
</div>
</div>
<div
v-else
>
暂无数据
</div>
<div
v-else
>
--未上传--
</div>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</el-dialog>
</el-dialog>
...
@@ -646,8 +646,10 @@ export default {
...
@@ -646,8 +646,10 @@ export default {
clickSampleName
(
row
)
{
clickSampleName
(
row
)
{
this
.
dialogFormVisible
=
true
this
.
dialogFormVisible
=
true
this
.
clickNameForm
=
row
this
.
clickNameForm
=
row
this
.
clickNameForm
.
samplePhotos
=
if
(
this
.
clickNameForm
.
samplePhotos
)
{
this
.
clickNameForm
.
samplePhotos
.
split
(
','
)
this
.
clickNameForm
.
samplePhotos
=
this
.
clickNameForm
.
samplePhotos
.
split
(
','
)
}
console
.
log
(
row
)
console
.
log
(
row
)
},
},
closeSamplePhoto
()
{
closeSamplePhoto
()
{
...
...
src/views/system/role/authUser.vue
View file @
2053f598
...
@@ -239,6 +239,8 @@ export default {
...
@@ -239,6 +239,8 @@ export default {
const
roleId
=
this
.
queryParams
.
roleId
const
roleId
=
this
.
queryParams
.
roleId
this
.
$modal
this
.
$modal
.
confirm
(
'确认要取消该用户"'
+
row
.
userName
+
'"角色吗?'
,
{
.
confirm
(
'确认要取消该用户"'
+
row
.
userName
+
'"角色吗?'
,
{
type
:
'warning'
,
title
:
'取消授权'
,
closeOnClickModal
:
false
closeOnClickModal
:
false
})
})
.
then
(
function
()
{
.
then
(
function
()
{
...
@@ -256,6 +258,8 @@ export default {
...
@@ -256,6 +258,8 @@ export default {
const
userIds
=
this
.
userIds
.
join
(
','
)
const
userIds
=
this
.
userIds
.
join
(
','
)
this
.
$modal
this
.
$modal
.
confirm
(
'是否取消选中用户授权数据项?'
,
{
.
confirm
(
'是否取消选中用户授权数据项?'
,
{
type
:
'warning'
,
title
:
'取消授权'
,
closeOnClickModal
:
false
closeOnClickModal
:
false
})
})
.
then
(
function
()
{
.
then
(
function
()
{
...
...
src/views/system/role/index.vue
View file @
2053f598
...
@@ -196,12 +196,12 @@
...
@@ -196,12 +196,12 @@
>
更多
</el-button
>
更多
</el-button
>
>
<el-dropdown-menu
slot=
"dropdown"
>
<el-dropdown-menu
slot=
"dropdown"
>
<el-dropdown-item
<
!--
<
el-dropdown-item
v-hasPermi=
"['system:role:edit']"
v-hasPermi=
"['system:role:edit']"
command=
"handleDataScope"
command=
"handleDataScope"
icon=
"el-icon-circle-check"
icon=
"el-icon-circle-check"
>
数据权限
</el-dropdown-item
>
数据权限
</el-dropdown-item
>
>
-->
<el-dropdown-item
<el-dropdown-item
v-hasPermi=
"['system:role:edit']"
v-hasPermi=
"['system:role:edit']"
command=
"handleAuthUser"
command=
"handleAuthUser"
...
...
src/views/system/user/index.vue
View file @
2053f598
...
@@ -142,17 +142,17 @@
...
@@ -142,17 +142,17 @@
>
删除
</el-button
>
删除
</el-button
>
>
</el-col>
</el-col>
<
el-col
:span=
"1.5"
>
<
!--
<el-col
:span=
"1.5"
>
--
>
<el-button
<!--
<el-button-->
v-hasPermi=
"['system:user:import']"
<!-- v-hasPermi="['system:user:import']"-->
type=
"info"
<!-- type="info"-->
plain
<!-- plain-->
icon=
"el-icon-upload2"
<!-- icon="el-icon-upload2"-->
size=
"mini"
<!-- size="mini"-->
@
click=
"handleImport"
<!-- @click="handleImport"-->
>
导入
</el-button
<!-- >导入
</el-button-->
>
<!-- >--
>
<
/el-col
>
<
!--
</el-col>
--
>
<!--
<el-col
:span=
"1.5"
>
<!--
<el-col
:span=
"1.5"
>
<el-button
<el-button
v-hasPermi=
"['system:user:export']"
v-hasPermi=
"['system:user:export']"
...
@@ -245,7 +245,7 @@
...
@@ -245,7 +245,7 @@
<el-table-column
<el-table-column
label=
"操作"
label=
"操作"
align=
"center"
align=
"center"
width=
"16
0"
min-width=
"20
0"
class-name=
"small-padding fixed-width"
class-name=
"small-padding fixed-width"
>
>
<
template
v-if=
"scope.row.userId !== 1"
slot-scope=
"scope"
>
<
template
v-if=
"scope.row.userId !== 1"
slot-scope=
"scope"
>
...
@@ -779,8 +779,8 @@ export default {
...
@@ -779,8 +779,8 @@ export default {
confirmButtonText
:
'确定'
,
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
closeOnClickModal
:
false
,
closeOnClickModal
:
false
,
inputPattern
:
/^.
{
5
,20}
$/
,
inputPattern
:
/^.
{
6
,20}
$/
,
inputErrorMessage
:
'用户密码长度必须介于
5
和 20 之间'
inputErrorMessage
:
'用户密码长度必须介于
6
和 20 之间'
})
})
.
then
(({
value
})
=>
{
.
then
(({
value
})
=>
{
resetUserPwd
(
row
.
userId
,
value
).
then
(
response
=>
{
resetUserPwd
(
row
.
userId
,
value
).
then
(
response
=>
{
...
...
src/views/task/edit/index.vue
View file @
2053f598
...
@@ -39,7 +39,11 @@
...
@@ -39,7 +39,11 @@
'test-scenario': item.check === false,
'test-scenario': item.check === false,
'check-test-scenario': item.check === true
'check-test-scenario': item.check === true
}"
}"
@click="handleInspectionItem(item)"
@click="
taskDetail.taskStatus === 'NEW'
? handleInspectionItem(item)
: ''
"
>
>
<div>
{{
item
.
label
}}
</div>
<div>
{{
item
.
label
}}
</div>
</div>
</div>
...
@@ -53,6 +57,13 @@
...
@@ -53,6 +57,13 @@
label=
"请选择测试场景(可多选)"
label=
"请选择测试场景(可多选)"
prop=
"testScenarioList"
prop=
"testScenarioList"
>
>
<footer-button
style=
"width: 80px; height: 25px"
type=
"primary"
@
click=
"selectAll"
>
全部选择
</footer-button>
<div
class=
"test-scenario-container"
>
<div
class=
"test-scenario-container"
>
<div
<div
v-for=
"(item, index) in testScenarioList"
v-for=
"(item, index) in testScenarioList"
...
@@ -414,29 +425,6 @@ export default {
...
@@ -414,29 +425,6 @@ export default {
// 小组成员回显数据
// 小组成员回显数据
tableData
:
[],
tableData
:
[],
inspectionItemList
:
[],
inspectionItemList
:
[],
// 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 }
// ],
rules
:
{
rules
:
{
testScenarioList
:
[
testScenarioList
:
[
{
{
...
@@ -697,6 +685,14 @@ export default {
...
@@ -697,6 +685,14 @@ export default {
console
.
log
(
'model'
,
this
.
model
)
console
.
log
(
'model'
,
this
.
model
)
})
})
},
},
selectAll
()
{
this
.
testScenarioList
.
forEach
(
obj
=>
{
obj
.
check
=
true
})
this
.
model
.
testScenarioList
=
this
.
testScenarioList
.
map
(
obj
=>
{
return
obj
.
value
})
},
getInspectionItemDict
()
{
getInspectionItemDict
()
{
getDicts
(
'inspection_item'
).
then
(
response
=>
{
getDicts
(
'inspection_item'
).
then
(
response
=>
{
this
.
inspectionItemList
=
response
.
data
.
map
(
this
.
inspectionItemList
=
response
.
data
.
map
(
...
...
src/views/task/new/components/PartInfo.vue
View file @
2053f598
...
@@ -19,6 +19,7 @@
...
@@ -19,6 +19,7 @@
<el-select
<el-select
v-model=
"card.sampleNumber"
v-model=
"card.sampleNumber"
:disabled=
"!isEdit"
:disabled=
"!isEdit"
:placeholder=
"isDetail ? '--' : '请选择'"
@
change=
"handleSampleNumberChange(card, $event)"
@
change=
"handleSampleNumberChange(card, $event)"
>
>
<el-option
<el-option
...
@@ -31,7 +32,11 @@
...
@@ -31,7 +32,11 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"样品名称"
>
<el-form-item
label=
"样品名称"
>
<el-input
v-model=
"card.sampleName"
disabled
/>
<el-input
v-model=
"card.sampleName"
disabled
:placeholder=
"isDetail ? '--' : ''"
/>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</el-card>
</el-card>
...
@@ -61,6 +66,10 @@ export default {
...
@@ -61,6 +66,10 @@ export default {
isEdit
:
{
isEdit
:
{
type
:
Boolean
,
type
:
Boolean
,
default
:
true
default
:
true
},
isDetail
:
{
type
:
Boolean
,
default
:
false
}
}
},
},
watch
:
{
watch
:
{
...
...
src/views/task/new/index.vue
View file @
2053f598
...
@@ -49,6 +49,13 @@
...
@@ -49,6 +49,13 @@
label=
"请选择测试场景(可多选)"
label=
"请选择测试场景(可多选)"
prop=
"testScenarioList"
prop=
"testScenarioList"
>
>
<footer-button
style=
"width: 80px; height: 25px"
type=
"primary"
@
click=
"selectAll"
>
全部选择
</footer-button>
<div
class=
"test-scenario-container"
>
<div
class=
"test-scenario-container"
>
<div
<div
v-for=
"(item, index) in testScenarioList"
v-for=
"(item, index) in testScenarioList"
...
@@ -677,6 +684,15 @@ export default {
...
@@ -677,6 +684,15 @@ export default {
console
.
log
(
'model'
,
this
.
model
)
console
.
log
(
'model'
,
this
.
model
)
})
})
},
},
// 全选
selectAll
()
{
this
.
testScenarioList
.
forEach
(
obj
=>
{
obj
.
check
=
true
})
this
.
model
.
testScenarioList
=
this
.
testScenarioList
.
map
(
obj
=>
{
return
obj
.
value
})
},
getInspectionItemDict
()
{
getInspectionItemDict
()
{
getDicts
(
'inspection_item'
).
then
(
response
=>
{
getDicts
(
'inspection_item'
).
then
(
response
=>
{
this
.
inspectionItemList
=
response
.
data
.
map
(
this
.
inspectionItemList
=
response
.
data
.
map
(
...
@@ -1057,10 +1073,6 @@ export default {
...
@@ -1057,10 +1073,6 @@ export default {
this
.
$message
.
error
(
'请填写整车样品信息'
)
this
.
$message
.
error
(
'请填写整车样品信息'
)
return
return
}
}
// else if (this.currentPartSampleInformation.length === 0) {
// this.$message.error('请填写零部件样品信息')
// return
// }
this
.
$confirm
(
'是否确认进行发布功能'
,
'发布'
,
{
this
.
$confirm
(
'是否确认进行发布功能'
,
'发布'
,
{
confirmButtonText
:
'确定'
,
confirmButtonText
:
'确定'
,
concelButtonText
:
'取消'
,
concelButtonText
:
'取消'
,
...
...
src/views/task/task-detail/index.vue
View file @
2053f598
...
@@ -245,6 +245,7 @@
...
@@ -245,6 +245,7 @@
v-model=
"partInfoArr"
v-model=
"partInfoArr"
class=
"global-left-margin"
class=
"global-left-margin"
:is-edit=
"false"
:is-edit=
"false"
:is-detail=
"true"
:part-sample-information=
"partSampleInformationList"
:part-sample-information=
"partSampleInformationList"
@
change=
"handleModChange"
@
change=
"handleModChange"
/>
/>
...
...
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