无人机管理后台前端(已迁走)
张含笑
2025-06-10 57412c916fca9c2c66446a3651c2ff7f6b2efa19
src/views/dataCenter/dataCenter.vue
@@ -49,7 +49,7 @@
            <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>
@@ -133,15 +133,19 @@
        <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') {
@@ -151,6 +155,7 @@
  const thumbnailUrl = videoUrl.replace(/\.mp4$/, '_small.jpg');
  return thumbnailUrl;
}
const jobListParams = reactive({
  current: 1,
  size: 10,
@@ -213,6 +218,13 @@
    fileformat: '正射',
  },
];
// 获取列表数据
const getgetaiImagesPage =()=>{
  getaiImagesPage(jobListParams).then(res=>{
    console.log('res',res);
  })
}
const handleSizeChange = () => {};
const handleCurrentChange = () => {};
// 多选
@@ -260,6 +272,16 @@
  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">