Browse Source

修改参数

menchuang 1 năm trước cách đây
mục cha
commit
58befdc54f
2 tập tin đã thay đổi với 6 bổ sung35 xóa
  1. 3 17
      pages/bottom_leg/bottom_leg.vue
  2. 3 18
      pages/piping_record/piping_record.vue

+ 3 - 17
pages/bottom_leg/bottom_leg.vue

@@ -305,16 +305,10 @@
 				},
 
 				getStatus() {
-					let buildingId = '';
-					if (this.isEmpty(this.LDValue.id)) {
-						buildingId = '';
-					} else {
-						buildingId = this.LDValue.id
-					}
 					let param = {
 						areaId: this.XQValue.id, // 小区id
 						buildingId: buildingId, // 楼宇id
-						unitId: this.DYValue.id,
+						unitId: this.isEmpty(this.DYValue.id)?'':this.DYValue.id,
 						enginCycle: this.projectValue.dictValue, // 工程周期
 						enginType: this.objValue.enginType, //写死 上一页面传过来的
 						enginClassification: this.objValue.enginClassification, //写死  上一页面传过来的  //室内 - 庭院 - 架空
@@ -374,7 +368,7 @@
 							district: this.XZQValue.dictValue,
 							areaId: this.XQValue.id,
 							buildingId: this.LDValue.id,
-							unitId: this.DYValue.id,
+							unitId: this.isEmpty(this.DYValue.id)?'':this.DYValue.id,
 							enginType: this.objValue.enginType, //写死 上一页面传过来的 
 							enginClassification: this.objValue
 								.enginClassification, //写死  上一页面传过来的  //室内 - 庭院 - 架空
@@ -676,18 +670,10 @@
 						return
 					}
 
-					let unitId = '';
-					let houseId = '';
-					if (this.isEmpty(this.DYValue.id)) {
-						unitId = '';
-					} else {
-						unitId = this.DYValue.id
-					}
-
 					let param = {
 						areaId: this.XQValue.id, // 小区id
 						buildingId: this.LDValue.id, // 楼宇id
-						unitId: unitId, // 单元id
+						unitId: this.isEmpty(this.DYValue.id)?'':this.DYValue.id, // 单元id
 						enginCycle: this.projectValue.dictValue, // 工程周期
 						enginType: this.objValue.enginType, //写死 上一页面传过来的  新建/旧改
 						enginClassification: this.objValue.enginClassification, //写死  上一页面传过来的  //室内 - 庭院 - 架空

+ 3 - 18
pages/piping_record/piping_record.vue

@@ -246,16 +246,10 @@
 				},
 
 				getStatus() {
-					let buildingId = '';
-					if (this.isEmpty(this.LDValue.id)) {
-						buildingId = '';
-					} else {
-						buildingId = this.LDValue.id
-					}
 					let param = {
 						areaId: this.XQValue.id, // 小区id
 						buildingId: buildingId, // 楼宇id
-						unitId: this.DYValue.id,
+						unitId: this.isEmpty(this.DYValue.id)?'':this.DYValue.id,
 						enginCycle: this.projectValue.dictValue, // 工程周期
 						enginType: this.objValue.enginType, //写死 上一页面传过来的
 						enginClassification: this.objValue.enginClassification, //写死  上一页面传过来的  //室内 - 庭院 - 架空
@@ -303,18 +297,10 @@
 						this.$modal.msg("请选择楼栋")
 						return
 					}
-
-					let unitId = '';
-					if (this.isEmpty(this.DYValue.id)) {
-						unitId = '';
-					} else {
-						unitId = this.DYValue.id
-					}
-
 					let param = {
 						areaId: this.XQValue.id, // 小区id
 						buildingId: this.LDValue.id, // 楼宇id
-						unitId: unitId, // 单元id
+						unitId: this.isEmpty(this.DYValue.id)?'':this.DYValue.id, // 单元id
 						enginCycle: this.projectValue.dictValue, // 工程周期
 						enginType: this.objValue.enginType, //写死 上一页面传过来的  新建/旧改
 						enginClassification: this.objValue.enginClassification, //写死  上一页面传过来的  //室内 - 庭院 - 架空
@@ -353,13 +339,12 @@
 					} else if (this.imgArr.length <= 0) {
 						this.$modal.msg("请上传照片")
 					} else {
-
 						uni.showLoading()
 						let param = {
 							district: this.XZQValue.dictValue,
 							areaId: this.XQValue.id,
 							buildingId: this.LDValue.id,
-							unitId: this.DYValue.id,
+							unitId: this.isEmpty(this.DYValue.id)?'':this.DYValue.id,
 							enginType: this.objValue.enginType, //写死 上一页面传过来的 
 							enginClassification: this.objValue
 								.enginClassification, //写死  上一页面传过来的  //室内 - 庭院 - 架空