| | |
| | | choseCard(event) { |
| | | //显示二次确认弹窗 |
| | | this.setData({ |
| | | // showConfirm: true, |
| | | showConfirm: true, |
| | | choseItem: event.currentTarget.dataset.item, |
| | | allWaterPoints: [] |
| | | |
| | | }) |
| | | this.initDialogData(); |
| | | |
| | | // console.log(intakeId); |
| | | // wx.navigateTo({ |
| | | // url: '/pages/openCard/openCard?intakeId='+intakeId, |
| | | // }) |
| | | |
| | | // 注意:initDialogData的调用移到了confirmDialog方法中 |
| | | }, |
| | | //开泵通信 |
| | | /** |
| | |
| | | isRefreshing_all: false |
| | | }); |
| | | if (data.success && data.code === "0001") { |
| | | if (!data.content) { |
| | | if (!data.content || data.content.itemTotal === 0 || !data.content.obj || data.content.obj.length === 0) { |
| | | wx.showToast({ |
| | | title: '没有搜索到取水口', |
| | | icon: 'error', |
| | | }) |
| | | } else { |
| | | this.setData({ |
| | | allWaterPoints: [data.content] |
| | | allWaterPoints: data.content.obj |
| | | }); |
| | | } |
| | | |
| | |
| | | this.getcommonWaterPoints(); |
| | | }, |
| | | confirmDialog() { |
| | | // this.setData({ |
| | | // showConfirm: false |
| | | // }) |
| | | // this.postOpenValva(this.data.choseItem.intakeId); |
| | | this.setData({ |
| | | showConfirm: false |
| | | }) |