Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
rongtong-pc
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-pc
Commits
c3e985cb
Commit
c3e985cb
authored
Jul 26, 2023
by
yf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改导出文件名
parent
aa866db2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
309 additions
and
235 deletions
+309
-235
src/views/risk/plan/ledgerdata.vue
src/views/risk/plan/ledgerdata.vue
+309
-235
No files found.
src/views/risk/plan/ledgerdata.vue
View file @
c3e985cb
<
template
>
<
template
>
<div
class=
"wrapper"
>
<div
class=
"wrapper"
>
<el-descriptions
:title=
"InfoList.detailsDto.name"
class=
"margin-top"
:column=
"3"
:size=
"size"
border
>
<el-descriptions
:title=
"InfoList.detailsDto.name"
<el-descriptions-item
label=
"所属项目"
>
{{
InfoList
.
detailsDto
.
projectName
}}
</el-descriptions-item>
class=
"margin-top"
<el-descriptions-item
label=
"所属楼栋"
>
{{
InfoList
.
detailsDto
.
buildingNames
}}
</el-descriptions-item>
:column=
"3"
<el-descriptions-item
label=
"所属单位"
>
{{
InfoList
.
detailsDto
.
deptName
}}
</el-descriptions-item>
:size=
"size"
<el-descriptions-item
label=
"所属省市"
>
{{
InfoList
.
detailsDto
.
city
}}
</el-descriptions-item>
border
<el-descriptions-item
label=
"项目负责人"
>
{{
InfoList
.
detailsDto
.
leaderUserName
}}
</el-descriptions-item>
>
<el-descriptions-item
label=
"评估组成员"
>
{{
InfoList
.
detailsDto
.
workUserNames
}}
</el-descriptions-item>
<el-descriptions-item
label=
"所属项目"
>
{{
<el-descriptions-item
label=
"开始时间"
>
{{
InfoList
.
startTime
}}
</el-descriptions-item>
InfoList
.
detailsDto
.
projectName
<el-descriptions-item
label=
"结束时间"
>
{{
InfoList
.
endTime
}}
</el-descriptions-item>
}}
</el-descriptions-item>
<el-descriptions-item
label=
"项目状态"
>
{{
InfoList
.
status
}}
</el-descriptions-item>
<el-descriptions-item
label=
"所属楼栋"
>
{{
<el-descriptions-item
label=
"创建人"
>
{{
InfoList
.
createUserName
}}
</el-descriptions-item>
InfoList
.
detailsDto
.
buildingNames
<el-descriptions-item
label=
"创建单位"
>
{{
InfoList
.
detailsDto
.
createDeptName
}}
</el-descriptions-item>
}}
</el-descriptions-item>
<el-descriptions-item
label=
"创建时间"
>
{{
InfoList
.
detailsDto
.
createTime
}}
</el-descriptions-item>
<el-descriptions-item
label=
"所属单位"
>
{{
InfoList
.
detailsDto
.
deptName
}}
</el-descriptions-item>
<el-descriptions-item
label=
"所属省市"
>
{{
InfoList
.
detailsDto
.
city
}}
</el-descriptions-item>
<el-descriptions-item
label=
"项目负责人"
>
{{
InfoList
.
detailsDto
.
leaderUserName
}}
</el-descriptions-item>
<el-descriptions-item
label=
"评估组成员"
>
{{
InfoList
.
detailsDto
.
workUserNames
}}
</el-descriptions-item>
<el-descriptions-item
label=
"开始时间"
>
{{
InfoList
.
startTime
}}
</el-descriptions-item>
<el-descriptions-item
label=
"结束时间"
>
{{
InfoList
.
endTime
}}
</el-descriptions-item>
<el-descriptions-item
label=
"项目状态"
>
{{
InfoList
.
status
}}
</el-descriptions-item>
<el-descriptions-item
label=
"创建人"
>
{{
InfoList
.
createUserName
}}
</el-descriptions-item>
<el-descriptions-item
label=
"创建单位"
>
{{
InfoList
.
detailsDto
.
createDeptName
}}
</el-descriptions-item>
<el-descriptions-item
label=
"创建时间"
>
{{
InfoList
.
detailsDto
.
createTime
}}
</el-descriptions-item>
</el-descriptions>
</el-descriptions>
<el-tabs
v-model=
"activeName"
type=
"border-card"
style=
"margin-top: 10px
;"
>
<el-tabs
v-model=
"activeName"
type=
"border-card"
style=
"margin-top: 10px
"
>
<el-tab-pane
label=
"风险评估清单"
name=
"first"
>
<el-tab-pane
label=
"风险评估清单"
name=
"first"
>
<div
class=
"approveResult"
>
<div
class=
"approveResult"
>
<div
class=
"approveL"
>
<div
class=
"approveL"
>
...
@@ -43,64 +71,116 @@
...
@@ -43,64 +71,116 @@
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
</el-form-item>
</el-form-item>
</el-form>
-->
</el-form>
-->
<el-button
type=
"warning"
plain
icon=
"el-icon-download"
size=
"mini"
@
click=
"downList(InfoList.detailsDto.id)"
<el-button
style=
"float: right;margin-bottom: 8px;"
>
导出风险清单
</el-button>
type=
"warning"
<el-table
v-loading=
"loading"
:data=
"listList"
>
plain
icon=
"el-icon-download"
size=
"mini"
@
click=
"downList(InfoList.detailsDto.id)"
style=
"float: right; margin-bottom: 8px"
>
导出风险清单
</el-button
>
<el-table
v-loading=
"loading"
:data=
"listList"
>
<el-table-column
label=
"序号"
align=
"center"
>
<el-table-column
label=
"序号"
align=
"center"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<span>
{{
scope
.
$index
+
1
}}
</span>
<span>
{{
scope
.
$index
+
1
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"风险名称"
align=
"center"
prop=
"name"
/>
<el-table-column
label=
"风险名称"
align=
"center"
prop=
"name"
/>
<el-table-column
label=
"所属建筑"
align=
"center"
prop=
"buildingName"
/>
<el-table-column
<el-table-column
label=
"所属楼层"
align=
"center"
prop=
"floorName"
/>
label=
"所属建筑"
<el-table-column
label=
"所属房间"
align=
"center"
prop=
"roomName"
/>
align=
"center"
<el-table-column
label=
"风险等级(系数)"
align=
"center"
prop=
"level"
/>
prop=
"buildingName"
/>
<el-table-column
label=
"所属楼层"
align=
"center"
prop=
"floorName"
/>
<el-table-column
label=
"所属房间"
align=
"center"
prop=
"roomName"
/>
<el-table-column
label=
"风险等级(系数)"
align=
"center"
prop=
"level"
/>
<el-table-column
label=
"风险因素"
align=
"center"
prop=
"factor"
/>
<el-table-column
label=
"风险因素"
align=
"center"
prop=
"factor"
/>
<el-table-column
label=
"准事故类型"
align=
"center"
prop=
"type"
/>
<el-table-column
label=
"准事故类型"
align=
"center"
prop=
"type"
/>
<el-table-column
label=
"存在部位"
align=
"center"
prop=
"presenceLocation"
/>
<el-table-column
label=
"存在部位"
align=
"center"
prop=
"presenceLocation"
/>
<el-table-column
label=
"操作"
align=
"center"
prop=
"describe"
>
<el-table-column
label=
"操作"
align=
"center"
prop=
"describe"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<div>
<div>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-download"
<el-button
@
click=
"exportList(scope.row.id)"
>
下载风险告知卡
</el-button>
size=
"mini"
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-view"
type=
"text"
@
click=
"showDrawCanvas(scope.row.floorId)"
>
查看四色图
</el-button>
icon=
"el-icon-download"
@
click=
"exportList(scope.row.id)"
>
下载风险告知卡
</el-button
>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-view"
@
click=
"showDrawCanvas(scope.row.floorId)"
>
查看四色图
</el-button
>
</div>
</div>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
<pagination
v-show=
"total > 0"
:total=
"total"
:page.sync=
"queryParams.pageNum"
<pagination
:limit.sync=
"queryParams.pageSize"
@
pagination=
"getRiskList"
/>
v-show=
"total > 0"
:total=
"total"
:page.sync=
"queryParams.pageNum"
:limit.sync=
"queryParams.pageSize"
@
pagination=
"getRiskList"
/>
</div>
</div>
</div>
</div>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
label=
"评估结果审核"
name=
"second"
>
<el-tab-pane
label=
"评估结果审核"
name=
"second"
>
<div
class=
"approveResult"
>
<div
class=
"approveResult"
>
<div
class=
"approveL"
>
<div
class=
"approveL"
>
<div
class=
"titles"
>
审批流程
</div>
<div
class=
"titles"
>
审批流程
</div>
<el-steps
direction=
"vertical"
:active=
"999"
>
<el-steps
direction=
"vertical"
:active=
"999"
>
<el-step
v-for=
"approveDto in InfoList.approveListDtos"
:title=
"approveDto.taskName"
<el-step
:key=
"approveDto.taskId"
icon=
"el-icon-success"
>
v-for=
"approveDto in InfoList.approveListDtos"
:title=
"approveDto.taskName"
:key=
"approveDto.taskId"
icon=
"el-icon-success"
>
<
template
slot=
"description"
>
<
template
slot=
"description"
>
<el-card
<el-card
class=
"box-card"
style=
"line-height: 25px;font-size: 14px;margin: 15px;"
>
class=
"box-card"
<span
style=
"display: block;"
><b>
操作时间:
</b>
{{
approveDto
.
startTime
}}
</span>
style=
"line-height: 25px; font-size: 14px; margin: 15px"
<span
style=
"display: block;"
><b>
操作人:
</b>
{{
approveDto
.
approvalUserName
}}
</span>
>
<span
style=
"display: block;"
><b>
任务节点:
</b>
{{
approveDto
.
taskName
}}
</span>
<span
style=
"display: block"
<span
style=
"display: block;"
v-if=
"approveDto.taskOpinion!=null"
><b>
审批意见:
><b>
操作时间:
</b>
{{
approveDto
.
startTime
}}
</span
</b>
{{
''
+
approveDto
.
taskOpinion
}}
</span>
>
<span
style=
"display: block"
><b>
操作人:
</b>
{{
approveDto
.
approvalUserName
}}
</span
>
<span
style=
"display: block"
><b>
任务节点:
</b>
{{
approveDto
.
taskName
}}
</span
>
<span
style=
"display: block"
v-if=
"approveDto.taskOpinion != null"
><b>
审批意见:
</b>
{{
""
+
approveDto
.
taskOpinion
}}
</span
>
</el-card>
</el-card>
</
template
>
</
template
>
</el-step>
</el-step>
</el-steps>
</el-steps>
</div>
</div>
</div>
</div>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
label=
"风险评估报告"
name=
"third"
>
<el-tab-pane
label=
"风险评估报告"
name=
"third"
>
...
@@ -114,28 +194,29 @@
...
@@ -114,28 +194,29 @@
<el-table-column
label=
"操作"
align=
"center"
prop=
"describe"
>
<el-table-column
label=
"操作"
align=
"center"
prop=
"describe"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<div>
<div>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-download"
>
下载
</el-button>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-download"
>
下载
</el-button
>
</div>
</div>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
</el-tab-pane>
</el-tab-pane>
</el-tabs>
</el-tabs>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
{
import
{
getPlan
,
getPlan
,
riskListInfo
,
riskListInfo
,
riskList
,
riskList
,
exportRiskList
exportRiskList
,
}
from
"
@/api/risk/plan
"
;
}
from
"
@/api/risk/plan
"
;
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
activeName
:
'
first
'
,
activeName
:
"
first
"
,
// 遮罩层
// 遮罩层
loading
:
true
,
loading
:
true
,
// 选中数组
// 选中数组
...
@@ -174,7 +255,7 @@
...
@@ -174,7 +255,7 @@
measuresEmergency
:
null
,
measuresEmergency
:
null
,
measuresEmergencyFileIds
:
null
,
measuresEmergencyFileIds
:
null
,
referenceBasis
:
null
,
referenceBasis
:
null
,
planId
:
null
,
planId
:
null
,
},
},
// 表单参数
// 表单参数
form
:
{},
form
:
{},
...
@@ -182,20 +263,17 @@
...
@@ -182,20 +263,17 @@
rules
:
{},
rules
:
{},
reportList
:
[],
reportList
:
[],
InfoList
:
{},
InfoList
:
{},
}
};
},
},
created
()
{
created
()
{
if
(
this
.
$route
.
params
.
id
)
{
if
(
this
.
$route
.
params
.
id
){
this
.
queryParams
.
planId
=
this
.
$route
.
params
.
id
;
this
.
queryParams
.
planId
=
this
.
$route
.
params
.
id
this
.
getRiskList
(
this
.
queryParams
);
this
.
getRiskList
(
this
.
queryParams
)
}
}
},
},
mounted
()
{
mounted
()
{
// console.log(this.$route.params, 'lll')
// console.log(this.$route.params, 'lll')
this
.
getInfo
(
this
.
$route
.
params
.
id
)
this
.
getInfo
(
this
.
$route
.
params
.
id
);
},
},
methods
:
{
methods
:
{
downList
(
planId
)
{
downList
(
planId
)
{
...
@@ -210,23 +288,22 @@
...
@@ -210,23 +288,22 @@
});
});
},
},
getInfo
(
id
)
{
getInfo
(
id
)
{
riskListInfo
(
id
).
then
(
res
=>
{
riskListInfo
(
id
).
then
((
res
)
=>
{
this
.
InfoList
=
res
.
data
this
.
InfoList
=
res
.
data
;
})
});
},
},
getRiskList
(
id
)
{
getRiskList
(
id
)
{
this
.
loading
=
true
;
this
.
loading
=
true
;
riskList
(
this
.
queryParams
).
then
(
res
=>
{
riskList
(
this
.
queryParams
).
then
((
res
)
=>
{
this
.
listList
=
res
.
rows
;
this
.
listList
=
res
.
rows
;
this
.
total
=
res
.
total
;
this
.
total
=
res
.
total
;
this
.
loading
=
false
;
this
.
loading
=
false
;
})
});
},
},
exportList
(
id
)
{
exportList
(
id
)
{
console
.
log
(
id
,
'
kkkk
'
)
console
.
log
(
id
,
"
kkkk
"
);
this
.
download
(
'
system/risk/plan/exportWord/riskNotification/
'
+
id
,
{},
`风险告知卡.docx`
)
this
.
download
(
"
system/risk/plan/exportWord/riskNotification/
"
+
id
,
{});
}
},
},
},
// 表单重置
// 表单重置
...
@@ -253,7 +330,7 @@
...
@@ -253,7 +330,7 @@
createBy
:
null
,
createBy
:
null
,
createTime
:
null
,
createTime
:
null
,
updateBy
:
null
,
updateBy
:
null
,
updateTime
:
null
updateTime
:
null
,
};
};
this
.
resetForm
(
"
form
"
);
this
.
resetForm
(
"
form
"
);
},
},
...
@@ -267,35 +344,33 @@
...
@@ -267,35 +344,33 @@
this
.
resetForm
(
"
queryForm
"
);
this
.
resetForm
(
"
queryForm
"
);
this
.
handleQuery
();
this
.
handleQuery
();
},
},
handleSelectionChange
()
{
handleSelectionChange
()
{},
};
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.wrapper
{
.wrapper
{
height
:
100%
;
height
:
100%
;
width
:
100%
;
width
:
100%
;
padding
:
10px
;
padding
:
10px
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
}
}
::v-deep
.el-tabs__content
{
::v-deep
.el-tabs__content
{
height
:
calc
(
100vh
-
334px
)
!
important
;
height
:
calc
(
100vh
-
334px
)
!
important
;
}
}
.titles
{
.titles
{
position
:
relative
;
position
:
relative
;
font-size
:
18px
;
font-size
:
18px
;
font-weight
:
bold
;
font-weight
:
bold
;
margin
:
10px
0
10px
20px
;
margin
:
10px
0
10px
20px
;
color
:
#666666
;
color
:
#666666
;
}
}
.
titles
:
:
before
{
.
titles
:
:
before
{
content
:
""
;
content
:
""
;
width
:
8px
;
width
:
8px
;
height
:
20px
;
height
:
20px
;
...
@@ -303,9 +378,9 @@
...
@@ -303,9 +378,9 @@
position
:
absolute
;
position
:
absolute
;
left
:
-14px
;
left
:
-14px
;
top
:
0
;
top
:
0
;
}
}
.approveResult
{
.approveResult
{
flex
:
1
;
flex
:
1
;
width
:
100%
;
width
:
100%
;
height
:
calc
(
100vh
-
360px
)
!
important
;
height
:
calc
(
100vh
-
360px
)
!
important
;
...
@@ -324,6 +399,5 @@
...
@@ -324,6 +399,5 @@
padding
:
0
0
0
30px
;
padding
:
0
0
0
30px
;
border-left
:
1px
solid
#d7d7d7
d7
;
border-left
:
1px
solid
#d7d7d7
d7
;
}
}
}
}
</
style
>
</
style
>
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