parameterSetting.vue 38 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594
  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="{'Green_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="{'Green_button': formData.MS_XZ == 1}" @tap="MSXZ()">
  52. {{ formData.MS_XZ == 0 ? "主用" : "备用" }}</button>
  53. </view>
  54. <view class="item">
  55. <view class="text">
  56. <text>故障复位</text>
  57. </view>
  58. <button class="button" :class="{'Red_button': formData.GZ_FW == 1}"
  59. @tap="GZFW()">{{formData.GZ_FW == 0?"关闭":"打开"}}</button>
  60. </view>
  61. </view>
  62. </view>
  63. <!-- 输入框1 -->
  64. <view>
  65. <uni-popup ref="inputDialog" type="dialog">
  66. <uni-popup-dialog ref="inputClose" mode="input" title="(输入范围: 0.0 - 50.0)" :value="formData.WD_SD"
  67. placeholder="输入范围: 0 - 50.0的值" @confirm="dialogInputConfirm"></uni-popup-dialog>
  68. </uni-popup>
  69. </view>
  70. <!-- 输入框2 -->
  71. <view>
  72. <uni-popup ref="inputDialog2" type="dialog">
  73. <uni-popup-dialog ref="inputClose" mode="input" title="(输入范围: 0.0 - 100.0)" :value="formData.SD_SD"
  74. placeholder="输入范围: 0 - 100.0的值!" @confirm="dialogInputConfirm2"></uni-popup-dialog>
  75. </uni-popup>
  76. </view>
  77. <!-- 输入框3 -->
  78. <view>
  79. <uni-popup ref="inputDialog3" type="dialog">
  80. <uni-popup-dialog ref="inputClose" mode="input" title="(输入范围: 0 - 9999)" :value="formData.JZ_YSTZ"
  81. placeholder="输入范围: 0 - 9999的值!" @confirm="dialogInputConfirm3"></uni-popup-dialog>
  82. </uni-popup>
  83. </view>
  84. <!-- 输入框FA1 -->
  85. <view>
  86. <uni-popup ref="inputDialogFA1" type="dialog">
  87. <uni-popup-dialog ref="inputClose" mode="input" title="(输入范围: 0 - 100)" :value="formData.LSF_SDKD"
  88. placeholder="输入范围: 0 - 100的值!" @confirm="dialogInputConfirmFA1"></uni-popup-dialog>
  89. </uni-popup>
  90. </view>
  91. <!-- 输入框FA2 -->
  92. <view>
  93. <uni-popup ref="inputDialogFA2" type="dialog">
  94. <uni-popup-dialog ref="inputClose" mode="input" title="(输入范围: 0 - 100)" :value="formData.RSF_SDKD"
  95. placeholder="输入范围: 0 - 100的值!" @confirm="dialogInputConfirmFA2"></uni-popup-dialog>
  96. </uni-popup>
  97. </view>
  98. <!-- 输入框FA3 -->
  99. <view>
  100. <uni-popup ref="inputDialogFA3" type="dialog">
  101. <uni-popup-dialog ref="inputClose" mode="input" title="(输入范围: 0 - 100)" :value="formData.JSF_SDKD"
  102. placeholder="输入范围: 0 - 100的值!" @confirm="dialogInputConfirmFA3"></uni-popup-dialog>
  103. </uni-popup>
  104. </view>
  105. <view class="xiabu">
  106. <view class="title">
  107. <text class="param">运行状态</text>
  108. <view class="tiao"></view>
  109. </view>
  110. <view class="head">
  111. <text>设备名称</text>
  112. <text style="margin-left: 30rpx">控制模式</text>
  113. <text>手动命令</text>
  114. <text>实时反馈</text>
  115. </view>
  116. <view class="whiteItem">
  117. <text class="text1">空调送风机</text>
  118. <button class="auto" :class="{'active_button': formData.SFJ_SZXZ == 1}"
  119. @tap="shouZiDongSFJ()">{{formData.SFJ_SZXZ == 0?'自动':'手动'}}</button>
  120. <button class="stop" :class="{'active_button': formData.SFJ_SDQD == 1}"
  121. @tap="shouZiDongSFJSD()">{{formData.SFJ_SDQD == 1?'启动':'停止'}}</button>
  122. <text class="four">{{formData.SFJ_QT == 0?"停止":"启动"}}</text>
  123. </view>
  124. <view class="grayItem">
  125. <text class="text1">空调排风机</text>
  126. <button class="auto" :class="{'active_button': formData.PFJ_SZXZ == 1}"
  127. @tap="shouZiDongPFJ">{{formData.PFJ_SZXZ == 0?'自动':'手动'}}</button>
  128. <button class="stop" :class="{'active_button': formData.PFJ_SDQD == 1}"
  129. @tap="shouZiDongPFJSD()">{{formData.PFJ_SDQD == 1?'启动':'停止'}}</button>
  130. <text class="four">{{formData.PFJ_QT == 0?"停止":"启动"}}</text>
  131. </view>
  132. <view class="whiteItem">
  133. <text class="text1">风 冷 主 机</text>
  134. <button class="auto" :class="{'active_button': formData.FLZJ_SZXZ == 1}"
  135. @tap="shouZiDongFLZJ">{{formData.FLZJ_SZXZ == 0?'自动':'手动'}}</button>
  136. <button class="stop" :class="{'active_button': formData.FLZJ_SDQD == 1}"
  137. @tap="shouZiDongFLZJSD()">{{formData.FLZJ_SDQD == 1?'启动':'停止'}}</button>
  138. <text class="four">{{formData.FLZJ_QT == 0?"停止":"启动"}}</text>
  139. </view>
  140. <view class="grayItem">
  141. <text class="text1">一级电加热</text>
  142. <button class="auto" :class="{'active_button': formData.YJDJR_SZXZ == 1}"
  143. @tap="shouZiDongYJDJR">{{formData.YJDJR_SZXZ == 0?'自动':'手动'}}</button>
  144. <button class="stop" :class="{'active_button': formData.YJDJR_SDQD == 1}"
  145. @tap="shouZiDongYJDJRSD()">{{formData.YJDJR_SDQD == 1?'启动':'停止'}}</button>
  146. <text class="four">{{formData.YJDJR_QT == 0?"停止":"启动"}}</text>
  147. </view>
  148. <view class="whiteItem">
  149. <text class="text1">二级电加热</text>
  150. <button class="auto" :class="{'active_button': formData.EJDJR_SZXZ == 1}"
  151. @tap="shouZiDongEJDJR">{{formData.EJDJR_SZXZ == 0?'自动':'手动'}}</button>
  152. <button class="stop" :class="{'active_button': formData.SJDJR_SDQD == 1}"
  153. @tap="shouZiDongEJDJRSD()">{{formData.SJDJR_SDQD == 1?'启动':'停止'}}</button>
  154. <text class="four">{{formData.EJDJR_QT == 0?"停止":"启动"}}</text>
  155. </view>
  156. <view class="grayItem">
  157. <text class="text1">三级电加热</text>
  158. <button class="auto" :class="{'active_button': formData.SJDJR_SZXZ == 1}"
  159. @tap="shouZiDongSJDJR">{{formData.SJDJR_SZXZ == 0?'自动':'手动'}}</button>
  160. <button class="stop" :class="{'active_button': formData.SJDJR_SDQD == 1}"
  161. @tap="shouZiDongSJDJRSD()">{{formData.SJDJR_SDQD == 1?'启动':'停止'}}</button>
  162. <text class="four">{{formData.SJDJR_QT == 0?"停止":"启动"}}</text>
  163. </view>
  164. <view class="whiteItem">
  165. <text class="text1">空调送风阀</text>
  166. <button class="auto" :class="{'active_button': formData.SFF_SZXZ == 1}"
  167. @tap="shouZiDongSFF">{{formData.SFF_SZXZ == 0?'自动':'手动'}}</button>
  168. <button class="stop" :class="{'active_button': formData.SFF_SDQD == 1}"
  169. @tap="shouZiDongSFFSD()">{{formData.SFF_SDQD == 1?'启动':'停止'}}</button>
  170. <text class="four">{{formData.SFF_KGKZ == 0?"关闭":"打开"}}</text>
  171. </view>
  172. <view class="grayItem">
  173. <text class="text1">空调排风阀</text>
  174. <button class="auto" :class="{'active_button': formData.PFF_SZXZ == 1}"
  175. @tap="shouZiDongPFF">{{formData.PFF_SZXZ == 0?'自动':'手动'}}</button>
  176. <button class="stop" :class="{'active_button': formData.PFF_SDQD == 1}"
  177. @tap="shouZiDongPFFSD()">{{formData.PFF_SDQD == 1?'启动':'停止'}}</button>
  178. <text class="four">{{formData.PFF_KGKZ == 0?"关闭":"打开"}}</text>
  179. </view>
  180. <view class="whiteItem">
  181. <text class="text1">空调冷水阀</text>
  182. <button class="auto" :class="{'active_button': formData.LSF_SZXZ == 1}"
  183. @tap="shouZiDong2">{{formData.LSF_SZXZ == 0?'自动':'手动'}}</button>
  184. <view style="display: flex;flex-direction: row;align-items: center;">
  185. <button class="three" @click="inputDialogToggleFA1()">{{formData.LSF_SDKD}}</button>%
  186. </view>
  187. <view class="four1">
  188. <text>{{formData.LSF}}%</text>
  189. </view>
  190. </view>
  191. <view class="grayItem">
  192. <text class="text1">空调热水阀</text>
  193. <button class="auto" :class="{'active_button': formData.RSF_SZXZ == 1}"
  194. @tap="shouZiDong3">{{formData.RSF_SZXZ == 0?'自动':'手动'}}</button>
  195. <view style="display: flex;flex-direction: row;align-items: center;">
  196. <button class="three" @click="inputDialogToggleFA2()">{{formData.RSF_SDKD}}</button>%
  197. </view>
  198. <view class="four1">
  199. <text>{{formData.RSF}}%</text>
  200. </view>
  201. </view>
  202. <view class="whiteItem">
  203. <text class="text1">空调加湿器</text>
  204. <button class="auto" :class="{'active_button': formData.JSF_SZXZ == 1}"
  205. @tap="shouZiDong">{{formData.JSF_SZXZ == 0?'自动':'手动'}}</button>
  206. <view style="display: flex;flex-direction: row;align-items: center;">
  207. <button class="three" @click="inputDialogToggleFA3()">{{formData.JSF_SDKD}}</button>%
  208. </view>
  209. <view class="four1">
  210. <text>{{formData.JSF}}%</text>
  211. </view>
  212. </view>
  213. </view>
  214. <view class="anniu">
  215. <image class="anniu" src="../../static/设备菜单/前往列表@2x.png" @tap="back"></image>
  216. </view>
  217. </view>
  218. </template>
  219. <script>
  220. export default {
  221. data() {
  222. return {
  223. // value: '',
  224. deviceParams: [],
  225. formData: {
  226. GZ_FW: '',
  227. JZ_XZ: '',
  228. MS_XZ: '',
  229. RSF: '',
  230. LSF: '',
  231. JSF: '',
  232. WD_SD: '',
  233. SD_SD: '',
  234. JZ_YSTZ: '',
  235. RSF_SDKD: '', //热水温度手动_设定(0~100,单位为%)
  236. LSF_SDKD: '', //冷水温度手动_设定(0~100,单位为%)
  237. JSF_SDKD: '', //电加湿手动_设定(0~100,单位为%)
  238. LSF_SZXZ: '',
  239. RSF_SZXZ: '',
  240. JSF_SZXZ: '',
  241. //下部按钮参数
  242. SFF_SZXZ: '',
  243. SFF_SDQD: '',
  244. PFF_SZXZ: '',
  245. PFF_SDQD: '',
  246. SFJ_SZXZ: '',
  247. SFJ_SZXZ: '',
  248. SFJ_SDQD: '',
  249. PFJ_SZXZ: '',
  250. PFJ_SDQD: '',
  251. FLZJ_SZXZ: '',
  252. FLZJ_SDQD: '',
  253. YJDJR_SZXZ: '',
  254. YJDJR_SDQD: '',
  255. EJDJR_SZXZ: '',
  256. EJDJR_SDQD: '',
  257. SJDJR_SZXZ: '',
  258. SJDJR_SDQD: '',
  259. //第四列实时反馈
  260. SFJ_QT: '', //送风机工频启动(:停止,1:启动)
  261. PFJ_QT: '', //排风机工频启动(0:停止,1:启动)
  262. YJDJR_QT: '', //一级电加热启停(0:停止,1:启动)
  263. EJDJR_QT: '', //二级电加热启停(0:停止,1:启动)
  264. SJDJR_QT: '', //三级电加热启停(0:停止,1:启动)
  265. SFF_KGKZ: '', //送风阀开关控制(0:关闭,1:打开)
  266. PFF_KGKZ: '', //排风阀开关控制(0:关闭,1:打开)
  267. FLZJ_QT: '', //风冷主机启停(0:停止,1:启动)
  268. //上部三个按钮
  269. }
  270. }
  271. },
  272. onLoad(e) {
  273. console.log(e);
  274. this.getYSTZ()
  275. this.getSD_SD()
  276. this.getWD_SD()
  277. //三个按钮
  278. this.getJZXZ()
  279. this.getMSXZ()
  280. this.getGZFW()
  281. //控制模式
  282. this.getSFJSZXZ()
  283. this.getPFJSZXZ()
  284. this.getFLZJSZXZ()
  285. this.getYJSZXZ()
  286. this.getEJSZXZ()
  287. this.getSJSZXZ()
  288. this.getSFFSZXZ()
  289. this.getPFFSZXZ()
  290. this.getLSFSZXZ()
  291. this.getRSFSZXZ()
  292. this.getJSFSZXZ()
  293. //手动命令
  294. this.getSFJSDQD()
  295. this.getPFJSDQD()
  296. this.getFLZJSDQD()
  297. this.getYJSDQD()
  298. this.getEJSDQD()
  299. this.getSJSDQD()
  300. this.getSFFSDQD()
  301. this.getPFFSDQD()
  302. this.getLSFSDQD()
  303. this.getRSFSDQD()
  304. this.getJSFSDQD()
  305. //实时反馈
  306. this.getJSF_SDKD()
  307. this.getLSF_SDKD()
  308. this.getRSF_SDKD()
  309. this.getRSF()
  310. this.getLSF()
  311. this.getJSF()
  312. this.getYJQT()
  313. this.getEJQT()
  314. this.getSJQT()
  315. this.getFLZJQT()
  316. this.getSFFQT()
  317. this.getPFFQT()
  318. this.getSFJQT()
  319. this.getPFJQT()
  320. },
  321. methods: {
  322. //三个按钮选择
  323. async JZXZ(e) {
  324. this.formData.JZ_XZ == 1 ? this.formData.JZ_XZ = 0 : this.formData.JZ_XZ = 1;
  325. let vm = this;
  326. let url = uni.$api.deviceParam.updateParam;
  327. let data = {
  328. id: "247",
  329. value: this.formData.JZ_XZ,
  330. name: "JZ_XZ",
  331. sn: "CK1"
  332. };
  333. let res = await uni.$http.get(url, data);
  334. console.log(res.data.data.value);
  335. },
  336. async MSXZ(e) {
  337. this.formData.MS_XZ == 1 ? this.formData.MS_XZ = 0 : this.formData.MS_XZ = 1;
  338. let vm = this;
  339. let url = uni.$api.deviceParam.updateParam;
  340. let data = {
  341. id: "242",
  342. value: this.formData.MS_XZ,
  343. name: "MS_XZ",
  344. sn: "CK1"
  345. };
  346. let res = await uni.$http.get(url, data);
  347. console.log(res.data.data.value);
  348. },
  349. async GZFW(e) {
  350. this.formData.GZ_FW == 1 ? this.formData.GZ_FW = 0 : this.formData.GZ_FW = 1;
  351. let vm = this;
  352. let url = uni.$api.deviceParam.updateParam;
  353. let data = {
  354. id: "260",
  355. value: this.formData.GZ_FW,
  356. name: "GZ_FW",
  357. sn: "CK1"
  358. };
  359. let res = await uni.$http.get(url, data);
  360. console.log(res.data.data.value);
  361. },
  362. //三个按钮数据
  363. async getJZXZ(e) {
  364. let vm = this;
  365. let url = uni.$api.deviceParam.detail;
  366. let data = {
  367. id: "247",
  368. };
  369. let res = await uni.$http.get(url, data);
  370. this.formData.JZ_XZ = res.data.data.deviceParam.value;
  371. console.log("JZXZ==" + this.formData.JZ_XZ);
  372. },
  373. async getMSXZ(e) {
  374. let vm = this;
  375. let url = uni.$api.deviceParam.detail;
  376. let data = {
  377. id: "242",
  378. };
  379. let res = await uni.$http.get(url, data);
  380. this.formData.MS_XZ = res.data.data.deviceParam.value;
  381. console.log("MSXZ==" + this.formData.MS_XZ);
  382. },
  383. async getGZFW(e) {
  384. let vm = this;
  385. let url = uni.$api.deviceParam.detail;
  386. let data = {
  387. id: "260",
  388. };
  389. let res = await uni.$http.get(url, data);
  390. this.formData.GZ_FW = res.data.data.deviceParam.value;
  391. console.log("GZFW==" + this.formData.GZ_FW);
  392. },
  393. //控制模式
  394. async getSFJSZXZ(e) {
  395. let vm = this;
  396. let url = uni.$api.deviceParam.detail;
  397. let data = {
  398. id: "204",
  399. };
  400. let res = await uni.$http.get(url, data);
  401. this.formData.SFJ_SZXZ = res.data.data.deviceParam.value;
  402. console.log("SFJ_SZXZ==" + this.formData.SFJ_SZXZ);
  403. },
  404. async getPFJSZXZ(e) {
  405. let vm = this;
  406. let url = uni.$api.deviceParam.detail;
  407. let data = {
  408. id: "203",
  409. };
  410. let res = await uni.$http.get(url, data);
  411. this.formData.PFJ_SZXZ = res.data.data.deviceParam.value;
  412. console.log("PFJ_SZXZ==" + this.formData.PFJ_SZXZ);
  413. },
  414. async getFLZJSZXZ(e) {
  415. let vm = this;
  416. let url = uni.$api.deviceParam.detail;
  417. let data = {
  418. id: "305",
  419. };
  420. let res = await uni.$http.get(url, data);
  421. this.formData.FLZJ_SZXZ = res.data.data.deviceParam.value;
  422. console.log("FLZJ_SZXZ==" + this.formData.FLZJ_SZXZ);
  423. },
  424. async getYJSZXZ(e) {
  425. let vm = this;
  426. let url = uni.$api.deviceParam.detail;
  427. let data = {
  428. id: "249",
  429. };
  430. let res = await uni.$http.get(url, data);
  431. this.formData.YJDJR_SZXZ = res.data.data.deviceParam.value;
  432. console.log("YJDJR_SZXZ==" + this.formData.YJDJR_SZXZ);
  433. },
  434. async getEJSZXZ(e) {
  435. let vm = this;
  436. let url = uni.$api.deviceParam.detail;
  437. let data = {
  438. id: "214",
  439. };
  440. let res = await uni.$http.get(url, data);
  441. this.formData.EJDJR_SZXZ = res.data.data.deviceParam.value;
  442. console.log("EJDJR_SZXZ==" + this.formData.EJDJR_SZXZ);
  443. },
  444. async getSJSZXZ(e) {
  445. let vm = this;
  446. let url = uni.$api.deviceParam.detail;
  447. let data = {
  448. id: "265",
  449. };
  450. let res = await uni.$http.get(url, data);
  451. this.formData.SJDJR_SZXZ = res.data.data.deviceParam.value;
  452. console.log("SJDJR_SZXZ==" + this.formData.SJDJR_SZXZ);
  453. },
  454. async getSFFSZXZ(e) {
  455. let vm = this;
  456. let url = uni.$api.deviceParam.detail;
  457. let data = {
  458. id: "290",
  459. };
  460. let res = await uni.$http.get(url, data);
  461. this.formData.SFF_SZXZ = res.data.data.deviceParam.value;
  462. console.log("SFF_SZXZ==" + this.formData.SFF_SZXZ);
  463. },
  464. async getPFFSZXZ(e) {
  465. let vm = this;
  466. let url = uni.$api.deviceParam.detail;
  467. let data = {
  468. id: "242",
  469. };
  470. let res = await uni.$http.get(url, data);
  471. this.formData.PFF_SZXZ = res.data.data.deviceParam.value;
  472. console.log("PFF_SZXZ==" + this.formData.PFF_SZXZ);
  473. },
  474. async getLSFSZXZ(e) {
  475. let vm = this;
  476. let url = uni.$api.deviceParam.detail;
  477. let data = {
  478. id: "209",
  479. };
  480. let res = await uni.$http.get(url, data);
  481. this.formData.LSF_SZXZ = res.data.data.deviceParam.value;
  482. console.log("LSF_SZXZ==" + this.formData.LSF_SZXZ);
  483. },
  484. async getRSFSZXZ(e) {
  485. let vm = this;
  486. let url = uni.$api.deviceParam.detail;
  487. let data = {
  488. id: "208",
  489. };
  490. let res = await uni.$http.get(url, data);
  491. this.formData.RSF_SZXZ = res.data.data.deviceParam.value;
  492. console.log("RSF_SZXZ==" + this.formData.RSF_SZXZ);
  493. },
  494. async getJSFSZXZ(e) {
  495. let vm = this;
  496. let url = uni.$api.deviceParam.detail;
  497. let data = {
  498. id: "210",
  499. };
  500. let res = await uni.$http.get(url, data);
  501. this.formData.JSF_SZXZ = res.data.data.deviceParam.value;
  502. console.log("JSF_SZXZ==" + this.formData.JSF_SZXZ);
  503. },
  504. //手动命令
  505. async getSFJSDQD(e) {
  506. let vm = this;
  507. let url = uni.$api.deviceParam.detail;
  508. let data = {
  509. id: "261",
  510. };
  511. let res = await uni.$http.get(url, data);
  512. this.formData.SFJ_SDQD = res.data.data.deviceParam.value;
  513. console.log("SFJ_SDQD==" + this.formData.SFJ_SDQD);
  514. },
  515. async getPFJSDQD(e) {
  516. let vm = this;
  517. let url = uni.$api.deviceParam.detail;
  518. let data = {
  519. id: "263",
  520. };
  521. let res = await uni.$http.get(url, data);
  522. this.formData.PFJ_SDQD = res.data.data.deviceParam.value;
  523. console.log("PFJ_SDQD==" + this.formData.PFJ_SDQD);
  524. },
  525. async getFLZJSDQD(e) {
  526. let vm = this;
  527. let url = uni.$api.deviceParam.detail;
  528. let data = {
  529. id: "244",
  530. };
  531. let res = await uni.$http.get(url, data);
  532. this.formData.FLZJ_SDQD = res.data.data.deviceParam.value;
  533. console.log("FLZJ_SDQD==" + this.formData.FLZJ_SDQD);
  534. },
  535. async getYJSDQD(e) {
  536. let vm = this;
  537. let url = uni.$api.deviceParam.detail;
  538. let data = {
  539. id: "301",
  540. };
  541. let res = await uni.$http.get(url, data);
  542. this.formData.YJDJR_SDQD = res.data.data.deviceParam.value;
  543. console.log("YJDJR_SDQD==" + this.formData.YJDJR_SDQD);
  544. },
  545. async getEJSDQD(e) {
  546. let vm = this;
  547. let url = uni.$api.deviceParam.detail;
  548. let data = {
  549. id: "272",
  550. };
  551. let res = await uni.$http.get(url, data);
  552. this.formData.EJDJR_SDQD = res.data.data.deviceParam.value;
  553. console.log("EJDJR_SDQD==" + this.formData.EJDJR_SDQD);
  554. },
  555. async getSJSDQD(e) {
  556. let vm = this;
  557. let url = uni.$api.deviceParam.detail;
  558. let data = {
  559. id: "202",
  560. };
  561. let res = await uni.$http.get(url, data);
  562. this.formData.SJDJR_SDQD = res.data.data.deviceParam.value;
  563. console.log("SJDJR_SDQD==" + this.formData.SJDJR_SDQD);
  564. },
  565. async getSFFSDQD(e) {
  566. let vm = this;
  567. let url = uni.$api.deviceParam.detail;
  568. let data = {
  569. id: "239",
  570. };
  571. let res = await uni.$http.get(url, data);
  572. this.formData.SFF_SDQD = res.data.data.deviceParam.value;
  573. console.log("SFF_SDQD==" + this.formData.SFF_SDQD);
  574. },
  575. async getPFFSDQD(e) {
  576. let vm = this;
  577. let url = uni.$api.deviceParam.detail;
  578. let data = {
  579. id: "284",
  580. };
  581. let res = await uni.$http.get(url, data);
  582. this.formData.PFF_SDQD = res.data.data.deviceParam.value;
  583. console.log("PFF_SDQD==" + this.formData.PFF_SDQD);
  584. },
  585. async getLSFSDQD(e) {
  586. let vm = this;
  587. let url = uni.$api.deviceParam.detail;
  588. let data = {
  589. id: "238",
  590. };
  591. let res = await uni.$http.get(url, data);
  592. this.formData.LSF_SDKD = res.data.data.deviceParam.value;
  593. console.log("LSF_SDKD==" + this.formData.LSF_SDKD);
  594. },
  595. async getRSFSDQD(e) {
  596. let vm = this;
  597. let url = uni.$api.deviceParam.detail;
  598. let data = {
  599. id: "289",
  600. };
  601. let res = await uni.$http.get(url, data);
  602. this.formData.RSF_SDKD = res.data.data.deviceParam.value;
  603. console.log("RSF_SDKD==" + this.formData.RSF_SDKD);
  604. },
  605. async getJSFSDQD(e) {
  606. let vm = this;
  607. let url = uni.$api.deviceParam.detail;
  608. let data = {
  609. id: "288",
  610. };
  611. let res = await uni.$http.get(url, data);
  612. this.formData.JSF_SDKD = res.data.data.deviceParam.value;
  613. console.log("JSF_SDKD==" + this.formData.JSF_SDKD);
  614. },
  615. async shouZiDong(e) {
  616. this.formData.JSF_SZXZ == 1 ? this.formData.JSF_SZXZ = 0 : this.formData.JSF_SZXZ = 1;
  617. let vm = this;
  618. let url = uni.$api.deviceParam.updateParam;
  619. let data = {
  620. id: "210",
  621. value: this.formData.JSF_SZXZ,
  622. name: "JSF_SZXZ",
  623. sn: "CK1"
  624. };
  625. let res = await uni.$http.get(url, data);
  626. console.log(res.data.data.value);
  627. },
  628. async shouZiDong2(e) {
  629. this.formData.LSF_SZXZ == 1 ? this.formData.LSF_SZXZ = 0 : this.formData.LSF_SZXZ = 1;
  630. let vm = this;
  631. let url = uni.$api.deviceParam.updateParam;
  632. let data = {
  633. id: "209",
  634. value: this.formData.LSF_SZXZ,
  635. name: "LSF_SZXZ",
  636. sn: "CK1"
  637. };
  638. let res = await uni.$http.get(url, data);
  639. console.log(res.data.data.value);
  640. },
  641. async shouZiDong3(e) {
  642. this.formData.RSF_SZXZ == 1 ? this.formData.RSF_SZXZ = 0 : this.formData.RSF_SZXZ = 1;
  643. let vm = this;
  644. let url = uni.$api.deviceParam.updateParam;
  645. let data = {
  646. id: "208",
  647. value: this.formData.RSF_SZXZ,
  648. name: "RSF_SZXZ",
  649. sn: "CK1"
  650. };
  651. let res = await uni.$http.get(url, data);
  652. console.log(res.data.data.value);
  653. },
  654. //下部按钮的自动手动
  655. async shouZiDongSFJ(e) {
  656. this.formData.SFJ_SZXZ == 1 ? this.formData.SFJ_SZXZ = 0 : this.formData.SFJ_SZXZ = 1;
  657. let vm = this;
  658. let url = uni.$api.deviceParam.updateParam;
  659. let data = {
  660. id: "204",
  661. value: this.formData.SFJ_SZXZ,
  662. name: "SFJ_SZXZ",
  663. sn: "CK1"
  664. };
  665. let res = await uni.$http.get(url, data);
  666. console.log(res.data.data.value);
  667. },
  668. async shouZiDongPFJ(e) {
  669. this.formData.PFJ_SZXZ == 1 ? this.formData.PFJ_SZXZ = 0 : this.formData.PFJ_SZXZ = 1;
  670. let vm = this;
  671. let url = uni.$api.deviceParam.updateParam;
  672. let data = {
  673. id: "203",
  674. value: this.formData.PFJ_SZXZ,
  675. name: "PFJ_SZXZ",
  676. sn: "CK1"
  677. };
  678. let res = await uni.$http.get(url, data);
  679. console.log(res.data.data.value);
  680. },
  681. async shouZiDongSFF(e) {
  682. this.formData.SFF_SZXZ == 1 ? this.formData.SFF_SZXZ = 0 : this.formData.SFF_SZXZ = 1;
  683. let vm = this;
  684. let url = uni.$api.deviceParam.updateParam;
  685. let data = {
  686. id: "290",
  687. value: this.formData.SFF_SZXZ,
  688. name: "SFF_SZXZ",
  689. sn: "CK1"
  690. };
  691. let res = await uni.$http.get(url, data);
  692. console.log(res.data.data.value);
  693. },
  694. async shouZiDongPFF(e) {
  695. this.formData.PFF_SZXZ == 1 ? this.formData.PFF_SZXZ = 0 : this.formData.PFF_SZXZ = 1;
  696. let vm = this;
  697. let url = uni.$api.deviceParam.updateParam;
  698. let data = {
  699. id: "242",
  700. value: this.formData.PFF_SZXZ,
  701. name: "PFF_SZXZ",
  702. sn: "CK1"
  703. };
  704. let res = await uni.$http.get(url, data);
  705. console.log(res.data.data.value);
  706. },
  707. async shouZiDongYJDJR(e) {
  708. this.formData.YJDJR_SZXZ == 1 ? this.formData.YJDJR_SZXZ = 0 : this.formData.YJDJR_SZXZ = 1;
  709. let vm = this;
  710. let url = uni.$api.deviceParam.updateParam;
  711. let data = {
  712. id: "249",
  713. value: this.formData.YJDJR_SZXZ,
  714. name: "YJDJR_SZXZ",
  715. sn: "CK1"
  716. };
  717. let res = await uni.$http.get(url, data);
  718. console.log(res.data.data.value);
  719. },
  720. async shouZiDongEJDJR(e) {
  721. this.formData.EJDJR_SZXZ == 1 ? this.formData.EJDJR_SZXZ = 0 : this.formData.EJDJR_SZXZ = 1;
  722. let vm = this;
  723. let url = uni.$api.deviceParam.updateParam;
  724. let data = {
  725. id: "214",
  726. value: this.formData.EJDJR_SZXZ,
  727. name: "EJDJR_SZXZ",
  728. sn: "CK1"
  729. };
  730. let res = await uni.$http.get(url, data);
  731. console.log(res.data.data.value);
  732. },
  733. async shouZiDongSJDJR(e) {
  734. this.formData.SJDJR_SZXZ == 1 ? this.formData.SJDJR_SZXZ = 0 : this.formData.SJDJR_SZXZ = 1;
  735. let vm = this;
  736. let url = uni.$api.deviceParam.updateParam;
  737. let data = {
  738. id: "265",
  739. value: this.formData.SJDJR_SZXZ,
  740. name: "SJDJR_SZXZ",
  741. sn: "CK1"
  742. };
  743. let res = await uni.$http.get(url, data);
  744. console.log(res.data.data.value);
  745. },
  746. async shouZiDongFLZJ(e) {
  747. this.formData.FLZJ_SZXZ == 1 ? this.formData.FLZJ_SZXZ = 0 : this.formData.FLZJ_SZXZ = 1;
  748. let vm = this;
  749. let url = uni.$api.deviceParam.updateParam;
  750. let data = {
  751. id: "305",
  752. value: this.formData.FLZJ_SZXZ,
  753. name: "FLZJ_SZXZ",
  754. sn: "CK1"
  755. };
  756. let res = await uni.$http.get(url, data);
  757. console.log(res.data.data.value);
  758. },
  759. //-----------------------------------------------------------------------------------------------
  760. //第四列实时反馈的获取数据
  761. async getSFJQT(e) {
  762. let vm = this;
  763. let url = uni.$api.deviceParam.detail;
  764. let data = {
  765. id: "262",
  766. };
  767. let res = await uni.$http.get(url, data);
  768. this.formData.SFJ_QT = res.data.data.deviceParam.value;
  769. },
  770. async getPFJQT(e) {
  771. let vm = this;
  772. let url = uni.$api.deviceParam.detail;
  773. let data = {
  774. id: "277",
  775. };
  776. let res = await uni.$http.get(url, data);
  777. this.formData.PFJ_QT = res.data.data.deviceParam.value;
  778. },
  779. async getSFFQT(e) {
  780. let vm = this;
  781. let url = uni.$api.deviceParam.detail;
  782. let data = {
  783. id: "300",
  784. };
  785. let res = await uni.$http.get(url, data);
  786. this.formData.SFF_KGKZ = res.data.data.deviceParam.value;
  787. },
  788. async getPFFQT(e) {
  789. let vm = this;
  790. let url = uni.$api.deviceParam.detail;
  791. let data = {
  792. id: "281",
  793. };
  794. let res = await uni.$http.get(url, data);
  795. this.formData.PFF_KGKZ = res.data.data.deviceParam.value;
  796. },
  797. async getFLZJQT(e) {
  798. let vm = this;
  799. let url = uni.$api.deviceParam.detail;
  800. let data = {
  801. id: "224",
  802. };
  803. let res = await uni.$http.get(url, data);
  804. this.formData.FLZJ_QT = res.data.data.deviceParam.value;
  805. },
  806. async getYJQT(e) {
  807. let vm = this;
  808. let url = uni.$api.deviceParam.detail;
  809. let data = {
  810. id: "215",
  811. };
  812. let res = await uni.$http.get(url, data);
  813. this.formData.YJDJR_QT = res.data.data.deviceParam.value;
  814. },
  815. async getEJQT(e) {
  816. let vm = this;
  817. let url = uni.$api.deviceParam.detail;
  818. let data = {
  819. id: "211",
  820. };
  821. let res = await uni.$http.get(url, data);
  822. this.formData.EJDJR_QT = res.data.data.deviceParam.value;
  823. },
  824. async getSJQT(e) {
  825. let vm = this;
  826. let url = uni.$api.deviceParam.detail;
  827. let data = {
  828. id: "213",
  829. };
  830. let res = await uni.$http.get(url, data);
  831. this.formData.SJDJR_QT = res.data.data.deviceParam.value;
  832. },
  833. //三个阀的实时反馈
  834. async getRSF(e) {
  835. let vm = this;
  836. let url = uni.$api.deviceParam.detail;
  837. let data = {
  838. id: "216",
  839. };
  840. let res = await uni.$http.get(url, data);
  841. this.formData.RSF = res.data.data.deviceParam.value;
  842. console.log(this.formData.RSF);
  843. },
  844. async getLSF(e) {
  845. let vm = this;
  846. let url = uni.$api.deviceParam.detail;
  847. let data = {
  848. id: "268",
  849. };
  850. let res = await uni.$http.get(url, data);
  851. this.formData.LSF = res.data.data.deviceParam.value;
  852. console.log(this.formData.LSF);
  853. },
  854. async getJSF(e) {
  855. let vm = this;
  856. let url = uni.$api.deviceParam.detail;
  857. let data = {
  858. id: "212",
  859. };
  860. let res = await uni.$http.get(url, data);
  861. this.formData.JSF = res.data.data.deviceParam.value;
  862. console.log(this.formData.JSF);
  863. },
  864. //-----
  865. async dialogInputConfirm(val) {
  866. this.formData.WD_SD = val;
  867. console.log(val);
  868. this.updateWD_SD()
  869. },
  870. async dialogInputConfirm2(val) {
  871. this.formData.SD_SD = val;
  872. console.log(this.formData.SD_SD);
  873. this.updateSD_SD()()
  874. },
  875. async dialogInputConfirm3(val) {
  876. this.formData.JZ_YSTZ = val;
  877. console.log(val);
  878. this.updateYSTZ()()
  879. },
  880. async dialogInputConfirmFA1(val) {
  881. this.formData.LSF_SDKD = val;
  882. this.updateLSF_SDKD()
  883. console.log(this.formData.LSF_SDKD);
  884. },
  885. async dialogInputConfirmFA2(val) {
  886. this.formData.RSF_SDKD = val;
  887. this.updateRSF_SDKD()
  888. console.log(val);
  889. },
  890. async dialogInputConfirmFA3(val) {
  891. this.formData.JSF_SDKD = val;
  892. this.updateJSF_SDKD()
  893. console.log(val);
  894. },
  895. inputDialogToggle() {
  896. this.$refs.inputDialog.open()
  897. },
  898. inputDialogToggle2() {
  899. this.$refs.inputDialog2.open()
  900. },
  901. inputDialogToggle3() {
  902. this.$refs.inputDialog3.open()
  903. },
  904. inputDialogToggleFA1() {
  905. this.$refs.inputDialogFA1.open()
  906. },
  907. inputDialogToggleFA2() {
  908. this.$refs.inputDialogFA2.open()
  909. },
  910. inputDialogToggleFA3() {
  911. this.$refs.inputDialogFA3.open()
  912. },
  913. back() {
  914. uni.navigateTo({
  915. url: '/pages/device/deviceInfo/deviceInfo'
  916. })
  917. },
  918. //三个参数设定
  919. async getYSTZ(e) {
  920. let vm = this;
  921. let url = uni.$api.deviceParam.detail;
  922. let data = {
  923. id: "219",
  924. };
  925. let res = await uni.$http.get(url, data);
  926. this.formData.JZ_YSTZ = res.data.data.deviceParam.value;
  927. console.log(this.formData.JZ_YSTZ);
  928. },
  929. async getWD_SD(e) {
  930. let vm = this;
  931. let url = uni.$api.deviceParam.detail;
  932. let data = {
  933. id: "296",
  934. };
  935. let res = await uni.$http.get(url, data);
  936. this.formData.WD_SD = res.data.data.deviceParam.value;
  937. console.log(this.formData.WD_SD);
  938. },
  939. async getSD_SD(e) {
  940. let vm = this;
  941. let url = uni.$api.deviceParam.detail;
  942. let data = {
  943. id: "231",
  944. };
  945. let res = await uni.$http.get(url, data);
  946. this.formData.SD_SD = res.data.data.deviceParam.value;
  947. console.log(this.formData.SD_SD);
  948. },
  949. //三个参数设定更新
  950. async updateWD_SD(e) {
  951. let vm = this;
  952. let url = uni.$api.deviceParam.updateParam;
  953. let data = {
  954. id: "296",
  955. sn: "CK1",
  956. name: "WD_SD",
  957. value: this.formData.WD_SD
  958. };
  959. let res = await uni.$http.get(url, data);
  960. console.log(res);
  961. },
  962. async updateSD_SD(e) {
  963. let vm = this;
  964. let url = uni.$api.deviceParam.updateParam;
  965. let data = {
  966. id: "231",
  967. sn: "CK1",
  968. name: "SD_SD",
  969. value: this.formData.SD_SD
  970. };
  971. let res = await uni.$http.get(url, data);
  972. console.log(res);
  973. },
  974. async updateYSTZ(e) {
  975. let vm = this;
  976. let url = uni.$api.deviceParam.updateParam;
  977. let data = {
  978. id: "219",
  979. sn: "CK1",
  980. name: "JZ_YSTZ",
  981. value: this.formData.JZ_YSTZ
  982. };
  983. let res = await uni.$http.get(url, data);
  984. console.log(res);
  985. },
  986. //-----三个阀手动命令列
  987. async getLSF_SDKD(e) {
  988. let vm = this;
  989. let url = uni.$api.deviceParam.detail;
  990. let data = {
  991. id: "238",
  992. };
  993. let res = await uni.$http.get(url, data);
  994. this.formData.LSF_SDKD = res.data.data.deviceParam.value;
  995. console.log(this.formData.LSF_SDKD);
  996. },
  997. async getRSF_SDKD(e) {
  998. let vm = this;
  999. let url = uni.$api.deviceParam.detail;
  1000. let data = {
  1001. id: "289",
  1002. };
  1003. let res = await uni.$http.get(url, data);
  1004. this.formData.RSF_SDKD = res.data.data.deviceParam.value;
  1005. console.log(this.formData.RSF_SDKD);
  1006. },
  1007. async getJSF_SDKD(e) {
  1008. let vm = this;
  1009. let url = uni.$api.deviceParam.detail;
  1010. let data = {
  1011. id: "288",
  1012. };
  1013. let res = await uni.$http.get(url, data);
  1014. this.formData.JSF_SDKD = res.data.data.deviceParam.value;
  1015. console.log(this.formData.JSF_SDKD);
  1016. },
  1017. //-------三个阀手动命令列更新
  1018. async updateLSF_SDKD(e) {
  1019. let vm = this;
  1020. let url = uni.$api.deviceParam.updateParam;
  1021. let data = {
  1022. id: "238",
  1023. sn: "CK1",
  1024. name: "LSF_SDKD",
  1025. value: this.formData.LSF_SDKD
  1026. };
  1027. let res = await uni.$http.get(url, data);
  1028. console.log(res);
  1029. },
  1030. async updateRSF_SDKD(e) {
  1031. let vm = this;
  1032. let url = uni.$api.deviceParam.updateParam;
  1033. let data = {
  1034. id: "289",
  1035. sn: "CK1",
  1036. name: "RSF_SDKD",
  1037. value: this.formData.RSF_SDKD
  1038. };
  1039. let res = await uni.$http.get(url, data);
  1040. console.log(res);
  1041. },
  1042. async updateJSF_SDKD(e) {
  1043. let vm = this;
  1044. let url = uni.$api.deviceParam.updateParam;
  1045. let data = {
  1046. id: "288",
  1047. sn: "CK1",
  1048. name: "JSF_SDKD",
  1049. value: this.formData.JSF_SDKD
  1050. };
  1051. let res = await uni.$http.get(url, data);
  1052. console.log(res);
  1053. },
  1054. //第三列手动启动停止
  1055. async shouZiDongSFJSD(e) {
  1056. this.formData.SFJ_SDQD == 1 ? this.formData.SFJ_SDQD = 0 : this.formData.SFJ_SDQD = 1;
  1057. let vm = this;
  1058. let url = uni.$api.deviceParam.updateParam;
  1059. let data = {
  1060. id: "261",
  1061. value: this.formData.SFJ_SDQD,
  1062. name: "SFJ_SDQD",
  1063. sn: "CK1"
  1064. };
  1065. let res = await uni.$http.get(url, data);
  1066. console.log(res.data.data.value);
  1067. },
  1068. async shouZiDongPFJSD(e) {
  1069. this.formData.PFJ_SDQD == 1 ? this.formData.PFJ_SDQD = 0 : this.formData.PFJ_SDQD = 1;
  1070. let vm = this;
  1071. let url = uni.$api.deviceParam.updateParam;
  1072. let data = {
  1073. id: "263",
  1074. value: this.formData.PFJ_SDQD,
  1075. name: "PFJ_SDQD",
  1076. sn: "CK1"
  1077. };
  1078. let res = await uni.$http.get(url, data);
  1079. console.log(res.data.data.value);
  1080. },
  1081. async shouZiDongFLZJSD(e) {
  1082. this.formData.FLZJ_SDQD == 1 ? this.formData.FLZJ_SDQD = 0 : this.formData.FLZJ_SDQD = 1;
  1083. let vm = this;
  1084. let url = uni.$api.deviceParam.updateParam;
  1085. let data = {
  1086. id: "244",
  1087. value: this.formData.FLZJ_SDQD,
  1088. name: "FLZJ_SDQD",
  1089. sn: "CK1"
  1090. };
  1091. let res = await uni.$http.get(url, data);
  1092. console.log(res.data.data.value);
  1093. },
  1094. async shouZiDongPFFSD(e) {
  1095. this.formData.PFF_SDQD == 1 ? this.formData.PFF_SDQD = 0 : this.formData.PFF_SDQD = 1;
  1096. let vm = this;
  1097. let url = uni.$api.deviceParam.updateParam;
  1098. let data = {
  1099. id: "284",
  1100. value: this.formData.PFF_SDQD,
  1101. name: "PFF_SDQD",
  1102. sn: "CK1"
  1103. };
  1104. let res = await uni.$http.get(url, data);
  1105. console.log(res.data.data.value);
  1106. },
  1107. async shouZiDongSFFSD(e) {
  1108. this.formData.SFF_SDQD == 1 ? this.formData.SFF_SDQD = 0 : this.formData.SFF_SDQD = 1;
  1109. let vm = this;
  1110. let url = uni.$api.deviceParam.updateParam;
  1111. let data = {
  1112. id: "239",
  1113. value: this.formData.SFF_SDQD,
  1114. name: "SFF_SDQD",
  1115. sn: "CK1"
  1116. };
  1117. let res = await uni.$http.get(url, data);
  1118. console.log(res.data.data.value);
  1119. },
  1120. async shouZiDongYJDJRSD(e) {
  1121. this.formData.YJDJR_SDQD == 1 ? this.formData.YJDJR_SDQD = 0 : this.formData.YJDJR_SDQD = 1;
  1122. let vm = this;
  1123. let url = uni.$api.deviceParam.updateParam;
  1124. let data = {
  1125. id: "301",
  1126. value: this.formData.YJDJR_SDQD,
  1127. name: "YJDJR_SDQD",
  1128. sn: "CK1"
  1129. };
  1130. let res = await uni.$http.get(url, data);
  1131. console.log(res.data.data.value);
  1132. },
  1133. async shouZiDongEJDJRSD(e) {
  1134. this.formData.EJDJR_SDQD == 1 ? this.formData.EJDJR_SDQD = 0 : this.formData.EJDJR_SDQD = 1;
  1135. let vm = this;
  1136. let url = uni.$api.deviceParam.updateParam;
  1137. let data = {
  1138. id: "272",
  1139. value: this.formData.EJDJR_SDQD,
  1140. name: "EJDJR_SDQD",
  1141. sn: "CK1"
  1142. };
  1143. let res = await uni.$http.get(url, data);
  1144. console.log(res.data.data.value);
  1145. },
  1146. async shouZiDongSJDJRSD(e) {
  1147. this.formData.SJDJR_SDQD == 1 ? this.formData.SJDJR_SDQD = 0 : this.formData.SJDJR_SDQD = 1;
  1148. let vm = this;
  1149. let url = uni.$api.deviceParam.updateParam;
  1150. let data = {
  1151. id: "202",
  1152. value: this.formData.SJDJR_SDQD,
  1153. name: "SJDJR_SDQD",
  1154. sn: "CK1"
  1155. };
  1156. let res = await uni.$http.get(url, data);
  1157. console.log(res.data.data.value);
  1158. },
  1159. }
  1160. }
  1161. </script>
  1162. <style>
  1163. .button {
  1164. width: 208rpx;
  1165. height: 98rpx;
  1166. margin-top: 20rpx;
  1167. background-color: #007AFF;
  1168. color: white;
  1169. font-size: unset;
  1170. display: flex;
  1171. align-items: center;
  1172. justify-content: center;
  1173. }
  1174. .Green_button {
  1175. background-color: green;
  1176. }
  1177. .Red_button {
  1178. background-color: crimson;
  1179. }
  1180. .anniu {
  1181. width: 116rpx;
  1182. height: 116rpx;
  1183. float: right;
  1184. margin-right: 10rpx;
  1185. }
  1186. .four1 {
  1187. margin-right: 30rpx;
  1188. margin-left: 30rpx;
  1189. }
  1190. .four {
  1191. margin-right: 60rpx;
  1192. }
  1193. .whiteItem {
  1194. height: 60px;
  1195. background: white;
  1196. border-radius: 4px;
  1197. font-size: 30rpx;
  1198. display: flex;
  1199. justify-content: space-around;
  1200. align-items: center;
  1201. color: #444546;
  1202. }
  1203. .grayItem {
  1204. height: 60px;
  1205. background: #F6F7FB;
  1206. border-radius: 4px;
  1207. font-size: 30rpx;
  1208. display: flex;
  1209. align-items: center;
  1210. color: #444546;
  1211. }
  1212. .text1 {
  1213. margin-left: 20rpx;
  1214. font-size: 30rpx;
  1215. color: #444546;
  1216. }
  1217. .auto {
  1218. width: 60px;
  1219. height: 33px;
  1220. background: #007AFF;
  1221. border-radius: 4px;
  1222. font-size: 30rpx;
  1223. color: white;
  1224. display: flex;
  1225. align-items: center;
  1226. justify-content: center;
  1227. }
  1228. .three {
  1229. margin-right: 10rpx;
  1230. margin-left: 0rpx;
  1231. display: flex;
  1232. align-items: center;
  1233. justify-content: center;
  1234. font-size: 30rpx;
  1235. color: #007AFF;
  1236. width: 60px;
  1237. height: 33px;
  1238. border-radius: 4px;
  1239. border: 1px solid #007AFF;
  1240. }
  1241. .stop {
  1242. margin-right: 75rpx;
  1243. margin-left: 0rpx;
  1244. display: flex;
  1245. align-items: center;
  1246. justify-content: center;
  1247. font-size: 30rpx;
  1248. color: #007AFF;
  1249. width: 60px;
  1250. height: 33px;
  1251. border-radius: 4px;
  1252. border: 1px solid #007AFF;
  1253. }
  1254. .head {
  1255. height: 60px;
  1256. background: #EAF1FE;
  1257. border-radius: 4px;
  1258. font-size: 30rpx;
  1259. display: flex;
  1260. justify-content: space-around;
  1261. align-items: center;
  1262. color: #444546;
  1263. }
  1264. .xiabu {
  1265. margin-left: 24rpx;
  1266. margin-top: 24rpx;
  1267. background-color: white;
  1268. width: 702rpx;
  1269. height: 1520rpx;
  1270. border-radius: 10rpx;
  1271. }
  1272. .buttonItem {
  1273. display: flex;
  1274. flex-direction: row;
  1275. margin-top: 5rpx;
  1276. justify-content: center;
  1277. }
  1278. .item {
  1279. margin-left: 20rpx;
  1280. }
  1281. .setmenu {
  1282. display: flex;
  1283. flex-wrap: wrap;
  1284. }
  1285. .setItem {
  1286. margin-left: 20rpx;
  1287. }
  1288. .text {
  1289. margin-top: 40rpx;
  1290. margin-bottom: 16rpx;
  1291. color: #444546;
  1292. font-size: 26rpx;
  1293. }
  1294. .input {
  1295. width: 320rpx;
  1296. height: 98rpx;
  1297. background-color: #eaeaea;
  1298. display: flex;
  1299. flex-direction: row;
  1300. align-items: center;
  1301. border-radius: 5rpx;
  1302. border: 1px solid #eaeaea;
  1303. }
  1304. .danwei {
  1305. width: 78rpx;
  1306. height: 98rpx;
  1307. background-color: white;
  1308. display: flex;
  1309. align-items: center;
  1310. }
  1311. .white {
  1312. width: 702rpx;
  1313. height: 711rpx;
  1314. background-color: white;
  1315. margin-left: 24rpx;
  1316. margin-top: 26rpx;
  1317. }
  1318. .title {
  1319. display: flex;
  1320. flex-direction: column;
  1321. align-items: center;
  1322. }
  1323. .tiao {
  1324. width: 60px;
  1325. height: 3px;
  1326. margin-top: 20rpx;
  1327. background: #007AFF;
  1328. }
  1329. .param {
  1330. font-size: 38rpx;
  1331. font-weight: 550;
  1332. margin-top: 40rpx;
  1333. }
  1334. .active_button {
  1335. background-color: skyblue;
  1336. }
  1337. </style>