From 75f217ed8f5a8849303afe83de9056faab70757c Mon Sep 17 00:00:00 2001 From: admin Date: Mon, 25 May 2026 17:52:04 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E5=93=81=E7=89=8C?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/i18n/locales/en.json | 1 + frontend/src/i18n/locales/ja.json | 1 + frontend/src/i18n/locales/zh.json | 1 + frontend/src/layouts/AdminLayout.vue | 7 +- frontend/src/router/index.ts | 1 + frontend/src/views/admin/Brands.vue | 266 +++++++++++++++++++++++++++ 6 files changed, 276 insertions(+), 1 deletion(-) create mode 100644 frontend/src/views/admin/Brands.vue diff --git a/frontend/src/i18n/locales/en.json b/frontend/src/i18n/locales/en.json index 05987b1..821e5b1 100644 --- a/frontend/src/i18n/locales/en.json +++ b/frontend/src/i18n/locales/en.json @@ -119,6 +119,7 @@ "userManagement": "User Management", "productManagement": "Product Management", "categoryManagement": "Category Management", + "brandManagement": "Brand Management", "orderManagement": "Order Management", "supplierManagement": "Supplier Management", "lotteryManagement": "Lottery Management", diff --git a/frontend/src/i18n/locales/ja.json b/frontend/src/i18n/locales/ja.json index 8e8c9ae..13c6ac8 100644 --- a/frontend/src/i18n/locales/ja.json +++ b/frontend/src/i18n/locales/ja.json @@ -119,6 +119,7 @@ "userManagement": "ユーザー管理", "productManagement": "商品管理", "categoryManagement": "カテゴリ管理", + "brandManagement": "ブランド管理", "orderManagement": "注文管理", "supplierManagement": "サプライヤー管理", "lotteryManagement": "抽選管理", diff --git a/frontend/src/i18n/locales/zh.json b/frontend/src/i18n/locales/zh.json index aa62e0f..4f59544 100644 --- a/frontend/src/i18n/locales/zh.json +++ b/frontend/src/i18n/locales/zh.json @@ -119,6 +119,7 @@ "userManagement": "用户管理", "productManagement": "商品管理", "categoryManagement": "分类管理", + "brandManagement": "品牌管理", "orderManagement": "订单管理", "supplierManagement": "供货商管理", "lotteryManagement": "抽奖管理", diff --git a/frontend/src/layouts/AdminLayout.vue b/frontend/src/layouts/AdminLayout.vue index 466c942..d2b000f 100644 --- a/frontend/src/layouts/AdminLayout.vue +++ b/frontend/src/layouts/AdminLayout.vue @@ -25,6 +25,10 @@ {{ $t('admin.categoryManagement') }} + + + {{ $t('admin.brandManagement') }} + {{ $t('admin.productManagement') }} @@ -152,7 +156,7 @@ import { ref, computed } from 'vue' import { useRouter, useRoute } from 'vue-router' import { useI18n } from 'vue-i18n' -import { DataAnalysis, User, Folder, Goods, List, Van, Trophy, ChatDotSquare, Setting, Document, Picture, Compass, Fold, Expand, HomeFilled, FullScreen, ArrowDown, SwitchButton, ArrowRight } from '@element-plus/icons-vue' +import { DataAnalysis, User, Folder, Stamp, Goods, List, Van, Trophy, ChatDotSquare, Setting, Document, Picture, Compass, Fold, Expand, HomeFilled, FullScreen, ArrowDown, SwitchButton, ArrowRight } from '@element-plus/icons-vue' import { useUserStore } from '../store/user' import { useCartStore } from '../store/cart' @@ -170,6 +174,7 @@ const pageTitles: Record = { '/admin': '控制台', '/admin/users': '用户管理', '/admin/categories': '分类管理', + '/admin/brands': '品牌管理', '/admin/products': '商品管理', '/admin/orders': '订单管理', '/admin/suppliers': '供应商管理', diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts index 4bc49a9..c587651 100644 --- a/frontend/src/router/index.ts +++ b/frontend/src/router/index.ts @@ -40,6 +40,7 @@ const routes = [ { path: '', name: 'AdminDashboard', component: () => import('../views/admin/Dashboard.vue') }, { path: 'users', name: 'AdminUsers', component: () => import('../views/admin/Users.vue') }, { path: 'categories', name: 'AdminCategories', component: () => import('../views/admin/Categories.vue') }, + { path: 'brands', name: 'AdminBrands', component: () => import('../views/admin/Brands.vue') }, { path: 'products', name: 'AdminProducts', component: () => import('../views/admin/Products.vue') }, { path: 'orders', name: 'AdminOrders', component: () => import('../views/admin/Orders.vue') }, { path: 'suppliers', name: 'AdminSuppliers', component: () => import('../views/admin/Suppliers.vue') }, diff --git a/frontend/src/views/admin/Brands.vue b/frontend/src/views/admin/Brands.vue new file mode 100644 index 0000000..e25f00d --- /dev/null +++ b/frontend/src/views/admin/Brands.vue @@ -0,0 +1,266 @@ + + + + +