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
345823f0
Commit
345823f0
authored
May 09, 2022
by
13841799530
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解润东
20220509 类型接口调试
parent
2f8f1062
Pipeline
#8273
passed with stage
in 5 minutes and 4 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
64 additions
and
28 deletions
+64
-28
src/views/danger/dangerPatrol/dangerPatrolTime/index.vue
src/views/danger/dangerPatrol/dangerPatrolTime/index.vue
+1
-1
src/views/danger/dangerPatrol/implement/index.vue
src/views/danger/dangerPatrol/implement/index.vue
+42
-17
src/views/danger/dangerPatrol/recordPatrol/detail.vue
src/views/danger/dangerPatrol/recordPatrol/detail.vue
+10
-8
src/views/danger/dangerPatrol/recordPatrol/index.vue
src/views/danger/dangerPatrol/recordPatrol/index.vue
+11
-2
No files found.
src/views/danger/dangerPatrol/dangerPatrolTime/index.vue
View file @
345823f0
...
@@ -91,7 +91,7 @@ export default {
...
@@ -91,7 +91,7 @@ export default {
methods
:
{
methods
:
{
loading
(){
loading
(){
postWork
(
"
patrol/running/listCycle
"
).
then
((
res
)
=>
{
postWork
(
"
patrol/running/listCycle
"
).
then
((
res
)
=>
{
this
.
sponsor
=
res
.
data
[
0
].
assign
Id
this
.
sponsor
=
res
.
data
[
0
].
assign
Name
this
.
contentLists
.
forEach
((
x
)
=>
{
this
.
contentLists
.
forEach
((
x
)
=>
{
res
.
data
.
forEach
((
y
)
=>
{
res
.
data
.
forEach
((
y
)
=>
{
if
(
x
.
title
==
y
.
cycle
){
if
(
x
.
title
==
y
.
cycle
){
...
...
src/views/danger/dangerPatrol/implement/index.vue
View file @
345823f0
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<!-- tab标签 -->
<!-- tab标签 -->
<van-tabs
<van-tabs
v-model=
"active"
v-model=
"active"
@
change=
"onChange
"
@
click=
"onClick
"
color=
"#2980f7"
color=
"#2980f7"
animated
animated
:sticky=
"true"
:sticky=
"true"
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
<span
class=
"con_title"
>
日查
</span>
<span
class=
"con_title"
>
日查
</span>
<span>
制度、规程、方案
</span>
<span>
制度、规程、方案
</span>
</van-col>
-->
</van-col>
-->
<van-col
span=
"24"
class=
"con_type"
>
{{
item
.
hdLev
}}
</van-col>
<van-col
span=
"24"
class=
"con_type"
>
{{
item
.
postName
}}
</van-col>
</van-row>
</van-row>
<van-row
gutter
>
<van-row
gutter
>
<van-col
span=
"24"
>
应建立地下有限空间作业安全生产责任制、安全生产规章制度和操作规程。
</van-col>
<van-col
span=
"24"
>
应建立地下有限空间作业安全生产责任制、安全生产规章制度和操作规程。
</van-col>
...
@@ -80,6 +80,7 @@
...
@@ -80,6 +80,7 @@
<
script
>
<
script
>
import
LHeader
from
"
@/components/header.vue
"
;
import
LHeader
from
"
@/components/header.vue
"
;
import
{
postWork
}
from
"
@/service/workbench
"
;
import
{
postWork
}
from
"
@/service/workbench
"
;
import
{
getFun
,
postFun
}
from
"
@/service/table.js
"
;
export
default
{
export
default
{
name
:
"
implement
"
,
name
:
"
implement
"
,
components
:
{
components
:
{
...
@@ -91,19 +92,20 @@ export default {
...
@@ -91,19 +92,20 @@ export default {
text
:
"
执行巡查
"
,
text
:
"
执行巡查
"
,
messageList
:
[],
messageList
:
[],
active
:
0
,
active
:
0
,
postType
:
''
,
tabs
:
[
tabs
:
[
{
//
{
title
:
"
安全管理类
"
,
//
title: "安全管理类",
api
:
"
/rectification/list1
"
//
api: "/rectification/list1"
},
//
},
{
//
{
title
:
"
文明施工类
"
,
//
title: "文明施工类",
api
:
"
/rectification/list2
"
//
api: "/rectification/list2"
},
//
},
{
//
{
title
:
"
临时用电类
"
,
//
title: "临时用电类",
api
:
"
/rectification/finishList
"
//
api: "/rectification/finishList"
}
//
}
],
],
showPopover
:
false
,
showPopover
:
false
,
showPopoverFlag
:[],
showPopoverFlag
:[],
...
@@ -113,13 +115,35 @@ export default {
...
@@ -113,13 +115,35 @@ export default {
if
(
this
.
$route
.
query
.
id
)
{
if
(
this
.
$route
.
query
.
id
)
{
this
.
id
=
this
.
$route
.
query
.
id
;
this
.
id
=
this
.
$route
.
query
.
id
;
}
}
this
.
postList
();
this
.
loadingTabs
()
},
},
methods
:
{
methods
:
{
onClick
(
name
,
title
){
this
.
postType
=
title
this
.
postList
()
},
loadingTabs
(){
postWork
(
"
patrol/running/dict
"
).
then
(
res
=>
{
this
.
postType
=
res
.
data
[
0
].
dictLabel
res
.
data
.
forEach
((
i
)
=>
{
this
.
tabs
.
push
({
title
:
i
.
dictLabel
,
api
:
i
.
dictValue
})
})
this
.
postList
();
this
.
$toast
.
clear
();
})
.
catch
(
err
=>
{
this
.
$toast
.
clear
();
this
.
$toast
.
fail
(
"
加载失败,请稍后再试
"
);
});
},
onChange
()
{
onChange
()
{
console
.
log
(
this
.
active
);
console
.
log
(
this
.
active
);
},
},
postList
(
val
)
{
postList
(
val
)
{
this
.
messageList
=
[]
this
.
$toast
.
loading
({
this
.
$toast
.
loading
({
message
:
"
加载中...
"
,
message
:
"
加载中...
"
,
forbidClick
:
true
,
forbidClick
:
true
,
...
@@ -127,9 +151,10 @@ export default {
...
@@ -127,9 +151,10 @@ export default {
duration
:
0
duration
:
0
});
});
let
obj
=
{
let
obj
=
{
cycle
:
this
.
id
cycle
:
this
.
id
,
postType
:
this
.
postType
};
};
post
Work
(
"
patrol/running/list
"
,
obj
)
post
Fun
(
"
patrol/running/list?cycle=
"
+
this
.
id
+
'
&postType=
'
+
this
.
postType
)
.
then
(
res
=>
{
.
then
(
res
=>
{
this
.
messageList
=
res
.
data
;
this
.
messageList
=
res
.
data
;
this
.
$toast
.
clear
();
this
.
$toast
.
clear
();
...
...
src/views/danger/dangerPatrol/recordPatrol/detail.vue
View file @
345823f0
...
@@ -34,8 +34,8 @@
...
@@ -34,8 +34,8 @@
<van-cell-group
inset
v-for=
"(item, index) in detailObj.list"
:key=
"index"
>
<van-cell-group
inset
v-for=
"(item, index) in detailObj.list"
:key=
"index"
>
<van-row
gutte
>
<van-row
gutte
>
<van-col
span=
"12"
>
{{
item
.
hdLev
}}
</van-col>
<van-col
span=
"12"
>
{{
item
.
hdLev
|
hdLev
}}
</van-col>
<van-col
span=
"12"
class=
"cont-end affirm-status"
>
{{
item
.
status
|
status
}}
</van-col>
<van-col
span=
"12"
class=
"cont-end affirm-status"
>
{{
item
.
status
}}
</van-col>
</van-row>
</van-row>
<van-row
gutter
>
<van-row
gutter
>
<van-col
span=
"24"
>
{{
item
.
regulatoryBasis
}}
</van-col>
<van-col
span=
"24"
>
{{
item
.
regulatoryBasis
}}
</van-col>
...
@@ -113,13 +113,15 @@ export default {
...
@@ -113,13 +113,15 @@ export default {
})
})
return
value
return
value
},
},
status
(
val
){
hdLev
(
val
){
if
(
val
==
'
0
'
){
if
(
val
==
'
S
'
){
return
'
已认定
'
return
'
重大隐患
'
}
else
if
(
val
==
'
1
'
){
}
else
if
(
val
==
'
A
'
){
return
'
已撤回
'
return
'
严重隐患
'
}
else
if
(
val
==
'
B
'
){
return
'
较大隐患
'
}
else
{
}
else
{
return
'
未知
'
return
'
危险隐患
'
}
}
}
}
},
},
...
...
src/views/danger/dangerPatrol/recordPatrol/index.vue
View file @
345823f0
...
@@ -20,9 +20,9 @@
...
@@ -20,9 +20,9 @@
<span
class=
"record-time"
>
{{util.timestampToTime(item.startTime,'DT2',true)}}
</span>
<span
class=
"record-time"
>
{{util.timestampToTime(item.startTime,'DT2',true)}}
</span>
</van-col>
</van-col>
<van-col
span=
"10"
>
<van-col
span=
"10"
>
<span
class=
"record-time"
>
{{util.timestampToTime(item.
start
Time,'DT2',true)}}
</span>
<span
class=
"record-time"
>
{{util.timestampToTime(item.
end
Time,'DT2',true)}}
</span>
</van-col>
</van-col>
<van-col
span=
"4"
class=
"cont-end record-status"
>
已执行
</van-col>
<van-col
span=
"4"
class=
"cont-end record-status"
>
{{item.status|status}}
</van-col>
</van-row>
</van-row>
<!-- <van-row gutte>
<!-- <van-row gutte>
<van-col span="12">开始时间: 09:30</van-col>
<van-col span="12">开始时间: 09:30</van-col>
...
@@ -141,6 +141,15 @@ export default {
...
@@ -141,6 +141,15 @@ export default {
}
}
})
})
return
value
return
value
},
status
(
val
){
if
(
val
==
'
0
'
){
return
'
已执行
'
}
else
if
(
val
==
'
1
'
){
return
'
已撤回
'
}
else
{
return
'
未知
'
}
}
}
},
},
mounted
(){
mounted
(){
...
...
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