数组里的对象某元素查找一样就把这条对象删除/或者保留其他的删除
this.cabinetShop = this.cabinetShop.filter(
(item) => item.DeptName.indexOf('部门') === -1
);
console.log(this.cabinetShop);
this.cabinetShop = this.cabinetShop.filter(
(item) => item.DeptName.indexOf('部门') === 1
);
console.log(this.cabinetShop);