tangning 6 ヶ月 前
コミット
a5688d4497
1 ファイル変更6 行追加1 行削除
  1. 6 1
      src/views/scenes/list.vue

+ 6 - 1
src/views/scenes/list.vue

@@ -131,7 +131,10 @@
                 tooltip: t('routes.scenes.downloadSceneE57'),
                 disabled: record.status != -2,
                 ifShow:
-                  (tableType === 2 || tableType === 5) && record.location === 4 && !record.isCopy,
+                  (tableType === 2 || tableType === 5) &&
+                  record.location === 4 &&
+                  record.isCopy &&
+                  !dayjs(record.createTime).isBefore(dayjs('2025-01-01')),
                 icon: 'gis:layer-download',
                 popConfirm: {
                   placement: 'left',
@@ -157,6 +160,7 @@
 <script lang="ts">
   import { defineComponent, computed, h, ref } from 'vue';
   import { openUrl } from '/@/utils/auth';
+  import dayjs from 'dayjs';
   import { PageWrapper } from '/@/components/Page';
   import {
     BasicTable,
@@ -659,6 +663,7 @@
         handleUpdateSwitch,
         handleDownloadSceneE57,
         registerDownloadE57Modal,
+        dayjs,
       };
     },
   });