electronicMonitoring.vue 36 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697
  1. <template>
  2. <view>
  3. <view class="background">
  4. <!-- 日期选择器 -->
  5. <u-picker-select title="日期选择" v-model="tabsFrom.show2" :defaultTime="tabsFrom.show2Index" :endYear="endYear"
  6. mode="time" :params="params" :noselect="false" @confirm="selector2confirm" @cancel="selector2cancel"
  7. @reset="selector2reset">
  8. </u-picker-select>
  9. <view class="navbar-c">
  10. <view class="back" @click="backDataMonitoringList">
  11. <u-icon name="arrow-left" color="#fff" size="36"></u-icon>
  12. </view>
  13. <view class="title" @click="titleCk">
  14. <view class="e">
  15. {{tabsFrom.title}}
  16. </view>
  17. <u-icon name="arrow-down" color="#fff" v-if="tabsFrom.selector1.length"
  18. size="24"></u-icon>
  19. </view>
  20. </view>
  21. </view>
  22. <!-- 设备选择器 -->
  23. <u-select title="设备选择" v-model="tabsFrom.show1" mode="mutil-column-auto" :list="tabsFrom.selector1"
  24. @confirm="selector1confirm" cancel-text="重置" @cancel="selector1cancel">
  25. </u-select>
  26. <!-- 用电量 -->
  27. <view class="electricity-consumption">
  28. <!-- <view class="title">
  29. 用电量统计 (度)
  30. </view> -->
  31. <!-- <view class="degree">
  32. <view class="item">
  33. <view class="item-text">
  34. 百万
  35. </view>
  36. <view class="item-number" v-text="showTop[0]">
  37. 0
  38. </view>
  39. </view>
  40. <view class="item">
  41. <view class="item-text">
  42. 拾万
  43. </view>
  44. <view class="item-number" v-text="showTop[1]">
  45. 0
  46. </view>
  47. </view>
  48. <view class="item">
  49. <view class="item-text">
  50. </view>
  51. <view class="item-number" v-text="showTop[2]">
  52. 0
  53. </view>
  54. </view>
  55. <view class="item">
  56. <view class="item-text">
  57. </view>
  58. <view class="item-number" v-text="showTop[3]">
  59. 0
  60. </view>
  61. </view>
  62. <view class="item">
  63. <view class="item-text">
  64. </view>
  65. <view class="item-number" v-text="showTop[4]">
  66. 0
  67. </view>
  68. </view>
  69. <view class="item">
  70. <view class="item-text">
  71. </view>
  72. <view class="item-number" v-text="showTop[5]">
  73. 7
  74. </view>
  75. </view>
  76. <view class="item">
  77. <view class="item-text">
  78. 1
  79. </view>
  80. <view class="item-number" v-text="showTop[6]">
  81. 7
  82. </view>
  83. </view>
  84. <view class="item">
  85. <view class="item-text">
  86. 0.1
  87. </view>
  88. <view class="item-number decimal" v-text="showTop[7]">
  89. 7
  90. </view>
  91. </view>
  92. </view> -->
  93. <!-- 统计 -->
  94. <view class="statistics-content">
  95. <view class="statistics-item">
  96. <!-- @click="gotoUrl('/pages/equipmentDataMonitoring/electricityConsumptionDetail?id='
  97. +FormData.meterId+'&name='+tabsFrom.title+'&type='+FormData.type)"> -->
  98. <view class="item-title">
  99. <image class="img" src="@/assets/img/meterStatistics@3x.png"></image>电量统计(度)
  100. </view>
  101. <view class="item-value">
  102. <text>{{electricity}}</text>
  103. <!-- <u-icon name="arrow-right" color="#cccccc" size="24" ></u-icon> -->
  104. </view>
  105. </view>
  106. <view class="statistics-item" >
  107. <view class="item-title item-title2">
  108. <image class="img" src="@/assets/img/electricityStatistics@3x.png"></image>电费统计(元)
  109. </view>
  110. <view class="item-value">
  111. {{fee}}
  112. </view>
  113. </view>
  114. </view>
  115. <view class="radio">
  116. <u-radio-group v-model="value" @change="radioGroupChange">
  117. <u-radio @change="radioChange" v-for="(item, index) in list" :key="index" :name="item.id"
  118. :disabled="item.disabled">
  119. {{item.name}}
  120. </u-radio>
  121. </u-radio-group>
  122. </view>
  123. </view>
  124. <!-- 各时段用电量 -->
  125. <view class="electricity-chart">
  126. <view class="title">
  127. <view class="icon">
  128. </view>
  129. <view class="text">
  130. 各时段电量 (度)
  131. </view>
  132. <view class="more" @click="tabsFrom.show2=true,params.day=true">
  133. {{queryDay}}<u-icon name="arrow-down" color="#bbbbbb"></u-icon>
  134. </view>
  135. </view>
  136. <view class="chart">
  137. <view id="barEcharts" style="min-height:440rpx;">
  138. </view>
  139. </view>
  140. <view class="total" >
  141. <view class="total-item">
  142. 电量合计:{{sumQuantity}}度
  143. </view>
  144. <view class="total-item">
  145. 电费合计:{{sumFee}}元
  146. </view>
  147. </view>
  148. </view>
  149. <!-- 异常波动 -->
  150. <view class="abnormal" v-if="abnormalRecordsList.length != 0">
  151. <view class="headline">
  152. <view class="title">
  153. <view class="icon">
  154. </view>
  155. <view class="text">
  156. 异常告警
  157. </view>
  158. </view>
  159. <view class="more" @click="gotoUrl('/pages/abnormal/abnormalAlarmRecord?id='+companyId)">
  160. 查看全部
  161. <u-icon name="arrow-right" size="24" color="#d4d4d4"></u-icon>
  162. </view>
  163. </view>
  164. <view class="details">
  165. <view class="item" v-for="(item, index) in abnormalRecordsList" :key="index"
  166. @click="gotoUrl('/pages/abnormal/abnormalAlarmDetails?id='+item.id)">
  167. <view class="name">
  168. {{item.configName}}
  169. </view>
  170. <view class="time">
  171. {{item.createTime}}
  172. <!-- 箭头 -->
  173. <view class="more">
  174. <u-icon name="arrow-right" color="#acacac" size="24"></u-icon>
  175. </view>
  176. </view>
  177. </view>
  178. </view>
  179. </view>
  180. <!-- 能源监测 -->
  181. <view class="energy-inspection">
  182. <view class="title">
  183. <view class="icon">
  184. </view>
  185. <view class="text">
  186. 能源监测
  187. </view>
  188. </view>
  189. <view class="grid">
  190. <u-grid :col="3" :border="false">
  191. <u-grid-item @click="gotoInfo('3PhaseCurrentDetails','A','三相电流')">
  192. <view class="icon icon1">
  193. <image class="img" src="@/assets/img/Image@1.png" mode=""></image>
  194. </view>
  195. <view class="grid-text">三相电流</view>
  196. </u-grid-item>
  197. <u-grid-item @click="gotoInfo('3PhaseCurrentDetails','V','三相电压')">
  198. <view class="icon icon2">
  199. <image class="img" src="@/assets/img/Image@2.png" mode=""></image>
  200. </view>
  201. <view class="grid-text">三相电压</view>
  202. </u-grid-item>
  203. <u-grid-item @click="gotoInfo('3PhaseCurrentDetails','T','三相温度')">
  204. <view class="icon icon3">
  205. <image class="img" src="@/assets/img/Image@3.png" mode=""></image>
  206. </view>
  207. <view class="grid-text">三相温度</view>
  208. </u-grid-item>
  209. <u-grid-item @click="gotoInfo('3PhaseCurrentDetails','P','三相有功功率')">
  210. <view class="icon icon4">
  211. <image class="img" src="@/assets/img/Image@4.png" mode=""></image>
  212. </view>
  213. <view class="grid-text">三相有功功率</view>
  214. </u-grid-item>
  215. <u-grid-item @click="gotoInfo('3PhaseCurrentDetails','F','三相功率因数')">
  216. <view class="icon icon5">
  217. <image class="img" src="@/assets/img/Image@5.png" mode=""></image>
  218. </view>
  219. <view class="grid-text">三相功率因数</view>
  220. </u-grid-item>
  221. <u-grid-item @click="gotoInfo('3PhaseCurrentDetails','AF','平均功率因数')">
  222. <view class="icon icon6">
  223. <image class="img" src="@/assets/img/Image@5.png" mode=""></image>
  224. </view>
  225. <view class="grid-text">平均功率因数</view>
  226. </u-grid-item>
  227. </u-grid>
  228. </view>
  229. </view>
  230. <!-- 数据分析 -->
  231. <view class="data-analysis">
  232. <view class="title">
  233. <view class="icon">
  234. </view>
  235. <view class="text">
  236. 数据分析
  237. </view>
  238. </view>
  239. <view class="grid">
  240. <u-grid :col="3" :border="false">
  241. <u-grid-item @click="gotoInfo('chartYoY','','')">
  242. <view class="icon icon7">
  243. <image class="img" src="@/assets/img/Image@7.png" mode=""></image>
  244. </view>
  245. <view class="grid-text">同比分析</view>
  246. </u-grid-item>
  247. <u-grid-item @click="gotoInfo('chartMoM','','')">
  248. <view class="icon icon8">
  249. <image class="img" src="@/assets/img/Image@8.png" mode=""></image>
  250. </view>
  251. <view class="grid-text">环比分析</view>
  252. </u-grid-item>
  253. <u-grid-item @click="gotoUrl('/pages/equipmentDataMonitoring/electricityStatistics?id='+meterId)">
  254. <view class="icon icon9">
  255. <image class="img" src="@/assets/img/Image@9.svg" mode=""></image>
  256. </view>
  257. <view class="grid-text">用电统计</view>
  258. </u-grid-item>
  259. </u-grid>
  260. </view>
  261. </view>
  262. <!-- 设备信息 -->
  263. <view class="equipment-information">
  264. <view class="title">
  265. <view class="icon">
  266. </view>
  267. <view class="text">
  268. 设备信息
  269. </view>
  270. <view class="more" @click="equipmentInfosShow=true">
  271. 查看全部<u-icon name="arrow-right" size="24" color="#d4d4d4"></u-icon>
  272. </view>
  273. </view>
  274. <view class="infos">
  275. <view class="item" style="width: 30%;">
  276. <view class="item-title">
  277. 设备类型
  278. </view>
  279. <view class="item-value">
  280. {{meterDetail.deviceTypeN}}
  281. </view>
  282. </view>
  283. <view class="border">
  284. </view>
  285. <view class="item" style="width: 30%;">
  286. <view class="item-title">
  287. 设备编号
  288. </view>
  289. <view class="item-value">
  290. {{meterDetail.deviceNo}}
  291. </view>
  292. </view>
  293. <view class="border">
  294. </view>
  295. <view class="item" style="width: 30%;">
  296. <view class="item-title">
  297. 设备地址
  298. </view>
  299. <view class="item-value">
  300. {{meterDetail.installationAddressSimple}}
  301. </view>
  302. </view>
  303. </view>
  304. </view>
  305. <!-- 设备信息弹窗 -->
  306. <view class="equipment-popup">
  307. <u-popup v-model="equipmentInfosShow" mode="bottom" border-radius="12">
  308. <view class="content">
  309. <view class="headline">
  310. 设备信息
  311. </view>
  312. <view class="infos">
  313. <view class="item">
  314. <view class="item-title">
  315. 设备名称
  316. </view>
  317. <view class="item-value">
  318. {{meterDetail.name}}
  319. </view>
  320. </view>
  321. <view class="item">
  322. <view class="item-title">
  323. 设备类型
  324. </view>
  325. <view class="item-value">
  326. {{meterDetail.deviceTypeN}}
  327. </view>
  328. </view>
  329. <view class="item">
  330. <view class="item-title">
  331. 设备编号
  332. </view>
  333. <view class="item-value">
  334. {{meterDetail.deviceNo}}
  335. </view>
  336. </view>
  337. <view class="item">
  338. <view class="item-title">
  339. 产权单位
  340. </view>
  341. <view class="item-value">
  342. {{meterDetail.companyFullName}}
  343. </view>
  344. </view>
  345. <view class="item" @click="toMeterLocation">
  346. <view class="item-title">
  347. 设备地址
  348. </view>
  349. <view class="item-value">
  350. <span>{{meterDetail.installationAddress}}</span>
  351. <image class="img" src="@/assets/img/riFill-navigation-fill 1.svg"></image>
  352. </view>
  353. </view>
  354. <view class="item">
  355. <view class="item-title">
  356. 地址简称
  357. </view>
  358. <view class="item-value">
  359. {{meterDetail.installationAddressSimple}}
  360. </view>
  361. </view>
  362. <view class="item">
  363. <view class="item-title">
  364. 使用单位
  365. </view>
  366. <view class="item-value">
  367. {{meterDetail.customer}}
  368. </view>
  369. </view>
  370. <view class="item">
  371. <view class="item-title">
  372. 启用时间
  373. </view>
  374. <view class="item-value">
  375. {{meterDetail.enablingTime}}
  376. </view>
  377. </view>
  378. </view>
  379. <button class="get" @click="equipmentInfosShow=false">知道了</button>
  380. </view>
  381. </u-popup>
  382. </view>
  383. <!-- 故障上报 -->
  384. <view class="create-order" v-if="false">
  385. <view class="img-box">
  386. <image class="img" src="@/assets/img/fas fa-exclamation-triangle Copy 2@3x.png" mode=""></image>
  387. </view>
  388. <view class="text">
  389. 故障上报
  390. </view>
  391. </view>
  392. </view>
  393. </template>
  394. <script>
  395. import {
  396. parseUnixTime,
  397. beforeTimeStamp,
  398. getWeek
  399. } from '@/apis/utils'
  400. import * as echarts from 'echarts';
  401. import * as API from '@/apis/pagejs/index.js'
  402. import * as API_electricityMeter from '@/apis/pagejs/electricityMeter.js'
  403. import * as WxJsApi from '@/apis/utils/wxJsApi.js'
  404. export default {
  405. data() {
  406. return {
  407. meterDetail: {}, //设备信息
  408. electricity: 0, //电量统计
  409. fee: 0, //电费统计
  410. abnormalRecordsList: [], //异常list
  411. companyId: '', //企业id
  412. meterId: '', //设备id
  413. titleName: '',
  414. clickType: -1,
  415. sumQuantity: 0,
  416. sumFee: 0,
  417. equipmentInfosShow: false,
  418. kWhList: [],
  419. queryDay: '',
  420. showTop: [0, 0, 0, 0, 0, 0, 0, 0],
  421. FormData: {
  422. queryDate: '',
  423. meterId: '',
  424. type: 0
  425. },
  426. FormData2: {
  427. queryDate: '',
  428. meterId: ''
  429. },
  430. myChart: null,
  431. endYear: '',
  432. equipmentShow: false,
  433. multiSelector: [],
  434. equipmentList: [],
  435. params: {
  436. year: true,
  437. month: true,
  438. day: true,
  439. hour: false,
  440. minute: false,
  441. second: false
  442. },
  443. tabsFrom: {
  444. show1: false,
  445. show1Index: 0,
  446. show2Index: '',
  447. show2: false,
  448. show1Text: "全部类型",
  449. show2Text: "全部时间",
  450. selector1: [{
  451. label: '全部类型',
  452. value: '',
  453. },
  454. {
  455. label: '线上充值',
  456. value: '1',
  457. },
  458. {
  459. label: '线下充值',
  460. value: '2',
  461. },
  462. ]
  463. },
  464. background: {
  465. backgroundColor: '#1677FF',
  466. },
  467. list: [{
  468. id: 1,
  469. name: '本月',
  470. disabled: false
  471. }, {
  472. id: 4,
  473. name: '今日',
  474. disabled: false
  475. }, {
  476. id: 2,
  477. name: '上月',
  478. disabled: false
  479. }, {
  480. id: 3,
  481. name: '本年',
  482. disabled: false
  483. }, {
  484. id: 0,
  485. name: '合计',
  486. disabled: false
  487. }, {
  488. id: 10,
  489. name: '指定月份',
  490. disabled: false
  491. }],
  492. value: '4',
  493. intervalId: null, // 用于存储间隔ID
  494. intervalReady: true, // 用于存储间隔ID
  495. };
  496. },
  497. onLoad(op) {
  498. if (op.id) {
  499. this.FormData.meterId = op.id;
  500. this.FormData2.meterId = op.id;
  501. this.tabsFrom.title = op.name;
  502. this.meterId = op.id;
  503. this.titleName = op.name;
  504. this.companyId = op.companyId;
  505. }
  506. this.endYear = new Date().getFullYear();
  507. this.FormData.queryDate = parseUnixTime(new Date(), '{y}-{m}-{d}');
  508. this.FormData2.queryDate = parseUnixTime(new Date(), '{y}-{m}-{d}');
  509. this.FormData.type = 4;
  510. this.getElectricityStatistics();
  511. this.getTimeSlotStatistics();
  512. this.getCompanyInfoList();
  513. this.getAbnormalAlarmRecord();
  514. this.getMeterDetails(this.meterId);
  515. },
  516. onReady() {
  517. WxJsApi.getWxConfig(['getLocation', 'openLocation', 'addEventListener', 'scanQRCode']).then((res) => {
  518. // //(res)
  519. }).catch(error => {
  520. //(res)
  521. })
  522. },
  523. beforeDestroy() {
  524. this.clearTimer(); // 组件销毁前清除定时器
  525. this.intervalReady = false;
  526. console.log("组件销毁前清除定时器")
  527. },
  528. methods: {
  529. toMeterLocation() {
  530. // WxJsApi.openLocation({
  531. // latitude: parseFloat(this.meterDetail.latitude), //目的地latitude
  532. // longitude: parseFloat(this.meterDetail.longitude), //目的地longitude
  533. // name: this.meterDetail.name,
  534. // address: this.meterDetail.installationAddress,
  535. // scale: 15, //地图缩放大小,可根据情况具体调整
  536. // success(res) {
  537. // uni.hideLoading()
  538. // },
  539. // complete() {
  540. // // uni.hideLoading()
  541. // }
  542. // });
  543. },
  544. getMeterDetails(meterId) {
  545. uni.showLoading({
  546. title: "加载中",
  547. mask: true,
  548. })
  549. API_electricityMeter.meterDetails({
  550. meterId: meterId
  551. }).then((res) => {
  552. uni.hideLoading();
  553. this.meterDetail = res.data.meter;
  554. }).catch(error => {
  555. uni.showToast({
  556. title: error,
  557. icon: "none"
  558. })
  559. })
  560. },
  561. clearTimer() {
  562. if (this.intervalId) {
  563. clearInterval(this.intervalId); // 清除定时器
  564. this.intervalId = null; // 重置定时器ID
  565. }
  566. },
  567. startInterval() {
  568. this.clearTimer(); // 组件销毁前清除定时器
  569. this.intervalId = setInterval(() => {
  570. // 每隔5秒运行的代码
  571. // console.log('这段代码每隔5秒运行一次');
  572. this.getElectricityStatistics(true)
  573. this.getTimeSlotStatistics(true)
  574. }, 60000);
  575. },
  576. gotoInfo(path, type, name) {
  577. if (!this.FormData.meterId) {
  578. uni.showToast({
  579. title: "未查询到电表",
  580. icon: "none"
  581. })
  582. return
  583. }
  584. uni.navigateTo({
  585. url: "/pages/equipmentDataMonitoring/" + path + "?id=" + this.FormData.meterId + "&type=" + type +
  586. "&typeName=" + name+"&title="+this.tabsFrom.title
  587. })
  588. },
  589. // 异常告警记录
  590. getAbnormalAlarmRecord() {
  591. var queryDate = parseUnixTime(new Date(), '{y}-{m}');
  592. uni.showLoading({
  593. title: "加载中",
  594. mask: true,
  595. })
  596. API.alarmRecord({
  597. queryDate: queryDate,
  598. configId: '',
  599. pageIndex: 1,
  600. pageSize: 2,
  601. companyId: this.companyId,
  602. meterId: this.meterId
  603. }).then((res) => {
  604. uni.hideLoading();
  605. this.abnormalRecordsList = res.data.data;
  606. }).catch(error => {
  607. uni.showToast({
  608. title: error,
  609. icon: "none"
  610. })
  611. })
  612. },
  613. titleCk() {
  614. if(this.tabsFrom.selector1.length){
  615. this.tabsFrom.show1 = true
  616. }
  617. },
  618. selector1confirm(e) {
  619. console.log(e)
  620. // var index = e[2];
  621. // this.tabsFrom.show1Index = index;
  622. if (e[2].value != null) {
  623. this.tabsFrom.show1Text = e[2].label;
  624. this.tabsFrom.title = e[2].label;
  625. this.FormData.meterId = e[2].value;
  626. this.FormData.queryDate = parseUnixTime(new Date(), '{y}-{m}-{d}');
  627. this.FormData2.meterId = e[2].value;
  628. this.FormData2.queryDate = parseUnixTime(new Date(), '{y}-{m}-{d}');
  629. //this.meterId =e[2].value;
  630. this.FormData.type = 4;
  631. this.value = '4';
  632. this.getTimeSlotStatistics();
  633. this.getElectricityStatistics();
  634. this.getMeterDetails(e[2].value);
  635. }
  636. },
  637. selector1cancel() {
  638. this.tabsFrom.show1Text = this.titleName;
  639. this.tabsFrom.title = this.titleName;
  640. this.FormData.meterId = this.meterId;
  641. this.FormData.queryDate = parseUnixTime(new Date(), '{y}-{m}-{d}');
  642. this.FormData2.meterId = this.meterId;
  643. this.FormData2.queryDate = parseUnixTime(new Date(), '{y}-{m}-{d}');
  644. this.FormData.type = 4;
  645. this.value = '4';
  646. this.getTimeSlotStatistics();
  647. this.getElectricityStatistics();
  648. this.getMeterDetails(this.meterId);
  649. },
  650. queryDate(queryTime, day) {
  651. if (day) {
  652. this.FormData2.queryDate = queryTime;
  653. //this.FormData2.type =day?"9":"10"
  654. //this.value="-1"
  655. this.getTimeSlotStatistics();
  656. } else {
  657. this.FormData.queryDate = queryTime + "-01";
  658. this.FormData.type = 10;
  659. this.value = "10";
  660. this.list[5].name = queryTime;
  661. this.getElectricityStatistics();
  662. }
  663. },
  664. getCompanyInfoList() {
  665. uni.showLoading({
  666. title: "加载中",
  667. mask: true,
  668. })
  669. API.deviceCompanyList().then((response) => {
  670. uni.hideLoading();
  671. var list = response.data.companyInfoList;
  672. this.tabsFrom.selector1 = [];
  673. this.tabsFrom.selector1 = list.map(item => {
  674. if (item.remoteReadingMeterList.length != 0 && item.remoteMonitorMeterList.length != 0) {
  675. return {
  676. label: item.name,
  677. value: item.id,
  678. children: [
  679. // {
  680. // label: '抄表',
  681. // value: '1',
  682. // children: item.remoteReadingMeterList.map(item => {
  683. // return {
  684. // label: item.name,
  685. // value: item.id,
  686. // }
  687. // })
  688. // },
  689. {
  690. label: '监控表',
  691. value: '1',
  692. children: item.remoteMonitorMeterList.map(item => {
  693. return {
  694. label: item.name,
  695. value: item.id,
  696. }
  697. })
  698. }
  699. ]
  700. }
  701. } else if (item.remoteReadingMeterList.length != 0 && item.remoteMonitorMeterList.length == 0) {
  702. // return {
  703. // label: item.name,
  704. // value: item.id,
  705. // children: [{
  706. // label: '抄表',
  707. // value: '1',
  708. // children: item.remoteReadingMeterList.map(item => {
  709. // return {
  710. // label: item.name,
  711. // value: item.id,
  712. // }
  713. // })
  714. // }]
  715. // }
  716. } else if (item.remoteReadingMeterList.length == 0 && item.remoteMonitorMeterList.length != 0) {
  717. return {
  718. label: item.name,
  719. value: item.id,
  720. children: [{
  721. label: '监控表',
  722. value: '1',
  723. children: item.remoteMonitorMeterList.map(item => {
  724. return {
  725. label: item.name,
  726. value: item.id,
  727. }
  728. })
  729. }]
  730. }
  731. } else {
  732. }
  733. })
  734. }).catch(error => {
  735. uni.showToast({
  736. title: error,
  737. icon: "none"
  738. })
  739. })
  740. },
  741. getTimeSlotStatistics(interval) {
  742. if (!interval) {
  743. uni.showLoading({
  744. title: "加载中",
  745. mask: true,
  746. })
  747. }
  748. this.queryDay = parseUnixTime(new Date(this.FormData2.queryDate), '{y}年{m}月{d}日');
  749. API.timeSlotStatistics(this.FormData2).then((response) => {
  750. if (!interval) {
  751. uni.hideLoading();
  752. }
  753. this.hourMap = response.data.hourMap;
  754. this.sumQuantity = response.data.kwhMap.kwh;
  755. this.sumFee = response.data.kwhMap.fee;
  756. this.getBarCharts(this.hourMap, interval);
  757. if (!interval) {
  758. this.startInterval(); // 组件挂载后开始间隔
  759. }
  760. }).catch(error => {
  761. uni.showToast({
  762. title: error,
  763. icon: "none"
  764. })
  765. })
  766. },
  767. getElectricityStatistics(interval) {
  768. if (!interval) {
  769. uni.showLoading({
  770. title: "加载中",
  771. mask: true,
  772. })
  773. }
  774. var obj = {
  775. ...this.FormData
  776. }
  777. if (obj.type != 10) {
  778. this.list[5].name = '指定月份';
  779. }
  780. // if(obj.type==10){
  781. // obj.queryDate+="-01"
  782. // }
  783. API.electricityStatistics(obj).then((response) => {
  784. if (!interval) {
  785. uni.hideLoading();
  786. }
  787. this.showTop = [0, 0, 0, 0, 0, 0, 0, 0]
  788. var electricity = response.data.kwhMap.kwh + "";
  789. this.electricity = response.data.kwhMap.kwh;
  790. this.fee = response.data.kwhMap.fee;
  791. if (electricity) {
  792. var sz = electricity.split(".")
  793. var str1 = sz[0];
  794. var str2 = [];
  795. if (sz.length > 1) {
  796. str2 = sz[1];
  797. this.showTop[7] = str2[0];
  798. }
  799. var j = 0;
  800. for (var i in str1) {
  801. if (i != undefined) {
  802. this.showTop[6 - str1.length + j + 1] = str1[i]
  803. }
  804. j++;
  805. }
  806. this.$forceUpdate()
  807. }
  808. if (!interval) {
  809. this.startInterval(); // 组件挂载后开始间隔
  810. }
  811. }).catch(error => {
  812. uni.showToast({
  813. title: error,
  814. icon: "none"
  815. })
  816. })
  817. },
  818. getBarCharts(list, interval) {
  819. if (!this.myChart) {
  820. this.myChart = echarts.init(document.getElementById('barEcharts'), null, {
  821. // width: uni.upx2px(700),
  822. height: uni.upx2px(480)
  823. });
  824. }
  825. if (!interval) {
  826. this.myChart.clear();
  827. }
  828. var data1 = [];
  829. var data2 = [];
  830. // var sumQuantity=0
  831. for (var i in list) {
  832. data1.push(i)
  833. data2.push(list[i].kwh)
  834. // sumQuantity+=list[i]
  835. }
  836. var axisLabel = {
  837. rotate: 40,
  838. interval: 0,
  839. textStyle: {
  840. color: "#333"
  841. }
  842. }
  843. if (data1.length < 4) {
  844. axisLabel = {
  845. interval: 0,
  846. textStyle: {
  847. color: "#333"
  848. },
  849. }
  850. }
  851. // this.sumQuantity = sumQuantity.toFixed(2);
  852. var headitemby = "";
  853. var showkey = "";
  854. var option = {
  855. tooltip: {
  856. trigger: 'axis',
  857. axisPointer: {
  858. type: 'shadow'
  859. },
  860. formatter: (value) => {
  861. var name = value[0].name;
  862. var obj=list[name]
  863. var text= `<p>${name}</p>`
  864. if (obj.electricityPrice != undefined) {
  865. text += `<p>电价:${obj.electricityPrice}元/度</p>`
  866. }
  867. if (obj.kwh != undefined) {
  868. text += `电量:${obj.kwh}度`
  869. }
  870. if (obj.amount != undefined) {
  871. text += ` <p>电费:${obj.amount}元</p>`
  872. }
  873. return text
  874. }
  875. },
  876. grid: {
  877. top: 20,
  878. left: 5,
  879. right: 10,
  880. bottom: 20,
  881. containLabel: true
  882. },
  883. xAxis: {
  884. type: 'category',
  885. data: data1,
  886. axisLabel: axisLabel,
  887. },
  888. yAxis: {
  889. type: 'value',
  890. },
  891. series: [{
  892. name: '合计',
  893. data: data2,
  894. type: 'bar',
  895. label: {
  896. show: true,
  897. position: 'top',
  898. color: '#5C7BD9'
  899. }
  900. }]
  901. }
  902. console.log(option)
  903. this.myChart.setOption(option);
  904. },
  905. selector2confirm(e) {
  906. this.tabsFrom.show2Text = e.year + "年" + e.month + "月"
  907. this.tabsFrom.show2Index = e.year + "-" + e.month
  908. if (e.day) {
  909. this.tabsFrom.show2Text += e.day + "日"
  910. this.tabsFrom.show2Index += '-' + e.day
  911. this.queryDate(this.tabsFrom.show2Index, true)
  912. } else {
  913. this.queryDate(this.tabsFrom.show2Index, false)
  914. }
  915. },
  916. selector2cancel() {
  917. if(this.clickType != -1) {
  918. }
  919. this.value = this.clickType;
  920. },
  921. selector2reset(e) {
  922. console.log(e)
  923. this.tabsFrom.show2Text = '全部时间'
  924. this.tabsFrom.show2Index = '';
  925. if (e.day) {
  926. this.FormData2.queryDate = parseUnixTime(new Date(), '{y}-{m}-{d}');
  927. this.queryDay = parseUnixTime(new Date(this.FormData2.queryDate), '{y}年{m}月{d}日');
  928. this.getTimeSlotStatistics();
  929. } else {
  930. this.clickType="4"
  931. this.FormData.type = this.clickType;
  932. this.value = this.clickType;
  933. if (this.value != 10) {
  934. this.list[5].name = '指定月份';
  935. }
  936. this.getElectricityStatistics();
  937. }
  938. },
  939. // 选中某个单选框时,由radio时触发
  940. radioChange(e) {
  941. console.log(`选择前的值: ${this.value}`);
  942. //this.clickType = this.value;
  943. },
  944. // 选中任一radio时,由radio-group触发
  945. radioGroupChange(e) {
  946. console.log(e)
  947. this.clickType = this.FormData.type;
  948. this.FormData.type = e;
  949. if (e == 10) {
  950. this.tabsFrom.show2 = true;
  951. this.params.day = false;
  952. } else {
  953. this.list[5].name = '指定月份'
  954. this.getElectricityStatistics();
  955. }
  956. },
  957. backDataMonitoringList() {
  958. uni.navigateBack()
  959. },
  960. }
  961. };
  962. </script>
  963. <style lang="scss" scoped>
  964. page {
  965. padding-bottom: 184rpx;
  966. }
  967. /deep/.u-select__header__title {
  968. font-size: 36rpx;
  969. font-weight: bold;
  970. }
  971. .navbar-c {
  972. background-color: rgba(22, 119, 255, 1);
  973. position: fixed;
  974. top: 0;
  975. left: 0;
  976. right: 0;
  977. z-index: 999;
  978. width: 100%;
  979. .back {
  980. z-index: 999;
  981. width: 200rpx;
  982. }
  983. .title {
  984. color: #fff;
  985. display: flex;
  986. align-items: center;
  987. justify-content: center;
  988. flex: 1;
  989. .e{
  990. width: 70%;
  991. white-space: nowrap;
  992. text-overflow: ellipsis;
  993. overflow: hidden;
  994. }
  995. }
  996. .right {
  997. .img {
  998. width: 48rpx;
  999. height: 48rpx;
  1000. }
  1001. }
  1002. }
  1003. /deep/.uicon-nav-back {
  1004. color: #fff !important;
  1005. }
  1006. .background {
  1007. background-color: rgba(22, 119, 255, 1);
  1008. padding-top: 88rpx;
  1009. height: 150px;
  1010. padding-bottom: 100rpx;
  1011. position: relative;
  1012. /deep/.u-border-bottom:after {
  1013. border: none;
  1014. }
  1015. .u-nav-slot {
  1016. margin-right: 32rpx;
  1017. .img {
  1018. width: 48rpx;
  1019. height: 48rpx;
  1020. vertical-align: middle;
  1021. }
  1022. }
  1023. }
  1024. .background::after {
  1025. content: '';
  1026. position: absolute;
  1027. bottom:-39rpx;
  1028. width: 100%;
  1029. height: 40rpx; /* 弧形的高度 */
  1030. background-color: rgba(22, 119, 255, 1); /* 弧形的颜色 */
  1031. border-radius: 50%; /* 创建圆形 */
  1032. border-top-left-radius: 0;
  1033. border-top-right-radius: 0;
  1034. }
  1035. // // 日期
  1036. .date-box {
  1037. display: flex;
  1038. align-items: center;
  1039. justify-content: space-between;
  1040. margin: 24rpx 32rpx;
  1041. .item {
  1042. border-radius: 8px;
  1043. background-color: rgba(255, 255, 255, 0.1);
  1044. border: 1px solid rgba(255, 255, 255, 0.15);
  1045. width: 120rpx;
  1046. height: 120rpx;
  1047. color: #fff;
  1048. text-align: center;
  1049. display: flex;
  1050. flex-direction: column;
  1051. justify-content: center;
  1052. .date {
  1053. font-size: 40rpx;
  1054. }
  1055. }
  1056. .item-today {
  1057. background-color: rgba(255, 255, 255, 1);
  1058. position: relative;
  1059. .date {
  1060. color: rgba(22, 119, 255, 1);
  1061. }
  1062. .week {
  1063. color: rgba(16, 16, 16, 1);
  1064. }
  1065. .dot {
  1066. width: 10rpx;
  1067. height: 10rpx;
  1068. background-color: rgba(255, 150, 0, 1);
  1069. border-radius: 999px;
  1070. position: absolute;
  1071. bottom: -5rpx;
  1072. left: 50%;
  1073. transform: translateX(-50%);
  1074. }
  1075. }
  1076. }
  1077. // 用电量
  1078. .electricity-consumption {
  1079. background-color: #fff;
  1080. padding: 32rpx 32rpx 0rpx;
  1081. border-radius: 8px;
  1082. margin: -188rpx 32rpx 0;
  1083. position: relative;
  1084. border: 1px solid rgba(255,255,255,1);
  1085. background: linear-gradient(180deg, rgba(187,216,255,1) 0%,rgba(255,255,255,1) 63%);
  1086. // 统计
  1087. .statistics-content{
  1088. display: flex;
  1089. align-items: center;
  1090. justify-content: space-between;
  1091. .statistics-item{
  1092. width: 300rpx;
  1093. padding: 24rpx 0 24rpx 24rpx;
  1094. border-radius: 8px;
  1095. box-shadow: 0px 0px 8px 0px rgba(22,119,255,0.3);
  1096. background-color: #fff;
  1097. }
  1098. .item-title{
  1099. color: rgba(22,119,255,1);
  1100. font-size: 32rpx;
  1101. display: flex;
  1102. align-items: center;
  1103. font-weight: bold;
  1104. .img{
  1105. width: 32rpx;
  1106. height: 32rpx;
  1107. vertical-align: middle;
  1108. margin-right: 4rpx;
  1109. }
  1110. }
  1111. .item-title2{
  1112. color: rgba(129,97,255,1);
  1113. }
  1114. .item-value{
  1115. color: rgba(16,16,16,1);
  1116. font-size: 48rpx;
  1117. font-weight: bold;
  1118. margin-top: 8rpx;
  1119. overflow: hidden;
  1120. white-space: nowrap;
  1121. text-overflow: ellipsis;
  1122. text{
  1123. display: inline-block;
  1124. width: 80%;
  1125. margin-right: 4rpx;
  1126. }
  1127. }
  1128. }
  1129. .title {
  1130. color: rgba(16, 16, 16, 1);
  1131. font-size: 36rpx;
  1132. }
  1133. .degree {
  1134. display: flex;
  1135. margin-top: 32rpx;
  1136. .item {
  1137. margin-right: 6rpx;
  1138. text-align: center;
  1139. .item-text {
  1140. color: rgba(16, 16, 16, 1);
  1141. }
  1142. .item-number {
  1143. margin-top: 24rpx;
  1144. width: 72rpx;
  1145. height: 96rpx;
  1146. background-color: rgba(16, 16, 16, 1);
  1147. color: #fff;
  1148. font-size: 72rpx;
  1149. }
  1150. .decimal {
  1151. background-color: #900005;
  1152. }
  1153. }
  1154. }
  1155. // .tab {
  1156. // width: 240rpx;
  1157. // height: 0;
  1158. // border-width: 0px 48rpx 72rpx 0px;
  1159. // border-radius: 8px 8px 0 0;
  1160. // border-style: none solid solid none;
  1161. // border-color: transparent transparent #fff;
  1162. // position: absolute;
  1163. // top: -72rpx;
  1164. // left: 0rpx;
  1165. // right: 0rpx;
  1166. // color: #101010;
  1167. // color: rgba(16, 16, 16, 1);
  1168. // text-align: center;
  1169. // line-height: 72rpx;
  1170. // z-index: 999;
  1171. // text-indent: 16rpx;
  1172. // }
  1173. // .tab2 {
  1174. // width: 240rpx;
  1175. // height: 0;
  1176. // border-width: 0px 48rpx 72rpx 0px;
  1177. // border-radius: 8px 8px 0 0;
  1178. // border-style: none solid solid none;
  1179. // border-color: transparent transparent #D4DBE4;
  1180. // position: absolute;
  1181. // top: -72rpx;
  1182. // left: 210rpx;
  1183. // right: 0rpx;
  1184. // color: #777777;
  1185. // text-align: center;
  1186. // line-height: 72rpx;
  1187. // text-indent: 16rpx;
  1188. // }
  1189. .radio {
  1190. margin-top: 24rpx;
  1191. padding-left: 8rpx;
  1192. /deep/.u-radio {
  1193. margin-bottom: 8px;
  1194. min-width: 25% !important;
  1195. }
  1196. /deep/.u-radio__label{
  1197. margin-left: 24rpx;
  1198. font-size: 28rpx; ;
  1199. }
  1200. }
  1201. }
  1202. //各时段用电量
  1203. .electricity-chart {
  1204. margin: 24rpx 32rpx;
  1205. padding: 40rpx 0rpx;
  1206. background-color: #fff;
  1207. border-radius: 8px;
  1208. .title {
  1209. display: flex;
  1210. align-items: center;
  1211. justify-content: space-between;
  1212. padding: 0 32rpx;
  1213. margin-bottom: 40rpx;
  1214. .icon {
  1215. width: 36rpx;
  1216. height: 36rpx;
  1217. background-color: rgba(182, 212, 255, 1);
  1218. border: 6px solid rgba(22, 119, 255, 1);
  1219. border-radius: 100px;
  1220. }
  1221. .text {
  1222. color: rgba(51, 51, 51, 1);
  1223. font-size: 36rpx;
  1224. margin-left: 16rpx;
  1225. font-weight: bold;
  1226. }
  1227. .more {
  1228. margin-left: auto;
  1229. border: 1px solid rgba(187,187,187,1);
  1230. border-radius: 4px;
  1231. padding: 8rpx;
  1232. font-size: 24rpx;
  1233. }
  1234. }
  1235. .total{
  1236. text-align: center;
  1237. color: rgba(51,51,51,1);
  1238. font-weight: bold;
  1239. }
  1240. .chart {
  1241. width: 100%;
  1242. height: 500rpx;
  1243. .img {
  1244. width: 100%;
  1245. height: 440rpx;
  1246. }
  1247. }
  1248. }
  1249. .equipment-information {
  1250. margin: 24rpx 32rpx;
  1251. padding: 40rpx 0rpx;
  1252. background-color: #fff;
  1253. border-radius: 8px;
  1254. .title {
  1255. display: flex;
  1256. align-items: center;
  1257. padding: 0 32rpx;
  1258. margin-bottom: 40rpx;
  1259. .icon {
  1260. width: 36rpx;
  1261. height: 36rpx;
  1262. background-color: rgba(182, 212, 255, 1);
  1263. border: 6px solid rgba(22, 119, 255, 1);
  1264. border-radius: 100px;
  1265. }
  1266. .text {
  1267. display: flex;
  1268. align-items: center;
  1269. color: rgba(51, 51, 51, 1);
  1270. font-size: 36rpx;
  1271. margin-left: 16rpx;
  1272. font-weight: bold;
  1273. }
  1274. .date {
  1275. margin-left: auto;
  1276. }
  1277. .more {
  1278. color: #838383;
  1279. font-size: 24rpx;
  1280. margin-left: auto;
  1281. }
  1282. }
  1283. .chart {
  1284. width: 100%;
  1285. height: 440rpx;
  1286. .img {
  1287. width: 100%;
  1288. height: 440rpx;
  1289. }
  1290. }
  1291. .infos {
  1292. padding: 0 32rpx;
  1293. display: flex;
  1294. justify-content: space-between;
  1295. text-align: center;
  1296. .border {
  1297. margin: auto 0;
  1298. height: 70rpx;
  1299. width: 2rpx;
  1300. background-color: rgba(204, 204, 204, 1);
  1301. ;
  1302. }
  1303. .item-title {
  1304. color: rgba(119, 119, 119, 1);
  1305. }
  1306. .item-value {
  1307. color: rgba(16, 16, 16, 1);
  1308. font-size: 32rpx;
  1309. margin-top: 16rpx;
  1310. }
  1311. }
  1312. }
  1313. // 异常
  1314. .abnormal {
  1315. margin: 24rpx 32rpx;
  1316. padding: 40rpx 32rpx;
  1317. background-color: #fff;
  1318. border-radius: 8px;
  1319. .headline {
  1320. display: flex;
  1321. align-items: center;
  1322. justify-content: space-between;
  1323. }
  1324. .title {
  1325. display: flex;
  1326. align-items: center;
  1327. font-weight: bold;
  1328. .icon {
  1329. width: 36rpx;
  1330. height: 36rpx;
  1331. background-color: rgba(182, 212, 255, 1);
  1332. border: 6px solid rgba(22, 119, 255, 1);
  1333. border-radius: 100px;
  1334. }
  1335. .text {
  1336. color: rgba(51, 51, 51, 1);
  1337. font-size: 36rpx;
  1338. margin-left: 16rpx;
  1339. }
  1340. }
  1341. .more {
  1342. color: #838383;
  1343. font-size: 24rpx
  1344. }
  1345. .details {
  1346. margin-top: 40rpx;
  1347. .item {
  1348. display: flex;
  1349. align-items: center;
  1350. justify-content: space-between;
  1351. margin-top: 32rpx;
  1352. .name {
  1353. color: rgba(51, 51, 51, 1);
  1354. }
  1355. .time {
  1356. color: rgba(119, 119, 119, 1);
  1357. font-size: 24rpx;
  1358. display: flex;
  1359. align-items: center;
  1360. .more{
  1361. margin-left: 4rpx;
  1362. }
  1363. }
  1364. }
  1365. }
  1366. }
  1367. // 能源监测
  1368. .energy-inspection,
  1369. .data-analysis {
  1370. margin: 24rpx 32rpx;
  1371. padding: 40rpx 32rpx;
  1372. background-color: #fff;
  1373. border-radius: 8px;
  1374. .title {
  1375. display: flex;
  1376. align-items: center;
  1377. font-weight: bold;
  1378. .icon {
  1379. width: 36rpx;
  1380. height: 36rpx;
  1381. background-color: rgba(182, 212, 255, 1);
  1382. border: 6px solid rgba(22, 119, 255, 1);
  1383. border-radius: 100px;
  1384. }
  1385. .text {
  1386. color: rgba(51, 51, 51, 1);
  1387. font-size: 36rpx;
  1388. margin-left: 16rpx;
  1389. }
  1390. }
  1391. .grid {
  1392. .icon {
  1393. width: 128rpx;
  1394. height: 128rpx;
  1395. border-radius: 12px;
  1396. background-color: rgba(35, 186, 178, 1);
  1397. display: flex;
  1398. align-items: center;
  1399. justify-content: center;
  1400. margin-bottom: 16rpx;
  1401. .img {
  1402. width: 80rpx;
  1403. height: 80rpx;
  1404. }
  1405. }
  1406. .icon2 {
  1407. background-color: rgba(42, 186, 72, 1);
  1408. }
  1409. .icon3 {
  1410. background-color: rgba(78, 96, 246, 1);
  1411. }
  1412. .icon4 {
  1413. background-color: rgba(22, 119, 255, 1);
  1414. }
  1415. .icon5 {
  1416. background-color: rgba(35, 186, 178, 1);
  1417. }
  1418. .icon6 {
  1419. background-color: rgba(42, 186, 72, 1);
  1420. }
  1421. .icon7 {
  1422. background-color: rgba(22, 119, 255, 1);
  1423. }
  1424. .icon8 {
  1425. background-color: rgba(35, 186, 178, 1);
  1426. }
  1427. .icon9 {
  1428. background-color: rgba(42, 186, 72, 1);
  1429. }
  1430. .grid-text {
  1431. color: #333333;
  1432. }
  1433. }
  1434. }
  1435. // 设备信息弹窗
  1436. .equipment-popup {
  1437. .content {
  1438. padding: 32rpx;
  1439. .headline {
  1440. color: rgba(16, 16, 16, 1);
  1441. font-size: 36rpx;
  1442. text-align: center;
  1443. font-weight: bold;
  1444. margin-bottom: 24rpx;
  1445. }
  1446. .infos {
  1447. padding-bottom: 100rpx;
  1448. .item:last-of-type {
  1449. border: none;
  1450. }
  1451. .item {
  1452. display: flex;
  1453. align-items: center;
  1454. line-height: 48rpx;
  1455. padding: 24rpx 0;
  1456. border-bottom: 1px solid #cccccc;
  1457. .item-title {
  1458. color: rgba(51, 51, 51, 1);
  1459. width: 200rpx;
  1460. }
  1461. .item-value {
  1462. color: #666666;
  1463. flex: 1;
  1464. margin-left: 16rpx;
  1465. display: flex;
  1466. align-items: center;
  1467. justify-content: space-between;
  1468. .img{
  1469. width: 32rpx;
  1470. height: 32rpx;
  1471. transform: rotate(90deg);
  1472. margin-left: 96rpx;
  1473. }
  1474. }
  1475. }
  1476. }
  1477. .get {
  1478. height: 80rpx;
  1479. line-height: 80rpx;
  1480. border-radius: 4px;
  1481. background-color: rgba(22, 119, 255, 1);
  1482. color: rgba(255, 255, 255, 1);
  1483. font-size: 32rpx;
  1484. }
  1485. }
  1486. }
  1487. // 创建工单
  1488. .create-order {
  1489. width: 120rpx;
  1490. height: 120rpx;
  1491. border-radius: 20px;
  1492. background: linear-gradient(180.29deg, rgba(255, 124, 112, 1) 0.9%, rgba(255, 79, 63, 1) 100.4%);
  1493. box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.4);
  1494. text-align: center;
  1495. display: flex;
  1496. flex-direction: column;
  1497. justify-content: center;
  1498. align-items: center;
  1499. position: fixed;
  1500. right: 32rpx;
  1501. bottom: 64rpx;
  1502. .img {
  1503. width: 56rpx;
  1504. height: 56rpx;
  1505. vertical-align: middle;
  1506. }
  1507. .text {
  1508. color: rgba(255, 255, 255, 1);
  1509. font-size: 22rpx;
  1510. }
  1511. }
  1512. </style>