“yu” 2024-07-16 00:35:58 +08:00
parent a7443c485a
commit 6777ad0953
1 changed files with 15 additions and 12 deletions

View File

@ -67,7 +67,7 @@
/> />
</div> </div>
</div> </div>
<!-- <div class="capAjust_box content_bg" v-if="allFlag"> <div class="capAjust_box content_bg" v-if="allFlag">
<div class="infotitle"><span>可调资源</span></div> <div class="infotitle"><span>可调资源</span></div>
<div class="info1"> <div class="info1">
<div class="source_type"> <div class="source_type">
@ -93,7 +93,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="source_list"> <div class="source_list">
<div class="table_box"> <div class="table_box">
<el-table <el-table
@ -129,7 +129,7 @@
<div class="infotitle_box"> <div class="infotitle_box">
<div class="infotitle_short"> <div class="infotitle_short">
<div class="bg"></div> <div class="bg"></div>
<span>负载率预测</span> <span>负载率预测</span>
<div class="btns"> <div class="btns">
<div class="btnbg fs35" @click="handleClickPC"></div> <div class="btnbg fs35" @click="handleClickPC"></div>
@ -151,15 +151,15 @@
</div> </div>
</div> </div>
</div> </div>
<div class="info3"> <div class="info3">
<rateLine_will <rateLine_will
:rateDate="rateDate_will" :rateDate="rateDate_will"
:keysv="keyechart" :keysv="keyechart"
></rateLine_will> ></rateLine_will>
</div> </div>
</div> --> </div>
<div class="capAjust_box content_bg" > <div class="capAjust_box content_bg" v-else>
<div class="infotitle"><span>可调资源</span></div> <div class="infotitle"><span>可调资源</span></div>
<div class="info1"> <div class="info1">
<div class="source_type"> <div class="source_type">
@ -216,7 +216,6 @@
:rateDate="rateDate_cur" :rateDate="rateDate_cur"
:keysv="keyechart" :keysv="keyechart"
v-if="rateDate_curFlag" v-if="rateDate_curFlag"
></rateLine> ></rateLine>
<!-- <rateLine <!-- <rateLine
:rateDate="rateDate_cur" :rateDate="rateDate_cur"
@ -269,7 +268,6 @@
></rateLine_will> ></rateLine_will>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
@ -494,6 +492,7 @@ onMounted(() => {
getAllSourceAjust(); // getAllSourceAjust(); //
}); });
let allFlag = ref(true); // let allFlag = ref(true); //
let allSource = ref([]);
// orgID // orgID
const getAllSourceAjust = () => { const getAllSourceAjust = () => {
let datainput = { let datainput = {
@ -501,8 +500,15 @@ const getAllSourceAjust = () => {
}; };
sourcInfoApi(datainput).then((res) => { sourcInfoApi(datainput).then((res) => {
handelSourceTable(res.data); // handelSourceTable(res.data);
// tablepvData.value=res?.data // tablepvData.value=res?.data
let counts=res.data
for (const [type, count] of Object.entries(counts)) {
const item = sourceLArr.find((item) => item.type === type);
if (item) {
item.number = String(count); // Convert count to string since original numbers are strings
}
}
}); });
}; };
// 线 orgID mrid // 线 orgID mrid
@ -602,9 +608,6 @@ let rateDate_cur = reactive<RateDateInfo[]>([]); //当前的负载率
let rateDate_will = reactive<RateDateInfo[]>([]); // let rateDate_will = reactive<RateDateInfo[]>([]); //
let rateDate_curFlag = ref(false); let rateDate_curFlag = ref(false);
const getRateDate = (treeAreaId: string) => { const getRateDate = (treeAreaId: string) => {
// 15 // 15
// console.log(treeAreaId, treeAreaId.value,"treeAreaId=========="); // console.log(treeAreaId, treeAreaId.value,"treeAreaId==========");