From b30d0d1769aa9fbf6fceeceabe282fdc2e5caca3 Mon Sep 17 00:00:00 2001 From: Timi Date: Mon, 3 Aug 2026 15:34:18 +0800 Subject: [PATCH] add registration event sort --- index.html | 2 +- src/api/RegistrationEventAPI.ts | 5 + .../management/RegistrationEventEdit.vue | 223 +++++++---- .../management/RegistrationEventList.vue | 18 +- .../management/RegistrationEventSort.vue | 353 ++++++++++++++++++ src/router/routes/registrationRoutes.ts | 15 + 6 files changed, 533 insertions(+), 83 deletions(-) create mode 100644 src/pages/management/RegistrationEventSort.vue diff --git a/index.html b/index.html index 4bb048e..47681c4 100644 --- a/index.html +++ b/index.html @@ -12,7 +12,7 @@ - Gao Customer H5 + 糕店管理工具
diff --git a/src/api/RegistrationEventAPI.ts b/src/api/RegistrationEventAPI.ts index c75f2ad..96efee2 100644 --- a/src/api/RegistrationEventAPI.ts +++ b/src/api/RegistrationEventAPI.ts @@ -25,6 +25,10 @@ async function update(req: RegistrationEvent): Promise { return await axios.post(`${BASE_URI}/update`, req); } +async function sort(idList: string[]): Promise { + return await axios.post(`${BASE_URI}/sort`, idList); +} + async function remove(id: string): Promise { return await axios.post(`${BASE_URI}/delete`, undefined, { params: { id } @@ -37,5 +41,6 @@ export default { detail, create, update, + sort, remove }; diff --git a/src/pages/management/RegistrationEventEdit.vue b/src/pages/management/RegistrationEventEdit.vue index 1a69fb0..c5df2fe 100644 --- a/src/pages/management/RegistrationEventEdit.vue +++ b/src/pages/management/RegistrationEventEdit.vue @@ -1,12 +1,6 @@