Przeglądaj źródła

1.1.13 修复流程报表bug

liuyanpeng 1 rok temu
rodzic
commit
55662fa4d5
2 zmienionych plików z 22 dodań i 16 usunięć
  1. 1 1
      package.json
  2. 21 15
      packages/process/src/ProcessReport.vue

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "pc-component-v3",
-  "version": "1.1.12",
+  "version": "1.1.13",
   "description": "",
   "main": "dist/pc-component-v3.js",
   "scripts": {

+ 21 - 15
packages/process/src/ProcessReport.vue

@@ -15,6 +15,7 @@
 
 <script>
 
+import { message } from 'ant-design-vue';
 import Common from '../../common/Common.js';
 import ProcessReportDynamic from './ProcessReportDynamic.vue';
 import ProcessReportStatic from './ProcessReportStatic.vue';
@@ -69,22 +70,27 @@ export default {
           no: _self.processReportNo,
         },
         success: function (data) {
-          console.log('参数结果' + data.reportType);
-          _self.reportType = data.reportType;
-
-          if (data.processReportParameters) {
-            data.processReportParameters.forEach(function (item) {
-              if (item.fieldValue == undefined) {
-                item.fieldValue = {
-                  id: '',
-                  displayValue: [],
-                  fieldType: 'String',
-                };
-              }
-            });
-          }
+          if(data.errorCode === 0){
+            console.log('参数结果' + data.data.reportType);
+            _self.reportType = data.data.reportType;
+  
+            if (data.data.processReportParameters) {
+              data.data.processReportParameters.forEach(function (item) {
+                if (item.fieldValue == undefined) {
+                  item.fieldValue = {
+                    id: '',
+                    displayValue: [],
+                    fieldType: 'String',
+                  };
+                }
+              });
+            }
+  
+            _self.processReportDto = data.data;
 
-          _self.processReportDto = data;
+          } else{
+            message.warning(data.errorMessage);
+          }
         },
         error: function (XMLHttpRequest, textStatus, errorThrown) {
           Common.processException(XMLHttpRequest, textStatus, errorThrown);