From 903d6d93049adcf913813be204c3a0cce436fbe2 Mon Sep 17 00:00:00 2001 From: yxw <17074267@qq.com> Date: Wed, 17 Dec 2025 17:16:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Atomx.Admin.Client.csproj | 1 + .../Pages/Contents/BlogEdit.razor | 24 ++ .../Pages/Contents/BlogList.razor | 20 ++ .../Pages/Contents/PageEdit.razor | 25 +- .../Pages/Contents/PageList.razor | 20 +- .../Pages/Orders/DepositList.razor | 20 ++ .../Pages/Orders/DepositView.razor | 22 ++ .../Pages/Orders/OrderList.razor | 21 +- .../Pages/Products/CategoryEdit.razor | 70 +++-- .../Pages/Products/CategoryList.razor | 258 +++++++++--------- .../Pages/Systems/AdminList.razor | 4 +- .../Pages/Systems/LanguageList.razor | 11 +- .../Pages/Users/UserList.razor | 21 +- Atomx.Common/Entities/Language.cs | 6 +- 14 files changed, 348 insertions(+), 175 deletions(-) create mode 100644 Atomx.Admin/Atomx.Admin.Client/Pages/Contents/BlogEdit.razor create mode 100644 Atomx.Admin/Atomx.Admin.Client/Pages/Contents/BlogList.razor create mode 100644 Atomx.Admin/Atomx.Admin.Client/Pages/Orders/DepositList.razor create mode 100644 Atomx.Admin/Atomx.Admin.Client/Pages/Orders/DepositView.razor diff --git a/Atomx.Admin/Atomx.Admin.Client/Atomx.Admin.Client.csproj b/Atomx.Admin/Atomx.Admin.Client/Atomx.Admin.Client.csproj index 0c18632..14c72e8 100644 --- a/Atomx.Admin/Atomx.Admin.Client/Atomx.Admin.Client.csproj +++ b/Atomx.Admin/Atomx.Admin.Client/Atomx.Admin.Client.csproj @@ -27,6 +27,7 @@ + diff --git a/Atomx.Admin/Atomx.Admin.Client/Pages/Contents/BlogEdit.razor b/Atomx.Admin/Atomx.Admin.Client/Pages/Contents/BlogEdit.razor new file mode 100644 index 0000000..5f25b16 --- /dev/null +++ b/Atomx.Admin/Atomx.Admin.Client/Pages/Contents/BlogEdit.razor @@ -0,0 +1,24 @@ +@page "/content/blog/create" +@page "/content/blog/edit/{id:long}" +@page "/{locale}/content/blog/create" +@page "/{locale}/content/blog/edit/{id:long}" + + + + + 管理后台 + 内容管理 + 博客文章 + + + +

Tools

+
+
+ +@code { + [Parameter] + public string Locale { get; set; } = string.Empty; + [Parameter] + public long? Id { get; set; } +} \ No newline at end of file diff --git a/Atomx.Admin/Atomx.Admin.Client/Pages/Contents/BlogList.razor b/Atomx.Admin/Atomx.Admin.Client/Pages/Contents/BlogList.razor new file mode 100644 index 0000000..48671e1 --- /dev/null +++ b/Atomx.Admin/Atomx.Admin.Client/Pages/Contents/BlogList.razor @@ -0,0 +1,20 @@ +@page "/content/blog/list" +@page "/{locale}/content/blog/list" + + + + + 管理后台 + 内容管理 + 博客文章 + + + +

Tools

+
+
+ +@code { + [Parameter] + public string Locale { get; set; } = string.Empty; +} \ No newline at end of file diff --git a/Atomx.Admin/Atomx.Admin.Client/Pages/Contents/PageEdit.razor b/Atomx.Admin/Atomx.Admin.Client/Pages/Contents/PageEdit.razor index 18a25c3..8d64ea3 100644 --- a/Atomx.Admin/Atomx.Admin.Client/Pages/Contents/PageEdit.razor +++ b/Atomx.Admin/Atomx.Admin.Client/Pages/Contents/PageEdit.razor @@ -1,5 +1,24 @@ -

PageEdit

+@page "/content/page/create" +@page "/content/page/edit/{id:long}" +@page "/{locale}/content/page/create" +@page "/{locale}/content/page/edit/{id:long}" + + + + + 管理后台 + 内容管理 + 主题页面 + + + +

Tools

