@okiss/oms 0.0.44 → 0.0.45
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.
package/dist/index.es.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var M = (e, t, l) => (
|
|
4
|
-
import { defineComponent as q, onBeforeMount as ze, provide as
|
|
5
|
-
import { addNewStyle as
|
|
1
|
+
var $t = Object.defineProperty;
|
|
2
|
+
var It = (e, t, l) => t in e ? $t(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l;
|
|
3
|
+
var M = (e, t, l) => (It(e, typeof t != "symbol" ? t + "" : t, l), l);
|
|
4
|
+
import { defineComponent as q, onBeforeMount as ze, provide as Ct, resolveComponent as v, openBlock as i, createBlock as f, createVNode as u, computed as j, createTextVNode as g, withCtx as r, TransitionGroup as Tt, createElementBlock as h, Fragment as S, renderList as B, toDisplayString as O, normalizeClass as H, renderSlot as le, mergeProps as G, createCommentVNode as x, toRefs as Ot, ref as L, normalizeStyle as Bt, createElementVNode as b, Transition as At, pushScopeId as Ke, popScopeId as We, resolveDynamicComponent as Ze, normalizeProps as W, guardReactiveProps as Y, unref as k, withDirectives as ie, vModelText as he, resolveDirective as Pt, onMounted as Rt, isRef as Lt, getCurrentInstance as Mt, h as Dt, toRaw as jt, createApp as Nt } from "vue";
|
|
5
|
+
import { addNewStyle as Vt, addNewStyleTag as qt, queryParams as Ut, logGroup as Ht, compactObject as Qe, showEleByClassName as Xe, waterMarker as Ft, Cache as be, isExternal as Ve, getQueryParam as Gt, createIFrame as Jt, strVarReplace as Q, obj2Param as zt, isObject as X, isString as $e, effectDataTrans as Kt, isArray as Ye } from "@okiss/utils";
|
|
6
6
|
import _e from "mockjs";
|
|
7
|
-
import Wt, { cloneDeep as y, merge as A, get as ne, unset as
|
|
8
|
-
import
|
|
7
|
+
import Wt, { cloneDeep as y, merge as A, get as ne, unset as et } from "lodash";
|
|
8
|
+
import tt from "element-plus/lib/locale/lang/zh-cn";
|
|
9
9
|
import Ie from "axios";
|
|
10
10
|
import N from "js-cookie";
|
|
11
|
-
import { createStore as Zt, useStore as
|
|
11
|
+
import { createStore as Zt, useStore as lt, mapGetters as Ce } from "vuex";
|
|
12
12
|
import Qt, { ElMessage as Xt, ElMessageBox as Yt, ElCard as el, ElRow as tl, ElCol as ll } from "element-plus";
|
|
13
13
|
import "element-plus/dist/index.css";
|
|
14
14
|
import "dayjs/locale/zh-cn";
|
|
15
15
|
import { useRoute as pe, onBeforeRouteLeave as nl, useRouter as ol, createRouter as al, createWebHashHistory as sl, onBeforeRouteUpdate as il } from "vue-router";
|
|
16
|
-
import { ElBreadcrumbItem as rl, ElBreadcrumb as cl, ElRow as ae, ElMain as ul, ElAside as pl, ElContainer as dl, ElDivider as
|
|
16
|
+
import { ElBreadcrumbItem as rl, ElBreadcrumb as cl, ElRow as ae, ElMain as ul, ElAside as pl, ElContainer as dl, ElDivider as nt, ElButton as ue, ElOption as Te, ElSelect as Oe, ElFormItem as ot, ElForm as at, ElCol as de, ElDrawer as st, ElDropdownItem as ml, ElDropdownMenu as fl, ElDropdown as hl, ElMenuItem as bl, ElSubMenu as _l, ElOptionGroup as yl, ElMenu as vl, ElScrollbar as gl, ElBacktop as kl, ElMessage as wl, ElAlert as Be, ElTree as Sl, ElCard as Ae } from "element-plus/es";
|
|
17
17
|
import "element-plus/es/components/base/style/css";
|
|
18
18
|
import "element-plus/es/components/row/style/css";
|
|
19
19
|
import "element-plus/es/components/drawer/style/css";
|
|
@@ -33,7 +33,7 @@ import "element-plus/es/components/divider/style/css";
|
|
|
33
33
|
import "element-plus/es/components/container/style/css";
|
|
34
34
|
import "element-plus/es/components/aside/style/css";
|
|
35
35
|
import "element-plus/es/components/main/style/css";
|
|
36
|
-
import { VForm as J, VBtn as
|
|
36
|
+
import { VForm as J, VBtn as Pe, JsonView as Re, VTable as oe, VChart as El, setUploadHeaderHandle as $l, VIcon as Il } from "@okiss/vbtf";
|
|
37
37
|
import "normalize.css/normalize.css";
|
|
38
38
|
import "@okiss/vbtf/style.css";
|
|
39
39
|
import Cl from "mitt";
|
|
@@ -65,20 +65,20 @@ const Al = /* @__PURE__ */ q({
|
|
|
65
65
|
return ze(() => {
|
|
66
66
|
var s;
|
|
67
67
|
const a = document.getElementById("preloader");
|
|
68
|
-
a !== null && (document.body.removeChild(a), (s = document.getElementById("preloader")) == null || s.remove(),
|
|
68
|
+
a !== null && (document.body.removeChild(a), (s = document.getElementById("preloader")) == null || s.remove(), Vt("test-icon", "//at.alicdn.com/t/font_2246548_zclaqxwmzq8.css"), qt(`.iconfont {
|
|
69
69
|
font-size: 19px;
|
|
70
70
|
font-style: normal;
|
|
71
71
|
-webkit-font-smoothing: antialiased;
|
|
72
72
|
font-family: iconfont !important;
|
|
73
73
|
}`));
|
|
74
|
-
}), (l = (t = window == null ? void 0 : window.OmsOptions) == null ? void 0 : t.form) != null && l.vsPath &&
|
|
74
|
+
}), (l = (t = window == null ? void 0 : window.OmsOptions) == null ? void 0 : t.form) != null && l.vsPath && Ct("vsPath", (o = (n = window == null ? void 0 : window.OmsOptions) == null ? void 0 : n.form) == null ? void 0 : o.vsPath), (a, s) => {
|
|
75
75
|
const c = v("router-view");
|
|
76
76
|
return i(), f(c);
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
79
|
});
|
|
80
80
|
var ee = /* @__PURE__ */ ((e) => (e.GET = "get", e.POST = "post", e.DELETE = "delete", e.FETCH = "fetch", e.OPTION = "option", e.PUT = "put", e))(ee || {});
|
|
81
|
-
const
|
|
81
|
+
const Pl = {
|
|
82
82
|
saveApi: "/save",
|
|
83
83
|
afterSubmit: "",
|
|
84
84
|
afterReset: "goback",
|
|
@@ -467,7 +467,7 @@ const Rl = {
|
|
|
467
467
|
type: "success"
|
|
468
468
|
}
|
|
469
469
|
}
|
|
470
|
-
],
|
|
470
|
+
], Rl = {
|
|
471
471
|
exportAble: !0,
|
|
472
472
|
filter: [
|
|
473
473
|
{
|
|
@@ -673,7 +673,7 @@ const Rl = {
|
|
|
673
673
|
label: "span"
|
|
674
674
|
}
|
|
675
675
|
]
|
|
676
|
-
}, jl = { form:
|
|
676
|
+
}, jl = { form: Pl, table: Rl, listMock: Ll, layoutForm: Ml, layoutSection: Dl }, Nl = [
|
|
677
677
|
{
|
|
678
678
|
method: ee.POST,
|
|
679
679
|
url: "/login",
|
|
@@ -726,7 +726,7 @@ const Rl = {
|
|
|
726
726
|
withCredentials: !0,
|
|
727
727
|
timeout: 5e3,
|
|
728
728
|
cacheEnable: !0
|
|
729
|
-
},
|
|
729
|
+
}, it = {
|
|
730
730
|
title: "oms",
|
|
731
731
|
fixedHeader: !1,
|
|
732
732
|
sidebarLogo: !0,
|
|
@@ -740,7 +740,7 @@ const Rl = {
|
|
|
740
740
|
ElementPlus: {
|
|
741
741
|
size: "default",
|
|
742
742
|
zIndex: 3e3,
|
|
743
|
-
locale:
|
|
743
|
+
locale: tt
|
|
744
744
|
},
|
|
745
745
|
nav: [],
|
|
746
746
|
whiteRoutes: ["/login"],
|
|
@@ -753,28 +753,28 @@ const Rl = {
|
|
|
753
753
|
serviceOffLineNotice: "当前页面功能正在维护, 请稍后再试~~~"
|
|
754
754
|
}, me = {
|
|
755
755
|
axios: ql,
|
|
756
|
-
settings:
|
|
756
|
+
settings: it,
|
|
757
757
|
plugins: [],
|
|
758
758
|
mock: !1
|
|
759
759
|
}, we = {};
|
|
760
|
-
function
|
|
760
|
+
function rt(e) {
|
|
761
761
|
e.forEach((t) => {
|
|
762
|
-
const l =
|
|
762
|
+
const l = ct(t);
|
|
763
763
|
we[`${t.method}::${l}`] = t;
|
|
764
764
|
});
|
|
765
765
|
}
|
|
766
|
-
|
|
767
|
-
function
|
|
766
|
+
rt(Vl);
|
|
767
|
+
function ct(e) {
|
|
768
768
|
var n;
|
|
769
769
|
let t = e.url, l = e.baseURL || ((n = me.axios) == null ? void 0 : n.baseURL);
|
|
770
770
|
return l || (l = ""), typeof t == "string" ? (t = ("/" + l + t).split("/").filter((o) => o).join("/"), t += "(|\\?.*)$", new RegExp(t)) : t;
|
|
771
771
|
}
|
|
772
772
|
function Ul() {
|
|
773
773
|
Object.keys(we).forEach((e) => {
|
|
774
|
-
const t = we[e], l =
|
|
774
|
+
const t = we[e], l = ct(t);
|
|
775
775
|
_e.mock(l, t.method, function(n) {
|
|
776
|
-
const { url: o, type: a, body: s } = n, c =
|
|
777
|
-
return
|
|
776
|
+
const { url: o, type: a, body: s } = n, c = Ut(o), p = s ? JSON.parse(s) : {}, d = t.response({ query: c, data: p }), m = _e.mock(d);
|
|
777
|
+
return Ht(o, { type: a, query: c, data: p, response: m }), _e.mock(m);
|
|
778
778
|
});
|
|
779
779
|
}), console.log("%c ApiMock is stared! ", "background: #606060; color: #fff; padding: 4px 5px; border-radius: 1px;");
|
|
780
780
|
}
|
|
@@ -786,7 +786,7 @@ function Hl(e) {
|
|
|
786
786
|
const t = new Date((/* @__PURE__ */ new Date()).getTime() + (E.state.settings.tokenExpire || 864e5));
|
|
787
787
|
return N.set(Le, e, { expires: t });
|
|
788
788
|
}
|
|
789
|
-
function
|
|
789
|
+
function ut() {
|
|
790
790
|
return N.remove(Le);
|
|
791
791
|
}
|
|
792
792
|
const Fl = {
|
|
@@ -810,7 +810,7 @@ const Fl = {
|
|
|
810
810
|
e.token = t, Hl(t);
|
|
811
811
|
},
|
|
812
812
|
removeToken(e) {
|
|
813
|
-
e.token = "",
|
|
813
|
+
e.token = "", ut();
|
|
814
814
|
},
|
|
815
815
|
updateRemoteRouter(e, t) {
|
|
816
816
|
e.remoteRouter = t, e.isLodeRemoteRoutes = !0;
|
|
@@ -892,7 +892,7 @@ const Fl = {
|
|
|
892
892
|
});
|
|
893
893
|
}
|
|
894
894
|
}
|
|
895
|
-
}, Jl = y(
|
|
895
|
+
}, Jl = y(it), zl = {
|
|
896
896
|
namespaced: !0,
|
|
897
897
|
state: Jl,
|
|
898
898
|
mutations: {
|
|
@@ -1057,12 +1057,12 @@ const Fl = {
|
|
|
1057
1057
|
onRejected(e) {
|
|
1058
1058
|
return Promise.reject(e);
|
|
1059
1059
|
}
|
|
1060
|
-
},
|
|
1060
|
+
}, pt = {};
|
|
1061
1061
|
function Si(e, t) {
|
|
1062
|
-
|
|
1062
|
+
pt[e] = t;
|
|
1063
1063
|
}
|
|
1064
1064
|
function ln(e) {
|
|
1065
|
-
return
|
|
1065
|
+
return pt[e];
|
|
1066
1066
|
}
|
|
1067
1067
|
const nn = /* @__PURE__ */ q({
|
|
1068
1068
|
name: "Dashboard",
|
|
@@ -1070,7 +1070,7 @@ const nn = /* @__PURE__ */ q({
|
|
|
1070
1070
|
const e = ln("test");
|
|
1071
1071
|
if (e)
|
|
1072
1072
|
return () => u(e, null, null);
|
|
1073
|
-
const t =
|
|
1073
|
+
const t = lt(), l = j(() => t.getters.name);
|
|
1074
1074
|
return () => u("div", {
|
|
1075
1075
|
class: "dashboard-container"
|
|
1076
1076
|
}, [u("div", {
|
|
@@ -1138,7 +1138,7 @@ function cn(e, t, l, n, o, a) {
|
|
|
1138
1138
|
separator: "/"
|
|
1139
1139
|
}, {
|
|
1140
1140
|
default: r(() => [
|
|
1141
|
-
u(
|
|
1141
|
+
u(Tt, { name: "breadcrumb" }, {
|
|
1142
1142
|
default: r(() => [
|
|
1143
1143
|
(i(!0), h(S, null, B(o.levelList, (p, d) => (i(), f(s, {
|
|
1144
1144
|
key: p.path
|
|
@@ -1220,7 +1220,7 @@ function hn(e, t) {
|
|
|
1220
1220
|
_: 3
|
|
1221
1221
|
});
|
|
1222
1222
|
}
|
|
1223
|
-
const
|
|
1223
|
+
const dt = /* @__PURE__ */ $(fn, [["render", hn], ["__scopeId", "data-v-7c3d697b"]]), bn = {
|
|
1224
1224
|
type: "input",
|
|
1225
1225
|
name: "文本框",
|
|
1226
1226
|
default: {
|
|
@@ -1793,24 +1793,24 @@ const pt = /* @__PURE__ */ $(fn, [["render", hn], ["__scopeId", "data-v-7c3d697b
|
|
|
1793
1793
|
}
|
|
1794
1794
|
}
|
|
1795
1795
|
]
|
|
1796
|
-
},
|
|
1797
|
-
function
|
|
1798
|
-
|
|
1796
|
+
}, mt = {};
|
|
1797
|
+
function P(e) {
|
|
1798
|
+
mt[e.type] = e;
|
|
1799
1799
|
}
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
const Se =
|
|
1800
|
+
P(bn);
|
|
1801
|
+
P(vn);
|
|
1802
|
+
P(_n);
|
|
1803
|
+
P(yn);
|
|
1804
|
+
P(kn);
|
|
1805
|
+
P(In);
|
|
1806
|
+
P(gn);
|
|
1807
|
+
P(Cn);
|
|
1808
|
+
P(wn);
|
|
1809
|
+
P(Sn);
|
|
1810
|
+
P(xn);
|
|
1811
|
+
P($n);
|
|
1812
|
+
P(En);
|
|
1813
|
+
const Se = mt, Tn = {
|
|
1814
1814
|
options: {
|
|
1815
1815
|
labelPosition: "top",
|
|
1816
1816
|
submitButton: !1,
|
|
@@ -1950,7 +1950,7 @@ const On = {
|
|
|
1950
1950
|
}
|
|
1951
1951
|
]
|
|
1952
1952
|
}, Bn = {
|
|
1953
|
-
components: { DevLayout:
|
|
1953
|
+
components: { DevLayout: dt, VForm: J, VButton: Pe, JsonView: Re },
|
|
1954
1954
|
props: {
|
|
1955
1955
|
schema: {
|
|
1956
1956
|
type: Object,
|
|
@@ -2058,7 +2058,7 @@ const On = {
|
|
|
2058
2058
|
}), this.ctrlKey++, this.key++, this.activeIndex = `${t}[${this.builderSchema[t].length - 1}]`, this.activeTab = "ctrl";
|
|
2059
2059
|
},
|
|
2060
2060
|
removeOne() {
|
|
2061
|
-
|
|
2061
|
+
et(this.builderSchema, this.activeIndex), this.builderSchema = y(Qe(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
|
|
2062
2062
|
},
|
|
2063
2063
|
clicklabel() {
|
|
2064
2064
|
const e = this.activeIndex;
|
|
@@ -2086,7 +2086,7 @@ const On = {
|
|
|
2086
2086
|
}
|
|
2087
2087
|
};
|
|
2088
2088
|
function An(e, t, l, n, o, a) {
|
|
2089
|
-
const s = v("v-form"), c =
|
|
2089
|
+
const s = v("v-form"), c = nt, p = ue, d = v("JsonView"), m = v("VButton"), _ = Te, T = Oe, w = ot, F = at, U = v("dev-layout");
|
|
2090
2090
|
return i(), f(U, null, {
|
|
2091
2091
|
main: r(() => [
|
|
2092
2092
|
o.builderSchema.formItems ? (i(), f(s, G({
|
|
@@ -2148,7 +2148,7 @@ function An(e, t, l, n, o, a) {
|
|
|
2148
2148
|
_: 1
|
|
2149
2149
|
});
|
|
2150
2150
|
}
|
|
2151
|
-
const
|
|
2151
|
+
const Pn = /* @__PURE__ */ $(Bn, [["render", An], ["__scopeId", "data-v-875f0171"]]), Rn = {
|
|
2152
2152
|
type: "input",
|
|
2153
2153
|
name: "文本框",
|
|
2154
2154
|
default: {
|
|
@@ -2849,7 +2849,7 @@ const Rn = /* @__PURE__ */ $(Bn, [["render", An], ["__scopeId", "data-v-875f0171
|
|
|
2849
2849
|
table: Zn
|
|
2850
2850
|
};
|
|
2851
2851
|
const Xn = {
|
|
2852
|
-
components: { JsonView:
|
|
2852
|
+
components: { JsonView: Re, DevLayout: dt, VTable: oe, VForm: J, VButton: Pe },
|
|
2853
2853
|
props: {
|
|
2854
2854
|
schema: {
|
|
2855
2855
|
type: Object,
|
|
@@ -2858,7 +2858,7 @@ const Xn = {
|
|
|
2858
2858
|
}
|
|
2859
2859
|
},
|
|
2860
2860
|
data() {
|
|
2861
|
-
const e =
|
|
2861
|
+
const e = Ot(this.$props.schema);
|
|
2862
2862
|
return delete e.listApi, e.list = [{}], {
|
|
2863
2863
|
baseSchema: He,
|
|
2864
2864
|
activeTab: "base",
|
|
@@ -2877,7 +2877,7 @@ const Xn = {
|
|
|
2877
2877
|
ctrlName: "",
|
|
2878
2878
|
activeIndex: void 0,
|
|
2879
2879
|
ctrlMap: {
|
|
2880
|
-
filter: { input:
|
|
2880
|
+
filter: { input: Rn, select: Ln, date: Mn },
|
|
2881
2881
|
headers: Jn,
|
|
2882
2882
|
buttons: Qn
|
|
2883
2883
|
},
|
|
@@ -2993,7 +2993,7 @@ const Xn = {
|
|
|
2993
2993
|
}), this.key++, this.ctrlKey++, this.activeIndex = `${t}[${this.builderSchema[t].length - 1}]`, this.activeTab = "ctrl";
|
|
2994
2994
|
},
|
|
2995
2995
|
removeOne() {
|
|
2996
|
-
|
|
2996
|
+
et(this.builderSchema, this.activeIndex), this.builderSchema = y(Qe(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
|
|
2997
2997
|
},
|
|
2998
2998
|
clicklabel() {
|
|
2999
2999
|
const e = this.activeIndex, t = e.match(this.activeIndexReg);
|
|
@@ -3032,8 +3032,8 @@ const Xn = {
|
|
|
3032
3032
|
}
|
|
3033
3033
|
};
|
|
3034
3034
|
function Yn(e, t, l, n, o, a) {
|
|
3035
|
-
const s = de, c = ue, p = ae, d = v("v-table"), m =
|
|
3036
|
-
return i(), f(
|
|
3035
|
+
const s = de, c = ue, p = ae, d = v("v-table"), m = nt, _ = ue, T = v("JsonView"), w = v("VButton"), F = Te, U = Oe, C = ot, Z = at, xt = v("v-form"), Et = v("dev-layout");
|
|
3036
|
+
return i(), f(Et, null, {
|
|
3037
3037
|
"left-aside": r(() => [
|
|
3038
3038
|
u(p, { style: { width: "200px" } }, {
|
|
3039
3039
|
default: r(() => [
|
|
@@ -3282,7 +3282,7 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3282
3282
|
]),
|
|
3283
3283
|
_: 1
|
|
3284
3284
|
})) : x("", !0),
|
|
3285
|
-
(i(), f(
|
|
3285
|
+
(i(), f(xt, G({
|
|
3286
3286
|
key: o.ctrlKey,
|
|
3287
3287
|
modelValue: o.ctrlOptions,
|
|
3288
3288
|
"onUpdate:modelValue": t[4] || (t[4] = (I) => o.ctrlOptions = I)
|
|
@@ -3293,14 +3293,14 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3293
3293
|
}
|
|
3294
3294
|
const eo = /* @__PURE__ */ $(Xn, [["render", Yn], ["__scopeId", "data-v-e5209cb7"]]), to = {
|
|
3295
3295
|
name: "PageEditor",
|
|
3296
|
-
components: { FormBuilder:
|
|
3296
|
+
components: { FormBuilder: Pn, TableBuilder: eo },
|
|
3297
3297
|
setup() {
|
|
3298
3298
|
const e = L(!1), t = L(1), l = "rtl", n = pe(), o = j(() => E.state.app.pages[n.path]);
|
|
3299
3299
|
return { show: e, key: t, direction: l, pageSchema: o };
|
|
3300
3300
|
}
|
|
3301
3301
|
};
|
|
3302
3302
|
function lo(e, t, l, n, o, a) {
|
|
3303
|
-
const s = v("VIcon"), c = v("form-builder"), p = v("table-builder"), d =
|
|
3303
|
+
const s = v("VIcon"), c = v("form-builder"), p = v("table-builder"), d = st;
|
|
3304
3304
|
return i(), h(S, null, [
|
|
3305
3305
|
u(s, {
|
|
3306
3306
|
name: "ra-set",
|
|
@@ -3335,7 +3335,7 @@ const oo = {
|
|
|
3335
3335
|
components: {
|
|
3336
3336
|
Breadcrumb: un,
|
|
3337
3337
|
Hamburger: mn,
|
|
3338
|
-
VButton:
|
|
3338
|
+
VButton: Pe,
|
|
3339
3339
|
PageEditor: no
|
|
3340
3340
|
},
|
|
3341
3341
|
data() {
|
|
@@ -3367,7 +3367,7 @@ const oo = {
|
|
|
3367
3367
|
}
|
|
3368
3368
|
},
|
|
3369
3369
|
mounted() {
|
|
3370
|
-
|
|
3370
|
+
Xe("el-submenu is-active");
|
|
3371
3371
|
const e = this.getSetting("navBarNotice");
|
|
3372
3372
|
e.length > 0 && !this.getSetting("closeNavNotice") && this.showNotice(e) && this.$notify({
|
|
3373
3373
|
title: "提示",
|
|
@@ -3419,11 +3419,11 @@ const oo = {
|
|
|
3419
3419
|
style: { padding: "0" }
|
|
3420
3420
|
}, co = { class: "user-info" }, uo = ["src"], po = { class: "user-name" };
|
|
3421
3421
|
function mo(e, t, l, n, o, a) {
|
|
3422
|
-
const s = v("hamburger"), c = v("breadcrumb"), p = de, d = v("VIcon"), m = v("PageEditor"), _ = v("v-button"), T = ml, w = fl, F = hl, U =
|
|
3422
|
+
const s = v("hamburger"), c = v("breadcrumb"), p = de, d = v("VIcon"), m = v("PageEditor"), _ = v("v-button"), T = ml, w = fl, F = hl, U = st, C = ae;
|
|
3423
3423
|
return i(), f(C, {
|
|
3424
3424
|
ref: "header",
|
|
3425
3425
|
class: "navbar",
|
|
3426
|
-
style:
|
|
3426
|
+
style: Bt({ background: a.setting.envColor[a.user.env] })
|
|
3427
3427
|
}, {
|
|
3428
3428
|
default: r(() => [
|
|
3429
3429
|
u(p, { span: 16 }, {
|
|
@@ -3534,7 +3534,7 @@ function wo(e, t, l, n, o, a) {
|
|
|
3534
3534
|
return i(), h("div", {
|
|
3535
3535
|
class: H(["sidebar-logo-container", { collapse: l.collapse }])
|
|
3536
3536
|
}, [
|
|
3537
|
-
u(
|
|
3537
|
+
u(At, { name: "sidebarLogoFade" }, {
|
|
3538
3538
|
default: r(() => [
|
|
3539
3539
|
l.collapse ? (i(), f(s, {
|
|
3540
3540
|
key: "collapse",
|
|
@@ -3748,14 +3748,14 @@ function Ao(e, t, l, n, o, a) {
|
|
|
3748
3748
|
}, 8, ["index", "class"])) : x("", !0)
|
|
3749
3749
|
])) : x("", !0);
|
|
3750
3750
|
}
|
|
3751
|
-
const
|
|
3752
|
-
function
|
|
3751
|
+
const Po = /* @__PURE__ */ $(Oo, [["render", Ao]]);
|
|
3752
|
+
function ft(e) {
|
|
3753
3753
|
return e.filter((t) => {
|
|
3754
3754
|
var l;
|
|
3755
|
-
return ((l = t.meta) == null ? void 0 : l.menuType) === 0 ? !1 : (t.children && (t.children =
|
|
3755
|
+
return ((l = t.meta) == null ? void 0 : l.menuType) === 0 ? !1 : (t.children && (t.children = ft(t.children), t.children.length === 0 && delete t.children), !0);
|
|
3756
3756
|
});
|
|
3757
3757
|
}
|
|
3758
|
-
const
|
|
3758
|
+
const Ro = {
|
|
3759
3759
|
data() {
|
|
3760
3760
|
return {
|
|
3761
3761
|
selected: ""
|
|
@@ -3767,11 +3767,22 @@ const Po = {
|
|
|
3767
3767
|
let e = [];
|
|
3768
3768
|
return this.remoteRouter.forEach((t) => {
|
|
3769
3769
|
e = e.concat(y(t.routes));
|
|
3770
|
-
}),
|
|
3770
|
+
}), ft(e);
|
|
3771
3771
|
}
|
|
3772
3772
|
},
|
|
3773
3773
|
methods: {
|
|
3774
|
-
|
|
3774
|
+
getJumpPath: function(e) {
|
|
3775
|
+
let t = e;
|
|
3776
|
+
if (e.meta.menuType === 1 && e.children.length > 0) {
|
|
3777
|
+
for (let l = 0; l < e.children.length; l++)
|
|
3778
|
+
if (e.children[l].path.indexOf("/:") === -1) {
|
|
3779
|
+
t = e.children[l];
|
|
3780
|
+
break;
|
|
3781
|
+
}
|
|
3782
|
+
}
|
|
3783
|
+
return this.$router.resolve(t.redirect ? t.redirect : t).fullPath;
|
|
3784
|
+
},
|
|
3785
|
+
onselected: function(e) {
|
|
3775
3786
|
this.$router.push(e), this.selected = "";
|
|
3776
3787
|
}
|
|
3777
3788
|
}
|
|
@@ -3784,7 +3795,7 @@ function Lo(e, t, l, n, o, a) {
|
|
|
3784
3795
|
filterable: "",
|
|
3785
3796
|
placeholder: "搜索菜单...",
|
|
3786
3797
|
class: "search-menu",
|
|
3787
|
-
onChange: a.
|
|
3798
|
+
onChange: a.onselected
|
|
3788
3799
|
}, {
|
|
3789
3800
|
default: r(() => [
|
|
3790
3801
|
(i(!0), h(S, null, B(a.filterRoutes, (d) => (i(), h(S, {
|
|
@@ -3802,7 +3813,7 @@ function Lo(e, t, l, n, o, a) {
|
|
|
3802
3813
|
d.meta.menuType !== 0 ? (i(), f(s, {
|
|
3803
3814
|
key: 0,
|
|
3804
3815
|
label: (_ === d.children.length - 1 ? "└─" : "├─") + m.meta.title,
|
|
3805
|
-
value: m
|
|
3816
|
+
value: a.getJumpPath(m)
|
|
3806
3817
|
}, null, 8, ["label", "value"])) : x("", !0)
|
|
3807
3818
|
], 64))), 128))
|
|
3808
3819
|
]),
|
|
@@ -3811,17 +3822,17 @@ function Lo(e, t, l, n, o, a) {
|
|
|
3811
3822
|
], 64)) : (i(), f(s, {
|
|
3812
3823
|
key: 1,
|
|
3813
3824
|
label: "" + d.meta.title,
|
|
3814
|
-
value: d
|
|
3825
|
+
value: a.getJumpPath(d)
|
|
3815
3826
|
}, null, 8, ["label", "value"]))
|
|
3816
3827
|
], 64))), 128))
|
|
3817
3828
|
]),
|
|
3818
3829
|
_: 1
|
|
3819
3830
|
}, 8, ["modelValue", "onChange"]);
|
|
3820
3831
|
}
|
|
3821
|
-
const Mo = /* @__PURE__ */ $(
|
|
3822
|
-
var D = /* @__PURE__ */ ((e) => (e[e.custom = 0] = "custom", e[e.list = 1] = "list", e[e.form = 2] = "form", e[e.customSchema = 3] = "customSchema", e[e.localComp = 4] = "localComp", e[e.tree = 5] = "tree", e[e.report = 6] = "report", e[e.entity = 7] = "entity", e))(D || {}),
|
|
3832
|
+
const Mo = /* @__PURE__ */ $(Ro, [["render", Lo], ["__scopeId", "data-v-7a867c34"]]);
|
|
3833
|
+
var D = /* @__PURE__ */ ((e) => (e[e.custom = 0] = "custom", e[e.list = 1] = "list", e[e.form = 2] = "form", e[e.customSchema = 3] = "customSchema", e[e.localComp = 4] = "localComp", e[e.tree = 5] = "tree", e[e.report = 6] = "report", e[e.entity = 7] = "entity", e))(D || {}), R = /* @__PURE__ */ ((e) => (e[e.hidden = 0] = "hidden", e[e.dir = 1] = "dir", e[e.menu = 2] = "menu", e[e.page = 3] = "page", e))(R || {});
|
|
3823
3834
|
const Do = q({
|
|
3824
|
-
components: { SidebarItem:
|
|
3835
|
+
components: { SidebarItem: Po, Logo: So, SearchMenu: Mo },
|
|
3825
3836
|
computed: {
|
|
3826
3837
|
...Ce(["sidebar", "remoteRouter", "customRouter"]),
|
|
3827
3838
|
routes() {
|
|
@@ -3840,7 +3851,7 @@ const Do = q({
|
|
|
3840
3851
|
const e = this.$route.matched;
|
|
3841
3852
|
for (let t = e.length - 1; t >= 0; t--) {
|
|
3842
3853
|
const l = e[t];
|
|
3843
|
-
if (l.meta.menuType ===
|
|
3854
|
+
if (l.meta.menuType === R.menu)
|
|
3844
3855
|
return this.showActive(), this.$router.resolve(l.redirect ? l.redirect : l).fullPath;
|
|
3845
3856
|
}
|
|
3846
3857
|
return "";
|
|
@@ -3864,12 +3875,10 @@ const Do = q({
|
|
|
3864
3875
|
},
|
|
3865
3876
|
methods: {
|
|
3866
3877
|
showActive() {
|
|
3867
|
-
|
|
3868
|
-
document.getElementsByClassName("is-active")[0].scrollIntoView();
|
|
3869
|
-
}, 200);
|
|
3878
|
+
Xe("is-active", 200);
|
|
3870
3879
|
},
|
|
3871
3880
|
filterRoute(e) {
|
|
3872
|
-
return e.filter((t) => [
|
|
3881
|
+
return e.filter((t) => [R.dir, R.menu].indexOf(t.meta.menuType) !== -1).map((t) => (t = Object.assign({}, t), t.children && (t.children = this.filterRoute(t.children)), t));
|
|
3873
3882
|
}
|
|
3874
3883
|
}
|
|
3875
3884
|
});
|
|
@@ -3913,7 +3922,7 @@ function jo(e, t, l, n, o, a) {
|
|
|
3913
3922
|
})
|
|
3914
3923
|
], 2);
|
|
3915
3924
|
}
|
|
3916
|
-
const No = /* @__PURE__ */ $(Do, [["render", jo], ["__scopeId", "data-v-
|
|
3925
|
+
const No = /* @__PURE__ */ $(Do, [["render", jo], ["__scopeId", "data-v-d252f828"]]);
|
|
3917
3926
|
const Vo = { class: "app-main" }, qo = {
|
|
3918
3927
|
__name: "AppMain",
|
|
3919
3928
|
setup(e) {
|
|
@@ -3935,7 +3944,7 @@ const Vo = { class: "app-main" }, qo = {
|
|
|
3935
3944
|
const Ho = { class: "main-container" }, Fo = 992, Go = {
|
|
3936
3945
|
__name: "index",
|
|
3937
3946
|
setup(e) {
|
|
3938
|
-
const t =
|
|
3947
|
+
const t = lt(), { body: l } = document, n = j(() => t.state.app.sidebar), o = j(() => t.state.app.device), a = j(() => t.state.settings.fixedHeader), s = j(() => ({
|
|
3939
3948
|
hideSidebar: !n.value.opened,
|
|
3940
3949
|
openSidebar: n.value.opened,
|
|
3941
3950
|
withoutAnimation: n.value.withoutAnimation,
|
|
@@ -3969,7 +3978,7 @@ const Ho = { class: "main-container" }, Fo = 992, Go = {
|
|
|
3969
3978
|
])
|
|
3970
3979
|
], 2));
|
|
3971
3980
|
}
|
|
3972
|
-
},
|
|
3981
|
+
}, ht = /* @__PURE__ */ $(Go, [["__scopeId", "data-v-957442cd"]]);
|
|
3973
3982
|
class Jo {
|
|
3974
3983
|
constructor() {
|
|
3975
3984
|
M(this, "type", "qrcode");
|
|
@@ -4104,7 +4113,7 @@ const Qo = { id: "login" }, Xo = /* @__PURE__ */ b("h1", { id: "title" }, "登
|
|
|
4104
4113
|
});
|
|
4105
4114
|
const sa = {
|
|
4106
4115
|
name: "NotFoundPage"
|
|
4107
|
-
},
|
|
4116
|
+
}, bt = (e) => (Ke("data-v-26068803"), e = e(), We(), e), ia = { class: "not-found" }, ra = /* @__PURE__ */ bt(() => /* @__PURE__ */ b("svg", {
|
|
4108
4117
|
width: "380px",
|
|
4109
4118
|
height: "500px",
|
|
4110
4119
|
viewBox: "0 0 837 1045",
|
|
@@ -4157,7 +4166,7 @@ const sa = {
|
|
|
4157
4166
|
"sketch:type": "MSShapeGroup"
|
|
4158
4167
|
})
|
|
4159
4168
|
])
|
|
4160
|
-
], -1)), ca = /* @__PURE__ */
|
|
4169
|
+
], -1)), ca = /* @__PURE__ */ bt(() => /* @__PURE__ */ b("div", { class: "message-box" }, [
|
|
4161
4170
|
/* @__PURE__ */ b("h1", null, "404"),
|
|
4162
4171
|
/* @__PURE__ */ b("p", null, "Page not found"),
|
|
4163
4172
|
/* @__PURE__ */ b("div", { class: "buttons-con" }, [
|
|
@@ -4178,7 +4187,7 @@ function pa(e, t, l, n, o, a) {
|
|
|
4178
4187
|
const da = /* @__PURE__ */ $(sa, [["render", pa], ["__scopeId", "data-v-26068803"]]), ma = [
|
|
4179
4188
|
{
|
|
4180
4189
|
path: "/",
|
|
4181
|
-
component:
|
|
4190
|
+
component: ht,
|
|
4182
4191
|
redirect: "/dashboard",
|
|
4183
4192
|
name: "Root",
|
|
4184
4193
|
meta: {
|
|
@@ -4223,7 +4232,7 @@ function fa(e) {
|
|
|
4223
4232
|
function ha() {
|
|
4224
4233
|
return E.state.user.isLodeRemoteRoutes;
|
|
4225
4234
|
}
|
|
4226
|
-
function
|
|
4235
|
+
function _t() {
|
|
4227
4236
|
return E.state.settings.whiteRoutes || [];
|
|
4228
4237
|
}
|
|
4229
4238
|
function ba() {
|
|
@@ -4232,7 +4241,7 @@ function ba() {
|
|
|
4232
4241
|
function _a(e) {
|
|
4233
4242
|
e.beforeEach(async (t, l, n) => {
|
|
4234
4243
|
var p, d;
|
|
4235
|
-
if (
|
|
4244
|
+
if (_t().indexOf(t.path) !== -1) {
|
|
4236
4245
|
n();
|
|
4237
4246
|
return;
|
|
4238
4247
|
}
|
|
@@ -4259,7 +4268,7 @@ const ya = {}, va = { class: "loading preloader" }, ga = /* @__PURE__ */ b("div"
|
|
|
4259
4268
|
function wa(e, t) {
|
|
4260
4269
|
return i(), h("div", va, ka);
|
|
4261
4270
|
}
|
|
4262
|
-
const
|
|
4271
|
+
const yt = /* @__PURE__ */ $(ya, [["render", wa]]), Sa = {
|
|
4263
4272
|
name: "VNotice",
|
|
4264
4273
|
props: {
|
|
4265
4274
|
dataApi: {
|
|
@@ -4297,8 +4306,8 @@ function xa(e, t, l, n, o, a) {
|
|
|
4297
4306
|
}, null, 8, ["title"])) : x("", !0)
|
|
4298
4307
|
]);
|
|
4299
4308
|
}
|
|
4300
|
-
const
|
|
4301
|
-
components: { VLoading:
|
|
4309
|
+
const vt = /* @__PURE__ */ $(Sa, [["render", xa]]), Ea = q({
|
|
4310
|
+
components: { VLoading: yt, VNotice: vt },
|
|
4302
4311
|
props: {
|
|
4303
4312
|
schemaHandler: {
|
|
4304
4313
|
type: Function,
|
|
@@ -4341,7 +4350,7 @@ const yt = /* @__PURE__ */ $(Sa, [["render", xa]]), Ea = q({
|
|
|
4341
4350
|
});
|
|
4342
4351
|
const $a = ["innerHTML"];
|
|
4343
4352
|
function Ia(e, t, l, n, o, a) {
|
|
4344
|
-
const s = Be, c =
|
|
4353
|
+
const s = Be, c = vt, p = yt;
|
|
4345
4354
|
return i(), h(S, null, [
|
|
4346
4355
|
e.owners.length > 0 ? (i(), f(s, {
|
|
4347
4356
|
key: 0,
|
|
@@ -4365,7 +4374,7 @@ function Ia(e, t, l, n, o, a) {
|
|
|
4365
4374
|
], 64))
|
|
4366
4375
|
], 64);
|
|
4367
4376
|
}
|
|
4368
|
-
const se = /* @__PURE__ */ $(Ea, [["render", Ia], ["__scopeId", "data-v-015774e8"]]),
|
|
4377
|
+
const se = /* @__PURE__ */ $(Ea, [["render", Ia], ["__scopeId", "data-v-015774e8"]]), gt = {
|
|
4369
4378
|
__name: "table",
|
|
4370
4379
|
setup(e) {
|
|
4371
4380
|
const t = (l, n) => {
|
|
@@ -4556,10 +4565,10 @@ const se = /* @__PURE__ */ $(Ea, [["render", Ia], ["__scopeId", "data-v-015774e8
|
|
|
4556
4565
|
}
|
|
4557
4566
|
}
|
|
4558
4567
|
});
|
|
4559
|
-
const Ta = { class: "card-header" }, Oa = /* @__PURE__ */ b("span", null, "列表", -1), Ba = { class: "tree-action" }, Aa = { key: 0 },
|
|
4568
|
+
const Ta = { class: "card-header" }, Oa = /* @__PURE__ */ b("span", null, "列表", -1), Ba = { class: "tree-action" }, Aa = { key: 0 }, Pa = {
|
|
4560
4569
|
key: 1,
|
|
4561
4570
|
style: { color: "#E6A23C" }
|
|
4562
|
-
},
|
|
4571
|
+
}, Ra = { class: "card-header" };
|
|
4563
4572
|
function La(e, t, l, n, o, a) {
|
|
4564
4573
|
const s = ue, c = Sl, p = Ae, d = de, m = v("v-form"), _ = ae;
|
|
4565
4574
|
return i(), f(_, {
|
|
@@ -4601,7 +4610,7 @@ function La(e, t, l, n, o, a) {
|
|
|
4601
4610
|
}), {
|
|
4602
4611
|
default: r(({ node: T, data: w }) => [
|
|
4603
4612
|
b("span", Ba, [
|
|
4604
|
-
w[e.localTreeProps.props.label] ? (i(), h("span", Aa, O(w[e.localTreeProps.props.label]), 1)) : (i(), h("span",
|
|
4613
|
+
w[e.localTreeProps.props.label] ? (i(), h("span", Aa, O(w[e.localTreeProps.props.label]), 1)) : (i(), h("span", Pa, "请在右侧表单中修改 --> ")),
|
|
4605
4614
|
b("span", null, [
|
|
4606
4615
|
w[e.localTreeProps.props.label] ? (i(), f(s, {
|
|
4607
4616
|
key: 0,
|
|
@@ -4657,7 +4666,7 @@ function La(e, t, l, n, o, a) {
|
|
|
4657
4666
|
shadow: "never"
|
|
4658
4667
|
}, {
|
|
4659
4668
|
header: r(() => [
|
|
4660
|
-
b("div",
|
|
4669
|
+
b("div", Ra, [
|
|
4661
4670
|
b("span", null, O(e.formType), 1)
|
|
4662
4671
|
])
|
|
4663
4672
|
]),
|
|
@@ -4789,7 +4798,7 @@ const Fa = /* @__PURE__ */ $(Na, [["render", Ha], ["__scopeId", "data-v-cc0d8293
|
|
|
4789
4798
|
components: {
|
|
4790
4799
|
Chart: El,
|
|
4791
4800
|
Md: Ol,
|
|
4792
|
-
Json:
|
|
4801
|
+
Json: Re,
|
|
4793
4802
|
Table: oe,
|
|
4794
4803
|
Number: Fa,
|
|
4795
4804
|
Html: ""
|
|
@@ -4819,7 +4828,7 @@ const Fa = /* @__PURE__ */ $(Na, [["render", Ha], ["__scopeId", "data-v-cc0d8293
|
|
|
4819
4828
|
source: n.data
|
|
4820
4829
|
};
|
|
4821
4830
|
if (o === "table") {
|
|
4822
|
-
if (!
|
|
4831
|
+
if (!Ye(n.data))
|
|
4823
4832
|
return { showPagination: !1 };
|
|
4824
4833
|
const a = [];
|
|
4825
4834
|
return n.data[0] && Object.keys(n.data[0]).forEach((s, c) => {
|
|
@@ -4837,7 +4846,7 @@ const Fa = /* @__PURE__ */ $(Na, [["render", Ha], ["__scopeId", "data-v-cc0d8293
|
|
|
4837
4846
|
}
|
|
4838
4847
|
};
|
|
4839
4848
|
function Ja(e, t, l, n, o, a) {
|
|
4840
|
-
const s = Ae, c =
|
|
4849
|
+
const s = Ae, c = Pt("resize");
|
|
4841
4850
|
return ie((i(), f(s, {
|
|
4842
4851
|
shadow: "never",
|
|
4843
4852
|
class: "part"
|
|
@@ -4911,7 +4920,7 @@ const za = /* @__PURE__ */ $(Ga, [["render", Ja], ["__scopeId", "data-v-a5a65cc1
|
|
|
4911
4920
|
default: r(() => [
|
|
4912
4921
|
u(k(J), {
|
|
4913
4922
|
modelValue: k(n),
|
|
4914
|
-
"onUpdate:modelValue": _[0] || (_[0] = (C) =>
|
|
4923
|
+
"onUpdate:modelValue": _[0] || (_[0] = (C) => Lt(n) ? n.value = C : null),
|
|
4915
4924
|
"form-items": k(s),
|
|
4916
4925
|
options: o,
|
|
4917
4926
|
onSubmit: d
|
|
@@ -5054,7 +5063,7 @@ function je(e) {
|
|
|
5054
5063
|
n = A({
|
|
5055
5064
|
props: {}
|
|
5056
5065
|
}, Xa[n.type] || {}, n);
|
|
5057
|
-
const a =
|
|
5066
|
+
const a = kt(n.children);
|
|
5058
5067
|
a.length && (n.children = je(a)), t.children.push({
|
|
5059
5068
|
type: "col",
|
|
5060
5069
|
props: o,
|
|
@@ -5062,19 +5071,19 @@ function je(e) {
|
|
|
5062
5071
|
});
|
|
5063
5072
|
}), [t];
|
|
5064
5073
|
}
|
|
5065
|
-
function
|
|
5066
|
-
return
|
|
5074
|
+
function kt(e) {
|
|
5075
|
+
return Ye(e) ? e : X(e) ? [e] : [];
|
|
5067
5076
|
}
|
|
5068
5077
|
let Ee = {};
|
|
5069
|
-
const
|
|
5078
|
+
const wt = (e) => {
|
|
5070
5079
|
const t = Qa[e.type] || Ee[e.type] || e.type;
|
|
5071
|
-
return
|
|
5072
|
-
default: () =>
|
|
5080
|
+
return Dt(t, e.props, {
|
|
5081
|
+
default: () => kt(e.children).map((l) => wt(l))
|
|
5073
5082
|
});
|
|
5074
|
-
}, es = (e) => (Object.keys(Ee).length === 0 && (Ee =
|
|
5083
|
+
}, es = (e) => (Object.keys(Ee).length === 0 && (Ee = Mt().appContext.components), je(Object.values(e.schema)).map((l) => wt(l))), ts = {
|
|
5075
5084
|
__name: "custom",
|
|
5076
5085
|
setup(e) {
|
|
5077
|
-
const t = L([]), l = (n, o) => (t.value =
|
|
5086
|
+
const t = L([]), l = (n, o) => (t.value = jt(n), n);
|
|
5078
5087
|
return (n, o) => (i(), f(se, { "schema-handler": l }, {
|
|
5079
5088
|
default: r(() => [
|
|
5080
5089
|
u(k(es), { schema: k(t) }, null, 8, ["schema"])
|
|
@@ -5096,7 +5105,7 @@ const ls = (e) => {
|
|
|
5096
5105
|
return ge;
|
|
5097
5106
|
switch (e.page_type) {
|
|
5098
5107
|
case D.list:
|
|
5099
|
-
return
|
|
5108
|
+
return gt;
|
|
5100
5109
|
case D.form:
|
|
5101
5110
|
return xe;
|
|
5102
5111
|
case D.custom:
|
|
@@ -5113,13 +5122,13 @@ const ls = (e) => {
|
|
|
5113
5122
|
};
|
|
5114
5123
|
function ns(e) {
|
|
5115
5124
|
let t = e.path;
|
|
5116
|
-
return e.type ===
|
|
5125
|
+
return e.type === R.menu && e.page_type === D.entity && (t = "#"), t.indexOf(":id") > -1 && t.indexOf(":id") + 3 === t.length && (t = t.replace(":id", ":id(\\d+)")), t === "#" ? "/" + e.id + "_DIR_" + e.name : t[0] !== "/" ? "/" + t : t;
|
|
5117
5126
|
}
|
|
5118
5127
|
function os(e) {
|
|
5119
5128
|
return (e.path + e.name).split("/").filter((t) => t).join("_");
|
|
5120
5129
|
}
|
|
5121
|
-
const
|
|
5122
|
-
const t = e.type !==
|
|
5130
|
+
const St = (e) => {
|
|
5131
|
+
const t = e.type !== R.page, l = {
|
|
5123
5132
|
path: ns(e),
|
|
5124
5133
|
name: e.id + "_" + os(e) + "_" + e.path.replaceAll("/", "_"),
|
|
5125
5134
|
component: ls(e),
|
|
@@ -5133,18 +5142,18 @@ const wt = (e) => {
|
|
|
5133
5142
|
menuType: e.type,
|
|
5134
5143
|
keepAlive: !1
|
|
5135
5144
|
},
|
|
5136
|
-
children: e.children ? e.children.map((n) =>
|
|
5145
|
+
children: e.children ? e.children.map((n) => St(n)) : []
|
|
5137
5146
|
};
|
|
5138
5147
|
if (e.page_type === D.entity) {
|
|
5139
5148
|
const n = e.path + "/list", o = e.path + "/form", a = e.path + "/:id", s = [{
|
|
5140
5149
|
path: n,
|
|
5141
5150
|
name: e.name + "列表" + e.id,
|
|
5142
|
-
component:
|
|
5151
|
+
component: gt,
|
|
5143
5152
|
meta: {
|
|
5144
5153
|
id: e.id + 99999,
|
|
5145
5154
|
title: "列表",
|
|
5146
5155
|
hidden: !0,
|
|
5147
|
-
menuType:
|
|
5156
|
+
menuType: R.hidden,
|
|
5148
5157
|
keepAlive: !1,
|
|
5149
5158
|
pageId: e.id,
|
|
5150
5159
|
path: e.path
|
|
@@ -5157,7 +5166,7 @@ const wt = (e) => {
|
|
|
5157
5166
|
id: e.id + 99999 + 1,
|
|
5158
5167
|
title: "新建",
|
|
5159
5168
|
hidden: !0,
|
|
5160
|
-
menuType:
|
|
5169
|
+
menuType: R.hidden,
|
|
5161
5170
|
keepAlive: !1,
|
|
5162
5171
|
pageId: e.id,
|
|
5163
5172
|
path: e.path
|
|
@@ -5170,7 +5179,7 @@ const wt = (e) => {
|
|
|
5170
5179
|
id: e.id + 99999 + 2,
|
|
5171
5180
|
title: "编辑",
|
|
5172
5181
|
hidden: !0,
|
|
5173
|
-
menuType:
|
|
5182
|
+
menuType: R.hidden,
|
|
5174
5183
|
keepAlive: !1,
|
|
5175
5184
|
pageId: e.id,
|
|
5176
5185
|
path: e.path
|
|
@@ -5182,8 +5191,8 @@ const wt = (e) => {
|
|
|
5182
5191
|
let n = !0;
|
|
5183
5192
|
if (l.children.forEach((o) => {
|
|
5184
5193
|
o.meta && !o.meta.hidden && (n = !1);
|
|
5185
|
-
}), l.meta && (l.meta.menuType = t ?
|
|
5186
|
-
l.meta && (l.meta.menuType =
|
|
5194
|
+
}), l.meta && (l.meta.menuType = t ? R.dir : R.hidden), n) {
|
|
5195
|
+
l.meta && (l.meta.menuType = R.menu);
|
|
5187
5196
|
let o = "/";
|
|
5188
5197
|
for (let a = 0; a < l.children.length; a++)
|
|
5189
5198
|
if (l.children[a].path.indexOf("/:") === -1) {
|
|
@@ -5203,13 +5212,13 @@ const wt = (e) => {
|
|
|
5203
5212
|
routes: []
|
|
5204
5213
|
};
|
|
5205
5214
|
l.routes.forEach((o) => {
|
|
5206
|
-
n.routes.push(
|
|
5215
|
+
n.routes.push(St(o));
|
|
5207
5216
|
}), t.push(n);
|
|
5208
5217
|
}), t;
|
|
5209
5218
|
};
|
|
5210
5219
|
function ss(e) {
|
|
5211
5220
|
e.beforeEach(async (t, l, n) => {
|
|
5212
|
-
if (
|
|
5221
|
+
if (_t().indexOf(t.path) !== -1) {
|
|
5213
5222
|
n();
|
|
5214
5223
|
return;
|
|
5215
5224
|
}
|
|
@@ -5223,7 +5232,7 @@ function ss(e) {
|
|
|
5223
5232
|
s.routes.forEach((c) => {
|
|
5224
5233
|
e.addRoute({
|
|
5225
5234
|
path: "/",
|
|
5226
|
-
component:
|
|
5235
|
+
component: ht,
|
|
5227
5236
|
children: [c]
|
|
5228
5237
|
});
|
|
5229
5238
|
});
|
|
@@ -5277,7 +5286,7 @@ const us = {
|
|
|
5277
5286
|
showCancelButton: !0,
|
|
5278
5287
|
cancelButtonText: "取消",
|
|
5279
5288
|
callback: (_) => {
|
|
5280
|
-
_ === "confirm" && (
|
|
5289
|
+
_ === "confirm" && (ut(), location.href = location.origin + location.pathname + location.hash.replace("#", "#/?redirect="), location.reload());
|
|
5281
5290
|
}
|
|
5282
5291
|
});
|
|
5283
5292
|
return;
|
|
@@ -5382,7 +5391,7 @@ function Ei(e) {
|
|
|
5382
5391
|
return e ? Ne(A(me.axios, e)) : ce;
|
|
5383
5392
|
}
|
|
5384
5393
|
function $i(e) {
|
|
5385
|
-
const t = A(me, e), l =
|
|
5394
|
+
const t = A(me, e), l = Nt(Al), n = Es(t), o = t.plugins || [];
|
|
5386
5395
|
o.unshift(n), o.forEach((a) => {
|
|
5387
5396
|
xs(l, a);
|
|
5388
5397
|
}), t != null && t.mock && Ul(), ce = Ne(t.axios), E.dispatch("setHttp", ce).then(), E.dispatch("settings/updateSettings", e == null ? void 0 : e.settings).then(), l.config.globalProperties.$http = ce, l.config.globalProperties.$router = z, window.App = l, window.OmsOptions = t, $l(() => ({
|
|
@@ -5420,7 +5429,7 @@ function Ss(e = {}) {
|
|
|
5420
5429
|
});
|
|
5421
5430
|
}
|
|
5422
5431
|
function xs(e, t) {
|
|
5423
|
-
vs(e, t.components || {}), gs(t.routes || []), ks(e, t.use || []), ws(e, t.directives || {}), Ss(t.storeModules || {}),
|
|
5432
|
+
vs(e, t.components || {}), gs(t.routes || []), ks(e, t.use || []), ws(e, t.directives || {}), Ss(t.storeModules || {}), rt(t.mockApis || []);
|
|
5424
5433
|
}
|
|
5425
5434
|
function Es(e) {
|
|
5426
5435
|
var t;
|
|
@@ -5430,7 +5439,7 @@ function Es(e) {
|
|
|
5430
5439
|
use: [
|
|
5431
5440
|
E,
|
|
5432
5441
|
z,
|
|
5433
|
-
[Qt, { locale:
|
|
5442
|
+
[Qt, { locale: tt, ...(t = e.settings) == null ? void 0 : t.ElementPlus }]
|
|
5434
5443
|
]
|
|
5435
5444
|
};
|
|
5436
5445
|
}
|
|
@@ -5438,8 +5447,8 @@ export {
|
|
|
5438
5447
|
Jo as BaseSso,
|
|
5439
5448
|
ge as Container,
|
|
5440
5449
|
zo as DingTalk,
|
|
5441
|
-
|
|
5442
|
-
|
|
5450
|
+
ht as Layout,
|
|
5451
|
+
R as MenuType,
|
|
5443
5452
|
Xl as Message,
|
|
5444
5453
|
Ue as MessageBox,
|
|
5445
5454
|
D as PageType,
|