|
|
@ -10,6 +10,14 @@ |
|
|
|
<el-button type="primary" round @click="handleProjectResult" :loading="btnLoading3"> |
|
|
|
导出项目成果</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 |
|
|
|
> |
|
|
@ -31,7 +39,7 @@ |
|
|
|
</template> |
|
|
|
<template v-if="column && record && column.dataIndex === 'redFlagCount'"> |
|
|
|
<div style="display: flex; justify-content: center"> |
|
|
|
<div v-for="(item,index) in getRedFlag(record.redFlagCount)" :key="index"> |
|
|
|
<div v-for="(item, index) in getRedFlag(record.redFlagCount)" :key="index"> |
|
|
|
<img src="@/assets/images/红旗.png" alt="" class="redFlag" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -44,7 +52,7 @@ |
|
|
|
|
|
|
|
<script lang="ts" setup> |
|
|
|
//ts语法 |
|
|
|
import { queryBoardInfo, projectBoardInfo, timeOutInfo, projectResult } from './api'; |
|
|
|
import { queryBoardInfo, projectBoardInfo, timeOutInfo, projectResult,listUpload } from './api'; |
|
|
|
import { onMounted, ref, nextTick, computed } from 'vue'; |
|
|
|
import { downloadFile } from '@/api/common/api'; |
|
|
|
import dayjs from 'dayjs'; |
|
|
@ -257,13 +265,24 @@ |
|
|
|
} |
|
|
|
return text; |
|
|
|
}; |
|
|
|
const getRedFlag = (length:any)=>{ |
|
|
|
if(length){ |
|
|
|
return Array.from({ length }, (_, i) => i); |
|
|
|
}else{ |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
const getRedFlag = (length: any) => { |
|
|
|
if (length) { |
|
|
|
return Array.from({ length }, (_, i) => i); |
|
|
|
} else { |
|
|
|
return; |
|
|
|
} |
|
|
|
}; |
|
|
|
const beforeUpload = async (file: any) => { |
|
|
|
console.log(file); |
|
|
|
const params = { |
|
|
|
file: file, |
|
|
|
}; |
|
|
|
await listUpload(params); |
|
|
|
setTimeout(()=>{ |
|
|
|
message.success('导入成功') |
|
|
|
},500) |
|
|
|
return false; |
|
|
|
}; |
|
|
|
onMounted(() => { |
|
|
|
getInfo(); |
|
|
|
}); |
|
|
|