深基坑系统(基坑配置):查询图表bug修复

This commit is contained in:
骆乐 2022-08-27 10:35:02 +08:00
parent 248b54a115
commit 9d3106c02f
2 changed files with 22 additions and 15 deletions

BIN
dist.zip

Binary file not shown.

View File

@ -693,7 +693,9 @@ export default {
this.echartData7.data.push(item.data);
});
// console.log('',this.echartData7)
this.$nextTick(() => {
this.createdEchart7();
});
}
});
},
@ -712,10 +714,12 @@ export default {
});
this.detailData.point = arr.join("");
console.log("this.detailData.point", this.detailData.point);
//
if (res.result.length > 0) {
this.checkList = res.result[0].measurePointNumber;
this.checkNum(this.checkList);
}
this.selectDeepExcavationCurrentDataList();
// this.selectDeepExcavationCurrentDataList();
}
});
},
@ -1495,6 +1499,7 @@ export default {
chart6.setOption(this.option6);
},
createdEchart7() {
if(this.tableData2.length != 0){
let chart7 = echarts.init(this.$refs["echart7"]);
this.chart7 = chart7;
chart7.clear();
@ -1606,6 +1611,7 @@ export default {
]
};
chart7.setOption(this.option7);
}
},
// YYYY-MM-DD HH:mm:ss
selectNowDate() {
@ -1638,7 +1644,7 @@ export default {
},
showDetail(val) {
this.visibleDialog = true;
console.log("当前点击行的值", val);
// console.log("", val);
this.relaId = val.id;
this.checkList = "";
this.checkList2 = "";
@ -1730,12 +1736,12 @@ export default {
this.type = val.id;
// this.createdEchart7()
},
//
checkNum(val) {
this.firstSelect = val;
// console.log("", val);
// console.log("", val);
getSensorListApi({ measurePointNumber: this.firstSelect }).then(res => {
if (res.code == 200 && res.result) {
// console.log("---------", res);
this.getSensorList = res.result;
if (this.getSensorList.length != 0) {
this.checkList2 = this.getSensorList[0].sensorSn;
@ -1744,9 +1750,9 @@ export default {
}
});
},
//
getEchartsData(val) {
console.log("第二个选择", val);
// console.log("", val);
selectDeepExcavationCurrentDataListApi({
measurePointNumber: this.checkList,
relaId: this.relaId,
@ -1757,7 +1763,6 @@ export default {
}).then(res => {
// console.log("", res);
if (res.code == 200 && res.result) {
// console.log('',res)
this.tableData2 = res.result.data.records;
this.echartData7 = {
xAxis: [],
@ -1772,7 +1777,9 @@ export default {
this.echartData7.xAxis.push(item.receiveTime.split(" ")[0]);
this.echartData7.data.push(item.data);
});
this.$nextTick(() => {
this.createdEchart7();
});
}
});
},