From b29d18bee58f65ee321d4e1677159ec14c0665fd Mon Sep 17 00:00:00 2001 From: mairuiming Date: Wed, 17 Dec 2025 16:07:59 +0800 Subject: [PATCH] 1 1 --- src/hooks/useRecordSelection.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/hooks/useRecordSelection.ts b/src/hooks/useRecordSelection.ts index 1b79555..d31b5da 100644 --- a/src/hooks/useRecordSelection.ts +++ b/src/hooks/useRecordSelection.ts @@ -3,6 +3,7 @@ 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([]); @@ -47,7 +48,8 @@ export const useRecordSelection = () => { ...extractedLabels })); - + // 自动执行查询 + await executeAllQueries(recordValList[0]); } } else { setRecordDetails([]); @@ -66,7 +68,9 @@ export const useRecordSelection = () => { setSelectedLabels({}); }, []); - + const executeAllQueries = async (record: RecordDetail) => { + // 实现查询逻辑 + }; return { selectedRecords, @@ -77,4 +81,4 @@ export const useRecordSelection = () => { handleSelectRecords, handleClearRecords, }; -}; +}; \ No newline at end of file