|
|
@@ -22,7 +22,7 @@
|
|
|
</el-row>
|
|
|
<el-row :gutter="10">
|
|
|
<el-col :span="8">
|
|
|
- <el-card class="box-card">
|
|
|
+ <el-card style="width: 100%;height: 500px;overflow-y: auto;">
|
|
|
<div slot="header" class="clearfix">
|
|
|
<span>今日维修任务动态</span>
|
|
|
<el-button style="float: right; padding: 3px 0" type="text"
|
|
|
@@ -55,7 +55,7 @@
|
|
|
</el-card>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
- <el-card class="box-card">
|
|
|
+ <el-card style="width: 100%;height: 500px;overflow-y: auto;">
|
|
|
<div slot="header" class="clearfix">
|
|
|
<span>今日巡检动态</span>
|
|
|
<el-button style="float: right; padding: 3px 0" type="text"
|
|
|
@@ -253,7 +253,7 @@ export default {
|
|
|
if (params[0].data.showpercent) {
|
|
|
return "点击柱状图可查看详情";
|
|
|
} else {
|
|
|
- return "";
|
|
|
+ return "点击打开管理工作台页面";
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
@@ -342,7 +342,7 @@ export default {
|
|
|
if (params[0].data.showpercent) {
|
|
|
return "点击柱状图可查看详情";
|
|
|
} else {
|
|
|
- return "";
|
|
|
+ return "点击打开维修任务页面";
|
|
|
}
|
|
|
},
|
|
|
textStyle: {
|
|
|
@@ -374,7 +374,7 @@ export default {
|
|
|
{
|
|
|
data: [
|
|
|
{
|
|
|
- value: 20,
|
|
|
+ value: 0,
|
|
|
itemStyle: {
|
|
|
color: 'rgba(238, 122, 122,1.0)'
|
|
|
|
|
|
@@ -383,7 +383,7 @@ export default {
|
|
|
percent: 0
|
|
|
},
|
|
|
{
|
|
|
- value: 30,
|
|
|
+ value: 0,
|
|
|
itemStyle: {
|
|
|
color: 'rgba(250, 200, 88,1.0)'
|
|
|
|
|
|
@@ -392,7 +392,7 @@ export default {
|
|
|
percent: 0
|
|
|
},
|
|
|
{
|
|
|
- value: 200,
|
|
|
+ value: 0,
|
|
|
itemStyle: {
|
|
|
|
|
|
color: 'rgba(84, 112, 198,1.0)'
|
|
|
@@ -431,7 +431,7 @@ export default {
|
|
|
if (params[0].data.showpercent) {
|
|
|
return "点击柱状图可查看详情";
|
|
|
} else {
|
|
|
- return "";
|
|
|
+ return "点击打开设备巡检信息页面";
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
@@ -563,16 +563,41 @@ export default {
|
|
|
// })
|
|
|
|
|
|
// this.rtuInfoMap.clear();
|
|
|
- this.rtuInfoMap.off('click');
|
|
|
- this.rtuInfoMap.on('click', function (p) {
|
|
|
- // console.log(p)
|
|
|
- if (p.name === '设备异常') {
|
|
|
- that.warninglistDig = true;
|
|
|
- that.$nextTick(() => {
|
|
|
- that.$refs['warninglist'].init();
|
|
|
- });
|
|
|
+
|
|
|
+ this.rtuInfoMap.getZr().off('click');
|
|
|
+ this.rtuInfoMap.getZr().on('click', function (p) {
|
|
|
+ console.log("checkOrderChart zr ++++++++++++++++++++++++++++++++++++")
|
|
|
+ let pointInPixel = [p.offsetX, p.offsetY];
|
|
|
+ if (that.rtuInfoMap.containPixel('grid', pointInPixel)) {
|
|
|
+ let yIndex = that.rtuInfoMap.convertFromPixel({ seriesIndex: 0 }, [p.offsetX, p.offsetY])[1];
|
|
|
+ //let yData=that.checkOrderCountOption.yAxis.data[yIndex];//当前点击柱子的数据
|
|
|
+ let value = that.rtuInfoCountOption.series[0].data[yIndex].value;
|
|
|
+ if (yIndex == 1) {
|
|
|
+ console.log("测站数量 index " + yIndex)
|
|
|
+ that.$router.push({ path: '/business/manage/index' });
|
|
|
+ } else if (yIndex == 0) {
|
|
|
+ if (value > 0) {
|
|
|
+ console.log("设备异常 index " + yIndex)
|
|
|
+ that.warninglistDig = true;
|
|
|
+ that.$nextTick(() => {
|
|
|
+ that.$refs['warninglist'].init();
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ that.$message.warning("超时未确认维修任务暂无数据");
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
- })
|
|
|
+ });
|
|
|
+
|
|
|
+ // this.rtuInfoMap.off('click');
|
|
|
+ // this.rtuInfoMap.on('click', function (p) {
|
|
|
+ // if (p.name === '设备异常') {
|
|
|
+ // that.warninglistDig = true;
|
|
|
+ // that.$nextTick(() => {
|
|
|
+ // that.$refs['warninglist'].init();
|
|
|
+ // });
|
|
|
+ // }
|
|
|
+ // })
|
|
|
}
|
|
|
},
|
|
|
initCheckOrderCountMap() {
|
|
|
@@ -591,22 +616,58 @@ export default {
|
|
|
// })
|
|
|
|
|
|
var that = this;
|
|
|
- this.checkOrderMap.clear();
|
|
|
- this.checkOrderMap.off('click');
|
|
|
- this.checkOrderMap.on('click', function (p) {
|
|
|
- // console.log(p)
|
|
|
- if (p.name === '未确认任务') {
|
|
|
- that.uncomfireCheckOrderDig = true;
|
|
|
- that.$nextTick(() => {
|
|
|
- that.$refs["uncomfirecheckorderlist"].init();
|
|
|
- });
|
|
|
- } else if (p.name === '超时未确认任务') {
|
|
|
- that.comfireDelayCheckOrderDig = true;
|
|
|
- that.$nextTick(() => {
|
|
|
- that.$refs["comfiredelaycheckorderlist"].init();
|
|
|
- });
|
|
|
+
|
|
|
+ //this.checkOrderMap.clear();
|
|
|
+
|
|
|
+ this.checkOrderMap.getZr().off('click');
|
|
|
+ this.checkOrderMap.getZr().on('click', function (p) {
|
|
|
+ console.log("checkOrderChart zr ++++++++++++++++++++++++++++++++++++")
|
|
|
+ let pointInPixel = [p.offsetX, p.offsetY];
|
|
|
+ if (that.checkOrderMap.containPixel('grid', pointInPixel)) {
|
|
|
+ let yIndex = that.checkOrderMap.convertFromPixel({ seriesIndex: 0 }, [p.offsetX, p.offsetY])[1];
|
|
|
+ //let yData=that.checkOrderCountOption.yAxis.data[yIndex];//当前点击柱子的数据
|
|
|
+ let value = that.checkOrderCountOption.series[0].data[yIndex].value;
|
|
|
+ if (yIndex == 2) {
|
|
|
+ console.log("维修数量 index " + yIndex)
|
|
|
+ that.$router.push({ path: '/business/order/checkorderlist' });
|
|
|
+ } else if (yIndex == 1) {
|
|
|
+ if (value > 0) {
|
|
|
+ console.log("未确认 index " + yIndex)
|
|
|
+ that.uncomfireCheckOrderDig = true;
|
|
|
+ that.$nextTick(() => {
|
|
|
+ that.$refs["uncomfirecheckorderlist"].init();
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ that.$message.warning("未确认维修任务暂无数据");
|
|
|
+ }
|
|
|
+ } else if (yIndex == 0) {
|
|
|
+ if (value > 0) {
|
|
|
+ console.log("超时未确认 index " + yIndex)
|
|
|
+ that.comfireDelayCheckOrderDig = true;
|
|
|
+ that.$nextTick(() => {
|
|
|
+ that.$refs["comfiredelaycheckorderlist"].init();
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ that.$message.warning("超时未确认维修任务暂无数据");
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
- })
|
|
|
+ });
|
|
|
+
|
|
|
+ // this.checkOrderMap.off('click');
|
|
|
+ // this.checkOrderMap.on('click', function (p) {
|
|
|
+ // if (p.name === '未确认任务') {
|
|
|
+ // that.uncomfireCheckOrderDig = true;
|
|
|
+ // that.$nextTick(() => {
|
|
|
+ // that.$refs["uncomfirecheckorderlist"].init();
|
|
|
+ // });
|
|
|
+ // } else if (p.name === '超时未确认任务') {
|
|
|
+ // that.comfireDelayCheckOrderDig = true;
|
|
|
+ // that.$nextTick(() => {
|
|
|
+ // that.$refs["comfiredelaycheckorderlist"].init();
|
|
|
+ // });
|
|
|
+ // }
|
|
|
+ // })
|
|
|
}
|
|
|
},
|
|
|
initEquipmentInspectionCountMap() {
|
|
|
@@ -624,35 +685,91 @@ export default {
|
|
|
// })
|
|
|
// })
|
|
|
var that = this;
|
|
|
- this.equipmentInspectionChartMap.off('click');
|
|
|
- this.equipmentInspectionChartMap.on('click', function (p) {
|
|
|
- console.log("equipmentInspectionChartMap**********************************")
|
|
|
+ this.equipmentInspectionChartMap.getZr().off('click');
|
|
|
+ this.equipmentInspectionChartMap.getZr().on('click', function (p) {
|
|
|
+ console.log("checkOrderChart zr ++++++++++++++++++++++++++++++++++++")
|
|
|
+ let pointInPixel = [p.offsetX, p.offsetY];
|
|
|
+ if (that.equipmentInspectionChartMap.containPixel('grid', pointInPixel)) {
|
|
|
+ let yIndex = that.equipmentInspectionChartMap.convertFromPixel({ seriesIndex: 0 }, [p.offsetX, p.offsetY])[1];
|
|
|
+ //let yData = that.equipmentInspectionCountOption.yAxis.data[yIndex];//当前点击柱子的数据
|
|
|
+ let value = that.equipmentInspectionCountOption.series[0].data[yIndex].value;
|
|
|
+ console.log(" yData " + value)
|
|
|
+ if (yIndex == 3) {
|
|
|
+ console.log("巡检数量 index " + yIndex)
|
|
|
+ that.$router.push({ path: '/business/inspection/index' });
|
|
|
+ } else if (yIndex == 2) {
|
|
|
+
|
|
|
+ if (value > 0) {
|
|
|
+ console.log("汛前 index " + yIndex)
|
|
|
+ that.rainSeasonKind = 1;
|
|
|
+ that.inspectionreportlistDig = true;
|
|
|
+ that.dialogTitle = '汛前已巡检信息';
|
|
|
+ that.$nextTick(() => {
|
|
|
+ that.$refs["inspectionreportlist"].init();
|
|
|
+ });
|
|
|
|
|
|
- console.log(p)
|
|
|
+ } else {
|
|
|
+ that.$message.warning("汛前巡检暂无上报数据");
|
|
|
+ }
|
|
|
+ } else if (yIndex == 1) {
|
|
|
+ if (value > 0) {
|
|
|
+ console.log("汛中一 index " + yIndex)
|
|
|
+ that.rainSeasonKind = 2;
|
|
|
+ that.inspectionreportlistDig = true;
|
|
|
+ that.dialogTitle = '汛中(一)已巡检信息';
|
|
|
+ that.$nextTick(() => {
|
|
|
+ that.$refs["inspectionreportlist"].init();
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ that.$message.warning("汛中第一次巡检暂无上报数据");
|
|
|
+ }
|
|
|
+ } else if (yIndex == 0) {
|
|
|
+ if (value > 0) {
|
|
|
+ console.log("汛中二 index " + yIndex)
|
|
|
|
|
|
- if (p.name === '汛前已巡检') {
|
|
|
- that.rainSeasonKind = 1;
|
|
|
- that.inspectionreportlistDig = true;
|
|
|
- that.dialogTitle = '汛前已巡检信息';
|
|
|
- that.$nextTick(() => {
|
|
|
- that.$refs["inspectionreportlist"].init();
|
|
|
- });
|
|
|
- } else if (p.name === '汛中(一)已巡检') {
|
|
|
- that.rainSeasonKind = 2;
|
|
|
- that.inspectionreportlistDig = true;
|
|
|
- that.dialogTitle = '汛中(一)已巡检信息';
|
|
|
- that.$nextTick(() => {
|
|
|
- that.$refs["inspectionreportlist"].init();
|
|
|
- });
|
|
|
- } else if (p.name === '汛中(二)已巡检') {
|
|
|
- that.rainSeasonKind = 3;
|
|
|
- that.inspectionreportlistDig = true;
|
|
|
- that.dialogTitle = '汛中(二)已巡检信息';
|
|
|
- that.$nextTick(() => {
|
|
|
- that.$refs["inspectionreportlist"].init();
|
|
|
- });
|
|
|
+ that.rainSeasonKind = 3;
|
|
|
+ that.inspectionreportlistDig = true;
|
|
|
+ that.dialogTitle = '汛中(二)已巡检信息';
|
|
|
+ that.$nextTick(() => {
|
|
|
+ that.$refs["inspectionreportlist"].init();
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ that.$message.warning("汛中第二次巡检暂无上报数据");
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
- })
|
|
|
+ });
|
|
|
+
|
|
|
+
|
|
|
+ // this.equipmentInspectionChartMap.off('click');
|
|
|
+ // this.equipmentInspectionChartMap.on('click', function (p) {
|
|
|
+ // console.log("equipmentInspectionChartMap**********************************")
|
|
|
+
|
|
|
+ // console.log(p)
|
|
|
+
|
|
|
+ // if (p.name === '汛前已巡检') {
|
|
|
+ // that.rainSeasonKind = 1;
|
|
|
+ // that.inspectionreportlistDig = true;
|
|
|
+ // that.dialogTitle = '汛前已巡检信息';
|
|
|
+ // that.$nextTick(() => {
|
|
|
+ // that.$refs["inspectionreportlist"].init();
|
|
|
+ // });
|
|
|
+ // } else if (p.name === '汛中(一)已巡检') {
|
|
|
+ // that.rainSeasonKind = 2;
|
|
|
+ // that.inspectionreportlistDig = true;
|
|
|
+ // that.dialogTitle = '汛中(一)已巡检信息';
|
|
|
+ // that.$nextTick(() => {
|
|
|
+ // that.$refs["inspectionreportlist"].init();
|
|
|
+ // });
|
|
|
+ // } else if (p.name === '汛中(二)已巡检') {
|
|
|
+ // that.rainSeasonKind = 3;
|
|
|
+ // that.inspectionreportlistDig = true;
|
|
|
+ // that.dialogTitle = '汛中(二)已巡检信息';
|
|
|
+ // that.$nextTick(() => {
|
|
|
+ // that.$refs["inspectionreportlist"].init();
|
|
|
+ // });
|
|
|
+ // }
|
|
|
+ // })
|
|
|
}
|
|
|
},
|
|
|
close() {
|