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
17408192
Commit
17408192
authored
May 06, 2022
by
13841799530
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of
http://git.censoft.com.cn/BCDH-HSE/bcdh-app
into develop
parents
bd22910d
03332fc5
Pipeline
#8249
passed with stage
in 5 minutes and 2 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
115 additions
and
60 deletions
+115
-60
src/main.js
src/main.js
+2
-2
src/views/danger/dangerPatrol/dangerPatrolTime/index.vue
src/views/danger/dangerPatrol/dangerPatrolTime/index.vue
+12
-4
src/views/danger/dangerPatrol/implement/index.vue
src/views/danger/dangerPatrol/implement/index.vue
+101
-54
No files found.
src/main.js
View file @
17408192
...
...
@@ -19,7 +19,7 @@ import { prefix } from '@/common/js/utils'
import
{
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
,
ImagePreview
,
progress
}
from
'
vant
'
Step
,
Steps
,
ImagePreview
,
progress
,
Popover
}
from
'
vant
'
import
'
lib-flexible/flexible
'
import
vueEsign
from
'
vue-esign
'
import
VideoPlayer
from
'
vue-video-player
'
...
...
@@ -32,7 +32,7 @@ Vue.use(VideoPlayer)
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
(
ImagePreview
).
use
(
progress
)
.
use
(
Step
).
use
(
Steps
).
use
(
ImagePreview
).
use
(
progress
)
.
use
(
Popover
)
Vue
.
config
.
productionTip
=
false
new
Vue
({
router
,
...
...
src/views/danger/dangerPatrol/dangerPatrolTime/index.vue
View file @
17408192
...
...
@@ -2,15 +2,15 @@
<div>
<LHeader
:text=
"text"
></LHeader>
<!-- 内容列表 -->
<div
class=
"title"
>
2022年4月26日
</div>
<p
class=
"title-text"
>
巡查发起人:
李斌
</p>
<div
class=
"title"
>
{{
nowTime
}}
</div>
<p
class=
"title-text"
>
巡查发起人:
{{
sponsor
}}
</p>
<p
class=
"title-text"
>
系统提示:请依据当日任务完成当日巡查工作。
</p>
<div
class=
"con-list"
>
<van-cell-group
inset
v-for=
"(item, index) in contentList"
:key=
"index"
@
click=
"onClick(item
.content
)"
@
click=
"onClick(item)"
>
<div
class=
"icon-wrap"
>
<span
class=
"icon-img"
>
...
...
@@ -31,6 +31,7 @@
<
script
>
import
LHeader
from
"
@/components/header.vue
"
;
import
{
postWork
}
from
"
@/service/workbench
"
;
import
{
timestampToTime
}
from
"
@/utils/format
"
;
export
default
{
name
:
"
danger-patrol
"
,
components
:
{
...
...
@@ -39,6 +40,8 @@ export default {
data
()
{
return
{
text
:
"
隐患巡查
"
,
nowTime
:
""
,
sponsor
:
""
,
// 巡查发起人
contentList
:
[
],
...
...
@@ -82,11 +85,13 @@ export default {
};
},
mounted
()
{
this
.
nowTime
=
timestampToTime
(
new
Date
(),
"
DT7
"
,
true
);
this
.
loading
()
},
methods
:
{
loading
(){
postWork
(
"
patrol/running/listCycle
"
).
then
((
res
)
=>
{
this
.
sponsor
=
res
.
data
[
0
].
assignId
this
.
contentLists
.
forEach
((
x
)
=>
{
res
.
data
.
forEach
((
y
)
=>
{
if
(
x
.
title
==
y
.
cycle
){
...
...
@@ -98,7 +103,10 @@ export default {
},
onClick
(
val
)
{
this
.
$router
.
push
({
name
:
"
implement
"
name
:
"
implement
"
,
query
:{
id
:
val
.
title
}
});
}
}
...
...
src/views/danger/dangerPatrol/implement/index.vue
View file @
17408192
...
...
@@ -6,7 +6,7 @@
<!-- tab标签 -->
<van-tabs
v-model=
"active"
@
change=
"
postList
"
@
change=
"
onChange
"
color=
"#2980f7"
animated
:sticky=
"true"
...
...
@@ -15,35 +15,44 @@
<van-tab
v-for=
"(item, key) in tabs"
:key=
"key"
:title=
"item.title"
>
<!-- 内容列表 -->
<div
class=
"con-list"
>
<!-- v-for="(item, index) in messageList" :key="index" -->
<van-cell-group
inset
>
<van-cell-group
inset
v-for=
"(item, index) in messageList"
:key=
"index"
>
<van-row
gutter
>
<van-col
span=
"18"
>
<
!--
<
van-col
span=
"18"
>
<span
class=
"con_title"
>
日查
</span>
<span>
制度、规程、方案
</span>
</van-col>
<van-col
span=
"
6"
class=
"con_type con_right"
>
危险隐患
</van-col>
</van-col>
-->
<van-col
span=
"
24"
class=
"con_type"
>
{{
item
.
hdLev
}}
</van-col>
</van-row>
<van-row
gutter
>
<van-col
span=
"24"
>
应建立地下有限空间作业安全生产责任制、安全生产规章制度和操作规程。
</van-col>
</van-row>
<van-row
gutter
class=
"cont-operation"
>
<van-col
span=
"10"
class=
"con_type"
>
法律依据/出处
</van-col>
<van-col
span=
"10"
class=
"con_type"
>
<van-popover
v-model=
"showPopoverFlag[index]"
theme=
"dark"
trigger=
"click"
placement=
"bottom-start"
>
<span
class=
"tip"
>
《北京市地下有限空间管理办法》
</span>
<template
#reference
>
法律依据/出处
</
template
>
</van-popover>
</van-col>
<van-col
span=
"14"
class=
"con_right"
>
<van-radio-group
v-model=
"
radio
"
v-model=
"
item.result
"
direction=
"horizontal"
@
change=
"operation"
@
change=
"operation
(item.result,index)
"
>
<van-radio
name=
"1"
shape=
"square
"
>
合格
</van-radio>
<van-radio
name=
"2"
shape=
"square"
>
不合格
</van-radio>
<van-radio
:name=
"1"
shape=
"square"
:disabled=
"item.result == '2'
"
>
合格
</van-radio>
<van-radio
:name=
"2"
shape=
"square"
>
不合格
</van-radio>
</van-radio-group>
</van-col>
</van-row>
</van-cell-group>
</div>
<!-- 暂无数据 -->
<
!--
<
div
<div
style=
"
width: 100%;
text-align: center;
...
...
@@ -52,19 +61,11 @@
top: 30%;
"
v-if=
"messageList.length == 0"
>
暂无数据
</div>
-->
>
暂无数据
</div>
</van-tab>
</van-tabs>
<div
class=
"operation-btn"
>
<!--
<van-button
block
type=
"info"
plain
native-type=
"button"
style=
"border-radius: 5px; background-color: #f0f1f5; margin-bottom: 10px;"
@
click=
"save"
>
保存
</van-button>
-->
<van-button
block
type=
"info"
...
...
@@ -78,7 +79,7 @@
<
script
>
import
LHeader
from
"
@/components/header.vue
"
;
import
{
getFun
,
postFun
}
from
"
@/service/table.js
"
;
import
{
postWork
}
from
"
@/service/workbench
"
;
export
default
{
name
:
"
implement
"
,
components
:
{
...
...
@@ -86,10 +87,10 @@ export default {
},
data
()
{
return
{
id
:
""
,
//巡查周期id
text
:
"
执行巡查
"
,
messageList
:
[],
active
:
0
,
radio
:
"
1
"
,
tabs
:
[
{
title
:
"
安全管理类
"
,
...
...
@@ -103,44 +104,84 @@ export default {
title
:
"
临时用电类
"
,
api
:
"
/rectification/finishList
"
}
]
],
showPopover
:
false
,
showPopoverFlag
:[],
};
},
created
()
{
// this.postList();
mounted
()
{
if
(
this
.
$route
.
query
.
id
)
{
this
.
id
=
this
.
$route
.
query
.
id
;
}
this
.
postList
();
},
methods
:
{
postList
(
val
)
{
onChange
(
)
{
console
.
log
(
this
.
active
);
// this.$toast.loading({
// message: "加载中...",
// forbidClick: true,
// loadingType: "spinner",
// duration: 0
// });
// let formdata = new FormData();
// postFun(this.tabs[this.active]["api"], formdata)
// .then(res => {
// console.log(res);
// this.$toast.clear();
// this.messageList = res.rows || res.data;
// })
// .catch(err => {
// console.log(err);
// this.$toast.clear();
// this.$toast.fail("加载失败,请稍后再试");
// });
},
operation
()
{
// 如果不合格跳转到隐患上报页面
if
(
this
.
radio
==
"
2
"
)
{
this
.
$router
.
push
({
name
:
"
add-danger
"
postList
(
val
)
{
this
.
$toast
.
loading
({
message
:
"
加载中...
"
,
forbidClick
:
true
,
loadingType
:
"
spinner
"
,
duration
:
0
});
let
obj
=
{
cycle
:
this
.
id
};
postWork
(
"
patrol/running/list
"
,
obj
)
.
then
(
res
=>
{
this
.
messageList
=
res
.
data
;
this
.
$toast
.
clear
();
})
.
catch
(
err
=>
{
this
.
$toast
.
clear
();
this
.
$toast
.
fail
(
"
加载失败,请稍后再试
"
);
});
},
operation
(
val
,
index
)
{
if
(
val
==
1
){
return
}
// 如果不合格跳转到隐患上报页面
this
.
$dialog
.
confirm
({
title
:
"
提示
"
,
message
:
"
确定跳转到隐患上报页面吗?
"
})
.
then
(()
=>
{
this
.
$router
.
push
({
name
:
"
add-danger
"
});
})
.
catch
(()
=>
{
this
.
messageList
[
index
].
result
=
1
});
},
save
()
{},
finish
()
{}
finish
()
{
this
.
$toast
.
loading
({
message
:
"
提交中...
"
,
forbidClick
:
true
,
loadingType
:
"
spinner
"
,
duration
:
0
});
let
obj2
=
{
cycle
:
this
.
id
};
postWork
(
"
patrol/running/save
"
,
obj2
)
.
then
(
res
=>
{
this
.
$toast
.
clear
();
this
.
$toast
.
success
({
message
:
"
提交成功
"
,
duration
:
2000
});
// history.go(-1);
})
.
catch
(()
=>
{
this
.
$toast
.
clear
();
this
.
$toast
.
fail
(
"
提交失败,请稍后再试
"
);
});
}
}
};
</
script
>
...
...
@@ -151,7 +192,7 @@ export default {
color: #2c3e50;
}
.con-list {
padding: 0;
padding: 0
0 60px
;
background-color: #f0f1f5;
.van-cell-group--inset {
margin: 0;
...
...
@@ -204,10 +245,16 @@ export default {
}
.operation-btn {
width: 95%;
margin:
20px
10px 10px;
margin: 10px 10px;
position: fixed;
bottom: 50px;
right: 0;
left: 0;
}
.tip {
width: auto;
height: 28px;
padding: 0 8px;
line-height: 28px;
}
</
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