runSettingTemplate.wxml 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <!-- <import src="../hot/stars.wxml" />
  2. <import src="../image/item-image.wxml" /> -->
  3. <template name="runSettingTemplate">
  4. <view style="height:100%;width:100%; ">
  5. <block wx:if="{{runSetting.agreement =='szy2012'}}">
  6. <view class="view-block">
  7. <scroll-view scroll-y="true" class="sv">
  8. <view>水位上报间隔:</view>
  9. <view class="myinput">
  10. <input type='text' auto-focus bindinput='waterLevelInputHandle' value='{{runSetting.szy_intervalTime_setting_01}}'></input>
  11. </view>
  12. <view>流量上报间隔:</view>
  13. <view class="myinput">
  14. <input type='text' bindinput='flowRateInputHandle' value='{{runSetting.szy_intervalTime_setting_02}}'></input>
  15. </view>
  16. <view>流速上报间隔:</view>
  17. <view class="myinput">
  18. <input type='text' bindinput='flowSpeedInputHandle' value='{{runSetting.szy_intervalTime_setting_03}}'></input>
  19. </view>
  20. </scroll-view>
  21. </view>
  22. </block>
  23. <block wx:else>
  24. <view class="view-block">
  25. <scroll-view scroll-y="true" class="sv">
  26. <view>上报间隔:</view>
  27. <view class="weui-cells weui-cells_after-title">
  28. <radio-group bindchange="radioChange">
  29. <label class="time-select" wx:for="{{runSetting.datagramTimes}}" wx:key="value">
  30. <view style="margin:5rpx;">
  31. <block wx:if="{{item.checked}}">
  32. <radio value="{{item.value}}" checked="true" />
  33. </block>
  34. <block wx:else>
  35. <radio value="{{item.value}}" />
  36. </block>
  37. </view>
  38. <view style="margin:5rpx;color:darkgray;">{{item.name}}</view>
  39. </label>
  40. </radio-group>
  41. </view>
  42. <view>加报时间间隔(分钟):</view>
  43. <view class="myinput">
  44. <input type='text' bindinput='addDatagramInputHandle' value='{{runSetting.addIntervalTime}}'></input>
  45. </view>
  46. <view>水位基值(米):</view>
  47. <view class="myinput">
  48. <input type='text' bindinput='waterBaseValueInputHandle' value='{{runSetting.waterLevelBase}}'></input>
  49. </view>
  50. <view>水位修正基值(米):</view>
  51. <view class="myinput">
  52. <input type='text' bindinput='waterCorrectValueInputHandle' value='{{runSetting.waterLevelCorrectValue}}'></input>
  53. </view>
  54. <view>水位以上加报阀值(米):</view>
  55. <view class="myinput">
  56. <input type='text' bindinput='upWaterLevelInputHandle' value='{{runSetting.addWaterUpValue}}'></input>
  57. </view>
  58. </scroll-view>
  59. </view>
  60. </block>
  61. <view class="submit-btn">
  62. <button type="primary" bindtap="submitRunsetting">提交</button>
  63. </view>
  64. </view>
  65. </template>