LightMatrix3.vue 51 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876
  1. <template>
  2. <div class="light-matrix">
  3. <div class="panel">
  4. <div class="dot left top"></div>
  5. <div class="dot left bottom"></div>
  6. <div class="dot right top"></div>
  7. <div class="dot right bottom"></div>
  8. <div class="page-header">
  9. <div class="panel-item-gf">
  10. <div class="panel-item-gf-left">
  11. <div class="loop"></div>
  12. <span class="svg-icon svg-icon-gray svg-icon-md">
  13. <SvgIcon svgid="svg-wind-site"></SvgIcon>
  14. </span>
  15. </div>
  16. <div
  17. class="panel-item-gf-right curStyle"
  18. @click="changeShow( panelData.first.category)"
  19. >
  20. <div class="panel-item-gf-up">{{ panelData.first.text }}</div>
  21. <div class="panel-item-gf-down">
  22. {{ sourceMap[panelData.first.key] || "---" }}
  23. </div>
  24. </div>
  25. </div>
  26. <div class="header-info">
  27. <div
  28. class="panel-item"
  29. v-for="(data, index) of panelData.datas"
  30. :key="index"
  31. :class="data.color"
  32. >
  33. <div
  34. class="panel-item-left curStyle"
  35. @click="changeShow(data.category,data.fjZT)"
  36. >
  37. <div class="panel-item-li">
  38. <span>{{ data.name }}</span>
  39. </div>
  40. <div class="panel-item-li">
  41. <span v-if="data.calcStr && sourceMap">{{
  42. calcGfStr(data.calcStr) || "---"
  43. }}</span>
  44. <span v-else>{{ sourceMap[data.key] || "---" }}</span>
  45. </div>
  46. </div>
  47. <div class="panel-item-right curStyle">
  48. <div class="panel-item-ri" @click="changeShow(data.category1,data.fjZT)">
  49. <span>
  50. <i
  51. class="svg-icon svg-icon-sm"
  52. :class="'svg-icon-' + data.color"
  53. >
  54. <SvgIcon :svgid="data.nameIcon"></SvgIcon>
  55. </i>
  56. {{ data.text1 }}</span
  57. >
  58. <span>{{ sourceMap[data.key1] || "---" }}</span>
  59. </div>
  60. <div class="panel-item-ri" @click="changeShow(data.category2,data.fjZT)">
  61. <span>
  62. <i
  63. class="svg-icon svg-icon-sm"
  64. :class="'svg-icon-' + data.color"
  65. >
  66. <SvgIcon :svgid="data.numIcon"></SvgIcon>
  67. </i>
  68. {{ data.text2 }}
  69. </span>
  70. <span>{{ sourceMap[data.key2] || "---" }}</span>
  71. </div>
  72. </div>
  73. </div>
  74. </div>
  75. </div>
  76. </div>
  77. <el-scrollbar>
  78. <div class="panel-box">
  79. <div v-for="(pItem, pIndex) in sourceMap.fjmap" :key="pIndex">
  80. <div class="panel-title">
  81. <div class="panel-title-name">
  82. <i class="svg-icon svg-icon-sm svg-icon-green">
  83. <SvgIcon :svgid="'svg-wind-site'"></SvgIcon>
  84. </i>
  85. <span>{{ sourceMap.fczbmap[pItem[pIndex].wpId].name }}</span>
  86. <div
  87. class="sub-title-item"
  88. v-for="(data, index) of tables[0].subTitleDatas"
  89. :key="index"
  90. >
  91. <span class="sub-title">{{ data.text }}</span>
  92. <span class="sub-count" :class="data.color">{{
  93. sourceMap.fczbmap[pItem[pIndex].wpId][data.key]
  94. }}</span>
  95. </div>
  96. </div>
  97. </div>
  98. <div class="panel-body">
  99. <!-- 接入风机 -->
  100. <div
  101. class="card"
  102. v-for="(cItem, cIndex) in pItem"
  103. :key="cIndex"
  104. v-show="cItem.isShow"
  105. :class="cItem.color"
  106. @click="goDetails(cItem)"
  107. >
  108. <div class="card-panel">
  109. <div class="card-left">
  110. <div class="tag">{{ cItem.wtnum }}</div>
  111. <div class="icon">
  112. <span
  113. class="svg-icon svg-icon-sm"
  114. :class="
  115. cItem.color == 'black'
  116. ? 'svg-icon-black'
  117. : cItem.color == 'gray'
  118. ? 'svg-icon-gray'
  119. : 'svg-icon-write'
  120. "
  121. >
  122. <SvgIcon :svgid="mapping[cItem.color]"></SvgIcon>
  123. </span>
  124. </div>
  125. </div>
  126. <div class="card-right">
  127. <div class="num">
  128. <i
  129. class="svg-icon svg-icon-sm"
  130. :class="
  131. cItem.color != 'red'
  132. ? 'svg-icon-' + cItem.color
  133. : 'svg-icon-white'
  134. "
  135. >
  136. <SvgIcon svgid="svg-W"></SvgIcon>
  137. </i>
  138. <span>{{ cItem.fs }}</span>
  139. </div>
  140. <div class="num">
  141. <i
  142. class="svg-icon svg-icon-sm"
  143. :class="
  144. cItem.color != 'red'
  145. ? 'svg-icon-' + cItem.color
  146. : 'svg-icon-white'
  147. "
  148. >
  149. <SvgIcon svgid="svg-P"></SvgIcon>
  150. </i>
  151. <span>{{ cItem.gl }}</span>
  152. </div>
  153. <div class="num">
  154. <i
  155. class="svg-icon svg-icon-sm"
  156. :class="
  157. cItem.color != 'red'
  158. ? 'svg-icon-' + cItem.color
  159. : 'svg-icon-white'
  160. "
  161. >
  162. <SvgIcon svgid="svg-R"></SvgIcon>
  163. </i>
  164. <span>{{ cItem.fdjzs.toFixed(2) }}</span>
  165. </div>
  166. </div>
  167. </div>
  168. </div>
  169. <!-- 待机 -->
  170. <!-- <div
  171. class="card"
  172. v-for="(cItem, cIndex) in fjArr"
  173. :key="cIndex"
  174. :class="cItem.color"
  175. @click="goDetails(cItem)"
  176. >
  177. <div v-if="(fjStatus = 'dj')">
  178. <div class="card-panel">
  179. <div class="card-left">
  180. <div class="tag">{{ cItem.wtnum }}</div>
  181. <div class="icon">
  182. <span
  183. class="svg-icon svg-icon-sm"
  184. :class="
  185. cItem.color == 'black'
  186. ? 'svg-icon-black'
  187. : cItem.color == 'gray'
  188. ? 'svg-icon-gray'
  189. : 'svg-icon-write'
  190. "
  191. >
  192. <SvgIcon :svgid="mapping[cItem.color]"></SvgIcon>
  193. </span>
  194. </div>
  195. </div>
  196. <div class="card-right">
  197. <div class="num">
  198. <i
  199. class="svg-icon svg-icon-sm"
  200. :class="
  201. cItem.color != 'red'
  202. ? 'svg-icon-' + cItem.color
  203. : 'svg-icon-white'
  204. "
  205. >
  206. <SvgIcon svgid="svg-W"></SvgIcon>
  207. </i>
  208. <span>{{ cItem.fs }}</span>
  209. </div>
  210. <div class="num">
  211. <i
  212. class="svg-icon svg-icon-sm"
  213. :class="
  214. cItem.color != 'red'
  215. ? 'svg-icon-' + cItem.color
  216. : 'svg-icon-white'
  217. "
  218. >
  219. <SvgIcon svgid="svg-P"></SvgIcon>
  220. </i>
  221. <span>{{ cItem.gl }}</span>
  222. </div>
  223. <div class="num">
  224. <i
  225. class="svg-icon svg-icon-sm"
  226. :class="
  227. cItem.color != 'red'
  228. ? 'svg-icon-' + cItem.color
  229. : 'svg-icon-white'
  230. "
  231. >
  232. <SvgIcon svgid="svg-R"></SvgIcon>
  233. </i>
  234. <span>{{ cItem.fdjzs.toFixed(2) }}</span>
  235. </div>
  236. </div>
  237. </div>
  238. </div>
  239. </div> -->
  240. <!-- 运行 -->
  241. <!-- <div
  242. class="card"
  243. v-for="(cItem, cIndex) in fjArr"
  244. :key="cIndex"
  245. :class="cItem.color"
  246. @click="goDetails(cItem)"
  247. >
  248. <div v-if="fjStatus == 'yx'">
  249. <div class="card-panel">
  250. <div class="card-left">
  251. <div class="tag">{{ cItem.wtnum }}</div>
  252. <div class="icon">
  253. <span
  254. class="svg-icon svg-icon-sm"
  255. :class="
  256. cItem.color == 'black'
  257. ? 'svg-icon-black'
  258. : cItem.color == 'gray'
  259. ? 'svg-icon-gray'
  260. : 'svg-icon-write'
  261. "
  262. >
  263. <SvgIcon :svgid="mapping[cItem.color]"></SvgIcon>
  264. </span>
  265. </div>
  266. </div>
  267. <div class="card-right">
  268. <div class="num">
  269. <i
  270. class="svg-icon svg-icon-sm"
  271. :class="
  272. cItem.color != 'red'
  273. ? 'svg-icon-' + cItem.color
  274. : 'svg-icon-white'
  275. "
  276. >
  277. <SvgIcon svgid="svg-W"></SvgIcon>
  278. </i>
  279. <span>{{ cItem.fs }}</span>
  280. </div>
  281. <div class="num">
  282. <i
  283. class="svg-icon svg-icon-sm"
  284. :class="
  285. cItem.color != 'red'
  286. ? 'svg-icon-' + cItem.color
  287. : 'svg-icon-white'
  288. "
  289. >
  290. <SvgIcon svgid="svg-P"></SvgIcon>
  291. </i>
  292. <span>{{ cItem.gl }}</span>
  293. </div>
  294. <div class="num">
  295. <i
  296. class="svg-icon svg-icon-sm"
  297. :class="
  298. cItem.color != 'red'
  299. ? 'svg-icon-' + cItem.color
  300. : 'svg-icon-white'
  301. "
  302. >
  303. <SvgIcon svgid="svg-R"></SvgIcon>
  304. </i>
  305. <span>{{ cItem.fdjzs.toFixed(2) }}</span>
  306. </div>
  307. </div>
  308. </div>
  309. </div>
  310. </div> -->
  311. <!-- <div
  312. class="card"
  313. v-for="(cItem, cIndex) in pItem"
  314. :key="cIndex"
  315. :class="cItem.color"
  316. @click="goDetails(cItem)"
  317. >
  318. <div class="card-panel">
  319. <div class="card-left">
  320. <div class="tag">{{ cItem.wtnum }} </div>
  321. <div class="icon">
  322. <span
  323. class="svg-icon svg-icon-sm"
  324. :class="
  325. cItem.color == 'black'
  326. ? 'svg-icon-black'
  327. : cItem.color == 'gray'
  328. ? 'svg-icon-gray'
  329. : 'svg-icon-write'
  330. "
  331. >
  332. <SvgIcon :svgid="mapping[cItem.color]"></SvgIcon>
  333. </span>
  334. </div>
  335. </div>
  336. <div class="card-right">
  337. <div class="num">
  338. <i
  339. class="svg-icon svg-icon-sm"
  340. :class="
  341. cItem.color != 'red'
  342. ? 'svg-icon-' + cItem.color
  343. : 'svg-icon-white'
  344. "
  345. >
  346. <SvgIcon svgid="svg-W"></SvgIcon>
  347. </i>
  348. <span>{{ cItem.fs }}</span>
  349. </div>
  350. <div class="num">
  351. <i
  352. class="svg-icon svg-icon-sm"
  353. :class="
  354. cItem.color != 'red'
  355. ? 'svg-icon-' + cItem.color
  356. : 'svg-icon-white'
  357. "
  358. >
  359. <SvgIcon svgid="svg-P"></SvgIcon>
  360. </i>
  361. <span>{{ cItem.gl }}</span>
  362. </div>
  363. <div class="num">
  364. <i
  365. class="svg-icon svg-icon-sm"
  366. :class="
  367. cItem.color != 'red'
  368. ? 'svg-icon-' + cItem.color
  369. : 'svg-icon-white'
  370. "
  371. >
  372. <SvgIcon svgid="svg-R"></SvgIcon>
  373. </i>
  374. <span>{{ cItem.fdjzs.toFixed(2) }}</span>
  375. </div>
  376. </div>
  377. </div>
  378. </div> -->
  379. <i class="blank" v-for="i in pItem.length" :key="i"></i>
  380. </div>
  381. </div>
  382. </div>
  383. <!-- 待机 -->
  384. <!-- <div class="panel-box">
  385. <div v-for="(pItem, pIndex) in sourceMap.fjmap" :key="pIndex">
  386. <div class="panel-title">
  387. <div class="panel-title-name">
  388. <i class="svg-icon svg-icon-sm svg-icon-green">
  389. <SvgIcon :svgid="'svg-wind-site'"></SvgIcon>
  390. </i>
  391. <span>{{ sourceMap.fczbmap[pItem[pIndex].wpId].name }}</span>
  392. <div
  393. class="sub-title-item"
  394. v-for="(data, index) of tables[0].subTitleDatas"
  395. :key="index"
  396. >
  397. <span class="sub-title">{{ data.text }}</span>
  398. <span class="sub-count" :class="data.color">{{
  399. sourceMap.fczbmap[pItem[pIndex].wpId][data.key]
  400. }}</span>
  401. </div>
  402. </div>
  403. </div>
  404. <div class="panel-body">
  405. <div
  406. class="card"
  407. v-for="(cItem, cIndex) in fjArr"
  408. :key="cIndex"
  409. :class="cItem.color"
  410. @click="goDetails(cItem)"
  411. >
  412. <div v-if="fjStatus='dj'">
  413. <div class="card-panel">
  414. <div class="card-left">
  415. <div class="tag">{{ cItem.wtnum }} </div>
  416. <div class="icon">
  417. <span
  418. class="svg-icon svg-icon-sm"
  419. :class="
  420. cItem.color == 'black'
  421. ? 'svg-icon-black'
  422. : cItem.color == 'gray'
  423. ? 'svg-icon-gray'
  424. : 'svg-icon-write'
  425. "
  426. >
  427. <SvgIcon :svgid="mapping[cItem.color]"></SvgIcon>
  428. </span>
  429. </div>
  430. </div>
  431. <div class="card-right">
  432. <div class="num">
  433. <i
  434. class="svg-icon svg-icon-sm"
  435. :class="
  436. cItem.color != 'red'
  437. ? 'svg-icon-' + cItem.color
  438. : 'svg-icon-white'
  439. "
  440. >
  441. <SvgIcon svgid="svg-W"></SvgIcon>
  442. </i>
  443. <span>{{ cItem.fs }}</span>
  444. </div>
  445. <div class="num">
  446. <i
  447. class="svg-icon svg-icon-sm"
  448. :class="
  449. cItem.color != 'red'
  450. ? 'svg-icon-' + cItem.color
  451. : 'svg-icon-white'
  452. "
  453. >
  454. <SvgIcon svgid="svg-P"></SvgIcon>
  455. </i>
  456. <span>{{ cItem.gl }}</span>
  457. </div>
  458. <div class="num">
  459. <i
  460. class="svg-icon svg-icon-sm"
  461. :class="
  462. cItem.color != 'red'
  463. ? 'svg-icon-' + cItem.color
  464. : 'svg-icon-white'
  465. "
  466. >
  467. <SvgIcon svgid="svg-R"></SvgIcon>
  468. </i>
  469. <span>{{ cItem.fdjzs.toFixed(2) }}</span>
  470. </div>
  471. </div>
  472. </div>
  473. </div>
  474. </div>
  475. <div
  476. class="card"
  477. v-for="(cItem, cIndex) in fjArr"
  478. :key="cIndex"
  479. :class="cItem.color"
  480. @click="goDetails(cItem)"
  481. >
  482. <div v-if="fjStatus='dj'">
  483. <div class="card-panel">
  484. <div class="card-left">
  485. <div class="tag">{{ cItem.wtnum }} </div>
  486. <div class="icon">
  487. <span
  488. class="svg-icon svg-icon-sm"
  489. :class="
  490. cItem.color == 'black'
  491. ? 'svg-icon-black'
  492. : cItem.color == 'gray'
  493. ? 'svg-icon-gray'
  494. : 'svg-icon-write'
  495. "
  496. >
  497. <SvgIcon :svgid="mapping[cItem.color]"></SvgIcon>
  498. </span>
  499. </div>
  500. </div>
  501. <div class="card-right">
  502. <div class="num">
  503. <i
  504. class="svg-icon svg-icon-sm"
  505. :class="
  506. cItem.color != 'red'
  507. ? 'svg-icon-' + cItem.color
  508. : 'svg-icon-white'
  509. "
  510. >
  511. <SvgIcon svgid="svg-W"></SvgIcon>
  512. </i>
  513. <span>{{ cItem.fs }}</span>
  514. </div>
  515. <div class="num">
  516. <i
  517. class="svg-icon svg-icon-sm"
  518. :class="
  519. cItem.color != 'red'
  520. ? 'svg-icon-' + cItem.color
  521. : 'svg-icon-white'
  522. "
  523. >
  524. <SvgIcon svgid="svg-P"></SvgIcon>
  525. </i>
  526. <span>{{ cItem.gl }}</span>
  527. </div>
  528. <div class="num">
  529. <i
  530. class="svg-icon svg-icon-sm"
  531. :class="
  532. cItem.color != 'red'
  533. ? 'svg-icon-' + cItem.color
  534. : 'svg-icon-white'
  535. "
  536. >
  537. <SvgIcon svgid="svg-R"></SvgIcon>
  538. </i>
  539. <span>{{ cItem.fdjzs.toFixed(2) }}</span>
  540. </div>
  541. </div>
  542. </div>
  543. </div>
  544. </div>
  545. <i class="blank" v-for="i in pItem.length" :key="i"></i>
  546. </div>
  547. </div>
  548. </div> -->
  549. <!-- 运行 -->
  550. <!-- <div class="panel-box">
  551. <div v-for="(pItem, pIndex) in sourceMap.fjmap" :key="pIndex">
  552. <div class="panel-title">
  553. <div class="panel-title-name">
  554. <i class="svg-icon svg-icon-sm svg-icon-green">
  555. <SvgIcon :svgid="'svg-wind-site'"></SvgIcon>
  556. </i>
  557. <span>{{ sourceMap.fczbmap[pItem[pIndex].wpId].name }}</span>
  558. <div
  559. class="sub-title-item"
  560. v-for="(data, index) of tables[0].subTitleDatas"
  561. :key="index"
  562. >
  563. <span class="sub-title">{{ data.text }}</span>
  564. <span class="sub-count" :class="data.color">{{
  565. sourceMap.fczbmap[pItem[pIndex].wpId][data.key]
  566. }}</span>
  567. </div>
  568. </div>
  569. </div>
  570. <div class="panel-body">
  571. <div
  572. class="card"
  573. v-for="(cItem, cIndex) in fjArr"
  574. :key="cIndex"
  575. :class="cItem.color"
  576. @click="goDetails(cItem)"
  577. >
  578. <div v-if="fjStatus=='yx'">
  579. <div class="card-panel">
  580. <div class="card-left">
  581. <div class="tag">{{ cItem.wtnum }} </div>
  582. <div class="icon">
  583. <span
  584. class="svg-icon svg-icon-sm"
  585. :class="
  586. cItem.color == 'black'
  587. ? 'svg-icon-black'
  588. : cItem.color == 'gray'
  589. ? 'svg-icon-gray'
  590. : 'svg-icon-write'
  591. "
  592. >
  593. <SvgIcon :svgid="mapping[cItem.color]"></SvgIcon>
  594. </span>
  595. </div>
  596. </div>
  597. <div class="card-right">
  598. <div class="num">
  599. <i
  600. class="svg-icon svg-icon-sm"
  601. :class="
  602. cItem.color != 'red'
  603. ? 'svg-icon-' + cItem.color
  604. : 'svg-icon-white'
  605. "
  606. >
  607. <SvgIcon svgid="svg-W"></SvgIcon>
  608. </i>
  609. <span>{{ cItem.fs }}</span>
  610. </div>
  611. <div class="num">
  612. <i
  613. class="svg-icon svg-icon-sm"
  614. :class="
  615. cItem.color != 'red'
  616. ? 'svg-icon-' + cItem.color
  617. : 'svg-icon-white'
  618. "
  619. >
  620. <SvgIcon svgid="svg-P"></SvgIcon>
  621. </i>
  622. <span>{{ cItem.gl }}</span>
  623. </div>
  624. <div class="num">
  625. <i
  626. class="svg-icon svg-icon-sm"
  627. :class="
  628. cItem.color != 'red'
  629. ? 'svg-icon-' + cItem.color
  630. : 'svg-icon-white'
  631. "
  632. >
  633. <SvgIcon svgid="svg-R"></SvgIcon>
  634. </i>
  635. <span>{{ cItem.fdjzs.toFixed(2) }}</span>
  636. </div>
  637. </div>
  638. </div>
  639. </div>
  640. </div>
  641. <div
  642. class="card"
  643. v-for="(cItem, cIndex) in fjArr"
  644. :key="cIndex"
  645. :class="cItem.color"
  646. @click="goDetails(cItem)"
  647. >
  648. <div v-if="fjStatus=='yx'">
  649. <div class="card-panel">
  650. <div class="card-left">
  651. <div class="tag">{{ cItem.wtnum }} </div>
  652. <div class="icon">
  653. <span
  654. class="svg-icon svg-icon-sm"
  655. :class="
  656. cItem.color == 'black'
  657. ? 'svg-icon-black'
  658. : cItem.color == 'gray'
  659. ? 'svg-icon-gray'
  660. : 'svg-icon-write'
  661. "
  662. >
  663. <SvgIcon :svgid="mapping[cItem.color]"></SvgIcon>
  664. </span>
  665. </div>
  666. </div>
  667. <div class="card-right">
  668. <div class="num">
  669. <i
  670. class="svg-icon svg-icon-sm"
  671. :class="
  672. cItem.color != 'red'
  673. ? 'svg-icon-' + cItem.color
  674. : 'svg-icon-white'
  675. "
  676. >
  677. <SvgIcon svgid="svg-W"></SvgIcon>
  678. </i>
  679. <span>{{ cItem.fs }}</span>
  680. </div>
  681. <div class="num">
  682. <i
  683. class="svg-icon svg-icon-sm"
  684. :class="
  685. cItem.color != 'red'
  686. ? 'svg-icon-' + cItem.color
  687. : 'svg-icon-white'
  688. "
  689. >
  690. <SvgIcon svgid="svg-P"></SvgIcon>
  691. </i>
  692. <span>{{ cItem.gl }}</span>
  693. </div>
  694. <div class="num">
  695. <i
  696. class="svg-icon svg-icon-sm"
  697. :class="
  698. cItem.color != 'red'
  699. ? 'svg-icon-' + cItem.color
  700. : 'svg-icon-white'
  701. "
  702. >
  703. <SvgIcon svgid="svg-R"></SvgIcon>
  704. </i>
  705. <span>{{ cItem.fdjzs.toFixed(2) }}</span>
  706. </div>
  707. </div>
  708. </div>
  709. </div>
  710. </div>
  711. <i class="blank" v-for="i in pItem.length" :key="i"></i>
  712. </div>
  713. </div>
  714. </div> -->
  715. </el-scrollbar>
  716. </div>
  717. </template>
  718. <script>
  719. import SvgIcon from "@com/coms/icon/svg-icon.vue";
  720. import util from "@/helper/util.js";
  721. import { isNumber } from "util";
  722. import store from "@store/index.js";
  723. export default {
  724. // 名称
  725. name: "LightMatrix3",
  726. // 使用组件
  727. components: {
  728. SvgIcon,
  729. },
  730. // 数据
  731. data() {
  732. return {
  733. timmer: null, // 遮罩开关
  734. sourceMap: {}, // 核心数据
  735. fillCategory: null, // 过滤条件
  736. fillFjzt: null, // 过滤条件
  737. fjStatus: "all",
  738. fjArr: [],
  739. fjNum: 0,
  740. mapping: {
  741. green: "svg-standby",
  742. blue: "svg-normal-power",
  743. pink: "svg-limit-power",
  744. red: "svg-gz-downtime",
  745. orange: "svg-jx-downtime",
  746. gray: "svg-offline",
  747. black: "svg-intranet-involvement",
  748. },
  749. panelData: {
  750. first: {
  751. icon: "svg-photovoltaic",
  752. text: "接入风场",
  753. key: "fcjrnum",
  754. category:'jrfj_FDC'
  755. },
  756. datas: [
  757. {
  758. color: "green",
  759. name: "待机",
  760. category:'dj_FDC',
  761. fjZT: 0,
  762. nameIcon: "svg-standby",
  763. calcStr: ["fcdjnum", "fcsdtjnum"],
  764. numIcon: "svg-manual",
  765. text1: "待风",
  766. category1:'df_FDC',
  767. key1: "fcdjnum",
  768. text2: "手动停机",
  769. category2:'sd_FDC',
  770. key2: "fcsdtjnum",
  771. },
  772. {
  773. color: "blue",
  774. name: "运行",
  775. category:'yx_FDC',
  776. fjZT: 2,
  777. nameIcon: "svg-normal-power",
  778. calcStr: ["fczcfdnum", "fcqxjclnum"],
  779. numIcon: "svg-drop-output",
  780. text1: "正常发电",
  781. category1:'zcfd_FDC',
  782. key1: "fczcfdnum",
  783. text2: "降出力运行",
  784. category2:'jcl_FDC',
  785. key2: "fcqxjclnum",
  786. },
  787. {
  788. color: "pink",
  789. name: "限电",
  790. category:'xd_FDC',
  791. fjZT: 5,
  792. nameIcon: "svg-limit-power",
  793. calcStr: ["fcxdjclnum", "fcxdtjnum"],
  794. numIcon: "svg-downtime",
  795. text1: "限电降出力",
  796. category1:'xdjcl_FDC',
  797. key1: "fcxdjclnum",
  798. text2: "停机",
  799. category2:'xdtj_FDC',
  800. key2: "fcxdtjnum",
  801. },
  802. {
  803. color: "red",
  804. name: "故障",
  805. category:'gz_FDC',
  806. fjZT: 6,
  807. nameIcon: "svg-gz-downtime",
  808. calcStr: ["fcgztjnum", "fccnsltjnum"],
  809. numIcon: "svg-field-involved",
  810. text1: "故障停机",
  811. category1:'gztj_FDC',
  812. key1: "fcgztjnum",
  813. text2: "场内受累",
  814. category2:'cnsl1_FDC',
  815. key2: "fccnsltjnum",
  816. },
  817. {
  818. color: "orange",
  819. name: "检修",
  820. category:'jx_FDC',
  821. fjZT: 8,
  822. nameIcon: "svg-jx-downtime",
  823. calcStr: ["fcjxtjnum", "fccnsljxnum"],
  824. numIcon: "svg-field-involved",
  825. text1: "检修停机",
  826. category1:'jxtj_FDC',
  827. key1: "fcjxtjnum",
  828. text2: "产内受累",
  829. category2:'cnsl2_FDC',
  830. key2: "fccnsljxnum",
  831. },
  832. {
  833. color: "write",
  834. name: "受累",
  835. category:'sl_FDC',
  836. fjZT: 12,
  837. calcStr: ["fcdwslnum", "fchjslnum"],
  838. nameIcon: "svg-intranet-involvement",
  839. numIcon: "svg-environment",
  840. text1: "电网",
  841. category1:'dwsl_FDC',
  842. key1: "fcdwslnum",
  843. text2: "环境",
  844. category2:'hjsl_FDC',
  845. key2: "fchjslnum",
  846. },
  847. {
  848. color: "gray",
  849. name: "离线",
  850. category:'lx_FDC',
  851. fjZT:3,
  852. nameIcon: "svg-offline",
  853. key: "fclxnum",
  854. numIcon: "svg-unknown",
  855. text1: "离线",
  856. category1:'lx_FDC',
  857. key1: "fclxnum",
  858. text2: "未知",
  859. category1:'wz_FDC',
  860. key2: "fcwznum",
  861. },
  862. ],
  863. },
  864. tables: [
  865. {
  866. col: 15,
  867. subTitleDatas: [
  868. {
  869. text: "接入台数",
  870. color: "write",
  871. key: "jrts",
  872. },
  873. {
  874. text: "待机台数",
  875. color: "green",
  876. key: "djts",
  877. },
  878. {
  879. text: "并网台数",
  880. color: "blue",
  881. key: "yxts",
  882. },
  883. {
  884. text: "限电台数",
  885. color: "pink",
  886. key: "xdts",
  887. },
  888. {
  889. text: "故障台数",
  890. color: "red",
  891. key: "gzts",
  892. },
  893. {
  894. text: "检修台数",
  895. color: "orange",
  896. key: "whts",
  897. },
  898. {
  899. text: "受累台数",
  900. color: "write",
  901. key: "slts",
  902. },
  903. {
  904. text: "离线台数",
  905. color: "gray",
  906. key: "lxts",
  907. },
  908. {
  909. text: "风速",
  910. color: "gray",
  911. key: "ssfs",
  912. },
  913. {
  914. text: "预测功率",
  915. color: "gray",
  916. key: "ycgl",
  917. },
  918. {
  919. text: "保证功率",
  920. color: "gray",
  921. key: "bzgl",
  922. },
  923. {
  924. text: "应发功率",
  925. color: "gray",
  926. key: "yfgl",
  927. },
  928. {
  929. text: "实际功率",
  930. color: "gray",
  931. key: "sjgl",
  932. },
  933. {
  934. text: "AGC指令",
  935. color: "gray",
  936. key: "agcygsd",
  937. },
  938. {
  939. text: "出线功率",
  940. color: "gray",
  941. key: "agccxyg",
  942. },
  943. ],
  944. datas: [
  945. {
  946. tag: "A-11",
  947. num1: 1234.56,
  948. num2: 1234.56,
  949. num3: 1234.56,
  950. color: "blue",
  951. },
  952. ],
  953. },
  954. ],
  955. };
  956. },
  957. // 函数
  958. methods: {
  959. // 根据风机状态码返回对应 class
  960. getColor(fjzt) {
  961. switch (fjzt) {
  962. case 0: // 待机
  963. return "green";
  964. case 1: // 手动停机
  965. return "green";
  966. case 2: // 正常发电
  967. return "blue";
  968. case 3: // 缺陷降出力
  969. return "blue";
  970. case 4: // 限电降出力
  971. return "purple";
  972. case 5: // 限电停机
  973. return "purple";
  974. case 6: // 故障停机
  975. return "red";
  976. case 7: // 场内受累停机
  977. return "red";
  978. case 8: // 检修停机
  979. return "orange";
  980. case 9: // 离线
  981. return "orange";
  982. case 10: // 电网受累
  983. return "gray";
  984. case 11: // 环境受累
  985. return "gray";
  986. case 12: // 离线
  987. return "black";
  988. }
  989. },
  990. // // 切换显示种类
  991. // changeShow(index){
  992. // console.log('index:',index)
  993. // let fjmap = this.BASE.deepCopy(this.sourceMap.fjmap);
  994. // if(index==-1){
  995. // this.sourceMap.fjmap=fjmap;
  996. // }else if(index==0){
  997. // console.log('fjmap:',fjmap)
  998. // fjmap.forEach((pVal) => {
  999. // console.log('pval:',pVal)
  1000. // let djArr = pVal.filter((v, i, a) => {
  1001. // return v.fjzt == 0;
  1002. // });
  1003. // console.log("djArr:", djArr);
  1004. // // this.sourceMap.fjmap=djArr;
  1005. // });
  1006. // }
  1007. // },
  1008. // changeShow1(category, fjzt) {
  1009. // let that = this;
  1010. // console.log("that:", that);
  1011. // console.log("category:", category);
  1012. // console.log("fjzt:", fjzt);
  1013. // if (category == "svg-standby" || fjzt == 0) {
  1014. // that.fjStatus = "dj";
  1015. // that.fjNum = 0;
  1016. // that.sourceMap.fjmap.forEach((pVal) => {
  1017. // // console.log('pval:',pVal)
  1018. // let djArr = pVal.filter((v, i, a) => {
  1019. // return v.fjzt == 0;
  1020. // console.log("v1:", v);
  1021. // });
  1022. // console.log("djArr:", djArr);
  1023. // that.fjArr = djArr;
  1024. // });
  1025. // console.log("that1:", that);
  1026. // console.log("fjarr:", that.fjArr);
  1027. // } else if (category == "svg-normal-power" || fjzt == 2) {
  1028. // that.fjStatus == "yx";
  1029. // that.fjNum = 2;
  1030. // that.sourceMap.fjmap.forEach((pVal) => {
  1031. // // console.log('pval:',pVal)
  1032. // let yxArr = pVal.filter((v, i, a) => {
  1033. // return v.fjzt == 2;
  1034. // console.log("v2:", v);
  1035. // });
  1036. // console.log("yxArr:", yxArr);
  1037. // that.fjArr = yxArr;
  1038. // });
  1039. // console.log("that2:", that);
  1040. // console.log("fjarr:", that.fjArr);
  1041. // }
  1042. // },
  1043. //切换显示种类
  1044. changeShow(category, fjzt, skipFill) {
  1045. if (!skipFill) {
  1046. console.log('!skipFill:',!skipFill)
  1047. if (this.fillCategory === category) {
  1048. console.log('fillCategory:',this.fillCategory)
  1049. console.log('fillFjz:',this.fillFjzt)
  1050. this.fillCategory = null;
  1051. this.fillFjzt = null;
  1052. } else {
  1053. this.fillCategory = category;
  1054. this.fillFjzt = fjzt;
  1055. console.log('fillCategory:',this.fillCategory)
  1056. console.log('fillFjz:',this.fillFjzt)
  1057. }
  1058. }
  1059. let fjmap = this.BASE.deepCopy(this.sourceMap.fjmap);
  1060. fjmap.forEach((pEle) => {
  1061. console.log('pele:',pEle)
  1062. pEle.forEach((cEle) => {
  1063. console.log('cele:',cEle)
  1064. cEle.isShow = true;
  1065. if (!this.fillCategory) {
  1066. cEle.isShow = true;
  1067. // cEle.isShow=false;
  1068. } else if (cEle.wpId.indexOf(category.split("_")[1]) !== -1) {
  1069. if (isNumber(fjzt)) {
  1070. cEle.fjzt === fjzt ? (cEle.isShow = true) : (cEle.isShow = false);
  1071. } else {
  1072. // cEle.isShow = true;
  1073. cEle.isShow = false;
  1074. }
  1075. } else {
  1076. cEle.isShow = true;
  1077. }
  1078. });
  1079. });
  1080. this.sourceMap.fjmap = fjmap;
  1081. },
  1082. calcGfStr(calcStr) {
  1083. return (
  1084. parseInt(this.sourceMap[calcStr[0]]) +
  1085. parseInt(this.sourceMap[calcStr[1]]) +
  1086. ""
  1087. );
  1088. },
  1089. // 请求服务
  1090. requestData(showLoading) {
  1091. let that = this;
  1092. that.API.requestData({
  1093. showLoading,
  1094. method: "POST",
  1095. subUrl: "matrix/matrixDetialPush",
  1096. success(res) {
  1097. if (res.data) {
  1098. // console.log("resMap:", res);
  1099. let sourceMap = res.data;
  1100. for (let key in sourceMap) {
  1101. if (key !== "fczbmap" && key !== "fjmap") {
  1102. sourceMap[key] += "";
  1103. } else if (key === "fjmap") {
  1104. sourceMap[key].forEach((pItem) => {
  1105. pItem.forEach((cItem) => {
  1106. // console.log('citemfjzt:',cItem.fjzt)
  1107. cItem.color = that.getColor(cItem.fjzt);
  1108. cItem.isShow = true;
  1109. });
  1110. });
  1111. }
  1112. }
  1113. that.sourceMap = sourceMap;
  1114. // console.log('sourceMap:',that.sourceMap)
  1115. if (that.fillCategory) {
  1116. console.log("thatfillcategory:", that.fillCategory);
  1117. that.changeShow(that.fillCategory, that.fillFjzt, true);
  1118. }
  1119. } else {
  1120. that.sourceMap = {};
  1121. }
  1122. },
  1123. });
  1124. },
  1125. goDetails(item) {
  1126. this.$router.push({
  1127. path: `/monitor/windsite/info/${item.wpId}/${item.wtId}`,
  1128. });
  1129. },
  1130. },
  1131. created() {
  1132. let that = this;
  1133. that.$nextTick(() => {
  1134. that.requestData(false);
  1135. that.timmer = setInterval(() => {
  1136. that.requestData(false);
  1137. }, that.$store.state.websocketTimeSec);
  1138. });
  1139. },
  1140. mounted() {},
  1141. unmounted() {
  1142. clearInterval(this.timmer);
  1143. this.timmer = null;
  1144. },
  1145. };
  1146. </script>
  1147. <style lang="less" scoped>
  1148. @panelHeight: 60px;
  1149. @titleHeight: 26px;
  1150. .light-matrix {
  1151. // width: calc(100% - 1.111vh);
  1152. height: calc(100vh - 7.222vh);
  1153. display: flex;
  1154. flex-direction: column;
  1155. .panel {
  1156. width: 100%;
  1157. height: 80px;
  1158. border: 1px solid @darkgray;
  1159. position: relative;
  1160. padding: 10px 20px;
  1161. background-color: fade(@darkgray, 20%);
  1162. .dot {
  1163. width: 0.185vh;
  1164. height: 0.185vh;
  1165. border-radius: 50%;
  1166. background-color: @write;
  1167. position: absolute;
  1168. &.left {
  1169. left: 0.37vh;
  1170. }
  1171. &.right {
  1172. right: 0.37vh;
  1173. }
  1174. &.top {
  1175. top: 0.37vh;
  1176. }
  1177. &.bottom {
  1178. bottom: 0.37vh;
  1179. }
  1180. }
  1181. .page-header {
  1182. display: flex;
  1183. .header-info {
  1184. display: flex;
  1185. flex: 1 0 auto;
  1186. }
  1187. }
  1188. .panel-item-gf {
  1189. flex: 0 0 auto;
  1190. margin-right: 16px;
  1191. display: flex;
  1192. height: @panelHeight;
  1193. .panel-item-gf-left {
  1194. width: @panelHeight;
  1195. height: @panelHeight;
  1196. display: flex;
  1197. align-items: center;
  1198. justify-content: center;
  1199. position: relative;
  1200. .loop {
  1201. position: absolute;
  1202. width: 4.444vh;
  1203. height: 4.444vh;
  1204. border-radius: 50%;
  1205. border: 0.093vh solid @darkgray;
  1206. background-color: fade(@darkgray, 20);
  1207. left: calc(50% - 2.222vh);
  1208. top: calc(50% - 2.222vh);
  1209. }
  1210. }
  1211. .panel-item-gf-right {
  1212. color: @write;
  1213. text-align: right;
  1214. margin-left: 24px;
  1215. .panel-item-gf-up {
  1216. color: @gray;
  1217. height: @panelHeight / 2;
  1218. line-height: @panelHeight / 2;
  1219. font-size: 14px;
  1220. }
  1221. .panel-item-gf-down {
  1222. height: @panelHeight / 2;
  1223. line-height: @panelHeight / 2;
  1224. font-weight: 600;
  1225. font-size: 16px;
  1226. }
  1227. }
  1228. }
  1229. .panel-item {
  1230. width: 100%;
  1231. height: @panelHeight;
  1232. font-size: 12px;
  1233. margin-left: 8px;
  1234. .panel-item-left {
  1235. display: flex;
  1236. .panel-item-li {
  1237. height: @panelHeight / 2;
  1238. line-height: @panelHeight / 2;
  1239. flex: 1 0 auto;
  1240. padding: 0 1.111vh;
  1241. align-items: center;
  1242. font-size: 14px;
  1243. .svg-icon {
  1244. margin-left: auto;
  1245. }
  1246. &.value {
  1247. text-align: right;
  1248. flex: 0;
  1249. font-size: 16px;
  1250. color: #fff;
  1251. }
  1252. }
  1253. }
  1254. .panel-item-right {
  1255. display: flex;
  1256. flex-grow: 1;
  1257. height: @panelHeight;
  1258. .panel-item-ri {
  1259. height: @panelHeight / 2;
  1260. line-height: @panelHeight / 2;
  1261. padding: 0 8px;
  1262. flex: 1;
  1263. &:first-child {
  1264. border-right: 1px solid;
  1265. }
  1266. & > span {
  1267. &:first-child {
  1268. float: left;
  1269. display: flex;
  1270. align-items: center;
  1271. i {
  1272. margin-right: 4px;
  1273. }
  1274. }
  1275. &:last-child {
  1276. float: right;
  1277. color: @write;
  1278. }
  1279. }
  1280. }
  1281. }
  1282. &.green {
  1283. background-color: fade(@green, 15%);
  1284. color: @green;
  1285. .panel-item-left {
  1286. background-color: fade(@green, 15%);
  1287. }
  1288. .panel-item-right {
  1289. .panel-item-ri {
  1290. &:first-child {
  1291. border-color: @green;
  1292. }
  1293. }
  1294. }
  1295. }
  1296. &.blue {
  1297. background-color: fade(@darkBlue, 15%);
  1298. color: @darkBlue;
  1299. .panel-item-left {
  1300. background-color: fade(@darkBlue, 15%);
  1301. }
  1302. .panel-item-right {
  1303. .panel-item-ri {
  1304. &:first-child {
  1305. border-color: @darkBlue;
  1306. }
  1307. }
  1308. }
  1309. }
  1310. &.pink {
  1311. background-color: fade(@pink, 15%);
  1312. color: @pink;
  1313. .panel-item-left {
  1314. background-color: fade(@pink, 15%);
  1315. }
  1316. .panel-item-right {
  1317. .panel-item-ri {
  1318. &:first-child {
  1319. border-color: @pink;
  1320. }
  1321. }
  1322. }
  1323. }
  1324. &.red {
  1325. background-color: fade(@red, 15%);
  1326. color: @red;
  1327. .panel-item-left {
  1328. background-color: fade(@red, 15%);
  1329. }
  1330. .panel-item-right {
  1331. .panel-item-ri {
  1332. &:first-child {
  1333. border-color: @red;
  1334. }
  1335. }
  1336. }
  1337. }
  1338. &.orange {
  1339. background-color: fade(@orange, 15%);
  1340. color: @orange;
  1341. .panel-item-left {
  1342. background-color: fade(@orange, 15%);
  1343. }
  1344. .panel-item-right {
  1345. .panel-item-ri {
  1346. &:first-child {
  1347. border-color: @orange;
  1348. }
  1349. }
  1350. }
  1351. }
  1352. &.gray {
  1353. background-color: fade(@darkgray, 15%);
  1354. color: @gray;
  1355. .panel-item-left {
  1356. background-color: fade(@darkgray, 15%);
  1357. }
  1358. .panel-item-right {
  1359. .panel-item-ri {
  1360. &:first-child {
  1361. border-color: @darkgray;
  1362. }
  1363. }
  1364. }
  1365. }
  1366. &.write {
  1367. background-color: fade(@write, 15%);
  1368. color: @write;
  1369. .panel-item-left {
  1370. cursor: pointer;
  1371. background-color: fade(@write, 15%);
  1372. }
  1373. .panel-item-right {
  1374. cursor: pointer;
  1375. .panel-item-ri {
  1376. &:first-child {
  1377. border-color: @write;
  1378. }
  1379. }
  1380. }
  1381. }
  1382. }
  1383. }
  1384. .panel-box {
  1385. margin-top: 1.481vh;
  1386. flex-grow: 1;
  1387. .panel-title {
  1388. width: 100%;
  1389. line-height: @titleHeight;
  1390. background-color: fade(@darkgray, 40%);
  1391. .panel-title-name {
  1392. font-size: 12px;
  1393. color: @green;
  1394. display: flex;
  1395. flex-wrap: wrap;
  1396. align-items: center;
  1397. padding-left: 16px;
  1398. i {
  1399. margin-right: 0.7407vh;
  1400. }
  1401. .sub-title-item {
  1402. display: flex;
  1403. flex: 1;
  1404. .sub-title {
  1405. flex: 0 0 auto;
  1406. color: @gray;
  1407. font-size: 12px;
  1408. margin: 0 0.556vh 0 1.481vh;
  1409. }
  1410. .sub-count {
  1411. flex: 1 0 auto;
  1412. font-size: 14px;
  1413. font-family: "Bicubik";
  1414. font-weight: 500;
  1415. &.write {
  1416. color: @write;
  1417. }
  1418. &.green {
  1419. color: @green;
  1420. }
  1421. &.blue {
  1422. color: @darkBlue;
  1423. }
  1424. &.pink {
  1425. color: @pink;
  1426. }
  1427. &.red {
  1428. color: @red;
  1429. }
  1430. &.orange {
  1431. color: @orange;
  1432. }
  1433. &.gray {
  1434. color: @gray;
  1435. }
  1436. }
  1437. }
  1438. }
  1439. }
  1440. .panel-body {
  1441. background-color: fade(@darkgray, 20%);
  1442. padding: 0.741vh;
  1443. margin-bottom: 1.481vh;
  1444. width: 100%;
  1445. display: flex;
  1446. flex-direction: row;
  1447. flex-wrap: wrap;
  1448. justify-content: space-between;
  1449. .blank {
  1450. margin-right: 4px;
  1451. flex: 1 0 118px;
  1452. }
  1453. .card {
  1454. cursor: pointer;
  1455. margin-right: 4px;
  1456. margin-top: 4px;
  1457. flex: 1 0 118px;
  1458. }
  1459. .card {
  1460. border: 1px solid;
  1461. .card-panel {
  1462. display: flex;
  1463. flex-grow: row;
  1464. .card-left {
  1465. width: 40px;
  1466. border-right: 0.093vh dotted;
  1467. display: flex;
  1468. flex-direction: column;
  1469. .tag {
  1470. color: @write;
  1471. font-size: 12px;
  1472. width: 100%;
  1473. text-align: center;
  1474. line-height: 1.5;
  1475. }
  1476. .icon {
  1477. flex-grow: 1;
  1478. display: flex;
  1479. align-items: center;
  1480. justify-content: center;
  1481. i {
  1482. font-size: 14px;
  1483. }
  1484. }
  1485. }
  1486. .card-right {
  1487. margin-top: 2px;
  1488. .num {
  1489. width: 72px;
  1490. font-size: 12px;
  1491. text-align: left;
  1492. padding-right: 0.278vh;
  1493. display: flex;
  1494. align-items: center;
  1495. justify-content: space-around;
  1496. i {
  1497. margin: 0 2px 0 4px;
  1498. }
  1499. span {
  1500. flex: 1;
  1501. }
  1502. }
  1503. }
  1504. }
  1505. .card-percent {
  1506. height: 0.926vh;
  1507. padding: 0.093vh 0.185vh;
  1508. position: relative;
  1509. border-top: 1px solid;
  1510. background-color: transparent;
  1511. .percent {
  1512. height: 0.648vh;
  1513. background-color: @green;
  1514. position: absolute;
  1515. left: 0.185vh;
  1516. top: 0.093vh;
  1517. }
  1518. }
  1519. &.blue {
  1520. border-color: @darkBlue;
  1521. background-color: fade(@darkBlue, 15%);
  1522. .card-panel {
  1523. .card-left {
  1524. border-color: @darkBlue;
  1525. .tag {
  1526. background-color: fade(@darkBlue, 30);
  1527. }
  1528. .icon {
  1529. svg {
  1530. use {
  1531. fill: @write;
  1532. }
  1533. }
  1534. }
  1535. }
  1536. .card-right {
  1537. .num {
  1538. color: @darkBlue;
  1539. }
  1540. }
  1541. }
  1542. .card-percent {
  1543. border-color: @darkBlue;
  1544. }
  1545. }
  1546. &.pink {
  1547. border-color: @pink;
  1548. background-color: fade(@pink, 15%);
  1549. .card-panel {
  1550. .card-left {
  1551. border-color: @pink;
  1552. .tag {
  1553. background-color: fade(@pink, 30);
  1554. }
  1555. .icon {
  1556. svg {
  1557. use {
  1558. fill: @write;
  1559. }
  1560. }
  1561. }
  1562. }
  1563. .card-right {
  1564. .num {
  1565. color: @pink;
  1566. }
  1567. }
  1568. }
  1569. .card-percent {
  1570. border-color: @pink;
  1571. }
  1572. }
  1573. &.orange {
  1574. border-color: @orange;
  1575. background-color: fade(@orange, 15%);
  1576. .card-panel {
  1577. .card-left {
  1578. border-color: @orange;
  1579. .tag {
  1580. background-color: fade(@orange, 30);
  1581. }
  1582. .icon {
  1583. use {
  1584. fill: @write;
  1585. }
  1586. }
  1587. }
  1588. .card-right {
  1589. .num {
  1590. color: @orange;
  1591. }
  1592. }
  1593. }
  1594. .card-percent {
  1595. border-color: @orange;
  1596. }
  1597. }
  1598. &.green {
  1599. border-color: @green;
  1600. background-color: fade(@green, 15%);
  1601. .card-panel {
  1602. .card-left {
  1603. border-color: @green;
  1604. .tag {
  1605. background-color: fade(@green, 30);
  1606. }
  1607. .icon {
  1608. use {
  1609. fill: @write;
  1610. }
  1611. }
  1612. }
  1613. .card-right {
  1614. .num {
  1615. color: @green;
  1616. }
  1617. }
  1618. }
  1619. .card-percent {
  1620. border-color: @green;
  1621. }
  1622. }
  1623. &.gray {
  1624. border-color: @darkgray;
  1625. background-color: fade(@darkgray, 15%);
  1626. .card-panel {
  1627. .card-left {
  1628. border-color: @darkgray;
  1629. .tag {
  1630. background-color: fade(@darkgray, 30%);
  1631. }
  1632. .icon {
  1633. use {
  1634. fill: @black;
  1635. }
  1636. }
  1637. }
  1638. .card-right {
  1639. .num {
  1640. color: @gray;
  1641. }
  1642. }
  1643. }
  1644. .card-percent {
  1645. border-color: @darkgray;
  1646. }
  1647. }
  1648. &.red {
  1649. border-color: @red;
  1650. .card-panel {
  1651. background-color: @red;
  1652. .card-left {
  1653. border-color: @darkRed;
  1654. .tag {
  1655. background-color: fade(@darkRed, 50%);
  1656. }
  1657. .icon {
  1658. use {
  1659. fill: @write;
  1660. }
  1661. }
  1662. }
  1663. .card-right {
  1664. .num {
  1665. color: @write;
  1666. }
  1667. }
  1668. }
  1669. .card-percent {
  1670. border-color: @red;
  1671. }
  1672. }
  1673. &.black {
  1674. border-color: @write;
  1675. .card-panel {
  1676. background-color: @write;
  1677. .card-left {
  1678. border-color: @black;
  1679. .tag {
  1680. background-color: fade(@darkgray, 80%);
  1681. }
  1682. .icon {
  1683. .svg-icon {
  1684. svg {
  1685. use {
  1686. fill: @black;
  1687. }
  1688. }
  1689. }
  1690. }
  1691. }
  1692. .card-right {
  1693. .num {
  1694. color: @black;
  1695. }
  1696. }
  1697. }
  1698. }
  1699. }
  1700. }
  1701. }
  1702. .curStyle {
  1703. cursor: pointer;
  1704. }
  1705. }
  1706. </style>