invalidActivateHour.html 1.65 KB
<table id="invalidHour"></table>
<script type="text/javascript">
    $(function () {
        // 列表
        var grid8 = $("#invalidHour");
        grid8.myDatagrid({
            fit: true,
            fitColumns: true,
            nowrap: false,
            url: contextPath + "/ActivateUnionRest/queryInvalidHour",
            method: 'POST',
            queryParams: getId(),
            loadFilter: function (data) {
                debugger;
                var temp = defaultLoadFilter(data);
                temp.rows = temp.list;
                return temp;
            },
            columns: [[{
                title: "时间",
                field: "hourStr",
                width: 100,
                align: "center"
            }, {
                title: "ios无效激活数",
                field: "invalidNumIos",
                width: 180,
                align: "center"
            }, {
                title: "安卓无效激活数",
                field: "invalidNumAndroid",
                width: 120,
                align: "center"
            }]],
            cache: false,
            pageSize: 10,
            pageList: [10],
            singleSelect: false,
            checkOnSelect: false
        });

        function getId() {
            var params = getParam("searchForm");
            params["unionType"] = unionType;
            return params;
        }

    });

    function getParam(table) {
        var paramsArray = $("#"+table+"").serializeArray();
        var params = {};
        for (var i = 0; i < paramsArray.length; i++) {
            params[paramsArray[i].name] = paramsArray[i].value;
        }
        return params;
    }
</script>