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
38203c90
Commit
38203c90
authored
Sep 06, 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
78867a05
82d255b4
Show whitespace changes
Inline
Side-by-side
Showing
58 changed files
with
765 additions
and
328 deletions
+765
-328
TDeviceAlarmController.java
...web/controller/dataMonitoring/TDeviceAlarmController.java
+4
-3
TDeviceReportDataController.java
...ontroller/dataMonitoring/TDeviceReportDataController.java
+5
-4
TDeviceInfoController.java
...m/zehong/web/controller/device/TDeviceInfoController.java
+3
-2
TMonitorDeviceController.java
...ehong/web/controller/device/TMonitorDeviceController.java
+4
-3
TPipeController.java
...ava/com/zehong/web/controller/device/TPipeController.java
+3
-2
TInspectionPlanController.java
...ontroller/deviceInspection/TInspectionPlanController.java
+12
-18
THiddenTroubleController.java
...b/controller/riskManagement/THiddenTroubleController.java
+3
-2
TWorkOrderController.java
...zehong/web/controller/workOrder/TWorkOrderController.java
+14
-21
BaseController.java
...ava/com/zehong/common/core/controller/BaseController.java
+13
-1
PageInfoUtil.java
...n/src/main/java/com/zehong/common/utils/PageInfoUtil.java
+30
-0
controller.java.vm
...y-generator/src/main/resources/vm/java/controller.java.vm
+3
-2
service.java.vm
...fety-generator/src/main/resources/vm/java/service.java.vm
+9
-0
serviceImpl.java.vm
...-generator/src/main/resources/vm/java/serviceImpl.java.vm
+14
-0
ITDeviceAlarmService.java
.../java/com/zehong/system/service/ITDeviceAlarmService.java
+3
-1
ITDeviceInfoService.java
...n/java/com/zehong/system/service/ITDeviceInfoService.java
+9
-0
ITDeviceReportDataService.java
.../com/zehong/system/service/ITDeviceReportDataService.java
+18
-0
ITHiddenTroubleService.java
...ava/com/zehong/system/service/ITHiddenTroubleService.java
+11
-0
ITInspectionPlanService.java
...va/com/zehong/system/service/ITInspectionPlanService.java
+10
-0
ITMonitorDeviceService.java
...ava/com/zehong/system/service/ITMonitorDeviceService.java
+11
-0
ITPipeService.java
...rc/main/java/com/zehong/system/service/ITPipeService.java
+10
-0
ITWorkOrderService.java
...in/java/com/zehong/system/service/ITWorkOrderService.java
+10
-0
TDeviceAlarmServiceImpl.java
...m/zehong/system/service/impl/TDeviceAlarmServiceImpl.java
+36
-32
TDeviceInfoServiceImpl.java
...om/zehong/system/service/impl/TDeviceInfoServiceImpl.java
+25
-0
TDeviceReportDataServiceImpl.java
...ong/system/service/impl/TDeviceReportDataServiceImpl.java
+27
-2
THiddenTroubleServiceImpl.java
...zehong/system/service/impl/THiddenTroubleServiceImpl.java
+30
-4
TInspectionPlanServiceImpl.java
...ehong/system/service/impl/TInspectionPlanServiceImpl.java
+19
-6
TMonitorDeviceServiceImpl.java
...zehong/system/service/impl/TMonitorDeviceServiceImpl.java
+14
-0
TPipeServiceImpl.java
...java/com/zehong/system/service/impl/TPipeServiceImpl.java
+31
-9
TWorkOrderServiceImpl.java
...com/zehong/system/service/impl/TWorkOrderServiceImpl.java
+37
-5
sidebar.scss
gassafety-web/src/assets/styles/sidebar.scss
+40
-26
flowMeter.vue
gassafety-web/src/components/PopWindow/flowMeter.vue
+1
-0
pipelineView.vue
gassafety-web/src/components/PopWindow/pipelineView.vue
+22
-10
pressureGage.vue
gassafety-web/src/components/PopWindow/pressureGage.vue
+2
-0
regulatorBox.vue
gassafety-web/src/components/PopWindow/regulatorBox.vue
+2
-0
valveWell.vue
gassafety-web/src/components/PopWindow/valveWell.vue
+1
-0
lineInfoWindow.vue
gassafety-web/src/components/PopWindowGis/lineInfoWindow.vue
+3
-2
lineInfoWindowWarn.vue
...ty-web/src/components/PopWindowGis/lineInfoWindowWarn.vue
+1
-1
markerInfoWindow.vue
...fety-web/src/components/PopWindowGis/markerInfoWindow.vue
+3
-2
markerInfoWindowWarn.vue
...-web/src/components/PopWindowGis/markerInfoWindowWarn.vue
+1
-1
troubleInfoWindowWarn.vue
...web/src/components/PopWindowGis/troubleInfoWindowWarn.vue
+1
-1
index.vue
gassafety-web/src/components/SizeSelect/index.vue
+29
-26
index.vue
gassafety-web/src/components/TopNav/index.vue
+66
-5
SidebarItem.vue
gassafety-web/src/layout/components/Sidebar/SidebarItem.vue
+91
-61
gaodeMap.js
gassafety-web/src/utils/gaodeMap.js
+9
-2
gaodeMapView.js
gassafety-web/src/utils/gaodeMapView.js
+1
-0
index.vue
gassafety-web/src/views/dataMonitoring/deviceAlarm/index.vue
+6
-6
index.vue
...afety-web/src/views/dataMonitoring/realtimeData/index.vue
+7
-6
index.vue
gassafety-web/src/views/dataMonitoring/reportData/index.vue
+6
-6
index.vue
gassafety-web/src/views/device/deviceInfo/index.vue
+6
-6
index.vue
gassafety-web/src/views/device/devicemonitor/index.vue
+6
-6
index.vue
gassafety-web/src/views/device/map/index.vue
+3
-4
index.vue
gassafety-web/src/views/device/pipe/index.vue
+6
-6
index.vue
...y-web/src/views/deviceInspection/inspectionPlan/index.vue
+6
-6
RightBototmData.vue
...c/views/enterprise/mapView/components/RightBototmData.vue
+5
-4
index.vue
gassafety-web/src/views/enterprise/mapView/index.vue
+5
-6
index.vue
...fety-web/src/views/riskManagement/hiddenTrouble/index.vue
+6
-6
index.vue
gassafety-web/src/views/workOrder/basicsInfo/index.vue
+6
-6
index.vue
gassafety-web/src/views/workOrder/feedback/index.vue
+6
-6
No files found.
gassafety-admin/src/main/java/com/zehong/web/controller/dataMonitoring/TDeviceAlarmController.java
View file @
38203c90
...
@@ -2,6 +2,7 @@ package com.zehong.web.controller.dataMonitoring;
...
@@ -2,6 +2,7 @@ package com.zehong.web.controller.dataMonitoring;
import
java.util.List
;
import
java.util.List
;
import
com.github.pagehelper.PageInfo
;
import
com.zehong.system.domain.form.DeviceAlarmForm
;
import
com.zehong.system.domain.form.DeviceAlarmForm
;
import
com.zehong.system.domain.vo.DeviceAlarmVo
;
import
com.zehong.system.domain.vo.DeviceAlarmVo
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.security.access.prepost.PreAuthorize
;
...
@@ -44,14 +45,14 @@ public class TDeviceAlarmController extends BaseController
...
@@ -44,14 +45,14 @@ public class TDeviceAlarmController extends BaseController
public
TableDataInfo
list
(
DeviceAlarmForm
deviceAlarmForm
)
throws
Exception
public
TableDataInfo
list
(
DeviceAlarmForm
deviceAlarmForm
)
throws
Exception
{
{
startPage
();
startPage
();
List
<
DeviceAlarmVo
>
list
=
null
;
PageInfo
<
DeviceAlarmVo
>
page
=
null
;
try
{
try
{
list
=
tDeviceAlarmService
.
selectTDeviceAlarmList
(
deviceAlarmForm
);
page
=
tDeviceAlarmService
.
selectTDeviceAlarmPage
(
deviceAlarmForm
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
throw
new
Exception
(
"查询报警信息列表出错"
);
throw
new
Exception
(
"查询报警信息列表出错"
);
}
}
return
getDataTable
(
list
);
return
getDataTable
(
page
);
}
}
/**
/**
...
...
gassafety-admin/src/main/java/com/zehong/web/controller/dataMonitoring/TDeviceReportDataController.java
View file @
38203c90
...
@@ -2,6 +2,7 @@ package com.zehong.web.controller.dataMonitoring;
...
@@ -2,6 +2,7 @@ package com.zehong.web.controller.dataMonitoring;
import
java.util.List
;
import
java.util.List
;
import
com.github.pagehelper.PageInfo
;
import
com.zehong.system.domain.form.DeviceReportDataForm
;
import
com.zehong.system.domain.form.DeviceReportDataForm
;
import
com.zehong.system.domain.vo.DeviceReportDataVo
;
import
com.zehong.system.domain.vo.DeviceReportDataVo
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.security.access.prepost.PreAuthorize
;
...
@@ -44,8 +45,8 @@ public class TDeviceReportDataController extends BaseController
...
@@ -44,8 +45,8 @@ public class TDeviceReportDataController extends BaseController
public
TableDataInfo
list
(
DeviceReportDataForm
deviceReportDataForm
)
public
TableDataInfo
list
(
DeviceReportDataForm
deviceReportDataForm
)
{
{
startPage
();
startPage
();
List
<
DeviceReportDataVo
>
list
=
tDeviceReportDataService
.
selectTDeviceReportDataList
(
deviceReportDataForm
);
PageInfo
<
DeviceReportDataVo
>
page
=
tDeviceReportDataService
.
selectTDeviceReportDataPage
(
deviceReportDataForm
);
return
getDataTable
(
list
);
return
getDataTable
(
page
);
}
}
/**
/**
...
@@ -56,8 +57,8 @@ public class TDeviceReportDataController extends BaseController
...
@@ -56,8 +57,8 @@ public class TDeviceReportDataController extends BaseController
public
TableDataInfo
realtimeList
(
DeviceReportDataForm
deviceReportDataForm
)
public
TableDataInfo
realtimeList
(
DeviceReportDataForm
deviceReportDataForm
)
{
{
startPage
();
startPage
();
List
<
DeviceReportDataVo
>
list
=
tDeviceReportDataService
.
selectRealtimeDataList
(
deviceReportDataForm
);
PageInfo
<
DeviceReportDataVo
>
page
=
tDeviceReportDataService
.
selectRealtimeDataPage
(
deviceReportDataForm
);
return
getDataTable
(
list
);
return
getDataTable
(
page
);
}
}
/**
/**
...
...
gassafety-admin/src/main/java/com/zehong/web/controller/device/TDeviceInfoController.java
View file @
38203c90
package
com
.
zehong
.
web
.
controller
.
device
;
package
com
.
zehong
.
web
.
controller
.
device
;
import
com.github.pagehelper.PageInfo
;
import
com.zehong.common.annotation.Log
;
import
com.zehong.common.annotation.Log
;
import
com.zehong.common.core.controller.BaseController
;
import
com.zehong.common.core.controller.BaseController
;
import
com.zehong.common.core.domain.AjaxResult
;
import
com.zehong.common.core.domain.AjaxResult
;
...
@@ -37,8 +38,8 @@ public class TDeviceInfoController extends BaseController
...
@@ -37,8 +38,8 @@ public class TDeviceInfoController extends BaseController
public
TableDataInfo
list
(
TDeviceInfo
tDeviceInfo
)
public
TableDataInfo
list
(
TDeviceInfo
tDeviceInfo
)
{
{
startPage
();
startPage
();
List
<
DeviceInfoVo
>
list
=
tDeviceInfoService
.
selectTDeviceInfoList
(
tDeviceInfo
);
PageInfo
<
DeviceInfoVo
>
page
=
tDeviceInfoService
.
selectTDeviceInfoPage
(
tDeviceInfo
);
return
getDataTable
(
list
);
return
getDataTable
(
page
);
}
}
/**
/**
...
...
gassafety-admin/src/main/java/com/zehong/web/controller/device/TMonitorDeviceController.java
View file @
38203c90
...
@@ -2,6 +2,7 @@ package com.zehong.web.controller.device;
...
@@ -2,6 +2,7 @@ package com.zehong.web.controller.device;
import
java.util.List
;
import
java.util.List
;
import
com.github.pagehelper.PageInfo
;
import
com.zehong.system.domain.form.RelationTMonitorDevice
;
import
com.zehong.system.domain.form.RelationTMonitorDevice
;
import
com.zehong.system.domain.form.TMonitorDeviceFrom
;
import
com.zehong.system.domain.form.TMonitorDeviceFrom
;
import
com.zehong.system.service.ITDeviceInfoService
;
import
com.zehong.system.service.ITDeviceInfoService
;
...
@@ -52,13 +53,13 @@ public class TMonitorDeviceController extends BaseController
...
@@ -52,13 +53,13 @@ public class TMonitorDeviceController extends BaseController
public
TableDataInfo
list
(
TMonitorDevice
tMonitorDevice
)
public
TableDataInfo
list
(
TMonitorDevice
tMonitorDevice
)
{
{
startPage
();
startPage
();
List
<
TMonitorDevice
>
list
=
tMonitorDeviceService
.
selectTMonitorDeviceList
(
tMonitorDevice
);
PageInfo
<
TMonitorDevice
>
page
=
tMonitorDeviceService
.
selectTMonitorDevicePage
(
tMonitorDevice
);
for
(
TMonitorDevice
device:
list
){
for
(
TMonitorDevice
device:
page
.
getList
()
){
device
.
setDeviceName
(
itDeviceInfoService
.
selectTDeviceInfoById
(
device
.
getDeviceId
().
intValue
()).
getDeviceName
());
device
.
setDeviceName
(
itDeviceInfoService
.
selectTDeviceInfoById
(
device
.
getDeviceId
().
intValue
()).
getDeviceName
());
device
.
setRelationDeviceName
(
itDeviceInfoService
.
selectTDeviceInfoById
(
device
.
getRelationDeviceId
().
intValue
()).
getDeviceName
());
device
.
setRelationDeviceName
(
itDeviceInfoService
.
selectTDeviceInfoById
(
device
.
getRelationDeviceId
().
intValue
()).
getDeviceName
());
device
.
setRelationPipeName
(
tPipeService
.
selectTPipeById
(
device
.
getRelationPipeId
().
intValue
()).
getPipeName
());
device
.
setRelationPipeName
(
tPipeService
.
selectTPipeById
(
device
.
getRelationPipeId
().
intValue
()).
getPipeName
());
}
}
return
getDataTable
(
list
);
return
getDataTable
(
page
);
}
}
/**
/**
...
...
gassafety-admin/src/main/java/com/zehong/web/controller/device/TPipeController.java
View file @
38203c90
package
com
.
zehong
.
web
.
controller
.
device
;
package
com
.
zehong
.
web
.
controller
.
device
;
import
com.github.pagehelper.PageInfo
;
import
com.zehong.common.annotation.Log
;
import
com.zehong.common.annotation.Log
;
import
com.zehong.common.core.controller.BaseController
;
import
com.zehong.common.core.controller.BaseController
;
import
com.zehong.common.core.domain.AjaxResult
;
import
com.zehong.common.core.domain.AjaxResult
;
...
@@ -36,8 +37,8 @@ public class TPipeController extends BaseController
...
@@ -36,8 +37,8 @@ public class TPipeController extends BaseController
public
TableDataInfo
list
(
TPipe
tPipe
)
public
TableDataInfo
list
(
TPipe
tPipe
)
{
{
startPage
();
startPage
();
List
<
PipeVo
>
list
=
tPipeService
.
selectTPipeList
(
tPipe
);
PageInfo
<
PipeVo
>
page
=
tPipeService
.
selectTPipePage
(
tPipe
);
return
getDataTable
(
list
);
return
getDataTable
(
page
);
}
}
...
...
gassafety-admin/src/main/java/com/zehong/web/controller/deviceInspection/TInspectionPlanController.java
View file @
38203c90
package
com
.
zehong
.
web
.
controller
.
deviceInspection
;
package
com
.
zehong
.
web
.
controller
.
deviceInspection
;
import
java.util.List
;
import
com.github.pagehelper.PageInfo
;
import
com.zehong.system.domain.form.InspectionPlanForm
;
import
com.zehong.system.domain.vo.InspectionPlanVo
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PutMapping
;
import
org.springframework.web.bind.annotation.DeleteMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.zehong.common.annotation.Log
;
import
com.zehong.common.annotation.Log
;
import
com.zehong.common.core.controller.BaseController
;
import
com.zehong.common.core.controller.BaseController
;
import
com.zehong.common.core.domain.AjaxResult
;
import
com.zehong.common.core.domain.AjaxResult
;
import
com.zehong.common.core.page.TableDataInfo
;
import
com.zehong.common.enums.BusinessType
;
import
com.zehong.common.enums.BusinessType
;
import
com.zehong.common.utils.poi.ExcelUtil
;
import
com.zehong.system.domain.TInspectionPlan
;
import
com.zehong.system.domain.TInspectionPlan
;
import
com.zehong.system.domain.form.InspectionPlanForm
;
import
com.zehong.system.domain.vo.InspectionPlanVo
;
import
com.zehong.system.service.ITInspectionPlanService
;
import
com.zehong.system.service.ITInspectionPlanService
;
import
com.zehong.common.utils.poi.ExcelUtil
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
com.zehong.common.core.page.TableDataInfo
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.List
;
/**
/**
* 巡检计划Controller
* 巡检计划Controller
...
@@ -44,8 +38,8 @@ public class TInspectionPlanController extends BaseController
...
@@ -44,8 +38,8 @@ public class TInspectionPlanController extends BaseController
public
TableDataInfo
list
(
InspectionPlanForm
inspectionPlanForm
)
public
TableDataInfo
list
(
InspectionPlanForm
inspectionPlanForm
)
{
{
startPage
();
startPage
();
List
<
TInspectionPlan
>
list
=
tInspectionPlanService
.
selectTInspectionPlanList
(
inspectionPlanForm
);
PageInfo
<
TInspectionPlan
>
page
=
tInspectionPlanService
.
selectTInspectionPlanPage
(
inspectionPlanForm
);
return
getDataTable
(
list
);
return
getDataTable
(
page
);
}
}
/**
/**
...
...
gassafety-admin/src/main/java/com/zehong/web/controller/riskManagement/THiddenTroubleController.java
View file @
38203c90
...
@@ -2,6 +2,7 @@ package com.zehong.web.controller.riskManagement;
...
@@ -2,6 +2,7 @@ package com.zehong.web.controller.riskManagement;
import
java.util.List
;
import
java.util.List
;
import
com.github.pagehelper.PageInfo
;
import
com.zehong.system.domain.form.HiddenTroubleForm
;
import
com.zehong.system.domain.form.HiddenTroubleForm
;
import
com.zehong.system.domain.vo.HiddenTroubleVo
;
import
com.zehong.system.domain.vo.HiddenTroubleVo
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.security.access.prepost.PreAuthorize
;
...
@@ -44,8 +45,8 @@ public class THiddenTroubleController extends BaseController
...
@@ -44,8 +45,8 @@ public class THiddenTroubleController extends BaseController
public
TableDataInfo
list
(
HiddenTroubleForm
hiddenTroubleForm
)
public
TableDataInfo
list
(
HiddenTroubleForm
hiddenTroubleForm
)
{
{
startPage
();
startPage
();
List
<
HiddenTroubleVo
>
list
=
tHiddenTroubleService
.
selectTHiddenTroubleList
(
hiddenTroubleForm
);
PageInfo
<
HiddenTroubleVo
>
page
=
tHiddenTroubleService
.
selectTHiddenTroublePage
(
hiddenTroubleForm
);
return
getDataTable
(
list
);
return
getDataTable
(
page
);
}
}
/**
/**
...
...
gassafety-admin/src/main/java/com/zehong/web/controller/workOrder/TWorkOrderController.java
View file @
38203c90
package
com
.
zehong
.
web
.
controller
.
workOrder
;
package
com
.
zehong
.
web
.
controller
.
workOrder
;
import
java.util.List
;
import
com.github.pagehelper.PageInfo
;
import
com.zehong.common.utils.DateUtils
;
import
com.zehong.common.utils.StringUtils
;
import
com.zehong.system.domain.form.TWorkOrderForm
;
import
com.zehong.system.domain.vo.WorkOrderVo
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PutMapping
;
import
org.springframework.web.bind.annotation.DeleteMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.zehong.common.annotation.Log
;
import
com.zehong.common.annotation.Log
;
import
com.zehong.common.core.controller.BaseController
;
import
com.zehong.common.core.controller.BaseController
;
import
com.zehong.common.core.domain.AjaxResult
;
import
com.zehong.common.core.domain.AjaxResult
;
import
com.zehong.common.core.page.TableDataInfo
;
import
com.zehong.common.enums.BusinessType
;
import
com.zehong.common.enums.BusinessType
;
import
com.zehong.common.utils.DateUtils
;
import
com.zehong.common.utils.poi.ExcelUtil
;
import
com.zehong.system.domain.TWorkOrder
;
import
com.zehong.system.domain.TWorkOrder
;
import
com.zehong.system.domain.form.TWorkOrderForm
;
import
com.zehong.system.domain.vo.WorkOrderVo
;
import
com.zehong.system.service.ITWorkOrderService
;
import
com.zehong.system.service.ITWorkOrderService
;
import
com.zehong.common.utils.poi.ExcelUtil
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
com.zehong.common.core.page.TableDataInfo
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.List
;
/**
/**
* 工单基础信息Controller
* 工单基础信息Controller
...
@@ -46,14 +39,14 @@ public class TWorkOrderController extends BaseController
...
@@ -46,14 +39,14 @@ public class TWorkOrderController extends BaseController
public
TableDataInfo
list
(
TWorkOrderForm
tWorkOrderForm
)
throws
Exception
public
TableDataInfo
list
(
TWorkOrderForm
tWorkOrderForm
)
throws
Exception
{
{
startPage
();
startPage
();
List
<
WorkOrderVo
>
list
=
null
;
PageInfo
<
WorkOrderVo
>
page
=
null
;
try
{
try
{
list
=
tWorkOrderService
.
selectTWorkOrderList
(
tWorkOrderForm
);
page
=
tWorkOrderService
.
selectTWorkOrderPage
(
tWorkOrderForm
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
throw
new
Exception
(
"查询工单基础信息列表失败"
);
throw
new
Exception
(
"查询工单基础信息列表失败"
);
}
}
return
getDataTable
(
list
);
return
getDataTable
(
page
);
}
}
/**
/**
...
...
gassafety-common/src/main/java/com/zehong/common/core/controller/BaseController.java
View file @
38203c90
...
@@ -85,7 +85,19 @@ public class BaseController
...
@@ -85,7 +85,19 @@ public class BaseController
rspData
.
setTotal
(
new
PageInfo
(
list
).
getTotal
());
rspData
.
setTotal
(
new
PageInfo
(
list
).
getTotal
());
return
rspData
;
return
rspData
;
}
}
/**
* 响应请求分页数据(解决totle)
*/
@SuppressWarnings
({
"rawtypes"
,
"unchecked"
})
protected
TableDataInfo
getDataTable
(
PageInfo
<?>
page
)
{
TableDataInfo
rspData
=
new
TableDataInfo
();
rspData
.
setCode
(
HttpStatus
.
SUCCESS
);
rspData
.
setMsg
(
"查询成功"
);
rspData
.
setRows
(
page
.
getList
());
rspData
.
setTotal
(
page
.
getTotal
());
return
rspData
;
}
/**
/**
* 响应返回结果
* 响应返回结果
*
*
...
...
gassafety-common/src/main/java/com/zehong/common/utils/PageInfoUtil.java
0 → 100644
View file @
38203c90
package
com
.
zehong
.
common
.
utils
;
import
com.github.pagehelper.Page
;
import
com.github.pagehelper.PageInfo
;
import
org.springframework.beans.BeanUtils
;
/**
* @description:github Pagehelper工具
* @Author:yuyufeng
* @Date:2019/7/22 10:38
*/
public
class
PageInfoUtil
{
public
static
<
P
,
D
>
PageInfo
<
D
>
pageInfo2PageInfoDTO
(
PageInfo
<
P
>
pageInfoPO
,
Class
<
D
>
dClass
)
{
Page
<
D
>
page
=
new
Page
<>(
pageInfoPO
.
getPageNum
(),
pageInfoPO
.
getPageSize
());
page
.
setTotal
(
pageInfoPO
.
getTotal
());
for
(
P
p
:
pageInfoPO
.
getList
())
{
D
d
=
null
;
try
{
d
=
dClass
.
newInstance
();
}
catch
(
InstantiationException
e
)
{
e
.
printStackTrace
();
}
catch
(
IllegalAccessException
e
)
{
e
.
printStackTrace
();
}
BeanUtils
.
copyProperties
(
p
,
d
);
page
.
add
(
d
);
}
return
new
PageInfo
<>(
page
);
}
}
gassafety-generator/src/main/resources/vm/java/controller.java.vm
View file @
38203c90
...
@@ -18,6 +18,7 @@ import com.zehong.common.enums.BusinessType;
...
@@ -18,6 +18,7 @@ import com.zehong.common.enums.BusinessType;
import
${
packageName
}.
domain
.${
ClassName
};
import
${
packageName
}.
domain
.${
ClassName
};
import
${
packageName
}.
service
.
I
${
ClassName
}
Service
;
import
${
packageName
}.
service
.
I
${
ClassName
}
Service
;
import
com
.
zehong
.
common
.
utils
.
poi
.
ExcelUtil
;
import
com
.
zehong
.
common
.
utils
.
poi
.
ExcelUtil
;
import
com
.
github
.
pagehelper
.
PageInfo
;
#
if
($
table
.
crud
||
$
table
.
sub
)
#
if
($
table
.
crud
||
$
table
.
sub
)
import
com
.
zehong
.
common
.
core
.
page
.
TableDataInfo
;
import
com
.
zehong
.
common
.
core
.
page
.
TableDataInfo
;
#
elseif
($
table
.
tree
)
#
elseif
($
table
.
tree
)
...
@@ -45,7 +46,7 @@ public class ${ClassName}Controller extends BaseController
...
@@ -45,7 +46,7 @@ public class ${ClassName}Controller extends BaseController
public
TableDataInfo
list
(${
ClassName
}
${
className
})
public
TableDataInfo
list
(${
ClassName
}
${
className
})
{
{
startPage
();
startPage
();
List
<${
ClassName
}>
list
=
${
className
}
Service
.
select
${
ClassName
}
List
(${
className
});
PageInfo
<${
ClassName
}>
list
=
${
className
}
Service
.
select
${
ClassName
}
Page
(${
className
});
return
getDataTable
(
list
);
return
getDataTable
(
list
);
}
}
#
elseif
($
table
.
tree
)
#
elseif
($
table
.
tree
)
...
...
gassafety-generator/src/main/resources/vm/java/service.java.vm
View file @
38203c90
...
@@ -2,6 +2,7 @@ package ${packageName}.service;
...
@@ -2,6 +2,7 @@ package ${packageName}.service;
import
java
.
util
.
List
;
import
java
.
util
.
List
;
import
${
packageName
}.
domain
.${
ClassName
};
import
${
packageName
}.
domain
.${
ClassName
};
import
com
.
github
.
pagehelper
.
PageInfo
;
/**
/**
*
${
functionName
}
Service
接口
*
${
functionName
}
Service
接口
...
@@ -27,6 +28,14 @@ public interface I${ClassName}Service
...
@@ -27,6 +28,14 @@ public interface I${ClassName}Service
*/
*/
public
List
<${
ClassName
}>
select
${
ClassName
}
List
(${
ClassName
}
${
className
});
public
List
<${
ClassName
}>
select
${
ClassName
}
List
(${
ClassName
}
${
className
});
/**
*
查询
${
functionName
}
分页列表
*
*
@
param
${
className
}
${
functionName
}
*
@
return
${
functionName
}
分页集合
*/
public
PageInfo
<${
ClassName
}>
select
${
ClassName
}
Page
(${
ClassName
}
${
className
});
/**
/**
*
新增
${
functionName
}
*
新增
${
functionName
}
*
*
...
...
gassafety-generator/src/main/resources/vm/java/serviceImpl.java.vm
View file @
38203c90
...
@@ -3,6 +3,7 @@ package ${packageName}.service.impl;
...
@@ -3,6 +3,7 @@ package ${packageName}.service.impl;
import
java
.
util
.
List
;
import
java
.
util
.
List
;
#
foreach
($
column
in
$
columns
)
#
foreach
($
column
in
$
columns
)
#
if
($
column
.
javaField
==
'createTime'
||
$
column
.
javaField
==
'updateTime'
)
#
if
($
column
.
javaField
==
'createTime'
||
$
column
.
javaField
==
'updateTime'
)
import
com
.
github
.
pagehelper
.
PageInfo
;
import
com
.
zehong
.
common
.
utils
.
DateUtils
;
import
com
.
zehong
.
common
.
utils
.
DateUtils
;
#
break
#
break
#
end
#
end
...
@@ -18,6 +19,7 @@ import ${packageName}.domain.${subClassName};
...
@@ -18,6 +19,7 @@ import ${packageName}.domain.${subClassName};
import
${
packageName
}.
mapper
.${
ClassName
}
Mapper
;
import
${
packageName
}.
mapper
.${
ClassName
}
Mapper
;
import
${
packageName
}.
domain
.${
ClassName
};
import
${
packageName
}.
domain
.${
ClassName
};
import
${
packageName
}.
service
.
I
${
ClassName
}
Service
;
import
${
packageName
}.
service
.
I
${
ClassName
}
Service
;
import
com
.
github
.
pagehelper
.
PageInfo
;
/**
/**
*
${
functionName
}
Service
业务层处理
*
${
functionName
}
Service
业务层处理
...
@@ -55,6 +57,18 @@ public class ${ClassName}ServiceImpl implements I${ClassName}Service
...
@@ -55,6 +57,18 @@ public class ${ClassName}ServiceImpl implements I${ClassName}Service
return
${
className
}
Mapper
.
select
${
ClassName
}
List
(${
className
});
return
${
className
}
Mapper
.
select
${
ClassName
}
List
(${
className
});
}
}
/**
*
查询
${
functionName
}
分页列表
*
*
@
param
${
className
}
${
functionName
}
*
@
return
${
functionName
}
*/
@
Override
public
PageInfo
<${
ClassName
}>
select
${
ClassName
}
Page
(${
ClassName
}
${
className
})
{
return
new
PageInfo
(${
className
}
Mapper
.
select
${
ClassName
}
List
(${
className
}));
}
/**
/**
*
新增
${
functionName
}
*
新增
${
functionName
}
*
*
...
...
gassafety-system/src/main/java/com/zehong/system/service/ITDeviceAlarmService.java
View file @
38203c90
package
com
.
zehong
.
system
.
service
;
package
com
.
zehong
.
system
.
service
;
import
java.util.List
;
import
java.util.List
;
import
com.github.pagehelper.PageInfo
;
import
com.zehong.system.domain.TDeviceAlarm
;
import
com.zehong.system.domain.TDeviceAlarm
;
import
com.zehong.system.domain.form.DeviceAlarmForm
;
import
com.zehong.system.domain.form.DeviceAlarmForm
;
import
com.zehong.system.domain.vo.DeviceAlarmVo
;
import
com.zehong.system.domain.vo.DeviceAlarmVo
;
...
@@ -27,7 +29,7 @@ public interface ITDeviceAlarmService
...
@@ -27,7 +29,7 @@ public interface ITDeviceAlarmService
* @param deviceAlarmForm 报警信息
* @param deviceAlarmForm 报警信息
* @return 报警信息集合
* @return 报警信息集合
*/
*/
public
List
<
DeviceAlarmVo
>
selectTDeviceAlarmList
(
DeviceAlarmForm
deviceAlarmForm
)
throws
Exception
;
public
PageInfo
<
DeviceAlarmVo
>
selectTDeviceAlarmPage
(
DeviceAlarmForm
deviceAlarmForm
)
throws
Exception
;
/**
/**
* 新增报警信息
* 新增报警信息
...
...
gassafety-system/src/main/java/com/zehong/system/service/ITDeviceInfoService.java
View file @
38203c90
...
@@ -3,6 +3,7 @@ package com.zehong.system.service;
...
@@ -3,6 +3,7 @@ package com.zehong.system.service;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
import
com.github.pagehelper.PageInfo
;
import
com.zehong.system.domain.TDeviceInfo
;
import
com.zehong.system.domain.TDeviceInfo
;
import
com.zehong.system.domain.vo.DeviceInfoVo
;
import
com.zehong.system.domain.vo.DeviceInfoVo
;
...
@@ -30,6 +31,14 @@ public interface ITDeviceInfoService
...
@@ -30,6 +31,14 @@ public interface ITDeviceInfoService
*/
*/
public
List
<
DeviceInfoVo
>
selectTDeviceInfoList
(
TDeviceInfo
tDeviceInfo
);
public
List
<
DeviceInfoVo
>
selectTDeviceInfoList
(
TDeviceInfo
tDeviceInfo
);
/**
* 查询设备信息列表
*
* @param tDeviceInfo 设备信息
* @return 设备信息集合
*/
public
PageInfo
<
DeviceInfoVo
>
selectTDeviceInfoPage
(
TDeviceInfo
tDeviceInfo
);
/**
/**
* 构建前端所需要下拉树结构
* 构建前端所需要下拉树结构
*
*
...
...
gassafety-system/src/main/java/com/zehong/system/service/ITDeviceReportDataService.java
View file @
38203c90
package
com
.
zehong
.
system
.
service
;
package
com
.
zehong
.
system
.
service
;
import
java.util.List
;
import
java.util.List
;
import
com.github.pagehelper.PageInfo
;
import
com.zehong.system.domain.TDeviceReportData
;
import
com.zehong.system.domain.TDeviceReportData
;
import
com.zehong.system.domain.form.DeviceReportDataForm
;
import
com.zehong.system.domain.form.DeviceReportDataForm
;
import
com.zehong.system.domain.vo.DeviceReportDataVo
;
import
com.zehong.system.domain.vo.DeviceReportDataVo
;
...
@@ -29,6 +31,14 @@ public interface ITDeviceReportDataService
...
@@ -29,6 +31,14 @@ public interface ITDeviceReportDataService
*/
*/
public
List
<
DeviceReportDataVo
>
selectTDeviceReportDataList
(
DeviceReportDataForm
deviceReportDataForm
);
public
List
<
DeviceReportDataVo
>
selectTDeviceReportDataList
(
DeviceReportDataForm
deviceReportDataForm
);
/**
* 查询设备监控列表
*
* @param deviceReportDataForm 设备监控
* @return 设备监控集合
*/
public
PageInfo
<
DeviceReportDataVo
>
selectTDeviceReportDataPage
(
DeviceReportDataForm
deviceReportDataForm
);
/**
/**
* 查询设备监控实时数据
* 查询设备监控实时数据
*
*
...
@@ -37,6 +47,14 @@ public interface ITDeviceReportDataService
...
@@ -37,6 +47,14 @@ public interface ITDeviceReportDataService
*/
*/
public
List
<
DeviceReportDataVo
>
selectRealtimeDataList
(
DeviceReportDataForm
deviceReportDataForm
);
public
List
<
DeviceReportDataVo
>
selectRealtimeDataList
(
DeviceReportDataForm
deviceReportDataForm
);
/**
* 查询设备监控实时数据
*
* @param deviceReportDataForm 设备监控
* @return 设备监控
*/
public
PageInfo
<
DeviceReportDataVo
>
selectRealtimeDataPage
(
DeviceReportDataForm
deviceReportDataForm
);
/**
/**
* 新增设备监控
* 新增设备监控
*
*
...
...
gassafety-system/src/main/java/com/zehong/system/service/ITHiddenTroubleService.java
View file @
38203c90
package
com
.
zehong
.
system
.
service
;
package
com
.
zehong
.
system
.
service
;
import
java.util.List
;
import
java.util.List
;
import
com.github.pagehelper.PageInfo
;
import
com.zehong.system.domain.THiddenTrouble
;
import
com.zehong.system.domain.THiddenTrouble
;
import
com.zehong.system.domain.form.HiddenTroubleForm
;
import
com.zehong.system.domain.form.HiddenTroubleForm
;
import
com.zehong.system.domain.vo.HiddenTroubleVo
;
import
com.zehong.system.domain.vo.HiddenTroubleVo
;
...
@@ -29,6 +31,15 @@ public interface ITHiddenTroubleService
...
@@ -29,6 +31,15 @@ public interface ITHiddenTroubleService
*/
*/
public
List
<
HiddenTroubleVo
>
selectTHiddenTroubleList
(
HiddenTroubleForm
hiddenTroubleForm
);
public
List
<
HiddenTroubleVo
>
selectTHiddenTroubleList
(
HiddenTroubleForm
hiddenTroubleForm
);
/**
* 查询隐患信息列表
*
* @param hiddenTroubleForm 隐患信息
* @return 隐患信息集合
*/
public
PageInfo
<
HiddenTroubleVo
>
selectTHiddenTroublePage
(
HiddenTroubleForm
hiddenTroubleForm
);
/**
/**
* 地图显示隐患信息列表
* 地图显示隐患信息列表
*
*
...
...
gassafety-system/src/main/java/com/zehong/system/service/ITInspectionPlanService.java
View file @
38203c90
package
com
.
zehong
.
system
.
service
;
package
com
.
zehong
.
system
.
service
;
import
java.util.List
;
import
java.util.List
;
import
com.github.pagehelper.PageInfo
;
import
com.zehong.system.domain.TInspectionPlan
;
import
com.zehong.system.domain.TInspectionPlan
;
import
com.zehong.system.domain.form.InspectionPlanForm
;
import
com.zehong.system.domain.form.InspectionPlanForm
;
import
com.zehong.system.domain.vo.InspectionPlanVo
;
import
com.zehong.system.domain.vo.InspectionPlanVo
;
...
@@ -29,6 +31,14 @@ public interface ITInspectionPlanService
...
@@ -29,6 +31,14 @@ public interface ITInspectionPlanService
*/
*/
public
List
<
TInspectionPlan
>
selectTInspectionPlanList
(
InspectionPlanForm
inspectionPlanForm
);
public
List
<
TInspectionPlan
>
selectTInspectionPlanList
(
InspectionPlanForm
inspectionPlanForm
);
/**
* 查询巡检计划列表
*
* @param inspectionPlanForm 巡检计划
* @return 巡检计划集合
*/
public
PageInfo
<
TInspectionPlan
>
selectTInspectionPlanPage
(
InspectionPlanForm
inspectionPlanForm
);
/**
/**
* 新增巡检计划
* 新增巡检计划
*
*
...
...
gassafety-system/src/main/java/com/zehong/system/service/ITMonitorDeviceService.java
View file @
38203c90
package
com
.
zehong
.
system
.
service
;
package
com
.
zehong
.
system
.
service
;
import
java.util.List
;
import
java.util.List
;
import
com.github.pagehelper.PageInfo
;
import
com.zehong.system.domain.TMonitorDevice
;
import
com.zehong.system.domain.TMonitorDevice
;
/**
/**
...
@@ -27,6 +29,15 @@ public interface ITMonitorDeviceService
...
@@ -27,6 +29,15 @@ public interface ITMonitorDeviceService
*/
*/
public
List
<
TMonitorDevice
>
selectTMonitorDeviceList
(
TMonitorDevice
tMonitorDevice
);
public
List
<
TMonitorDevice
>
selectTMonitorDeviceList
(
TMonitorDevice
tMonitorDevice
);
/**
* 查询设备监控列表
*
* @param tMonitorDevice 设备监控
* @return 设备监控集合
*/
public
PageInfo
<
TMonitorDevice
>
selectTMonitorDevicePage
(
TMonitorDevice
tMonitorDevice
);
/**
/**
* 新增设备监控
* 新增设备监控
*
*
...
...
gassafety-system/src/main/java/com/zehong/system/service/ITPipeService.java
View file @
38203c90
package
com
.
zehong
.
system
.
service
;
package
com
.
zehong
.
system
.
service
;
import
java.util.List
;
import
java.util.List
;
import
com.github.pagehelper.PageInfo
;
import
com.zehong.system.domain.TPipe
;
import
com.zehong.system.domain.TPipe
;
import
com.zehong.system.domain.vo.PipeVo
;
import
com.zehong.system.domain.vo.PipeVo
;
...
@@ -28,6 +30,14 @@ public interface ITPipeService
...
@@ -28,6 +30,14 @@ public interface ITPipeService
*/
*/
public
List
<
PipeVo
>
selectTPipeList
(
TPipe
tPipe
);
public
List
<
PipeVo
>
selectTPipeList
(
TPipe
tPipe
);
/**
* 查询管道信息列表
*
* @param tPipe 管道信息
* @return 管道信息集合
*/
public
PageInfo
<
PipeVo
>
selectTPipePage
(
TPipe
tPipe
);
/**
/**
* 统计管道总长度
* 统计管道总长度
* @param
* @param
...
...
gassafety-system/src/main/java/com/zehong/system/service/ITWorkOrderService.java
View file @
38203c90
package
com
.
zehong
.
system
.
service
;
package
com
.
zehong
.
system
.
service
;
import
java.util.List
;
import
java.util.List
;
import
com.github.pagehelper.PageInfo
;
import
com.zehong.system.domain.TWorkOrder
;
import
com.zehong.system.domain.TWorkOrder
;
import
com.zehong.system.domain.form.TWorkOrderForm
;
import
com.zehong.system.domain.form.TWorkOrderForm
;
import
com.zehong.system.domain.vo.WorkOrderVo
;
import
com.zehong.system.domain.vo.WorkOrderVo
;
...
@@ -30,6 +32,14 @@ public interface ITWorkOrderService
...
@@ -30,6 +32,14 @@ public interface ITWorkOrderService
*/
*/
public
List
<
WorkOrderVo
>
selectTWorkOrderList
(
TWorkOrderForm
tWorkOrderForm
)
throws
Exception
;
public
List
<
WorkOrderVo
>
selectTWorkOrderList
(
TWorkOrderForm
tWorkOrderForm
)
throws
Exception
;
/**
* 查询工单基础信息列表
*
* @param tWorkOrderForm 工单基础信息表单
* @return 工单基础信息集合
*/
public
PageInfo
<
WorkOrderVo
>
selectTWorkOrderPage
(
TWorkOrderForm
tWorkOrderForm
)
throws
Exception
;
/**
/**
* 新增工单基础信息
* 新增工单基础信息
*
*
...
...
gassafety-system/src/main/java/com/zehong/system/service/impl/TDeviceAlarmServiceImpl.java
View file @
38203c90
package
com
.
zehong
.
system
.
service
.
impl
;
package
com
.
zehong
.
system
.
service
.
impl
;
import
java.util.ArrayList
;
import
com.github.pagehelper.PageInfo
;
import
java.util.List
;
import
com.zehong.common.core.domain.entity.SysDictData
;
import
com.zehong.common.core.domain.entity.SysDictData
;
import
com.zehong.common.utils.DateUtils
;
import
com.zehong.common.utils.DateUtils
;
import
com.zehong.common.utils.PageInfoUtil
;
import
com.zehong.common.utils.StringUtils
;
import
com.zehong.common.utils.StringUtils
;
import
com.zehong.system.domain.TDeviceAlarm
;
import
com.zehong.system.domain.TDeviceInfo
;
import
com.zehong.system.domain.TDeviceInfo
;
import
com.zehong.system.domain.TDeviceReportData
;
import
com.zehong.system.domain.TDeviceReportData
;
import
com.zehong.system.domain.TPipe
;
import
com.zehong.system.domain.TPipe
;
import
com.zehong.system.domain.form.DeviceAlarmForm
;
import
com.zehong.system.domain.form.DeviceAlarmForm
;
import
com.zehong.system.domain.vo.DeviceAlarmVo
;
import
com.zehong.system.domain.vo.DeviceAlarmVo
;
import
com.zehong.system.mapper.TDeviceAlarmMapper
;
import
com.zehong.system.mapper.TDeviceInfoMapper
;
import
com.zehong.system.mapper.TDeviceInfoMapper
;
import
com.zehong.system.mapper.TDeviceReportDataMapper
;
import
com.zehong.system.mapper.TDeviceReportDataMapper
;
import
com.zehong.system.mapper.TPipeMapper
;
import
com.zehong.system.mapper.TPipeMapper
;
import
com.zehong.system.service.ISysDictTypeService
;
import
com.zehong.system.service.ISysDictTypeService
;
import
com.zehong.system.service.ITDeviceAlarmService
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
com.zehong.system.mapper.TDeviceAlarmMapper
;
import
com.zehong.system.domain.TDeviceAlarm
;
import
java.util.ArrayList
;
import
com.zehong.system.service.ITDeviceAlarmService
;
import
java.util.List
;
/**
/**
* 报警信息Service业务层处理
* 报警信息Service业务层处理
...
@@ -116,31 +118,23 @@ public class TDeviceAlarmServiceImpl implements ITDeviceAlarmService
...
@@ -116,31 +118,23 @@ public class TDeviceAlarmServiceImpl implements ITDeviceAlarmService
* @return 报警信息
* @return 报警信息
*/
*/
@Override
@Override
public
List
<
DeviceAlarmVo
>
selectTDeviceAlarmList
(
DeviceAlarmForm
deviceAlarmForm
)
throws
Exception
public
PageInfo
<
DeviceAlarmVo
>
selectTDeviceAlarmPage
(
DeviceAlarmForm
deviceAlarmForm
)
throws
Exception
{
{
List
<
DeviceAlarmVo
>
list
=
new
ArrayList
<>();
PageInfo
<
TDeviceAlarm
>
deviceAlarmList
=
new
PageInfo
<>();
List
<
TDeviceAlarm
>
deviceAlarmList
=
new
ArrayList
<>();
if
(
deviceAlarmForm
.
getDeviceCode
()
!=
null
){
if
(
deviceAlarmForm
.
getDeviceCode
()
!=
null
){
List
<
TDeviceAlarm
>
pipeList
=
tDeviceAlarmMapper
.
selectTDeviceAlarmByPipeCode
(
deviceAlarmForm
);
List
<
TDeviceAlarm
>
pipeList
=
tDeviceAlarmMapper
.
selectTDeviceAlarmByPipeCode
(
deviceAlarmForm
);
List
<
TDeviceAlarm
>
deviceList
=
tDeviceAlarmMapper
.
selectTDeviceAlarmByDeviceCode
(
deviceAlarmForm
);
List
<
TDeviceAlarm
>
deviceList
=
tDeviceAlarmMapper
.
selectTDeviceAlarmByDeviceCode
(
deviceAlarmForm
);
if
(
pipeList
.
size
()
!=
0
){
setDeviceInfo
(
deviceAlarmList
,
pipeList
);
deviceAlarmList
.
addAll
(
pipeList
);
setDeviceInfo
(
deviceAlarmList
,
deviceList
);
}
if
(
deviceList
.
size
()
!=
0
){
deviceAlarmList
.
addAll
(
deviceList
);
}
}
else
{
}
else
{
deviceAlarmList
=
tDeviceAlarmMapper
.
selectTDeviceAlarmList
(
deviceAlarmForm
);
deviceAlarmList
=
new
PageInfo
(
tDeviceAlarmMapper
.
selectTDeviceAlarmList
(
deviceAlarmForm
)
);
}
}
PageInfo
<
DeviceAlarmVo
>
pageVo
=
PageInfoUtil
.
pageInfo2PageInfoDTO
(
deviceAlarmList
,
DeviceAlarmVo
.
class
);
if
(
deviceAlarmList
.
size
()
!=
0
)
{
if
(
pageVo
.
getList
().
size
()
!=
0
)
{
for
(
TDeviceAlarm
alarm
:
deviceAlarmList
)
{
for
(
DeviceAlarmVo
deviceAlarmVo
:
pageVo
.
getList
())
{
DeviceAlarmVo
deviceAlarmVo
=
new
DeviceAlarmVo
();
if
(
"0"
.
equals
(
deviceAlarmVo
.
getDeviceType
()))
{
BeanUtils
.
copyProperties
(
alarm
,
deviceAlarmVo
);
TPipe
pipe
=
tPipeMapper
.
selectTPipeById
(
deviceAlarmVo
.
getDeviceId
());
if
(
"0"
.
equals
(
alarm
.
getDeviceType
()))
{
TPipe
pipe
=
tPipeMapper
.
selectTPipeById
(
alarm
.
getDeviceId
());
if
(
pipe
!=
null
)
{
if
(
pipe
!=
null
)
{
deviceAlarmVo
.
setDeviceCode
(
pipe
.
getPipeCode
());
deviceAlarmVo
.
setDeviceCode
(
pipe
.
getPipeCode
());
deviceAlarmVo
.
setDeviceName
(
pipe
.
getPipeName
());
deviceAlarmVo
.
setDeviceName
(
pipe
.
getPipeName
());
...
@@ -150,7 +144,7 @@ public class TDeviceAlarmServiceImpl implements ITDeviceAlarmService
...
@@ -150,7 +144,7 @@ public class TDeviceAlarmServiceImpl implements ITDeviceAlarmService
deviceAlarmVo
.
setPipeList
(
pipeList
);
deviceAlarmVo
.
setPipeList
(
pipeList
);
}
}
}
else
{
}
else
{
TDeviceInfo
deviceInfo
=
tDeviceInfoMapper
.
selectTDeviceInfoById
(
alarm
.
getDeviceId
());
TDeviceInfo
deviceInfo
=
tDeviceInfoMapper
.
selectTDeviceInfoById
(
deviceAlarmVo
.
getDeviceId
());
if
(
deviceInfo
!=
null
)
{
if
(
deviceInfo
!=
null
)
{
deviceAlarmVo
.
setDeviceCode
(
deviceInfo
.
getDeviceCode
());
deviceAlarmVo
.
setDeviceCode
(
deviceInfo
.
getDeviceCode
());
deviceAlarmVo
.
setDeviceName
(
deviceInfo
.
getDeviceName
());
deviceAlarmVo
.
setDeviceName
(
deviceInfo
.
getDeviceName
());
...
@@ -161,29 +155,39 @@ public class TDeviceAlarmServiceImpl implements ITDeviceAlarmService
...
@@ -161,29 +155,39 @@ public class TDeviceAlarmServiceImpl implements ITDeviceAlarmService
}
}
}
}
if
(
StringUtils
.
isNotEmpty
(
alarm
.
getAlarmType
()))
{
if
(
StringUtils
.
isNotEmpty
(
deviceAlarmVo
.
getAlarmType
()))
{
List
<
SysDictData
>
sysDictDataList
=
iSysDictTypeService
.
selectDictDataByType
(
"t_alarm_type"
);
List
<
SysDictData
>
sysDictDataList
=
iSysDictTypeService
.
selectDictDataByType
(
"t_alarm_type"
);
for
(
SysDictData
sysDictData
:
sysDictDataList
)
{
for
(
SysDictData
sysDictData
:
sysDictDataList
)
{
if
(
alarm
.
getAlarmType
().
equals
(
sysDictData
.
getDictValue
()))
{
if
(
deviceAlarmVo
.
getAlarmType
().
equals
(
sysDictData
.
getDictValue
()))
{
deviceAlarmVo
.
setAlarmType
(
sysDictData
.
getDictLabel
());
deviceAlarmVo
.
setAlarmType
(
sysDictData
.
getDictLabel
());
}
}
}
}
}
}
if
(
StringUtils
.
isNotEmpty
(
alarm
.
getDeviceType
()))
{
if
(
StringUtils
.
isNotEmpty
(
deviceAlarmVo
.
getDeviceType
()))
{
List
<
SysDictData
>
sysDictDataList
=
iSysDictTypeService
.
selectDictDataByType
(
"t_trouble_device_type"
);
List
<
SysDictData
>
sysDictDataList
=
iSysDictTypeService
.
selectDictDataByType
(
"t_trouble_device_type"
);
for
(
SysDictData
sysDictData
:
sysDictDataList
)
{
for
(
SysDictData
sysDictData
:
sysDictDataList
)
{
if
(
alarm
.
getDeviceType
().
equals
(
sysDictData
.
getDictValue
()))
{
if
(
deviceAlarmVo
.
getDeviceType
().
equals
(
sysDictData
.
getDictValue
()))
{
deviceAlarmVo
.
setDeviceType
(
sysDictData
.
getDictLabel
());
deviceAlarmVo
.
setDeviceType
(
sysDictData
.
getDictLabel
());
}
}
}
}
}
}
list
.
add
(
deviceAlarmVo
);
}
}
}
}
return
list
;
return
pageVo
;
}
private
void
setDeviceInfo
(
PageInfo
<
TDeviceAlarm
>
deviceAlarmList
,
List
<
TDeviceAlarm
>
list
){
if
(
list
.
size
()
!=
0
){
if
(
null
!=
deviceAlarmList
.
getList
()
&&
!
deviceAlarmList
.
getList
().
isEmpty
()){
deviceAlarmList
.
getList
().
addAll
(
list
);
deviceAlarmList
.
setTotal
(
deviceAlarmList
.
getTotal
()
+
list
.
size
());
}
else
{
deviceAlarmList
.
setList
(
list
);
deviceAlarmList
.
setTotal
(
list
.
size
());
}
}
}
}
/**
/**
...
...
gassafety-system/src/main/java/com/zehong/system/service/impl/TDeviceInfoServiceImpl.java
View file @
38203c90
package
com
.
zehong
.
system
.
service
.
impl
;
package
com
.
zehong
.
system
.
service
.
impl
;
import
com.github.pagehelper.PageInfo
;
import
com.zehong.common.utils.PageInfoUtil
;
import
com.zehong.system.domain.TDeviceInfo
;
import
com.zehong.system.domain.TDeviceInfo
;
import
com.zehong.system.domain.TPipe
;
import
com.zehong.system.domain.TPipe
;
import
com.zehong.system.domain.vo.DeviceInfoVo
;
import
com.zehong.system.domain.vo.DeviceInfoVo
;
...
@@ -76,6 +78,29 @@ public class TDeviceInfoServiceImpl implements ITDeviceInfoService
...
@@ -76,6 +78,29 @@ public class TDeviceInfoServiceImpl implements ITDeviceInfoService
return
list
;
return
list
;
}
}
/**
* 查询设备信息列表
*
* @param tDeviceInfo 设备信息
* @return 设备信息
*/
@Override
public
PageInfo
<
DeviceInfoVo
>
selectTDeviceInfoPage
(
TDeviceInfo
tDeviceInfo
)
{
List
<
TDeviceInfo
>
deviceInfoList
=
tDeviceInfoMapper
.
selectTDeviceInfoList
(
tDeviceInfo
);
PageInfo
<
DeviceInfoVo
>
pageVo
=
PageInfoUtil
.
pageInfo2PageInfoDTO
(
new
PageInfo
(
deviceInfoList
),
DeviceInfoVo
.
class
);
if
(
pageVo
.
getList
().
size
()
!=
0
){
for
(
DeviceInfoVo
device
:
pageVo
.
getList
()){
TPipe
pipe
=
tPipeMapper
.
selectTPipeById
(
device
.
getPipeId
());
device
.
setPipeName
(
pipe
.
getPipeName
());
}
}
return
pageVo
;
}
/**
/**
* 构建前端所需要下拉树结构
* 构建前端所需要下拉树结构
*
*
...
...
gassafety-system/src/main/java/com/zehong/system/service/impl/TDeviceReportDataServiceImpl.java
View file @
38203c90
package
com
.
zehong
.
system
.
service
.
impl
;
package
com
.
zehong
.
system
.
service
.
impl
;
import
java.util.List
;
import
java.util.List
;
import
com.github.pagehelper.PageInfo
;
import
com.zehong.common.utils.DateUtils
;
import
com.zehong.common.utils.DateUtils
;
import
com.zehong.system.domain.TDeviceInfo
;
import
com.zehong.system.domain.TDeviceInfo
;
import
com.zehong.system.domain.form.DeviceReportDataForm
;
import
com.zehong.system.domain.form.DeviceReportDataForm
;
...
@@ -39,8 +41,9 @@ public class TDeviceReportDataServiceImpl implements ITDeviceReportDataService
...
@@ -39,8 +41,9 @@ public class TDeviceReportDataServiceImpl implements ITDeviceReportDataService
DeviceReportDataVo
deviceReportDataVo
=
new
DeviceReportDataVo
();
DeviceReportDataVo
deviceReportDataVo
=
new
DeviceReportDataVo
();
TDeviceInfo
tDeviceInfo
=
tDeviceInfoMapper
.
selectTDeviceInfoById
(
deviceId
);
TDeviceInfo
tDeviceInfo
=
tDeviceInfoMapper
.
selectTDeviceInfoById
(
deviceId
);
TDeviceReportData
tDeviceReportData
=
tDeviceReportDataMapper
.
selectTDeviceReportDataByDeviceNum
(
tDeviceInfo
.
getIotNo
());
TDeviceReportData
tDeviceReportData
=
tDeviceReportDataMapper
.
selectTDeviceReportDataByDeviceNum
(
tDeviceInfo
.
getIotNo
());
if
(
null
!=
tDeviceReportData
){
BeanUtils
.
copyProperties
(
tDeviceReportData
,
deviceReportDataVo
);
BeanUtils
.
copyProperties
(
tDeviceReportData
,
deviceReportDataVo
);
}
deviceReportDataVo
.
setDeviceId
(
tDeviceInfo
.
getDeviceId
());
deviceReportDataVo
.
setDeviceId
(
tDeviceInfo
.
getDeviceId
());
deviceReportDataVo
.
setDeviceCode
(
tDeviceInfo
.
getDeviceCode
());
deviceReportDataVo
.
setDeviceCode
(
tDeviceInfo
.
getDeviceCode
());
deviceReportDataVo
.
setDeviceName
(
tDeviceInfo
.
getDeviceName
());
deviceReportDataVo
.
setDeviceName
(
tDeviceInfo
.
getDeviceName
());
...
@@ -70,6 +73,16 @@ public class TDeviceReportDataServiceImpl implements ITDeviceReportDataService
...
@@ -70,6 +73,16 @@ public class TDeviceReportDataServiceImpl implements ITDeviceReportDataService
return
tDeviceReportDataMapper
.
selectTDeviceReportDataList
(
deviceReportDataForm
);
return
tDeviceReportDataMapper
.
selectTDeviceReportDataList
(
deviceReportDataForm
);
}
}
/**
* 查询设备监控列表
*
* @param deviceReportDataForm 设备监控
* @return 设备监控集合
*/
public
PageInfo
<
DeviceReportDataVo
>
selectTDeviceReportDataPage
(
DeviceReportDataForm
deviceReportDataForm
){
return
new
PageInfo
(
tDeviceReportDataMapper
.
selectTDeviceReportDataList
(
deviceReportDataForm
));
}
/**
/**
* 查询设备监控实时数据
* 查询设备监控实时数据
*
*
...
@@ -82,6 +95,18 @@ public class TDeviceReportDataServiceImpl implements ITDeviceReportDataService
...
@@ -82,6 +95,18 @@ public class TDeviceReportDataServiceImpl implements ITDeviceReportDataService
return
tDeviceReportDataMapper
.
selectRealtimeDataList
(
deviceReportDataForm
);
return
tDeviceReportDataMapper
.
selectRealtimeDataList
(
deviceReportDataForm
);
}
}
/**
* 查询设备监控实时数据
*
* @param deviceReportDataForm 设备监控
* @return 设备监控
*/
@Override
public
PageInfo
<
DeviceReportDataVo
>
selectRealtimeDataPage
(
DeviceReportDataForm
deviceReportDataForm
)
{
return
new
PageInfo
(
tDeviceReportDataMapper
.
selectRealtimeDataList
(
deviceReportDataForm
));
}
/**
/**
* 新增设备监控
* 新增设备监控
*
*
...
...
gassafety-system/src/main/java/com/zehong/system/service/impl/THiddenTroubleServiceImpl.java
View file @
38203c90
package
com
.
zehong
.
system
.
service
.
impl
;
package
com
.
zehong
.
system
.
service
.
impl
;
import
java.util.ArrayList
;
import
com.github.pagehelper.PageInfo
;
import
java.util.List
;
import
com.zehong.common.core.domain.entity.SysDictData
;
import
com.zehong.common.core.domain.entity.SysDictData
;
import
com.zehong.common.core.domain.entity.SysUser
;
import
com.zehong.common.core.domain.entity.SysUser
;
import
com.zehong.common.utils.DateUtils
;
import
com.zehong.common.utils.DateUtils
;
import
com.zehong.common.utils.PageInfoUtil
;
import
com.zehong.common.utils.StringUtils
;
import
com.zehong.common.utils.StringUtils
;
import
com.zehong.system.domain.*
;
import
com.zehong.system.domain.*
;
import
com.zehong.system.domain.form.HiddenTroubleForm
;
import
com.zehong.system.domain.form.HiddenTroubleForm
;
import
com.zehong.system.domain.vo.HiddenTroubleVo
;
import
com.zehong.system.domain.vo.HiddenTroubleVo
;
import
com.zehong.system.mapper.*
;
import
com.zehong.system.mapper.*
;
import
com.zehong.system.service.ISysDictTypeService
;
import
com.zehong.system.service.ISysDictTypeService
;
import
com.zehong.system.service.ITHiddenTroubleService
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
com.zehong.system.service.ITHiddenTroubleService
;
import
java.util.ArrayList
;
import
java.util.List
;
/**
/**
* 隐患信息Service业务层处理
* 隐患信息Service业务层处理
...
@@ -111,6 +113,30 @@ public class THiddenTroubleServiceImpl implements ITHiddenTroubleService
...
@@ -111,6 +113,30 @@ public class THiddenTroubleServiceImpl implements ITHiddenTroubleService
return
list
;
return
list
;
}
}
/**
* 查询隐患信息列表
*
* @param hiddenTroubleForm 隐患信息
* @return 隐患信息
*/
@Override
public
PageInfo
<
HiddenTroubleVo
>
selectTHiddenTroublePage
(
HiddenTroubleForm
hiddenTroubleForm
)
{
List
<
THiddenTrouble
>
tHiddenTroubleList
=
tHiddenTroubleMapper
.
selectTHiddenTroubleList
(
hiddenTroubleForm
);
PageInfo
<
HiddenTroubleVo
>
pageVo
=
PageInfoUtil
.
pageInfo2PageInfoDTO
(
new
PageInfo
<>(
tHiddenTroubleList
),
HiddenTroubleVo
.
class
);
if
(
pageVo
.
getList
().
size
()
!=
0
)
{
for
(
HiddenTroubleVo
hiddenTroubleVo
:
pageVo
.
getList
())
{
SysUser
sysUser
=
sysUserMapper
.
selectUserById
(
hiddenTroubleVo
.
getReportMan
());
if
(
sysUser
!=
null
)
{
hiddenTroubleVo
.
setReportManName
(
sysUser
.
getNickName
());
}
}
}
return
pageVo
;
}
/**
/**
* 地图显示隐患信息列表
* 地图显示隐患信息列表
*
*
...
...
gassafety-system/src/main/java/com/zehong/system/service/impl/TInspectionPlanServiceImpl.java
View file @
38203c90
package
com
.
zehong
.
system
.
service
.
impl
;
package
com
.
zehong
.
system
.
service
.
impl
;
import
java.util.ArrayList
;
import
com.github.pagehelper.PageInfo
;
import
java.util.List
;
import
java.util.regex.Matcher
;
import
java.util.regex.Pattern
;
import
com.zehong.common.core.domain.entity.SysDictData
;
import
com.zehong.common.core.domain.entity.SysDictData
;
import
com.zehong.common.core.domain.entity.SysUser
;
import
com.zehong.common.core.domain.entity.SysUser
;
import
com.zehong.common.utils.DateUtils
;
import
com.zehong.common.utils.DateUtils
;
...
@@ -15,10 +11,15 @@ import com.zehong.system.domain.vo.InspectionDataVo;
...
@@ -15,10 +11,15 @@ import com.zehong.system.domain.vo.InspectionDataVo;
import
com.zehong.system.domain.vo.InspectionPlanVo
;
import
com.zehong.system.domain.vo.InspectionPlanVo
;
import
com.zehong.system.mapper.*
;
import
com.zehong.system.mapper.*
;
import
com.zehong.system.service.ISysDictTypeService
;
import
com.zehong.system.service.ISysDictTypeService
;
import
com.zehong.system.service.ITInspectionPlanService
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
com.zehong.system.service.ITInspectionPlanService
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.regex.Matcher
;
import
java.util.regex.Pattern
;
/**
/**
* 巡检计划Service业务层处理
* 巡检计划Service业务层处理
...
@@ -131,6 +132,18 @@ public class TInspectionPlanServiceImpl implements ITInspectionPlanService
...
@@ -131,6 +132,18 @@ public class TInspectionPlanServiceImpl implements ITInspectionPlanService
return
tInspectionPlanMapper
.
selectTInspectionPlanList
(
inspectionPlanForm
);
return
tInspectionPlanMapper
.
selectTInspectionPlanList
(
inspectionPlanForm
);
}
}
/**
* 查询巡检计划列表
*
* @param inspectionPlanForm 巡检计划
* @return 巡检计划
*/
@Override
public
PageInfo
<
TInspectionPlan
>
selectTInspectionPlanPage
(
InspectionPlanForm
inspectionPlanForm
)
{
return
new
PageInfo
(
tInspectionPlanMapper
.
selectTInspectionPlanList
(
inspectionPlanForm
));
}
/**
/**
* 新增巡检计划
* 新增巡检计划
*
*
...
...
gassafety-system/src/main/java/com/zehong/system/service/impl/TMonitorDeviceServiceImpl.java
View file @
38203c90
package
com
.
zehong
.
system
.
service
.
impl
;
package
com
.
zehong
.
system
.
service
.
impl
;
import
java.util.List
;
import
java.util.List
;
import
com.github.pagehelper.PageInfo
;
import
com.zehong.common.utils.DateUtils
;
import
com.zehong.common.utils.DateUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
...
@@ -44,6 +46,18 @@ public class TMonitorDeviceServiceImpl implements ITMonitorDeviceService
...
@@ -44,6 +46,18 @@ public class TMonitorDeviceServiceImpl implements ITMonitorDeviceService
return
tMonitorDeviceMapper
.
selectTMonitorDeviceList
(
tMonitorDevice
);
return
tMonitorDeviceMapper
.
selectTMonitorDeviceList
(
tMonitorDevice
);
}
}
/**
* 查询设备监控列表
*
* @param tMonitorDevice 设备监控
* @return 设备监控
*/
@Override
public
PageInfo
<
TMonitorDevice
>
selectTMonitorDevicePage
(
TMonitorDevice
tMonitorDevice
)
{
return
new
PageInfo
(
tMonitorDeviceMapper
.
selectTMonitorDeviceList
(
tMonitorDevice
));
}
/**
/**
* 新增设备监控
* 新增设备监控
*
*
...
...
gassafety-system/src/main/java/com/zehong/system/service/impl/TPipeServiceImpl.java
View file @
38203c90
package
com
.
zehong
.
system
.
service
.
impl
;
package
com
.
zehong
.
system
.
service
.
impl
;
import
java.util.ArrayList
;
import
com.github.pagehelper.PageInfo
;
import
java.util.List
;
import
com.zehong.common.utils.PageInfoUtil
;
import
com.zehong.common.core.domain.entity.SysDictData
;
import
com.zehong.common.utils.StringUtils
;
import
com.zehong.system.domain.TDeviceInfo
;
import
com.zehong.system.domain.TDeviceInfo
;
import
com.zehong.system.domain.TPipe
;
import
com.zehong.system.domain.vo.PipeVo
;
import
com.zehong.system.domain.vo.PipeVo
;
import
com.zehong.system.mapper.TDeviceInfoMapper
;
import
com.zehong.system.mapper.TDeviceInfoMapper
;
import
com.zehong.system.service.ISysDictTypeService
;
import
com.zehong.system.mapper.TPipeMapper
;
import
com.zehong.system.service.ITPipeService
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
com.zehong.system.mapper.TPipeMapper
;
import
com.zehong.system.domain.TPipe
;
import
java.util.ArrayList
;
import
com.zehong.system.service.ITPipeService
;
import
java.util.List
;
/**
/**
* 管道信息Service业务层处理
* 管道信息Service业务层处理
...
@@ -79,6 +78,29 @@ public class TPipeServiceImpl implements ITPipeService
...
@@ -79,6 +78,29 @@ public class TPipeServiceImpl implements ITPipeService
return
list
;
return
list
;
}
}
/**
* 查询管道信息列表
*
* @param tPipe 管道信息
* @return 管道信息
*/
@Override
public
PageInfo
<
PipeVo
>
selectTPipePage
(
TPipe
tPipe
)
{
List
<
PipeVo
>
list
=
new
ArrayList
<>();
List
<
TPipe
>
tPipeList
=
tPipeMapper
.
selectTPipeList
(
tPipe
);
PageInfo
<
PipeVo
>
pageVo
=
PageInfoUtil
.
pageInfo2PageInfoDTO
(
new
PageInfo
(
tPipeList
),
PipeVo
.
class
);
if
(
pageVo
.
getList
().
size
()
!=
0
){
for
(
PipeVo
pipe
:
pageVo
.
getList
()){
List
<
TDeviceInfo
>
deviceInfoList
=
tDeviceInfoMapper
.
selectTDeviceInfoByPipeId
(
pipe
.
getPipeId
());
if
(
deviceInfoList
.
size
()
!=
0
)
{
pipe
.
setDeviceInfoList
(
deviceInfoList
);
}
}
}
return
pageVo
;
}
/**
/**
* 统计管道总长度
* 统计管道总长度
* @return
* @return
...
...
gassafety-system/src/main/java/com/zehong/system/service/impl/TWorkOrderServiceImpl.java
View file @
38203c90
package
com
.
zehong
.
system
.
service
.
impl
;
package
com
.
zehong
.
system
.
service
.
impl
;
import
java.util.ArrayList
;
import
com.github.pagehelper.PageInfo
;
import
java.util.List
;
import
com.zehong.common.core.domain.entity.SysUser
;
import
com.zehong.common.core.domain.entity.SysUser
;
import
com.zehong.common.utils.DateUtils
;
import
com.zehong.common.utils.DateUtils
;
import
com.zehong.common.utils.PageInfoUtil
;
import
com.zehong.system.domain.*
;
import
com.zehong.system.domain.*
;
import
com.zehong.system.domain.form.TWorkOrderForm
;
import
com.zehong.system.domain.form.TWorkOrderForm
;
import
com.zehong.system.domain.vo.InspectionPlanVo
;
import
com.zehong.system.domain.vo.OrderFeedbackVo
;
import
com.zehong.system.domain.vo.OrderFeedbackVo
;
import
com.zehong.system.domain.vo.WorkOrderVo
;
import
com.zehong.system.domain.vo.WorkOrderVo
;
import
com.zehong.system.mapper.*
;
import
com.zehong.system.mapper.*
;
import
com.zehong.system.service.ITWorkOrderService
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
com.zehong.system.service.ITWorkOrderService
;
import
java.util.ArrayList
;
import
java.util.List
;
/**
/**
* 工单基础信息Service业务层处理
* 工单基础信息Service业务层处理
...
@@ -219,6 +220,37 @@ public class TWorkOrderServiceImpl implements ITWorkOrderService
...
@@ -219,6 +220,37 @@ public class TWorkOrderServiceImpl implements ITWorkOrderService
return
workOrderVoList
;
return
workOrderVoList
;
}
}
/**
* 查询工单基础信息列表
*
* @param tWorkOrderForm 工单基础信息
* @return 工单基础信息
*/
@Override
public
PageInfo
<
WorkOrderVo
>
selectTWorkOrderPage
(
TWorkOrderForm
tWorkOrderForm
)
throws
Exception
{
List
<
TWorkOrder
>
workOrderList
=
tWorkOrderMapper
.
selectTWorkOrderList
(
tWorkOrderForm
);
PageInfo
<
WorkOrderVo
>
pageVo
=
PageInfoUtil
.
pageInfo2PageInfoDTO
(
new
PageInfo
<>(
workOrderList
),
WorkOrderVo
.
class
);
if
(
pageVo
.
getList
().
size
()
!=
0
){
for
(
WorkOrderVo
workOrder
:
pageVo
.
getList
()){
// 获取巡检员姓名
SysUser
appointInspector
=
sysUserMapper
.
selectUserById
(
workOrder
.
getAppointInspector
());
workOrder
.
setAppointInspectorName
(
appointInspector
.
getNickName
());
if
(
workOrder
.
getActualInspector
()
!=
workOrder
.
getAppointInspector
()
&&
workOrder
.
getActualInspector
()
!=
null
){
SysUser
actualInspector
=
sysUserMapper
.
selectUserById
(
workOrder
.
getActualInspector
());
workOrder
.
setActualInspectorName
(
actualInspector
.
getNickName
());
}
else
{
workOrder
.
setActualInspectorName
(
appointInspector
.
getNickName
());
}
}
}
return
pageVo
;
}
/**
/**
* 新增工单基础信息
* 新增工单基础信息
*
*
...
...
gassafety-web/src/assets/styles/sidebar.scss
View file @
38203c90
#app
{
#app
{
.main-container
{
.main-container
{
min-height
:
100%
;
min-height
:
100%
;
transition
:
margin-left
.28s
;
transition
:
margin-left
0
.28s
;
margin-left
:
$sideBarWidth
;
margin-left
:
$sideBarWidth
;
position
:
relative
;
position
:
relative
;
}
}
.sidebar-container
{
.sidebar-container
{
-webkit-transition
:
width
.28s
;
-webkit-transition
:
width
0
.28s
;
transition
:
width
0
.28s
;
transition
:
width
0
.28s
;
width
:
$sideBarWidth
!
important
;
width
:
$sideBarWidth
!
important
;
background-color
:
#053
B6A
;
background-color
:
#053
b6a
;
height
:
100%
;
height
:
100%
;
position
:
fixed
;
position
:
fixed
;
font-size
:
0px
;
font-size
:
0px
;
...
@@ -20,28 +19,44 @@
...
@@ -20,28 +19,44 @@
left
:
0
;
left
:
0
;
z-index
:
1001
;
z-index
:
1001
;
overflow
:
hidden
;
overflow
:
hidden
;
-webkit-box-shadow
:
2px
0
6px
rgba
(
0
,
21
,
41
,
.
35
);
-webkit-box-shadow
:
2px
0
6px
rgba
(
0
,
21
,
41
,
0
.35
);
box-shadow
:
2px
0
6px
rgba
(
0
,
21
,
41
,
.
35
);
box-shadow
:
2px
0
6px
rgba
(
0
,
21
,
41
,
0
.35
);
.el-menu-item
{
.el-menu-item
{
padding
:
0px
!
important
;
padding
:
0px
!
important
;
margin-top
:
5px
;
margin-top
:
5px
;
height
:
84px
;
height
:
84px
;
line-height
:
30px
!
important
;
line-height
:
30px
!
important
;
text-align
:
center
;
text-align
:
center
;
.svg-icon
{
.svg-icon
{
margin-top
:
10px
;
margin-top
:
10px
;
font-size
:
30px
;
font-size
:
30px
;
// width: 30px !important;
// width: 30px !important;
}
}
}
}
reset
element-ui
css
reset
element-ui
css
.horizontal-collapse-transition
{
.horizontal-collapse-transition
{
transition
:
0s
width
ease-in-out
,
0s
padding-left
ease-in-out
,
transition
:
0s
width
ease-in-out
,
0s
padding-left
ease-in-out
,
0s
padding-right
ease-in-out
;
0s
padding-right
ease-in-out
;
}
}
.scrollbar-wrapper
{
.scrollbar-wrapper
{
overflow-x
:
hidden
!
important
;
overflow-x
:
hidden
!
important
;
.el-menu-item
:focus
,
.is-active
{
outline
:
none
;
// background-image: url(/static/img/item-background.0ec28f27.png);
background-repeat
:
no-repeat
;
background-size
:
100%
100%
;
/* background: rgba(0, 0, 0, 0); */
color
:
#31eaea
!
important
;
}
.el-menu-item
:hover
{
outline
:
none
;
// background-image: url(/static/img/item-background.0ec28f27.png);
background-repeat
:
no-repeat
;
background-size
:
100%
100%
;
/* background: rgba(0, 0, 0, 0); */
color
:
#31eaea
!
important
;
}
}
}
.el-scrollbar__bar.is-vertical
{
.el-scrollbar__bar.is-vertical
{
...
@@ -73,13 +88,14 @@
...
@@ -73,13 +88,14 @@
}
}
.el-menu
{
.el-menu
{
background-color
:
#053
B6A
;
background-color
:
#053
b6a
;
border
:
none
;
border
:
none
;
height
:
100%
;
height
:
100%
;
width
:
100%
!
important
;
width
:
100%
!
important
;
}
}
.el-menu-item
,
.el-submenu__title
{
.el-menu-item
,
.el-submenu__title
{
overflow
:
hidden
!
important
;
overflow
:
hidden
!
important
;
text-overflow
:
ellipsis
!
important
;
text-overflow
:
ellipsis
!
important
;
// white-space: nowrap !important;
// white-space: nowrap !important;
...
@@ -97,7 +113,7 @@
...
@@ -97,7 +113,7 @@
color
:
#fff
!
important
;
color
:
#fff
!
important
;
}
}
&
.nest-menu
.el-submenu
>
.el-submenu__title
,
&
.nest-menu
.el-submenu
>
.el-submenu__title
,
&
.el-submenu
.el-menu-item
{
&
.el-submenu
.el-menu-item
{
min-width
:
$sideBarWidth
!
important
;
min-width
:
$sideBarWidth
!
important
;
...
@@ -106,9 +122,9 @@
...
@@ -106,9 +122,9 @@
}
}
}
}
&
.theme-dark
.nest-menu
.el-submenu
>
.el-submenu__title
,
&
.theme-dark
.nest-menu
.el-submenu
>
.el-submenu__title
,
&
.theme-dark
.el-submenu
.el-menu-item
{
&
.theme-dark
.el-submenu
.el-menu-item
{
background-color
:
#053
B6A
!
important
;
background-color
:
#053
b6a
!
important
;
&
:hover
{
&
:hover
{
background-color
:
rgba
(
0
,
0
,
0
,
0
.06
)
!
important
;
background-color
:
rgba
(
0
,
0
,
0
,
0
.06
)
!
important
;
...
@@ -141,20 +157,19 @@
...
@@ -141,20 +157,19 @@
.el-submenu
{
.el-submenu
{
overflow
:
hidden
;
overflow
:
hidden
;
&
>
.el-submenu__title
{
&
>
.el-submenu__title
{
padding
:
0
0
!
important
;
padding
:
0
0
!
important
;
.svg-icon
{
.svg-icon
{
margin-left
:
20px
;
margin-left
:
20px
;
}
}
}
}
}
}
.el-menu--collapse
{
.el-menu--collapse
{
.el-submenu
{
.el-submenu
{
&
>
.el-submenu__title
{
&
>
.el-submenu__title
{
&
>
span
{
&
>
span
{
height
:
0
;
height
:
0
;
width
:
0
;
width
:
0
;
overflow
:
hidden
;
overflow
:
hidden
;
...
@@ -177,7 +192,7 @@
...
@@ -177,7 +192,7 @@
}
}
.sidebar-container
{
.sidebar-container
{
transition
:
transform
.28s
;
transition
:
transform
0
.28s
;
width
:
$sideBarWidth
!
important
;
width
:
$sideBarWidth
!
important
;
}
}
...
@@ -191,7 +206,6 @@
...
@@ -191,7 +206,6 @@
}
}
.withoutAnimation
{
.withoutAnimation
{
.main-container
,
.main-container
,
.sidebar-container
{
.sidebar-container
{
transition
:
none
;
transition
:
none
;
...
@@ -201,13 +215,13 @@
...
@@ -201,13 +215,13 @@
// when menu collapsed
// when menu collapsed
.el-menu--vertical
{
.el-menu--vertical
{
&
>
.el-menu
{
&
>
.el-menu
{
.svg-icon
{
.svg-icon
{
margin-right
:
16px
;
margin-right
:
16px
;
}
}
}
}
.nest-menu
.el-submenu
>
.el-submenu__title
,
.nest-menu
.el-submenu
>
.el-submenu__title
,
.el-menu-item
{
.el-menu-item
{
&
:hover
{
&
:hover
{
// you can use $subMenuHover
// you can use $subMenuHover
...
@@ -216,7 +230,7 @@
...
@@ -216,7 +230,7 @@
}
}
// the scroll bar appears when the subMenu is too long
// the scroll bar appears when the subMenu is too long
>
.el-menu--popup
{
>
.el-menu--popup
{
max-height
:
100vh
;
max-height
:
100vh
;
overflow-y
:
auto
;
overflow-y
:
auto
;
...
...
gassafety-web/src/components/PopWindow/flowMeter.vue
View file @
38203c90
...
@@ -151,6 +151,7 @@ export default {
...
@@ -151,6 +151,7 @@ export default {
return
{
return
{
form
:
{
form
:
{
deviceType
:
"3"
,
deviceType
:
"3"
,
iconUrl
:
""
,
},
},
type
:
DEVICE_TYPE
.
FLOWMETER
,
type
:
DEVICE_TYPE
.
FLOWMETER
,
dialogVisible
:
false
,
dialogVisible
:
false
,
...
...
gassafety-web/src/components/PopWindow/pipelineView.vue
View file @
38203c90
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
:title=
"myTitle"
:title=
"myTitle"
:visible
.
sync=
"dialogVisible"
:visible
.
sync=
"dialogVisible"
:before-close=
"handleClose"
:before-close=
"handleClose"
ref=
"dialog"
>
>
<el-row>
<el-row>
<el-form
<el-form
...
@@ -146,7 +147,7 @@
...
@@ -146,7 +147,7 @@
<
el
-
button
:
loading
=
"okLoading"
type
=
"primary"
@
click
=
"ok"
<
el
-
button
:
loading
=
"okLoading"
type
=
"primary"
@
click
=
"ok"
>
确
定
<
/el-butto
n
>
确
定
<
/el-butto
n
>
>
<
el
-
button
@
click
=
"
dialogVisible = false
"
>
取
消
<
/el-button
>
<
el
-
button
@
click
=
"
handleCloseBtn
"
>
取
消
<
/el-button
>
<
/span
>
<
/span
>
<
/el-dialog
>
<
/el-dialog
>
<
/template
>
<
/template
>
...
@@ -271,14 +272,19 @@ export default {
...
@@ -271,14 +272,19 @@ export default {
if
(
res
.
code
==
200
)
{
if
(
res
.
code
==
200
)
{
this
.
dialogVisible
=
false
;
this
.
dialogVisible
=
false
;
data
.
pipeId
=
data
.
pipeId
?
data
.
pipeId
:
res
.
data
;
data
.
pipeId
=
data
.
pipeId
?
data
.
pipeId
:
res
.
data
;
this
.
lineOkCallBack
.
call
(
this
.
gaodeMap
,
this
.
target
,
data
,()
=>
{
this
.
lineOkCallBack
.
call
(
const
arr
=
this
.
gaodeMap
.
polyLines
.
map
(
item
=>
{
this
.
gaodeMap
,
return
item
.
getExtData
().
lineData
this
.
target
,
}
)
data
,
console
.
log
(
"arr==================="
,
arr
)
()
=>
{
this
.
gaodeMap
.
view
.
pipeClassify
(
arr
)
const
arr
=
this
.
gaodeMap
.
polyLines
.
map
((
item
)
=>
{
this
.
gaodeMap
.
view
.
pipeList
()
;
return
item
.
getExtData
().
lineData
;
}
);
}
);
console
.
log
(
"arr==================="
,
arr
);
this
.
gaodeMap
.
view
.
pipeClassify
(
arr
);
this
.
gaodeMap
.
view
.
pipeList
();
}
);
if
(
!
this
.
editForm
.
pipeId
)
{
if
(
!
this
.
editForm
.
pipeId
)
{
this
.
gaodeMap
.
newLineObj
=
null
;
this
.
gaodeMap
.
newLineObj
=
null
;
this
.
gaodeMap
.
createNewLine
();
this
.
gaodeMap
.
createNewLine
();
...
@@ -321,7 +327,9 @@ export default {
...
@@ -321,7 +327,9 @@ export default {
options
.
lineData
=
{
...
this
.
editForm
}
;
options
.
lineData
=
{
...
this
.
editForm
}
;
this
.
target
.
setExtData
(
options
);
this
.
target
.
setExtData
(
options
);
// 把值带出去
// 把值带出去
if
(
done
)
{
done
();
done
();
}
// this.$confirm("确认关闭?")
// this.$confirm("确认关闭?")
// .then((_) =>
{
// .then((_) =>
{
...
@@ -329,6 +337,10 @@ export default {
...
@@ -329,6 +337,10 @@ export default {
//
}
)
//
}
)
// .catch((_) =>
{
}
);
// .catch((_) =>
{
}
);
}
,
}
,
handleCloseBtn
()
{
this
.
handleClose
();
this
.
dialogVisible
=
false
;
}
,
// 图片上传成功
// 图片上传成功
fileFinshed
(
e
)
{
fileFinshed
(
e
)
{
this
.
editForm
.
iconUrl
=
e
.
url
;
this
.
editForm
.
iconUrl
=
e
.
url
;
...
...
gassafety-web/src/components/PopWindow/pressureGage.vue
View file @
38203c90
...
@@ -151,6 +151,8 @@ export default {
...
@@ -151,6 +151,8 @@ export default {
return
{
return
{
form
:
{
form
:
{
deviceType
:
"4"
,
deviceType
:
"4"
,
iconUrl
:
""
,
},
},
type
:
DEVICE_TYPE
.
PRESSUREGAGE
,
type
:
DEVICE_TYPE
.
PRESSUREGAGE
,
dialogVisible
:
false
,
dialogVisible
:
false
,
...
...
gassafety-web/src/components/PopWindow/regulatorBox.vue
View file @
38203c90
...
@@ -151,6 +151,8 @@ export default {
...
@@ -151,6 +151,8 @@ export default {
return
{
return
{
form
:
{
form
:
{
deviceType
:
"1"
,
deviceType
:
"1"
,
iconUrl
:
""
,
},
},
type
:
DEVICE_TYPE
.
REGEULATORBOX
,
type
:
DEVICE_TYPE
.
REGEULATORBOX
,
dialogVisible
:
false
,
dialogVisible
:
false
,
...
...
gassafety-web/src/components/PopWindow/valveWell.vue
View file @
38203c90
...
@@ -150,6 +150,7 @@ export default {
...
@@ -150,6 +150,7 @@ export default {
return
{
return
{
form
:
{
form
:
{
deviceType
:
"2"
,
deviceType
:
"2"
,
iconUrl
:
""
,
},
},
type
:
DEVICE_TYPE
.
VALUEWELL
,
type
:
DEVICE_TYPE
.
VALUEWELL
,
dialogVisible
:
false
,
dialogVisible
:
false
,
...
...
gassafety-web/src/components/PopWindowGis/lineInfoWindow.vue
View file @
38203c90
...
@@ -134,9 +134,10 @@ export default {
...
@@ -134,9 +134,10 @@ export default {
deviceMore
()
{
deviceMore
()
{
console
.
log
(
this
.
obj
.
polyline
.
getExtData
().
lineData
);
console
.
log
(
this
.
obj
.
polyline
.
getExtData
().
lineData
);
this
.
obj
.
polyline
.
getExtData
().
class
.
view
.
$router
.
push
({
this
.
obj
.
polyline
.
getExtData
().
class
.
view
.
$router
.
push
({
path
:
"/dataMonitoring/realtimedetail"
,
// path: "/dataMonitoring/realtimedetail",
path
:
"/device/pipeDetail"
,
query
:
{
query
:
{
devic
eId
:
this
.
obj
.
polyline
.
getExtData
().
lineData
.
pipeId
,
pip
eId
:
this
.
obj
.
polyline
.
getExtData
().
lineData
.
pipeId
,
//这里是传数字
//这里是传数字
deviceType
:
"0"
,
deviceType
:
"0"
,
}
,
}
,
...
...
gassafety-web/src/components/PopWindowGis/lineInfoWindowWarn.vue
View file @
38203c90
...
@@ -209,7 +209,7 @@ export default {
...
@@ -209,7 +209,7 @@ export default {
<
style
lang
=
"scss"
scoped
>
<
style
lang
=
"scss"
scoped
>
.
wrapper
{
.
wrapper
{
width
:
406
px
;
width
:
406
px
;
max
-
height
:
43
0
px
;
max
-
height
:
50
0
px
;
background
:
#
fff
;
background
:
#
fff
;
border
-
radius
:
4
px
;
border
-
radius
:
4
px
;
box
-
shadow
:
0
px
3
px
6
px
rgba
(
0
,
0
,
0
,
0.16
);
box
-
shadow
:
0
px
3
px
6
px
rgba
(
0
,
0
,
0
,
0.16
);
...
...
gassafety-web/src/components/PopWindowGis/markerInfoWindow.vue
View file @
38203c90
...
@@ -87,10 +87,11 @@ export default {
...
@@ -87,10 +87,11 @@ export default {
moment
,
moment
,
deviceMore
()
{
deviceMore
()
{
this
.
data
.
class
.
view
.
$router
.
push
({
this
.
data
.
class
.
view
.
$router
.
push
({
path
:
"/dataMonitoring/realtimedetail"
,
// path: "/dataMonitoring/realtimedetail",
path
:
"/device/deviceInfoDetail"
,
query
:
{
query
:
{
deviceId
:
this
.
data
.
deviceId
,
deviceId
:
this
.
data
.
deviceId
,
deviceType
:
this
.
data
.
deviceType
,
//
deviceType: this.data.deviceType,
},
},
});
});
},
},
...
...
gassafety-web/src/components/PopWindowGis/markerInfoWindowWarn.vue
View file @
38203c90
...
@@ -181,7 +181,7 @@ export default {
...
@@ -181,7 +181,7 @@ export default {
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.wrapper
{
.wrapper
{
width
:
406px
;
width
:
406px
;
max-height
:
43
0px
;
max-height
:
50
0px
;
background
:
#fff
;
background
:
#fff
;
border-radius
:
4px
;
border-radius
:
4px
;
box-shadow
:
0px
3px
6px
rgba
(
0
,
0
,
0
,
0
.16
);
box-shadow
:
0px
3px
6px
rgba
(
0
,
0
,
0
,
0
.16
);
...
...
gassafety-web/src/components/PopWindowGis/troubleInfoWindowWarn.vue
View file @
38203c90
...
@@ -184,7 +184,7 @@ export default {
...
@@ -184,7 +184,7 @@ export default {
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.wrapper
{
.wrapper
{
width
:
406px
;
width
:
406px
;
max-height
:
43
0px
;
max-height
:
50
0px
;
background
:
#fff
;
background
:
#fff
;
border-radius
:
4px
;
border-radius
:
4px
;
box-shadow
:
0px
3px
6px
rgba
(
0
,
0
,
0
,
0
.16
);
box-shadow
:
0px
3px
6px
rgba
(
0
,
0
,
0
,
0
.16
);
...
...
gassafety-web/src/components/SizeSelect/index.vue
View file @
38203c90
...
@@ -4,9 +4,13 @@
...
@@ -4,9 +4,13 @@
<svg-icon
class-name=
"size-icon"
icon-class=
"size"
/>
<svg-icon
class-name=
"size-icon"
icon-class=
"size"
/>
</div>
</div>
<el-dropdown-menu
slot=
"dropdown"
>
<el-dropdown-menu
slot=
"dropdown"
>
<el-dropdown-item
v-for=
"item of sizeOptions"
:key=
"item.value"
:disabled=
"size===item.value"
:command=
"item.value"
>
<el-dropdown-item
{{
v-for=
"item of sizeOptions"
item
.
label
}}
:key=
"item.value"
:disabled=
"size === item.value"
:command=
"item.value"
>
{{
item
.
label
}}
</el-dropdown-item>
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown-menu>
</el-dropdown>
</el-dropdown>
...
@@ -17,41 +21,40 @@ export default {
...
@@ -17,41 +21,40 @@ export default {
data
()
{
data
()
{
return
{
return
{
sizeOptions
:
[
sizeOptions
:
[
{
label
:
'Default'
,
value
:
'default'
},
{
label
:
"Default"
,
value
:
"default"
},
{
label
:
'Medium'
,
value
:
'medium'
},
{
label
:
"Medium"
,
value
:
"medium"
},
{
label
:
'Small'
,
value
:
'small'
},
{
label
:
"Small"
,
value
:
"small"
},
{
label
:
'Mini'
,
value
:
'mini'
}
{
label
:
"Mini"
,
value
:
"mini"
},
]
]
,
}
}
;
},
},
computed
:
{
computed
:
{
size
()
{
size
()
{
return
this
.
$store
.
getters
.
size
return
this
.
$store
.
getters
.
size
;
}
}
,
},
},
methods
:
{
methods
:
{
handleSetSize
(
size
)
{
handleSetSize
(
size
)
{
this
.
$ELEMENT
.
size
=
size
this
.
$ELEMENT
.
size
=
size
;
this
.
$store
.
dispatch
(
'app/setSize'
,
size
)
this
.
$store
.
dispatch
(
"app/setSize"
,
size
);
this
.
refreshView
()
this
.
refreshView
()
;
this
.
$message
({
this
.
$message
({
message
:
'Switch Size Success'
,
message
:
"Switch Size Success"
,
type
:
'success'
type
:
"success"
,
})
})
;
},
},
refreshView
()
{
refreshView
()
{
// In order to make the cached page re-rendered
// In order to make the cached page re-rendered
this
.
$store
.
dispatch
(
'tagsView/delAllCachedViews'
,
this
.
$route
)
this
.
$store
.
dispatch
(
"tagsView/delAllCachedViews"
,
this
.
$route
);
const
{
fullPath
}
=
this
.
$route
const
{
fullPath
}
=
this
.
$route
;
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
$router
.
replace
({
this
.
$router
.
replace
({
path
:
'/redirect'
+
fullPath
path
:
"/redirect"
+
fullPath
,
})
});
})
});
}
},
}
},
};
}
</
script
>
</
script
>
gassafety-web/src/components/TopNav/index.vue
View file @
38203c90
...
@@ -7,7 +7,6 @@
...
@@ -7,7 +7,6 @@
<template
v-for=
"(item, index) in topMenus"
>
<template
v-for=
"(item, index) in topMenus"
>
<!--
<el-menu-item
:style=
"
{'--theme': theme}" :index="item.path" :key="index" v-if="index
<
visibleNumber
"
--
>
<!--
<el-menu-item
:style=
"
{'--theme': theme}" :index="item.path" :key="index" v-if="index
<
visibleNumber
"
--
>
<el-menu-item
<el-menu-item
:style=
""
:index=
"item.path"
:index=
"item.path"
:key=
"index"
:key=
"index"
v-if=
"index
<
visibleNumber
"
v-if=
"index
<
visibleNumber
"
...
@@ -20,10 +19,16 @@
...
@@ -20,10 +19,16 @@
</
template
>
</
template
>
<!-- 顶部菜单超出数量折叠 -->
<!-- 顶部菜单超出数量折叠 -->
<el-submenu
index=
"more"
v-if=
"topMenus.length > visibleNumber"
>
<!-- <div> -->
<el-submenu
class=
"onlyNavTio moreLise"
index=
"more"
v-if=
"topMenus.length > visibleNumber"
>
<
template
slot=
"title"
>
更多菜单
</
template
>
<
template
slot=
"title"
>
更多菜单
</
template
>
<
template
v-for=
"(item, index) in topMenus"
>
<
template
v-for=
"(item, index) in topMenus"
>
<el-menu-item
<el-menu-item
class=
"navTopBar"
:index=
"item.path"
:index=
"item.path"
:key=
"index"
:key=
"index"
v-if=
"index >= visibleNumber"
v-if=
"index >= visibleNumber"
...
@@ -32,6 +37,7 @@
...
@@ -32,6 +37,7 @@
>
>
</
template
>
</
template
>
</el-submenu>
</el-submenu>
<!-- </div> -->
</el-menu>
</el-menu>
</template>
</template>
...
@@ -225,6 +231,45 @@ export default {
...
@@ -225,6 +231,45 @@ export default {
}
}
}
}
// 》〉》〉》导航的样式调整
.navTopBar
{
// background-color: red !important;
width
:
110px
!
important
;
background-color
:
#053b6a
!
important
;
text-align
:
center
!
important
;
color
:
#fff
!
important
;
&
:hover
{
color
:
#fff
!
important
;
outline
:
none
;
background-image
:
url("../../assets/logo/item-background.png")
;
background-repeat
:
no-repeat
;
background-size
:
100%
100%
;
/* background: rgba(0, 0, 0, 0); */
color
:
#31eaea
!
important
;
}
}
.navTopBar
:focus
,
.navTopBar.is-active
{
outline
:
none
;
background-image
:
url("../../assets/logo/item-background.png")
;
background-repeat
:
no-repeat
;
background-size
:
100%
100%
;
/* background: rgba(0, 0, 0, 0); */
color
:
#31eaea
!
important
;
}
.el-menu--popup
{
z-index
:
100
;
min-width
:
120px
;
border
:
none
;
padding
:
5px
;
border-radius
:
2px
;
-webkit-box-shadow
:
0
2px
12px
0
rgb
(
0
0
0
/
10%
);
box-shadow
:
0
2px
12px
0
rgb
(
0
0
0
/
10%
);
background-color
:
#053b6a
;
}
// 》〉》〉》导航的样式
.el-menu--horizontal
>
.el-menu-item.is-active
{
.el-menu--horizontal
>
.el-menu-item.is-active
{
border-bottom
:
3px
solid
#{
"var(--theme)"
}
;
border-bottom
:
3px
solid
#{
"var(--theme)"
}
;
/* box-shadow: inset 2px 2px 20px #5CD9D4; */
/* box-shadow: inset 2px 2px 20px #5CD9D4; */
...
@@ -235,8 +280,8 @@ export default {
...
@@ -235,8 +280,8 @@ export default {
.el-menu--horizontal
>
.el-submenu
.el-submenu__title
{
.el-menu--horizontal
>
.el-submenu
.el-submenu__title
{
height
:
50px
!
important
;
height
:
50px
!
important
;
line-height
:
50px
!
important
;
line-height
:
50px
!
important
;
border
:none
!
important
;
border
:
none
!
important
;
margin-left
:
15px
;
margin-left
:
15px
;
}
}
.el-menu--horizontal
>
.el-menu-item
:not
(
.is-disabled
)
:hover
,
.el-menu--horizontal
>
.el-menu-item
:not
(
.is-disabled
)
:hover
,
.el-menu--horizontal
>
.el-menu-item
:not
(
.is-disabled
)
:focus
{
.el-menu--horizontal
>
.el-menu-item
:not
(
.is-disabled
)
:focus
{
...
@@ -258,8 +303,24 @@ export default {
...
@@ -258,8 +303,24 @@ export default {
rgba
(
0
,
0
,
0
,
0
)
100%
rgba
(
0
,
0
,
0
,
0
)
100%
);
);
}
}
.submenu-title-noDropdown
{
.submenu-title-noDropdown
{
color
:
rgb
(
5
59
106
)
!
important
;
color
:
rgb
(
5
59
106
)
!
important
;
font-weight
:
900
!
important
;
font-weight
:
900
!
important
;
}
}
.moreLise
{
// background-image: url("../../assets/logo/item-background.png") !important;
// background-size: 100% 123% !important;
&
.is-active
{
// background-image: url("../../assets/logo/item-background.png") !important;
background-size
:
100%
123%
!
important
;
}
.el-submenu__title
{
background-image
:
none
!
important
;
}
&
:hover
{
background-image
:
url("../../assets/logo/item-background.png")
;
background-size
:
100%
123%
;
}
// height: 100px;
}
</
style
>
</
style
>
gassafety-web/src/layout/components/Sidebar/SidebarItem.vue
View file @
38203c90
<
template
>
<
template
>
<div
v-if=
"!item.hidden"
>
<div
v-if=
"!item.hidden"
>
<template
v-if=
"hasOneShowingChild(item.children,item) && (!onlyOneChild.children||onlyOneChild.noShowingChildren)&&!item.alwaysShow"
>
<template
v-if=
"
hasOneShowingChild(item.children, item) &&
(!onlyOneChild.children || onlyOneChild.noShowingChildren) &&
!item.alwaysShow
"
>
<app-link
v-if=
"onlyOneChild.meta"
:to=
"resolvePath(onlyOneChild.path)"
>
<app-link
v-if=
"onlyOneChild.meta"
:to=
"resolvePath(onlyOneChild.path)"
>
<el-menu-item
:index=
"resolvePath(onlyOneChild.path)"
:class=
"
{'submenu-title-noDropdown':!isNest}">
<el-menu-item
<item
:icon=
"onlyOneChild.meta.icon||(item.meta&&item.meta.icon)"
/><br>
:index=
"resolvePath(onlyOneChild.path)"
:class=
"
{ 'submenu-title-noDropdown': !isNest }"
>
<item
:icon=
"onlyOneChild.meta.icon || (item.meta && item.meta.icon)"
/><br
/>
<!--
<item
:title=
"onlyOneChild.meta.title"
/>
-->
<!--
<item
:title=
"onlyOneChild.meta.title"
/>
-->
{{
onlyOneChild
.
meta
.
title
}}
{{
onlyOneChild
.
meta
.
title
}}
</el-menu-item>
</el-menu-item>
</app-link>
</app-link>
</
template
>
</
template
>
<el-submenu
v-else
ref=
"subMenu"
:index=
"resolvePath(item.path)"
popper-append-to-body
>
<el-submenu
v-else
ref=
"subMenu"
:index=
"resolvePath(item.path)"
popper-append-to-body
>
<
template
slot=
"title"
>
<
template
slot=
"title"
>
<item
v-if=
"item.meta"
:icon=
"item.meta && item.meta.icon"
:title=
"item.meta.title"
/>
<item
v-if=
"item.meta"
:icon=
"item.meta && item.meta.icon"
:title=
"item.meta.title"
/>
</
template
>
</
template
>
<sidebar-item
<sidebar-item
v-for=
"child in item.children"
v-for=
"child in item.children"
...
@@ -27,135 +47,142 @@
...
@@ -27,135 +47,142 @@
</template>
</template>
<
script
>
<
script
>
import
path
from
'path'
import
path
from
"path"
;
import
{
isExternal
}
from
'@/utils/validate'
import
{
isExternal
}
from
"@/utils/validate"
;
import
Item
from
'./Item'
import
Item
from
"./Item"
;
import
AppLink
from
'./Link'
import
AppLink
from
"./Link"
;
import
FixiOSBug
from
'./FixiOSBug'
import
FixiOSBug
from
"./FixiOSBug"
;
export
default
{
export
default
{
name
:
'SidebarItem'
,
name
:
"SidebarItem"
,
components
:
{
Item
,
AppLink
},
components
:
{
Item
,
AppLink
},
mixins
:
[
FixiOSBug
],
mixins
:
[
FixiOSBug
],
props
:
{
props
:
{
// route object
// route object
item
:
{
item
:
{
type
:
Object
,
type
:
Object
,
required
:
true
required
:
true
,
},
},
isNest
:
{
isNest
:
{
type
:
Boolean
,
type
:
Boolean
,
default
:
false
default
:
false
,
},
},
basePath
:
{
basePath
:
{
type
:
String
,
type
:
String
,
default
:
''
default
:
""
,
}
}
,
},
},
data
()
{
data
()
{
this
.
onlyOneChild
=
null
this
.
onlyOneChild
=
null
;
return
{}
return
{}
;
},
},
methods
:
{
methods
:
{
hasOneShowingChild
(
children
=
[],
parent
)
{
hasOneShowingChild
(
children
=
[],
parent
)
{
if
(
!
children
)
{
if
(
!
children
)
{
children
=
[];
children
=
[];
}
}
const
showingChildren
=
children
.
filter
(
item
=>
{
const
showingChildren
=
children
.
filter
(
(
item
)
=>
{
if
(
item
.
hidden
)
{
if
(
item
.
hidden
)
{
return
false
return
false
;
}
else
{
}
else
{
// Temp set(will be used if only has one showing child)
// Temp set(will be used if only has one showing child)
this
.
onlyOneChild
=
item
this
.
onlyOneChild
=
item
;
return
true
return
true
;
}
}
})
})
;
// When there is only one child router, the child router is displayed by default
// When there is only one child router, the child router is displayed by default
if
(
showingChildren
.
length
===
1
)
{
if
(
showingChildren
.
length
===
1
)
{
return
true
return
true
;
}
}
// Show parent if there are no child router to display
// Show parent if there are no child router to display
if
(
showingChildren
.
length
===
0
)
{
if
(
showingChildren
.
length
===
0
)
{
this
.
onlyOneChild
=
{
...
parent
,
path
:
''
,
noShowingChildren
:
true
}
this
.
onlyOneChild
=
{
...
parent
,
path
:
""
,
noShowingChildren
:
true
};
return
true
return
true
;
}
}
return
false
return
false
;
},
},
resolvePath
(
routePath
)
{
resolvePath
(
routePath
)
{
if
(
isExternal
(
routePath
))
{
if
(
isExternal
(
routePath
))
{
return
routePath
return
routePath
;
}
}
if
(
isExternal
(
this
.
basePath
))
{
if
(
isExternal
(
this
.
basePath
))
{
return
this
.
basePath
return
this
.
basePath
;
}
return
path
.
resolve
(
this
.
basePath
,
routePath
)
}
}
}
return
path
.
resolve
(
this
.
basePath
,
routePath
);
}
},
},
};
</
script
>
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
#app
.sidebar-container
.submenu-title-noDropdown
:hover
,
#app
.sidebar-container
.el-submenu__title
:hover
{
#app
.sidebar-container
.submenu-title-noDropdown
:hover
,
#app
.sidebar-container
.el-submenu__title
:hover
{
/* box-shadow: inset 2px 2px 20px #5CD9D4; */
/* box-shadow: inset 2px 2px 20px #5CD9D4; */
background
:
rgba
(
0
,
0
,
0
,
0
);
background
:
rgba
(
0
,
0
,
0
,
0
);
}
}
#app
.sidebar-container
.el-menu-item
,
#app
.sidebar-container
.el-submenu__title
{
#app
.sidebar-container
.el-menu-item
,
#app
.sidebar-container
.el-submenu__title
{
overflow
:
hidden
!
important
;
overflow
:
hidden
!
important
;
text-overflow
:
ellipsis
!
important
;
text-overflow
:
ellipsis
!
important
;
background
:
rgba
(
0
,
0
,
0
,
0
);
background
:
rgba
(
0
,
0
,
0
,
0
);
}
}
.el-menu-item
:hover
{
// 顶部导航的样式
.navbar
{
.el-menu-item
:hover
{
outline
:
none
;
outline
:
none
;
background-image
:
url("../../../assets/logo/item-background.png")
;
background-image
:
url("../../../assets/logo/item-background.png")
;
background-repeat
:
no-repeat
;
background-repeat
:
no-repeat
;
background-size
:
100%
100%
;
background-size
:
100%
100%
;
/* background: rgba(0, 0, 0, 0); */
/* background: rgba(0, 0, 0, 0); */
color
:
#31EAEA
!
important
;
color
:
#31eaea
!
important
;
}
}
.el-menu-item
:focus
,
.is-active
{
.el-menu-item
:focus
,
.is-active
{
outline
:
none
;
outline
:
none
;
background-image
:
url("../../../assets/logo/item-background.png")
;
background-image
:
url("../../../assets/logo/item-background.png")
;
background-repeat
:
no-repeat
;
background-repeat
:
no-repeat
;
background-size
:
100%
100%
;
background-size
:
100%
100%
;
/* background: rgba(0, 0, 0, 0); */
/* background: rgba(0, 0, 0, 0); */
color
:
#31
EAEA
!
important
;
color
:
#31
eaea
!
important
;
}
}
.el-menu--horizontal
>
.el-submenu
.el-submenu__title
:hover
{
.el-menu--horizontal
>
.el-submenu
.el-submenu__title
:hover
{
background-color
:
rgba
(
0
,
0
,
0
,
0
);
background-color
:
rgba
(
0
,
0
,
0
,
0
);
color
:
#fff
;
color
:
#fff
;
background-image
:
url("../../../assets/logo/item-background.png")
;
background-image
:
url("../../../assets/logo/item-background.png")
;
background-repeat
:
no-repeat
;
background-repeat
:
no-repeat
;
background-size
:
100%
100%
;
background-size
:
100%
100%
;
}
}
.el-menu--horizontal
>
.el-submenu
.el-submenu__title
{
.el-menu--horizontal
>
.el-submenu
.el-submenu__title
{
height
:
50px
!
important
;
height
:
50px
!
important
;
line-height
:
50px
!
important
;
line-height
:
50px
!
important
;
margin-top
:
15px
;
margin-top
:
15px
;
font-size
:
22px
;
font-size
:
22px
;
font-weight
:
600
;
font-weight
:
600
;
color
:
#fff
;
color
:
#fff
;
}
}
.el-menu--horizontal
>
.el-submenu
:focus
.el-submenu__title
,
.el-menu--horizontal
>
.el-submenu
:hover
.el-submenu__title
{
.el-menu--horizontal
>
.el-submenu
:focus
.el-submenu__title
,
.el-menu--horizontal
>
.el-submenu
:hover
.el-submenu__title
{
color
:
#fff
;
color
:
#fff
;
}
}
.el-menu--horizontal
>
.el-submenu.is-active
.el-submenu__title
{
.el-menu--horizontal
>
.el-submenu.is-active
.el-submenu__title
{
border-bottom
:
0px
solid
;
border-bottom
:
0px
solid
;
color
:
#fff
;
color
:
#fff
;
}
}
.el-submenu__title
i
{
.el-submenu__title
i
{
color
:
#fff
;
color
:
#fff
;
}
}
.el-menu--horizontal
.el-menu
.el-menu-item
,
.el-menu--horizontal
.el-menu
.el-submenu__title
{
.el-menu--horizontal
.el-menu
.el-menu-item
,
background-color
:
#053B6A
;
.el-menu--horizontal
.el-menu
.el-submenu__title
{
background-color
:
#053b6a
;
float
:
none
;
float
:
none
;
height
:
36px
;
height
:
36px
;
line-height
:
36px
;
line-height
:
36px
;
padding
:
0
;
padding
:
0
;
color
:
#fff
;
color
:
#fff
;
}
}
.el-menu--popup
{
.el-menu--popup
{
z-index
:
100
;
z-index
:
100
;
min-width
:
120px
;
min-width
:
120px
;
border
:
none
;
border
:
none
;
...
@@ -163,6 +190,9 @@ export default {
...
@@ -163,6 +190,9 @@ export default {
border-radius
:
2px
;
border-radius
:
2px
;
-webkit-box-shadow
:
0
2px
12px
0
rgb
(
0
0
0
/
10%
);
-webkit-box-shadow
:
0
2px
12px
0
rgb
(
0
0
0
/
10%
);
box-shadow
:
0
2px
12px
0
rgb
(
0
0
0
/
10%
);
box-shadow
:
0
2px
12px
0
rgb
(
0
0
0
/
10%
);
background-color
:
#053B6A
;
background-color
:
#053b6a
;
}
}
}
// 》〉》〉》〉顶部导航的样式
</
style
>
</
style
>
\ No newline at end of file
gassafety-web/src/utils/gaodeMap.js
View file @
38203c90
...
@@ -112,6 +112,10 @@ class gaodeMap {
...
@@ -112,6 +112,10 @@ class gaodeMap {
this
.
view
.
drawerOpacity
=
true
;
this
.
view
.
drawerOpacity
=
true
;
}
}
}
}
// 每次地图移动结束,就让地图可以缩放
let
options
=
this
.
myMap
.
getStatus
();
options
.
scrollWheel
=
true
;
this
.
myMap
.
setStatus
(
options
);
});
});
this
.
districtBoundaries
();
this
.
districtBoundaries
();
...
@@ -587,7 +591,10 @@ class gaodeMap {
...
@@ -587,7 +591,10 @@ class gaodeMap {
// 当选择的是新建的时候,线是点不了的
// 当选择的是新建的时候,线是点不了的
if
(
this
.
lineType
==
1
||
this
.
view
.
targetNum
==
1
)
return
;
if
(
this
.
lineType
==
1
||
this
.
view
.
targetNum
==
1
)
return
;
if
((
this
.
view
.
targetNum
==
2
||
this
.
view
.
targetNum
==
3
)
&&
e
.
type
==
"mouseover"
){
if
(
(
this
.
view
.
targetNum
==
2
||
this
.
view
.
targetNum
==
3
)
&&
e
.
type
==
"mouseover"
)
{
this
.
polyLinesColorClear
(
polyline
);
this
.
polyLinesColorClear
(
polyline
);
}
}
// 上方导航的高
// 上方导航的高
...
...
gassafety-web/src/utils/gaodeMapView.js
View file @
38203c90
...
@@ -117,6 +117,7 @@ class gaodeMap {
...
@@ -117,6 +117,7 @@ class gaodeMap {
if
(
this
.
handleInfoWindowOpenFunc
)
{
if
(
this
.
handleInfoWindowOpenFunc
)
{
this
.
handleInfoWindowOpenFunc
();
this
.
handleInfoWindowOpenFunc
();
this
.
handleInfoWindowOpenFunc
=
null
;
this
.
handleInfoWindowOpenFunc
=
null
;
this
.
leftListClick
=
false
;
}
}
// 刚进入页面的时候只调用一次,让左侧的抽屉在地图移动完之后显示
// 刚进入页面的时候只调用一次,让左侧的抽屉在地图移动完之后显示
...
...
gassafety-web/src/views/dataMonitoring/deviceAlarm/index.vue
View file @
38203c90
...
@@ -71,7 +71,7 @@
...
@@ -71,7 +71,7 @@
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<el-table
v-loading=
"loading"
:data=
"deviceAlarmList
.slice((pageNum-1)*pageSize,pageNum*pageSize)
"
@
selection-change=
"handleSelectionChange"
>
<el-table
v-loading=
"loading"
:data=
"deviceAlarmList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
label=
"设备名称"
align=
"center"
prop=
"deviceName"
width=
"280px"
/>
<el-table-column
label=
"设备名称"
align=
"center"
prop=
"deviceName"
width=
"280px"
/>
<el-table-column
label=
"设备编号"
align=
"center"
prop=
"deviceCode"
width=
"240px"
/>
<el-table-column
label=
"设备编号"
align=
"center"
prop=
"deviceCode"
width=
"240px"
/>
<el-table-column
label=
"设备类型"
align=
"center"
prop=
"deviceType"
/>
<el-table-column
label=
"设备类型"
align=
"center"
prop=
"deviceType"
/>
...
@@ -120,8 +120,8 @@
...
@@ -120,8 +120,8 @@
<pagination
<pagination
v-show=
"total>0"
v-show=
"total>0"
:total=
"total"
:total=
"total"
:page
.
sync=
"pageNum"
:page
.
sync=
"
queryParams.
pageNum"
:limit
.
sync=
"pageSize"
:limit
.
sync=
"
queryParams.
pageSize"
@
pagination=
"getList"
/>
@
pagination=
"getList"
/>
<!-- 添加工单信息对话框 -->
<!-- 添加工单信息对话框 -->
...
@@ -187,8 +187,6 @@ export default {
...
@@ -187,8 +187,6 @@ export default {
showSearch
:
true
,
showSearch
:
true
,
// 总条数
// 总条数
total
:
0
,
total
:
0
,
pageNum
:
1
,
pageSize
:
10
,
// 报警信息表格数据
// 报警信息表格数据
deviceAlarmList
:
[],
deviceAlarmList
:
[],
// 报警类型字典
// 报警类型字典
...
@@ -212,6 +210,8 @@ export default {
...
@@ -212,6 +210,8 @@ export default {
open
:
false
,
open
:
false
,
// 查询参数
// 查询参数
queryParams
:
{
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
deviceCode
:
null
,
deviceCode
:
null
,
orderId
:
null
,
orderId
:
null
,
alarmType
:
null
,
alarmType
:
null
,
...
@@ -292,7 +292,7 @@ export default {
...
@@ -292,7 +292,7 @@ export default {
},
},
/** 搜索按钮操作 */
/** 搜索按钮操作 */
handleQuery
()
{
handleQuery
()
{
this
.
pageNum
=
1
;
this
.
queryParams
.
pageNum
=
1
;
this
.
getList
();
this
.
getList
();
},
},
/** 重置按钮操作 */
/** 重置按钮操作 */
...
...
gassafety-web/src/views/dataMonitoring/realtimeData/index.vue
View file @
38203c90
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<el-table
v-loading=
"loading"
:data=
"dataList
.slice((pageNum-1)*pageSize,pageNum*pageSize)
"
@
selection-change=
"handleSelectionChange"
>
<el-table
v-loading=
"loading"
:data=
"dataList"
@
selection-change=
"handleSelectionChange"
>
<!--
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
-->
<!--
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
-->
<el-table-column
label=
"设备名称"
align=
"center"
prop=
"deviceName"
/>
<el-table-column
label=
"设备名称"
align=
"center"
prop=
"deviceName"
/>
<el-table-column
label=
"设备编号"
align=
"center"
prop=
"deviceCode"
/>
<el-table-column
label=
"设备编号"
align=
"center"
prop=
"deviceCode"
/>
...
@@ -62,8 +62,8 @@
...
@@ -62,8 +62,8 @@
<pagination
<pagination
v-show=
"total>0"
v-show=
"total>0"
:total=
"total"
:total=
"total"
:page
.
sync=
"pageNum"
:page
.
sync=
"
queryParams.
pageNum"
:limit
.
sync=
"pageSize"
:limit
.
sync=
"
queryParams.
pageSize"
@
pagination=
"getList"
@
pagination=
"getList"
/>
/>
...
@@ -93,8 +93,6 @@ export default {
...
@@ -93,8 +93,6 @@ export default {
showSearch
:
true
,
showSearch
:
true
,
// 总条数
// 总条数
total
:
0
,
total
:
0
,
pageNum
:
1
,
pageSize
:
10
,
// 设备监控表格数据
// 设备监控表格数据
dataList
:
[],
dataList
:
[],
// 处理状态字典
// 处理状态字典
...
@@ -108,6 +106,8 @@ export default {
...
@@ -108,6 +106,8 @@ export default {
open
:
false
,
open
:
false
,
// 查询参数
// 查询参数
queryParams
:
{
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
deviceNum
:
null
,
deviceNum
:
null
,
standardConditionAccumulation
:
null
,
standardConditionAccumulation
:
null
,
workingConditionAccumulation
:
null
,
workingConditionAccumulation
:
null
,
...
@@ -134,6 +134,7 @@ export default {
...
@@ -134,6 +134,7 @@ export default {
/** 查询设备监控列表 */
/** 查询设备监控列表 */
getList
()
{
getList
()
{
this
.
loading
=
true
;
this
.
loading
=
true
;
console
.
log
();
realtimeData
(
this
.
queryParams
).
then
(
response
=>
{
realtimeData
(
this
.
queryParams
).
then
(
response
=>
{
this
.
dataList
=
response
.
rows
;
this
.
dataList
=
response
.
rows
;
this
.
total
=
response
.
total
;
this
.
total
=
response
.
total
;
...
@@ -167,7 +168,7 @@ export default {
...
@@ -167,7 +168,7 @@ export default {
},
},
/** 搜索按钮操作 */
/** 搜索按钮操作 */
handleQuery
()
{
handleQuery
()
{
this
.
pageNum
=
1
;
this
.
queryParams
.
pageNum
=
1
;
this
.
getList
();
this
.
getList
();
},
},
/** 重置按钮操作 */
/** 重置按钮操作 */
...
...
gassafety-web/src/views/dataMonitoring/reportData/index.vue
View file @
38203c90
...
@@ -47,7 +47,7 @@
...
@@ -47,7 +47,7 @@
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<el-table
v-loading=
"loading"
:data=
"dataList
.slice((pageNum-1)*pageSize,pageNum*pageSize)
"
@
selection-change=
"handleSelectionChange"
>
<el-table
v-loading=
"loading"
:data=
"dataList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
label=
"设备名称"
align=
"center"
prop=
"deviceName"
/>
<el-table-column
label=
"设备名称"
align=
"center"
prop=
"deviceName"
/>
<el-table-column
label=
"设备编号"
align=
"center"
prop=
"deviceCode"
/>
<el-table-column
label=
"设备编号"
align=
"center"
prop=
"deviceCode"
/>
<el-table-column
label=
"设备类型"
align=
"center"
prop=
"deviceType"
>
<el-table-column
label=
"设备类型"
align=
"center"
prop=
"deviceType"
>
...
@@ -71,8 +71,8 @@
...
@@ -71,8 +71,8 @@
<pagination
<pagination
v-show=
"total>0"
v-show=
"total>0"
:total=
"total"
:total=
"total"
:page
.
sync=
"pageNum"
:page
.
sync=
"
queryParams.
pageNum"
:limit
.
sync=
"pageSize"
:limit
.
sync=
"
queryParams.
pageSize"
@
pagination=
"getList"
@
pagination=
"getList"
/>
/>
...
@@ -102,8 +102,6 @@ export default {
...
@@ -102,8 +102,6 @@ export default {
showSearch
:
true
,
showSearch
:
true
,
// 总条数
// 总条数
total
:
0
,
total
:
0
,
pageNum
:
1
,
pageSize
:
10
,
// 设备监控表格数据
// 设备监控表格数据
dataList
:
[],
dataList
:
[],
// 处理状态字典
// 处理状态字典
...
@@ -117,6 +115,8 @@ export default {
...
@@ -117,6 +115,8 @@ export default {
open
:
false
,
open
:
false
,
// 查询参数
// 查询参数
queryParams
:
{
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
deviceNum
:
null
,
deviceNum
:
null
,
standardConditionAccumulation
:
null
,
standardConditionAccumulation
:
null
,
workingConditionAccumulation
:
null
,
workingConditionAccumulation
:
null
,
...
@@ -178,7 +178,7 @@ export default {
...
@@ -178,7 +178,7 @@ export default {
},
},
/** 搜索按钮操作 */
/** 搜索按钮操作 */
handleQuery
()
{
handleQuery
()
{
this
.
pageNum
=
1
;
this
.
queryParams
.
pageNum
=
1
;
this
.
getList
();
this
.
getList
();
},
},
/** 重置按钮操作 */
/** 重置按钮操作 */
...
...
gassafety-web/src/views/device/deviceInfo/index.vue
View file @
38203c90
...
@@ -82,7 +82,7 @@
...
@@ -82,7 +82,7 @@
<right-toolbar
:showSearch
.
sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
<right-toolbar
:showSearch
.
sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
</el-row>
</el-row>
<el-table
v-loading=
"loading"
:data=
"deviceInfoList
.slice((pageNum-1)*pageSize,pageNum*pageSize)
"
@
selection-change=
"handleSelectionChange"
>
<el-table
v-loading=
"loading"
:data=
"deviceInfoList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
label=
"设备名称"
align=
"center"
prop=
"deviceName"
width=
"240px"
/>
<el-table-column
label=
"设备名称"
align=
"center"
prop=
"deviceName"
width=
"240px"
/>
<el-table-column
label=
"所属管道"
align=
"center"
prop=
"pipeName"
width=
"240px"
/>
<el-table-column
label=
"所属管道"
align=
"center"
prop=
"pipeName"
width=
"240px"
/>
<el-table-column
label=
"设备编号"
align=
"center"
prop=
"deviceCode"
width=
"240px"
/>
<el-table-column
label=
"设备编号"
align=
"center"
prop=
"deviceCode"
width=
"240px"
/>
...
@@ -133,8 +133,8 @@
...
@@ -133,8 +133,8 @@
<pagination
<pagination
v-show=
"total>0"
v-show=
"total>0"
:total=
"total"
:total=
"total"
:page
.
sync=
"pageNum"
:page
.
sync=
"
queryParams.
pageNum"
:limit
.
sync=
"pageSize"
:limit
.
sync=
"
queryParams.
pageSize"
@
pagination=
"getList"
@
pagination=
"getList"
/>
/>
...
@@ -314,8 +314,6 @@
...
@@ -314,8 +314,6 @@
showSearch
:
true
,
showSearch
:
true
,
// 总条数
// 总条数
total
:
0
,
total
:
0
,
pageNum
:
1
,
pageSize
:
10
,
// 设备信息表格数据
// 设备信息表格数据
deviceInfoList
:
[],
deviceInfoList
:
[],
// 弹出层标题
// 弹出层标题
...
@@ -333,6 +331,8 @@
...
@@ -333,6 +331,8 @@
typeOptions
:
[],
typeOptions
:
[],
// 查询参数
// 查询参数
queryParams
:
{
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
enterpriseId
:
null
,
enterpriseId
:
null
,
deviceName
:
null
,
deviceName
:
null
,
deviceCode
:
null
,
deviceCode
:
null
,
...
@@ -459,7 +459,7 @@
...
@@ -459,7 +459,7 @@
},
},
/** 搜索按钮操作 */
/** 搜索按钮操作 */
handleQuery
()
{
handleQuery
()
{
this
.
pageNum
=
1
;
this
.
queryParams
.
pageNum
=
1
;
this
.
getList
();
this
.
getList
();
},
},
/** 重置按钮操作 */
/** 重置按钮操作 */
...
...
gassafety-web/src/views/device/devicemonitor/index.vue
View file @
38203c90
...
@@ -118,7 +118,7 @@
...
@@ -118,7 +118,7 @@
<right-toolbar
:showSearch
.
sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
<right-toolbar
:showSearch
.
sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
</el-row>
</el-row>
<el-table
v-loading=
"loading"
:data=
"deviceList
.slice((pageNum-1)*pageSize,pageNum*pageSize)
"
@
selection-change=
"handleSelectionChange"
>
<el-table
v-loading=
"loading"
:data=
"deviceList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
label=
"设备监控id"
align=
"center"
prop=
"monitorId"
/>
<el-table-column
label=
"设备监控id"
align=
"center"
prop=
"monitorId"
/>
<el-table-column
label=
"设备"
align=
"center"
prop=
"deviceName"
/>
<el-table-column
label=
"设备"
align=
"center"
prop=
"deviceName"
/>
...
@@ -150,8 +150,8 @@
...
@@ -150,8 +150,8 @@
<pagination
<pagination
v-show=
"total>0"
v-show=
"total>0"
:total=
"total"
:total=
"total"
:page
.
sync=
"pageNum"
:page
.
sync=
"
queryParams.
pageNum"
:limit
.
sync=
"pageSize"
:limit
.
sync=
"
queryParams.
pageSize"
@
pagination=
"getList"
@
pagination=
"getList"
/>
/>
...
@@ -295,8 +295,6 @@ export default {
...
@@ -295,8 +295,6 @@ export default {
showSearch
:
true
,
showSearch
:
true
,
// 总条数
// 总条数
total
:
0
,
total
:
0
,
pageNum
:
1
,
pageSize
:
10
,
// 设备监控表格数据
// 设备监控表格数据
deviceList
:
[],
deviceList
:
[],
// 弹出层标题
// 弹出层标题
...
@@ -305,6 +303,8 @@ export default {
...
@@ -305,6 +303,8 @@ export default {
open
:
false
,
open
:
false
,
// 查询参数
// 查询参数
queryParams
:
{
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
deviceId
:
null
,
deviceId
:
null
,
deviceThreshold
:
null
,
deviceThreshold
:
null
,
relationPipeId
:
null
,
relationPipeId
:
null
,
...
@@ -362,7 +362,7 @@ export default {
...
@@ -362,7 +362,7 @@ export default {
},
},
/** 搜索按钮操作 */
/** 搜索按钮操作 */
handleQuery
()
{
handleQuery
()
{
this
.
pageNum
=
1
;
this
.
queryParams
.
pageNum
=
1
;
this
.
getList
();
this
.
getList
();
},
},
/** 重置按钮操作 */
/** 重置按钮操作 */
...
...
gassafety-web/src/views/device/map/index.vue
View file @
38203c90
...
@@ -777,7 +777,6 @@ export default {
...
@@ -777,7 +777,6 @@ export default {
iten
.
infoPath
=
[
a
.
toFixed
(
6
),
b
.
toFixed
(
6
)];
iten
.
infoPath
=
[
a
.
toFixed
(
6
),
b
.
toFixed
(
6
)];
}
else
{
}
else
{
path
=
[
iten
.
path
[
0
],
iten
.
path
[
1
]
-
0.06
];
path
=
[
iten
.
path
[
0
],
iten
.
path
[
1
]
-
0.06
];
}
}
this
.
gaoMap
.
panTo
(
path
);
this
.
gaoMap
.
panTo
(
path
);
}
}
...
@@ -838,7 +837,7 @@ export default {
...
@@ -838,7 +837,7 @@ export default {
lnglat
:
iten
.
path
,
lnglat
:
iten
.
path
,
};
};
// 如果是原地不动,就直接执行
// 如果是原地不动,就直接执行
if
(
iten
.
path
[
0
]
==
lng
&&
iten
.
path
[
1
]
>=
(
lat
+
0.06
)
-
0.000001
)
{
if
(
iten
.
path
[
0
]
==
lng
&&
iten
.
path
[
1
]
>=
lat
+
0.06
-
0.000001
)
{
console
.
log
(
"9999999999"
);
console
.
log
(
"9999999999"
);
this
.
gaoMap
.
infoOpen
(
e
);
this
.
gaoMap
.
infoOpen
(
e
);
return
;
return
;
...
@@ -1231,10 +1230,10 @@ input[type="radio"] {
...
@@ -1231,10 +1230,10 @@ input[type="radio"] {
// border-right: none;
// border-right: none;
flex
:
1
;
flex
:
1
;
text-align
:
center
;
text-align
:
center
;
margin-left
:
10px
;
margin-left
:
10px
;
}
}
.code
{
.code
{
width
:
1
12
px
;
width
:
1
00
px
;
text-align
:
center
;
text-align
:
center
;
}
}
}
}
...
...
gassafety-web/src/views/device/pipe/index.vue
View file @
38203c90
...
@@ -82,7 +82,7 @@
...
@@ -82,7 +82,7 @@
<right-toolbar
:showSearch
.
sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
<right-toolbar
:showSearch
.
sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
</el-row>
</el-row>
<el-table
v-loading=
"loading"
:data=
"pipeList
.slice((pageNum-1)*pageSize,pageNum*pageSize)
"
@
selection-change=
"handleSelectionChange"
>
<el-table
v-loading=
"loading"
:data=
"pipeList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
label=
"管道名称"
align=
"center"
prop=
"pipeName"
width=
"280px"
/>
<el-table-column
label=
"管道名称"
align=
"center"
prop=
"pipeName"
width=
"280px"
/>
<el-table-column
label=
"管道编号"
align=
"center"
prop=
"pipeCode"
width=
"240px"
/>
<el-table-column
label=
"管道编号"
align=
"center"
prop=
"pipeCode"
width=
"240px"
/>
<el-table-column
label=
"管道类型"
align=
"center"
prop=
"pipeType"
>
<el-table-column
label=
"管道类型"
align=
"center"
prop=
"pipeType"
>
...
@@ -138,8 +138,8 @@
...
@@ -138,8 +138,8 @@
<pagination
<pagination
v-show=
"total>0"
v-show=
"total>0"
:total=
"total"
:total=
"total"
:page
.
sync=
"pageNum"
:page
.
sync=
"
queryParams.
pageNum"
:limit
.
sync=
"pageSize"
:limit
.
sync=
"
queryParams.
pageSize"
@
pagination=
"getList"
@
pagination=
"getList"
/>
/>
...
@@ -274,8 +274,6 @@
...
@@ -274,8 +274,6 @@
showSearch
:
true
,
showSearch
:
true
,
// 总条数
// 总条数
total
:
0
,
total
:
0
,
pageNum
:
1
,
pageSize
:
10
,
// 管道信息表格数据
// 管道信息表格数据
pipeList
:
[],
pipeList
:
[],
// 弹出层标题
// 弹出层标题
...
@@ -294,6 +292,8 @@
...
@@ -294,6 +292,8 @@
pressureOptions
:
[],
pressureOptions
:
[],
// 查询参数
// 查询参数
queryParams
:
{
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
enterpriseId
:
null
,
enterpriseId
:
null
,
pipeName
:
null
,
pipeName
:
null
,
pipeAddr
:
null
,
pipeAddr
:
null
,
...
@@ -410,7 +410,7 @@
...
@@ -410,7 +410,7 @@
},
},
/** 搜索按钮操作 */
/** 搜索按钮操作 */
handleQuery
()
{
handleQuery
()
{
this
.
pageNum
=
1
;
this
.
queryParams
.
pageNum
=
1
;
this
.
getList
();
this
.
getList
();
},
},
/** 重置按钮操作 */
/** 重置按钮操作 */
...
...
gassafety-web/src/views/deviceInspection/inspectionPlan/index.vue
View file @
38203c90
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
<right-toolbar
:showSearch
.
sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
<right-toolbar
:showSearch
.
sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
</el-row>
</el-row>
<el-table
v-loading=
"loading"
:data=
"inspectionPlanList
.slice((pageNum-1)*pageSize,pageNum*pageSize)
"
@
selection-change=
"handleSelectionChange"
>
<el-table
v-loading=
"loading"
:data=
"inspectionPlanList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
label=
"序号"
type=
"index"
align=
"center"
prop=
"planName"
/>
<el-table-column
label=
"序号"
type=
"index"
align=
"center"
prop=
"planName"
/>
<el-table-column
label=
"巡检计划名称"
align=
"center"
prop=
"planName"
/>
<el-table-column
label=
"巡检计划名称"
align=
"center"
prop=
"planName"
/>
<el-table-column
label=
"计划时间"
align=
"center"
prop=
"startTime"
width=
"280"
>
<el-table-column
label=
"计划时间"
align=
"center"
prop=
"startTime"
width=
"280"
>
...
@@ -108,8 +108,8 @@
...
@@ -108,8 +108,8 @@
<
pagination
<
pagination
v
-
show
=
"total>0"
v
-
show
=
"total>0"
:
total
=
"total"
:
total
=
"total"
:
page
.
sync
=
"pageNum"
:
page
.
sync
=
"
queryParams.
pageNum"
:
limit
.
sync
=
"pageSize"
:
limit
.
sync
=
"
queryParams.
pageSize"
@
pagination
=
"getList"
@
pagination
=
"getList"
/>
/>
...
@@ -234,8 +234,6 @@
...
@@ -234,8 +234,6 @@
showSearch
:
true
,
showSearch
:
true
,
// 总条数
// 总条数
total
:
0
,
total
:
0
,
pageNum
:
1
,
pageSize
:
10
,
// 巡检计划表格数据
// 巡检计划表格数据
inspectionPlanList
:
[],
inspectionPlanList
:
[],
// 计划状态字典
// 计划状态字典
...
@@ -261,6 +259,8 @@
...
@@ -261,6 +259,8 @@
open2
:
false
,
open2
:
false
,
// 查询参数
// 查询参数
queryParams
:
{
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
planName
:
null
,
planName
:
null
,
orderId
:
null
,
orderId
:
null
,
startTime
:
null
,
startTime
:
null
,
...
@@ -373,7 +373,7 @@
...
@@ -373,7 +373,7 @@
}
,
}
,
/** 搜索按钮操作 */
/** 搜索按钮操作 */
handleQuery
()
{
handleQuery
()
{
this
.
pageNum
=
1
;
this
.
queryParams
.
pageNum
=
1
;
this
.
getList
();
this
.
getList
();
}
,
}
,
/** 重置按钮操作 */
/** 重置按钮操作 */
...
...
gassafety-web/src/views/enterprise/mapView/components/RightBototmData.vue
View file @
38203c90
...
@@ -28,9 +28,10 @@
...
@@ -28,9 +28,10 @@
style=
"width: 100%"
style=
"width: 100%"
height=
"170"
height=
"170"
>
>
<el-table-column
prop=
"deviceCode"
label=
"编号"
width=
"100"
>
<el-table-column
prop=
"deviceCode"
label=
"设备编号"
width=
"100"
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"deviceName"
label=
"名称"
width=
""
>
<el-table-column
prop=
"deviceName"
label=
"
设备
名称"
width=
""
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"alarmType"
label=
"报警类型"
width=
"80"
>
<el-table-column
prop=
"alarmType"
label=
"报警类型"
width=
"80"
>
</el-table-column>
</el-table-column>
...
@@ -270,7 +271,7 @@ export default {
...
@@ -270,7 +271,7 @@ export default {
flex-wrap
:
wrap
;
flex-wrap
:
wrap
;
// justify-content: space-between;
// justify-content: space-between;
align-content
:
flex-start
;
align-content
:
flex-start
;
margin-top
:
7px
;
//
margin-top: 7px;
&
>
.right-content
{
&
>
.right-content
{
background-color
:
#fff
;
background-color
:
#fff
;
width
:
238px
;
width
:
238px
;
...
...
gassafety-web/src/views/enterprise/mapView/index.vue
View file @
38203c90
...
@@ -603,8 +603,9 @@ export default {
...
@@ -603,8 +603,9 @@ export default {
item
;
item
;
// 获取polyLine
// 获取polyLine
const
device
=
this
.
gaoMap
.
markers
.
filter
((
item
)
=>
{
const
device
=
this
.
gaoMap
.
markers
.
filter
((
item
)
=>
{
const
id
=
item
.
getExtData
().
deviceId
;
const
{
deviceId
:
id
,
troubleId
}
=
item
.
getExtData
();
return
deviceId
==
id
;
// 因为隐患也有 deviceId,为了防止隐患直接遍成报警状态,所以要排除隐患,没有troubleId的就不是隐患
return
!
troubleId
&&
deviceId
==
id
;
})[
0
];
})[
0
];
if
(
device
)
{
if
(
device
)
{
const
options
=
device
.
getExtData
();
const
options
=
device
.
getExtData
();
...
@@ -1636,7 +1637,6 @@ input[type="radio"] {
...
@@ -1636,7 +1637,6 @@ input[type="radio"] {
color
:
#053b6a
;
color
:
#053b6a
;
font-weight
:
600
;
font-weight
:
600
;
}
}
}
}
.deviceList
{
.deviceList
{
cursor
:
pointer
;
cursor
:
pointer
;
...
@@ -1667,7 +1667,6 @@ input[type="radio"] {
...
@@ -1667,7 +1667,6 @@ input[type="radio"] {
white-space
:
nowrap
;
white-space
:
nowrap
;
// border-right: 1px solid #cccccc;
// border-right: 1px solid #cccccc;
}
}
}
}
.no
{
.no
{
width
:
25px
;
width
:
25px
;
...
@@ -1677,10 +1676,10 @@ input[type="radio"] {
...
@@ -1677,10 +1676,10 @@ input[type="radio"] {
// border-right: none;
// border-right: none;
flex
:
1
;
flex
:
1
;
text-align
:
center
;
text-align
:
center
;
margin-left
:
10px
;
margin-left
:
10px
;
}
}
.code
{
.code
{
width
:
1
12
px
;
width
:
1
00
px
;
text-align
:
center
;
text-align
:
center
;
}
}
}
}
...
...
gassafety-web/src/views/riskManagement/hiddenTrouble/index.vue
View file @
38203c90
...
@@ -67,7 +67,7 @@
...
@@ -67,7 +67,7 @@
<right-toolbar
:showSearch
.
sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
<right-toolbar
:showSearch
.
sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
</el-row>
</el-row>
<el-table
v-loading=
"loading"
:data=
"hiddenTroubleList
.slice((pageNum-1)*pageSize,pageNum*pageSize)
"
@
selection-change=
"handleSelectionChange"
>
<el-table
v-loading=
"loading"
:data=
"hiddenTroubleList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
label=
"隐患名称"
align=
"center"
prop=
"troubleName"
width=
"400px"
/>
<el-table-column
label=
"隐患名称"
align=
"center"
prop=
"troubleName"
width=
"400px"
/>
<el-table-column
label=
"隐患类型"
align=
"center"
prop=
"troubleType"
>
<el-table-column
label=
"隐患类型"
align=
"center"
prop=
"troubleType"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
...
@@ -142,8 +142,8 @@
...
@@ -142,8 +142,8 @@
<pagination
<pagination
v-show=
"total>0"
v-show=
"total>0"
:total=
"total"
:total=
"total"
:page
.
sync=
"pageNum"
:page
.
sync=
"
queryParams.
pageNum"
:limit
.
sync=
"pageSize"
:limit
.
sync=
"
queryParams.
pageSize"
@
pagination=
"getList"
@
pagination=
"getList"
/>
/>
...
@@ -325,8 +325,6 @@ export default {
...
@@ -325,8 +325,6 @@ export default {
showSearch
:
true
,
showSearch
:
true
,
// 总条数
// 总条数
total
:
0
,
total
:
0
,
pageNum
:
1
,
pageSize
:
10
,
// 隐患信息表格数据
// 隐患信息表格数据
hiddenTroubleList
:
[],
hiddenTroubleList
:
[],
// 隐患类型字典
// 隐患类型字典
...
@@ -368,6 +366,8 @@ export default {
...
@@ -368,6 +366,8 @@ export default {
open2
:
false
,
open2
:
false
,
// 查询参数
// 查询参数
queryParams
:
{
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
troubleName
:
null
,
troubleName
:
null
,
troubleType
:
null
,
troubleType
:
null
,
deviceId
:
null
,
deviceId
:
null
,
...
@@ -532,7 +532,7 @@ export default {
...
@@ -532,7 +532,7 @@ export default {
},
},
/** 搜索按钮操作 */
/** 搜索按钮操作 */
handleQuery
()
{
handleQuery
()
{
this
.
pageNum
=
1
;
this
.
queryParams
.
pageNum
=
1
;
this
.
getList
();
this
.
getList
();
},
},
/** 重置按钮操作 */
/** 重置按钮操作 */
...
...
gassafety-web/src/views/workOrder/basicsInfo/index.vue
View file @
38203c90
...
@@ -57,7 +57,7 @@
...
@@ -57,7 +57,7 @@
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<el-table
v-loading=
"loading"
:data=
"basicsInfoList
.slice((pageNum-1)*pageSize,pageNum*pageSize)
"
@
selection-change=
"handleSelectionChange"
>
<el-table
v-loading=
"loading"
:data=
"basicsInfoList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
label=
"工单编号"
align=
"center"
prop=
"orderId"
/>
<el-table-column
label=
"工单编号"
align=
"center"
prop=
"orderId"
/>
<el-table-column
label=
"工单名称"
align=
"center"
prop=
"orderName"
width=
"350px"
/>
<el-table-column
label=
"工单名称"
align=
"center"
prop=
"orderName"
width=
"350px"
/>
<el-table-column
label=
"工单类型"
align=
"center"
prop=
"orderType"
>
<el-table-column
label=
"工单类型"
align=
"center"
prop=
"orderType"
>
...
@@ -118,8 +118,8 @@
...
@@ -118,8 +118,8 @@
<pagination
<pagination
v-show=
"total>0"
v-show=
"total>0"
:total=
"total"
:total=
"total"
:page
.
sync=
"pageNum"
:page
.
sync=
"
queryParams.
pageNum"
:limit
.
sync=
"pageSize"
:limit
.
sync=
"
queryParams.
pageSize"
@
pagination=
"getList"
@
pagination=
"getList"
/>
/>
...
@@ -194,8 +194,6 @@ export default {
...
@@ -194,8 +194,6 @@ export default {
showSearch
:
true
,
showSearch
:
true
,
// 总条数
// 总条数
total
:
0
,
total
:
0
,
pageNum
:
1
,
pageSize
:
10
,
// 工单基础信息表格数据
// 工单基础信息表格数据
basicsInfoList
:
[],
basicsInfoList
:
[],
// 弹出层标题
// 弹出层标题
...
@@ -212,6 +210,8 @@ export default {
...
@@ -212,6 +210,8 @@ export default {
ordertypeOptions
:
[],
ordertypeOptions
:
[],
// 查询参数
// 查询参数
queryParams
:
{
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
orderId
:
null
,
orderId
:
null
,
orderType
:
null
,
orderType
:
null
,
orderName
:
null
,
orderName
:
null
,
...
@@ -286,7 +286,7 @@ export default {
...
@@ -286,7 +286,7 @@ export default {
},
},
/** 搜索按钮操作 */
/** 搜索按钮操作 */
handleQuery
()
{
handleQuery
()
{
this
.
pageNum
=
1
;
this
.
queryParams
.
pageNum
=
1
;
this
.
getList
();
this
.
getList
();
},
},
/** 重置按钮操作 */
/** 重置按钮操作 */
...
...
gassafety-web/src/views/workOrder/feedback/index.vue
View file @
38203c90
...
@@ -57,7 +57,7 @@
...
@@ -57,7 +57,7 @@
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<el-table
v-loading=
"loading"
:data=
"basicsInfoList
.slice((pageNum-1)*pageSize,pageNum*pageSize)
"
@
selection-change=
"handleSelectionChange"
>
<el-table
v-loading=
"loading"
:data=
"basicsInfoList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
label=
"工单编号"
align=
"center"
prop=
"orderId"
/>
<el-table-column
label=
"工单编号"
align=
"center"
prop=
"orderId"
/>
<el-table-column
label=
"工单名称"
align=
"center"
prop=
"orderName"
width=
"350px"
/>
<el-table-column
label=
"工单名称"
align=
"center"
prop=
"orderName"
width=
"350px"
/>
<el-table-column
label=
"工单类型"
align=
"center"
prop=
"orderType"
>
<el-table-column
label=
"工单类型"
align=
"center"
prop=
"orderType"
>
...
@@ -117,8 +117,8 @@
...
@@ -117,8 +117,8 @@
<pagination
<pagination
v-show=
"total>0"
v-show=
"total>0"
:total=
"total"
:total=
"total"
:page
.
sync=
"pageNum"
:page
.
sync=
"
queryParams.
pageNum"
:limit
.
sync=
"pageSize"
:limit
.
sync=
"
queryParams.
pageSize"
@
pagination=
"getList"
@
pagination=
"getList"
/>
/>
...
@@ -209,8 +209,6 @@
...
@@ -209,8 +209,6 @@
showSearch
:
true
,
showSearch
:
true
,
// 总条数
// 总条数
total
:
0
,
total
:
0
,
pageNum
:
1
,
pageSize
:
10
,
// 工单基础信息表格数据
// 工单基础信息表格数据
basicsInfoList
:
[],
basicsInfoList
:
[],
// 弹出层标题
// 弹出层标题
...
@@ -230,6 +228,8 @@
...
@@ -230,6 +228,8 @@
fileIndex
:
0
,
fileIndex
:
0
,
// 查询参数
// 查询参数
queryParams
:
{
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
orderId
:
null
,
orderId
:
null
,
orderType
:
null
,
orderType
:
null
,
orderName
:
null
,
orderName
:
null
,
...
@@ -312,7 +312,7 @@
...
@@ -312,7 +312,7 @@
},
},
/** 搜索按钮操作 */
/** 搜索按钮操作 */
handleQuery
()
{
handleQuery
()
{
this
.
pageNum
=
1
;
this
.
queryParams
.
pageNum
=
1
;
this
.
getList
();
this
.
getList
();
},
},
/** 重置按钮操作 */
/** 重置按钮操作 */
...
...
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