mooho-base-admin-plus 2.10.1 → 2.10.3
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, effectScope, reactive, computed, shallowRef, unref, shallowReactive, nextTick, defineComponent,
|
|
1
|
+
import require$$0$1, { watch, effectScope, reactive, computed, shallowRef, inject, unref, shallowReactive, nextTick, defineComponent, h, provide, ref, getCurrentInstance, watchEffect, openBlock, createElementBlock, createElementVNode, normalizeStyle as normalizeStyle$1, toDisplayString as toDisplayString$2, withDirectives, vModelText, pushScopeId, popScopeId, resolveComponent, resolveDirective, createVNode as createVNode$1, withCtx, Fragment, renderList, createBlock, createTextVNode, createCommentVNode, renderSlot, vShow, withModifiers, normalizeProps, guardReactiveProps, mergeProps, normalizeClass, markRaw, resolveDynamicComponent, Transition, KeepAlive } from "vue";
|
|
2
2
|
import ViewUIPlus from "view-ui-plus";
|
|
3
3
|
function getDevtoolsGlobalHook() {
|
|
4
4
|
return getTarget$1().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
@@ -6717,6 +6717,9 @@ function extractChangingRecords(a, r) {
|
|
|
6717
6717
|
}
|
|
6718
6718
|
return [o, s, l];
|
|
6719
6719
|
}
|
|
6720
|
+
function useRouter() {
|
|
6721
|
+
return inject(routerKey);
|
|
6722
|
+
}
|
|
6720
6723
|
function bind$2(a, r) {
|
|
6721
6724
|
return function() {
|
|
6722
6725
|
return a.apply(r, arguments);
|
|
@@ -28478,16 +28481,17 @@ const user = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["render", _sfc_render$M]
|
|
|
28478
28481
|
},
|
|
28479
28482
|
computed: {},
|
|
28480
28483
|
async mounted() {
|
|
28481
|
-
|
|
28482
|
-
|
|
28483
|
-
|
|
28484
|
+
let a = useRouter();
|
|
28485
|
+
if (console.log("router.currentRoute.value.fullPath", a.currentRoute.value.fullPath), console.log("this.userPermissions", this.userPermissions), console.log("url + '$' + key", a.currentRoute.value.fullPath.substr(1).split("?")[0] + "$create"), console.log("this.userPermissions[url + '$' + key]", this.userPermissions[a.currentRoute.value.fullPath.substr(1).split("?")[0] + "$create"]), this.$route.meta.data.id) {
|
|
28486
|
+
let r = await this.loadPage(this.$route.meta.data.id);
|
|
28487
|
+
this.page = r.customPage, this.init();
|
|
28484
28488
|
} else if (this.applicationTypeCode) {
|
|
28485
|
-
let
|
|
28486
|
-
|
|
28489
|
+
let r = await modelApi.query("ApplicationType", { code: this.applicationTypeCode });
|
|
28490
|
+
r.data.length > 0 && (this.page = {
|
|
28487
28491
|
tableViewCode: this.tableViewCode,
|
|
28488
28492
|
formViewCode: this.formViewCode,
|
|
28489
28493
|
showViewCode: this.showViewCode,
|
|
28490
|
-
applicationType:
|
|
28494
|
+
applicationType: r.data[0]
|
|
28491
28495
|
}, this.init());
|
|
28492
28496
|
}
|
|
28493
28497
|
},
|
|
@@ -28503,7 +28507,7 @@ const user = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["render", _sfc_render$M]
|
|
|
28503
28507
|
// 初始化
|
|
28504
28508
|
async init() {
|
|
28505
28509
|
this.isCancelable = this.page.applicationType.isCancelable, this.isRecallable = this.page.applicationType.isRecallable, setTimeout(() => {
|
|
28506
|
-
this.allow("all") || (this.filterData.createUserID = this.info.id), this.$refs.table.init(this.page.tableViewCode, () => {
|
|
28510
|
+
this.allow("all") || (this.$refs.table.filterData.createUserID = this.info.id), this.$refs.table.init(this.page.tableViewCode, () => {
|
|
28507
28511
|
this.$refs.table.tableView.autoLoadDisable || this.$refs.table.loadData();
|
|
28508
28512
|
}), (this.page.formViewCode || "").trim() && this.$refs.form.init(this.page.formViewCode), ((this.page.formViewCode || "").trim() || (this.page.showViewCode || "").trim()) && this.$refs.showForm.init((this.page.showViewCode || "").trim() ? this.page.showViewCode : this.page.formViewCode);
|
|
28509
28513
|
});
|