From af7139bf25815969742a7020d0d5cb50cd76b483 Mon Sep 17 00:00:00 2001 From: yuetsh <517252939@qq.com> Date: Thu, 6 Mar 2025 14:51:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=B9=E9=87=8F=E5=88=9B=E5=BB=BA=E7=94=A8?= =?UTF-8?q?=E6=88=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api.ts | 4 ++++ src/pages/UserManage.vue | 39 +++++++++++++++++++++++++++++++-------- 2 files changed, 35 insertions(+), 8 deletions(-) diff --git a/src/api.ts b/src/api.ts index ff99b85..44ed5e1 100644 --- a/src/api.ts +++ b/src/api.ts @@ -62,6 +62,10 @@ export const Account = { const res = await http.put(`/account/active/${id}`) return res.data }, + + async batchCreate(payload: {classname: string, names: string[]}) { + await http.post("/account/batch", payload) + } } export const Tutorial = { diff --git a/src/pages/UserManage.vue b/src/pages/UserManage.vue index 973b95e..f69bc79 100644 --- a/src/pages/UserManage.vue +++ b/src/pages/UserManage.vue @@ -29,23 +29,28 @@ style="width: 300px" :mask-closable="false" preset="card" - title="批量新建用户" + title="批量新建 (前缀 web)" v-model:show="showBatch" > - 前缀:web - - - 提交 + + + + 提交 +