项目里程碑初步优化

This commit is contained in:
Cheng Zhou
2026-02-27 09:06:06 +08:00
parent 8f3f717e48
commit fd7e3fc948
47 changed files with 2029 additions and 783 deletions
@@ -1,9 +1,7 @@
import {
deleteStudySetupConfigVersion,
exportStudySetupConfigExcel,
fetchStudySetupConfig,
fetchStudySetupConfigVersions,
importStudySetupConfigExcel,
publishStudySetupConfig,
rollbackStudySetupConfig,
saveStudySetupConfig,
@@ -21,8 +19,6 @@ export const useSetupConfig = () => {
const listVersions = (studyId: string) => fetchStudySetupConfigVersions(studyId);
const rollbackConfig = (studyId: string, payload: StudySetupConfigRollbackPayload) => rollbackStudySetupConfig(studyId, payload);
const deleteVersion = (studyId: string, targetVersion: number) => deleteStudySetupConfigVersion(studyId, targetVersion);
const exportExcel = (studyId: string) => exportStudySetupConfigExcel(studyId);
const importExcel = (studyId: string, payload: FormData) => importStudySetupConfigExcel(studyId, payload);
return {
getConfig,
@@ -31,8 +27,5 @@ export const useSetupConfig = () => {
listVersions,
rollbackConfig,
deleteVersion,
exportExcel,
importExcel,
};
};