|
|
@ -59,6 +59,9 @@ export default defineComponent({ |
|
|
|
}, |
|
|
|
|
|
|
|
mounted() { |
|
|
|
this.getTeamAndHumidity(); |
|
|
|
this.getFireOrFlood(); |
|
|
|
|
|
|
|
// 获取当前时间 |
|
|
|
setInterval(() => { |
|
|
|
this.getNowFormatDate(); |
|
|
@ -68,7 +71,7 @@ export default defineComponent({ |
|
|
|
// 获取数据 |
|
|
|
this.getTeamAndHumidity(); |
|
|
|
this.getFireOrFlood(); |
|
|
|
}, 600000); |
|
|
|
}, 3000); |
|
|
|
}, |
|
|
|
|
|
|
|
methods: { |
|
|
@ -77,7 +80,7 @@ export default defineComponent({ |
|
|
|
try { |
|
|
|
const { parkId, warehouseId } = this.$route.query; |
|
|
|
const param = { |
|
|
|
parkId: parkId ? parkId : 1, |
|
|
|
parkId: parkId ? parkId : 2, |
|
|
|
warehouseId: warehouseId ? warehouseId : 7, |
|
|
|
}; |
|
|
|
const data = await getTeamAndHumidity(param); |
|
|
@ -97,7 +100,7 @@ export default defineComponent({ |
|
|
|
try { |
|
|
|
const { parkId, warehouseId } = this.$route.query; |
|
|
|
const param = { |
|
|
|
parkId: parkId ? parkId : 1, |
|
|
|
parkId: parkId ? parkId : 2, |
|
|
|
warehouseId: warehouseId ? warehouseId : 7, |
|
|
|
}; |
|
|
|
const data = await getFireOrFlood(param); |
|
|
@ -240,6 +243,15 @@ export default defineComponent({ |
|
|
|
background-image: url("../assets/img/water.png"); |
|
|
|
} |
|
|
|
|
|
|
|
.state { |
|
|
|
animation: twinkling 1s infinite ease-in-out; |
|
|
|
} |
|
|
|
.animated { |
|
|
|
animation-duration: 1s; |
|
|
|
animation-duration: 1s; |
|
|
|
animation-fill-mode: both; |
|
|
|
animation-fill-mode: both; |
|
|
|
} |
|
|
|
@keyframes twinkling { |
|
|
|
0% { |
|
|
|
opacity: 0; |
|
|
@ -248,8 +260,4 @@ export default defineComponent({ |
|
|
|
opacity: 1; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.state { |
|
|
|
animation: twinkling 1s infinite; |
|
|
|
} |
|
|
|
</style> |
|
|
|