RedisWrite/bin/Debug/Areas/Admin/Scripts/User/index.js

(开头部分) 5KB

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

$(function () {
    window.pageInit = function () {
        var viewData = {};
        var initDataTable = function () {
            $('#jqDataTable').dataTable({
                "sort": false,
                //"order": [1, "desc"],
                "autoWidth": false,
                "destroy": true,
                "processing": true,
                "serverSide": true,
                "ajax": {
                    "url": "/Admin/User/GetListByPage",
                    "type": "POST",
                    "data": function (obj) {
                        obj.__RequestVerificationToken = $("input[name='__RequestVerificationToken']").val();
                        obj.login_id = viewData.login_id() || "";
                        obj.mobile = viewData.mobile() || "";
                    },
                    "sortable": false
                },
                "columns": [
                    {
                        "data": null,
                        createdCell: function (nTd, sData, oData, iRow) {
                            var startnum = this.api().page() * (this.api().page.info().length);
                            $(nTd).html(iRow + 1 + startnum);
                        },
                        "sortable": false
                    },
                    { "data": "login_id" },
                    { "data": "userName" },
                    { "data": "mobile", "className": "text-center" },
                    { "data": "user_class", "className": "text-center" },
                    { "data": "isCaptcha", "className": "text-center" },
                    { "data": "isActive", "className": "text-center" },
                    { "data": "updateUtc", "className": "text-center" },
                    { "data": "userId", "className": "text-center" }
                ],
                "columnDefs": [

                    {
                        "targets": [4],
                        "data": "user_cust_id",
                        "render": function (data, type, full) {
                            if (data == "3") {
                                return "<i class=\"badge icon-ok badge-success\">是</i>";
                            }
                            return "<i class=\"badge icon-remove badge-default\">否</i>";
                        }
                    }, {
                        "targets": [5],
                        "data": "isCaptcha",
                        "render": function (data, type, full) {
                            if (data) {
                                return "<i class=\"badge icon-ok badge-success\">是</i>";
                            }
                            return "<i class=\"badge icon-remove badge-default\">否</i>";
                        }
                    }, {
后面还有 94 行代码,购买后查看完整代码

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

AI 解读

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

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