From a6097bfc05b7fc5a5f23cabacec262b4ef2e48f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=BF=A0=E6=9E=97?= <170083662@qq.com> Date: Mon, 11 Aug 2025 15:07:49 +0800 Subject: [PATCH] =?UTF-8?q?refactor(shopAdmin):=20=E9=87=8D=E6=9E=84?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=91=98=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增 SuperAdmin 和 Admin 组件 - 优化管理员列表展示逻辑 - 添加超级管理员单独展示区域 -调整新建按钮文字为"添加" - 移除不必要的注释代码 --- src/api/system/user/model/index.ts | 1 + src/views/shop/shopAdmin/components/admin.vue | 382 ++---------------- .../shop/shopAdmin/components/super-admin.vue | 41 ++ src/views/shop/shopAdmin/index.vue | 18 +- .../shopCoupon/components/shopCouponEdit.vue | 3 - 5 files changed, 75 insertions(+), 370 deletions(-) create mode 100644 src/views/shop/shopAdmin/components/super-admin.vue diff --git a/src/api/system/user/model/index.ts b/src/api/system/user/model/index.ts index e7a09a6..8323dc1 100644 --- a/src/api/system/user/model/index.ts +++ b/src/api/system/user/model/index.ts @@ -152,6 +152,7 @@ export interface UserParam extends PageParam { sexName?: string; roleId?: string; isAdmin?: number; + isSuperAdmin?: boolean; showProfile?: boolean; isStaff?: boolean; templateId?: number; diff --git a/src/views/shop/shopAdmin/components/admin.vue b/src/views/shop/shopAdmin/components/admin.vue index 2ec8ef1..add1bba 100644 --- a/src/views/shop/shopAdmin/components/admin.vue +++ b/src/views/shop/shopAdmin/components/admin.vue @@ -1,368 +1,42 @@