fix:coding#765
This commit is contained in:
parent
620d0345f1
commit
2d4e3998a4
|
|
@ -301,46 +301,6 @@ export default {
|
|||
{ color: "#02f5f2", percentage: 80 },
|
||||
{ color: "#5cb87a", percentage: 100 },
|
||||
],
|
||||
shengliaoData: {
|
||||
KH: [
|
||||
1.081, 0.922, 1.034, 1.079, 1.088, 0.983, 0.917, 1.125,
|
||||
1.03, 0.995, 1.019, 1.074, 0.925, 0.943, 1.067, 1.048,
|
||||
0.964, 0.884, 0.947, 1.017, 1.011, 1.022, 0.994, 1.025,
|
||||
1.031, 1.003, 0.941, 0.982, 1.067, 0.982, 0.987,
|
||||
],
|
||||
SM: [
|
||||
2.18, 2.46, 2.63, 2.34, 2.14, 2.52, 2.41, 2.65, 2.45, 2.5,
|
||||
2.52, 2.49, 2.49, 2.45, 2.44, 2.38, 2.38, 2.3, 2.65, 2.53,
|
||||
2.49, 2.41, 2.57, 2.69, 2.64, 2.74, 2.81, 2.38, 2.54, 2.54,
|
||||
2.38,
|
||||
],
|
||||
IM: [
|
||||
1.67, 1.6, 1.4, 1.41, 1.61, 1.41, 1.53, 1.35, 1.33, 1.35,
|
||||
1.29, 1.27, 0.61, 0.72, 0.66, 1.14, 1.18, 1.21, 1.48, 1.48,
|
||||
1.49, 1.45, 1.41, 1.48, 1.35, 1.22, 1.33, 1.68, 1.45, 1.36,
|
||||
1.49,
|
||||
],
|
||||
},
|
||||
shuliaoData: {
|
||||
KH: [
|
||||
0.873, 0.861, 0.873, 0.876, 0.883, 0.882, 0.83, 0.882,
|
||||
0.913, 0.92, 0.893, 0.93, 0.94, 0.851, 0.87, 0.958, 0.935,
|
||||
0.886, 0.873, 0.886, 0.939, 0.919, 0.941, 0.948, 0.899,
|
||||
0.906, 0.914, 0.852, 0.852, 0.923, 0.884,
|
||||
],
|
||||
SM: [
|
||||
2.37, 2.51, 2.66, 2.44, 2.58, 2.54, 2.41, 2.52, 2.41, 2.51,
|
||||
2.56, 2.49, 2.54, 2.44, 2.6, 2.44, 2.42, 2.46, 2.53, 2.54,
|
||||
2.53, 2.45, 2.64, 2.64, 2.73, 2.59, 2.79, 2.39, 2.4, 2.6,
|
||||
2.52,
|
||||
],
|
||||
IM: [
|
||||
1.65, 1.48, 1.43, 1.53, 1.39, 1.41, 1.52, 1.43, 1.4, 1.39,
|
||||
1.28, 1.31, 0.75, 0.92, 0.83, 1.1, 1.21, 1.18, 1.28, 1.45,
|
||||
1.51, 1.45, 1.37, 1.35, 1.35, 1.34, 1.31, 1.6, 1.54, 1.37,
|
||||
1.41,
|
||||
],
|
||||
},
|
||||
KHData: [],
|
||||
SMData: [],
|
||||
IMData: [],
|
||||
|
|
@ -674,6 +634,9 @@ export default {
|
|||
],
|
||||
},
|
||||
},
|
||||
intervalId1:null,
|
||||
intervalId2:null,
|
||||
intervalId3:null,
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
|
|
@ -733,6 +696,15 @@ export default {
|
|||
clearInterval(this.timerTime);}
|
||||
if (this.timerOther) {
|
||||
clearInterval(this.timerOther);}
|
||||
if(this.intervalId1!==null){
|
||||
clearInterval(this.intervalId1);
|
||||
}
|
||||
if(this.intervalId2!==null){
|
||||
clearInterval(this.intervalId2);
|
||||
}
|
||||
if(this.intervalId3!==null){
|
||||
clearInterval(this.intervalId3);
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
backHome(){
|
||||
|
|
@ -904,28 +876,31 @@ export default {
|
|||
];
|
||||
myChart.setOption(option1);
|
||||
let index2 = 0;
|
||||
intervalId = setInterval(function () {
|
||||
if (index2 <= maxId) {
|
||||
myChart.dispatchAction({
|
||||
type: "downplay",
|
||||
seriesIndex: 0,
|
||||
});
|
||||
myChart.dispatchAction({
|
||||
type: "highlight",
|
||||
seriesIndex: 0,
|
||||
dataIndex: index2,
|
||||
});
|
||||
myChart.dispatchAction({
|
||||
type: "showTip",
|
||||
seriesIndex: 0,
|
||||
dataIndex: index2,
|
||||
});
|
||||
index2++;
|
||||
} else {
|
||||
index2 = 0;
|
||||
// clearInterval(intervalId);
|
||||
}
|
||||
}, 1000);
|
||||
if(that.intervalId1 !== null){
|
||||
clearInterval(that.intervalId1);
|
||||
that.intervalId1 = null;
|
||||
}
|
||||
that.intervalId1 = setInterval(function () {
|
||||
if (index2 <= maxId) {
|
||||
myChart.dispatchAction({
|
||||
type: "downplay",
|
||||
seriesIndex: 0,
|
||||
});
|
||||
myChart.dispatchAction({
|
||||
type: "highlight",
|
||||
seriesIndex: 0,
|
||||
dataIndex: index2,
|
||||
});
|
||||
myChart.dispatchAction({
|
||||
type: "showTip",
|
||||
seriesIndex: 0,
|
||||
dataIndex: index2,
|
||||
});
|
||||
index2++;
|
||||
} else {
|
||||
index2 = 0;
|
||||
}
|
||||
}, 2000);
|
||||
});
|
||||
},
|
||||
getMonthData() {
|
||||
|
|
@ -1106,7 +1081,11 @@ export default {
|
|||
]
|
||||
myChart.setOption(option3); // 设置更新后的图表
|
||||
let index3 = 0;
|
||||
intervalId = setInterval(function () {
|
||||
if(that.intervalId2 !== null){
|
||||
clearInterval(that.intervalId2);
|
||||
that.intervalId2 = null;
|
||||
}
|
||||
that.intervalId2 = setInterval(function () {
|
||||
if (index3 <= maxId) {
|
||||
myChart.dispatchAction({
|
||||
type: "downplay",
|
||||
|
|
@ -1125,9 +1104,8 @@ export default {
|
|||
index3++;
|
||||
} else {
|
||||
index3 = 0;
|
||||
// clearInterval(intervalId);
|
||||
}
|
||||
}, 1000);
|
||||
}, 2000);
|
||||
});
|
||||
},
|
||||
//水泥磨
|
||||
|
|
@ -1393,7 +1371,11 @@ export default {
|
|||
// option5.xAxis.data = that.datelist;
|
||||
myChart.setOption(option5); // 设置更新后的图表
|
||||
let index3 = 0;
|
||||
intervalId = setInterval(function () {
|
||||
if(that.intervalId3 !== null){
|
||||
clearInterval(that.intervalId3);
|
||||
that.intervalId3 = null;
|
||||
}
|
||||
that.intervalId3 = setInterval(function () {
|
||||
if (index3 <= maxId) {
|
||||
myChart.dispatchAction({
|
||||
type: "downplay",
|
||||
|
|
@ -1412,9 +1394,8 @@ export default {
|
|||
index3++;
|
||||
} else {
|
||||
index3 = 0;
|
||||
// clearInterval(intervalId);
|
||||
}
|
||||
}, 1000);
|
||||
}, 2000);
|
||||
});
|
||||
},
|
||||
//数据采集——设备运行状态
|
||||
|
|
|
|||
Loading…
Reference in New Issue