// 从 row.positionList 中找出不在 positionList.value 中的元素,即 row.positionList 中独有的元素。为新增元素
// const commonNewArrList = (arr1: any, arr2: any) => {
// return arr1.filter(
// (item1: any) => !arr2.some((item2: any) => item2.dictValue === item1)
// );
// };
// 从 row.positionList 中找出不在 positionList.value 中的元素,删除不存在的元素
// const commonOldArrList = (arr1: any, arr2: any) => {
// return arr1.filter((item1: any) =>
// arr2.some((item2: any) => item1 === item2.dictValue)
// );
// };
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交