code/Athena0.0.1/Web/Areas/SystemManage/Views/BootstrapTemplate/Area/Index.cshtml

(开头部分) 4KB

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

@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Index.cshtml";
}
<script>
    $(function () {
        gridList();
    })
    function gridList() {
        var $gridList = $("#gridList");
        $gridList.dataGrid({
            treeGrid: true,
            treeGridModel: "adjacency",
            ExpandColumn: "layers",
            url: "/SystemManage/Area/GetTreeGridJson",
            height: $(window).height() - 126,
            colModel: [
                { label: "主键", name: "id", hidden: true, key: true },
                { label: '名称', name: 'fullname', width: 200, align: 'center' },
                { label: '级别', name: 'layers', width: 200, align: 'center' },
                { label: '编号', name: 'encode', width: 200, align: 'center' }
            ],
            pager: "#gridPager",
            sortname: 'id asc',
            viewrecords: true,
            rowList: [10, 20, 50, 100, 200],
            rowNum: 20
        });
        $("#btn_search").click(function () {
            $gridList.jqGrid('setGridParam', {
                postData: { keyword: $("#txt_keyword").val() },
            }).trigger('reloadGrid');
        });
    }
    function btn_add() {
        $.modalOpen({
            id: "Form",
            title: "新增区域",
            url: "/SystemManage/Area/Form",
            width: "450px",
            height: "340px",
            callBack: function (iframeId) {
                top.frames[iframeId].submitForm();
            }
        });
    }
    function btn_edit() {
        var keyValue = $("#gridList").jqGridRowValue().id;
        $.modalOpen({
            id: "Form",
            title: "修改区域",
            url: "/SystemManage/Area/Form?keyValue=" + keyValue,
            width: "450px",
            height: "340px",
            callBack: function (iframeId) {
                top.frames[iframeId].submitForm();
            }
        });
    }
    function btn_delete() {
后面还有 69 行代码,解锁后查看完整代码

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

AI 解读

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

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