diff --git a/NewLife.CubeNC/Areas/Admin/Views/Role/SetPermission.cshtml b/NewLife.CubeNC/Areas/Admin/Views/Role/SetPermission.cshtml
index a1d7eb60..d446bfa1 100644
--- a/NewLife.CubeNC/Areas/Admin/Views/Role/SetPermission.cshtml
+++ b/NewLife.CubeNC/Areas/Admin/Views/Role/SetPermission.cshtml
@@ -154,7 +154,7 @@
else
{
- @Html.CheckBox("pc_readonly_" + entity.ID, false, new { @class = "pro_detail", @prochildkey = "pro_" + (Int32)PermissionFlags.Detail + "_" + entity.ID })
+ @Html.CheckBox("pc_readonly_" + entity.ID, false, new { @class = "pro_detail", @prochildkey = "pro_" + (UInt32)PermissionFlags.Detail + "_" + entity.ID })
@Html.Label("pc_readonly_" + entity.ID, "只读")
@Html.CheckBox("pc_all_" + entity.ID, false, new { @class = "pro_all", @prochildkey = "pro_" + (UInt32)PermissionFlags.All + "_" + entity.ID })
diff --git a/NewLife.CubeNC/Views/Shared/_List_Data_Item.cshtml b/NewLife.CubeNC/Views/Shared/_List_Data_Item.cshtml
index f89459b5..98fafc4f 100644
--- a/NewLife.CubeNC/Views/Shared/_List_Data_Item.cshtml
+++ b/NewLife.CubeNC/Views/Shared/_List_Data_Item.cshtml
@@ -169,7 +169,7 @@ else
}
else
{
- var val = value;
+ var val = value;
if (!item.MapField.IsNullOrEmpty() && val + "" != "")
{
if (item.MapProvider != null)
@@ -177,7 +177,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
{
@@ -195,7 +206,17 @@ else
}
else
{
- @value |
+ if (!item.ItemType.IsNullOrEmpty() && item.ItemType.EqualIgnoreCase("file-WebUploader"))
+ {
+
+ @Html.Partial("_View_ImgView",value) |
+
+ }
+ else
+ {
+ @value |
+ }
+
}
}
break;