喻忠伟 6 months ago
commit 04119d5c43
  1. 2
      src/api/race.ts
  2. 8
      src/views/userInfo/components/reacList.vue

@ -118,4 +118,4 @@ export const sava = (data: any) => {
method: 'POST',
data,
})
}
}

@ -24,7 +24,7 @@
link
type="primary"
size="small"
@click="download(row.fileUrl, row.fileName)"
@click="download(row.fileUrl)"
v-if="row.uploadWorkFlag != 'no'"
>
下载文件
@ -115,7 +115,7 @@
<script setup lang="ts">
import { ref } from 'vue'
import { getStuRaceList, uploadFileZp, sava } from '@/api/race'
import { getStuRaceList, uploadFileZp, sava, getfile } from '@/api/race'
import { ElMessage } from 'element-plus'
const list = ref<any>([])
const page = ref<any>({
@ -174,8 +174,8 @@ const headerChange = (pageNumber: any) => {
getList()
}
//
const download = (url: any, fileName: any) => {
window.open(url)
const download = async (url:any) => {
window.open(import.meta.env.VITE_APP_BASE_API + '/sys/common/zuopin/' + url)
}
const saveEvent = async (id: any) => {

Loading…
Cancel
Save