Jelajahi Sumber

专利维权等

zhangchuang 14 jam lalu
induk
melakukan
4df678ff15

+ 6 - 4
src/components/download.vue

@@ -1,7 +1,7 @@
 <template>
   <div>
-    <el-table :data="props.fileList" style="width: 100%">
-      <el-table-column prop="fileName" label="文件名称" />
+    <el-table :data="downloadsUrlList" style="width: 100%">
+      <el-table-column prop="file_name" label="文件名称" />
       <el-table-column label="操作" width="150">
         <template #default="{ row }">
           <el-button @click="downloadFile(row.url)" type="primary"
@@ -14,13 +14,15 @@
 </template>
 
 <script setup lang="ts">
-import { defineProps } from "vue";
+import { computed, defineProps } from "vue";
 
 // 接收文件列表作为 props
 const props = defineProps<{
-  fileList: Array<{ fileName: string; url: string }>;
+  data: Record<string, any>; // 接收完整的数据
 }>();
 
+const downloadsUrlList = computed(() => props.data.downloadsUrlList);
+
 // 下载文件的方法
 const downloadFile = (url: string) => {
   // 创建一个链接元素

+ 1 - 1
src/views/user/Patent22.vue

@@ -129,7 +129,7 @@
       <Descriptions :data="detailsData" :key="componentKey" />
     </el-dialog>
     <el-dialog v-model="downloadVisible" title="附件下载" width="1080">
-      <Download :fileList="detailsData.downloadFileList" :key="componentKey" />
+      <Download :data="detailsData" :key="componentKey" />
     </el-dialog>
     <el-dialog v-model="uploadVisible" title="补充资料" width="1080">
       <ReceiptFileUpload

+ 1 - 1
src/views/user/Patent23.vue

@@ -124,7 +124,7 @@
       />
     </el-dialog>
     <el-dialog v-model="downloadVisible" title="附件下载" width="1080">
-      <Download :fileList="detailsData.downloadFileList" :key="componentKey" />
+      <Download :data="detailsData" :key="componentKey" />
     </el-dialog>
     <el-dialog v-model="uploadVisible" title="补充资料" width="1080">
       <ReceiptFileUpload

+ 1 - 1
src/views/user/Patent24.vue

@@ -124,7 +124,7 @@
       />
     </el-dialog>
     <el-dialog v-model="downloadVisible" title="附件下载" width="1080">
-      <Download :fileList="detailsData.downloadFileList" :key="componentKey" />
+      <Download :data="detailsData" :key="componentKey" />
     </el-dialog>
     <el-dialog v-model="uploadVisible" title="补充资料" width="1080">
       <ReceiptFileUpload

+ 1 - 1
src/views/user/Patent25.vue

@@ -124,7 +124,7 @@
       />
     </el-dialog>
     <el-dialog v-model="downloadVisible" title="附件下载" width="1080">
-      <Download :fileList="detailsData.downloadFileList" :key="componentKey" />
+      <Download :data="detailsData" :key="componentKey" />
     </el-dialog>
     <el-dialog v-model="uploadVisible" title="补充资料" width="1080">
       <ReceiptFileUpload

+ 1 - 1
src/views/user/Patent26.vue

@@ -135,7 +135,7 @@
       <Descriptions :data="detailsData" :key="componentKey" />
     </el-dialog>
     <el-dialog v-model="downloadVisible" title="附件下载" width="1080">
-      <Download :fileList="detailsData.downloadFileList" :key="componentKey" />
+      <Download :data="detailsData" :key="componentKey" />
     </el-dialog>
     <el-dialog v-model="uploadVisible" title="补充资料" width="1080">
       <ReceiptFileUpload

+ 1 - 1
src/views/user/TrademarkRegistrationRecords.vue

@@ -132,7 +132,7 @@
       />
     </el-dialog>
     <el-dialog v-model="downloadVisible" title="附件下载" width="1080">
-      <Download :fileList="detailsData.downloadFileList" :key="componentKey" />
+      <Download :data="detailsData" :key="componentKey" />
     </el-dialog>
     <el-dialog v-model="uploadVisible" title="补充资料" width="1080">
       <ReceiptFileUpload