唐润平:显示面板雏形全部完成并优化了第一个风机面板样式

This commit is contained in:
trp
2023-12-09 03:09:53 +08:00
parent e20b7c1002
commit 305a5f9824
5 changed files with 401 additions and 86 deletions

View File

@@ -9,7 +9,8 @@
<script setup>
import WindPressureItem from "./childComps/WindPressureItem.vue";
const wpList = [
import { reactive } from "vue";
const wpList = reactive([
{
windPId: 1, //编号
max: 120, //最大值
@@ -70,7 +71,12 @@ const wpList = [
value: 99, //测量值
point: 70, //阈值
},
];
]);
setInterval(() => {
wpList.forEach((item) => {
item.value = parseInt(Math.random() * 10) * 10;
});
}, 2000);
</script>
<style lang="scss" scoped>