采购设计报表新增tab切换

This commit is contained in:
Teo
2025-09-04 18:40:25 +08:00
parent 26bef3f724
commit 2b989e1d46

View File

@ -86,13 +86,14 @@ const handleTabChange = (tab) => {
activeTab.value = tab;
data.queryParams.valueType = '1';
// data.queryParams.month = '';
getList();
};
/** 查询项目总产值分配列表 */
const getList = async () => {
loading.value = true;
const res = await listOutTable(queryParams.value);
const res = await listOutTable({ ...queryParams.value, type: activeTab.value });
valueAllocationList.value = res.rows;
total.value = res.total;
loading.value = false;