electronicMonitoring.vue 35 KB

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