实时数据切换清空问题修改
This commit is contained in:
parent
e7767a74b3
commit
8f8daad4f4
@ -749,6 +749,9 @@ export default {
|
|||||||
this.deviceName = store.equipmentList[this.indexs - 1].deviceName
|
this.deviceName = store.equipmentList[this.indexs - 1].deviceName
|
||||||
this.deviceState = store.equipmentList[this.indexs - 1].deviceState
|
this.deviceState = store.equipmentList[this.indexs - 1].deviceState
|
||||||
clearInterval(this.statusInterval) && this.statusInterval
|
clearInterval(this.statusInterval) && this.statusInterval
|
||||||
|
this.inputData = [];
|
||||||
|
this.list = []
|
||||||
|
this.updateTime=''
|
||||||
this.nowDevicestatus=[]
|
this.nowDevicestatus=[]
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
|
||||||
@ -1172,6 +1175,8 @@ export default {
|
|||||||
|
|
||||||
if(res.data.code==200){
|
if(res.data.code==200){
|
||||||
this.typeSelList=res.data.data
|
this.typeSelList=res.data.data
|
||||||
|
}else{
|
||||||
|
this.typeSelList=[]
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
var list = store.typeList
|
var list = store.typeList
|
||||||
@ -1224,6 +1229,8 @@ export default {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
this.inputData = [];
|
||||||
|
this.list = []
|
||||||
// this.$message.error(res.data.msg);
|
// this.$message.error(res.data.msg);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -1234,6 +1241,7 @@ export default {
|
|||||||
var chartsData = res.data.data
|
var chartsData = res.data.data
|
||||||
realTimeLine('realTime-line', chartsData, data1)
|
realTimeLine('realTime-line', chartsData, data1)
|
||||||
} else {
|
} else {
|
||||||
|
var chartsData = []
|
||||||
// this.$message.error(res.data.msg);
|
// this.$message.error(res.data.msg);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -1306,6 +1314,8 @@ export default {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
this.inputData = [];
|
||||||
|
this.list = []
|
||||||
// this.$message.error(res.data.msg);
|
// this.$message.error(res.data.msg);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -1349,6 +1359,7 @@ export default {
|
|||||||
var chartsData = res.data.data
|
var chartsData = res.data.data
|
||||||
realTimeLine('realTime-line', chartsData, data1)
|
realTimeLine('realTime-line', chartsData, data1)
|
||||||
} else {
|
} else {
|
||||||
|
var chartsData = []
|
||||||
// this.$message.error(res.data.msg);
|
// this.$message.error(res.data.msg);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -1436,6 +1447,8 @@ export default {
|
|||||||
var chartsData = res.data.data
|
var chartsData = res.data.data
|
||||||
realTimeLine('realTime-line', chartsData, equipmentId)
|
realTimeLine('realTime-line', chartsData, equipmentId)
|
||||||
})
|
})
|
||||||
|
}else{
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -1497,6 +1510,8 @@ export default {
|
|||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
// this.$message.error(res.data.msg);
|
// this.$message.error(res.data.msg);
|
||||||
|
this.inputData =[];
|
||||||
|
this.list = []
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
var data1 = store.equipmentList[this.indexs - 1].deviceId
|
var data1 = store.equipmentList[this.indexs - 1].deviceId
|
||||||
|
@ -44,9 +44,9 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
proxy: {
|
proxy: {
|
||||||
"/api": {
|
"/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:21114', //地址
|
||||||
target: 'http://jiaxingtest.a1.luyouxia.net:25762', //地址
|
// target: 'http://jiaxingtest.a1.luyouxia.net:25762', //地址
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
pathRewrite: {
|
pathRewrite: {
|
||||||
"^/api": "",
|
"^/api": "",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user