|
|
|
@ -12,6 +12,21 @@ |
|
|
|
|
<el-table-column label="比赛类型" prop="entryFormat" /> |
|
|
|
|
<el-table-column label="报名编号" prop="enrollCode" /> |
|
|
|
|
<el-table-column label="比赛状态" prop="enrollStatic_dictText" /> |
|
|
|
|
<el-table-column label="比赛状态" prop="fileName" /> |
|
|
|
|
<el-table-column label="作品文件" prop="fileName"> |
|
|
|
|
<template #default="{ row }"> |
|
|
|
|
<el-button |
|
|
|
|
link |
|
|
|
|
type="primary" |
|
|
|
|
size="small" |
|
|
|
|
@click="download(row.fileUrl,row.fileName)" |
|
|
|
|
v-if="row.uploadWorkFlag != 'no'" |
|
|
|
|
> |
|
|
|
|
下载文件 |
|
|
|
|
</el-button> |
|
|
|
|
<div v-else>无文件</div> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="操作"> |
|
|
|
|
<template #default="{ row }"> |
|
|
|
|
<el-button |
|
|
|
@ -77,7 +92,6 @@ import { ref } from 'vue' |
|
|
|
|
|
|
|
|
|
import { getStuRaceList, uploadFileZp } from '@/api/race' |
|
|
|
|
import { ElMessage } from 'element-plus' |
|
|
|
|
import { head } from 'node_modules/axios/index.d.cts'; |
|
|
|
|
const list = ref<any>([]) |
|
|
|
|
const page = ref<any>({ |
|
|
|
|
pageNo: 1, |
|
|
|
@ -126,6 +140,7 @@ const submit = async () => { |
|
|
|
|
}) |
|
|
|
|
console.log(res) |
|
|
|
|
handleClose() |
|
|
|
|
getList() |
|
|
|
|
} |
|
|
|
|
const headerChange = (pageNumber: any) => { |
|
|
|
|
console.log(pageNumber); |
|
|
|
@ -133,6 +148,17 @@ const headerChange = (pageNumber: any) => { |
|
|
|
|
page.value.pageNo = pageNumber |
|
|
|
|
getList() |
|
|
|
|
} |
|
|
|
|
// 下载文件 |
|
|
|
|
const download = (url: any,fileName:any) => { |
|
|
|
|
console.log(url); |
|
|
|
|
|
|
|
|
|
const a = document.createElement('a') |
|
|
|
|
a.href = url |
|
|
|
|
a.download = fileName; |
|
|
|
|
document.body.appendChild(a) |
|
|
|
|
a.click() |
|
|
|
|
document.body.removeChild(a); |
|
|
|
|
} |
|
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
<style scoped lang="scss"> |
|
|
|
|