邓洁 : 传感器接口对接
This commit is contained in:
@@ -15,11 +15,11 @@ const props = defineProps({
|
||||
winData: Array
|
||||
});
|
||||
const wpList = ref([]);
|
||||
watch(() => props.list, (now, old) => {
|
||||
watch(() => props.list, (now) => {
|
||||
wpList.value.forEach(item=>{
|
||||
now.forEach(item2=>{
|
||||
if(item.equipmentId === item2.equipmentId){
|
||||
item.value = item2.value
|
||||
now.forEach(newItem=>{
|
||||
if(item.equipmentId === newItem.equipmentId){
|
||||
item.value = newItem.value
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user