cloud-web-corejs 1.0.121 → 1.0.123

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,7 +5,7 @@
5
5
  :reportTemplate.sync="formTemplate" :conditionParam.sync="conditionParam"
6
6
  :formInsData.sync="formInsData"
7
7
  v-if="showRender" visible-key="showRender" :parent-target="_self" @reload="$baseReload()"
8
- :dataId.sync="dataId" :param="param" @openCopyEditTab="openCopyEditTab"/>
8
+ :dataId.sync="dataId" :param="param" v-bind="$attrs" @openCopyEditTab="openCopyEditTab"/>
9
9
  </div>
10
10
  </div>
11
11
 
@@ -20,7 +20,7 @@
20
20
  v-if="showWfContent && wfContent"
21
21
  :is="wfContent"
22
22
  visible-key="showWfContent"
23
- :_dataId.sync="wfDataId"
23
+ v-bind="param"
24
24
  :_isNotifyMessage="true"
25
25
  :parent-target="_self"
26
26
  @reload="$reloadHandle"
@@ -39,6 +39,7 @@ export default {
39
39
  showWfContent: true,
40
40
  wfContent: null,
41
41
  wfDataId: '',
42
+ param: {},
42
43
  };
43
44
  },
44
45
  methods: {
@@ -72,14 +73,28 @@ export default {
72
73
  let param = this.getUrlParam(turl);
73
74
  let wfDataId = param.dataId;
74
75
 
75
- let url = wfUrl + '.vue';
76
- let id = wfDataId;
77
- this.wfDataId = !id || typeof id == 'object' ? 0 : id;
78
- // this.showWfDialog = true;
79
- this.showWfContent = true;
80
- this.wfContent = require('@/views' + url).default;
76
+ if (wfUrl == 'form') {
77
+ this.param = Object.assign(param, {
78
+ formCode: param.objTypeCode.substr(9),
79
+ dataId: wfDataId
80
+ });
81
+ let url = '/user/form/vform/render.vue';
82
+ this.wfContent = require('@base/views' + url).default;
83
+ } else {
84
+ this.param = Object.assign(param, {
85
+ _dataId: wfDataId
86
+ });
87
+ let url = wfUrl + '.vue';
88
+ let id = wfDataId;
89
+ this.wfDataId = !id || typeof id == 'object' ? 0 : id;
90
+ // this.showWfDialog = true;
91
+ this.showWfContent = true;
92
+ this.wfContent = require('@/views' + url).default;
81
93
 
94
+
95
+ }
82
96
  this.showWfDialog2 = true;
97
+
83
98
  callback && callback();
84
99
  })
85
100
  }