| | |
| | | <view class="container"> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | <view class="all-waterIntake" wx:if="{{currentTab === 0}}"> |
| | | <view class="search-container"> |
| | | <input class="search-input" value="{{inputValue}}" placeholder="请输入取水口编码后点击搜索" bindinput="onInput" /> |
| | |
| | | <block wx:for="{{commonWaterPoints}}" wx:key="index"> |
| | | <view class="item"> |
| | | <view class="item-left"> |
| | | <text>{{item.intakeNum}}</text> |
| | | <image class="item-img-left" src="/images/valve.svg" /> |
| | | <text class="water-intake-name">{{item.intakeNum}}</text> |
| | | <image class="item-img" src="{{item.isOnLine ? '/images/wifi_no.svg' : '/images/wifi_off.svg'}}" /> |
| | | </view> |
| | | <text class="item-button" bindtap="choseCard" data-item="{{item}}">开阀</text> |
| | |
| | | <t-dialog class="error-dialog" title="开阀错误" visible="{{showErrorDialog}}" content="{{errorData}}" confirm-btn="{{ confirmBtn }}" bind:confirm="closeErrorDialog" /> |
| | | |
| | | <t-dialog visible="{{showForceConfirm}}" content="当前虚拟卡被占用,是否强制开阀?" confirm-btn="{{ { content: '强制开阀', variant: 'base', theme: 'danger' } }}" cancel-btn="取消" bind:confirm="confirmForceDialog" bind:cancel="cancelDialog" /> |
| | | |
| | | <!-- 黑色蒙层 --> |
| | | <view class="overlay" wx:if="{{showDialog}}" bindtap="closeDialog"></view> |
| | | <!-- 选择灌溉模式 --> |
| | | <view class="dialog" wx:if="{{showDialog}}"> |
| | | <image class="close" src="/images/close.svg" bindtap="handleClost"></image> |
| | | <view class="dialog-content" wx:if="{{dialog_mode}}"> |
| | | <view class="dialog-title">请选择开关阀方式</view> |
| | | <button bindtap="postOpenValva">手动开阀手动关阀</button> |
| | | <button bindtap="handleSetDuration">开阀后定时长自动关阀</button> |
| | | <button bindtap="handleSetWaterVolume">开阀后定水量自动关阀</button> |
| | | </view> |
| | | <view class="dialog-content" wx:if="{{dialog_time}}"> |
| | | <view class="dialog-title"> |
| | | <image class="dialog-title-img" bind:tap="dialogBack" src="/images/back.svg"></image> |
| | | <text class="dialog-title-text">开阀后定时长自动关阀</text> |
| | | </view> |
| | | <view> |
| | | <view class="row"> |
| | | <view class="choseitem{{activeIndex === 0 ? 'active' : ''}}" bindtap="handleTimeWrapperTap" data-index="0"> |
| | | <view class="chose-wrapper"> |
| | | <text class="chose-number">{{irrigateProfile[0].defaultValue}}</text> |
| | | <text class="chose-label">{{irrigateProfile[0].unitText}}</text> |
| | | </view> |
| | | </view> |
| | | <view class="choseitem{{activeIndex === 1 ? 'active' : ''}}" bindtap="handleTimeWrapperTap" data-index="1"> |
| | | <view class="chose-wrapper"> |
| | | <text class="chose-number">{{irrigateProfile[1].defaultValue}}</text> |
| | | <text class="chose-label">{{irrigateProfile[1].unitText}}</text> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view class="row"> |
| | | <view class="choseitem{{activeIndex === 2 ? 'active' : ''}}" bindtap="handleTimeWrapperTap" data-index="2"> |
| | | <view class="chose-wrapper"> |
| | | <text class="chose-number">{{irrigateProfile[2].defaultValue}}</text> |
| | | <text class="chose-label">{{irrigateProfile[2].unitText}}</text> |
| | | </view> |
| | | </view> |
| | | <view class="choseitem{{activeIndex === 3 ? 'active' : ''}}" bindtap="handleTimeWrapperTap" data-index="3"> |
| | | <view class="chose-wrapper"> |
| | | <text class="chose-number">{{irrigateProfile[3].defaultValue}}</text> |
| | | <text class="chose-label">{{irrigateProfile[3].unitText}}</text> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view> |
| | | <t-input label="" value="{{costiomTime}}" placeholder="或在此输入自定义时间" type="number" bind:change="onTimeInputChange"> |
| | | </t-input> |
| | | <t-radio-group bind:change="onGroupOpenTimeTypeChange" wx:if="{{group_time}}" default-value="0" borderless t-class="box"> |
| | | <t-radio block="{{false}}" label="分钟" value="0" /> |
| | | <t-radio block="{{false}}" label="小时" value="1" /> |
| | | </t-radio-group> |
| | | <t-radio-group bind:change="onGroupOpenTimeChange" value="{{radioValue}}" default-value="0" borderless t-class="box"> |
| | | <t-radio block="{{false}}" label="现在开阀" value="0" /> |
| | | <t-radio block="{{false}}" label="计划开阀时间" value="1" /> |
| | | </t-radio-group> |
| | | <text class="open-time" wx:if="{{isShowOpenTime}}">{{openTimeText}}</text> |
| | | <button bindtap="btnOpenOnTime">开阀</button> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view class="dialog-content" wx:if="{{dialog_water}}"> |
| | | <view class="dialog-title"> |
| | | <image class="dialog-title-img" bind:tap="dialogBack" src="/images/back.svg"/> |
| | | <text class="dialog-title-text">开阀后定水量自动关阀</text> |
| | | </view> |
| | | <view> |
| | | <view class="row"> |
| | | <view class="choseitem{{activeIndex === 0 ? 'active' : ''}}" bindtap="handleWaterWrapperTap" data-index="0"> |
| | | <view class="chose-wrapper"> |
| | | <text class="chose-number">{{irrigateProfile[0].defaultValue}}</text> |
| | | <text class="chose-label">{{irrigateProfile[0].unitText}}</text> |
| | | </view> |
| | | </view> |
| | | <view class="choseitem{{activeIndex === 1 ? 'active' : ''}}" bindtap="handleWaterWrapperTap" data-index="1"> |
| | | <view class="chose-wrapper"> |
| | | <text class="chose-number">{{irrigateProfile[1].defaultValue}}</text> |
| | | <text class="chose-label">{{irrigateProfile[1].unitText}}</text> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view class="row"> |
| | | <view class="choseitem{{activeIndex === 2 ? 'active' : ''}}" bindtap="handleWaterWrapperTap" data-index="2"> |
| | | <view class="chose-wrapper"> |
| | | <text class="chose-number">{{irrigateProfile[2].defaultValue}}</text> |
| | | <text class="chose-label">{{irrigateProfile[2].unitText}}</text> |
| | | </view> |
| | | </view> |
| | | <view class="choseitem{{activeIndex === 3 ? 'active' : ''}}" bindtap="handleWaterWrapperTap" data-index="3"> |
| | | <view class="chose-wrapper"> |
| | | <text class="chose-number">{{irrigateProfile[3].defaultValue}}</text> |
| | | <text class="chose-label">{{irrigateProfile[3].unitText}}</text> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view> |
| | | <t-input label="" value="{{costiomWater}}" suffix="立方米" align="right" type="number" placeholder="或在此输入自定义水量" bind:change="onWaterInputChange"> |
| | | </t-input> |
| | | <t-radio-group bind:change="onGroupOpenTimeChange" value="{{radioValue}}" default-value="0" borderless t-class="box"> |
| | | <t-radio block="{{false}}" label="现在开阀" value="0" /> |
| | | <t-radio block="{{false}}" label="计划开阀时间" value="1" /> |
| | | </t-radio-group> |
| | | <text class="open-time" wx:if="{{isShowOpenTime}}">{{openTimeText}}</text> |
| | | <button bindtap="btnOpenOnWater">开阀</button> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <!-- 年月日时分 --> |
| | | <t-date-time-picker title="选择日期和时间" visible="{{datetimeVisible}}" mode="minute" value="{{datetime}}" format="YYYY-MM-DD HH:mm" bindchange="onConfirm" bindpick="onColumnChange" bindcancel="hidePicker" start="{{dateStartTime}}" end="{{dateEndTime}}"/> |
| | | |
| | | </view> |