xq commit:"完成了筛选"
This commit is contained in:
@ -1209,11 +1209,10 @@ watch(
|
|||||||
if (nv !== ov) {
|
if (nv !== ov) {
|
||||||
inverterList.value = [];
|
inverterList.value = [];
|
||||||
const a = totalArr.value.filter((item) => item.projectId === nv || item.projectId === '0');
|
const a = totalArr.value.filter((item) => item.projectId === nv || item.projectId === '0');
|
||||||
console.info(nv);
|
|
||||||
console.info(a);
|
|
||||||
a.forEach((item) => {
|
a.forEach((item) => {
|
||||||
inverterList.value.push(item);
|
inverterList.value.push(item);
|
||||||
});
|
});
|
||||||
|
total.value = inverterList.value.length;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ immediate: true }
|
{ immediate: true }
|
||||||
|
Reference in New Issue
Block a user