WebUI/AchieveManageWeb/Views/Button/Index.cshtml

(开头部分) 13KB

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

@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>按钮管理</title>
    <link href="~/Scripts/jquery-easyui-1.4.4/themes/bootstrap/easyui.css" rel="stylesheet" />
    <script src="~/Scripts/jquery-easyui-1.4.4/jquery.min.js"></script>
    <script src="~/Scripts/jquery-easyui-1.4.4/jquery.easyui.min.js"></script>
    <script src="~/Scripts/jquery-easyui-1.4.4/locale/easyui-lang-zh_CN.js"></script>
    <link href="~/Content/themes/icon.css" rel="stylesheet" />
    <script src="~/Content/js/common.js"></script>
    <link href="~/Content/themes/table.css" rel="stylesheet" />
    <script type="text/javascript">
        $(function () {
            $.ajax({     //请求当前用户可以操作的按钮
                url: "/Button/GetUserAuthorizeButton?r=" + Math.random(),
                type: "post",
                data: { "KeyCode": "button", "KeyName": "Button" },
                dataType: "json",
                timeout: 5000,
                success: function (data) {
                    if (data.success) {
                        var toolbar = getToolBar(data);      //common.js
                        if (data.search) {     //判断是否有浏览权限
                            $("#ui_button_dg").datagrid({       //初始化datagrid
                                url: "/Button/GetAllButtonInfo",
                                striped: true, rownumbers: true, pagination: true, pageSize: 20, singleSelect: true,
                                idField: 'Id',
                                sortName: 'Sort',
                                sortOrder: 'asc',
                                pageList: [20, 40, 60, 80, 100],
                                frozenColumns: [[
                                                 { field: 'Name', title: '按钮名称', width: 100 }
                                ]],
                                columns: [[
                                           { field: 'Code', title: '标识码', width: 120 },
                                           { field: 'Icon', title: '图标', width: 150 },
                                           { field: 'Sort', title: '排序', sortable: true, width: 80 },
                                           { field: 'UpdateTime', title: '最后更新时间', width: 130 },
                                           { field: 'UpdateBy', title: '最后更新人', width: 130 },
                                           {
                                               field: 'Description', title: '描述', width: 250,
                                               formatter: function (value, row, index) {
                                                   return value.length > 20 ? '<span title="' + value + '">' + value + '</span>' : value;
                                               }
                                           }
                                ]],
                                toolbar: toolbar.length == 0 ? null : toolbar
                            });
                        }
                        else {
                            $.show_alert("提示", "无权限,请联系管理员!");
                        }
                    } else {
                        $.show_alert("错误", data.result);
后面还有 221 行代码,购买后查看完整代码

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

AI 解读 AI

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

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