+
+
@code { - -} + [Parameter] + public string Locale { get; set; } = string.Empty; + [Parameter] + public long? Id { get; set; } +} \ No newline at end of file diff --git a/Atomx.Admin/Atomx.Admin.Client/Pages/Contents/PageList.razor b/Atomx.Admin/Atomx.Admin.Client/Pages/Contents/PageList.razor index d2addaa..7a72161 100644 --- a/Atomx.Admin/Atomx.Admin.Client/Pages/Contents/PageList.razor +++ b/Atomx.Admin/Atomx.Admin.Client/Pages/Contents/PageList.razor @@ -1,8 +1,20 @@ @page "/content/page/list" +@page "/{locale}/content/page/list" - -

PageList

+ + + + 管理后台 + 内容管理 + 主题页面 + + + +

Tools

+
+
@code { - -} + [Parameter] + public string Locale { get; set; } = string.Empty; +} \ No newline at end of file diff --git a/Atomx.Admin/Atomx.Admin.Client/Pages/Orders/DepositList.razor b/Atomx.Admin/Atomx.Admin.Client/Pages/Orders/DepositList.razor new file mode 100644 index 0000000..4100530 --- /dev/null +++ b/Atomx.Admin/Atomx.Admin.Client/Pages/Orders/DepositList.razor @@ -0,0 +1,20 @@ +@page "/deposit/list" +@page "/{locale}/deposit/list" + + + + + 管理后台 + 内容管理 + 储值订单 + + + +

Tools

+
+
+ +@code { + [Parameter] + public string Locale { get; set; } = string.Empty; +} \ No newline at end of file diff --git a/Atomx.Admin/Atomx.Admin.Client/Pages/Orders/DepositView.razor b/Atomx.Admin/Atomx.Admin.Client/Pages/Orders/DepositView.razor new file mode 100644 index 0000000..90b895a --- /dev/null +++ b/Atomx.Admin/Atomx.Admin.Client/Pages/Orders/DepositView.razor @@ -0,0 +1,22 @@ +@page "/deposit/detail/{id:long}" +@page "/{locale}/deposit/detail/{id:long}" + + + + + 管理后台 + 内容管理 + 主题页面 + + + +

Tools

+
+
+ +@code { + [Parameter] + public string Locale { get; set; } = string.Empty; + [Parameter] + public long? Id { get; set; } +} \ No newline at end of file diff --git a/Atomx.Admin/Atomx.Admin.Client/Pages/Orders/OrderList.razor b/Atomx.Admin/Atomx.Admin.Client/Pages/Orders/OrderList.razor index 4a7cfe9..8e701e0 100644 --- a/Atomx.Admin/Atomx.Admin.Client/Pages/Orders/OrderList.razor +++ b/Atomx.Admin/Atomx.Admin.Client/Pages/Orders/OrderList.razor @@ -1,5 +1,20 @@ -

OrderList

+@page "/order/list" +@page "/{locale}/order/list" + + + + + 管理后台 + 内容管理 + 购物订单 + + + +

Tools

