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
3fd739cf
Commit
3fd739cf
authored
Jul 08, 2023
by
wei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
4ef48267
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
96 additions
and
73 deletions
+96
-73
src/assets/workbench/sst.jpg
src/assets/workbench/sst.jpg
+0
-0
src/views/riskProject/add/inherentRisks.vue
src/views/riskProject/add/inherentRisks.vue
+38
-26
src/views/riskProject/add/resultPage.vue
src/views/riskProject/add/resultPage.vue
+57
-45
src/views/riskProject/add/taskList.vue
src/views/riskProject/add/taskList.vue
+0
-1
src/views/riskProject/taskLedger/taskDetail.vue
src/views/riskProject/taskLedger/taskDetail.vue
+1
-1
No files found.
src/assets/workbench/sst.jpg
0 → 100644
View file @
3fd739cf
189 KB
src/views/riskProject/add/inherentRisks.vue
View file @
3fd739cf
...
...
@@ -113,8 +113,8 @@ export default {
},
created
()
{
this
.
planId
=
this
.
$route
.
params
.
id
||
sessionStorage
.
getItem
(
"
planId
"
);
this
.
buildingId
=
this
.
$route
.
params
.
buildingId
||
sessionStorage
.
getItem
(
"
buildingId
"
);
this
.
buildingName
=
this
.
$route
.
params
.
buildingName
||
sessionStorage
.
getItem
(
"
buildingName
"
);
this
.
buildingId
=
this
.
$route
.
params
.
buildingId
||
sessionStorage
.
getItem
(
"
buildingId
"
);
this
.
buildingName
=
this
.
$route
.
params
.
buildingName
||
sessionStorage
.
getItem
(
"
buildingName
"
);
this
.
getRiskList
(
this
.
planId
);
// this.postList();
},
...
...
@@ -134,35 +134,47 @@ export default {
},
//新增固有风险
performTasks
()
{
sessionStorage
.
setItem
(
'
buildingId
'
,
this
.
buildingId
)
sessionStorage
.
setItem
(
'
planId
'
,
this
.
planId
)
sessionStorage
.
setItem
(
'
buildingName
'
,
this
.
buildingName
)
sessionStorage
.
setItem
(
'
buildingId
'
,
this
.
buildingId
)
sessionStorage
.
setItem
(
'
planId
'
,
this
.
planId
)
sessionStorage
.
setItem
(
'
buildingName
'
,
this
.
buildingName
)
this
.
$router
.
push
({
name
:
"
addInherent
"
,
params
:
{
id
:
this
.
active
,
planId
:
this
.
planId
,
buildingId
:
this
.
buildingId
,
buildingName
:
this
.
buildingName
buildingId
:
this
.
buildingId
,
buildingName
:
this
.
buildingName
}
});
},
//任务执行结束
endTasks
()
{
//toDo
postFun
(
`/risk/plan/submit/
${
this
.
planId
}
/
${
this
.
buildingId
}
`
).
then
(
res
=>
{
Dialog
.
alert
({
title
:
'
任务执行结束
'
,
message
:
res
.
msg
,
}).
then
(()
=>
{
this
.
$router
.
push
({
name
:
'
riskAssess
'
Dialog
.
confirm
({
title
:
'
任务执行结束
'
,
message
:
'
是否任务执行结束
'
,
})
.
then
(()
=>
{
postFun
(
`/risk/plan/submit/
${
this
.
planId
}
/
${
this
.
buildingId
}
`
).
then
(
res
=>
{
// Dialog.alert({
// title: '任务执行结束',
// message: res.msg,
// }).then(() => {
// resolve(res.data);
this
.
$toast
.
success
(
res
.
msg
)
this
.
$router
.
push
({
name
:
'
riskAssess
'
})
// });
})
})
.
catch
(()
=>
{
// on cancel
});
})
},
handadd
()
{
this
.
$router
.
push
({
...
...
@@ -223,7 +235,7 @@ export default {
async
getRiskList
(
id
)
{
this
.
$toast
.
loading
({
message
:
"
加载中...
"
,
forbidClick
:
true
,
forbidClick
:
true
,
loadingType
:
"
spinner
"
,
duration
:
0
});
...
...
@@ -239,7 +251,7 @@ export default {
},
async
changeFloor
()
{
let
room
=
await
this
.
roomList
(
this
.
value1
);
let
risk
=
await
this
.
riskList
(
this
.
planId
,
this
.
buildingId
,
this
.
value1
,
this
.
value2
);
let
risk
=
await
this
.
riskList
(
this
.
planId
,
this
.
buildingId
,
this
.
value1
,
this
.
value2
);
},
async
changeRoom
()
{
let
risk
=
await
this
.
riskList
(
...
...
@@ -261,17 +273,17 @@ export default {
},
// 详情
goDetail
(
data
)
{
sessionStorage
.
setItem
(
'
buildingId
'
,
this
.
buildingId
)
sessionStorage
.
setItem
(
'
planId
'
,
this
.
planId
)
sessionStorage
.
setItem
(
'
buildingName
'
,
this
.
buildingName
)
sessionStorage
.
setItem
(
'
inherentId
'
,
data
.
businessId
||
data
.
id
)
sessionStorage
.
setItem
(
'
buildingId
'
,
this
.
buildingId
)
sessionStorage
.
setItem
(
'
planId
'
,
this
.
planId
)
sessionStorage
.
setItem
(
'
buildingName
'
,
this
.
buildingName
)
sessionStorage
.
setItem
(
'
inherentId
'
,
data
.
businessId
||
data
.
id
)
this
.
$router
.
push
({
name
:
"
addCurrent
"
,
params
:
{
inherentId
:
data
.
businessId
||
data
.
id
,
planId
:
this
.
planId
,
buildingId
:
this
.
buildingId
,
buildingName
:
this
.
buildingName
buildingId
:
this
.
buildingId
,
buildingName
:
this
.
buildingName
}
});
this
.
showIndex
=
null
;
...
...
src/views/riskProject/add/resultPage.vue
View file @
3fd739cf
...
...
@@ -3,19 +3,20 @@
<LHeader
:text=
"text"
></LHeader>
<div
class=
"section"
>
<p>
该次测评风险值为:
</p>
<div
>
<p
style=
"font-weight: bold;font-size: 20px;"
>
{{
score
}}
</p>
</div>
<div
class=
"resultScore"
>
<p
style=
"font-weight: bold;font-size: 20px;"
>
{{
this
.
$route
.
params
.
score
}}
</p>
</div>
<p>
本次评估结果评定为:
{{
level
}}
</p>
<van-divider></van-divider>
<van-field
readonly
label=
"所属模型:"
placeholder=
"ls风险矩阵评估模型"
/>
<van-field
readonly
label=
"风险发生可能性:"
placeholder=
"一般情况不会发生"
/>
<van-field
readonly
label=
"后果严重程度"
placeholder=
"轻微影响"
/>
<van-field
readonly
label=
"判定标准:"
placeholder=
"见下图"
/>
<van-image
width=
"90vw"
height=
"auto"
:src=
"require('@/assets/workbench/sst.jpg')"
/>
</div>
<div
style=
"display: flex;margin: 10px 16px 0px; padding-bottom: 16px"
>
<van-button
block
type=
"info"
@
click=
"sureClose"
>
确认本次测评结果
</van-button>
<van-button
block
plain
type=
"info"
@
click=
"resetClose"
>
取消
</van-button>
<van-button
block
type=
"info"
@
click=
"sureClose"
style=
"margin-right: 4px;"
>
确认本次测评结果
</van-button>
<van-button
block
plain
type=
"info"
@
click=
"resetClose"
style=
"margin-left: 4px;"
>
取消
</van-button>
</div>
</div>
...
...
@@ -24,55 +25,56 @@
<
script
>
import
{
getFun
,
postFun
}
from
"
@/service/table.js
"
;
import
LHeader
from
"
@/components/header.vue
"
;
export
default
{
name
:
'
resultPage
'
,
components
:{
LHeader
},
data
(){
return
{
text
:
'
测评结果
'
,
score
:
0
,
level
:
''
}
export
default
{
name
:
'
resultPage
'
,
components
:
{
LHeader
},
data
()
{
return
{
text
:
'
测评结果
'
,
score
:
0
,
level
:
''
}
},
created
()
{
this
.
getResult
()
},
methods
:
{
getResult
()
{
getFun
(
`/risk/plan/matrix/score/
${
this
.
$route
.
params
.
score
}
`
).
then
(
res
=>
{
this
.
level
=
res
.
data
.
level
this
.
score
=
res
.
data
.
max
})
},
created
(){
this
.
getResult
()
resetClose
()
{
this
.
$router
.
push
({
name
:
'
addInherent
'
,
params
:
{
level
:
''
}
})
},
methods
:{
getResult
(){
getFun
(
`/risk/plan/matrix/score/
${
this
.
$route
.
params
.
score
}
`
).
then
(
res
=>
{
this
.
level
=
res
.
data
.
level
this
.
score
=
res
.
data
.
max
})
},
resetClose
(){
this
.
$router
.
push
({
name
:
'
addInherent
'
,
params
:{
level
:
''
}
})
},
sureClose
(){
// this.$emit('',)
history
.
go
(
-
1
)
// this.$router.push({
// name:'addInherent',
// params:{
// level:this.level
// }
// })
}
sureClose
()
{
// this.$emit('',)
history
.
go
(
-
1
)
// this.$router.push({
// name:'addInherent',
// params:{
// level:this.level
// }
// })
}
}
}
</
script
>
<
style
lang=
"less"
scoped
>
.wrapper{
.wrapper
{
width: 100%;
height: 100%;
.section{
.section {
width: 100%;
height: 100%;
padding: 10px;
...
...
@@ -80,5 +82,15 @@ import LHeader from "@/components/header.vue";
background: #fff;
font-size: 14px;
}
.resultScore{
width: 48px;
height: 48px;
background: #ffc600;
text-align: center;
line-height: 48px;
border-radius: 50%;
margin: 0 auto;
}
}
</
style
>
\ No newline at end of file
src/views/riskProject/add/taskList.vue
View file @
3fd739cf
...
...
@@ -742,7 +742,6 @@ export default {
},
//风险清单列表点击
toRiskDetail
(
item
)
{
console
.
log
(
item
,
"
LLLL
"
);
this
.
$router
.
push
({
name
:
"
taskDetail
"
,
params
:
{
...
...
src/views/riskProject/taskLedger/taskDetail.vue
View file @
3fd739cf
...
...
@@ -51,7 +51,7 @@
</div>
</van-tab>
<van-tab
title=
"四色图"
name=
"c"
>
<drawCanvas
/>
<drawCanvas
:isView=
"true"
/>
</van-tab>
</van-tabs>
</div>
...
...
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