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
5fd444aa
Commit
5fd444aa
authored
May 10, 2022
by
13841799530
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增隐患联动回显功能
解润东 20220510
parent
7e30b74e
Pipeline
#8295
passed with stage
in 5 minutes and 2 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
81 additions
and
8 deletions
+81
-8
src/views/danger/addDanger/addDanger.vue
src/views/danger/addDanger/addDanger.vue
+62
-1
src/views/danger/dangerPatrol/dangerPatrolTime/index.vue
src/views/danger/dangerPatrol/dangerPatrolTime/index.vue
+2
-1
src/views/danger/dangerPatrol/implement/index.vue
src/views/danger/dangerPatrol/implement/index.vue
+17
-6
No files found.
src/views/danger/addDanger/addDanger.vue
View file @
5fd444aa
...
...
@@ -379,16 +379,33 @@ export default {
this
.
$route
.
params
.
taskId
||
localStorage
.
getItem
(
"
dangerAddTaskId
"
);
console
.
log
(
this
.
taskId
);
if
(
this
.
taskId
)
{
this
.
isShowreturnCause
=
true
;
this
.
text
=
"
隐患上报退回
"
;
this
.
postReturnEcho
();
}
this
.
proId
=
this
.
$route
.
query
.
proId
,
this
.
hdRange
=
this
.
$route
.
query
.
hdRange
,
this
.
hdType
=
this
.
$route
.
query
.
hdType
,
this
.
hdName
=
this
.
$route
.
query
.
hdName
,
this
.
hdId
=
this
.
$route
.
query
.
hdId
,
this
.
hdLev
=
this
.
$route
.
query
.
hdLev
this
.
getList
();
//隐患巡查跳转回显
if
(
this
.
hdType
){
this
.
onConRange
(
this
.
hdRange
)
}
if
(
this
.
hdName
){
this
.
onConType
(
this
.
hdType
)
this
.
onConDangerName
(
this
.
hdName
)
}
},
mounted
()
{
if
(
this
.
$route
.
query
.
patrolId
){
this
.
patrolId
=
this
.
$route
.
query
.
patrolId
}
this
.
$bus
.
$on
(
"
sourceAyy
"
,
(
res
)
=>
{
setTimeout
(()
=>
{
this
.
source1
=
res
.
join
(
"
,
"
);
...
...
@@ -445,7 +462,12 @@ export default {
return
{
// 视频预览地址
videoUrl
:
""
,
proId
:
""
,
hdRange
:
""
,
hdType
:
""
,
hdName
:
""
,
hdId
:
""
,
hdLev
:
""
,
id
:
0
,
text
:
"
新增隐患
"
,
taskId
:
""
,
...
...
@@ -618,7 +640,22 @@ export default {
.
then
((
res
)
=>
{
this
.
$toast
.
clear
();
this
.
columnsProjectName
=
res
.
data
.
projectInformations
;
if
(
this
.
proId
){
this
.
columnsProjectName
.
forEach
((
i
)
=>
{
if
(
this
.
proId
==
i
.
id
){
this
.
projectName
=
i
.
projectName
}
})
}
this
.
columnsRange
=
res
.
data
.
hdInventories
;
if
(
this
.
hdRange
){
this
.
columnsRange
.
forEach
((
i
)
=>
{
if
(
this
.
hdRange
==
i
.
hdRange
){
this
.
range
=
i
.
hdRange
}
})
}
this
.
columnsSource
=
res
.
data
.
factors
;
})
.
catch
(()
=>
{
...
...
@@ -696,6 +733,7 @@ export default {
// 所属项目
onConProjectName
(
value
)
{
console
.
log
(
value
)
if
(
!
value
)
{
this
.
showProjectName
=
false
;
return
;
...
...
@@ -717,6 +755,9 @@ export default {
return
;
}
this
.
range
=
value
.
hdRange
;
if
(
!
value
.
hdRange
){
this
.
range
=
value
}
this
.
showRange
=
false
;
this
.
type
=
""
;
this
.
dangerName
=
""
;
...
...
@@ -725,6 +766,13 @@ export default {
// 去请求隐患类型的数据
postHdTyp
(
`/hdreport/showHdType/
${
this
.
range
}
`
).
then
((
res
)
=>
{
this
.
columnsType
=
res
.
data
;
if
(
this
.
hdType
){
this
.
columnsType
.
forEach
((
i
)
=>
{
if
(
this
.
hdType
==
i
.
hdType
){
this
.
type
=
i
.
hdType
}
})
}
});
},
// 隐患类型
...
...
@@ -734,6 +782,9 @@ export default {
return
;
}
this
.
type
=
value
.
hdType
;
if
(
!
value
.
hdType
){
this
.
type
=
value
}
this
.
showType
=
false
;
this
.
dangerName
=
""
;
this
.
dangerNum
=
""
;
...
...
@@ -742,6 +793,13 @@ export default {
postHdName
(
`/hdreport/showHdName/
${
this
.
range
}
/
${
this
.
type
}
`
).
then
(
(
res
)
=>
{
this
.
columnsDangerName
=
res
.
data
;
if
(
this
.
hdName
){
this
.
columnsDangerName
.
forEach
((
i
)
=>
{
if
(
this
.
hdName
==
i
.
hdName
){
this
.
dangerName
=
i
.
hdName
}
})
}
}
);
},
...
...
@@ -752,6 +810,9 @@ export default {
return
;
}
this
.
dangerName
=
value
.
hdName
;
if
(
!
value
.
hdName
){
this
.
dangerName
=
value
}
this
.
showDangerName
=
false
;
// 请求隐患单编号和隐患级别
postHdInventories
(
...
...
src/views/danger/dangerPatrol/dangerPatrolTime/index.vue
View file @
5fd444aa
...
...
@@ -102,10 +102,11 @@ export default {
})
},
onClick
(
val
)
{
console
.
log
(
val
)
this
.
$router
.
push
({
name
:
"
implement
"
,
query
:{
id
:
val
.
title
id
:
val
.
title
,
}
});
}
...
...
src/views/danger/dangerPatrol/implement/index.vue
View file @
5fd444aa
...
...
@@ -93,6 +93,7 @@ export default {
messageList
:
[],
active
:
0
,
hdType
:
''
,
cycle
:
''
,
tabs
:
[
// {
// title: "安全管理类",
...
...
@@ -115,6 +116,9 @@ export default {
if
(
this
.
$route
.
query
.
id
)
{
this
.
id
=
this
.
$route
.
query
.
id
;
}
if
(
this
.
$route
.
query
.
cycle
)
{
this
.
cycle
=
this
.
$route
.
query
.
cycle
;
}
this
.
loadingTabs
()
},
methods
:
{
...
...
@@ -123,7 +127,7 @@ export default {
this
.
postList
()
},
loadingTabs
(){
postWork
(
"
patrol/running/hdType
"
).
then
(
res
=>
{
postWork
(
"
patrol/running/hdType
"
,{
cycle
:
this
.
id
}
).
then
(
res
=>
{
this
.
hdType
=
res
.
data
[
0
].
hdType
res
.
data
.
forEach
((
i
)
=>
{
this
.
tabs
.
push
({
...
...
@@ -168,6 +172,7 @@ export default {
if
(
val
==
1
){
return
}
console
.
log
(
item
)
// 如果不合格跳转到隐患上报页面
this
.
$dialog
.
confirm
({
...
...
@@ -178,7 +183,13 @@ export default {
this
.
$router
.
push
({
name
:
"
add-danger
"
,
query
:{
patrolId
:
item
.
patrolId
patrolId
:
item
.
patrolId
,
proId
:
item
.
proId
,
hdRange
:
item
.
hdRange
,
hdType
:
item
.
hdType
,
hdName
:
item
.
hdName
,
hdId
:
item
.
hdId
,
hdLev
:
item
.
hdLev
,
}
});
})
...
...
@@ -193,10 +204,10 @@ export default {
loadingType
:
"
spinner
"
,
duration
:
0
});
let
obj2
=
{
cycle
:
this
.
id
};
postWork
(
"
patrol/running/save
"
,
obj2
)
//
let obj2 = {
//
cycle: this.id
//
};
postWork
(
"
patrol/running/save
?cycle=
"
+
this
.
id
)
.
then
(
res
=>
{
this
.
$toast
.
clear
();
this
.
$toast
.
success
({
...
...
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