喻忠伟 6 months ago
commit 31e7c591a5
  1. 14
      src/views/userInfo/components/reacList.vue

@ -24,7 +24,7 @@
link link
type="primary" type="primary"
size="small" size="small"
@click="download(row.fileUrl)" @click="download(row.fileUrl,row.fileName)"
v-if="row.uploadWorkFlag != 'no'" v-if="row.uploadWorkFlag != 'no'"
> >
下载文件 下载文件
@ -174,8 +174,16 @@ const headerChange = (pageNumber: any) => {
getList() getList()
} }
// //
const download = async (url:any) => { const download = async (url:any,name:any) => {
window.open(import.meta.env.VITE_APP_BASE_API + '/sys/common/zuopin/' + url) // window.open(import.meta.env.VITE_APP_BASE_API + '/sys/common/zuopin/' + url)
const a = document.createElement('a')
a.style.display = 'none'
document.body.appendChild(a)
a.href = import.meta.env.VITE_APP_BASE_API + '/sys/common/zuopin' + url
a.setAttribute('download', name);
a.click()
document.body.removeChild(a)
} }
const saveEvent = async (id: any) => { const saveEvent = async (id: any) => {

Loading…
Cancel
Save