mooho-base-admin-plus 0.4.20 → 0.4.23

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.
@@ -1,4 +1,4 @@
1
- import require$$0$1, { watch, reactive, shallowRef, unref, computed, nextTick, defineComponent, inject, h, provide, ref, openBlock, createElementBlock, createElementVNode, normalizeStyle as normalizeStyle$1, toDisplayString as toDisplayString$1, withDirectives, vModelText, pushScopeId, popScopeId, resolveComponent, resolveDirective, createVNode as createVNode$1, withCtx, Fragment, renderList, createBlock, createTextVNode, createCommentVNode, renderSlot, mergeProps, vShow, resolveDynamicComponent, withModifiers, normalizeProps, guardReactiveProps, Transition, normalizeClass, KeepAlive } from "vue";
1
+ import require$$0$1, { watch, reactive, shallowRef, unref, computed, nextTick, defineComponent, inject, h, provide, ref, openBlock, createElementBlock, createElementVNode, normalizeStyle as normalizeStyle$1, toDisplayString as toDisplayString$1, withDirectives, vModelText, pushScopeId, popScopeId, resolveComponent, resolveDirective, createVNode as createVNode$1, withCtx, Fragment, renderList, createBlock, createTextVNode, createCommentVNode, renderSlot, mergeProps, resolveDynamicComponent, withModifiers, normalizeProps, guardReactiveProps, vShow, Transition, normalizeClass, KeepAlive } from "vue";
2
2
  import ViewUIPlus from "view-ui-plus";
3
3
  function getDevtoolsGlobalHook() {
4
4
  return getTarget$1().__VUE_DEVTOOLS_GLOBAL_HOOK__;
@@ -20918,92 +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.readonly = !this.task.activityInst.activity.isEditable;
20936
- if (this.form.formView) {
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;
20936
+ this.form.onDataChange();
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
+ }
20944
+ this.opened = true;
20945
+ });
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;
20937
20955
  this.width = this.form.formView.width || "800";
20938
20956
  this.name = this.form.formView.name;
20939
20957
  this.description = this.form.formView.description;
20940
- }
20941
- this.opened = true;
20942
- });
20943
- } else if (this.task.activityInst.activity.pageMode == "Form") {
20944
- this.form = this.$refs.form;
20945
- this.form.init(this.task.activityInst.activity.formViewCode, async (view) => {
20946
- if (view.dataView.isCustom) {
20947
- this.model = await customModelApi.get(applicationType2.model, row.processInst.modelID);
20948
- } else {
20949
- this.model = await modelApi.get(applicationType2.model, row.processInst.modelID);
20950
- }
20951
- this.readonly = !this.task.activityInst.activity.isEditable;
20952
- this.width = this.form.formView.width || "800";
20953
- this.name = this.form.formView.name;
20954
- this.description = this.form.formView.description;
20955
- this.form.data = this.model;
20956
- 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;
20957
20979
  this.form.onDataChange();
20958
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
+ }
20959
20987
  this.opened = true;
20960
20988
  });
20961
- });
20962
- } else if (applicationType2.pageMode == "Page") {
20963
- this.$router.push({ path: applicationType2.routerPath, query: { taskID: row.id } });
20964
- return;
20965
- } else if (applicationType2.pageMode == "Component") {
20966
- this.customComponent = this.$pages[applicationType2.templateUrl];
20967
- this.isCustom = true;
20968
- if (applicationType2.isCustom) {
20969
- this.model = await customModelApi.get(applicationType2.model, row.processInst.modelID);
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
+ });
20970
21008
  } else {
20971
- this.model = await modelApi.get(applicationType2.model, row.processInst.modelID);
20972
- }
20973
- this.form = this.$refs.customComponent.form;
20974
- this.form.data = this.model;
20975
- this.readonly = !this.task.activityInst.activity.isEditable;
20976
- if (this.form.formView) {
20977
- this.width = this.form.formView.width || "800";
20978
- this.name = this.form.formView.name;
20979
- this.description = this.form.formView.description;
21009
+ this.error("Front_Msg_Setting_Error");
21010
+ return;
20980
21011
  }
20981
- this.opened = true;
20982
- } else if (applicationType2.pageMode == "Form") {
20983
- this.form = this.$refs.form;
20984
- this.form.init(applicationType2.formViewCode, async (view) => {
20985
- if (view.dataView.isCustom) {
20986
- this.model = await customModelApi.get(applicationType2.model, row.processInst.modelID);
20987
- } else {
20988
- this.model = await modelApi.get(applicationType2.model, row.processInst.modelID);
20989
- }
20990
- this.readonly = !this.task.activityInst.activity.isEditable;
20991
- this.width = this.form.formView.width || "800";
20992
- this.name = this.form.formView.name;
20993
- this.description = this.form.formView.description;
20994
- this.form.data = this.model;
20995
- setTimeout(() => {
20996
- this.form.onDataChange();
20997
- this.form.clearValidate();
20998
- this.opened = true;
20999
- });
21000
- });
21001
- } else {
21002
- this.error("Front_Msg_Setting_Error");
21003
- return;
21004
- }
21005
- let res2 = await modelApi.query("Outcome", { activityFromID: row.activityInst.activityID });
21006
- this.outcomes = res2.data;
21012
+ let res2 = await modelApi.query("Outcome", { activityFromID: row.activityInst.activityID });
21013
+ this.outcomes = res2.data;
21014
+ });
21007
21015
  },
21008
21016
  async action(outcome) {
21009
21017
  let isOK = await this.form.validate();
@@ -21218,18 +21226,16 @@ function _sfc_render$1k(_ctx, _cache, $props, $setup, $data, $options) {
21218
21226
  ]),
21219
21227
  default: withCtx(() => [
21220
21228
  createElementVNode("div", _hoisted_3$x, [
21221
- withDirectives(createVNode$1(_component_view_form, {
21229
+ !$data.isCustom ? (openBlock(), createBlock(_component_view_form, {
21230
+ key: 0,
21222
21231
  ref: "form",
21223
21232
  readonly: $data.readonly
21224
- }, null, 8, ["readonly"]), [
21225
- [vShow, !$data.isCustom]
21226
- ]),
21227
- withDirectives((openBlock(), createBlock(resolveDynamicComponent($data.customComponent), {
21228
- readonly: $data.readonly,
21229
- ref: "customComponent"
21230
- }, null, 8, ["readonly"])), [
21231
- [vShow, $data.isCustom]
21232
- ])
21233
+ }, null, 8, ["readonly"])) : createCommentVNode("", true),
21234
+ $data.isCustom ? (openBlock(), createBlock(resolveDynamicComponent($data.customComponent), {
21235
+ key: 1,
21236
+ ref: "customComponent",
21237
+ readonly: $data.readonly
21238
+ }, null, 8, ["readonly"])) : createCommentVNode("", true)
21233
21239
  ])
21234
21240
  ]),
21235
21241
  _: 3