src/NetCoreBBS/Areas/Admin/Views/Node/Index.cshtml

(开头部分) 2KB

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

@model IEnumerable<TopicNode>

@{
    ViewData["Title"] = "节点管理";
    Layout = "~/Views/Shared/_AdminLayout.cshtml";
}

<h2>节点管理</h2>

<p>
    <a asp-action="Create" asp-route-parentid="0">新增父节点</a>
</p>
<table class="table">
    <thead>
        <tr>
            <th>
                名称
            </th>
            <th>
                节点别名
            </th>
            <th>
                排序
            </th>
            <th>
                父节点
            </th>
            <th>
                描述
            </th>
            <th>
                创建时间
            </th>
            <th></th>
        </tr>
    </thead>
    <tbody>
@foreach (var item in Model.Where(r=>r.ParentId==0).OrderBy(r => r.Order)) {
        <tr>
            <td>
                @Html.DisplayFor(modelItem => item.Name)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.NodeName)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Order)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.ParentId)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Description)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.CreateOn)
            </td>
            <td>
                <a asp-action="Create" asp-route-parentid="@item.Id">新增子节点</a>|
                <a asp-action="Edit" asp-route-id="@item.Id">编辑</a> |
后面还有 33 行代码,解锁后查看完整代码

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

AI 解读

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

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