修改测试问题

This commit is contained in:
fks-xuxinyue
2024-08-09 15:22:36 +08:00
parent cce83ee700
commit 93cf7ab9fa
8 changed files with 123 additions and 18 deletions

View File

@@ -48,7 +48,12 @@
</div>
</div>
<div class="totalContant" v-else>
<categoryDeatil @change-data="updateData" :parentId="parentId" :year="year" :type="type" :nodeName="nodeName" />
<categoryDeatil
@change-data="updateData"
:parentId="parentId"
:year="year"
:type="type"
:nodeName="nodeName" />
</div>
<!-- 新增节点 -->
<a-drawer :visible="visible" :width="500" @close="onClose" :footer-style="{ textAlign: 'right' }">
@@ -159,7 +164,7 @@
};
const getMonthPillarData = () => {
fetch(carbonPlanning.electricityUsageBackThen, getPillarQuery.value).then((res) => {
xAxisData.value = res.data.year;
xAxisData.value = res.data.yearMonth;
referenceValue.value = res.data.referenceValue;
budget.value = res.data.budget;
actualUsage.value = res.data.actualUsage;
@@ -286,6 +291,7 @@
type: props.tabId,
year: selectYearValue.value.format('YYYY'),
yearAndMonth: 'year',
yearMonth: selectMonthValue.value.format('YYYY-DD'),
});
const ballValue = ref();
const getBallData = () => {
@@ -447,7 +453,7 @@
fetch(carbonPlanning.searchListByYear, yearQueryParams.value).then((res) => {
data.value = res.data;
res.data.forEach((item) => {
treeCheckedKeys.value.push((item.itemizeId).toString());
treeCheckedKeys.value.push(item.itemizeId.toString());
});
});
};
@@ -460,7 +466,9 @@
});
const changeMonth = () => {
monthQueryParams.value.yearMonth = selectMonthValue.value;
getBallQuery.value.yearMonth = selectMonthValue.value;
getMonthData();
getBallData();
};
const getMonthData = () => {
fetch(carbonPlanning.searchListByMonth, monthQueryParams.value).then((res) => {