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.
|
@@ -20932,6 +20932,8 @@ const _sfc_main$1k = {
|
|
|
20932
20932
|
}
|
|
20933
20933
|
this.form = this.$refs.customComponent.form;
|
|
20934
20934
|
this.form.data = this.model;
|
|
20935
|
+
this.form.onDataChange();
|
|
20936
|
+
this.form.clearValidate();
|
|
20935
20937
|
this.readonly = !this.task.activityInst.activity.isEditable;
|
|
20936
20938
|
if (this.form.formView) {
|
|
20937
20939
|
this.width = this.form.formView.width || "800";
|
|
@@ -20965,20 +20967,24 @@ const _sfc_main$1k = {
|
|
|
20965
20967
|
} else if (applicationType2.pageMode == "Component") {
|
|
20966
20968
|
this.customComponent = this.$pages[applicationType2.templateUrl];
|
|
20967
20969
|
this.isCustom = true;
|
|
20968
|
-
|
|
20969
|
-
|
|
20970
|
-
|
|
20971
|
-
|
|
20972
|
-
|
|
20973
|
-
|
|
20974
|
-
|
|
20975
|
-
|
|
20976
|
-
|
|
20977
|
-
this.
|
|
20978
|
-
this.
|
|
20979
|
-
|
|
20980
|
-
|
|
20981
|
-
|
|
20970
|
+
setTimeout(async () => {
|
|
20971
|
+
if (applicationType2.isCustom) {
|
|
20972
|
+
this.model = await customModelApi.get(applicationType2.model, row.processInst.modelID);
|
|
20973
|
+
} else {
|
|
20974
|
+
this.model = await modelApi.get(applicationType2.model, row.processInst.modelID);
|
|
20975
|
+
}
|
|
20976
|
+
this.form = this.$refs.customComponent.form;
|
|
20977
|
+
this.form.data = this.model;
|
|
20978
|
+
this.form.onDataChange();
|
|
20979
|
+
this.form.clearValidate();
|
|
20980
|
+
this.readonly = !this.task.activityInst.activity.isEditable;
|
|
20981
|
+
if (this.form.formView) {
|
|
20982
|
+
this.width = this.form.formView.width || "800";
|
|
20983
|
+
this.name = this.form.formView.name;
|
|
20984
|
+
this.description = this.form.formView.description;
|
|
20985
|
+
}
|
|
20986
|
+
this.opened = true;
|
|
20987
|
+
});
|
|
20982
20988
|
} else if (applicationType2.pageMode == "Form") {
|
|
20983
20989
|
this.form = this.$refs.form;
|
|
20984
20990
|
this.form.init(applicationType2.formViewCode, async (view) => {
|