dataCurve.vue 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710
  1. <template>
  2. <view>
  3. <view class="all">
  4. <view class="chart">
  5. <view class="charts-box">
  6. <best-gauge :config="gaugeOption"></best-gauge>
  7. </view>
  8. <view class="charts-box">
  9. <best-gauge :config="gaugeOption2"></best-gauge>
  10. </view>
  11. </view>
  12. <view class="white">
  13. <view class="title1">
  14. <text class="param">空调排风温度变化</text>
  15. <view class="tiao"></view>
  16. </view>
  17. <view>
  18. <canvas canvas-id="canvasLineA" id="canvasLineA" class="charts" @touchmove="moveLineA"
  19. @touchend="moveLineA"></canvas>
  20. <!-- 画布,图表的HTML部分-->
  21. </view>
  22. </view>
  23. <view class="white1">
  24. <view class="title1">
  25. <text class="param">空调排风湿度变化</text>
  26. <view class="tiao"></view>
  27. </view>
  28. <view>
  29. <canvas canvas-id="canvasLineA11" id="canvasLineA11" class="charts" @touchmove="moveLineA11"
  30. @touchend="moveLineA11"></canvas>
  31. <!-- 画布,图表的HTML部分-->
  32. </view>
  33. </view>
  34. <view class="anniu">
  35. <image class="anniu" src="../../static/设备菜单/前往列表@2x.png" @tap="back"></image>
  36. </view>
  37. </view>
  38. </view>
  39. </template>
  40. <script>
  41. //仪表盘组件
  42. import bestGauge from '@/components/best-gauge/best-gauge.vue'
  43. //引入u-charts组件
  44. import uCharts from '@/components/u-charts/u-charts.js'
  45. var _self; //用于全局使用this
  46. var _self11; //用于全局使用this
  47. var canvaLineA = null; //uCharts实例
  48. var canvaLineA11 = null; //uCharts实例
  49. export default {
  50. components: {
  51. bestGauge,
  52. },
  53. data() {
  54. let _width = uni.upx2px(350);
  55. return {
  56. timeData: {
  57. time1: '',
  58. time2: '',
  59. time3: '',
  60. time4: '',
  61. time5: ''
  62. },
  63. WDdata: {
  64. WD1: '',
  65. WD2: '',
  66. WD3: '',
  67. WD4: '',
  68. WD5: '',
  69. WD6: '',
  70. WD7: '',
  71. WD8: '',
  72. WD9: '',
  73. WD10: '',
  74. WD11: '',
  75. WD12: '',
  76. WD13: '',
  77. WD14: '',
  78. WD15: '',
  79. WD16: '',
  80. WD17: '',
  81. WD18: '',
  82. WD19: '',
  83. WD20: '',
  84. WD21: '',
  85. WD22: '',
  86. WD23: '',
  87. WD24: '',
  88. },
  89. SDdata: {
  90. SD1: '',
  91. SD2: '',
  92. SD3: '',
  93. SD4: '',
  94. SD5: '',
  95. SD6: '',
  96. SD7: '',
  97. SD8: '',
  98. SD9: '',
  99. SD10: '',
  100. SD11: '',
  101. SD12: '',
  102. SD13: '',
  103. SD14: '',
  104. SD15: '',
  105. SD16: '',
  106. SD17: '',
  107. SD18: '',
  108. SD19: '',
  109. SD20: '',
  110. SD21: '',
  111. SD22: '',
  112. SD23: '',
  113. SD24: '',
  114. },
  115. WDSDdata: {
  116. WDSD1: '',
  117. WDSD2: '',
  118. WDSD3: '',
  119. WDSD4: '',
  120. WDSD5: '',
  121. WDSD6: '',
  122. WDSD7: '',
  123. WDSD8: '',
  124. WDSD9: '',
  125. WDSD10: '',
  126. WDSD11: '',
  127. WDSD12: '',
  128. WDSD13: '',
  129. WDSD14: '',
  130. WDSD15: '',
  131. WDSD16: '',
  132. WDSD17: '',
  133. WDSD18: '',
  134. WDSD19: '',
  135. WDSD20: '',
  136. WDSD21: '',
  137. WDSD22: '',
  138. WDSD23: '',
  139. WDSD24: '',
  140. },
  141. SDSDdata: {
  142. SDSD1: '',
  143. SDSD2: '',
  144. SDSD3: '',
  145. SDSD4: '',
  146. SDSD5: '',
  147. SDSD6: '',
  148. SDSD7: '',
  149. SDSD8: '',
  150. SDSD9: '',
  151. SDSD10: '',
  152. SDSD11: '',
  153. SDSD12: '',
  154. SDSD13: '',
  155. SDSD14: '',
  156. SDSD15: '',
  157. SDSD16: '',
  158. SDSD17: '',
  159. SDSD18: '',
  160. SDSD19: '',
  161. SDSD20: '',
  162. SDSD21: '',
  163. SDSD22: '',
  164. SDSD23: '',
  165. SDSD24: '',
  166. },
  167. formData: {
  168. WD_1: '',
  169. SD_1: '',
  170. QX: '2', //星期
  171. WD_SJ: '12',
  172. SD_SJ: '23',
  173. WD_SD: '34',
  174. SD_SD: '45',
  175. },
  176. cWidth: '',
  177. cHeight: '', //画布的宽高
  178. //仪表盘部分
  179. gaugeOption: { //定义参数
  180. id: 'gaugeId0',
  181. value: '',
  182. axisTickLength: 2 //该属性与axisTick互斥,存在axisTickLength并大于0,axisTick就无效
  183. },
  184. gaugeOption2: { //定义参数
  185. name: 'CK01排风湿度显示',
  186. id: 'gaugeId1',
  187. value: '',
  188. unit: '%',
  189. axisTickLength: 2 //该属性与axisTick互斥,存在axisTickLength并大于0,axisTick就无效
  190. },
  191. //折线图部分
  192. //温度
  193. data: { //数据
  194. categories: ['3时', '6时', '9时', '12时', '15时', '18时', '21时', '24时'],
  195. series: [{
  196. name: "温度实际值",
  197. data: [1, 1, 1, 1, 1, 1, 1, 1],
  198. }, {
  199. name: "温度设定值",
  200. data: [10, 25, 23, 33, 23, 23, 23, 23],
  201. color: "#336633"
  202. }]
  203. },
  204. //湿度
  205. data11: { //数据
  206. categories11: ['3时', '6时', '9时', '12时', '15时', '18时', '21时', '24时'],
  207. series11: [{
  208. name: "湿度实际值",
  209. data: [40, 30, 36, 44, 38, 45, 45, 45],
  210. }, {
  211. name: "湿度设定值",
  212. data: [10, 25, 23, 33, 23, 45, 45, 45],
  213. color: "red"
  214. }]
  215. },
  216. }
  217. },
  218. onLoad() {
  219. this.getWD1()
  220. this.getWD2()
  221. this.getWD3()
  222. this.getWD4()
  223. this.getWD5()
  224. this.getWD6()
  225. this.getWD7()
  226. this.getWD8()
  227. this.getWD9()
  228. this.getWD10()
  229. this.getWD11()
  230. this.getWD12()
  231. this.getWD13()
  232. this.getWD14()
  233. this.getWD15()
  234. this.getWD16()
  235. this.getWD17()
  236. this.getWD18()
  237. this.getWD19()
  238. this.getWD20()
  239. this.getWD21()
  240. this.getWD22()
  241. this.getWD23()
  242. this.getWD24()
  243. this.getSD1()
  244. this.getSD2()
  245. this.getSD3()
  246. this.getSD4()
  247. this.getSD5()
  248. this.getSD6()
  249. this.getSD7()
  250. this.getSD8()
  251. this.getSD9()
  252. this.getSD10()
  253. this.getSD11()
  254. this.getSD12()
  255. this.getSD13()
  256. this.getSD14()
  257. this.getSD15()
  258. this.getSD16()
  259. this.getSD17()
  260. this.getSD18()
  261. this.getSD19()
  262. this.getSD20()
  263. this.getSD21()
  264. this.getSD22()
  265. this.getSD23()
  266. this.getSD24()
  267. this.getWDSD1()
  268. this.getWDSD2()
  269. this.getWDSD3()
  270. this.getWDSD4()
  271. this.getWDSD5()
  272. this.getWDSD6()
  273. this.getWDSD7()
  274. this.getWDSD8()
  275. this.getWDSD9()
  276. this.getWDSD10()
  277. this.getWDSD11()
  278. this.getWDSD12()
  279. this.getWDSD13()
  280. this.getWDSD14()
  281. this.getWDSD15()
  282. this.getWDSD16()
  283. this.getWDSD17()
  284. this.getWDSD18()
  285. this.getWDSD19()
  286. this.getWDSD20()
  287. this.getWDSD21()
  288. this.getWDSD22()
  289. this.getWDSD23()
  290. this.getWDSD24()
  291. this.getSDSD1()
  292. this.getSDSD2()
  293. this.getSDSD3()
  294. this.getSDSD4()
  295. this.getSDSD5()
  296. this.getSDSD6()
  297. this.getSDSD7()
  298. this.getSDSD8()
  299. this.getSDSD9()
  300. this.getSDSD10()
  301. this.getSDSD11()
  302. this.getSDSD12()
  303. this.getSDSD13()
  304. this.getSDSD14()
  305. this.getSDSD15()
  306. this.getSDSD16()
  307. this.getSDSD17()
  308. this.getSDSD18()
  309. this.getSDSD19()
  310. this.getSDSD20()
  311. this.getSDSD21()
  312. this.getSDSD22()
  313. this.getSDSD23()
  314. this.getSDSD24()
  315. this.getWD_SJ()
  316. this.getSD_SJ()
  317. this.getWD_1()
  318. this.getSD_1()
  319. this.cWidth = uni.upx2px(702);
  320. this.cHeight = uni.upx2px(500); //设置宽高
  321. _self = this //声明this
  322. _self.showLineA("canvasLineA", _self.data); //触发执行函数
  323. _self11 = this //声明this
  324. _self11.showLineA11("canvasLineA11", _self11.data11); //触发执行函数
  325. },
  326. methods: {
  327. async getWD_SJ(e) {
  328. let vm = this;
  329. let url = uni.$api.deviceParam.detail;
  330. let data = {
  331. id: "292",
  332. };
  333. let res = await uni.$http.get(url, data);
  334. this.formData.WD_SJ = res.data.data.deviceParam.value;
  335. console.log(this.formData.WD_SJ);
  336. this.data.series[0].data[0] = this.formData.WD_SJ
  337. console.log("实际温度:" + this.data.series[0].data[0]);
  338. },
  339. async getSD_SJ(e) {
  340. let vm = this;
  341. let url = uni.$api.deviceParam.detail;
  342. let data = {
  343. id: "280",
  344. };
  345. let res = await uni.$http.get(url, data);
  346. this.formData.SD_SJ = res.data.data.deviceParam.value;
  347. console.log(this.formData.SD_SJ);
  348. this.data11.series11[0].data[0] = this.formData.SD_SJ
  349. console.log("实际湿度:" + this.data11.series11[0].data[0]);
  350. },
  351. async getWD_SD(e) {
  352. let vm = this;
  353. let url = uni.$api.deviceParam.detail;
  354. let data = {
  355. id: "296",
  356. };
  357. let res = await uni.$http.get(url, data);
  358. this.formData.WD_SD = res.data.data.deviceParam.value;
  359. console.log(this.formData.WD_SD);
  360. this.data.series[1].data[0] = this.formData.WD_SD
  361. console.log("设定温度:" + this.data.series[1].data[0]);
  362. },
  363. async getSD_SD(e) {
  364. let vm = this;
  365. var XQ = this.formData.QX;
  366. let url = uni.$api.deviceParam.detail;
  367. let data = {
  368. id: "231",
  369. };
  370. let res = await uni.$http.get(url, data);
  371. this.formData.SD_SD = res.data.data.deviceParam.value;
  372. console.log(this.formData.SD_SD);
  373. if (XQ == 1) {
  374. this.data11.series11[1].data[0] = this.formData.SD_SD
  375. console.log("周一设定湿度:" + this.data11.series11[1].data[0]);
  376. }
  377. if (XQ == 2) {
  378. this.data11.series11[1].data[1] = this.formData.SD_SD
  379. console.log("周二设定湿度:" + this.data11.series11[1].data[1]);
  380. }
  381. },
  382. back() {
  383. uni.navigateTo({
  384. url: '/pages/device/deviceInfo/deviceInfo'
  385. })
  386. },
  387. showLineA(canvasId, chartData) {
  388. canvaLineA = new uCharts({ //这些配置项的意思看这:https://www.kancloud.cn/qiun/ucharts/1172125
  389. $this: _self, //指针
  390. canvasId: canvasId, //id
  391. type: 'line', //类型
  392. colors: ['#F45E41'], //每一条的颜色
  393. fontSize: 14, //字体大小
  394. padding: [15, 15, 0, 15], //空白区域值
  395. legend: { //图例相关配置
  396. show: true,
  397. padding: 5,
  398. lineHeight: 11,
  399. margin: 0,
  400. },
  401. dataLabel: false, //显示数据标签内容值
  402. categories: chartData.categories, //数据类别
  403. series: chartData.series, //数据列表
  404. xAxis: { //X轴配置
  405. gridColor: '#CCCCCC', //X轴网格颜色
  406. gridType: 'dash', //X轴网格线型 'solid'为实线、'dash'为虚线`
  407. dashLength: 8, //X轴网格为虚线时,单段虚线长度
  408. },
  409. yAxis: { //y轴配置
  410. gridType: 'dash',
  411. gridColor: '#CCCCCC',
  412. dashLength: 8,
  413. min: 0, //取0为最小刻度
  414. max: 50, //取100为最大刻度
  415. },
  416. width: _self.cWidth, //canvas宽度,单位为px
  417. height: _self.cHeight, //canvas高度,单位为px
  418. extra: { //扩展配置
  419. line: {
  420. type: 'curve' //曲线 curve曲线,straight直线
  421. }
  422. }
  423. });
  424. },
  425. moveLineA(e) {
  426. canvaLineA.showToolTip(e, { //详情框
  427. format: function(item, category) {
  428. return category + ' ' + item.name + ':' + item.data + '℃'
  429. }
  430. });
  431. },
  432. //湿度
  433. showLineA11(canvasId, chartData) {
  434. canvaLineA11 = new uCharts({ //这些配置项的意思看这:https://www.kancloud.cn/qiun/ucharts/1172125
  435. $this: _self11, //指针
  436. canvasId: canvasId, //id
  437. type: 'line', //类型
  438. colors: ['#007AFF'], //每一条的颜色
  439. fontSize: 14, //字体大小
  440. padding: [15, 15, 0, 15], //空白区域值
  441. legend: { //图例相关配置
  442. show: true,
  443. padding: 5,
  444. lineHeight: 11,
  445. margin: 0,
  446. },
  447. dataLabel: false, //显示数据标签内容值
  448. categories: chartData.categories11, //数据类别
  449. series: chartData.series11, //数据列表
  450. xAxis: { //X轴配置
  451. gridColor: '#CCCCCC', //X轴网格颜色
  452. gridType: 'dash', //X轴网格线型 'solid'为实线、'dash'为虚线`
  453. dashLength: 8, //X轴网格为虚线时,单段虚线长度
  454. },
  455. yAxis: { //y轴配置
  456. gridType: 'dash',
  457. gridColor: '#CCCCCC',
  458. dashLength: 8,
  459. min: 0, //取0为最小刻度
  460. max: 80, //取100为最大刻度
  461. },
  462. width: _self11.cWidth, //canvas宽度,单位为px
  463. height: _self11.cHeight, //canvas高度,单位为px
  464. extra: { //扩展配置
  465. line: {
  466. type: 'curve' //曲线 curve曲线,straight直线
  467. }
  468. }
  469. });
  470. },
  471. moveLineA11(e) {
  472. canvaLineA11.showToolTip(e, { //详情框
  473. format: function(item, category) {
  474. return category + ' ' + item.name + ':' + item.data + '%'
  475. }
  476. });
  477. },
  478. async getWD_1(e) {
  479. let vm = this;
  480. let url = uni.$api.deviceParam.detail;
  481. let data = {
  482. id: "207",
  483. };
  484. let res = await uni.$http.get(url, data);
  485. this.gaugeOption.value = res.data.data.deviceParam.value;
  486. },
  487. async getSD_1(e) {
  488. let vm = this;
  489. let url = uni.$api.deviceParam.detail;
  490. let data = {
  491. id: "293",
  492. };
  493. let res = await uni.$http.get(url, data);
  494. this.gaugeOption2.value = res.data.data.deviceParam.value;
  495. },
  496. //获取24个小时的温度
  497. async getWD1(e) {
  498. let vm = this;
  499. let url = uni.$api.deviceParam.getTimeData;
  500. let data = {
  501. id: "311",
  502. };
  503. let res = await uni.$http.get(url, data);
  504. this.WDdata.WD1 = res.data.data.deviceParam.value;
  505. },
  506. async getWD2(e) {
  507. let vm = this;
  508. let url = uni.$api.deviceParam.getTimeData;
  509. let data = {
  510. id: "312",
  511. };
  512. let res = await uni.$http.get(url, data);
  513. this.WDdata.WD2 = res.data.data.deviceParam.value;
  514. },
  515. async getWD3(e) {
  516. let vm = this;
  517. let url = uni.$api.deviceParam.getTimeData;
  518. let data = {
  519. id: "313",
  520. };
  521. let res = await uni.$http.get(url, data);
  522. this.WDdata.WD3 = res.data.data.deviceParam.value;
  523. this.data.series[0].data[0] = res.data.data.deviceParam.value;
  524. },
  525. async getWD4(e) {
  526. let vm = this;
  527. let url = uni.$api.deviceParam.getTimeData;
  528. let data = {
  529. id: "314",
  530. };
  531. let res = await uni.$http.get(url, data);
  532. this.WDdata.WD4 = res.data.data.deviceParam.value;
  533. },
  534. async getWD5(e) {
  535. let vm = this;
  536. let url = uni.$api.deviceParam.getTimeData;
  537. let data = {
  538. id: "315",
  539. };
  540. let res = await uni.$http.get(url, data);
  541. this.WDdata.WD5 = res.data.data.deviceParam.value;
  542. },
  543. async getWD6(e) {
  544. let vm = this;
  545. let url = uni.$api.deviceParam.getTimeData;
  546. let data = {
  547. id: "316",
  548. };
  549. let res = await uni.$http.get(url, data);
  550. this.data.series[0].data[1] = res.data.data.deviceParam.value;
  551. this.WDdata.WD6 = res.data.data.deviceParam.value;
  552. },
  553. async getWD7(e) {
  554. let vm = this;
  555. let url = uni.$api.deviceParam.getTimeData;
  556. let data = {
  557. id: "317",
  558. };
  559. let res = await uni.$http.get(url, data);
  560. this.WDdata.WD7 = res.data.data.deviceParam.value;
  561. },
  562. async getWD8(e) {
  563. let vm = this;
  564. let url = uni.$api.deviceParam.getTimeData;
  565. let data = {
  566. id: "318",
  567. };
  568. let res = await uni.$http.get(url, data);
  569. this.WDdata.WD8 = res.data.data.deviceParam.value;
  570. },
  571. async getWD9(e) {
  572. let vm = this;
  573. let url = uni.$api.deviceParam.getTimeData;
  574. let data = {
  575. id: "319",
  576. };
  577. let res = await uni.$http.get(url, data);
  578. this.data.series[0].data[2] = res.data.data.deviceParam.value;
  579. this.WDdata.WD9 = res.data.data.deviceParam.value;
  580. },
  581. async getWD10(e) {
  582. let vm = this;
  583. let url = uni.$api.deviceParam.getTimeData;
  584. let data = {
  585. id: "320",
  586. };
  587. let res = await uni.$http.get(url, data);
  588. this.WDdata.WD10 = res.data.data.deviceParam.value;
  589. },
  590. async getWD11(e) {
  591. let vm = this;
  592. let url = uni.$api.deviceParam.getTimeData;
  593. let data = {
  594. id: "321",
  595. };
  596. let res = await uni.$http.get(url, data);
  597. this.WDdata.WD11 = res.data.data.deviceParam.value;
  598. },
  599. async getWD12(e) {
  600. let vm = this;
  601. let url = uni.$api.deviceParam.getTimeData;
  602. let data = {
  603. id: "322",
  604. };
  605. let res = await uni.$http.get(url, data);
  606. this.data.series[0].data[3] = res.data.data.deviceParam.value;
  607. this.WDdata.WD12 = res.data.data.deviceParam.value;
  608. },
  609. async getWD13(e) {
  610. let vm = this;
  611. let url = uni.$api.deviceParam.getTimeData;
  612. let data = {
  613. id: "323",
  614. };
  615. let res = await uni.$http.get(url, data);
  616. this.WDdata.WD13 = res.data.data.deviceParam.value;
  617. },
  618. async getWD14(e) {
  619. let vm = this;
  620. let url = uni.$api.deviceParam.getTimeData;
  621. let data = {
  622. id: "324",
  623. };
  624. let res = await uni.$http.get(url, data);
  625. this.WDdata.WD14 = res.data.data.deviceParam.value;
  626. },
  627. async getWD15(e) {
  628. let vm = this;
  629. let url = uni.$api.deviceParam.getTimeData;
  630. let data = {
  631. id: "325",
  632. };
  633. let res = await uni.$http.get(url, data);
  634. this.data.series[0].data[4] = res.data.data.deviceParam.value;
  635. this.WDdata.WD15 = res.data.data.deviceParam.value;
  636. },
  637. async getWD16(e) {
  638. let vm = this;
  639. let url = uni.$api.deviceParam.getTimeData;
  640. let data = {
  641. id: "326",
  642. };
  643. let res = await uni.$http.get(url, data);
  644. this.WDdata.WD16 = res.data.data.deviceParam.value;
  645. },
  646. async getWD17(e) {
  647. let vm = this;
  648. let url = uni.$api.deviceParam.getTimeData;
  649. let data = {
  650. id: "327",
  651. };
  652. let res = await uni.$http.get(url, data);
  653. this.WDdata.WD17 = res.data.data.deviceParam.value;
  654. },
  655. async getWD18(e) {
  656. let vm = this;
  657. let url = uni.$api.deviceParam.getTimeData;
  658. let data = {
  659. id: "328",
  660. };
  661. let res = await uni.$http.get(url, data);
  662. this.data.series[0].data[5] = res.data.data.deviceParam.value;
  663. this.WDdata.WD18 = res.data.data.deviceParam.value;
  664. },
  665. async getWD19(e) {
  666. let vm = this;
  667. let url = uni.$api.deviceParam.getTimeData;
  668. let data = {
  669. id: "329",
  670. };
  671. let res = await uni.$http.get(url, data);
  672. this.WDdata.WD19 = res.data.data.deviceParam.value;
  673. },
  674. async getWD20(e) {
  675. let vm = this;
  676. let url = uni.$api.deviceParam.getTimeData;
  677. let data = {
  678. id: "330",
  679. };
  680. let res = await uni.$http.get(url, data);
  681. this.WDdata.WD20 = res.data.data.deviceParam.value;
  682. },
  683. async getWD21(e) {
  684. let vm = this;
  685. let url = uni.$api.deviceParam.getTimeData;
  686. let data = {
  687. id: "331",
  688. };
  689. let res = await uni.$http.get(url, data);
  690. this.data.series[0].data[6] = res.data.data.deviceParam.value;
  691. this.WDdata.WD21 = res.data.data.deviceParam.value;
  692. },
  693. async getWD22(e) {
  694. let vm = this;
  695. let url = uni.$api.deviceParam.getTimeData;
  696. let data = {
  697. id: "332",
  698. };
  699. let res = await uni.$http.get(url, data);
  700. this.WDdata.WD22 = res.data.data.deviceParam.value;
  701. },
  702. async getWD23(e) {
  703. let vm = this;
  704. let url = uni.$api.deviceParam.getTimeData;
  705. let data = {
  706. id: "333",
  707. };
  708. let res = await uni.$http.get(url, data);
  709. this.WDdata.WD23 = res.data.data.deviceParam.value;
  710. },
  711. async getWD24(e) {
  712. let vm = this;
  713. let url = uni.$api.deviceParam.getTimeData;
  714. let data = {
  715. id: "334",
  716. };
  717. let res = await uni.$http.get(url, data);
  718. this.data.series[0].data[7] = res.data.data.deviceParam.value;
  719. this.WDdata.WD24 = res.data.data.deviceParam.value;
  720. },
  721. //获取24个小时的湿度
  722. async getSD1(e) {
  723. let vm = this;
  724. let url = uni.$api.deviceParam.getTimeData;
  725. let data = {
  726. id: "335",
  727. };
  728. let res = await uni.$http.get(url, data);
  729. this.SDdata.SD1 = res.data.data.deviceParam.value;
  730. },
  731. async getSD2(e) {
  732. let vm = this;
  733. let url = uni.$api.deviceParam.getTimeData;
  734. let data = {
  735. id: "336",
  736. };
  737. let res = await uni.$http.get(url, data);
  738. this.SDdata.SD2 = res.data.data.deviceParam.value;
  739. },
  740. async getSD3(e) {
  741. let vm = this;
  742. let url = uni.$api.deviceParam.getTimeData;
  743. let data = {
  744. id: "337",
  745. };
  746. let res = await uni.$http.get(url, data);
  747. this.data11.series11[0].data[0] = res.data.data.deviceParam.value;
  748. this.SDdata.SD3 = res.data.data.deviceParam.value;
  749. },
  750. async getSD4(e) {
  751. let vm = this;
  752. let url = uni.$api.deviceParam.getTimeData;
  753. let data = {
  754. id: "338",
  755. };
  756. let res = await uni.$http.get(url, data);
  757. this.SDdata.SD4 = res.data.data.deviceParam.value;
  758. },
  759. async getSD5(e) {
  760. let vm = this;
  761. let url = uni.$api.deviceParam.getTimeData;
  762. let data = {
  763. id: "339",
  764. };
  765. let res = await uni.$http.get(url, data);
  766. this.SDdata.SD5 = res.data.data.deviceParam.value;
  767. },
  768. async getSD6(e) {
  769. let vm = this;
  770. let url = uni.$api.deviceParam.getTimeData;
  771. let data = {
  772. id: "340",
  773. };
  774. let res = await uni.$http.get(url, data);
  775. this.data11.series11[0].data[1] = res.data.data.deviceParam.value;
  776. this.SDdata.SD6 = res.data.data.deviceParam.value;
  777. },
  778. async getSD7(e) {
  779. let vm = this;
  780. let url = uni.$api.deviceParam.getTimeData;
  781. let data = {
  782. id: "341",
  783. };
  784. let res = await uni.$http.get(url, data);
  785. this.SDdata.SD7 = res.data.data.deviceParam.value;
  786. },
  787. async getSD8(e) {
  788. let vm = this;
  789. let url = uni.$api.deviceParam.getTimeData;
  790. let data = {
  791. id: "342",
  792. };
  793. let res = await uni.$http.get(url, data);
  794. this.SDdata.SD8 = res.data.data.deviceParam.value;
  795. },
  796. async getSD9(e) {
  797. let vm = this;
  798. let url = uni.$api.deviceParam.getTimeData;
  799. let data = {
  800. id: "343",
  801. };
  802. let res = await uni.$http.get(url, data);
  803. this.data11.series11[0].data[2] = res.data.data.deviceParam.value;
  804. this.SDdata.SD9 = res.data.data.deviceParam.value;
  805. },
  806. async getSD10(e) {
  807. let vm = this;
  808. let url = uni.$api.deviceParam.getTimeData;
  809. let data = {
  810. id: "344",
  811. };
  812. let res = await uni.$http.get(url, data);
  813. this.SDdata.SD10 = res.data.data.deviceParam.value;
  814. },
  815. async getSD11(e) {
  816. let vm = this;
  817. let url = uni.$api.deviceParam.getTimeData;
  818. let data = {
  819. id: "345",
  820. };
  821. let res = await uni.$http.get(url, data);
  822. this.SDdata.SD11 = res.data.data.deviceParam.value;
  823. },
  824. async getSD12(e) {
  825. let vm = this;
  826. let url = uni.$api.deviceParam.getTimeData;
  827. let data = {
  828. id: "346",
  829. };
  830. let res = await uni.$http.get(url, data);
  831. this.data11.series11[0].data[3] = res.data.data.deviceParam.value;
  832. this.SDdata.SD12 = res.data.data.deviceParam.value;
  833. },
  834. async getSD13(e) {
  835. let vm = this;
  836. let url = uni.$api.deviceParam.getTimeData;
  837. let data = {
  838. id: "347",
  839. };
  840. let res = await uni.$http.get(url, data);
  841. this.SDdata.SD13 = res.data.data.deviceParam.value;
  842. },
  843. async getSD14(e) {
  844. let vm = this;
  845. let url = uni.$api.deviceParam.getTimeData;
  846. let data = {
  847. id: "348",
  848. };
  849. let res = await uni.$http.get(url, data);
  850. this.SDdata.SD14 = res.data.data.deviceParam.value;
  851. },
  852. async getSD15(e) {
  853. let vm = this;
  854. let url = uni.$api.deviceParam.getTimeData;
  855. let data = {
  856. id: "349",
  857. };
  858. let res = await uni.$http.get(url, data);
  859. this.data11.series11[0].data[4] = res.data.data.deviceParam.value;
  860. this.SDdata.SD15 = res.data.data.deviceParam.value;
  861. },
  862. async getSD16(e) {
  863. let vm = this;
  864. let url = uni.$api.deviceParam.getTimeData;
  865. let data = {
  866. id: "350",
  867. };
  868. let res = await uni.$http.get(url, data);
  869. this.SDdata.SD16 = res.data.data.deviceParam.value;
  870. },
  871. async getSD17(e) {
  872. let vm = this;
  873. let url = uni.$api.deviceParam.getTimeData;
  874. let data = {
  875. id: "351",
  876. };
  877. let res = await uni.$http.get(url, data);
  878. this.SDdata.SD17 = res.data.data.deviceParam.value;
  879. },
  880. async getSD18(e) {
  881. let vm = this;
  882. let url = uni.$api.deviceParam.getTimeData;
  883. let data = {
  884. id: "352",
  885. };
  886. let res = await uni.$http.get(url, data);
  887. this.data11.series11[0].data[5] = res.data.data.deviceParam.value;
  888. this.SDdata.SD18 = res.data.data.deviceParam.value;
  889. },
  890. async getSD19(e) {
  891. let vm = this;
  892. let url = uni.$api.deviceParam.getTimeData;
  893. let data = {
  894. id: "353",
  895. };
  896. let res = await uni.$http.get(url, data);
  897. this.SDdata.SD19 = res.data.data.deviceParam.value;
  898. },
  899. async getSD20(e) {
  900. let vm = this;
  901. let url = uni.$api.deviceParam.getTimeData;
  902. let data = {
  903. id: "354",
  904. };
  905. let res = await uni.$http.get(url, data);
  906. this.SDdata.SD20 = res.data.data.deviceParam.value;
  907. },
  908. async getSD21(e) {
  909. let vm = this;
  910. let url = uni.$api.deviceParam.getTimeData;
  911. let data = {
  912. id: "355",
  913. };
  914. let res = await uni.$http.get(url, data);
  915. this.data11.series11[0].data[6] = res.data.data.deviceParam.value;
  916. this.SDdata.SD21 = res.data.data.deviceParam.value;
  917. },
  918. async getSD22(e) {
  919. let vm = this;
  920. let url = uni.$api.deviceParam.getTimeData;
  921. let data = {
  922. id: "356",
  923. };
  924. let res = await uni.$http.get(url, data);
  925. this.SDdata.SD22 = res.data.data.deviceParam.value;
  926. },
  927. async getSD23(e) {
  928. let vm = this;
  929. let url = uni.$api.deviceParam.getTimeData;
  930. let data = {
  931. id: "357",
  932. };
  933. let res = await uni.$http.get(url, data);
  934. this.SDdata.SD23 = res.data.data.deviceParam.value;
  935. },
  936. async getSD24(e) {
  937. let vm = this;
  938. let url = uni.$api.deviceParam.getTimeData;
  939. let data = {
  940. id: "358",
  941. };
  942. let res = await uni.$http.get(url, data);
  943. this.data11.series11[0].data[7] = res.data.data.deviceParam.value;
  944. this.SDdata.SD24 = res.data.data.deviceParam.value;
  945. },
  946. //获取24个小时的温度设定
  947. async getWDSD1(e) {
  948. let vm = this;
  949. let url = uni.$api.deviceParam.getTimeData;
  950. let data = {
  951. id: "359",
  952. };
  953. let res = await uni.$http.get(url, data);
  954. this.WDSDdata.WDSD1 = res.data.data.deviceParam.value;
  955. },
  956. async getWDSD2(e) {
  957. let vm = this;
  958. let url = uni.$api.deviceParam.getTimeData;
  959. let data = {
  960. id: "360",
  961. };
  962. let res = await uni.$http.get(url, data);
  963. this.WDSDdata.WDSD2 = res.data.data.deviceParam.value;
  964. },
  965. async getWDSD3(e) {
  966. let vm = this;
  967. let url = uni.$api.deviceParam.getTimeData;
  968. let data = {
  969. id: "361",
  970. };
  971. let res = await uni.$http.get(url, data);
  972. this.data.series[1].data[0] = res.data.data.deviceParam.value;
  973. this.WDSDdata.WDSD3 = res.data.data.deviceParam.value;
  974. },
  975. async getWDSD4(e) {
  976. let vm = this;
  977. let url = uni.$api.deviceParam.getTimeData;
  978. let data = {
  979. id: "362",
  980. };
  981. let res = await uni.$http.get(url, data);
  982. this.WDSDdata.WDSD4 = res.data.data.deviceParam.value;
  983. },
  984. async getWDSD5(e) {
  985. let vm = this;
  986. let url = uni.$api.deviceParam.getTimeData;
  987. let data = {
  988. id: "363",
  989. };
  990. let res = await uni.$http.get(url, data);
  991. this.WDSDdata.WDSD5 = res.data.data.deviceParam.value;
  992. },
  993. async getWDSD6(e) {
  994. let vm = this;
  995. let url = uni.$api.deviceParam.getTimeData;
  996. let data = {
  997. id: "364",
  998. };
  999. let res = await uni.$http.get(url, data);
  1000. this.data.series[1].data[1] = res.data.data.deviceParam.value;
  1001. this.WDSDdata.WDSD6 = res.data.data.deviceParam.value;
  1002. },
  1003. async getWDSD7(e) {
  1004. let vm = this;
  1005. let url = uni.$api.deviceParam.getTimeData;
  1006. let data = {
  1007. id: "365",
  1008. };
  1009. let res = await uni.$http.get(url, data);
  1010. this.WDSDdata.WDSD7 = res.data.data.deviceParam.value;
  1011. },
  1012. async getWDSD8(e) {
  1013. let vm = this;
  1014. let url = uni.$api.deviceParam.getTimeData;
  1015. let data = {
  1016. id: "366",
  1017. };
  1018. let res = await uni.$http.get(url, data);
  1019. this.WDSDdata.WDSD8 = res.data.data.deviceParam.value;
  1020. },
  1021. async getWDSD9(e) {
  1022. let vm = this;
  1023. let url = uni.$api.deviceParam.getTimeData;
  1024. let data = {
  1025. id: "367",
  1026. };
  1027. let res = await uni.$http.get(url, data);
  1028. this.data.series[1].data[2] = res.data.data.deviceParam.value;
  1029. this.WDSDdata.WDSD9 = res.data.data.deviceParam.value;
  1030. },
  1031. async getWDSD10(e) {
  1032. let vm = this;
  1033. let url = uni.$api.deviceParam.getTimeData;
  1034. let data = {
  1035. id: "368",
  1036. };
  1037. let res = await uni.$http.get(url, data);
  1038. this.WDSDdata.WDSD10 = res.data.data.deviceParam.value;
  1039. },
  1040. async getWDSD11(e) {
  1041. let vm = this;
  1042. let url = uni.$api.deviceParam.getTimeData;
  1043. let data = {
  1044. id: "369",
  1045. };
  1046. let res = await uni.$http.get(url, data);
  1047. this.WDSDdata.WDSD11 = res.data.data.deviceParam.value;
  1048. },
  1049. async getWDSD12(e) {
  1050. let vm = this;
  1051. let url = uni.$api.deviceParam.getTimeData;
  1052. let data = {
  1053. id: "370",
  1054. };
  1055. let res = await uni.$http.get(url, data);
  1056. this.data.series[1].data[3] = res.data.data.deviceParam.value;
  1057. this.WDSDdata.WDSD12 = res.data.data.deviceParam.value;
  1058. },
  1059. async getWDSD13(e) {
  1060. let vm = this;
  1061. let url = uni.$api.deviceParam.getTimeData;
  1062. let data = {
  1063. id: "371",
  1064. };
  1065. let res = await uni.$http.get(url, data);
  1066. this.WDSDdata.WDSD13 = res.data.data.deviceParam.value;
  1067. },
  1068. async getWDSD14(e) {
  1069. let vm = this;
  1070. let url = uni.$api.deviceParam.getTimeData;
  1071. let data = {
  1072. id: "372",
  1073. };
  1074. let res = await uni.$http.get(url, data);
  1075. this.WDSDdata.WDSD14 = res.data.data.deviceParam.value;
  1076. },
  1077. async getWDSD15(e) {
  1078. let vm = this;
  1079. let url = uni.$api.deviceParam.getTimeData;
  1080. let data = {
  1081. id: "373",
  1082. };
  1083. let res = await uni.$http.get(url, data);
  1084. this.data.series[1].data[4] = res.data.data.deviceParam.value;
  1085. this.WDSDdata.WDSD15 = res.data.data.deviceParam.value;
  1086. },
  1087. async getWDSD16(e) {
  1088. let vm = this;
  1089. let url = uni.$api.deviceParam.getTimeData;
  1090. let data = {
  1091. id: "374",
  1092. };
  1093. let res = await uni.$http.get(url, data);
  1094. this.WDSDdata.WDSD16 = res.data.data.deviceParam.value;
  1095. },
  1096. async getWDSD17(e) {
  1097. let vm = this;
  1098. let url = uni.$api.deviceParam.getTimeData;
  1099. let data = {
  1100. id: "375",
  1101. };
  1102. let res = await uni.$http.get(url, data);
  1103. this.WDSDdata.WDSD17 = res.data.data.deviceParam.value;
  1104. },
  1105. async getWDSD18(e) {
  1106. let vm = this;
  1107. let url = uni.$api.deviceParam.getTimeData;
  1108. let data = {
  1109. id: "376",
  1110. };
  1111. let res = await uni.$http.get(url, data);
  1112. this.data.series[1].data[5] = res.data.data.deviceParam.value;
  1113. this.WDSDdata.WDSD18 = res.data.data.deviceParam.value;
  1114. },
  1115. async getWDSD19(e) {
  1116. let vm = this;
  1117. let url = uni.$api.deviceParam.getTimeData;
  1118. let data = {
  1119. id: "377",
  1120. };
  1121. let res = await uni.$http.get(url, data);
  1122. this.WDSDdata.WDSD19 = res.data.data.deviceParam.value;
  1123. },
  1124. async getWDSD20(e) {
  1125. let vm = this;
  1126. let url = uni.$api.deviceParam.getTimeData;
  1127. let data = {
  1128. id: "378",
  1129. };
  1130. let res = await uni.$http.get(url, data);
  1131. this.WDSDdata.WDSD20 = res.data.data.deviceParam.value;
  1132. },
  1133. async getWDSD21(e) {
  1134. let vm = this;
  1135. let url = uni.$api.deviceParam.getTimeData;
  1136. let data = {
  1137. id: "379",
  1138. };
  1139. let res = await uni.$http.get(url, data);
  1140. this.data.series[1].data[6] = res.data.data.deviceParam.value;
  1141. this.WDSDdata.WDSD21 = res.data.data.deviceParam.value;
  1142. },
  1143. async getWDSD22(e) {
  1144. let vm = this;
  1145. let url = uni.$api.deviceParam.getTimeData;
  1146. let data = {
  1147. id: "380",
  1148. };
  1149. let res = await uni.$http.get(url, data);
  1150. this.WDSDdata.WDSD22 = res.data.data.deviceParam.value;
  1151. },
  1152. async getWDSD23(e) {
  1153. let vm = this;
  1154. let url = uni.$api.deviceParam.getTimeData;
  1155. let data = {
  1156. id: "381",
  1157. };
  1158. let res = await uni.$http.get(url, data);
  1159. this.WDSDdata.WDSD23 = res.data.data.deviceParam.value;
  1160. },
  1161. async getWDSD24(e) {
  1162. let vm = this;
  1163. let url = uni.$api.deviceParam.getTimeData;
  1164. let data = {
  1165. id: "382",
  1166. };
  1167. let res = await uni.$http.get(url, data);
  1168. this.data.series[1].data[7] = res.data.data.deviceParam.value;
  1169. this.WDSDdata.WDSD24 = res.data.data.deviceParam.value;
  1170. },
  1171. //获取24个小时的湿度设定
  1172. async getSDSD1(e) {
  1173. let vm = this;
  1174. let url = uni.$api.deviceParam.getTimeData;
  1175. let data = {
  1176. id: "383",
  1177. };
  1178. let res = await uni.$http.get(url, data);
  1179. this.SDSDdata.SDSD1 = res.data.data.deviceParam.value;
  1180. },
  1181. async getSDSD2(e) {
  1182. let vm = this;
  1183. let url = uni.$api.deviceParam.getTimeData;
  1184. let data = {
  1185. id: "384",
  1186. };
  1187. let res = await uni.$http.get(url, data);
  1188. this.SDSDdata.SDSD2 = res.data.data.deviceParam.value;
  1189. },
  1190. async getSDSD3(e) {
  1191. let vm = this;
  1192. let url = uni.$api.deviceParam.getTimeData;
  1193. let data = {
  1194. id: "385",
  1195. };
  1196. let res = await uni.$http.get(url, data);
  1197. this.data11.series11[1].data[0] = res.data.data.deviceParam.value;
  1198. this.SDSDdata.SDSD3 = res.data.data.deviceParam.value;
  1199. },
  1200. async getSDSD4(e) {
  1201. let vm = this;
  1202. let url = uni.$api.deviceParam.getTimeData;
  1203. let data = {
  1204. id: "386",
  1205. };
  1206. let res = await uni.$http.get(url, data);
  1207. this.SDSDdata.SDSD4 = res.data.data.deviceParam.value;
  1208. },
  1209. async getSDSD5(e) {
  1210. let vm = this;
  1211. let url = uni.$api.deviceParam.getTimeData;
  1212. let data = {
  1213. id: "387",
  1214. };
  1215. let res = await uni.$http.get(url, data);
  1216. this.SDSDdata.SDSD5 = res.data.data.deviceParam.value;
  1217. },
  1218. async getSDSD6(e) {
  1219. let vm = this;
  1220. let url = uni.$api.deviceParam.getTimeData;
  1221. let data = {
  1222. id: "388",
  1223. };
  1224. let res = await uni.$http.get(url, data);
  1225. this.data11.series11[1].data[1] = res.data.data.deviceParam.value;
  1226. this.SDSDdata.SDSD6 = res.data.data.deviceParam.value;
  1227. },
  1228. async getSDSD7(e) {
  1229. let vm = this;
  1230. let url = uni.$api.deviceParam.getTimeData;
  1231. let data = {
  1232. id: "389",
  1233. };
  1234. let res = await uni.$http.get(url, data);
  1235. this.SDSDdata.SDSD7 = res.data.data.deviceParam.value;
  1236. },
  1237. async getSDSD8(e) {
  1238. let vm = this;
  1239. let url = uni.$api.deviceParam.getTimeData;
  1240. let data = {
  1241. id: "390",
  1242. };
  1243. let res = await uni.$http.get(url, data);
  1244. this.SDSDdata.SDSD8 = res.data.data.deviceParam.value;
  1245. },
  1246. async getSDSD9(e) {
  1247. let vm = this;
  1248. let url = uni.$api.deviceParam.getTimeData;
  1249. let data = {
  1250. id: "391",
  1251. };
  1252. let res = await uni.$http.get(url, data);
  1253. this.data11.series11[1].data[2] = res.data.data.deviceParam.value;
  1254. this.SDSDdata.SDSD9 = res.data.data.deviceParam.value;
  1255. },
  1256. async getSDSD10(e) {
  1257. let vm = this;
  1258. let url = uni.$api.deviceParam.getTimeData;
  1259. let data = {
  1260. id: "392",
  1261. };
  1262. let res = await uni.$http.get(url, data);
  1263. this.SDSDdata.SDSD10 = res.data.data.deviceParam.value;
  1264. },
  1265. async getSDSD11(e) {
  1266. let vm = this;
  1267. let url = uni.$api.deviceParam.getTimeData;
  1268. let data = {
  1269. id: "393",
  1270. };
  1271. let res = await uni.$http.get(url, data);
  1272. this.SDSDdata.SDSD11 = res.data.data.deviceParam.value;
  1273. },
  1274. async getSDSD12(e) {
  1275. let vm = this;
  1276. let url = uni.$api.deviceParam.getTimeData;
  1277. let data = {
  1278. id: "394",
  1279. };
  1280. let res = await uni.$http.get(url, data);
  1281. this.data11.series11[1].data[3] = res.data.data.deviceParam.value;
  1282. this.SDSDdata.SDSD12 = res.data.data.deviceParam.value;
  1283. },
  1284. async getSDSD13(e) {
  1285. let vm = this;
  1286. let url = uni.$api.deviceParam.getTimeData;
  1287. let data = {
  1288. id: "395",
  1289. };
  1290. let res = await uni.$http.get(url, data);
  1291. this.SDSDdata.SDSD13 = res.data.data.deviceParam.value;
  1292. },
  1293. async getSDSD14(e) {
  1294. let vm = this;
  1295. let url = uni.$api.deviceParam.getTimeData;
  1296. let data = {
  1297. id: "396",
  1298. };
  1299. let res = await uni.$http.get(url, data);
  1300. this.SDSDdata.SDSD14 = res.data.data.deviceParam.value;
  1301. },
  1302. async getSDSD15(e) {
  1303. let vm = this;
  1304. let url = uni.$api.deviceParam.getTimeData;
  1305. let data = {
  1306. id: "397",
  1307. };
  1308. let res = await uni.$http.get(url, data);
  1309. this.data11.series11[1].data[4] = res.data.data.deviceParam.value;
  1310. this.SDSDdata.SDSD15 = res.data.data.deviceParam.value;
  1311. },
  1312. async getSDSD16(e) {
  1313. let vm = this;
  1314. let url = uni.$api.deviceParam.getTimeData;
  1315. let data = {
  1316. id: "398",
  1317. };
  1318. let res = await uni.$http.get(url, data);
  1319. this.SDSDdata.SDSD16 = res.data.data.deviceParam.value;
  1320. },
  1321. async getSDSD17(e) {
  1322. let vm = this;
  1323. let url = uni.$api.deviceParam.getTimeData;
  1324. let data = {
  1325. id: "399",
  1326. };
  1327. let res = await uni.$http.get(url, data);
  1328. this.SDSDdata.SDSD17 = res.data.data.deviceParam.value;
  1329. },
  1330. async getSDSD18(e) {
  1331. let vm = this;
  1332. let url = uni.$api.deviceParam.getTimeData;
  1333. let data = {
  1334. id: "400",
  1335. };
  1336. let res = await uni.$http.get(url, data);
  1337. this.data11.series11[1].data[5] = res.data.data.deviceParam.value;
  1338. this.SDSDdata.SDSD18 = res.data.data.deviceParam.value;
  1339. },
  1340. async getSDSD19(e) {
  1341. let vm = this;
  1342. let url = uni.$api.deviceParam.getTimeData;
  1343. let data = {
  1344. id: "401",
  1345. };
  1346. let res = await uni.$http.get(url, data);
  1347. this.SDSDdata.SDSD19 = res.data.data.deviceParam.value;
  1348. },
  1349. async getSDSD20(e) {
  1350. let vm = this;
  1351. let url = uni.$api.deviceParam.getTimeData;
  1352. let data = {
  1353. id: "402",
  1354. };
  1355. let res = await uni.$http.get(url, data);
  1356. this.SDSDdata.SDSD20 = res.data.data.deviceParam.value;
  1357. },
  1358. async getSDSD21(e) {
  1359. let vm = this;
  1360. let url = uni.$api.deviceParam.getTimeData;
  1361. let data = {
  1362. id: "403",
  1363. };
  1364. let res = await uni.$http.get(url, data);
  1365. this.data11.series11[1].data[6] = res.data.data.deviceParam.value;
  1366. this.SDSDdata.SDSD21 = res.data.data.deviceParam.value;
  1367. },
  1368. async getSDSD22(e) {
  1369. let vm = this;
  1370. let url = uni.$api.deviceParam.getTimeData;
  1371. let data = {
  1372. id: "404",
  1373. };
  1374. let res = await uni.$http.get(url, data);
  1375. this.SDSDdata.SDSD22 = res.data.data.deviceParam.value;
  1376. },
  1377. async getSDSD23(e) {
  1378. let vm = this;
  1379. let url = uni.$api.deviceParam.getTimeData;
  1380. let data = {
  1381. id: "405",
  1382. };
  1383. let res = await uni.$http.get(url, data);
  1384. this.SDSDdata.SDSD23 = res.data.data.deviceParam.value;
  1385. },
  1386. async getSDSD24(e) {
  1387. let vm = this;
  1388. let url = uni.$api.deviceParam.getTimeData;
  1389. let data = {
  1390. id: "406",
  1391. };
  1392. let res = await uni.$http.get(url, data);
  1393. this.data11.series11[1].data[7] = res.data.data.deviceParam.value;
  1394. this.SDSDdata.SDSD24 = res.data.data.deviceParam.value;
  1395. _self = this //声明this
  1396. _self.showLineA("canvasLineA", _self.data); //触发执行函数
  1397. _self11 = this //声明this
  1398. _self11.showLineA11("canvasLineA11", _self11.data11); //触发执行函数
  1399. },
  1400. }
  1401. }
  1402. </script>
  1403. <style>
  1404. .anniu {
  1405. width: 116rpx;
  1406. height: 116rpx;
  1407. float: right;
  1408. margin-top: 20rpx;
  1409. }
  1410. .charts {
  1411. margin-top: 60rpx;
  1412. width: 702rpx;
  1413. height: 500rpx;
  1414. background-color: #FFFFFF;
  1415. }
  1416. .title1 {
  1417. display: flex;
  1418. flex-direction: column;
  1419. align-items: center;
  1420. }
  1421. .tiao {
  1422. width: 60px;
  1423. height: 3px;
  1424. margin-top: 20rpx;
  1425. background: #007AFF;
  1426. }
  1427. .param {
  1428. font-size: 38rpx;
  1429. font-weight: 550;
  1430. margin-top: 40rpx;
  1431. }
  1432. .white {
  1433. width: 702rpx;
  1434. height: 720rpx;
  1435. margin-left: 24rpx;
  1436. background-color: white;
  1437. margin-top: 28rpx;
  1438. border-radius: 10rpx;
  1439. }
  1440. .white1 {
  1441. width: 702rpx;
  1442. height: 720rpx;
  1443. margin-left: 24rpx;
  1444. background-color: white;
  1445. margin-top: 28rpx;
  1446. border-radius: 10rpx;
  1447. }
  1448. .chart {
  1449. font-size: 26rpx;
  1450. height: 300px;
  1451. /* background:white; */
  1452. background: rgb(30, 130, 250);
  1453. display: flex;
  1454. flex-direction: row;
  1455. align-items: center;
  1456. justify-content: center;
  1457. }
  1458. .charts-box {
  1459. margin-left: 8rpx;
  1460. margin-right: 8rpx;
  1461. }
  1462. </style>