|
|
|
@ -145,16 +145,16 @@ export default {
|
|
|
|
|
localStorage.setItem("this.devicetotal", 0);
|
|
|
|
|
},
|
|
|
|
|
mounted() {
|
|
|
|
|
this.getAlarmData();
|
|
|
|
|
setInterval(() => this.getAlarmData(), 1000 * 60);
|
|
|
|
|
this.poolNameList = JSON.parse(localStorage.getItem("POOL_NAME_LIST"));
|
|
|
|
|
this.poolName = localStorage.getItem("USER_POOL_NAME_CURRENT");
|
|
|
|
|
if(this.$route.query.id) {
|
|
|
|
|
changePoolName(this.$route.query.id).then((res) => {
|
|
|
|
|
localStorage.setItem("USER_POOL_NAME_CURRENT", this.$route.query.id);
|
|
|
|
|
this.poolName = this.$route.query.id;
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
// this.getAlarmData();
|
|
|
|
|
// setInterval(() => this.getAlarmData(), 1000 * 60);
|
|
|
|
|
// this.poolNameList = JSON.parse(localStorage.getItem("POOL_NAME_LIST"));
|
|
|
|
|
// this.poolName = localStorage.getItem("USER_POOL_NAME_CURRENT");
|
|
|
|
|
// if(this.$route.query.id) {
|
|
|
|
|
// changePoolName(this.$route.query.id).then((res) => {
|
|
|
|
|
// localStorage.setItem("USER_POOL_NAME_CURRENT", this.$route.query.id);
|
|
|
|
|
// this.poolName = this.$route.query.id;
|
|
|
|
|
// });
|
|
|
|
|
// }
|
|
|
|
|
},
|
|
|
|
|
components: {
|
|
|
|
|
Breadcrumb,
|
|
|
|
|