Jelajahi Sumber

报表BUG处理

guq 7 tahun lalu
induk
melakukan
ec4710fd12

+ 1 - 2
frontend/saas-web/app/view/core/form/FormPanelController.js

@@ -449,8 +449,7 @@ Ext.define('saas.view.core.form.FormPanelController', {
                 userName = data.userName,
                 whereCondition = data.whereCondition,
                 companyId = saas.util.BaseUtil.getCurrentUser().companyId;
-                var url = printurl + '?' + 'reportName=' + reportName + '&' + 'companyId=' + companyId + '&whereCondition=' + whereCondition +
-                userName ? '&userName=' + userName : "";
+                var url = printurl + '?' + 'reportName=' + reportName + '&' + 'companyId=' + companyId + '&whereCondition=' + whereCondition + (userName ? '&userName=' + userName : "");
     
                 window.open(url);
             }).catch(function(res) {