electronicMonitoring.vue 36 KB

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