const originList = _this.wholedate
const selectTable = item;
const listCopy = [...originList];
const listFilter = listCopy.filter(item => item.type == type && item.nature_id == this.$store.state.loginUser.nature_id);
selectTable.forEach(bItem => {
if (!listFilter.some(aItem => aItem.obj_id == bItem.obj_id)) {
listCopy.push({ ...bItem, nature_id: this.$store.state.loginUser.nature_id });
}
});
listFilter.forEach(aItem => {
if (!selectTable.some(bItem => bItem.obj_id == aItem.obj_id)) {
const index = listCopy.indexOf(aItem);
if (index !== -1) {
listCopy.splice(index, 1);
}
}
});
listCopy.forEach(it => {
if (it.overdate) {
it.overdate = true
} else {
it.overdate = false
}
})