| | |
| | | <span class="delete" @click="deleteDetail()" v-if="scope.row.fileformat !== 'AI识别'" |
| | | >删除</span |
| | | > |
| | | <span class="location" v-if="scope.row.fileformat !== '视频'">定位</span> |
| | | <span class="location" @click="positionDetail()" v-if="scope.row.fileformat !== '视频'">定位</span> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | <video style="width:100%" class="videoBox" ref="videoRefs" controls autoplay :src="currentVideoUrl"></video> |
| | | </div> |
| | | </el-dialog> |
| | | <!-- 地图弹框 --> |
| | | <dataCenterMap v-model:show="dataCenterMapVisible"></dataCenterMap> |
| | | </div> |
| | | </template> |
| | | |
| | | <script setup> |
| | | import dataCenterMap from '@/views/dataCenter/components/dataCenterMap.vue' |
| | | import PanoramaPopup from '@/components/PanoramaPopup/PanoramaPopup.vue'; //全景 |
| | | import { ElMessage, ElMessageBox } from 'element-plus'; |
| | | import searchData from '@/views/dataCenter/components/searchData.vue'; |
| | | import fy1 from '@/assets/images/dataCenter/1.jpeg'; |
| | | |
| | | import {getaiImagesPage} from '@/api/dataCenter/dataCenter' |
| | | import { onMounted } from 'vue'; |
| | | function convertVideoUrlToThumbnail(videoUrl) { |
| | | // 检查是否是有效的视频URL |
| | | if (!videoUrl || typeof videoUrl !== 'string') { |
| | |
| | | const thumbnailUrl = videoUrl.replace(/\.mp4$/, '_small.jpg'); |
| | | return thumbnailUrl; |
| | | } |
| | | |
| | | const jobListParams = reactive({ |
| | | current: 1, |
| | | size: 10, |
| | |
| | | fileformat: '正射', |
| | | }, |
| | | ]; |
| | | // 获取列表数据 |
| | | const getgetaiImagesPage =()=>{ |
| | | getaiImagesPage(jobListParams).then(res=>{ |
| | | console.log('res',res); |
| | | |
| | | }) |
| | | } |
| | | const handleSizeChange = () => {}; |
| | | const handleCurrentChange = () => {}; |
| | | // 多选 |
| | |
| | | currentVideoUrl.value = val.img; |
| | | console.log('视频', val); |
| | | }; |
| | | // 地图弹框 |
| | | const dataCenterMapVisible = ref(false) |
| | | const positionDetail=()=>{ |
| | | console.log('地图'); |
| | | dataCenterMapVisible.value = true |
| | | |
| | | } |
| | | onMounted(()=>{ |
| | | // getgetaiImagesPage() |
| | | }) |
| | | </script> |
| | | |
| | | <style scoped lang="scss"> |