@okiss/oms 0.0.43 → 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
1
|
var $t = Object.defineProperty;
|
|
2
2
|
var It = (e, t, l) => t in e ? $t(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l;
|
|
3
3
|
var M = (e, t, l) => (It(e, typeof t != "symbol" ? t + "" : t, l), l);
|
|
4
|
-
import { defineComponent as q, onBeforeMount as
|
|
5
|
-
import { addNewStyle as Vt, addNewStyleTag as qt, queryParams as Ut, logGroup as Ht, compactObject as
|
|
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
7
|
import Wt, { cloneDeep as y, merge as A, get as ne, unset as et } from "lodash";
|
|
8
8
|
import tt from "element-plus/lib/locale/lang/zh-cn";
|
|
9
|
-
import
|
|
9
|
+
import Ie from "axios";
|
|
10
10
|
import N from "js-cookie";
|
|
11
|
-
import { createStore as Zt, useStore as lt, mapGetters 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 nt, ElButton as ue, ElOption 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 Pe, JsonView 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";
|
|
@@ -50,7 +50,7 @@ import "element-plus/es/components/tree/style/css";
|
|
|
50
50
|
import Ol from "vue3-markdown-it";
|
|
51
51
|
import { MD5 as Bl } from "crypto-js";
|
|
52
52
|
import "element-plus/es/components/message/style/css";
|
|
53
|
-
import
|
|
53
|
+
import ke from "nprogress";
|
|
54
54
|
import "nprogress/nprogress.css";
|
|
55
55
|
String.prototype.format || (String.prototype.format = function() {
|
|
56
56
|
const e = arguments;
|
|
@@ -62,7 +62,7 @@ const Al = /* @__PURE__ */ q({
|
|
|
62
62
|
__name: "App",
|
|
63
63
|
setup(e) {
|
|
64
64
|
var t, l, n, o;
|
|
65
|
-
return
|
|
65
|
+
return ze(() => {
|
|
66
66
|
var s;
|
|
67
67
|
const a = document.getElementById("preloader");
|
|
68
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 {
|
|
@@ -78,7 +78,7 @@ const Al = /* @__PURE__ */ q({
|
|
|
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",
|
|
@@ -412,7 +412,7 @@ const Rl = {
|
|
|
412
412
|
info: "在通用表单控件无法满足需求时, 可以编写 `template` 模板组件"
|
|
413
413
|
}
|
|
414
414
|
]
|
|
415
|
-
},
|
|
415
|
+
}, qe = [
|
|
416
416
|
{
|
|
417
417
|
type: "jump",
|
|
418
418
|
text: "跳转",
|
|
@@ -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
|
{
|
|
@@ -533,7 +533,7 @@ const Rl = {
|
|
|
533
533
|
label: "信息"
|
|
534
534
|
}
|
|
535
535
|
],
|
|
536
|
-
batchButton:
|
|
536
|
+
batchButton: qe,
|
|
537
537
|
rowButton: [
|
|
538
538
|
{
|
|
539
539
|
type: "jump",
|
|
@@ -564,7 +564,7 @@ const Rl = {
|
|
|
564
564
|
}
|
|
565
565
|
],
|
|
566
566
|
normalButton: [
|
|
567
|
-
...Wt.cloneDeep(
|
|
567
|
+
...Wt.cloneDeep(qe),
|
|
568
568
|
{
|
|
569
569
|
type: "jump",
|
|
570
570
|
target: "/user/form",
|
|
@@ -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",
|
|
@@ -756,11 +756,11 @@ const Rl = {
|
|
|
756
756
|
settings: it,
|
|
757
757
|
plugins: [],
|
|
758
758
|
mock: !1
|
|
759
|
-
},
|
|
759
|
+
}, we = {};
|
|
760
760
|
function rt(e) {
|
|
761
761
|
e.forEach((t) => {
|
|
762
762
|
const l = ct(t);
|
|
763
|
-
|
|
763
|
+
we[`${t.method}::${l}`] = t;
|
|
764
764
|
});
|
|
765
765
|
}
|
|
766
766
|
rt(Vl);
|
|
@@ -770,30 +770,30 @@ function ct(e) {
|
|
|
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
|
-
Object.keys(
|
|
774
|
-
const t =
|
|
773
|
+
Object.keys(we).forEach((e) => {
|
|
774
|
+
const t = we[e], l = ct(t);
|
|
775
775
|
_e.mock(l, t.method, function(n) {
|
|
776
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
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
|
}
|
|
781
|
-
const
|
|
782
|
-
function
|
|
783
|
-
return N.get(
|
|
781
|
+
const Le = "oms:token";
|
|
782
|
+
function Me() {
|
|
783
|
+
return N.get(Le) || "";
|
|
784
784
|
}
|
|
785
785
|
function Hl(e) {
|
|
786
786
|
const t = new Date((/* @__PURE__ */ new Date()).getTime() + (E.state.settings.tokenExpire || 864e5));
|
|
787
|
-
return N.set(
|
|
787
|
+
return N.set(Le, e, { expires: t });
|
|
788
788
|
}
|
|
789
789
|
function ut() {
|
|
790
|
-
return N.remove(
|
|
790
|
+
return N.remove(Le);
|
|
791
791
|
}
|
|
792
792
|
const Fl = {
|
|
793
793
|
name: "",
|
|
794
794
|
nickname: "",
|
|
795
795
|
avatar: "",
|
|
796
|
-
token:
|
|
796
|
+
token: Me(),
|
|
797
797
|
customRouter: [],
|
|
798
798
|
remoteRouter: [],
|
|
799
799
|
menuRoutes: [],
|
|
@@ -826,7 +826,7 @@ const Fl = {
|
|
|
826
826
|
name: "",
|
|
827
827
|
nickname: "",
|
|
828
828
|
avatar: "",
|
|
829
|
-
token:
|
|
829
|
+
token: Me(),
|
|
830
830
|
customRouter: [],
|
|
831
831
|
remoteRouter: [],
|
|
832
832
|
menuRoutes: [],
|
|
@@ -1005,7 +1005,7 @@ const Fl = {
|
|
|
1005
1005
|
app: Wl,
|
|
1006
1006
|
builderSchema: Ql
|
|
1007
1007
|
}
|
|
1008
|
-
}), Xl = Xt,
|
|
1008
|
+
}), Xl = Xt, Ue = Yt, Yl = Ie.CancelToken, re = {
|
|
1009
1009
|
taskList: {},
|
|
1010
1010
|
cacheList: /* @__PURE__ */ new Map(),
|
|
1011
1011
|
uniqueId(e) {
|
|
@@ -1794,23 +1794,23 @@ const dt = /* @__PURE__ */ $(fn, [["render", hn], ["__scopeId", "data-v-7c3d697b
|
|
|
1794
1794
|
}
|
|
1795
1795
|
]
|
|
1796
1796
|
}, mt = {};
|
|
1797
|
-
function
|
|
1797
|
+
function P(e) {
|
|
1798
1798
|
mt[e.type] = e;
|
|
1799
1799
|
}
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
const
|
|
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,
|
|
@@ -1913,9 +1913,9 @@ const ye = {
|
|
|
1913
1913
|
labelPosition: "top",
|
|
1914
1914
|
submitButton: !1,
|
|
1915
1915
|
cancelButton: !1
|
|
1916
|
-
},
|
|
1917
|
-
Object.keys(
|
|
1918
|
-
|
|
1916
|
+
}, De = [];
|
|
1917
|
+
Object.keys(Se).forEach((e) => {
|
|
1918
|
+
De.push({ value: e, label: Se[e].name });
|
|
1919
1919
|
});
|
|
1920
1920
|
const On = {
|
|
1921
1921
|
options: {
|
|
@@ -1938,7 +1938,7 @@ const On = {
|
|
|
1938
1938
|
type: "select",
|
|
1939
1939
|
field: "type",
|
|
1940
1940
|
label: "类型",
|
|
1941
|
-
options: y(
|
|
1941
|
+
options: y(De)
|
|
1942
1942
|
},
|
|
1943
1943
|
{
|
|
1944
1944
|
type: "input",
|
|
@@ -1950,7 +1950,7 @@ const On = {
|
|
|
1950
1950
|
}
|
|
1951
1951
|
]
|
|
1952
1952
|
}, Bn = {
|
|
1953
|
-
components: { DevLayout: dt, VForm: J, VButton: Pe, JsonView:
|
|
1953
|
+
components: { DevLayout: dt, VForm: J, VButton: Pe, JsonView: Re },
|
|
1954
1954
|
props: {
|
|
1955
1955
|
schema: {
|
|
1956
1956
|
type: Object,
|
|
@@ -1982,12 +1982,12 @@ const On = {
|
|
|
1982
1982
|
ctrlSchema: {},
|
|
1983
1983
|
ctrlName: "",
|
|
1984
1984
|
activeIndex: void 0,
|
|
1985
|
-
ctrlMap:
|
|
1985
|
+
ctrlMap: Se,
|
|
1986
1986
|
activeIndexReg: /(formItems)?\[(\d+)\]/,
|
|
1987
1987
|
tableStruct: "",
|
|
1988
1988
|
activeName: "1",
|
|
1989
1989
|
currentCtrlType: "input",
|
|
1990
|
-
types: y(
|
|
1990
|
+
types: y(De)
|
|
1991
1991
|
};
|
|
1992
1992
|
},
|
|
1993
1993
|
computed: {
|
|
@@ -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
|
-
et(this.builderSchema, this.activeIndex), this.builderSchema = y(
|
|
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 = nt, p = ue, d = v("JsonView"), m = v("VButton"), _ =
|
|
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: {
|
|
@@ -2317,7 +2317,7 @@ const Rn = /* @__PURE__ */ $(Bn, [["render", An], ["__scopeId", "data-v-875f0171
|
|
|
2317
2317
|
label: "字段key"
|
|
2318
2318
|
}
|
|
2319
2319
|
]
|
|
2320
|
-
},
|
|
2320
|
+
}, He = {
|
|
2321
2321
|
options: {
|
|
2322
2322
|
labelPosition: "top",
|
|
2323
2323
|
submitButton: !1,
|
|
@@ -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,
|
|
@@ -2860,11 +2860,11 @@ const Xn = {
|
|
|
2860
2860
|
data() {
|
|
2861
2861
|
const e = Ot(this.$props.schema);
|
|
2862
2862
|
return delete e.listApi, e.list = [{}], {
|
|
2863
|
-
baseSchema:
|
|
2863
|
+
baseSchema: He,
|
|
2864
2864
|
activeTab: "base",
|
|
2865
2865
|
builderSchema: Object.assign(
|
|
2866
2866
|
{},
|
|
2867
|
-
|
|
2867
|
+
He,
|
|
2868
2868
|
e
|
|
2869
2869
|
),
|
|
2870
2870
|
baseOptions: {},
|
|
@@ -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
|
-
et(this.builderSchema, this.activeIndex), this.builderSchema = y(
|
|
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,7 +3032,7 @@ 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 = nt, _ = ue, T = v("JsonView"), w = v("VButton"), 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
3036
|
return i(), f(Et, null, {
|
|
3037
3037
|
"left-aside": r(() => [
|
|
3038
3038
|
u(p, { style: { width: "200px" } }, {
|
|
@@ -3293,7 +3293,7 @@ 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 };
|
|
@@ -3349,7 +3349,7 @@ const oo = {
|
|
|
3349
3349
|
};
|
|
3350
3350
|
},
|
|
3351
3351
|
computed: {
|
|
3352
|
-
...
|
|
3352
|
+
...Ce(["sidebar", "avatar", "name", "nickname", "nav"]),
|
|
3353
3353
|
hasNewMessage() {
|
|
3354
3354
|
return this.$store.state.settings.hasNewMessage;
|
|
3355
3355
|
},
|
|
@@ -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: "提示",
|
|
@@ -3525,7 +3525,7 @@ const ho = {
|
|
|
3525
3525
|
return this.$store.state.settings.logo;
|
|
3526
3526
|
}
|
|
3527
3527
|
}
|
|
3528
|
-
}, bo = (e) => (
|
|
3528
|
+
}, bo = (e) => (Ke("data-v-49084925"), e = e(), We(), e), _o = ["src"], yo = {
|
|
3529
3529
|
key: 1,
|
|
3530
3530
|
class: "sidebar-title"
|
|
3531
3531
|
}, vo = /* @__PURE__ */ bo(() => /* @__PURE__ */ b("div", null, "系统", -1)), go = ["src"], ko = { class: "sidebar-title" };
|
|
@@ -3583,10 +3583,10 @@ const So = /* @__PURE__ */ $(ho, [["render", wo], ["__scopeId", "data-v-49084925
|
|
|
3583
3583
|
},
|
|
3584
3584
|
methods: {
|
|
3585
3585
|
compType(e) {
|
|
3586
|
-
return
|
|
3586
|
+
return Ve(e) || this.newTab ? "a" : "router-link";
|
|
3587
3587
|
},
|
|
3588
3588
|
linkProps(e) {
|
|
3589
|
-
return
|
|
3589
|
+
return Ve(e) ? {
|
|
3590
3590
|
is: "a",
|
|
3591
3591
|
href: e,
|
|
3592
3592
|
target: "_blank",
|
|
@@ -3604,7 +3604,7 @@ const So = /* @__PURE__ */ $(ho, [["render", wo], ["__scopeId", "data-v-49084925
|
|
|
3604
3604
|
}
|
|
3605
3605
|
};
|
|
3606
3606
|
function Eo(e, t, l, n, o, a) {
|
|
3607
|
-
return i(), f(
|
|
3607
|
+
return i(), f(Ze(a.compType(l.to)), W(Y(a.linkProps(l.to))), {
|
|
3608
3608
|
default: r(() => [
|
|
3609
3609
|
le(e.$slots, "default")
|
|
3610
3610
|
]),
|
|
@@ -3748,21 +3748,21 @@ function Ao(e, t, l, n, o, a) {
|
|
|
3748
3748
|
}, 8, ["index", "class"])) : x("", !0)
|
|
3749
3749
|
])) : x("", !0);
|
|
3750
3750
|
}
|
|
3751
|
-
const
|
|
3751
|
+
const Po = /* @__PURE__ */ $(Oo, [["render", Ao]]);
|
|
3752
3752
|
function ft(e) {
|
|
3753
3753
|
return e.filter((t) => {
|
|
3754
3754
|
var l;
|
|
3755
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: ""
|
|
3762
3762
|
};
|
|
3763
3763
|
},
|
|
3764
3764
|
computed: {
|
|
3765
|
-
...
|
|
3765
|
+
...Ce(["remoteRouter"]),
|
|
3766
3766
|
filterRoutes() {
|
|
3767
3767
|
let e = [];
|
|
3768
3768
|
return this.remoteRouter.forEach((t) => {
|
|
@@ -3771,20 +3771,31 @@ const Po = {
|
|
|
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
|
}
|
|
3778
3789
|
};
|
|
3779
3790
|
function Lo(e, t, l, n, o, a) {
|
|
3780
|
-
const s =
|
|
3791
|
+
const s = Te, c = yl, p = Oe;
|
|
3781
3792
|
return i(), f(p, {
|
|
3782
3793
|
modelValue: o.selected,
|
|
3783
3794
|
"onUpdate:modelValue": t[0] || (t[0] = (d) => o.selected = d),
|
|
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,19 +3822,19 @@ 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() {
|
|
3828
3839
|
let e = [];
|
|
3829
3840
|
return this.$router.options.routes.concat(this.customRouter || []).forEach((t) => {
|
|
@@ -3840,8 +3851,8 @@ 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 ===
|
|
3844
|
-
return
|
|
3854
|
+
if (l.meta.menuType === R.menu)
|
|
3855
|
+
return this.showActive(), this.$router.resolve(l.redirect ? l.redirect : l).fullPath;
|
|
3845
3856
|
}
|
|
3846
3857
|
return "";
|
|
3847
3858
|
},
|
|
@@ -3860,11 +3871,14 @@ const Do = q({
|
|
|
3860
3871
|
}
|
|
3861
3872
|
},
|
|
3862
3873
|
mounted() {
|
|
3863
|
-
|
|
3874
|
+
this.showActive();
|
|
3864
3875
|
},
|
|
3865
3876
|
methods: {
|
|
3877
|
+
showActive() {
|
|
3878
|
+
Xe("is-active", 200);
|
|
3879
|
+
},
|
|
3866
3880
|
filterRoute(e) {
|
|
3867
|
-
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));
|
|
3868
3882
|
}
|
|
3869
3883
|
}
|
|
3870
3884
|
});
|
|
@@ -3908,7 +3922,7 @@ function jo(e, t, l, n, o, a) {
|
|
|
3908
3922
|
})
|
|
3909
3923
|
], 2);
|
|
3910
3924
|
}
|
|
3911
|
-
const No = /* @__PURE__ */ $(Do, [["render", jo], ["__scopeId", "data-v-
|
|
3925
|
+
const No = /* @__PURE__ */ $(Do, [["render", jo], ["__scopeId", "data-v-d252f828"]]);
|
|
3912
3926
|
const Vo = { class: "app-main" }, qo = {
|
|
3913
3927
|
__name: "AppMain",
|
|
3914
3928
|
setup(e) {
|
|
@@ -4099,7 +4113,7 @@ const Qo = { id: "login" }, Xo = /* @__PURE__ */ b("h1", { id: "title" }, "登
|
|
|
4099
4113
|
});
|
|
4100
4114
|
const sa = {
|
|
4101
4115
|
name: "NotFoundPage"
|
|
4102
|
-
}, bt = (e) => (
|
|
4116
|
+
}, bt = (e) => (Ke("data-v-26068803"), e = e(), We(), e), ia = { class: "not-found" }, ra = /* @__PURE__ */ bt(() => /* @__PURE__ */ b("svg", {
|
|
4103
4117
|
width: "380px",
|
|
4104
4118
|
height: "500px",
|
|
4105
4119
|
viewBox: "0 0 837 1045",
|
|
@@ -4204,15 +4218,15 @@ const da = /* @__PURE__ */ $(sa, [["render", pa], ["__scopeId", "data-v-26068803
|
|
|
4204
4218
|
history: sl(),
|
|
4205
4219
|
routes: ma
|
|
4206
4220
|
});
|
|
4207
|
-
|
|
4221
|
+
ke.configure({ showSpinner: !1 });
|
|
4208
4222
|
function fa(e) {
|
|
4209
4223
|
e.beforeEach((t, l, n) => {
|
|
4210
|
-
|
|
4224
|
+
ke.start(), t.preHash = location.hash.replace("#", ""), n();
|
|
4211
4225
|
}), e.afterEach((t) => {
|
|
4212
4226
|
t.matched.length > 0 && E.commit("user/updateState", {
|
|
4213
4227
|
key: "path",
|
|
4214
4228
|
value: t.matched[t.matched.length - 1].path.replace("(\\d+)", "")
|
|
4215
|
-
}),
|
|
4229
|
+
}), ke.done();
|
|
4216
4230
|
});
|
|
4217
4231
|
}
|
|
4218
4232
|
function ha() {
|
|
@@ -4284,7 +4298,7 @@ const yt = /* @__PURE__ */ $(ya, [["render", wa]]), Sa = {
|
|
|
4284
4298
|
}
|
|
4285
4299
|
};
|
|
4286
4300
|
function xa(e, t, l, n, o, a) {
|
|
4287
|
-
const s =
|
|
4301
|
+
const s = Be;
|
|
4288
4302
|
return i(), h("div", null, [
|
|
4289
4303
|
o.hasNotice ? (i(), f(s, {
|
|
4290
4304
|
key: 0,
|
|
@@ -4328,7 +4342,7 @@ const vt = /* @__PURE__ */ $(Sa, [["render", xa]]), Ea = q({
|
|
|
4328
4342
|
beforeCreate() {
|
|
4329
4343
|
const e = this.$route.path.split("/").filter((o) => o), t = e.length > 1 ? e.slice(0, e.length - 1).join("/") : e[0], l = "/schema" + this.$route.meta.path, n = { params: this.$route.params };
|
|
4330
4344
|
this.$http.get(this.$props.schemaApi || l, n).then(({ data: o }) => {
|
|
4331
|
-
this.loading = !1, X(o) && (o.notice !== void 0 && (this.haveNotice = !0,
|
|
4345
|
+
this.loading = !1, X(o) && (o.notice !== void 0 && (this.haveNotice = !0, $e(o.notice) ? this.notice = {
|
|
4332
4346
|
title: o.notice
|
|
4333
4347
|
} : X(o.notice) && (this.notice = o.notice, this.noticeApi = o.notice.noticeApi), delete o.notice), this.owners = o.ownerNames || [], this.serviceOffLine = o.serviceOffLine || !1), this.schema = this.$props.schemaHandler(o, t), E.commit("app/SET_PAGE_JSON_SCHEMA", { page: this.$route.path, json: this.schema });
|
|
4334
4348
|
});
|
|
@@ -4336,7 +4350,7 @@ const vt = /* @__PURE__ */ $(Sa, [["render", xa]]), Ea = q({
|
|
|
4336
4350
|
});
|
|
4337
4351
|
const $a = ["innerHTML"];
|
|
4338
4352
|
function Ia(e, t, l, n, o, a) {
|
|
4339
|
-
const s =
|
|
4353
|
+
const s = Be, c = vt, p = yt;
|
|
4340
4354
|
return i(), h(S, null, [
|
|
4341
4355
|
e.owners.length > 0 ? (i(), f(s, {
|
|
4342
4356
|
key: 0,
|
|
@@ -4383,7 +4397,7 @@ const se = /* @__PURE__ */ $(Ea, [["render", Ia], ["__scopeId", "data-v-015774e8
|
|
|
4383
4397
|
_: 1
|
|
4384
4398
|
}));
|
|
4385
4399
|
}
|
|
4386
|
-
},
|
|
4400
|
+
}, xe = {
|
|
4387
4401
|
__name: "form",
|
|
4388
4402
|
setup(e) {
|
|
4389
4403
|
const t = pe(), l = (n, o) => {
|
|
@@ -4551,12 +4565,12 @@ const se = /* @__PURE__ */ $(Ea, [["render", Ia], ["__scopeId", "data-v-015774e8
|
|
|
4551
4565
|
}
|
|
4552
4566
|
}
|
|
4553
4567
|
});
|
|
4554
|
-
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 = {
|
|
4555
4569
|
key: 1,
|
|
4556
4570
|
style: { color: "#E6A23C" }
|
|
4557
|
-
},
|
|
4571
|
+
}, Ra = { class: "card-header" };
|
|
4558
4572
|
function La(e, t, l, n, o, a) {
|
|
4559
|
-
const s = ue, c = Sl, p =
|
|
4573
|
+
const s = ue, c = Sl, p = Ae, d = de, m = v("v-form"), _ = ae;
|
|
4560
4574
|
return i(), f(_, {
|
|
4561
4575
|
class: "tree-box",
|
|
4562
4576
|
gutter: 20
|
|
@@ -4596,7 +4610,7 @@ function La(e, t, l, n, o, a) {
|
|
|
4596
4610
|
}), {
|
|
4597
4611
|
default: r(({ node: T, data: w }) => [
|
|
4598
4612
|
b("span", Ba, [
|
|
4599
|
-
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, "请在右侧表单中修改 --> ")),
|
|
4600
4614
|
b("span", null, [
|
|
4601
4615
|
w[e.localTreeProps.props.label] ? (i(), f(s, {
|
|
4602
4616
|
key: 0,
|
|
@@ -4652,7 +4666,7 @@ function La(e, t, l, n, o, a) {
|
|
|
4652
4666
|
shadow: "never"
|
|
4653
4667
|
}, {
|
|
4654
4668
|
header: r(() => [
|
|
4655
|
-
b("div",
|
|
4669
|
+
b("div", Ra, [
|
|
4656
4670
|
b("span", null, O(e.formType), 1)
|
|
4657
4671
|
])
|
|
4658
4672
|
]),
|
|
@@ -4672,18 +4686,18 @@ function La(e, t, l, n, o, a) {
|
|
|
4672
4686
|
_: 1
|
|
4673
4687
|
});
|
|
4674
4688
|
}
|
|
4675
|
-
const
|
|
4689
|
+
const Fe = /* @__PURE__ */ $(Ca, [["render", La]]), Ma = {
|
|
4676
4690
|
__name: "tree",
|
|
4677
4691
|
setup(e) {
|
|
4678
4692
|
const t = (l, n) => {
|
|
4679
|
-
const o = Object.keys(
|
|
4693
|
+
const o = Object.keys(Fe.props);
|
|
4680
4694
|
return Object.keys(l).forEach((a) => {
|
|
4681
4695
|
o.indexOf(a) === -1 && delete l[a];
|
|
4682
4696
|
}), l;
|
|
4683
4697
|
};
|
|
4684
4698
|
return (l, n) => (i(), f(se, { "schema-handler": t }, {
|
|
4685
4699
|
default: r((o) => [
|
|
4686
|
-
u(
|
|
4700
|
+
u(Fe, W(Y(o)), null, 16)
|
|
4687
4701
|
]),
|
|
4688
4702
|
_: 1
|
|
4689
4703
|
}));
|
|
@@ -4732,7 +4746,7 @@ function ja(e, t, l) {
|
|
|
4732
4746
|
if (l.length === 0)
|
|
4733
4747
|
return {};
|
|
4734
4748
|
let n = A({}, Da);
|
|
4735
|
-
if (n.title.text = e,
|
|
4749
|
+
if (n.title.text = e, $e(t)) {
|
|
4736
4750
|
const o = [], a = Object.keys(l[0]);
|
|
4737
4751
|
let s = a[0], c = a.filter((d, m) => m > 0), p = t;
|
|
4738
4752
|
if (t.indexOf(":") > -1) {
|
|
@@ -4784,7 +4798,7 @@ const Fa = /* @__PURE__ */ $(Na, [["render", Ha], ["__scopeId", "data-v-cc0d8293
|
|
|
4784
4798
|
components: {
|
|
4785
4799
|
Chart: El,
|
|
4786
4800
|
Md: Ol,
|
|
4787
|
-
Json:
|
|
4801
|
+
Json: Re,
|
|
4788
4802
|
Table: oe,
|
|
4789
4803
|
Number: Fa,
|
|
4790
4804
|
Html: ""
|
|
@@ -4832,13 +4846,13 @@ const Fa = /* @__PURE__ */ $(Na, [["render", Ha], ["__scopeId", "data-v-cc0d8293
|
|
|
4832
4846
|
}
|
|
4833
4847
|
};
|
|
4834
4848
|
function Ja(e, t, l, n, o, a) {
|
|
4835
|
-
const s =
|
|
4849
|
+
const s = Ae, c = Pt("resize");
|
|
4836
4850
|
return ie((i(), f(s, {
|
|
4837
4851
|
shadow: "never",
|
|
4838
4852
|
class: "part"
|
|
4839
4853
|
}, {
|
|
4840
4854
|
default: r(() => [
|
|
4841
|
-
(i(), f(
|
|
4855
|
+
(i(), f(Ze(n.comptype()), W(Y(n.compprops(l.option))), null, 16))
|
|
4842
4856
|
]),
|
|
4843
4857
|
_: 1
|
|
4844
4858
|
})), [
|
|
@@ -4859,10 +4873,10 @@ const za = /* @__PURE__ */ $(Ga, [["render", Ja], ["__scopeId", "data-v-a5a65cc1
|
|
|
4859
4873
|
},
|
|
4860
4874
|
setup(e) {
|
|
4861
4875
|
const t = e, l = useRoute();
|
|
4862
|
-
|
|
4876
|
+
Rt(() => {
|
|
4863
4877
|
});
|
|
4864
4878
|
const n = L({});
|
|
4865
|
-
|
|
4879
|
+
ze(() => {
|
|
4866
4880
|
var m;
|
|
4867
4881
|
(m = t.filter) == null || m.forEach((_) => {
|
|
4868
4882
|
_.default !== null && (n.value[_.field] = _.default);
|
|
@@ -4891,7 +4905,7 @@ const za = /* @__PURE__ */ $(Ga, [["render", Ja], ["__scopeId", "data-v-a5a65cc1
|
|
|
4891
4905
|
});
|
|
4892
4906
|
};
|
|
4893
4907
|
return (m, _) => {
|
|
4894
|
-
const T =
|
|
4908
|
+
const T = Ae, w = de, F = Be, U = ae;
|
|
4895
4909
|
return i(), f(U, null, {
|
|
4896
4910
|
default: r(() => [
|
|
4897
4911
|
k(s).length > 0 ? (i(), f(w, {
|
|
@@ -5013,9 +5027,9 @@ function Ya(e) {
|
|
|
5013
5027
|
type: l[a],
|
|
5014
5028
|
children: [o]
|
|
5015
5029
|
};
|
|
5016
|
-
return o.span = n,
|
|
5030
|
+
return o.span = n, je([o]);
|
|
5017
5031
|
}
|
|
5018
|
-
function
|
|
5032
|
+
function je(e) {
|
|
5019
5033
|
const t = {
|
|
5020
5034
|
type: "row",
|
|
5021
5035
|
props: {
|
|
@@ -5050,7 +5064,7 @@ function Ne(e) {
|
|
|
5050
5064
|
props: {}
|
|
5051
5065
|
}, Xa[n.type] || {}, n);
|
|
5052
5066
|
const a = kt(n.children);
|
|
5053
|
-
a.length && (n.children =
|
|
5067
|
+
a.length && (n.children = je(a)), t.children.push({
|
|
5054
5068
|
type: "col",
|
|
5055
5069
|
props: o,
|
|
5056
5070
|
children: [n]
|
|
@@ -5060,13 +5074,13 @@ function Ne(e) {
|
|
|
5060
5074
|
function kt(e) {
|
|
5061
5075
|
return Ye(e) ? e : X(e) ? [e] : [];
|
|
5062
5076
|
}
|
|
5063
|
-
let
|
|
5077
|
+
let Ee = {};
|
|
5064
5078
|
const wt = (e) => {
|
|
5065
|
-
const t = Qa[e.type] ||
|
|
5079
|
+
const t = Qa[e.type] || Ee[e.type] || e.type;
|
|
5066
5080
|
return Dt(t, e.props, {
|
|
5067
5081
|
default: () => kt(e.children).map((l) => wt(l))
|
|
5068
5082
|
});
|
|
5069
|
-
}, es = (e) => (Object.keys(
|
|
5083
|
+
}, es = (e) => (Object.keys(Ee).length === 0 && (Ee = Mt().appContext.components), je(Object.values(e.schema)).map((l) => wt(l))), ts = {
|
|
5070
5084
|
__name: "custom",
|
|
5071
5085
|
setup(e) {
|
|
5072
5086
|
const t = L([]), l = (n, o) => (t.value = jt(n), n);
|
|
@@ -5093,7 +5107,7 @@ const ls = (e) => {
|
|
|
5093
5107
|
case D.list:
|
|
5094
5108
|
return gt;
|
|
5095
5109
|
case D.form:
|
|
5096
|
-
return
|
|
5110
|
+
return xe;
|
|
5097
5111
|
case D.custom:
|
|
5098
5112
|
case D.localComp:
|
|
5099
5113
|
return t(e.view || "");
|
|
@@ -5108,13 +5122,13 @@ const ls = (e) => {
|
|
|
5108
5122
|
};
|
|
5109
5123
|
function ns(e) {
|
|
5110
5124
|
let t = e.path;
|
|
5111
|
-
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;
|
|
5112
5126
|
}
|
|
5113
5127
|
function os(e) {
|
|
5114
5128
|
return (e.path + e.name).split("/").filter((t) => t).join("_");
|
|
5115
5129
|
}
|
|
5116
5130
|
const St = (e) => {
|
|
5117
|
-
const t = e.type !==
|
|
5131
|
+
const t = e.type !== R.page, l = {
|
|
5118
5132
|
path: ns(e),
|
|
5119
5133
|
name: e.id + "_" + os(e) + "_" + e.path.replaceAll("/", "_"),
|
|
5120
5134
|
component: ls(e),
|
|
@@ -5139,7 +5153,7 @@ const St = (e) => {
|
|
|
5139
5153
|
id: e.id + 99999,
|
|
5140
5154
|
title: "列表",
|
|
5141
5155
|
hidden: !0,
|
|
5142
|
-
menuType:
|
|
5156
|
+
menuType: R.hidden,
|
|
5143
5157
|
keepAlive: !1,
|
|
5144
5158
|
pageId: e.id,
|
|
5145
5159
|
path: e.path
|
|
@@ -5147,12 +5161,12 @@ const St = (e) => {
|
|
|
5147
5161
|
}, {
|
|
5148
5162
|
path: o,
|
|
5149
5163
|
name: e.name + "新建" + e.id,
|
|
5150
|
-
component:
|
|
5164
|
+
component: xe,
|
|
5151
5165
|
meta: {
|
|
5152
5166
|
id: e.id + 99999 + 1,
|
|
5153
5167
|
title: "新建",
|
|
5154
5168
|
hidden: !0,
|
|
5155
|
-
menuType:
|
|
5169
|
+
menuType: R.hidden,
|
|
5156
5170
|
keepAlive: !1,
|
|
5157
5171
|
pageId: e.id,
|
|
5158
5172
|
path: e.path
|
|
@@ -5160,12 +5174,12 @@ const St = (e) => {
|
|
|
5160
5174
|
}, {
|
|
5161
5175
|
path: a,
|
|
5162
5176
|
name: e.name + "编辑" + e.id,
|
|
5163
|
-
component:
|
|
5177
|
+
component: xe,
|
|
5164
5178
|
meta: {
|
|
5165
5179
|
id: e.id + 99999 + 2,
|
|
5166
5180
|
title: "编辑",
|
|
5167
5181
|
hidden: !0,
|
|
5168
|
-
menuType:
|
|
5182
|
+
menuType: R.hidden,
|
|
5169
5183
|
keepAlive: !1,
|
|
5170
5184
|
pageId: e.id,
|
|
5171
5185
|
path: e.path
|
|
@@ -5177,8 +5191,8 @@ const St = (e) => {
|
|
|
5177
5191
|
let n = !0;
|
|
5178
5192
|
if (l.children.forEach((o) => {
|
|
5179
5193
|
o.meta && !o.meta.hidden && (n = !1);
|
|
5180
|
-
}), l.meta && (l.meta.menuType = t ?
|
|
5181
|
-
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);
|
|
5182
5196
|
let o = "/";
|
|
5183
5197
|
for (let a = 0; a < l.children.length; a++)
|
|
5184
5198
|
if (l.children[a].path.indexOf("/:") === -1) {
|
|
@@ -5245,7 +5259,7 @@ rs(z);
|
|
|
5245
5259
|
function cs() {
|
|
5246
5260
|
return E.state.user.token;
|
|
5247
5261
|
}
|
|
5248
|
-
function
|
|
5262
|
+
function Ge(e) {
|
|
5249
5263
|
Xl({
|
|
5250
5264
|
message: e,
|
|
5251
5265
|
type: "error",
|
|
@@ -5266,7 +5280,7 @@ const us = {
|
|
|
5266
5280
|
if (!(((n = e.config) == null ? void 0 : n.notHoldApiErr) !== void 0 && ((o = e.config) == null ? void 0 : o.notHoldApiErr) === !0) && e.data.code !== 0) {
|
|
5267
5281
|
const m = e.data.message || `接口请求错误 ${e.config.method}::${(a = e.config.url) == null ? void 0 : a.split("?")[0]}`;
|
|
5268
5282
|
if (e.data.code === 401) {
|
|
5269
|
-
|
|
5283
|
+
Ue.alert("登录信息已过期或未登录, 是否跳转登录", "操作提醒", {
|
|
5270
5284
|
showClose: !1,
|
|
5271
5285
|
confirmButtonText: "重新登录",
|
|
5272
5286
|
showCancelButton: !0,
|
|
@@ -5277,13 +5291,13 @@ const us = {
|
|
|
5277
5291
|
});
|
|
5278
5292
|
return;
|
|
5279
5293
|
} else
|
|
5280
|
-
|
|
5294
|
+
Ge(m);
|
|
5281
5295
|
return Promise.reject(m);
|
|
5282
5296
|
}
|
|
5283
5297
|
let l = (c = (s = e.data) == null ? void 0 : s.data) == null ? void 0 : c._message_box;
|
|
5284
|
-
return l !== void 0 && (
|
|
5298
|
+
return l !== void 0 && ($e(l) && (l = {
|
|
5285
5299
|
message: (d = (p = e.data) == null ? void 0 : p.data) == null ? void 0 : d._message_box
|
|
5286
|
-
}),
|
|
5300
|
+
}), Ue({
|
|
5287
5301
|
title: "提示",
|
|
5288
5302
|
type: "success",
|
|
5289
5303
|
grouping: !0,
|
|
@@ -5292,7 +5306,7 @@ const us = {
|
|
|
5292
5306
|
},
|
|
5293
5307
|
onRejected(e) {
|
|
5294
5308
|
var t;
|
|
5295
|
-
return
|
|
5309
|
+
return Ie.isCancel(e) ? Promise.reject("") : (Ge(`${e.message} ${e.config.method}::${(t = e.config.url) == null ? void 0 : t.split("?")[0]}`), Promise.reject(e));
|
|
5296
5310
|
}
|
|
5297
5311
|
}, ds = [
|
|
5298
5312
|
{
|
|
@@ -5304,8 +5318,8 @@ const us = {
|
|
|
5304
5318
|
response: ps
|
|
5305
5319
|
}
|
|
5306
5320
|
];
|
|
5307
|
-
function
|
|
5308
|
-
const t = me.axios || {}, l = A(t, e || {}), n =
|
|
5321
|
+
function Ne(e = {}) {
|
|
5322
|
+
const t = me.axios || {}, l = A(t, e || {}), n = Ie.create({
|
|
5309
5323
|
...l
|
|
5310
5324
|
// adapter: (c) => cacheAdapter(c, defaultAxios)
|
|
5311
5325
|
});
|
|
@@ -5313,7 +5327,7 @@ function Ve(e = {}) {
|
|
|
5313
5327
|
n.interceptors.request.use(o.request.onFulfilled, o.request.onRejected), n.interceptors.response.use(o.response.onFulfilled, o.response.onRejected);
|
|
5314
5328
|
}), n;
|
|
5315
5329
|
}
|
|
5316
|
-
const ms =
|
|
5330
|
+
const ms = Ne();
|
|
5317
5331
|
const fs = {
|
|
5318
5332
|
beforeMount(e, t) {
|
|
5319
5333
|
e.clickOutsideEvent = function(l) {
|
|
@@ -5333,7 +5347,7 @@ const fs = {
|
|
|
5333
5347
|
mounted(e) {
|
|
5334
5348
|
}
|
|
5335
5349
|
};
|
|
5336
|
-
function
|
|
5350
|
+
function Je(e, t) {
|
|
5337
5351
|
let l = e[`offset${t}`], n = e.offsetParent;
|
|
5338
5352
|
for (; n; )
|
|
5339
5353
|
l += n[`offset${t}`], n = n.offsetParent;
|
|
@@ -5350,7 +5364,7 @@ const _s = {
|
|
|
5350
5364
|
l.classList.add("devtool-hover");
|
|
5351
5365
|
const n = document.createElement("i");
|
|
5352
5366
|
n.className = "devtool-item-wrapper", l.onmouseover = () => {
|
|
5353
|
-
n.style.height = l.offsetHeight + 30 + "px", n.style.width = l.offsetWidth + 30 + "px", n.style.top =
|
|
5367
|
+
n.style.height = l.offsetHeight + 30 + "px", n.style.width = l.offsetWidth + 30 + "px", n.style.top = Je(l, "Top") - 15 + "px", n.style.left = Je(l, "Left") - 15 + "px";
|
|
5354
5368
|
};
|
|
5355
5369
|
const o = document.createElement("span");
|
|
5356
5370
|
o.className = "dev-action-edit", o.title = "编辑";
|
|
@@ -5374,14 +5388,14 @@ const _s = {
|
|
|
5374
5388
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5375
5389
|
let ce;
|
|
5376
5390
|
function Ei(e) {
|
|
5377
|
-
return e ?
|
|
5391
|
+
return e ? Ne(A(me.axios, e)) : ce;
|
|
5378
5392
|
}
|
|
5379
5393
|
function $i(e) {
|
|
5380
5394
|
const t = A(me, e), l = Nt(Al), n = Es(t), o = t.plugins || [];
|
|
5381
5395
|
o.unshift(n), o.forEach((a) => {
|
|
5382
5396
|
xs(l, a);
|
|
5383
|
-
}), t != null && t.mock && Ul(), ce =
|
|
5384
|
-
"X-Token":
|
|
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(() => ({
|
|
5398
|
+
"X-Token": Me()
|
|
5385
5399
|
})), z.isReady().then(() => l.mount("#app"));
|
|
5386
5400
|
}
|
|
5387
5401
|
function vs(e, t = {}) {
|
|
@@ -5434,16 +5448,16 @@ export {
|
|
|
5434
5448
|
ge as Container,
|
|
5435
5449
|
zo as DingTalk,
|
|
5436
5450
|
ht as Layout,
|
|
5437
|
-
|
|
5451
|
+
R as MenuType,
|
|
5438
5452
|
Xl as Message,
|
|
5439
|
-
|
|
5453
|
+
Ue as MessageBox,
|
|
5440
5454
|
D as PageType,
|
|
5441
5455
|
Wo as allSso,
|
|
5442
5456
|
$i as createAdmin,
|
|
5443
5457
|
K as eventBus,
|
|
5444
5458
|
ln as getCmp,
|
|
5445
5459
|
ce as http,
|
|
5446
|
-
|
|
5460
|
+
Ne as instance,
|
|
5447
5461
|
xi as regViews,
|
|
5448
5462
|
Si as setCmp,
|
|
5449
5463
|
as as transRemoteModules,
|