Areas/Admin/Views/System/Table/CategoryTable/CategoryDataAdmin/index.cshtml

(开头部分) 4KB

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

@{
    string layerIndex = Request.QueryString["layerIndex"];
    string table = ViewBag.Table;
    string action = ViewContext.RouteData.Values["action"].ToString();
    CurrentUser currentUser = ViewBag.CurrentUser;
    IEnumerable<dynamic> fieldData = Html.GetFieldList((string)ViewBag.Table, "list", currentUser);
}
<div class="main" id="main" v-cloak>
    <table border=0 cellpadding=0 cellspacing=0 class="tb-head form-inline form-group-sm">
        <tr>
            <td>
                <div class="btn-group btn-group-sm">
                    <el-tooltip effect="dark" content="添加分类数据" placement="bottom-start">
                        <el-button size="small" v-on:click="dialog({title:'添加',url:'@Url.ActionUrl("Add")?table=@(table)&xuhao='+dataList.length,target:'self',width:'90%',height:'90%'})">
                            添加
                        </el-button>
                    </el-tooltip>
                    <el-dropdown>
                        <el-button size="small">
                            功能菜单<i class="el-icon-arrow-down el-icon--right"></i>
                        </el-button>
                        <el-dropdown-menu slot="dropdown">
                            <el-dropdown-item><a href="javascript:void(0)" v-on:click="submit({url:'@Url.ActionUrl("SetField","CommonMethod")?table=@table',data:{ids:getSelectedPropertys(selectList,'Id'),setField:'IsFinal',setValue:0},beforeExecute:function(){return checkSelectedItems(selectList)},success:function(){loadData()},})">转为分类节点</a></el-dropdown-item>
                            <el-dropdown-item><a href="javascript:void(0)" v-on:click="submit({url:'@Url.ActionUrl("SetField","CommonMethod")?table=@table',data:{ids:getSelectedPropertys(selectList,'Id'),setField:'IsFinal',setValue:1},beforeExecute:function(){return checkSelectedItems(selectList)},success:function(){loadData()},})">转为最终节点</a></el-dropdown-item>
                            <el-dropdown-item class="divider"></el-dropdown-item>
                            <el-dropdown-item><a href="javascript:void(0)" v-on:click="dialog({title:'分类转移',url:'@Url.ActionUrl("Transfer","CommonMethod")?table=@(table)&tableType=3&selectedIds='+getSelectedPropertys(selectList,'Id'),beforeExecute:function(){return checkSelectedItems(selectList)},width:'600px',height:'90%',target:'self'})">转移</a></el-dropdown-item>
                            <el-dropdown-item class="divider"></el-dropdown-item>
                            <el-dropdown-item><a href="javascript:void(0)" v-on:click="submit({url:'@Url.ActionUrl("Delete")?table=@table',data:{ids:getSelectedPropertys(selectList,'Id')},confirmMsg:'确定删除吗?',success:loadData,beforeExecute:function(){return checkSelectedItems(selectList)}})">删除</a></el-dropdown-item>
                            <el-dropdown-item class="divider"></el-dropdown-item>
                            <el-dropdown-item><a href="javascript:void(0)" v-on:click="loadData">刷新</a></el-dropdown-item>
                        </el-dropdown-menu>
                    </el-dropdown>
                </div>
            </td>
        </tr>
    </table>
    <div class="table-list-box">
        <template>
            <el-table class="tree_table" ref="multipleTable" :data="dataList" default-expand-all :tree-props="{children:'Children'}" row-key="Id" v-on:selection-change="handleSelectionChange" tooltip-effect="dark" highlight-current-row border style="width: 100%">
                <el-table-column type="selection" align="center" width="40"></el-table-column>
                @{
                    int i = 0;
                    foreach (var item in fieldData)
                    {
                        int fieldId = item.Id;
                        int listWords = StringHelper.Format<int>(item.ListWords);
                        string remark = item.Remark;
                        string field = StringHelper.FirstCharUpper(item.Name);
                        string fieldType = item.FieldType;
                        string valueType = item.ValueType;
                        string width = item.ListWidth;
                        if (!string.IsNullOrEmpty(width) && width != "0")
                        {
                            width = " width=\"" + width + "\" ";
                        }
                        else
                        {
                            width = "";
                        }
                        <el-table-column align="left" label="@remark" @Html.Raw(width) :show-overflow-tooltip="true">

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

AI 解读

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

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