Browse Source

文件上传

lizhenhao 2 years ago
parent
commit
7d5c7a8cd1
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/views/modules/sys/project/AssessForm.vue

+ 4 - 0
src/views/modules/sys/project/AssessForm.vue

@@ -437,9 +437,11 @@
         console.log('rr', row)
         const link = document.createElement('a')
         link.setAttribute('download', row.name)
+        link.setAttribute('target', '_blank')
         if (row.id === null || row.id === undefined || row.id === '') {
           await this.ossService.getTemporaryUrl(row.raw.url).then((data) => {
             link.setAttribute('href', data.data)
+            link.click()
           })
         } else {
           link.setAttribute('href', row.url)
@@ -644,6 +646,8 @@
           this.orders.push({column: this.$utils.toLine(column.prop), asc: column.order === 'ascending'})
         }
         this.refreshList()
+      },
+      deleteMsgById (row) {
       }
     }
   }