ak.vue 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490
  1. <template>
  2. <div>
  3. <el-row :gutter="10">
  4. <el-col :span="24">
  5. <previewPicture v-if="datas.length">
  6. <template v-slot:svg>
  7. <svg class="svg" style="transform:scale(2) translateY(200px) translateX(50px);" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="图层_1" x="0px" y="0px" width="1111.711px" height="550.14px" viewBox="0 0 1111.711 550.14" enable-background="new 0 0 1111.711 550.14" xml:space="preserve">
  8. <g id="other">
  9. <g>
  10. <polygon fill="#B21F63" points="496.003,29.538 502.73400,4.413 509.465,29.538 "/>
  11. <rect x="502.734" y="29.538" fill="#B21F63" width="1.537" height="52.888"/>
  12. <!-- <rect x="500.114" y="80.427" fill="#B21F63" width="595.531" height="1.537"/> -->
  13. <!-- <text transform="matrix(1 0 0 1 1032.9893 52.8999)" fill="#FFFFFF" font-family="'MicrosoftYaHei'" font-size="14.048">811</text> -->
  14. </g>
  15. <g>
  16. <!-- <rect x="71.679" y="130.277" fill="#B6065C" width="862.731" height="1.537"/> -->
  17. <text transform="matrix(1 0 0 1 455.7104 111.1514)" fill="#FFFFFF" font-family="'MicrosoftYaHei'" font-size="14.048"> 811 </text>
  18. <g>
  19. <rect x="527.506" y="97.923" fill="none" stroke="#4F4B7F" stroke-miterlimit="10" width="58.69" height="23.273"/>
  20. <rect x="527.506" y="97.923" opacity="0.7" fill="#212967" enable-background="new " width="58.69" height="23.273"/>
  21. <text transform="matrix(1 0 0 1 534.2002 113.7886)" fill="#FFFFFF" font-family="'MicrosoftYaHei'" font-size="14.0484"> #1进线 </text>
  22. </g>
  23. <rect x="502.734" y="81.964" fill="#B6065C" width="1.537" height="49.883"/>
  24. <rect x="502.733" y="131.412" fill="#B6065C" width="1.537" height="14.906"/>
  25. </g>
  26. <g>
  27. <g>
  28. <rect x="439.427" y="147.952" fill="none" stroke="#941C54" stroke-width="1.5" stroke-miterlimit="10" width="126.614" height="122.736"/>
  29. <text transform="matrix(0.9357 0 0 1 443.7225 159.6318)" fill="#FFFFFF" font-family="'MicrosoftYaHei'" font-size="3.4688">01逆变器</text>
  30. <rect x="443.566" y="164.421" opacity="0.9" fill="#1B2522" enable-background="new " width="24.917" height="4.275"/>
  31. <rect x="443.566" y="169.04" opacity="0.9" fill="#1B2522" enable-background="new " width="24.917" height="4.278"/>
  32. <rect x="443.566" y="173.659" opacity="0.9" fill="#1B2522" enable-background="new " width="24.917" height="4.277"/>
  33. <g>
  34. <text transform="matrix(0.9357 0 0 1 447.3143 167.583)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">功率:</text>
  35. <text transform="matrix(0.9357 0 0 1 447.3143 172.1348)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">电压:</text>
  36. <text transform="matrix(0.9357 0 0 1 447.3143 176.6836)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">电流:</text>
  37. </g>
  38. <g>
  39. <text transform="matrix(0.9357 0 0 1 464.0218 167.3525)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">kw</text>
  40. <text transform="matrix(0.9357 0 0 1 464.0218 171.9033)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">V</text>
  41. <text transform="matrix(0.9357 0 0 1 464.0218 176.4531)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">A</text>
  42. </g>
  43. <image overflow="visible" enable-background="new " width="347" height="605" xlink:href="./zm_mw.png" transform="matrix(0.0171 0 0 0.0183 460.5452 151.7188)">
  44. </image>
  45. <text transform="matrix(0.9357 0 0 1 475.3538 159.6318)" fill="#FFFFFF" font-family="'MicrosoftYaHei'" font-size="3.4688">02逆变器</text>
  46. <rect x="475.196" y="164.421" opacity="0.9" fill="#1B2522" enable-background="new " width="24.918" height="4.275"/>
  47. <rect x="475.196" y="169.04" opacity="0.9" fill="#1B2522" enable-background="new " width="24.918" height="4.278"/>
  48. <rect x="475.196" y="173.659" opacity="0.9" fill="#1B2522" enable-background="new " width="24.918" height="4.277"/>
  49. <g>
  50. <text transform="matrix(0.9357 0 0 1 478.9456 167.583)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">功率:</text>
  51. <text transform="matrix(0.9357 0 0 1 478.9456 172.1348)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">电压:</text>
  52. <text transform="matrix(0.9357 0 0 1 478.9456 176.6836)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">电流:</text>
  53. </g>
  54. <g>
  55. <text transform="matrix(0.9357 0 0 1 495.6522 167.3525)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">kw</text>
  56. <text transform="matrix(0.9357 0 0 1 495.6522 171.9033)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">V</text>
  57. <text transform="matrix(0.9357 0 0 1 495.6522 176.4531)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">A</text>
  58. </g>
  59. <image overflow="visible" enable-background="new " width="347" height="605" xlink:href="./zm_mw.png" transform="matrix(0.0171 0 0 0.0183 492.1756 151.7188)">
  60. </image>
  61. <text transform="matrix(0.9357 0 0 1 506.3104 159.6318)" fill="#FFFFFF" font-family="'MicrosoftYaHei'" font-size="3.4688">03逆变器</text>
  62. <rect x="506.153" y="164.421" opacity="0.9" fill="#1B2522" enable-background="new " width="24.918" height="4.275"/>
  63. <rect x="506.153" y="169.04" opacity="0.9" fill="#1B2522" enable-background="new " width="24.918" height="4.278"/>
  64. <rect x="506.153" y="173.659" opacity="0.9" fill="#1B2522" enable-background="new " width="24.918" height="4.277"/>
  65. <g>
  66. <text transform="matrix(0.9357 0 0 1 509.9022 167.583)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">功率:</text>
  67. <text transform="matrix(0.9357 0 0 1 509.9022 172.1348)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">电压:</text>
  68. <text transform="matrix(0.9357 0 0 1 509.9022 176.6836)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">电流:</text>
  69. </g>
  70. <g>
  71. <text transform="matrix(0.9357 0 0 1 526.6097 167.3525)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">kw</text>
  72. <text transform="matrix(0.9357 0 0 1 526.6097 171.9033)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">V</text>
  73. <text transform="matrix(0.9357 0 0 1 526.6097 176.4531)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">A</text>
  74. </g>
  75. <image overflow="visible" enable-background="new " width="347" height="605" xlink:href="./zm_mw.png" transform="matrix(0.0171 0 0 0.0183 523.1321 151.7188)">
  76. </image>
  77. <text transform="matrix(0.9357 0 0 1 537.2108 159.6318)" fill="#FFFFFF" font-family="'MicrosoftYaHei'" font-size="3.4688">04逆变器</text>
  78. <rect x="537.053" y="164.421" opacity="0.9" fill="#1B2522" enable-background="new " width="24.918" height="4.275"/>
  79. <rect x="537.053" y="169.04" opacity="0.9" fill="#1B2522" enable-background="new " width="24.918" height="4.278"/>
  80. <rect x="537.053" y="173.659" opacity="0.9" fill="#1B2522" enable-background="new " width="24.918" height="4.277"/>
  81. <g>
  82. <text transform="matrix(0.9357 0 0 1 540.8021 167.583)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">功率:</text>
  83. <text transform="matrix(0.9357 0 0 1 540.8021 172.1348)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">电压:</text>
  84. <text transform="matrix(0.9357 0 0 1 540.8021 176.6836)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">电流:</text>
  85. </g>
  86. <g>
  87. <text transform="matrix(0.9357 0 0 1 557.5081 167.3525)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">kw</text>
  88. <text transform="matrix(0.9357 0 0 1 557.5081 171.9033)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">V</text>
  89. <text transform="matrix(0.9357 0 0 1 557.5081 176.4531)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">A</text>
  90. </g>
  91. <image overflow="visible" enable-background="new " width="347" height="605" xlink:href="./zm_mw.png" transform="matrix(0.0171 0 0 0.0183 554.0325 151.7188)">
  92. </image>
  93. <text transform="matrix(0.9357 0 0 1 443.6888 189.5859)" fill="#FFFFFF" font-family="'MicrosoftYaHei'" font-size="3.4688">05逆变器</text>
  94. <rect x="443.531" y="194.375" opacity="0.9" fill="#1B2522" enable-background="new " width="24.917" height="4.278"/>
  95. <rect x="443.531" y="198.994" opacity="0.9" fill="#1B2522" enable-background="new " width="24.917" height="4.277"/>
  96. <rect x="443.531" y="203.613" opacity="0.9" fill="#1B2522" enable-background="new " width="24.917" height="4.277"/>
  97. <g>
  98. <text transform="matrix(0.9357 0 0 1 447.2796 197.5381)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">功率:</text>
  99. <text transform="matrix(0.9357 0 0 1 447.2796 202.0889)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">电压:</text>
  100. <text transform="matrix(0.9357 0 0 1 447.2796 206.6387)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">电流:</text>
  101. </g>
  102. <g>
  103. <text transform="matrix(0.9357 0 0 1 463.9871 197.3076)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">kw</text>
  104. <text transform="matrix(0.9357 0 0 1 463.9871 201.8574)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">V</text>
  105. <text transform="matrix(0.9357 0 0 1 463.9871 206.4072)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">A</text>
  106. </g>
  107. <image overflow="visible" enable-background="new " width="347" height="605" xlink:href="./zm_mw.png" transform="matrix(0.0171 0 0 0.0183 460.5096 181.6729)">
  108. </image>
  109. <text transform="matrix(0.9357 0 0 1 475.3192 189.5859)" fill="#FFFFFF" font-family="'MicrosoftYaHei'" font-size="3.4688">06逆变器</text>
  110. <rect x="475.161" y="194.375" opacity="0.9" fill="#1B2522" enable-background="new " width="24.917" height="4.278"/>
  111. <rect x="475.161" y="198.994" opacity="0.9" fill="#1B2522" enable-background="new " width="24.917" height="4.277"/>
  112. <rect x="475.161" y="203.613" opacity="0.9" fill="#1B2522" enable-background="new " width="24.917" height="4.277"/>
  113. <g>
  114. <text transform="matrix(0.9357 0 0 1 478.9095 197.5381)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">功率:</text>
  115. <text transform="matrix(0.9357 0 0 1 478.9095 202.0889)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">电压:</text>
  116. <text transform="matrix(0.9357 0 0 1 478.9095 206.6387)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">电流:</text>
  117. </g>
  118. <g>
  119. <text transform="matrix(0.9357 0 0 1 495.617 197.3076)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">kw</text>
  120. <text transform="matrix(0.9357 0 0 1 495.617 201.8574)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">V</text>
  121. <text transform="matrix(0.9357 0 0 1 495.617 206.4072)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">A</text>
  122. </g>
  123. <image overflow="visible" enable-background="new " width="347" height="605" xlink:href="./zm_mw.png" transform="matrix(0.0171 0 0 0.0183 492.1404 181.6729)">
  124. </image>
  125. <text transform="matrix(0.9357 0 0 1 506.2752 189.5859)" fill="#FFFFFF" font-family="'MicrosoftYaHei'" font-size="3.4688">07逆变器</text>
  126. <rect x="506.118" y="194.375" opacity="0.9" fill="#1B2522" enable-background="new " width="24.917" height="4.278"/>
  127. <rect x="506.118" y="198.994" opacity="0.9" fill="#1B2522" enable-background="new " width="24.917" height="4.277"/>
  128. <rect x="506.118" y="203.613" opacity="0.9" fill="#1B2522" enable-background="new " width="24.917" height="4.277"/>
  129. <g>
  130. <text transform="matrix(0.9357 0 0 1 509.867 197.5381)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">功率:</text>
  131. <text transform="matrix(0.9357 0 0 1 509.867 202.0889)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">电压:</text>
  132. <text transform="matrix(0.9357 0 0 1 509.867 206.6387)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">电流:</text>
  133. </g>
  134. <g>
  135. <text transform="matrix(0.9357 0 0 1 526.5736 197.3076)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">kw</text>
  136. <text transform="matrix(0.9357 0 0 1 526.5736 201.8574)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">V</text>
  137. <text transform="matrix(0.9357 0 0 1 526.5736 206.4072)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">A</text>
  138. </g>
  139. <image overflow="visible" enable-background="new " width="347" height="605" xlink:href="./zm_mw.png" transform="matrix(0.0171 0 0 0.0183 523.097 181.6729)">
  140. </image>
  141. <text transform="matrix(0.9357 0 0 1 537.1751 189.5859)" fill="#FFFFFF" font-family="'MicrosoftYaHei'" font-size="3.4688">08逆变器</text>
  142. <rect x="537.018" y="194.375" opacity="0.9" fill="#1B2522" enable-background="new " width="24.918" height="4.278"/>
  143. <rect x="537.018" y="198.994" opacity="0.9" fill="#1B2522" enable-background="new " width="24.918" height="4.277"/>
  144. <rect x="537.018" y="203.613" opacity="0.9" fill="#1B2522" enable-background="new " width="24.918" height="4.277"/>
  145. <g>
  146. <text transform="matrix(0.9357 0 0 1 540.7669 197.5381)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">功率:</text>
  147. <text transform="matrix(0.9357 0 0 1 540.7669 202.0889)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">电压:</text>
  148. <text transform="matrix(0.9357 0 0 1 540.7669 206.6387)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">电流:</text>
  149. </g>
  150. <g>
  151. <text transform="matrix(0.9357 0 0 1 557.4744 197.3076)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">kw</text>
  152. <text transform="matrix(0.9357 0 0 1 557.4744 201.8574)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">V</text>
  153. <text transform="matrix(0.9357 0 0 1 557.4744 206.4072)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">A</text>
  154. </g>
  155. <image overflow="visible" enable-background="new " width="347" height="605" xlink:href="./zm_mw.png" transform="matrix(0.0171 0 0 0.0183 553.9979 181.6729)">
  156. </image>
  157. <text transform="matrix(0.9357 0 0 1 443.6888 219.124)" fill="#FFFFFF" font-family="'MicrosoftYaHei'" font-size="3.4688">09逆变器</text>
  158. <rect x="443.531" y="223.913" opacity="0.9" fill="#1B2522" enable-background="new " width="24.917" height="4.278"/>
  159. <rect x="443.531" y="228.532" opacity="0.9" fill="#1B2522" enable-background="new " width="24.917" height="4.278"/>
  160. <rect x="443.531" y="233.15" opacity="0.9" fill="#1B2522" enable-background="new " width="24.917" height="4.279"/>
  161. <g>
  162. <text transform="matrix(0.9357 0 0 1 447.2796 227.0752)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">功率:</text>
  163. <text transform="matrix(0.9357 0 0 1 447.2796 231.626)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">电压:</text>
  164. <text transform="matrix(0.9357 0 0 1 447.2796 236.1758)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">电流:</text>
  165. </g>
  166. <g>
  167. <text transform="matrix(0.9357 0 0 1 463.9871 226.8438)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">kw</text>
  168. <text transform="matrix(0.9357 0 0 1 463.9871 231.3945)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">V</text>
  169. <text transform="matrix(0.9357 0 0 1 463.9871 235.9443)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">A</text>
  170. </g>
  171. <image overflow="visible" enable-background="new " width="347" height="605" xlink:href="./zm_mw.png" transform="matrix(0.0171 0 0 0.0183 460.5106 211.2104)">
  172. </image>
  173. <text transform="matrix(0.9357 0 0 1 475.3192 219.124)" fill="#FFFFFF" font-family="'MicrosoftYaHei'" font-size="3.4688">10逆变器</text>
  174. <rect x="475.161" y="223.913" opacity="0.9" fill="#1B2522" enable-background="new " width="24.918" height="4.278"/>
  175. <rect x="475.161" y="228.532" opacity="0.9" fill="#1B2522" enable-background="new " width="24.918" height="4.278"/>
  176. <rect x="475.161" y="233.15" opacity="0.9" fill="#1B2522" enable-background="new " width="24.918" height="4.279"/>
  177. <g>
  178. <text transform="matrix(0.9357 0 0 1 478.9095 227.0752)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">功率:</text>
  179. <text transform="matrix(0.9357 0 0 1 478.9095 231.626)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">电压:</text>
  180. <text transform="matrix(0.9357 0 0 1 478.9095 236.1758)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">电流:</text>
  181. </g>
  182. <g>
  183. <text transform="matrix(0.9357 0 0 1 495.617 226.8438)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">kw</text>
  184. <text transform="matrix(0.9357 0 0 1 495.617 231.3945)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">V</text>
  185. <text transform="matrix(0.9357 0 0 1 495.617 235.9443)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">A</text>
  186. </g>
  187. <image overflow="visible" enable-background="new " width="347" height="605" xlink:href="./zm_mw.png" transform="matrix(0.0171 0 0 0.0183 492.1404 211.2104)">
  188. </image>
  189. <text transform="matrix(0.9357 0 0 1 506.2752 219.124)" fill="#FFFFFF" font-family="'MicrosoftYaHei'" font-size="3.4688">11逆变器</text>
  190. <rect x="506.118" y="223.913" opacity="0.9" fill="#1B2522" enable-background="new " width="24.917" height="4.278"/>
  191. <rect x="506.118" y="228.532" opacity="0.9" fill="#1B2522" enable-background="new " width="24.917" height="4.278"/>
  192. <rect x="506.118" y="233.15" opacity="0.9" fill="#1B2522" enable-background="new " width="24.917" height="4.279"/>
  193. <g>
  194. <text transform="matrix(0.9357 0 0 1 509.867 227.0752)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">功率:</text>
  195. <text transform="matrix(0.9357 0 0 1 509.867 231.626)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">电压:</text>
  196. <text transform="matrix(0.9357 0 0 1 509.867 236.1758)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">电流:</text>
  197. </g>
  198. <g>
  199. <text transform="matrix(0.9357 0 0 1 526.5736 226.8438)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">kw</text>
  200. <text transform="matrix(0.9357 0 0 1 526.5736 231.3945)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">V</text>
  201. <text transform="matrix(0.9357 0 0 1 526.5736 235.9443)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">A</text>
  202. </g>
  203. <image overflow="visible" enable-background="new " width="347" height="605" xlink:href="./zm_mw.png" transform="matrix(0.0171 0 0 0.0183 523.097 211.2104)">
  204. </image>
  205. </g>
  206. </g>
  207. </g>
  208. <g id="sc">
  209. <rect x="498.734" y="35.898" fill="#ED2024" width="9.836" height="18.318"/>
  210. <rect x="495.033" y="89.119" fill="#02A434" width="16.937" height="30.677"/>
  211. <!-- <rect x="494.721" y="323.04" fill="#02A434" width="16.937" height="30.677"/> -->
  212. </g>
  213. <g id="data">
  214. <!-- <text transform="matrix(0.9357 0 0 1 464.0218 167.3525)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">kw</text>
  215. <text transform="matrix(0.9357 0 0 1 464.0218 171.9033)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">V</text>
  216. <text transform="matrix(0.9357 0 0 1 464.0218 176.4531) -->
  217. <g id="_x23_1">
  218. <g>
  219. <text transform="matrix(1 0 0 1 454.0218 167.3525)" fill="#3B8646" font-family="'MicrosoftYaHei'" font-size="2.3134">{{datas[0].gl}}</text>
  220. </g>
  221. <g>
  222. <text transform="matrix(1 0 0 1 454.0218 171.9033)" fill="#3B8646" font-family="'MicrosoftYaHei'" font-size="2.3134">{{datas[0].dy}}</text>
  223. </g>
  224. <g>
  225. <text transform="matrix(1 0 0 1 454.0218 176.4531)" fill="#3B8646" font-family="'MicrosoftYaHei'" font-size="2.3134">{{datas[0].dl}}</text>
  226. </g>
  227. </g>
  228. <g id="_x23_2">
  229. <g>
  230. <text transform="matrix(1 0 0 1 485.6522 167.3525)" fill="#3B8646" font-family="'MicrosoftYaHei'" font-size="2.3134">{{datas[1].gl}}</text>
  231. </g>
  232. <g>
  233. <text transform="matrix(1 0 0 1 485.6522 171.9033)" fill="#3B8646" font-family="'MicrosoftYaHei'" font-size="2.3134">{{datas[1].dy}}</text>
  234. </g>
  235. <g>
  236. <text transform="matrix(1 0 0 1 485.6522 176.4531)" fill="#3B8646" font-family="'MicrosoftYaHei'" font-size="2.3134">{{datas[1].dl}}</text>
  237. </g>
  238. </g>
  239. <g id="_x23_3">
  240. <g>
  241. <text transform="matrix(1 0 0 1 516.6097 167.3525)" fill="#3B8646" font-family="'MicrosoftYaHei'" font-size="2.3134">{{datas[2].gl}}</text>
  242. </g>
  243. <g>
  244. <text transform="matrix(1 0 0 1 516.6097 171.9033)" fill="#3B8646" font-family="'MicrosoftYaHei'" font-size="2.3134">{{datas[2].dy}}</text>
  245. </g>
  246. <g>
  247. <text transform="matrix(1 0 0 1 516.6097 176.4531)" fill="#3B8646" font-family="'MicrosoftYaHei'" font-size="2.3134">{{datas[2].dl}}</text>
  248. </g>
  249. </g>
  250. <g id="_x23_4">
  251. <g>
  252. <text transform="matrix(1 0 0 1 547.5081 167.3525)" fill="#3B8646" font-family="'MicrosoftYaHei'" font-size="2.3134">{{datas[3].gl}}</text>
  253. </g>
  254. <g>
  255. <text transform="matrix(1 0 0 1 547.5081 171.9033)" fill="#3B8646" font-family="'MicrosoftYaHei'" font-size="2.3134">{{datas[3].dy}}</text>
  256. </g>
  257. <g>
  258. <text transform="matrix(1 0 0 1 547.5081 176.4531)" fill="#3B8646" font-family="'MicrosoftYaHei'" font-size="2.3134">{{datas[3].dl}}</text>
  259. </g>
  260. </g>
  261. <g id="_x23_5">
  262. <g>
  263. <text transform="matrix(1 0 0 1 453.9871 197.3076)" fill="#3B8646" font-family="'MicrosoftYaHei'" font-size="2.3134">{{datas[4].gl}}</text>
  264. </g>
  265. <g>
  266. <text transform="matrix(1 0 0 1 453.9871 201.8574)" fill="#3B8646" font-family="'MicrosoftYaHei'" font-size="2.3134">{{datas[4].dy}}</text>
  267. </g>
  268. <g>
  269. <text transform="matrix(1 0 0 1 453.9871 206.4072)" fill="#3B8646" font-family="'MicrosoftYaHei'" font-size="2.3134">{{datas[4].dl}}</text>
  270. </g>
  271. </g>
  272. <g id="_x23_6">
  273. <g>
  274. <text transform="matrix(1 0 0 1 485.6175 197.3076)" fill="#3B8646" font-family="'MicrosoftYaHei'" font-size="2.3134">{{datas[5].gl}}</text>
  275. </g>
  276. <g>
  277. <text transform="matrix(1 0 0 1 485.6175 201.8574)" fill="#3B8646" font-family="'MicrosoftYaHei'" font-size="2.3134">{{datas[5].dy}}</text>
  278. </g>
  279. <g>
  280. <text transform="matrix(1 0 0 1 485.6175 206.4072)" fill="#3B8646" font-family="'MicrosoftYaHei'" font-size="2.3134">{{datas[5].dl}}</text>
  281. </g>
  282. </g>
  283. <g id="_x23_7">
  284. <g>
  285. <text transform="matrix(1 0 0 1 517.2479 197.3076)" fill="#3B8646" font-family="'MicrosoftYaHei'" font-size="2.3134">{{datas[6].gl}}</text>
  286. </g>
  287. <g>
  288. <text transform="matrix(1 0 0 1 517.2479 201.8574)" fill="#3B8646" font-family="'MicrosoftYaHei'" font-size="2.3134">{{datas[6].dy}}</text>
  289. </g>
  290. <g>
  291. <text transform="matrix(1 0 0 1 517.2479 206.4072)" fill="#3B8646" font-family="'MicrosoftYaHei'" font-size="2.3134">{{datas[6].dl}}</text>
  292. </g>
  293. </g>
  294. <g id="_x23_8">
  295. <g>
  296. <text transform="matrix(1 0 0 1 548.8783 197.3076)" fill="#3B8646" font-family="'MicrosoftYaHei'" font-size="2.3134">{{datas[7].gl}}</text>
  297. </g>
  298. <g>
  299. <text transform="matrix(1 0 0 1 548.8783 201.8574)" fill="#3B8646" font-family="'MicrosoftYaHei'" font-size="2.3134">{{datas[7].dy}}</text>
  300. </g>
  301. <g>
  302. <text transform="matrix(1 0 0 1 548.8783 206.4072)" fill="#3B8646" font-family="'MicrosoftYaHei'" font-size="2.3134">{{datas[7].dl}}</text>
  303. </g>
  304. </g>
  305. <g id="_x23_9">
  306. <g>
  307. <text transform="matrix(1 0 0 1 453.9871 226.8438)" fill="#3B8646" font-family="'MicrosoftYaHei'" font-size="2.3134">{{datas[8].gl}}</text>
  308. </g>
  309. <g>
  310. <text transform="matrix(1 0 0 1 453.9871 231.3945)" fill="#3B8646" font-family="'MicrosoftYaHei'" font-size="2.3134">{{datas[8].dy}}</text>
  311. </g>
  312. <g>
  313. <text transform="matrix(1 0 0 1 453.9871 235.9443)" fill="#3B8646" font-family="'MicrosoftYaHei'" font-size="2.3134">{{datas[8].dl}}</text>
  314. </g>
  315. </g>
  316. <g id="_x23_10">
  317. <g>
  318. <text transform="matrix(1 0 0 1 485.617 226.8438)" fill="#3B8646" font-family="'MicrosoftYaHei'" font-size="2.3134">{{datas[9].gl}}</text>
  319. </g>
  320. <g>
  321. <text transform="matrix(1 0 0 1 485.617 231.3945)" fill="#3B8646" font-family="'MicrosoftYaHei'" font-size="2.3134">{{datas[9].dy}}</text>
  322. </g>
  323. <g>
  324. <text transform="matrix(1 0 0 1 485.617 235.9443)" fill="#3B8646" font-family="'MicrosoftYaHei'" font-size="2.3134">{{datas[9].dl}}</text>
  325. </g>
  326. </g>
  327. <g id="_x23_11">
  328. <g>
  329. <text transform="matrix(1 0 0 1 516.5736 226.8438)" fill="#3B8646" font-family="'MicrosoftYaHei'" font-size="2.3134">{{datas[10].gl}}</text>
  330. </g>
  331. <g>
  332. <text transform="matrix(1 0 0 1 516.5736 231.3945)" fill="#3B8646" font-family="'MicrosoftYaHei'" font-size="2.3134">{{datas[10].dy}}</text>
  333. </g>
  334. <g>
  335. <text transform="matrix(1 0 0 1 516.5736 235.9443)" fill="#3B8646" font-family="'MicrosoftYaHei'" font-size="2.3134">{{datas[10].dl}}</text>
  336. </g>
  337. </g>
  338. </g>
  339. </svg>
  340. </template>
  341. </previewPicture>
  342. </el-col>
  343. </el-row>
  344. </div>
  345. </template>
  346. <script> //431.055
  347. import previewPicture from "../previewPicture.vue";
  348. import $ from "jquery";
  349. export default {
  350. components: {
  351. previewPicture,
  352. },
  353. props: {
  354. data: Array,
  355. zmmap: Object,
  356. },
  357. data() {
  358. return {
  359. // graph: null,
  360. green: "#02A434",
  361. red: "#FF0000",
  362. datas: [],
  363. dgIds: [],
  364. };
  365. },
  366. methods: {
  367. // 渲染每个机箱的表格参数
  368. renderData(data) {
  369. // 取出开关的 DOM
  370. // const switchDom = $("#sc").find("rect");
  371. // 遍历数据,首先取出开关单独写逻辑渲染颜色,除了开关以外的就是每个机箱的数据
  372. for (let key in data) {
  373. const item = data[key]
  374. if(this.datas[Number(key.substring(2,4))-1]===undefined){
  375. this.datas[Number(key.substring(2,4))-1] = {
  376. gl: 0,
  377. dy: 0,
  378. dl: 0
  379. }
  380. }
  381. this.datas[Number(key.substring(2,4))-1][key.substring(4)] = data[key]
  382. // 渲染开关
  383. // const item = data[key];
  384. // if (key === "hzj105") {
  385. // switchDom.eq(0).attr("fill", item ? this.green : this.red);
  386. // } else if (key === "hzj361") {
  387. // switchDom.eq(1).attr("fill", item ? this.green : this.red);
  388. // } else if (key === "hzj362") {
  389. // switchDom.eq(2).attr("fill", item ? this.green : this.red);
  390. // } else {
  391. // const dgDom = $('#alldata').find('#data'+key.slice(3,5)).find('g').eq(parseInt(key.slice(5,7)) - 1).find('text');
  392. // if (dgDom && key.indexOf("dl") !== -1) {
  393. // dgDom.eq(0).html(item);
  394. // } else if (dgDom && key.indexOf("dy") !== -1) {
  395. // dgDom.eq(1).html(item);
  396. // } else if (dgDom && key.indexOf("gl") !== -1) {
  397. // dgDom.eq(2).html(item);
  398. // }
  399. // }
  400. }
  401. // 给电柜上个色呗
  402. // this.dgIds.forEach((dgId) => {
  403. // const dgDom = $("#diangui_" + dgId + "_").find("polygon");
  404. // for (let i = 0; i < dgDom.length; i++) {
  405. // dgDom.eq(i).attr("fill", this.getColor());
  406. // }
  407. // });
  408. },
  409. randomNum(minNum, maxNum) {
  410. switch (arguments.length) {
  411. case 1:
  412. return parseInt(Math.random() * minNum + 1, 10);
  413. case 2:
  414. return parseInt(Math.random() * (maxNum - minNum + 1) + minNum, 10);
  415. default:
  416. return 0;
  417. }
  418. },
  419. // 根据机箱状态返回颜色,后续如果需要区分颜色可以在这里新增逻辑返回对应的颜色值
  420. getColor() {
  421. return "#fff";
  422. }
  423. },
  424. watch: {
  425. // 风机数据
  426. data(value) {
  427. // this.datas = value;
  428. },
  429. // 总貌数据
  430. zmmap(value) {
  431. this.renderData(value);
  432. },
  433. },
  434. };
  435. </script>
  436. <style scoped>
  437. .center-bar {
  438. position: relative;
  439. box-sizing: border-box;
  440. height: 90vh;
  441. background-color: #000000;
  442. padding-top: 10px;
  443. padding-left: 5px;
  444. padding-right: 5px;
  445. padding-bottom: 5px;
  446. margin-top: 0;
  447. margin-right: 0;
  448. margin-bottom: 3px;
  449. margin-left: 0;
  450. display: flex;
  451. flex-direction: column;
  452. }
  453. .svg {
  454. margin-left: 5%;
  455. width: 90%;
  456. height: 90%;
  457. }
  458. .light #other text[font-size="14.048"],
  459. .light #other text[font-size="3.4688"]{
  460. fill:#000000;
  461. }
  462. .light #alldata text{
  463. fill:#FFFFFF;
  464. }
  465. </style>