Browse Source

上线

feature
lucky 4 years ago
parent
commit
ef401a5d05
  1. 9
      src/components/heat.vue
  2. 1
      src/components/humidity.vue
  3. 1
      src/components/temperature.vue
  4. 22
      src/components/top-bar.vue

9
src/components/heat.vue

@ -23,12 +23,11 @@ export default defineComponent({
},
mounted() {
this.getHeatImaging();
setInterval(() => {
//
this.getHeatImaging();
}, 5000);
//
this.getHeatImaging();
}, 3000);
},
unmounted() {
@ -45,7 +44,9 @@ export default defineComponent({
const { warehouseId } = this.$route.query;
const param = { warehouseId: warehouseId ? warehouseId : 7 };
const data = await getHeatImaging(param);
this.src = data.imageData;
if (data && data.imageData) {
this.src = data.imageData;
}
} catch (error) {
console.log("error: ", error);
}

1
src/components/humidity.vue

@ -61,6 +61,7 @@ export default defineComponent({
},
mounted() {
this.getTeamAndHumidity();
setInterval(() => {
//
this.getTeamAndHumidity();

1
src/components/temperature.vue

@ -61,6 +61,7 @@ export default defineComponent({
},
mounted() {
this.getTeamAndHumidity();
setInterval(() => {
//
this.getTeamAndHumidity();

22
src/components/top-bar.vue

@ -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>

Loading…
Cancel
Save