fix:检测数据默认置空

This commit is contained in:
shijing 2025-09-25 09:28:48 +08:00
parent ff210937e9
commit 67b517d4f8
1 changed files with 3 additions and 2 deletions

View File

@ -93,6 +93,7 @@ export default {
methods: { methods: {
open() { open() {
let that = this; let that = this;
that.mpointList = [];
this.visible = true; this.visible = true;
that.$nextTick(() => { that.$nextTick(() => {
let height = document.getElementById("tableWap").clientHeight; let height = document.getElementById("tableWap").clientHeight;
@ -114,13 +115,13 @@ export default {
}, },
handleClick(val){ handleClick(val){
let that = this; let that = this;
that.option.xAxis.data = [];
that.option.series.data = [];
that.mpointList.forEach(item=>{ that.mpointList.forEach(item=>{
if(item.nickname == that.activeName){ if(item.nickname == that.activeName){
that.query.mpoint = item.id; that.query.mpoint = item.id;
that.query.page = 1; that.query.page = 1;
that.option.title.text = that.activeName; that.option.title.text = that.activeName;
that.option.xAxis.data = [];
that.option.series.data = [];
let params = {}; let params = {};
params.mpoint = item.id; params.mpoint = item.id;
params.timex__gte = that.startTime; params.timex__gte = that.startTime;