4
4
This commit is contained in:
@ -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,
|
||||
@ -81,4 +77,4 @@ export const useRecordSelection = () => {
|
||||
handleSelectRecords,
|
||||
handleClearRecords,
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user