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
ebd08657
Commit
ebd08657
authored
Mar 13, 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
e3b50528
5afaabfc
Changes
14
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
289 additions
and
91 deletions
+289
-91
sample.js
src/api/system/sample.js
+8
-0
index.vue
src/views/processing/carReview/source-record/index.vue
+1
-1
index.vue
src/views/processing/carReview/vehicle-type/index.vue
+1
-1
companyFile.vue
...ing/carReview/write-check-form/components/companyFile.vue
+11
-0
index.vue
src/views/processing/carReview/write-check-form/index.vue
+23
-0
index.vue
src/views/processing/fileLibrary/index.vue
+5
-5
index.vue
src/views/processing/systemReview/confirm-result/index.vue
+1
-1
index.vue
src/views/processing/systemReview/source-record/index.vue
+1
-1
companyFile.vue
.../systemReview/write-check-form/components/companyFile.vue
+11
-0
index.vue
src/views/processing/systemReview/write-check-form/index.vue
+20
-0
index.vue
src/views/setting/sample/index.vue
+30
-10
index.vue
src/views/setting/sample/taskDetails/index.vue
+157
-70
index.vue
src/views/task/edit/index.vue
+19
-1
index.vue
src/views/task/task-detail/index.vue
+1
-1
No files found.
src/api/system/sample.js
View file @
ebd08657
...
@@ -66,3 +66,11 @@ export function selectDataStatistics(data){
...
@@ -66,3 +66,11 @@ export function selectDataStatistics(data){
data
:
data
data
:
data
})
})
}
}
export
function
componentSelect
(
data
){
return
request
({
url
:
'/system/enterprise/list'
,
method
:
'post'
,
data
:
data
})
}
src/views/processing/carReview/source-record/index.vue
View file @
ebd08657
...
@@ -89,7 +89,7 @@
...
@@ -89,7 +89,7 @@
</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>
...
...
src/views/processing/carReview/vehicle-type/index.vue
View file @
ebd08657
...
@@ -89,7 +89,7 @@
...
@@ -89,7 +89,7 @@
</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>
...
...
src/views/processing/carReview/write-check-form/components/companyFile.vue
View file @
ebd08657
...
@@ -67,6 +67,7 @@
...
@@ -67,6 +67,7 @@
v-model=
"model.fileName"
v-model=
"model.fileName"
placeholder=
"请输入"
placeholder=
"请输入"
input=
"updateFocus"
input=
"updateFocus"
@
input=
"handleUpdateFile"
></el-input>
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"发布日期"
prop=
"publishDate"
>
<el-form-item
label=
"发布日期"
prop=
"publishDate"
>
...
@@ -99,6 +100,10 @@ export default {
...
@@ -99,6 +100,10 @@ export default {
enterpriseName
:
{
enterpriseName
:
{
type
:
String
,
type
:
String
,
default
:
''
default
:
''
},
fileName
:
{
type
:
String
,
default
:
''
}
}
},
},
data
()
{
data
()
{
...
@@ -148,6 +153,9 @@ export default {
...
@@ -148,6 +153,9 @@ export default {
}
}
},
},
watch
:
{
watch
:
{
fileName
(
newValue
)
{
this
.
model
.
fileName
=
newValue
},
'dialogManger.dialogEditId'
(
newValue
)
{
'dialogManger.dialogEditId'
(
newValue
)
{
this
.
model
.
fetch
(
this
.
model
.
fetch
(
newValue
,
newValue
,
...
@@ -164,6 +172,9 @@ export default {
...
@@ -164,6 +172,9 @@ export default {
this
.
model
.
taskId
=
this
.
$route
.
query
.
taskId
this
.
model
.
taskId
=
this
.
$route
.
query
.
taskId
},
},
methods
:
{
methods
:
{
handleUpdateFile
(
newValue
)
{
this
.
$emit
(
'fileNameUpdate'
,
newValue
)
},
/**
/**
* 失去焦点回调
* 失去焦点回调
*/
*/
...
...
src/views/processing/carReview/write-check-form/index.vue
View file @
ebd08657
...
@@ -237,6 +237,12 @@
...
@@ -237,6 +237,12 @@
v-show=
"formManger.show"
v-show=
"formManger.show"
style=
"margin-left: 125px"
style=
"margin-left: 125px"
:enterprise-name=
"model.carReviewTask.enterpriseName"
:enterprise-name=
"model.carReviewTask.enterpriseName"
:file-name=
"form.fileName"
@
fileNameUpdate=
"
name => {
form.fileName = name
}
"
@
handleUpdate=
"handleFileUpdate"
@
handleUpdate=
"handleFileUpdate"
@
handleSave=
"handleFileSave"
@
handleSave=
"handleFileSave"
></company-file>
></company-file>
...
@@ -608,11 +614,25 @@ export default {
...
@@ -608,11 +614,25 @@ export default {
handleBack
()
{
handleBack
()
{
this
.
$router
.
go
(
-
1
)
this
.
$router
.
go
(
-
1
)
},
},
// 根据传入的名字去匹配数组内符合的项目并返回该项目
getProjectByName
(
arr
,
name
)
{
return
arr
.
find
(
item
=>
item
.
value
===
name
)
},
// 保存当前条目
// 保存当前条目
submitQuestionnaire
(
type
)
{
submitQuestionnaire
(
type
)
{
this
.
$refs
.
form
.
validate
(
valid
=>
{
this
.
$refs
.
form
.
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
if
(
!
this
.
isFileUpdate
)
{
if
(
!
this
.
isFileUpdate
)
{
// 根据公司文件和文件名获取特定项目项,并据此更新表单中的审核企业档案ID
const
files
=
this
.
companyFiles
// 获取公司文件列表
const
fileName
=
this
.
form
.
fileName
// 获取表单中填写的文件名
// 根据文件名在公司文件列表中查找对应项目项
const
item
=
this
.
getProjectByName
(
files
,
fileName
)
if
(
item
)
{
this
.
form
.
reviewEnterpriseArchiveId
=
item
.
id
// 找到项目项则更新表单的审核企业档案ID
}
else
{
this
.
form
.
reviewEnterpriseArchiveId
=
null
// 未找到则将审核企业档案ID设为null
}
reviewDetailsSubmit
(
this
.
form
).
then
(
async
res
=>
{
reviewDetailsSubmit
(
this
.
form
).
then
(
async
res
=>
{
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
await
this
.
getTask
()
await
this
.
getTask
()
...
@@ -641,6 +661,9 @@ export default {
...
@@ -641,6 +661,9 @@ export default {
this
.
$router
.
go
(
-
1
)
this
.
$router
.
go
(
-
1
)
})
})
},
},
/**
*确认细则内容变更
*/
confirmDetailChange
()
{
confirmDetailChange
()
{
reviewDetailsConfirm
({
reviewDetailsConfirm
({
detailsId
:
this
.
taskModel
.
id
,
detailsId
:
this
.
taskModel
.
id
,
...
...
src/views/processing/fileLibrary/index.vue
View file @
ebd08657
...
@@ -138,12 +138,12 @@
...
@@ -138,12 +138,12 @@
align
=
"left"
align
=
"left"
>
>
<
template
slot
-
scope
=
"scope"
>
<
template
slot
-
scope
=
"scope"
>
<
img
<
el
-
image
style
=
"width: 36px; height: 36px"
:
src
=
"baseUrl + scope.row.photo"
:
src
=
"baseUrl + scope.row.photo"
alt
=
"文件照片"
:
preview
-
src
-
list
=
"[baseUrl + scope.row.photo]"
width
=
"36"
>
height
=
"36"
<
/el-image
>
/>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
<
el
-
table
-
column
...
...
src/views/processing/systemReview/confirm-result/index.vue
View file @
ebd08657
...
@@ -94,7 +94,7 @@
...
@@ -94,7 +94,7 @@
</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
.
systemReviewTask
.
standardsPass
}}
%
{{
model
.
systemReviewTask
.
standardsPass
}}
%
</div>
</div>
...
...
src/views/processing/systemReview/source-record/index.vue
View file @
ebd08657
...
@@ -94,7 +94,7 @@
...
@@ -94,7 +94,7 @@
</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
.
systemReviewTask
.
standardsPass
}}
%
{{
model
.
systemReviewTask
.
standardsPass
}}
%
</div>
</div>
...
...
src/views/processing/systemReview/write-check-form/components/companyFile.vue
View file @
ebd08657
...
@@ -67,6 +67,7 @@
...
@@ -67,6 +67,7 @@
v-model=
"model.fileName"
v-model=
"model.fileName"
placeholder=
"请输入"
placeholder=
"请输入"
input=
"updateFocus"
input=
"updateFocus"
@
input=
"handleUpdateFile"
></el-input>
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"发布日期"
prop=
"publishDate"
>
<el-form-item
label=
"发布日期"
prop=
"publishDate"
>
...
@@ -99,6 +100,10 @@ export default {
...
@@ -99,6 +100,10 @@ export default {
enterpriseName
:
{
enterpriseName
:
{
type
:
String
,
type
:
String
,
default
:
''
default
:
''
},
fileName
:
{
type
:
String
,
default
:
''
}
}
},
},
data
()
{
data
()
{
...
@@ -148,6 +153,9 @@ export default {
...
@@ -148,6 +153,9 @@ export default {
}
}
},
},
watch
:
{
watch
:
{
fileName
(
newValue
)
{
this
.
model
.
fileName
=
newValue
},
'dialogManger.dialogEditId'
(
newValue
)
{
'dialogManger.dialogEditId'
(
newValue
)
{
this
.
model
.
fetch
(
this
.
model
.
fetch
(
newValue
,
newValue
,
...
@@ -164,6 +172,9 @@ export default {
...
@@ -164,6 +172,9 @@ export default {
this
.
model
.
taskId
=
this
.
$route
.
query
.
taskId
this
.
model
.
taskId
=
this
.
$route
.
query
.
taskId
},
},
methods
:
{
methods
:
{
handleUpdateFile
(
newValue
)
{
this
.
$emit
(
'fileNameUpdate'
,
newValue
)
},
/**
/**
* 失去焦点回调
* 失去焦点回调
*/
*/
...
...
src/views/processing/systemReview/write-check-form/index.vue
View file @
ebd08657
...
@@ -247,6 +247,12 @@
...
@@ -247,6 +247,12 @@
v-show=
"formManger.show"
v-show=
"formManger.show"
style=
"margin-left: 125px"
style=
"margin-left: 125px"
:enterprise-name=
"model.systemReviewTask.enterpriseName"
:enterprise-name=
"model.systemReviewTask.enterpriseName"
:file-name=
"form.fileName"
@
fileNameUpdate=
"
name => {
form.fileName = name
}
"
@
handleUpdate=
"handleFileUpdate"
@
handleUpdate=
"handleFileUpdate"
@
handleSave=
"handleFileSave"
@
handleSave=
"handleFileSave"
></company-file>
></company-file>
...
@@ -623,11 +629,25 @@ export default {
...
@@ -623,11 +629,25 @@ export default {
handleBack
()
{
handleBack
()
{
this
.
$router
.
go
(
-
1
)
this
.
$router
.
go
(
-
1
)
},
},
// 根据传入的名字去匹配数组内符合的项目并返回该项目
getProjectByName
(
arr
,
name
)
{
return
arr
.
find
(
item
=>
item
.
value
===
name
)
},
// 保存当前条目
// 保存当前条目
submitQuestionnaire
(
type
)
{
submitQuestionnaire
(
type
)
{
this
.
$refs
.
form
.
validate
(
valid
=>
{
this
.
$refs
.
form
.
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
if
(
!
this
.
isFileUpdate
)
{
if
(
!
this
.
isFileUpdate
)
{
// 根据公司文件和文件名获取特定项目项,并据此更新表单中的审核企业档案ID
const
files
=
this
.
companyFiles
// 获取公司文件列表
const
fileName
=
this
.
form
.
fileName
// 获取表单中填写的文件名
// 根据文件名在公司文件列表中查找对应项目项
const
item
=
this
.
getProjectByName
(
files
,
fileName
)
if
(
item
)
{
this
.
form
.
reviewEnterpriseArchiveId
=
item
.
id
// 找到项目项则更新表单的审核企业档案ID
}
else
{
this
.
form
.
reviewEnterpriseArchiveId
=
null
// 未找到则将审核企业档案ID设为null
}
reviewDetailsSubmit
(
this
.
form
).
then
(
async
res
=>
{
reviewDetailsSubmit
(
this
.
form
).
then
(
async
res
=>
{
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
await
this
.
getTask
()
await
this
.
getTask
()
...
...
src/views/setting/sample/index.vue
View file @
ebd08657
...
@@ -274,14 +274,20 @@
...
@@ -274,14 +274,20 @@
>
>
</el-date-picker>
</el-date-picker>
</el-form-item>
</el-form-item>
<el-form-item
label=
"生产企业"
prop=
"manufacturingEnterprise"
>
<el-form-item
label=
"生产企业"
prop=
"manufacturingEnterpriseId"
>
<el-input
<el-select
v-model=
"editParamsForm.manufacturingEnterprise"
v-model=
"editParamsForm.manufacturingEnterpriseId"
placeholder=
"请输入生产企业"
placeholder=
"请选择"
clearable
maxlength=
"50"
style=
"width: 90%"
style=
"width: 90%"
/>
>
<el-option
v-for=
"item in componentSelect"
:key=
"item.id"
:label=
"item.enterpriseName"
:value=
"item.id"
>
</el-option>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"商标"
prop=
"trademark"
>
<el-form-item
label=
"商标"
prop=
"trademark"
>
<image-upload
<image-upload
...
@@ -390,6 +396,7 @@ import {
...
@@ -390,6 +396,7 @@ import {
import
MaterialLibrary
from
'@/views/setting/materialLibrary/index.vue'
import
MaterialLibrary
from
'@/views/setting/materialLibrary/index.vue'
import
materialLibrary
from
'@/views/setting/materialLibrary/index.vue'
import
materialLibrary
from
'@/views/setting/materialLibrary/index.vue'
import
{
isExternal
}
from
'@/utils/validate'
import
{
isExternal
}
from
'@/utils/validate'
import
{
componentSelect
}
from
'../../../api/system/sample'
export
default
{
export
default
{
components
:
{
MaterialLibrary
},
components
:
{
MaterialLibrary
},
...
@@ -425,8 +432,8 @@ export default {
...
@@ -425,8 +432,8 @@ export default {
manufactureDate
:
[
manufactureDate
:
[
{
required
:
true
,
message
:
'请选择生产日期'
,
trigger
:
'change'
}
{
required
:
true
,
message
:
'请选择生产日期'
,
trigger
:
'change'
}
],
],
manufacturingEnterprise
:
[
manufacturingEnterprise
Id
:
[
{
required
:
true
,
message
:
'请
输入生产企业'
,
trigger
:
'blur
'
}
{
required
:
true
,
message
:
'请
选择生产企业'
,
trigger
:
'change
'
}
]
]
},
},
editParamsForm
:
{
editParamsForm
:
{
...
@@ -454,7 +461,8 @@ export default {
...
@@ -454,7 +461,8 @@ export default {
dialogVisible
:
false
,
dialogVisible
:
false
,
trademarkDisplay
:
true
,
trademarkDisplay
:
true
,
dialogTitle
:
'新建'
,
dialogTitle
:
'新建'
,
samplePhotosDisplay
:
true
samplePhotosDisplay
:
true
,
componentSelect
:
[]
}
}
},
},
computed
:
{
computed
:
{
...
@@ -484,8 +492,20 @@ export default {
...
@@ -484,8 +492,20 @@ export default {
},
},
created
()
{
created
()
{
this
.
getList
()
this
.
getList
()
this
.
getComponentSelect
()
},
},
methods
:
{
methods
:
{
getComponentSelect
()
{
componentSelect
({
pageNum
:
1
,
pageSize
:
9999
,
isAsc
:
'desc'
,
orderByColumn
:
'createTime'
}).
then
(
res
=>
{
this
.
componentSelect
=
res
.
rows
console
.
log
(
'res'
,
res
)
})
},
closeMaterial
(
data
)
{
closeMaterial
(
data
)
{
this
.
materialShow
=
data
this
.
materialShow
=
data
},
},
...
...
src/views/setting/sample/taskDetails/index.vue
View file @
ebd08657
This diff is collapsed.
Click to expand it.
src/views/task/edit/index.vue
View file @
ebd08657
...
@@ -4,6 +4,10 @@
...
@@ -4,6 +4,10 @@
<div
class=
"tip-navigation"
>
<div
class=
"tip-navigation"
>
<div
class=
"tip"
></div>
<div
class=
"tip"
></div>
<div
class=
"tip-title"
>
任务信息
</div>
<div
class=
"tip-title"
>
任务信息
</div>
<div
class=
"left-back"
@
click=
"backPage"
>
<icon-park
type=
"left"
size=
"14"
fill=
"#1a6fd7"
/>
<span
class=
"return-button"
>
取消
</span>
</div>
</div>
</div>
<div
class=
"global-left-margin"
>
<div
class=
"global-left-margin"
>
<el-row
:gutter=
"20"
>
<el-row
:gutter=
"20"
>
...
@@ -18,7 +22,7 @@
...
@@ -18,7 +22,7 @@
v-for=
"(item, key) in standardList"
v-for=
"(item, key) in standardList"
:key=
"key"
:key=
"key"
:value=
"item.id"
:value=
"item.id"
:label=
"item.name"
:label=
"item.
standardNo + ' ' + item.
name"
/>
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
...
@@ -998,6 +1002,9 @@ export default {
...
@@ -998,6 +1002,9 @@ export default {
// 去掉一个数组最后一个对象
// 去掉一个数组最后一个对象
this
.
tableData
.
pop
()
this
.
tableData
.
pop
()
},
},
backPage
()
{
this
.
$router
.
go
(
-
1
)
},
/**
/**
* 添加小组成员点击按钮
* 添加小组成员点击按钮
*/
*/
...
@@ -1232,6 +1239,17 @@ export default {
...
@@ -1232,6 +1239,17 @@ export default {
font-weight
:
700
;
font-weight
:
700
;
color
:
#1a6fd7
;
color
:
#1a6fd7
;
}
}
.left-back
{
position
:
absolute
;
right
:
2%
;
display
:
flex
;
color
:
#1a6fd7
;
cursor
:
pointer
;
.return-button
{
padding-left
:
7px
;
}
}
}
}
.sortable-handle
{
.sortable-handle
{
...
...
src/views/task/task-detail/index.vue
View file @
ebd08657
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
v-for=
"(item, key) in standardList"
v-for=
"(item, key) in standardList"
:key=
"key"
:key=
"key"
:value=
"item.id"
:value=
"item.id"
:label=
"item.name"
:label=
"item.
standardNo + ' ' + item.
name"
/>
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
...
...
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