123123

// 从 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)
// );
// };

你可能感兴趣的:(java,前端,javascript)