Compare commits
No commits in common. "2b3dfc5034ed44dcfbf34bce4051adf475fcc6b3" and "d6fa074348d5d29043b154f986ca07e76526ac94" have entirely different histories.
2b3dfc5034
...
d6fa074348
|
@ -14,7 +14,6 @@ export function svgdApi(data: any) {
|
|||
data,
|
||||
});
|
||||
}
|
||||
// osp页面 储能曲线
|
||||
export function buttyApi(data: any) {
|
||||
return request({
|
||||
// url: "http://10.120.75.248:19081/algoService/feederPowerFlowResult",
|
||||
|
@ -24,25 +23,5 @@ export function buttyApi(data: any) {
|
|||
data,
|
||||
});
|
||||
}
|
||||
// osp页面 光伏曲线
|
||||
export function pvApi(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/photo_voltaic/power_curve",
|
||||
method: "POST",
|
||||
data,
|
||||
});
|
||||
}
|
||||
// osp页面 用户侧充电桩曲线
|
||||
export function usrzApi(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/deweller_pipe/power_curve",
|
||||
method: "POST",
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -14,18 +14,16 @@
|
|||
import transformFontSize from "@/hooks/transFormSize.ts";
|
||||
import "echarts/lib/component/dataZoom";
|
||||
onMounted(() => {
|
||||
drawOneLine(props.echartArr);
|
||||
drawOneLine();
|
||||
});
|
||||
const props = defineProps<{
|
||||
echartArr: any[];
|
||||
}>();
|
||||
|
||||
// 获取echart挂载的DOM节点
|
||||
const OneLine: any = ref();
|
||||
|
||||
// 获取当前组件实例
|
||||
const { proxy }: any = getCurrentInstance();
|
||||
|
||||
const drawOneLine = (arr: any) => {
|
||||
const drawOneLine = () => {
|
||||
let myChart = proxy.$echarts.init(OneLine.value);
|
||||
|
||||
myChart.clear();
|
||||
|
@ -97,8 +95,7 @@
|
|||
// return param.split(' ')[1].split(':')[0] + ':' + param.split(' ')[1].split(':')[1]
|
||||
// },
|
||||
},
|
||||
// data: ["03:00", "06:00", "09:00", "12:00", "15:00", "18:00", "24:00"],
|
||||
data: arr.map((rtime) => rtime?.timeStamp.slice(-5)),
|
||||
data: ["03:00", "06:00", "09:00", "12:00", "15:00", "18:00", "24:00"],
|
||||
|
||||
},
|
||||
yAxis: {
|
||||
|
@ -152,9 +149,7 @@
|
|||
]),
|
||||
},
|
||||
},
|
||||
data: arr.map((yitem) => yitem.p),
|
||||
|
||||
// data: [20, 42, 41, 24, 40, 30, 10],
|
||||
data: [20, 42, 41, 24, 40, 30, 10],
|
||||
},
|
||||
],
|
||||
};
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -14,11 +14,8 @@ import {
|
|||
import transformFontSize from "@/hooks/transFormSize.ts";
|
||||
import "echarts/lib/component/dataZoom";
|
||||
onMounted(() => {
|
||||
drawOneLine(props.echartArr);
|
||||
drawOneLine();
|
||||
});
|
||||
const props = defineProps<{
|
||||
echartArr: any[];
|
||||
}>();
|
||||
|
||||
// 获取echart挂载的DOM节点
|
||||
const OneLine: any = ref();
|
||||
|
@ -26,7 +23,7 @@ const OneLine: any = ref();
|
|||
// 获取当前组件实例
|
||||
const { proxy }: any = getCurrentInstance();
|
||||
|
||||
const drawOneLine = (arr: any) => {
|
||||
const drawOneLine = () => {
|
||||
let myChart = proxy.$echarts.init(OneLine.value);
|
||||
|
||||
myChart.clear();
|
||||
|
@ -68,7 +65,7 @@ const drawOneLine = (arr: any) => {
|
|||
top: "0%",
|
||||
right: "5%",
|
||||
orient: "vertical",
|
||||
data: ["总功率"],
|
||||
data: ["总功率",],
|
||||
itemWidth: transformFontSize(40),
|
||||
itemHeight: transformFontSize(18),
|
||||
itemGap:transformFontSize(8),
|
||||
|
@ -98,8 +95,8 @@ const drawOneLine = (arr: any) => {
|
|||
// return param.split(' ')[1].split(':')[0] + ':' + param.split(' ')[1].split(':')[1]
|
||||
// },
|
||||
},
|
||||
// data: ["03:00", "06:00", "09:00", "12:00", "15:00", "18:00", "24:00"],
|
||||
data: arr.map((rtime) => rtime?.timeStamp.slice(-5)),
|
||||
data: ["03:00", "06:00", "09:00", "12:00", "15:00", "18:00", "24:00"],
|
||||
|
||||
},
|
||||
yAxis: {
|
||||
splitLine: {
|
||||
|
@ -152,8 +149,7 @@ const drawOneLine = (arr: any) => {
|
|||
]),
|
||||
},
|
||||
},
|
||||
// data: [20, 42, 41, 24, 40, 30, 10],
|
||||
data: arr.map((yitem) => yitem.p),
|
||||
data: [20, 42, 41, 24, 40, 30, 10],
|
||||
},
|
||||
],
|
||||
};
|
||||
|
@ -172,3 +168,4 @@ const drawOneLine = (arr: any) => {
|
|||
width: 100%;
|
||||
}
|
||||
</style>
|
||||
|
Loading…
Reference in New Issue