Compare commits

...

2 Commits

Author SHA1 Message Date
“yu” e685cad683 Merge branch 'master' of http://58.87.70.254/zhaoqiang/v3tianjin 2024-07-14 16:56:54 +08:00
“yu” 5cb6cc9a22 u 2024-07-14 16:56:51 +08:00
2 changed files with 42 additions and 31 deletions

View File

@ -137,9 +137,14 @@
<span>负载率预测</span>
<div class="btns">
<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 v-else></div>
</div>
</div>
</div>
@ -209,6 +214,8 @@
</div>
</div>
<div class="infotitle"><span>已下发指令</span></div>
<!-- <div ><span>已下发指令</span></div> -->
<div class="progress_info2">
<el-carousel trigger="click" arrow="never">
<el-carousel-item
@ -515,23 +522,28 @@ let adjustContentFlag = ref(true);
//
let newAjustTableData = reactive<any>([]);
const haneleprogress = () => {
// adjustContentFlag.value = false
// progressContentFlag.value = true
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 send_Status=ref(false);//
let btn_sendFlag = ref(false); //
const haneleprogress = () => {
send_Status.value=true// div
if (btn_sendFlag.value === false) return; //flag
alert(1);
btn_sendFlag.value = false; //
let res = Ajust_strategy as any;
console.log(res, "iiiii");
newAjustTableData.forEach((item) => {
//
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",
type:
item.type === "充电桩" ? "ZLSQ" : item.type === "储能" ? "CN" : "V2G",
mrId: item.mrid,
name: item.name,
startTime: YMD.value + " " + item.start_date,
endTime: YMD.value + " " + item.end_date,
regulatedValue: item.number,
};
strategyApi(inputdata)
.then((res) => {
console.log(res, "邮箱");
@ -543,21 +555,13 @@ const haneleprogress = () => {
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",
// };
// .finally(() => {
// });
});
// send_Status.value=false// div
};
// let res = Ajust_strategy as any;
// console.log(res, "iiiii");
// };
interface TablepvDate {
index?: number;
name: string;
@ -766,13 +770,14 @@ const handleCellEnter = (row: any, column: any, cell: any, event: any) => {
};
//
const handleSaveDate = (val: any) => {
btn_sendFlag.value = true;
adjustFlag.value = false;
val.forEach((ite: any) => {
ite.isEdit = false; //
});
//
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;
border: 1px solid #00c2ff;
width: changeHeight(190);
width: changeHeight(230);
// width: changeHeight(290);
height: changeHeight(50);
line-height: changeHeight(50);
}
@ -1261,7 +1268,7 @@ const styleVar = computed(() => {
.btns {
cursor: pointer;
display: flex;
width: changeHeight(400);
width: changeHeight(550);
justify-content: space-between;
}
}
@ -1546,6 +1553,10 @@ const styleVar = computed(() => {
}
}
}
.send_drp {
cursor: no-drop; //
color: #cccccc;
}
.progress_info2 {
width: 100%;
box-sizing: border-box;

View File

@ -1058,7 +1058,7 @@ const getStatInfo = async () => {
unit380lowarr.push(item); //220v
}
unit380lowarrLength.value =
unit380lowarr[0]?.length + unit380lowarr[1]?.length; //380v
unit380lowarr[0]?.ratedS + unit380lowarr[1]?.ratedS; //380vkw
unit380lowarrCount.value =
unit380lowarr[0]?.count + unit380lowarr[1]?.count; //380v
}