实时数据切换清空问题修改

This commit is contained in:
home孙 2025-06-11 09:43:27 +08:00
parent e7767a74b3
commit 8f8daad4f4
2 changed files with 17 additions and 2 deletions

View File

@ -749,6 +749,9 @@ export default {
this.deviceName = store.equipmentList[this.indexs - 1].deviceName
this.deviceState = store.equipmentList[this.indexs - 1].deviceState
clearInterval(this.statusInterval) && this.statusInterval
this.inputData = [];
this.list = []
this.updateTime=''
this.nowDevicestatus=[]
setTimeout(() => {
@ -1172,6 +1175,8 @@ export default {
if(res.data.code==200){
this.typeSelList=res.data.data
}else{
this.typeSelList=[]
}
})
var list = store.typeList
@ -1224,6 +1229,8 @@ export default {
})
})
} else {
this.inputData = [];
this.list = []
// this.$message.error(res.data.msg);
}
});
@ -1234,6 +1241,7 @@ export default {
var chartsData = res.data.data
realTimeLine('realTime-line', chartsData, data1)
} else {
var chartsData = []
// this.$message.error(res.data.msg);
}
})
@ -1306,6 +1314,8 @@ export default {
})
})
} else {
this.inputData = [];
this.list = []
// this.$message.error(res.data.msg);
}
});
@ -1349,6 +1359,7 @@ export default {
var chartsData = res.data.data
realTimeLine('realTime-line', chartsData, data1)
} else {
var chartsData = []
// this.$message.error(res.data.msg);
}
})
@ -1436,6 +1447,8 @@ export default {
var chartsData = res.data.data
realTimeLine('realTime-line', chartsData, equipmentId)
})
}else{
}
})
@ -1497,6 +1510,8 @@ export default {
})
} else {
// this.$message.error(res.data.msg);
this.inputData =[];
this.list = []
}
});
var data1 = store.equipmentList[this.indexs - 1].deviceId

View File

@ -44,9 +44,9 @@ module.exports = {
},
proxy: {
"/api": {
// target: 'https://api.lihe-control.com', //地址
target: 'https://api.lihe-control.com', //地址
// target: 'http://jiaxingtest.a1.luyouxia.net:21114', //地址
target: 'http://jiaxingtest.a1.luyouxia.net:25762', //地址
// target: 'http://jiaxingtest.a1.luyouxia.net:25762', //地址
changeOrigin: true,
pathRewrite: {
"^/api": "",