修改测试问题
This commit is contained in:
@@ -73,9 +73,10 @@
|
||||
</div>
|
||||
<a-table :columns="totalColumns" :data-source="totalData" bordered :pagination="false">
|
||||
<template #bodyCell="{ column, text }">
|
||||
<template v-if="column.dataIndex === 'name'">
|
||||
<span>{{ text || '-' }}</span>
|
||||
<!-- <template v-if="column.dataIndex === 'name'">
|
||||
<a>{{ text }}</a>
|
||||
</template>
|
||||
</template> -->
|
||||
</template>
|
||||
</a-table>
|
||||
</div>
|
||||
@@ -391,6 +392,7 @@
|
||||
api: carbonAssets.import, // 导入接口名
|
||||
params: {
|
||||
orgId,
|
||||
year,
|
||||
},
|
||||
title: '碳资产', // 弹窗title
|
||||
templateName: 'carbonAssets', // 所使用的文件名称
|
||||
@@ -413,6 +415,7 @@
|
||||
pageSize: 999,
|
||||
year: queryParams.value.year,
|
||||
ids: selectedRowKeys.value,
|
||||
accountType: props.parentId,
|
||||
});
|
||||
const config = {
|
||||
responseType: 'blob',
|
||||
@@ -674,6 +677,7 @@
|
||||
.validate()
|
||||
.then(() => {
|
||||
console.log('values', formState, toRaw(formState));
|
||||
formState.value.orgId = orgId.value;
|
||||
if (formState.value.transactionType) {
|
||||
formState.value.transactionType = formState.value.transactionType.join(',').split(',')[1];
|
||||
}
|
||||
@@ -699,7 +703,8 @@
|
||||
message.success('操作成功!');
|
||||
visible.value = false;
|
||||
delIds.value = [];
|
||||
getDetailList();
|
||||
// getDetailList();
|
||||
mainRef.value?.nsTableRef.reload();
|
||||
getTotalTable();
|
||||
})
|
||||
.catch((error) => {
|
||||
@@ -709,7 +714,8 @@
|
||||
message.success('操作成功!');
|
||||
visible.value = false;
|
||||
delIds.value = [];
|
||||
getDetailList();
|
||||
// getDetailList();
|
||||
mainRef.value?.nsTableRef.reload();
|
||||
}
|
||||
});
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user