+
+
@code { - -} + [Parameter] + public string Locale { get; set; } = string.Empty; +} \ No newline at end of file diff --git a/Atomx.Admin/Atomx.Admin.Client/Pages/Products/CategoryEdit.razor b/Atomx.Admin/Atomx.Admin.Client/Pages/Products/CategoryEdit.razor index f667c63..e671af1 100644 --- a/Atomx.Admin/Atomx.Admin.Client/Pages/Products/CategoryEdit.razor +++ b/Atomx.Admin/Atomx.Admin.Client/Pages/Products/CategoryEdit.razor @@ -1,18 +1,25 @@ @page "/product/category/edit" @page "/product/category/edit/{Id:long?}" +@page "/{locale}/product/category/edit" +@page "/{locale}/product/category/edit/{Id:long?}" + @inject ILogger Logger @attribute [Authorize] -分类编辑 -分类信息 - - - -
- @* @if (languages.Count > 1 && Id > 0) + + + + 管理后台 + 系统功能 + 分类管理 + + + + + + + @* @if (languages.Count > 1 && Id > 0) { @@ -59,28 +66,33 @@ } *@ - - - - - - - - - - - 启用 - - - - - - - + + + + + + + + + + + 启用 + + + + + +
+
+ + @code { + [Parameter] + public string Locale { get; set; } = string.Empty; + [SupplyParameterFromQuery] int? Lang { get; set; } diff --git a/Atomx.Admin/Atomx.Admin.Client/Pages/Products/CategoryList.razor b/Atomx.Admin/Atomx.Admin.Client/Pages/Products/CategoryList.razor index f169d83..064e3cf 100644 --- a/Atomx.Admin/Atomx.Admin.Client/Pages/Products/CategoryList.razor +++ b/Atomx.Admin/Atomx.Admin.Client/Pages/Products/CategoryList.razor @@ -1,141 +1,153 @@ @page "/category/list" +@page "/{locale}/category/list" @inject ILogger Logger @attribute [Authorize] -分类管理 -菜单管理 - -
- - - - - - + + + + 管理后台 + 系统功能 + 分类管理 + + + + + + + + + + + - -
- - -
- -
- -
- - - - - 菜单列表 -
- -
+
+
+ + +
+ + + + +
+ +
+ + + 菜单列表 +
+ +
-
-
- - - @GetName(context) - - + + + + + @GetName(context) + + - - - - @if (context.Enabled) - { - + + + + @if (context.Enabled) + { + - } - else - { - - } - - - - - @if (context.IsLast) - { - - 属性 + } + else + { + + } + + + + + @if (context.IsLast) + { + + 属性 - - - 规格 + + + 规格 - - } - - - - - - - - 编辑 - - - - - 删除 - - - - - - - - - - - - - - -
-
+ + } - -
- - - - - - - - - - - - - - - 启用 - - - - - -
+ + 编辑 + + + + + 删除 + + + + + + + + + + + + + + + +
+ + +
+ + + + + + + + + + + + + + + 启用 + + + + + +
+ + @code { - + [Parameter] + public string Locale { get; set; } = string.Empty; [SupplyParameterFromQuery] int? Page { get; set; } @@ -333,4 +345,4 @@ drawerVisible = false; editform.Reset(); } -} \ No newline at end of file +} \ No newline at end of file diff --git a/Atomx.Admin/Atomx.Admin.Client/Pages/Systems/AdminList.razor b/Atomx.Admin/Atomx.Admin.Client/Pages/Systems/AdminList.razor index 47222be..2ebfe2f 100644 --- a/Atomx.Admin/Atomx.Admin.Client/Pages/Systems/AdminList.razor +++ b/Atomx.Admin/Atomx.Admin.Client/Pages/Systems/AdminList.razor @@ -4,12 +4,12 @@ @attribute [Authorize] - + 管理后台 系统功能 - 版本管理 + 管理员管理 diff --git a/Atomx.Admin/Atomx.Admin.Client/Pages/Systems/LanguageList.razor b/Atomx.Admin/Atomx.Admin.Client/Pages/Systems/LanguageList.razor index 0a5e40c..a0080ff 100644 --- a/Atomx.Admin/Atomx.Admin.Client/Pages/Systems/LanguageList.razor +++ b/Atomx.Admin/Atomx.Admin.Client/Pages/Systems/LanguageList.razor @@ -23,11 +23,12 @@ - - - + + + + @if (context.Enabled) @@ -83,10 +84,10 @@
- + - + diff --git a/Atomx.Admin/Atomx.Admin.Client/Pages/Users/UserList.razor b/Atomx.Admin/Atomx.Admin.Client/Pages/Users/UserList.razor index 3c972e0..2f50e5f 100644 --- a/Atomx.Admin/Atomx.Admin.Client/Pages/Users/UserList.razor +++ b/Atomx.Admin/Atomx.Admin.Client/Pages/Users/UserList.razor @@ -1,5 +1,20 @@ -

UserList

+@page "/user/list" +@page "/{locale}/user/list" + + + + + 管理后台 + 内容管理 + 用户列表 + + + +

Tools

+
+
@code { - -} + [Parameter] + public string Locale { get; set; } = string.Empty; +} \ No newline at end of file diff --git a/Atomx.Common/Entities/Language.cs b/Atomx.Common/Entities/Language.cs index 9286d87..ef5c691 100644 --- a/Atomx.Common/Entities/Language.cs +++ b/Atomx.Common/Entities/Language.cs @@ -17,19 +17,19 @@ namespace Atomx.Common.Entities public int Id { get; set; } /// - /// 语言名称 + /// 语言本地化 /// [Column(TypeName = "varchar(50)")] public string Name { get; set; } = string.Empty; /// - /// 语言标题 + /// 语言名称 /// [Column(TypeName = "varchar(50)")] public string Title { get; set; } = string.Empty; /// - /// 语言名称 + /// 语言文化 /// [Column(TypeName = "varchar(25)")] public string Culture { get; set; } = string.Empty;