优化碳排管理
This commit is contained in:
@@ -50,11 +50,7 @@
|
||||
</div>
|
||||
<div style="display: flex; margin-top: 20px; height: calc(85% - 20px)">
|
||||
<div class="detailTable">
|
||||
<ns-view-list-table
|
||||
v-bind="tableConfig"
|
||||
:model="data"
|
||||
ref="mainRef"
|
||||
:scroll="{ x: 1280 }">
|
||||
<ns-view-list-table v-bind="tableConfig" :model="data" ref="mainRef" :scroll="{ x: 1280 }">
|
||||
<template #bodyCell="{ column, text, record }">
|
||||
<template v-if="column.dataIndex === 'accountType'">
|
||||
<span v-if="record.accountType">{{ record.accountType.label }}</span>
|
||||
@@ -206,12 +202,23 @@
|
||||
year: year.value,
|
||||
});
|
||||
const transactionTypeValue = ref();
|
||||
|
||||
const selectValue = ref([]);
|
||||
const changeSelect = (value, selectedOptions) => {
|
||||
debugger;
|
||||
// transactionTypeValue.value = selectedOptions.flatMap((group) =>
|
||||
// group.flatMap((node) => [node.value, ...(node.children?.map((child) => child.value) || [])]),
|
||||
// );
|
||||
transactionTypeValue.value = value.flat();
|
||||
const aaa = JSON.parse(JSON.stringify(value));
|
||||
aaa.forEach((item) => {
|
||||
if (item.length > 1) {
|
||||
item.shift();
|
||||
selectValue.value.push(item);
|
||||
} else {
|
||||
selectValue.value.push(item);
|
||||
}
|
||||
});
|
||||
transactionTypeValue.value = Array.from(new Set(selectValue.value.flat()));
|
||||
selectValue.value = [];
|
||||
};
|
||||
const searchTableList = () => {
|
||||
year.value = queryParams.value.year;
|
||||
|
||||
Reference in New Issue
Block a user