EnvironmentalModule.vue 641 B

123456789101112131415161718192021222324252627282930313233343536
  1. // 环境中心 右侧组件
  2. <template>
  3. <div class="info-box">
  4. <DamCard></DamCard>
  5. <IconInfo
  6. style="margin-top: 25px"
  7. :type="1"
  8. :info="damInfo.data"
  9. ></IconInfo>
  10. <PortsCard class="mt20"></PortsCard>
  11. </div>
  12. </template>
  13. <script>
  14. import { ref, onMounted } from "vue";
  15. import { mapState } from "vuex";
  16. export default {
  17. computed: mapState(["damInfo"]),
  18. setup() {
  19. function init() {}
  20. function exchangeUrl(icon) {
  21. return `/${icon}.png`;
  22. }
  23. onMounted(() => {
  24. init();
  25. });
  26. return {
  27. init,
  28. exchangeUrl,
  29. };
  30. },
  31. };
  32. </script>
  33. <style lang="scss" scoped>
  34. </style>