|
|
@ -1,7 +1,7 @@ |
|
|
|
<template> |
|
|
|
<div style="margin: 1% 1% 1% 1%"> |
|
|
|
<div style="margin: 2% 0 2% 0"> |
|
|
|
<el-button type="primary" round @click="handleProjectBoardInfo" :loading="btnLoading1"> |
|
|
|
<el-button type="primary" round @click="handleProjectBoardInfo" :loading="btnLoading1" v-if="roleList.includes('sys:admin')"> |
|
|
|
导出晾晒看报</el-button |
|
|
|
> |
|
|
|
<el-button type="primary" round @click="handleTimeOutInfo" :loading="btnLoading2"> |
|
|
@ -10,7 +10,7 @@ |
|
|
|
<el-button type="primary" round @click="handleProjectResult" :loading="btnLoading3"> |
|
|
|
导出项目成果</el-button |
|
|
|
> |
|
|
|
<el-button type="primary" round @click="handleDeleteRedisKey" :loading="btnLoading4"> |
|
|
|
<el-button type="primary" round @click="handleDeleteRedisKey" :loading="btnLoading4" v-if="roleList.includes('sys:admin')"> |
|
|
|
同步实时数据</el-button |
|
|
|
> |
|
|
|
<a-upload |
|
|
@ -19,6 +19,7 @@ |
|
|
|
@change="importChange" |
|
|
|
:showUploadList="false" |
|
|
|
style="margin-left: 20px;" |
|
|
|
v-if="roleList.includes('sys:admin')" |
|
|
|
> |
|
|
|
<el-button type="primary" round> 导入评分信息 </el-button> |
|
|
|
</a-upload> |
|
|
@ -61,6 +62,11 @@ |
|
|
|
import { downloadFile } from '@/api/common/api'; |
|
|
|
import dayjs from 'dayjs'; |
|
|
|
import { message } from 'ant-design-vue'; |
|
|
|
import { useUserStore } from '@/store/modules/user'; |
|
|
|
const userStore = useUserStore(); |
|
|
|
|
|
|
|
console.log( userStore.roleList) |
|
|
|
const roleList = userStore.roleList |
|
|
|
const tableLoading = ref(false); |
|
|
|
const btnLoading1 = ref(false); |
|
|
|
const btnLoading2 = ref(false); |
|
|
|