数组是否包含 遍历 数组
var boolA = this.selectLots.some( (item) => item == this.AObj.slotGroupName ); var boolB = this.selectLots.some( (item) => item == this.BObj.slotGroupName ); if (boolA) { for (let index = 0; index < this.listA.length; index++) { if (listA[index].carNo && !listA[index].oil) { this.listA[index].oil = obj.oil; this.listA[index].planDetailId = obj.planDetailId; } } }