dayinfo.vue 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341
  1. <template>
  2. <div class="health-day-info">
  3. <div class="body">
  4. <div class="left">
  5. <div class="header">
  6. <div class="point point-left top"></div>
  7. <div class="point point-right top"></div>
  8. <span class="herder-info"> 对标排名分析 </span>
  9. </div>
  10. <div class="chart-body">
  11. <normal-radar-chart
  12. :height="'420px'"
  13. :value="radarValue"
  14. :title="[windNum, windNum2, windNum3, windNum4, windNum5]"
  15. />
  16. </div>
  17. </div>
  18. <div class="left">
  19. <div class="header">
  20. <div class="point point-left top"></div>
  21. <div class="point point-right top"></div>
  22. <span class="herder-info"> 基础指标 </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
  37. :data="tabs"
  38. style="width: 100%"
  39. :cell-style="{ padding: '6px' }"
  40. :row-style="{ height: '4' }"
  41. stripe
  42. @selection-change="handleCurrentChange"
  43. >
  44. <el-table-column align="center" prop="name" label="场站" width="200">
  45. </el-table-column>
  46. <el-table-column align="right" header-align="center" prop="windData1" :label="windNum">
  47. </el-table-column>
  48. <el-table-column
  49. v-if="windNum2"
  50. align="right" header-align="center"
  51. prop="windData2"
  52. :label="windNum2"
  53. >
  54. </el-table-column>
  55. <el-table-column
  56. v-if="windNum3"
  57. align="right" header-align="center"
  58. prop="windData3"
  59. :label="windNum3"
  60. >
  61. </el-table-column>
  62. <el-table-column
  63. v-if="windNum4"
  64. align="right" header-align="center"
  65. prop="windData4"
  66. :label="windNum4"
  67. >
  68. </el-table-column>
  69. <el-table-column
  70. v-if="windNum5"
  71. align="right" header-align="center"
  72. prop="windData5"
  73. :label="windNum5"
  74. >
  75. </el-table-column>
  76. </el-table>
  77. </div>
  78. </div>
  79. <div class="body">
  80. <div style="width: 100%">
  81. <div class="header">
  82. <div class="point point-left top"></div>
  83. <div class="point point-right top"></div>
  84. <span class="herder-info"> 损失电量分析 </span>
  85. </div>
  86. <div class="chart-body">
  87. <multiple-bar-chart
  88. height="240px"
  89. :list="analyisDialog"
  90. :customerTooltip="true"
  91. @tooltip="tooltip"
  92. :units="['(万KWh)']"
  93. />
  94. </div>
  95. </div>
  96. </div>
  97. </div>
  98. </template>
  99. <script>
  100. import NormalRadarChart from "../../homePage/components/normal-radar-chart.vue";
  101. import MultipleBarChart from "../../homePage/components/multiple-bar-chart.vue";
  102. export default {
  103. components: {
  104. NormalRadarChart,
  105. MultipleBarChart,
  106. },
  107. props: {
  108. windNum: {
  109. type: String,
  110. default: "",
  111. },
  112. windNum2: {
  113. type: String,
  114. default: "",
  115. },
  116. windNum3: {
  117. type: String,
  118. default: "",
  119. },
  120. windNum4: {
  121. type: String,
  122. default: "",
  123. },
  124. windNum5: {
  125. type: String,
  126. default: "",
  127. },
  128. radarValue: {
  129. type: Array,
  130. default: () => [
  131. {
  132. indicator: [
  133. "风能利用率",
  134. "故障损失率",
  135. "检修损失率",
  136. "弃风率",
  137. "性能损失率",
  138. "受累损失率",
  139. "复位及时率",
  140. "消缺及时率",
  141. "状态转换率",
  142. ],
  143. data: [
  144. {
  145. value: [
  146. 44200, 14200, 20000, 35000, 50000, 38000, 44200, 14200, 20000,
  147. ],
  148. },
  149. ],
  150. },
  151. ],
  152. },
  153. tabs: {
  154. type: Array,
  155. default: () => [
  156. {
  157. name: "发电量",
  158. windData1: 1,
  159. windData2: 14,
  160. },
  161. {
  162. name: "故障损失电量",
  163. windData1: 2,
  164. windData2: 13,
  165. },
  166. {
  167. name: "检修损失电量",
  168. windData1: 3,
  169. windData2: 12,
  170. },
  171. {
  172. name: "性能未达标损失电量",
  173. windData1: 4,
  174. windData2: 11,
  175. },
  176. {
  177. name: "受累损失电量",
  178. windData1: 5,
  179. windData2: 10,
  180. },
  181. {
  182. name: "风能利用率",
  183. windData1: 6,
  184. windData2: 9,
  185. },
  186. {
  187. name: "故障损失率",
  188. windData1: 7,
  189. windData2: 8,
  190. },
  191. {
  192. name: "检修损失率",
  193. windData1: 8,
  194. windData2: 7,
  195. },
  196. {
  197. name: "弃风率",
  198. windData1: 9,
  199. windData2: 6,
  200. },
  201. {
  202. name: "性能损失率",
  203. windData1: 10,
  204. windData2: 5,
  205. },
  206. {
  207. name: "受累损失率",
  208. windData1: 11,
  209. windData2: 4,
  210. },
  211. {
  212. name: "复位及时率",
  213. windData1: 12,
  214. windData2: 3,
  215. },
  216. {
  217. name: "消缺及时率",
  218. windData1: 13,
  219. windData2: 2,
  220. },
  221. {
  222. name: "状态转换率",
  223. windData1: 14,
  224. windData2: 1,
  225. },
  226. ],
  227. },
  228. analyisDialog: {
  229. type: Array,
  230. default: () => [
  231. {
  232. title: "故障损失电量",
  233. yAxisIndex: 0,
  234. value: [11, 22],
  235. },
  236. {
  237. title: "检修损失电量",
  238. yAxisIndex: 0,
  239. value: [11, 22],
  240. },
  241. {
  242. title: "性能损失电量",
  243. yAxisIndex: 0,
  244. value: [11, 22],
  245. },
  246. {
  247. title: "限电损失电量",
  248. yAxisIndex: 0,
  249. value: [11, 22],
  250. },
  251. {
  252. title: "受累损失电量",
  253. yAxisIndex: 0,
  254. value: [11, 22],
  255. },
  256. ],
  257. },
  258. },
  259. methods: {
  260. tooltip(param, callback) {
  261. var color = ["#05bb4c", "#4b55ae", "#fa8c16", "#f8de5b"];
  262. var result = param[0].axisValue;
  263. param.forEach((value, index) => {
  264. result +=
  265. "<br />" +
  266. `<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:${color[index]};"></span>` +
  267. value.seriesName +
  268. ":" +
  269. value.value;
  270. });
  271. callback(result);
  272. return true;
  273. },
  274. },
  275. };
  276. </script>
  277. <style lang="less">
  278. .health-day-info {
  279. .header {
  280. display: flex;
  281. width: 98%;
  282. height: 40px;
  283. line-height: 40px;
  284. border-top: 1px solid rgba(153, 153, 153, 0.5);
  285. color: #ffffff;
  286. position: relative;
  287. .herder-info {
  288. margin-left: 10px;
  289. }
  290. }
  291. .body {
  292. display: flex;
  293. .left {
  294. flex: 0 0 50%;
  295. display: flex;
  296. flex-direction: column;
  297. .chart-body {
  298. flex-grow: 1;
  299. display: flex;
  300. align-items: center;
  301. height: 345px;
  302. }
  303. }
  304. .right {
  305. flex: 0 0 50%;
  306. }
  307. }
  308. }
  309. .point {
  310. width: 6px;
  311. height: 1px;
  312. background-color: #ffffff;
  313. position: absolute;
  314. &.point-left {
  315. left: 0;
  316. }
  317. &.point-right {
  318. right: 0;
  319. }
  320. &.top {
  321. top: -1px;
  322. }
  323. &.bottom {
  324. bottom: -1px;
  325. }
  326. }
  327. </style>