master
parent
5c7c8268a3
commit
5cb6cc9a22
|
@ -137,9 +137,14 @@
|
||||||
<span>负载率预测</span>
|
<span>负载率预测</span>
|
||||||
<div class="btns">
|
<div class="btns">
|
||||||
<div class="btnbg fs35" @click="handleClickPC">策略配置</div>
|
<div class="btnbg fs35" @click="handleClickPC">策略配置</div>
|
||||||
<div :class="`btnbg fs35 `" @click="haneleprogress">
|
<div
|
||||||
|
v-if="!send_Status"
|
||||||
|
:class="[btn_sendFlag ? '' : 'send_drp', `btnbg fs35 `]"
|
||||||
|
@click="haneleprogress"
|
||||||
|
>
|
||||||
下发指令
|
下发指令
|
||||||
</div>
|
</div>
|
||||||
|
<div v-else>发送中。。。</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -209,6 +214,8 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="infotitle"><span>已下发指令</span></div>
|
<div class="infotitle"><span>已下发指令</span></div>
|
||||||
|
|
||||||
|
<!-- <div ><span>已下发指令</span></div> -->
|
||||||
<div class="progress_info2">
|
<div class="progress_info2">
|
||||||
<el-carousel trigger="click" arrow="never">
|
<el-carousel trigger="click" arrow="never">
|
||||||
<el-carousel-item
|
<el-carousel-item
|
||||||
|
@ -515,23 +522,28 @@ let adjustContentFlag = ref(true);
|
||||||
// 点击下达指令 进入调节进度页面
|
// 点击下达指令 进入调节进度页面
|
||||||
let newAjustTableData = reactive<any>([]);
|
let newAjustTableData = reactive<any>([]);
|
||||||
|
|
||||||
|
let send_Status=ref(false);//发送中。。的状态
|
||||||
|
let btn_sendFlag = ref(false); //发送按钮的状态
|
||||||
|
|
||||||
const haneleprogress = () => {
|
const haneleprogress = () => {
|
||||||
// adjustContentFlag.value = false
|
send_Status.value=true//显示 div 为发送中
|
||||||
// progressContentFlag.value = true
|
if (btn_sendFlag.value === false) return; //根据flag变为禁用点击功能
|
||||||
console.log(newAjustTableData, "newAjustTableData2-2-2-");
|
alert(1);
|
||||||
|
btn_sendFlag.value = false; //按钮重新进入禁用状态
|
||||||
|
let res = Ajust_strategy as any;
|
||||||
|
console.log(res, "iiiii");
|
||||||
newAjustTableData.forEach((item) => {
|
newAjustTableData.forEach((item) => {
|
||||||
console.log(item, "item");
|
|
||||||
console.log(YMD,YMD+item.end_date, "item.start+item.end_date");
|
|
||||||
|
|
||||||
//循环发完配置中的可调资源
|
//循环发完配置中的可调资源
|
||||||
let inputdata = {
|
let inputdata = {
|
||||||
type: "FEEDER",
|
type:
|
||||||
mrId: "03DKX-555",
|
item.type === "充电桩" ? "ZLSQ" : item.type === "储能" ? "CN" : "V2G",
|
||||||
name: "555",
|
mrId: item.mrid,
|
||||||
startTime: "2024-07-05 00:00:00",
|
name: item.name,
|
||||||
endTime: "2024-07-05 00:00:10",
|
startTime: YMD.value + " " + item.start_date,
|
||||||
regulatedValue: "60",
|
endTime: YMD.value + " " + item.end_date,
|
||||||
|
regulatedValue: item.number,
|
||||||
};
|
};
|
||||||
|
|
||||||
strategyApi(inputdata)
|
strategyApi(inputdata)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
console.log(res, "邮箱");
|
console.log(res, "邮箱");
|
||||||
|
@ -543,21 +555,13 @@ const haneleprogress = () => {
|
||||||
type: "error",
|
type: "error",
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
// .finally(() => {
|
||||||
};
|
|
||||||
// const getstrategyDate = () => {
|
// });
|
||||||
// let inputdata = {
|
});
|
||||||
// type: "FEEDER",
|
// send_Status.value=false//隐藏 div 为发送中
|
||||||
// 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 {
|
interface TablepvDate {
|
||||||
index?: number;
|
index?: number;
|
||||||
name: string;
|
name: string;
|
||||||
|
@ -766,13 +770,14 @@ const handleCellEnter = (row: any, column: any, cell: any, event: any) => {
|
||||||
};
|
};
|
||||||
// 点击保存时修改成功并将结果传出去
|
// 点击保存时修改成功并将结果传出去
|
||||||
const handleSaveDate = (val: any) => {
|
const handleSaveDate = (val: any) => {
|
||||||
|
btn_sendFlag.value = true;
|
||||||
adjustFlag.value = false;
|
adjustFlag.value = false;
|
||||||
val.forEach((ite: any) => {
|
val.forEach((ite: any) => {
|
||||||
ite.isEdit = false; //所有的编辑状态全部为假
|
ite.isEdit = false; //所有的编辑状态全部为假
|
||||||
});
|
});
|
||||||
// 赋值给一个数组给下发指令的接口用
|
// 赋值给一个数组给下发指令的接口用
|
||||||
newAjustTableData = adjustTableData;
|
newAjustTableData = adjustTableData;
|
||||||
console.log(newAjustTableData, "newAjustTableData1-1-1-");
|
// console.log(newAjustTableData, "newAjustTableData1-1-1-");
|
||||||
};
|
};
|
||||||
|
|
||||||
// 点击
|
// 点击
|
||||||
|
@ -922,7 +927,9 @@ const styleVar = computed(() => {
|
||||||
);
|
);
|
||||||
mix-blend-mode: normal;
|
mix-blend-mode: normal;
|
||||||
border: 1px solid #00c2ff;
|
border: 1px solid #00c2ff;
|
||||||
width: changeHeight(190);
|
width: changeHeight(230);
|
||||||
|
// width: changeHeight(290);
|
||||||
|
|
||||||
height: changeHeight(50);
|
height: changeHeight(50);
|
||||||
line-height: changeHeight(50);
|
line-height: changeHeight(50);
|
||||||
}
|
}
|
||||||
|
@ -1261,7 +1268,7 @@ const styleVar = computed(() => {
|
||||||
.btns {
|
.btns {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
display: flex;
|
display: flex;
|
||||||
width: changeHeight(400);
|
width: changeHeight(550);
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1546,6 +1553,10 @@ const styleVar = computed(() => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.send_drp {
|
||||||
|
cursor: no-drop; //禁用状态
|
||||||
|
color: #cccccc;
|
||||||
|
}
|
||||||
.progress_info2 {
|
.progress_info2 {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
|
|
@ -1058,7 +1058,7 @@ const getStatInfo = async () => {
|
||||||
unit380lowarr.push(item); //220v数据
|
unit380lowarr.push(item); //220v数据
|
||||||
}
|
}
|
||||||
unit380lowarrLength.value =
|
unit380lowarrLength.value =
|
||||||
unit380lowarr[0]?.length + unit380lowarr[1]?.length; //380v及其以下长度
|
unit380lowarr[0]?.ratedS + unit380lowarr[1]?.ratedS; //380v及其以下kw
|
||||||
unit380lowarrCount.value =
|
unit380lowarrCount.value =
|
||||||
unit380lowarr[0]?.count + unit380lowarr[1]?.count; //380v及其以下户数
|
unit380lowarr[0]?.count + unit380lowarr[1]?.count; //380v及其以下户数
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue