czt
2025-05-30 9bc5f4d58da606c6a465e152d05a1c31b0611f74
igds-dzhwk-web/src/main/resources/static/ruoyi/js/ry-ui.js
@@ -393,6 +393,22 @@
                    });
                });
            },
            // Dorado页面导出数据:url-跳转路径,name-数据名称,param-查询参数
            exportExcelDorado: function(url, name, param) {
                $.modal.confirm("确定导出当前页面" + name + "吗?", function() {
                    $.modal.loading("正在导出数据,请稍候...");
                    $.post(url, param, function(result) {
                        if (result.code == web_status.SUCCESS) {
                            window.location.href = ctx + "common/download?fileName=" + encodeURI(result.msg) + "&delete=" + true;
                        } else if (result.code == web_status.WARNING) {
                            $.modal.alertWarning(result.msg)
                        } else {
                            $.modal.alertError(result.msg);
                        }
                        $.modal.closeLoading();
                    });
                });
            },
            // 下载模板
            importTemplate: function() {
                $.get(activeWindow().table.options.importTemplateUrl, function(result) {
@@ -980,8 +996,8 @@
                top.layer.full(index);
            },
            // 选卡页方式打开
            openTab: function (title, url, isRefresh) {
                createMenuItem(url, title, isRefresh);
            openTab: function (title, url, isRefresh, panelId) {
                createMenuItem(url, title, isRefresh, panelId);
            },
            // 选卡页同一页签打开
            parentTab: function (title, url) {
@@ -1735,11 +1751,11 @@
            },
            // 获取obj对象长度
            getLength: function(obj) {
                var count = 0;  
                var count = 0;
                for (var i in obj) {
                    if (obj.hasOwnProperty(i)) {
                        count++;
                    }  
                    }
                }
                return count;
            },