|
|
@@ -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);
|