“yu” 2024-07-17 00:10:35 +08:00
parent 3cf9f397c8
commit 186bfb9a78
5 changed files with 112 additions and 10 deletions

BIN
dist.zip Normal file

Binary file not shown.

View File

@ -44,5 +44,39 @@ export function usrzApi(data: any) {
data, data,
}); });
} }
// 西小站充电桩
export function usrz_55606Api(data: any) {
return request({
// url: "http://10.120.75.248:19081/algoService/feederPowerFlowResult",
// url: "http://127.0.0.1:19081/algoService/feederPowerFlowResult",
url: "/api/wwpm/biz/v1/gccr/gross_power_curve/charge_pipe",
method: "POST",
data,
});
}
// 西小站光伏
export function pv_55606Api(data: any) {
return request({
// url: "http://10.120.75.248:19081/algoService/feederPowerFlowResult",
// url: "http://127.0.0.1:19081/algoService/feederPowerFlowResult",
url: "/api/wwpm/biz/v1/gccr/gross_power_curve/photovoltaics",
method: "POST",
data,
});
}
// 西小站储能
export function batty_unit_55606Api(data: any) {
return request({
// url: "http://10.120.75.248:19081/algoService/feederPowerFlowResult",
// url: "http://127.0.0.1:19081/algoService/feederPowerFlowResult",
url: "/api/wwpm/biz/v1/gccr/gross_power_curve/battery_unit",
method: "POST",
data,
});
}

View File

