mooho-base-admin-plus 0.4.59 → 0.4.60

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mooho-base-admin-plus",
3
3
  "description": "MOOHO basic framework for admin by Vue3",
4
- "version": "0.4.59",
4
+ "version": "0.4.60",
5
5
  "author": "jinyifan <jinyifan@mooho.com.cn>",
6
6
  "dotnetVersion": "1.4.0",
7
7
  "license": "MIT",
@@ -136,17 +136,7 @@
136
136
  this.model = await modelApi.get(applicationType.model, row.processInst.modelID);
137
137
  }
138
138
 
139
- this.form = this.$refs.customComponent.form;
140
- this.form.data = this.model;
141
- this.form.onDataChange();
142
- this.form.clearValidate();
143
- this.readonly = !this.task.activityInst.activity.isEditable;
144
-
145
- // if (this.form.formView) {
146
- // this.width = this.form.formView.width || '800';
147
- // this.name = this.form.formView.name;
148
- // this.description = this.form.formView.description;
149
- // }
139
+ this.customComponentReady();
150
140
 
151
141
  this.opened = true;
152
142
  });
@@ -186,17 +176,7 @@
186
176
  this.model = await modelApi.get(applicationType.model, row.processInst.modelID);
187
177
  }
188
178
 
189
- this.form = this.$refs.customComponent.form;
190
- this.form.data = this.model;
191
- this.form.onDataChange();
192
- this.form.clearValidate();
193
- this.readonly = !this.task.activityInst.activity.isEditable;
194
-
195
- // if (this.form.formView) {
196
- // this.width = this.form.formView.width || '800';
197
- // this.name = this.form.formView.name;
198
- // this.description = this.form.formView.description;
199
- // }
179
+ this.customComponentReady();
200
180
 
201
181
  this.opened = true;
202
182
  });
@@ -231,10 +211,18 @@
231
211
  });
232
212
  },
233
213
  // 自定义组件就绪
234
- customComponentReady(formView) {
235
- this.width = formView.width || '800';
236
- this.name = formView.name;
237
- this.description = formView.description;
214
+ customComponentReady() {
215
+ if (this.$refs.customComponent.form) {
216
+ this.form = this.$refs.customComponent.form;
217
+ this.form.data = this.model;
218
+ this.form.onDataChange();
219
+ this.form.clearValidate();
220
+ this.readonly = !this.task.activityInst.activity.isEditable;
221
+
222
+ this.width = this.form.formView.width || '800';
223
+ this.name = this.form.formView.name;
224
+ this.description = this.form.formView.description;
225
+ }
238
226
  },
239
227
  // 执行结果
240
228
  async action(outcome) {