'修改部门报告接口'

main
JayChou 3 months ago
parent b44d708635
commit abdd9a114c
  1. 5
      jeecgboot-vue3-master/src/api/common/api.ts
  2. 11
      jeecgboot-vue3-master/src/views/comprehensiveEvaluation/comprehensiveReport.vue
  3. 120
      jeecgboot-vue3-master/src/views/comprehensiveEvaluation/department.vue

@ -206,7 +206,8 @@ export const getComprehensiveReport = (params = {}) => {
// http://localhost:18083/jeecg-boot/user/login/homepage/report4Depart // http://localhost:18083/jeecg-boot/user/login/homepage/report4Depart
export const getdepartmentReport = (params: any = {}) => { export const getdepartmentReport = (params: any = {}) => {
return defHttp.get({ return defHttp.get({
url: '/user/login/homepage/report4School', url: '/user/login/homepage/report4Depart',
params params
}) })
} }
// 11111111

@ -296,13 +296,22 @@
} }
}); });
}; };
const selectYeay = async () => {
isLoading.value = false;
const res = await getComprehensiveReport({ annualid: annualid.value });
console.log(res);
data.value = res;
data12.value = JSON.stringify(res.学生能力平均值);
isLoading.value = true;
};
const annualid = ref(''); const annualid = ref('');
watch( watch(
() => annualid.value, () => annualid.value,
() => { () => {
console.log(annualid); console.log(annualid);
Rebuild(); selectYeay();
} }
); );
</script> </script>

