Commit ce600de5 authored by 耿迪迪's avatar 耿迪迪

分页问题修改 gengdidi

parent beb3e59d
...@@ -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);
} }
/** /**
......
...@@ -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);
} }
/** /**
......
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);
} }
/** /**
......
...@@ -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);
} }
/** /**
......
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);
} }
......
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);
} }
/** /**
......
...@@ -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);
} }
/** /**
......
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);
} }
/** /**
......
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;
/** /**
* 新增报警信息 * 新增报警信息
......
...@@ -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);
/** /**
* 构建前端所需要下拉树结构 * 构建前端所需要下拉树结构
* *
......
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);
/** /**
* 新增设备监控 * 新增设备监控
* *
......
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);
/** /**
* 地图显示隐患信息列表 * 地图显示隐患信息列表
* *
......
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);
/** /**
* 新增巡检计划 * 新增巡检计划
* *
......
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);
/** /**
* 新增设备监控 * 新增设备监控
* *
......
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
......
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;
/** /**
* 新增工单基础信息 * 新增工单基础信息
* *
......
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());
}
}
} }
/** /**
......
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;
}
/** /**
* 构建前端所需要下拉树结构 * 构建前端所需要下拉树结构
* *
......
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;
...@@ -70,6 +72,16 @@ public class TDeviceReportDataServiceImpl implements ITDeviceReportDataService ...@@ -70,6 +72,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 +94,18 @@ public class TDeviceReportDataServiceImpl implements ITDeviceReportDataService ...@@ -82,6 +94,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));
}
/** /**
* 新增设备监控 * 新增设备监控
* *
......
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;
}
/** /**
* 地图显示隐患信息列表 * 地图显示隐患信息列表
* *
......
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));
}
/** /**
* 新增巡检计划 * 新增巡检计划
* *
......
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));
}
/** /**
* 新增设备监控 * 新增设备监控
* *
......
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
......
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;
}
/** /**
* 新增工单基础信息 * 新增工单基础信息
* *
......
...@@ -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();
}, },
/** 重置按钮操作 */ /** 重置按钮操作 */
......
...@@ -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();
}, },
/** 重置按钮操作 */ /** 重置按钮操作 */
......
...@@ -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();
}, },
/** 重置按钮操作 */ /** 重置按钮操作 */
......
...@@ -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();
}, },
/** 重置按钮操作 */ /** 重置按钮操作 */
......
...@@ -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();
}, },
/** 重置按钮操作 */ /** 重置按钮操作 */
......
...@@ -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();
}, },
/** 重置按钮操作 */ /** 重置按钮操作 */
......
...@@ -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();
}, },
/** 重置按钮操作 */ /** 重置按钮操作 */
......
...@@ -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();
}, },
/** 重置按钮操作 */ /** 重置按钮操作 */
......
...@@ -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();
}, },
/** 重置按钮操作 */ /** 重置按钮操作 */
......
...@@ -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();
}, },
/** 重置按钮操作 */ /** 重置按钮操作 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment