@okiss/oms 0.0.25 → 0.0.26
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 +109 -100
- package/dist/index.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as N, onBeforeMount as Ge, provide as
|
|
2
|
-
import { ElConfigProvider as
|
|
1
|
+
import { defineComponent as N, onBeforeMount as Ge, provide as vt, resolveComponent as v, openBlock as i, createBlock as m, unref as T, withCtx as r, createVNode as u, computed as j, createTextVNode as g, TransitionGroup as gt, createElementBlock as h, Fragment as k, renderList as $, toDisplayString as B, normalizeClass as H, renderSlot as Y, mergeProps as q, createCommentVNode as w, toRefs as kt, ref as R, normalizeStyle as wt, createElementVNode as b, Transition as Et, pushScopeId as Je, popScopeId as ze, resolveDynamicComponent as Ke, normalizeProps as J, guardReactiveProps as Z, withDirectives as ye, vModelText as Le, resolveDirective as St, onMounted as Ct, createApp as xt } from "vue";
|
|
2
|
+
import { ElConfigProvider as Bt, ElBreadcrumbItem as $t, ElBreadcrumb as It, ElRow as le, ElMain as At, ElAside as Tt, ElContainer as Ft, ElDivider as We, ElButton as ae, ElOption as Se, ElSelect as Ce, ElFormItem as Ze, ElForm as Qe, ElCol as ue, ElDrawer as Xe, ElDropdownItem as Dt, ElDropdownMenu as Ot, ElDropdown as Pt, ElMenuItem as Rt, ElSubMenu as Lt, ElOptionGroup as Mt, ElMenu as jt, ElScrollbar as Nt, ElBacktop as Vt, ElMessage as qt, ElAlert as ve, ElTree as Ut, ElCard as xe } from "element-plus/es";
|
|
3
3
|
import "element-plus/es/components/config-provider/style/css";
|
|
4
4
|
import Be from "element-plus/lib/locale/lang/zh-cn";
|
|
5
|
-
import { addNewStyle as
|
|
5
|
+
import { addNewStyle as Ht, addNewStyleTag as Gt, queryParams as Jt, logGroup as zt, isString as $e, compactObject as Ye, showEleByClassName as et, waterMarker as Kt, Cache as fe, isExternal as Me, getQueryParam as Wt, createIFrame as Zt, strVarReplace as K, obj2Param as Qt, isObject as Ie, effectDataTrans as Xt, isArray as Yt } from "@okiss/utils";
|
|
6
6
|
import he from "mockjs";
|
|
7
|
-
import el, { cloneDeep as y, merge as
|
|
7
|
+
import el, { cloneDeep as y, merge as O, get as ee, unset as tt } from "lodash";
|
|
8
8
|
import ie from "axios";
|
|
9
9
|
import L from "js-cookie";
|
|
10
|
-
import { createStore as tl, useStore as
|
|
10
|
+
import { createStore as tl, useStore as lt, mapGetters as Ae } from "vuex";
|
|
11
11
|
import ll, { ElMessage as ol, ElMessageBox as nl } from "element-plus";
|
|
12
12
|
import "element-plus/dist/index.css";
|
|
13
13
|
import "dayjs/locale/zh-cn";
|
|
@@ -60,7 +60,7 @@ const _l = /* @__PURE__ */ N({
|
|
|
60
60
|
var l, n, o, s;
|
|
61
61
|
Ge(() => {
|
|
62
62
|
const a = document.getElementById("preloader");
|
|
63
|
-
a !== null && (document.body.removeChild(a),
|
|
63
|
+
a !== null && (document.body.removeChild(a), Ht("test-icon", "//at.alicdn.com/t/font_2246548_zclaqxwmzq8.css"), Gt(`.iconfont {
|
|
64
64
|
font-size: 19px;
|
|
65
65
|
font-style: normal;
|
|
66
66
|
-webkit-font-smoothing: antialiased;
|
|
@@ -68,8 +68,8 @@ const _l = /* @__PURE__ */ N({
|
|
|
68
68
|
}`));
|
|
69
69
|
});
|
|
70
70
|
const t = Be;
|
|
71
|
-
return (n = (l = window == null ? void 0 : window.OmsOptions) == null ? void 0 : l.form) != null && n.vsPath &&
|
|
72
|
-
const d = v("router-view"), p =
|
|
71
|
+
return (n = (l = window == null ? void 0 : window.OmsOptions) == null ? void 0 : l.form) != null && n.vsPath && vt("vsPath", (s = (o = window == null ? void 0 : window.OmsOptions) == null ? void 0 : o.form) == null ? void 0 : s.vsPath), (a, c) => {
|
|
72
|
+
const d = v("router-view"), p = Bt;
|
|
73
73
|
return i(), m(p, { locale: T(t) }, {
|
|
74
74
|
default: r(() => [
|
|
75
75
|
u(d)
|
|
@@ -725,7 +725,7 @@ const yl = {
|
|
|
725
725
|
baseURL: "/api",
|
|
726
726
|
withCredentials: !0,
|
|
727
727
|
timeout: 5e3
|
|
728
|
-
},
|
|
728
|
+
}, ot = {
|
|
729
729
|
title: "oms",
|
|
730
730
|
fixedHeader: !1,
|
|
731
731
|
sidebarLogo: !0,
|
|
@@ -751,28 +751,28 @@ const yl = {
|
|
|
751
751
|
}
|
|
752
752
|
}, de = {
|
|
753
753
|
axios: xl,
|
|
754
|
-
settings:
|
|
754
|
+
settings: ot,
|
|
755
755
|
plugins: [],
|
|
756
756
|
mock: !1
|
|
757
757
|
}, ke = {};
|
|
758
|
-
function
|
|
758
|
+
function nt(e) {
|
|
759
759
|
e.forEach((t) => {
|
|
760
|
-
const l =
|
|
760
|
+
const l = st(t);
|
|
761
761
|
ke[`${t.method}::${l}`] = t;
|
|
762
762
|
});
|
|
763
763
|
}
|
|
764
|
-
|
|
765
|
-
function
|
|
764
|
+
nt(Cl);
|
|
765
|
+
function st(e) {
|
|
766
766
|
var n;
|
|
767
767
|
let t = e.url, l = e.baseURL || ((n = de.axios) == null ? void 0 : n.baseURL);
|
|
768
768
|
return l || (l = ""), typeof t == "string" ? (t = ("/" + l + t).split("/").filter((o) => o).join("/"), t += "(|\\?.*)$", new RegExp(t)) : t;
|
|
769
769
|
}
|
|
770
770
|
function Bl() {
|
|
771
771
|
Object.keys(ke).forEach((e) => {
|
|
772
|
-
const t = ke[e], l =
|
|
772
|
+
const t = ke[e], l = st(t);
|
|
773
773
|
he.mock(l, t.method, function(n) {
|
|
774
|
-
const { url: o, type: s, body: a } = n, c =
|
|
775
|
-
return
|
|
774
|
+
const { url: o, type: s, body: a } = n, c = Jt(o), d = a ? JSON.parse(a) : {}, p = t.response({ query: c, data: d }), f = he.mock(p);
|
|
775
|
+
return zt(o, { type: s, query: c, data: d, response: f }), he.mock(f);
|
|
776
776
|
});
|
|
777
777
|
}), console.log("%c ApiMock is stared! ", "background: #606060; color: #fff; padding: 4px 5px; border-radius: 1px;");
|
|
778
778
|
}
|
|
@@ -784,7 +784,7 @@ function $l(e) {
|
|
|
784
784
|
const t = new Date(new Date().getTime() + (E.state.settings.tokenExpire || 864e5));
|
|
785
785
|
return L.set(De, e, { expires: t });
|
|
786
786
|
}
|
|
787
|
-
function
|
|
787
|
+
function at() {
|
|
788
788
|
return L.remove(De);
|
|
789
789
|
}
|
|
790
790
|
const Il = {
|
|
@@ -808,7 +808,7 @@ const Il = {
|
|
|
808
808
|
e.token = t, $l(t);
|
|
809
809
|
},
|
|
810
810
|
removeToken(e) {
|
|
811
|
-
e.token = "",
|
|
811
|
+
e.token = "", at();
|
|
812
812
|
},
|
|
813
813
|
updateRemoteRouter(e, t) {
|
|
814
814
|
e.remoteRouter = t, e.isLodeRemoteRoutes = !0;
|
|
@@ -890,12 +890,12 @@ const Il = {
|
|
|
890
890
|
});
|
|
891
891
|
}
|
|
892
892
|
}
|
|
893
|
-
}, Tl = y(
|
|
893
|
+
}, Tl = y(ot), Fl = {
|
|
894
894
|
namespaced: !0,
|
|
895
895
|
state: Tl,
|
|
896
896
|
mutations: {
|
|
897
897
|
updateSettings(e, t) {
|
|
898
|
-
e =
|
|
898
|
+
e = O(e, t);
|
|
899
899
|
}
|
|
900
900
|
},
|
|
901
901
|
actions: {
|
|
@@ -1076,7 +1076,7 @@ const Vl = {
|
|
|
1076
1076
|
showCancelButton: !0,
|
|
1077
1077
|
cancelButtonText: "\u53D6\u6D88",
|
|
1078
1078
|
callback: (_) => {
|
|
1079
|
-
_ === "confirm" && (
|
|
1079
|
+
_ === "confirm" && (at(), location.href = location.origin + location.pathname + location.hash.replace("#", "#/?redirect="), location.reload());
|
|
1080
1080
|
}
|
|
1081
1081
|
});
|
|
1082
1082
|
return;
|
|
@@ -1116,7 +1116,7 @@ const Vl = {
|
|
|
1116
1116
|
}
|
|
1117
1117
|
];
|
|
1118
1118
|
function Pe(e = {}) {
|
|
1119
|
-
const t = de.axios || {}, l =
|
|
1119
|
+
const t = de.axios || {}, l = O(t, e || {});
|
|
1120
1120
|
ie.create(l);
|
|
1121
1121
|
const n = ie.create({
|
|
1122
1122
|
...l
|
|
@@ -1126,17 +1126,17 @@ function Pe(e = {}) {
|
|
|
1126
1126
|
}), n;
|
|
1127
1127
|
}
|
|
1128
1128
|
const Hl = Pe();
|
|
1129
|
-
const
|
|
1129
|
+
const it = {};
|
|
1130
1130
|
function fi(e, t) {
|
|
1131
|
-
|
|
1131
|
+
it[e] = t;
|
|
1132
1132
|
}
|
|
1133
1133
|
function Gl(e) {
|
|
1134
|
-
return
|
|
1134
|
+
return it[e];
|
|
1135
1135
|
}
|
|
1136
1136
|
const Jl = N({
|
|
1137
1137
|
name: "Dashboard",
|
|
1138
1138
|
setup() {
|
|
1139
|
-
const e =
|
|
1139
|
+
const e = lt(), t = j(() => e.getters.name), l = Gl("test");
|
|
1140
1140
|
return l ? () => u(l, null, null) : () => u("div", {
|
|
1141
1141
|
class: "dashboard-container"
|
|
1142
1142
|
}, [u("div", {
|
|
@@ -1198,13 +1198,13 @@ const Kl = {
|
|
|
1198
1198
|
class: "no-redirect"
|
|
1199
1199
|
}, Zl = ["onClick"];
|
|
1200
1200
|
function Ql(e, t, l, n, o, s) {
|
|
1201
|
-
const a =
|
|
1201
|
+
const a = $t, c = It;
|
|
1202
1202
|
return i(), m(c, {
|
|
1203
1203
|
class: "app-breadcrumb",
|
|
1204
1204
|
separator: "/"
|
|
1205
1205
|
}, {
|
|
1206
1206
|
default: r(() => [
|
|
1207
|
-
u(
|
|
1207
|
+
u(gt, { name: "breadcrumb" }, {
|
|
1208
1208
|
default: r(() => [
|
|
1209
1209
|
(i(!0), h(k, null, $(o.levelList, (d, p) => (i(), m(a, {
|
|
1210
1210
|
key: d.path
|
|
@@ -1254,7 +1254,7 @@ function eo(e, t, l, n, o, s) {
|
|
|
1254
1254
|
const to = /* @__PURE__ */ C(Yl, [["render", eo]]);
|
|
1255
1255
|
const lo = {};
|
|
1256
1256
|
function oo(e, t) {
|
|
1257
|
-
const l = le, n =
|
|
1257
|
+
const l = le, n = At, o = Tt, s = Ft;
|
|
1258
1258
|
return i(), m(s, { style: { width: "100%", height: "100%" } }, {
|
|
1259
1259
|
default: r(() => [
|
|
1260
1260
|
u(l, { class: "aside" }, {
|
|
@@ -1286,7 +1286,7 @@ function oo(e, t) {
|
|
|
1286
1286
|
_: 3
|
|
1287
1287
|
});
|
|
1288
1288
|
}
|
|
1289
|
-
const
|
|
1289
|
+
const rt = /* @__PURE__ */ C(lo, [["render", oo], ["__scopeId", "data-v-7c3d697b"]]), no = {
|
|
1290
1290
|
type: "input",
|
|
1291
1291
|
name: "\u6587\u672C\u6846",
|
|
1292
1292
|
default: {
|
|
@@ -1859,9 +1859,9 @@ const it = /* @__PURE__ */ C(lo, [["render", oo], ["__scopeId", "data-v-7c3d697b
|
|
|
1859
1859
|
}
|
|
1860
1860
|
}
|
|
1861
1861
|
]
|
|
1862
|
-
},
|
|
1862
|
+
}, ut = {};
|
|
1863
1863
|
function F(e) {
|
|
1864
|
-
|
|
1864
|
+
ut[e.type] = e;
|
|
1865
1865
|
}
|
|
1866
1866
|
F(no);
|
|
1867
1867
|
F(io);
|
|
@@ -1876,7 +1876,7 @@ F(po);
|
|
|
1876
1876
|
F(mo);
|
|
1877
1877
|
F(ho);
|
|
1878
1878
|
F(fo);
|
|
1879
|
-
const we =
|
|
1879
|
+
const we = ut, yo = {
|
|
1880
1880
|
options: {
|
|
1881
1881
|
labelPosition: "top",
|
|
1882
1882
|
submitButton: !1,
|
|
@@ -2016,7 +2016,7 @@ const vo = {
|
|
|
2016
2016
|
}
|
|
2017
2017
|
]
|
|
2018
2018
|
}, go = {
|
|
2019
|
-
components: { DevLayout:
|
|
2019
|
+
components: { DevLayout: rt, VForm: W, VButton: Te, JsonView: Fe },
|
|
2020
2020
|
props: {
|
|
2021
2021
|
schema: {
|
|
2022
2022
|
type: Object,
|
|
@@ -2069,7 +2069,7 @@ const vo = {
|
|
|
2069
2069
|
immediate: !0,
|
|
2070
2070
|
handler(e) {
|
|
2071
2071
|
const t = y(e);
|
|
2072
|
-
e.showSubmitButton === !1 && (t.submitButton = !1), e.cancelSubmitButton === !1 && (t.cancelButton = !1), delete t.showSubmitButton, delete t.showCancelButton, Object.keys(t).length > 0 && (this.builderSchema =
|
|
2072
|
+
e.showSubmitButton === !1 && (t.submitButton = !1), e.cancelSubmitButton === !1 && (t.cancelButton = !1), delete t.showSubmitButton, delete t.showCancelButton, Object.keys(t).length > 0 && (this.builderSchema = O(this.builderSchema, { options: t }), this.key++);
|
|
2073
2073
|
}
|
|
2074
2074
|
},
|
|
2075
2075
|
ctrlOptions: {
|
|
@@ -2123,7 +2123,7 @@ const vo = {
|
|
|
2123
2123
|
}), this.ctrlKey++, this.key++, this.activeIndex = `${t}[${this.builderSchema[t].length - 1}]`, this.activeTab = "ctrl";
|
|
2124
2124
|
},
|
|
2125
2125
|
removeOne() {
|
|
2126
|
-
|
|
2126
|
+
tt(this.builderSchema, this.activeIndex), this.builderSchema = y(Ye(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
|
|
2127
2127
|
},
|
|
2128
2128
|
clicklabel() {
|
|
2129
2129
|
const e = this.activeIndex;
|
|
@@ -2915,7 +2915,7 @@ const So = /* @__PURE__ */ C(go, [["render", Eo], ["__scopeId", "data-v-d89bdb06
|
|
|
2915
2915
|
table: Vo
|
|
2916
2916
|
};
|
|
2917
2917
|
const Uo = {
|
|
2918
|
-
components: { JsonView: Fe, DevLayout:
|
|
2918
|
+
components: { JsonView: Fe, DevLayout: rt, VTable: re, VForm: W, VButton: Te },
|
|
2919
2919
|
props: {
|
|
2920
2920
|
schema: {
|
|
2921
2921
|
type: Object,
|
|
@@ -2924,7 +2924,7 @@ const Uo = {
|
|
|
2924
2924
|
}
|
|
2925
2925
|
},
|
|
2926
2926
|
data() {
|
|
2927
|
-
const e =
|
|
2927
|
+
const e = kt(this.$props.schema);
|
|
2928
2928
|
return delete e.listApi, e.list = [{}], {
|
|
2929
2929
|
baseSchema: qe,
|
|
2930
2930
|
activeTab: "base",
|
|
@@ -2976,7 +2976,7 @@ const Uo = {
|
|
|
2976
2976
|
deep: !0,
|
|
2977
2977
|
immediate: !0,
|
|
2978
2978
|
handler(e) {
|
|
2979
|
-
this.builderSchema =
|
|
2979
|
+
this.builderSchema = O(this.builderSchema, e), this.key++, this.updateBuilderSchema();
|
|
2980
2980
|
}
|
|
2981
2981
|
},
|
|
2982
2982
|
ctrlOptions: {
|
|
@@ -3058,7 +3058,7 @@ const Uo = {
|
|
|
3058
3058
|
}), this.key++, this.ctrlKey++, this.activeIndex = `${t}[${this.builderSchema[t].length - 1}]`, this.activeTab = "ctrl";
|
|
3059
3059
|
},
|
|
3060
3060
|
removeOne() {
|
|
3061
|
-
|
|
3061
|
+
tt(this.builderSchema, this.activeIndex), this.builderSchema = y(Ye(this.builderSchema)), console.log(this.builderSchema), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
|
|
3062
3062
|
},
|
|
3063
3063
|
clicklabel() {
|
|
3064
3064
|
const e = this.activeIndex, t = e.match(this.activeIndexReg);
|
|
@@ -3097,8 +3097,8 @@ const Uo = {
|
|
|
3097
3097
|
}
|
|
3098
3098
|
}, Ho = /* @__PURE__ */ g("\u6DFB\u52A0\u641C\u7D22\u6761\u4EF6"), Go = /* @__PURE__ */ g("\u6587\u672C\u6846"), Jo = /* @__PURE__ */ g("\u4E0B\u62C9\u6846"), zo = /* @__PURE__ */ g("\u65E5\u671F"), Ko = /* @__PURE__ */ g("\u6DFB\u52A0\u5217\u8868\u9879"), Wo = /* @__PURE__ */ g("\u6DFB\u52A0\u884C\u6309\u94AE"), Zo = /* @__PURE__ */ g("\u6DFB\u52A0\u5E38\u89C4\u6309\u94AE"), Qo = /* @__PURE__ */ g("\u6309\u94AE\u7EC4"), Xo = /* @__PURE__ */ g("\u6DFB\u52A0\u6279\u91CF\u6309\u94AE"), Yo = /* @__PURE__ */ g("\u6309\u94AE\u7EC4"), en = /* @__PURE__ */ g("\u4FDD\u5B58\u9875\u9762\u914D\u7F6E"), tn = /* @__PURE__ */ g(" \xA0\xA0 ");
|
|
3099
3099
|
function ln(e, t, l, n, o, s) {
|
|
3100
|
-
const a = ue, c = ae, d = le, p = v("v-table"), f = We, _ = ae, A = v("JsonView"), I = v("VButton"), U = Se, V = Ce, x = Ze, z = Qe,
|
|
3101
|
-
return i(), m(
|
|
3100
|
+
const a = ue, c = ae, d = le, p = v("v-table"), f = We, _ = ae, A = v("JsonView"), I = v("VButton"), U = Se, V = Ce, x = Ze, z = Qe, _t = v("v-form"), yt = v("dev-layout");
|
|
3101
|
+
return i(), m(yt, null, {
|
|
3102
3102
|
"left-aside": r(() => [
|
|
3103
3103
|
u(d, { style: { width: "200px" } }, {
|
|
3104
3104
|
default: r(() => [
|
|
@@ -3347,7 +3347,7 @@ function ln(e, t, l, n, o, s) {
|
|
|
3347
3347
|
]),
|
|
3348
3348
|
_: 1
|
|
3349
3349
|
})) : w("", !0),
|
|
3350
|
-
(i(), m(
|
|
3350
|
+
(i(), m(_t, q({
|
|
3351
3351
|
key: o.ctrlKey,
|
|
3352
3352
|
modelValue: o.ctrlOptions,
|
|
3353
3353
|
"onUpdate:modelValue": t[4] || (t[4] = (S) => o.ctrlOptions = S)
|
|
@@ -3432,7 +3432,7 @@ const rn = {
|
|
|
3432
3432
|
}
|
|
3433
3433
|
},
|
|
3434
3434
|
mounted() {
|
|
3435
|
-
|
|
3435
|
+
et("el-submenu is-active");
|
|
3436
3436
|
const e = this.getSetting("navBarNotice");
|
|
3437
3437
|
e.length > 0 && !this.getSetting("closeNavNotice") && this.showNotice(e) && this.$notify({
|
|
3438
3438
|
title: "\u63D0\u793A",
|
|
@@ -3484,11 +3484,11 @@ const rn = {
|
|
|
3484
3484
|
style: { padding: "0" }
|
|
3485
3485
|
}, mn = { class: "user-info" }, fn = ["src"], hn = /* @__PURE__ */ g(), bn = { class: "user-name" }, _n = /* @__PURE__ */ g("\u9996\u9875"), yn = /* @__PURE__ */ g("\u9000\u51FA\u767B\u5F55");
|
|
3486
3486
|
function vn(e, t, l, n, o, s) {
|
|
3487
|
-
const a = v("hamburger"), c = v("breadcrumb"), d = ue, p = v("VIcon"), f = v("PageEditor"), _ = v("v-button"), A =
|
|
3487
|
+
const a = v("hamburger"), c = v("breadcrumb"), d = ue, p = v("VIcon"), f = v("PageEditor"), _ = v("v-button"), A = Dt, I = Ot, U = Pt, V = Xe, x = le;
|
|
3488
3488
|
return i(), m(x, {
|
|
3489
3489
|
ref: "header",
|
|
3490
3490
|
class: "navbar",
|
|
3491
|
-
style:
|
|
3491
|
+
style: wt({ background: s.setting.envColor[s.user.env] })
|
|
3492
3492
|
}, {
|
|
3493
3493
|
default: r(() => [
|
|
3494
3494
|
u(d, { span: 16 }, {
|
|
@@ -3599,7 +3599,7 @@ function $n(e, t, l, n, o, s) {
|
|
|
3599
3599
|
return i(), h("div", {
|
|
3600
3600
|
class: H(["sidebar-logo-container", { collapse: l.collapse }])
|
|
3601
3601
|
}, [
|
|
3602
|
-
u(
|
|
3602
|
+
u(Et, { name: "sidebarLogoFade" }, {
|
|
3603
3603
|
default: r(() => [
|
|
3604
3604
|
l.collapse ? (i(), m(a, {
|
|
3605
3605
|
key: "collapse",
|
|
@@ -3759,7 +3759,7 @@ const Fn = /* @__PURE__ */ C(An, [["render", Tn]]), Dn = {
|
|
|
3759
3759
|
class: "menu-wrapper"
|
|
3760
3760
|
};
|
|
3761
3761
|
function Mn(e, t, l, n, o, s) {
|
|
3762
|
-
const a = v("menu-content"), c =
|
|
3762
|
+
const a = v("menu-content"), c = Rt, d = v("app-link"), p = v("sidebar-item", !0), f = Lt;
|
|
3763
3763
|
return l.item.hidden !== !1 ? (i(), h("div", Ln, [
|
|
3764
3764
|
l.item.meta && l.item.meta.menuType === 2 ? (i(), h(k, { key: 0 }, [
|
|
3765
3765
|
l.item.meta ? (i(), m(d, {
|
|
@@ -3819,10 +3819,10 @@ function Mn(e, t, l, n, o, s) {
|
|
|
3819
3819
|
])) : w("", !0);
|
|
3820
3820
|
}
|
|
3821
3821
|
const jn = /* @__PURE__ */ C(Rn, [["render", Mn]]);
|
|
3822
|
-
function
|
|
3822
|
+
function ct(e) {
|
|
3823
3823
|
return e.filter((t) => {
|
|
3824
3824
|
var l;
|
|
3825
|
-
return ((l = t.meta) == null ? void 0 : l.menuType) === 0 ? !1 : (t.children && (t.children =
|
|
3825
|
+
return ((l = t.meta) == null ? void 0 : l.menuType) === 0 ? !1 : (t.children && (t.children = ct(t.children), t.children.length === 0 && delete t.children), !0);
|
|
3826
3826
|
});
|
|
3827
3827
|
}
|
|
3828
3828
|
const Nn = {
|
|
@@ -3837,7 +3837,7 @@ const Nn = {
|
|
|
3837
3837
|
let e = [];
|
|
3838
3838
|
return this.remoteRouter.forEach((t) => {
|
|
3839
3839
|
e = e.concat(y(t.routes));
|
|
3840
|
-
}),
|
|
3840
|
+
}), ct(e);
|
|
3841
3841
|
}
|
|
3842
3842
|
},
|
|
3843
3843
|
methods: {
|
|
@@ -3847,7 +3847,7 @@ const Nn = {
|
|
|
3847
3847
|
}
|
|
3848
3848
|
};
|
|
3849
3849
|
function Vn(e, t, l, n, o, s) {
|
|
3850
|
-
const a = Se, c =
|
|
3850
|
+
const a = Se, c = Mt, d = Ce;
|
|
3851
3851
|
return i(), m(d, {
|
|
3852
3852
|
modelValue: o.selected,
|
|
3853
3853
|
"onUpdate:modelValue": t[0] || (t[0] = (p) => o.selected = p),
|
|
@@ -3889,7 +3889,7 @@ function Vn(e, t, l, n, o, s) {
|
|
|
3889
3889
|
}, 8, ["modelValue", "onChange"]);
|
|
3890
3890
|
}
|
|
3891
3891
|
const qn = /* @__PURE__ */ C(Nn, [["render", Vn], ["__scopeId", "data-v-811395be"]]);
|
|
3892
|
-
var P = /* @__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))(P || {}),
|
|
3892
|
+
var P = /* @__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))(P || {}), D = /* @__PURE__ */ ((e) => (e[e.hidden = 0] = "hidden", e[e.dir = 1] = "dir", e[e.menu = 2] = "menu", e[e.page = 3] = "page", e))(D || {});
|
|
3893
3893
|
const Un = N({
|
|
3894
3894
|
components: { SidebarItem: jn, Logo: In, SearchMenu: qn },
|
|
3895
3895
|
computed: {
|
|
@@ -3913,8 +3913,14 @@ const Un = N({
|
|
|
3913
3913
|
]);
|
|
3914
3914
|
},
|
|
3915
3915
|
activeMenu() {
|
|
3916
|
-
|
|
3917
|
-
|
|
3916
|
+
console.log(2222, this.$route);
|
|
3917
|
+
let e = this.$route.matched;
|
|
3918
|
+
for (let t = e.length - 1; t >= 0; t--) {
|
|
3919
|
+
let l = e[t];
|
|
3920
|
+
if (l.meta.menuType == D.menu)
|
|
3921
|
+
return this.$router.resolve(l.redirect ? l.redirect : l).fullPath;
|
|
3922
|
+
}
|
|
3923
|
+
return "";
|
|
3918
3924
|
},
|
|
3919
3925
|
showLogo() {
|
|
3920
3926
|
return this.$store.state.settings.sidebarLogo;
|
|
@@ -3930,14 +3936,17 @@ const Un = N({
|
|
|
3930
3936
|
return !this.sidebar.opened;
|
|
3931
3937
|
}
|
|
3932
3938
|
},
|
|
3939
|
+
mounted() {
|
|
3940
|
+
et("is-active");
|
|
3941
|
+
},
|
|
3933
3942
|
methods: {
|
|
3934
3943
|
filterRoute(e) {
|
|
3935
|
-
return e.filter((t) => [
|
|
3944
|
+
return e.filter((t) => [D.dir, D.menu].indexOf(t.meta.menuType) !== -1).map((t) => (t = Object.assign({}, t), t.children && (t.children = this.filterRoute(t.children)), t));
|
|
3936
3945
|
}
|
|
3937
3946
|
}
|
|
3938
3947
|
});
|
|
3939
3948
|
function Hn(e, t, l, n, o, s) {
|
|
3940
|
-
const a = v("logo"), c = v("search-menu"), d = v("sidebar-item"), p =
|
|
3949
|
+
const a = v("logo"), c = v("search-menu"), d = v("sidebar-item"), p = jt, f = Nt;
|
|
3941
3950
|
return i(), h("div", {
|
|
3942
3951
|
class: H({ "has-logo": e.showLogo })
|
|
3943
3952
|
}, [
|
|
@@ -3976,7 +3985,7 @@ function Hn(e, t, l, n, o, s) {
|
|
|
3976
3985
|
})
|
|
3977
3986
|
], 2);
|
|
3978
3987
|
}
|
|
3979
|
-
const Gn = /* @__PURE__ */ C(Un, [["render", Hn], ["__scopeId", "data-v-
|
|
3988
|
+
const Gn = /* @__PURE__ */ C(Un, [["render", Hn], ["__scopeId", "data-v-cf9a1835"]]);
|
|
3980
3989
|
const Jn = { class: "app-main" }, zn = {
|
|
3981
3990
|
__name: "AppMain",
|
|
3982
3991
|
setup(e) {
|
|
@@ -3985,7 +3994,7 @@ const Jn = { class: "app-main" }, zn = {
|
|
|
3985
3994
|
var o;
|
|
3986
3995
|
(o = t.meta) != null && o.keepAlive && l.indexOf(t.name) && l.push(t.name), n.value++;
|
|
3987
3996
|
}), (o, s) => {
|
|
3988
|
-
const a = v("router-view"), c =
|
|
3997
|
+
const a = v("router-view"), c = Vt;
|
|
3989
3998
|
return i(), h("section", Jn, [
|
|
3990
3999
|
(i(), m(a, {
|
|
3991
4000
|
key: o.$route.fullPath + n.value
|
|
@@ -3998,7 +4007,7 @@ const Jn = { class: "app-main" }, zn = {
|
|
|
3998
4007
|
const Wn = { class: "main-container" }, Zn = {
|
|
3999
4008
|
__name: "index",
|
|
4000
4009
|
setup(e) {
|
|
4001
|
-
const t =
|
|
4010
|
+
const t = lt(), { body: l } = document, n = 992, o = j(() => t.state.app.sidebar), s = j(() => t.state.app.device), a = j(() => t.state.settings.fixedHeader), c = j(() => ({
|
|
4002
4011
|
hideSidebar: !o.value.opened,
|
|
4003
4012
|
openSidebar: o.value.opened,
|
|
4004
4013
|
withoutAnimation: o.value.withoutAnimation,
|
|
@@ -4032,7 +4041,7 @@ const Wn = { class: "main-container" }, Zn = {
|
|
|
4032
4041
|
])
|
|
4033
4042
|
], 2));
|
|
4034
4043
|
}
|
|
4035
|
-
},
|
|
4044
|
+
}, dt = /* @__PURE__ */ C(Zn, [["__scopeId", "data-v-957442cd"]]);
|
|
4036
4045
|
class Qn {
|
|
4037
4046
|
constructor() {
|
|
4038
4047
|
this.type = "qrcode";
|
|
@@ -4082,7 +4091,7 @@ const Yn = {
|
|
|
4082
4091
|
dingtalk: (e) => new Xn(e)
|
|
4083
4092
|
};
|
|
4084
4093
|
function es() {
|
|
4085
|
-
return
|
|
4094
|
+
return O(E.state.settings.sso || {}, Yn);
|
|
4086
4095
|
}
|
|
4087
4096
|
function ts(e) {
|
|
4088
4097
|
const t = es(), l = E.state.settings.activeSsoKey || "", n = t[l];
|
|
@@ -4097,7 +4106,7 @@ const ls = { id: "login" }, os = /* @__PURE__ */ b("h1", { id: "title" }, "\u767
|
|
|
4097
4106
|
password: ""
|
|
4098
4107
|
}), s = () => {
|
|
4099
4108
|
if (o.value.username === "" || o.value.password === "") {
|
|
4100
|
-
|
|
4109
|
+
qt.error("\u8BF7\u586B\u5199\u7528\u6237\u540D\u548C\u5BC6\u7801");
|
|
4101
4110
|
return;
|
|
4102
4111
|
}
|
|
4103
4112
|
E.dispatch("user/login", o.value).then((a) => {
|
|
@@ -4141,7 +4150,7 @@ const ls = { id: "login" }, os = /* @__PURE__ */ b("h1", { id: "title" }, "\u767
|
|
|
4141
4150
|
});
|
|
4142
4151
|
const us = {
|
|
4143
4152
|
name: "NotFoundPage"
|
|
4144
|
-
},
|
|
4153
|
+
}, pt = (e) => (Je("data-v-26068803"), e = e(), ze(), e), cs = { class: "not-found" }, ds = /* @__PURE__ */ pt(() => /* @__PURE__ */ b("svg", {
|
|
4145
4154
|
width: "380px",
|
|
4146
4155
|
height: "500px",
|
|
4147
4156
|
viewBox: "0 0 837 1045",
|
|
@@ -4194,7 +4203,7 @@ const us = {
|
|
|
4194
4203
|
"sketch:type": "MSShapeGroup"
|
|
4195
4204
|
})
|
|
4196
4205
|
])
|
|
4197
|
-
], -1)), ps = /* @__PURE__ */
|
|
4206
|
+
], -1)), ps = /* @__PURE__ */ pt(() => /* @__PURE__ */ b("div", { class: "message-box" }, [
|
|
4198
4207
|
/* @__PURE__ */ b("h1", null, "404"),
|
|
4199
4208
|
/* @__PURE__ */ b("p", null, "Page not found"),
|
|
4200
4209
|
/* @__PURE__ */ b("div", { class: "buttons-con" }, [
|
|
@@ -4215,7 +4224,7 @@ function fs(e, t, l, n, o, s) {
|
|
|
4215
4224
|
const hs = /* @__PURE__ */ C(us, [["render", fs], ["__scopeId", "data-v-26068803"]]), bs = [
|
|
4216
4225
|
{
|
|
4217
4226
|
path: "/",
|
|
4218
|
-
component:
|
|
4227
|
+
component: dt,
|
|
4219
4228
|
redirect: "/dashboard",
|
|
4220
4229
|
name: "Root",
|
|
4221
4230
|
meta: {
|
|
@@ -4260,7 +4269,7 @@ function _s(e) {
|
|
|
4260
4269
|
function ys() {
|
|
4261
4270
|
return E.state.user.isLodeRemoteRoutes;
|
|
4262
4271
|
}
|
|
4263
|
-
function
|
|
4272
|
+
function mt() {
|
|
4264
4273
|
return E.state.settings.whiteRoutes || [];
|
|
4265
4274
|
}
|
|
4266
4275
|
function vs() {
|
|
@@ -4269,7 +4278,7 @@ function vs() {
|
|
|
4269
4278
|
function gs(e) {
|
|
4270
4279
|
e.beforeEach(async (t, l, n) => {
|
|
4271
4280
|
var d, p;
|
|
4272
|
-
if (
|
|
4281
|
+
if (mt().indexOf(t.path) !== -1) {
|
|
4273
4282
|
n();
|
|
4274
4283
|
return;
|
|
4275
4284
|
}
|
|
@@ -4296,8 +4305,8 @@ const ks = {}, ws = { class: "loading preloader" }, Es = /* @__PURE__ */ b("div"
|
|
|
4296
4305
|
function Cs(e, t) {
|
|
4297
4306
|
return i(), h("div", ws, Ss);
|
|
4298
4307
|
}
|
|
4299
|
-
const
|
|
4300
|
-
components: { VLoading:
|
|
4308
|
+
const ft = /* @__PURE__ */ C(ks, [["render", Cs]]), xs = N({
|
|
4309
|
+
components: { VLoading: ft },
|
|
4301
4310
|
props: {
|
|
4302
4311
|
schemaHandler: {
|
|
4303
4312
|
type: Function,
|
|
@@ -4329,7 +4338,7 @@ const mt = /* @__PURE__ */ C(ks, [["render", Cs]]), xs = N({
|
|
|
4329
4338
|
}
|
|
4330
4339
|
});
|
|
4331
4340
|
function Bs(e, t, l, n, o, s) {
|
|
4332
|
-
const a = ve, c = ve, d =
|
|
4341
|
+
const a = ve, c = ve, d = ft;
|
|
4333
4342
|
return i(), h(k, null, [
|
|
4334
4343
|
e.owners.length > 0 ? (i(), m(a, {
|
|
4335
4344
|
key: 0,
|
|
@@ -4342,7 +4351,7 @@ function Bs(e, t, l, n, o, s) {
|
|
|
4342
4351
|
e.loading ? (i(), m(d, { key: 2 })) : Y(e.$slots, "default", J(q({ key: 3 }, e.schema)))
|
|
4343
4352
|
], 64);
|
|
4344
4353
|
}
|
|
4345
|
-
const pe = /* @__PURE__ */ C(xs, [["render", Bs]]),
|
|
4354
|
+
const pe = /* @__PURE__ */ C(xs, [["render", Bs]]), ht = {
|
|
4346
4355
|
__name: "table",
|
|
4347
4356
|
setup(e) {
|
|
4348
4357
|
const t = (l, n) => {
|
|
@@ -4351,7 +4360,7 @@ const pe = /* @__PURE__ */ C(xs, [["render", Bs]]), ft = {
|
|
|
4351
4360
|
prop: l.orderBy.field,
|
|
4352
4361
|
order: l.orderBy.mod === "desc" ? "descending" : "ascending"
|
|
4353
4362
|
};
|
|
4354
|
-
l.tableProps =
|
|
4363
|
+
l.tableProps = O(l.tableProps, { defaultSort: s });
|
|
4355
4364
|
}
|
|
4356
4365
|
const o = Object.keys(re.props);
|
|
4357
4366
|
return Object.keys(l).forEach((s) => {
|
|
@@ -4376,7 +4385,7 @@ const pe = /* @__PURE__ */ C(xs, [["render", Bs]]), ft = {
|
|
|
4376
4385
|
return;
|
|
4377
4386
|
}
|
|
4378
4387
|
/.*Api$/.test(a) && (n[a] = K(n[a], t.params));
|
|
4379
|
-
}), n.saveApi === void 0 && (t.params.id !== void 0 ? (n.saveApi = `/${o}/update/${t.params.id}`, n.getApi || (n.getApi = `/${o}/get/${t.params.id}`)) : (delete n.getApi, n.saveApi = `/${o}/create`)), n =
|
|
4388
|
+
}), n.saveApi === void 0 && (t.params.id !== void 0 ? (n.saveApi = `/${o}/update/${t.params.id}`, n.getApi || (n.getApi = `/${o}/get/${t.params.id}`)) : (delete n.getApi, n.saveApi = `/${o}/create`)), n = O({
|
|
4380
4389
|
saveApi: o + "/save",
|
|
4381
4390
|
afterSubmit: "goback",
|
|
4382
4391
|
afterReset: "goback",
|
|
@@ -4445,7 +4454,7 @@ const pe = /* @__PURE__ */ C(xs, [["render", Bs]]), ft = {
|
|
|
4445
4454
|
type: 0,
|
|
4446
4455
|
treeData: [],
|
|
4447
4456
|
formData: {},
|
|
4448
|
-
localTreeProps:
|
|
4457
|
+
localTreeProps: O({
|
|
4449
4458
|
"default-expand-all": !0,
|
|
4450
4459
|
"expand-on-click-node": !1,
|
|
4451
4460
|
props: {
|
|
@@ -4537,7 +4546,7 @@ const Is = { class: "card-header" }, As = /* @__PURE__ */ b("span", null, "\u521
|
|
|
4537
4546
|
style: { color: "#E6A23C" }
|
|
4538
4547
|
}, Ps = /* @__PURE__ */ g("\u7F16\u8F91"), Rs = /* @__PURE__ */ g("\u6DFB\u52A0"), Ls = /* @__PURE__ */ g("\u5220\u9664"), Ms = { class: "card-header" };
|
|
4539
4548
|
function js(e, t) {
|
|
4540
|
-
const l = ae, n =
|
|
4549
|
+
const l = ae, n = Ut, o = xe, s = ue, a = v("v-form"), c = le;
|
|
4541
4550
|
return i(), m(c, {
|
|
4542
4551
|
class: "tree-box",
|
|
4543
4552
|
gutter: 20
|
|
@@ -4712,7 +4721,7 @@ const Ue = /* @__PURE__ */ C($s, [["render", js]]), Ns = {
|
|
|
4712
4721
|
function qs(e, t, l) {
|
|
4713
4722
|
if (l.length === 0)
|
|
4714
4723
|
return {};
|
|
4715
|
-
let n =
|
|
4724
|
+
let n = O({}, Vs);
|
|
4716
4725
|
if (n.title.text = e, $e(t)) {
|
|
4717
4726
|
const o = [], s = Object.keys(l[0]);
|
|
4718
4727
|
let a = s[0], c = s.filter((p, f) => f > 0), d = t;
|
|
@@ -4734,7 +4743,7 @@ function qs(e, t, l) {
|
|
|
4734
4743
|
o.push(p[a]);
|
|
4735
4744
|
}), n.xAxis.data = o;
|
|
4736
4745
|
}
|
|
4737
|
-
return Ie(t) && (n =
|
|
4746
|
+
return Ie(t) && (n = O(n, t)), console.log(111, n), n;
|
|
4738
4747
|
}
|
|
4739
4748
|
const Us = N({
|
|
4740
4749
|
name: "NumberPanel",
|
|
@@ -4813,7 +4822,7 @@ const Ks = /* @__PURE__ */ C(Us, [["render", zs], ["__scopeId", "data-v-cc0d8293
|
|
|
4813
4822
|
}
|
|
4814
4823
|
};
|
|
4815
4824
|
function Zs(e, t, l, n, o, s) {
|
|
4816
|
-
const a = xe, c =
|
|
4825
|
+
const a = xe, c = St("resize");
|
|
4817
4826
|
return ye((i(), m(a, {
|
|
4818
4827
|
shadow: "never",
|
|
4819
4828
|
class: "part"
|
|
@@ -4840,7 +4849,7 @@ const Qs = /* @__PURE__ */ C(Ws, [["render", Zs], ["__scopeId", "data-v-a5a65cc1
|
|
|
4840
4849
|
},
|
|
4841
4850
|
setup(e) {
|
|
4842
4851
|
const t = e, l = useRoute();
|
|
4843
|
-
|
|
4852
|
+
Ct(() => {
|
|
4844
4853
|
});
|
|
4845
4854
|
const n = R({});
|
|
4846
4855
|
Ge(() => {
|
|
@@ -4967,7 +4976,7 @@ const ea = (e) => {
|
|
|
4967
4976
|
return oe;
|
|
4968
4977
|
switch (e.page_type) {
|
|
4969
4978
|
case P.list:
|
|
4970
|
-
return
|
|
4979
|
+
return ht;
|
|
4971
4980
|
case P.form:
|
|
4972
4981
|
return Ee;
|
|
4973
4982
|
case P.custom:
|
|
@@ -4984,13 +4993,13 @@ const ea = (e) => {
|
|
|
4984
4993
|
};
|
|
4985
4994
|
function ta(e) {
|
|
4986
4995
|
let t = e.path;
|
|
4987
|
-
return e.type ===
|
|
4996
|
+
return e.type === D.menu && e.page_type === P.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;
|
|
4988
4997
|
}
|
|
4989
4998
|
function la(e) {
|
|
4990
4999
|
return (e.path + e.name).split("/").filter((t) => t).join("_");
|
|
4991
5000
|
}
|
|
4992
|
-
const
|
|
4993
|
-
const t = e.type !==
|
|
5001
|
+
const bt = (e) => {
|
|
5002
|
+
const t = e.type !== D.page, l = {
|
|
4994
5003
|
path: ta(e),
|
|
4995
5004
|
name: e.id + "_" + la(e) + "_" + e.path.replaceAll("/", "_"),
|
|
4996
5005
|
component: ea(e),
|
|
@@ -5004,18 +5013,18 @@ const ht = (e) => {
|
|
|
5004
5013
|
menuType: e.type,
|
|
5005
5014
|
keepAlive: !1
|
|
5006
5015
|
},
|
|
5007
|
-
children: e.children ? e.children.map((n) =>
|
|
5016
|
+
children: e.children ? e.children.map((n) => bt(n)) : []
|
|
5008
5017
|
};
|
|
5009
5018
|
if (e.page_type === P.entity) {
|
|
5010
5019
|
const n = e.path + "/list", o = e.path + "/form", s = e.path + "/:id", a = [{
|
|
5011
5020
|
path: n,
|
|
5012
5021
|
name: e.name + "\u5217\u8868" + e.id,
|
|
5013
|
-
component:
|
|
5022
|
+
component: ht,
|
|
5014
5023
|
meta: {
|
|
5015
5024
|
id: e.id + 99999,
|
|
5016
5025
|
title: "\u5217\u8868",
|
|
5017
5026
|
hidden: !0,
|
|
5018
|
-
menuType:
|
|
5027
|
+
menuType: D.hidden,
|
|
5019
5028
|
keepAlive: !1,
|
|
5020
5029
|
pageId: e.id
|
|
5021
5030
|
}
|
|
@@ -5027,7 +5036,7 @@ const ht = (e) => {
|
|
|
5027
5036
|
id: e.id + 99999 + 1,
|
|
5028
5037
|
title: "\u65B0\u5EFA",
|
|
5029
5038
|
hidden: !0,
|
|
5030
|
-
menuType:
|
|
5039
|
+
menuType: D.hidden,
|
|
5031
5040
|
keepAlive: !1,
|
|
5032
5041
|
pageId: e.id
|
|
5033
5042
|
}
|
|
@@ -5039,7 +5048,7 @@ const ht = (e) => {
|
|
|
5039
5048
|
id: e.id + 99999 + 2,
|
|
5040
5049
|
title: "\u7F16\u8F91",
|
|
5041
5050
|
hidden: !0,
|
|
5042
|
-
menuType:
|
|
5051
|
+
menuType: D.hidden,
|
|
5043
5052
|
keepAlive: !1,
|
|
5044
5053
|
pageId: e.id
|
|
5045
5054
|
}
|
|
@@ -5050,8 +5059,8 @@ const ht = (e) => {
|
|
|
5050
5059
|
let n = !0;
|
|
5051
5060
|
if (l.children.forEach((o) => {
|
|
5052
5061
|
o.meta && !o.meta.hidden && (n = !1);
|
|
5053
|
-
}), l.meta && (l.meta.menuType = t ?
|
|
5054
|
-
l.meta && (l.meta.menuType =
|
|
5062
|
+
}), l.meta && (l.meta.menuType = t ? D.dir : D.hidden), n) {
|
|
5063
|
+
l.meta && (l.meta.menuType = D.menu);
|
|
5055
5064
|
let o = "/";
|
|
5056
5065
|
for (let s = 0; s < l.children.length; s++)
|
|
5057
5066
|
if (l.children[s].path.indexOf("/:") === -1) {
|
|
@@ -5071,13 +5080,13 @@ const ht = (e) => {
|
|
|
5071
5080
|
routes: []
|
|
5072
5081
|
};
|
|
5073
5082
|
l.routes.forEach((o) => {
|
|
5074
|
-
n.routes.push(
|
|
5083
|
+
n.routes.push(bt(o));
|
|
5075
5084
|
}), t.push(n);
|
|
5076
5085
|
}), t;
|
|
5077
5086
|
};
|
|
5078
5087
|
function na(e) {
|
|
5079
5088
|
e.beforeEach(async (t, l, n) => {
|
|
5080
|
-
if (
|
|
5089
|
+
if (mt().indexOf(t.path) !== -1) {
|
|
5081
5090
|
n();
|
|
5082
5091
|
return;
|
|
5083
5092
|
}
|
|
@@ -5091,7 +5100,7 @@ function na(e) {
|
|
|
5091
5100
|
a.routes.forEach((c) => {
|
|
5092
5101
|
e.addRoute({
|
|
5093
5102
|
path: "/",
|
|
5094
|
-
component:
|
|
5103
|
+
component: dt,
|
|
5095
5104
|
children: [c]
|
|
5096
5105
|
});
|
|
5097
5106
|
});
|
|
@@ -5175,10 +5184,10 @@ const ca = {
|
|
|
5175
5184
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5176
5185
|
let se;
|
|
5177
5186
|
function bi(e) {
|
|
5178
|
-
return e ? Pe(
|
|
5187
|
+
return e ? Pe(O(de.axios, e)) : se;
|
|
5179
5188
|
}
|
|
5180
5189
|
function _i(e) {
|
|
5181
|
-
const t =
|
|
5190
|
+
const t = O(de, e), l = xt(_l), n = ya(t), o = t.plugins || [];
|
|
5182
5191
|
o.unshift(n), o.forEach((s) => {
|
|
5183
5192
|
_a(l, s);
|
|
5184
5193
|
}), t != null && t.mock && Bl(), se = Pe(t.axios), E.dispatch("setHttp", se).then(), E.dispatch("settings/updateSettings", e == null ? void 0 : e.settings).then(), l.config.globalProperties.$http = se, l.config.globalProperties.$router = te, window.App = l, window.OmsOptions = t, al(() => ({
|
|
@@ -5216,7 +5225,7 @@ function ba(e = {}) {
|
|
|
5216
5225
|
});
|
|
5217
5226
|
}
|
|
5218
5227
|
function _a(e, t) {
|
|
5219
|
-
pa(e, t.components || {}), ma(t.routes || []), fa(e, t.use || []), ha(e, t.directives || {}), ba(t.storeModules || {}),
|
|
5228
|
+
pa(e, t.components || {}), ma(t.routes || []), fa(e, t.use || []), ha(e, t.directives || {}), ba(t.storeModules || {}), nt(t.mockApis || []);
|
|
5220
5229
|
}
|
|
5221
5230
|
function ya(e) {
|
|
5222
5231
|
var t;
|
|
@@ -5234,8 +5243,8 @@ export {
|
|
|
5234
5243
|
Qn as BaseSso,
|
|
5235
5244
|
oe as Container,
|
|
5236
5245
|
Xn as DingTalk,
|
|
5237
|
-
|
|
5238
|
-
|
|
5246
|
+
dt as Layout,
|
|
5247
|
+
D as MenuType,
|
|
5239
5248
|
Ne as Message,
|
|
5240
5249
|
Ve as MessageBox,
|
|
5241
5250
|
P as PageType,
|