@ -412,7 +412,15 @@ import OpticalStorageSVG from "@/assets/json/OpticalStorageSVG.js";
import "@svgdotjs/svg.panzoom.js"; import "@svgdotjs/svg.panzoom.js";
import "echarts/lib/component/dataZoom"; import "echarts/lib/component/dataZoom";
import loadingPage from "@/views/commonPage/loading.vue"; import loadingPage from "@/views/commonPage/loading.vue";
import { buttyApi, svgdApi, pvApi, usrzApi } from "@/api/Osp/svgApi"; import {
buttyApi,
svgdApi,
pvApi,
usrzApi,
pv_55606Api,
usrz_55606Api,
batty_unit_55606Api,
} from "@/api/Osp/svgApi";
import { import {
SVG, SVG,
extend as SVGextend, extend as SVGextend,
@ -532,6 +540,7 @@ const handleAreaLoad = () => {
// //
let battyArr = reactive([]); // let battyArr = reactive([]); //
let pvArr = reactive([]); // let pvArr = reactive([]); //
let userzArr = reactive([]); // let userzArr = reactive([]); //
@ -539,7 +548,7 @@ let battyArrFlag = ref<boolean>(false);
let pvArrFlag = ref<boolean>(false); let pvArrFlag = ref<boolean>(false);
let userzFlag = ref<boolean>(false); let userzFlag = ref<boolean>(false);
const getpv = () => { const getpv = () => {
pvApi({ orgID: "8af8470a47aad8e20147aad92e400335" }).then((res) => { pv_55606Api({}).then((res) => {
console.log(res, "respv"); console.log(res, "respv");
console.log("1----------", res); console.log("1----------", res);
@ -553,7 +562,7 @@ const getpv = () => {
}); });
}; };
const getuser = () => { const getuser = () => {
usrzApi({ mrid: "03DKX-24289" }).then((res) => { usrz_55606Api({}).then((res) => {
// userzArr = res.data; // userzArr = res.data;
userzArr = handleEchartsData_timeStamp_p(res.data, 60); userzArr = handleEchartsData_timeStamp_p(res.data, 60);
@ -563,7 +572,7 @@ const getuser = () => {
}); });
}; };
const getbatrry = () => { const getbatrry = () => {
buttyApi({}).then((res) => { batty_unit_55606Api({}).then((res) => {
console.log(res, "ssss"); console.log(res, "ssss");
// battyArr = res.data; // battyArr = res.data;
battyArr = handleEchartsData_timeStamp_p(res.data, 60); battyArr = handleEchartsData_timeStamp_p(res.data, 60);
@ -838,7 +847,7 @@ let handleShowSvg = async (svgIndex: string) => {
nextTick(() => { nextTick(() => {
handleAnimate(result); handleAnimate(result);
}); });
}, 300); }, 3000);
// ---------线svg // ---------线svg
function fun(svgHtml: any) { function fun(svgHtml: any) {

View File

@ -14,10 +14,12 @@ import {
import transformFontSize from "@/hooks/transFormSize.ts"; import transformFontSize from "@/hooks/transFormSize.ts";
import "echarts/lib/component/dataZoom"; import "echarts/lib/component/dataZoom";
onMounted(() => { onMounted(() => {
drawOneLine(props.echartArr); drawOneLine(props.echartArr,props.echartArr_u,props.echartArr_i);
}); });
const props = defineProps<{ const props = defineProps<{
echartArr: any[]; echartArr: any[];
echartArr_u:any[];
echartArr_i:any[];
}>(); }>();
// echartDOM // echartDOM
@ -26,7 +28,7 @@ const OneLine: any = ref();
// //
const { proxy }: any = getCurrentInstance(); const { proxy }: any = getCurrentInstance();
const drawOneLine = (arr: any) => { const drawOneLine = (arr: any,arr_u:any,arr_i:any) => {
console.log(arr, "储能的曲线222"); console.log(arr, "储能的曲线222");
let myChart = proxy.$echarts.init(OneLine.value); let myChart = proxy.$echarts.init(OneLine.value);
@ -70,7 +72,7 @@ const drawOneLine = (arr: any) => {
top: "0%", top: "0%",
right: "5%", right: "5%",
orient: "vertical", orient: "vertical",
data: ["总功率"], data: ["总功率","电压","电流"],
itemWidth: transformFontSize(40), itemWidth: transformFontSize(40),
itemHeight: transformFontSize(18), itemHeight: transformFontSize(18),
itemGap: transformFontSize(8), itemGap: transformFontSize(8),
@ -136,6 +138,34 @@ const drawOneLine = (arr: any) => {
barWidth: 2, // barWidth: 2, //
smooth: true, smooth: true,
showSymbol: false, showSymbol: false,
itemStyle: {
color: "rgba(0, 252, 255,1)",
},
areaStyle: {
normal: {
color: new proxy.$echarts.graphic.LinearGradient(0, 0, 0, 1, [
{
offset: 0,
color: "rgba(0, 252, 255, 0.4)",
},
{
offset: 1,
color: "rgba(0, 252, 255,0.01)",
},
]),
},
},
// data: [20, 42, 41, 24, 40, 30, 10],
data: arr.map((yitem) => yitem.p),
},
{
name: "电压",
type: "line",
barWidth: 2, //
smooth: true,
showSymbol: false,
itemStyle: { itemStyle: {
color: "rgba(248, 153, 21,1)", color: "rgba(248, 153, 21,1)",
}, },
@ -156,7 +186,35 @@ const drawOneLine = (arr: any) => {
}, },
}, },
// data: [20, 42, 41, 24, 40, 30, 10], // data: [20, 42, 41, 24, 40, 30, 10],
data: arr.map((yitem) => yitem.p), data: arr.map((yitem) => yitem.u),
},
{
name: "电流",
type: "line",
barWidth: 2, //
smooth: true,
showSymbol: false,
itemStyle: {
color: "rgba(107, 255, 210,1)",
},
areaStyle: {
normal: {
color: new proxy.$echarts.graphic.LinearGradient(0, 0, 0, 1, [
{
offset: 0,
color: "rgba(107, 255, 210, 0.4)",
},
{
offset: 1,
color: "rgba(107, 255, 210, 0.01)",
},
]),
},
},
// data: [20, 42, 41, 24, 40, 30, 10],
data: arr.map((yitem) => yitem.i),
}, },
], ],
}; };

View File

@ -49,7 +49,8 @@
<div class="total_load_3dEchart"> <div class="total_load_3dEchart">
<div class="title_load fs40">负荷户数比例</div> <div class="title_load fs40">负荷户数比例</div>
<div class="echarts"> <div class="echarts">
<threeEchart2></threeEchart2> <!-- <Treepie ></Treepie> -->
<Treepie v-if="show" :threeDPieData="leftData.threeDPieData"></Treepie>
</div> </div>
<!-- <threeDPie :threeDPieData="leftData.threeDPieData"></threeDPie> --> <!-- <threeDPie :threeDPieData="leftData.threeDPieData"></threeDPie> -->