bluetoothBaseSetting.wxml 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. <page>
  2. <view class="body-content">
  3. <view class="info_list_box">
  4. <scroll-view class="info_list" scroll-y scroll-with-animation>
  5. <!-- RTU编码设置 -->
  6. <view class="weui-panel weui-panel_access">
  7. <view class="weui-panel__hd">RTU编码</view>
  8. <view class="weui-panel__bd">
  9. <view class="weui-media-box__bd weui-media-box__bd_in-appmsg">
  10. <view class="myinput ip-group">
  11. <input type='text' value='{{rtuInfo.rtu_code}}' bindinput="bindNewRtuCodeInput"></input>
  12. </view>
  13. </view>
  14. </view>
  15. </view>
  16. <!-- 网络模式 -->
  17. <view class="weui-panel weui-panel_access">
  18. <view class="weui-panel__hd">网络模式</view>
  19. <view class="weui-panel__bd">
  20. <view class="weui-media-box__bd weui-media-box__bd_in-appmsg">
  21. <view>
  22. <radio-group bindchange="netModelsCheckedChange">
  23. <label class="check-label-title" wx:for="{{netModels}}" wx:key="value">
  24. <radio value="{{item.value}}" checked="{{item.checked}}" />{{item.name}}
  25. </label>
  26. </radio-group>
  27. </view>
  28. </view>
  29. </view>
  30. </view>
  31. <!-- IP地址设置 -->
  32. <view class="weui-panel weui-panel_access">
  33. <view class="weui-panel__hd">IP地址</view>
  34. <view class="weui-panel__bd">
  35. <!-- 第1路IP设置 -->
  36. <view class="weui-media-box__bd weui-media-box__bd_in-appmsg">
  37. <view class="input-title">
  38. 第1路IP:
  39. </view>
  40. <view>
  41. <radio-group bindchange="ip1CheckedChange">
  42. <label class="check-label-title" wx:for="{{ip1Checkbox}}" wx:key="value">
  43. <radio value="{{item.value}}" checked="{{item.checked}}" />{{item.name}}
  44. </label>
  45. </radio-group>
  46. </view>
  47. <view class="weui-media-box__desc">
  48. <view class="myinput ip-group" style="margin-top:10rpx">
  49. <input type='text' bindinput='bindIp1Input' value='{{rtuInfo.ip1}}'></input>
  50. </view>
  51. <view class="port ip-group" style="margin-top:10rpx">
  52. <input type='text' bindinput='bindIp1portInput' value='{{rtuInfo.ip1_port}}'></input>
  53. </view>
  54. </view>
  55. </view>
  56. <!-- 第2路IP设置 -->
  57. <view class="weui-media-box__bd weui-media-box__bd_in-appmsg">
  58. <view class="input-title">
  59. 第2路IP:
  60. </view>
  61. <view>
  62. <radio-group bindchange="ip2CheckedChange">
  63. <label class="check-label-title" wx:for="{{ip2Checkbox}}" wx:key="value">
  64. <radio value="{{item.value}}" checked="{{item.checked}}" />{{item.name}}
  65. </label>
  66. </radio-group>
  67. </view>
  68. <view class="weui-media-box__desc">
  69. <view class="myinput ip-group" style="margin-top:10rpx">
  70. <input type='text' bindinput='bindIp2Input' value='{{rtuInfo.ip2}}'></input>
  71. </view>
  72. <view class="port ip-group" style="margin-top:10rpx">
  73. <input type='text' bindinput='bindIp2portInput' value='{{rtuInfo.ip2_port}}'></input>
  74. </view>
  75. </view>
  76. </view>
  77. <!-- 第3路IP设置 -->
  78. <view class="weui-media-box__bd weui-media-box__bd_in-appmsg">
  79. <view class="input-title">
  80. 第3路IP:
  81. </view>
  82. <view>
  83. <radio-group bindchange="ip3CheckedChange">
  84. <label class="check-label-title" wx:for="{{ip3Checkbox}}" wx:key="value">
  85. <radio value="{{item.value}}" checked="{{item.checked}}" />{{item.name}}
  86. </label>
  87. </radio-group>
  88. </view>
  89. <view class="weui-media-box__desc">
  90. <view class="myinput ip-group" style="margin-top:10rpx">
  91. <input type='text' bindinput='bindIp3Input' value='{{rtuInfo.ip3}}'></input>
  92. </view>
  93. <view class="port ip-group" style="margin-top:10rpx">
  94. <input type='text' bindinput='bindIp3portInput' value='{{rtuInfo.ip3_port}}'></input>
  95. </view>
  96. </view>
  97. </view>
  98. <!-- 第4路IP设置 -->
  99. <view class="weui-media-box__bd weui-media-box__bd_in-appmsg">
  100. <view class="input-title">
  101. 第4路IP:
  102. </view>
  103. <view>
  104. <radio-group bindchange="ip4CheckedChange">
  105. <label class="check-label-title" wx:for="{{ip4Checkbox}}" wx:key="value">
  106. <radio value="{{item.value}}" checked="{{item.checked}}" />{{item.name}}
  107. </label>
  108. </radio-group>
  109. </view>
  110. <view class="weui-media-box__desc">
  111. <view class="myinput ip-group" style="margin-top:10rpx">
  112. <input type='text' bindinput='bindIp4Input' value='{{rtuInfo.ip4}}'></input>
  113. </view>
  114. <view class="port ip-group" style="margin-top:10rpx">
  115. <input type='text' bindinput='bindIp4portInput' value='{{rtuInfo.ip4_port}}'></input>
  116. </view>
  117. </view>
  118. </view>
  119. </view>
  120. </view>
  121. <!-- 工作模式设置 -->
  122. <view class="weui-panel weui-panel_access">
  123. <view class="weui-panel__hd">工作模式</view>
  124. <view class="weui-panel__bd">
  125. <view class="weui-media-box__bd weui-media-box__bd_in-appmsg">
  126. <view style="margin-left: 20rpx;margin-bottom: 10rpx;">
  127. <view class="section">
  128. <picker bindchange="bindWorkModelPickerChange" value="{{rtu_work_model_index}}" range="{{rtu_work_model_name}}">
  129. <view class="picker picker_name">
  130. {{rtu_work_model_name[rtu_work_model_index]}}
  131. </view>
  132. </picker>
  133. </view>
  134. </view>
  135. </view>
  136. </view>
  137. </view>
  138. <!-- 测站分类码设置 -->
  139. <view class="weui-panel weui-panel_access">
  140. <view class="weui-panel__hd">测站分类码</view>
  141. <view class="weui-panel__bd">
  142. <view class="weui-media-box__bd weui-media-box__bd_in-appmsg">
  143. <view style="margin-left: 20rpx;margin-bottom: 10rpx;">
  144. <view class="section">
  145. <picker bindchange="bindRtuKindPickerChange" value="{{rtu_kind_index}}" range="{{rtu_kind_name}}">
  146. <view class="picker picker_name">
  147. {{rtu_kind_name[rtu_kind_index]}}
  148. </view>
  149. </picker>
  150. </view>
  151. </view>
  152. </view>
  153. </view>
  154. </view>
  155. <!-- 提交 -->
  156. <view class="weui-panel weui-panel_access">
  157. <view class="weui-panel__bd">
  158. <view class="weui-media-box__bd weui-media-box__bd_in-appmsg">
  159. <view class="submit-btn">
  160. <button type="warn" bindtap="baseSettingBtn">提交</button>
  161. </view>
  162. </view>
  163. </view>
  164. </view>
  165. </scroll-view>
  166. </view>
  167. </view>
  168. <mp-dialog title="操作提示" show="{{showSettingResult}}" bindbuttontap="settingCompletTabEvent" buttons="{{[ {text: '确定'}]}}">
  169. <view>{{settingResultText}}</view>
  170. </mp-dialog>
  171. </page>