#
luxiaotao1123
2020-06-17 5d176257d7a7dfe1330dd02c1e869c1d45ff887f
src/main/webapp/static/js/report/stayTime.js
@@ -11,7 +11,7 @@
    tableIns = table.render({
        elem: '#stayTime',
        headers: {token: localStorage.getItem('token')},
        url: '/report/viewStayTimeList.action',
        url: baseUrl+'/report/viewStayTimeList.action',
        page: true,
        limit: 16,
        toolbar: '#toolbar',
@@ -49,7 +49,7 @@
        },
        done: function(res, curr, count) {
            if (res.code === 403) {
                top.location.href = "/";
                top.location.href = baseUrl+"/";
            }
            pageCurr=curr;
            limit();
@@ -71,7 +71,7 @@
            },
            done: function (res, curr, count) {
                if (res.code === 403) {
                    top.location.href = "/";
                    top.location.href = baseUrl+"/";
                }
                pageCurr=curr;
                limit();
@@ -84,7 +84,7 @@
        var checkStatus = table.checkStatus(obj.config.id);
        switch(obj.event) {
            case 'exportData':
                layer.confirm('确定导出Excel吗', function(){
                layer.confirm('确定导出Excel吗', {shadeClose: true}, function(){
                    var titles=[];
                    var fields=[];
                    obj.config.cols[0].map(function (col) {
@@ -97,7 +97,7 @@
                        'fields': fields
                    };
                    $.ajax({
                        url: "/report/viewStayTimeExport.action",
                        url: baseUrl+"/report/viewStayTimeExport.action",
                        headers: {'token': localStorage.getItem('token')},
                        data: JSON.stringify(param),
                        dataType:'json',
@@ -108,7 +108,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)
                            }
@@ -143,7 +143,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) {