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
|
@@ -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
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
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
|
-
|
|
185
|
-
|
|
186
|
-
|
|
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
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
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
|
-
|
|
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 => {
|