Sfoglia il codice sorgente

数据服务-数据产品:下载数据

Xiao_123 10 ore fa
parent
commit
4596814476

+ 2 - 2
src/views/dataService/dataProduct/components/PreviewDialog.vue

@@ -72,7 +72,7 @@
       <div v-else class="text-center pa-10 text--secondary">
         暂无数据
       </div>
-      <div class="text-end text--secondary">
+      <div v-if="previewData.preview_count > 0" class="text-end text--secondary">
         <span>已加载 {{ previewData.preview_count || 0 }} / {{ previewData.total_count || 0 }} 条</span>
       </div>
     </div>
@@ -88,7 +88,7 @@
         >
           加载更多
         </v-btn>
-        <v-btn v-if="previewData.product?.status === 'active'" text color="success" @click="handleDownload">下载Excel</v-btn>
+        <v-btn v-if="previewData?.data?.length > 0" text color="success" @click="handleDownload">下载Excel</v-btn>
         <v-btn text @click="handleClose">关闭</v-btn>
       </v-card-actions>
     </template>