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;