“yu” 2024-07-14 15:24:01 +08:00
parent 9f49493d83
commit 5c7c8268a3
2 changed files with 76 additions and 48 deletions

View File

@ -50,4 +50,8 @@ export function strategyApi(data: any) {
}
// 全部的能量调节页面的接口

View File

@ -120,7 +120,11 @@
</div>
<div class="infotitle"><span>当前负载率</span></div>
<div class="info2">
<rateLine :rateDate="rateDate_cur" :keysv="key2" v-if="treeAreaId"></rateLine>
<rateLine
:rateDate="rateDate_cur"
:keysv="key2"
v-if="treeAreaId"
></rateLine>
</div>
<div class="infotitle_box">
<div class="infotitle_short">
@ -368,17 +372,15 @@ import { ITEM_RENDER_EVT } from "element-plus/es/components/virtual-list/src/def
// });
onMounted(() => {
// getstrategyDate() //
// let result = await loadRateApi({});
// console.log(result, "");
});
let treeAreaId=ref('')//id
let treeAreaId = ref(""); //id
// id treeKeyid
const getTreeKey = (treeKey: any) => {
getTreeSourceList(treeKey); // id
treeAreaId=treeKey//id
treeAreaId = treeKey; //id
// console.log(treeAreaId,'treeAreaId----------------------');
getRateDate(treeKey); // id
};
@ -450,13 +452,15 @@ const getRateDate = (treeAreaId:string) => {
// console.log(treeAreaId, treeAreaId.value,"treeAreaId==========");
// setInterval(() => {
loadRateApi({mrid:treeAreaId,orgID:"8af8470a47aad8e20147aad92e400335",}).then((res)=>{
loadRateApi({
mrid: treeAreaId,
orgID: "8af8470a47aad8e20147aad92e400335",
}).then((res) => {
console.log(res, "res");
if (res?.data.result.length) {
rateDate_cur=res?.data.result
rateDate_cur = res?.data.result;
// console.log(res, "res");
} else {
ElMessage({
showClose: true,
@ -464,7 +468,7 @@ const getRateDate = (treeAreaId:string) => {
type: "error",
});
}
})
});
// let rateDate = rateJSONData as any;
// console.log(rateDate, "15");
@ -509,11 +513,51 @@ let sourceAjustObj = reactive<any>({});
// -
let adjustContentFlag = ref(true);
//
let newAjustTableData = reactive<any>([]);
const haneleprogress = () => {
// adjustContentFlag.value = false
// progressContentFlag.value = true
console.log(adjustTableData, "adjustTableData");
console.log(newAjustTableData, "newAjustTableData2-2-2-");
newAjustTableData.forEach((item) => {
console.log(item, "item");
console.log(YMD,YMD+item.end_date, "item.start+item.end_date");
//
let inputdata = {
type: "FEEDER",
mrId: "03DKX-555",
name: "555",
startTime: "2024-07-05 00:00:00",
endTime: "2024-07-05 00:00:10",
regulatedValue: "60",
};
strategyApi(inputdata)
.then((res) => {
console.log(res, "邮箱");
})
.catch((error) => {
ElMessage({
showClose: true,
message: `接口服务正在计算中${error}`,
type: "error",
});
});
});
};
// const getstrategyDate = () => {
// let inputdata = {
// type: "FEEDER",
// mrId: "03DKX-555",
// name: "555",
// startTime: "2024-07-05 00:00:00",
// endTime: "2024-07-05 00:00:10",
// regulatedValue: "60",
// };
// let res = Ajust_strategy as any;
// console.log(res, "iiiii");
// };
interface TablepvDate {
index?: number;
name: string;
@ -715,30 +759,6 @@ let handleClickPC = () => {
console.log(newData, "newData");
adjustTableData = newData;
};
const getstrategyDate = () => {
let inputdata = {
type: "FEEDER",
mrId: "03DKX-555",
name: "555",
startTime: "2024-07-05 00:00:00",
endTime: "2024-07-05 00:00:10",
regulatedValue: "60",
};
// strategyApi(inputdata)
// .then((res) => {
// console.log(res, "");
// })
// .catch((error) => {
// ElMessage({
// showClose: true,
// message: `${error}`,
// type: "error",
// });
// });
let res = Ajust_strategy as any;
console.log(res, "iiiii");
};
/** 鼠标移入cell */
const handleCellEnter = (row: any, column: any, cell: any, event: any) => {
@ -750,7 +770,11 @@ const handleSaveDate = (val: any) => {
val.forEach((ite: any) => {
ite.isEdit = false; //
});
//
newAjustTableData = adjustTableData;
console.log(newAjustTableData, "newAjustTableData1-1-1-");
};
//
//
const getStart_time = () => {};