Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
BCDH-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
首开风险隐患双控平台
BCDH-APP
Commits
69026c87
Commit
69026c87
authored
Oct 29, 2021
by
薄玉虎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
风险模块详情页
parent
38c4edca
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
89 additions
and
58 deletions
+89
-58
src/service/risk.js
src/service/risk.js
+8
-0
src/views/risk/riskAccount/riskBigDetail.vue
src/views/risk/riskAccount/riskBigDetail.vue
+74
-56
src/views/risk/riskConfirme/index.vue
src/views/risk/riskConfirme/index.vue
+6
-1
src/views/risk/riskReturn/index.vue
src/views/risk/riskReturn/index.vue
+1
-1
No files found.
src/service/risk.js
View file @
69026c87
...
...
@@ -94,6 +94,14 @@ export function postriskBook(url,data) {
})
}
// 风险详情
export
function
riskDetail
(
url
,
data
)
{
return
request
({
url
:
url
,
method
:
'
post
'
,
data
})
}
/*接口对接1 START*/
...
...
src/views/risk/riskAccount/riskBigDetail.vue
View file @
69026c87
...
...
@@ -5,133 +5,133 @@
<div
class=
"con-list"
>
<div
class=
"cell-wrap"
>
<p>
风险上报
</p>
<van-cell-group
inset
v-for=
"(item, index) in reportList"
:key=
"index"
>
<van-cell-group
inset
>
<van-row
gutter=
""
>
<van-col
span=
"7"
><span
class=
"field-title"
>
所属工程名称:
</span></van-col
>
<van-col
span=
"17"
>
{{
item
.
project
}}
</van-col>
<van-col
span=
"17"
>
{{
riskMain
.
pId
}}
</van-col>
</van-row>
<van-row
gutter=
""
>
<van-col
span=
"7"
><span
class=
"field-title"
>
风险因素:
</span></van-col
>
<van-col
span=
"17"
>
{{
item
.
subject
}}
</van-col>
<van-col
span=
"17"
>
{{
riskMain
.
riskFactor
}}
</van-col>
</van-row>
<van-row
gutter=
""
>
<van-col
span=
"7"
><span
class=
"field-title"
>
风险源:
</span></van-col>
<van-col
span=
"17"
>
{{
item
.
findTim
e
}}
</van-col>
<van-col
span=
"17"
>
{{
riskMain
.
riskSourc
e
}}
</van-col>
</van-row>
<van-row
gutter=
""
>
<van-col
span=
"7"
><span
class=
"field-title"
>
事故类型:
</span></van-col
>
<van-col
span=
"17"
>
{{
item
.
level
}}
</van-col>
<van-col
span=
"17"
>
{{
riskMain
.
accidentType
}}
</van-col>
</van-row>
<!-- 隐藏的字段 -->
<div
v-show=
"r
eport
Open"
>
<div
v-show=
"r
isk
Open"
>
<van-row
gutter=
""
>
<van-col
span=
"7"
><span
class=
"field-title"
>
风险等级:
</span></van-col
>
<van-col
span=
"17"
>
{{
item
.
range
}}
</van-col>
<van-col
span=
"17"
>
{{
riskMain
.
riskLevel
}}
</van-col>
</van-row>
<van-row
gutter=
""
>
<van-col
span=
"7"
><span
class=
"field-title"
>
风险部位:
</span></van-col
>
<van-col
span=
"17"
>
{{
item
.
typ
e
}}
</van-col>
<van-col
span=
"17"
>
{{
riskMain
.
emergencyMeasur
e
}}
</van-col>
</van-row>
<van-row
gutter=
""
>
<van-col
span=
"7"
><span
class=
"field-title"
>
管控层级:
</span></van-col
>
<van-col
span=
"17"
>
{{
item
.
dangerNum
}}
</van-col>
<van-col
span=
"17"
>
{{
riskMain
.
controlLevel
}}
</van-col>
</van-row>
<van-row
gutter=
""
>
<van-col
span=
"7"
><span
class=
"field-title"
>
主责部门:
</span></van-col
>
<van-col
span=
"17"
>
{{
item
.
source
}}
</van-col>
<van-col
span=
"17"
>
{{
riskMain
.
responsibilityDept
}}
</van-col>
</van-row>
<van-row
gutter=
""
>
<van-col
span=
"7"
><span
class=
"field-title"
>
主责人员:
</span></van-col
>
<van-col
span=
"17"
>
{{
item
.
source1
}}
</van-col>
<van-col
span=
"17"
>
{{
riskMain
.
responsibilityMember
}}
</van-col>
</van-row>
<van-row
gutter=
""
>
<van-col
span=
"7"
><span
class=
"field-title"
>
定级方式:
</span></van-col
>
<van-col
span=
"17"
>
{{
item
.
location
}}
</van-col>
<van-col
span=
"17"
>
{{
riskMain
.
gradingMethod
}}
</van-col>
</van-row>
<van-row
gutter=
""
>
<van-col
span=
"7"
><span
class=
"field-title"
>
技术措施:
</span></van-col
>
<van-col
span=
"17"
>
{{
item
.
dangerNum
}}
</van-col>
<van-col
span=
"17"
>
{{
riskMain
.
technicalMeasures
}}
</van-col>
</van-row>
<van-row
gutter=
""
>
<van-col
span=
"7"
><span
class=
"field-title"
>
技术措施(附件):
</span></van-col
>
<van-col
span=
"17"
>
{{
item
.
describe
}}
</van-col>
<van-col
span=
"17"
>
{{
riskMain
.
technicalMeasures
}}
</van-col>
</van-row>
<van-row
gutter=
""
>
<van-col
span=
"7"
><span
class=
"field-title"
>
管理措施:
</span></van-col
>
<van-col
span=
"17"
>
{{
item
.
uploaderImg
}}
</van-col>
<van-col
span=
"17"
>
{{
riskMain
.
managementMeasures
}}
</van-col>
</van-row>
<van-row
gutter=
""
>
<van-col
span=
"7"
><span
class=
"field-title"
>
管理措施(附件):
</span></van-col
>
<van-col
span=
"17"
>
{{
item
.
uploaderVideo
}}
</van-col>
<van-col
span=
"17"
>
{{
riskMain
.
managementMeasures
}}
</van-col>
</van-row>
<van-row
gutter=
""
>
<van-col
span=
"7"
><span
class=
"field-title"
>
应急措施:
</span></van-col
>
<van-col
span=
"17"
>
{{
item
.
expireTim
e
}}
</van-col>
<van-col
span=
"17"
>
{{
riskMain
.
emergencyMeasur
e
}}
</van-col>
</van-row>
<van-row
gutter=
""
>
<van-col
span=
"7"
><span
class=
"field-title"
>
应急措施(附件):
</span></van-col
>
<van-col
span=
"17"
>
{{
item
.
recPeopl
e
}}
</van-col>
<van-col
span=
"17"
>
{{
riskMain
.
emergencyMeasur
e
}}
</van-col>
</van-row>
</div>
</van-cell-group>
<!-- 展开 -->
<div
class=
"more"
@
click=
"r
eport
Reverse"
>
{{
r
eport
OpenText
}}
<div
class=
"more"
@
click=
"r
isk
Reverse"
>
{{
r
isk
OpenText
}}
</div>
</div>
<div
class=
"confirme-wrap"
>
<div
class=
"confirme-wrap"
v-if=
"confirmList.length>0"
>
<p>
风险确认
</p>
<van-cell-group
inset
v-for=
"(item, index) in
reportList"
:key=
"index"
>
<van-cell-group
inset
v-for=
"(item, index) in
confirmList"
:key=
"index"
>
<van-row
gutter=
""
>
<van-col
span=
"7"
><span
class=
"field-title"
>
意见:
</span></van-col>
<van-col
span=
"17"
>
{{
item
.
subject
}}
</van-col>
<van-col
span=
"17"
>
{{
item
.
confirmOpinion
}}
</van-col>
</van-row>
<van-row
gutter=
""
>
<van-col
span=
"7"
><span
class=
"field-title"
>
隐患确认信息:
</span></van-col
>
<van-col
span=
"17"
>
{{
item
.
project
}}
</van-col>
<van-col
span=
"17"
>
{{
item
.
confirmResult
==
1
?
"
同意
"
:
"
退回
"
}}
</van-col>
</van-row>
</van-cell-group>
</div>
<div
class=
"journal-wrap"
>
<p>
日志信息
</p>
<van-cell-group
inset
v-for=
"(item, index) in reportList"
:key=
"index"
>
<van-steps
direction=
"vertical"
:active=
"999"
>
<van-step>
<van-cell-group
inset
>
<van-steps
direction=
"vertical"
:active=
"999
99"
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"
...
...
@@ -142,58 +142,49 @@
<van-col
span=
"5"
><span
class=
"field-title"
>
审批人:
</span></van-col
>
<van-col
span=
"19"
>
首华建设项目
</van-col>
<van-col
span=
"19"
>
{{
item
.
userName
}}
</van-col>
</van-row>
<van-row>
<van-col
span=
"5"
><span
class=
"field-title"
>
节点
</span></van-col
><span
class=
"field-title"
>
节点
:
</span></van-col
>
<van-col
span=
"19"
>
隐患上报
</van-col>
<van-col
span=
"19"
>
{{
item
.
logNode
}}
</van-col>
</van-row>
<van-row>
<van-col
span=
"5"
><span
class=
"field-title"
>
结果:
</span></van-col
>
<van-col
span=
"19"
>
通过
</van-col>
<van-col
span=
"19"
>
{{
item
.
logResult
}}
</van-col>
</van-row>
<van-row>
<van-col
span=
"5"
><span
class=
"field-title"
>
部门:
</span></van-col
>
<van-col
span=
"19"
>
首华建设项目部
</van-col>
<van-col
span=
"19"
>
{{
item
.
deptName
}}
</van-col>
</van-row>
<van-row>
<van-col
span=
"5"
><span
class=
"field-title"
>
时间:
</span></van-col
>
<van-col
span=
"19"
>
2021-10-26 16:30:00
</van-col>
<van-col
span=
"19"
>
{{
item
.
createTime
}}
</van-col>
</van-row>
</div>
</van-step>
</van-steps>
<div
style=
"text-align: center;"
v-if=
"riskLogList.length == 0"
>
暂无数据
</div>
</van-cell-group>
<!-- 展开 -->
<div
class=
"more"
@
click=
"journalReverse"
>
<div
class=
"more"
@
click=
"journalReverse"
v-show=
"riskLogList.length>0"
>
{{
journalOpenText
}}
</div>
</div>
<div
class=
"supervise-wrap"
>
<p>
督办信息
</p>
<van-cell-group
inset
v-for=
"(item, index) in reportList"
:key=
"index"
>
<div
style=
"text-align: center;"
>
暂无数据
</div>
</van-cell-group>
<!-- 展开 -->
<div
class=
"more"
@
click=
"superviseReverse"
v-show=
"false"
>
{{
superviseOpenText
}}
</div>
</div>
</div>
</div>
</
template
>
<
script
>
import
LHeader
from
"
@/components/header.vue
"
;
import
{
riskDetail
}
from
"
@/service/risk
"
;
export
default
{
components
:
{
...
...
@@ -201,15 +192,16 @@ export default {
},
data
()
{
return
{
text
:
"
隐患历史台账
"
,
reportOpen
:
false
,
reportOpenText
:
"
展开 ▼
"
,
id
:
""
,
text
:
"
风险历史台账
"
,
riskOpen
:
false
,
riskOpenText
:
"
展开 ▼
"
,
journalOpen
:
false
,
journalOpenText
:
"
展开 ▼
"
,
superviseOpen
:
false
,
superviseOpenText
:
"
展开 ▼
"
,
r
eport
List
:
[
r
isk
List
:
[
{
project
:
"
朝阳区和平街14区简易住宅楼改造项目
"
,
subject
:
"
临时用电施工组织设计未对盾构施工用电进行专项说明。
"
,
...
...
@@ -228,22 +220,48 @@ export default {
recPeople
:
"
张三
"
}
],
riskMain
:
""
,
confirmList
:[],
riskLogList
:[],
journalList
:
[]
};
},
created
()
{
this
.
id
=
this
.
$route
.
params
.
id
;
if
(
this
.
id
)
{
this
.
postDetail
();
}
},
methods
:
{
// 请求台账信息
postDetail
()
{
this
.
$toast
.
loading
({
message
:
"
加载中...
"
,
forbidClick
:
true
,
loadingType
:
"
spinner
"
,
duration
:
0
});
riskDetail
(
`/riskMain/riskDetailsApp/
${
this
.
id
}
`
)
.
then
(
res
=>
{
this
.
$toast
.
clear
();
this
.
riskMain
=
res
.
data
.
riskMain
this
.
confirmList
=
res
.
data
.
confirmList
this
.
riskLogList
=
res
.
data
.
riskLogList
})
.
catch
(()
=>
{
this
.
$toast
.
clear
();
this
.
$toast
.
fail
(
"
加载失败,请稍后再试
"
);
});
},
// 上报信息显示或隐藏
r
eport
Reverse
()
{
this
.
r
eportOpen
=
!
this
.
report
Open
;
if
(
this
.
r
eport
Open
)
{
this
.
r
eport
OpenText
=
"
收起 ▲
"
;
r
isk
Reverse
()
{
this
.
r
iskOpen
=
!
this
.
risk
Open
;
if
(
this
.
r
isk
Open
)
{
this
.
r
isk
OpenText
=
"
收起 ▲
"
;
}
else
{
this
.
r
eport
OpenText
=
"
展开 ▼
"
;
this
.
r
isk
OpenText
=
"
展开 ▼
"
;
}
},
// 日志信息显示或隐藏
...
...
src/views/risk/riskConfirme/index.vue
View file @
69026c87
...
...
@@ -122,7 +122,12 @@ export default {
// 详情
goDetail
(
data
)
{
console
.
log
(
data
);
this
.
$router
.
push
(
"
/affirm-detail
"
);
this
.
$router
.
push
({
name
:
"
risk-big-detail
"
,
params
:
{
id
:
data
.
taskId
}
});
this
.
showIndex
=
null
;
},
// 确认
...
...
src/views/risk/riskReturn/index.vue
View file @
69026c87
...
...
@@ -118,7 +118,7 @@ export default {
clearInterval
(
this
.
Loop
);
},
//
详情
//
重新上报
goDetail
(
data
)
{
console
.
log
(
data
);
this
.
$router
.
push
({
...
...
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