#
luxiaotao1123
2020-06-06 cf43493d7aa9c1a83cb1551c102f501f1dfde9b0
src/main/webapp/static/js/report/inOut.js
@@ -11,7 +11,7 @@
    tableIns = table.render({
        elem: '#inOut',
        headers: {token: localStorage.getItem('token')},
        url: '/report/viewInOutList.action',
        url: baseUrl+'/report/viewInOutList.action',
        page: true,
        limit: 10,
        toolbar: '#toolbar',
@@ -41,7 +41,7 @@
        },
        done: function(res, curr, count) {
            if (res.code === 403) {
                top.location.href = "/";
                top.location.href = baseUrl;
            }
            pageCurr=curr;
            limit();
@@ -63,7 +63,7 @@
            },
            done: function (res, curr, count) {
                if (res.code === 403) {
                    top.location.href = "/";
                    top.location.href = baseUrl;
                }
                pageCurr=curr;
                limit();
@@ -89,7 +89,7 @@
                        'fields': fields
                    };
                    $.ajax({
                        url: "/report/viewInOutList.action",
                        url: baseUrl+"/report/viewInOutList.action",
                        headers: {'token': localStorage.getItem('token')},
                        data: JSON.stringify(param),
                        dataType:'json',
@@ -101,7 +101,7 @@
                            if (res.code === 200) {
                                table.exportFile(titles,res.data,'xls');
                            } else if (res.code === 403) {
                                top.location.href = "/";
                                top.location.href = baseUrl;
                            } else {
                                layer.msg(res.msg)
                            }
@@ -136,7 +136,7 @@
        },
        done: function (res, curr, count) {
            if (res.code === 403) {
                top.location.href = "/";
                top.location.href = baseUrl;
            }
            pageCurr=curr;
            if (res.data.length === 0 && count !== 0) {