agc-panel.vue 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510
  1. <template>
  2. <div :class="$store.state.themeName == 'dark' ? 'dark-grid' : 'light-grid'">
  3. <div
  4. class="grid-content"
  5. style="width: 443px"
  6. :class="{ activeError: data.agc009 == '1', visibe: data.add }"
  7. >
  8. <ul>
  9. <li class="agc_title">
  10. <p>
  11. <span>{{ data.wpname || "---" }}</span>
  12. <i
  13. style="cursor: pointer"
  14. class="svg-icon svg-icon-sm svg-icon-green"
  15. @click="handleClick(data)"
  16. >
  17. <SvgIcon svgid="svg-line"></SvgIcon>
  18. </i>
  19. </p>
  20. <p class="agc_name" :class="{ activeBaC: data.agc009 == '1' }"></p>
  21. </li>
  22. <li class="agc_content">
  23. <div>
  24. <p>
  25. 有功设定限值<span class="agc_val">{{
  26. (data.agc002 / 1000).toFixed(2) || "--"
  27. }}</span
  28. ><span class="agc_units">MW</span>
  29. </p>
  30. <p class="pw_val">
  31. 出线功率
  32. <span
  33. class="agc_val agc_ch"
  34. :class="{
  35. activeChao: Number(data.agc001) > Number(data.agc002),
  36. activeXiao: Number(data.agc001) < Number(data.agc002),
  37. }"
  38. >{{ (data.agc001 / 1000).toFixed(2) || "--" }}</span
  39. ><span class="agc_unit">MW</span>
  40. </p>
  41. </div>
  42. <div>
  43. <p>
  44. AGC可调上限<span class="agc_val">{{
  45. (data.agc003 / 1000).toFixed(2) || "--"
  46. }}</span
  47. ><span class="agc_units">MW</span>
  48. </p>
  49. <p>
  50. 理论功率<span class="agc_val">{{
  51. (data.agc010 / 1000).toFixed(2) || "--"
  52. }}</span
  53. ><span class="agc_unit">MW</span>
  54. </p>
  55. </div>
  56. <div>
  57. <p>
  58. AGC可调下限<span class="agc_val">{{
  59. (data.agc004 / 1000).toFixed(2) || "--"
  60. }}</span
  61. ><span class="agc_units">MW</span>
  62. </p>
  63. <p>
  64. 预测功率<span class="agc_val">{{
  65. (data.ycgl / 1000).toFixed(2) || "--"
  66. }}</span
  67. ><span class="agc_unit">MW</span>
  68. </p>
  69. </div>
  70. </li>
  71. <li class="agc_footer">
  72. <!-- 1红其他绿 -->
  73. <div>
  74. <img src="@assets/imgs/zhaung.png" v-if="data.agc006 == '1'" />
  75. <img src="@assets/imgs/zheng.png" v-else />
  76. <p>AGC投入</p>
  77. </div>
  78. <div>
  79. <img src="@assets/imgs/zhaung.png" v-if="data.agc005 == '1'" />
  80. <img src="@assets/imgs/zheng.png" v-else />
  81. <p>AGC远方</p>
  82. </div>
  83. <div>
  84. <img src="@assets/imgs/zhaung.png" v-if="data.agc008 == '1'" />
  85. <img src="@assets/imgs/zheng.png" v-else />
  86. <p>有功增闭锁</p>
  87. </div>
  88. <div>
  89. <img src="@assets/imgs/zhaung.png" v-if="data.agc007 == '1'" />
  90. <img src="@assets/imgs/zheng.png" v-else />
  91. <p>有功减闭锁</p>
  92. </div>
  93. </li>
  94. </ul>
  95. <qushi-dialog ref="child" ></qushi-dialog>
  96. </div>
  97. </div>
  98. </template>
  99. <script>
  100. import qushiDialog from "@/components/qushi/qushiDialog.vue";
  101. import { deepClone } from "@/utills/func.js";
  102. import SvgIcon from "@/components/coms/icon/svg-icon.vue";
  103. export default {
  104. // 名称
  105. name: "AgcPanel",
  106. // 使用组件
  107. components: {
  108. SvgIcon,
  109. qushiDialog,
  110. },
  111. // 传入参数
  112. props: {
  113. data: Object,
  114. },
  115. // 数据
  116. data() {
  117. return {
  118. dialogVisible: false,
  119. stse: [
  120. {
  121. statiomName: "预测功率",
  122. stse: "BDSAMC",
  123. sts: "FCFGCDQ0001",
  124. },
  125. {
  126. statiomName: "有功设定限值",
  127. stse: "BDSAMC",
  128. sts: "AGC002",
  129. },
  130. {
  131. statiomName: "出线功率",
  132. stse: "BDSAMC",
  133. sts: "AGC001",
  134. },
  135. {
  136. statiomName: "理论功率",
  137. stse: "BDSAMC",
  138. sts: "AGC010",
  139. },
  140. ],
  141. };
  142. },
  143. // 函数
  144. methods: {
  145. deepClone,
  146. handleClick(item) {
  147. let y = this.deepClone(this.stse);
  148. y?.forEach((val) => {
  149. val.stse = item.wpname;
  150. });
  151. this.$refs.child.openCurvDatas(y, 4, item.wpid);
  152. },
  153. },
  154. };
  155. </script>
  156. <style lang="less" scoped>
  157. .unitChart {
  158. font-size: 12px;
  159. margin-top: 3px;
  160. }
  161. .panel-table {
  162. width: 100%;
  163. .data-item {
  164. background-color: fade(@gray, 20);
  165. padding: 0.278vh;
  166. padding-left: 0.7407vh;
  167. font-size: 1.204vh;
  168. display: flex;
  169. flex-direction: row;
  170. .data-item-name {
  171. color: @gray;
  172. }
  173. .data-item-count {
  174. color: @green;
  175. margin-left: auto;
  176. margin-right: 0.556vh;
  177. }
  178. .data-item-unit {
  179. color: @gray;
  180. }
  181. .data-item-icon {
  182. margin: auto;
  183. margin-right: 0;
  184. font-size: @fontsize-s;
  185. }
  186. }
  187. }
  188. .green {
  189. color: @green;
  190. }
  191. .red {
  192. color: @red;
  193. }
  194. ul,
  195. ul li,
  196. p {
  197. margin: 0;
  198. padding: 0;
  199. list-style: none;
  200. }
  201. .light-grid {
  202. .grid-content {
  203. height: 227px;
  204. background: #fff;
  205. border-radius: 8px;
  206. margin-bottom: 10px;
  207. .agc_title {
  208. position: relative;
  209. padding: 11px 0 8px 16px;
  210. display: flex;
  211. .agc_name {
  212. width: 35px;
  213. height: 35px;
  214. position: absolute;
  215. right: -1px;
  216. top: -1px;
  217. border-radius: 8px;
  218. background: linear-gradient(
  219. to right top,
  220. rgba(5, 148, 60, 0),
  221. rgba(5, 148, 60, 0),
  222. rgba(5, 148, 60, 0.5)
  223. );
  224. }
  225. .activeBaC {
  226. background: linear-gradient(
  227. to right top,
  228. rgba(5, 148, 60, 0),
  229. rgba(251, 77, 0, 0),
  230. rgba(251, 77, 0, 0.5)
  231. );
  232. }
  233. span {
  234. font-size: 16px;
  235. color: #36348e;
  236. font-weight: 700;
  237. }
  238. i {
  239. position: absolute;
  240. right: 15px;
  241. font-size: 20px;
  242. color: green;
  243. z-index: 1;
  244. }
  245. .activeImg {
  246. color: red;
  247. }
  248. }
  249. .agc_content {
  250. line-height: 37px;
  251. padding: 0 10px 0 20px;
  252. div {
  253. display: flex;
  254. justify-content: space-between;
  255. border-bottom: 1px solid rgba(72, 75, 83, 0.5);
  256. .pw_val {
  257. }
  258. > p:last-of-type {
  259. position: relative;
  260. left: -12px;
  261. width: 162px;
  262. }
  263. p {
  264. font-size: 14px;
  265. color: #606769;
  266. position: relative;
  267. font-weight: 700;
  268. .agc_unit {
  269. position: absolute;
  270. left: 140px;
  271. top: 1px;
  272. }
  273. .agc_units {
  274. position: absolute;
  275. left: 168px;
  276. top: 1px;
  277. }
  278. span {
  279. font-size: 12px;
  280. font-family: "SourceHanSansCN";
  281. color: #606769;
  282. position: relative;
  283. left: 18px;
  284. }
  285. .agc_val {
  286. font-family: "Arial";
  287. font-size: 14px;
  288. color: #36348e;
  289. }
  290. .agc_ch {
  291. position: absolute;
  292. left: 75px;
  293. }
  294. }
  295. }
  296. }
  297. .agc_footer {
  298. //width: 280px;
  299. text-align: center;
  300. margin-top: 13px;
  301. padding: 0 16px;
  302. display: flex;
  303. justify-content: space-between;
  304. img {
  305. width: 20px;
  306. height: 20px;
  307. }
  308. p {
  309. font-size: 14px;
  310. color: #606769;
  311. font-weight: 700;
  312. }
  313. i {
  314. display: inline-block;
  315. width: 10px;
  316. height: 10px;
  317. border-radius: 10px;
  318. }
  319. i.red {
  320. background: red;
  321. }
  322. i.green {
  323. background: green;
  324. }
  325. }
  326. }
  327. }
  328. .dark-grid {
  329. .grid-content {
  330. height: 227px;
  331. background: rgba(30, 37, 36, 0.45);
  332. border-radius: 8px;
  333. margin-bottom: 10px;
  334. .agc_title {
  335. position: relative;
  336. padding: 11px 0 8px 16px;
  337. display: flex;
  338. .agc_name {
  339. width: 35px;
  340. height: 35px;
  341. position: absolute;
  342. right: -1px;
  343. top: -1px;
  344. border-radius: 8px;
  345. background: linear-gradient(
  346. to right top,
  347. rgba(5, 148, 60, 0),
  348. rgba(5, 148, 60, 0),
  349. rgba(5, 148, 60, 0.5)
  350. );
  351. }
  352. .activeBaC {
  353. background: linear-gradient(
  354. to right top,
  355. rgba(5, 148, 60, 0),
  356. rgba(251, 77, 0, 0),
  357. rgba(251, 77, 0, 0.5)
  358. );
  359. }
  360. span {
  361. font-size: 14px;
  362. color: #b3b3b3;
  363. }
  364. i {
  365. position: absolute;
  366. right: 15px;
  367. font-size: 20px;
  368. color: green;
  369. z-index: 1;
  370. }
  371. .activeImg {
  372. color: red;
  373. }
  374. }
  375. .agc_content {
  376. line-height: 37px;
  377. padding: 0 10px 0 20px;
  378. div {
  379. display: flex;
  380. justify-content: space-between;
  381. border-bottom: 1px solid rgba(72, 75, 83, 0.5);
  382. .pw_val {
  383. .scs {
  384. position: absolute;
  385. left: 60px;
  386. top: 12px;
  387. }
  388. }
  389. > p:last-of-type {
  390. position: relative;
  391. left: -12px;
  392. width: 162px;
  393. }
  394. p {
  395. font-size: 14px;
  396. color: #949595;
  397. position: relative;
  398. .agc_unit {
  399. position: absolute;
  400. left: 140px;
  401. top: 1px;
  402. }
  403. .agc_units {
  404. position: absolute;
  405. left: 168px;
  406. top: 1px;
  407. }
  408. span {
  409. font-size: 12px;
  410. font-family: "SourceHanSansCN";
  411. color: #606769;
  412. position: relative;
  413. left: 18px;
  414. }
  415. .agc_val {
  416. font-family: "Arial";
  417. font-size: 14px;
  418. color: @green;
  419. }
  420. .agc_ch {
  421. position: absolute;
  422. left: 75px;
  423. }
  424. }
  425. }
  426. }
  427. .agc_footer {
  428. //width: 280px;
  429. text-align: center;
  430. margin-top: 13px;
  431. padding: 0 16px;
  432. display: flex;
  433. justify-content: space-between;
  434. img {
  435. width: 20px;
  436. height: 20px;
  437. }
  438. p {
  439. font-size: 14px;
  440. color: #b3b3b3;
  441. }
  442. i {
  443. display: inline-block;
  444. width: 10px;
  445. height: 10px;
  446. border-radius: 10px;
  447. }
  448. i.red {
  449. background: red;
  450. }
  451. i.green {
  452. background: green;
  453. }
  454. }
  455. }
  456. }
  457. </style>