From 1e75ec486dfa84afa3361e66c12656573e313491 Mon Sep 17 00:00:00 2001 From: JayChou <2064936853@qq.com> Date: Mon, 29 Jul 2024 19:39:11 +0800 Subject: [PATCH] =?UTF-8?q?'=E5=AF=B9=E6=8E=A5=E5=89=A9=E4=BD=99=E4=B8=89?= =?UTF-8?q?=E4=B8=AA=E6=8A=A5=E5=91=8A'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jeecgboot-vue3-master/src/api/common/api.ts | 15 +++ .../components/cakeChart.vue | 18 ++- .../components/cardList.vue | 71 +++++----- .../components/cardList2.vue | 12 +- .../components/cardList3.vue | 22 +-- .../components/cardList4.vue | 16 +-- .../components/cardList5.vue | 2 +- .../components/cardList6.vue | 16 +-- .../components/cardList8.vue | 23 ++-- .../components/randerChart.vue | 126 ++++++++++-------- .../components/ringChart.vue | 19 +-- .../comprehensiveReport.vue | 98 ++++++++++---- .../comprehensiveEvaluation/department.vue | 80 ++++++++--- .../organizingCommittee.vue | 2 +- 14 files changed, 326 insertions(+), 194 deletions(-) diff --git a/jeecgboot-vue3-master/src/api/common/api.ts b/jeecgboot-vue3-master/src/api/common/api.ts index 237e17fc..70fc989c 100644 --- a/jeecgboot-vue3-master/src/api/common/api.ts +++ b/jeecgboot-vue3-master/src/api/common/api.ts @@ -188,4 +188,19 @@ export const getOrganizingCommitteeReport = () => { return defHttp.get({ url:'/annualcompetitionprojectregistration/annualCompetitionProjectRegistration/zwhfxbg' }) +} +// /user/login/homepage/report4School +// 学校综合报告 +export const getComprehensiveReport = () => { + return defHttp.get({ + url:'/user/login/homepage/report4School' + }) +} +// 部门 +// http://localhost:18083/jeecg-boot/user/login/homepage/report4Depart +export const getdepartmentReport = (params:any) => { + return defHttp.get({ + url:'/user/login/homepage/report4School', + params + }) } \ No newline at end of file diff --git a/jeecgboot-vue3-master/src/views/comprehensiveEvaluation/components/cakeChart.vue b/jeecgboot-vue3-master/src/views/comprehensiveEvaluation/components/cakeChart.vue index cc131717..d838523e 100644 --- a/jeecgboot-vue3-master/src/views/comprehensiveEvaluation/components/cakeChart.vue +++ b/jeecgboot-vue3-master/src/views/comprehensiveEvaluation/components/cakeChart.vue @@ -6,6 +6,9 @@ import echarts from '/@/utils/lib/echarts'; import { onMounted } from 'vue'; + const props = defineProps(['data']) + console.log(props.data); + const throttle = (fn: any) => { let timer: any; return function () { @@ -20,6 +23,12 @@ }; }; onMounted(() => { + let arr:any = [] + for (const key in props.data) { + arr.push({value:props.data[key],name:key}) + } + console.log(arr,props.data); + // @ts-ignore const myChart = echarts.init(document.getElementById('cakeChart')); const option = { @@ -34,16 +43,11 @@ series: [ { - name: 'Access From', + name: '国家ABC类比赛占比', type: 'pie', radius: '60%', center:['50%','55%'], - data: [ - { value: 1048, name: '比赛一',itemStyle: {color: '#0052d9'} }, - { value: 735, name: '比赛二',itemStyle: {color: '#699ef5'} }, - { value: 580, name: '比赛三',itemStyle: {color: '#d9e1ff'} }, - // { value: 484, name: '比赛四' ,itemStyle: {color: '#0052d9'}}, - ], + data: arr, labelLine: { show: false, }, diff --git a/jeecgboot-vue3-master/src/views/comprehensiveEvaluation/components/cardList.vue b/jeecgboot-vue3-master/src/views/comprehensiveEvaluation/components/cardList.vue index ce272e7f..535ec75b 100644 --- a/jeecgboot-vue3-master/src/views/comprehensiveEvaluation/components/cardList.vue +++ b/jeecgboot-vue3-master/src/views/comprehensiveEvaluation/components/cardList.vue @@ -6,13 +6,13 @@
能力名称
-
能力分数
-
达标情况
+
能力分数
+
-
-
{{ item.text }}
-
{{ item.max }}
-
达标
+
+
{{ item.capacityName }}
+
{{ item.value }}
+
@@ -21,10 +21,10 @@
能力分数
达标情况
-
-
{{ item.text }}
-
{{ item.max }}
-
达标
+
+
{{ item.capacityName }}
+
{{ item.value }}
+
@@ -36,60 +36,61 @@ import { SvgIcon } from '/@/components/Icon'; const props = defineProps({ - data: { + DATA: { type: Array, default: [ { - text: '前言探索', - max: 100, + capacityName: '前言探索', + value: 0, }, { - text: '奠定基础', - max: 100, + capacityName: '奠定基础', + value: 0, }, { - text: '知识分析', - max: 100, + capacityName: '知识分析', + value: 0, }, { - text: '社会责任', - max: 100, + capacityName: '社会责任', + value: 0, }, { - text: '独立思考', - max: 100, + capacityName: '独立思考', + value: 0, }, { - text: '拓宽视野', - max: 100, + capacityName: '拓宽视野', + value: 0, }, { - text: '激发兴趣', - max: 100, + capacityName: '激发兴趣', + value: 0, }, { - text: '沟通协调', - max: 100, + capacityName: '沟通协调', + value: 0, }, { - text: '设计开发', - max: 100, + capacityName: '设计开发', + value: 0, }, { - text: '研判分析', - max: 100, + capacityName: '研判分析', + value: 0, }, { - text: '创新能力', - max: 100, + capacityName: '创新能力', + value: 0, }, { - text: '团队协作', - max: 100, + capacityName: '团队协作', + value: 0, }, ], }, }); + let data = JSON.parse(props.DATA) let falg = false; const unfold = () => { const dom: any = document.querySelector('.foo_card') as Element; diff --git a/jeecgboot-vue3-master/src/views/comprehensiveEvaluation/components/cardList2.vue b/jeecgboot-vue3-master/src/views/comprehensiveEvaluation/components/cardList2.vue index 8942acea..7b6c9547 100644 --- a/jeecgboot-vue3-master/src/views/comprehensiveEvaluation/components/cardList2.vue +++ b/jeecgboot-vue3-master/src/views/comprehensiveEvaluation/components/cardList2.vue @@ -11,12 +11,12 @@
比赛层次
参赛人数
-
-
国赛
-
全国高级计算机大赛
-
计算机算法
-
高级
-
212
+
+
{{ item.typeName }}
+
{{ item.compName }}
+
{{item.pointName}}
+
{{ item.projectLevel }}
+
{{ item.number }}
diff --git a/jeecgboot-vue3-master/src/views/comprehensiveEvaluation/components/cardList3.vue b/jeecgboot-vue3-master/src/views/comprehensiveEvaluation/components/cardList3.vue index bea7a15d..7a5264e7 100644 --- a/jeecgboot-vue3-master/src/views/comprehensiveEvaluation/components/cardList3.vue +++ b/jeecgboot-vue3-master/src/views/comprehensiveEvaluation/components/cardList3.vue @@ -10,17 +10,17 @@
比赛名称
项目名称
层次
-
奖项数量
-
数量
+
奖项名称
+ -
-
国赛
-
全国高级计算机大赛
-
计算机比赛
-
高级
-
100
- -
76
+
+
{{ item.typeName }}
+
{{ item.pointName }}
+
{{ item.compName }}
+
{{ item.projectLevel }}
+
{{ item.awardName }}
+ +
@@ -34,6 +34,8 @@ type: Array, }, }); + console.log(props.data,'1121'); + let falg = false; const unfold = () => { const dom: any = document.querySelector('.foo_card3') as Element; diff --git a/jeecgboot-vue3-master/src/views/comprehensiveEvaluation/components/cardList4.vue b/jeecgboot-vue3-master/src/views/comprehensiveEvaluation/components/cardList4.vue index 6d530508..922a5b08 100644 --- a/jeecgboot-vue3-master/src/views/comprehensiveEvaluation/components/cardList4.vue +++ b/jeecgboot-vue3-master/src/views/comprehensiveEvaluation/components/cardList4.vue @@ -6,15 +6,15 @@
部门名称
-
参加比赛数
-
参加人数
-
队伍数
+
比赛总人数
+
个人赛人数
+
团队赛人数
-
-
机电学院
-
1212
-
1212
-
1212
+
+
{{ item.部门名称 }}
+
{{ item.比赛总人数 }}
+
{{ item.个人赛人数 }}
+
{{ item.团队赛人数 }}
diff --git a/jeecgboot-vue3-master/src/views/comprehensiveEvaluation/components/cardList5.vue b/jeecgboot-vue3-master/src/views/comprehensiveEvaluation/components/cardList5.vue index f4c678e8..d1fe01d0 100644 --- a/jeecgboot-vue3-master/src/views/comprehensiveEvaluation/components/cardList5.vue +++ b/jeecgboot-vue3-master/src/views/comprehensiveEvaluation/components/cardList5.vue @@ -10,7 +10,7 @@
积分
-
+
{{ index +1 }}
diff --git a/jeecgboot-vue3-master/src/views/comprehensiveEvaluation/components/cardList6.vue b/jeecgboot-vue3-master/src/views/comprehensiveEvaluation/components/cardList6.vue index 53be50a7..d06667bc 100644 --- a/jeecgboot-vue3-master/src/views/comprehensiveEvaluation/components/cardList6.vue +++ b/jeecgboot-vue3-master/src/views/comprehensiveEvaluation/components/cardList6.vue @@ -7,21 +7,21 @@
部门名称
-
获奖人数
-
一等奖
+
获奖人数
+
-
+
-
机电学院
-
1212
+
{{ i.部门名称 }}
+ +
{{ i.获取人数 }}
diff --git a/jeecgboot-vue3-master/src/views/comprehensiveEvaluation/components/cardList8.vue b/jeecgboot-vue3-master/src/views/comprehensiveEvaluation/components/cardList8.vue index de71698e..cabeb7ce 100644 --- a/jeecgboot-vue3-master/src/views/comprehensiveEvaluation/components/cardList8.vue +++ b/jeecgboot-vue3-master/src/views/comprehensiveEvaluation/components/cardList8.vue @@ -1,20 +1,26 @@