Browse Source

Merge branch 'dlt_taidong' into data-page

taidong
duanliangtao 1 year ago
parent
commit
16b3b77f4f
  1. 7
      subpages/demandCheck/pages/dissatisfied/demandCheck/demandCheck.js
  2. 6
      subpages/demandCheck/pages/dissatisfied/demandCheck/demandCheck.wxml
  3. 8
      subpages/myTroubleshootDemand/pages/index/index.js
  4. 6
      utils/api.js

7
subpages/demandCheck/pages/dissatisfied/demandCheck/demandCheck.js

@ -161,11 +161,18 @@ Page({
'fmData.resiId': res.data.reportUserId, 'fmData.resiId': res.data.reportUserId,
'fmData.longitude': res.data.longitude, 'fmData.longitude': res.data.longitude,
'fmData.latitude': res.data.latitude, 'fmData.latitude': res.data.latitude,
'fmData.demandType': res.data.demandType,
'fmData.responsibleUnit': res.data.responsibleUnit,
'fmData.responsibleName': res.data.responsibleName,
'fmData.responsibleMobile': res.data.responsibleMobile,
agencyName: res.data.gridName, agencyName: res.data.gridName,
showTime: res.data.happenTime, showTime: res.data.happenTime,
addressContent: res.data.address, addressContent: res.data.address,
resiName: res.data.name, resiName: res.data.name,
resiMobile: res.data.mobile, resiMobile: res.data.mobile,
responsibleUnit: res.data.responsibleUnit,
responsibleName: res.data.responsibleName,
responsibleMobile: res.data.responsibleMobile,
uploadImageList: res.data.imageList && res.data.imageList.length > 0 ? res.data.imageList.map(item => ({ uploadImageList: res.data.imageList && res.data.imageList.length > 0 ? res.data.imageList.map(item => ({
ossUrl: { ossUrl: {
url: item url: item

6
subpages/demandCheck/pages/dissatisfied/demandCheck/demandCheck.wxml

@ -156,7 +156,7 @@
</view> </view>
</view> </view>
<view class="item" wx:if="{{tabVal === '2'}}"> <view class="item" wx:if="{{tabVal === '2' || fmData.demandType==='chengguan'}}">
<view class="field"> <view class="field">
<text class="must">*</text> <text class="must">*</text>
<view class="field-text">有无责任单位</view> <view class="field-text">有无责任单位</view>
@ -170,7 +170,7 @@
</view> </view>
<view class="item" wx:if="{{tabVal === '2' && ruTabVal=== 'yes'}}"> <view class="item" wx:if="{{(tabVal === '2' && ruTabVal=== 'yes') || fmData.demandType==='chengguan'}}">
<view class="field"> <view class="field">
<text class="must">*</text> <text class="must">*</text>
<view class="field-text">责任人</view> <view class="field-text">责任人</view>
@ -180,7 +180,7 @@
</view> </view>
</view> </view>
<view class="item" wx:if="{{tabVal === '2' && ruTabVal=== 'yes'}}"> <view class="item" wx:if="{{(tabVal === '2' && ruTabVal=== 'yes') || fmData.demandType==='chengguan'}}">
<view class="field"> <view class="field">
<text class="must">*</text> <text class="must">*</text>
<view class="field-text">责任人电话</view> <view class="field-text">责任人电话</view>

8
subpages/myTroubleshootDemand/pages/index/index.js

@ -1,4 +1,4 @@
import {getMyTroubleshootDemand} from "../../../../utils/api" import {getMyTroubleshootDemand,getMyWaitTroubleshootDemand} from "../../../../utils/api"
var global = require('../../../../utils/config') var global = require('../../../../utils/config')
const app = getApp() const app = getApp()
@ -84,7 +84,7 @@ Page({
this.data.pageNo += 1 this.data.pageNo += 1
// 待我处理 // 待我处理
if(this.data.checkResultFlag===0){ if(this.data.checkResultFlag===0){
this.getMyTroubleshootDemandList() this.getMyWaitTroubleshootDemandList()
} }
// 我上报的 // 我上报的
if(this.data.checkResultFlag===1){ if(this.data.checkResultFlag===1){
@ -135,7 +135,7 @@ Page({
pageSize:this.data.pageSize pageSize:this.data.pageSize
} }
if(!parm.type) delete parm.type if(!parm.type) delete parm.type
getMyTroubleshootDemand(parm).then(res=>{ getMyWaitTroubleshootDemand(parm).then(res=>{
this.setData({ this.setData({
loadMoreType: res.data.list.length === this.data.pageSize ? 'more' : 'none', loadMoreType: res.data.list.length === this.data.pageSize ? 'more' : 'none',
tableData1: this.data.tableData.concat(res.data.list), tableData1: this.data.tableData.concat(res.data.list),
@ -163,7 +163,7 @@ Page({
toDetail(e){ toDetail(e){
console.log(e); console.log(e);
wx.navigateTo({ wx.navigateTo({
url: `/subpages/demandCheck/pages/dissatisfied/demandCheck/demandCheck?id=${e.currentTarget.dataset.item.id}&type=${e.currentTarget.dataset.item.type==="event"?0:1}`, url: `/subpages/demandCheck/pages/dissatisfied/demandCheck/demandCheck?id=${e.currentTarget.dataset.item.id}&type=${(e.currentTarget.dataset.item.type==="event" || e.currentTarget.dataset.item.type==="chengguan")?0:1}`,
}) })
}, },

6
utils/api.js

@ -57,6 +57,7 @@ module.exports = {
recorHistory, recorHistory,
serviceNumber, serviceNumber,
getMyTroubleshootDemand, getMyTroubleshootDemand,
getMyWaitTroubleshootDemand,
getIcEventOld, getIcEventOld,
getDemandDetail, getDemandDetail,
updateMeasure, updateMeasure,
@ -333,6 +334,11 @@ function serviceNumber(parm) {
function getMyTroubleshootDemand(parm) { function getMyTroubleshootDemand(parm) {
return fly.get(`governance/demandCollect/my/collects`,parm) return fly.get(`governance/demandCollect/my/collects`,parm)
} }
//获取我的诉求摸排-待我处理
function getMyWaitTroubleshootDemand(parm) {
return fly.get(`governance/demandCollect/my/orderList`,parm)
}
// 过去事件详情 // 过去事件详情
function getIcEventOld(parm) { function getIcEventOld(parm) {
return fly.post(`governance/icEventOld/detail`,parm) return fly.post(`governance/icEventOld/detail`,parm)

Loading…
Cancel
Save