Master.CanYinWu.Web/Views/Admin/SetMenu.cshtml

(开头部分) 6KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。


@{
    Layout = null;
}
@using Master.CanYinWu.Entity;
@model Admin
<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>SetMenu</title>
    <link href="~/Content/layui/css/layui.css" rel="stylesheet" />  
</head>
<body>
    <div style="height:20px;width:100%;margin-left:10px;font-size:16px; margin-top:10px;">当前所选用户:<span style="color:#009688;padding-left:10px;">@Model.UserName</span></div>  
        <div>
            <input type="hidden" value="@Model.AdminId" id="hidUserId" />
            <table class="layui-table">
                <colgroup>
                    <col width="150">
                    <col width="150">
                    <col width="200">
                    <col>
                </colgroup>
                <thead>
                    <tr>
                        <th>权限Id</th>
                        <th>权限名称</th>
                        <th>权限类型</th>
                        <th>权限的url地址</th>
                        <th>HttpMethod</th>
                        <th>操作</th>
                    </tr>
                </thead>
                @{
                    List<Menu> allActions = ViewBag.AllActions;
                    List<Permission> allExist = ViewBag.AllExistActions;
                }
                @foreach (var item in allActions)
                {
                    string name = "ckb_" + item.MenuId;
                    var currentRAU = allExist.Where(a => a.MenuId == item.MenuId).FirstOrDefault();
                    <tr>
                        <td>@item.MenuId</td>
                        <td>@item.MenuName</td>
                        <td>
                            @if (item.MenuType == 0)
                            {
                                <span>普通权限</span>
                            }
                            else
                            {
                                <span>菜单权限</span>
                            }
                        </td>
                        <td>@item.MenuUrl</td>
                        <td>@item.HttpMethod</td>
                        <td>
                            @if (currentRAU != null)
                            {
后面还有 66 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。