Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
rongtong-app
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
融通安全管理系统
rongtong-app
Commits
089370e8
Commit
089370e8
authored
Jul 26, 2023
by
杨帆
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-yf'' into 'develop'
Dev yf' See merge request
!29
parents
dc70a264
2d1c9c05
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
760 additions
and
684 deletions
+760
-684
src/views/riskProject/add/addCurrent.vue
src/views/riskProject/add/addCurrent.vue
+101
-72
src/views/riskProject/add/addInherent.vue
src/views/riskProject/add/addInherent.vue
+247
-213
src/views/riskProject/add/addPresent.vue
src/views/riskProject/add/addPresent.vue
+152
-152
src/views/riskProject/add/inherentRisks.vue
src/views/riskProject/add/inherentRisks.vue
+9
-3
src/views/riskProject/add/taskList.vue
src/views/riskProject/add/taskList.vue
+4
-4
src/views/riskProject/taskLedger/presentDetail.vue
src/views/riskProject/taskLedger/presentDetail.vue
+163
-164
src/views/riskProject/taskLedger/tabDetail.vue
src/views/riskProject/taskLedger/tabDetail.vue
+84
-76
No files found.
src/views/riskProject/add/addCurrent.vue
View file @
089370e8
...
@@ -96,9 +96,19 @@
...
@@ -96,9 +96,19 @@
@
click=
"selectData('pointType', true)"
@
click=
"selectData('pointType', true)"
:rules=
"[
{ required: true, message: '风险点类型不能为空' }]"
:rules=
"[
{ required: true, message: '风险点类型不能为空' }]"
/>
/>
<van-field
required
label=
"是否为特种设备"
v-show=
"form.pointType=='设备设施类'"
>
<van-field
required
label=
"是否为特种设备"
v-show=
"form.pointType == '设备设施类'"
>
<template
#input
>
<template
#input
>
<van-switch
v-model=
"form.specialEquipment"
size=
"20"
name=
"specialEquipment"
/>
<span
style=
"margin-right: 10px;color: red;"
>
否
</span>
<van-switch
v-model=
"form.specialEquipment"
size=
"20"
name=
"specialEquipment"
/>
<span
style=
"margin-left: 10px;color: green;"
>
是
</span>
</
template
>
</
template
>
</van-field>
</van-field>
<!-- 多选 -->
<!-- 多选 -->
...
@@ -167,18 +177,18 @@
...
@@ -167,18 +177,18 @@
风险图片
风险图片
</div>
</div>
<van-field
name=
"hdPicture1"
label=
"风险图片"
>
<van-field
name=
"hdPicture1"
label=
"风险图片"
>
<
template
#input
>
<
template
#input
>
<van-uploader
<van-uploader
@
delete=
"deleteFile(...arguments, 'pictureFile')"
@
delete=
"deleteFile(...arguments, 'pictureFile')"
multiple
multiple
:max-count=
"5"
:max-count=
"5"
upload-text=
"最多上传五个"
upload-text=
"最多上传五个"
v-model=
"uploaderImg"
v-model=
"uploaderImg"
>
>
<template
slot=
"default"
>
<template
slot=
"default"
>
<!-- 11111111111 -->
<!-- 11111111111 -->
<div
<div
style=
"
style=
"
width: 2.13333rem;
width: 2.13333rem;
height: 2.13333rem;
height: 2.13333rem;
background: #f7f8fa;
background: #f7f8fa;
...
@@ -187,18 +197,18 @@
...
@@ -187,18 +197,18 @@
justify-content: center;
justify-content: center;
flex-direction: column;
flex-direction: column;
"
"
>
>
<img
<img
src=
"@/assets/upload/pic.png"
src=
"@/assets/upload/pic.png"
alt=
""
alt=
""
style=
"width: 0.64rem; height: 0.64rem"
style=
"width: 0.64rem; height: 0.64rem"
/>
/>
<span
class=
"van-uploader__upload-text"
>
最多上传五个
</span>
<span
class=
"van-uploader__upload-text"
>
最多上传五个
</span>
</div>
</div>
</
template
>
</
template
>
</van-uploader>
</van-uploader>
</template>
</template>
</van-field>
</van-field>
<div
<div
style=
"height: 1rem;font-family: '微软雅黑 Bold', '微软雅黑 Regular', '微软雅黑';font-weight: 700;line-height: 1rem;"
style=
"height: 1rem;font-family: '微软雅黑 Bold', '微软雅黑 Regular', '微软雅黑';font-weight: 700;line-height: 1rem;"
>
>
...
@@ -207,7 +217,7 @@
...
@@ -207,7 +217,7 @@
alt=
""
alt=
""
style=
"position: relative;top: 32%;transform: translateY(-50%);"
style=
"position: relative;top: 32%;transform: translateY(-50%);"
/>
/>
应采取的管控措施
应采取的管控措施
</div>
</div>
<van-field
label=
"技术措施"
>
<van-field
label=
"技术措施"
>
<
template
#input
>
<
template
#input
>
...
@@ -221,7 +231,7 @@
...
@@ -221,7 +231,7 @@
placeholder=
"请输入"
placeholder=
"请输入"
style=
"padding-left: 0;padding-top: 0;"
style=
"padding-left: 0;padding-top: 0;"
/>
/>
</
template
>
</
template
>
</van-field>
</van-field>
<van-field
name=
"measuresProjectFile[]"
label=
"技术措施附件"
>
<van-field
name=
"measuresProjectFile[]"
label=
"技术措施附件"
>
<
template
#input
>
<
template
#input
>
...
@@ -256,21 +266,21 @@
...
@@ -256,21 +266,21 @@
</van-uploader>
</van-uploader>
</template>
</template>
</van-field>
</van-field>
<van-field
label=
"管控
措施"
>
<van-field
label=
"管理
措施"
>
<
template
#input
>
<
template
#input
>
<van-field
<van-field
v-model=
"form.measuresAdministration"
v-model=
"form.measuresAdministration"
name=
"measuresAdministration"
name=
"measuresAdministration"
label=
""
label=
""
type=
"textarea"
type=
"textarea"
rows=
"3"
rows=
"3"
autosize
autosize
placeholder=
"请输入"
placeholder=
"请输入"
style=
"padding-left: 0;padding-top: 0;"
style=
"padding-left: 0;padding-top: 0;"
/>
/>
</
template
>
</
template
>
</van-field>
</van-field>
<van-field
name=
"measuresAdministrationFile[]"
label=
"管
控
措施附件"
>
<van-field
name=
"measuresAdministrationFile[]"
label=
"管
理
措施附件"
>
<
template
#input
>
<
template
#input
>
<van-uploader
<van-uploader
multiple
multiple
...
@@ -303,7 +313,7 @@
...
@@ -303,7 +313,7 @@
</van-uploader>
</van-uploader>
</template>
</template>
</van-field>
</van-field>
<van-field
label=
"应急措施"
>
<van-field
label=
"应急措施"
>
<
template
#input
>
<
template
#input
>
<van-field
<van-field
v-model=
"form.measuresEmergency"
v-model=
"form.measuresEmergency"
...
@@ -313,9 +323,9 @@
...
@@ -313,9 +323,9 @@
rows=
"3"
rows=
"3"
autosize
autosize
placeholder=
"请输入"
placeholder=
"请输入"
style=
"padding-left: 0;padding-top: 0;"
style=
"padding-left: 0;padding-top: 0;"
/>
/>
</
template
>
</
template
>
</van-field>
</van-field>
<van-field
name=
"measuresEmergencyFile[]"
label=
"应急措施附件"
>
<van-field
name=
"measuresEmergencyFile[]"
label=
"应急措施附件"
>
<
template
#input
>
<
template
#input
>
...
@@ -375,7 +385,7 @@
...
@@ -375,7 +385,7 @@
autosize
autosize
placeholder=
"请输入"
placeholder=
"请输入"
/>
/>
<van-field
<van-field
v-model=
"form.measuresUserPhone"
v-model=
"form.measuresUserPhone"
name=
"measuresUserPhone"
name=
"measuresUserPhone"
label=
"管控责任人联系方式"
label=
"管控责任人联系方式"
...
@@ -396,13 +406,15 @@
...
@@ -396,13 +406,15 @@
/>
/>
重大危险源管理
重大危险源管理
</div>
</div>
<van-field
name=
"majorHazardSource"
label=
"是否为重大危险源"
>
<van-field
name=
"majorHazardSource"
label=
"是否为重大危险源"
>
<
template
#input
>
<
template
#input
>
<span
style=
"margin-right: 10px;color: red;"
>
否
</span>
<van-switch
v-model=
"form.majorHazardSource"
size=
"20"
/>
<van-switch
v-model=
"form.majorHazardSource"
size=
"20"
/>
<span
style=
"margin-left: 10px;color: green;"
>
是
</span>
</
template
>
</
template
>
</van-field>
</van-field>
<van-field
<van-field
:disabled=
"!form.majorHazardSource"
:disabled=
"!form.majorHazardSource"
v-model=
"form.hazardSourceName"
v-model=
"form.hazardSourceName"
:required=
"form.majorHazardSource"
:required=
"form.majorHazardSource"
...
@@ -412,24 +424,35 @@
...
@@ -412,24 +424,35 @@
rows=
"1"
rows=
"1"
autosize
autosize
placeholder=
"请输入"
placeholder=
"请输入"
:key=
"form.majorHazardSource+'123'"
:key=
"form.majorHazardSource + '123'"
:rules=
"form.majorHazardSource?[{ required: true, message: '危险源名称不能为空' }]:[]"
:rules=
"
form.majorHazardSource
? [{ required: true, message: '危险源名称不能为空' }]
: []
"
/>
/>
<van-field
label=
"重大危险源描述"
:disabled=
"!form.majorHazardSource"
:required=
"form.majorHazardSource"
>
<van-field
<
template
#input
>
label=
"重大危险源描述"
:disabled=
"!form.majorHazardSource"
:required=
"form.majorHazardSource"
>
<
template
#input
>
<van-field
<van-field
:disabled=
"!form.majorHazardSource"
:disabled=
"!form.majorHazardSource"
v-model=
"form.majorHazardSourceDescription"
v-model=
"form.majorHazardSourceDescription"
name=
"majorHazardSourceDescription"
name=
"majorHazardSourceDescription"
type=
"textarea"
type=
"textarea"
rows=
"3"
rows=
"3"
autosize
autosize
placeholder=
"请输入"
placeholder=
"请输入"
:key=
"form.majorHazardSource+'456'"
:key=
"form.majorHazardSource + '456'"
:rules=
"form.majorHazardSource?[
{ required: true, message: '重大危险源描述不能为空' }]:[]"
:rules=
"
form.majorHazardSource
? [
{ required: true, message: '重大危险源描述不能为空' }]
: []
"
style="padding-left: 0;padding-top: 0;"
style="padding-left: 0;padding-top: 0;"
/>
/>
</
template
>
</
template
>
</van-field>
</van-field>
<van-field
<van-field
...
@@ -438,16 +461,22 @@
...
@@ -438,16 +461,22 @@
readonly
readonly
clickable
clickable
name=
"referenceBasis"
name=
"referenceBasis"
:value=
"form.referenceBasis
=='null'?'':
form.referenceBasis"
:value=
"form.referenceBasis
== 'null' ? '' :
form.referenceBasis"
label=
"判断依据"
label=
"判断依据"
placeholder=
"请选择"
placeholder=
"请选择"
:key=
"form.majorHazardSource+'789'"
:key=
"form.majorHazardSource + '789'"
:rules=
"form.majorHazardSource?[{ required: true, message: '判断依据不能为空' }]:[]"
:rules=
"
@
click=
"()=>{
form.majorHazardSource
if(form.majorHazardSource){
? [{ required: true, message: '判断依据不能为空' }]
selectData('referenceBasis', false)
: []
}
"
}"
@
click=
"
() => {
if (form.majorHazardSource) {
selectData('referenceBasis', false);
}
}
"
/>
/>
<!-- <div
<!-- <div
style="height: 1rem;font-family: '微软雅黑 Bold', '微软雅黑 Regular', '微软雅黑';font-weight: 700;line-height: 1rem;"
style="height: 1rem;font-family: '微软雅黑 Bold', '微软雅黑 Regular', '微软雅黑';font-weight: 700;line-height: 1rem;"
...
@@ -459,7 +488,7 @@
...
@@ -459,7 +488,7 @@
/>
/>
判断依据
判断依据
</div> -->
</div> -->
<van-dialog
<van-dialog
v-model=
"showGradeDialog"
v-model=
"showGradeDialog"
title=
"风险评测配置"
title=
"风险评测配置"
...
@@ -877,7 +906,7 @@ export default {
...
@@ -877,7 +906,7 @@ export default {
id
:
""
,
id
:
""
,
isTimely
:
1
,
isTimely
:
1
,
active
:
0
,
active
:
0
,
form
:
{
},
form
:
{},
projectId
:
""
,
// 所属工程
projectId
:
""
,
// 所属工程
projectName
:
""
,
// 所属工程
projectName
:
""
,
// 所属工程
projectDirectorName
:
""
,
// 所属工程
projectDirectorName
:
""
,
// 所属工程
...
@@ -1302,7 +1331,7 @@ export default {
...
@@ -1302,7 +1331,7 @@ export default {
// console.log('%c [ values ]-592', 'font-size:13px; background:pink; color:#bf2c9f;', values)
// console.log('%c [ values ]-592', 'font-size:13px; background:pink; color:#bf2c9f;', values)
var
formDataJson
=
this
.
jsonToFormData
(
this
.
form
);
var
formDataJson
=
this
.
jsonToFormData
(
this
.
form
);
let
url
=
"
/risk/plan/inherent
"
;
let
url
=
"
/risk/plan/inherent
"
;
(
values
.
hdPicture1
||
[]).
forEach
(
item
=>
{
(
values
.
hdPicture1
||
[]).
forEach
(
item
=>
{
if
(
item
.
file
)
{
if
(
item
.
file
)
{
formDataJson
.
append
(
"
pictureFile[]
"
,
item
.
file
);
formDataJson
.
append
(
"
pictureFile[]
"
,
item
.
file
);
}
else
{
}
else
{
...
@@ -1463,12 +1492,12 @@ export default {
...
@@ -1463,12 +1492,12 @@ export default {
}
}
},
},
watch
:
{
watch
:
{
'
form.pointType
'
(
val
,
old
)
{
"
form.pointType
"
(
val
,
old
)
{
if
(
old
)
{
if
(
old
)
{
if
(
val
==
'
设备设施类
'
)
{
if
(
val
==
"
设备设施类
"
)
{
this
.
form
.
specialEquipment
=
false
this
.
form
.
specialEquipment
=
false
;
}
else
{
}
else
{
this
.
form
.
specialEquipment
=
''
this
.
form
.
specialEquipment
=
""
;
}
}
}
}
}
}
...
...
src/views/riskProject/add/addInherent.vue
View file @
089370e8
...
@@ -94,11 +94,21 @@
...
@@ -94,11 +94,21 @@
@
click=
"selectData('pointType', true)"
@
click=
"selectData('pointType', true)"
:rules=
"[
{ required: true, message: '风险点类型不能为空' }]"
:rules=
"[
{ required: true, message: '风险点类型不能为空' }]"
/>
/>
<van-field
required
label=
"是否为特种设备"
v-show=
"form.pointType=='设备设施类'"
>
<van-field
<template
#input
>
required
<van-switch
name=
"specialEquipment"
v-model=
"form.specialEquipment"
size=
"20"
/>
label=
"是否为特种设备"
</
template
>
v-show=
"form.pointType == '设备设施类'"
</van-field>
>
<template
#input
>
<span
style=
"margin-right: 10px;color: red;"
>
否
</span>
<van-switch
name=
"specialEquipment"
v-model=
"form.specialEquipment"
size=
"20"
/>
<span
style=
"margin-left: 10px;color: green;"
>
是
</span>
</
template
>
</van-field>
<!-- 多选 -->
<!-- 多选 -->
<van-field
<van-field
v-model=
"form.safetyWarningSigns"
v-model=
"form.safetyWarningSigns"
...
@@ -197,42 +207,42 @@
...
@@ -197,42 +207,42 @@
</template>
</template>
</van-field>
</van-field>
<div
<div
style=
"height: 1rem;font-family: '微软雅黑 Bold', '微软雅黑 Regular', '微软雅黑';font-weight: 700;line-height: 1rem;"
style=
"height: 1rem;font-family: '微软雅黑 Bold', '微软雅黑 Regular', '微软雅黑';font-weight: 700;line-height: 1rem;"
>
<img
src=
"@/assets/accidentIcon/bookmark.svg"
alt=
""
style=
"position: relative;top: 32%;transform: translateY(-50%);"
/>
应采取的管控措施
</div>
<van-field
label=
"技术措施"
>
<
template
#input
>
<van-field
v-model=
"form.measuresProject"
name=
"measuresProject"
label=
""
type=
"textarea"
rows=
"3"
autosize
placeholder=
"请输入"
style=
"padding-left: 0;padding-top: 0;"
/>
</
template
>
</van-field>
<van-field
name=
"measuresProjectFile[]"
label=
"技术措施附件"
>
<
template
#input
>
<van-uploader
multiple
:max-count=
"5"
upload-text=
"最多上传五个"
v-model=
"measuresProjectFile"
accept=
"file"
@
delete=
"deleteFile(...arguments, 'measuresProjectFile')"
>
>
<img
<template
slot=
"default"
>
src=
"@/assets/accidentIcon/bookmark.svg"
<div
alt=
""
style=
"
style=
"position: relative;top: 32%;transform: translateY(-50%);"
/>
应采取的管控措施
</div>
<van-field
label=
"技术措施"
>
<
template
#input
>
<van-field
v-model=
"form.measuresProject"
name=
"measuresProject"
label=
""
type=
"textarea"
rows=
"3"
autosize
placeholder=
"请输入"
style=
"padding-left: 0;padding-top: 0;"
/>
</
template
>
</van-field>
<van-field
name=
"measuresProjectFile[]"
label=
"技术措施附件"
>
<
template
#input
>
<van-uploader
multiple
:max-count=
"5"
upload-text=
"最多上传五个"
v-model=
"measuresProjectFile"
accept=
"file"
@
delete=
"deleteFile(...arguments, 'measuresProjectFile')"
>
<template
slot=
"default"
>
<div
style=
"
width: 2.13333rem;
width: 2.13333rem;
height: 2.13333rem;
height: 2.13333rem;
background: #f7f8fa;
background: #f7f8fa;
...
@@ -241,45 +251,45 @@
...
@@ -241,45 +251,45 @@
justify-content: center;
justify-content: center;
flex-direction: column;
flex-direction: column;
"
"
>
<img
src=
"@/assets/upload/file.png"
alt=
""
style=
"width: 0.64rem; height: 0.64rem"
/>
<span
class=
"van-uploader__upload-text"
>
最多上传五个
</span>
</div>
</
template
>
</van-uploader>
</template>
</van-field>
<van-field
label=
"管控措施"
>
<
template
#input
>
<van-field
v-model=
"form.measuresAdministration"
name=
"measuresAdministration"
label=
""
type=
"textarea"
rows=
"3"
autosize
placeholder=
"请输入"
style=
"padding-left: 0;padding-top: 0;"
/>
</
template
>
</van-field>
<van-field
name=
"measuresAdministrationFile[]"
label=
"管控措施附件"
>
<
template
#input
>
<van-uploader
multiple
:max-count=
"5"
upload-text=
"最多上传五个"
v-model=
"measuresAdministrationFile"
accept=
"file"
@
delete=
"deleteFile(...arguments, 'measuresAdministrationFile')"
>
>
<template
slot=
"default"
>
<img
<div
src=
"@/assets/upload/file.png"
style=
"
alt=
""
style=
"width: 0.64rem; height: 0.64rem"
/>
<span
class=
"van-uploader__upload-text"
>
最多上传五个
</span>
</div>
</
template
>
</van-uploader>
</template>
</van-field>
<van-field
label=
"管理措施"
>
<
template
#input
>
<van-field
v-model=
"form.measuresAdministration"
name=
"measuresAdministration"
label=
""
type=
"textarea"
rows=
"3"
autosize
placeholder=
"请输入"
style=
"padding-left: 0;padding-top: 0;"
/>
</
template
>
</van-field>
<van-field
name=
"measuresAdministrationFile[]"
label=
"管理措施附件"
>
<
template
#input
>
<van-uploader
multiple
:max-count=
"5"
upload-text=
"最多上传五个"
v-model=
"measuresAdministrationFile"
accept=
"file"
@
delete=
"deleteFile(...arguments, 'measuresAdministrationFile')"
>
<template
slot=
"default"
>
<div
style=
"
width: 2.13333rem;
width: 2.13333rem;
height: 2.13333rem;
height: 2.13333rem;
background: #f7f8fa;
background: #f7f8fa;
...
@@ -288,46 +298,46 @@
...
@@ -288,46 +298,46 @@
justify-content: center;
justify-content: center;
flex-direction: column;
flex-direction: column;
"
"
>
<img
src=
"@/assets/upload/file.png"
alt=
""
style=
"width: 0.64rem; height: 0.64rem"
/>
<span
class=
"van-uploader__upload-text"
>
最多上传五个
</span>
</div>
</
template
>
</van-uploader>
</template>
</van-field>
<van-field
label=
"应急措施"
>
<
template
#input
>
<van-field
v-model=
"form.measuresEmergency"
name=
"measuresEmergency"
label=
""
type=
"textarea"
rows=
"3"
autosize
placeholder=
"请输入"
style=
"padding-left: 0;padding-top: 0;"
/>
</
template
>
</van-field>
<van-field
name=
"measuresEmergencyFile[]"
label=
"应急措施附件"
>
<
template
#input
>
<van-uploader
multiple
:max-count=
"5"
upload-text=
"最多上传五个"
v-model=
"measuresEmergencyFile"
accept=
"file"
@
delete=
"deleteFile(...arguments, 'measuresEmergencyFile')"
>
>
<template
slot=
"default"
>
<img
<!-- 11111111111 -->
src=
"@/assets/upload/file.png"
<div
alt=
""
style=
"
style=
"width: 0.64rem; height: 0.64rem"
/>
<span
class=
"van-uploader__upload-text"
>
最多上传五个
</span>
</div>
</
template
>
</van-uploader>
</template>
</van-field>
<van-field
label=
"应急措施"
>
<
template
#input
>
<van-field
v-model=
"form.measuresEmergency"
name=
"measuresEmergency"
label=
""
type=
"textarea"
rows=
"3"
autosize
placeholder=
"请输入"
style=
"padding-left: 0;padding-top: 0;"
/>
</
template
>
</van-field>
<van-field
name=
"measuresEmergencyFile[]"
label=
"应急措施附件"
>
<
template
#input
>
<van-uploader
multiple
:max-count=
"5"
upload-text=
"最多上传五个"
v-model=
"measuresEmergencyFile"
accept=
"file"
@
delete=
"deleteFile(...arguments, 'measuresEmergencyFile')"
>
<template
slot=
"default"
>
<!-- 11111111111 -->
<div
style=
"
width: 2.13333rem;
width: 2.13333rem;
height: 2.13333rem;
height: 2.13333rem;
background: #f7f8fa;
background: #f7f8fa;
...
@@ -336,18 +346,18 @@
...
@@ -336,18 +346,18 @@
justify-content: center;
justify-content: center;
flex-direction: column;
flex-direction: column;
"
"
>
>
<img
<img
src=
"@/assets/upload/file.png"
src=
"@/assets/upload/file.png"
alt=
""
alt=
""
style=
"width: 0.64rem; height: 0.64rem"
style=
"width: 0.64rem; height: 0.64rem"
/>
/>
<span
class=
"van-uploader__upload-text"
>
最多上传五个
</span>
<span
class=
"van-uploader__upload-text"
>
最多上传五个
</span>
</div>
</div>
</
template
>
</van-uploader>
</
template
>
</
template
>
</van-field>
</van-uploader>
</template>
</van-field>
<van-field
<van-field
v-model=
"form.measuresDeptName"
v-model=
"form.measuresDeptName"
name=
"measuresDeptName"
name=
"measuresDeptName"
...
@@ -356,11 +366,15 @@
...
@@ -356,11 +366,15 @@
rows=
"1"
rows=
"1"
autosize
autosize
placeholder=
"请输入"
placeholder=
"请输入"
list=
"measure-deptname
-input
"
list=
"measure-deptname"
@
input=
"measuresDeptNameChange"
@
input=
"measuresDeptNameChange"
/>
/>
<datalist
id=
"measure-deptname"
>
<datalist
id=
"measure-deptname"
>
<option
value=
"Chocolate"
v-for=
"item in measureDeptList"
:key=
"item.id"
/>
<option
:value=
"item.measuresDeptName"
v-for=
"item in measureDeptList"
:key=
"item.measuresDeptName"
></option>
</datalist>
</datalist>
<van-field
<van-field
v-model=
"form.measuresUserName"
v-model=
"form.measuresUserName"
...
@@ -373,19 +387,23 @@
...
@@ -373,19 +387,23 @@
list=
"measure-name"
list=
"measure-name"
@
input=
"measuresUserNameChange"
@
input=
"measuresUserNameChange"
/>
/>
<datalist
id=
"measure-name"
>
<datalist
id=
"measure-name"
>
<option
value=
"Chocolate"
v-for=
"item in measureNameList"
:key=
"item.id"
/>
<option
</datalist>
v-for=
"item in measureNameList"
<van-field
:key=
"item.measuresUserName"
v-model=
"form.measuresUserPhone"
:value=
"item.measuresUserName"
name=
"measuresUserPhone"
/>
label=
"管控责任人联系方式"
</datalist>
type=
"input"
<van-field
rows=
"1"
v-model=
"form.measuresUserPhone"
autosize
name=
"measuresUserPhone"
placeholder=
"请输入"
label=
"管控责任人联系方式"
maxlength=
"11"
type=
"input"
/>
rows=
"1"
autosize
placeholder=
"请输入"
maxlength=
"11"
/>
<div
<div
style=
"height: 1rem;font-family: '微软雅黑 Bold', '微软雅黑 Regular', '微软雅黑';font-weight: 700;line-height: 1rem;"
style=
"height: 1rem;font-family: '微软雅黑 Bold', '微软雅黑 Regular', '微软雅黑';font-weight: 700;line-height: 1rem;"
>
>
...
@@ -396,30 +414,39 @@
...
@@ -396,30 +414,39 @@
/>
/>
重大危险源管理
重大危险源管理
</div>
</div>
<van-field
name=
"majorHazardSource"
label=
"是否为重大危险源"
>
<van-field
name=
"majorHazardSource"
label=
"是否为重大危险源"
>
<
template
#input
>
<
template
#input
>
<span
style=
"margin-right: 10px;color: red;"
>
否
</span>
<van-switch
v-model=
"form.majorHazardSource"
size=
"20"
/>
<van-switch
v-model=
"form.majorHazardSource"
size=
"20"
/>
<span
style=
"margin-left: 10px;color: green;"
>
是
</span>
</
template
>
</
template
>
</van-field>
</van-field>
<van-field
<van-field
:disabled=
"!form.majorHazardSource"
:disabled=
"!form.majorHazardSource"
v-model=
"form.hazardSourceName"
v-model=
"form.hazardSourceName"
:required=
"form.majorHazardSource"
:required=
"form.majorHazardSource"
name=
"hazardSourceName"
name=
"hazardSourceName"
label=
"危险源名称 "
label=
"危险源名称 "
type=
"textarea"
type=
"textarea"
rows=
"1"
rows=
"1"
autosize
autosize
placeholder=
"请输入"
placeholder=
"请输入"
:key=
"form.majorHazardSource+'456'"
:key=
"form.majorHazardSource + '456'"
:rules=
"form.majorHazardSource?[{ required: true, message: '危险源名称不能为空' }]:[]"
:rules=
"
/>
form.majorHazardSource
<van-field
label=
"重大危险源描述"
:disabled=
"!form.majorHazardSource"
? [{ required: true, message: '危险源名称不能为空' }]
:required=
"form.majorHazardSource"
>
: []
<
template
#input
>
"
/>
<van-field
label=
"重大危险源描述"
:disabled=
"!form.majorHazardSource"
:required=
"form.majorHazardSource"
>
<
template
#input
>
<van-field
<van-field
:disabled=
"!form.majorHazardSource"
:disabled=
"!form.majorHazardSource"
v-model=
"form.majorHazardSourceDescription"
v-model=
"form.majorHazardSourceDescription"
name=
"majorHazardSourceDescription"
name=
"majorHazardSourceDescription"
label=
""
label=
""
...
@@ -427,30 +454,40 @@
...
@@ -427,30 +454,40 @@
rows=
"3"
rows=
"3"
autosize
autosize
placeholder=
"请输入"
placeholder=
"请输入"
:key=
"form.majorHazardSource+'123'"
:key=
"form.majorHazardSource + '123'"
:rules=
"form.majorHazardSource?[
{ required: true, message: '重大危险源描述不能为空' }]:[]"
:rules=
"
style="padding-left: 0;padding-top: 0;"
form.majorHazardSource
? [
{ required: true, message: '重大危险源描述不能为空' }]
: []
"
style="padding-left: 0;padding-top: 0;"
/>
/>
</
template
>
</
template
>
</van-field>
</van-field>
<van-field
<van-field
:disabled=
"!form.majorHazardSource"
:disabled=
"!form.majorHazardSource"
:required=
"form.majorHazardSource"
:required=
"form.majorHazardSource"
readonly
readonly
clickable
clickable
name=
"referenceBasis"
name=
"referenceBasis"
:value=
"form.referenceBasis=='null'?'':form.referenceBasis"
:value=
"form.referenceBasis == 'null' ? '' : form.referenceBasis"
label=
"判断依据"
label=
"判断依据"
placeholder=
"请选择"
placeholder=
"请选择"
:key=
"form.majorHazardSource+'7'"
:key=
"form.majorHazardSource + '7'"
:rules=
"form.majorHazardSource?[{ required: true, message: '判断依据不能为空' }]:[]"
:rules=
"
@
click=
"()=>{
form.majorHazardSource
if(form.majorHazardSource){
? [{ required: true, message: '判断依据不能为空' }]
selectData('referenceBasis', false)
: []
"
@
click=
"
() => {
if (form.majorHazardSource) {
selectData('referenceBasis', false);
}
}
}"
}
/>
"
/>
<van-dialog
<van-dialog
v-model=
"showGradeDialog"
v-model=
"showGradeDialog"
title=
"风险评测配置"
title=
"风险评测配置"
...
@@ -682,8 +719,8 @@ export default {
...
@@ -682,8 +719,8 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
measureNameList
:[],
measureNameList
:
[],
measureDeptList
:[],
measureDeptList
:
[],
measuresDept
:
false
,
measuresDept
:
false
,
ShowfloorList
:
false
,
ShowfloorList
:
false
,
floorSource
:
[],
floorSource
:
[],
...
@@ -708,7 +745,7 @@ export default {
...
@@ -708,7 +745,7 @@ export default {
isTimely
:
1
,
isTimely
:
1
,
active
:
0
,
active
:
0
,
form
:
{
form
:
{
specialEquipment
:
''
specialEquipment
:
""
},
},
projectId
:
""
,
// 所属工程
projectId
:
""
,
// 所属工程
projectName
:
""
,
// 所属工程
projectName
:
""
,
// 所属工程
...
@@ -720,14 +757,7 @@ export default {
...
@@ -720,14 +757,7 @@ export default {
factor
:
""
,
//风险因素
factor
:
""
,
//风险因素
showFactor
:
false
,
showFactor
:
false
,
columnsFactor
:
[],
columnsFactor
:
[],
messageList
:
[
messageList
:
[],
{
title
:
"
回显风险源名称
"
,
time
:
"
2022-12-12
"
,
name
:
"
Mr.周
"
,
state
:
1
}
],
source
:
""
,
//风险源
source
:
""
,
//风险源
userPrefix
:
""
,
//风险源
userPrefix
:
""
,
//风险源
showSource
:
false
,
showSource
:
false
,
...
@@ -799,22 +829,26 @@ export default {
...
@@ -799,22 +829,26 @@ export default {
methods
:
{
methods
:
{
/* swp add */
/* swp add */
measuresUserNameChange
(
e
){
measuresUserNameChange
(
e
)
{
this
.
getMeasureList
(
e
)
getFun
(
},
`/risk/plan/inherent/getResponsibilityPersons?personName=
${
e
}
&projectId=
${
this
.
form
.
projectId
}
`
measuresDeptNameChange
(
e
){
).
then
(
res
=>
{
this
.
getMeasureList
(
e
)
this
.
measureNameList
=
res
.
data
;
this
.
measureNameList
.
forEach
(
item
=>
{
if
(
item
.
measuresUserName
==
e
)
this
.
form
.
measuresUserPhone
=
item
.
measuresUserPhone
;
});
console
.
log
(
e
,
1111
);
});
},
},
getMeasureList
(
search
){
measuresDeptNameChange
(
e
)
{
getFun
(
''
).
then
(
res
=>
{
getFun
(
if
(
isSinge
)
{
`/risk/plan/inherent/getResponsibilityUnits?unitName=
${
e
}
&projectId=
${
this
.
form
.
projectId
}
`
).
then
(
res
=>
{
}
else
{
this
.
measureDeptList
=
res
.
data
;
this
.
columnsCheckData
=
res
.
data
;
});
this
.
showCheckSelect
=
true
;
}
})
},
},
getMeasureList
(
search
)
{},
/* swp add end */
/* swp add end */
// 项目负责人
// 项目负责人
onConTrouble
(
value
)
{
onConTrouble
(
value
)
{
...
@@ -1240,12 +1274,12 @@ export default {
...
@@ -1240,12 +1274,12 @@ export default {
}
}
},
},
watch
:
{
watch
:
{
'
form.pointType
'
(
val
,
old
)
{
"
form.pointType
"
(
val
,
old
)
{
if
(
val
==
'
设备设施类
'
)
{
if
(
val
==
"
设备设施类
"
)
{
this
.
form
.
specialEquipment
=
false
this
.
form
.
specialEquipment
=
false
;
}
else
{
}
else
{
this
.
form
.
specialEquipment
=
''
this
.
form
.
specialEquipment
=
""
;
}
}
}
}
}
}
};
};
...
...
src/views/riskProject/add/addPresent.vue
View file @
089370e8
...
@@ -149,42 +149,42 @@
...
@@ -149,42 +149,42 @@
</template>
</template>
</van-field>
</van-field>
<div
<div
style=
"height: 1rem;font-family: '微软雅黑 Bold', '微软雅黑 Regular', '微软雅黑';font-weight: 700;line-height: 1rem;"
style=
"height: 1rem;font-family: '微软雅黑 Bold', '微软雅黑 Regular', '微软雅黑';font-weight: 700;line-height: 1rem;"
>
>
<img
<img
src=
"@/assets/accidentIcon/bookmark.svg"
src=
"@/assets/accidentIcon/bookmark.svg"
alt=
""
alt=
""
style=
"position: relative;top: 32%;transform: translateY(-50%);"
style=
"position: relative;top: 32%;transform: translateY(-50%);"
/>
已采取的管控措施
</div>
<van-field
label=
"技术措施"
>
<
template
#input
>
<van-field
v-model=
"form.measuresProject"
name=
"measuresProject"
label=
""
type=
"textarea"
rows=
"3"
autosize
placeholder=
"请输入"
style=
"padding-left: 0;padding-top: 0;"
/>
/>
已采取的管控措施
</
template
>
</div>
</van-field>
<van-field
label=
"技术措施"
>
<van-field
name=
"measuresProjectFile[]"
label=
"技术措施附件"
>
<
template
#input
>
<
template
#input
>
<van-field
<van-uploader
v-model=
"form.measuresProject"
multiple
name=
"measuresProject"
:max-count=
"5"
label=
""
upload-text=
"最多上传五个"
type=
"textarea"
v-model=
"measuresProjectFile"
rows=
"3"
accept=
"file"
autosize
@
delete=
"deleteFile(...arguments, 'measuresProjectFile')"
placeholder=
"请输入"
>
style=
"padding-left: 0;padding-top: 0;"
<template
slot=
"default"
>
/>
<div
</
template
>
style=
"
</van-field>
<van-field
name=
"measuresProjectFile[]"
label=
"技术措施附件"
>
<
template
#input
>
<van-uploader
multiple
:max-count=
"5"
upload-text=
"最多上传五个"
v-model=
"measuresProjectFile"
accept=
"file"
@
delete=
"deleteFile(...arguments, 'measuresProjectFile')"
>
<template
slot=
"default"
>
<div
style=
"
width: 2.13333rem;
width: 2.13333rem;
height: 2.13333rem;
height: 2.13333rem;
background: #f7f8fa;
background: #f7f8fa;
...
@@ -193,45 +193,45 @@
...
@@ -193,45 +193,45 @@
justify-content: center;
justify-content: center;
flex-direction: column;
flex-direction: column;
"
"
>
>
<img
<img
src=
"@/assets/upload/file.png"
src=
"@/assets/upload/file.png"
alt=
""
alt=
""
style=
"width: 0.64rem; height: 0.64rem"
style=
"width: 0.64rem; height: 0.64rem"
/>
/>
<span
class=
"van-uploader__upload-text"
>
最多上传五个
</span>
<span
class=
"van-uploader__upload-text"
>
最多上传五个
</span>
</div>
</div>
</
template
>
</
template
>
</van-uploader>
</van-uploader>
</template>
</van-field>
<van-field
label=
"管控措施"
>
<
template
#input
>
<van-field
v-model=
"form.measuresAdministration"
name=
"measuresAdministration"
label=
""
type=
"textarea"
rows=
"3"
autosize
placeholder=
"请输入"
style=
"padding-left: 0;padding-top: 0;"
/>
</template>
</template>
</van-field>
</van-field>
<van-field
name=
"measuresAdministrationFile[]"
label=
"管控措施附件"
>
<van-field
label=
"管理措施"
>
<
template
#input
>
<
template
#input
>
<van-uploader
<van-field
multiple
v-model=
"form.measuresAdministration"
:max-count=
"5"
name=
"measuresAdministration"
upload-text=
"最多上传五个"
label=
""
v-model=
"measuresAdministrationFile"
type=
"textarea"
accept=
"file"
rows=
"3"
@
delete=
"deleteFile(...arguments, 'measuresAdministrationFile')"
autosize
>
placeholder=
"请输入"
<template
slot=
"default"
>
style=
"padding-left: 0;padding-top: 0;"
<div
/>
style=
"
</
template
>
</van-field>
<van-field
name=
"measuresAdministrationFile[]"
label=
"管理措施附件"
>
<
template
#input
>
<van-uploader
multiple
:max-count=
"5"
upload-text=
"最多上传五个"
v-model=
"measuresAdministrationFile"
accept=
"file"
@
delete=
"deleteFile(...arguments, 'measuresAdministrationFile')"
>
<template
slot=
"default"
>
<div
style=
"
width: 2.13333rem;
width: 2.13333rem;
height: 2.13333rem;
height: 2.13333rem;
background: #f7f8fa;
background: #f7f8fa;
...
@@ -240,46 +240,46 @@
...
@@ -240,46 +240,46 @@
justify-content: center;
justify-content: center;
flex-direction: column;
flex-direction: column;
"
"
>
>
<img
<img
src=
"@/assets/upload/file.png"
src=
"@/assets/upload/file.png"
alt=
""
alt=
""
style=
"width: 0.64rem; height: 0.64rem"
style=
"width: 0.64rem; height: 0.64rem"
/>
/>
<span
class=
"van-uploader__upload-text"
>
最多上传五个
</span>
<span
class=
"van-uploader__upload-text"
>
最多上传五个
</span>
</div>
</div>
</
template
>
</van-uploader>
</template>
</van-field>
<van-field
label=
"应急措施"
>
<
template
#input
>
<van-field
v-model=
"form.measuresEmergency"
name=
"measuresEmergency"
label=
""
type=
"textarea"
rows=
"3"
autosize
placeholder=
"请输入"
style=
"padding-left: 0;padding-top: 0;"
/>
</
template
>
</
template
>
</van-field>
</van-uploader>
<van-field
name=
"measuresEmergencyFile[]"
label=
"应急措施附件"
>
</template>
<
template
#input
>
</van-field>
<van-uploader
<van-field
label=
"应急措施"
>
multiple
<
template
#input
>
:max-count=
"5"
<van-field
upload-text=
"最多上传五个"
v-model=
"form.measuresEmergency"
v-model=
"measuresEmergencyFile"
name=
"measuresEmergency"
accept=
"file"
label=
""
@
delete=
"deleteFile(...arguments, 'measuresEmergencyFile')"
type=
"textarea"
>
rows=
"3"
<template
slot=
"default"
>
autosize
<!-- 11111111111 -->
placeholder=
"请输入"
<div
style=
"padding-left: 0;padding-top: 0;"
style=
"
/>
</
template
>
</van-field>
<van-field
name=
"measuresEmergencyFile[]"
label=
"应急措施附件"
>
<
template
#input
>
<van-uploader
multiple
:max-count=
"5"
upload-text=
"最多上传五个"
v-model=
"measuresEmergencyFile"
accept=
"file"
@
delete=
"deleteFile(...arguments, 'measuresEmergencyFile')"
>
<template
slot=
"default"
>
<!-- 11111111111 -->
<div
style=
"
width: 2.13333rem;
width: 2.13333rem;
height: 2.13333rem;
height: 2.13333rem;
background: #f7f8fa;
background: #f7f8fa;
...
@@ -288,47 +288,47 @@
...
@@ -288,47 +288,47 @@
justify-content: center;
justify-content: center;
flex-direction: column;
flex-direction: column;
"
"
>
>
<img
<img
src=
"@/assets/upload/file.png"
src=
"@/assets/upload/file.png"
alt=
""
alt=
""
style=
"width: 0.64rem; height: 0.64rem"
style=
"width: 0.64rem; height: 0.64rem"
/>
/>
<span
class=
"van-uploader__upload-text"
>
最多上传五个
</span>
<span
class=
"van-uploader__upload-text"
>
最多上传五个
</span>
</div>
</div>
</
template
>
</
template
>
</van-uploader>
</van-uploader>
</template>
</template>
</van-field>
</van-field>
<van-field
<van-field
v-model=
"form.measuresDeptName"
v-model=
"form.measuresDeptName"
name=
"measuresDeptName"
name=
"measuresDeptName"
label=
"管控责任单位 "
label=
"管控责任单位 "
type=
"textarea"
type=
"textarea"
rows=
"1"
rows=
"1"
autosize
autosize
placeholder=
"请输入"
placeholder=
"请输入"
/>
/>
<van-field
<van-field
v-model=
"form.measuresUserName"
v-model=
"form.measuresUserName"
name=
"measuresUserName"
name=
"measuresUserName"
label=
"管控责任人 "
label=
"管控责任人 "
type=
"textarea"
type=
"textarea"
rows=
"1"
rows=
"1"
autosize
autosize
placeholder=
"请输入"
placeholder=
"请输入"
/>
/>
<van-field
<van-field
v-model=
"form.measuresUserPhone"
v-model=
"form.measuresUserPhone"
name=
"measuresUserPhone"
name=
"measuresUserPhone"
label=
"管控责任人联系方式"
label=
"管控责任人联系方式"
type=
"textarea"
type=
"textarea"
rows=
"1"
rows=
"1"
autosize
autosize
placeholder=
"请输入"
placeholder=
"请输入"
maxlength=
"11"
maxlength=
"11"
/>
/>
<!-- <div
<!-- <div
style="height: 1rem;font-family: '微软雅黑 Bold', '微软雅黑 Regular', '微软雅黑';font-weight: 700;line-height: 1rem;"
style="height: 1rem;font-family: '微软雅黑 Bold', '微软雅黑 Regular', '微软雅黑';font-weight: 700;line-height: 1rem;"
>
>
...
...
src/views/riskProject/add/inherentRisks.vue
View file @
089370e8
...
@@ -256,6 +256,8 @@ export default {
...
@@ -256,6 +256,8 @@ export default {
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
getFun
(
`/risk/plan/floor/list/
${
id
}
`
)
getFun
(
`/risk/plan/floor/list/
${
id
}
`
)
.
then
(
res
=>
{
.
then
(
res
=>
{
console
.
log
(
res
.
data
);
res
.
data
=
[{
name
:
"
全部
"
},
...
res
.
data
];
this
.
floorListData
=
res
.
data
;
this
.
floorListData
=
res
.
data
;
this
.
changeBuild
(
res
.
data
[
0
].
name
);
this
.
changeBuild
(
res
.
data
[
0
].
name
);
this
.
option0
=
this
.
changeData
(
res
.
data
);
this
.
option0
=
this
.
changeData
(
res
.
data
);
...
@@ -271,6 +273,8 @@ export default {
...
@@ -271,6 +273,8 @@ export default {
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
getFun
(
`/risk/plan/room/list/
${
id
}
`
)
getFun
(
`/risk/plan/room/list/
${
id
}
`
)
.
then
(
res
=>
{
.
then
(
res
=>
{
if
(
!
res
.
data
)
res
.
data
=
[];
res
.
data
=
[{
id
:
"
-1
"
,
name
:
"
全部
"
},
...
res
.
data
];
this
.
option2
=
this
.
changeData
(
res
.
data
);
this
.
option2
=
this
.
changeData
(
res
.
data
);
this
.
value2
=
res
.
data
[
0
].
id
||
0
;
this
.
value2
=
res
.
data
[
0
].
id
||
0
;
resolve
(
res
.
data
);
resolve
(
res
.
data
);
...
@@ -291,8 +295,8 @@ export default {
...
@@ -291,8 +295,8 @@ export default {
var
paramsJson
=
{};
var
paramsJson
=
{};
if
(
floorId
||
roomId
)
{
if
(
floorId
||
roomId
)
{
paramsJson
=
{
paramsJson
=
{
floorId
,
floorId
:
floorId
==
-
1
?
null
:
floorId
,
roomId
roomId
:
roomId
==
-
1
?
null
:
roomId
};
};
}
else
{
}
else
{
paramsJson
=
{};
paramsJson
=
{};
...
@@ -331,7 +335,9 @@ export default {
...
@@ -331,7 +335,9 @@ export default {
if
(
this
.
value0
)
{
if
(
this
.
value0
)
{
let
arr
=
this
.
floorListData
.
filter
(
item
=>
item
.
name
==
this
.
value0
)[
0
]
let
arr
=
this
.
floorListData
.
filter
(
item
=>
item
.
name
==
this
.
value0
)[
0
]
.
children
;
.
children
;
console
.
log
(
arr
);
if
(
!
arr
)
arr
=
[];
arr
=
[{
id
:
"
-1
"
,
name
:
"
全部
"
},
...
arr
];
this
.
option1
=
this
.
changeData
(
arr
);
this
.
option1
=
this
.
changeData
(
arr
);
this
.
value1
=
arr
[
0
].
id
;
this
.
value1
=
arr
[
0
].
id
;
this
.
roomList
(
this
.
value1
);
this
.
roomList
(
this
.
value1
);
...
...
src/views/riskProject/add/taskList.vue
View file @
089370e8
...
@@ -632,12 +632,12 @@ export default {
...
@@ -632,12 +632,12 @@ export default {
performTasks
()
{
performTasks
()
{
sessionStorage
.
setItem
(
sessionStorage
.
setItem
(
"
buildingId
"
,
"
buildingId
"
,
this
.
messageList
.
riskBuildingListDtos
[
0
].
buildingId
this
.
messageList
.
detailsDto
.
buildingIds
);
);
sessionStorage
.
setItem
(
"
planId
"
,
this
.
messageList
.
id
);
sessionStorage
.
setItem
(
"
planId
"
,
this
.
messageList
.
id
);
sessionStorage
.
setItem
(
sessionStorage
.
setItem
(
"
buildingName
"
,
"
buildingName
"
,
this
.
messageList
.
riskBuildingListDtos
[
0
].
buildingName
this
.
messageList
.
detailsDto
.
buildingNames
);
);
sessionStorage
.
setItem
(
sessionStorage
.
setItem
(
"
projectId
"
,
"
projectId
"
,
...
@@ -652,8 +652,8 @@ export default {
...
@@ -652,8 +652,8 @@ export default {
name
:
"
riskInherent
"
,
name
:
"
riskInherent
"
,
params
:
{
params
:
{
id
:
this
.
messageList
.
id
,
id
:
this
.
messageList
.
id
,
buildingId
:
this
.
messageList
.
riskBuildingListDtos
[
0
].
buildingId
,
buildingId
:
this
.
messageList
.
detailsDto
.
buildingIds
,
buildingName
:
this
.
messageList
.
riskBuildingListDtos
[
0
].
buildingName
buildingName
:
this
.
messageList
.
detailsDto
.
buildingNames
}
}
});
});
},
},
...
...
src/views/riskProject/taskLedger/presentDetail.vue
View file @
089370e8
...
@@ -150,45 +150,45 @@
...
@@ -150,45 +150,45 @@
</van-uploader>
</van-uploader>
</template>
</template>
</van-field>
</van-field>
<div
<div
style=
"height: 1rem;font-family: '微软雅黑 Bold', '微软雅黑 Regular', '微软雅黑';font-weight: 700;line-height: 1rem;"
style=
"height: 1rem;font-family: '微软雅黑 Bold', '微软雅黑 Regular', '微软雅黑';font-weight: 700;line-height: 1rem;"
>
>
<img
<img
src=
"@/assets/accidentIcon/bookmark.svg"
src=
"@/assets/accidentIcon/bookmark.svg"
alt=
""
alt=
""
style=
"position: relative;top: 32%;transform: translateY(-50%);"
style=
"position: relative;top: 32%;transform: translateY(-50%);"
/>
/>
已采取的管控措施
已采取的管控措施
</div>
</div>
<van-field
label=
"技术措施"
>
<van-field
label=
"技术措施"
>
<
template
#input
>
<
template
#input
>
<van-field
<van-field
readonly
readonly
v-model=
"form.measuresProject"
v-model=
"form.measuresProject"
name=
"measuresProject"
name=
"measuresProject"
label=
""
label=
""
type=
"textarea"
type=
"textarea"
rows=
"3"
rows=
"3"
autosize
autosize
placeholder=
"请输入"
placeholder=
"请输入"
style=
"padding-left: 0;padding-top: 0;"
style=
"padding-left: 0;padding-top: 0;"
/>
/>
</
template
>
</
template
>
</van-field>
</van-field>
<van-field
name=
"measuresProjectFile[]"
label=
"技术措施附件"
>
<van-field
name=
"measuresProjectFile[]"
label=
"技术措施附件"
>
<
template
#input
>
<
template
#input
>
<van-uploader
<van-uploader
multiple
multiple
disabled
disabled
:max-count=
"5"
:max-count=
"5"
upload-text=
"最多上传五个"
upload-text=
"最多上传五个"
v-model=
"measuresProjectFile"
v-model=
"measuresProjectFile"
accept=
"file"
accept=
"file"
@
delete=
"deleteFile(...arguments, 'measuresProjectFile')"
@
delete=
"deleteFile(...arguments, 'measuresProjectFile')"
>
>
<template
slot=
"default"
>
<template
slot=
"default"
>
<div
<div
style=
"
style=
"
width: 2.13333rem;
width: 2.13333rem;
height: 2.13333rem;
height: 2.13333rem;
background: #f7f8fa;
background: #f7f8fa;
...
@@ -197,48 +197,48 @@
...
@@ -197,48 +197,48 @@
justify-content: center;
justify-content: center;
flex-direction: column;
flex-direction: column;
"
"
>
>
<img
<img
src=
"@/assets/upload/file.png"
src=
"@/assets/upload/file.png"
alt=
""
alt=
""
style=
"width: 0.64rem; height: 0.64rem"
style=
"width: 0.64rem; height: 0.64rem"
/>
/>
<span
class=
"van-uploader__upload-text"
>
最多上传五个
</span>
<span
class=
"van-uploader__upload-text"
>
最多上传五个
</span>
</div>
</div>
</
template
>
</
template
>
</van-uploader>
</van-uploader>
</template>
</template>
</van-field>
</van-field>
<van-field
label=
"管
控
措施"
>
<van-field
label=
"管
理
措施"
>
<
template
#input
>
<
template
#input
>
<van-field
<van-field
readonly
readonly
v-model=
"form.measuresAdministration"
v-model=
"form.measuresAdministration"
name=
"measuresAdministration"
name=
"measuresAdministration"
label=
""
label=
""
type=
"textarea"
type=
"textarea"
rows=
"3"
rows=
"3"
autosize
autosize
placeholder=
"请输入"
placeholder=
"请输入"
style=
"padding-left: 0;padding-top: 0;"
style=
"padding-left: 0;padding-top: 0;"
/>
/>
</
template
>
</
template
>
</van-field>
</van-field>
<van-field
name=
"measuresAdministrationFile[]"
label=
"管控
措施附件"
>
<van-field
name=
"measuresAdministrationFile[]"
label=
"管理
措施附件"
>
<
template
#input
>
<
template
#input
>
<van-uploader
<van-uploader
multiple
multiple
disabled
disabled
:max-count=
"5"
:max-count=
"5"
upload-text=
"最多上传五个"
upload-text=
"最多上传五个"
v-model=
"measuresAdministrationFile"
v-model=
"measuresAdministrationFile"
accept=
"file"
accept=
"file"
@
delete=
"deleteFile(...arguments, 'measuresAdministrationFile')"
@
delete=
"deleteFile(...arguments, 'measuresAdministrationFile')"
>
>
<template
slot=
"default"
>
<template
slot=
"default"
>
<div
<div
style=
"
style=
"
width: 2.13333rem;
width: 2.13333rem;
height: 2.13333rem;
height: 2.13333rem;
background: #f7f8fa;
background: #f7f8fa;
...
@@ -247,48 +247,48 @@
...
@@ -247,48 +247,48 @@
justify-content: center;
justify-content: center;
flex-direction: column;
flex-direction: column;
"
"
>
>
<img
<img
src=
"@/assets/upload/file.png"
src=
"@/assets/upload/file.png"
alt=
""
alt=
""
style=
"width: 0.64rem; height: 0.64rem"
style=
"width: 0.64rem; height: 0.64rem"
/>
/>
<span
class=
"van-uploader__upload-text"
>
最多上传五个
</span>
<span
class=
"van-uploader__upload-text"
>
最多上传五个
</span>
</div>
</div>
</
template
>
</van-uploader>
</template>
</van-field>
<van-field
label=
"应急措施"
>
<
template
#input
>
<van-field
readonly
v-model=
"form.measuresEmergency"
name=
"measuresEmergency"
label=
""
type=
"textarea"
rows=
"3"
autosize
placeholder=
"请输入"
style=
"padding-left: 0;padding-top: 0;"
/>
</
template
>
</
template
>
</van-field>
</van-uploader>
<van-field
name=
"measuresEmergencyFile[]"
label=
"应急措施附件"
>
</template>
<
template
#input
>
</van-field>
<van-uploader
<van-field
label=
"应急措施"
>
disabled
<
template
#input
>
multiple
<van-field
:max-count=
"5"
readonly
upload-text=
"最多上传五个"
v-model=
"form.measuresEmergency"
v-model=
"measuresEmergencyFile"
name=
"measuresEmergency"
accept=
"file"
label=
""
@
delete=
"deleteFile(...arguments, 'measuresEmergencyFile')"
type=
"textarea"
>
rows=
"3"
<template
slot=
"default"
>
autosize
<!-- 11111111111 -->
placeholder=
"请输入"
<div
style=
"padding-left: 0;padding-top: 0;"
style=
"
/>
</
template
>
</van-field>
<van-field
name=
"measuresEmergencyFile[]"
label=
"应急措施附件"
>
<
template
#input
>
<van-uploader
disabled
multiple
:max-count=
"5"
upload-text=
"最多上传五个"
v-model=
"measuresEmergencyFile"
accept=
"file"
@
delete=
"deleteFile(...arguments, 'measuresEmergencyFile')"
>
<template
slot=
"default"
>
<!-- 11111111111 -->
<div
style=
"
width: 2.13333rem;
width: 2.13333rem;
height: 2.13333rem;
height: 2.13333rem;
background: #f7f8fa;
background: #f7f8fa;
...
@@ -297,50 +297,50 @@
...
@@ -297,50 +297,50 @@
justify-content: center;
justify-content: center;
flex-direction: column;
flex-direction: column;
"
"
>
>
<img
<img
src=
"@/assets/upload/file.png"
src=
"@/assets/upload/file.png"
alt=
""
alt=
""
style=
"width: 0.64rem; height: 0.64rem"
style=
"width: 0.64rem; height: 0.64rem"
/>
/>
<span
class=
"van-uploader__upload-text"
>
最多上传五个
</span>
<span
class=
"van-uploader__upload-text"
>
最多上传五个
</span>
</div>
</div>
</
template
>
</
template
>
</van-uploader>
</van-uploader>
</template>
</template>
</van-field>
</van-field>
<van-field
<van-field
v-model=
"form.measuresDeptName"
v-model=
"form.measuresDeptName"
name=
"measuresDeptName"
name=
"measuresDeptName"
label=
"管控责任单位 "
label=
"管控责任单位 "
type=
"textarea"
type=
"textarea"
rows=
"1"
rows=
"1"
autosize
autosize
placeholder=
"请输入"
placeholder=
"请输入"
readonly
readonly
/>
/>
<van-field
<van-field
v-model=
"form.measuresUserName"
v-model=
"form.measuresUserName"
name=
"measuresUserName"
name=
"measuresUserName"
label=
"管控责任人 "
label=
"管控责任人 "
type=
"textarea"
type=
"textarea"
rows=
"1"
rows=
"1"
autosize
autosize
placeholder=
"请输入"
placeholder=
"请输入"
readonly
readonly
/>
/>
<van-field
<van-field
v-model=
"form.measuresUserPhone"
v-model=
"form.measuresUserPhone"
name=
"measuresUserPhone"
name=
"measuresUserPhone"
label=
"管控责任人联系方式"
label=
"管控责任人联系方式"
type=
"textarea"
type=
"textarea"
rows=
"1"
rows=
"1"
autosize
autosize
placeholder=
"请输入"
placeholder=
"请输入"
maxlength=
"11"
maxlength=
"11"
readonly
readonly
/>
/>
<van-field
<van-field
readonly
readonly
clickable
clickable
...
@@ -348,7 +348,6 @@
...
@@ -348,7 +348,6 @@
:value=
"form.referenceBasis"
:value=
"form.referenceBasis"
label=
"判断依据"
label=
"判断依据"
placeholder=
"请选择"
placeholder=
"请选择"
/>
/>
<van-field
<van-field
readonly
readonly
...
...
src/views/riskProject/taskLedger/tabDetail.vue
View file @
089370e8
...
@@ -85,11 +85,18 @@
...
@@ -85,11 +85,18 @@
placeholder=
"请选择"
placeholder=
"请选择"
:rules=
"[
{ required: true, message: '风险点类型不能为空' }]"
:rules=
"[
{ required: true, message: '风险点类型不能为空' }]"
/>
/>
<van-field
required
name=
"specialEquipment"
label=
"是否为特种设备"
v-show=
"form.pointType=='设备设施类'"
>
<van-field
<template
#input
>
required
<van-switch
disabled
v-model=
"form.specialEquipment"
size=
"20"
/>
name=
"specialEquipment"
</
template
>
label=
"是否为特种设备"
</van-field>
v-show=
"form.pointType == '设备设施类'"
>
<template
#input
>
<span
style=
"margin-right: 10px;color: red;"
>
否
</span>
<van-switch
disabled
v-model=
"form.specialEquipment"
size=
"20"
/>
<span
style=
"margin-left: 10px;color: green;"
>
是
</span>
</
template
>
</van-field>
<!-- 多选 -->
<!-- 多选 -->
<van-field
<van-field
v-model=
"form.safetyWarningSigns"
v-model=
"form.safetyWarningSigns"
...
@@ -194,21 +201,21 @@
...
@@ -194,21 +201,21 @@
/>
/>
应采取的管控措施
应采取的管控措施
</div>
</div>
<van-field
label=
"技术措施"
>
<van-field
label=
"技术措施"
>
<
template
#input
>
<
template
#input
>
<van-field
<van-field
readonly
readonly
v-model=
"form.measuresProject"
v-model=
"form.measuresProject"
name=
"measuresProject"
name=
"measuresProject"
label=
""
label=
""
type=
"textarea"
type=
"textarea"
rows=
"3"
rows=
"3"
autosize
autosize
placeholder=
"请输入"
placeholder=
"请输入"
style=
"padding-left: 0;padding-top: 0;"
style=
"padding-left: 0;padding-top: 0;"
/>
/>
</
template
>
</
template
>
</van-field>
</van-field>
<van-field
name=
"measuresProjectFile[]"
label=
"技术措施附件"
>
<van-field
name=
"measuresProjectFile[]"
label=
"技术措施附件"
>
<
template
#input
>
<
template
#input
>
<van-uploader
<van-uploader
...
@@ -244,22 +251,22 @@
...
@@ -244,22 +251,22 @@
</template>
</template>
</van-field>
</van-field>
<van-field
label=
"管控
措施"
>
<van-field
label=
"管理
措施"
>
<
template
#input
>
<
template
#input
>
<van-field
<van-field
readonly
readonly
v-model=
"form.measuresAdministration"
v-model=
"form.measuresAdministration"
name=
"measuresAdministration"
name=
"measuresAdministration"
label=
""
label=
""
type=
"textarea"
type=
"textarea"
rows=
"3"
rows=
"3"
autosize
autosize
placeholder=
"请输入"
placeholder=
"请输入"
style=
"padding-left: 0;padding-top: 0;"
style=
"padding-left: 0;padding-top: 0;"
/>
/>
</
template
>
</
template
>
</van-field>
</van-field>
<van-field
name=
"measuresAdministrationFile[]"
label=
"管
控
措施附件"
>
<van-field
name=
"measuresAdministrationFile[]"
label=
"管
理
措施附件"
>
<
template
#input
>
<
template
#input
>
<van-uploader
<van-uploader
multiple
multiple
...
@@ -293,21 +300,21 @@
...
@@ -293,21 +300,21 @@
</van-uploader>
</van-uploader>
</template>
</template>
</van-field>
</van-field>
<van-field
label=
"应急措施"
>
<van-field
label=
"应急措施"
>
<
template
#input
>
<
template
#input
>
<van-field
<van-field
readonly
readonly
v-model=
"form.measuresEmergency"
v-model=
"form.measuresEmergency"
name=
"measuresEmergency"
name=
"measuresEmergency"
label=
""
label=
""
type=
"textarea"
type=
"textarea"
rows=
"3"
rows=
"3"
autosize
autosize
placeholder=
"请输入"
placeholder=
"请输入"
style=
"padding-left: 0;padding-top: 0;"
style=
"padding-left: 0;padding-top: 0;"
/>
/>
</
template
>
</
template
>
</van-field>
</van-field>
<van-field
name=
"measuresEmergencyFile[]"
label=
"应急措施附件"
>
<van-field
name=
"measuresEmergencyFile[]"
label=
"应急措施附件"
>
<
template
#input
>
<
template
#input
>
<van-uploader
<van-uploader
...
@@ -344,7 +351,7 @@
...
@@ -344,7 +351,7 @@
</template>
</template>
</van-field>
</van-field>
<van-field
<van-field
v-model=
"form.measuresDeptName"
v-model=
"form.measuresDeptName"
name=
"measuresDeptName"
name=
"measuresDeptName"
label=
"管控责任单位 "
label=
"管控责任单位 "
...
@@ -364,17 +371,17 @@
...
@@ -364,17 +371,17 @@
placeholder=
"请输入"
placeholder=
"请输入"
readonly
readonly
/>
/>
<van-field
<van-field
v-model=
"form.measuresUserPhone"
v-model=
"form.measuresUserPhone"
name=
"measuresUserPhone"
name=
"measuresUserPhone"
label=
"管控责任人联系方式"
label=
"管控责任人联系方式"
type=
"textarea"
type=
"textarea"
rows=
"1"
rows=
"1"
autosize
autosize
placeholder=
"请输入"
placeholder=
"请输入"
maxlength=
"11"
maxlength=
"11"
readonly
readonly
/>
/>
<div
<div
style=
"height: 1rem;font-family: '微软雅黑 Bold', '微软雅黑 Regular', '微软雅黑';font-weight: 700;line-height: 1rem;"
style=
"height: 1rem;font-family: '微软雅黑 Bold', '微软雅黑 Regular', '微软雅黑';font-weight: 700;line-height: 1rem;"
...
@@ -388,7 +395,9 @@
...
@@ -388,7 +395,9 @@
</div>
</div>
<van-field
name=
"majorHazardSource"
label=
"是否为重大危险源"
>
<van-field
name=
"majorHazardSource"
label=
"是否为重大危险源"
>
<
template
#input
>
<
template
#input
>
<span
style=
"margin-right: 10px;color: red;"
>
否
</span>
<van-switch
disabled
v-model=
"form.majorHazardSource"
size=
"20"
/>
<van-switch
disabled
v-model=
"form.majorHazardSource"
size=
"20"
/>
<span
style=
"margin-left: 10px;color: green;"
>
是
</span>
</
template
>
</
template
>
</van-field>
</van-field>
<van-field
<van-field
...
@@ -401,21 +410,20 @@
...
@@ -401,21 +410,20 @@
autosize
autosize
placeholder=
"请输入"
placeholder=
"请输入"
/>
/>
<van-field
label=
"重大危险源描述"
:required=
"form.majorHazardSource"
>
<van-field
label=
"重大危险源描述"
:required=
"form.majorHazardSource"
>
<
template
#input
>
<
template
#input
>
<van-field
<van-field
readonly
readonly
v-model=
"form.majorHazardSourceDescription"
v-model=
"form.majorHazardSourceDescription"
name=
"majorHazardSourceDescription"
name=
"majorHazardSourceDescription"
label=
""
label=
""
type=
"textarea"
type=
"textarea"
rows=
"3"
rows=
"3"
autosize
autosize
placeholder=
"请输入"
placeholder=
"请输入"
style=
"padding-left: 0;padding-top: 0;"
style=
"padding-left: 0;padding-top: 0;"
/>
/>
</
template
>
</
template
>
</van-field>
</van-field>
...
@@ -480,7 +488,7 @@ export default {
...
@@ -480,7 +488,7 @@ export default {
isTimely
:
1
,
isTimely
:
1
,
active
:
0
,
active
:
0
,
form
:
{
form
:
{
specialEquipment
:
false
specialEquipment
:
false
},
},
projectId
:
""
,
// 所属工程
projectId
:
""
,
// 所属工程
projectName
:
""
,
// 所属工程
projectName
:
""
,
// 所属工程
...
...
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