“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 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="info1">
<div class="source_type">
@ -158,8 +158,8 @@
:keysv="keyechart"
></rateLine_will>
</div>
</div> -->
<div class="capAjust_box content_bg" >
</div>
<div class="capAjust_box content_bg" v-else>
<div class="infotitle"><span>可调资源</span></div>
<div class="info1">
<div class="source_type">
@ -216,7 +216,6 @@
:rateDate="rateDate_cur"
:keysv="keyechart"
v-if="rateDate_curFlag"
></rateLine>
<!-- <rateLine
:rateDate="rateDate_cur"
@ -269,7 +268,6 @@
></rateLine_will>
</div>
</div>
</div>
</div>
</div>
@ -494,6 +492,7 @@ onMounted(() => {
getAllSourceAjust(); //
});
let allFlag = ref(true); //
let allSource = ref([]);
// orgID
const getAllSourceAjust = () => {
let datainput = {
@ -501,8 +500,15 @@ const getAllSourceAjust = () => {
};
sourcInfoApi(datainput).then((res) => {
handelSourceTable(res.data);
// handelSourceTable(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
@ -602,9 +608,6 @@ let rateDate_cur = reactive<RateDateInfo[]>([]); //当前的负载率
let rateDate_will = reactive<RateDateInfo[]>([]); //
let rateDate_curFlag = ref(false);
const getRateDate = (treeAreaId: string) => {
// 15
// console.log(treeAreaId, treeAreaId.value,"treeAreaId==========");