BBSWeb/Scripts/Users/UserList.js

(开头部分) 7KB

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

var user_p = 1; //当前页
var userPageTotal = 1;  //总页数
var IsDelete = false;
var _SearchUserCop;     //用户公司
var _SearchUserDepart;  //用户部门
var _SearchUserName;    //用户姓名

//************搜索使用的公司列表********************
$.get("/Services/Users/CopList.asmx/AgentList", function (data) {
    $(data).find("Table").each(function () {
        _temp = $(this);
        var tempid = _temp.find("Id").text();
        var tempstr = _temp.find("Title").text();
        $("<option value='" + tempid + "'>" + tempstr + "</option>").appendTo($("#ddlAgent"));
    });
});

//搜索使用的部门列表
$("#ddlAgent").change(function () {
    $("#ddlDep").empty();
    if ($("#ddlAgent").val() != '0') {
        $.get("/Services/Users/CopList.asmx/GetStoreByTitle", { pid: $("#ddlAgent option[selected]").val() }, function (data) {
            $("<option value='0'>-请选择部门-</option>").appendTo($("#ddlDep"));
            $(data).find("Table").each(function () {
                _temp = $(this);
                var tempstr = _temp.find("Title").text();
                $("<option value='" + tempstr + "'>" + tempstr + "</option>").appendTo($("#ddlDep"));
            });
        });
    }
    if ($("#ddlAgent").val() == "0")
        $("<option value='0'>-请选择部门-</option>").appendTo($("#ddlDep"));
});

var _userid;
///详细页面js
if (typeof (ShowStaffDetail) == "undefined") {
    $.getScript("/Script/StaffDetail.js");
}

function initData(p) {
    $("#userList_mainList").jqGrid({
        url: "",
        datatype: "local",
        colNames: ['编号', '姓名', '个人电话', '所属公司', '所属部门', '邮箱', '入职时间', '最后登陆时间', '操作'],
        colModel: [
   		    { name: 'UserId', index: 'UserId', width: 70, align: "center" },
   		    { name: 'UserName', index: 'UserName', formatter: transUser, width: 80, align: "center" },
   		    { name: 'Mobile', index: 'Mobile', width: 82, align: "center" },
   		    { name: 'Agent', index: 'Agent', formatter: transCop, width: 220, align: "center" },
   		    { name: 'Depart', index: 'Depart', width: 150, formatter: transGroupNo, align: "center" },
   		    { name: 'Email', index: 'Email', width: 100, align: "center" },
   		    { name: 'EntryTime', index: 'EntryTime', width: 100, formatter: transDate, align: "center" },
   		    { name: 'LastLoginTime', index: 'LastLoginTime', width: 100, formatter: transDate, align: "center" },
   		    { name: 'userOp', index: 'userOp', formatter: transOp, width: 100, align: "center" }
   	    ],
        rowNum: 20,
        hoverrows: true,
        rowList: [15, 20, 25, 30, 35, 40, 45, 50],
        pager: '#pager2',
后面还有 150 行代码,购买后查看完整代码

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

AI 解读 AI

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

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