@okiss/oms 0.0.43 → 0.0.44
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
|
|
5
|
-
import { addNewStyle as
|
|
1
|
+
var Et = Object.defineProperty;
|
|
2
|
+
var $t = (e, t, l) => t in e ? Et(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l;
|
|
3
|
+
var M = (e, t, l) => ($t(e, typeof t != "symbol" ? t + "" : t, l), l);
|
|
4
|
+
import { defineComponent as q, onBeforeMount as ze, provide as It, resolveComponent as v, openBlock as i, createBlock as f, createVNode as u, computed as j, createTextVNode as g, withCtx as r, TransitionGroup as Ct, 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 Tt, ref as L, normalizeStyle as Ot, createElementVNode as b, Transition as Bt, 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 At, onMounted as Rt, isRef as Pt, getCurrentInstance as Lt, h as Mt, toRaw as Dt, createApp as jt } from "vue";
|
|
5
|
+
import { addNewStyle as Nt, addNewStyleTag as Vt, queryParams as qt, logGroup as Ut, compactObject as Qe, showEleByClassName as Ht, 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 Xe } 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
|
|
9
|
-
import
|
|
7
|
+
import Wt, { cloneDeep as y, merge as A, get as ne, unset as Ye } from "lodash";
|
|
8
|
+
import et from "element-plus/lib/locale/lang/zh-cn";
|
|
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 tt, 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 lt, ElButton as ue, ElOption as Te, ElSelect as Oe, ElFormItem as nt, ElForm as ot, ElCol as de, ElDrawer as at, 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 Re, JsonView as Pe, 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,16 +62,16 @@ 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
|
-
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(), Nt("test-icon", "//at.alicdn.com/t/font_2246548_zclaqxwmzq8.css"), Vt(`.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 && It("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
|
};
|
|
@@ -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: "跳转",
|
|
@@ -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",
|
|
@@ -726,7 +726,7 @@ const Rl = {
|
|
|
726
726
|
withCredentials: !0,
|
|
727
727
|
timeout: 5e3,
|
|
728
728
|
cacheEnable: !0
|
|
729
|
-
},
|
|
729
|
+
}, st = {
|
|
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: et
|
|
744
744
|
},
|
|
745
745
|
nav: [],
|
|
746
746
|
whiteRoutes: ["/login"],
|
|
@@ -753,47 +753,47 @@ const Rl = {
|
|
|
753
753
|
serviceOffLineNotice: "当前页面功能正在维护, 请稍后再试~~~"
|
|
754
754
|
}, me = {
|
|
755
755
|
axios: ql,
|
|
756
|
-
settings:
|
|
756
|
+
settings: st,
|
|
757
757
|
plugins: [],
|
|
758
758
|
mock: !1
|
|
759
|
-
},
|
|
760
|
-
function
|
|
759
|
+
}, we = {};
|
|
760
|
+
function it(e) {
|
|
761
761
|
e.forEach((t) => {
|
|
762
|
-
const l =
|
|
763
|
-
|
|
762
|
+
const l = rt(t);
|
|
763
|
+
we[`${t.method}::${l}`] = t;
|
|
764
764
|
});
|
|
765
765
|
}
|
|
766
|
-
|
|
767
|
-
function
|
|
766
|
+
it(Vl);
|
|
767
|
+
function rt(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
|
-
Object.keys(
|
|
774
|
-
const t =
|
|
773
|
+
Object.keys(we).forEach((e) => {
|
|
774
|
+
const t = we[e], l = rt(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 = qt(o), p = s ? JSON.parse(s) : {}, d = t.response({ query: c, data: p }), m = _e.mock(d);
|
|
777
|
+
return Ut(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
|
-
function
|
|
790
|
-
return N.remove(
|
|
789
|
+
function ct() {
|
|
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: [],
|
|
@@ -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 = "", ct();
|
|
814
814
|
},
|
|
815
815
|
updateRemoteRouter(e, t) {
|
|
816
816
|
e.remoteRouter = t, e.isLodeRemoteRoutes = !0;
|
|
@@ -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: [],
|
|
@@ -892,7 +892,7 @@ const Fl = {
|
|
|
892
892
|
});
|
|
893
893
|
}
|
|
894
894
|
}
|
|
895
|
-
}, Jl = y(
|
|
895
|
+
}, Jl = y(st), zl = {
|
|
896
896
|
namespaced: !0,
|
|
897
897
|
state: Jl,
|
|
898
898
|
mutations: {
|
|
@@ -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) {
|
|
@@ -1057,12 +1057,12 @@ const Fl = {
|
|
|
1057
1057
|
onRejected(e) {
|
|
1058
1058
|
return Promise.reject(e);
|
|
1059
1059
|
}
|
|
1060
|
-
},
|
|
1060
|
+
}, ut = {};
|
|
1061
1061
|
function Si(e, t) {
|
|
1062
|
-
|
|
1062
|
+
ut[e] = t;
|
|
1063
1063
|
}
|
|
1064
1064
|
function ln(e) {
|
|
1065
|
-
return
|
|
1065
|
+
return ut[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 = tt(), 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(Ct, { 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 pt = /* @__PURE__ */ $(fn, [["render", hn], ["__scopeId", "data-v-7c3d697b"]]), bn = {
|
|
1224
1224
|
type: "input",
|
|
1225
1225
|
name: "文本框",
|
|
1226
1226
|
default: {
|
|
@@ -1793,9 +1793,9 @@ const dt = /* @__PURE__ */ $(fn, [["render", hn], ["__scopeId", "data-v-7c3d697b
|
|
|
1793
1793
|
}
|
|
1794
1794
|
}
|
|
1795
1795
|
]
|
|
1796
|
-
},
|
|
1796
|
+
}, dt = {};
|
|
1797
1797
|
function R(e) {
|
|
1798
|
-
|
|
1798
|
+
dt[e.type] = e;
|
|
1799
1799
|
}
|
|
1800
1800
|
R(bn);
|
|
1801
1801
|
R(vn);
|
|
@@ -1810,7 +1810,7 @@ R(Sn);
|
|
|
1810
1810
|
R(xn);
|
|
1811
1811
|
R($n);
|
|
1812
1812
|
R(En);
|
|
1813
|
-
const
|
|
1813
|
+
const Se = dt, 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:
|
|
1953
|
+
components: { DevLayout: pt, VForm: J, VButton: Re, JsonView: Pe },
|
|
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
|
-
|
|
2061
|
+
Ye(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 = lt, p = ue, d = v("JsonView"), m = v("VButton"), _ = Te, T = Oe, w = nt, F = ot, U = v("dev-layout");
|
|
2090
2090
|
return i(), f(U, null, {
|
|
2091
2091
|
main: r(() => [
|
|
2092
2092
|
o.builderSchema.formItems ? (i(), f(s, G({
|
|
@@ -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: Pe, DevLayout: pt, VTable: oe, VForm: J, VButton: Re },
|
|
2853
2853
|
props: {
|
|
2854
2854
|
schema: {
|
|
2855
2855
|
type: Object,
|
|
@@ -2858,13 +2858,13 @@ const Xn = {
|
|
|
2858
2858
|
}
|
|
2859
2859
|
},
|
|
2860
2860
|
data() {
|
|
2861
|
-
const e =
|
|
2861
|
+
const e = Tt(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: {},
|
|
@@ -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
|
+
Ye(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 = lt, _ = ue, T = v("JsonView"), w = v("VButton"), F = Te, U = Oe, C = nt, Z = ot, St = v("v-form"), xt = v("dev-layout");
|
|
3036
|
+
return i(), f(xt, 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(St, G({
|
|
3286
3286
|
key: o.ctrlKey,
|
|
3287
3287
|
modelValue: o.ctrlOptions,
|
|
3288
3288
|
"onUpdate:modelValue": t[4] || (t[4] = (I) => o.ctrlOptions = I)
|
|
@@ -3300,7 +3300,7 @@ const eo = /* @__PURE__ */ $(Xn, [["render", Yn], ["__scopeId", "data-v-e5209cb7
|
|
|
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 = at;
|
|
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: Re,
|
|
3339
3339
|
PageEditor: no
|
|
3340
3340
|
},
|
|
3341
3341
|
data() {
|
|
@@ -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
|
+
Ht("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 = at, C = ae;
|
|
3423
3423
|
return i(), f(C, {
|
|
3424
3424
|
ref: "header",
|
|
3425
3425
|
class: "navbar",
|
|
3426
|
-
style:
|
|
3426
|
+
style: Ot({ background: a.setting.envColor[a.user.env] })
|
|
3427
3427
|
}, {
|
|
3428
3428
|
default: r(() => [
|
|
3429
3429
|
u(p, { span: 16 }, {
|
|
@@ -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" };
|
|
@@ -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(Bt, { name: "sidebarLogoFade" }, {
|
|
3538
3538
|
default: r(() => [
|
|
3539
3539
|
l.collapse ? (i(), f(s, {
|
|
3540
3540
|
key: "collapse",
|
|
@@ -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
|
]),
|
|
@@ -3749,10 +3749,10 @@ function Ao(e, t, l, n, o, a) {
|
|
|
3749
3749
|
])) : x("", !0);
|
|
3750
3750
|
}
|
|
3751
3751
|
const Ro = /* @__PURE__ */ $(Oo, [["render", Ao]]);
|
|
3752
|
-
function
|
|
3752
|
+
function mt(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 = mt(t.children), t.children.length === 0 && delete t.children), !0);
|
|
3756
3756
|
});
|
|
3757
3757
|
}
|
|
3758
3758
|
const Po = {
|
|
@@ -3762,12 +3762,12 @@ const Po = {
|
|
|
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) => {
|
|
3769
3769
|
e = e.concat(y(t.routes));
|
|
3770
|
-
}),
|
|
3770
|
+
}), mt(e);
|
|
3771
3771
|
}
|
|
3772
3772
|
},
|
|
3773
3773
|
methods: {
|
|
@@ -3777,7 +3777,7 @@ const Po = {
|
|
|
3777
3777
|
}
|
|
3778
3778
|
};
|
|
3779
3779
|
function Lo(e, t, l, n, o, a) {
|
|
3780
|
-
const s =
|
|
3780
|
+
const s = Te, c = yl, p = Oe;
|
|
3781
3781
|
return i(), f(p, {
|
|
3782
3782
|
modelValue: o.selected,
|
|
3783
3783
|
"onUpdate:modelValue": t[0] || (t[0] = (d) => o.selected = d),
|
|
@@ -3823,7 +3823,7 @@ var D = /* @__PURE__ */ ((e) => (e[e.custom = 0] = "custom", e[e.list = 1] = "li
|
|
|
3823
3823
|
const Do = q({
|
|
3824
3824
|
components: { SidebarItem: Ro, Logo: So, SearchMenu: Mo },
|
|
3825
3825
|
computed: {
|
|
3826
|
-
...
|
|
3826
|
+
...Ce(["sidebar", "remoteRouter", "customRouter"]),
|
|
3827
3827
|
routes() {
|
|
3828
3828
|
let e = [];
|
|
3829
3829
|
return this.$router.options.routes.concat(this.customRouter || []).forEach((t) => {
|
|
@@ -3841,7 +3841,7 @@ const Do = q({
|
|
|
3841
3841
|
for (let t = e.length - 1; t >= 0; t--) {
|
|
3842
3842
|
const l = e[t];
|
|
3843
3843
|
if (l.meta.menuType === P.menu)
|
|
3844
|
-
return
|
|
3844
|
+
return this.showActive(), this.$router.resolve(l.redirect ? l.redirect : l).fullPath;
|
|
3845
3845
|
}
|
|
3846
3846
|
return "";
|
|
3847
3847
|
},
|
|
@@ -3860,9 +3860,14 @@ const Do = q({
|
|
|
3860
3860
|
}
|
|
3861
3861
|
},
|
|
3862
3862
|
mounted() {
|
|
3863
|
-
|
|
3863
|
+
this.showActive();
|
|
3864
3864
|
},
|
|
3865
3865
|
methods: {
|
|
3866
|
+
showActive() {
|
|
3867
|
+
setTimeout(() => {
|
|
3868
|
+
document.getElementsByClassName("is-active")[0].scrollIntoView();
|
|
3869
|
+
}, 200);
|
|
3870
|
+
},
|
|
3866
3871
|
filterRoute(e) {
|
|
3867
3872
|
return e.filter((t) => [P.dir, P.menu].indexOf(t.meta.menuType) !== -1).map((t) => (t = Object.assign({}, t), t.children && (t.children = this.filterRoute(t.children)), t));
|
|
3868
3873
|
}
|
|
@@ -3908,7 +3913,7 @@ function jo(e, t, l, n, o, a) {
|
|
|
3908
3913
|
})
|
|
3909
3914
|
], 2);
|
|
3910
3915
|
}
|
|
3911
|
-
const No = /* @__PURE__ */ $(Do, [["render", jo], ["__scopeId", "data-v-
|
|
3916
|
+
const No = /* @__PURE__ */ $(Do, [["render", jo], ["__scopeId", "data-v-0383ed05"]]);
|
|
3912
3917
|
const Vo = { class: "app-main" }, qo = {
|
|
3913
3918
|
__name: "AppMain",
|
|
3914
3919
|
setup(e) {
|
|
@@ -3930,7 +3935,7 @@ const Vo = { class: "app-main" }, qo = {
|
|
|
3930
3935
|
const Ho = { class: "main-container" }, Fo = 992, Go = {
|
|
3931
3936
|
__name: "index",
|
|
3932
3937
|
setup(e) {
|
|
3933
|
-
const t =
|
|
3938
|
+
const t = tt(), { body: l } = document, n = j(() => t.state.app.sidebar), o = j(() => t.state.app.device), a = j(() => t.state.settings.fixedHeader), s = j(() => ({
|
|
3934
3939
|
hideSidebar: !n.value.opened,
|
|
3935
3940
|
openSidebar: n.value.opened,
|
|
3936
3941
|
withoutAnimation: n.value.withoutAnimation,
|
|
@@ -3964,7 +3969,7 @@ const Ho = { class: "main-container" }, Fo = 992, Go = {
|
|
|
3964
3969
|
])
|
|
3965
3970
|
], 2));
|
|
3966
3971
|
}
|
|
3967
|
-
},
|
|
3972
|
+
}, ft = /* @__PURE__ */ $(Go, [["__scopeId", "data-v-957442cd"]]);
|
|
3968
3973
|
class Jo {
|
|
3969
3974
|
constructor() {
|
|
3970
3975
|
M(this, "type", "qrcode");
|
|
@@ -4099,7 +4104,7 @@ const Qo = { id: "login" }, Xo = /* @__PURE__ */ b("h1", { id: "title" }, "登
|
|
|
4099
4104
|
});
|
|
4100
4105
|
const sa = {
|
|
4101
4106
|
name: "NotFoundPage"
|
|
4102
|
-
},
|
|
4107
|
+
}, ht = (e) => (Ke("data-v-26068803"), e = e(), We(), e), ia = { class: "not-found" }, ra = /* @__PURE__ */ ht(() => /* @__PURE__ */ b("svg", {
|
|
4103
4108
|
width: "380px",
|
|
4104
4109
|
height: "500px",
|
|
4105
4110
|
viewBox: "0 0 837 1045",
|
|
@@ -4152,7 +4157,7 @@ const sa = {
|
|
|
4152
4157
|
"sketch:type": "MSShapeGroup"
|
|
4153
4158
|
})
|
|
4154
4159
|
])
|
|
4155
|
-
], -1)), ca = /* @__PURE__ */
|
|
4160
|
+
], -1)), ca = /* @__PURE__ */ ht(() => /* @__PURE__ */ b("div", { class: "message-box" }, [
|
|
4156
4161
|
/* @__PURE__ */ b("h1", null, "404"),
|
|
4157
4162
|
/* @__PURE__ */ b("p", null, "Page not found"),
|
|
4158
4163
|
/* @__PURE__ */ b("div", { class: "buttons-con" }, [
|
|
@@ -4173,7 +4178,7 @@ function pa(e, t, l, n, o, a) {
|
|
|
4173
4178
|
const da = /* @__PURE__ */ $(sa, [["render", pa], ["__scopeId", "data-v-26068803"]]), ma = [
|
|
4174
4179
|
{
|
|
4175
4180
|
path: "/",
|
|
4176
|
-
component:
|
|
4181
|
+
component: ft,
|
|
4177
4182
|
redirect: "/dashboard",
|
|
4178
4183
|
name: "Root",
|
|
4179
4184
|
meta: {
|
|
@@ -4204,21 +4209,21 @@ const da = /* @__PURE__ */ $(sa, [["render", pa], ["__scopeId", "data-v-26068803
|
|
|
4204
4209
|
history: sl(),
|
|
4205
4210
|
routes: ma
|
|
4206
4211
|
});
|
|
4207
|
-
|
|
4212
|
+
ke.configure({ showSpinner: !1 });
|
|
4208
4213
|
function fa(e) {
|
|
4209
4214
|
e.beforeEach((t, l, n) => {
|
|
4210
|
-
|
|
4215
|
+
ke.start(), t.preHash = location.hash.replace("#", ""), n();
|
|
4211
4216
|
}), e.afterEach((t) => {
|
|
4212
4217
|
t.matched.length > 0 && E.commit("user/updateState", {
|
|
4213
4218
|
key: "path",
|
|
4214
4219
|
value: t.matched[t.matched.length - 1].path.replace("(\\d+)", "")
|
|
4215
|
-
}),
|
|
4220
|
+
}), ke.done();
|
|
4216
4221
|
});
|
|
4217
4222
|
}
|
|
4218
4223
|
function ha() {
|
|
4219
4224
|
return E.state.user.isLodeRemoteRoutes;
|
|
4220
4225
|
}
|
|
4221
|
-
function
|
|
4226
|
+
function bt() {
|
|
4222
4227
|
return E.state.settings.whiteRoutes || [];
|
|
4223
4228
|
}
|
|
4224
4229
|
function ba() {
|
|
@@ -4227,7 +4232,7 @@ function ba() {
|
|
|
4227
4232
|
function _a(e) {
|
|
4228
4233
|
e.beforeEach(async (t, l, n) => {
|
|
4229
4234
|
var p, d;
|
|
4230
|
-
if (
|
|
4235
|
+
if (bt().indexOf(t.path) !== -1) {
|
|
4231
4236
|
n();
|
|
4232
4237
|
return;
|
|
4233
4238
|
}
|
|
@@ -4254,7 +4259,7 @@ const ya = {}, va = { class: "loading preloader" }, ga = /* @__PURE__ */ b("div"
|
|
|
4254
4259
|
function wa(e, t) {
|
|
4255
4260
|
return i(), h("div", va, ka);
|
|
4256
4261
|
}
|
|
4257
|
-
const
|
|
4262
|
+
const _t = /* @__PURE__ */ $(ya, [["render", wa]]), Sa = {
|
|
4258
4263
|
name: "VNotice",
|
|
4259
4264
|
props: {
|
|
4260
4265
|
dataApi: {
|
|
@@ -4284,7 +4289,7 @@ const yt = /* @__PURE__ */ $(ya, [["render", wa]]), Sa = {
|
|
|
4284
4289
|
}
|
|
4285
4290
|
};
|
|
4286
4291
|
function xa(e, t, l, n, o, a) {
|
|
4287
|
-
const s =
|
|
4292
|
+
const s = Be;
|
|
4288
4293
|
return i(), h("div", null, [
|
|
4289
4294
|
o.hasNotice ? (i(), f(s, {
|
|
4290
4295
|
key: 0,
|
|
@@ -4292,8 +4297,8 @@ function xa(e, t, l, n, o, a) {
|
|
|
4292
4297
|
}, null, 8, ["title"])) : x("", !0)
|
|
4293
4298
|
]);
|
|
4294
4299
|
}
|
|
4295
|
-
const
|
|
4296
|
-
components: { VLoading:
|
|
4300
|
+
const yt = /* @__PURE__ */ $(Sa, [["render", xa]]), Ea = q({
|
|
4301
|
+
components: { VLoading: _t, VNotice: yt },
|
|
4297
4302
|
props: {
|
|
4298
4303
|
schemaHandler: {
|
|
4299
4304
|
type: Function,
|
|
@@ -4328,7 +4333,7 @@ const vt = /* @__PURE__ */ $(Sa, [["render", xa]]), Ea = q({
|
|
|
4328
4333
|
beforeCreate() {
|
|
4329
4334
|
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
4335
|
this.$http.get(this.$props.schemaApi || l, n).then(({ data: o }) => {
|
|
4331
|
-
this.loading = !1, X(o) && (o.notice !== void 0 && (this.haveNotice = !0,
|
|
4336
|
+
this.loading = !1, X(o) && (o.notice !== void 0 && (this.haveNotice = !0, $e(o.notice) ? this.notice = {
|
|
4332
4337
|
title: o.notice
|
|
4333
4338
|
} : 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
4339
|
});
|
|
@@ -4336,7 +4341,7 @@ const vt = /* @__PURE__ */ $(Sa, [["render", xa]]), Ea = q({
|
|
|
4336
4341
|
});
|
|
4337
4342
|
const $a = ["innerHTML"];
|
|
4338
4343
|
function Ia(e, t, l, n, o, a) {
|
|
4339
|
-
const s =
|
|
4344
|
+
const s = Be, c = yt, p = _t;
|
|
4340
4345
|
return i(), h(S, null, [
|
|
4341
4346
|
e.owners.length > 0 ? (i(), f(s, {
|
|
4342
4347
|
key: 0,
|
|
@@ -4360,7 +4365,7 @@ function Ia(e, t, l, n, o, a) {
|
|
|
4360
4365
|
], 64))
|
|
4361
4366
|
], 64);
|
|
4362
4367
|
}
|
|
4363
|
-
const se = /* @__PURE__ */ $(Ea, [["render", Ia], ["__scopeId", "data-v-015774e8"]]),
|
|
4368
|
+
const se = /* @__PURE__ */ $(Ea, [["render", Ia], ["__scopeId", "data-v-015774e8"]]), vt = {
|
|
4364
4369
|
__name: "table",
|
|
4365
4370
|
setup(e) {
|
|
4366
4371
|
const t = (l, n) => {
|
|
@@ -4383,7 +4388,7 @@ const se = /* @__PURE__ */ $(Ea, [["render", Ia], ["__scopeId", "data-v-015774e8
|
|
|
4383
4388
|
_: 1
|
|
4384
4389
|
}));
|
|
4385
4390
|
}
|
|
4386
|
-
},
|
|
4391
|
+
}, xe = {
|
|
4387
4392
|
__name: "form",
|
|
4388
4393
|
setup(e) {
|
|
4389
4394
|
const t = pe(), l = (n, o) => {
|
|
@@ -4556,7 +4561,7 @@ const Ta = { class: "card-header" }, Oa = /* @__PURE__ */ b("span", null, "列
|
|
|
4556
4561
|
style: { color: "#E6A23C" }
|
|
4557
4562
|
}, Pa = { class: "card-header" };
|
|
4558
4563
|
function La(e, t, l, n, o, a) {
|
|
4559
|
-
const s = ue, c = Sl, p =
|
|
4564
|
+
const s = ue, c = Sl, p = Ae, d = de, m = v("v-form"), _ = ae;
|
|
4560
4565
|
return i(), f(_, {
|
|
4561
4566
|
class: "tree-box",
|
|
4562
4567
|
gutter: 20
|
|
@@ -4672,18 +4677,18 @@ function La(e, t, l, n, o, a) {
|
|
|
4672
4677
|
_: 1
|
|
4673
4678
|
});
|
|
4674
4679
|
}
|
|
4675
|
-
const
|
|
4680
|
+
const Fe = /* @__PURE__ */ $(Ca, [["render", La]]), Ma = {
|
|
4676
4681
|
__name: "tree",
|
|
4677
4682
|
setup(e) {
|
|
4678
4683
|
const t = (l, n) => {
|
|
4679
|
-
const o = Object.keys(
|
|
4684
|
+
const o = Object.keys(Fe.props);
|
|
4680
4685
|
return Object.keys(l).forEach((a) => {
|
|
4681
4686
|
o.indexOf(a) === -1 && delete l[a];
|
|
4682
4687
|
}), l;
|
|
4683
4688
|
};
|
|
4684
4689
|
return (l, n) => (i(), f(se, { "schema-handler": t }, {
|
|
4685
4690
|
default: r((o) => [
|
|
4686
|
-
u(
|
|
4691
|
+
u(Fe, W(Y(o)), null, 16)
|
|
4687
4692
|
]),
|
|
4688
4693
|
_: 1
|
|
4689
4694
|
}));
|
|
@@ -4732,7 +4737,7 @@ function ja(e, t, l) {
|
|
|
4732
4737
|
if (l.length === 0)
|
|
4733
4738
|
return {};
|
|
4734
4739
|
let n = A({}, Da);
|
|
4735
|
-
if (n.title.text = e,
|
|
4740
|
+
if (n.title.text = e, $e(t)) {
|
|
4736
4741
|
const o = [], a = Object.keys(l[0]);
|
|
4737
4742
|
let s = a[0], c = a.filter((d, m) => m > 0), p = t;
|
|
4738
4743
|
if (t.indexOf(":") > -1) {
|
|
@@ -4784,7 +4789,7 @@ const Fa = /* @__PURE__ */ $(Na, [["render", Ha], ["__scopeId", "data-v-cc0d8293
|
|
|
4784
4789
|
components: {
|
|
4785
4790
|
Chart: El,
|
|
4786
4791
|
Md: Ol,
|
|
4787
|
-
Json:
|
|
4792
|
+
Json: Pe,
|
|
4788
4793
|
Table: oe,
|
|
4789
4794
|
Number: Fa,
|
|
4790
4795
|
Html: ""
|
|
@@ -4814,7 +4819,7 @@ const Fa = /* @__PURE__ */ $(Na, [["render", Ha], ["__scopeId", "data-v-cc0d8293
|
|
|
4814
4819
|
source: n.data
|
|
4815
4820
|
};
|
|
4816
4821
|
if (o === "table") {
|
|
4817
|
-
if (!
|
|
4822
|
+
if (!Xe(n.data))
|
|
4818
4823
|
return { showPagination: !1 };
|
|
4819
4824
|
const a = [];
|
|
4820
4825
|
return n.data[0] && Object.keys(n.data[0]).forEach((s, c) => {
|
|
@@ -4832,13 +4837,13 @@ const Fa = /* @__PURE__ */ $(Na, [["render", Ha], ["__scopeId", "data-v-cc0d8293
|
|
|
4832
4837
|
}
|
|
4833
4838
|
};
|
|
4834
4839
|
function Ja(e, t, l, n, o, a) {
|
|
4835
|
-
const s =
|
|
4840
|
+
const s = Ae, c = At("resize");
|
|
4836
4841
|
return ie((i(), f(s, {
|
|
4837
4842
|
shadow: "never",
|
|
4838
4843
|
class: "part"
|
|
4839
4844
|
}, {
|
|
4840
4845
|
default: r(() => [
|
|
4841
|
-
(i(), f(
|
|
4846
|
+
(i(), f(Ze(n.comptype()), W(Y(n.compprops(l.option))), null, 16))
|
|
4842
4847
|
]),
|
|
4843
4848
|
_: 1
|
|
4844
4849
|
})), [
|
|
@@ -4859,10 +4864,10 @@ const za = /* @__PURE__ */ $(Ga, [["render", Ja], ["__scopeId", "data-v-a5a65cc1
|
|
|
4859
4864
|
},
|
|
4860
4865
|
setup(e) {
|
|
4861
4866
|
const t = e, l = useRoute();
|
|
4862
|
-
|
|
4867
|
+
Rt(() => {
|
|
4863
4868
|
});
|
|
4864
4869
|
const n = L({});
|
|
4865
|
-
|
|
4870
|
+
ze(() => {
|
|
4866
4871
|
var m;
|
|
4867
4872
|
(m = t.filter) == null || m.forEach((_) => {
|
|
4868
4873
|
_.default !== null && (n.value[_.field] = _.default);
|
|
@@ -4891,7 +4896,7 @@ const za = /* @__PURE__ */ $(Ga, [["render", Ja], ["__scopeId", "data-v-a5a65cc1
|
|
|
4891
4896
|
});
|
|
4892
4897
|
};
|
|
4893
4898
|
return (m, _) => {
|
|
4894
|
-
const T =
|
|
4899
|
+
const T = Ae, w = de, F = Be, U = ae;
|
|
4895
4900
|
return i(), f(U, null, {
|
|
4896
4901
|
default: r(() => [
|
|
4897
4902
|
k(s).length > 0 ? (i(), f(w, {
|
|
@@ -4906,7 +4911,7 @@ const za = /* @__PURE__ */ $(Ga, [["render", Ja], ["__scopeId", "data-v-a5a65cc1
|
|
|
4906
4911
|
default: r(() => [
|
|
4907
4912
|
u(k(J), {
|
|
4908
4913
|
modelValue: k(n),
|
|
4909
|
-
"onUpdate:modelValue": _[0] || (_[0] = (C) =>
|
|
4914
|
+
"onUpdate:modelValue": _[0] || (_[0] = (C) => Pt(n) ? n.value = C : null),
|
|
4910
4915
|
"form-items": k(s),
|
|
4911
4916
|
options: o,
|
|
4912
4917
|
onSubmit: d
|
|
@@ -5013,9 +5018,9 @@ function Ya(e) {
|
|
|
5013
5018
|
type: l[a],
|
|
5014
5019
|
children: [o]
|
|
5015
5020
|
};
|
|
5016
|
-
return o.span = n,
|
|
5021
|
+
return o.span = n, je([o]);
|
|
5017
5022
|
}
|
|
5018
|
-
function
|
|
5023
|
+
function je(e) {
|
|
5019
5024
|
const t = {
|
|
5020
5025
|
type: "row",
|
|
5021
5026
|
props: {
|
|
@@ -5049,27 +5054,27 @@ function Ne(e) {
|
|
|
5049
5054
|
n = A({
|
|
5050
5055
|
props: {}
|
|
5051
5056
|
}, Xa[n.type] || {}, n);
|
|
5052
|
-
const a =
|
|
5053
|
-
a.length && (n.children =
|
|
5057
|
+
const a = gt(n.children);
|
|
5058
|
+
a.length && (n.children = je(a)), t.children.push({
|
|
5054
5059
|
type: "col",
|
|
5055
5060
|
props: o,
|
|
5056
5061
|
children: [n]
|
|
5057
5062
|
});
|
|
5058
5063
|
}), [t];
|
|
5059
5064
|
}
|
|
5060
|
-
function
|
|
5061
|
-
return
|
|
5065
|
+
function gt(e) {
|
|
5066
|
+
return Xe(e) ? e : X(e) ? [e] : [];
|
|
5062
5067
|
}
|
|
5063
|
-
let
|
|
5064
|
-
const
|
|
5065
|
-
const t = Qa[e.type] ||
|
|
5066
|
-
return
|
|
5067
|
-
default: () =>
|
|
5068
|
+
let Ee = {};
|
|
5069
|
+
const kt = (e) => {
|
|
5070
|
+
const t = Qa[e.type] || Ee[e.type] || e.type;
|
|
5071
|
+
return Mt(t, e.props, {
|
|
5072
|
+
default: () => gt(e.children).map((l) => kt(l))
|
|
5068
5073
|
});
|
|
5069
|
-
}, es = (e) => (Object.keys(
|
|
5074
|
+
}, es = (e) => (Object.keys(Ee).length === 0 && (Ee = Lt().appContext.components), je(Object.values(e.schema)).map((l) => kt(l))), ts = {
|
|
5070
5075
|
__name: "custom",
|
|
5071
5076
|
setup(e) {
|
|
5072
|
-
const t = L([]), l = (n, o) => (t.value =
|
|
5077
|
+
const t = L([]), l = (n, o) => (t.value = Dt(n), n);
|
|
5073
5078
|
return (n, o) => (i(), f(se, { "schema-handler": l }, {
|
|
5074
5079
|
default: r(() => [
|
|
5075
5080
|
u(k(es), { schema: k(t) }, null, 8, ["schema"])
|
|
@@ -5091,9 +5096,9 @@ const ls = (e) => {
|
|
|
5091
5096
|
return ge;
|
|
5092
5097
|
switch (e.page_type) {
|
|
5093
5098
|
case D.list:
|
|
5094
|
-
return
|
|
5099
|
+
return vt;
|
|
5095
5100
|
case D.form:
|
|
5096
|
-
return
|
|
5101
|
+
return xe;
|
|
5097
5102
|
case D.custom:
|
|
5098
5103
|
case D.localComp:
|
|
5099
5104
|
return t(e.view || "");
|
|
@@ -5113,7 +5118,7 @@ function ns(e) {
|
|
|
5113
5118
|
function os(e) {
|
|
5114
5119
|
return (e.path + e.name).split("/").filter((t) => t).join("_");
|
|
5115
5120
|
}
|
|
5116
|
-
const
|
|
5121
|
+
const wt = (e) => {
|
|
5117
5122
|
const t = e.type !== P.page, l = {
|
|
5118
5123
|
path: ns(e),
|
|
5119
5124
|
name: e.id + "_" + os(e) + "_" + e.path.replaceAll("/", "_"),
|
|
@@ -5128,13 +5133,13 @@ const St = (e) => {
|
|
|
5128
5133
|
menuType: e.type,
|
|
5129
5134
|
keepAlive: !1
|
|
5130
5135
|
},
|
|
5131
|
-
children: e.children ? e.children.map((n) =>
|
|
5136
|
+
children: e.children ? e.children.map((n) => wt(n)) : []
|
|
5132
5137
|
};
|
|
5133
5138
|
if (e.page_type === D.entity) {
|
|
5134
5139
|
const n = e.path + "/list", o = e.path + "/form", a = e.path + "/:id", s = [{
|
|
5135
5140
|
path: n,
|
|
5136
5141
|
name: e.name + "列表" + e.id,
|
|
5137
|
-
component:
|
|
5142
|
+
component: vt,
|
|
5138
5143
|
meta: {
|
|
5139
5144
|
id: e.id + 99999,
|
|
5140
5145
|
title: "列表",
|
|
@@ -5147,7 +5152,7 @@ const St = (e) => {
|
|
|
5147
5152
|
}, {
|
|
5148
5153
|
path: o,
|
|
5149
5154
|
name: e.name + "新建" + e.id,
|
|
5150
|
-
component:
|
|
5155
|
+
component: xe,
|
|
5151
5156
|
meta: {
|
|
5152
5157
|
id: e.id + 99999 + 1,
|
|
5153
5158
|
title: "新建",
|
|
@@ -5160,7 +5165,7 @@ const St = (e) => {
|
|
|
5160
5165
|
}, {
|
|
5161
5166
|
path: a,
|
|
5162
5167
|
name: e.name + "编辑" + e.id,
|
|
5163
|
-
component:
|
|
5168
|
+
component: xe,
|
|
5164
5169
|
meta: {
|
|
5165
5170
|
id: e.id + 99999 + 2,
|
|
5166
5171
|
title: "编辑",
|
|
@@ -5198,13 +5203,13 @@ const St = (e) => {
|
|
|
5198
5203
|
routes: []
|
|
5199
5204
|
};
|
|
5200
5205
|
l.routes.forEach((o) => {
|
|
5201
|
-
n.routes.push(
|
|
5206
|
+
n.routes.push(wt(o));
|
|
5202
5207
|
}), t.push(n);
|
|
5203
5208
|
}), t;
|
|
5204
5209
|
};
|
|
5205
5210
|
function ss(e) {
|
|
5206
5211
|
e.beforeEach(async (t, l, n) => {
|
|
5207
|
-
if (
|
|
5212
|
+
if (bt().indexOf(t.path) !== -1) {
|
|
5208
5213
|
n();
|
|
5209
5214
|
return;
|
|
5210
5215
|
}
|
|
@@ -5218,7 +5223,7 @@ function ss(e) {
|
|
|
5218
5223
|
s.routes.forEach((c) => {
|
|
5219
5224
|
e.addRoute({
|
|
5220
5225
|
path: "/",
|
|
5221
|
-
component:
|
|
5226
|
+
component: ft,
|
|
5222
5227
|
children: [c]
|
|
5223
5228
|
});
|
|
5224
5229
|
});
|
|
@@ -5245,7 +5250,7 @@ rs(z);
|
|
|
5245
5250
|
function cs() {
|
|
5246
5251
|
return E.state.user.token;
|
|
5247
5252
|
}
|
|
5248
|
-
function
|
|
5253
|
+
function Ge(e) {
|
|
5249
5254
|
Xl({
|
|
5250
5255
|
message: e,
|
|
5251
5256
|
type: "error",
|
|
@@ -5266,24 +5271,24 @@ const us = {
|
|
|
5266
5271
|
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
5272
|
const m = e.data.message || `接口请求错误 ${e.config.method}::${(a = e.config.url) == null ? void 0 : a.split("?")[0]}`;
|
|
5268
5273
|
if (e.data.code === 401) {
|
|
5269
|
-
|
|
5274
|
+
Ue.alert("登录信息已过期或未登录, 是否跳转登录", "操作提醒", {
|
|
5270
5275
|
showClose: !1,
|
|
5271
5276
|
confirmButtonText: "重新登录",
|
|
5272
5277
|
showCancelButton: !0,
|
|
5273
5278
|
cancelButtonText: "取消",
|
|
5274
5279
|
callback: (_) => {
|
|
5275
|
-
_ === "confirm" && (
|
|
5280
|
+
_ === "confirm" && (ct(), location.href = location.origin + location.pathname + location.hash.replace("#", "#/?redirect="), location.reload());
|
|
5276
5281
|
}
|
|
5277
5282
|
});
|
|
5278
5283
|
return;
|
|
5279
5284
|
} else
|
|
5280
|
-
|
|
5285
|
+
Ge(m);
|
|
5281
5286
|
return Promise.reject(m);
|
|
5282
5287
|
}
|
|
5283
5288
|
let l = (c = (s = e.data) == null ? void 0 : s.data) == null ? void 0 : c._message_box;
|
|
5284
|
-
return l !== void 0 && (
|
|
5289
|
+
return l !== void 0 && ($e(l) && (l = {
|
|
5285
5290
|
message: (d = (p = e.data) == null ? void 0 : p.data) == null ? void 0 : d._message_box
|
|
5286
|
-
}),
|
|
5291
|
+
}), Ue({
|
|
5287
5292
|
title: "提示",
|
|
5288
5293
|
type: "success",
|
|
5289
5294
|
grouping: !0,
|
|
@@ -5292,7 +5297,7 @@ const us = {
|
|
|
5292
5297
|
},
|
|
5293
5298
|
onRejected(e) {
|
|
5294
5299
|
var t;
|
|
5295
|
-
return
|
|
5300
|
+
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
5301
|
}
|
|
5297
5302
|
}, ds = [
|
|
5298
5303
|
{
|
|
@@ -5304,8 +5309,8 @@ const us = {
|
|
|
5304
5309
|
response: ps
|
|
5305
5310
|
}
|
|
5306
5311
|
];
|
|
5307
|
-
function
|
|
5308
|
-
const t = me.axios || {}, l = A(t, e || {}), n =
|
|
5312
|
+
function Ne(e = {}) {
|
|
5313
|
+
const t = me.axios || {}, l = A(t, e || {}), n = Ie.create({
|
|
5309
5314
|
...l
|
|
5310
5315
|
// adapter: (c) => cacheAdapter(c, defaultAxios)
|
|
5311
5316
|
});
|
|
@@ -5313,7 +5318,7 @@ function Ve(e = {}) {
|
|
|
5313
5318
|
n.interceptors.request.use(o.request.onFulfilled, o.request.onRejected), n.interceptors.response.use(o.response.onFulfilled, o.response.onRejected);
|
|
5314
5319
|
}), n;
|
|
5315
5320
|
}
|
|
5316
|
-
const ms =
|
|
5321
|
+
const ms = Ne();
|
|
5317
5322
|
const fs = {
|
|
5318
5323
|
beforeMount(e, t) {
|
|
5319
5324
|
e.clickOutsideEvent = function(l) {
|
|
@@ -5333,7 +5338,7 @@ const fs = {
|
|
|
5333
5338
|
mounted(e) {
|
|
5334
5339
|
}
|
|
5335
5340
|
};
|
|
5336
|
-
function
|
|
5341
|
+
function Je(e, t) {
|
|
5337
5342
|
let l = e[`offset${t}`], n = e.offsetParent;
|
|
5338
5343
|
for (; n; )
|
|
5339
5344
|
l += n[`offset${t}`], n = n.offsetParent;
|
|
@@ -5350,7 +5355,7 @@ const _s = {
|
|
|
5350
5355
|
l.classList.add("devtool-hover");
|
|
5351
5356
|
const n = document.createElement("i");
|
|
5352
5357
|
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 =
|
|
5358
|
+
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
5359
|
};
|
|
5355
5360
|
const o = document.createElement("span");
|
|
5356
5361
|
o.className = "dev-action-edit", o.title = "编辑";
|
|
@@ -5374,14 +5379,14 @@ const _s = {
|
|
|
5374
5379
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5375
5380
|
let ce;
|
|
5376
5381
|
function Ei(e) {
|
|
5377
|
-
return e ?
|
|
5382
|
+
return e ? Ne(A(me.axios, e)) : ce;
|
|
5378
5383
|
}
|
|
5379
5384
|
function $i(e) {
|
|
5380
|
-
const t = A(me, e), l =
|
|
5385
|
+
const t = A(me, e), l = jt(Al), n = Es(t), o = t.plugins || [];
|
|
5381
5386
|
o.unshift(n), o.forEach((a) => {
|
|
5382
5387
|
xs(l, a);
|
|
5383
|
-
}), t != null && t.mock && Ul(), ce =
|
|
5384
|
-
"X-Token":
|
|
5388
|
+
}), 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(() => ({
|
|
5389
|
+
"X-Token": Me()
|
|
5385
5390
|
})), z.isReady().then(() => l.mount("#app"));
|
|
5386
5391
|
}
|
|
5387
5392
|
function vs(e, t = {}) {
|
|
@@ -5415,7 +5420,7 @@ function Ss(e = {}) {
|
|
|
5415
5420
|
});
|
|
5416
5421
|
}
|
|
5417
5422
|
function xs(e, t) {
|
|
5418
|
-
vs(e, t.components || {}), gs(t.routes || []), ks(e, t.use || []), ws(e, t.directives || {}), Ss(t.storeModules || {}),
|
|
5423
|
+
vs(e, t.components || {}), gs(t.routes || []), ks(e, t.use || []), ws(e, t.directives || {}), Ss(t.storeModules || {}), it(t.mockApis || []);
|
|
5419
5424
|
}
|
|
5420
5425
|
function Es(e) {
|
|
5421
5426
|
var t;
|
|
@@ -5425,7 +5430,7 @@ function Es(e) {
|
|
|
5425
5430
|
use: [
|
|
5426
5431
|
E,
|
|
5427
5432
|
z,
|
|
5428
|
-
[Qt, { locale:
|
|
5433
|
+
[Qt, { locale: et, ...(t = e.settings) == null ? void 0 : t.ElementPlus }]
|
|
5429
5434
|
]
|
|
5430
5435
|
};
|
|
5431
5436
|
}
|
|
@@ -5433,17 +5438,17 @@ export {
|
|
|
5433
5438
|
Jo as BaseSso,
|
|
5434
5439
|
ge as Container,
|
|
5435
5440
|
zo as DingTalk,
|
|
5436
|
-
|
|
5441
|
+
ft as Layout,
|
|
5437
5442
|
P as MenuType,
|
|
5438
5443
|
Xl as Message,
|
|
5439
|
-
|
|
5444
|
+
Ue as MessageBox,
|
|
5440
5445
|
D as PageType,
|
|
5441
5446
|
Wo as allSso,
|
|
5442
5447
|
$i as createAdmin,
|
|
5443
5448
|
K as eventBus,
|
|
5444
5449
|
ln as getCmp,
|
|
5445
5450
|
ce as http,
|
|
5446
|
-
|
|
5451
|
+
Ne as instance,
|
|
5447
5452
|
xi as regViews,
|
|
5448
5453
|
Si as setCmp,
|
|
5449
5454
|
as as transRemoteModules,
|