'修改部门报告接口'

main
JayChou 3 months ago
parent b44d708635
commit abdd9a114c
  1. 3
      jeecgboot-vue3-master/src/api/common/api.ts
  2. 11
      jeecgboot-vue3-master/src/views/comprehensiveEvaluation/comprehensiveReport.vue
  3. 50
      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>

@ -118,7 +118,6 @@
<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">
@ -133,7 +132,6 @@
<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>
@ -161,32 +158,39 @@
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: '前言探索',
@ -243,7 +247,7 @@
() => { () => {
console.log(annualid); console.log(annualid);
Rebuild(); selectYeay();
} }
); );
</script> </script>

Loading…
Cancel
Save