coulometric-analysis.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. <template>
  2. <div class="coulometric-analysis">
  3. <tab @select="selectionItemClick" v-if="false" />
  4. <row style="margin-top: 36px">
  5. <Col :span="12">
  6. <div class="coulometric-info">
  7. <svg-icon svgid="svg-arrow-up" class="icon green" />
  8. <span class="title gray">增发电量</span>
  9. <span class="value">{{ AddElectricity }}</span>
  10. </div>
  11. <percent-card :value="tsl_" color="green" title="提升率" />
  12. <card-1
  13. class="increase-info"
  14. title="风能利用率"
  15. :value="fnlyl_"
  16. :isIncrease="fnlyl_ >= 0"
  17. />
  18. <card-1
  19. class="increase-info"
  20. title="综合场用电率"
  21. :value="zhcydl_"
  22. :isIncrease="zhcydl_ >= 0"
  23. />
  24. </Col>
  25. <Col :span="12">
  26. <div class="coulometric-info">
  27. <svg-icon svgid="svg-arrow-down" class="icon yellow" />
  28. <span class="title gray">避免故障</span>
  29. <span class="value">{{ bmgz_ }}</span>
  30. </div>
  31. <percent-card :value="jdl_" color="yellow" title="降低率" />
  32. <card-1
  33. class="increase-info"
  34. title="设备可利用率"
  35. :value="sbklyl_"
  36. :isIncrease="sbklyl_ >= 0"
  37. />
  38. <card-1
  39. class="increase-info"
  40. title="存在隐患风机"
  41. :value="yhfj_"
  42. :isIncrease="yhfj_ >= 0"
  43. />
  44. </Col>
  45. </row>
  46. </div>
  47. </template>
  48. <script>
  49. import percentCard from "@/components/coms/cards/percent-card.vue";
  50. import Col from "@/components/coms/grid/col.vue";
  51. import Row from "@/components/coms/grid/row.vue";
  52. import Tab from "@/components/coms/tabs/tab.vue";
  53. import SvgIcon from "@/components/coms/icon/svg-icon.vue";
  54. import Card1 from "../../../components/coms/cards/card-1.vue";
  55. export default {
  56. components: { percentCard, Row, Col, Tab, SvgIcon, Card1 },
  57. props: {
  58. bmgz: {
  59. type: Number,
  60. default: 0,
  61. },
  62. tsl: {
  63. type: Number,
  64. default: 0,
  65. },
  66. jdl: {
  67. type: Number,
  68. default: 0,
  69. },
  70. fnlyl: {
  71. type: Number,
  72. default: 0,
  73. },
  74. sbklyl: {
  75. type: Number,
  76. default: 0,
  77. },
  78. zhcydl: {
  79. type: Number,
  80. default: 0,
  81. },
  82. yhfj: {
  83. type: Number,
  84. default: 0,
  85. },
  86. },
  87. data() {
  88. // 电量分析
  89. return {
  90. // 增发电量
  91. AddElectricity: 30,
  92. // 避免故障
  93. bmgz_: 32,
  94. // 提升率
  95. tsl_: 0,
  96. // 降低率
  97. jdl_: '61',
  98. // 风能利用率
  99. fnlyl_: 0,
  100. // 设备科利用率
  101. sbklyl_: 0,
  102. // 综合场用电率
  103. zhcydl_: 0,
  104. // 存在隐患风机
  105. yhfj_: 0,
  106. };
  107. },
  108. mounted() {
  109. this.bmgz_ = this.bmgz ? this.bmgz : 32;
  110. this.tsl_ = this.tsl;
  111. this.jdl_ = this.jdl_ ? this.jdl_ : 61;
  112. this.fnlyl_ = this.fnlyl;
  113. this.sbklyl_ = this.sbklyl;
  114. this.zhcydl_ = this.zhcydl;
  115. this.yhfj_ = this.yhfj;
  116. },
  117. methods: {
  118. selectionItemClick(item) {
  119. // console.log(item);
  120. },
  121. },
  122. watch: {
  123. bmgz(res) {
  124. this.bmgz_ = res;
  125. },
  126. tsl(res) {
  127. this.tsl_ = res;
  128. },
  129. jdl(res) {
  130. this.jdl_ = res;
  131. },
  132. fnlyl(res) {
  133. this.fnlyl_ = res;
  134. },
  135. sbklyl(res) {
  136. this.sbklyl_ = res;
  137. },
  138. zhcydl(res) {
  139. this.zhcydl_ = res;
  140. },
  141. yhfj(res) {
  142. this.yhfj_ = res;
  143. },
  144. },
  145. };
  146. </script>
  147. <style lang="less">
  148. .coulometric-analysis {
  149. padding: 0 8px;
  150. .coulometric-info {
  151. margin-bottom: 1.4815vh;
  152. .title {
  153. font-size: @fontsize;
  154. margin-right: 0.741vh;
  155. }
  156. .value {
  157. font-size: @fontsize;
  158. }
  159. }
  160. .increase-info {
  161. margin: 30px 0;
  162. &:last-child {
  163. margin-top: 4.4444vh;
  164. margin-bottom: 24px;
  165. }
  166. }
  167. .icon {
  168. width: 1.204vh;
  169. height: 1.204vh;
  170. margin-right: 0.741vh;
  171. &.green use {
  172. fill: @green;
  173. }
  174. &.yellow use {
  175. fill: @yellow;
  176. }
  177. }
  178. }
  179. </style>