Commit 85a4ff55 authored by 王晓倩's avatar 王晓倩

Merge remote-tracking branch 'origin/master'

parents 3e3f2147 482744ae
...@@ -45,6 +45,18 @@ public class THiddenTroubleController extends BaseController ...@@ -45,6 +45,18 @@ public class THiddenTroubleController extends BaseController
return getDataTable(list); return getDataTable(list);
} }
/**
* 地图初始化隐患
* @param tHiddenTrouble
* @return
*/
@GetMapping("/getMapHiddenTroublelist")
public AjaxResult getMapHiddenTroublelist(THiddenTrouble tHiddenTrouble)
{
List<THiddenTrouble> list = tHiddenTroubleService.selectTHiddenTroubleList(tHiddenTrouble);
return AjaxResult.success(list);
}
/** /**
* 导出隐患信息列表 * 导出隐患信息列表
*/ */
...@@ -53,6 +65,7 @@ public class THiddenTroubleController extends BaseController ...@@ -53,6 +65,7 @@ public class THiddenTroubleController extends BaseController
@GetMapping("/export") @GetMapping("/export")
public AjaxResult export(THiddenTrouble tHiddenTrouble) public AjaxResult export(THiddenTrouble tHiddenTrouble)
{ {
tHiddenTrouble.setDealStatus("3");
List<THiddenTrouble> list = tHiddenTroubleService.selectTHiddenTroubleList(tHiddenTrouble); List<THiddenTrouble> list = tHiddenTroubleService.selectTHiddenTroubleList(tHiddenTrouble);
ExcelUtil<THiddenTrouble> util = new ExcelUtil<THiddenTrouble>(THiddenTrouble.class); ExcelUtil<THiddenTrouble> util = new ExcelUtil<THiddenTrouble>(THiddenTrouble.class);
return util.exportExcel(list, "隐患信息数据"); return util.exportExcel(list, "隐患信息数据");
......
...@@ -49,8 +49,29 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -49,8 +49,29 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</sql> </sql>
<select id="selectTDeviceReportDataList" parameterType="DeviceReportDataForm" resultMap="TDeviceReportDataResultVo"> <select id="selectTDeviceReportDataList" parameterType="DeviceReportDataForm" resultMap="TDeviceReportDataResultVo">
select t.report_time, t.device_report_data_id, t.device_num, t.standard_condition_accumulation, t.working_condition_accumulation, t.residual_quantity, t.standard_condition_flow, t.working_condition_flow, t.temperature, t.pressure, t.communication_status, t.device_status, t.create_time, t.update_time, select
d.device_id, d.device_name, d.device_code, d.device_type, d.device_model t.report_time,
t.device_report_data_id,
t.device_num,
t.standard_condition_accumulation,
t.working_condition_accumulation,
t.residual_quantity,
t.standard_condition_flow,
t.working_condition_flow,
t.temperature,
t.pressure,
t.communication_status,
t.create_time,
t.update_time,
d.device_id,
d.device_name,
d.device_code,
d.device_type,
d.device_model,
CASE (SELECT COUNT(DISTINCT alarm.device_id) FROM t_device_alarm alarm WHERE alarm.device_id = d.device_id AND alarm.end_time IS NULL)
WHEN 0 THEN '正常'
ELSE '报警'
END as device_status
from t_device_report_data t from t_device_report_data t
left join t_device_info d on t.device_num = d.iot_no left join t_device_info d on t.device_num = d.iot_no
<where> <where>
...@@ -64,10 +85,31 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -64,10 +85,31 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select> </select>
<select id="selectRealtimeDataList" parameterType="DeviceReportDataForm" resultMap="TDeviceReportDataResultVo"> <select id="selectRealtimeDataList" parameterType="DeviceReportDataForm" resultMap="TDeviceReportDataResultVo">
select max(t.report_time) report_time, t.device_report_data_id, t.device_num, t.standard_condition_accumulation, t.working_condition_accumulation, t.residual_quantity, t.standard_condition_flow, t.working_condition_flow, t.temperature, t.pressure, t.communication_status, t.device_status, t.create_time, t.update_time, select
d.device_id, d.device_name, d.device_code, d.device_type, d.device_model max(t.report_time) report_time,
t.device_report_data_id,
t.device_num,
t.standard_condition_accumulation,
t.working_condition_accumulation,
t.residual_quantity,
t.standard_condition_flow,
t.working_condition_flow,
t.temperature,
t.pressure,
t.communication_status,
t.create_time,
t.update_time,
d.device_id,
d.device_name,
d.device_code,
d.device_type,
d.device_model,
CASE (SELECT COUNT(DISTINCT alarm.device_id) FROM t_device_alarm alarm WHERE alarm.device_id = d.device_id AND alarm.end_time IS NULL)
WHEN 0 THEN '正常'
ELSE '报警'
END as device_status
from t_device_report_data t from t_device_report_data t
right join t_device_info d on t.device_num = d.iot_no LEFT JOIN t_device_info d on t.device_num = d.iot_no
<where> <where>
<if test="deviceCode != null "> and d.device_code like concat('%',#{deviceCode},'%')</if> <if test="deviceCode != null "> and d.device_code like concat('%',#{deviceCode},'%')</if>
<if test="deviceType != null "> and d.device_type = #{deviceType}</if> <if test="deviceType != null "> and d.device_type = #{deviceType}</if>
......
...@@ -9,6 +9,15 @@ export function listHiddenTrouble(query) { ...@@ -9,6 +9,15 @@ export function listHiddenTrouble(query) {
}) })
} }
//地图隐患初始化
export function getMapHiddenTroublelist(query) {
return request({
url: '/riskManagement/hiddenTrouble/getMapHiddenTroublelist',
method: 'get',
params: query
})
}
// 查询隐患信息详细 // 查询隐患信息详细
export function getHiddenTrouble(troubleId) { export function getHiddenTrouble(troubleId) {
return request({ return request({
......
...@@ -106,19 +106,6 @@ export const constantRoutes = [ ...@@ -106,19 +106,6 @@ export const constantRoutes = [
} }
] ]
}, },
{
path: '/basicsInfo',
component: Layout,
hidden: true,
children: [
{
path: 'detail',
component: (resolve) => require(['@/views/workOrder/basicsInfo/detail'], resolve),
name: 'basicsInfo-detail',
meta: { title: '详情' }
}
],
},
{ {
path: '/basicsInfo', path: '/basicsInfo',
component: Layout, component: Layout,
...@@ -132,19 +119,6 @@ export const constantRoutes = [ ...@@ -132,19 +119,6 @@ export const constantRoutes = [
} }
] ]
}, },
{
path: '/feedback',
component: Layout,
hidden: true,
children: [
{
path: 'feedbackdetail',
component: (resolve) => require(['@/views/workOrder/feedback/feedbackdetail'], resolve),
name: 'feedback-feedbackdetail',
meta: { title: '详情' }
}
],
},
{ {
path: '/feedback', path: '/feedback',
component: Layout, component: Layout,
...@@ -158,19 +132,6 @@ export const constantRoutes = [ ...@@ -158,19 +132,6 @@ export const constantRoutes = [
} }
] ]
}, },
{
path: '/inspectionPlan',
component: Layout,
hidden: true,
children: [
{
path: 'inspectiondetail',
component: (resolve) => require(['@/views/deviceInspection/inspectionPlan/inspectiondetail'], resolve),
name: 'inspectionPlan-inspectiondetail',
meta: { title: '详情' }
}
],
},
{ {
path: '/inspectionPlan', path: '/inspectionPlan',
component: Layout, component: Layout,
...@@ -184,19 +145,6 @@ export const constantRoutes = [ ...@@ -184,19 +145,6 @@ export const constantRoutes = [
} }
] ]
}, },
{
path: '/deviceAlarm',
component: Layout,
hidden: true,
children: [
{
path: 'alarmdetail',
component: (resolve) => require(['@/views/dataMonitoring/deviceAlarm/alarmdetail'], resolve),
name: 'deviceAlarm-alarmdetail',
meta: { title: '详情' }
}
],
},
{ {
path: '/deviceAlarm', path: '/deviceAlarm',
component: Layout, component: Layout,
...@@ -210,19 +158,6 @@ export const constantRoutes = [ ...@@ -210,19 +158,6 @@ export const constantRoutes = [
} }
] ]
}, },
{
path: '/realtimeData',
component: Layout,
hidden: true,
children: [
{
path: 'realtimedetail',
component: (resolve) => require(['@/views/dataMonitoring/realtimeData/realtimedetail'], resolve),
name: 'realtimeData-realtimedetail',
meta: { title: '详情' }
}
],
},
{ {
path: '/realtimeData', path: '/realtimeData',
component: Layout, component: Layout,
...@@ -236,19 +171,6 @@ export const constantRoutes = [ ...@@ -236,19 +171,6 @@ export const constantRoutes = [
} }
] ]
}, },
{
path: '/reportData',
component: Layout,
hidden: true,
children: [
{
path: 'reportdetail',
component: (resolve) => require(['@/views/dataMonitoring/reportData/reportdetail'], resolve),
name: 'reportData-reportdetail',
meta: { title: '详情' }
}
],
},
{ {
path: '/reportData', path: '/reportData',
component: Layout, component: Layout,
......
...@@ -29,9 +29,6 @@ ...@@ -29,9 +29,6 @@
<el-form-item label="设备编号:" prop="deviceCode"> <el-form-item label="设备编号:" prop="deviceCode">
<font>{{form.deviceCode}}</font> <font>{{form.deviceCode}}</font>
</el-form-item> </el-form-item>
<el-form-item label="设备信息:" prop="alarmId">
<font>{{form.alarmId}}</font>
</el-form-item>
</el-form> </el-form>
<el-form ref="form" v-model="form" :rules="rules" label-width="100px" style="float: left;margin-left: 50px;"> <el-form ref="form" v-model="form" :rules="rules" label-width="100px" style="float: left;margin-left: 50px;">
<el-form-item label="报警类型:" prop="alarmType"> <el-form-item label="报警类型:" prop="alarmType">
......
...@@ -349,7 +349,7 @@ export default { ...@@ -349,7 +349,7 @@ export default {
/** 详细信息跳转 */ /** 详细信息跳转 */
showDetail(row) { showDetail(row) {
this.$router.push({ this.$router.push({
path: '/deviceAlarm/alarmdetail', path: '/dataMonitoring/alarmdetail',
query: { query: {
alarmId: row.alarmId alarmId: row.alarmId
} }
......
...@@ -175,7 +175,7 @@ export default { ...@@ -175,7 +175,7 @@ export default {
//详情按钮 //详情按钮
showDetail(row) { showDetail(row) {
this.$router.push({ this.$router.push({
path: '/realtimeData/realtimedetail', path: '/dataMonitoring/realtimedetail',
query:{ query:{
deviceId : row.deviceId deviceId : row.deviceId
} }
......
...@@ -302,7 +302,7 @@ ...@@ -302,7 +302,7 @@
/** 详细信息跳转 */ /** 详细信息跳转 */
showDetail(row) { showDetail(row) {
this.$router.push({ this.$router.push({
path: '/inspectionPlan/inspectiondetail', path: '/deviceInspection/inspectiondetail',
query:{ query:{
planId : row.planId planId : row.planId
} }
......
...@@ -584,12 +584,12 @@ export default { ...@@ -584,12 +584,12 @@ export default {
}, },
socket() { socket() {
console.log("socket执行"); console.log("socket执行");
// this.ws = new WebSocket(
// "ws://36.148.23.59:8901/gassafety/websocketServer"
// );
this.ws = new WebSocket( this.ws = new WebSocket(
"ws://192.168.2.23:8903/gassafety/websocketServer" "ws://36.148.23.59:8901/gassafety/websocketServer"
); );
// this.ws = new WebSocket(
// "ws://192.168.2.23:8903/gassafety/websocketServer"
// );
this.ws.onopen = (evt) => { this.ws.onopen = (evt) => {
console.log("WebSockets=======gogogog"); console.log("WebSockets=======gogogog");
// this.ws.send("WebSockets!========================="); // this.ws.send("WebSockets!=========================");
......
...@@ -324,7 +324,7 @@ export default { ...@@ -324,7 +324,7 @@ export default {
/** 详细信息跳转 */ /** 详细信息跳转 */
showDetail(row) { showDetail(row) {
this.$router.push({ this.$router.push({
path: '/basicsInfo/detail', path: '/workOrder/detail',
query:{ query:{
orderId : row.orderId orderId : row.orderId
} }
......
...@@ -349,7 +349,7 @@ ...@@ -349,7 +349,7 @@
/** 详细信息跳转 */ /** 详细信息跳转 */
showDetail(row) { showDetail(row) {
this.$router.push({ this.$router.push({
path: '/feedback/feedbackdetail', path: '/workOrder/feedbackdetail',
query:{ query:{
orderId : row.orderId orderId : row.orderId
} }
......
...@@ -493,9 +493,9 @@ export default { ...@@ -493,9 +493,9 @@ export default {
this.resetForm("form"); this.resetForm("form");
}, },
/** 反馈按钮操作 */ /** 反馈按钮操作 */
handleFeedback(row) { handleFeedback(orderId) {
this.open = true; this.open = true;
const orderId = row.orderId || this.ids //const orderId = row.orderId || this.ids
getBasicsInfo(orderId).then(response => { getBasicsInfo(orderId).then(response => {
this.form = response.data; this.form = response.data;
this.open = true; this.open = true;
......
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