|
@ -10,6 +10,14 @@ |
|
|
<el-button type="primary" round @click="handleProjectResult" :loading="btnLoading3"> |
|
|
<el-button type="primary" round @click="handleProjectResult" :loading="btnLoading3"> |
|
|
导出项目成果</el-button |
|
|
导出项目成果</el-button |
|
|
> |
|
|
> |
|
|
|
|
|
<a-upload |
|
|
|
|
|
name="file" |
|
|
|
|
|
:before-upload="beforeUpload" |
|
|
|
|
|
:showUploadList="false" |
|
|
|
|
|
style="margin-left: 20px;" |
|
|
|
|
|
> |
|
|
|
|
|
<el-button type="primary" round> 导入评分信息 </el-button> |
|
|
|
|
|
</a-upload> |
|
|
<el-button type="primary" style="float: right; margin-right: 2%" @click="getInfo"> |
|
|
<el-button type="primary" style="float: right; margin-right: 2%" @click="getInfo"> |
|
|
查询</el-button |
|
|
查询</el-button |
|
|
> |
|
|
> |
|
@ -44,7 +52,7 @@ |
|
|
|
|
|
|
|
|
<script lang="ts" setup> |
|
|
<script lang="ts" setup> |
|
|
//ts语法 |
|
|
//ts语法 |
|
|
import { queryBoardInfo, projectBoardInfo, timeOutInfo, projectResult } from './api'; |
|
|
import { queryBoardInfo, projectBoardInfo, timeOutInfo, projectResult,listUpload } from './api'; |
|
|
import { onMounted, ref, nextTick, computed } from 'vue'; |
|
|
import { onMounted, ref, nextTick, computed } from 'vue'; |
|
|
import { downloadFile } from '@/api/common/api'; |
|
|
import { downloadFile } from '@/api/common/api'; |
|
|
import dayjs from 'dayjs'; |
|
|
import dayjs from 'dayjs'; |
|
@ -261,9 +269,20 @@ |
|
|
if (length) { |
|
|
if (length) { |
|
|
return Array.from({ length }, (_, i) => i); |
|
|
return Array.from({ length }, (_, i) => i); |
|
|
} else { |
|
|
} else { |
|
|
return |
|
|
return; |
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
}; |
|
|
|
|
|
const beforeUpload = async (file: any) => { |
|
|
|
|
|
console.log(file); |
|
|
|
|
|
const params = { |
|
|
|
|
|
file: file, |
|
|
|
|
|
}; |
|
|
|
|
|
await listUpload(params); |
|
|
|
|
|
setTimeout(()=>{ |
|
|
|
|
|
message.success('导入成功') |
|
|
|
|
|
},500) |
|
|
|
|
|
return false; |
|
|
|
|
|
}; |
|
|
onMounted(() => { |
|
|
onMounted(() => { |
|
|
getInfo(); |
|
|
getInfo(); |
|
|
}); |
|
|
}); |
|
|