ShipInfoCard.vue 848 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. // 船舶信息
  2. <template>
  3. <div>
  4. <TitleLine
  5. style="margin-top: 25px"
  6. icon="info-dark"
  7. title="船舶信息"
  8. :type="2"
  9. :endText="shipInfo.shipName"
  10. ></TitleLine>
  11. <ShipOwnerInfo
  12. :name="shipInfo.shipOwnerName"
  13. :ownerId="shipInfo.shipOwnerId"
  14. class="mt20"
  15. ></ShipOwnerInfo>
  16. <IconInfo
  17. style="margin-top: 25px"
  18. :type="1"
  19. :info="shipInfo.data"
  20. ></IconInfo>
  21. </div>
  22. </template>
  23. <script>
  24. import { ref, onMounted } from "vue";
  25. import { mapState } from "vuex";
  26. export default {
  27. computed: mapState(["shipInfo"]),
  28. setup() {
  29. function init() {}
  30. function exchangeUrl(icon) {
  31. return `/${icon}.png`;
  32. }
  33. onMounted(() => {
  34. init();
  35. });
  36. return {
  37. init,
  38. exchangeUrl,
  39. };
  40. },
  41. };
  42. </script>
  43. <style lang="scss" scoped>
  44. </style>