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.
@@ -20933,11 +20933,7 @@ const _sfc_main$1l = {
20933
20933
  } else {
20934
20934
  this.model = await modelApi.get(applicationType2.model, row.processInst.modelID);
20935
20935
  }
20936
- this.form = this.$refs.customComponent.form;
20937
- this.form.data = this.model;
20938
- this.form.onDataChange();
20939
- this.form.clearValidate();
20940
- this.readonly = !this.task.activityInst.activity.isEditable;
20936
+ this.customComponentReady();
20941
20937
  this.opened = true;
20942
20938
  });
20943
20939
  } else if (this.task.activityInst.activity.pageMode == "Form") {
@@ -20971,11 +20967,7 @@ const _sfc_main$1l = {
20971
20967
  } else {
20972
20968
  this.model = await modelApi.get(applicationType2.model, row.processInst.modelID);
20973
20969
  }
20974
- this.form = this.$refs.customComponent.form;
20975
- this.form.data = this.model;
20976
- this.form.onDataChange();
20977
- this.form.clearValidate();
20978
- this.readonly = !this.task.activityInst.activity.isEditable;
20970
+ this.customComponentReady();
20979
20971
  this.opened = true;
20980
20972
  });
20981
20973
  } else if (applicationType2.pageMode == "Form") {
@@ -21005,10 +20997,17 @@ const _sfc_main$1l = {
21005
20997
  this.outcomes = res2.data;
21006
20998
  });
21007
20999
  },
21008
- customComponentReady(formView2) {
21009
- this.width = formView2.width || "800";
21010
- this.name = formView2.name;
21011
- this.description = formView2.description;
21000
+ customComponentReady() {
21001
+ if (this.$refs.customComponent.form) {
21002
+ this.form = this.$refs.customComponent.form;
21003
+ this.form.data = this.model;
21004
+ this.form.onDataChange();
21005
+ this.form.clearValidate();
21006
+ this.readonly = !this.task.activityInst.activity.isEditable;
21007
+ this.width = this.form.formView.width || "800";
21008
+ this.name = this.form.formView.name;
21009
+ this.description = this.form.formView.description;
21010
+ }
21012
21011
  },
21013
21012
  async action(outcome) {
21014
21013
  let isOK = await this.form.validate();