diff --git a/pages/projectEnd/dangerBigProject/list/list.vue b/pages/projectEnd/dangerBigProject/list/list.vue index 80dc1e5f..9889b7a3 100644 --- a/pages/projectEnd/dangerBigProject/list/list.vue +++ b/pages/projectEnd/dangerBigProject/list/list.vue @@ -367,12 +367,14 @@ chekItm8: '', engineeringId: '', + workType: '' } }, onLoad(option) { this.condition.projectSn = JSON.parse(uni.getStorageSync('projectDetail')).projectSn; this.userInfo = JSON.parse(uni.getStorageSync('userInfo')) this.engineeringId = option.engineeringId + this.workType = Number(option.type) // console.log(JSON.parse(uni.getStorageSync('userInfo'))) this.getCheckPointList(); @@ -503,6 +505,7 @@ this.condition.regionId = this.regionId let that = this; + that.condition.type = that.workType this.sendRequest({ url: 'xmgl/xzSecurityQualityInspectionRecord/list', method: 'post', @@ -561,6 +564,7 @@ this.condition.search = e.detail.value let that = this; // uni.showLoading({title: '加载中'}) + that.condition.type = that.workType this.sendRequest({ url: 'xmgl/xzSecurityQualityInspectionRecord/list', method: 'post', @@ -950,6 +954,7 @@ console.log('查询列表条件数据', this.checkedTab) let that = this; // uni.showLoading({title: '加载中'}) + that.condition.type = that.workType this.sendRequest({ url: 'xmgl/xzSecurityQualityInspectionRecord/list', method: 'post', diff --git a/pages/projectEnd/specialOperations/fireWork/addSide.vue b/pages/projectEnd/specialOperations/fireWork/addSide.vue index 1cfe1132..4881eb60 100644 --- a/pages/projectEnd/specialOperations/fireWork/addSide.vue +++ b/pages/projectEnd/specialOperations/fireWork/addSide.vue @@ -164,7 +164,7 @@ buildSituation: this.formData.buildSituation, dangerousEngineeringId: this.formData.dangerousEngineeringId, createUser: JSON.parse(uni.getStorageSync('userInfo')).userId, - type:2 + type: 2 } let arr = [] this.formData.imgFileList.forEach(item=>{ diff --git a/pages/projectEnd/specialOperations/fireWork/addWorkFinally.vue b/pages/projectEnd/specialOperations/fireWork/addWorkFinally.vue index 77b51522..e8c57fbd 100644 --- a/pages/projectEnd/specialOperations/fireWork/addWorkFinally.vue +++ b/pages/projectEnd/specialOperations/fireWork/addWorkFinally.vue @@ -144,7 +144,7 @@ acceptanceUnitId: this.enterpriseId, acceptanceUserId: this.acceptancePerson.userId, planTime: this.planTime, - type:2 + type: 2 } console.log(data); if(!data.acceptanceUnitId){ diff --git a/pages/projectEnd/specialOperations/fireWork/check.vue b/pages/projectEnd/specialOperations/fireWork/check.vue index 996308f0..4917d094 100644 --- a/pages/projectEnd/specialOperations/fireWork/check.vue +++ b/pages/projectEnd/specialOperations/fireWork/check.vue @@ -246,7 +246,7 @@ acceptanceResult: this.formData.acceptanceResult, //验收结果 acceptanceDesc: this.formData.acceptanceDescribe, //验收描述 photo: this.formData.imgFileList[0].url, - type:2 + type: 2 } // data.createUser = JSON.parse(uni.getStorageSync('userInfo')).userId; // let arr = [] diff --git a/pages/projectEnd/specialOperations/fireWork/checkList.vue b/pages/projectEnd/specialOperations/fireWork/checkList.vue index a85e8e9d..010ca541 100644 --- a/pages/projectEnd/specialOperations/fireWork/checkList.vue +++ b/pages/projectEnd/specialOperations/fireWork/checkList.vue @@ -61,7 +61,7 @@ data:{ projectSn: this.projectSn, acceptanceUserId: this.userInfo.userId, - type:2 + type: 2 }, success:res=>{ uni.hideLoading() diff --git a/pages/projectEnd/specialOperations/fireWork/detail.vue b/pages/projectEnd/specialOperations/fireWork/detail.vue index a511c578..84fd5483 100644 --- a/pages/projectEnd/specialOperations/fireWork/detail.vue +++ b/pages/projectEnd/specialOperations/fireWork/detail.vue @@ -222,7 +222,7 @@ data:{ engineeringId: this.detailData.id, projectSn: JSON.parse(uni.getStorageSync('projectDetail')).projectSn, - type:2 + type: 2 }, success:res=>{ uni.hideLoading() diff --git a/pages/projectEnd/specialOperations/fireWork/plan.vue b/pages/projectEnd/specialOperations/fireWork/plan.vue index 77a2d7c7..88e6fd10 100644 --- a/pages/projectEnd/specialOperations/fireWork/plan.vue +++ b/pages/projectEnd/specialOperations/fireWork/plan.vue @@ -52,7 +52,10 @@ this.sendRequest({ url:'xmgl/dangerousEngineeringProgressRecord/list', method:'post', - data: {engineeringId: this.detailId,type: 2}, + data: { + engineeringId: this.detailId, + type: 2, + }, success:res=>{ uni.hideLoading() if(res.code==200){ diff --git a/pages/projectEnd/specialOperations/fireWork/safeList.vue b/pages/projectEnd/specialOperations/fireWork/safeList.vue index ad22a21b..f50a9927 100644 --- a/pages/projectEnd/specialOperations/fireWork/safeList.vue +++ b/pages/projectEnd/specialOperations/fireWork/safeList.vue @@ -376,7 +376,7 @@ this.engineeringId = option.engineeringId // console.log(JSON.parse(uni.getStorageSync('userInfo'))) this.getCheckPointList(); - this.workType = option.type + this.workType = Number(option.type) }, onShow() { this.listData = []; @@ -504,6 +504,7 @@ this.condition.regionId = this.regionId let that = this; + that.condition.type = that.workType this.sendRequest({ url: 'xmgl/xzSecurityQualityInspectionRecord/list', method: 'post', @@ -562,6 +563,7 @@ this.condition.search = e.detail.value let that = this; // uni.showLoading({title: '加载中'}) + that.condition.type = that.workType this.sendRequest({ url: 'xmgl/xzSecurityQualityInspectionRecord/list', method: 'post', @@ -951,7 +953,7 @@ console.log('查询列表条件数据', this.checkedTab) let that = this; // uni.showLoading({title: '加载中'}) - that.condition.type = Number(that.workType) + that.condition.type = that.workType this.sendRequest({ url: 'xmgl/xzSecurityQualityInspectionRecord/list', method: 'post', diff --git a/pages/projectEnd/specialOperations/fireWork/side.vue b/pages/projectEnd/specialOperations/fireWork/side.vue index 537c4a1c..c9f3a397 100644 --- a/pages/projectEnd/specialOperations/fireWork/side.vue +++ b/pages/projectEnd/specialOperations/fireWork/side.vue @@ -52,7 +52,10 @@ this.sendRequest({ url:'xmgl/dangerousEngineeringSideStation/selectList', method:'post', - data: {engineeringId: this.detailId,type:2}, + data: { + engineeringId: this.detailId, + type:2, + }, success:res=>{ uni.hideLoading() if(res.code==200){ diff --git a/pages/projectEnd/specialOperations/fireWork/work.vue b/pages/projectEnd/specialOperations/fireWork/work.vue index 7e9e3443..b78d82f6 100644 --- a/pages/projectEnd/specialOperations/fireWork/work.vue +++ b/pages/projectEnd/specialOperations/fireWork/work.vue @@ -70,15 +70,13 @@ if(!this.isLoadMore){ //此处判断,上锁,防止重复请求 this.isLoadMore=true this.pageNo+=1 - // this.initData() - this.getWorkList() + this.getWorkList() } }, onPullDownRefresh() { console.log(2) this.pageNo=1 this.listData=[] - // this.initData() this.getWorkList() }, methods:{ @@ -117,35 +115,7 @@ uni.navigateTo({ url:'./detail?id='+val.id }) - }, - // initData(){ - // let data = { - // pageNo: this.pageNo, - // pageSize: this.pageSize, - // projectSn: this.projectSn - // } - // this.sendRequest({ - // url:'xmgl/dangerousEngineeringRecord/list', - // method:'post', - // data:data, - // success:res=>{ - // uni.hideLoading() - // if(res.code==200){ - // // this.listData = res.result.records - // this.listData=this.listData.concat(res.result.records) - // if(res.result.records.length diff --git a/pages/projectEnd/specialOperations/fireWork/workFinally.vue b/pages/projectEnd/specialOperations/fireWork/workFinally.vue index 6b76056a..1eb35c4e 100644 --- a/pages/projectEnd/specialOperations/fireWork/workFinally.vue +++ b/pages/projectEnd/specialOperations/fireWork/workFinally.vue @@ -51,7 +51,7 @@ data:{ engineeringId: this.detailId, projectSn: JSON.parse(uni.getStorageSync('projectDetail')).projectSn, - type:2 + type: 2 }, success:res=>{ uni.hideLoading()