Browse Source

广东导出bug

vian 5 years ago
parent
commit
b946b4fab0
1 changed files with 2 additions and 2 deletions
  1. 2 2
      web/building_saas/main/js/views/export_view.js

+ 2 - 2
web/building_saas/main/js/views/export_view.js

@@ -205,7 +205,7 @@ const ExportView = (() => {
         //设置工程编号
         $('#exportCode').on('shown.bs.modal', function () {
             let projectData = null;
-            if(SEIObject.exporting == true){//如果是重庆指标接口调用的
+            if(typeof SEIObject !== 'undefined' && SEIObject.exporting == true){//如果是重庆指标接口调用的
                 if(SEIObject.fileCache && SEIObject.fileCache.length == 2){
                     projectData = SEIObject.fileCache[0].projectData;
                 }else{
@@ -239,7 +239,7 @@ const ExportView = (() => {
                 STATE.confirming = false;
                 return false;
             }
-            SEIObject.exporting?await exportUtil.exprotZBFX(codes):await handleExportConfirm(codes);
+            typeof SEIObject !== 'undefined' && SEIObject.exporting ? await exportUtil.exprotZBFX(codes) : await handleExportConfirm(codes);
         });
         //导出窗口--------
         $('#export').on('hide.bs.modal', function() {