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 9bf97b830e04c607663da4fe0496a9b9f54bc9c7..4f8005ad21eba30314aeac563dbcd4b07f92a601 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 d0222bdbca11b2969b8bcf7b0ae5d6159244742a..87fe6c49d8f213c3a755021783623b0519a9945e 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 @@