mooho-base-admin-plus 0.4.19 → 0.4.22
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,
|
|
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__;
|
|
@@ -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) => {
|
|
@@ -21218,18 +21224,16 @@ function _sfc_render$1k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
21218
21224
|
]),
|
|
21219
21225
|
default: withCtx(() => [
|
|
21220
21226
|
createElementVNode("div", _hoisted_3$x, [
|
|
21221
|
-
|
|
21227
|
+
!$data.isCustom ? (openBlock(), createBlock(_component_view_form, {
|
|
21228
|
+
key: 0,
|
|
21222
21229
|
ref: "form",
|
|
21223
21230
|
readonly: $data.readonly
|
|
21224
|
-
}, null, 8, ["readonly"]),
|
|
21225
|
-
|
|
21226
|
-
|
|
21227
|
-
|
|
21228
|
-
readonly: $data.readonly
|
|
21229
|
-
|
|
21230
|
-
}, null, 8, ["readonly"])), [
|
|
21231
|
-
[vShow, $data.isCustom]
|
|
21232
|
-
])
|
|
21231
|
+
}, null, 8, ["readonly"])) : createCommentVNode("", true),
|
|
21232
|
+
$data.isCustom ? (openBlock(), createBlock(resolveDynamicComponent($data.customComponent), {
|
|
21233
|
+
key: 1,
|
|
21234
|
+
ref: "customComponent",
|
|
21235
|
+
readonly: $data.readonly
|
|
21236
|
+
}, null, 8, ["readonly"])) : createCommentVNode("", true)
|
|
21233
21237
|
])
|
|
21234
21238
|
]),
|
|
21235
21239
|
_: 3
|
|
@@ -120954,6 +120958,7 @@ const created = async (app) => {
|
|
|
120954
120958
|
store.commit("admin/menu/setHeader", menuHeader);
|
|
120955
120959
|
store.dispatch("admin/account/load");
|
|
120956
120960
|
store.dispatch("admin/layout/listenFullscreen");
|
|
120961
|
+
app.config.globalProperties.$pages = pages;
|
|
120957
120962
|
};
|
|
120958
120963
|
const routeChanged = (to) => {
|
|
120959
120964
|
store.dispatch("admin/menu/setMenuList", to);
|