Browse Source

修改导出

yangg 5 months ago
parent
commit
56045a8f95
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/views/project/components/dataList.vue

+ 2 - 1
src/views/project/components/dataList.vue

@@ -552,6 +552,7 @@ export default {
 
     // 更新导出方法
     async exportDocumentWithHtmlDocx(template) {
+      console.log(template);
       try {
         const templateData = JSON.parse(template.data || '[]')
         const contentContainer = document.createElement('div')
@@ -1714,7 +1715,7 @@ export default {
     viewBoundTemplates(row) {
       this.currentData = row
       this.boundTemplateLoading = true
-      searchTemplateListNoData({ ids: row.documentIds.join(',') || 0 })
+      searchTemplateList({ ids: row.documentIds.join(',') || 0 })
         .then((res) => {
           if (res.status === 200) {
             this.boundTemplateList = res.data