dayinfo.vue 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  1. <template>
  2. <div class="health-day-info">
  3. <div class="body">
  4. <div class="left">
  5. <div class="header">
  6. <div class="point left top"></div>
  7. <div class="point right top"></div>
  8. <span class="herder-info">
  9. 对标排名分析
  10. </span>
  11. </div>
  12. <div class="chart-body">
  13. <normal-radar-chart :height="'420px'" :value="radarValue" :title="[windNum, windNum2]" />
  14. </div>
  15. </div>
  16. <div class="left">
  17. <div class="header">
  18. <div class="point left top"></div>
  19. <div class="point right top"></div>
  20. <span class="herder-info">
  21. 基础指标
  22. </span>
  23. </div>
  24. <!-- <table class="table-form">
  25. <tr>
  26. <td class="white">指标</td>
  27. <td class="white">{{windNum}}</td>
  28. <td class="white">{{windNum2}}</td>
  29. </tr>
  30. <tr v-for="(item, index) in tabs" :key="index" >
  31. <td class="white">{{item.name}}</td>
  32. <td class="white">{{item.windData1}}</td>
  33. <td class="white">{{item.windData2}}</td>
  34. </tr>
  35. </table> -->
  36. <el-table :data="tabs" style="width:34vw" :cell-style="{ padding: '6px' }" :row-style="{ height: '4' }"
  37. stripe @selection-change="handleCurrentChange">
  38. <el-table-column align="center" prop="name" label="场站" width="200">
  39. </el-table-column>
  40. <el-table-column align="center" prop="windData1" :label="windNum">
  41. </el-table-column>
  42. <el-table-column align="center" prop="windData2" :label="windNum2">
  43. </el-table-column>
  44. </el-table>
  45. </div>
  46. </div>
  47. <div class="body">
  48. <div style="width: 100%;">
  49. <div class="header">
  50. <div class="point left top"></div>
  51. <div class="point right top"></div>
  52. <span class="herder-info">
  53. 损失电量分析
  54. </span>
  55. </div>
  56. <div class="chart-body">
  57. <multiple-bar-chart height="240px" :list="analyisDialog" :customerTooltip="true" @tooltip="tooltip"
  58. :units='["(万KWh)"]' />
  59. </div>
  60. </div>
  61. </div>
  62. </div>
  63. </template>
  64. <script>
  65. import NormalRadarChart from "../../homePage/components/normal-radar-chart.vue";
  66. import MultipleBarChart from "../../homePage/components/multiple-bar-chart.vue";
  67. export default {
  68. components: {
  69. NormalRadarChart,
  70. MultipleBarChart
  71. },
  72. props: {
  73. windNum: {
  74. type: String,
  75. default: '',
  76. },
  77. windNum2: {
  78. type: String,
  79. default: '',
  80. },
  81. radarValue: {
  82. type: Array,
  83. default: () => [{
  84. indicator: ["风能利用率", "故障损失率", "检修损失率", "弃风率", "性能损失率", "受累损失率", "复位及时率", "消缺及时率", "状态转换率"],
  85. data: [{
  86. value: [44200, 14200, 20000, 35000, 50000, 38000, 44200, 14200, 20000]
  87. }],
  88. }],
  89. },
  90. tabs: {
  91. type: Array,
  92. default: () => [{
  93. name: "发电量",
  94. windData1: 1,
  95. windData2: 14
  96. }, {
  97. name: "故障损失电量",
  98. windData1: 2,
  99. windData2: 13
  100. }, {
  101. name: "检修损失电量",
  102. windData1: 3,
  103. windData2: 12
  104. }, {
  105. name: "性能未达标损失电量",
  106. windData1: 4,
  107. windData2: 11
  108. }, {
  109. name: "受累损失电量",
  110. windData1: 5,
  111. windData2: 10
  112. }, {
  113. name: "风能利用率",
  114. windData1: 6,
  115. windData2: 9
  116. }, {
  117. name: "故障损失率",
  118. windData1: 7,
  119. windData2: 8
  120. }, {
  121. name: "检修损失率",
  122. windData1: 8,
  123. windData2: 7
  124. }, {
  125. name: "弃风率",
  126. windData1: 9,
  127. windData2: 6
  128. }, {
  129. name: "性能损失率",
  130. windData1: 10,
  131. windData2: 5
  132. }, {
  133. name: "受累损失率",
  134. windData1: 11,
  135. windData2: 4
  136. }, {
  137. name: "复位及时率",
  138. windData1: 12,
  139. windData2: 3
  140. }, {
  141. name: "消缺及时率",
  142. windData1: 13,
  143. windData2: 2
  144. }, {
  145. name: "状态转换率",
  146. windData1: 14,
  147. windData2: 1
  148. }],
  149. },
  150. analyisDialog: {
  151. type: Array,
  152. default: () => [{
  153. title: "故障损失电量",
  154. yAxisIndex: 0,
  155. value: [11, 22]
  156. }, {
  157. title: "检修损失电量",
  158. yAxisIndex: 0,
  159. value: [11, 22]
  160. }, {
  161. title: "性能损失电量",
  162. yAxisIndex: 0,
  163. value: [11, 22]
  164. }, {
  165. title: "限电损失电量",
  166. yAxisIndex: 0,
  167. value: [11, 22]
  168. }, {
  169. title: "受累损失电量",
  170. yAxisIndex: 0,
  171. value: [11, 22]
  172. }]
  173. },
  174. },
  175. methods: {
  176. tooltip(param, callback) {
  177. var color = ["#05bb4c", "#4b55ae", "#fa8c16", "#f8de5b"];
  178. var result = param[0].axisValue;
  179. param.forEach((value, index) => {
  180. result += "<br />" +
  181. `<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:${color[index]};"></span>` +
  182. value.seriesName + ":" + value.value;
  183. });
  184. callback(result);
  185. return true;
  186. },
  187. }
  188. };
  189. </script>
  190. <style lang="less">
  191. .health-day-info {
  192. .header {
  193. display: flex;
  194. width: 98%;
  195. height: 40px;
  196. line-height: 40px;
  197. border-top: 1px solid rgba(153, 153, 153, 0.5);
  198. color: #ffffff;
  199. position: relative;
  200. .herder-info {
  201. margin-left: 10px;
  202. }
  203. }
  204. .body {
  205. display: flex;
  206. .left {
  207. flex: 0 0 50%;
  208. display: flex;
  209. flex-direction: column;
  210. .chart-body {
  211. flex-grow: 1;
  212. display: flex;
  213. align-items: center;
  214. height: 43vh;
  215. }
  216. }
  217. .right {
  218. flex: 0 0 50%;
  219. }
  220. }
  221. }
  222. .point {
  223. width: 6px;
  224. height: 1px;
  225. background-color: #ffffff;
  226. position: absolute;
  227. &.left {
  228. left: 0;
  229. }
  230. &.right {
  231. right: 0;
  232. }
  233. &.top {
  234. top: -1px;
  235. }
  236. &.bottom {
  237. bottom: -1px;
  238. }
  239. }
  240. </style>