“yu” 2024-07-17 09:55:47 +08:00
parent 3ed21681f0
commit 2402fb4d81
3 changed files with 566 additions and 554 deletions

BIN
dist.zip

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@ -49,10 +49,10 @@
<div class="total_load_3dEchart">
<div class="title_load fs40">负荷户数比例</div>
<div class="echarts">
<!-- <Threepie
<Threepie
v-if="show"
:threeDPieData="leftData.threeDPieData"
></Threepie> -->
></Threepie>
</div>
</div>
</div>
@ -163,12 +163,12 @@
<p>可调负荷</p>
</div>
<div class="total_load_3dEchart">
<div class="title_load fs40">负荷户数比例</div>
<div class="title_load fs40">充电桩户数比例</div>
<div class="echarts">
<!-- <Threepie
v-if="show"
:threeDPieData="leftData.threeDPieData1"
></Threepie> -->
<Threepie
v-if="show"
:threeDPieData="leftData.threeDPieData1"
></Threepie>
</div>
<!-- <threeDPie :threeDPieData="leftData.threeDPieData"></threeDPie> -->
@ -1073,12 +1073,12 @@ const getStatInfo = async () => {
//
//
interface leftDataInfo {
businessValue: string,
residentValue: string,
tableData: tableInfo1[][]
tableData1: tableInfo1[][],
threeDPieData: any
threeDPieData1:any
businessValue: string;
residentValue: string;
tableData: tableInfo1[][];
tableData1: tableInfo1[][];
threeDPieData: any;
threeDPieData1: any;
}
interface tableInfo1 {
index: string;
@ -1089,113 +1089,106 @@ interface tableInfo1 {
}
let show = ref(true);
let leftData = reactive<leftDataInfo>({
businessValue: '0',
residentValue: '0',
businessValue: "0",
residentValue: "0",
tableData: [],
tableData1: [],
// 3d
threeDPieData: {
pieData: [
{
name: "谷段", //
value: 10, //
name: "35kV", //
value: 3, //
itemStyle: {
color: "#EE5944",//
color: "#EE5944", // 232 158 205
// color: "rgba(250,189,101,.8)",// 232 158 205
},
},
{
name: "高峰",
value: 20,
itemStyle: {
color: "#2E53F5",
},
},
{
name: "尖峰",
value: 40,
name: "10kV",
value: 5,
itemStyle: {
// color: "#2E53F5",
color: "#F1BA50",
},
},
{
name: "平段",
value: 40,
name: "0.4kV",
value: 393,
itemStyle: {
color: "#6FFBF7",
// color: "#F1BA50",
color: "#2E53F5",
},
}
},
],
total: 108,
center: 0.9, //
center: 0.85, //
legend: {
show:false,
orient: 'horizontal',
left: 'center',
top: '-3%',
itemGap: 20
// show:false,
orient: "horizontal",
show: false,
left: "center",
top: "10%",
itemGap: 1990,
},
grid3D: {
viewControl: {
distance: 350, //
alpha: 45, //
}
distance: 250, //
alpha: 45, //
},
},
// radius: ["40%", "40%"],
// center: ["50%", "50%"],
getHeight3D: 40, //
getHeight3D: 20, //
},
// 3d1
threeDPieData1: {
pieData: [
{
name: "谷段", //
name: "居民充电桩", //
value: 10, //
itemStyle: {
color: "#EE5944",//
color: "#EE5944", // 232 158 205
// color: "rgba(250,189,101,.8)",// 232 158 205
},
},
{
name: "高峰",
name: "商业充电桩",
value: 20,
itemStyle: {
color: "#2E53F5",
},
},
{
name: "尖峰",
name: "V2G充电桩",
value: 40,
itemStyle: {
color: "#F1BA50",
},
},
{
name: "平段",
value: 40,
itemStyle: {
color: "#6FFBF7",
},
}
],
total: 108,
center: 0.9, //
center: 0.85, //
legend: {
// show:false,
show: false, //
tooltip: {
show: true,
},
orient: "horizontal",
orient: 'horizontal',
left: 'center',
top: '-30%',
itemGap: 20
left: "center",
top: "2%",
itemGap: 1990,
},
grid3D: {
viewControl: {
distance: 350, //
alpha: 45, //
}
distance: 250, //
alpha: 35, //
},
},
// radius: ["40%", "40%"],
// center: ["50%", "50%"],
getHeight3D: 40, //
}
})
getHeight3D: 30, //
},
});
//
//
let networkContentFlag = ref(true);
@ -1870,6 +1863,12 @@ const styleVar = computed(() => {
top: changeHeight(-20);
width: changeWidth(506.97);
height: changeHeight(325.41);
left: changeHeight(-200);
top: changeHeight(-120);
width: changeWidth(506.97);
height: changeHeight(325.41);
width: changeWidth(1006.97);
height: changeHeight(625.41);
}
}
}
@ -1995,10 +1994,12 @@ const styleVar = computed(() => {
}
.echarts {
position: absolute;
left: changeHeight(-100);
top: changeHeight(-20);
left: changeHeight(-220);
top: changeHeight(-120);
width: changeWidth(506.97);
height: changeHeight(325.41);
width: changeWidth(1006.97);
height: changeHeight(625.41);
}
}
}