From 5a69a12f5a0807b1f4315f8901122fa9b5a57401 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B3=95=E6=8B=8951246?= <719602854@qq.com> Date: Mon, 9 Jun 2025 19:21:10 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E5=9B=BE=E6=A0=87=E4=B8=AD?= =?UTF-8?q?=E5=BF=83=E6=95=B0=E6=8D=AE=E5=AE=9E=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/Home/Index.vue | 17 +++- .../src/views/Home/components/PieChart.vue | 87 +++++++++---------- 2 files changed, 56 insertions(+), 48 deletions(-) diff --git a/yudao-ui/yudao-ui-admin-vue3/src/views/Home/Index.vue b/yudao-ui/yudao-ui-admin-vue3/src/views/Home/Index.vue index 9bf97b8..4f8005a 100644 --- a/yudao-ui/yudao-ui-admin-vue3/src/views/Home/Index.vue +++ b/yudao-ui/yudao-ui-admin-vue3/src/views/Home/Index.vue @@ -74,7 +74,7 @@
- +
- +
- +
- +
= ref([]) const homeInfoBfcplxzbqk: Ref = ref([]) const homeInfoBfztjVal = ref('拜访周统计') const homeInfoBfrtjVal = ref('拜访日统计') + +const homeInfoKhxzdjzbqkTotal: Ref = ref('') +const homeInfoKhbflxzbqkTotal: Ref = ref('') +const homeInfoKhbmzbqkTotal: Ref = ref('') +const homeInfoKhbffszbqkTotal: Ref = ref('') // 获取图表数据 const getEcharts = async () => { error.value = '' @@ -233,6 +238,7 @@ const getEcharts = async () => { item.name = `${item.name} ${allNumVal} ${ratio}` }) } + homeInfoKhxzdjzbqkTotal.value=res.total homeInfoKhxzdjzbqk.value = res.list console.log('客户性质等级占比:', res.list) }), @@ -257,6 +263,7 @@ const getEcharts = async () => { item.name = `${item.name} ${allNumVal} ${ratio}` }) } + homeInfoKhbffszbqkTotal.value=res.total homeInfoKhbffszbqk.value = res.list console.log('客户拜访方式占比:', res) }), @@ -276,6 +283,7 @@ const getEcharts = async () => { item.name = `${item.name} ${allNumVal} ${ratio}` }) } + homeInfoKhbmzbqkTotal.value=res.total homeInfoKhbmzbqk.value = res.list console.log('客户部门占比:', res) }), @@ -295,6 +303,7 @@ const getEcharts = async () => { item.name = `${item.name} ${allNumVal} ${ratio}` }) } + homeInfoKhbflxzbqkTotal.value=res.total homeInfoKhbflxzbqk.value = res.list console.log('客户拜访类型占比:', res) }), diff --git a/yudao-ui/yudao-ui-admin-vue3/src/views/Home/components/PieChart.vue b/yudao-ui/yudao-ui-admin-vue3/src/views/Home/components/PieChart.vue index d0222bd..87fe6c4 100644 --- a/yudao-ui/yudao-ui-admin-vue3/src/views/Home/components/PieChart.vue +++ b/yudao-ui/yudao-ui-admin-vue3/src/views/Home/components/PieChart.vue @@ -1,6 +1,6 @@