4
This commit is contained in:
2025-12-16 11:55:33 +08:00
parent cf9bed929e
commit c053d28efe

View File

@ -3,7 +3,6 @@ import { bitable } from '@lark-base-open/js-sdk';
import { RecordDetail, SelectedLabels } from '../types';
import { TABLE_CONFIG } from '../constants/config';
import { buildFieldNameToIdMap, extractLabelsFromRecord } from '../utils/dataUtils';
import { executePricingQuery, executeSecondaryProcessQuery, executePricingDetailsQuery } from '../services/apiService';
export const useRecordSelection = () => {
const [selectedRecords, setSelectedRecords] = useState<string[]>([]);
@ -48,8 +47,7 @@ export const useRecordSelection = () => {
...extractedLabels
}));
// 自动执行查询
await executeAllQueries(recordValList[0]);
}
} else {
setRecordDetails([]);
@ -68,9 +66,7 @@ export const useRecordSelection = () => {
setSelectedLabels({});
}, []);
const executeAllQueries = async (record: RecordDetail) => {
// 实现查询逻辑
};
return {
selectedRecords,