forked from SmartBench/CMVR-IOT-UI
feat: 排除过滤
This commit is contained in:
parent
40a787e723
commit
560b623b70
@ -346,9 +346,10 @@ const getPointListData = async () => {
|
||||
if (taskRightList.value) {
|
||||
ids = taskRightList.value.map(item => item.id)
|
||||
}
|
||||
taskLeftList.value = res.rows.filter(item => {
|
||||
return !ids.includes(item.id)
|
||||
})
|
||||
// taskLeftList.value = res.rows.filter(item => {
|
||||
// return !ids.includes(item.id)
|
||||
// })
|
||||
taskLeftList.value = res.rows;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -319,9 +319,10 @@ const getTestCaseListData = async () => {
|
||||
if (taskRightList.value) {
|
||||
ids = taskRightList.value.map(item => item.id)
|
||||
}
|
||||
taskLeftList.value = res.rows.filter(item => {
|
||||
return !ids.includes(item.id)
|
||||
})
|
||||
// taskLeftList.value = res.rows.filter(item => {
|
||||
// return !ids.includes(item.id)
|
||||
// })
|
||||
taskLeftList.value = res.rows
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -539,15 +539,16 @@ const getLiftTaskList = () => {
|
||||
id: item.id,
|
||||
};
|
||||
}) || [];
|
||||
if (taskRightList.value.length === 0) {
|
||||
taskLeftList.value = tempLeftData;
|
||||
return;
|
||||
}
|
||||
taskLeftList.value = tempLeftData.filter((item) => {
|
||||
return !taskRightList.value.some((item2) => {
|
||||
return item.id === item2.id;
|
||||
});
|
||||
});
|
||||
// if (taskRightList.value.length === 0) {
|
||||
// taskLeftList.value = tempLeftData;
|
||||
// return;
|
||||
// }
|
||||
// taskLeftList.value = tempLeftData.filter((item) => {
|
||||
// return !taskRightList.value.some((item2) => {
|
||||
// return item.id === item2.id;
|
||||
// });
|
||||
// });
|
||||
taskLeftList.value = tempLeftData;
|
||||
});
|
||||
};
|
||||
//获取右侧编排数据
|
||||
|
||||
Loading…
Reference in New Issue
Block a user