Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gassafety
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
耿迪迪
gassafety
Commits
9c2f6836
Commit
9c2f6836
authored
Aug 25, 2021
by
yaqizhang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://111.61.77.35:9999/gengdidi/gassafety
into master
parents
3b702688
03e2844b
Show whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
234 additions
and
82 deletions
+234
-82
TDeviceReportDataController.java
...ontroller/dataMonitoring/TDeviceReportDataController.java
+2
-2
THiddenTroubleController.java
...b/controller/riskManagement/THiddenTroubleController.java
+2
-2
THiddenTroubleMapper.java
...n/java/com/zehong/system/mapper/THiddenTroubleMapper.java
+1
-1
ITHiddenTroubleService.java
...ava/com/zehong/system/service/ITHiddenTroubleService.java
+1
-1
THiddenTroubleServiceImpl.java
...zehong/system/service/impl/THiddenTroubleServiceImpl.java
+2
-2
THiddenTroubleMapper.xml
...src/main/resources/mapper/system/THiddenTroubleMapper.xml
+4
-2
troubleInfoWindowWarn.vue
...web/src/components/PopWindowGis/troubleInfoWindowWarn.vue
+19
-19
gaodeMapView.js
gassafety-web/src/utils/gaodeMapView.js
+16
-7
index.vue
gassafety-web/src/views/dataMonitoring/deviceAlarm/index.vue
+2
-1
index.vue
...afety-web/src/views/dataMonitoring/realtimeData/index.vue
+1
-1
index.vue
gassafety-web/src/views/device/deviceInfo/index.vue
+7
-1
index.vue
gassafety-web/src/views/device/map/index.vue
+1
-1
index.vue
gassafety-web/src/views/device/pipe/index.vue
+7
-1
index.vue
...y-web/src/views/deviceInspection/inspectionPlan/index.vue
+10
-1
CreateWork.vue
...eb/src/views/enterprise/mapView/components/CreateWork.vue
+2
-2
CreateWorkTrouble.vue
...views/enterprise/mapView/components/CreateWorkTrouble.vue
+27
-23
index.vue
gassafety-web/src/views/enterprise/mapView/index.vue
+105
-8
index.vue
...fety-web/src/views/riskManagement/hiddenTrouble/index.vue
+6
-2
index.vue
gassafety-web/src/views/workOrder/basicsInfo/index.vue
+9
-2
index.vue
gassafety-web/src/views/workOrder/feedback/index.vue
+10
-3
No files found.
gassafety-admin/src/main/java/com/zehong/web/controller/dataMonitoring/TDeviceReportDataController.java
View file @
9c2f6836
...
...
@@ -37,7 +37,7 @@ public class TDeviceReportDataController extends BaseController
private
ITDeviceReportDataService
tDeviceReportDataService
;
/**
* 查询设备监控列表
* 查询设备
历史
监控列表
*/
@PreAuthorize
(
"@ss.hasPermi('dataMonitoring:reportData:list')"
)
@GetMapping
(
"/list"
)
...
...
@@ -49,7 +49,7 @@ public class TDeviceReportDataController extends BaseController
}
/**
* 查询设备监控列表
* 查询设备
实时
监控列表
*/
@PreAuthorize
(
"@ss.hasPermi('dataMonitoring:reportData:realtimeList')"
)
@GetMapping
(
"/realtimeList"
)
...
...
gassafety-admin/src/main/java/com/zehong/web/controller/riskManagement/THiddenTroubleController.java
View file @
9c2f6836
...
...
@@ -53,9 +53,9 @@ public class THiddenTroubleController extends BaseController
* @return
*/
@GetMapping
(
"/getMapHiddenTroublelist"
)
public
AjaxResult
getMapHiddenTroublelist
()
public
AjaxResult
getMapHiddenTroublelist
(
String
troubleName
)
{
List
<
HiddenTroubleVo
>
list
=
tHiddenTroubleService
.
getMapTHiddenTroubleList
();
List
<
HiddenTroubleVo
>
list
=
tHiddenTroubleService
.
getMapTHiddenTroubleList
(
troubleName
);
return
AjaxResult
.
success
(
list
);
}
...
...
gassafety-system/src/main/java/com/zehong/system/mapper/THiddenTroubleMapper.java
View file @
9c2f6836
...
...
@@ -33,7 +33,7 @@ public interface THiddenTroubleMapper
* @param
* @return 隐患信息集合
*/
public
List
<
THiddenTrouble
>
getMapTHiddenTroubleList
();
public
List
<
THiddenTrouble
>
getMapTHiddenTroubleList
(
String
troubleName
);
/**
* 新增隐患信息
...
...
gassafety-system/src/main/java/com/zehong/system/service/ITHiddenTroubleService.java
View file @
9c2f6836
...
...
@@ -34,7 +34,7 @@ public interface ITHiddenTroubleService
* @param
* @return 隐患信息集合
*/
public
List
<
HiddenTroubleVo
>
getMapTHiddenTroubleList
();
public
List
<
HiddenTroubleVo
>
getMapTHiddenTroubleList
(
String
troubleName
);
/**
* 新增隐患信息
...
...
gassafety-system/src/main/java/com/zehong/system/service/impl/THiddenTroubleServiceImpl.java
View file @
9c2f6836
...
...
@@ -117,10 +117,10 @@ public class THiddenTroubleServiceImpl implements ITHiddenTroubleService
* @return 隐患信息集合
*/
@Override
public
List
<
HiddenTroubleVo
>
getMapTHiddenTroubleList
()
public
List
<
HiddenTroubleVo
>
getMapTHiddenTroubleList
(
String
troubleName
)
{
List
<
HiddenTroubleVo
>
list
=
new
ArrayList
<>();
List
<
THiddenTrouble
>
troubleList
=
tHiddenTroubleMapper
.
getMapTHiddenTroubleList
();
List
<
THiddenTrouble
>
troubleList
=
tHiddenTroubleMapper
.
getMapTHiddenTroubleList
(
troubleName
);
if
(
troubleList
.
size
()
!=
0
)
{
for
(
THiddenTrouble
temp
:
troubleList
)
{
...
...
gassafety-system/src/main/resources/mapper/system/THiddenTroubleMapper.xml
View file @
9c2f6836
...
...
@@ -49,9 +49,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
order by create_time desc
</select>
<select
id=
"getMapTHiddenTroubleList"
resultMap=
"THiddenTroubleResult"
>
<select
id=
"getMapTHiddenTroubleList"
parameterType=
"String"
resultMap=
"THiddenTroubleResult"
>
<include
refid=
"selectTHiddenTroubleVo"
/>
where is_del = '0' and (deal_status is null or deal_status = '3')
<where>
is_del = '0' and (deal_status is null or deal_status = '3')
<if
test=
"troubleName != null"
>
and trouble_name like concat('%', #{troubleName}, '%')
</if>
</where>
order by create_time desc
</select>
...
...
gassafety-web/src/components/PopWindowGis/troubleInfoWindowWarn.vue
View file @
9c2f6836
...
...
@@ -23,7 +23,7 @@
</div>
<div
class=
"eq-text"
>
处理状态:
<span>
{{
data
.
dealStatus
?
dealStatus
:
"暂未处理"
data
.
dealStatus
?
d
ata
.
d
ealStatus
:
"暂未处理"
}}
</span>
</div>
<div
class=
"eq-text"
>
...
...
@@ -69,10 +69,10 @@
<div
class=
"warn-wrapper"
v-if=
"true"
>
<div
class=
"warn-content"
>
<div>
关联设备:
<span>
(
{{
data
.
deviceName
?
data
.
deviceName
:
"-"
}}
)
</span>
关联设备:
<span>
{{
data
.
deviceName
?
data
.
deviceName
:
"-"
}}
</span>
</div>
<div>
设备类型:
<span>
{{
data
.
deviceType
?
data
.
deviceType
:
"-"
}}
</span>
设备类型:
<span>
{{
data
.
deviceType
?
this
.
deviceType
[
data
.
deviceType
]
:
"-"
}}
</span>
</div>
<div
v-if=
"!orderId"
>
工单编号:
<span>
{{
data
.
orderId
}}
</span>
...
...
@@ -80,11 +80,10 @@
</div>
<div
class=
"btn"
>
<span
@
mousedown
.
stop=
"deviceMore"
>
<el-button
class=
"elbtn"
type=
"primary"
>
设备
详情
</el-button>
<el-button
class=
"elbtn"
type=
"primary"
>
隐患
详情
</el-button>
</span>
<span
v-if=
"orderId"
@
mousedown
.
stop=
"createWork"
>
<el-button
v-if=
"title == '压力表' || title == '流量计'"
class=
"elbtn"
type=
"primary"
>
生成工单
</el-button
...
...
@@ -111,6 +110,7 @@ export default {
data
()
{
return
{
deviceType
:
{
0
:
"管道"
,
1
:
"调压箱"
,
2
:
"阀门井"
,
3
:
"流量计"
,
...
...
@@ -121,7 +121,7 @@ export default {
computed
:
{
orderId
()
{
// 如果已经生成过工单,就不能再次生成了
console
.
log
(
"orderId"
,
this
.
data
.
orderId
)
// return this.data.orderId ? false : true;
return
this
.
data
.
orderId
?
false
:
true
;
},
...
...
@@ -131,15 +131,15 @@ export default {
createWork
()
{
// 控制外层弹框
// console.log(this.data.view.$refs.CreateWork);
this
.
data
.
view
.
$refs
.
CreateWork
.
alarmId
=
this
.
data
.
alarmId
;
this
.
data
.
view
.
$refs
.
CreateWork
.
open
=
true
;
this
.
data
.
view
.
$refs
.
CreateWork
.
gaoMap
=
this
.
data
.
view
.
gaoMap
;
this
.
data
.
class
.
view
.
$refs
.
CreateWorkTrouble
.
form
.
troubleId
=
this
.
data
.
troubleId
;
this
.
data
.
class
.
view
.
$refs
.
CreateWorkTrouble
.
form
.
troubleName
=
this
.
data
.
troubleName
;
this
.
data
.
class
.
view
.
$refs
.
CreateWorkTrouble
.
form
.
troubleType
=
this
.
data
.
troubleType
;
this
.
data
.
class
.
view
.
$refs
.
CreateWorkTrouble
.
form
.
troubleLevel
=
this
.
data
.
troubleLevel
;
this
.
data
.
class
.
view
.
$refs
.
CreateWorkTrouble
.
open
=
true
;
this
.
data
.
class
.
view
.
$refs
.
CreateWorkTrouble
.
gaoMap
=
this
.
data
.
class
.
view
.
gaoMap
;
// 改变外层回调
// this.data.view.CreateWorkCallBack = this.CreateWorkCallBack;
this
.
data
.
view
.
alarmObjChange
({
alarmId
:
this
.
data
.
alarmId
,
type
:
"device"
,
});
this
.
data
.
class
.
view
.
troubleObjChange
({
troubleId
:
this
.
data
.
troubleId
});
},
// CreateWorkCallBack(e) {
// // console.log("生成工单后传过来的参数", e);
...
...
@@ -154,17 +154,17 @@ export default {
// marker.setExtData(options);
// },
deviceMore
()
{
this
.
data
.
view
.
$router
.
push
({
path
:
"/
dataMonitoring/alarmd
etail"
,
this
.
data
.
class
.
view
.
$router
.
push
({
path
:
"/
riskManagement/hiddenTroubleD
etail"
,
query
:
{
alarmId
:
this
.
data
.
alarm
Id
,
dcviceType
:
this
.
deviceType
[
this
.
data
.
deviceType
],
troubleId
:
this
.
data
.
trouble
Id
,
//
dcviceType: this.deviceType[this.data.deviceType],
},
});
},
// 查看工单
checkWork
()
{
this
.
data
.
view
.
$router
.
push
({
this
.
data
.
class
.
view
.
$router
.
push
({
path
:
"/workOrder/detail"
,
query
:
{
orderId
:
this
.
data
.
orderId
,
...
...
@@ -189,7 +189,7 @@ export default {
.top
{
width
:
100%
;
height
:
51px
;
background-color
:
#
ff5a67
;
background-color
:
#
e6a23c
;
.text
{
font-weight
:
600
;
font-size
:
16px
;
...
...
gassafety-web/src/utils/gaodeMapView.js
View file @
9c2f6836
...
...
@@ -274,13 +274,13 @@ class gaodeMap {
this
.
workerManMarkArr
.
push
(
marker
);
}
}
// 隐患
if
(
DEVICE_TYPE
.
TROUBLE
==
markerType
)
{
marker
.
markerType
=
markerType
;
marker
.
data
=
data
;
marker
.
infoWindow
=
infoWindow
;
marker
.
on
(
"mouseover"
,
this
.
troubleOpen
);
marker
.
setExtData
(
data
);
this
.
troubles
.
push
(
marker
);
}
...
...
@@ -388,7 +388,14 @@ class gaodeMap {
this
.
workerManInfoWindow
=
e
.
target
.
infoWindow
;
};
// 隐患
troubleOpen
=
e
=>
{};
troubleOpen
=
e
=>
{
this
.
markerType
=
e
.
target
.
markerType
;
e
.
target
.
content
=
this
.
getMarketContent
(
e
.
target
.
data
);
e
.
target
.
infoWindow
.
setContent
(
e
.
target
.
content
);
e
.
target
.
infoWindow
.
open
(
map
,
e
.
target
.
getPosition
());
this
.
boxCollision
(
e
.
target
.
infoWindow
.
dom
);
this
.
workerManInfoWindow
=
e
.
target
.
infoWindow
;
};
// 鼠标移入设备时候实行的函数
infoOpen
=
e
=>
{
...
...
@@ -631,7 +638,6 @@ class gaodeMap {
opacity
:
0.1
,
image
:
require
(
"../assets/images/trouble.png"
)
});
marker
.
workerPoint
=
true
;
marker
.
setIcon
(
icon
);
break
;
}
...
...
@@ -705,7 +711,7 @@ class gaodeMap {
});
marker
.
infoWindow
=
new
AMap
.
InfoWindow
({
isCustom
:
true
,
autoMove
:
fals
e
,
autoMove
:
tru
e
,
content
:
dom
.
$el
,
//信息船体偏移量
// offset: new AMap.Pixel(20, 20),
...
...
@@ -1079,8 +1085,11 @@ class gaodeMap {
}
markerShow
(
type
,
bool
)
{
this
.
markers
.
forEach
(
item
=>
{
const
{
deviceType
}
=
item
.
getExtData
();
if
(
deviceType
==
type
)
{
const
{
deviceType
,
troubleId
}
=
item
.
getExtData
();
if
(
type
==
8
&&
troubleId
)
{
bool
?
item
.
show
()
:
item
.
hide
();
}
else
if
(
deviceType
==
type
)
{
// 如果是值班人员,还要隐藏身上的线条以及marker
if
(
type
==
9
)
{
if
(
bool
)
{
...
...
gassafety-web/src/views/dataMonitoring/deviceAlarm/index.vue
View file @
9c2f6836
...
...
@@ -124,7 +124,8 @@
size=
"normal"
type=
"text"
icon=
"el-icon-edit"
@
click=
"showDetail(scope.row)"
>
@
click=
"showDetail(scope.row)"
v-hasPermi=
"['dataMonitoring:deviceAlarm:query']"
>
详情
</el-button>
</
template
>
...
...
gassafety-web/src/views/dataMonitoring/realtimeData/index.vue
View file @
9c2f6836
...
...
@@ -49,7 +49,7 @@
type=
"text"
icon=
"el-icon-edit"
@
click=
"showDetail(scope.row)"
v-hasPermi=
"['
system:data:export
']"
v-hasPermi=
"['
dataMonitoring:reportData:query
']"
>
详情
</el-button>
</
template
>
</el-table-column>
...
...
gassafety-web/src/views/device/deviceInfo/index.vue
View file @
9c2f6836
...
...
@@ -97,7 +97,12 @@
<el-table-column
label=
"设备型号"
align=
"center"
prop=
"deviceModel"
/>
<el-table-column
label=
"所在地址"
align=
"center"
prop=
"deviceAddr"
/>
<el-table-column
label=
"安装日期"
align=
"center"
prop=
"installationTime"
width=
"180"
/>
<el-table-column
label=
"最后巡检日期"
align=
"center"
prop=
"inspectionTime"
width=
"180"
/>
<el-table-column
label=
"最后巡检日期"
align=
"center"
prop=
"inspectionTime"
width=
"180"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.inspectionTime != null"
>
{{
scope
.
row
.
inspectionTime
}}
</span>
<span
v-if=
"scope.row.inspectionTime == null"
>
-
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<
template
slot-scope=
"scope"
>
<el-button
...
...
@@ -112,6 +117,7 @@
type=
"text"
icon=
"el-icon-edit"
@
click=
"showDetail(scope.row)"
v-hasPermi=
"['device:deviceInfo:query']"
>
详情
</el-button>
<el-button
size=
"mini"
...
...
gassafety-web/src/views/device/map/index.vue
View file @
9c2f6836
...
...
@@ -988,7 +988,7 @@ input[type="radio"] {
}
.upPic
{
display
:
inline-block
;
margin-left
:
64
px
;
margin-left
:
40
px
;
line-height
:
48px
;
font-size
:
16px
;
color
:
#053b6a
;
...
...
gassafety-web/src/views/device/pipe/index.vue
View file @
9c2f6836
...
...
@@ -102,7 +102,12 @@
<el-table-column
label=
"管道长度"
align=
"center"
prop=
"pipeLength"
/>
<el-table-column
label=
"所在地址"
align=
"center"
prop=
"pipeAddr"
/>
<el-table-column
label=
"安装日期"
align=
"center"
prop=
"installationTime"
width=
"180"
/>
<el-table-column
label=
"最后巡检日期"
align=
"center"
prop=
"inspectionTime"
width=
"180"
/>
<el-table-column
label=
"最后巡检日期"
align=
"center"
prop=
"inspectionTime"
width=
"180"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.inspectionTime != null"
>
{{
scope
.
row
.
inspectionTime
}}
</span>
<span
v-if=
"scope.row.inspectionTime == null"
>
-
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<
template
slot-scope=
"scope"
>
<el-button
...
...
@@ -117,6 +122,7 @@
type=
"text"
icon=
"el-icon-edit"
@
click=
"showDetail(scope.row)"
v-hasPermi=
"['device:pipe:query']"
>
详情
</el-button>
<el-button
size=
"mini"
...
...
gassafety-web/src/views/deviceInspection/inspectionPlan/index.vue
View file @
9c2f6836
...
...
@@ -51,7 +51,12 @@
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"地址"
align
=
"center"
prop
=
"address"
/>
<
el
-
table
-
column
label
=
"计划描述"
align
=
"center"
prop
=
"remarks"
/>
<
el
-
table
-
column
label
=
"计划描述"
align
=
"center"
prop
=
"remarks"
>
<
template
slot
-
scope
=
"scope"
>
<
span
v
-
if
=
"scope.row.remarks != null"
>
{{
scope
.
row
.
remarks
}}
<
/span
>
<
span
v
-
if
=
"scope.row.remarks == null"
>-<
/span
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"计划状态"
align
=
"center"
prop
=
"planStatus"
>
<
template
slot
-
scope
=
"scope"
>
<
span
v
-
if
=
"scope.row.planStatus == 0"
>
未生成工单
<
/span
>
...
...
@@ -85,6 +90,7 @@
type
=
"text"
icon
=
"el-icon-edit"
@
click
=
"showDetail(scope.row)"
v
-
hasPermi
=
"['deviceInspection:inspectionPlan:query']"
>
详情
<
/el-button
>
<
el
-
button
size
=
"normal"
...
...
@@ -270,6 +276,9 @@
endTime
:
[
{
required
:
true
,
message
:
"请选择结束时间"
,
trigger
:
"blur"
}
],
address
:
[
{
required
:
true
,
message
:
"请输入地址"
,
trigger
:
"blur"
}
],
appointInspector
:
[
{
required
:
true
,
message
:
"请选择巡检人员"
,
trigger
:
"blur"
}
],
...
...
gassafety-web/src/views/enterprise/mapView/components/CreateWork.vue
View file @
9c2f6836
...
...
@@ -130,11 +130,11 @@ export default {
this
.
form
.
orderType
=
"3"
;
addBasicsInfo
(
this
.
form
).
then
((
response
)
=>
{
if
(
response
.
code
==
200
)
{
console
.
log
(
response
.
msg
);
this
.
msgSuccess
(
"生成工单成功"
);
this
.
open
=
false
;
console
.
log
(
response
.
msg
);
this
.
$emit
(
"callback"
,
response
.
msg
);
}
this
.
$emit
(
"callback"
,
999
);
});
}
});
...
...
gassafety-web/src/views/enterprise/mapView/components/CreateWorkTrouble.vue
View file @
9c2f6836
...
...
@@ -7,14 +7,14 @@
append-to-body
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"130px"
>
<el-form-item
label=
"隐患名称"
prop=
"
devic
eName"
>
<font>
{{
form
.
devic
eName
}}
</font>
<el-form-item
label=
"隐患名称"
prop=
"
troubl
eName"
>
<font>
{{
form
.
troubl
eName
}}
</font>
</el-form-item>
<el-form-item
label=
"隐患类型"
prop=
"
alarm
Type"
>
<font>
{{
form
.
alarm
Type
}}
</font>
<el-form-item
label=
"隐患类型"
prop=
"
trouble
Type"
>
<font>
{{
form
.
trouble
Type
}}
</font>
</el-form-item>
<el-form-item
label=
"隐患级别"
prop=
"
alarmValue
"
>
<font>
{{
form
.
alarmValue
}}
</font>
<el-form-item
label=
"隐患级别"
prop=
"
troubleLevel
"
>
<font>
{{
form
.
troubleLevel
}}
</font>
</el-form-item>
<el-form-item
label=
"工单名称"
prop=
"orderName"
>
<el-input
v-model=
"form.orderName"
placeholder=
"请输入工单名称"
/>
...
...
@@ -69,9 +69,9 @@ export default {
data
()
{
return
{
form
:
{
devic
eName
:
""
,
alarm
Type
:
""
,
alarmValue
:
""
,
troubl
eName
:
""
,
trouble
Type
:
""
,
troubleLevel
:
""
,
orderName
:
""
,
appointInspector
:
""
,
remarks
:
""
,
...
...
@@ -95,24 +95,28 @@ export default {
created
()
{
// this.alarmId && this.handleIssue(this.alarmId);
console
.
log
(
"this.form"
);
},
watch
:
{
open
(
value
,
oldValue
)
{
if
(
value
)
{
console
.
log
(
this
.
alarmId
);
this
.
handleIssue
(
this
.
alarmId
);
this
.
getInspectorList
()
console
.
log
(
"this.form"
,
this
.
form
);
// console.log(this.alarmId);
// this.handleIssue(this.alarmId);
}
},
},
methods
:
{
handleIssue
(
alarmId
)
{
this
.
getInspectorList
();
getDeviceAlarm
(
alarmId
).
then
((
response
)
=>
{
this
.
form
=
response
.
data
;
this
.
open
=
true
;
this
.
title
=
"填写工单信息"
;
});
},
//
handleIssue(alarmId) {
//
this.getInspectorList();
//
getDeviceAlarm(alarmId).then((response) => {
//
this.form = response.data;
//
this.open = true;
//
this.title = "填写工单信息";
//
});
//
},
getInspectorList
()
{
this
.
loading
=
true
;
...
...
@@ -127,15 +131,15 @@ export default {
submitForm
()
{
this
.
$refs
[
"form"
].
validate
((
valid
)
=>
{
if
(
valid
)
{
this
.
form
.
resourceId
=
this
.
form
.
alarm
Id
;
this
.
form
.
orderType
=
"
3
"
;
this
.
form
.
resourceId
=
this
.
form
.
trouble
Id
;
this
.
form
.
orderType
=
"
2
"
;
addBasicsInfo
(
this
.
form
).
then
((
response
)
=>
{
if
(
response
.
code
==
200
)
{
console
.
log
(
response
.
msg
);
this
.
msgSuccess
(
"生成工单成功"
);
this
.
open
=
false
;
console
.
log
(
response
.
msg
);
this
.
$emit
(
"callback"
,
response
.
msg
);
}
this
.
$emit
(
"callback"
,
999
);
});
}
});
...
...
gassafety-web/src/views/enterprise/mapView/index.vue
View file @
9c2f6836
...
...
@@ -76,11 +76,11 @@
@
callback=
"CreateWorkCallBack"
/>
<!-- 隐患工单 -->
<
!-- <
CreateWorkTrouble
<CreateWorkTrouble
ref=
"CreateWorkTrouble"
:open=
"createWorkTroubleOpen"
@
callback=
"CreateWorkTroubleCallBack"
/>
-->
/>
<div
ref=
"drawer"
...
...
@@ -149,7 +149,7 @@
<!-- 有数据 -->
<
template
v-if=
"item.list.length > 0"
>
<!-- 设备以及管道 展示内容是一样的 -->
<template
v-if=
"item.value != 9"
>
<template
v-if=
"item.value !=
8 && item.value !=
9"
>
<div
class=
"list-wrapper"
>
<div
class=
"thead"
>
<div
class=
"no"
>
序号
</div>
...
...
@@ -173,6 +173,31 @@
</div>
</div>
</
template
>
<!-- 隐患的展示 -->
<
template
v-else-if=
"item.value == 8"
>
<div
class=
"list-wrapper"
>
<div
class=
"thead"
>
<div
class=
"no"
>
序号
</div>
<div
class=
"code"
>
隐患等级
</div>
<div
class=
"name"
>
隐患名称
</div>
</div>
<div
class=
"deviceList"
:class=
"
{ topActive: index == 0 }"
v-for="(iten, index) in item.list"
:key="iten.deviceId + `` + index"
@mousedown.stop="panToo(iten, item)"
>
<div
class=
"no"
>
{{
iten
.
no
+
1
}}
</div>
<div
:title=
"iten.troubleLevel"
class=
"code"
>
{{
iten
.
troubleLevel
}}
</div>
<div
:title=
"iten.troubleName"
class=
"name"
>
{{
iten
.
troubleName
}}
</div>
</div>
</div>
</
template
>
<!-- 值班人员 展示不太一样-->
<
template
v-else-if=
"item.value == 9"
>
<div
class=
"list-wrapper"
>
...
...
@@ -198,6 +223,7 @@
</div>
</div>
</
template
>
<!-- 翻页 -->
<div
class=
"goback"
>
<div
class=
"btn-w"
>
...
...
@@ -245,12 +271,14 @@ import { getAllDeviceInfo, countDeviceByType } from "@/api/device/deviceInfo";
import
{
getMapHiddenTroublelist
}
from
"@/api/riskManagement/hiddenTrouble"
;
import
RightBototmData
from
"./components/RightBototmData.vue"
;
import
CreateWork
from
"./components/CreateWork.vue"
;
import
CreateWorkTrouble
from
"./components/CreateWorkTrouble.vue"
;
import
{
getInspectorLocations
}
from
"@/api/inspectorLocation/location"
;
export
default
{
components
:
{
RightBototmData
,
CreateWork
,
CreateWorkTrouble
,
},
data
()
{
return
{
...
...
@@ -342,8 +370,12 @@ export default {
bottomDataShow
:
true
,
// 是否显示生成工单弹框
createWorkOpen
:
false
,
//隐患工单
createWorkTroubleOpen
:
false
,
// 查询用的
alarmObj
:
{
alarmId
:
""
,
type
:
""
},
troubleObj
:
null
,
// 左边抽屉 内嵌scroll盒子的高
boxHeight
:
""
,
drawerOpacity
:
false
,
...
...
@@ -477,6 +509,7 @@ export default {
return
getMapHiddenTroublelist
().
then
((
res
)
=>
{
console
.
log
(
res
);
if
(
res
.
code
==
200
)
{
this
.
troubleClassify
(
res
.
data
);
res
.
data
.
forEach
((
item
)
=>
{
console
.
log
(
"隐患"
,
item
);
this
.
gaoMap
.
addMarker
(
DEVICE_TYPE
.
TROUBLE
,
item
);
...
...
@@ -734,6 +767,13 @@ export default {
}
else
{
this
.
gaoMap
.
markerShow
(
4
,
false
);
}
// 隐患
if
(
this
.
leftBarNum
.
includes
(
8
))
{
this
.
gaoMap
.
markerShow
(
8
,
true
);
// this.panTo(item);
}
else
{
this
.
gaoMap
.
markerShow
(
8
,
false
);
}
if
(
this
.
leftBarNum
.
includes
(
9
))
{
this
.
gaoMap
.
markerShow
(
9
,
true
);
...
...
@@ -769,6 +809,8 @@ export default {
}
else
if
(
item
.
value
==
9
)
{
// 工作人员
this
.
workerManInfoWindowShow
(
iten
,
lat
,
lng
);
}
else
if
(
item
.
value
==
8
)
{
this
.
trouleInfoWindowShow
(
iten
,
lat
,
lng
)
}
else
{
// 其他设备
this
.
diveceInfoWindowShow
(
iten
,
lat
,
lng
);
...
...
@@ -815,6 +857,26 @@ export default {
this
.
gaoMap
.
infoOpen
(
e
);
};
},
// 隐患infowindow
trouleInfoWindowShow
(
iten
,
lat
,
lng
)
{
const
target
=
this
.
gaoMap
.
markers
.
filter
((
item
)
=>
{
return
item
.
getExtData
().
troubleId
==
iten
.
troubleId
;
})[
0
];
console
.
log
(
"target"
,
target
);
const
e
=
{
target
,
lnglat
:
iten
.
path
,
};
// 如果是原地不动,就直接执行
if
(
iten
.
path
[
0
]
==
lng
&&
iten
.
path
[
1
]
==
lat
)
{
this
.
gaoMap
.
troubleOpen
(
e
);
return
;
}
// 因为地图移动的时候infowindow无法显示
this
.
gaoMap
.
handleInfoWindowOpenFunc
=
()
=>
{
this
.
gaoMap
.
troubleOpen
(
e
);
};
},
// workerMan,值班人员飞过去后侠士infowindow
workerManInfoWindowShow
(
iten
,
lat
,
lng
)
{
// console.log("iten",iten.userId)
...
...
@@ -932,6 +994,20 @@ export default {
this
.
allList
[
3
]
=
lljArr
;
this
.
allList
[
4
]
=
ylbArr
;
},
// 隐患存储
troubleClassify
(
troubleData
)
{
const
workManArr
=
troubleData
.
map
((
item
,
index
)
=>
{
return
{
path
:
[
item
.
longitude
,
item
.
latitude
],
no
:
index
,
troubleId
:
item
.
troubleId
,
troubleName
:
item
.
troubleName
,
troubleLevel
:
item
.
troubleLevel
,
};
});
console
.
log
(
"值班人员"
,
workManArr
);
this
.
allList
[
5
]
=
workManArr
;
},
// 值班人员
workerManClassify
(
workManData
)
{
const
workManArr
=
workManData
.
map
((
item
,
index
)
=>
{
...
...
@@ -1174,10 +1250,13 @@ export default {
this
.
initMap
();
this
.
leftBarNum
=
[
1
,
2
,
3
,
4
,
7
,
8
,
9
];
},
// 改变弹框状态
openChange
(
bool
)
{
this
.
createWorkOpen
=
bool
;
},
// 改变工单弹框状态
// openChange(bool) {
// this.createWorkOpen = bool;
// },
// openTroubleChange(bool) {
// this.createWorkTroubleOpen = bool;
// },
// 生成工单的回调
CreateWorkCallBack
(
e
)
{
if
(
!
this
.
alarmObj
.
alarmId
)
return
;
...
...
@@ -1205,6 +1284,24 @@ export default {
this
.
alarmObj
=
obj
;
console
.
log
(
this
.
alarmObj
);
},
// 隐患
// 手动加入orderId
CreateWorkTroubleCallBack
(
e
)
{
// console.log("隐患嘿嘿嘿")
const
trouble
=
this
.
gaoMap
.
troubles
.
filter
((
item
)
=>
{
console
.
log
(
item
,
this
.
troubleObj
.
troubleId
);
return
item
.
data
.
troubleId
==
this
.
troubleObj
.
troubleId
;
})[
0
];
console
.
log
(
"找到隐患了,是"
,
trouble
);
let
options
=
trouble
.
getExtData
();
// 暂时传值,到时候回重新刷新
options
.
orderId
=
e
;
trouble
.
setExtData
(
options
);
trouble
.
data
.
orderId
=
e
;
},
troubleObjChange
(
obj
)
{
this
.
troubleObj
=
obj
;
},
},
beforeDestroy
()
{
...
...
@@ -1518,7 +1615,7 @@ input[type="radio"] {
}
.upPic
{
display
:
inline-block
;
margin-left
:
64
px
;
margin-left
:
40
px
;
line-height
:
48px
;
font-size
:
16px
;
color
:
#053b6a
;
...
...
gassafety-web/src/views/riskManagement/hiddenTrouble/index.vue
View file @
9c2f6836
...
...
@@ -102,6 +102,7 @@
type=
"text"
icon=
"el-icon-delete"
@
click=
"handleIsDel(scope.row)"
v-hasPermi=
"['riskManagement:hiddenTrouble:query']"
v-if=
"scope.row.orderId == '' || scope.row.orderId == null"
>
作废
</el-button>
...
...
@@ -222,10 +223,13 @@
<font>
{{form2.troubleName}}
</font>
</el-form-item>
<el-form-item
label=
"隐患类型"
>
<font>
{{form2.troubleType}}
</font>
<font
v-if=
"form2.troubleType == 1"
>
设备老化
</font>
<font
v-if=
"form2.troubleType == 2"
>
质保过期
</font>
</el-form-item>
<el-form-item
label=
"隐患级别"
>
<font>
{{form2.troubleLevel}}
</font>
<font
v-if=
"form2.troubleLevel == 1"
>
Ⅰ级
</font>
<font
v-if=
"form2.troubleLevel == 2"
>
Ⅱ级
</font>
<font
v-if=
"form2.troubleLevel == 3"
>
Ⅲ级
</font>
</el-form-item>
<el-form-item
label=
"工单名称"
prop=
"orderName"
style=
"width: 720px"
>
<el-input
v-model=
"form2.orderName"
placeholder=
"请输入工单名称"
/>
...
...
gassafety-web/src/views/workOrder/basicsInfo/index.vue
View file @
9c2f6836
...
...
@@ -84,10 +84,16 @@
</el-table-column>
<el-table-column
label=
"更新时间"
align=
"center"
prop=
"actualTime"
width=
"180"
>
<
template
slot-scope=
"scope"
>
<span>
{{
parseTime
(
scope
.
row
.
actualTime
)
}}
</span>
<span
v-if=
"scope.row.actualTime != null"
>
{{
scope
.
row
.
actualTime
}}
</span>
<span
v-if=
"scope.row.actualTime == null"
>
-
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"工单描述"
align=
"center"
prop=
"remarks"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.remarks != null"
>
{{
scope
.
row
.
remarks
}}
</span>
<span
v-if=
"scope.row.remarks == null"
>
-
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"工单描述"
align=
"center"
prop=
"remarks"
/>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<
template
slot-scope=
"scope"
>
<el-button
...
...
@@ -111,6 +117,7 @@
type=
"text"
icon=
"el-icon-edit"
@
click=
"showDetail(scope.row)"
v-hasPermi=
"['workOrder:basicsInfo:query']"
>
详情
</el-button>
</
template
>
</el-table-column>
...
...
gassafety-web/src/views/workOrder/feedback/index.vue
View file @
9c2f6836
...
...
@@ -82,10 +82,16 @@
</el-table-column>
<el-table-column
label=
"更新时间"
align=
"center"
prop=
"actualTime"
width=
"180"
>
<
template
slot-scope=
"scope"
>
<span>
{{
parseTime
(
scope
.
row
.
actualTime
)
}}
</span>
<span
v-if=
"scope.row.actualTime != null"
>
{{
scope
.
row
.
actualTime
}}
</span>
<span
v-if=
"scope.row.actualTime == null"
>
-
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"工单描述"
align=
"center"
prop=
"remarks"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.remarks != null"
>
{{
scope
.
row
.
remarks
}}
</span>
<span
v-if=
"scope.row.remarks == null"
>
-
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"工单描述"
align=
"center"
prop=
"remarks"
/>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<
template
slot-scope=
"scope"
>
<el-button
...
...
@@ -109,6 +115,7 @@
type=
"text"
icon=
"el-icon-edit"
@
click=
"showDetail(scope.row)"
v-hasPermi=
"['workOrder:basicsInfo:query']"
>
详情
</el-button>
</
template
>
</el-table-column>
...
...
@@ -323,7 +330,7 @@
handleReceive
(
row
)
{
if
(
row
.
orderStatus
==
'0'
)
{
const
orderIds
=
row
.
orderId
,
orderName
=
ro
e
.
orderName
;
orderName
=
ro
w
.
orderName
;
this
.
$confirm
(
'是否确认接收工单('
+
orderName
+
orderIds
+
")"
,
"操作提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
...
...
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