electronicMonitoring.vue 36 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696
  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: '2',
  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 = 2;
  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 = 2;
  631. this.value = '2';
  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 = 2;
  645. this.value = '2';
  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.FormData.type = this.clickType;
  931. this.value = this.clickType;
  932. if (this.value != 10) {
  933. this.list[5].name = '指定月份';
  934. }
  935. this.getElectricityStatistics();
  936. }
  937. },
  938. // 选中某个单选框时,由radio时触发
  939. radioChange(e) {
  940. console.log(`选择前的值: ${this.value}`);
  941. //this.clickType = this.value;
  942. },
  943. // 选中任一radio时,由radio-group触发
  944. radioGroupChange(e) {
  945. console.log(e)
  946. this.clickType = this.FormData.type;
  947. this.FormData.type = e;
  948. if (e == 10) {
  949. this.tabsFrom.show2 = true;
  950. this.params.day = false;
  951. } else {
  952. this.list[5].name = '指定月份'
  953. this.getElectricityStatistics();
  954. }
  955. },
  956. backDataMonitoringList() {
  957. uni.navigateBack()
  958. },
  959. }
  960. };
  961. </script>
  962. <style lang="scss" scoped>
  963. page {
  964. padding-bottom: 184rpx;
  965. }
  966. /deep/.u-select__header__title {
  967. font-size: 36rpx;
  968. font-weight: bold;
  969. }
  970. .navbar-c {
  971. background-color: rgba(22, 119, 255, 1);
  972. position: fixed;
  973. top: 0;
  974. left: 0;
  975. right: 0;
  976. z-index: 999;
  977. width: 100%;
  978. .back {
  979. z-index: 999;
  980. width: 200rpx;
  981. }
  982. .title {
  983. color: #fff;
  984. display: flex;
  985. align-items: center;
  986. justify-content: center;
  987. flex: 1;
  988. .e{
  989. width: 70%;
  990. white-space: nowrap;
  991. text-overflow: ellipsis;
  992. overflow: hidden;
  993. }
  994. }
  995. .right {
  996. .img {
  997. width: 48rpx;
  998. height: 48rpx;
  999. }
  1000. }
  1001. }
  1002. /deep/.uicon-nav-back {
  1003. color: #fff !important;
  1004. }
  1005. .background {
  1006. background-color: rgba(22, 119, 255, 1);
  1007. padding-top: 88rpx;
  1008. height: 150px;
  1009. padding-bottom: 100rpx;
  1010. position: relative;
  1011. /deep/.u-border-bottom:after {
  1012. border: none;
  1013. }
  1014. .u-nav-slot {
  1015. margin-right: 32rpx;
  1016. .img {
  1017. width: 48rpx;
  1018. height: 48rpx;
  1019. vertical-align: middle;
  1020. }
  1021. }
  1022. }
  1023. .background::after {
  1024. content: '';
  1025. position: absolute;
  1026. bottom:-39rpx;
  1027. width: 100%;
  1028. height: 40rpx; /* 弧形的高度 */
  1029. background-color: rgba(22, 119, 255, 1); /* 弧形的颜色 */
  1030. border-radius: 50%; /* 创建圆形 */
  1031. border-top-left-radius: 0;
  1032. border-top-right-radius: 0;
  1033. }
  1034. // // 日期
  1035. .date-box {
  1036. display: flex;
  1037. align-items: center;
  1038. justify-content: space-between;
  1039. margin: 24rpx 32rpx;
  1040. .item {
  1041. border-radius: 8px;
  1042. background-color: rgba(255, 255, 255, 0.1);
  1043. border: 1px solid rgba(255, 255, 255, 0.15);
  1044. width: 120rpx;
  1045. height: 120rpx;
  1046. color: #fff;
  1047. text-align: center;
  1048. display: flex;
  1049. flex-direction: column;
  1050. justify-content: center;
  1051. .date {
  1052. font-size: 40rpx;
  1053. }
  1054. }
  1055. .item-today {
  1056. background-color: rgba(255, 255, 255, 1);
  1057. position: relative;
  1058. .date {
  1059. color: rgba(22, 119, 255, 1);
  1060. }
  1061. .week {
  1062. color: rgba(16, 16, 16, 1);
  1063. }
  1064. .dot {
  1065. width: 10rpx;
  1066. height: 10rpx;
  1067. background-color: rgba(255, 150, 0, 1);
  1068. border-radius: 999px;
  1069. position: absolute;
  1070. bottom: -5rpx;
  1071. left: 50%;
  1072. transform: translateX(-50%);
  1073. }
  1074. }
  1075. }
  1076. // 用电量
  1077. .electricity-consumption {
  1078. background-color: #fff;
  1079. padding: 32rpx 32rpx 0rpx;
  1080. border-radius: 8px;
  1081. margin: -188rpx 32rpx 0;
  1082. position: relative;
  1083. border: 1px solid rgba(255,255,255,1);
  1084. background: linear-gradient(180deg, rgba(187,216,255,1) 0%,rgba(255,255,255,1) 63%);
  1085. // 统计
  1086. .statistics-content{
  1087. display: flex;
  1088. align-items: center;
  1089. justify-content: space-between;
  1090. .statistics-item{
  1091. width: 300rpx;
  1092. padding: 24rpx 0 24rpx 24rpx;
  1093. border-radius: 8px;
  1094. box-shadow: 0px 0px 8px 0px rgba(22,119,255,0.3);
  1095. background-color: #fff;
  1096. }
  1097. .item-title{
  1098. color: rgba(22,119,255,1);
  1099. font-size: 32rpx;
  1100. display: flex;
  1101. align-items: center;
  1102. font-weight: bold;
  1103. .img{
  1104. width: 32rpx;
  1105. height: 32rpx;
  1106. vertical-align: middle;
  1107. margin-right: 4rpx;
  1108. }
  1109. }
  1110. .item-title2{
  1111. color: rgba(129,97,255,1);
  1112. }
  1113. .item-value{
  1114. color: rgba(16,16,16,1);
  1115. font-size: 48rpx;
  1116. font-weight: bold;
  1117. margin-top: 8rpx;
  1118. overflow: hidden;
  1119. white-space: nowrap;
  1120. text-overflow: ellipsis;
  1121. text{
  1122. display: inline-block;
  1123. width: 80%;
  1124. margin-right: 4rpx;
  1125. }
  1126. }
  1127. }
  1128. .title {
  1129. color: rgba(16, 16, 16, 1);
  1130. font-size: 36rpx;
  1131. }
  1132. .degree {
  1133. display: flex;
  1134. margin-top: 32rpx;
  1135. .item {
  1136. margin-right: 6rpx;
  1137. text-align: center;
  1138. .item-text {
  1139. color: rgba(16, 16, 16, 1);
  1140. }
  1141. .item-number {
  1142. margin-top: 24rpx;
  1143. width: 72rpx;
  1144. height: 96rpx;
  1145. background-color: rgba(16, 16, 16, 1);
  1146. color: #fff;
  1147. font-size: 72rpx;
  1148. }
  1149. .decimal {
  1150. background-color: #900005;
  1151. }
  1152. }
  1153. }
  1154. // .tab {
  1155. // width: 240rpx;
  1156. // height: 0;
  1157. // border-width: 0px 48rpx 72rpx 0px;
  1158. // border-radius: 8px 8px 0 0;
  1159. // border-style: none solid solid none;
  1160. // border-color: transparent transparent #fff;
  1161. // position: absolute;
  1162. // top: -72rpx;
  1163. // left: 0rpx;
  1164. // right: 0rpx;
  1165. // color: #101010;
  1166. // color: rgba(16, 16, 16, 1);
  1167. // text-align: center;
  1168. // line-height: 72rpx;
  1169. // z-index: 999;
  1170. // text-indent: 16rpx;
  1171. // }
  1172. // .tab2 {
  1173. // width: 240rpx;
  1174. // height: 0;
  1175. // border-width: 0px 48rpx 72rpx 0px;
  1176. // border-radius: 8px 8px 0 0;
  1177. // border-style: none solid solid none;
  1178. // border-color: transparent transparent #D4DBE4;
  1179. // position: absolute;
  1180. // top: -72rpx;
  1181. // left: 210rpx;
  1182. // right: 0rpx;
  1183. // color: #777777;
  1184. // text-align: center;
  1185. // line-height: 72rpx;
  1186. // text-indent: 16rpx;
  1187. // }
  1188. .radio {
  1189. margin-top: 24rpx;
  1190. padding-left: 8rpx;
  1191. /deep/.u-radio {
  1192. margin-bottom: 8px;
  1193. min-width: 25% !important;
  1194. }
  1195. /deep/.u-radio__label{
  1196. margin-left: 24rpx;
  1197. font-size: 28rpx; ;
  1198. }
  1199. }
  1200. }
  1201. //各时段用电量
  1202. .electricity-chart {
  1203. margin: 24rpx 32rpx;
  1204. padding: 40rpx 0rpx;
  1205. background-color: #fff;
  1206. border-radius: 8px;
  1207. .title {
  1208. display: flex;
  1209. align-items: center;
  1210. justify-content: space-between;
  1211. padding: 0 32rpx;
  1212. margin-bottom: 40rpx;
  1213. .icon {
  1214. width: 36rpx;
  1215. height: 36rpx;
  1216. background-color: rgba(182, 212, 255, 1);
  1217. border: 6px solid rgba(22, 119, 255, 1);
  1218. border-radius: 100px;
  1219. }
  1220. .text {
  1221. color: rgba(51, 51, 51, 1);
  1222. font-size: 36rpx;
  1223. margin-left: 16rpx;
  1224. font-weight: bold;
  1225. }
  1226. .more {
  1227. margin-left: auto;
  1228. border: 1px solid rgba(187,187,187,1);
  1229. border-radius: 4px;
  1230. padding: 8rpx;
  1231. font-size: 24rpx;
  1232. }
  1233. }
  1234. .total{
  1235. text-align: center;
  1236. color: rgba(51,51,51,1);
  1237. font-weight: bold;
  1238. }
  1239. .chart {
  1240. width: 100%;
  1241. height: 500rpx;
  1242. .img {
  1243. width: 100%;
  1244. height: 440rpx;
  1245. }
  1246. }
  1247. }
  1248. .equipment-information {
  1249. margin: 24rpx 32rpx;
  1250. padding: 40rpx 0rpx;
  1251. background-color: #fff;
  1252. border-radius: 8px;
  1253. .title {
  1254. display: flex;
  1255. align-items: center;
  1256. padding: 0 32rpx;
  1257. margin-bottom: 40rpx;
  1258. .icon {
  1259. width: 36rpx;
  1260. height: 36rpx;
  1261. background-color: rgba(182, 212, 255, 1);
  1262. border: 6px solid rgba(22, 119, 255, 1);
  1263. border-radius: 100px;
  1264. }
  1265. .text {
  1266. display: flex;
  1267. align-items: center;
  1268. color: rgba(51, 51, 51, 1);
  1269. font-size: 36rpx;
  1270. margin-left: 16rpx;
  1271. font-weight: bold;
  1272. }
  1273. .date {
  1274. margin-left: auto;
  1275. }
  1276. .more {
  1277. color: #838383;
  1278. font-size: 24rpx;
  1279. margin-left: auto;
  1280. }
  1281. }
  1282. .chart {
  1283. width: 100%;
  1284. height: 440rpx;
  1285. .img {
  1286. width: 100%;
  1287. height: 440rpx;
  1288. }
  1289. }
  1290. .infos {
  1291. padding: 0 32rpx;
  1292. display: flex;
  1293. justify-content: space-between;
  1294. text-align: center;
  1295. .border {
  1296. margin: auto 0;
  1297. height: 70rpx;
  1298. width: 2rpx;
  1299. background-color: rgba(204, 204, 204, 1);
  1300. ;
  1301. }
  1302. .item-title {
  1303. color: rgba(119, 119, 119, 1);
  1304. }
  1305. .item-value {
  1306. color: rgba(16, 16, 16, 1);
  1307. font-size: 32rpx;
  1308. margin-top: 16rpx;
  1309. }
  1310. }
  1311. }
  1312. // 异常
  1313. .abnormal {
  1314. margin: 24rpx 32rpx;
  1315. padding: 40rpx 32rpx;
  1316. background-color: #fff;
  1317. border-radius: 8px;
  1318. .headline {
  1319. display: flex;
  1320. align-items: center;
  1321. justify-content: space-between;
  1322. }
  1323. .title {
  1324. display: flex;
  1325. align-items: center;
  1326. font-weight: bold;
  1327. .icon {
  1328. width: 36rpx;
  1329. height: 36rpx;
  1330. background-color: rgba(182, 212, 255, 1);
  1331. border: 6px solid rgba(22, 119, 255, 1);
  1332. border-radius: 100px;
  1333. }
  1334. .text {
  1335. color: rgba(51, 51, 51, 1);
  1336. font-size: 36rpx;
  1337. margin-left: 16rpx;
  1338. }
  1339. }
  1340. .more {
  1341. color: #838383;
  1342. font-size: 24rpx
  1343. }
  1344. .details {
  1345. margin-top: 40rpx;
  1346. .item {
  1347. display: flex;
  1348. align-items: center;
  1349. justify-content: space-between;
  1350. margin-top: 32rpx;
  1351. .name {
  1352. color: rgba(51, 51, 51, 1);
  1353. }
  1354. .time {
  1355. color: rgba(119, 119, 119, 1);
  1356. font-size: 24rpx;
  1357. display: flex;
  1358. align-items: center;
  1359. .more{
  1360. margin-left: 4rpx;
  1361. }
  1362. }
  1363. }
  1364. }
  1365. }
  1366. // 能源监测
  1367. .energy-inspection,
  1368. .data-analysis {
  1369. margin: 24rpx 32rpx;
  1370. padding: 40rpx 32rpx;
  1371. background-color: #fff;
  1372. border-radius: 8px;
  1373. .title {
  1374. display: flex;
  1375. align-items: center;
  1376. font-weight: bold;
  1377. .icon {
  1378. width: 36rpx;
  1379. height: 36rpx;
  1380. background-color: rgba(182, 212, 255, 1);
  1381. border: 6px solid rgba(22, 119, 255, 1);
  1382. border-radius: 100px;
  1383. }
  1384. .text {
  1385. color: rgba(51, 51, 51, 1);
  1386. font-size: 36rpx;
  1387. margin-left: 16rpx;
  1388. }
  1389. }
  1390. .grid {
  1391. .icon {
  1392. width: 128rpx;
  1393. height: 128rpx;
  1394. border-radius: 12px;
  1395. background-color: rgba(35, 186, 178, 1);
  1396. display: flex;
  1397. align-items: center;
  1398. justify-content: center;
  1399. margin-bottom: 16rpx;
  1400. .img {
  1401. width: 80rpx;
  1402. height: 80rpx;
  1403. }
  1404. }
  1405. .icon2 {
  1406. background-color: rgba(42, 186, 72, 1);
  1407. }
  1408. .icon3 {
  1409. background-color: rgba(78, 96, 246, 1);
  1410. }
  1411. .icon4 {
  1412. background-color: rgba(22, 119, 255, 1);
  1413. }
  1414. .icon5 {
  1415. background-color: rgba(35, 186, 178, 1);
  1416. }
  1417. .icon6 {
  1418. background-color: rgba(42, 186, 72, 1);
  1419. }
  1420. .icon7 {
  1421. background-color: rgba(22, 119, 255, 1);
  1422. }
  1423. .icon8 {
  1424. background-color: rgba(35, 186, 178, 1);
  1425. }
  1426. .icon9 {
  1427. background-color: rgba(42, 186, 72, 1);
  1428. }
  1429. .grid-text {
  1430. color: #333333;
  1431. }
  1432. }
  1433. }
  1434. // 设备信息弹窗
  1435. .equipment-popup {
  1436. .content {
  1437. padding: 32rpx;
  1438. .headline {
  1439. color: rgba(16, 16, 16, 1);
  1440. font-size: 36rpx;
  1441. text-align: center;
  1442. font-weight: bold;
  1443. margin-bottom: 24rpx;
  1444. }
  1445. .infos {
  1446. padding-bottom: 100rpx;
  1447. .item:last-of-type {
  1448. border: none;
  1449. }
  1450. .item {
  1451. display: flex;
  1452. align-items: center;
  1453. line-height: 48rpx;
  1454. padding: 24rpx 0;
  1455. border-bottom: 1px solid #cccccc;
  1456. .item-title {
  1457. color: rgba(51, 51, 51, 1);
  1458. width: 200rpx;
  1459. }
  1460. .item-value {
  1461. color: #666666;
  1462. flex: 1;
  1463. margin-left: 16rpx;
  1464. display: flex;
  1465. align-items: center;
  1466. justify-content: space-between;
  1467. .img{
  1468. width: 32rpx;
  1469. height: 32rpx;
  1470. transform: rotate(90deg);
  1471. margin-left: 96rpx;
  1472. }
  1473. }
  1474. }
  1475. }
  1476. .get {
  1477. height: 80rpx;
  1478. line-height: 80rpx;
  1479. border-radius: 4px;
  1480. background-color: rgba(22, 119, 255, 1);
  1481. color: rgba(255, 255, 255, 1);
  1482. font-size: 32rpx;
  1483. }
  1484. }
  1485. }
  1486. // 创建工单
  1487. .create-order {
  1488. width: 120rpx;
  1489. height: 120rpx;
  1490. border-radius: 20px;
  1491. background: linear-gradient(180.29deg, rgba(255, 124, 112, 1) 0.9%, rgba(255, 79, 63, 1) 100.4%);
  1492. box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.4);
  1493. text-align: center;
  1494. display: flex;
  1495. flex-direction: column;
  1496. justify-content: center;
  1497. align-items: center;
  1498. position: fixed;
  1499. right: 32rpx;
  1500. bottom: 64rpx;
  1501. .img {
  1502. width: 56rpx;
  1503. height: 56rpx;
  1504. vertical-align: middle;
  1505. }
  1506. .text {
  1507. color: rgba(255, 255, 255, 1);
  1508. font-size: 22rpx;
  1509. }
  1510. }
  1511. </style>