parameterSetting.vue 30 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250
  1. <template>
  2. <view>
  3. <view class="white">
  4. <view class="title">
  5. <text class="param">参数设定</text>
  6. <view class="tiao"></view>
  7. </view>
  8. <view class="setmenu">
  9. <view class="setItem">
  10. <view class="text">
  11. <text>排风温度设定</text>
  12. </view>
  13. <view class="input" @click="inputDialogToggle()">
  14. <input style="margin-left: 20rpx;" placeholder="请输入" v-model="formData.WD_SD" />
  15. <view class="danwei">
  16. <text style="margin-left: 10rpx;">℃</text>
  17. </view>
  18. </view>
  19. </view>
  20. <view class="setItem">
  21. <view class="text">
  22. <text>排风湿度设定</text>
  23. </view>
  24. <view class="input" @click="inputDialogToggle2()">
  25. <input style="margin-left: 20rpx;" placeholder="请输入" v-model="formData.SD_SD" />
  26. <view class="danwei"> <text style="margin-left: 14rpx;">%</text></view>
  27. </view>
  28. </view>
  29. <view class="setItem">
  30. <view class="text">
  31. <text>停机延时设定</text>
  32. </view>
  33. <view class="input" @click="inputDialogToggle3()">
  34. <input style="margin-left: 20rpx;" placeholder="请输入" v-model="formData.JZ_YSTZ" />
  35. <view class="danwei"> <text style="margin-left: 20rpx;">S</text></view>
  36. </view>
  37. </view>
  38. </view>
  39. <view class="buttonItem">
  40. <view class="item">
  41. <view class="text">
  42. <text>控制选择模式</text>
  43. </view>
  44. <button class="button" :class="{'active_button': formData.JZ_XZ == 1}"
  45. @tap="JZXZ">{{formData.JZ_XZ == 0?"CK1":"CK2"}}</button>
  46. </view>
  47. <view class="item">
  48. <view class="text">
  49. <text>控制模式复位</text>
  50. </view>
  51. <button class="button" :class="{'active_button': formData.MS_XZ == 1}" @tap="MSXZ()">复位</button>
  52. </view>
  53. <view class="item">
  54. <view class="text">
  55. <text>故障复位</text>
  56. </view>
  57. <button class="button" :class="{'active_button': formData.GZ_FW == 1}"
  58. @tap="GZFW()">{{formData.GZ_FW == 0?"关闭":"打开"}}</button>
  59. </view>
  60. </view>
  61. </view>
  62. <!-- 输入框1 -->
  63. <view>
  64. <uni-popup ref="inputDialog" type="dialog">
  65. <uni-popup-dialog ref="inputClose" mode="input" title="(输入范围: 0.0 - 50.0)" :value="formData.WD_SD"
  66. placeholder="输入范围: 0 - 50.0的值" @confirm="dialogInputConfirm"></uni-popup-dialog>
  67. </uni-popup>
  68. </view>
  69. <!-- 输入框2 -->
  70. <view>
  71. <uni-popup ref="inputDialog2" type="dialog">
  72. <uni-popup-dialog ref="inputClose" mode="input" title="(输入范围: 0.0 - 100.0)" :value="formData.SD_SD"
  73. placeholder="输入范围: 0 - 100.0的值!" @confirm="dialogInputConfirm2"></uni-popup-dialog>
  74. </uni-popup>
  75. </view>
  76. <!-- 输入框3 -->
  77. <view>
  78. <uni-popup ref="inputDialog3" type="dialog">
  79. <uni-popup-dialog ref="inputClose" mode="input" title="(输入范围: 0 - 9999)" :value="formData.JZ_YSTZ"
  80. placeholder="输入范围: 0 - 9999的值!" @confirm="dialogInputConfirm3"></uni-popup-dialog>
  81. </uni-popup>
  82. </view>
  83. <!-- 输入框FA1 -->
  84. <view>
  85. <uni-popup ref="inputDialogFA1" type="dialog">
  86. <uni-popup-dialog ref="inputClose" mode="input" title="(输入范围: 0 - 100)" :value="formData.LSF_SDKD"
  87. placeholder="输入范围: 0 - 100的值!" @confirm="dialogInputConfirmFA1"></uni-popup-dialog>
  88. </uni-popup>
  89. </view>
  90. <!-- 输入框FA2 -->
  91. <view>
  92. <uni-popup ref="inputDialogFA2" type="dialog">
  93. <uni-popup-dialog ref="inputClose" mode="input" title="(输入范围: 0 - 100)" :value="formData.RSF_SDKD"
  94. placeholder="输入范围: 0 - 100的值!" @confirm="dialogInputConfirmFA2"></uni-popup-dialog>
  95. </uni-popup>
  96. </view>
  97. <!-- 输入框FA3 -->
  98. <view>
  99. <uni-popup ref="inputDialogFA3" type="dialog">
  100. <uni-popup-dialog ref="inputClose" mode="input" title="(输入范围: 0 - 100)" :value="formData.JSF_SDKD"
  101. placeholder="输入范围: 0 - 100的值!" @confirm="dialogInputConfirmFA3"></uni-popup-dialog>
  102. </uni-popup>
  103. </view>
  104. <view class="xiabu">
  105. <view class="title">
  106. <text class="param">运行状态</text>
  107. <view class="tiao"></view>
  108. </view>
  109. <view class="head">
  110. <text>设备名称</text>
  111. <text style="margin-left: 30rpx">控制模式</text>
  112. <text>手动命令</text>
  113. <text>实时反馈</text>
  114. </view>
  115. <view class="whiteItem">
  116. <text class="text1">空调送风机</text>
  117. <button class="auto" :class="{'active_button': formData.SFJ_SZXZ == 1}"
  118. @tap="shouZiDongSFJ()">{{formData.SFJ_SZXZ == 0?'自动':'手动'}}</button>
  119. <button class="stop" :class="{'active_button': formData.SFJ_SDQD == 1}"
  120. @tap="shouZiDongSFJSD()">{{formData.SFJ_SDQD == 0?'启动':'停止'}}</button>
  121. <text class="four">{{formData.SFJ_QT == 0?"停止":"启动"}}</text>
  122. </view>
  123. <view class="grayItem">
  124. <text class="text1">空调排风机</text>
  125. <button class="auto" :class="{'active_button': formData.PFJ_SZXZ == 1}"
  126. @tap="shouZiDongPFJ">{{formData.PFJ_SZXZ == 0?'自动':'手动'}}</button>
  127. <button class="stop" :class="{'active_button': formData.PFJ_SDQD == 1}"
  128. @tap="shouZiDongPFJSD()">{{formData.PFJ_SDQD == 0?'启动':'停止'}}</button>
  129. <text class="four">{{formData.PFJ_QT == 0?"停止":"启动"}}</text>
  130. </view>
  131. <view class="whiteItem">
  132. <text class="text1">风 冷 主 机</text>
  133. <button class="auto" :class="{'active_button': formData.FLZJ_SZXZ == 1}"
  134. @tap="shouZiDongFLZJ">{{formData.FLZJ_SZXZ == 0?'自动':'手动'}}</button>
  135. <button class="stop" :class="{'active_button': formData.FLZJ_SDQD == 1}"
  136. @tap="shouZiDongFLZJSD()">{{formData.FLZJ_SDQD == 0?'启动':'停止'}}</button>
  137. <text class="four">{{formData.FLZJ_QT == 0?"停止":"启动"}}</text>
  138. </view>
  139. <view class="grayItem">
  140. <text class="text1">一级电加热</text>
  141. <button class="auto" :class="{'active_button': formData.YJDJR_SZXZ == 1}"
  142. @tap="shouZiDongYJDJR">{{formData.YJDJR_SZXZ == 0?'自动':'手动'}}</button>
  143. <button class="stop" :class="{'active_button': formData.YJDJR_SDQD == 1}"
  144. @tap="shouZiDongYJDJRSD()">{{formData.YJDJR_SDQD == 0?'启动':'停止'}}</button>
  145. <text class="four">{{formData.YJDJR_QT == 0?"停止":"启动"}}</text>
  146. </view>
  147. <view class="whiteItem">
  148. <text class="text1">二级电加热</text>
  149. <button class="auto" :class="{'active_button': formData.EJDJR_SZXZ == 1}"
  150. @tap="shouZiDongEJDJR">{{formData.EJDJR_SZXZ == 0?'自动':'手动'}}</button>
  151. <button class="stop" :class="{'active_button': formData.SJDJR_SDQD == 1}"
  152. @tap="shouZiDongEJDJRSD()">{{formData.SJDJR_SDQD == 0?'启动':'停止'}}</button>
  153. <text class="four">{{formData.EJDJR_QT == 0?"停止":"启动"}}</text>
  154. </view>
  155. <view class="grayItem">
  156. <text class="text1">三级电加热</text>
  157. <button class="auto" :class="{'active_button': formData.SJDJR_SZXZ == 1}"
  158. @tap="shouZiDongSJDJR">{{formData.SJDJR_SZXZ == 0?'自动':'手动'}}</button>
  159. <button class="stop" :class="{'active_button': formData.SJDJR_SDQD == 1}"
  160. @tap="shouZiDongSJDJRSD()">{{formData.SJDJR_SDQD == 0?'启动':'停止'}}</button>
  161. <text class="four">{{formData.SJDJR_QT == 0?"停止":"启动"}}</text>
  162. </view>
  163. <view class="whiteItem">
  164. <text class="text1">空调送风阀</text>
  165. <button class="auto" :class="{'active_button': formData.SFF_SZXZ == 1}"
  166. @tap="shouZiDongSFF">{{formData.SFF_SZXZ == 0?'自动':'手动'}}</button>
  167. <button class="stop" :class="{'active_button': formData.SFF_SDQD == 1}"
  168. @tap="shouZiDongSFFSD()">{{formData.SFF_SDQD == 0?'启动':'停止'}}</button>
  169. <text class="four">{{formData.SFF_KGKZ == 0?"关闭":"打开"}}</text>
  170. </view>
  171. <view class="grayItem">
  172. <text class="text1">空调排风阀</text>
  173. <button class="auto" :class="{'active_button': formData.PFF_SZXZ == 1}"
  174. @tap="shouZiDongPFF">{{formData.PFF_SZXZ == 0?'自动':'手动'}}</button>
  175. <button class="stop" :class="{'active_button': formData.PFF_SDQD == 1}"
  176. @tap="shouZiDongPFFSD()">{{formData.PFF_SDQD == 0?'启动':'停止'}}</button>
  177. <text class="four">{{formData.PFF_KGKZ == 0?"关闭":"打开"}}</text>
  178. </view>
  179. <view class="whiteItem">
  180. <text class="text1">空调冷水阀</text>
  181. <button class="auto" :class="{'active_button': formData.LSF_SZXZ == 1}"
  182. @tap="shouZiDong2">{{formData.LSF_SZXZ == 0?'自动':'手动'}}</button>
  183. <view style="display: flex;flex-direction: row;align-items: center;">
  184. <button class="three" @click="inputDialogToggleFA1()">{{formData.LSF_SDKD}}</button>%
  185. </view>
  186. <view class="four1">
  187. <text>{{formData.LSF}}%</text>
  188. </view>
  189. </view>
  190. <view class="grayItem">
  191. <text class="text1">空调热水阀</text>
  192. <button class="auto" :class="{'active_button': formData.RSF_SZXZ == 1}"
  193. @tap="shouZiDong3">{{formData.RSF_SZXZ == 0?'自动':'手动'}}</button>
  194. <view style="display: flex;flex-direction: row;align-items: center;">
  195. <button class="three" @click="inputDialogToggleFA2()">{{formData.RSF_SDKD}}</button>%
  196. </view>
  197. <view class="four1">
  198. <text>{{formData.RSF}}%</text>
  199. </view>
  200. </view>
  201. <view class="whiteItem">
  202. <text class="text1">空调加湿器</text>
  203. <button class="auto" :class="{'active_button': formData.JSF_SZXZ == 1}"
  204. @tap="shouZiDong">{{formData.JSF_SZXZ == 0?'自动':'手动'}}</button>
  205. <view style="display: flex;flex-direction: row;align-items: center;">
  206. <button class="three" @click="inputDialogToggleFA3()">{{formData.JSF_SDKD}}</button>%
  207. </view>
  208. <view class="four1">
  209. <text>{{formData.JSF}}%</text>
  210. </view>
  211. </view>
  212. </view>
  213. <view class="anniu">
  214. <image class="anniu" src="../../static/设备菜单/前往列表@2x.png" @tap="back"></image>
  215. </view>
  216. </view>
  217. </template>
  218. <script>
  219. export default {
  220. data() {
  221. return {
  222. value: '',
  223. deviceParams: [],
  224. formData: {
  225. GZ_FW: '0',
  226. JZ_XZ: '0',
  227. MS_XZ: '0',
  228. RSF: '',
  229. LSF: '',
  230. JSF: '',
  231. WD_SD: '',
  232. SD_SD: '',
  233. JZ_YSTZ: '',
  234. RSF_SDKD: '', //热水温度手动_设定(0~100,单位为%)
  235. LSF_SDKD: '', //冷水温度手动_设定(0~100,单位为%)
  236. JSF_SDKD: '', //电加湿手动_设定(0~100,单位为%)
  237. LSF_SZXZ: '0',
  238. RSF_SZXZ: '0',
  239. JSF_SZXZ: '0',
  240. //下部按钮参数
  241. SFF_SZXZ: '0',
  242. SFF_SDQD: '0',
  243. PFF_SZXZ: '0',
  244. PFF_SDQD: '0',
  245. SFJ_SZXZ: '0',
  246. SFJ_SZXZ: '0',
  247. SFJ_SDQD: '0',
  248. PFJ_SZXZ: '0',
  249. PFJ_SDQD: '0',
  250. FLZJ_SZXZ: '0',
  251. FLZJ_SDQD: '0',
  252. YJDJR_SZXZ: '0',
  253. YJDJR_SDQD: '0',
  254. EJDJR_SZXZ: '0',
  255. EJDJR_SDQD: '0',
  256. SJDJR_SZXZ: '0',
  257. SJDJR_SDQD: '0',
  258. //第四列实时反馈
  259. SFJ_QT: '1', //送风机工频启动(0:停止,1:启动)
  260. PFJ_QT: '0', //排风机工频启动(0:停止,1:启动)
  261. YJDJR_QT: '0', //一级电加热启停(0:停止,1:启动)
  262. EJDJR_QT: '0', //二级电加热启停(0:停止,1:启动)
  263. SJDJR_QT: '0', //三级电加热启停(0:停止,1:启动)
  264. SFF_KGKZ: '0', //送风阀开关控制(0:关闭,1:打开)
  265. PFF_KGKZ: '0', //排风阀开关控制(0:关闭,1:打开)
  266. FLZJ_QT: '0', //风冷主机启停(0:停止,1:启动)
  267. //上部三个按钮
  268. }
  269. }
  270. },
  271. onLoad(e) {
  272. console.log(e);
  273. this.getYSTZ()
  274. this.getSD_SD()
  275. this.getWD_SD()
  276. this.getJSF_SDKD()
  277. this.getLSF_SDKD()
  278. this.getRSF_SDKD()
  279. this.getRSF()
  280. this.getLSF()
  281. this.getJSF()
  282. this.getYJQT()
  283. this.getEJQT()
  284. this.getSJQT()
  285. this.getFLZJQT()
  286. this.getSFFQT()
  287. this.getPFFQT()
  288. this.getSFJQT()
  289. this.getPFJQT()
  290. },
  291. methods: {
  292. //三个按钮选择
  293. async JZXZ(e) {
  294. this.formData.JZ_XZ == 1 ? this.formData.JZ_XZ = 0 : this.formData.JZ_XZ = 1;
  295. let vm = this;
  296. let url = uni.$api.deviceParam.updateParam;
  297. let data = {
  298. id: "244",
  299. value: this.formData.JZ_XZ,
  300. name: "JZ_XZ",
  301. sn: "CK1"
  302. };
  303. let res = await uni.$http.get(url, data);
  304. console.log(res.data.data.value);
  305. },
  306. async MSXZ(e) {
  307. this.formData.MS_XZ == 1 ? this.formData.MS_XZ = 0 : this.formData.MS_XZ = 1;
  308. let vm = this;
  309. let url = uni.$api.deviceParam.updateParam;
  310. let data = {
  311. id: "239",
  312. value: this.formData.MS_XZ,
  313. name: "MS_XZ",
  314. sn: "CK1"
  315. };
  316. let res = await uni.$http.get(url, data);
  317. console.log(res.data.data.value);
  318. },
  319. async GZFW(e) {
  320. this.formData.GZ_FW == 1 ? this.formData.GZ_FW = 0 : this.formData.GZ_FW = 1;
  321. let vm = this;
  322. let url = uni.$api.deviceParam.updateParam;
  323. let data = {
  324. id: "254",
  325. value: this.formData.GZ_FW,
  326. name: "GZ_FW",
  327. sn: "CK1"
  328. };
  329. let res = await uni.$http.get(url, data);
  330. console.log(res.data.data.value);
  331. },
  332. async shouZiDong(e) {
  333. this.formData.JSF_SZXZ == 1 ? this.formData.JSF_SZXZ = 0 : this.formData.JSF_SZXZ = 1;
  334. let vm = this;
  335. let url = uni.$api.deviceParam.updateParam;
  336. let data = {
  337. id: "208",
  338. value: this.formData.JSF_SZXZ,
  339. name: "JSF_SZXZ",
  340. sn: "CK1"
  341. };
  342. let res = await uni.$http.get(url, data);
  343. console.log(res.data.data.value);
  344. },
  345. async shouZiDong2(e) {
  346. this.formData.LSF_SZXZ == 1 ? this.formData.LSF_SZXZ = 0 : this.formData.LSF_SZXZ = 1;
  347. let vm = this;
  348. let url = uni.$api.deviceParam.updateParam;
  349. let data = {
  350. id: "209",
  351. value: this.formData.LSF_SZXZ,
  352. name: "LSF_SZXZ",
  353. sn: "CK1"
  354. };
  355. let res = await uni.$http.get(url, data);
  356. console.log(res.data.data.value);
  357. },
  358. async shouZiDong3(e) {
  359. this.formData.RSF_SZXZ == 1 ? this.formData.RSF_SZXZ = 0 : this.formData.RSF_SZXZ = 1;
  360. let vm = this;
  361. let url = uni.$api.deviceParam.updateParam;
  362. let data = {
  363. id: "207",
  364. value: this.formData.RSF_SZXZ,
  365. name: "RSF_SZXZ",
  366. sn: "CK1"
  367. };
  368. let res = await uni.$http.get(url, data);
  369. console.log(res.data.data.value);
  370. },
  371. //下部按钮的自动手动
  372. async shouZiDongSFJ(e) {
  373. this.formData.SFJ_SZXZ == 1 ? this.formData.SFJ_SZXZ = 0 : this.formData.SFJ_SZXZ = 1;
  374. let vm = this;
  375. let url = uni.$api.deviceParam.updateParam;
  376. let data = {
  377. id: "204",
  378. value: this.formData.SFJ_SZXZ,
  379. name: "SFJ_SZXZ",
  380. sn: "CK1"
  381. };
  382. let res = await uni.$http.get(url, data);
  383. console.log(res.data.data.value);
  384. },
  385. async shouZiDongPFJ(e) {
  386. this.formData.PFJ_SZXZ == 1 ? this.formData.PFJ_SZXZ = 0 : this.formData.PFJ_SZXZ = 1;
  387. let vm = this;
  388. let url = uni.$api.deviceParam.updateParam;
  389. let data = {
  390. id: "203",
  391. value: this.formData.PFJ_SZXZ,
  392. name: "PFJ_SZXZ",
  393. sn: "CK1"
  394. };
  395. let res = await uni.$http.get(url, data);
  396. console.log(res.data.data.value);
  397. },
  398. async shouZiDongSFF(e) {
  399. this.formData.SFF_SZXZ == 1 ? this.formData.SFF_SZXZ = 0 : this.formData.SFF_SZXZ = 1;
  400. let vm = this;
  401. let url = uni.$api.deviceParam.updateParam;
  402. let data = {
  403. id: "281",
  404. value: this.formData.SFF_SZXZ,
  405. name: "SFF_SZXZ",
  406. sn: "CK1"
  407. };
  408. let res = await uni.$http.get(url, data);
  409. console.log(res.data.data.value);
  410. },
  411. async shouZiDongPFF(e) {
  412. this.formData.PFF_SZXZ == 1 ? this.formData.PFF_SZXZ = 0 : this.formData.PFF_SZXZ = 1;
  413. let vm = this;
  414. let url = uni.$api.deviceParam.updateParam;
  415. let data = {
  416. id: "238",
  417. value: this.formData.PFF_SZXZ,
  418. name: "PFF_SZXZ",
  419. sn: "CK1"
  420. };
  421. let res = await uni.$http.get(url, data);
  422. console.log(res.data.data.value);
  423. },
  424. async shouZiDongYJDJR(e) {
  425. this.formData.YJDJR_SZXZ == 1 ? this.formData.YJDJR_SZXZ = 0 : this.formData.YJDJR_SZXZ = 1;
  426. let vm = this;
  427. let url = uni.$api.deviceParam.updateParam;
  428. let data = {
  429. id: "246",
  430. value: this.formData.YJDJR_SZXZ,
  431. name: "YJDJR_SZXZ",
  432. sn: "CK1"
  433. };
  434. let res = await uni.$http.get(url, data);
  435. console.log(res.data.data.value);
  436. },
  437. async shouZiDongEJDJR(e) {
  438. this.formData.EJDJR_SZXZ == 1 ? this.formData.EJDJR_SZXZ = 0 : this.formData.EJDJR_SZXZ = 1;
  439. let vm = this;
  440. let url = uni.$api.deviceParam.updateParam;
  441. let data = {
  442. id: "213",
  443. value: this.formData.EJDJR_SZXZ,
  444. name: "EJDJR_SZXZ",
  445. sn: "CK1"
  446. };
  447. let res = await uni.$http.get(url, data);
  448. console.log(res.data.data.value);
  449. },
  450. async shouZiDongSJDJR(e) {
  451. this.formData.SJDJR_SZXZ == 1 ? this.formData.SJDJR_SZXZ = 0 : this.formData.SJDJR_SZXZ = 1;
  452. let vm = this;
  453. let url = uni.$api.deviceParam.updateParam;
  454. let data = {
  455. id: "258",
  456. value: this.formData.SJDJR_SZXZ,
  457. name: "SJDJR_SZXZ",
  458. sn: "CK1"
  459. };
  460. let res = await uni.$http.get(url, data);
  461. console.log(res.data.data.value);
  462. },
  463. async shouZiDongFLZJ(e) {
  464. this.formData.FLZJ_SZXZ == 1 ? this.formData.FLZJ_SZXZ = 0 : this.formData.FLZJ_SZXZ = 1;
  465. let vm = this;
  466. let url = uni.$api.deviceParam.updateParam;
  467. let data = {
  468. id: "295",
  469. value: this.formData.FLZJ_SZXZ,
  470. name: "FLZJ_SZXZ",
  471. sn: "CK1"
  472. };
  473. let res = await uni.$http.get(url, data);
  474. console.log(res.data.data.value);
  475. },
  476. //-----------------------------------------------------------------------------------------------
  477. //第四列实时反馈的获取数据
  478. async getSFJQT(e) {
  479. let vm = this;
  480. let url = uni.$api.deviceParam.detail;
  481. let data = {
  482. id: "256",
  483. };
  484. let res = await uni.$http.get(url, data);
  485. this.formData.SFJ_QT = res.data.data.deviceParam.value;
  486. },
  487. async getPFJQT(e) {
  488. let vm = this;
  489. let url = uni.$api.deviceParam.detail;
  490. let data = {
  491. id: "269",
  492. };
  493. let res = await uni.$http.get(url, data);
  494. this.formData.PFJ_QT = res.data.data.deviceParam.value;
  495. },
  496. async getSFFQT(e) {
  497. let vm = this;
  498. let url = uni.$api.deviceParam.detail;
  499. let data = {
  500. id: "291",
  501. };
  502. let res = await uni.$http.get(url, data);
  503. this.formData.SFF_KGKZ = res.data.data.deviceParam.value;
  504. },
  505. async getPFFQT(e) {
  506. let vm = this;
  507. let url = uni.$api.deviceParam.detail;
  508. let data = {
  509. id: "272",
  510. };
  511. let res = await uni.$http.get(url, data);
  512. this.formData.PFF_KGKZ = res.data.data.deviceParam.value;
  513. },
  514. async getFLZJQT(e) {
  515. let vm = this;
  516. let url = uni.$api.deviceParam.detail;
  517. let data = {
  518. id: "222",
  519. };
  520. let res = await uni.$http.get(url, data);
  521. this.formData.FLZJ_QT = res.data.data.deviceParam.value;
  522. },
  523. async getYJQT(e) {
  524. let vm = this;
  525. let url = uni.$api.deviceParam.detail;
  526. let data = {
  527. id: "214",
  528. };
  529. let res = await uni.$http.get(url, data);
  530. this.formData.YJDJR_QT = res.data.data.deviceParam.value;
  531. },
  532. async getEJQT(e) {
  533. let vm = this;
  534. let url = uni.$api.deviceParam.detail;
  535. let data = {
  536. id: "210",
  537. };
  538. let res = await uni.$http.get(url, data);
  539. this.formData.EJDJR_QT = res.data.data.deviceParam.value;
  540. },
  541. async getSJQT(e) {
  542. let vm = this;
  543. let url = uni.$api.deviceParam.detail;
  544. let data = {
  545. id: "212",
  546. };
  547. let res = await uni.$http.get(url, data);
  548. this.formData.SJDJR_QT = res.data.data.deviceParam.value;
  549. },
  550. //三个阀的实时反馈
  551. async getRSF(e) {
  552. let vm = this;
  553. let url = uni.$api.deviceParam.detail;
  554. let data = {
  555. id: "215",
  556. };
  557. let res = await uni.$http.get(url, data);
  558. this.formData.RSF = res.data.data.deviceParam.value;
  559. console.log(this.formData.RSF);
  560. },
  561. async getLSF(e) {
  562. let vm = this;
  563. let url = uni.$api.deviceParam.detail;
  564. let data = {
  565. id: "261",
  566. };
  567. let res = await uni.$http.get(url, data);
  568. this.formData.LSF = res.data.data.deviceParam.value;
  569. console.log(this.formData.LSF);
  570. },
  571. async getJSF(e) {
  572. let vm = this;
  573. let url = uni.$api.deviceParam.detail;
  574. let data = {
  575. id: "211",
  576. };
  577. let res = await uni.$http.get(url, data);
  578. this.formData.JSF = res.data.data.deviceParam.value;
  579. console.log(this.formData.JSF);
  580. },
  581. //-----
  582. async dialogInputConfirm(val) {
  583. this.formData.WD_SD = val;
  584. console.log(val);
  585. this.updateWD_SD()
  586. },
  587. async dialogInputConfirm2(val) {
  588. this.formData.SD_SD = val;
  589. console.log(this.formData.SD_SD);
  590. this.updateSD_SD()()
  591. },
  592. async dialogInputConfirm3(val) {
  593. this.formData.JZ_YSTZ = val;
  594. console.log(val);
  595. this.updateYSTZ()()
  596. },
  597. async dialogInputConfirmFA1(val) {
  598. this.formData.LSF_SDKD = val;
  599. this.updateLSF_SDKD()
  600. console.log(this.formData.LSF_SDKD);
  601. },
  602. async dialogInputConfirmFA2(val) {
  603. this.formData.RSF_SDKD = val;
  604. this.updateRSF_SDKD()
  605. console.log(val);
  606. },
  607. async dialogInputConfirmFA3(val) {
  608. this.formData.JSF_SDKD = val;
  609. this.updateJSF_SDKD()
  610. console.log(val);
  611. },
  612. inputDialogToggle() {
  613. this.$refs.inputDialog.open()
  614. },
  615. inputDialogToggle2() {
  616. this.$refs.inputDialog2.open()
  617. },
  618. inputDialogToggle3() {
  619. this.$refs.inputDialog3.open()
  620. },
  621. inputDialogToggleFA1() {
  622. this.$refs.inputDialogFA1.open()
  623. },
  624. inputDialogToggleFA2() {
  625. this.$refs.inputDialogFA2.open()
  626. },
  627. inputDialogToggleFA3() {
  628. this.$refs.inputDialogFA3.open()
  629. },
  630. back() {
  631. uni.navigateTo({
  632. url: '/pages/device/deviceInfo/deviceInfo'
  633. })
  634. },
  635. //三个参数设定
  636. async getYSTZ(e) {
  637. let vm = this;
  638. let url = uni.$api.deviceParam.detail;
  639. let data = {
  640. id: "217",
  641. };
  642. let res = await uni.$http.get(url, data);
  643. this.formData.JZ_YSTZ = res.data.data.deviceParam.value;
  644. console.log(this.formData.JZ_YSTZ);
  645. },
  646. async getWD_SD(e) {
  647. let vm = this;
  648. let url = uni.$api.deviceParam.detail;
  649. let data = {
  650. id: "287",
  651. };
  652. let res = await uni.$http.get(url, data);
  653. this.formData.WD_SD = res.data.data.deviceParam.value;
  654. console.log(this.formData.WD_SD);
  655. },
  656. async getSD_SD(e) {
  657. let vm = this;
  658. let url = uni.$api.deviceParam.detail;
  659. let data = {
  660. id: "229",
  661. };
  662. let res = await uni.$http.get(url, data);
  663. this.formData.SD_SD = res.data.data.deviceParam.value;
  664. console.log(this.formData.SD_SD);
  665. },
  666. //三个参数设定更新
  667. async updateWD_SD(e) {
  668. let vm = this;
  669. let url = uni.$api.deviceParam.updateParam;
  670. let data = {
  671. id: "287",
  672. sn: "CK1",
  673. name: "WD_SD",
  674. value: this.formData.WD_SD
  675. };
  676. let res = await uni.$http.get(url, data);
  677. console.log(res);
  678. },
  679. async updateSD_SD(e) {
  680. let vm = this;
  681. let url = uni.$api.deviceParam.updateParam;
  682. let data = {
  683. id: "229",
  684. sn: "CK1",
  685. name: "SD_SD",
  686. value: this.formData.SD_SD
  687. };
  688. let res = await uni.$http.get(url, data);
  689. console.log(res);
  690. },
  691. async updateYSTZ(e) {
  692. let vm = this;
  693. let url = uni.$api.deviceParam.updateParam;
  694. let data = {
  695. id: "217",
  696. sn: "CK1",
  697. name: "JZ_YSTZ",
  698. value: this.formData.JZ_YSTZ
  699. };
  700. let res = await uni.$http.get(url, data);
  701. console.log(res);
  702. },
  703. //-----三个阀手动命令列
  704. async getLSF_SDKD(e) {
  705. let vm = this;
  706. let url = uni.$api.deviceParam.detail;
  707. let data = {
  708. id: "235",
  709. };
  710. let res = await uni.$http.get(url, data);
  711. this.formData.LSF_SDKD = res.data.data.deviceParam.value;
  712. console.log(this.formData.LSF_SDKD);
  713. },
  714. async getRSF_SDKD(e) {
  715. let vm = this;
  716. let url = uni.$api.deviceParam.detail;
  717. let data = {
  718. id: "280",
  719. };
  720. let res = await uni.$http.get(url, data);
  721. this.formData.RSF_SDKD = res.data.data.deviceParam.value;
  722. console.log(this.formData.RSF_SDKD);
  723. },
  724. async getJSF_SDKD(e) {
  725. let vm = this;
  726. let url = uni.$api.deviceParam.detail;
  727. let data = {
  728. id: "279",
  729. };
  730. let res = await uni.$http.get(url, data);
  731. this.formData.JSF_SDKD = res.data.data.deviceParam.value;
  732. console.log(this.formData.JSF_SDKD);
  733. },
  734. //-------三个阀手动命令列更新
  735. async updateLSF_SDKD(e) {
  736. let vm = this;
  737. let url = uni.$api.deviceParam.updateParam;
  738. let data = {
  739. id: "235",
  740. sn: "CK1",
  741. name: "LSF_SDKD",
  742. value: this.formData.LSF_SDKD
  743. };
  744. let res = await uni.$http.get(url, data);
  745. console.log(res);
  746. },
  747. async updateRSF_SDKD(e) {
  748. let vm = this;
  749. let url = uni.$api.deviceParam.updateParam;
  750. let data = {
  751. id: "280",
  752. sn: "CK1",
  753. name: "RSF_SDKD",
  754. value: this.formData.RSF_SDKD
  755. };
  756. let res = await uni.$http.get(url, data);
  757. console.log(res);
  758. },
  759. async updateJSF_SDKD(e) {
  760. let vm = this;
  761. let url = uni.$api.deviceParam.updateParam;
  762. let data = {
  763. id: "279",
  764. sn: "CK1",
  765. name: "JSF_SDKD",
  766. value: this.formData.JSF_SDKD
  767. };
  768. let res = await uni.$http.get(url, data);
  769. console.log(res);
  770. },
  771. //第三列手动启动停止
  772. async shouZiDongSFJSD(e) {
  773. this.formData.SFJ_SDQD == 1 ? this.formData.SFJ_SDQD = 0 : this.formData.SFJ_SDQD = 1;
  774. let vm = this;
  775. let url = uni.$api.deviceParam.updateParam;
  776. let data = {
  777. id: "255",
  778. value: this.formData.SFJ_SDQD,
  779. name: "SFJ_SDQD",
  780. sn: "CK1"
  781. };
  782. let res = await uni.$http.get(url, data);
  783. console.log(res.data.data.value);
  784. },
  785. async shouZiDongPFJSD(e) {
  786. this.formData.PFJ_SDQD == 1 ? this.formData.PFJ_SDQD = 0 : this.formData.PFJ_SDQD = 1;
  787. let vm = this;
  788. let url = uni.$api.deviceParam.updateParam;
  789. let data = {
  790. id: "257",
  791. value: this.formData.PFJ_SDQD,
  792. name: "PFJ_SDQD",
  793. sn: "CK1"
  794. };
  795. let res = await uni.$http.get(url, data);
  796. console.log(res.data.data.value);
  797. },
  798. async shouZiDongFLZJSD(e) {
  799. this.formData.FLZJ_SDQD == 1 ? this.formData.FLZJ_SDQD = 0 : this.formData.FLZJ_SDQD = 1;
  800. let vm = this;
  801. let url = uni.$api.deviceParam.updateParam;
  802. let data = {
  803. id: "241",
  804. value: this.formData.FLZJ_SDQD,
  805. name: "FLZJ_SDQD",
  806. sn: "CK1"
  807. };
  808. let res = await uni.$http.get(url, data);
  809. console.log(res.data.data.value);
  810. },
  811. async shouZiDongPFFSD(e) {
  812. this.formData.PFF_SDQD == 1 ? this.formData.PFF_SDQD = 0 : this.formData.PFF_SDQD = 1;
  813. let vm = this;
  814. let url = uni.$api.deviceParam.updateParam;
  815. let data = {
  816. id: "275",
  817. value: this.formData.PFF_SDQD,
  818. name: "PFF_SDQD",
  819. sn: "CK1"
  820. };
  821. let res = await uni.$http.get(url, data);
  822. console.log(res.data.data.value);
  823. },
  824. async shouZiDongSFFSD(e) {
  825. this.formData.SFF_SDQD == 1 ? this.formData.SFF_SDQD = 0 : this.formData.SFF_SDQD = 1;
  826. let vm = this;
  827. let url = uni.$api.deviceParam.updateParam;
  828. let data = {
  829. id: "236",
  830. value: this.formData.SFF_SDQD,
  831. name: "SFF_SDQD",
  832. sn: "CK1"
  833. };
  834. let res = await uni.$http.get(url, data);
  835. console.log(res.data.data.value);
  836. },
  837. async shouZiDongYJDJRSD(e) {
  838. this.formData.YJDJR_SDQD == 1 ? this.formData.YJDJR_SDQD = 0 : this.formData.YJDJR_SDQD = 1;
  839. let vm = this;
  840. let url = uni.$api.deviceParam.updateParam;
  841. let data = {
  842. id: "292",
  843. value: this.formData.YJDJR_SDQD,
  844. name: "YJDJR_SDQD",
  845. sn: "CK1"
  846. };
  847. let res = await uni.$http.get(url, data);
  848. console.log(res.data.data.value);
  849. },
  850. async shouZiDongEJDJRSD(e) {
  851. this.formData.EJDJR_SDQD == 1 ? this.formData.EJDJR_SDQD = 0 : this.formData.EJDJR_SDQD = 1;
  852. let vm = this;
  853. let url = uni.$api.deviceParam.updateParam;
  854. let data = {
  855. id: "264",
  856. value: this.formData.EJDJR_SDQD,
  857. name: "EJDJR_SDQD",
  858. sn: "CK1"
  859. };
  860. let res = await uni.$http.get(url, data);
  861. console.log(res.data.data.value);
  862. },
  863. async shouZiDongSJDJRSD(e) {
  864. this.formData.SJDJR_SDQD == 1 ? this.formData.SJDJR_SDQD = 0 : this.formData.SJDJR_SDQD = 1;
  865. let vm = this;
  866. let url = uni.$api.deviceParam.updateParam;
  867. let data = {
  868. id: "202",
  869. value: this.formData.SJDJR_SDQD,
  870. name: "SJDJR_SDQD",
  871. sn: "CK1"
  872. };
  873. let res = await uni.$http.get(url, data);
  874. console.log(res.data.data.value);
  875. },
  876. }
  877. }
  878. </script>
  879. <style>
  880. .anniu {
  881. width: 116rpx;
  882. height: 116rpx;
  883. float: right;
  884. margin-right: 10rpx;
  885. }
  886. .four1 {
  887. margin-right: 30rpx;
  888. margin-left: 30rpx;
  889. }
  890. .four {
  891. margin-right: 60rpx;
  892. }
  893. .whiteItem {
  894. height: 60px;
  895. background: white;
  896. border-radius: 4px;
  897. font-size: 30rpx;
  898. display: flex;
  899. justify-content: space-around;
  900. align-items: center;
  901. color: #444546;
  902. }
  903. .grayItem {
  904. height: 60px;
  905. background: #F6F7FB;
  906. border-radius: 4px;
  907. font-size: 30rpx;
  908. display: flex;
  909. align-items: center;
  910. color: #444546;
  911. }
  912. .text1 {
  913. margin-left: 20rpx;
  914. font-size: 30rpx;
  915. color: #444546;
  916. }
  917. .auto {
  918. width: 60px;
  919. height: 33px;
  920. background: #007AFF;
  921. border-radius: 4px;
  922. font-size: 30rpx;
  923. color: white;
  924. display: flex;
  925. align-items: center;
  926. justify-content: center;
  927. }
  928. .three {
  929. margin-right: 10rpx;
  930. margin-left: 0rpx;
  931. display: flex;
  932. align-items: center;
  933. justify-content: center;
  934. font-size: 30rpx;
  935. color: #007AFF;
  936. width: 60px;
  937. height: 33px;
  938. border-radius: 4px;
  939. border: 1px solid #007AFF;
  940. }
  941. .stop {
  942. margin-right: 75rpx;
  943. margin-left: 0rpx;
  944. display: flex;
  945. align-items: center;
  946. justify-content: center;
  947. font-size: 30rpx;
  948. color: #007AFF;
  949. width: 60px;
  950. height: 33px;
  951. border-radius: 4px;
  952. border: 1px solid #007AFF;
  953. }
  954. .head {
  955. height: 60px;
  956. background: #EAF1FE;
  957. border-radius: 4px;
  958. font-size: 30rpx;
  959. display: flex;
  960. justify-content: space-around;
  961. align-items: center;
  962. color: #444546;
  963. }
  964. .xiabu {
  965. margin-left: 24rpx;
  966. margin-top: 24rpx;
  967. background-color: white;
  968. width: 702rpx;
  969. height: 1520rpx;
  970. border-radius: 10rpx;
  971. }
  972. .buttonItem {
  973. display: flex;
  974. flex-direction: row;
  975. margin-top: 5rpx;
  976. justify-content: center;
  977. }
  978. .button {
  979. width: 208rpx;
  980. height: 98rpx;
  981. margin-top: 20rpx;
  982. background-color: #007AFF;
  983. color: white;
  984. font-size: unset;
  985. display: flex;
  986. align-items: center;
  987. justify-content: center;
  988. }
  989. .item {
  990. margin-left: 20rpx;
  991. }
  992. .setmenu {
  993. display: flex;
  994. flex-wrap: wrap;
  995. }
  996. .setItem {
  997. margin-left: 20rpx;
  998. }
  999. .text {
  1000. margin-top: 40rpx;
  1001. margin-bottom: 16rpx;
  1002. color: #444546;
  1003. font-size: 26rpx;
  1004. }
  1005. .input {
  1006. width: 320rpx;
  1007. height: 98rpx;
  1008. background-color: #eaeaea;
  1009. display: flex;
  1010. flex-direction: row;
  1011. align-items: center;
  1012. border-radius: 5rpx;
  1013. border: 1px solid #eaeaea;
  1014. }
  1015. .danwei {
  1016. width: 78rpx;
  1017. height: 98rpx;
  1018. background-color: white;
  1019. display: flex;
  1020. align-items: center;
  1021. }
  1022. .white {
  1023. width: 702rpx;
  1024. height: 711rpx;
  1025. background-color: white;
  1026. margin-left: 24rpx;
  1027. margin-top: 26rpx;
  1028. }
  1029. .title {
  1030. display: flex;
  1031. flex-direction: column;
  1032. align-items: center;
  1033. }
  1034. .tiao {
  1035. width: 60px;
  1036. height: 3px;
  1037. margin-top: 20rpx;
  1038. background: #007AFF;
  1039. }
  1040. .param {
  1041. font-size: 38rpx;
  1042. font-weight: 550;
  1043. margin-top: 40rpx;
  1044. }
  1045. .active_button {
  1046. background-color: skyblue;
  1047. }
  1048. </style>