@ -1,10 +1,10 @@
<template> <template>
<div style="padding: 30px 18.6vw 0; width: 100%; margin: auto"> <div style="padding: 30px 18.6vw 0; width: 100%; margin: auto">
年度<j-dict-select-tag placeholder="请选择年度" v-model:value="annualid" dictCode="annual,annual_name,id" /> 年度<j-dict-select-tag placeholder="请选择年度" v-model:value="annualid" dictCode="annual,annual_name,id" />
</div> </div>
<div class="container" v-if="isLoading"> <div class="container" v-if="isLoading">
<div class="title">河南机电学院比赛部门报告</div> <div class="title">河南机电学院比赛部门报告</div>
<div class="rebuild" ><div @click="Rebuild">重新生成报告</div></div> <div class="rebuild"><div @click="Rebuild">重新生成报告</div></div>
<p class="description" <p class="description"
>我是比赛综述:全面落实立德树人根本任务依据CDI0工程教育理念培养德劳全面发展掌握软件工程专业所需的数学与自然科学基础知识专业基础理论知识;在企业级软件开发和工业智能软件开发方向能承担软件分析设计开发项目管理等任务具备解决复杂工程问题的能力;具有终身学习和创新创业意识国际交流能力团队合作精神等良好案养能适应产业与社会变革的国际化应用型人才<br />本专业毕业生经过五年左右的实际工作能够达到以下目标:</p >我是比赛综述:全面落实立德树人根本任务依据CDI0工程教育理念培养德劳全面发展掌握软件工程专业所需的数学与自然科学基础知识专业基础理论知识;在企业级软件开发和工业智能软件开发方向能承担软件分析设计开发项目管理等任务具备解决复杂工程问题的能力;具有终身学习和创新创业意识国际交流能力团队合作精神等良好案养能适应产业与社会变革的国际化应用型人才<br />本专业毕业生经过五年左右的实际工作能够达到以下目标:</p
> >
@ -13,7 +13,7 @@
<div class="top-title">本年度已开展比赛数</div> <div class="top-title">本年度已开展比赛数</div>
<div class="sum">{{ data.本年度已开展比赛项目数 }}</div> <div class="sum">{{ data.本年度已开展比赛项目数 }}</div>
<div class="content"> <div class="content">
<div>国赛{{data.国赛}}</div> <div>国赛{{ data.国赛 }}</div>
<div>省赛{{ data.省赛 }}</div> <div>省赛{{ data.省赛 }}</div>
<div>校赛{{ data.校赛 }}</div> <div>校赛{{ data.校赛 }}</div>
</div> </div>
@ -22,16 +22,16 @@
<div class="top-title">本年度已开展比赛数</div> <div class="top-title">本年度已开展比赛数</div>
<div class="sum">{{ data.本年度已开展比赛数 }}</div> <div class="sum">{{ data.本年度已开展比赛数 }}</div>
<div class="content"> <div class="content">
<div>国赛{{data.国赛}}</div> <div>国赛{{ data.国赛 }}</div>
<div>省赛{{ data.省赛 }}</div> <div>省赛{{ data.省赛 }}</div>
<div>校赛{{ data.校赛 }}</div> <div>校赛{{ data.校赛 }}</div>
</div> </div>
</div> </div>
<div class="item"> <div class="item">
<div class="top-title">本年度参加比赛队伍数</div> <div class="top-title">本年度参加比赛队伍数</div>
<div class="sum">{{ data.本年度参加比赛队伍数}}</div> <div class="sum">{{ data.本年度参加比赛队伍数 }}</div>
<div class="content"> <div class="content">
<div>国赛{{data.国赛}}</div> <div>国赛{{ data.国赛 }}</div>
<div>省赛{{ data.省赛 }}</div> <div>省赛{{ data.省赛 }}</div>
<div>校赛{{ data.校赛 }}</div> <div>校赛{{ data.校赛 }}</div>
</div> </div>
@ -40,7 +40,7 @@
<div class="top-title">已完成的比赛</div> <div class="top-title">已完成的比赛</div>
<div class="sum">{{ data.已完成的比赛 }}</div> <div class="sum">{{ data.已完成的比赛 }}</div>
<div class="content"> <div class="content">
<div>国赛{{data.国赛}}</div> <div>国赛{{ data.国赛 }}</div>
<div>省赛{{ data.省赛 }}</div> <div>省赛{{ data.省赛 }}</div>
<div>校赛{{ data.校赛 }}</div> <div>校赛{{ data.校赛 }}</div>
</div> </div>
@ -54,10 +54,10 @@
<div class="year-content-top"> <div class="year-content-top">
<div class="left border-000"> <div class="left border-000">
<div class="border-title">年度维度分析</div> <div class="border-title">年度维度分析</div>
<randerChart :data="data.学生能力平均值"/> <randerChart :data="data.学生能力平均值" />
</div> </div>
<div class="right border-000"> <div class="right border-000">
<cardList :DATA="data12"/> <cardList :DATA="data12" />
</div> </div>
</div> </div>
@ -99,11 +99,11 @@
<div class="left border-000"> <div class="left border-000">
<!-- <div class="border-title">年度维度分析</div> --> <!-- <div class="border-title">年度维度分析</div> -->
<cakeChart :data="data.比赛类型占比"/> <cakeChart :data="data.比赛类型占比" />
</div> </div>
</div> </div>
<div class="footer-edit border-000"> <div class="footer-edit border-000">
<cardList2 :data="data.学生参赛情况"/> <cardList2 :data="data.学生参赛情况" />
</div> </div>
</div> </div>
<cardTitle title="比赛学生获奖情况分析" /> <cardTitle title="比赛学生获奖情况分析" />
@ -117,12 +117,11 @@
</div> </div>
<div class="left border-000"> <div class="left border-000">
<!-- <div class="border-title">年度维度分析</div> --> <!-- <div class="border-title">年度维度分析</div> -->
<ringChart :data="data.比赛获奖占比"/> <ringChart :data="data.比赛获奖占比" />
</div> </div>
</div> </div>
<div class="footer-edit border-000"> <div class="footer-edit border-000">
<cardList3 :data="data.比赛获奖情况列表"/> <cardList3 :data="data.比赛获奖情况列表" />
</div> </div>
</div> </div>
<cardTitle title="部门参赛情况分析" /> <cardTitle title="部门参赛情况分析" />
@ -131,9 +130,8 @@
> >
<div class="participation-status-content"> <div class="participation-status-content">
<div class="right border-000"> <div class="right border-000">
<cardList7 :data="data.部门参赛情况列表"/> <cardList7 :data="data.部门参赛情况列表" />
</div> </div>
</div> </div>
<!-- <div class="footer border-000"> <!-- <div class="footer border-000">
<cardList6 :data="data.部门获奖情况列表"/> <cardList6 :data="data.部门获奖情况列表"/>
@ -141,7 +139,6 @@
</div> </div>
<div class="loading" v-else> <div class="loading" v-else>
<a-spin /> <a-spin />
</div> </div>
</template> </template>
@ -157,36 +154,43 @@
import cakeChart from './components/cakeChart.vue'; import cakeChart from './components/cakeChart.vue';
import ringChart from './components/ringChart.vue'; import ringChart from './components/ringChart.vue';
import pillarChart from './components/pillarChart.vue'; import pillarChart from './components/pillarChart.vue';
import {getdepartmentReport} from '/@/api/common/api'; import { getdepartmentReport } from '/@/api/common/api';
import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue'; import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue';
import { ref,watch } from 'vue'; import { ref, watch } from 'vue';
import {useUserStore} from '/@/store/modules/user' import { useUserStore } from '/@/store/modules/user';
const userStore = useUserStore() const userStore = useUserStore();
const activeKey = ref('1'); const activeKey = ref('1');
const data = ref<any>({}) const data = ref<any>({});
const isLoading = ref<any>(false) const isLoading = ref<any>(false);
const data12 = ref<any>([]) const data12 = ref<any>([]);
const getdepartmentReportEvent = async() => { const getdepartmentReportEvent = async () => {
const res = await getdepartmentReport({orgCode:userStore.userInfo.id const res = await getdepartmentReport({ orgCode: userStore.userInfo.orgCode });
})
console.log(res); console.log(res);
data.value = res data.value = res;
data12.value = JSON.stringify(res.学生能力平均值) data12.value = JSON.stringify(res.学生能力平均值);
isLoading.value = true isLoading.value = true;
} };
getdepartmentReportEvent() getdepartmentReportEvent();
const Rebuild = async() => { const Rebuild = async () => {
isLoading.value = false isLoading.value = false;
const res = await getdepartmentReport({recreateFlag:true,orgCode:userStore.userInfo.id,annualid: annualid.value const res = await getdepartmentReport({ recreateFlag: true, orgCode: userStore.userInfo.orgCode, annualid: annualid.value });
})
console.log(res); console.log(res);
data.value = res data.value = res;
data12.value = JSON.stringify(res.学生能力平均值) data12.value = JSON.stringify(res.学生能力平均值);
isLoading.value = true isLoading.value = true;
} };
const selectYeay = async () => {
isLoading.value = false;
const res = await getdepartmentReport({ orgCode: userStore.userInfo.orgCode, annualid: annualid.value });
console.log(res);
data.value = res;
data12.value = JSON.stringify(res.学生能力平均值);
isLoading.value = true;
};
var indicator = [ var indicator = [
{ {
text: '前言探索', text: '前言探索',
@ -242,20 +246,20 @@
() => annualid.value, () => annualid.value,
() => { () => {
console.log(annualid); console.log(annualid);
Rebuild(); selectYeay();
} }
); );
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.loading{ .loading {
width: 100%; width: 100%;
height: 100vh; height: 100vh;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} }
.container { .container {
width: 1200px; width: 1200px;
margin: 0 auto; margin: 0 auto;
@ -344,7 +348,7 @@
align-items: center; align-items: center;
.content-left, .content-left,
.content-right { .content-right {
padding-left: 40px; padding-left: 40px;
width: 100%; width: 100%;
.item { .item {
display: flex; display: flex;
@ -428,13 +432,13 @@
padding: 0 20px; padding: 0 20px;
} }
.tetx-style { .tetx-style {
font-size: 24px; font-size: 24px;
} }
.rebuild{ .rebuild {
display: flex; display: flex;
justify-content: center; justify-content: center;
div{ div {
cursor: pointer; cursor: pointer;
}
} }
}
</style> </style>

Loading…
Cancel
Save