diff --git a/src/views/report/TrainingNewManager.vue b/src/views/report/TrainingNewManager.vue index 65668db8..88e8dda6 100644 --- a/src/views/report/TrainingNewManager.vue +++ b/src/views/report/TrainingNewManager.vue @@ -14,7 +14,14 @@ import { useStore } from "vuex"; import { reportOrgs } from "@/api/indexProject"; const downReport = () => { console.log('下载报表') - window.open(`${process.env.VUE_APP_BASE_API}/admin/project/report/data`) + if(uploadAdmin('training-admin')){ + window.open(`${process.env.VUE_APP_BASE_API}/admin/project/report/data`) + return + } + if(adminType?.value.length>0){ + let orgs = adminType.value.join(',') + window.open(`${process.env.VUE_APP_BASE_API}/admin/project/report/data?orgs=${orgs}`) + } } const userInfo = computed(() => store.state.userInfo); onMounted(()=>{