assistant.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <template>
  2. <DragWindow
  3. ref="ref_assistant"
  4. v-if="show"
  5. @onClose="$emit('update:show', false)"
  6. title="预警详情"
  7. v-model:layout="state.layout"
  8. close
  9. >
  10. <div class="assistant" v-if="show" v-loading="state.loading">
  11. <div class="title">
  12. 北斗终端异常古
  13. <div class="__hover">查看详情</div>
  14. </div>
  15. <div class="target">琼海123456</div>
  16. <div class="content">
  17. <div class="img">
  18. <img src="@/assets/images/web/ship.png">
  19. </div>
  20. <div class="infos">
  21. <div>预警时间</div>
  22. <div>2024-02-22 12:33:44</div>
  23. <div>预警区域</div>
  24. <div>海口海域</div>
  25. </div>
  26. </div>
  27. </div>
  28. </DragWindow>
  29. </template>
  30. <script setup lang="ts">
  31. import {computed, getCurrentInstance, markRaw, onBeforeMount, onMounted, reactive, ref, watch} from "vue";
  32. import DragWindow from '../components/drag-window.vue'
  33. import {useDictionaryStore, useShipMapStore} from "@/stores";
  34. import {ElMessage} from "element-plus";
  35. const DictionaryStore = useDictionaryStore()
  36. const ShipMapStore = useShipMapStore()
  37. const {proxy} = getCurrentInstance()
  38. const props = defineProps({
  39. show: {},
  40. mapFunc: {},
  41. mapHeight: {},
  42. })
  43. const state: any = reactive({
  44. layout: {
  45. width: 506,
  46. left: 85,
  47. top: props.mapHeight - 60 - (300 + 60)
  48. },
  49. })
  50. const ref_assistant = ref()
  51. watch(() => props.show, (n) => {
  52. if (n) {
  53. }
  54. })
  55. onMounted(() => {
  56. })
  57. </script>
  58. <style lang="scss" scoped>
  59. .assistant {
  60. height: 300px;
  61. padding: 24px;
  62. display: flex;
  63. flex-direction: column;
  64. justify-content: space-between;
  65. .title {
  66. width: 100%;
  67. height: 40px;
  68. background: rgba(88,148,235,0.2);
  69. border-radius: 8px;
  70. display: flex;
  71. align-items: center;
  72. font-weight: 400;
  73. font-size: 20px;
  74. color: #FFFFFF;
  75. &:before {
  76. content: '';
  77. width: 6px;
  78. height: 100%;
  79. background: linear-gradient(0deg, rgba(255,255,255,0.11), rgba(255,255,255,0.75));
  80. box-shadow: 0px 2px 0px 0px rgba(81,129,228,0.4);
  81. border-radius: 8px 0px 0px 8px;
  82. margin-right: 10px;
  83. }
  84. >div {
  85. margin-left: auto;
  86. margin-right: 24px;
  87. font-weight: 400;
  88. font-size: 16px;
  89. color: #FFFFFF;
  90. }
  91. }
  92. .target {
  93. font-weight: 400;
  94. font-size: 18px;
  95. color: #FFFFFF;
  96. }
  97. .content {
  98. display: flex;
  99. gap: 22px;
  100. .img {
  101. width: 240px;
  102. height: 150px;
  103. border-radius: 4px;
  104. border: 1px solid #AED0FF;
  105. padding: 9px;
  106. >img {
  107. width: 100%;
  108. height: 100%;
  109. }
  110. }
  111. .infos {
  112. display: flex;
  113. flex-direction: column;
  114. font-weight: 400;
  115. font-size: 16px;
  116. color: #FFFFFF;
  117. line-height: 27px;
  118. >:nth-child(3) {
  119. margin-top: 10px;
  120. }
  121. }
  122. }
  123. }
  124. </style>