| | |
| | | <template> |
| | | <div class="mapPopUpBox"> |
| | | <div class="title"> |
| | | <span>222</span> |
| | | |
| | | <span>{{ info.event_name }}</span> |
| | | <el-icon class="header-close" @click.stop="props.detailClick"><Warning /></el-icon> |
| | | <el-icon class="header-close" @click.stop="props.removeLabel"> |
| | | <Close /> |
| | | </el-icon> |
| | |
| | | <div class="medium"> |
| | | <el-image |
| | | class="eventImage" |
| | | :src="infoList?.smallUrl" |
| | | :preview-src-list="[infoList?.smallUrl]" |
| | | :src="getSmallImg(infoList?.link)" |
| | | :preview-src-list="[getSmallImg(infoList?.link)]" |
| | | fit="cover" |
| | | preview-teleported |
| | | ></el-image> |
| | |
| | | <div class="details"> |
| | | <div class="label">时间:</div> |
| | | <div class="value point"> |
| | | 11 |
| | | {{ |
| | | infoList?.create_time?.slice(5, 16).replace('-', '/') || |
| | | infoList?.createTime?.slice(5, 16).replace('-', '/') |
| | | }} |
| | | </div> |
| | | <div class="label">地点:</div> |
| | | <div class="value"> |
| | | 22 |
| | | {{ _.round(infoList?.metadata?.shootPosition?.lng, 3) }},{{ |
| | | _.round(infoList?.metadata?.shootPosition?.lat, 3) |
| | | }} |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | </template> |
| | | <script setup> |
| | | import { ElImage, ElIcon } from 'element-plus' |
| | | import { Close } from '@element-plus/icons-vue' |
| | | // import { getEventDetails } from '@/api/home/aggregation' |
| | | import { Close,Warning } from '@element-plus/icons-vue' |
| | | import _ from 'lodash' |
| | | import { getSmallImg } from '@/utils/util' |
| | | |
| | | const props = defineProps(['data', 'removeLabel']) |
| | | import { getShowImg, getSmallImg } from '@/utils/util'; |
| | | const props = defineProps(['data', 'removeLabel','detailClick']) |
| | | const loading = ref(true) |
| | | |
| | | const info = ref({ |
| | |
| | | create_time: '04/01 12:41', |
| | | }) |
| | | const infoList = props.data |
| | | |
| | | onMounted(async () => {}) |
| | | |
| | | const disposeUrl = ({ url }) => { |
| | | return getSmallImg(url) |
| | | } |
| | | </script> |
| | | |
| | | <style scoped lang="scss"> |
| | |
| | | margin-bottom: 10px; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: space-between; |
| | | justify-content: end; |
| | | |
| | | .header-close { |
| | | width: 20px; |