Pārlūkot izejas kodu

feat:传参处理

zhangsiya 1 gadu atpakaļ
vecāks
revīzija
498f23cba5

+ 1 - 1
apps/bigmember_pc/src/views/portrayal/components/EntReportDownloadDialog.vue

@@ -134,7 +134,7 @@ export default {
       showEmailError: false,
       sendLoading: false,
       filterParams: {
-        buyer: this.entName || '',
+        entName: this.entName || '',
         entId: this.entId || '',
         exactMatch: '0', // 模糊、精准搜索
         match: '', // 关键词

+ 3 - 4
apps/bigmember_pc/src/views/reportDownload/record.vue

@@ -216,7 +216,7 @@
             <span
               v-if="scope.row.s_pdfUrl"
               class="text-button"
-              @click="downloadReport(scope.row.s_pdfUrl)">
+              @click="downloadReport(scope.row)">
               下载
             </span>
             <span v-else>--</span>
@@ -498,10 +498,9 @@ export default {
       })
     },
     // 报告下载
-    downloadReport (url) {
-      if(url) {
+    downloadReport (item) {
+      const url = item.s_pdfUrl + '?pid='+ item._id
         window.open(url, '_blank')
-      }
     },
     // 查看报告
     viewReport () {