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
75013f21
Commit
75013f21
authored
Mar 07, 2024
by
kaitly205422@163.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加风险评估模板
parent
594e9fa2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
120 additions
and
228 deletions
+120
-228
src/views/riskProject/add/taskList.vue
src/views/riskProject/add/taskList.vue
+64
-75
src/views/riskProject/assess/riskBigDetail.vue
src/views/riskProject/assess/riskBigDetail.vue
+56
-153
No files found.
src/views/riskProject/add/taskList.vue
View file @
75013f21
...
...
@@ -22,18 +22,18 @@
<div>
开始时间:
</div>
<div>
{{
timestampToTimes
(
messageList
.
startTime
,
"
DT2
"
)
||
messageList
.
startTime
}}
timestampToTimes
(
messageList
.
startTime
,
"
DT2
"
)
||
messageList
.
startTime
}}
</div>
</van-grid-item>
<van-grid-item>
<div>
结束时间:
</div>
<div>
{{
timestampToTimes
(
messageList
.
endTime
,
"
DT2
"
)
||
messageList
.
endTime
}}
timestampToTimes
(
messageList
.
endTime
,
"
DT2
"
)
||
messageList
.
endTime
}}
</div>
</van-grid-item>
</van-grid>
...
...
@@ -69,14 +69,14 @@
input-align=
"right"
:rules=
"[
{ required: true, message: '评估成员不能为空' }]" />
<van-field
v-model=
"form.startTime"
readonly
name=
"location"
label=
"任务开始时间"
input-align=
"right"
:formatter=
"() =>
{
return timestampToTimes(form.startTime, 'DT2');
}
" :rules="[{ required: true, message: '任务开始时间不能为空' }]" />
return timestampToTimes(form.startTime, 'DT2');
}
" :rules="[{ required: true, message: '任务开始时间不能为空' }]" />
<van-field
v-model=
"form.endTime"
readonly
name=
"location"
label=
"任务结束时间"
:formatter=
"() =>
{
return timestampToTimes(form.endTime, 'DT2');
}
" input-align="right" :rules="[{ required: true, message: '任务结束时间不能为空' }]" />
return timestampToTimes(form.endTime, 'DT2');
}
" input-align="right" :rules="[{ required: true, message: '任务结束时间不能为空' }]" />
</van-form>
</van-tab>
<van-tab
title=
"风险清单"
>
...
...
@@ -99,21 +99,21 @@
<van-col>
<van-image
style=
"vertical-align: middle;margin-right: 15px;margin-left: 10px;"
width=
"58"
height=
"58"
:src=
"item.level == '重大风险'
? require('@/assets/imgs/redInherent.png')
: item.level == '较大风险'
? require('@/assets/imgs/inherentOrange.png')
: item.level === '一般风险'
? require('@/assets/imgs/yellowInherent.png')
: require('@/assets/imgs/blueInherent.png')
"
/>
? require('@/assets/imgs/redInherent.png')
: item.level == '较大风险'
? require('@/assets/imgs/inherentOrange.png')
: item.level === '一般风险'
? require('@/assets/imgs/yellowInherent.png')
: require('@/assets/imgs/blueInherent.png')
"
/>
<!--
<van-image
width=
"46"
height=
"46"
:src=
"item.avatar"
/>
-->
</van-col>
<van-col
span=
"17"
>
<van-row
gutter=
"0"
>
<van-col
span=
"10"
style=
"font-weight: bold;color:#000;font-size: 16px;"
>
风险名称:
</van-col>
<van-col
span=
"14"
style=
"color: #000;font-size: 16px;"
>
{{
item
.
name
}}
</van-col>
item
.
name
}}
</van-col>
</van-row>
<van-row
gutter=
"0"
>
<van-col
span=
"9"
style=
"font-weight: bold;color:#666666;font-size: 12px;"
>
风险等级:
</van-col>
...
...
@@ -121,14 +121,15 @@
</van-row>
<van-row
gutter=
"0"
>
<van-col
span=
"9"
style=
"font-weight: bold;color:#666666;font-size: 12px;"
>
上报时间:
</van-col>
<van-col
span=
"15"
style=
"color: #9d9d9d;font-size: 12px;"
>
{{
timestampToTimes
(
item
.
createTime
,
"
DT2
"
)
}}
</van-col>
<van-col
span=
"15"
style=
"color: #9d9d9d;font-size: 12px;"
>
{{
timestampToTimes
(
item
.
createTime
,
"
DT2
"
)
}}
</van-col>
</van-row>
<van-row
gutter=
"0"
>
<van-col
span=
"9"
style=
"font-weight: bold;color:#666666;font-size: 12px;"
>
所属房间:
</van-col>
<van-col
span=
"15"
style=
"color: #9d9d9d;font-size: 12px;"
>
{{
item
.
buildingName
+
item
.
floorName
+
item
.
roomName
}}
</van-col>
item
.
buildingName
+
item
.
floorName
+
item
.
roomName
}}
</van-col>
</van-row>
</van-col>
<van-col
span=
"4"
class=
"list-right"
>
...
...
@@ -163,13 +164,13 @@
<van-row>
<van-col
span=
"7"
><span
class=
"field-title"
>
任务节点:
</span></van-col>
<van-col
span=
"17"
>
{{
item
.
taskName
}}{{
item
.
taskResult
?
item
.
taskResult
==
1
?
"
(审批通过)
"
:
"
(审批否决)
"
:
""
}}
</van-col>
}}{{
item
.
taskResult
?
item
.
taskResult
==
1
?
"
(审批通过)
"
:
"
(审批否决)
"
:
""
}}
</van-col>
</van-row>
<van-row
v-show=
"item.taskResult"
>
<van-col
span=
"7"
><span
class=
"field-title"
>
审批意见:
</span></van-col>
...
...
@@ -191,38 +192,23 @@
</div>
</van-tab>
<van-tab
title=
"评估报告"
>
<
div
style=
"height: 1.5rem;
<
a
style=
"height: 1.5rem;
background-color: #fff;
border-bottom: 1px solid #97999a;
display: flex;
justify-content: space-between;
line-height: 1.5rem;
"
>
color:#010101;
"
:href=
"fileUrl()"
target=
"_blank"
>
<div><van-icon
name=
"column"
size=
"26px"
/></div>
<div
style=
"flex-grow:1;line-height: 0.6rem"
>
<div>
风险评估报告
.PDF
</div>
<div>
2019-3-21 10:23 1
00
KB
</div>
<div>
风险评估报告
模板.docx
</div>
<div>
2019-3-21 10:23 1
54
KB
</div>
</div>
<div>
<van-icon
name=
"arrow"
size=
"26px"
/>
</div>
</div>
<div
style=
"height: 1.5rem;
background-color: #fff;
border-bottom: 1px solid #97999a;
display: flex;
justify-content: space-between;
line-height: 1.5rem;
"
>
<div><van-icon
name=
"column"
size=
"26px"
/></div>
<div
style=
"flex-grow:1;line-height: 0.6rem"
>
<div>
风险评估报告.PDF
</div>
<div>
2019-3-21 10:23 100KB
</div>
</div>
<div>
<van-icon
name=
"arrow"
size=
"26px"
/>
</div>
</div>
</a>
</van-tab>
</van-tabs>
</div>
...
...
@@ -306,19 +292,19 @@
</van-col>
<van-col
span=
"14"
>
{{
item
.
buildingName
}}
</van-col>
<van-col
span=
"8"
:style=
"
{
color:
item.status == 'wait'
? '#F79648'
: item.status == 'finish'
? '#03B615'
: '#FF041D'
}">
{{
item
.
status
==
"
wait
"
?
"
待评估
"
:
item
.
status
==
"
finish
"
?
"
已完成
"
:
"
已退回
"
}}
</van-col>
color:
item.status == 'wait'
? '#F79648'
: item.status == 'finish'
? '#03B615'
: '#FF041D'
}">
{{
item
.
status
==
"
wait
"
?
"
待评估
"
:
item
.
status
==
"
finish
"
?
"
已完成
"
:
"
已退回
"
}}
</van-col>
</van-row>
<van-row>
...
...
@@ -343,10 +329,10 @@
<van-row>
<van-button
type=
"info"
size=
"mini"
@
click=
"
{
checkValue = [item.buildingId];
approveTask(0);
}
">审批否决
</van-button>
checkValue = [item.buildingId];
approveTask(0);
}
">审批否决
</van-button>
</van-row></van-col>
</van-row>
</van-cell-group>
...
...
@@ -363,10 +349,10 @@
bottom: 0;"
>
<div
@
click=
"
{
checkValue = [];
isShowAppvoreList = false;
}
" style="color: #FB6260;font-size: 14px;font-weight: 600;">
checkValue = [];
isShowAppvoreList = false;
}
" style="color: #FB6260;font-size: 14px;font-weight: 600;">
<div
style=
"font-size: 22px;"
><van-icon
name=
"cross"
/></div>
<div>
返回
</div>
</div>
...
...
@@ -452,7 +438,10 @@ export default {
timestampToTimes
(
time
,
type
)
{
return
timestampToTime
(
new
Date
(
time
),
type
,
true
);
},
fileUrl
()
{
// return window.location.origin + '/dev-api/profile/upload/report/风险评估报告模板.docx'
return
'
http://rongtongpc.censoft.com.cn/dev-api/profile/upload/report/风险评估报告模板.docx
'
},
/* swp add 风险清单筛选 */
changeData
(
arr
)
{
if
(
Array
.
isArray
(
arr
))
{
...
...
src/views/riskProject/assess/riskBigDetail.vue
View file @
75013f21
...
...
@@ -22,8 +22,8 @@
<div>
开始时间:
</div>
<div>
{{
timestampToTimes
(
messageList
.
startTime
)
||
messageList
.
startTime
}}
timestampToTimes
(
messageList
.
startTime
)
||
messageList
.
startTime
}}
</div>
</van-grid-item>
<van-grid-item>
...
...
@@ -33,154 +33,69 @@
</div>
</van-grid-item>
</van-grid>
<van-steps
:active=
"active"
active-icon=
"success"
active-color=
"#38f"
style=
"margin: 0.26rem 0;"
>
<van-steps
:active=
"active"
active-icon=
"success"
active-color=
"#38f"
style=
"margin: 0.26rem 0;"
>
<van-step>
任务发起
</van-step>
<van-step>
风险评估
</van-step>
<van-step>
评估审核
</van-step>
<van-step>
项目完成
</van-step>
</van-steps>
<van-tabs
v-model=
"active"
color=
"#2980f7"
animated
:sticky=
"true"
offset-top=
"2.93rem"
>
<van-tabs
v-model=
"active"
color=
"#2980f7"
animated
:sticky=
"true"
offset-top=
"2.93rem"
>
<van-tab
title=
"任务详情"
>
<van-form
:scroll-to-error=
"true"
:show-error=
"false"
validate-trigger=
"onSubmit"
>
<van-field
readonly
name=
"createUserName"
:value=
"form.createUserName"
label=
"创建人员"
input-align=
"right"
:rules=
"[
{ required: true, message: '创建人员不能为空' }]"
/>
<van-field
readonly
name=
"createDeptName"
:value=
"form.createDeptName"
label=
"创建单位"
input-align=
"right"
:rules=
"[
{ required: true, message: '创建单位不能为空' }]"
/>
<van-field
readonly
name=
"projectName"
:value=
"form.projectName"
label=
"任务名称"
input-align=
"right"
:rules=
"[
{ required: true, message: '任务名称不能为空' }]"
/>
<van-form
:scroll-to-error=
"true"
:show-error=
"false"
validate-trigger=
"onSubmit"
>
<van-field
readonly
name=
"createUserName"
:value=
"form.createUserName"
label=
"创建人员"
input-align=
"right"
:rules=
"[
{ required: true, message: '创建人员不能为空' }]" />
<van-field
readonly
name=
"createDeptName"
:value=
"form.createDeptName"
label=
"创建单位"
input-align=
"right"
:rules=
"[
{ required: true, message: '创建单位不能为空' }]" />
<van-field
readonly
name=
"projectName"
:value=
"form.projectName"
label=
"任务名称"
input-align=
"right"
:rules=
"[
{ required: true, message: '任务名称不能为空' }]" />
<van-field
readonly
name=
"projectName"
:value=
"form.projectName"
label=
"关联项目"
input-align=
"right"
:rules=
"[
{ required: true, message: '关联项目不能为空' }]"
/>
<van-field
readonly
name=
"projectName"
:value=
"form.projectName"
label=
"关联项目"
input-align=
"right"
:rules=
"[
{ required: true, message: '关联项目不能为空' }]" />
<van-field
readonly
name=
"buildingNames"
:value=
"form.buildingNames"
label=
"评估楼栋"
input-align=
"right"
:rules=
"[
{ required: true, message: '评估楼栋不能为空' }]"
/>
<van-field
readonly
name=
"buildingNames"
:value=
"form.buildingNames"
label=
"评估楼栋"
input-align=
"right"
:rules=
"[
{ required: true, message: '评估楼栋不能为空' }]" />
<van-field
readonly
name=
"leaderUserName"
:value=
"form.leaderUserName"
label=
"项目负责人"
input-align=
"right"
:rules=
"[
{ required: true, message: '事故类型不能为空' }]"
/>
<van-field
readonly
name=
"leaderUserName"
:value=
"form.leaderUserName"
label=
"项目负责人"
input-align=
"right"
:rules=
"[
{ required: true, message: '事故类型不能为空' }]" />
<van-field
v-model=
"form.startTime"
readonly
name=
"location"
label=
"任务开始时间"
input-align=
"right"
:formatter=
"
() =>
{
return timestampToTimes(form.startTime);
}
"
:rules="[{ required: true, message: '任务开始时间不能为空' }]"
/>
<van-field
v-model=
"form.startTime"
readonly
name=
"location"
label=
"任务开始时间"
input-align=
"right"
:formatter=
"() =>
{
return timestampToTimes(form.startTime);
}
" :rules="[{ required: true, message: '任务开始时间不能为空' }]" />
<van-field
v-model=
"form.endTime"
readonly
name=
"location"
label=
"任务结束时间"
:formatter=
"
() =>
{
return timestampToTimes(form.endTime);
}
"
input-align="right"
:rules="[{ required: true, message: '任务结束时间不能为空' }]"
/>
<van-field
v-model=
"form.endTime"
readonly
name=
"location"
label=
"任务结束时间"
:formatter=
"() =>
{
return timestampToTimes(form.endTime);
}
" input-align="right" :rules="[{ required: true, message: '任务结束时间不能为空' }]" />
<van-field
clickable
name=
"workUserNames"
:value=
"form.workUserNames"
label=
"执行人员"
input-align=
"right"
:rules=
"[
{ required: true, message: '执行人员不能为空' }]"
/>
<van-field
clickable
name=
"workUserNames"
:value=
"form.workUserNames"
label=
"执行人员"
input-align=
"right"
:rules=
"[
{ required: true, message: '执行人员不能为空' }]" />
</van-form>
</van-tab>
<van-tab
title=
"风险清单"
>
</van-tab>
<van-tab
title=
"审核记录"
>
<div
class=
"journal-wrap"
>
<van-cell-group
inset
>
<van-steps
direction=
"vertical"
:active=
"99999"
v-if=
"riskLogList.length > 0"
>
<van-steps
direction=
"vertical"
:active=
"99999"
v-if=
"riskLogList.length > 0"
>
<van-step
v-for=
"(item, index) in riskLogList"
:key=
"index"
>
<div
class=
"step-wrap"
>
<van-row>
<van-col
span=
"24"
>
<div
class=
"info-title"
>
<van-col
span=
"24"
>
<div
class=
"info-title"
>
{{
timestampToTimes
(
item
.
startTime
)
}}
</div>
</van-col
>
</div>
</van-col
>
</van-row>
<van-row>
<van-col
span=
"7"
><span
class=
"field-title"
>
操作人:
</span></van-col
>
<van-col
span=
"7"
><span
class=
"field-title"
>
操作人:
</span></van-col>
<van-col
span=
"17"
>
{{
item
.
approvalUserName
}}
</van-col>
</van-row>
<van-row>
<van-col
span=
"7"
><span
class=
"field-title"
>
审批结果:
</span></van-col
>
<van-col
span=
"7"
><span
class=
"field-title"
>
审批结果:
</span></van-col>
<van-col
span=
"17"
>
{{
item
.
taskName
}}
</van-col>
</van-row>
<van-row>
<van-col
span=
"7"
><span
class=
"field-title"
>
岗位:
</span></van-col
>
<van-col
span=
"7"
><span
class=
"field-title"
>
岗位:
</span></van-col>
<van-col
span=
"17"
>
{{
item
.
taskResult
}}
</van-col>
</van-row>
<!--
<van-row>
...
...
@@ -199,47 +114,27 @@
</div>
</van-tab>
<van-tab
title=
"风险评估报告"
>
<div
style=
"height: 1.5rem;
background-color: #fff;
border-bottom: 1px solid #97999a;
display: flex;
justify-content: space-between;
line-height: 1.5rem;
"
>
<div><van-icon
name=
"column"
size=
"26px"
/></div>
<div
style=
"flex-grow:1;line-height: 0.6rem"
>
<div>
风险评估报告.PDF
</div>
<div>
2019-3-21 10:23 100KB
</div>
</div>
<div>
<van-icon
name=
"arrow"
size=
"26px"
/>
</div>
</div>
<div
style=
"height: 1.5rem;
<a
style=
"height: 1.5rem;
color:#010101;
background-color: #fff;
border-bottom: 1px solid #97999a;
display: flex;
justify-content: space-between;
line-height: 1.5rem;
"
>
"
:href=
"fileUrl()"
target=
"_blank"
>
<div><van-icon
name=
"column"
size=
"26px"
/></div>
<div
style=
"flex-grow:1;line-height: 0.6rem"
>
<div>
风险评估报告
.PDF
</div>
<div>
2019-3-21 10:23 1
00
KB
</div>
<div>
风险评估报告
模板.docx
</div>
<div>
2019-3-21 10:23 1
54
KB
</div>
</div>
<div>
<van-icon
name=
"arrow"
size=
"26px"
/>
</div>
</
div
>
</
a
>
</van-tab>
</van-tabs>
</div>
<div
style=
"display: flex;
<div
style=
"display: flex;
justify-content: space-around;
background-color: #fff;
border-top: 1px solid #e3e3e3;
...
...
@@ -247,12 +142,8 @@
width: 100%;
text-align: center;
position: fixed;
bottom: 0;"
>
<div
@
click=
"performTasks"
style=
"color: #4bced0;font-size: 14px;font-weight: 600;"
>
bottom: 0;"
>
<div
@
click=
"performTasks"
style=
"color: #4bced0;font-size: 14px;font-weight: 600;"
>
<div
style=
"font-size: 22px;"
><van-icon
name=
"plus"
/></div>
<div>
执行任务
</div>
</div>
...
...
@@ -292,6 +183,10 @@ export default {
this
.
postList
(
planId
);
},
methods
:
{
fileUrl
()
{
// return window.location.origin + '/dev-api/profile/upload/report/风险评估报告模板.docx'
return
'
http://rongtongpc.censoft.com.cn/dev-api/profile/upload/report/风险评估报告模板.docx
'
},
timestampToTimes
(
time
)
{
return
timestampToTime
(
new
Date
(
time
),
"
DT2
"
,
true
);
},
...
...
@@ -363,6 +258,7 @@ export default {
.cell-wrap {
position: relative;
}
p {
font-size: 0.4rem;
font-weight: none;
...
...
@@ -370,31 +266,38 @@ p {
margin: 0.186667rem 0;
color: #7f7f7f;
}
.van-cell-group--inset {
margin: 0;
margin-bottom: 10px;
padding: 10px;
font-size: 13px;
position: relative;
.van-row {
margin-bottom: 0.133333rem;
line-height: 0.64rem;
}
}
.journal-wrap {
position: relative;
}
.supervise-wrap {
position: relative;
}
.info-title {
color: #2980f7;
font-weight: none;
}
.field-title {
color: black;
font-weight: none;
}
.more {
position: absolute;
bottom: 0.32rem;
...
...
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