邓洁: 切换隧道,数据渲染
This commit is contained in:
@@ -58,7 +58,7 @@ const bgImage = computed(() => (isVisited.value ? "sp_active.png" : "bg.png"));
|
||||
watch(
|
||||
() => props.list,
|
||||
(now) => {
|
||||
badGasList.value.forEach((item) => {
|
||||
badGasList.value?.forEach((item) => {
|
||||
now.forEach((newItem) => {
|
||||
if (item.equipmentId === newItem.equipmentId) {
|
||||
item.value = newItem.value;
|
||||
@@ -72,7 +72,11 @@ watch(
|
||||
watch(
|
||||
() => props.badGasData,
|
||||
(now) => {
|
||||
getBadGasInfo(now.sensorList);
|
||||
if(now.sensorList===null){
|
||||
badGasList.value=[]
|
||||
}else {
|
||||
getBadGasInfo(now.sensorList);
|
||||
}
|
||||
},
|
||||
{ deep: true }
|
||||
);
|
||||
@@ -87,6 +91,7 @@ const timeSelect = (index) => {
|
||||
}
|
||||
};
|
||||
const getBadGasInfo = (now) => {
|
||||
if(now===null)return;
|
||||
let windPressureObj = {};
|
||||
let windPressureArr = [];
|
||||
now?.map((item) => {
|
||||
|
||||
Reference in New Issue
Block a user