From 4b64ffda398cd39bf0cad3a872bd0575c5f38eb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8D=E5=81=9A=E7=A0=81=E5=86=9C?= <599854767@qq.com> Date: Thu, 18 Nov 2021 09:41:25 +0800 Subject: [PATCH 1/5] =?UTF-8?q?fix=20sqlserver=E5=9F=BA=E7=A1=80=E6=95=B0?= =?UTF-8?q?=E6=8D=AEsys=5Fdept=E5=88=97=E4=B8=8D=E5=8C=B9=E9=85=8D?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- document/admin-sqlserver.sql | Bin 111694 -> 110330 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/document/admin-sqlserver.sql b/document/admin-sqlserver.sql index 2d60ad394c88dcc22eb328af0c05fc0d913be057..7d258206428c456714d78f5fa27433b26163c82a 100644 GIT binary patch delta 551 zcmX^2g6-E`Hn#u&bQyFRHZs{rPF7RWn4BitY#ICJV?3 z0lAKH?r=pLrix8|Ak8)TleEP27z;+O$p$hyIF#&=m6&XyY=%YFK#^;*gccvC0)qmB zA%hNs!em7m>&XVq8j}?y0JA$mj(!4y5eg^l6(IwWeR&z^JiZZ!@C;BLMf&r>Fn` delta 1226 zcmex$m+jmOHm3joHnQ1BPBs!2ntVt`M?Hrjl_8NK1xOY#=rAZS6fk5k)`IrnsEIAHfh2n0ysO(PT$k$>|Di zj9im9$mvX;u!d)H-y)957u-1}%iYkJ93Uk}fkPA+)hGXzl4nM@X8H$nMh_~Ottmqb zvnTD5n*2b4O%WD&A{7^dUrcy06~Z@!1}XLZgl;cWoK-l&UL#uD3yiCc@}k_vbg<{X zf+)8M&Fr~!MQSpi5*yGzAbV&RZc56a^lhz7i!=!J0~u*hV{(BB$K(P*mg(O-7}X}v zGvS)NMwO$POLaS!D&r-k$?uAFWc3+}8A^b~MhURsNM_In7Ac7gl?-|eSwL3$_S^1^ z|C1*F5)_&KZWW`>o From 0197c238ebf0138ad5cbe7850d20b4bff06c985e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8D=E5=81=9A=E7=A0=81=E5=86=9C?= <599854767@qq.com> Date: Thu, 18 Nov 2021 10:10:04 +0800 Subject: [PATCH 2/5] =?UTF-8?q?fix=20=E7=94=9F=E6=88=90=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/CodeGeneratorController.cs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/ZR.Admin.WebApi/Controllers/CodeGeneratorController.cs b/ZR.Admin.WebApi/Controllers/CodeGeneratorController.cs index cb778a8..e503f8e 100644 --- a/ZR.Admin.WebApi/Controllers/CodeGeneratorController.cs +++ b/ZR.Admin.WebApi/Controllers/CodeGeneratorController.cs @@ -90,8 +90,11 @@ namespace ZR.Admin.WebApi.Controllers var genTableInfo = GenTableService.GetGenTableInfo(dto.TableId); genTableInfo.Columns = GenTableColumnService.GenTableColumns(dto.TableId); - Dictionary options = JsonConvert.DeserializeObject>(genTableInfo.Options); - dto.ParentMenuId = (long)options.GetValueOrDefault("parentMenuId", 0); + if (!string.IsNullOrEmpty(genTableInfo.Options)) + { + Dictionary options = JsonConvert.DeserializeObject>(genTableInfo.Options); + dto.ParentMenuId = (long)options.GetValueOrDefault("parentMenuId", 0); + } dto.GenTable = genTableInfo; //生成代码 CodeGeneratorTool.Generate(genTableInfo, dto); @@ -176,9 +179,9 @@ namespace ZR.Admin.WebApi.Controllers ClassName = CodeGeneratorTool.GetClassName(tableName), BusinessName = CodeGeneratorTool.GetClassName(tableName), FunctionAuthor = ConfigUtils.Instance.GetConfig(GenConstants.Gen_author), - FunctionName = tabInfo.Description, + FunctionName = string.IsNullOrEmpty(tabInfo.Description) ? tableName : tabInfo.Description, TableName = tableName, - TableComment = tabInfo.Description, + TableComment = string.IsNullOrEmpty(tabInfo.Description) ? tableName : tabInfo.Description, Create_by = userName, }; genTable.TableId = GenTableService.ImportGenTable(genTable); From 8efb720fa04166359408144653205f8042155196 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8D=E5=81=9A=E7=A0=81=E5=86=9C?= <599854767@qq.com> Date: Thu, 18 Nov 2021 10:10:37 +0800 Subject: [PATCH 3/5] =?UTF-8?q?=E4=BF=AE=E6=94=B9Controller=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF=E7=94=9F=E6=88=90=E6=9F=A5=E8=AF=A2=E6=96=B9=E6=B3=95?= =?UTF-8?q?=E5=A4=87=E6=B3=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ZR.Admin.WebApi/wwwroot/CodeGenTemplate/ControllersTemplate.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ZR.Admin.WebApi/wwwroot/CodeGenTemplate/ControllersTemplate.txt b/ZR.Admin.WebApi/wwwroot/CodeGenTemplate/ControllersTemplate.txt index 97bb3b0..27824d5 100644 --- a/ZR.Admin.WebApi/wwwroot/CodeGenTemplate/ControllersTemplate.txt +++ b/ZR.Admin.WebApi/wwwroot/CodeGenTemplate/ControllersTemplate.txt @@ -49,7 +49,7 @@ namespace {ApiControllerNamespace}.Controllers //开始拼装查询条件 var predicate = Expressionable.Create<{ModelName}>(); - //TODO 搜索条件 + //TODO 自己实现搜索条件查询语法参考Sqlsugar,默认查询所有 //predicate = predicate.And(m => m.Name.Contains(parm.Name)); var response = _{ModelName}Service.GetPages(predicate.ToExpression(), parm); From bfeef85dee6f888c0e035b0d966cc2a4ec2b6441 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8D=E5=81=9A=E7=A0=81=E5=86=9C?= <599854767@qq.com> Date: Thu, 18 Nov 2021 10:16:45 +0800 Subject: [PATCH 4/5] =?UTF-8?q?=E4=BF=AE=E6=94=B9ASPNETCORE=5FENVIRONMENT?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E4=B8=BA=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ZR.Admin.WebApi/Properties/launchSettings.json | 2 +- ZR.Admin.WebApi/appsettings.json | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ZR.Admin.WebApi/Properties/launchSettings.json b/ZR.Admin.WebApi/Properties/launchSettings.json index c5c2293..365059a 100644 --- a/ZR.Admin.WebApi/Properties/launchSettings.json +++ b/ZR.Admin.WebApi/Properties/launchSettings.json @@ -19,7 +19,7 @@ "commandName": "Project", "launchBrowser": true, "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Stage" + "ASPNETCORE_ENVIRONMENT": "" }, "applicationUrl": "https://localhost:5001;http://localhost:5000" } diff --git a/ZR.Admin.WebApi/appsettings.json b/ZR.Admin.WebApi/appsettings.json index 51eede7..8b29429 100644 --- a/ZR.Admin.WebApi/appsettings.json +++ b/ZR.Admin.WebApi/appsettings.json @@ -7,11 +7,11 @@ } }, "ConnectionStrings": { - "conn_zrAdmin": "server=127.0.0.1;user=zr;pwd=abc;database=admin", - "conn_bus": "server=127.0.0.1;user=zr;pwd=abc;database=admin" + "conn_zrAdmin": "server=LAPTOP-STKF2M8H\\SQLEXPRESS;uid=sa;pwd=zradmin123;database=ZrAdmin;Trusted_Connection=SSPI", + "conn_bus": "server=LAPTOP-STKF2M8H\\SQLEXPRESS;uid=zr;pwd=zradmin123;database=ZrAdmin;Trusted_Connection=SSPI" }, - "conn_zrAdmin_type": 0, //MySql = 0, SqlServer = 1 - "conn_bus_type": 0, + "conn_zrAdmin_type": 1, //MySql = 0, SqlServer = 1 + "conn_bus_type": 1, "urls": "http://localhost:8888", //Ŀurl "sysConfig": { "DBCommandTimeout": 10, @@ -30,8 +30,8 @@ "SECRET": "XX" }, "gen": { - "conn": "server=127.0.0.1;user=zr;pwd=abc;database={database}", - "dbType": 0, //MySql = 0, SqlServer = 1 + "conn": "server=LAPTOP-STKF2M8H\\SQLEXPRESS;user=zr;pwd=abc;database={database};Trusted_Connection=SSPI", + "dbType": 1, //MySql = 0, SqlServer = 1 "autoPre": true, //Զȥǰ׺ "author": "zr", "tablePrefix": "live_,sys_" //"ǰ׺ǰ׺öŷָ", From db75c7c5987d0fb9f137ca1bb0ff1795a9517826 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8D=E5=81=9A=E7=A0=81=E5=86=9C?= <599854767@qq.com> Date: Thu, 18 Nov 2021 13:58:11 +0800 Subject: [PATCH 5/5] =?UTF-8?q?=E5=8F=91=E9=80=81=E9=82=AE=E4=BB=B6?= =?UTF-8?q?=E6=96=87=E6=9C=AC=E8=AF=A5=E7=94=A8=E5=AF=8C=E6=96=87=E6=9C=AC?= =?UTF-8?q?=E5=B7=A5=E5=85=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ZR.Vue/src/views/system/notice/index.vue | 185 +++++++--------------- ZR.Vue/src/views/tool/email/sendEmail.vue | 7 +- 2 files changed, 65 insertions(+), 127 deletions(-) diff --git a/ZR.Vue/src/views/system/notice/index.vue b/ZR.Vue/src/views/system/notice/index.vue index 3160e37..a2e73b4 100644 --- a/ZR.Vue/src/views/system/notice/index.vue +++ b/ZR.Vue/src/views/system/notice/index.vue @@ -2,31 +2,14 @@
- + - + - + @@ -37,33 +20,15 @@ - 新增 + 新增 - 修改 + 修改 + - 删除 + 删除 + @@ -71,26 +36,9 @@ - - - + + + \ No newline at end of file diff --git a/ZR.Vue/src/views/tool/email/sendEmail.vue b/ZR.Vue/src/views/tool/email/sendEmail.vue index 684de53..aa5413b 100644 --- a/ZR.Vue/src/views/tool/email/sendEmail.vue +++ b/ZR.Vue/src/views/tool/email/sendEmail.vue @@ -9,11 +9,12 @@ - + - + 选择文件 上传到服务器 @@ -27,9 +28,11 @@