master
“yu” 2024-07-17 23:17:32 +08:00
parent ceb6663bf2
commit a9f0028e93
3 changed files with 81 additions and 50 deletions

8
components.d.ts vendored
View File

@ -7,8 +7,16 @@ export {}
/* prettier-ignore */
declare module 'vue' {
export interface GlobalComponents {
ElButton: typeof import('element-plus/es')['ElButton']
ElCarousel: typeof import('element-plus/es')['ElCarousel']
ElCarouselItem: typeof import('element-plus/es')['ElCarouselItem']
ElForm: typeof import('element-plus/es')['ElForm']
ElFormItem: typeof import('element-plus/es')['ElFormItem']
ElInput: typeof import('element-plus/es')['ElInput']
ElPopover: typeof import('element-plus/es')['ElPopover']
ElTable: typeof import('element-plus/es')['ElTable']
ElTableColumn: typeof import('element-plus/es')['ElTableColumn']
ElTimeSelect: typeof import('element-plus/es')['ElTimeSelect']
RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView']
}

BIN
dist.zip

Binary file not shown.

View File

@ -95,7 +95,7 @@
</div>
<div class="capAjust_box content_bg" v-else>
<div class="infotitle">
<span>可调资源</span>
<span></span>
<div
:class="[
boxbtnFlag === item.id ? 'btns_ac' : 'btns_de',
@ -120,7 +120,7 @@
<div class="source_list">
<div class="table_box">
<el-table
:data="tablepvData"
:data="tableInfo.tablepvData"
style="width: 100%; height: 100%"
>
<el-table-column
@ -130,7 +130,7 @@
align="center"
>
</el-table-column>
<el-table-column label="可调资源" align="center">
<el-table-column label="" align="center">
<template #default="scope">
<span style="margin-left: 10px">{{
scope.row.name
@ -177,7 +177,8 @@
<div class="info3"></div>
</div>
<div class="capAjust_box content_bg" v-else>
<div class="infotitle"><span>可调资源</span>
<div class="infotitle">
<span></span>
<div
:class="[
boxbtnFlag === item.id ? 'btns_ac' : 'btns_de',
@ -202,7 +203,7 @@
<div class="source_list">
<div class="table_box">
<el-table
:data="tablepvData"
:data="tableInfo.tablepvData"
style="width: 100%; height: 100%"
>
<el-table-column
@ -531,8 +532,9 @@ const getAllSourceAjust_Line = (mrid: string) => {
let treeNodeKey = ref(""); //id
// id treeNode
const getTreeKey = (treeNode: any) => {
rateDate_willFlag.value=false
treeNodeKey.value = treeNode.key; //线id
boxbtnFlag.value="1"//
boxbtnFlag.value = "1"; //
allFlag.value = false;
if (treeNode.level === 3) {
console.log(treeNode.level, "3");
@ -552,26 +554,14 @@ let boxbtnFlag = ref("1");
let box_btn = reactive([
{
id: "1",
name: "全量",
name: "全量资源",
},
{
id: "2",
name: "可调",
name: "可调资源",
},
]);
const changeSourceInfo = (val: string) => {
boxbtnFlag.value = val;
if (val === "1") {
//
console.log(tablepvData,'11111');
// tablepvData=
} else {
//
console.log(tablepvData,'222222');
}
};
// ---
let pht = ref(0); //
let cdz = ref(0); //
@ -603,11 +593,11 @@ const handelSourceTable = (sourceAjustObj: any) => {
// tablepvData
console.log(sourceAjustObj, "sourceAjustObj");
tablepvData.value = [];
tableInfo.tablepvData = [];
for (let i in sourceAjustObj) {
for (let j in sourceAjustObj[i]) {
sourceAjustObj[i][j].type = i;
tablepvData.value.push(sourceAjustObj[i][j]);
tableInfo.tablepvData.push(sourceAjustObj[i][j]);
}
}
};
@ -622,9 +612,9 @@ let sourceLArr = reactive([
const handelSource = (type: string) => {
// type
tablepvData.value = [];
tableInfo.tablepvData = [];
for (let i in sourceAjustObj[type]) {
tablepvData.value.push(sourceAjustObj[type][i]);
tableInfo.tablepvData.push(sourceAjustObj[type][i]);
}
};
// ---
@ -718,6 +708,7 @@ let send_Status = ref(false); //发送中。。的状态
let btn_sendFlag = ref(false); //
const haneleprogress = () => {
send_Status.value = true; // div
if (btn_sendFlag.value === false) return; //flag
@ -776,28 +767,60 @@ interface TablepvDate {
index?: number;
name: string;
}
let tablepvData = ref<TablepvDate[]>([
// {
// index: 1,
// name: "**",
// },
// {
// index: 2,
// name: "**",
// },
// {
// index: 3,
// name: "**",
// },
// {
// index: 4,
// name: "**",
// },
// {
// index: 5,
// name: "**",
// },
]);
interface TableInfo {
tablepvData: TablepvDate[];
newTable_pvDate: TablepvDate[];
}
let tableInfo = reactive<TableInfo>({
tablepvData: [],
newTable_pvDate: [],
});
let arrchang_all = []; //
arrchang_all = newAjustTableData;
// let arrchang = []; //
// arrchang = tableInfo.tablepvData;
// arrchang_all = tableInfo.tablepvData;
const changeSourceInfo = (val: string) => {
boxbtnFlag.value = val;
if (val === "1") {
//
getTreeSourceList(treeNodeKey.value);
// tablepvData=
} else {
//
// console.log(tableInfo.tablepvData, "222222");
// arrchang =
// let newArr = []
tableInfo.tablepvData = tableInfo.tablepvData.filter(
(item) => item?.regulable === "true"
);
}
};
// let tablepvData = reactive<TablepvDate[]>([
// // {
// // index: 1,
// // name: "**",
// // },
// // {
// // index: 2,
// // name: "**",
// // },
// // {
// // index: 3,
// // name: "**",
// // },
// // {
// // index: 4,
// // name: "**",
// // },
// // {
// // index: 5,
// // name: "**",
// // },
// ]);
// -
let progressContentFlag = ref(false);
@ -943,9 +966,9 @@ let adjustTableData = reactive<User[]>([
//
let handleClickPC = () => {
adjustFlag.value = true;
console.log(tablepvData.value, "tablepvData");
console.log(tableInfo.tablepvData, "tablepvData");
adjustTableData = [];
tablepvData.value.forEach((item: any) => {
tableInfo.tablepvData.forEach((item: any) => {
let typeStr = "";
if (item.type === "photoVoltaicUnit") {
typeStr = "光伏";
@ -1445,7 +1468,7 @@ const styleVar = computed(() => {
.btn_box {
margin-left: 2%;
font-size: changeHeight(40);
width: changeHeight(140);
width: changeHeight(220);
height: changeHeight(60);
line-height: changeHeight(60);
cursor: pointer;