日期:2014-05-17  浏览次数:20457 次

请教EasyuI $.post如何带上页面参数

        function TableInit() {

            $('#dg').datagrid({
                toolbar: "#toolBar",
                title: "报表查询",
                loadMsg: '正在加载信息...',
                iconCls: "icon-grid",
                singleSelect: true,
                striped: true,
                fitColumns: true,
                singleSelect: true,
                pagination: true,
                rownumbers: false,
                pageSize: 15,
                pageList: [15, 20, 30, 40, 50],
                columns: [[]],
                onLoadError: function () {
                    $.messager.alert('查询出错', '加载数据出错');
                },
                onLoadSuccess: function (data) {
                    if (data.rows.length == 0) {
                        var body = $(this).data().datagrid.dc.body2;
                        body.find('table tbody').append('<tr><td width="' + body.width() + '" style="height: 25px; text-align: center; color:Red;">没有数据</td></tr>');
                    }

                }
            });
        }

        function Search() {

            if (!DateCheck()) {
                return;
            }