parameterSetting.vue 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380
  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">
  14. <input style="margin-left: 20rpx;" placeholder="请输入" />
  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">
  25. <input style="margin-left: 20rpx;" placeholder="请输入" />
  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">
  34. <input style="margin-left: 20rpx;" placeholder="请输入" />
  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">CK-1</button>
  45. </view>
  46. <view class="item">
  47. <view class="text">
  48. <text>控制模式复位</text>
  49. </view>
  50. <button class="button">复位</button>
  51. </view>
  52. </view>
  53. </view>
  54. <view class="xiabu">
  55. <view class="title">
  56. <text class="param">运行状态</text>
  57. <view class="tiao"></view>
  58. </view>
  59. <view class="head">
  60. <text>设备名称</text>
  61. <text style="margin-left: 30rpx">控制模式</text>
  62. <text>手动命令</text>
  63. <text>实时反馈</text>
  64. </view>
  65. <view class="whiteItem">
  66. <text class="text1">空调送风机</text>
  67. <button class="auto">自动</button>
  68. <button class="stop">停止</button>
  69. <text class="four">运行</text>
  70. </view>
  71. <view class="grayItem">
  72. <text class="text1">空调送风机</text>
  73. <button class="auto">自动</button>
  74. <button class="stop">停止</button>
  75. <text class="four">运行</text>
  76. </view>
  77. <view class="whiteItem">
  78. <text class="text1">一级电加热</text>
  79. <button class="auto">自动</button>
  80. <button class="stop">停止</button>
  81. <text class="four">开启</text>
  82. </view>
  83. <view class="grayItem">
  84. <text class="text1">二级电加热</text>
  85. <button class="auto">自动</button>
  86. <button class="stop">停止</button>
  87. <text class="four">开启</text>
  88. </view>
  89. <view class="whiteItem">
  90. <text class="text1">三级电加热</text>
  91. <button class="auto">自动</button>
  92. <button class="stop">停止</button>
  93. <text class="four">运行</text>
  94. </view>
  95. <view class="grayItem">
  96. <text class="text1">空调送风阀</text>
  97. <button class="auto">自动</button>
  98. <button class="stop">停止</button>
  99. <text class="four">开启</text>
  100. </view>
  101. <view class="whiteItem">
  102. <text class="text1">空调排水阀</text>
  103. <button class="auto">自动</button>
  104. <button class="stop">停止</button>
  105. <text class="four">开启</text>
  106. </view>
  107. <view class="grayItem">
  108. <text class="text1">空调冷水阀</text>
  109. <button class="auto">自动</button>
  110. <view style="display: flex;flex-direction: row;align-items: center;">
  111. <button class="three">100</button>%
  112. </view>
  113. <view class="four1">
  114. <text>76%</text>
  115. </view>
  116. </view>
  117. <view class="whiteItem">
  118. <text class="text1">空调热水阀</text>
  119. <button class="auto">自动</button>
  120. <view style="display: flex;flex-direction: row;align-items: center;">
  121. <button class="three">0</button>%
  122. </view>
  123. <view class="four1">
  124. <text>87%</text>
  125. </view>
  126. </view>
  127. <view class="grayItem">
  128. <text class="text1">空调加湿器</text>
  129. <button class="auto">自动</button>
  130. <view style="display: flex;flex-direction: row;align-items: center;">
  131. <button class="three">0</button>%
  132. </view>
  133. <view class="four1">
  134. <text>98%</text>
  135. </view>
  136. </view>
  137. </view>
  138. <view class="anniu">
  139. <image class="anniu" src="../../static/设备菜单/前往列表@2x.png" @tap="back"></image>
  140. </view>
  141. </view>
  142. </template>
  143. <script>
  144. export default {
  145. data() {
  146. return {
  147. deviceParams: [],
  148. }
  149. },
  150. onLoad(e) {
  151. console.log(e);
  152. this.list(e)
  153. },
  154. methods: {
  155. back() {
  156. uni.navigateTo({
  157. url: '/pages/device/deviceInfo/deviceInfo'
  158. })
  159. },
  160. async list(e) {
  161. let vm = this;
  162. let url = uni.$api.deviceParam.list;
  163. // let data = {
  164. // code: this.formData.code,
  165. // };
  166. let res = await uni.$http.get(url);
  167. console.log('form发生了submit事件')
  168. console.log(res);
  169. this.deviceParams = res.data.data.deviceParams;
  170. console.log(res.data.data.deviceParams);
  171. },
  172. }
  173. }
  174. </script>
  175. <style>
  176. .anniu {
  177. width: 116rpx;
  178. height: 116rpx;
  179. float: right;
  180. margin-right: 10rpx;
  181. }
  182. .four1 {
  183. margin-right: 60rpx;
  184. margin-left: 40rpx;
  185. }
  186. .four {
  187. margin-right: 60rpx;
  188. }
  189. .whiteItem {
  190. height: 60px;
  191. background: white;
  192. border-radius: 4px;
  193. font-size: 30rpx;
  194. display: flex;
  195. justify-content: space-around;
  196. align-items: center;
  197. color: #444546;
  198. }
  199. .grayItem {
  200. height: 60px;
  201. background: #F6F7FB;
  202. border-radius: 4px;
  203. font-size: 30rpx;
  204. display: flex;
  205. align-items: center;
  206. color: #444546;
  207. }
  208. .text1 {
  209. margin-left: 20rpx;
  210. font-size: 30rpx;
  211. color: #444546;
  212. }
  213. .auto {
  214. width: 60px;
  215. height: 33px;
  216. background: #007AFF;
  217. border-radius: 4px;
  218. font-size: 30rpx;
  219. color: white;
  220. display: flex;
  221. align-items: center;
  222. justify-content: center;
  223. }
  224. .three {
  225. margin-right: 10rpx;
  226. margin-left: 0rpx;
  227. display: flex;
  228. align-items: center;
  229. justify-content: center;
  230. font-size: 30rpx;
  231. color: #007AFF;
  232. width: 60px;
  233. height: 33px;
  234. border-radius: 4px;
  235. border: 1px solid #007AFF;
  236. }
  237. .stop {
  238. margin-right: 75rpx;
  239. margin-left: 0rpx;
  240. display: flex;
  241. align-items: center;
  242. justify-content: center;
  243. font-size: 30rpx;
  244. color: #007AFF;
  245. width: 60px;
  246. height: 33px;
  247. border-radius: 4px;
  248. border: 1px solid #007AFF;
  249. }
  250. .head {
  251. height: 60px;
  252. background: #EAF1FE;
  253. border-radius: 4px;
  254. font-size: 30rpx;
  255. display: flex;
  256. justify-content: space-around;
  257. align-items: center;
  258. color: #444546;
  259. }
  260. .xiabu {
  261. margin-left: 24rpx;
  262. margin-top: 24rpx;
  263. background-color: white;
  264. width: 702rpx;
  265. height: 1420rpx;
  266. border-radius: 10rpx;
  267. }
  268. .buttonItem {
  269. display: flex;
  270. flex-direction: row;
  271. margin-top: 5rpx;
  272. }
  273. .button {
  274. width: 320rpx;
  275. height: 98rpx;
  276. margin-top: 20rpx;
  277. background-color: #007AFF;
  278. color: white;
  279. font-size: unset;
  280. display: flex;
  281. align-items: center;
  282. justify-content: center;
  283. }
  284. .item {
  285. margin-left: 20rpx;
  286. }
  287. .setmenu {
  288. display: flex;
  289. flex-wrap: wrap;
  290. }
  291. .setItem {
  292. margin-left: 20rpx;
  293. }
  294. .text {
  295. margin-top: 40rpx;
  296. margin-bottom: 16rpx;
  297. color: #444546;
  298. font-size: 26rpx;
  299. }
  300. .input {
  301. width: 320rpx;
  302. height: 98rpx;
  303. background-color: #eaeaea;
  304. display: flex;
  305. flex-direction: row;
  306. align-items: center;
  307. border-radius: 5rpx;
  308. border: 1px solid #eaeaea;
  309. }
  310. .danwei {
  311. width: 78rpx;
  312. height: 98rpx;
  313. background-color: white;
  314. display: flex;
  315. align-items: center;
  316. }
  317. .white {
  318. width: 702rpx;
  319. height: 711rpx;
  320. background-color: white;
  321. margin-left: 24rpx;
  322. margin-top: 26rpx;
  323. }
  324. .title {
  325. display: flex;
  326. flex-direction: column;
  327. align-items: center;
  328. }
  329. .tiao {
  330. width: 60px;
  331. height: 3px;
  332. margin-top: 20rpx;
  333. background: #007AFF;
  334. }
  335. .param {
  336. font-size: 38rpx;
  337. font-weight: 550;
  338. margin-top: 40rpx;
  339. }
  340. </style>