BXXT/Content/Script/Admin.js

(开头部分) 5KB

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

/// <reference path="../jquery-easyui-1.3.6/jquery.min.js" />
/// <reference path="../jquery-easyui-1.3.6/jquery.easyui.min.js" />
//进行子页js初始化
function InitChild()
{
    //绑定修改密码按钮
    $("#alert-pwd").click(function () {
        $('#alertpwd').form('submit', {
            success: function (data) {
                var Ret = $.parseJSON(data);
                if (Ret.Ret == false) {
                    $.messager.alert('提示', Ret.RetMsg);
                } else {
                    $.messager.alert('提示', "提交成功");
                }
            }
        });
    });

    //绑定载入维修工信息按钮
    $("#QueryGuy").click(function () {
        $('#ShowGuy').datagrid({
            url: "/AdminAjaxService/QueryGuy",
            columns: [[
                { field: 'id', title: '帐号', width: 100 },
                { field: 'name', title: '姓名', width: 100 },
                { field: 'phone', title: '联系电话', width: 100, align: 'right' }
            ]]
        });
    });

    //绑定载入公告信息按钮
    $("#QueryNews").click(function () {
        $('#ShowNews').datagrid({
            url: "/AdminAjaxService/QueryNews",
            columns: [[
                { field: 'id', title: '编号', width: 100 },
                { field: 'type', title: '类型', width: 100 },
                { field: 'title', title: '标题', width: 100 },
                { field: 'content', title: '时间', width: 100 },
                { field: 'time', title: '时间', width: 100, align: 'right' }
            ]]
        });
    });
    //绑定查看维修工信息
    $("#AlertInfo").click(function () {
        $(".ShowSkills").prop("checked",false);
        if ($('#ShowGuy').datagrid("getSelected") != null) {
            var row = $('#ShowGuy').datagrid("getSelected");//取出选中行
            $.post("/AdminAjaxService/GetGuyInfo", { Id: row.id }, function (data) {
                
                $(data.Skills).each(function (index, item) {
                    $(".ShowSkills[value=" + item + "]").prop("checked", true);
                });
            });
            $("#ShowInfo").dialog('open');
        } else {
            $.messager.alert('提示', "您还没有选中维修工");
        }
    });
后面还有 107 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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