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 */ /* 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']
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'] ElPopover: typeof import('element-plus/es')['ElPopover']
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']
} }

BIN
dist.zip

Binary file not shown.

View File

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