自动化立体仓库 - WMS系统
lty
8 天以前 539a56279625242c497b4b4093f2defbb9d80334
src/main/webapp/static/js/locDetl/locDetl.js
@@ -85,6 +85,9 @@
            }
            if (typeof I18n !== 'undefined') {
                I18n.updatePage($('.layui-table-tool'));
                setTimeout(function() {
                    I18n.updateLayuiPagination();
                }, 50);
            }
            pageCurr=curr;
            limit();
@@ -115,6 +118,12 @@
            done: function (res, curr, count) {
                if (res.code === 403) {
                    top.location.href = baseUrl+"/";
                }
                if (typeof I18n !== 'undefined') {
                    I18n.updatePage($('.layui-table-tool'));
                    setTimeout(function() {
                        I18n.updateLayuiPagination();
                    }, 50);
                }
                pageCurr=curr;
                limit();
@@ -469,10 +478,23 @@
    });
    // 监听i18n更新事件,重新渲染表格
    $(document).on('i18n:updated', function() {
        table.reload('locDetl', {
            cols: [getCol()]
    // 监听语言切换事件
    $(document).on('i18n:languageChanged', function() {
        tableIns.reload({
            cols: [getCol()],
            text: {
                none: I18n.t('no_data')
            },
            done: function(res, curr, count) {
                if (typeof I18n !== 'undefined') {
                    I18n.updatePage($('.layui-table-tool'));
                    setTimeout(function() {
                        I18n.updateLayuiPagination();
                    }, 50);
                }
                pageCurr=curr;
                limit();
            }
        });
    });
});
@@ -497,6 +519,12 @@
            if (res.code === 403) {
                top.location.href = baseUrl+"/";
            }
            if (typeof I18n !== 'undefined') {
                I18n.updatePage($('.layui-table-tool'));
                setTimeout(function() {
                    I18n.updateLayuiPagination();
                }, 50);
            }
            pageCurr=curr;
            if (res.data.length === 0 && count !== 0) {
                tableIns.reload({