From 7a07c1b3f120b56e1d6eb014139f0d403a7dab8a Mon Sep 17 00:00:00 2001 From: BlueSky-AI <9901810@qq.com> Date: Wed, 30 Aug 2023 20:10:17 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E8=B7=A8=E5=8C=BA=E5=9F=9F?= =?UTF-8?q?=E6=98=A0=E5=B0=84=E5=AD=97=E6=AE=B5=E6=97=B6=EF=BC=8C=E9=93=BE?= =?UTF-8?q?=E6=8E=A5=E4=B9=9F=E6=98=AF=E4=B8=8D=E5=AF=B9=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Views/Shared/_List_Data_Item.cshtml | 27 ++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/NewLife.CubeNC/Views/Shared/_List_Data_Item.cshtml b/NewLife.CubeNC/Views/Shared/_List_Data_Item.cshtml index f3d745aa..3b828830 100644 --- a/NewLife.CubeNC/Views/Shared/_List_Data_Item.cshtml +++ b/NewLife.CubeNC/Views/Shared/_List_Data_Item.cshtml @@ -166,7 +166,7 @@ else } else { - var val = value; + var val = value; if (!item.MapField.IsNullOrEmpty() && val + "" != "") { if (item.MapProvider != null) @@ -174,7 +174,18 @@ else var name = item.MapProvider.EntityType.Name; var key = item.MapProvider.Key; val = entity[item.MapField]; - @value + //从菜单查找相关 + var menu = Menu.FindForName(@name); + if (menu!=null) + { + //获取控制器名称,拼接全路径 + var fullPath = $"{this.Context.Request.Scheme}://{this.Context.Request.Host}/{menu.ParentNodeName}/{@name}?{@key}={@val}"; + @value + } + else + { + @value + } } else { @@ -192,7 +203,17 @@ else } else { - @value + if (!item.ItemType.IsNullOrEmpty() && item.ItemType.EqualIgnoreCase("file-WebUploader")) + { + + @Html.Partial("_View_ImgView",value) + + } + else + { + @value + } + } } break;