mooho-base-admin-plus 0.4.20 → 0.4.21

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.20",
4
+ "version": "0.4.21",
5
5
  "author": "jinyifan <jinyifan@mooho.com.cn>",
6
6
  "dotnetVersion": "1.4.0",
7
7
  "license": "MIT",
@@ -136,6 +136,8 @@
136
136
 
137
137
  this.form = this.$refs.customComponent.form;
138
138
  this.form.data = this.model;
139
+ this.form.onDataChange();
140
+ this.form.clearValidate();
139
141
  this.readonly = !this.task.activityInst.activity.isEditable;
140
142
 
141
143
  if (this.form.formView) {
@@ -175,23 +177,27 @@
175
177
  this.customComponent = this.$pages[applicationType.templateUrl]; // 动态组件
176
178
  this.isCustom = true;
177
179
 
178
- if (applicationType.isCustom) {
179
- this.model = await customModelApi.get(applicationType.model, row.processInst.modelID);
180
- } else {
181
- this.model = await modelApi.get(applicationType.model, row.processInst.modelID);
182
- }
180
+ setTimeout(async () => {
181
+ if (applicationType.isCustom) {
182
+ this.model = await customModelApi.get(applicationType.model, row.processInst.modelID);
183
+ } else {
184
+ this.model = await modelApi.get(applicationType.model, row.processInst.modelID);
185
+ }
183
186
 
184
- this.form = this.$refs.customComponent.form;
185
- this.form.data = this.model;
186
- this.readonly = !this.task.activityInst.activity.isEditable;
187
+ this.form = this.$refs.customComponent.form;
188
+ this.form.data = this.model;
189
+ this.form.onDataChange();
190
+ this.form.clearValidate();
191
+ this.readonly = !this.task.activityInst.activity.isEditable;
187
192
 
188
- if (this.form.formView) {
189
- this.width = this.form.formView.width || '800';
190
- this.name = this.form.formView.name;
191
- this.description = this.form.formView.description;
192
- }
193
+ if (this.form.formView) {
194
+ this.width = this.form.formView.width || '800';
195
+ this.name = this.form.formView.name;
196
+ this.description = this.form.formView.description;
197
+ }
193
198
 
194
- this.opened = true;
199
+ this.opened = true;
200
+ });
195
201
  } else if (applicationType.pageMode == 'Form') {
196
202
  this.form = this.$refs.form;
197
203
  this.form.init(applicationType.formViewCode, async view => {