无人机管理后台前端(已迁走)
张含笑
2025-06-26 957b1ce0454e16f55cd93b77a90c7ddefa5baf0a
feat:数据中心添加判断
1 files modified
7 ■■■■■ changed files
src/views/dataCenter/dataCenter.vue 7 ●●●●● patch | view | raw | blame | history
src/views/dataCenter/dataCenter.vue
@@ -294,7 +294,7 @@
import dayjs from 'dayjs';
function bytesToMB(bytes, decimalPlaces = 2) {
  if (typeof bytes !== 'number' || bytes < 0) return '无效输入';
  if (typeof bytes !== 'number' || bytes < 0) return '--';
  return (bytes / 1048576).toFixed(decimalPlaces) + ' MB';
}
// 视频一帧
@@ -625,14 +625,13 @@
const positiongeom = ref('');
const odmToken = ref(null);
const lookDetail = val => {
   console.log('查看',val)
  if (val.resultType === 4) {
    // 正射
    getOrthoimageInfo(val.wayLineJobId).then(async res => {
      dialogVisible.value = true;
      detailTitle.value = val.nickName;
      dialogDetailList.value = val;
      console.log('3333', detailTitle.value, dialogDetailList.value);
      await nextTick();
      initMap();
      positiongeom.value = res.data.data.geom;
@@ -676,6 +675,8 @@
  } else {
    getAttachInfoAPI(val.id).then(res => {
      detailTitle.value = res.data.data.nickName.split('.jpeg')[0];
   ;
      dialogDetailList.value = {
        ...res.data.data,
        checkedinput: false,