“yu” 2024-07-18 00:09:03 +08:00
parent 22574db714
commit f924c18301
5 changed files with 87 additions and 55 deletions

11
components.d.ts vendored
View File

@ -7,12 +7,23 @@ export {}
/* prettier-ignore */ /* prettier-ignore */
declare module 'vue' { declare module 'vue' {
export interface GlobalComponents { export interface GlobalComponents {
ElButton: typeof import('element-plus/es')['ElButton']
ElCarousel: typeof import('element-plus/es')['ElCarousel']
ElCarouselItem: typeof import('element-plus/es')['ElCarouselItem']
ElCol: typeof import('element-plus/es')['ElCol']
ElDatePicker: typeof import('element-plus/es')['ElDatePicker']
ElForm: typeof import('element-plus/es')['ElForm']
ElFormItem: typeof import('element-plus/es')['ElFormItem']
ElInput: typeof import('element-plus/es')['ElInput']
ElOption: typeof import('element-plus/es')['ElOption'] ElOption: typeof import('element-plus/es')['ElOption']
ElPagination: typeof import('element-plus/es')['ElPagination'] ElPagination: typeof import('element-plus/es')['ElPagination']
ElPopover: typeof import('element-plus/es')['ElPopover'] ElPopover: typeof import('element-plus/es')['ElPopover']
ElRadio: typeof import('element-plus/es')['ElRadio']
ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup']
ElSelect: typeof import('element-plus/es')['ElSelect'] ElSelect: typeof import('element-plus/es')['ElSelect']
ElTable: typeof import('element-plus/es')['ElTable'] ElTable: typeof import('element-plus/es')['ElTable']
ElTableColumn: typeof import('element-plus/es')['ElTableColumn'] ElTableColumn: typeof import('element-plus/es')['ElTableColumn']
ElTimeSelect: typeof import('element-plus/es')['ElTimeSelect']
RouterLink: typeof import('vue-router')['RouterLink'] RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView'] RouterView: typeof import('vue-router')['RouterView']
} }

View File

@ -161,7 +161,7 @@ let handelColumnEcharts = () => {
itemGap: props.threeDPieData.legend.itemGap, itemGap: props.threeDPieData.legend.itemGap,
show: false, // show: false, //
tooltip: { tooltip: {
show: true, show: false,
}, },
icon: "rect", icon: "rect",
itemHeight: 10, itemHeight: 10,

View File

@ -530,10 +530,12 @@ const getAllSourceAjust_Line = (mrid: string) => {
}; };
let treeNodeKey = ref(""); //id let treeNodeKey = ref(""); //id
let treeNodes = ref("");
// id treeNode // id treeNode
const getTreeKey = (treeNode: any) => { const getTreeKey = (treeNode: any) => {
rateDate_willFlag.value=false rateDate_willFlag.value = false;
treeNodeKey.value = treeNode.key; //线id treeNodeKey.value = treeNode.key; //线id
treeNodes.value = treeNode;
boxbtnFlag.value = "1"; // boxbtnFlag.value = "1"; //
allFlag.value = false; allFlag.value = false;
if (treeNode.level === 3) { if (treeNode.level === 3) {
@ -708,54 +710,62 @@ let send_Status = ref(false); //发送中。。的状态
let btn_sendFlag = ref(false); // let btn_sendFlag = ref(false); //
const haneleprogress = () => { const haneleprogress = () => {
send_Status.value = true; // div send_Status.value = true; // div
if (btn_sendFlag.value === false) return; //flag if (btn_sendFlag.value === false) return; //flag
btn_sendFlag.value = false; // btn_sendFlag.value = false; //
// -------线 // -------线
let res = Ajust_strategy as any; // let res = Ajust_strategy as any;
console.log(res, "iiiii"); // console.log(res, "iiiii");
setTimeout(() => { // setTimeout(() => {
ElMessage({ // ElMessage({
showClose: true, // showClose: true,
message: "指令下发成功", // message: "",
type: "success", // type: "success",
}); // });
}, 3000); // }, 3000);
// -------线 // -------线
// --------线 // --------线
// newAjustTableData.forEach((item) => { newAjustTableData.forEach((item) => {
// // // let wei_id=item.mrid
// let inputdata = {
// 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) => { let inputdata = {
// console.log(res, res?.msg, ""); type:
item.type === "充电桩"
? "ZLSQ"
: item.type === "储能"
? "CN"
: item.type === "光伏"
? "GF"
: "V2G",
mrId: item.mrid.replace("@", ""),
name: item.name,
startTime: YMD.value + " " + item.start_date,
endTime: YMD.value + " " + item.end_date,
regulatedValue: item.number,
};
// ElMessage({ strategyApi(inputdata)
// message: res?.msg, .then((res) => {
// type: "success", console.log(res, res?.msg, "邮箱");
// plain: true, setTimeout(() => {
// }); ElMessage({
// }) message: res?.msg,
// .catch((error) => { type: "success",
// ElMessage({ plain: true,
// showClose: true, });
// message: "", }, 3000);
// type: "success", })
// }); .catch((error) => {
// }); // ElMessage({
// }); // showClose: true,
// message: "",
// type: "success",
// });
});
});
// --------线 // --------线
setTimeout(() => { setTimeout(() => {
@ -786,9 +796,13 @@ const changeSourceInfo = (val: string) => {
if (val === "1") { if (val === "1") {
// //
getTreeSourceList(treeNodeKey.value); console.log(treeNodes.value.level, "1-------------");
// tablepvData= if (treeNodes.value.level === 3) {
getAllSourceAjust_Line(treeNodeKey.value);
} else if (treeNodes.value.level === 4) {
getTreeSourceList(treeNodeKey.value);
}
} else { } else {
// //
// console.log(tableInfo.tablepvData, "222222"); // console.log(tableInfo.tablepvData, "222222");
@ -1004,10 +1018,16 @@ const handleCellEnter = (row: any, column: any, cell: any, event: any) => {
// //
const handleSaveDate = () => { const handleSaveDate = () => {
btn_sendFlag.value = true; btn_sendFlag.value = true;
adjustFlag.value = false; adjustFlag.value = true;
adjustTableData.forEach((ite: any) => { adjustTableData.forEach((ite: any) => {
ite.isEdit = false; // ite.isEdit = false; //
if (ite.number === 0) {
ElMessage.error("请输入调能数量");
adjustFlag.value = true;
} else {
adjustFlag.value = false;
}
}); });
console.log(adjustTableData, "adjustTableData"); console.log(adjustTableData, "adjustTableData");
refreshkey.value += 1; refreshkey.value += 1;

View File

@ -161,7 +161,7 @@ let handelColumnEcharts = () => {
// top: props.threeDPieData.legend.top, // top: props.threeDPieData.legend.top,
// //
itemGap: props.threeDPieData.legend.itemGap, itemGap: props.threeDPieData.legend.itemGap,
show: true, show: false,
icon: "rect", icon: "rect",
itemHeight: 10, itemHeight: 10,
itemWidth: 10, itemWidth: 10,

View File

@ -1096,6 +1096,15 @@ let leftData = reactive<leftDataInfo>({
// 3d // 3d
threeDPieData: { threeDPieData: {
pieData: [ pieData: [
{
name: "0.4kV",
value: 393,
itemStyle: {
// color: "#F1BA50",
color: "#00B4F4",
},
},
{ {
name: "35kV", // name: "35kV", //
value: 3, // value: 3, //
@ -1112,14 +1121,6 @@ let leftData = reactive<leftDataInfo>({
color: "#F1BA50", color: "#F1BA50",
}, },
}, },
{
name: "0.4kV",
value: 393,
itemStyle: {
// color: "#F1BA50",
color: "#2E53F5",
},
},
], ],
total: 108, total: 108,
center: 0.85, // center: 0.85, //
@ -1146,7 +1147,7 @@ let leftData = reactive<leftDataInfo>({
name: "居民充电桩", // name: "居民充电桩", //
value: 10, // value: 10, //
itemStyle: { itemStyle: {
color: "#EE5944", // 232 158 205 color: "#00B4F4", // 232 158 205
// color: "rgba(250,189,101,.8)",// 232 158 205 // color: "rgba(250,189,101,.8)",// 232 158 205
}, },
}, },
@ -1154,14 +1155,14 @@ let leftData = reactive<leftDataInfo>({
name: "商业充电桩", name: "商业充电桩",
value: 20, value: 20,
itemStyle: { itemStyle: {
color: "#2E53F5", color: "#70F0B6",
}, },
}, },
{ {
name: "V2G充电桩", name: "V2G充电桩",
value: 40, value: 40,
itemStyle: { itemStyle: {
color: "#F1BA50", color: "#FBC670",
}, },
}, },
], ],