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> <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;

View File

@ -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; //380vkw
unit380lowarrCount.value = unit380lowarrCount.value =
unit380lowarr[0]?.count + unit380lowarr[1]?.count; //380v unit380lowarr[0]?.count + unit380lowarr[1]?.count; //380v
} }