parameterSetting.vue 30 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246
  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: "247",
  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: "242",
  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: "260",
  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: "209",
  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: "210",
  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: "208",
  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: "290",
  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: "241",
  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: "249",
  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: "214",
  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: "265",
  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: "305",
  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: "262",
  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: "277",
  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: "300",
  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: "281",
  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: "224",
  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: "215",
  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: "211",
  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: "213",
  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: "216",
  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: "268",
  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: "212",
  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: "219",
  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: "296",
  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: "231",
  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: "296",
  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: "231",
  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: "219",
  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: "238",
  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: "289",
  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: "288",
  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: "238",
  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: "289",
  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: "288",
  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: "261",
  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: "263",
  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: "244",
  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: "284",
  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: "239",
  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: "301",
  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: "272",
  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>