优化碳排管理
This commit is contained in:
@@ -60,15 +60,18 @@
|
||||
<div class="ns-form-title">
|
||||
<div class="title">配额统计</div>
|
||||
<div class="operation" style="display: flex; justify-content: flex-end; width: 63%">
|
||||
<a-button type="primary" v-if="parentId === 1" @click="getTotalTable(1)"
|
||||
>全国配额</a-button
|
||||
>
|
||||
<a-button type="primary" v-if="parentId === 2" @click="getTotalTable(2)"
|
||||
>地方配额</a-button
|
||||
>
|
||||
<a-button type="primary" v-if="parentId === 3" @click="getTotalTable(3)"
|
||||
>CCER配额</a-button
|
||||
>
|
||||
<a-button type="primary" v-if="queryParams.accountType === 1" @click="getTotalTable(1)">
|
||||
全国配额
|
||||
</a-button>
|
||||
<a-button
|
||||
type="primary"
|
||||
v-if="queryParams.accountType === 2"
|
||||
@click="getTotalTable(2)">
|
||||
地方配额
|
||||
</a-button>
|
||||
<a-button type="primary" v-if="queryParams.accountType === 3" @click="getTotalTable(3)">
|
||||
CCER配额
|
||||
</a-button>
|
||||
</div>
|
||||
</div>
|
||||
<a-table :columns="totalColumns" :data-source="totalData" bordered :pagination="false">
|
||||
@@ -205,6 +208,7 @@
|
||||
year.value = queryParams.value.year;
|
||||
transactionType.value = queryParams.value.transactionType;
|
||||
accountType.value = queryParams.value.accountType;
|
||||
getTotalTable(queryParams.value.accountType);
|
||||
mainRef.value?.nsTableRef.reload();
|
||||
// getDetailList();
|
||||
};
|
||||
@@ -299,11 +303,11 @@
|
||||
}));
|
||||
});
|
||||
formState.value = JSON.parse(JSON.stringify(record));
|
||||
if (formState.value.expenditure === 0) {
|
||||
formState.value.transactionQuantity = formState.value.income;
|
||||
} else {
|
||||
formState.value.transactionQuantity = formState.value.expenditure;
|
||||
}
|
||||
// if (formState.value.expenditure === 0) {
|
||||
// formState.value.transactionQuantity = formState.value.income;
|
||||
// } else {
|
||||
// formState.value.transactionQuantity = formState.value.expenditure;
|
||||
// }
|
||||
setTimeout(() => {
|
||||
let selectDevice = ref([Number(formState.value.transactionType)]);
|
||||
findParentIds(options.value, formState.value.transactionType, selectDevice.value);
|
||||
@@ -523,11 +527,6 @@
|
||||
}));
|
||||
});
|
||||
formState.value = JSON.parse(JSON.stringify(record));
|
||||
if (formState.value.expenditure === 0) {
|
||||
formState.value.transactionQuantity = formState.value.income;
|
||||
} else {
|
||||
formState.value.transactionQuantity = formState.value.expenditure;
|
||||
}
|
||||
setTimeout(() => {
|
||||
let selectDevice = ref([Number(formState.value.transactionType)]);
|
||||
findParentIds(options.value, formState.value.transactionType, selectDevice.value);
|
||||
|
Reference in New Issue
Block a user