diff --git a/ZR.Admin.WebApi/wwwroot/CodeGenTemplate/TplControllers.txt b/ZR.Admin.WebApi/wwwroot/CodeGenTemplate/TplControllers.txt index 0690bb6..a15b37d 100644 --- a/ZR.Admin.WebApi/wwwroot/CodeGenTemplate/TplControllers.txt +++ b/ZR.Admin.WebApi/wwwroot/CodeGenTemplate/TplControllers.txt @@ -70,7 +70,8 @@ $end { var response = _${replaceDto.ModelTypeName}Service.GetFirst(x => x.${replaceDto.PKName} == ${replaceDto.PKName}); - return SUCCESS(response); + var info = response.Adapt<${replaceDto.ModelTypeName}>(); + return SUCCESS(info); } $if(replaceDto.ShowBtnAdd) diff --git a/ZR.Admin.WebApi/wwwroot/CodeGenTemplate/TplService.txt b/ZR.Admin.WebApi/wwwroot/CodeGenTemplate/TplService.txt index a3fb503..dd0e30a 100644 --- a/ZR.Admin.WebApi/wwwroot/CodeGenTemplate/TplService.txt +++ b/ZR.Admin.WebApi/wwwroot/CodeGenTemplate/TplService.txt @@ -1,6 +1,7 @@ using System; using SqlSugar; using Infrastructure.Attribute; +using Infrastructure.Extensions; using ${options.BaseNamespace}Model; using ${options.DtosNamespace}; using ${options.ModelsNamespace}.${options.SubNamespace}; diff --git a/ZR.Admin.WebApi/wwwroot/CodeGenTemplate/v3/TreeVue.txt b/ZR.Admin.WebApi/wwwroot/CodeGenTemplate/v3/TreeVue.txt index f0beb2e..2b888d6 100644 --- a/ZR.Admin.WebApi/wwwroot/CodeGenTemplate/v3/TreeVue.txt +++ b/ZR.Admin.WebApi/wwwroot/CodeGenTemplate/v3/TreeVue.txt @@ -120,9 +120,7 @@ $if(column.HtmlType == "customInput" && column.IsPk == false) $elseif(column.HtmlType == "imageUpload") $elseif(column.HtmlType == "checkbox" || column.HtmlType == "select" || column.HtmlType == "radio") diff --git a/ZR.Admin.WebApi/wwwroot/CodeGenTemplate/v3/Vue.txt b/ZR.Admin.WebApi/wwwroot/CodeGenTemplate/v3/Vue.txt index d2c466e..e79e9c2 100644 --- a/ZR.Admin.WebApi/wwwroot/CodeGenTemplate/v3/Vue.txt +++ b/ZR.Admin.WebApi/wwwroot/CodeGenTemplate/v3/Vue.txt @@ -179,18 +179,7 @@ $if(column.HtmlType == "customInput" && column.IsPk == false) $elseif(column.HtmlType == "imageUpload") $elseif(column.HtmlType == "checkbox" || column.HtmlType.Contains("select") || column.HtmlType == "radio") diff --git a/ZR.Vue/src/views/monitor/job/index.vue b/ZR.Vue/src/views/monitor/job/index.vue index 2976c98..68ff18b 100644 --- a/ZR.Vue/src/views/monitor/job/index.vue +++ b/ZR.Vue/src/views/monitor/job/index.vue @@ -4,8 +4,14 @@ - + 搜索 @@ -25,10 +31,13 @@ 删除 --> - 导出 + 导出 - 日志 + 日志 @@ -45,29 +54,77 @@ @@ -79,7 +136,7 @@ -
{{form.id}}
+
{{ form.id }}
@@ -89,7 +146,7 @@ - + @@ -164,12 +221,12 @@ 开始日期 - + - + @@ -191,14 +248,14 @@ - + -

{{item.jobMessage}}

-

{{item.exception}}

+

{{ item.jobMessage }}

+

{{ item.exception }}

@@ -207,17 +264,7 @@ diff --git a/ZR.Vue/src/views/monitor/onlineuser/index.vue b/ZR.Vue/src/views/monitor/onlineuser/index.vue new file mode 100644 index 0000000..3525132 --- /dev/null +++ b/ZR.Vue/src/views/monitor/onlineuser/index.vue @@ -0,0 +1,3 @@ +