Browse Source

走访打卡不生效问题解决

dongming
mk 5 months ago
parent
commit
1c4128cad8
  1. 4
      pages/work2/work2.wxml
  2. 6
      subpages/demandCheck/pages/dissatisfied/demandCheck/demandCheck.js
  3. 3
      subpages/house/pages/housePortrait/component/graph/graph.js
  4. 7
      subpages/house/pages/housePortrait/housePortrait.js
  5. 2
      subpages/house/pages/housePortrait/housePortrait.wxml

4
pages/work2/work2.wxml

@ -84,10 +84,6 @@
<image src="/images/work2/12345.png" class="image_13-21" style="margin-left: 25px;" bind:tap="onHotlineCompletion"></image>
<text lines="1" class="text_4-0">热线接办</text>
</view>
<view>
<image src="/images/work2/review.png" class="image_12-0" bind:tap="toReview"></image>
<text lines="1" class="text_3-0" >安检巡查</text>
</view>
</view>
</view>

6
subpages/demandCheck/pages/dissatisfied/demandCheck/demandCheck.js

@ -20,9 +20,9 @@ Page({
optionsId: '',
isDisabled: false, // 默认不禁用
defaultMeasureNames: {
label: 'categoryName',
value: 'categoryCode',
children: 'childCateList'
label: 'label',
value: 'id',
children: 'children'
},
fmData: {
gridId: '',

3
subpages/house/pages/housePortrait/component/graph/graph.js

@ -62,6 +62,9 @@ Component({
data
}) => {
data = data.filter(item=>item.id!=this.data.houseId);
if(data && data.length>0){
this.triggerEvent('getResiId', data[0].id);
}
const rootNode = {};
rootNode["id"] = this.data.houseId;
rootNode["name"] = this.data.houseName;

7
subpages/house/pages/housePortrait/housePortrait.js

@ -29,6 +29,11 @@ Page({
this.getData()
}
},
handleGetResiId(item){
this.setData({
"detail.residentId":item.detail
})
},
getData() {
api.getClearHouseDeatilById(this.data.houseId).then((res) => {
this.setData({
@ -112,7 +117,7 @@ Page({
* 生命周期函数--监听页面显示
*/
onShow() {
this.getTabData();
},
/**

2
subpages/house/pages/housePortrait/housePortrait.wxml

@ -30,7 +30,7 @@
<image mode="widthFix" src="../../../../images/right.png"></image>
</view>
</view>
<house-graph wx:if="{{detail}}" houseId="{{houseId}}" bind:clickGraphNode="clickGraphNode" ></house-graph>
<house-graph wx:if="{{detail}}" bind:getResiId="handleGetResiId" houseId="{{houseId}}" bind:clickGraphNode="clickGraphNode" ></house-graph>
</view>
<view class="card">

Loading…
Cancel
Save