Assign.cshtml 1.28 KB
@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@section header
    {
    <link rel="stylesheet" href="/css/treetable.css" />
}

<div class="layui-row">
    <div class="layui-col-xs3">
        <ul id="tree" class="ztree"
            style="padding: 2px; border: 1px solid #ddd; overflow: auto;"></ul>
    </div>
    <div class="layui-col-xs9">
        <table class="layui-table"
               lay-data="{height: 'full-60', page:false, id:'mainList'}"
               lay-filter="list" lay-size="sm">
            <thead>
                <tr>
                    <th lay-data="{checkbox:true, fixed: true}"></th>
                    <th lay-data="{field:'AreaMenus', width:70}">区域</th>
                    <th lay-data="{field:'Name', width:150}">菜单名称</th>
                    <th lay-data="{field:'DomId', width:150}">DomID</th>
                    <th lay-data="{templet:'#icontmpl', width:150}">按钮图标</th>
                </tr>
            </thead>
        </table>
        <script type="text/html" id="icontmpl">
            <i class="layui-icon" style="font-size: 20px; color: #1E9FFF;">{{ d.Icon }}</i>
        </script>
    </div>
</div>

<script type="text/javascript" src="/layui/layui.js"></script>
<script type="text/javascript" src="/productjs/base/assignModule.js"></script>