diff --git a/dist (2).zip b/dist (2).zip
new file mode 100644
index 0000000..a99e95e
Binary files /dev/null and b/dist (2).zip differ
diff --git a/src/api/ajust/ajust.ts b/src/api/ajust/ajust.ts
index de378ef..df6e6b4 100644
--- a/src/api/ajust/ajust.ts
+++ b/src/api/ajust/ajust.ts
@@ -6,7 +6,7 @@ interface idInfo {
}
-// 设备树 0 一级服务
+
// 全部的能量调节页面的接口-统计可调资源
export function sourcInfoApi(data: any) {
return request({
@@ -15,4 +15,13 @@ export function sourcInfoApi(data: any) {
data
})
}
+// 负载率预测
+export function forceRateApi(data: any) {
+ return request({
+ url: '/api/wwpm/biz/v1/load_rate_forecast',
+ method: 'POST',
+ data
+ })
+}
+
diff --git a/src/views/pages/CapacityAdjustmentPage/index.vue b/src/views/pages/CapacityAdjustmentPage/index.vue
index fa3565d..0e512f3 100644
--- a/src/views/pages/CapacityAdjustmentPage/index.vue
+++ b/src/views/pages/CapacityAdjustmentPage/index.vue
@@ -153,10 +153,8 @@
@@ -216,6 +214,7 @@
:rateDate="rateDate_cur"
:keysv="keyechart"
v-if="rateDate_curFlag"
+ :key="refreshkey"
>
+ 11
@@ -474,9 +476,10 @@ import { number } from "echarts";
import rateJSONData from "@/assets/json/Ajust_rate.json";
import ajustsource from "@/assets/json/Ajustsoure.json";
import Ajust_strategy from "@/assets/json/Ajust_strategy.json";
-import { sourcInfoApi } from "@/api/ajust/ajust.ts";
+import { sourcInfoApi, forceRateApi } from "@/api/ajust/ajust.ts";
import { getSourceMapRange } from "typescript";
import { ITEM_RENDER_EVT } from "element-plus/es/components/virtual-list/src/defaults.mjs";
+import { deflateRawSync } from "zlib";
// onMounted(async () => {
// getRateDate(); //获取负载率
@@ -502,7 +505,7 @@ const getAllSourceAjust = () => {
sourcInfoApi(datainput).then((res) => {
// handelSourceTable(res.data);
// tablepvData.value=res?.data
- let counts=res.data
+ let counts = res.data;
for (const [type, count] of Object.entries(counts)) {
const item = sourceLArr.find((item) => item.type === type);
if (item) {
@@ -524,9 +527,10 @@ const getAllSourceAjust_Line = (mrid: string) => {
});
};
-let treeAreaId = ref(""); //点击设备树二级服务获取的台区id去获取台区负载率
+let treeNodeKey = ref(""); //点击设备树二级服务获取的台区id去获取台区负载率
// 设备树传来的设备树节点id treeNode是节点数据
const getTreeKey = (treeNode: any) => {
+ treeNodeKey.value = treeNode.key; //线路的id
allFlag.value = false;
if (treeNode.level === 3) {
console.log(treeNode.level, "3");
@@ -607,7 +611,11 @@ let keyechart = ref