mooho-base-admin-plus 0.4.22 → 0.4.24

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.
@@ -20918,98 +20918,100 @@ const _sfc_main$1k = {
20918
20918
  this.isRedirectable = this.task.activityInst.activity.isRedirectable;
20919
20919
  this.isMessageEnable = this.task.processInst.isMessageEnable;
20920
20920
  this.isCustom = false;
20921
- if (this.task.activityInst.activity.pageMode == "Page") {
20922
- this.$router.push({ path: this.task.activityInst.activity.routerPath, query: { taskID: row.id } });
20923
- return;
20924
- } else if (this.task.activityInst.activity.pageMode == "Component") {
20925
- this.customComponent = this.$pages[this.task.activityInst.activity.templateUrl];
20926
- this.isCustom = true;
20927
- setTimeout(async () => {
20928
- if (applicationType2.isCustom) {
20929
- this.model = await customModelApi.get(applicationType2.model, row.processInst.modelID);
20930
- } else {
20931
- this.model = await modelApi.get(applicationType2.model, row.processInst.modelID);
20932
- }
20933
- this.form = this.$refs.customComponent.form;
20934
- this.form.data = this.model;
20935
- this.form.onDataChange();
20936
- this.form.clearValidate();
20937
- this.readonly = !this.task.activityInst.activity.isEditable;
20938
- if (this.form.formView) {
20939
- this.width = this.form.formView.width || "800";
20940
- this.name = this.form.formView.name;
20941
- this.description = this.form.formView.description;
20942
- }
20943
- this.opened = true;
20944
- });
20945
- } else if (this.task.activityInst.activity.pageMode == "Form") {
20946
- this.form = this.$refs.form;
20947
- this.form.init(this.task.activityInst.activity.formViewCode, async (view) => {
20948
- if (view.dataView.isCustom) {
20949
- this.model = await customModelApi.get(applicationType2.model, row.processInst.modelID);
20950
- } else {
20951
- this.model = await modelApi.get(applicationType2.model, row.processInst.modelID);
20952
- }
20953
- this.readonly = !this.task.activityInst.activity.isEditable;
20954
- this.width = this.form.formView.width || "800";
20955
- this.name = this.form.formView.name;
20956
- this.description = this.form.formView.description;
20957
- this.form.data = this.model;
20958
- setTimeout(() => {
20921
+ setTimeout(async () => {
20922
+ if (this.task.activityInst.activity.pageMode == "Page") {
20923
+ this.$router.push({ path: this.task.activityInst.activity.routerPath, query: { taskID: row.id } });
20924
+ return;
20925
+ } else if (this.task.activityInst.activity.pageMode == "Component") {
20926
+ this.customComponent = this.$pages[this.task.activityInst.activity.templateUrl];
20927
+ this.isCustom = true;
20928
+ setTimeout(async () => {
20929
+ if (applicationType2.isCustom) {
20930
+ this.model = await customModelApi.get(applicationType2.model, row.processInst.modelID);
20931
+ } else {
20932
+ this.model = await modelApi.get(applicationType2.model, row.processInst.modelID);
20933
+ }
20934
+ this.form = this.$refs.customComponent.form;
20935
+ this.form.data = this.model;
20959
20936
  this.form.onDataChange();
20960
20937
  this.form.clearValidate();
20938
+ this.readonly = !this.task.activityInst.activity.isEditable;
20939
+ if (this.form.formView) {
20940
+ this.width = this.form.formView.width || "800";
20941
+ this.name = this.form.formView.name;
20942
+ this.description = this.form.formView.description;
20943
+ }
20961
20944
  this.opened = true;
20962
20945
  });
20963
- });
20964
- } else if (applicationType2.pageMode == "Page") {
20965
- this.$router.push({ path: applicationType2.routerPath, query: { taskID: row.id } });
20966
- return;
20967
- } else if (applicationType2.pageMode == "Component") {
20968
- this.customComponent = this.$pages[applicationType2.templateUrl];
20969
- this.isCustom = true;
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) {
20946
+ } else if (this.task.activityInst.activity.pageMode == "Form") {
20947
+ this.form = this.$refs.form;
20948
+ this.form.init(this.task.activityInst.activity.formViewCode, async (view) => {
20949
+ if (view.dataView.isCustom) {
20950
+ this.model = await customModelApi.get(applicationType2.model, row.processInst.modelID);
20951
+ } else {
20952
+ this.model = await modelApi.get(applicationType2.model, row.processInst.modelID);
20953
+ }
20954
+ this.readonly = !this.task.activityInst.activity.isEditable;
20982
20955
  this.width = this.form.formView.width || "800";
20983
20956
  this.name = this.form.formView.name;
20984
20957
  this.description = this.form.formView.description;
20985
- }
20986
- this.opened = true;
20987
- });
20988
- } else if (applicationType2.pageMode == "Form") {
20989
- this.form = this.$refs.form;
20990
- this.form.init(applicationType2.formViewCode, async (view) => {
20991
- if (view.dataView.isCustom) {
20992
- this.model = await customModelApi.get(applicationType2.model, row.processInst.modelID);
20993
- } else {
20994
- this.model = await modelApi.get(applicationType2.model, row.processInst.modelID);
20995
- }
20996
- this.readonly = !this.task.activityInst.activity.isEditable;
20997
- this.width = this.form.formView.width || "800";
20998
- this.name = this.form.formView.name;
20999
- this.description = this.form.formView.description;
21000
- this.form.data = this.model;
21001
- setTimeout(() => {
20958
+ this.form.data = this.model;
20959
+ setTimeout(async () => {
20960
+ this.form.onDataChange();
20961
+ this.form.clearValidate();
20962
+ this.opened = true;
20963
+ });
20964
+ });
20965
+ } else if (applicationType2.pageMode == "Page") {
20966
+ this.$router.push({ path: applicationType2.routerPath, query: { taskID: row.id } });
20967
+ return;
20968
+ } else if (applicationType2.pageMode == "Component") {
20969
+ this.customComponent = this.$pages[applicationType2.templateUrl];
20970
+ this.isCustom = true;
20971
+ setTimeout(async () => {
20972
+ if (applicationType2.isCustom) {
20973
+ this.model = await customModelApi.get(applicationType2.model, row.processInst.modelID);
20974
+ } else {
20975
+ this.model = await modelApi.get(applicationType2.model, row.processInst.modelID);
20976
+ }
20977
+ this.form = this.$refs.customComponent.form;
20978
+ this.form.data = this.model;
21002
20979
  this.form.onDataChange();
21003
20980
  this.form.clearValidate();
20981
+ this.readonly = !this.task.activityInst.activity.isEditable;
20982
+ if (this.form.formView) {
20983
+ this.width = this.form.formView.width || "800";
20984
+ this.name = this.form.formView.name;
20985
+ this.description = this.form.formView.description;
20986
+ }
21004
20987
  this.opened = true;
21005
20988
  });
21006
- });
21007
- } else {
21008
- this.error("Front_Msg_Setting_Error");
21009
- return;
21010
- }
21011
- let res2 = await modelApi.query("Outcome", { activityFromID: row.activityInst.activityID });
21012
- this.outcomes = res2.data;
20989
+ } else if (applicationType2.pageMode == "Form") {
20990
+ this.form = this.$refs.form;
20991
+ this.form.init(applicationType2.formViewCode, async (view) => {
20992
+ if (view.dataView.isCustom) {
20993
+ this.model = await customModelApi.get(applicationType2.model, row.processInst.modelID);
20994
+ } else {
20995
+ this.model = await modelApi.get(applicationType2.model, row.processInst.modelID);
20996
+ }
20997
+ this.readonly = !this.task.activityInst.activity.isEditable;
20998
+ this.width = this.form.formView.width || "800";
20999
+ this.name = this.form.formView.name;
21000
+ this.description = this.form.formView.description;
21001
+ this.form.data = this.model;
21002
+ setTimeout(() => {
21003
+ this.form.onDataChange();
21004
+ this.form.clearValidate();
21005
+ this.opened = true;
21006
+ });
21007
+ });
21008
+ } else {
21009
+ this.error("Front_Msg_Setting_Error");
21010
+ return;
21011
+ }
21012
+ let res2 = await modelApi.query("Outcome", { activityFromID: row.activityInst.activityID });
21013
+ this.outcomes = res2.data;
21014
+ });
21013
21015
  },
21014
21016
  async action(outcome) {
21015
21017
  let isOK = await this.form.validate();
@@ -33189,7 +33191,6 @@ function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
33189
33191
  column: withCtx((scope) => [
33190
33192
  renderSlot(_ctx.$slots, "tableColumn", {
33191
33193
  table: _ctx.$refs["table_" + column.code][0],
33192
- tableData: $data.data,
33193
33194
  tableColumn: column,
33194
33195
  tableCode: column.code,
33195
33196
  row: scope.row,
@@ -33198,6 +33199,15 @@ function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
33198
33199
  code: scope.code
33199
33200
  })
33200
33201
  ]),
33202
+ command: withCtx((scope) => [
33203
+ renderSlot(_ctx.$slots, "tableColumn", {
33204
+ table: _ctx.$refs["table_" + column.code][0],
33205
+ tableColumn: column,
33206
+ tableCode: column.code,
33207
+ row: scope.row,
33208
+ index: scope.index
33209
+ })
33210
+ ]),
33201
33211
  _: 2
33202
33212
  }, 1032, ["view-code", "readonly", "parent-data", "onOnChange"])
33203
33213
  ])) : createCommentVNode("", true),