唐润平:显示面板雏形全部完成并优化了第一个风机面板样式
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user