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
fa2a3f85
Commit
fa2a3f85
authored
Jul 07, 2023
by
yf
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of
http://git.censoft.com.cn/rongtong/rongtong-app
into dev-yf'
parents
7a73ca0a
6bac48e8
Changes
9
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
298 additions
and
70 deletions
+298
-70
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
+126
-56
src/views/riskProject/add/inherentRisks.vue
src/views/riskProject/add/inherentRisks.vue
+9
-4
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
+70
-4
src/views/riskProject/taskLedger/taskDetail.vue
src/views/riskProject/taskLedger/taskDetail.vue
+1
-1
vue.config.js
vue.config.js
+2
-2
No files found.
src/App.vue
View file @
fa2a3f85
...
...
@@ -40,7 +40,7 @@ export default {
'
riskAdd
'
],
// 不需要展示底部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预先定义的缓存页面
otherCache
:
[],
// 专门处理列表缓存的页面,这些页面缓存逻辑与其他缓存不一样去详情返回列表缓存,但是进入列表必须刷新,如何有需要缓存的列表请放到这里来。
...
...
src/main.js
View file @
fa2a3f85
...
...
@@ -9,14 +9,14 @@ import './permission'
import
Cookies
from
'
js-cookie
'
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
,
Step
,
Steps
,
Lazyload
}
from
'
vant
'
Step
,
Steps
,
Lazyload
,
Popover
,
Collapse
,
CollapseItem
}
from
'
vant
'
import
'
lib-flexible/flexible
'
import
vueEsign
from
'
vue-esign
'
Vue
.
use
(
vueEsign
)
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
)
.
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
(
DropdownItem
);
// 引用高德地图组件 main.js
...
...
src/router/index.js
View file @
fa2a3f85
...
...
@@ -191,6 +191,11 @@ const routes = [{
name
:
'
taskDetail
'
,
component
:
()
=>
import
(
'
../views/riskProject/taskLedger/taskDetail.vue
'
),
},
{
//任务台账
path
:
'
/resultPage
'
,
name
:
'
resultPage
'
,
component
:
()
=>
import
(
'
../views/riskProject/add/resultPage.vue
'
),
},
]
const
router
=
new
VueRouter
({
...
...
src/views/riskProject/add/addInherent.vue
View file @
fa2a3f85
This diff is collapsed.
Click to expand it.
src/views/riskProject/add/inherentRisks.vue
View file @
fa2a3f85
...
...
@@ -114,9 +114,8 @@ export default {
},
created
()
{
this
.
planId
=
this
.
$route
.
params
.
id
||
sessionStorage
.
getItem
(
"
planId
"
);
this
.
buildingId
=
this
.
$route
.
params
.
buildingId
;
this
.
buildingName
=
this
.
$route
.
params
.
buildingName
;
console
.
log
(
this
.
buildingId
,
this
.
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();
},
...
...
@@ -136,11 +135,17 @@ export default {
},
//新增固有风险
performTasks
()
{
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
planId
:
this
.
planId
,
buildingId
:
this
.
buildingId
,
buildingName
:
this
.
buildingName
}
});
},
...
...
src/views/riskProject/add/resultPage.vue
0 → 100644
View file @
fa2a3f85
<
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 @
fa2a3f85
...
...
@@ -156,7 +156,49 @@
/>
</van-form>
</van-tab>
<van-tab
title=
"风险清单"
>
</van-tab>
<van-tab
title=
"风险清单"
>
<!--
<van-row
v-for=
"item in riskList"
:key=
"item.id"
>
<van-col
span=
"24"
>
{{
item
.
name
}}
</van-col>
</van-row>
-->
<van-cell-group
inset
v-for=
"(item, index) in riskList"
:key=
"index"
>
<div
style=
"font-size: 0.45rem;padding: 5px 0;"
>
{{
item
.
title
}}
</div>
<van-row
gutter=
""
>
<van-col
span=
"17"
>
<van-row
gutter=
""
>
<van-col
span=
"9"
>
风险名称:
</van-col>
<van-col
span=
"15"
>
{{
item
.
name
}}
</van-col>
</van-row>
</van-col>
<van-col
span=
"7"
>
<van-row
:style=
"
{
color: '#03b615'
}"
>
{{
item
.
state
}}
</van-row>
</van-col>
<van-col
span=
"7"
>
<van-row
:style=
"
{
color: '#03b615'
}"
>
<van-button
icon=
"plus"
@
click=
"goColorDetail"
></van-button>
</van-row>
</van-col>
</van-row>
</van-cell-group>
</van-tab>
<van-tab
title=
"审核记录"
>
<div
class=
"journal-wrap"
>
<van-cell-group
inset
>
...
...
@@ -294,7 +336,8 @@ export default {
active
:
0
,
phase
:
1
,
form
:
{},
tabs
:
[]
tabs
:
[],
riskList
:[],
};
},
created
()
{
...
...
@@ -302,12 +345,16 @@ export default {
var
buildingId
=
this
.
$route
.
params
.
buildingId
||
sessionStorage
.
getItem
(
"
buildingId
"
);
this
.
postList
(
planId
,
buildingId
);
this
.
getRiskTaskList
(
planId
,
buildingId
)
},
methods
:
{
timestampToTimes
(
time
)
{
return
timestampToTime
(
new
Date
(
time
),
"
DT2
"
,
true
);
},
performTasks
()
{
sessionStorage
.
setItem
(
'
buildingId
'
,
this
.
messageList
.
riskBuildingListDtos
[
0
].
buildingId
)
sessionStorage
.
setItem
(
'
planId
'
,
this
.
messageList
.
id
)
sessionStorage
.
setItem
(
'
buildingName
'
,
this
.
messageList
.
riskBuildingListDtos
[
0
].
buildingName
)
this
.
$router
.
push
({
name
:
"
riskInherent
"
,
params
:
{
...
...
@@ -325,6 +372,13 @@ export default {
}
});
},
//风险清单列表
getRiskTaskList
(
planId
,
buildingId
){
getFun
(
`/risk/plan/inherent/list/
${
planId
}
/
${
buildingId
}
`
).
then
(
res
=>
{
console
.
log
(
res
.
data
,
'
lll
'
)
this
.
riskList
=
res
.
data
})
},
postList
(
id
,
buildingId
)
{
console
.
log
(
buildingId
,
"
123
"
);
this
.
$toast
.
loading
({
...
...
@@ -364,7 +418,7 @@ export default {
this
.
$router
.
push
({
name
:
"
risk-big-detail
"
,
params
:
{
id
:
data
.
businessId
||
data
.
id
id
:
data
.
businessId
||
data
.
id
,
}
});
this
.
showIndex
=
null
;
...
...
@@ -378,7 +432,19 @@ export default {
}
});
this
.
showIndex
=
null
;
},
//固定资产
goColorDetail
(){
// 楼层id: floorId
// 是否查看 : isView: true/false (true:查看,false:添加)
this
.
$router
.
push
({
name
:
"
riskView
"
,
params
:{
floorId
:
18
,
isView
:
true
}
})
},
}
};
</
script
>
...
...
src/views/riskProject/taskLedger/taskDetail.vue
View file @
fa2a3f85
...
...
@@ -12,7 +12,7 @@ export default {
name
:
'
taskDetail
'
,
data
()
{
return
{
text
:
"
任务单
"
,
text
:
"
固有风险列表
"
,
}
},
components
:
{
...
...
vue.config.js
View file @
fa2a3f85
...
...
@@ -9,9 +9,9 @@ module.exports = {
proxy
:
{
//配置跨域
'
/app-api
'
:
{
// target: 'http://192.168.4.232:8080/', //这里是后台的地址
//
target: 'http://192.168.15.124:8080/', //这里是杨帆的地址
target
:
'
http://192.168.15.124:8080/
'
,
//这里是杨帆的地址
// target: 'http://192.168.10.137:8080/', //这里是昊哥的地址
target
:
'
http://localhost:8080/
'
,
//这里是后台的地址
//
target: 'http://localhost:8080/', //这里是后台的地址
ws
:
true
,
changOrigin
:
true
,
//允许跨域
// logLevel: 'debug', // 显示代理调试信息
...
...
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