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
95cf4f4f
Commit
95cf4f4f
authored
Jul 07, 2023
by
wei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comit
parent
a9115a80
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
215 additions
and
62 deletions
+215
-62
src/App.vue
src/App.vue
+1
-1
src/main.js
src/main.js
+2
-2
src/router/index.js
src/router/index.js
+5
-0
src/views/riskProject/add/addInherent.vue
src/views/riskProject/add/addInherent.vue
+118
-54
src/views/riskProject/add/inherentRisks.vue
src/views/riskProject/add/inherentRisks.vue
+2
-2
src/views/riskProject/add/resultPage.vue
src/views/riskProject/add/resultPage.vue
+82
-0
src/views/riskProject/add/taskList.vue
src/views/riskProject/add/taskList.vue
+4
-2
src/views/riskProject/taskLedger/taskDetail.vue
src/views/riskProject/taskLedger/taskDetail.vue
+1
-1
No files found.
src/App.vue
View file @
95cf4f4f
...
@@ -40,7 +40,7 @@ export default {
...
@@ -40,7 +40,7 @@ export default {
'
riskAdd
'
'
riskAdd
'
],
],
// 不需要展示底部tabbar的页面
// 不需要展示底部tabbar的页面
noTab
:[
"
login
"
,
"
login2
"
,
'
addCurrent
'
,
'
addPresent
'
,
'
addInherent
'
,
'
riskInherent
'
,
"
choose-people
"
,
"
scan
"
,
'
success
'
,
'
fail
'
,
'
warn
'
,
'
center
'
,
'
reset-pas-two
'
,
'
riskTaskList
'
,
'
riskBigDetail
'
,
'
riskView
'
],
noTab
:[
"
login
"
,
"
login2
"
,
'
addCurrent
'
,
'
addPresent
'
,
'
addInherent
'
,
'
riskInherent
'
,
"
choose-people
"
,
"
scan
"
,
'
success
'
,
'
fail
'
,
'
warn
'
,
'
center
'
,
'
reset-pas-two
'
,
'
riskTaskList
'
,
'
riskBigDetail
'
,
'
riskView
'
,
'
resultPage
'
],
// cachePage预先定义的缓存页面
// cachePage预先定义的缓存页面
otherCache
:
[],
otherCache
:
[],
// 专门处理列表缓存的页面,这些页面缓存逻辑与其他缓存不一样去详情返回列表缓存,但是进入列表必须刷新,如何有需要缓存的列表请放到这里来。
// 专门处理列表缓存的页面,这些页面缓存逻辑与其他缓存不一样去详情返回列表缓存,但是进入列表必须刷新,如何有需要缓存的列表请放到这里来。
...
...
src/main.js
View file @
95cf4f4f
...
@@ -9,14 +9,14 @@ import './permission'
...
@@ -9,14 +9,14 @@ import './permission'
import
Cookies
from
'
js-cookie
'
import
Cookies
from
'
js-cookie
'
import
util
from
'
./api/util.js
'
import
util
from
'
./api/util.js
'
import
{
DropdownMenu
,
DropdownItem
,
Divider
,
Popup
,
Overlay
,
Loading
,
Dialog
,
ContactCard
,
Form
,
AddressEdit
,
AddressList
,
Field
,
CellGroup
,
Cell
,
SwipeCell
,
Icon
,
Stepper
,
Card
,
Checkbox
,
CheckboxGroup
,
Button
,
Swipe
,
SwipeItem
,
PullRefresh
,
List
,
Tab
,
Tabs
,
GoodsAction
,
GoodsActionIcon
,
GoodsActionButton
,
SubmitBar
,
Toast
,
Search
,
Picker
,
Uploader
,
Notify
,
ContactList
,
Calendar
,
Radio
,
RadioGroup
,
Tag
,
Tabbar
,
TabbarItem
,
Sticky
,
Grid
,
GridItem
,
Skeleton
,
Col
,
Row
,
Image
as
VanImage
,
Badge
,
NoticeBar
,
DatetimePicker
,
import
{
DropdownMenu
,
DropdownItem
,
Divider
,
Popup
,
Overlay
,
Loading
,
Dialog
,
ContactCard
,
Form
,
AddressEdit
,
AddressList
,
Field
,
CellGroup
,
Cell
,
SwipeCell
,
Icon
,
Stepper
,
Card
,
Checkbox
,
CheckboxGroup
,
Button
,
Swipe
,
SwipeItem
,
PullRefresh
,
List
,
Tab
,
Tabs
,
GoodsAction
,
GoodsActionIcon
,
GoodsActionButton
,
SubmitBar
,
Toast
,
Search
,
Picker
,
Uploader
,
Notify
,
ContactList
,
Calendar
,
Radio
,
RadioGroup
,
Tag
,
Tabbar
,
TabbarItem
,
Sticky
,
Grid
,
GridItem
,
Skeleton
,
Col
,
Row
,
Image
as
VanImage
,
Badge
,
NoticeBar
,
DatetimePicker
,
Step
,
Steps
,
Lazyload
}
from
'
vant
'
Step
,
Steps
,
Lazyload
,
Popover
,
Collapse
,
CollapseItem
}
from
'
vant
'
import
'
lib-flexible/flexible
'
import
'
lib-flexible/flexible
'
import
vueEsign
from
'
vue-esign
'
import
vueEsign
from
'
vue-esign
'
Vue
.
use
(
vueEsign
)
Vue
.
use
(
vueEsign
)
Vue
.
prototype
.
util
=
util
Vue
.
prototype
.
util
=
util
Vue
.
use
(
Divider
).
use
(
Popup
).
use
(
Overlay
).
use
(
Loading
).
use
(
Dialog
).
use
(
Toast
).
use
(
ContactCard
).
use
(
Form
).
use
(
AddressEdit
).
use
(
AddressList
).
use
(
Field
).
use
(
CellGroup
).
use
(
Cell
).
use
(
SwipeCell
).
use
(
Icon
).
use
(
Stepper
).
use
(
Card
).
use
(
Button
).
use
(
Swipe
).
use
(
SwipeItem
).
use
(
PullRefresh
).
use
(
List
).
use
(
Tab
).
use
(
Tabs
).
use
(
GoodsAction
).
use
(
GoodsActionIcon
).
use
(
GoodsActionButton
).
use
(
SubmitBar
).
use
(
Checkbox
).
use
(
CheckboxGroup
).
use
(
Search
).
use
(
Picker
).
use
(
Uploader
).
use
(
Notify
)
Vue
.
use
(
Divider
).
use
(
Popup
).
use
(
Overlay
).
use
(
Loading
).
use
(
Dialog
).
use
(
Toast
).
use
(
ContactCard
).
use
(
Form
).
use
(
AddressEdit
).
use
(
AddressList
).
use
(
Field
).
use
(
CellGroup
).
use
(
Cell
).
use
(
SwipeCell
).
use
(
Icon
).
use
(
Stepper
).
use
(
Card
).
use
(
Button
).
use
(
Swipe
).
use
(
SwipeItem
).
use
(
PullRefresh
).
use
(
List
).
use
(
Tab
).
use
(
Tabs
).
use
(
GoodsAction
).
use
(
GoodsActionIcon
).
use
(
GoodsActionButton
).
use
(
SubmitBar
).
use
(
Checkbox
).
use
(
CheckboxGroup
).
use
(
Search
).
use
(
Picker
).
use
(
Uploader
).
use
(
Notify
)
.
use
(
ContactList
).
use
(
Calendar
).
use
(
Radio
).
use
(
RadioGroup
).
use
(
Tag
).
use
(
Tabbar
).
use
(
TabbarItem
).
use
(
Sticky
)
.
use
(
ContactList
).
use
(
Calendar
).
use
(
Radio
).
use
(
RadioGroup
).
use
(
Tag
).
use
(
Tabbar
).
use
(
TabbarItem
).
use
(
Sticky
)
.
use
(
Grid
).
use
(
GridItem
).
use
(
Skeleton
).
use
(
Col
).
use
(
Row
).
use
(
VanImage
).
use
(
Badge
).
use
(
NoticeBar
).
use
(
DatetimePicker
).
use
(
Step
).
use
(
Steps
).
use
(
Lazyload
)
.
use
(
Grid
).
use
(
GridItem
).
use
(
Skeleton
).
use
(
Col
).
use
(
Row
).
use
(
VanImage
).
use
(
Badge
).
use
(
NoticeBar
).
use
(
DatetimePicker
).
use
(
Step
).
use
(
Steps
).
use
(
Popover
).
use
(
Lazyload
).
use
(
Collapse
).
use
(
CollapseItem
)
Vue
.
use
(
DropdownMenu
);
Vue
.
use
(
DropdownMenu
);
Vue
.
use
(
DropdownItem
);
Vue
.
use
(
DropdownItem
);
// 引用高德地图组件 main.js
// 引用高德地图组件 main.js
...
...
src/router/index.js
View file @
95cf4f4f
...
@@ -191,6 +191,11 @@ const routes = [{
...
@@ -191,6 +191,11 @@ const routes = [{
name
:
'
taskDetail
'
,
name
:
'
taskDetail
'
,
component
:
()
=>
import
(
'
../views/riskProject/taskLedger/taskDetail.vue
'
),
component
:
()
=>
import
(
'
../views/riskProject/taskLedger/taskDetail.vue
'
),
},
},
{
//任务台账
path
:
'
/resultPage
'
,
name
:
'
resultPage
'
,
component
:
()
=>
import
(
'
../views/riskProject/add/resultPage.vue
'
),
},
]
]
const
router
=
new
VueRouter
({
const
router
=
new
VueRouter
({
...
...
src/views/riskProject/add/addInherent.vue
View file @
95cf4f4f
This diff is collapsed.
Click to expand it.
src/views/riskProject/add/inherentRisks.vue
View file @
95cf4f4f
...
@@ -116,7 +116,6 @@ export default {
...
@@ -116,7 +116,6 @@ export default {
this
.
planId
=
this
.
$route
.
params
.
id
||
sessionStorage
.
getItem
(
"
planId
"
);
this
.
planId
=
this
.
$route
.
params
.
id
||
sessionStorage
.
getItem
(
"
planId
"
);
this
.
buildingId
=
this
.
$route
.
params
.
buildingId
;
this
.
buildingId
=
this
.
$route
.
params
.
buildingId
;
this
.
buildingName
=
this
.
$route
.
params
.
buildingName
;
this
.
buildingName
=
this
.
$route
.
params
.
buildingName
;
console
.
log
(
this
.
buildingId
,
this
.
buildingName
);
this
.
getRiskList
(
this
.
planId
);
this
.
getRiskList
(
this
.
planId
);
// this.postList();
// this.postList();
},
},
...
@@ -140,7 +139,8 @@ export default {
...
@@ -140,7 +139,8 @@ export default {
name
:
"
addInherent
"
,
name
:
"
addInherent
"
,
params
:
{
params
:
{
id
:
this
.
active
,
id
:
this
.
active
,
planId
:
this
.
planId
planId
:
this
.
planId
,
buildingId
:
this
.
buildingId
}
}
});
});
},
},
...
...
src/views/riskProject/add/resultPage.vue
0 → 100644
View file @
95cf4f4f
<
template
>
<div
class=
"wrapper"
>
<LHeader
:text=
"text"
></LHeader>
<div
class=
"section"
>
<p>
该次测评风险值为:
</p>
<div>
<p
style=
"font-weight: bold;font-size: 20px;"
>
{{
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=
"见下图"
/>
</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>
</div>
</div>
</
template
>
<
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
:
''
}
},
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
})
},
resetClose
(){
this
.
$router
.
push
({
name
:
'
addInherent
'
,
params
:{
level
:
''
}
})
},
sureClose
(){
this
.
$router
.
push
({
name
:
'
addInherent
'
,
params
:{
level
:
this
.
level
}
})
}
}
}
</
script
>
<
style
lang=
"less"
scoped
>
.wrapper{
width: 100%;
height: 100%;
.section{
width: 100%;
height: 100%;
padding: 10px;
box-sizing: border-box;
background: #fff;
font-size: 14px;
}
}
</
style
>
\ No newline at end of file
src/views/riskProject/add/taskList.vue
View file @
95cf4f4f
...
@@ -147,7 +147,9 @@
...
@@ -147,7 +147,9 @@
/>
/>
</van-form>
</van-form>
</van-tab>
</van-tab>
<van-tab
title=
"风险清单"
>
</van-tab>
<van-tab
title=
"风险清单"
>
</van-tab>
<van-tab
title=
"审核记录"
>
<van-tab
title=
"审核记录"
>
<div
class=
"journal-wrap"
>
<div
class=
"journal-wrap"
>
<van-cell-group
inset
>
<van-cell-group
inset
>
...
@@ -353,7 +355,7 @@ export default {
...
@@ -353,7 +355,7 @@ export default {
this
.
$router
.
push
({
this
.
$router
.
push
({
name
:
"
risk-big-detail
"
,
name
:
"
risk-big-detail
"
,
params
:
{
params
:
{
id
:
data
.
businessId
||
data
.
id
id
:
data
.
businessId
||
data
.
id
,
}
}
});
});
this
.
showIndex
=
null
;
this
.
showIndex
=
null
;
...
...
src/views/riskProject/taskLedger/taskDetail.vue
View file @
95cf4f4f
...
@@ -12,7 +12,7 @@ export default {
...
@@ -12,7 +12,7 @@ export default {
name
:
'
taskDetail
'
,
name
:
'
taskDetail
'
,
data
()
{
data
()
{
return
{
return
{
text
:
"
任务单
"
,
text
:
"
固有风险列表
"
,
}
}
},
},
components
:
{
components
:
{
...
...
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