From 2b3db8f8915908f05a276b3e6f78b36d308cf31e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cyu=E2=80=9D?= <“winebunny@163.com”> Date: Tue, 16 Jul 2024 23:23:59 +0800 Subject: [PATCH] qw --- src/views/pages/homePage/3Dechart2.vue | 16 +- src/views/pages/homePage/Treepie.vue | 524 +++++++++++++++++++++++++ src/views/pages/homePage/index.vue | 1 + 3 files changed, 534 insertions(+), 7 deletions(-) create mode 100644 src/views/pages/homePage/Treepie.vue diff --git a/src/views/pages/homePage/3Dechart2.vue b/src/views/pages/homePage/3Dechart2.vue index d14535a..0b5d878 100644 --- a/src/views/pages/homePage/3Dechart2.vue +++ b/src/views/pages/homePage/3Dechart2.vue @@ -180,30 +180,32 @@ export default { // 传入数据生成 option const optionsData = [ { - name: "充电桩", - value: 4256, + name: "35kV", + value: 3, itemStyle: { // opacity: 0.5, color: "rgba(102, 235, 287, 1)", }, }, { - name: "空调", - value: 2356, + name: "10kV", + value: 5, itemStyle: { // opacity: 0.5, color: "rgba(250, 179, 109, 1)", }, }, { - name: "微网", - value: 2018, + name: "0.4kV", + value: 393, itemStyle: { // opacity: 0.5, color: "rgba(1, 164,242, 1)", }, }, + ]; + const series = getPie3D(optionsData, 0.8, 240, 28, 26, 0.5); series.push({ name: "pie2d", @@ -357,6 +359,6 @@ export default { // width: 100%; // height: 300px; width: 150%; - height: 150%;; + height: 150%; } diff --git a/src/views/pages/homePage/Treepie.vue b/src/views/pages/homePage/Treepie.vue new file mode 100644 index 0000000..d5c25ef --- /dev/null +++ b/src/views/pages/homePage/Treepie.vue @@ -0,0 +1,524 @@ + + + + + + \ No newline at end of file diff --git a/src/views/pages/homePage/index.vue b/src/views/pages/homePage/index.vue index b97caf5..fb85d53 100644 --- a/src/views/pages/homePage/index.vue +++ b/src/views/pages/homePage/index.vue @@ -685,6 +685,7 @@ import load_echart from "./oneLine.vue"; import storage_echart from "./oneLine.vue"; import threeEchart from "./3Dechart.vue"; import threeEchart2 from "./3Dechart2.vue"; +import Treepie from "./Treepie.vue"; import runListenPage from "./runListenPage.vue";