zhanghongrui 11 bulan lalu
induk
melakukan
9b4231c952
1 mengubah file dengan 3 tambahan dan 3 penghapusan
  1. 3 3
      pages/statistics/historyDetailsInfrastructure.vue

+ 3 - 3
pages/statistics/historyDetailsInfrastructure.vue

@@ -187,11 +187,11 @@
 							this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList.forEach((val, index) => {
 								if (val.createBy == this.$user.state.name) {
 
-									this.selectList.forEach((item, index2) => {
+									// this.selectList.forEach((item, index2) => {
 
 										val.zEngineeringMaterialBo.forEach((itemEnd, indexEnd) => {
 
-											if (itemEnd.materialQuality == item.id) {
+											if (this.selectList.some(item => item.id === itemEnd.materialQuality)) {
 												this.dataJson.zEngineeringNodeBo
 													.zEngineeringInfoBoList[
 														index]
@@ -206,7 +206,7 @@
 													.isNew = true
 											}
 										})
-									})
+									// })
 
 								}
 							})