index.vue 62 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202
  1. <template>
  2. <div
  3. :class="$store.state.themeName === 'dark' ? 'dark-matrix' : 'light-matrix'"
  4. >
  5. <!-- 头部按钮选项 -->
  6. <HeaderNav :isAll="true" @firstRender="typeFlag" />
  7. <div class="matrix-body">
  8. <!-- 接入台数 欠发情况 -->
  9. <div class="body-title">
  10. <div class="base-inf">
  11. <div class="title-name">
  12. <div class="imgs" v-if="tabIndex === 0">
  13. <img src="@assets/imgs/downF.png" />
  14. <img src="@assets/imgs/all.png" class="all_img" />
  15. </div>
  16. <div class="imgs" v-if="tabIndex === -1">
  17. <img src="@assets/imgs/downF.png" />
  18. <img src="@assets/imgs/windup.png" class="qty_img" />
  19. </div>
  20. <div class="imgs" v-if="tabIndex === -2">
  21. <img src="@assets/imgs/downg.png" />
  22. <img src="@assets/imgs/ptyup.png" class="qty_img" />
  23. </div>
  24. <div class="base-num" @click="handleClick('all')">
  25. <div class="base-name">接入台数</div>
  26. <div class="nums">{{ sourceMap.jrts || 0 }}</div>
  27. </div>
  28. </div>
  29. <div class="matrix-status">
  30. <div
  31. class="title-status"
  32. :class="item.color"
  33. v-for="(item, index) in titleList"
  34. :key="index"
  35. >
  36. <div class="status-first" @click="handleClick(item.value1)">
  37. <div class="matrix-status-left">{{ item.name }}</div>
  38. <div class="matrix-status-right">
  39. {{ sourceMap[item.code] }}
  40. </div>
  41. </div>
  42. <div class="status-end" @click="handleClick(item.value2)">
  43. <div class="matrix-status-left">
  44. <i
  45. class="svg-icon svg-icon-sm"
  46. :class="
  47. $store.state.themeName === 'dark'
  48. ? 'svg-icon-' + item.color
  49. : 'white'
  50. "
  51. >
  52. <SvgIcon :svgid="item.icon1"></SvgIcon>
  53. </i>
  54. {{ item.text1 }}
  55. </div>
  56. <div class="matrix-status-right">
  57. {{ sourceMap[item.code1] }}
  58. </div>
  59. </div>
  60. <div class="status-end" @click="handleClick(item.value3)">
  61. <div class="matrix-status-left">
  62. <i
  63. class="svg-icon svg-icon-sm"
  64. :class="
  65. $store.state.themeName === 'dark'
  66. ? 'svg-icon-' + item.color
  67. : 'white'
  68. "
  69. >
  70. <SvgIcon :svgid="item.icon2"></SvgIcon>
  71. </i>
  72. {{ item.text2 }}
  73. </div>
  74. <div class="matrix-status-right">
  75. {{ sourceMap[item.code2] }}
  76. </div>
  77. </div>
  78. </div>
  79. </div>
  80. </div>
  81. <!-- <div class="unpaid">
  82. <div class="unpaid-item">
  83. <img src="@assets/imgs/unpaid.png" class="unpaid-img" alt="" />
  84. <div class="unpaid-name">欠发情况</div>
  85. </div>
  86. <div
  87. class="unpaid-item1"
  88. v-for="(item, index) in unpaidList"
  89. :key="index"
  90. :class="item.color"
  91. >
  92. <div class="percent">{{ item.num3 }}</div>
  93. <div class="nums">
  94. {{
  95. sourceMap[item.key]
  96. ? (sourceMap[item.key] / 10000).toFixed(2)
  97. : 0
  98. }}
  99. </div>
  100. </div>
  101. </div> -->
  102. </div>
  103. <!-- 风电场/光电站列表 -->
  104. <el-scrollbar height="calc(100% - 72px)">
  105. <div class="matrix-box">
  106. <!-- 单个风场/电站 -->
  107. <div
  108. class="matrixs"
  109. v-for="(value, index) in showMatrixList"
  110. :key="index"
  111. :class="{ active_vie: value.wtlist.length == 0 }"
  112. >
  113. <!-- wp -->
  114. <div class="matrix-title">
  115. <!--svg + wpname @click="handleToggle(index)"-->
  116. <div class="matrix-svg">
  117. <i
  118. v-if="value.czlx == -1"
  119. class="svg-icon svg-icon-sm svg-icon-green"
  120. >
  121. <SvgIcon svgid="svg-wind-site"></SvgIcon>
  122. </i>
  123. <i v-else class="svg-icon svg-icon-sm svg-icon-orange">
  124. <SvgIcon svgid="svg-photovoltaic"></SvgIcon>
  125. </i>
  126. <span
  127. class="station-name"
  128. :style="value.czlx == -1 ? '' : 'color:#ff8100'"
  129. >{{ value.wpname }}</span
  130. >
  131. </div>
  132. <!-- 右侧统计项 -->
  133. <div class="indicator">
  134. <div
  135. class="sub-title-item"
  136. :class="indexs >= 8 && !item.flag ? 'active' : 'active1'"
  137. v-for="(item, indexs) in subTitleDatas"
  138. :key="indexs"
  139. @click="handleIndicatorClick(value.czlx, value.wpid)"
  140. >
  141. <span>{{
  142. item.type == value.czlx ? item.text1 : item.text
  143. }}</span>
  144. <span class="sub-value" :style="{ color: item.color }">
  145. {{
  146. indexs >= 8
  147. ? item.key1
  148. ? value[item.key1]
  149. ? item.ratio
  150. ? (value[item.key1] / item.ratio).toFixed(2)
  151. : value[item.key1].toFixed(2)
  152. : "0.00"
  153. : value[item.key]
  154. ? item.ratio
  155. ? (value[item.key] / item.ratio).toFixed(2)
  156. : value[item.key].toFixed(2)
  157. : "0.00"
  158. : value[item.key]
  159. }}
  160. </span>
  161. </div>
  162. </div>
  163. </div>
  164. <!-- wt v-show="value['switch' + index]"-->
  165. <div class="matrix-list">
  166. <div
  167. class="matrix-card"
  168. style="cursor: pointer"
  169. :class="
  170. val.status !== '' && colorList[Number(val.status)]
  171. ? colorList[Number(val.status)]
  172. : 'gray'
  173. "
  174. v-for="(val, indexe) in value.wtlist"
  175. :key="indexe"
  176. >
  177. <div class="info">
  178. <!-- wtname + 状态 -->
  179. <div
  180. class="card-left"
  181. @click="handleLeftClick(val, value.czlx, value.wpid)"
  182. >
  183. <!-- <i class="lock" @mouseenter="handleMouse"></i> -->
  184. <div class="card-name">{{ val.wtname }}</div>
  185. <i
  186. class="svg-icon svg-icon-sm"
  187. :class="
  188. val.status === 4 || val.status === 5
  189. ? 'svg-icon-white'
  190. : `svg-icon-${colorList[Number(val.status)]}`
  191. "
  192. >
  193. <SvgIcon :svgid="mapping[val.status]"></SvgIcon
  194. ></i>
  195. </div>
  196. <div class="dashed" />
  197. <!-- 数据项 -->
  198. <div
  199. class="card-right"
  200. @click="handleRightClick(value.czlx, val.wtid)"
  201. >
  202. <div class="right-item">
  203. <i
  204. class="svg-icon svg-icon-sm"
  205. :class="
  206. val.status === 4 || val.status === 5
  207. ? 'svg-icon-white'
  208. : `svg-icon-${colorList[Number(val.status)]}`
  209. "
  210. >
  211. <SvgIcon svgid="svg-P"></SvgIcon
  212. ></i>
  213. <div class="right-value">
  214. {{
  215. val.power
  216. ? val && Number(val.power)?.toFixed(2)
  217. : "0.00"
  218. }}
  219. </div>
  220. <!-- <input style="width: 200px" :value="val.power" /> -->
  221. </div>
  222. <div class="right-item">
  223. <i
  224. class="svg-icon svg-icon-sm"
  225. :class="
  226. val.status === 4 || val.status === 5
  227. ? 'svg-icon-white'
  228. : `svg-icon-${colorList[Number(val.status)]}`
  229. "
  230. >
  231. <SvgIcon
  232. :svgid="value.czlx == '-1' ? 'svg-W' : 'svg-A'"
  233. ></SvgIcon
  234. ></i>
  235. <div class="right-value">
  236. {{
  237. value.czlx == "-1"
  238. ? val.speed
  239. ? Number(val.speed)?.toFixed(2)
  240. : "0.00"
  241. : val.current
  242. ? Number(val.current)?.toFixed(2)
  243. : "0.00"
  244. }}
  245. </div>
  246. <!-- <input
  247. style="width: 200px"
  248. :value="
  249. value.czlx == '-1'
  250. ? val.speed
  251. ? Number(val.speed)?.toFixed(2)
  252. : '0.00'
  253. : val.current
  254. ? Number(val.current)?.toFixed(2)
  255. : '0.00'
  256. "
  257. /> -->
  258. </div>
  259. <div class="right-item">
  260. <i
  261. class="svg-icon svg-icon-sm"
  262. :class="
  263. val.status === 4 || val.status === 5
  264. ? 'svg-icon-white'
  265. : `svg-icon-${colorList[Number(val.status)]}`
  266. "
  267. >
  268. <SvgIcon
  269. :svgid="value.czlx == '-1' ? 'svg-R' : 'svg-V'"
  270. ></SvgIcon
  271. ></i>
  272. <div class="right-value">
  273. {{
  274. value.czlx == "-1"
  275. ? val.transfer
  276. ? Number(val.transfer)?.toFixed(2)
  277. : "0.00"
  278. : val.voltage
  279. ? Number(val.voltage)?.toFixed(2)
  280. : "0.00"
  281. }}
  282. </div>
  283. <!-- <input
  284. style="width: 200px"
  285. :value="
  286. value.czlx == '-1'
  287. ? val.transfer
  288. ? Number(val.transfer)?.toFixed(2)
  289. : '0.00'
  290. : val.voltage
  291. ? Number(val.voltage)?.toFixed(2)
  292. : '0.00'
  293. "
  294. /> -->
  295. </div>
  296. </div>
  297. </div>
  298. <div class="matrix-progress">
  299. <div
  300. class="progress-block"
  301. :style="{ width: (val.rate > 100 ? 100 : val.rate) + '%' }"
  302. :class="
  303. findUpColor(unpaidList, parseInt(Number(val.ssqfzt)) + 1)
  304. "
  305. ></div>
  306. </div>
  307. </div>
  308. </div>
  309. </div>
  310. </div>
  311. </el-scrollbar>
  312. <qushi-dialog ref="child" :chartName="chartName"></qushi-dialog>
  313. <el-dialog
  314. width="90%"
  315. top="40px"
  316. v-model="displayMatrix"
  317. :show-close="true"
  318. destroy-on-close
  319. >
  320. <template #title>
  321. <div class="dialog-title">
  322. <div class="title">设备详情</div>
  323. </div>
  324. </template>
  325. <div class="dialog-body" style="height: 900px">
  326. <img class="dialog-img" src="@assets/imgs/dialog.png" />
  327. <windDetail
  328. v-show="wtType == -1"
  329. :wind="wind"
  330. :flag="flag"
  331. ></windDetail>
  332. <lightDetail
  333. v-show="wtType == -2"
  334. :wind="wind"
  335. :flag="flag"
  336. ></lightDetail>
  337. </div>
  338. </el-dialog>
  339. </div>
  340. </div>
  341. </template>
  342. <script>
  343. import qushiDialog from "@/components/qushi/qushiDialog.vue";
  344. import windDetail from "@/components/windDetail/index";
  345. import lightDetail from "@/components/lightDetial/index.vue";
  346. import SvgIcon from "@com/coms/icon/svg-icon.vue";
  347. import { deepClone, findUpColor } from "@/utills/func.js";
  348. import HeaderNav from "@/components/headerNavSta/index.vue";
  349. import api from "@api/cockpit/matrix/index.js";
  350. export default {
  351. // 名称
  352. name: "DetailMatrix", //明细矩阵
  353. // 使用组件
  354. components: {
  355. SvgIcon,
  356. HeaderNav,
  357. qushiDialog,
  358. windDetail,
  359. lightDetail,
  360. },
  361. // 数据
  362. data() {
  363. return {
  364. loading: false,
  365. timmer: null, // 定时器开关
  366. sourceMap: {}, // 接口数据
  367. showMatrixList: [], //展示数据
  368. fillFjzt: "all", // 风机/电站状态
  369. mapping: {
  370. 0: "svg-standby",
  371. 1: "svg-manual",
  372. 2: "svg-normal-power",
  373. 3: "svg-drop-output",
  374. 4: "svg-gz-downtime",
  375. 5: "svg-field-involved",
  376. 6: "svg-jx-downtime",
  377. 7: "svg-field-involved",
  378. 8: "svg-limit-power",
  379. 9: "svg-downtime",
  380. 10: "svg-intranet-involvement",
  381. 11: "svg-environment",
  382. 12: "svg-offline",
  383. 13: "svg-unknown",
  384. },
  385. status: "all",
  386. titleArr: [],
  387. // 左侧标签
  388. titleList: [
  389. {
  390. color: "blue",
  391. name: "待机",
  392. text1: "待机",
  393. text2: "手动停机",
  394. value1: "dj",
  395. value2: "0",
  396. value3: "1",
  397. code: "djts",
  398. code1: "dfts",
  399. code2: "sdtj",
  400. icon1: "svg-standby",
  401. icon2: "svg-manual",
  402. },
  403. {
  404. color: "green",
  405. name: "并网",
  406. text1: "正常运行",
  407. text2: "降出力运行",
  408. value1: "yx",
  409. value2: "2",
  410. value3: "3",
  411. code: "bwts",
  412. code1: "zcyx",
  413. code2: "jclyx",
  414. icon1: "svg-normal-power",
  415. icon2: "svg-drop-output",
  416. },
  417. {
  418. color: "red",
  419. name: "故障",
  420. text1: "故障停机",
  421. text2: "故障受累",
  422. value1: "gz",
  423. value2: "4",
  424. value3: "5",
  425. code: "gzts",
  426. code1: "gztj",
  427. code2: "gzsl",
  428. icon1: "svg-gz-downtime",
  429. icon2: "svg-field-involved",
  430. },
  431. {
  432. color: "orange",
  433. name: "检修",
  434. text1: "检修停机",
  435. text2: "检修受累",
  436. value1: "jx",
  437. value2: "6",
  438. value3: "7",
  439. code: "jxts",
  440. code1: "jxtj",
  441. code2: "jxsl",
  442. icon1: "svg-jx-downtime",
  443. icon2: "svg-field-involved",
  444. },
  445. {
  446. color: "pink",
  447. name: "限电",
  448. text1: "限电降出力",
  449. text2: "限电停机",
  450. value1: "xd",
  451. value2: "8",
  452. value3: "9",
  453. code: "xdts",
  454. code1: "xdjcl",
  455. code2: "xdtj",
  456. icon1: "svg-limit-power",
  457. icon2: "svg-downtime",
  458. },
  459. {
  460. color: "write",
  461. name: "受累",
  462. text1: "电网受累",
  463. text2: "环境受累",
  464. value1: "sl",
  465. value2: "10",
  466. value3: "11",
  467. code: "slts",
  468. code1: "dwsl",
  469. code2: "hjsl",
  470. icon1: "svg-intranet-involvement",
  471. icon2: "svg-environment",
  472. },
  473. {
  474. color: "gray",
  475. name: "离线",
  476. text1: "离线",
  477. text2: "未知",
  478. value1: "lx",
  479. value2: "12",
  480. value3: "13",
  481. code: "lx",
  482. code1: "lxz",
  483. code2: "wz",
  484. icon1: "svg-offline",
  485. icon2: "svg-unknown",
  486. },
  487. ],
  488. // 右侧欠发标签
  489. unpaidList: [
  490. {
  491. id: 1,
  492. test: "欠发电量",
  493. num1: 0,
  494. key: "qf0",
  495. num3: "0%~5%",
  496. color: "upGreen",
  497. },
  498. {
  499. id: 2,
  500. test: "欠发电量",
  501. num1: 0,
  502. key: "qf1",
  503. num3: "5%~10%",
  504. color: "upSkyBlue",
  505. },
  506. {
  507. id: 3,
  508. test: "欠发电量",
  509. num1: 0,
  510. key: "qf2",
  511. num3: "10%~20%",
  512. color: "upBlue",
  513. },
  514. {
  515. id: 4,
  516. test: "欠发电量",
  517. num1: 0,
  518. key: "qf3",
  519. num3: "20%~40%",
  520. color: "upPurple",
  521. },
  522. {
  523. id: 5,
  524. test: "欠发电量",
  525. num1: 0,
  526. key: "qf4",
  527. num3: ">40%",
  528. color: "upPink",
  529. },
  530. ],
  531. colorList: [
  532. "blue",
  533. "blue",
  534. "green",
  535. "green",
  536. "red",
  537. "red",
  538. "orange",
  539. "orange",
  540. "pink",
  541. "pink",
  542. "write",
  543. "write",
  544. "gray",
  545. "gray",
  546. ],
  547. subTitleDatas: [
  548. {
  549. text: "接入台数",
  550. color: "#FFFFFF",
  551. key: "jrts",
  552. },
  553. {
  554. text: "待机台数",
  555. color: "#1c99ff",
  556. key: "djts",
  557. },
  558. {
  559. text: "并网台数",
  560. color: "#05BB4C",
  561. key: "bwts",
  562. },
  563. {
  564. text: "故障台数",
  565. color: "#BA3237",
  566. key: "gzts",
  567. },
  568. {
  569. text: "检修台数",
  570. color: "#E17D24",
  571. key: "jxts",
  572. },
  573. {
  574. text: "限电台数",
  575. color: "#C530C8",
  576. key: "xdts",
  577. },
  578. {
  579. text: "受累台数",
  580. color: "#FFFFFF",
  581. key: "slts",
  582. },
  583. {
  584. text: "离线台数",
  585. color: "#606769",
  586. key: "lxts",
  587. },
  588. {
  589. text: "风速",
  590. color: "#9CA5A8",
  591. key: "spped",
  592. text1: "光照强度",
  593. type: "-2",
  594. },
  595. {
  596. text: "预测功率",
  597. color: "#9CA5A8",
  598. key: "ycgl",
  599. },
  600. {
  601. text: "保证功率",
  602. color: "#9CA5A8",
  603. key: "bzgl",
  604. ratio: 1000,
  605. text1: "理论功率",
  606. key1: "llgl",
  607. type: "-2",
  608. },
  609. // {
  610. // text: "理论功率",
  611. // color: "#9CA5A8",
  612. // key: "llgl",
  613. // ratio: 1000,
  614. // },
  615. {
  616. text: "实际功率",
  617. color: "#9CA5A8",
  618. key: "sjgl",
  619. ratio: 1000,
  620. },
  621. // {
  622. // text: "AGC指令",
  623. // color: "#9CA5A8",
  624. // key: "agc",
  625. // flag: true,
  626. // },
  627. // {
  628. // text: "出线功率",
  629. // color: "#9CA5A8",
  630. // key: "cxgl",
  631. // ratio: 1000,
  632. // flag: true,
  633. // },
  634. ],
  635. activeTab: "fc", //全部 风电 光伏
  636. enterpriseIndex: "all", //公司
  637. tabIndex: -1, //全部 0 风电 -1 光伏-2
  638. // wt指标
  639. ssPv: [
  640. {
  641. statiomName: "功率",
  642. stse: "",
  643. sts: "AI114",
  644. },
  645. {
  646. statiomName: "风速",
  647. stse: "",
  648. sts: "AI066",
  649. },
  650. {
  651. statiomName: "发电机转速",
  652. stse: "",
  653. sts: "AI060",
  654. },
  655. ],
  656. // wp指标
  657. stse: [
  658. {
  659. statiomName: "风速",
  660. stse: "",
  661. sts: "SSPJFS",
  662. },
  663. {
  664. statiomName: "预测功率",
  665. stse: "",
  666. sts: "FCFGDQDT0001",
  667. },
  668. {
  669. statiomName: "保证功率",
  670. stse: "",
  671. sts: "SSZBZGL",
  672. },
  673. // {
  674. // statiomName: "理论功率",
  675. // stse: "",
  676. // sts: "SSZNHGLZS",
  677. // },
  678. {
  679. statiomName: "实际功率",
  680. stse: "",
  681. sts: "SSZGL",
  682. },
  683. ],
  684. // 弹窗标题
  685. chartName: "对比曲线",
  686. displayMatrix: false,
  687. wind: {},
  688. wtType: -1,
  689. flag: false,
  690. };
  691. },
  692. // 函数
  693. methods: {
  694. handleMouse() {},
  695. deepClone,
  696. findUpColor,
  697. // 头部tab选择
  698. typeFlag(activeTab) {
  699. this.activeTab = activeTab;
  700. this.tabIndex = activeTab;
  701. this.enterpriseIndex = "all";
  702. this.requestData(true);
  703. clearInterval(this.timmer);
  704. this.timmer = null;
  705. this.timmer = setInterval(() => {
  706. this.requestData();
  707. }, 5000);
  708. },
  709. // 请求服务
  710. requestData(first) {
  711. if (first) {
  712. this.BASE.showLoading();
  713. }
  714. api
  715. .matrixDetailPush({
  716. company:
  717. this.enterpriseIndex == "all"
  718. ? "0"
  719. : this.enterpriseIndex.toString(),
  720. type: this.tabIndex.toString(),
  721. })
  722. .then((res) => {
  723. if (Object.values(res.data.data).length) {
  724. this.BASE.closeLoading();
  725. let sourceMap = res.data.data;
  726. this.sourceMap = sourceMap;
  727. if (this.fillFjzt != "all") {
  728. this.handleClick(this.fillFjzt);
  729. } else {
  730. this.showMatrixList = this.sourceMap.powerVos;
  731. }
  732. } else {
  733. this.sourceMap = {};
  734. this.showMatrixList = [];
  735. }
  736. });
  737. },
  738. chunkArray(arr, chunkSize) {
  739. // 验证输入参数
  740. if (
  741. !Array.isArray(arr) ||
  742. typeof chunkSize !== "number" ||
  743. chunkSize <= 0
  744. ) {
  745. throw new Error(
  746. "Invalid input. Please provide a valid array and a positive chunk size."
  747. );
  748. }
  749. // 初始化二维数组
  750. const result = [];
  751. // 遍历原始数组,按照指定长度分组
  752. for (let i = 0; i < arr.length; i += chunkSize) {
  753. result.push(arr.slice(i, i + chunkSize));
  754. }
  755. return result;
  756. },
  757. // 点击切换状态
  758. handleClick(val) {
  759. this.fillFjzt = val;
  760. this.handleClickWind();
  761. },
  762. // 点击开关闭场站设备
  763. handleToggle(index) {
  764. // this.showMatrixList[index]["switch" + index] =
  765. // !this.showMatrixList[index]["switch" + index];
  766. },
  767. // 状态切换改变数据
  768. handleClickWind() {
  769. // const tempWtArray = this.BASE.deepCopy(sourceMap.powerVos);
  770. // tempWtArray?.forEach((ele) => {
  771. // ele.spWtlist = this.chunkArray(ele.wtlist, 100);
  772. // });
  773. // sourceMap.powerVos.forEach((ele) => {
  774. // ele.wtlist = [];
  775. // });
  776. // for (let i = 0; i < sourceMap.powerVos.length; i++) {
  777. // const ele = sourceMap.powerVos[i];
  778. // for (let j = 0; j < tempWtArray[i]?.spWtlist?.length; j++) {
  779. // setTimeout(() => {
  780. // ele.wtlist = ele.wtlist.concat(tempWtArray[i].spWtlist[j]);
  781. // }, 500);
  782. // }
  783. // }
  784. // console.log(11, tempWtArray);
  785. // console.log(22, sourceMap);
  786. this.loading = false;
  787. this.showMatrixList = JSON.parse(JSON.stringify(this.sourceMap.powerVos));
  788. let matrixList = this.sourceMap.powerVos;
  789. if (this.fillFjzt !== "all") {
  790. this.showMatrixList.forEach((item) => {
  791. item.wtlist = [];
  792. });
  793. switch (this.fillFjzt) {
  794. case "dj":
  795. matrixList.forEach((val, index) => {
  796. val.wtlist.forEach((item) => {
  797. if (item.status === 0 || item.status === 1) {
  798. this.showMatrixList[index].wtlist.push(item);
  799. }
  800. });
  801. });
  802. break;
  803. case "0":
  804. matrixList.forEach((val, index) => {
  805. val.wtlist.forEach((item) => {
  806. if (item.status === 0) {
  807. this.showMatrixList[index].wtlist.push(item);
  808. }
  809. });
  810. });
  811. break;
  812. case "1":
  813. matrixList.forEach((val, index) => {
  814. val.wtlist.forEach((item) => {
  815. if (item.status === 1) {
  816. this.showMatrixList[index].wtlist.push(item);
  817. }
  818. });
  819. });
  820. break;
  821. case "yx":
  822. matrixList.forEach((val, index) => {
  823. val.wtlist.forEach((item) => {
  824. if (item.status === 2 || item.status === 3) {
  825. this.showMatrixList[index].wtlist.push(item);
  826. }
  827. });
  828. });
  829. break;
  830. case "2":
  831. matrixList.forEach((val, index) => {
  832. val.wtlist.forEach((item) => {
  833. if (item.status === 2) {
  834. this.showMatrixList[index].wtlist.push(item);
  835. }
  836. });
  837. });
  838. break;
  839. case "3":
  840. matrixList.forEach((val, index) => {
  841. val.wtlist.forEach((item) => {
  842. if (item.status === 3) {
  843. this.showMatrixList[index].wtlist.push(item);
  844. }
  845. });
  846. });
  847. break;
  848. case "gz":
  849. matrixList.forEach((val, index) => {
  850. val.wtlist.forEach((item) => {
  851. if (item.status === 4 || item.status === 5) {
  852. this.showMatrixList[index].wtlist.push(item);
  853. }
  854. });
  855. });
  856. break;
  857. case "4":
  858. matrixList.forEach((val, index) => {
  859. val.wtlist.forEach((item) => {
  860. if (item.status === 4) {
  861. this.showMatrixList[index].wtlist.push(item);
  862. }
  863. });
  864. });
  865. break;
  866. case "5":
  867. matrixList.forEach((val, index) => {
  868. val.wtlist.forEach((item) => {
  869. if (item.status === 5) {
  870. this.showMatrixList[index].wtlist.push(item);
  871. }
  872. });
  873. });
  874. break;
  875. case "jx":
  876. matrixList.forEach((val, index) => {
  877. val.wtlist.forEach((item) => {
  878. if (item.status === 6 || item.status === 7) {
  879. this.showMatrixList[index].wtlist.push(item);
  880. }
  881. });
  882. });
  883. break;
  884. case "6":
  885. matrixList.forEach((val, index) => {
  886. val.wtlist.forEach((item) => {
  887. if (item.status === 6) {
  888. this.showMatrixList[index].wtlist.push(item);
  889. }
  890. });
  891. });
  892. break;
  893. case "7":
  894. matrixList.forEach((val, index) => {
  895. val.wtlist.forEach((item) => {
  896. if (item.status === 7) {
  897. this.showMatrixList[index].wtlist.push(item);
  898. }
  899. });
  900. });
  901. break;
  902. case "xd":
  903. matrixList.forEach((val, index) => {
  904. val.wtlist.forEach((item) => {
  905. if (item.status === 8 || item.status === 9) {
  906. this.showMatrixList[index].wtlist.push(item);
  907. }
  908. });
  909. });
  910. break;
  911. case "8":
  912. matrixList.forEach((val, index) => {
  913. val.wtlist.forEach((item) => {
  914. if (item.status === 8) {
  915. this.showMatrixList[index].wtlist.push(item);
  916. }
  917. });
  918. });
  919. break;
  920. case "9":
  921. matrixList.forEach((val, index) => {
  922. val.wtlist.forEach((item) => {
  923. if (item.status === 9) {
  924. this.showMatrixList[index].wtlist.push(item);
  925. }
  926. });
  927. });
  928. break;
  929. case "sl":
  930. matrixList.forEach((val, index) => {
  931. val.wtlist.forEach((item) => {
  932. if (item.status === 10 || item.status === 11) {
  933. this.showMatrixList[index].wtlist.push(item);
  934. }
  935. });
  936. });
  937. break;
  938. case "10":
  939. matrixList.forEach((val, index) => {
  940. val.wtlist.forEach((item) => {
  941. if (item.status === 10) {
  942. this.showMatrixList[index].wtlist.push(item);
  943. }
  944. });
  945. });
  946. break;
  947. case "11":
  948. matrixList.forEach((val, index) => {
  949. val.wtlist.forEach((item) => {
  950. if (item.status === 11) {
  951. this.showMatrixList[index].wtlist.push(item);
  952. }
  953. });
  954. });
  955. break;
  956. case "lx":
  957. matrixList.forEach((val, index) => {
  958. val.wtlist.forEach((item) => {
  959. if (item.status === 12 || item.status === 13) {
  960. this.showMatrixList[index].wtlist.push(item);
  961. }
  962. });
  963. });
  964. break;
  965. case "12":
  966. matrixList.forEach((val, index) => {
  967. val.wtlist.forEach((item) => {
  968. if (item.status === 12) {
  969. this.showMatrixList[index].wtlist.push(item);
  970. }
  971. });
  972. });
  973. break;
  974. case "13":
  975. matrixList.forEach((val, index) => {
  976. val.wtlist.forEach((item) => {
  977. if (item.status === 13) {
  978. this.showMatrixList[index].wtlist.push(item);
  979. }
  980. });
  981. });
  982. break;
  983. // case "all":
  984. // this.showMatrixList = this.sourceMap.powerVos;
  985. // break;
  986. }
  987. } else {
  988. this.showMatrixList = this.sourceMap.powerVos;
  989. }
  990. const tempWtArray = this.chunkArray(this.showMatrixList, 3);
  991. this.showMatrixList = tempWtArray[0];
  992. for (let i = 1; i < tempWtArray.length; i++) {
  993. setTimeout(() => {
  994. this.showMatrixList.push(...tempWtArray[i]);
  995. }, 5);
  996. }
  997. },
  998. // 点击左侧数据弹出曲线
  999. handleLeftClick(wt, type, wpid) {
  1000. this.displayMatrix = true;
  1001. this.wtType = type;
  1002. this.$nextTick(() => {
  1003. this.wind = { ...wt, wtType: type, wpid };
  1004. this.flag = true;
  1005. });
  1006. // this.$refs.windDetail.start(wt);
  1007. },
  1008. // 点击右侧数据弹出曲线
  1009. handleRightClick(type, wtid) {
  1010. let y = this.deepClone(this.ssPv);
  1011. if (type == "-2") {
  1012. y[1].statiomName = "电流";
  1013. y[1].sts = "AI075";
  1014. y[2].statiomName = "电压";
  1015. y[2].sts = "AIG055";
  1016. }
  1017. this.$refs.child.openCurvDatas(y, 2, wtid);
  1018. },
  1019. // 点击统计项弹出曲线
  1020. handleIndicatorClick(czlx, wpid) {
  1021. let y = this.deepClone(this.stse);
  1022. if (czlx == "-2") {
  1023. y[0].statiomName = "光照强度";
  1024. y[0].sts = "SSPJGZD";
  1025. y[2].statiomName = "理论功率";
  1026. y[2].sts = "SSZNHGLZS";
  1027. }
  1028. this.$refs.child.openCurvDatas(y, 1, wpid);
  1029. },
  1030. },
  1031. unmounted() {
  1032. clearInterval(this.timmer);
  1033. this.timmer = null;
  1034. },
  1035. };
  1036. </script>
  1037. <style lang="less" scoped>
  1038. @panelHeight: 60px;
  1039. @titleHeight: 26px;
  1040. .dark-matrix {
  1041. height: 100%;
  1042. display: flex;
  1043. flex-direction: column;
  1044. .matrix-body {
  1045. display: flex;
  1046. flex-direction: column;
  1047. height: 100%;
  1048. padding-right: 20px;
  1049. padding-left: 20px;
  1050. padding-bottom: 5px;
  1051. .body-title {
  1052. display: flex;
  1053. flex-direction: row;
  1054. align-items: center;
  1055. width: 100%;
  1056. height: 78px;
  1057. background-color: rgba(0, 0, 0, 0.45);
  1058. border-radius: 10px;
  1059. .base-inf {
  1060. display: flex;
  1061. flex-direction: row;
  1062. align-items: center;
  1063. width: 60%;
  1064. height: 100%;
  1065. .title-name {
  1066. display: flex;
  1067. flex-direction: row;
  1068. align-items: center;
  1069. width: 18%;
  1070. height: 100%;
  1071. .imgs {
  1072. display: flex;
  1073. flex-direction: row;
  1074. align-items: center;
  1075. height: 100%;
  1076. margin-left: 11px;
  1077. }
  1078. .base-num {
  1079. display: flex;
  1080. flex-direction: column;
  1081. align-items: center;
  1082. justify-content: center;
  1083. cursor: pointer;
  1084. .nums {
  1085. font-size: 18px;
  1086. font-family: Arial;
  1087. font-weight: 400;
  1088. color: #ffffff;
  1089. }
  1090. .base-name {
  1091. font-size: 14px;
  1092. font-family: Microsoft YaHei;
  1093. font-weight: 400;
  1094. color: #b3b3b3;
  1095. margin-bottom: 10px;
  1096. }
  1097. }
  1098. .all_img {
  1099. width: 20px;
  1100. position: relative;
  1101. left: -34px;
  1102. top: 1px;
  1103. margin-right: 10px;
  1104. animation: move 1s infinite linear;
  1105. }
  1106. .qty_img {
  1107. position: relative;
  1108. left: -39px;
  1109. top: 1px;
  1110. animation: move 1s infinite linear;
  1111. }
  1112. @keyframes move {
  1113. 0% {
  1114. top: 0px;
  1115. }
  1116. 20% {
  1117. top: -1px;
  1118. }
  1119. 40% {
  1120. top: -2px;
  1121. }
  1122. 80% {
  1123. top: -1px;
  1124. }
  1125. 100% {
  1126. top: 0px;
  1127. }
  1128. }
  1129. }
  1130. .matrix-status {
  1131. width: 84%;
  1132. display: flex;
  1133. flex-direction: row;
  1134. align-items: center;
  1135. height: 80%;
  1136. }
  1137. .title-status {
  1138. display: flex;
  1139. flex-direction: column;
  1140. width: 15%;
  1141. height: 100%;
  1142. padding-right: 5px;
  1143. cursor: pointer;
  1144. .status-first {
  1145. width: 100%;
  1146. height: 34%;
  1147. display: flex;
  1148. flex-direction: row;
  1149. align-items: center;
  1150. justify-content: space-between;
  1151. background-color: rgba(5, 187, 76, 0.28);
  1152. border-top: 1px solid #0b3d26;
  1153. border-left: 1px solid #0b3d26;
  1154. border-right: 1px solid #0b3d26;
  1155. .matrix-status-left {
  1156. margin-left: 6px;
  1157. font-size: 14px;
  1158. font-family: Microsoft YaHei;
  1159. font-weight: 400;
  1160. color: #05bb4c;
  1161. }
  1162. .matrix-status-right {
  1163. margin-right: 6px;
  1164. font-size: 16px;
  1165. font-family: Arial;
  1166. font-weight: 400;
  1167. color: #05bb4c;
  1168. }
  1169. }
  1170. .status-end {
  1171. width: 100%;
  1172. height: 33%;
  1173. display: flex;
  1174. flex-direction: row;
  1175. align-items: center;
  1176. justify-content: space-between;
  1177. background-color: rgba(5, 187, 76, 0.16);
  1178. border-left: 1px solid #0b3d26;
  1179. border-right: 1px solid #0b3d26;
  1180. border-bottom: 1px solid #0b3d26;
  1181. .matrix-status-left {
  1182. margin-left: 6px;
  1183. font-size: 12px;
  1184. font-family: Microsoft YaHei;
  1185. font-weight: 400;
  1186. color: #05bb4c;
  1187. }
  1188. .matrix-status-right {
  1189. margin-right: 6px;
  1190. font-size: 14px;
  1191. font-family: Arial;
  1192. font-weight: 400;
  1193. color: #05bb4c;
  1194. }
  1195. }
  1196. .matrix-status-right {
  1197. margin-right: 6px;
  1198. }
  1199. &.green {
  1200. .status-first {
  1201. width: 100%;
  1202. height: 34%;
  1203. display: flex;
  1204. flex-direction: row;
  1205. align-items: center;
  1206. justify-content: space-between;
  1207. background-color: rgba(5, 187, 76, 0.28);
  1208. border-top: 1px solid #0b3d26;
  1209. border-left: 1px solid #0b3d26;
  1210. border-right: 1px solid #0b3d26;
  1211. .matrix-status-left {
  1212. margin-left: 6px;
  1213. font-size: 14px;
  1214. font-family: Microsoft YaHei;
  1215. font-weight: 400;
  1216. color: #05bb4c;
  1217. }
  1218. .matrix-status-right {
  1219. margin-right: 6px;
  1220. font-size: 16px;
  1221. font-family: Arial;
  1222. font-weight: 400;
  1223. color: #05bb4c;
  1224. }
  1225. }
  1226. .status-end {
  1227. width: 100%;
  1228. height: 33%;
  1229. display: flex;
  1230. flex-direction: row;
  1231. align-items: center;
  1232. justify-content: space-between;
  1233. background-color: rgba(5, 187, 76, 0.16);
  1234. border-left: 1px solid #0b3d26;
  1235. border-right: 1px solid #0b3d26;
  1236. border-bottom: 1px solid #0b3d26;
  1237. .matrix-status-left {
  1238. margin-left: 6px;
  1239. font-size: 12px;
  1240. font-family: Microsoft YaHei;
  1241. font-weight: 400;
  1242. color: #05bb4c;
  1243. }
  1244. .matrix-status-right {
  1245. margin-right: 6px;
  1246. font-size: 14px;
  1247. font-family: Arial;
  1248. font-weight: 400;
  1249. color: #05bb4c;
  1250. }
  1251. }
  1252. .matrix-status-right {
  1253. margin-right: 6px;
  1254. }
  1255. }
  1256. &.blue {
  1257. .status-first {
  1258. width: 100%;
  1259. height: 34%;
  1260. display: flex;
  1261. flex-direction: row;
  1262. align-items: center;
  1263. justify-content: space-between;
  1264. background-color: rgba(0, 70, 199, 0.48);
  1265. border-top: 1px solid #1e2341;
  1266. border-left: 1px solid #1e2341;
  1267. border-right: 1px solid #1e2341;
  1268. .matrix-status-left {
  1269. margin-left: 6px;
  1270. font-size: 14px;
  1271. font-family: Microsoft YaHei;
  1272. font-weight: 400;
  1273. color: #1c99ff;
  1274. }
  1275. .matrix-status-right {
  1276. margin-right: 6px;
  1277. font-size: 16px;
  1278. font-family: Arial;
  1279. font-weight: 400;
  1280. color: #1c99ff;
  1281. }
  1282. }
  1283. .status-end {
  1284. width: 100%;
  1285. height: 33%;
  1286. display: flex;
  1287. flex-direction: row;
  1288. align-items: center;
  1289. justify-content: space-between;
  1290. background-color: rgba(0, 70, 199, 0.16);
  1291. border-left: 1px solid #1e2341;
  1292. border-right: 1px solid #1e2341;
  1293. border-bottom: 1px solid #1e2341;
  1294. .matrix-status-left {
  1295. margin-left: 6px;
  1296. font-size: 12px;
  1297. font-family: Microsoft YaHei;
  1298. font-weight: 400;
  1299. color: #1c99ff;
  1300. }
  1301. .matrix-status-right {
  1302. margin-right: 6px;
  1303. font-size: 14px;
  1304. font-family: Arial;
  1305. font-weight: 400;
  1306. color: #1c99ff;
  1307. }
  1308. }
  1309. .matrix-status-right {
  1310. margin-right: 6px;
  1311. }
  1312. }
  1313. &.pink {
  1314. .status-first {
  1315. width: 100%;
  1316. height: 34%;
  1317. display: flex;
  1318. flex-direction: row;
  1319. align-items: center;
  1320. justify-content: space-between;
  1321. background-color: rgba(197, 48, 200, 0.28);
  1322. border-top: 1px solid #3e1a48;
  1323. border-left: 1px solid #3e1a48;
  1324. border-right: 1px solid #3e1a48;
  1325. .matrix-status-left {
  1326. margin-left: 6px;
  1327. font-size: 14px;
  1328. font-family: Microsoft YaHei;
  1329. font-weight: 400;
  1330. color: #c530c8;
  1331. }
  1332. .matrix-status-right {
  1333. margin-right: 6px;
  1334. font-size: 16px;
  1335. font-family: Arial;
  1336. font-weight: 400;
  1337. color: #c530c8;
  1338. }
  1339. }
  1340. .status-end {
  1341. width: 100%;
  1342. height: 33%;
  1343. display: flex;
  1344. flex-direction: row;
  1345. align-items: center;
  1346. justify-content: space-between;
  1347. background-color: rgba(197, 48, 200, 0.16);
  1348. border-left: 1px solid #3e1a48;
  1349. border-right: 1px solid #3e1a48;
  1350. border-bottom: 1px solid #3e1a48;
  1351. .matrix-status-left {
  1352. margin-left: 6px;
  1353. font-size: 12px;
  1354. font-family: Microsoft YaHei;
  1355. font-weight: 400;
  1356. color: #c530c8;
  1357. }
  1358. .matrix-status-right {
  1359. margin-right: 6px;
  1360. font-size: 14px;
  1361. font-family: Arial;
  1362. font-weight: 400;
  1363. color: #c530c8;
  1364. }
  1365. }
  1366. .matrix-status-right {
  1367. margin-right: 6px;
  1368. }
  1369. }
  1370. &.red {
  1371. .status-first {
  1372. width: 100%;
  1373. height: 34%;
  1374. display: flex;
  1375. flex-direction: row;
  1376. align-items: center;
  1377. justify-content: space-between;
  1378. background-color: rgba(186, 50, 55, 0.28);
  1379. border-top: 1px solid #3c1c1f;
  1380. border-left: 1px solid #3c1c1f;
  1381. border-right: 1px solid #3c1c1f;
  1382. .matrix-status-left {
  1383. margin-left: 6px;
  1384. font-size: 14px;
  1385. font-family: Microsoft YaHei;
  1386. font-weight: 400;
  1387. color: #ba3237;
  1388. }
  1389. .matrix-status-right {
  1390. margin-right: 6px;
  1391. font-size: 16px;
  1392. font-family: Arial;
  1393. font-weight: 400;
  1394. color: #ba3237;
  1395. }
  1396. }
  1397. .status-end {
  1398. width: 100%;
  1399. height: 33%;
  1400. display: flex;
  1401. flex-direction: row;
  1402. align-items: center;
  1403. justify-content: space-between;
  1404. background-color: rgba(186, 50, 55, 0.16);
  1405. border-left: 1px solid #3c1c1f;
  1406. border-right: 1px solid #3c1c1f;
  1407. border-bottom: 1px solid #3c1c1f;
  1408. .matrix-status-left {
  1409. margin-left: 6px;
  1410. font-size: 12px;
  1411. font-family: Microsoft YaHei;
  1412. font-weight: 400;
  1413. color: #ba3237;
  1414. }
  1415. .matrix-status-right {
  1416. margin-right: 6px;
  1417. font-size: 14px;
  1418. font-family: Arial;
  1419. font-weight: 400;
  1420. color: #ba3237;
  1421. }
  1422. }
  1423. .matrix-status-right {
  1424. margin-right: 6px;
  1425. }
  1426. }
  1427. &.orange {
  1428. .status-first {
  1429. width: 100%;
  1430. height: 34%;
  1431. display: flex;
  1432. flex-direction: row;
  1433. align-items: center;
  1434. justify-content: space-between;
  1435. background-color: rgba(225, 125, 36, 0.28);
  1436. border-top: 1px solid #46301a;
  1437. border-left: 1px solid #46301a;
  1438. border-right: 1px solid #46301a;
  1439. .matrix-status-left {
  1440. margin-left: 6px;
  1441. font-size: 14px;
  1442. font-family: Microsoft YaHei;
  1443. font-weight: 400;
  1444. color: #e17d24;
  1445. }
  1446. .matrix-status-right {
  1447. margin-right: 6px;
  1448. font-size: 16px;
  1449. font-family: Arial;
  1450. font-weight: 400;
  1451. color: #e17d24;
  1452. }
  1453. }
  1454. .status-end {
  1455. width: 100%;
  1456. height: 33%;
  1457. display: flex;
  1458. flex-direction: row;
  1459. align-items: center;
  1460. justify-content: space-between;
  1461. background-color: rgba(225, 125, 36, 0.16);
  1462. border-left: 1px solid #46301a;
  1463. border-right: 1px solid #46301a;
  1464. border-bottom: 1px solid #46301a;
  1465. .matrix-status-left {
  1466. margin-left: 6px;
  1467. font-size: 12px;
  1468. font-family: Microsoft YaHei;
  1469. font-weight: 400;
  1470. color: #e17d24;
  1471. }
  1472. .matrix-status-right {
  1473. margin-right: 6px;
  1474. font-size: 14px;
  1475. font-family: Arial;
  1476. font-weight: 400;
  1477. color: #e17d24;
  1478. }
  1479. }
  1480. .matrix-status-right {
  1481. margin-right: 6px;
  1482. }
  1483. }
  1484. &.gray {
  1485. .status-first {
  1486. width: 100%;
  1487. height: 34%;
  1488. display: flex;
  1489. flex-direction: row;
  1490. align-items: center;
  1491. justify-content: space-between;
  1492. background-color: rgba(96, 103, 105, 0.28);
  1493. border-top: 1px solid #262b32;
  1494. border-left: 1px solid #262b32;
  1495. border-right: 1px solid #262b32;
  1496. .matrix-status-left {
  1497. margin-left: 6px;
  1498. font-size: 14px;
  1499. font-family: Microsoft YaHei;
  1500. font-weight: 400;
  1501. color: #606769;
  1502. }
  1503. .matrix-status-right {
  1504. margin-right: 6px;
  1505. font-size: 16px;
  1506. font-family: Arial;
  1507. font-weight: 400;
  1508. color: #606769;
  1509. }
  1510. }
  1511. .status-end {
  1512. width: 100%;
  1513. height: 33%;
  1514. display: flex;
  1515. flex-direction: row;
  1516. align-items: center;
  1517. justify-content: space-between;
  1518. background-color: rgba(96, 103, 105, 0.16);
  1519. border-left: 1px solid #262b32;
  1520. border-right: 1px solid #262b32;
  1521. border-bottom: 1px solid #262b32;
  1522. .matrix-status-left {
  1523. margin-left: 6px;
  1524. font-size: 12px;
  1525. font-family: Microsoft YaHei;
  1526. font-weight: 400;
  1527. color: #606769;
  1528. }
  1529. .matrix-status-right {
  1530. margin-right: 6px;
  1531. font-size: 14px;
  1532. font-family: Arial;
  1533. font-weight: 400;
  1534. color: #606769;
  1535. }
  1536. }
  1537. .matrix-status-right {
  1538. margin-right: 6px;
  1539. }
  1540. }
  1541. &.write {
  1542. .status-first {
  1543. width: 100%;
  1544. height: 34%;
  1545. display: flex;
  1546. flex-direction: row;
  1547. align-items: center;
  1548. justify-content: space-between;
  1549. background-color: rgba(255, 255, 255, 0.28);
  1550. border-top: 1px solid #3f4349;
  1551. border-left: 1px solid #3f4349;
  1552. border-right: 1px solid #3f4349;
  1553. .matrix-status-left {
  1554. margin-left: 6px;
  1555. font-size: 14px;
  1556. font-family: Microsoft YaHei;
  1557. font-weight: 400;
  1558. color: #ffffff;
  1559. }
  1560. .matrix-status-right {
  1561. margin-right: 6px;
  1562. font-size: 16px;
  1563. font-family: Arial;
  1564. font-weight: 400;
  1565. color: #ffffff;
  1566. }
  1567. }
  1568. .status-end {
  1569. width: 100%;
  1570. height: 33%;
  1571. display: flex;
  1572. flex-direction: row;
  1573. align-items: center;
  1574. justify-content: space-between;
  1575. background-color: rgba(255, 255, 255, 0.16);
  1576. border-left: 1px solid #3f4349;
  1577. border-right: 1px solid #3f4349;
  1578. border-bottom: 1px solid #3f4349;
  1579. .matrix-status-left {
  1580. margin-left: 6px;
  1581. font-size: 12px;
  1582. font-family: Microsoft YaHei;
  1583. font-weight: 400;
  1584. color: #ffffff;
  1585. }
  1586. .matrix-status-right {
  1587. margin-right: 6px;
  1588. font-size: 14px;
  1589. font-family: Arial;
  1590. font-weight: 400;
  1591. color: #ffffff;
  1592. }
  1593. }
  1594. .matrix-status-right {
  1595. margin-right: 6px;
  1596. }
  1597. }
  1598. }
  1599. }
  1600. .unpaid {
  1601. display: flex;
  1602. flex-direction: row;
  1603. align-items: center;
  1604. width: 40%;
  1605. height: 100%;
  1606. .unpaid-item {
  1607. width: 20%;
  1608. height: 80%;
  1609. margin-right: 5px;
  1610. padding: 0 10px;
  1611. .unpaid-img {
  1612. width: 115px;
  1613. height: 39px;
  1614. }
  1615. .unpaid-value {
  1616. width: 90%;
  1617. display: flex;
  1618. flex-direction: row-reverse;
  1619. font-size: 18px;
  1620. font-family: Arial;
  1621. font-weight: 400;
  1622. color: #ff9f1f;
  1623. margin-top: -20px;
  1624. }
  1625. .unpaid-name {
  1626. width: 90%;
  1627. font-size: 14px;
  1628. font-family: Microsoft YaHei;
  1629. font-weight: 400;
  1630. color: #b3b3b3;
  1631. transform: translate(50%, -100%);
  1632. }
  1633. }
  1634. .unpaid-item1 {
  1635. width: 20%;
  1636. height: 80%;
  1637. margin-right: 5px;
  1638. &.upGreen {
  1639. .percent {
  1640. background-color: rgba(87, 207, 58, 0.8);
  1641. border-top: 1px solid rgba(87, 207, 58, 0.35);
  1642. border-left: 1px solid rgba(87, 207, 58, 0.35);
  1643. border-right: 1px solid rgba(87, 207, 58, 0.35);
  1644. }
  1645. .nums {
  1646. background-color: rgba(87, 207, 58, 0.35);
  1647. border-left: 1px solid rgba(87, 207, 58, 0.35);
  1648. border-right: 1px solid rgba(87, 207, 58, 0.35);
  1649. border-bottom: 1px solid rgba(87, 207, 58, 0.35);
  1650. }
  1651. }
  1652. &.upSkyBlue {
  1653. .percent {
  1654. background-color: rgba(14, 199, 220, 0.8);
  1655. border-top: 1px solid rgba(14, 199, 220, 0.35);
  1656. border-left: 1px solid rgba(14, 199, 220, 0.35);
  1657. border-right: 1px solid rgba(14, 199, 220, 0.35);
  1658. }
  1659. .nums {
  1660. background-color: rgba(14, 199, 220, 0.35);
  1661. border-left: 1px solid rgba(14, 199, 220, 0.35);
  1662. border-right: 1px solid rgba(14, 199, 220, 0.35);
  1663. border-bottom: 1px solid rgba(14, 199, 220, 0.35);
  1664. }
  1665. }
  1666. &.upBlue {
  1667. .percent {
  1668. background-color: rgba(25, 116, 255, 0.8);
  1669. border-top: 1px solid rgba(25, 116, 255, 0.35);
  1670. border-left: 1px solid rgba(25, 116, 255, 0.35);
  1671. border-right: 1px solid rgba(25, 116, 255, 0.35);
  1672. }
  1673. .nums {
  1674. background-color: rgba(25, 116, 255, 0.35);
  1675. border-left: 1px solid rgba(25, 116, 255, 0.35);
  1676. border-right: 1px solid rgba(25, 116, 255, 0.35);
  1677. border-bottom: 1px solid rgba(25, 116, 255, 0.35);
  1678. }
  1679. }
  1680. &.upPurple {
  1681. .percent {
  1682. background-color: rgba(205, 76, 221, 0.8);
  1683. border-top: 1px solid rgba(205, 76, 221, 0.35);
  1684. border-left: 1px solid rgba(205, 76, 221, 0.35);
  1685. border-right: 1px solid rgba(205, 76, 221, 0.35);
  1686. }
  1687. .nums {
  1688. background-color: rgba(205, 76, 221, 0.35);
  1689. border-left: 1px solid rgba(205, 76, 221, 0.35);
  1690. border-right: 1px solid rgba(205, 76, 221, 0.35);
  1691. border-bottom: 1px solid rgba(205, 76, 221, 0.35);
  1692. }
  1693. }
  1694. &.upPink {
  1695. .percent {
  1696. background-color: rgba(255, 60, 128, 0.8);
  1697. border-top: 1px solid rgba(255, 60, 128, 0.35);
  1698. border-left: 1px solid rgba(255, 60, 128, 0.35);
  1699. border-right: 1px solid rgba(255, 60, 128, 0.35);
  1700. }
  1701. .nums {
  1702. background-color: rgba(255, 60, 128, 0.35);
  1703. border-left: 1px solid rgba(255, 60, 128, 0.35);
  1704. border-right: 1px solid rgba(255, 60, 128, 0.35);
  1705. border-bottom: 1px solid rgba(255, 60, 128, 0.35);
  1706. }
  1707. }
  1708. .percent {
  1709. width: 100%;
  1710. height: 50%;
  1711. display: flex;
  1712. align-items: center;
  1713. justify-content: center;
  1714. font-size: 14px;
  1715. font-family: Arial;
  1716. font-weight: 400;
  1717. color: #ffffff;
  1718. }
  1719. .nums {
  1720. width: 100%;
  1721. height: 50%;
  1722. display: flex;
  1723. flex-direction: row;
  1724. align-items: center;
  1725. justify-content: center;
  1726. font-size: 16px;
  1727. font-family: Arial;
  1728. font-weight: 400;
  1729. color: #ffffff;
  1730. padding: 0 8px;
  1731. }
  1732. }
  1733. }
  1734. }
  1735. .matrix-box {
  1736. background-color: rgba(0, 0, 0, 0.45);
  1737. }
  1738. .matrixs {
  1739. width: 100%;
  1740. margin-top: 7px;
  1741. .matrix-title {
  1742. display: flex;
  1743. flex-direction: row;
  1744. align-items: center;
  1745. width: 100%;
  1746. height: 32px;
  1747. background-color: rgba(96, 103, 105, 0.4);
  1748. font-size: 12px;
  1749. font-family: SourceHanSansCN;
  1750. font-weight: 400;
  1751. color: #05bb4c;
  1752. padding: 0 12px;
  1753. .matrix-svg {
  1754. flex: 0 0 auto;
  1755. margin-right: 10px;
  1756. display: flex;
  1757. align-items: center;
  1758. }
  1759. &.active {
  1760. color: #fc8004;
  1761. }
  1762. .station-name {
  1763. margin-left: 5px;
  1764. margin-right: 18px;
  1765. }
  1766. .indicator {
  1767. display: flex;
  1768. flex-direction: row;
  1769. align-items: center;
  1770. width: 93%;
  1771. height: 100%;
  1772. white-space: nowrap;
  1773. }
  1774. .sub-title-item {
  1775. display: flex;
  1776. flex-direction: row;
  1777. align-items: center;
  1778. // width: 7%;
  1779. width: 8%;
  1780. height: 100%;
  1781. margin-right: 20px;
  1782. font-size: 12px;
  1783. font-family: Microsoft YaHei;
  1784. font-weight: 400;
  1785. color: #b3b3b3;
  1786. &.active {
  1787. cursor: pointer;
  1788. }
  1789. &.active1 {
  1790. // width: 5%;
  1791. width: 6%;
  1792. }
  1793. .sub-value {
  1794. font-size: 14px;
  1795. font-family: Arial;
  1796. font-weight: 400;
  1797. margin-left: 5px;
  1798. }
  1799. }
  1800. }
  1801. .matrix-list {
  1802. display: grid;
  1803. justify-content: space-between;
  1804. grid-template-columns: repeat(auto-fill, 142px);
  1805. width: 100%;
  1806. margin-top: 5px;
  1807. .matrix-card {
  1808. display: flex;
  1809. flex-direction: column;
  1810. width: 142px;
  1811. height: 59px;
  1812. margin-right: 2px;
  1813. margin-bottom: 2px;
  1814. background-color: rgba(0, 0, 0, 0.5);
  1815. .info {
  1816. display: flex;
  1817. flex-direction: row;
  1818. align-items: center;
  1819. width: 100%;
  1820. height: 50px;
  1821. .card-left {
  1822. width: 55px;
  1823. height: 100%;
  1824. display: flex;
  1825. flex-direction: column;
  1826. align-items: center;
  1827. position: relative;
  1828. .lock {
  1829. width: 0;
  1830. height: 0;
  1831. border-top: 8px solid #fff;
  1832. border-right: 8px solid transparent;
  1833. position: absolute;
  1834. top: 0;
  1835. left: 0;
  1836. }
  1837. .card-name {
  1838. font-size: 13px;
  1839. font-family: Arial;
  1840. font-weight: 400;
  1841. margin-top: 5px;
  1842. margin-bottom: 5px;
  1843. }
  1844. }
  1845. .card-right {
  1846. width: calc(100% - 1px - 55px);
  1847. display: flex;
  1848. flex-direction: column;
  1849. padding-left: 10px;
  1850. position: relative;
  1851. .right-item {
  1852. display: flex;
  1853. flex-direction: row;
  1854. align-items: center;
  1855. height: 15px;
  1856. .right-value {
  1857. font-size: 12px;
  1858. font-family: Arial;
  1859. font-weight: 400;
  1860. margin-left: 3px;
  1861. }
  1862. }
  1863. .card-hover {
  1864. position: absolute;
  1865. // width: 100px;
  1866. // height: 50px;
  1867. background-color: rgba(0, 0, 0, 1);
  1868. left: -30px;
  1869. top: -50px;
  1870. display: none;
  1871. }
  1872. }
  1873. .card-right:hover {
  1874. .card-hover {
  1875. display: block;
  1876. }
  1877. }
  1878. }
  1879. .matrix-progress {
  1880. display: flex;
  1881. flex-direction: row;
  1882. align-items: center;
  1883. width: 100%;
  1884. padding: 0 4px;
  1885. height: 8px;
  1886. .progress-block {
  1887. // width: 19px;
  1888. height: 3px;
  1889. background-color: #05bb4c;
  1890. // margin-right: 2px;
  1891. &.upGreen {
  1892. background-color: rgba(87, 207, 58, 1);
  1893. }
  1894. &.upSkyBlue {
  1895. background-color: rgba(14, 199, 220, 1);
  1896. }
  1897. &.upBlue {
  1898. background-color: rgba(25, 116, 255, 1);
  1899. }
  1900. &.upPurple {
  1901. background-color: rgba(205, 76, 221, 1);
  1902. }
  1903. &.upPink {
  1904. background-color: rgba(255, 60, 128, 1);
  1905. }
  1906. }
  1907. }
  1908. &.green {
  1909. border: 1px solid #05bb4c;
  1910. color: #05bb4c;
  1911. .info {
  1912. border-bottom: 1px solid #05bb4c;
  1913. background-color: rgba(5, 187, 76, 0.15);
  1914. .dashed {
  1915. width: 1px;
  1916. height: 100%;
  1917. background-image: linear-gradient(
  1918. #05bb4c 0%,
  1919. #05bb4c 40%,
  1920. transparent 50%
  1921. );
  1922. background-size: 1px 9px;
  1923. }
  1924. }
  1925. }
  1926. &.blue {
  1927. border: 1px solid #074ead;
  1928. color: #1c99ff;
  1929. .info {
  1930. border-bottom: 1px solid #074ead;
  1931. background-color: rgba(0, 70, 199, 0.25);
  1932. .dashed {
  1933. width: 1px;
  1934. height: 100%;
  1935. background-image: linear-gradient(
  1936. #074ead 0%,
  1937. #074ead 40%,
  1938. transparent 50%
  1939. );
  1940. background-size: 1px 9px;
  1941. }
  1942. }
  1943. }
  1944. &.pink {
  1945. border: 1px solid #c530c8;
  1946. color: #c530c8;
  1947. .info {
  1948. border-bottom: 1px solid #c530c8;
  1949. background-color: rgba(197, 48, 200, 0.15);
  1950. .dashed {
  1951. width: 1px;
  1952. height: 100%;
  1953. background-image: linear-gradient(
  1954. #c530c8 0%,
  1955. #c530c8 40%,
  1956. transparent 50%
  1957. );
  1958. background-size: 1px 9px;
  1959. }
  1960. }
  1961. }
  1962. &.red {
  1963. border: 1px solid #ba3237;
  1964. color: #ffffff;
  1965. .info {
  1966. border-bottom: 1px solid #ba3237;
  1967. background-color: rgba(186, 50, 55, 1);
  1968. .dashed {
  1969. width: 1px;
  1970. height: 100%;
  1971. background-image: linear-gradient(
  1972. #e17d24 0%,
  1973. #e17d24 40%,
  1974. transparent 50%
  1975. );
  1976. background-size: 1px 9px;
  1977. }
  1978. }
  1979. }
  1980. &.orange {
  1981. border: 1px solid #e17d24;
  1982. color: #e17d24;
  1983. .info {
  1984. border-bottom: 1px solid #e17d24;
  1985. background-color: rgba(225, 125, 36, 0.15);
  1986. .dashed {
  1987. width: 1px;
  1988. height: 100%;
  1989. background-image: linear-gradient(
  1990. #e17d24 0%,
  1991. #e17d24 40%,
  1992. transparent 50%
  1993. );
  1994. background-size: 1px 9px;
  1995. }
  1996. }
  1997. }
  1998. &.write {
  1999. border: 1px solid #51555a;
  2000. color: #ffffff;
  2001. .info {
  2002. border-bottom: 1px solid #51555a;
  2003. background-color: rgba(81, 85, 90, 1);
  2004. .dashed {
  2005. width: 1px;
  2006. height: 100%;
  2007. background-image: linear-gradient(
  2008. #262626 0%,
  2009. #262626 40%,
  2010. transparent 50%
  2011. );
  2012. background-size: 1px 9px;
  2013. }
  2014. }
  2015. }
  2016. &.gray {
  2017. border: 1px solid #606769;
  2018. color: #a7a7a7;
  2019. .info {
  2020. border-bottom: 1px solid #606769;
  2021. background-color: rgba(96, 103, 105, 0.2);
  2022. .dashed {
  2023. width: 1px;
  2024. height: 100%;
  2025. background-image: linear-gradient(
  2026. #262626 0%,
  2027. #262626 40%,
  2028. transparent 50%
  2029. );
  2030. background-size: 1px 9px;
  2031. }
  2032. }
  2033. }
  2034. }
  2035. }
  2036. }
  2037. .active_vie {
  2038. width: 100%;
  2039. margin-top: 0;
  2040. margin-bottom: 5px;
  2041. .matrix-list {
  2042. display: grid;
  2043. justify-content: space-between;
  2044. grid-template-columns: repeat(auto-fill, 114px);
  2045. width: 100%;
  2046. margin-top: 0;
  2047. }
  2048. }
  2049. }
  2050. }
  2051. .clearfix::after {
  2052. content: "";
  2053. clear: both;
  2054. height: 0;
  2055. line-height: 0;
  2056. visibility: hidden;
  2057. display: block;
  2058. }
  2059. .clearfix {
  2060. zoom: 1;
  2061. }
  2062. </style>