right.vue 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <script lang="ts" setup>
  2. import { useRight } from "./useRight";
  3. const { lineOption, itemList } = useRight();
  4. </script>
  5. <template>
  6. <div>
  7. <zh-module class="h-[35%]" title="交流" EnTitle="communication" showIcon>
  8. <div
  9. class="h-[90px] bg-[url('assets/images/net/r1-top.png')] bg-center flex items-center justify-center"
  10. >
  11. <span class="text-[#B3E3E8] text-xs ">保护:</span>
  12. <span class="value">正常</span>
  13. </div>
  14. <div class="flex justify-between">
  15. <div
  16. v-for="i in itemList"
  17. class="bg-no-repeat w-[110px] h-[169px] relative bg-[url('assets/images/net/r1-item_bg.png')]"
  18. >
  19. <div class="absolute bottom-[100px] w-full text-center">
  20. <span class="value">{{ i.value }}</span
  21. ><span class="unit">{{ i.unit }}</span>
  22. </div>
  23. <div
  24. class="text-[#B3E3E8] w-full text-xs absolute bottom-9 text-center"
  25. >
  26. {{ i.name }}
  27. </div>
  28. </div>
  29. </div>
  30. </zh-module>
  31. <zh-module
  32. class="h-[65%]"
  33. title="风电上网电量"
  34. EnTitle="direct current"
  35. showIcon
  36. >
  37. <div
  38. class="w-full h-[117px] bg-[url('assets/images/net/r2-top_bg.png')] mt-8 bg-center text-[#B3E3E8] text-sm pt-5 px-4"
  39. >
  40. <div class="flex justify-between">
  41. <div>
  42. <span class="mr-8">功率</span
  43. ><span>路由器<span class="value">A</span></span>
  44. </div>
  45. <div>
  46. <span class="mr-8">路由器<span class="value">B</span></span
  47. ><span>流向</span>
  48. </div>
  49. </div>
  50. <div class="text-center mt-6 [line-height:1]">
  51. <div class="value text-lg font-bold">正常</div>
  52. <div>保护</div>
  53. </div>
  54. </div>
  55. <div class="h-[calc(100%-317px)]">
  56. <v-charts class="w-full h-full" type="line" :options="lineOption" />
  57. </div>
  58. </zh-module>
  59. </div>
  60. </template>