@okiss/oms 0.0.35 → 0.0.36
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 +422 -420
- package/dist/index.es.js.map +1 -1
- package/dist/types/components/notice/VNotice.vue.d.ts +10 -3
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
var xt = Object.defineProperty;
|
|
2
2
|
var Bt = (e, t, l) => t in e ? xt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l;
|
|
3
3
|
var R = (e, t, l) => (Bt(e, typeof t != "symbol" ? t + "" : t, l), l);
|
|
4
|
-
import { defineComponent as V, onBeforeMount as
|
|
5
|
-
import { addNewStyle as Nt, addNewStyleTag as Vt, queryParams as qt, logGroup as Ut, isString as Ce, compactObject as
|
|
4
|
+
import { defineComponent as V, onBeforeMount as ze, provide as It, resolveComponent as v, openBlock as i, createBlock as m, createVNode as c, computed as N, createTextVNode as g, withCtx as r, TransitionGroup as At, createElementBlock as h, Fragment as k, renderList as A, toDisplayString as I, normalizeClass as H, renderSlot as te, mergeProps as G, createCommentVNode as E, toRefs as $t, ref as P, normalizeStyle as Tt, createElementVNode as b, Transition as Ft, pushScopeId as Ke, popScopeId as We, resolveDynamicComponent as Ze, normalizeProps as K, guardReactiveProps as X, unref as w, withDirectives as ve, vModelText as je, resolveDirective as Ot, onMounted as Dt, isRef as Pt, getCurrentInstance as Rt, h as Lt, toRaw as Mt, createApp as jt } from "vue";
|
|
5
|
+
import { addNewStyle as Nt, addNewStyleTag as Vt, queryParams as qt, logGroup as Ut, isString as Ce, compactObject as Qe, showEleByClassName as Xe, waterMarker as Ht, Cache as fe, isExternal as Ne, getQueryParam as Gt, createIFrame as Jt, strVarReplace as Z, obj2Param as zt, isObject as Q, effectDataTrans as Kt, isArray as Ye } from "@okiss/utils";
|
|
6
6
|
import he from "mockjs";
|
|
7
|
-
import Wt, { cloneDeep as y, merge as F, get as le, unset as
|
|
8
|
-
import
|
|
7
|
+
import Wt, { cloneDeep as y, merge as F, get as le, unset as et } from "lodash";
|
|
8
|
+
import tt from "element-plus/lib/locale/lang/zh-cn";
|
|
9
9
|
import xe from "axios";
|
|
10
10
|
import M from "js-cookie";
|
|
11
|
-
import { createStore as Zt, useStore as
|
|
11
|
+
import { createStore as Zt, useStore as lt, mapGetters as Be } 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
|
-
import { VForm as J, VBtn as
|
|
15
|
+
import { VForm as J, VBtn as Ie, JsonView as Ae, VTable as ne, VChart as nl, setUploadHeaderHandle as ol, VIcon as sl } from "@okiss/vbtf";
|
|
16
16
|
import "normalize.css/normalize.css";
|
|
17
17
|
import "@okiss/vbtf/style.css";
|
|
18
18
|
import { useRoute as ce, onBeforeRouteLeave as al, useRouter as il, createRouter as rl, createWebHashHistory as ul, onBeforeRouteUpdate as cl } from "vue-router";
|
|
19
|
-
import { ElBreadcrumbItem as pl, ElBreadcrumb as dl, ElRow as se, ElMain as ml, ElAside as fl, ElContainer as hl, ElDivider as
|
|
19
|
+
import { ElBreadcrumbItem as pl, ElBreadcrumb as dl, ElRow as se, ElMain as ml, ElAside as fl, ElContainer as hl, ElDivider as nt, ElButton as ue, ElOption as $e, ElSelect as Te, ElFormItem as ot, ElForm as st, ElCol as pe, ElDrawer as at, ElDropdownItem as bl, ElDropdownMenu as _l, ElDropdown as yl, ElMenuItem as vl, ElSubMenu as gl, ElOptionGroup as kl, ElMenu as El, ElScrollbar as wl, ElBacktop as Sl, ElMessage as Cl, ElAlert as Fe, ElTree as xl, ElCard as Oe } from "element-plus/es";
|
|
20
20
|
import "element-plus/es/components/row/style/css";
|
|
21
21
|
import "element-plus/es/components/drawer/style/css";
|
|
22
22
|
import "element-plus/es/components/dropdown/style/css";
|
|
@@ -25,7 +25,7 @@ import "element-plus/es/components/dropdown-item/style/css";
|
|
|
25
25
|
import "element-plus/es/components/col/style/css";
|
|
26
26
|
import "element-plus/es/components/breadcrumb/style/css";
|
|
27
27
|
import "element-plus/es/components/breadcrumb-item/style/css";
|
|
28
|
-
import * as
|
|
28
|
+
import * as Bl from "path-to-regexp";
|
|
29
29
|
import "element-plus/es/components/form/style/css";
|
|
30
30
|
import "element-plus/es/components/form-item/style/css";
|
|
31
31
|
import "element-plus/es/components/select/style/css";
|
|
@@ -42,12 +42,11 @@ import "element-plus/es/components/sub-menu/style/css";
|
|
|
42
42
|
import "element-plus/es/components/menu-item/style/css";
|
|
43
43
|
import "element-plus/es/components/option-group/style/css";
|
|
44
44
|
import "element-plus/es/components/backtop/style/css";
|
|
45
|
-
import { useEventListener as
|
|
46
|
-
import "element-plus/es/components/alter/style/css";
|
|
45
|
+
import { useEventListener as Al } from "@vueuse/core";
|
|
47
46
|
import "element-plus/es/components/alert/style/css";
|
|
48
47
|
import "element-plus/es/components/card/style/css";
|
|
49
48
|
import "element-plus/es/components/tree/style/css";
|
|
50
|
-
import
|
|
49
|
+
import $l from "vue3-markdown-it";
|
|
51
50
|
import "element-plus/es/components/message/style/css";
|
|
52
51
|
import ge from "nprogress";
|
|
53
52
|
import "nprogress/nprogress.css";
|
|
@@ -57,11 +56,11 @@ String.prototype.format || (String.prototype.format = function() {
|
|
|
57
56
|
return typeof e[l] < "u" ? e[l] : t;
|
|
58
57
|
});
|
|
59
58
|
});
|
|
60
|
-
const
|
|
59
|
+
const Tl = /* @__PURE__ */ V({
|
|
61
60
|
__name: "App",
|
|
62
61
|
setup(e) {
|
|
63
62
|
var t, l, n, o;
|
|
64
|
-
return
|
|
63
|
+
return ze(() => {
|
|
65
64
|
const s = document.getElementById("preloader");
|
|
66
65
|
s !== null && (document.body.removeChild(s), Nt("test-icon", "//at.alicdn.com/t/font_2246548_zclaqxwmzq8.css"), Vt(`.iconfont {
|
|
67
66
|
font-size: 19px;
|
|
@@ -69,14 +68,14 @@ const Fl = /* @__PURE__ */ V({
|
|
|
69
68
|
-webkit-font-smoothing: antialiased;
|
|
70
69
|
font-family: iconfont !important;
|
|
71
70
|
}`));
|
|
72
|
-
}), (l = (t = window == null ? void 0 : window.OmsOptions) == null ? void 0 : t.form) != null && l.vsPath &&
|
|
71
|
+
}), (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), (s, a) => {
|
|
73
72
|
const u = v("router-view");
|
|
74
73
|
return i(), m(u);
|
|
75
74
|
};
|
|
76
75
|
}
|
|
77
76
|
});
|
|
78
77
|
var Y = /* @__PURE__ */ ((e) => (e.GET = "get", e.POST = "post", e.DELETE = "delete", e.FETCH = "fetch", e.OPTION = "option", e.PUT = "put", e))(Y || {});
|
|
79
|
-
const
|
|
78
|
+
const Fl = {
|
|
80
79
|
saveApi: "/save",
|
|
81
80
|
afterSubmit: "",
|
|
82
81
|
afterReset: "goback",
|
|
@@ -408,7 +407,7 @@ const Ol = {
|
|
|
408
407
|
info: "\u5728\u901A\u7528\u8868\u5355\u63A7\u4EF6\u65E0\u6CD5\u6EE1\u8DB3\u9700\u6C42\u65F6, \u53EF\u4EE5\u7F16\u5199 `template` \u6A21\u677F\u7EC4\u4EF6"
|
|
409
408
|
}
|
|
410
409
|
]
|
|
411
|
-
},
|
|
410
|
+
}, Ve = [
|
|
412
411
|
{
|
|
413
412
|
type: "jump",
|
|
414
413
|
text: "\u8DF3\u8F6C",
|
|
@@ -463,7 +462,7 @@ const Ol = {
|
|
|
463
462
|
type: "success"
|
|
464
463
|
}
|
|
465
464
|
}
|
|
466
|
-
],
|
|
465
|
+
], Ol = {
|
|
467
466
|
exportAble: !0,
|
|
468
467
|
filter: [
|
|
469
468
|
{
|
|
@@ -529,7 +528,7 @@ const Ol = {
|
|
|
529
528
|
label: "\u4FE1\u606F"
|
|
530
529
|
}
|
|
531
530
|
],
|
|
532
|
-
batchButton:
|
|
531
|
+
batchButton: Ve,
|
|
533
532
|
rowButton: [
|
|
534
533
|
{
|
|
535
534
|
type: "jump",
|
|
@@ -560,7 +559,7 @@ const Ol = {
|
|
|
560
559
|
}
|
|
561
560
|
],
|
|
562
561
|
normalButton: [
|
|
563
|
-
...Wt.cloneDeep(
|
|
562
|
+
...Wt.cloneDeep(Ve),
|
|
564
563
|
{
|
|
565
564
|
type: "jump",
|
|
566
565
|
target: "/user/form",
|
|
@@ -572,7 +571,7 @@ const Ol = {
|
|
|
572
571
|
],
|
|
573
572
|
selectedNotice: "\u5F53\u524D\u5171\u52FE\u9009: {selectedCount} \u6761",
|
|
574
573
|
listApi: "/user/list"
|
|
575
|
-
},
|
|
574
|
+
}, Dl = {
|
|
576
575
|
code: 0,
|
|
577
576
|
data: {
|
|
578
577
|
"list|0-100": [
|
|
@@ -593,7 +592,7 @@ const Ol = {
|
|
|
593
592
|
"page|1-5": 2
|
|
594
593
|
}
|
|
595
594
|
}
|
|
596
|
-
},
|
|
595
|
+
}, Pl = {
|
|
597
596
|
afterSubmit: "",
|
|
598
597
|
afterReset: "goback",
|
|
599
598
|
formItems: [
|
|
@@ -630,7 +629,7 @@ const Ol = {
|
|
|
630
629
|
label: "span"
|
|
631
630
|
}
|
|
632
631
|
]
|
|
633
|
-
},
|
|
632
|
+
}, Rl = {
|
|
634
633
|
afterSubmit: "",
|
|
635
634
|
afterReset: "",
|
|
636
635
|
formItems: [
|
|
@@ -669,7 +668,7 @@ const Ol = {
|
|
|
669
668
|
label: "span"
|
|
670
669
|
}
|
|
671
670
|
]
|
|
672
|
-
},
|
|
671
|
+
}, Ll = { form: Fl, table: Ol, listMock: Dl, layoutForm: Pl, layoutSection: Rl }, Ml = [
|
|
673
672
|
{
|
|
674
673
|
method: Y.POST,
|
|
675
674
|
url: "/login",
|
|
@@ -713,11 +712,11 @@ const Ol = {
|
|
|
713
712
|
{
|
|
714
713
|
url: "/user/list",
|
|
715
714
|
method: Y.GET,
|
|
716
|
-
response: (e) =>
|
|
715
|
+
response: (e) => Ll.listMock
|
|
717
716
|
}
|
|
718
|
-
],
|
|
719
|
-
...
|
|
720
|
-
],
|
|
717
|
+
], jl = [
|
|
718
|
+
...Ml
|
|
719
|
+
], Nl = {
|
|
721
720
|
baseURL: "/api",
|
|
722
721
|
withCredentials: !0,
|
|
723
722
|
timeout: 5e3,
|
|
@@ -736,7 +735,7 @@ const Ol = {
|
|
|
736
735
|
ElementPlus: {
|
|
737
736
|
size: "default",
|
|
738
737
|
zIndex: 3e3,
|
|
739
|
-
locale:
|
|
738
|
+
locale: tt
|
|
740
739
|
},
|
|
741
740
|
nav: [],
|
|
742
741
|
whiteRoutes: ["/login"],
|
|
@@ -748,7 +747,7 @@ const Ol = {
|
|
|
748
747
|
},
|
|
749
748
|
serviceOffLineNotice: "\u5F53\u524D\u9875\u9762\u529F\u80FD\u6B63\u5728\u7EF4\u62A4, \u8BF7\u7A0D\u540E\u518D\u8BD5~~~"
|
|
750
749
|
}, de = {
|
|
751
|
-
axios:
|
|
750
|
+
axios: Nl,
|
|
752
751
|
settings: it,
|
|
753
752
|
plugins: [],
|
|
754
753
|
mock: !1
|
|
@@ -759,13 +758,13 @@ function rt(e) {
|
|
|
759
758
|
ke[`${t.method}::${l}`] = t;
|
|
760
759
|
});
|
|
761
760
|
}
|
|
762
|
-
rt(
|
|
761
|
+
rt(jl);
|
|
763
762
|
function ut(e) {
|
|
764
763
|
var n;
|
|
765
764
|
let t = e.url, l = e.baseURL || ((n = de.axios) == null ? void 0 : n.baseURL);
|
|
766
765
|
return l || (l = ""), typeof t == "string" ? (t = ("/" + l + t).split("/").filter((o) => o).join("/"), t += "(|\\?.*)$", new RegExp(t)) : t;
|
|
767
766
|
}
|
|
768
|
-
function
|
|
767
|
+
function Vl() {
|
|
769
768
|
Object.keys(ke).forEach((e) => {
|
|
770
769
|
const t = ke[e], l = ut(t);
|
|
771
770
|
he.mock(l, t.method, function(n) {
|
|
@@ -774,22 +773,22 @@ function ql() {
|
|
|
774
773
|
});
|
|
775
774
|
}), console.log("%c ApiMock is stared! ", "background: #606060; color: #fff; padding: 4px 5px; border-radius: 1px;");
|
|
776
775
|
}
|
|
777
|
-
const
|
|
778
|
-
function
|
|
779
|
-
return M.get(
|
|
776
|
+
const De = "oms:token";
|
|
777
|
+
function Pe() {
|
|
778
|
+
return M.get(De) || "";
|
|
780
779
|
}
|
|
781
|
-
function
|
|
780
|
+
function ql(e) {
|
|
782
781
|
const t = new Date(new Date().getTime() + (S.state.settings.tokenExpire || 864e5));
|
|
783
|
-
return M.set(
|
|
782
|
+
return M.set(De, e, { expires: t });
|
|
784
783
|
}
|
|
785
784
|
function ct() {
|
|
786
|
-
return M.remove(
|
|
785
|
+
return M.remove(De);
|
|
787
786
|
}
|
|
788
|
-
const
|
|
787
|
+
const Ul = {
|
|
789
788
|
name: "",
|
|
790
789
|
nickname: "",
|
|
791
790
|
avatar: "",
|
|
792
|
-
token:
|
|
791
|
+
token: Pe(),
|
|
793
792
|
customRouter: [],
|
|
794
793
|
remoteRouter: [],
|
|
795
794
|
menuRoutes: [],
|
|
@@ -798,12 +797,12 @@ const Hl = {
|
|
|
798
797
|
roleIds: [],
|
|
799
798
|
path: "",
|
|
800
799
|
env: ""
|
|
801
|
-
},
|
|
800
|
+
}, Hl = {
|
|
802
801
|
namespaced: !0,
|
|
803
|
-
state:
|
|
802
|
+
state: Ul,
|
|
804
803
|
mutations: {
|
|
805
804
|
updateToken(e, t) {
|
|
806
|
-
e.token = t,
|
|
805
|
+
e.token = t, ql(t);
|
|
807
806
|
},
|
|
808
807
|
removeToken(e) {
|
|
809
808
|
e.token = "", ct();
|
|
@@ -822,7 +821,7 @@ const Hl = {
|
|
|
822
821
|
name: "",
|
|
823
822
|
nickname: "",
|
|
824
823
|
avatar: "",
|
|
825
|
-
token:
|
|
824
|
+
token: Pe(),
|
|
826
825
|
customRouter: [],
|
|
827
826
|
remoteRouter: [],
|
|
828
827
|
menuRoutes: [],
|
|
@@ -888,9 +887,9 @@ const Hl = {
|
|
|
888
887
|
});
|
|
889
888
|
}
|
|
890
889
|
}
|
|
891
|
-
},
|
|
890
|
+
}, Gl = y(it), Jl = {
|
|
892
891
|
namespaced: !0,
|
|
893
|
-
state:
|
|
892
|
+
state: Gl,
|
|
894
893
|
mutations: {
|
|
895
894
|
updateSettings(e, t) {
|
|
896
895
|
e = F(e, t);
|
|
@@ -901,7 +900,7 @@ const Hl = {
|
|
|
901
900
|
e("updateSettings", l);
|
|
902
901
|
}
|
|
903
902
|
}
|
|
904
|
-
},
|
|
903
|
+
}, zl = {
|
|
905
904
|
sidebar: {
|
|
906
905
|
opened: M.get("sidebarStatus") ? !!M.get("sidebarStatus") : !0,
|
|
907
906
|
withoutAnimation: !1
|
|
@@ -910,9 +909,9 @@ const Hl = {
|
|
|
910
909
|
pages: {},
|
|
911
910
|
currentRouteMeta: {},
|
|
912
911
|
builderSchema: {}
|
|
913
|
-
},
|
|
912
|
+
}, Kl = {
|
|
914
913
|
namespaced: !0,
|
|
915
|
-
state:
|
|
914
|
+
state: zl,
|
|
916
915
|
mutations: {
|
|
917
916
|
TOGGLE_SIDEBAR: (e) => {
|
|
918
917
|
e.sidebar.opened = !e.sidebar.opened, e.sidebar.withoutAnimation = !1, e.sidebar.opened ? M.set("sidebarStatus", "1") : M.set("sidebarStatus", "0");
|
|
@@ -953,11 +952,11 @@ const Hl = {
|
|
|
953
952
|
e("SET_BUILDER_SCHEMA", t);
|
|
954
953
|
}
|
|
955
954
|
}
|
|
956
|
-
},
|
|
955
|
+
}, Wl = {
|
|
957
956
|
currentCellItem: {}
|
|
958
|
-
},
|
|
957
|
+
}, Zl = {
|
|
959
958
|
namespaced: !0,
|
|
960
|
-
state:
|
|
959
|
+
state: Wl,
|
|
961
960
|
mutations: {
|
|
962
961
|
SET_CURRENT_CELLITEM: (e, t) => {
|
|
963
962
|
e.currentCellItem = t;
|
|
@@ -995,12 +994,12 @@ const Hl = {
|
|
|
995
994
|
}
|
|
996
995
|
},
|
|
997
996
|
modules: {
|
|
998
|
-
user:
|
|
999
|
-
settings:
|
|
1000
|
-
app:
|
|
1001
|
-
builderSchema:
|
|
997
|
+
user: Hl,
|
|
998
|
+
settings: Jl,
|
|
999
|
+
app: Kl,
|
|
1000
|
+
builderSchema: Zl
|
|
1002
1001
|
}
|
|
1003
|
-
}),
|
|
1002
|
+
}), Ql = Xt, qe = Yt, Xl = xe.CancelToken, ie = {
|
|
1004
1003
|
taskList: {},
|
|
1005
1004
|
cacheList: /* @__PURE__ */ new Map(),
|
|
1006
1005
|
uniqueId(e) {
|
|
@@ -1036,16 +1035,16 @@ const Hl = {
|
|
|
1036
1035
|
const t = this.uniqueId(e);
|
|
1037
1036
|
return this.cacheList.delete(t);
|
|
1038
1037
|
}
|
|
1039
|
-
},
|
|
1038
|
+
}, Yl = {
|
|
1040
1039
|
onFulfilled: function(e) {
|
|
1041
|
-
return e.cacheEnable === !1 || (ie.pending(e) && ie.delTask(e), e.cancelToken = new
|
|
1040
|
+
return e.cacheEnable === !1 || (ie.pending(e) && ie.delTask(e), e.cancelToken = new Xl((t) => {
|
|
1042
1041
|
ie.addTask(e, t);
|
|
1043
1042
|
})), e;
|
|
1044
1043
|
},
|
|
1045
1044
|
onRejected(e) {
|
|
1046
1045
|
return Promise.reject(e);
|
|
1047
1046
|
}
|
|
1048
|
-
},
|
|
1047
|
+
}, en = {
|
|
1049
1048
|
onFulfilled: function(e) {
|
|
1050
1049
|
return e.config.cacheEnable === !1 || e.config.method === "get" && Object.keys(e.data).length > 0 && ie.addCache(e.config, e.data), e;
|
|
1051
1050
|
},
|
|
@@ -1053,30 +1052,30 @@ const Hl = {
|
|
|
1053
1052
|
return Promise.reject(e);
|
|
1054
1053
|
}
|
|
1055
1054
|
};
|
|
1056
|
-
function
|
|
1055
|
+
function tn() {
|
|
1057
1056
|
return S.state.user.token;
|
|
1058
1057
|
}
|
|
1059
|
-
function
|
|
1060
|
-
|
|
1058
|
+
function Ue(e) {
|
|
1059
|
+
Ql({
|
|
1061
1060
|
message: e,
|
|
1062
1061
|
type: "error",
|
|
1063
1062
|
duration: 5 * 1e3,
|
|
1064
1063
|
grouping: !0
|
|
1065
1064
|
});
|
|
1066
1065
|
}
|
|
1067
|
-
const
|
|
1066
|
+
const ln = {
|
|
1068
1067
|
onFulfilled: function(e) {
|
|
1069
1068
|
e.headers = e.headers || {};
|
|
1070
|
-
const t =
|
|
1069
|
+
const t = tn();
|
|
1071
1070
|
return t && (e.headers["X-Token"] = t), e;
|
|
1072
1071
|
}
|
|
1073
|
-
},
|
|
1072
|
+
}, nn = {
|
|
1074
1073
|
onFulfilled(e) {
|
|
1075
1074
|
var n, o, s, a, u, p, d;
|
|
1076
1075
|
if (!(((n = e.config) == null ? void 0 : n.notHoldApiErr) !== void 0 && ((o = e.config) == null ? void 0 : o.notHoldApiErr) === !0) && e.data.code !== 0) {
|
|
1077
1076
|
const f = e.data.message || `\u63A5\u53E3\u8BF7\u6C42\u9519\u8BEF ${e.config.method}::${(s = e.config.url) == null ? void 0 : s.split("?")[0]}`;
|
|
1078
1077
|
if (e.data.code === 401) {
|
|
1079
|
-
|
|
1078
|
+
qe.alert("\u767B\u5F55\u4FE1\u606F\u5DF2\u8FC7\u671F\u6216\u672A\u767B\u5F55, \u662F\u5426\u8DF3\u8F6C\u767B\u5F55", "\u64CD\u4F5C\u63D0\u9192", {
|
|
1080
1079
|
showClose: !1,
|
|
1081
1080
|
confirmButtonText: "\u91CD\u65B0\u767B\u5F55",
|
|
1082
1081
|
showCancelButton: !0,
|
|
@@ -1087,13 +1086,13 @@ const nn = {
|
|
|
1087
1086
|
});
|
|
1088
1087
|
return;
|
|
1089
1088
|
} else
|
|
1090
|
-
|
|
1089
|
+
Ue(f);
|
|
1091
1090
|
return Promise.reject(f);
|
|
1092
1091
|
}
|
|
1093
1092
|
let l = (u = (a = e.data) == null ? void 0 : a.data) == null ? void 0 : u._message_box;
|
|
1094
1093
|
return l !== void 0 && (Ce(l) && (l = {
|
|
1095
1094
|
message: (d = (p = e.data) == null ? void 0 : p.data) == null ? void 0 : d._message_box
|
|
1096
|
-
}),
|
|
1095
|
+
}), qe({
|
|
1097
1096
|
title: "\u63D0\u793A",
|
|
1098
1097
|
type: "success",
|
|
1099
1098
|
grouping: !0,
|
|
@@ -1102,41 +1101,41 @@ const nn = {
|
|
|
1102
1101
|
},
|
|
1103
1102
|
onRejected(e) {
|
|
1104
1103
|
var t;
|
|
1105
|
-
return xe.isCancel(e) ? Promise.reject("") : (
|
|
1104
|
+
return xe.isCancel(e) ? Promise.reject("") : (Ue(`${e.message} ${e.config.method}::${(t = e.config.url) == null ? void 0 : t.split("?")[0]}`), Promise.reject(e));
|
|
1106
1105
|
}
|
|
1107
|
-
},
|
|
1106
|
+
}, on = [
|
|
1108
1107
|
{
|
|
1109
|
-
request:
|
|
1110
|
-
response:
|
|
1108
|
+
request: Yl,
|
|
1109
|
+
response: en
|
|
1111
1110
|
},
|
|
1112
1111
|
{
|
|
1113
|
-
request:
|
|
1114
|
-
response:
|
|
1112
|
+
request: ln,
|
|
1113
|
+
response: nn
|
|
1115
1114
|
}
|
|
1116
1115
|
];
|
|
1117
|
-
function
|
|
1116
|
+
function Re(e = {}) {
|
|
1118
1117
|
const t = de.axios || {}, l = F(t, e || {}), n = xe.create({
|
|
1119
1118
|
...l
|
|
1120
1119
|
});
|
|
1121
|
-
return
|
|
1120
|
+
return on.forEach((o) => {
|
|
1122
1121
|
n.interceptors.request.use(o.request.onFulfilled, o.request.onRejected), n.interceptors.response.use(o.response.onFulfilled, o.response.onRejected);
|
|
1123
1122
|
}), n;
|
|
1124
1123
|
}
|
|
1125
|
-
const
|
|
1124
|
+
const sn = Re();
|
|
1126
1125
|
const pt = {};
|
|
1127
|
-
function
|
|
1126
|
+
function _i(e, t) {
|
|
1128
1127
|
pt[e] = t;
|
|
1129
1128
|
}
|
|
1130
|
-
function
|
|
1129
|
+
function an(e) {
|
|
1131
1130
|
return pt[e];
|
|
1132
1131
|
}
|
|
1133
|
-
const
|
|
1132
|
+
const rn = V({
|
|
1134
1133
|
name: "Dashboard",
|
|
1135
1134
|
setup() {
|
|
1136
|
-
const e =
|
|
1135
|
+
const e = an("test");
|
|
1137
1136
|
if (e)
|
|
1138
1137
|
return () => c(e, null, null);
|
|
1139
|
-
const t =
|
|
1138
|
+
const t = lt(), l = N(() => t.getters.name);
|
|
1140
1139
|
return () => c("div", {
|
|
1141
1140
|
class: "dashboard-container"
|
|
1142
1141
|
}, [c("div", {
|
|
@@ -1149,8 +1148,8 @@ const C = (e, t) => {
|
|
|
1149
1148
|
for (const [n, o] of t)
|
|
1150
1149
|
l[n] = o;
|
|
1151
1150
|
return l;
|
|
1152
|
-
},
|
|
1153
|
-
const
|
|
1151
|
+
}, un = /* @__PURE__ */ C(rn, [["__scopeId", "data-v-10e6b4b6"]]);
|
|
1152
|
+
const cn = {
|
|
1154
1153
|
data() {
|
|
1155
1154
|
return {
|
|
1156
1155
|
levelList: null
|
|
@@ -1182,7 +1181,7 @@ const pn = {
|
|
|
1182
1181
|
},
|
|
1183
1182
|
pathCompile(e) {
|
|
1184
1183
|
const { params: t } = this.$route;
|
|
1185
|
-
return
|
|
1184
|
+
return Bl.compile(e)(t);
|
|
1186
1185
|
},
|
|
1187
1186
|
handleLink(e) {
|
|
1188
1187
|
const { redirect: t, path: l } = e;
|
|
@@ -1193,27 +1192,27 @@ const pn = {
|
|
|
1193
1192
|
this.$router.push(this.pathCompile(l));
|
|
1194
1193
|
}
|
|
1195
1194
|
}
|
|
1196
|
-
},
|
|
1195
|
+
}, pn = {
|
|
1197
1196
|
key: 0,
|
|
1198
1197
|
class: "no-redirect"
|
|
1199
|
-
},
|
|
1200
|
-
function
|
|
1198
|
+
}, dn = ["onClick"];
|
|
1199
|
+
function mn(e, t, l, n, o, s) {
|
|
1201
1200
|
const a = pl, u = dl;
|
|
1202
1201
|
return i(), m(u, {
|
|
1203
1202
|
class: "app-breadcrumb",
|
|
1204
1203
|
separator: "/"
|
|
1205
1204
|
}, {
|
|
1206
1205
|
default: r(() => [
|
|
1207
|
-
c(
|
|
1206
|
+
c(At, { name: "breadcrumb" }, {
|
|
1208
1207
|
default: r(() => [
|
|
1209
|
-
(i(!0), h(k, null,
|
|
1208
|
+
(i(!0), h(k, null, A(o.levelList, (p, d) => (i(), m(a, {
|
|
1210
1209
|
key: p.path
|
|
1211
1210
|
}, {
|
|
1212
1211
|
default: r(() => [
|
|
1213
|
-
p.path.indexOf("/DIR_") === 0 && p.redirect === void 0 || d === o.levelList.length - 1 ? (i(), h("span",
|
|
1212
|
+
p.path.indexOf("/DIR_") === 0 && p.redirect === void 0 || d === o.levelList.length - 1 ? (i(), h("span", pn, I(p.meta.title), 1)) : (i(), h("a", {
|
|
1214
1213
|
key: 1,
|
|
1215
1214
|
onClick: (f) => s.handleLink(p)
|
|
1216
|
-
},
|
|
1215
|
+
}, I(p.meta.title), 9, dn))
|
|
1217
1216
|
]),
|
|
1218
1217
|
_: 2
|
|
1219
1218
|
}, 1024))), 128))
|
|
@@ -1224,7 +1223,7 @@ function fn(e, t, l, n, o, s) {
|
|
|
1224
1223
|
_: 1
|
|
1225
1224
|
});
|
|
1226
1225
|
}
|
|
1227
|
-
const
|
|
1226
|
+
const fn = /* @__PURE__ */ C(cn, [["render", mn], ["__scopeId", "data-v-fa74804e"]]), hn = {
|
|
1228
1227
|
name: "Hamburger",
|
|
1229
1228
|
props: {
|
|
1230
1229
|
isActive: {
|
|
@@ -1239,7 +1238,7 @@ const hn = /* @__PURE__ */ C(pn, [["render", fn], ["__scopeId", "data-v-fa74804e
|
|
|
1239
1238
|
}
|
|
1240
1239
|
}
|
|
1241
1240
|
};
|
|
1242
|
-
function
|
|
1241
|
+
function bn(e, t, l, n, o, s) {
|
|
1243
1242
|
const a = v("v-icon");
|
|
1244
1243
|
return i(), h("div", {
|
|
1245
1244
|
style: { padding: "0 15px" },
|
|
@@ -1251,9 +1250,9 @@ function _n(e, t, l, n, o, s) {
|
|
|
1251
1250
|
}, null, 8, ["class"])
|
|
1252
1251
|
]);
|
|
1253
1252
|
}
|
|
1254
|
-
const
|
|
1255
|
-
const
|
|
1256
|
-
function
|
|
1253
|
+
const _n = /* @__PURE__ */ C(hn, [["render", bn]]);
|
|
1254
|
+
const yn = {};
|
|
1255
|
+
function vn(e, t) {
|
|
1257
1256
|
const l = se, n = ml, o = fl, s = hl;
|
|
1258
1257
|
return i(), m(s, { style: { width: "100%", height: "100%" } }, {
|
|
1259
1258
|
default: r(() => [
|
|
@@ -1286,7 +1285,7 @@ function gn(e, t) {
|
|
|
1286
1285
|
_: 3
|
|
1287
1286
|
});
|
|
1288
1287
|
}
|
|
1289
|
-
const dt = /* @__PURE__ */ C(
|
|
1288
|
+
const dt = /* @__PURE__ */ C(yn, [["render", vn], ["__scopeId", "data-v-7c3d697b"]]), gn = {
|
|
1290
1289
|
type: "input",
|
|
1291
1290
|
name: "\u6587\u672C\u6846",
|
|
1292
1291
|
default: {
|
|
@@ -1354,7 +1353,7 @@ const dt = /* @__PURE__ */ C(vn, [["render", gn], ["__scopeId", "data-v-7c3d697b
|
|
|
1354
1353
|
}
|
|
1355
1354
|
}
|
|
1356
1355
|
]
|
|
1357
|
-
},
|
|
1356
|
+
}, kn = {
|
|
1358
1357
|
type: "number",
|
|
1359
1358
|
name: "\u6570\u5B57",
|
|
1360
1359
|
default: {
|
|
@@ -1396,7 +1395,7 @@ const dt = /* @__PURE__ */ C(vn, [["render", gn], ["__scopeId", "data-v-7c3d697b
|
|
|
1396
1395
|
}
|
|
1397
1396
|
}
|
|
1398
1397
|
]
|
|
1399
|
-
},
|
|
1398
|
+
}, En = {
|
|
1400
1399
|
type: "number-range",
|
|
1401
1400
|
name: "\u6570\u5B57\u533A\u95F4",
|
|
1402
1401
|
default: {
|
|
@@ -1437,7 +1436,7 @@ const dt = /* @__PURE__ */ C(vn, [["render", gn], ["__scopeId", "data-v-7c3d697b
|
|
|
1437
1436
|
}
|
|
1438
1437
|
}
|
|
1439
1438
|
]
|
|
1440
|
-
},
|
|
1439
|
+
}, wn = {
|
|
1441
1440
|
type: "select",
|
|
1442
1441
|
name: "\u4E0B\u62C9\u6846",
|
|
1443
1442
|
default: {
|
|
@@ -1543,7 +1542,7 @@ const dt = /* @__PURE__ */ C(vn, [["render", gn], ["__scopeId", "data-v-7c3d697b
|
|
|
1543
1542
|
const t = y(e);
|
|
1544
1543
|
return e.optionType === 0 ? t.props && t.props.selectApi !== void 0 && delete t.props.selectApi : e.optionType === 1 && t.options && delete t.options, delete t.optionType, t;
|
|
1545
1544
|
}
|
|
1546
|
-
},
|
|
1545
|
+
}, Sn = {
|
|
1547
1546
|
type: "radio",
|
|
1548
1547
|
name: "\u5355\u9009\u6846",
|
|
1549
1548
|
default: {
|
|
@@ -1589,7 +1588,7 @@ const dt = /* @__PURE__ */ C(vn, [["render", gn], ["__scopeId", "data-v-7c3d697b
|
|
|
1589
1588
|
label: "\u9ED8\u8BA4\u503C"
|
|
1590
1589
|
}
|
|
1591
1590
|
]
|
|
1592
|
-
},
|
|
1591
|
+
}, Cn = {
|
|
1593
1592
|
type: "switch",
|
|
1594
1593
|
name: "\u5F00\u5173",
|
|
1595
1594
|
default: {
|
|
@@ -1645,7 +1644,7 @@ const dt = /* @__PURE__ */ C(vn, [["render", gn], ["__scopeId", "data-v-7c3d697b
|
|
|
1645
1644
|
}
|
|
1646
1645
|
}
|
|
1647
1646
|
]
|
|
1648
|
-
},
|
|
1647
|
+
}, xn = {
|
|
1649
1648
|
type: "code",
|
|
1650
1649
|
name: "Code",
|
|
1651
1650
|
default: {
|
|
@@ -1665,7 +1664,7 @@ const dt = /* @__PURE__ */ C(vn, [["render", gn], ["__scopeId", "data-v-7c3d697b
|
|
|
1665
1664
|
label: "\u5B57\u6BB5key"
|
|
1666
1665
|
}
|
|
1667
1666
|
]
|
|
1668
|
-
},
|
|
1667
|
+
}, Bn = {
|
|
1669
1668
|
type: "json",
|
|
1670
1669
|
name: "json",
|
|
1671
1670
|
default: {
|
|
@@ -1705,7 +1704,7 @@ const dt = /* @__PURE__ */ C(vn, [["render", gn], ["__scopeId", "data-v-7c3d697b
|
|
|
1705
1704
|
label: "\u5B57\u6BB5key"
|
|
1706
1705
|
}
|
|
1707
1706
|
]
|
|
1708
|
-
},
|
|
1707
|
+
}, An = {
|
|
1709
1708
|
type: "template",
|
|
1710
1709
|
name: "\u81EA\u5B9A\u4E49\u7EC4\u4EF6",
|
|
1711
1710
|
default: {
|
|
@@ -1725,7 +1724,7 @@ const dt = /* @__PURE__ */ C(vn, [["render", gn], ["__scopeId", "data-v-7c3d697b
|
|
|
1725
1724
|
label: "\u5B57\u6BB5key"
|
|
1726
1725
|
}
|
|
1727
1726
|
]
|
|
1728
|
-
},
|
|
1727
|
+
}, $n = {
|
|
1729
1728
|
type: "icon-select",
|
|
1730
1729
|
name: "\u56FE\u6807\u9009\u62E9\u5668",
|
|
1731
1730
|
default: {
|
|
@@ -1745,7 +1744,7 @@ const dt = /* @__PURE__ */ C(vn, [["render", gn], ["__scopeId", "data-v-7c3d697b
|
|
|
1745
1744
|
label: "\u5B57\u6BB5key"
|
|
1746
1745
|
}
|
|
1747
1746
|
]
|
|
1748
|
-
},
|
|
1747
|
+
}, Tn = {
|
|
1749
1748
|
type: "sub-form",
|
|
1750
1749
|
name: "\u5B50\u8868\u5355",
|
|
1751
1750
|
default: {
|
|
@@ -1813,7 +1812,7 @@ const dt = /* @__PURE__ */ C(vn, [["render", gn], ["__scopeId", "data-v-7c3d697b
|
|
|
1813
1812
|
}
|
|
1814
1813
|
}
|
|
1815
1814
|
]
|
|
1816
|
-
},
|
|
1815
|
+
}, Fn = {
|
|
1817
1816
|
type: "checkbox",
|
|
1818
1817
|
name: "\u590D\u9009\u6846",
|
|
1819
1818
|
default: {
|
|
@@ -1863,20 +1862,20 @@ const dt = /* @__PURE__ */ C(vn, [["render", gn], ["__scopeId", "data-v-7c3d697b
|
|
|
1863
1862
|
function O(e) {
|
|
1864
1863
|
mt[e.type] = e;
|
|
1865
1864
|
}
|
|
1865
|
+
O(gn);
|
|
1866
|
+
O(wn);
|
|
1866
1867
|
O(kn);
|
|
1867
|
-
O(Sn);
|
|
1868
1868
|
O(En);
|
|
1869
|
-
O(wn);
|
|
1870
|
-
O(xn);
|
|
1871
|
-
O(Fn);
|
|
1872
1869
|
O(Cn);
|
|
1873
|
-
O(
|
|
1870
|
+
O(Tn);
|
|
1871
|
+
O(Sn);
|
|
1872
|
+
O(Fn);
|
|
1873
|
+
O(xn);
|
|
1874
1874
|
O(Bn);
|
|
1875
|
-
O(An);
|
|
1876
1875
|
O(In);
|
|
1877
|
-
O(Tn);
|
|
1878
1876
|
O($n);
|
|
1879
|
-
|
|
1877
|
+
O(An);
|
|
1878
|
+
const Ee = mt, On = {
|
|
1880
1879
|
options: {
|
|
1881
1880
|
labelPosition: "top",
|
|
1882
1881
|
submitButton: !1,
|
|
@@ -1979,11 +1978,11 @@ const be = {
|
|
|
1979
1978
|
labelPosition: "top",
|
|
1980
1979
|
submitButton: !1,
|
|
1981
1980
|
cancelButton: !1
|
|
1982
|
-
},
|
|
1981
|
+
}, Le = [];
|
|
1983
1982
|
Object.keys(Ee).forEach((e) => {
|
|
1984
|
-
|
|
1983
|
+
Le.push({ value: e, label: Ee[e].name });
|
|
1985
1984
|
});
|
|
1986
|
-
const
|
|
1985
|
+
const Dn = {
|
|
1987
1986
|
options: {
|
|
1988
1987
|
submitButton: !1,
|
|
1989
1988
|
cancelButton: !1
|
|
@@ -2004,7 +2003,7 @@ const Pn = {
|
|
|
2004
2003
|
type: "select",
|
|
2005
2004
|
field: "type",
|
|
2006
2005
|
label: "\u7C7B\u578B",
|
|
2007
|
-
options: y(
|
|
2006
|
+
options: y(Le)
|
|
2008
2007
|
},
|
|
2009
2008
|
{
|
|
2010
2009
|
type: "input",
|
|
@@ -2015,8 +2014,8 @@ const Pn = {
|
|
|
2015
2014
|
}
|
|
2016
2015
|
}
|
|
2017
2016
|
]
|
|
2018
|
-
},
|
|
2019
|
-
components: { DevLayout: dt, VForm: J, VButton:
|
|
2017
|
+
}, Pn = {
|
|
2018
|
+
components: { DevLayout: dt, VForm: J, VButton: Ie, JsonView: Ae },
|
|
2020
2019
|
props: {
|
|
2021
2020
|
schema: {
|
|
2022
2021
|
type: Object,
|
|
@@ -2027,8 +2026,8 @@ const Pn = {
|
|
|
2027
2026
|
data() {
|
|
2028
2027
|
return {
|
|
2029
2028
|
sqlOptions: {},
|
|
2030
|
-
sqlSchema:
|
|
2031
|
-
baseSchema:
|
|
2029
|
+
sqlSchema: Dn,
|
|
2030
|
+
baseSchema: On,
|
|
2032
2031
|
activeTab: "base",
|
|
2033
2032
|
builderSchema: Object.assign(
|
|
2034
2033
|
{},
|
|
@@ -2053,7 +2052,7 @@ const Pn = {
|
|
|
2053
2052
|
tableStruct: "",
|
|
2054
2053
|
activeName: "1",
|
|
2055
2054
|
currentCtrlType: "input",
|
|
2056
|
-
types: y(
|
|
2055
|
+
types: y(Le)
|
|
2057
2056
|
};
|
|
2058
2057
|
},
|
|
2059
2058
|
computed: {
|
|
@@ -2123,7 +2122,7 @@ const Pn = {
|
|
|
2123
2122
|
}), this.ctrlKey++, this.key++, this.activeIndex = `${t}[${this.builderSchema[t].length - 1}]`, this.activeTab = "ctrl";
|
|
2124
2123
|
},
|
|
2125
2124
|
removeOne() {
|
|
2126
|
-
|
|
2125
|
+
et(this.builderSchema, this.activeIndex), this.builderSchema = y(Qe(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
|
|
2127
2126
|
},
|
|
2128
2127
|
clicklabel() {
|
|
2129
2128
|
const e = this.activeIndex;
|
|
@@ -2150,8 +2149,8 @@ const Pn = {
|
|
|
2150
2149
|
}
|
|
2151
2150
|
}
|
|
2152
2151
|
};
|
|
2153
|
-
function
|
|
2154
|
-
const a = v("v-form"), u =
|
|
2152
|
+
function Rn(e, t, l, n, o, s) {
|
|
2153
|
+
const a = v("v-form"), u = nt, p = ue, d = v("JsonView"), f = v("VButton"), _ = $e, T = Te, $ = ot, U = st, q = v("dev-layout");
|
|
2155
2154
|
return i(), m(q, null, {
|
|
2156
2155
|
main: r(() => [
|
|
2157
2156
|
o.builderSchema.formItems ? (i(), m(a, G({
|
|
@@ -2190,7 +2189,7 @@ function Ln(e, t, l, n, o, s) {
|
|
|
2190
2189
|
"onUpdate:modelValue": t[0] || (t[0] = (B) => o.currentCtrlType = B)
|
|
2191
2190
|
}, {
|
|
2192
2191
|
default: r(() => [
|
|
2193
|
-
(i(!0), h(k, null,
|
|
2192
|
+
(i(!0), h(k, null, A(o.types, (B, W) => (i(), m(_, {
|
|
2194
2193
|
key: W,
|
|
2195
2194
|
label: B.label,
|
|
2196
2195
|
value: B.value
|
|
@@ -2213,7 +2212,7 @@ function Ln(e, t, l, n, o, s) {
|
|
|
2213
2212
|
_: 1
|
|
2214
2213
|
});
|
|
2215
2214
|
}
|
|
2216
|
-
const
|
|
2215
|
+
const Ln = /* @__PURE__ */ C(Pn, [["render", Rn], ["__scopeId", "data-v-875f0171"]]), Mn = {
|
|
2217
2216
|
type: "input",
|
|
2218
2217
|
name: "\u6587\u672C\u6846",
|
|
2219
2218
|
default: {
|
|
@@ -2261,7 +2260,7 @@ const Mn = /* @__PURE__ */ C(Rn, [["render", Ln], ["__scopeId", "data-v-875f0171
|
|
|
2261
2260
|
}
|
|
2262
2261
|
}
|
|
2263
2262
|
]
|
|
2264
|
-
},
|
|
2263
|
+
}, jn = {
|
|
2265
2264
|
type: "select",
|
|
2266
2265
|
name: "\u4E0B\u62C9\u6846",
|
|
2267
2266
|
default: {
|
|
@@ -2362,7 +2361,7 @@ const Mn = /* @__PURE__ */ C(Rn, [["render", Ln], ["__scopeId", "data-v-875f0171
|
|
|
2362
2361
|
const t = y(e);
|
|
2363
2362
|
return e.optionType === 0 ? t.props && t.props.selectApi !== void 0 && delete t.props.selectApi : e.optionType === 1 && t.options && delete t.options, delete t.optionType, t;
|
|
2364
2363
|
}
|
|
2365
|
-
},
|
|
2364
|
+
}, Nn = {
|
|
2366
2365
|
type: "date",
|
|
2367
2366
|
name: "\u65E5\u671F",
|
|
2368
2367
|
default: {
|
|
@@ -2382,7 +2381,7 @@ const Mn = /* @__PURE__ */ C(Rn, [["render", Ln], ["__scopeId", "data-v-875f0171
|
|
|
2382
2381
|
label: "\u5B57\u6BB5key"
|
|
2383
2382
|
}
|
|
2384
2383
|
]
|
|
2385
|
-
},
|
|
2384
|
+
}, He = {
|
|
2386
2385
|
options: {
|
|
2387
2386
|
labelPosition: "top",
|
|
2388
2387
|
submitButton: !1,
|
|
@@ -2411,7 +2410,7 @@ const Mn = /* @__PURE__ */ C(Rn, [["render", Ln], ["__scopeId", "data-v-875f0171
|
|
|
2411
2410
|
labelPosition: "top",
|
|
2412
2411
|
submitButton: !1,
|
|
2413
2412
|
cancelButton: !1
|
|
2414
|
-
},
|
|
2413
|
+
}, Vn = {
|
|
2415
2414
|
type: "span",
|
|
2416
2415
|
name: "\u6587\u672C",
|
|
2417
2416
|
default: {
|
|
@@ -2441,7 +2440,7 @@ const Mn = /* @__PURE__ */ C(Rn, [["render", Ln], ["__scopeId", "data-v-875f0171
|
|
|
2441
2440
|
label: "\u6392\u5E8F"
|
|
2442
2441
|
}
|
|
2443
2442
|
]
|
|
2444
|
-
},
|
|
2443
|
+
}, qn = {
|
|
2445
2444
|
type: "enum",
|
|
2446
2445
|
name: "\u6807\u7B7E",
|
|
2447
2446
|
default: {
|
|
@@ -2492,7 +2491,7 @@ const Mn = /* @__PURE__ */ C(Rn, [["render", Ln], ["__scopeId", "data-v-875f0171
|
|
|
2492
2491
|
trans(e) {
|
|
2493
2492
|
return e.options = e.options || [], e.label || (e.label = "\u8868\u5934"), e;
|
|
2494
2493
|
}
|
|
2495
|
-
},
|
|
2494
|
+
}, Un = {
|
|
2496
2495
|
type: "html",
|
|
2497
2496
|
name: "HTML",
|
|
2498
2497
|
default: {
|
|
@@ -2517,7 +2516,7 @@ const Mn = /* @__PURE__ */ C(Rn, [["render", Ln], ["__scopeId", "data-v-875f0171
|
|
|
2517
2516
|
label: "\u63D0\u793A"
|
|
2518
2517
|
}
|
|
2519
2518
|
]
|
|
2520
|
-
},
|
|
2519
|
+
}, Hn = {
|
|
2521
2520
|
type: "icon",
|
|
2522
2521
|
name: "\u56FE\u6807",
|
|
2523
2522
|
default: {
|
|
@@ -2542,7 +2541,7 @@ const Mn = /* @__PURE__ */ C(Rn, [["render", Ln], ["__scopeId", "data-v-875f0171
|
|
|
2542
2541
|
label: "\u63D0\u793A"
|
|
2543
2542
|
}
|
|
2544
2543
|
]
|
|
2545
|
-
},
|
|
2544
|
+
}, Gn = {
|
|
2546
2545
|
type: "image",
|
|
2547
2546
|
name: "\u56FE\u7247",
|
|
2548
2547
|
default: {
|
|
@@ -2567,7 +2566,7 @@ const Mn = /* @__PURE__ */ C(Rn, [["render", Ln], ["__scopeId", "data-v-875f0171
|
|
|
2567
2566
|
label: "\u63D0\u793A"
|
|
2568
2567
|
}
|
|
2569
2568
|
]
|
|
2570
|
-
},
|
|
2569
|
+
}, Jn = {
|
|
2571
2570
|
type: "json",
|
|
2572
2571
|
name: "JSON",
|
|
2573
2572
|
default: {
|
|
@@ -2592,7 +2591,7 @@ const Mn = /* @__PURE__ */ C(Rn, [["render", Ln], ["__scopeId", "data-v-875f0171
|
|
|
2592
2591
|
label: "\u63D0\u793A"
|
|
2593
2592
|
}
|
|
2594
2593
|
]
|
|
2595
|
-
},
|
|
2594
|
+
}, zn = {
|
|
2596
2595
|
type: "link",
|
|
2597
2596
|
name: "\u94FE\u63A5",
|
|
2598
2597
|
default: {
|
|
@@ -2617,7 +2616,7 @@ const Mn = /* @__PURE__ */ C(Rn, [["render", Ln], ["__scopeId", "data-v-875f0171
|
|
|
2617
2616
|
label: "\u63D0\u793A"
|
|
2618
2617
|
}
|
|
2619
2618
|
]
|
|
2620
|
-
},
|
|
2619
|
+
}, Kn = {
|
|
2621
2620
|
type: "rich",
|
|
2622
2621
|
name: "\u5BCC\u6587\u672C",
|
|
2623
2622
|
default: {
|
|
@@ -2642,7 +2641,7 @@ const Mn = /* @__PURE__ */ C(Rn, [["render", Ln], ["__scopeId", "data-v-875f0171
|
|
|
2642
2641
|
label: "\u63D0\u793A"
|
|
2643
2642
|
}
|
|
2644
2643
|
]
|
|
2645
|
-
},
|
|
2644
|
+
}, Wn = {
|
|
2646
2645
|
type: "tpl",
|
|
2647
2646
|
name: "\u6A21\u677F",
|
|
2648
2647
|
default: {
|
|
@@ -2673,17 +2672,17 @@ const Mn = /* @__PURE__ */ C(Rn, [["render", Ln], ["__scopeId", "data-v-875f0171
|
|
|
2673
2672
|
info: "\u4F8B\u5982 <code>\u59D3\u540D: {name} \u5E74\u9F84:{age}</code>"
|
|
2674
2673
|
}
|
|
2675
2674
|
]
|
|
2675
|
+
}, Zn = {
|
|
2676
|
+
span: Vn,
|
|
2677
|
+
enum: qn,
|
|
2678
|
+
html: Un,
|
|
2679
|
+
icon: Hn,
|
|
2680
|
+
image: Gn,
|
|
2681
|
+
json: Jn,
|
|
2682
|
+
link: zn,
|
|
2683
|
+
rich: Kn,
|
|
2684
|
+
tpl: Wn
|
|
2676
2685
|
}, Qn = {
|
|
2677
|
-
span: qn,
|
|
2678
|
-
enum: Un,
|
|
2679
|
-
html: Hn,
|
|
2680
|
-
icon: Gn,
|
|
2681
|
-
image: Jn,
|
|
2682
|
-
json: zn,
|
|
2683
|
-
link: Kn,
|
|
2684
|
-
rich: Wn,
|
|
2685
|
-
tpl: Zn
|
|
2686
|
-
}, Xn = {
|
|
2687
2686
|
type: "jump",
|
|
2688
2687
|
name: "\u8DF3\u8F6C",
|
|
2689
2688
|
default: {
|
|
@@ -2730,7 +2729,7 @@ const Mn = /* @__PURE__ */ C(Rn, [["render", Ln], ["__scopeId", "data-v-875f0171
|
|
|
2730
2729
|
}
|
|
2731
2730
|
}
|
|
2732
2731
|
]
|
|
2733
|
-
},
|
|
2732
|
+
}, Xn = {
|
|
2734
2733
|
type: "api",
|
|
2735
2734
|
name: "\u63A5\u53E3\u8BF7\u6C42",
|
|
2736
2735
|
default: {
|
|
@@ -2799,7 +2798,7 @@ const Mn = /* @__PURE__ */ C(Rn, [["render", Ln], ["__scopeId", "data-v-875f0171
|
|
|
2799
2798
|
}
|
|
2800
2799
|
}
|
|
2801
2800
|
]
|
|
2802
|
-
},
|
|
2801
|
+
}, Yn = {
|
|
2803
2802
|
type: "form",
|
|
2804
2803
|
name: "\u5F39\u6846\u8868\u5355",
|
|
2805
2804
|
default: {
|
|
@@ -2853,7 +2852,7 @@ const Mn = /* @__PURE__ */ C(Rn, [["render", Ln], ["__scopeId", "data-v-875f0171
|
|
|
2853
2852
|
label: "\u4FDD\u5B58\u63A5\u53E3"
|
|
2854
2853
|
}
|
|
2855
2854
|
]
|
|
2856
|
-
},
|
|
2855
|
+
}, eo = {
|
|
2857
2856
|
type: "table",
|
|
2858
2857
|
name: "\u5F39\u6846\u5217\u8868",
|
|
2859
2858
|
default: {
|
|
@@ -2907,14 +2906,14 @@ const Mn = /* @__PURE__ */ C(Rn, [["render", Ln], ["__scopeId", "data-v-875f0171
|
|
|
2907
2906
|
label: "\u4FDD\u5B58\u63A5\u53E3"
|
|
2908
2907
|
}
|
|
2909
2908
|
]
|
|
2910
|
-
},
|
|
2911
|
-
jump:
|
|
2912
|
-
api:
|
|
2913
|
-
form:
|
|
2914
|
-
table:
|
|
2909
|
+
}, to = {
|
|
2910
|
+
jump: Qn,
|
|
2911
|
+
api: Xn,
|
|
2912
|
+
form: Yn,
|
|
2913
|
+
table: eo
|
|
2915
2914
|
};
|
|
2916
|
-
const
|
|
2917
|
-
components: { JsonView:
|
|
2915
|
+
const lo = {
|
|
2916
|
+
components: { JsonView: Ae, DevLayout: dt, VTable: ne, VForm: J, VButton: Ie },
|
|
2918
2917
|
props: {
|
|
2919
2918
|
schema: {
|
|
2920
2919
|
type: Object,
|
|
@@ -2925,11 +2924,11 @@ const no = {
|
|
|
2925
2924
|
data() {
|
|
2926
2925
|
const e = $t(this.$props.schema);
|
|
2927
2926
|
return delete e.listApi, e.list = [{}], {
|
|
2928
|
-
baseSchema:
|
|
2927
|
+
baseSchema: He,
|
|
2929
2928
|
activeTab: "base",
|
|
2930
2929
|
builderSchema: Object.assign(
|
|
2931
2930
|
{},
|
|
2932
|
-
|
|
2931
|
+
He,
|
|
2933
2932
|
e
|
|
2934
2933
|
),
|
|
2935
2934
|
baseOptions: {},
|
|
@@ -2942,9 +2941,9 @@ const no = {
|
|
|
2942
2941
|
ctrlName: "",
|
|
2943
2942
|
activeIndex: void 0,
|
|
2944
2943
|
ctrlMap: {
|
|
2945
|
-
filter: { input:
|
|
2946
|
-
headers:
|
|
2947
|
-
buttons:
|
|
2944
|
+
filter: { input: Mn, select: jn, date: Nn },
|
|
2945
|
+
headers: Zn,
|
|
2946
|
+
buttons: to
|
|
2948
2947
|
},
|
|
2949
2948
|
activeIndexReg: /(filter|headers|normalButton|batchButton|rowButton)?\[(\d+)\]/,
|
|
2950
2949
|
currentCtrlType: "input"
|
|
@@ -3057,7 +3056,7 @@ const no = {
|
|
|
3057
3056
|
}), this.key++, this.ctrlKey++, this.activeIndex = `${t}[${this.builderSchema[t].length - 1}]`, this.activeTab = "ctrl";
|
|
3058
3057
|
},
|
|
3059
3058
|
removeOne() {
|
|
3060
|
-
|
|
3059
|
+
et(this.builderSchema, this.activeIndex), this.builderSchema = y(Qe(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
|
|
3061
3060
|
},
|
|
3062
3061
|
clicklabel() {
|
|
3063
3062
|
const e = this.activeIndex, t = e.match(this.activeIndexReg);
|
|
@@ -3095,8 +3094,8 @@ const no = {
|
|
|
3095
3094
|
}
|
|
3096
3095
|
}
|
|
3097
3096
|
};
|
|
3098
|
-
function
|
|
3099
|
-
const a = pe, u = ue, p = se, d = v("v-table"), f =
|
|
3097
|
+
function no(e, t, l, n, o, s) {
|
|
3098
|
+
const a = pe, u = ue, p = se, d = v("v-table"), f = nt, _ = ue, T = v("JsonView"), $ = v("VButton"), U = $e, q = Te, B = ot, W = st, St = v("v-form"), Ct = v("dev-layout");
|
|
3100
3099
|
return i(), m(Ct, null, {
|
|
3101
3100
|
"left-aside": r(() => [
|
|
3102
3101
|
c(p, { style: { width: "200px" } }, {
|
|
@@ -3165,7 +3164,7 @@ function oo(e, t, l, n, o, s) {
|
|
|
3165
3164
|
]),
|
|
3166
3165
|
_: 1
|
|
3167
3166
|
}),
|
|
3168
|
-
(i(!0), h(k, null,
|
|
3167
|
+
(i(!0), h(k, null, A(Object.keys(o.ctrlMap.headers), (x, j) => (i(), m(a, {
|
|
3169
3168
|
key: `column-${j}`,
|
|
3170
3169
|
class: "ctrl"
|
|
3171
3170
|
}, {
|
|
@@ -3175,7 +3174,7 @@ function oo(e, t, l, n, o, s) {
|
|
|
3175
3174
|
onClick: (me) => s.pushHeaders(o.ctrlMap.headers[x].type)
|
|
3176
3175
|
}, {
|
|
3177
3176
|
default: r(() => [
|
|
3178
|
-
g(
|
|
3177
|
+
g(I(o.ctrlMap.headers[x].name), 1)
|
|
3179
3178
|
]),
|
|
3180
3179
|
_: 2
|
|
3181
3180
|
}, 1032, ["onClick"])
|
|
@@ -3193,7 +3192,7 @@ function oo(e, t, l, n, o, s) {
|
|
|
3193
3192
|
]),
|
|
3194
3193
|
_: 1
|
|
3195
3194
|
}),
|
|
3196
|
-
(i(!0), h(k, null,
|
|
3195
|
+
(i(!0), h(k, null, A(Object.keys(o.ctrlMap.buttons), (x, j) => (i(), m(a, {
|
|
3197
3196
|
key: `column-${j}`,
|
|
3198
3197
|
class: "ctrl"
|
|
3199
3198
|
}, {
|
|
@@ -3203,7 +3202,7 @@ function oo(e, t, l, n, o, s) {
|
|
|
3203
3202
|
onClick: (me) => s.pushRowButton(o.ctrlMap.buttons[x].type)
|
|
3204
3203
|
}, {
|
|
3205
3204
|
default: r(() => [
|
|
3206
|
-
g(
|
|
3205
|
+
g(I(o.ctrlMap.buttons[x].name), 1)
|
|
3207
3206
|
]),
|
|
3208
3207
|
_: 2
|
|
3209
3208
|
}, 1032, ["onClick"])
|
|
@@ -3221,7 +3220,7 @@ function oo(e, t, l, n, o, s) {
|
|
|
3221
3220
|
]),
|
|
3222
3221
|
_: 1
|
|
3223
3222
|
}),
|
|
3224
|
-
(i(!0), h(k, null,
|
|
3223
|
+
(i(!0), h(k, null, A(Object.keys(o.ctrlMap.buttons), (x, j) => (i(), m(a, {
|
|
3225
3224
|
key: `column-${j}`,
|
|
3226
3225
|
class: "ctrl"
|
|
3227
3226
|
}, {
|
|
@@ -3231,7 +3230,7 @@ function oo(e, t, l, n, o, s) {
|
|
|
3231
3230
|
onClick: (me) => s.pushNormalButton(o.ctrlMap.buttons[x].type)
|
|
3232
3231
|
}, {
|
|
3233
3232
|
default: r(() => [
|
|
3234
|
-
g(
|
|
3233
|
+
g(I(o.ctrlMap.buttons[x].name), 1)
|
|
3235
3234
|
]),
|
|
3236
3235
|
_: 2
|
|
3237
3236
|
}, 1032, ["onClick"])
|
|
@@ -3260,7 +3259,7 @@ function oo(e, t, l, n, o, s) {
|
|
|
3260
3259
|
]),
|
|
3261
3260
|
_: 1
|
|
3262
3261
|
}),
|
|
3263
|
-
(i(!0), h(k, null,
|
|
3262
|
+
(i(!0), h(k, null, A(Object.keys(o.ctrlMap.buttons), (x, j) => (i(), m(a, {
|
|
3264
3263
|
key: `column-${j}`,
|
|
3265
3264
|
class: "ctrl"
|
|
3266
3265
|
}, {
|
|
@@ -3270,7 +3269,7 @@ function oo(e, t, l, n, o, s) {
|
|
|
3270
3269
|
onClick: (me) => s.pushBatchButton(o.ctrlMap.buttons[x].type)
|
|
3271
3270
|
}, {
|
|
3272
3271
|
default: r(() => [
|
|
3273
|
-
g(
|
|
3272
|
+
g(I(o.ctrlMap.buttons[x].name), 1)
|
|
3274
3273
|
]),
|
|
3275
3274
|
_: 2
|
|
3276
3275
|
}, 1032, ["onClick"])
|
|
@@ -3332,7 +3331,7 @@ function oo(e, t, l, n, o, s) {
|
|
|
3332
3331
|
"onUpdate:modelValue": t[3] || (t[3] = (x) => o.currentCtrlType = x)
|
|
3333
3332
|
}, {
|
|
3334
3333
|
default: r(() => [
|
|
3335
|
-
(i(!0), h(k, null,
|
|
3334
|
+
(i(!0), h(k, null, A(s.types, (x, j) => (i(), m(U, {
|
|
3336
3335
|
key: j,
|
|
3337
3336
|
label: x.label,
|
|
3338
3337
|
value: x.value
|
|
@@ -3355,16 +3354,16 @@ function oo(e, t, l, n, o, s) {
|
|
|
3355
3354
|
_: 1
|
|
3356
3355
|
});
|
|
3357
3356
|
}
|
|
3358
|
-
const
|
|
3357
|
+
const oo = /* @__PURE__ */ C(lo, [["render", no], ["__scopeId", "data-v-e5209cb7"]]), so = {
|
|
3359
3358
|
name: "PageEditor",
|
|
3360
|
-
components: { FormBuilder:
|
|
3359
|
+
components: { FormBuilder: Ln, TableBuilder: oo },
|
|
3361
3360
|
setup() {
|
|
3362
3361
|
const e = P(!1), t = P(1), l = "rtl", n = ce(), o = N(() => S.state.app.pages[n.path]);
|
|
3363
3362
|
return { show: e, key: t, direction: l, pageSchema: o };
|
|
3364
3363
|
}
|
|
3365
3364
|
};
|
|
3366
|
-
function
|
|
3367
|
-
const a = v("VIcon"), u = v("form-builder"), p = v("table-builder"), d =
|
|
3365
|
+
function ao(e, t, l, n, o, s) {
|
|
3366
|
+
const a = v("VIcon"), u = v("form-builder"), p = v("table-builder"), d = at;
|
|
3368
3367
|
return i(), h(k, null, [
|
|
3369
3368
|
c(a, {
|
|
3370
3369
|
name: "ra-set",
|
|
@@ -3394,13 +3393,13 @@ function io(e, t, l, n, o, s) {
|
|
|
3394
3393
|
}, 8, ["modelValue", "direction"])
|
|
3395
3394
|
], 64);
|
|
3396
3395
|
}
|
|
3397
|
-
const
|
|
3398
|
-
const
|
|
3396
|
+
const io = /* @__PURE__ */ C(so, [["render", ao]]);
|
|
3397
|
+
const ro = {
|
|
3399
3398
|
components: {
|
|
3400
|
-
Breadcrumb:
|
|
3401
|
-
Hamburger:
|
|
3402
|
-
VButton:
|
|
3403
|
-
PageEditor:
|
|
3399
|
+
Breadcrumb: fn,
|
|
3400
|
+
Hamburger: _n,
|
|
3401
|
+
VButton: Ie,
|
|
3402
|
+
PageEditor: io
|
|
3404
3403
|
},
|
|
3405
3404
|
data() {
|
|
3406
3405
|
return {
|
|
@@ -3431,7 +3430,7 @@ const uo = {
|
|
|
3431
3430
|
}
|
|
3432
3431
|
},
|
|
3433
3432
|
mounted() {
|
|
3434
|
-
|
|
3433
|
+
Xe("el-submenu is-active");
|
|
3435
3434
|
const e = this.getSetting("navBarNotice");
|
|
3436
3435
|
e.length > 0 && !this.getSetting("closeNavNotice") && this.showNotice(e) && this.$notify({
|
|
3437
3436
|
title: "\u63D0\u793A",
|
|
@@ -3475,15 +3474,15 @@ const uo = {
|
|
|
3475
3474
|
(t = (e = this.$route) == null ? void 0 : e.meta) != null && t.pageId && window.open(location.origin + location.pathname + "#/menu/" + ((n = (l = this.$route) == null ? void 0 : l.meta) == null ? void 0 : n.pageId));
|
|
3476
3475
|
}
|
|
3477
3476
|
}
|
|
3478
|
-
},
|
|
3477
|
+
}, uo = { class: "right-content" }, co = { class: "right-item" }, po = {
|
|
3479
3478
|
key: 0,
|
|
3480
3479
|
class: "right-item"
|
|
3481
|
-
},
|
|
3480
|
+
}, mo = {
|
|
3482
3481
|
class: "right-item-button",
|
|
3483
3482
|
style: { padding: "0" }
|
|
3484
|
-
},
|
|
3485
|
-
function
|
|
3486
|
-
const a = v("hamburger"), u = v("breadcrumb"), p = pe, d = v("VIcon"), f = v("PageEditor"), _ = v("v-button"), T = bl, $ = _l, U = yl, q =
|
|
3483
|
+
}, fo = { class: "user-info" }, ho = ["src"], bo = { class: "user-name" };
|
|
3484
|
+
function _o(e, t, l, n, o, s) {
|
|
3485
|
+
const a = v("hamburger"), u = v("breadcrumb"), p = pe, d = v("VIcon"), f = v("PageEditor"), _ = v("v-button"), T = bl, $ = _l, U = yl, q = at, B = se;
|
|
3487
3486
|
return i(), m(B, {
|
|
3488
3487
|
ref: "header",
|
|
3489
3488
|
class: "navbar",
|
|
@@ -3503,17 +3502,17 @@ function yo(e, t, l, n, o, s) {
|
|
|
3503
3502
|
}),
|
|
3504
3503
|
c(p, { span: 8 }, {
|
|
3505
3504
|
default: r(() => [
|
|
3506
|
-
b("div",
|
|
3507
|
-
b("div",
|
|
3505
|
+
b("div", uo, [
|
|
3506
|
+
b("div", co, [
|
|
3508
3507
|
c(d, {
|
|
3509
3508
|
name: "ra-code",
|
|
3510
3509
|
onClick: s.gotoMenuEdit
|
|
3511
3510
|
}, null, 8, ["onClick"])
|
|
3512
3511
|
]),
|
|
3513
|
-
s.showPageJsonSchemaIcon ? (i(), h("div",
|
|
3512
|
+
s.showPageJsonSchemaIcon ? (i(), h("div", po, [
|
|
3514
3513
|
c(f)
|
|
3515
3514
|
])) : E("", !0),
|
|
3516
|
-
b("div",
|
|
3515
|
+
b("div", mo, [
|
|
3517
3516
|
c(_, { buttons: e.nav }, null, 8, ["buttons"])
|
|
3518
3517
|
]),
|
|
3519
3518
|
c(U, {
|
|
@@ -3547,14 +3546,14 @@ function yo(e, t, l, n, o, s) {
|
|
|
3547
3546
|
})
|
|
3548
3547
|
]),
|
|
3549
3548
|
default: r(() => [
|
|
3550
|
-
b("div",
|
|
3549
|
+
b("div", fo, [
|
|
3551
3550
|
b("img", {
|
|
3552
3551
|
src: e.avatar ? e.avatar : o.defaultAvatar,
|
|
3553
3552
|
class: "user-avatar",
|
|
3554
3553
|
alt: "\u5934\u50CF"
|
|
3555
|
-
}, null, 8,
|
|
3554
|
+
}, null, 8, ho),
|
|
3556
3555
|
g(),
|
|
3557
|
-
b("span",
|
|
3556
|
+
b("span", bo, I(e.nickname || e.name), 1)
|
|
3558
3557
|
])
|
|
3559
3558
|
]),
|
|
3560
3559
|
_: 1
|
|
@@ -3572,8 +3571,8 @@ function yo(e, t, l, n, o, s) {
|
|
|
3572
3571
|
_: 1
|
|
3573
3572
|
}, 8, ["style"]);
|
|
3574
3573
|
}
|
|
3575
|
-
const
|
|
3576
|
-
const
|
|
3574
|
+
const yo = /* @__PURE__ */ C(ro, [["render", _o], ["__scopeId", "data-v-9d0fb088"]]);
|
|
3575
|
+
const vo = {
|
|
3577
3576
|
name: "SidebarLogo",
|
|
3578
3577
|
props: {
|
|
3579
3578
|
collapse: {
|
|
@@ -3589,11 +3588,11 @@ const go = {
|
|
|
3589
3588
|
return this.$store.state.settings.logo;
|
|
3590
3589
|
}
|
|
3591
3590
|
}
|
|
3592
|
-
},
|
|
3591
|
+
}, go = (e) => (Ke("data-v-49084925"), e = e(), We(), e), ko = ["src"], Eo = {
|
|
3593
3592
|
key: 1,
|
|
3594
3593
|
class: "sidebar-title"
|
|
3595
|
-
},
|
|
3596
|
-
function
|
|
3594
|
+
}, wo = /* @__PURE__ */ go(() => /* @__PURE__ */ b("div", null, "\u7CFB\u7EDF", -1)), So = ["src"], Co = { class: "sidebar-title" };
|
|
3595
|
+
function xo(e, t, l, n, o, s) {
|
|
3597
3596
|
const a = v("router-link");
|
|
3598
3597
|
return i(), h("div", {
|
|
3599
3598
|
class: H(["sidebar-logo-container", { collapse: l.collapse }])
|
|
@@ -3610,8 +3609,8 @@ function Bo(e, t, l, n, o, s) {
|
|
|
3610
3609
|
key: 0,
|
|
3611
3610
|
src: s.logo,
|
|
3612
3611
|
class: "sidebar-logo"
|
|
3613
|
-
}, null, 8,
|
|
3614
|
-
|
|
3612
|
+
}, null, 8, ko)) : (i(), h("h1", Eo, I(s.title), 1)),
|
|
3613
|
+
wo
|
|
3615
3614
|
]),
|
|
3616
3615
|
_: 1
|
|
3617
3616
|
})) : (i(), m(a, {
|
|
@@ -3624,8 +3623,8 @@ function Bo(e, t, l, n, o, s) {
|
|
|
3624
3623
|
key: 0,
|
|
3625
3624
|
src: s.logo,
|
|
3626
3625
|
class: "sidebar-logo"
|
|
3627
|
-
}, null, 8,
|
|
3628
|
-
b("h1",
|
|
3626
|
+
}, null, 8, So)) : E("", !0),
|
|
3627
|
+
b("h1", Co, I(s.title), 1)
|
|
3629
3628
|
]),
|
|
3630
3629
|
_: 1
|
|
3631
3630
|
}))
|
|
@@ -3634,7 +3633,7 @@ function Bo(e, t, l, n, o, s) {
|
|
|
3634
3633
|
})
|
|
3635
3634
|
], 2);
|
|
3636
3635
|
}
|
|
3637
|
-
const
|
|
3636
|
+
const Bo = /* @__PURE__ */ C(vo, [["render", xo], ["__scopeId", "data-v-49084925"]]), Io = {
|
|
3638
3637
|
props: {
|
|
3639
3638
|
to: {
|
|
3640
3639
|
type: String,
|
|
@@ -3647,10 +3646,10 @@ const Ao = /* @__PURE__ */ C(go, [["render", Bo], ["__scopeId", "data-v-49084925
|
|
|
3647
3646
|
},
|
|
3648
3647
|
methods: {
|
|
3649
3648
|
compType(e) {
|
|
3650
|
-
return
|
|
3649
|
+
return Ne(e) || this.newTab ? "a" : "router-link";
|
|
3651
3650
|
},
|
|
3652
3651
|
linkProps(e) {
|
|
3653
|
-
return
|
|
3652
|
+
return Ne(e) ? {
|
|
3654
3653
|
is: "a",
|
|
3655
3654
|
href: e,
|
|
3656
3655
|
target: "_blank",
|
|
@@ -3667,15 +3666,15 @@ const Ao = /* @__PURE__ */ C(go, [["render", Bo], ["__scopeId", "data-v-49084925
|
|
|
3667
3666
|
}
|
|
3668
3667
|
}
|
|
3669
3668
|
};
|
|
3670
|
-
function
|
|
3671
|
-
return i(), m(
|
|
3669
|
+
function Ao(e, t, l, n, o, s) {
|
|
3670
|
+
return i(), m(Ze(s.compType(l.to)), K(X(s.linkProps(l.to))), {
|
|
3672
3671
|
default: r(() => [
|
|
3673
3672
|
te(e.$slots, "default")
|
|
3674
3673
|
]),
|
|
3675
3674
|
_: 3
|
|
3676
3675
|
}, 16);
|
|
3677
3676
|
}
|
|
3678
|
-
const
|
|
3677
|
+
const $o = /* @__PURE__ */ C(Io, [["render", Ao]]), To = {
|
|
3679
3678
|
computed: {
|
|
3680
3679
|
device() {
|
|
3681
3680
|
return this.$store.state.app.device;
|
|
@@ -3695,7 +3694,7 @@ const To = /* @__PURE__ */ C(Io, [["render", $o]]), Fo = {
|
|
|
3695
3694
|
}
|
|
3696
3695
|
}
|
|
3697
3696
|
}
|
|
3698
|
-
},
|
|
3697
|
+
}, Fo = { class: "menu-content" }, Oo = /* @__PURE__ */ V({
|
|
3699
3698
|
__name: "MenuContent",
|
|
3700
3699
|
props: {
|
|
3701
3700
|
meta: {
|
|
@@ -3713,17 +3712,17 @@ const To = /* @__PURE__ */ C(Io, [["render", $o]]), Fo = {
|
|
|
3713
3712
|
c(n, {
|
|
3714
3713
|
name: e.meta.icon || "ra-all"
|
|
3715
3714
|
}, null, 8, ["name"]),
|
|
3716
|
-
b("span",
|
|
3715
|
+
b("span", Fo, I(e.meta.title), 1)
|
|
3717
3716
|
], 64);
|
|
3718
3717
|
};
|
|
3719
3718
|
}
|
|
3720
|
-
}),
|
|
3719
|
+
}), Do = {
|
|
3721
3720
|
name: "SidebarItem",
|
|
3722
3721
|
components: {
|
|
3723
|
-
AppLink:
|
|
3724
|
-
MenuContent:
|
|
3722
|
+
AppLink: $o,
|
|
3723
|
+
MenuContent: Oo
|
|
3725
3724
|
},
|
|
3726
|
-
mixins: [
|
|
3725
|
+
mixins: [To],
|
|
3727
3726
|
props: {
|
|
3728
3727
|
item: {
|
|
3729
3728
|
type: Object,
|
|
@@ -3747,13 +3746,13 @@ const To = /* @__PURE__ */ C(Io, [["render", $o]]), Fo = {
|
|
|
3747
3746
|
}
|
|
3748
3747
|
}
|
|
3749
3748
|
}
|
|
3750
|
-
},
|
|
3749
|
+
}, Po = {
|
|
3751
3750
|
key: 0,
|
|
3752
3751
|
class: "menu-wrapper"
|
|
3753
3752
|
};
|
|
3754
|
-
function
|
|
3753
|
+
function Ro(e, t, l, n, o, s) {
|
|
3755
3754
|
const a = v("menu-content"), u = vl, p = v("app-link"), d = v("sidebar-item", !0), f = gl;
|
|
3756
|
-
return l.item.hidden !== !1 ? (i(), h("div",
|
|
3755
|
+
return l.item.hidden !== !1 ? (i(), h("div", Po, [
|
|
3757
3756
|
l.item.meta && l.item.meta.menuType === 2 ? (i(), h(k, { key: 0 }, [
|
|
3758
3757
|
l.item.meta ? (i(), m(p, {
|
|
3759
3758
|
key: 0,
|
|
@@ -3799,7 +3798,7 @@ function Lo(e, t, l, n, o, s) {
|
|
|
3799
3798
|
}, null, 8, ["meta"]))
|
|
3800
3799
|
]),
|
|
3801
3800
|
default: r(() => [
|
|
3802
|
-
(i(!0), h(k, null,
|
|
3801
|
+
(i(!0), h(k, null, A(l.item.children, (_) => (i(), m(d, {
|
|
3803
3802
|
key: _.path,
|
|
3804
3803
|
"is-nest": !0,
|
|
3805
3804
|
item: _,
|
|
@@ -3811,14 +3810,14 @@ function Lo(e, t, l, n, o, s) {
|
|
|
3811
3810
|
}, 8, ["index", "class"])) : E("", !0)
|
|
3812
3811
|
])) : E("", !0);
|
|
3813
3812
|
}
|
|
3814
|
-
const
|
|
3813
|
+
const Lo = /* @__PURE__ */ C(Do, [["render", Ro]]);
|
|
3815
3814
|
function ft(e) {
|
|
3816
3815
|
return e.filter((t) => {
|
|
3817
3816
|
var l;
|
|
3818
3817
|
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);
|
|
3819
3818
|
});
|
|
3820
3819
|
}
|
|
3821
|
-
const
|
|
3820
|
+
const Mo = {
|
|
3822
3821
|
data() {
|
|
3823
3822
|
return {
|
|
3824
3823
|
selected: ""
|
|
@@ -3839,7 +3838,7 @@ const jo = {
|
|
|
3839
3838
|
}
|
|
3840
3839
|
}
|
|
3841
3840
|
};
|
|
3842
|
-
function
|
|
3841
|
+
function jo(e, t, l, n, o, s) {
|
|
3843
3842
|
const a = $e, u = kl, p = Te;
|
|
3844
3843
|
return i(), m(p, {
|
|
3845
3844
|
modelValue: o.selected,
|
|
@@ -3850,7 +3849,7 @@ function No(e, t, l, n, o, s) {
|
|
|
3850
3849
|
onChange: s.onselected
|
|
3851
3850
|
}, {
|
|
3852
3851
|
default: r(() => [
|
|
3853
|
-
(i(!0), h(k, null,
|
|
3852
|
+
(i(!0), h(k, null, A(s.filterRoutes, (d) => (i(), h(k, {
|
|
3854
3853
|
key: d.path
|
|
3855
3854
|
}, [
|
|
3856
3855
|
d.children !== void 0 ? (i(), h(k, { key: 0 }, [
|
|
@@ -3859,7 +3858,7 @@ function No(e, t, l, n, o, s) {
|
|
|
3859
3858
|
label: d.meta.title
|
|
3860
3859
|
}, {
|
|
3861
3860
|
default: r(() => [
|
|
3862
|
-
(i(!0), h(k, null,
|
|
3861
|
+
(i(!0), h(k, null, A(d.children, (f, _) => (i(), h(k, {
|
|
3863
3862
|
key: f.path
|
|
3864
3863
|
}, [
|
|
3865
3864
|
d.meta.menuType !== 0 ? (i(), m(a, {
|
|
@@ -3881,10 +3880,10 @@ function No(e, t, l, n, o, s) {
|
|
|
3881
3880
|
_: 1
|
|
3882
3881
|
}, 8, ["modelValue", "onChange"]);
|
|
3883
3882
|
}
|
|
3884
|
-
const
|
|
3883
|
+
const No = /* @__PURE__ */ C(Mo, [["render", jo], ["__scopeId", "data-v-811395be"]]);
|
|
3885
3884
|
var L = /* @__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))(L || {}), 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 || {});
|
|
3886
|
-
const
|
|
3887
|
-
components: { SidebarItem:
|
|
3885
|
+
const Vo = V({
|
|
3886
|
+
components: { SidebarItem: Lo, Logo: Bo, SearchMenu: No },
|
|
3888
3887
|
computed: {
|
|
3889
3888
|
...Be(["sidebar", "remoteRouter", "customRouter"]),
|
|
3890
3889
|
routes() {
|
|
@@ -3923,7 +3922,7 @@ const qo = V({
|
|
|
3923
3922
|
}
|
|
3924
3923
|
},
|
|
3925
3924
|
mounted() {
|
|
3926
|
-
|
|
3925
|
+
Xe("is-active");
|
|
3927
3926
|
},
|
|
3928
3927
|
methods: {
|
|
3929
3928
|
filterRoute(e) {
|
|
@@ -3931,7 +3930,7 @@ const qo = V({
|
|
|
3931
3930
|
}
|
|
3932
3931
|
}
|
|
3933
3932
|
});
|
|
3934
|
-
function
|
|
3933
|
+
function qo(e, t, l, n, o, s) {
|
|
3935
3934
|
const a = v("logo"), u = v("search-menu"), p = v("sidebar-item"), d = El, f = wl;
|
|
3936
3935
|
return i(), h("div", {
|
|
3937
3936
|
class: H({ "has-logo": e.showLogo })
|
|
@@ -3954,10 +3953,10 @@ function Uo(e, t, l, n, o, s) {
|
|
|
3954
3953
|
mode: "vertical"
|
|
3955
3954
|
}, {
|
|
3956
3955
|
default: r(() => [
|
|
3957
|
-
(i(!0), h(k, null,
|
|
3956
|
+
(i(!0), h(k, null, A(e.routes, (_, T) => (i(), h(k, {
|
|
3958
3957
|
key: T + "-module"
|
|
3959
3958
|
}, [
|
|
3960
|
-
(i(!0), h(k, null,
|
|
3959
|
+
(i(!0), h(k, null, A(e.filterRoute(_.routes), ($) => (i(), m(p, {
|
|
3961
3960
|
key: $.path,
|
|
3962
3961
|
item: $,
|
|
3963
3962
|
to: e.$router.resolve($.redirect ? $.redirect : $).fullPath
|
|
@@ -3971,8 +3970,8 @@ function Uo(e, t, l, n, o, s) {
|
|
|
3971
3970
|
})
|
|
3972
3971
|
], 2);
|
|
3973
3972
|
}
|
|
3974
|
-
const
|
|
3975
|
-
const
|
|
3973
|
+
const Uo = /* @__PURE__ */ C(Vo, [["render", qo], ["__scopeId", "data-v-800716bb"]]);
|
|
3974
|
+
const Ho = { class: "app-main" }, Go = {
|
|
3976
3975
|
__name: "AppMain",
|
|
3977
3976
|
setup(e) {
|
|
3978
3977
|
const t = ce(), l = [], n = P(0);
|
|
@@ -3981,7 +3980,7 @@ const Go = { class: "app-main" }, Jo = {
|
|
|
3981
3980
|
(o = t.meta) != null && o.keepAlive && l.indexOf(t.name) && l.push(t.name), n.value++;
|
|
3982
3981
|
}), (o, s) => {
|
|
3983
3982
|
const a = v("router-view"), u = Sl;
|
|
3984
|
-
return i(), h("section",
|
|
3983
|
+
return i(), h("section", Ho, [
|
|
3985
3984
|
(i(), m(a, {
|
|
3986
3985
|
key: o.$route.fullPath + w(n)
|
|
3987
3986
|
})),
|
|
@@ -3989,17 +3988,17 @@ const Go = { class: "app-main" }, Jo = {
|
|
|
3989
3988
|
]);
|
|
3990
3989
|
};
|
|
3991
3990
|
}
|
|
3992
|
-
},
|
|
3993
|
-
const
|
|
3991
|
+
}, Jo = /* @__PURE__ */ C(Go, [["__scopeId", "data-v-ca0f0d98"]]);
|
|
3992
|
+
const zo = { class: "main-container" }, Ko = {
|
|
3994
3993
|
__name: "index",
|
|
3995
3994
|
setup(e) {
|
|
3996
|
-
const t =
|
|
3995
|
+
const t = lt(), { body: l } = document, n = 992, o = N(() => t.state.app.sidebar), s = N(() => t.state.app.device), a = N(() => t.state.settings.fixedHeader), u = N(() => ({
|
|
3997
3996
|
hideSidebar: !o.value.opened,
|
|
3998
3997
|
openSidebar: o.value.opened,
|
|
3999
3998
|
withoutAnimation: o.value.withoutAnimation,
|
|
4000
3999
|
mobile: s.value === "mobile"
|
|
4001
4000
|
})), p = () => l.getBoundingClientRect().width - 1 < n;
|
|
4002
|
-
|
|
4001
|
+
Al(window, "resize", () => f());
|
|
4003
4002
|
const d = () => {
|
|
4004
4003
|
t.dispatch("app/closeSideBar", { withoutAnimation: !1 });
|
|
4005
4004
|
}, f = () => {
|
|
@@ -4016,19 +4015,19 @@ const Ko = { class: "main-container" }, Wo = {
|
|
|
4016
4015
|
class: "drawer-bg",
|
|
4017
4016
|
onClick: d
|
|
4018
4017
|
})) : E("", !0),
|
|
4019
|
-
c(w(
|
|
4020
|
-
b("div",
|
|
4018
|
+
c(w(Uo), { class: "sidebar-container" }),
|
|
4019
|
+
b("div", zo, [
|
|
4021
4020
|
b("div", {
|
|
4022
4021
|
class: H({ "fixed-header": w(a) })
|
|
4023
4022
|
}, [
|
|
4024
|
-
c(w(
|
|
4023
|
+
c(w(yo))
|
|
4025
4024
|
], 2),
|
|
4026
|
-
c(w(
|
|
4025
|
+
c(w(Jo))
|
|
4027
4026
|
])
|
|
4028
4027
|
], 2));
|
|
4029
4028
|
}
|
|
4030
|
-
}, ht = /* @__PURE__ */ C(
|
|
4031
|
-
class
|
|
4029
|
+
}, ht = /* @__PURE__ */ C(Ko, [["__scopeId", "data-v-957442cd"]]);
|
|
4030
|
+
class Wo {
|
|
4032
4031
|
constructor() {
|
|
4033
4032
|
R(this, "type", "qrcode");
|
|
4034
4033
|
}
|
|
@@ -4040,7 +4039,7 @@ class Zo {
|
|
|
4040
4039
|
showQrCode() {
|
|
4041
4040
|
}
|
|
4042
4041
|
}
|
|
4043
|
-
class
|
|
4042
|
+
class Zo extends Wo {
|
|
4044
4043
|
constructor(l) {
|
|
4045
4044
|
super();
|
|
4046
4045
|
R(this, "type", "qrcode");
|
|
@@ -4081,18 +4080,18 @@ class Qo extends Zo {
|
|
|
4081
4080
|
) : typeof window.attachEvent < "u" && window.attachEvent("onmessage", (s) => this.onScanSuccess(s));
|
|
4082
4081
|
}
|
|
4083
4082
|
}
|
|
4084
|
-
const
|
|
4085
|
-
dingtalk: (e) => new
|
|
4083
|
+
const Qo = {
|
|
4084
|
+
dingtalk: (e) => new Zo(e)
|
|
4086
4085
|
};
|
|
4087
|
-
function
|
|
4088
|
-
return F(S.state.settings.sso || {},
|
|
4086
|
+
function Xo() {
|
|
4087
|
+
return F(S.state.settings.sso || {}, Qo);
|
|
4089
4088
|
}
|
|
4090
|
-
function
|
|
4091
|
-
const t =
|
|
4089
|
+
function Yo(e) {
|
|
4090
|
+
const t = Xo(), l = S.state.settings.activeSsoKey || "", n = t[l];
|
|
4092
4091
|
if (n !== void 0)
|
|
4093
4092
|
return n(e);
|
|
4094
4093
|
}
|
|
4095
|
-
const
|
|
4094
|
+
const es = { id: "login" }, ts = /* @__PURE__ */ b("h1", { id: "title" }, "\u767B\u5F55", -1), ls = { id: "form" }, ns = { class: "tips" }, os = { class: "sso" }, ss = /* @__PURE__ */ b("div", { id: "sso-qrcode" }, null, -1), as = /* @__PURE__ */ V({
|
|
4096
4095
|
__name: "login",
|
|
4097
4096
|
setup(e) {
|
|
4098
4097
|
const t = il(), l = ce(), n = N(() => S.state.settings.loginTips), o = P({
|
|
@@ -4108,16 +4107,16 @@ const ts = { id: "login" }, ls = /* @__PURE__ */ b("h1", { id: "title" }, "\u767
|
|
|
4108
4107
|
t.push({ path: ((u = l.query) == null ? void 0 : u.redirect) || "/" });
|
|
4109
4108
|
});
|
|
4110
4109
|
};
|
|
4111
|
-
return P(), (a, u) => (i(), h("div",
|
|
4112
|
-
|
|
4113
|
-
b("form",
|
|
4110
|
+
return P(), (a, u) => (i(), h("div", es, [
|
|
4111
|
+
ts,
|
|
4112
|
+
b("form", ls, [
|
|
4114
4113
|
ve(b("input", {
|
|
4115
4114
|
"onUpdate:modelValue": u[0] || (u[0] = (p) => w(o).username = p),
|
|
4116
4115
|
type: "text",
|
|
4117
4116
|
placeholder: "\u7528\u6237\u540D",
|
|
4118
4117
|
class: "input"
|
|
4119
4118
|
}, null, 512), [
|
|
4120
|
-
[
|
|
4119
|
+
[je, w(o).username]
|
|
4121
4120
|
]),
|
|
4122
4121
|
ve(b("input", {
|
|
4123
4122
|
"onUpdate:modelValue": u[1] || (u[1] = (p) => w(o).password = p),
|
|
@@ -4125,26 +4124,26 @@ const ts = { id: "login" }, ls = /* @__PURE__ */ b("h1", { id: "title" }, "\u767
|
|
|
4125
4124
|
placeholder: "\u5BC6\u7801",
|
|
4126
4125
|
class: "input"
|
|
4127
4126
|
}, null, 512), [
|
|
4128
|
-
[
|
|
4127
|
+
[je, w(o).password]
|
|
4129
4128
|
]),
|
|
4130
4129
|
b("div", {
|
|
4131
4130
|
class: "input button",
|
|
4132
4131
|
onClick: s
|
|
4133
4132
|
}, "\u767B\u5F55"),
|
|
4134
|
-
b("div",
|
|
4135
|
-
b("div", null,
|
|
4133
|
+
b("div", ns, [
|
|
4134
|
+
b("div", null, I(w(n)), 1)
|
|
4136
4135
|
]),
|
|
4137
|
-
b("div",
|
|
4138
|
-
|
|
4139
|
-
(i(!0), h(k, null,
|
|
4136
|
+
b("div", os, [
|
|
4137
|
+
ss,
|
|
4138
|
+
(i(!0), h(k, null, A(Object.keys([]), (p) => (i(), h("div", { key: p }, I(p), 1))), 128))
|
|
4140
4139
|
])
|
|
4141
4140
|
])
|
|
4142
4141
|
]));
|
|
4143
4142
|
}
|
|
4144
4143
|
});
|
|
4145
|
-
const
|
|
4144
|
+
const is = {
|
|
4146
4145
|
name: "NotFoundPage"
|
|
4147
|
-
}, bt = (e) => (
|
|
4146
|
+
}, bt = (e) => (Ke("data-v-26068803"), e = e(), We(), e), rs = { class: "not-found" }, us = /* @__PURE__ */ bt(() => /* @__PURE__ */ b("svg", {
|
|
4148
4147
|
width: "380px",
|
|
4149
4148
|
height: "500px",
|
|
4150
4149
|
viewBox: "0 0 837 1045",
|
|
@@ -4197,7 +4196,7 @@ const rs = {
|
|
|
4197
4196
|
"sketch:type": "MSShapeGroup"
|
|
4198
4197
|
})
|
|
4199
4198
|
])
|
|
4200
|
-
], -1)),
|
|
4199
|
+
], -1)), cs = /* @__PURE__ */ bt(() => /* @__PURE__ */ b("div", { class: "message-box" }, [
|
|
4201
4200
|
/* @__PURE__ */ b("h1", null, "404"),
|
|
4202
4201
|
/* @__PURE__ */ b("p", null, "Page not found"),
|
|
4203
4202
|
/* @__PURE__ */ b("div", { class: "buttons-con" }, [
|
|
@@ -4208,14 +4207,14 @@ const rs = {
|
|
|
4208
4207
|
}, "Go to Home Page")
|
|
4209
4208
|
])
|
|
4210
4209
|
])
|
|
4211
|
-
], -1)),
|
|
4212
|
-
|
|
4213
|
-
|
|
4210
|
+
], -1)), ps = [
|
|
4211
|
+
us,
|
|
4212
|
+
cs
|
|
4214
4213
|
];
|
|
4215
|
-
function
|
|
4216
|
-
return i(), h("div",
|
|
4214
|
+
function ds(e, t, l, n, o, s) {
|
|
4215
|
+
return i(), h("div", rs, ps);
|
|
4217
4216
|
}
|
|
4218
|
-
const
|
|
4217
|
+
const ms = /* @__PURE__ */ C(is, [["render", ds], ["__scopeId", "data-v-26068803"]]), fs = [
|
|
4219
4218
|
{
|
|
4220
4219
|
path: "/",
|
|
4221
4220
|
component: ht,
|
|
@@ -4228,29 +4227,29 @@ const fs = /* @__PURE__ */ C(rs, [["render", ms], ["__scopeId", "data-v-26068803
|
|
|
4228
4227
|
{
|
|
4229
4228
|
path: "dashboard",
|
|
4230
4229
|
name: "Dashboard",
|
|
4231
|
-
component:
|
|
4230
|
+
component: un,
|
|
4232
4231
|
meta: { title: "Dashboard", icon: "el-icon-help", menuType: 2, keepAlive: !0 }
|
|
4233
4232
|
}
|
|
4234
4233
|
]
|
|
4235
4234
|
},
|
|
4236
4235
|
{
|
|
4237
4236
|
path: "/login",
|
|
4238
|
-
component:
|
|
4237
|
+
component: as,
|
|
4239
4238
|
meta: { title: "\u7528\u6237\u767B\u5F55", menuType: 0 },
|
|
4240
4239
|
hidden: !0
|
|
4241
4240
|
},
|
|
4242
4241
|
{
|
|
4243
4242
|
path: "/404",
|
|
4244
|
-
component:
|
|
4243
|
+
component: ms,
|
|
4245
4244
|
meta: { menuType: 0 },
|
|
4246
4245
|
hidden: !0
|
|
4247
4246
|
}
|
|
4248
4247
|
], oe = rl({
|
|
4249
4248
|
history: ul(),
|
|
4250
|
-
routes:
|
|
4249
|
+
routes: fs
|
|
4251
4250
|
});
|
|
4252
4251
|
ge.configure({ showSpinner: !1 });
|
|
4253
|
-
function
|
|
4252
|
+
function hs(e) {
|
|
4254
4253
|
e.beforeEach((t, l, n) => {
|
|
4255
4254
|
ge.start(), t.preHash = location.hash.replace("#", ""), n();
|
|
4256
4255
|
}), e.afterEach((t) => {
|
|
@@ -4260,27 +4259,27 @@ function bs(e) {
|
|
|
4260
4259
|
}), ge.done();
|
|
4261
4260
|
});
|
|
4262
4261
|
}
|
|
4263
|
-
function
|
|
4262
|
+
function bs() {
|
|
4264
4263
|
return S.state.user.isLodeRemoteRoutes;
|
|
4265
4264
|
}
|
|
4266
4265
|
function _t() {
|
|
4267
4266
|
return S.state.settings.whiteRoutes || [];
|
|
4268
4267
|
}
|
|
4269
|
-
function
|
|
4268
|
+
function _s() {
|
|
4270
4269
|
return S.state.user.token;
|
|
4271
4270
|
}
|
|
4272
|
-
function
|
|
4271
|
+
function ys(e) {
|
|
4273
4272
|
e.beforeEach(async (t, l, n) => {
|
|
4274
4273
|
var p, d;
|
|
4275
4274
|
if (_t().indexOf(t.path) !== -1) {
|
|
4276
4275
|
n();
|
|
4277
4276
|
return;
|
|
4278
4277
|
}
|
|
4279
|
-
if (
|
|
4278
|
+
if (_s()) {
|
|
4280
4279
|
(p = t.query) != null && p.redirect ? n((d = t.query) == null ? void 0 : d.redirect) : n();
|
|
4281
4280
|
return;
|
|
4282
4281
|
}
|
|
4283
|
-
const s = t.query.redirect || t.path, a =
|
|
4282
|
+
const s = t.query.redirect || t.path, a = Yo({});
|
|
4284
4283
|
if (!a) {
|
|
4285
4284
|
n(`/login?redirect=${s}`);
|
|
4286
4285
|
return;
|
|
@@ -4293,39 +4292,42 @@ function vs(e) {
|
|
|
4293
4292
|
a.jumpToLoginPage(n, `/login?redirect=${s}`);
|
|
4294
4293
|
});
|
|
4295
4294
|
}
|
|
4296
|
-
const
|
|
4297
|
-
|
|
4295
|
+
const vs = {}, gs = { class: "loading preloader" }, ks = /* @__PURE__ */ b("div", { class: "preloader-inner" }, null, -1), Es = [
|
|
4296
|
+
ks
|
|
4298
4297
|
];
|
|
4299
|
-
function
|
|
4300
|
-
return i(), h("div",
|
|
4298
|
+
function ws(e, t) {
|
|
4299
|
+
return i(), h("div", gs, Es);
|
|
4301
4300
|
}
|
|
4302
|
-
const yt = /* @__PURE__ */ C(
|
|
4301
|
+
const yt = /* @__PURE__ */ C(vs, [["render", ws]]), Ss = {
|
|
4303
4302
|
name: "VNotice",
|
|
4304
4303
|
props: {
|
|
4305
4304
|
dataApi: {
|
|
4306
4305
|
type: String,
|
|
4307
4306
|
default: ""
|
|
4308
4307
|
},
|
|
4309
|
-
notice: {
|
|
4308
|
+
notice: {
|
|
4309
|
+
type: String,
|
|
4310
|
+
default: ""
|
|
4311
|
+
}
|
|
4310
4312
|
},
|
|
4311
4313
|
data() {
|
|
4312
4314
|
return {
|
|
4313
|
-
title:
|
|
4315
|
+
title: "",
|
|
4314
4316
|
hasNotice: !1
|
|
4315
4317
|
};
|
|
4316
4318
|
},
|
|
4317
4319
|
beforeCreate() {
|
|
4318
|
-
if (
|
|
4320
|
+
if (this.$props.dataApi) {
|
|
4319
4321
|
this.$http.get(this.$props.dataApi).then(({ data: e }) => {
|
|
4320
|
-
this.title = e.title, this.hasNotice =
|
|
4322
|
+
this.title = e.title, this.hasNotice = !!e.title;
|
|
4321
4323
|
});
|
|
4322
4324
|
return;
|
|
4323
4325
|
} else
|
|
4324
4326
|
this.title = this.notice.title;
|
|
4325
4327
|
}
|
|
4326
4328
|
};
|
|
4327
|
-
function
|
|
4328
|
-
const a =
|
|
4329
|
+
function Cs(e, t, l, n, o, s) {
|
|
4330
|
+
const a = Fe;
|
|
4329
4331
|
return i(), h("div", null, [
|
|
4330
4332
|
o.hasNotice ? (i(), m(a, {
|
|
4331
4333
|
key: 0,
|
|
@@ -4333,7 +4335,7 @@ function xs(e, t, l, n, o, s) {
|
|
|
4333
4335
|
}, null, 8, ["title"])) : E("", !0)
|
|
4334
4336
|
]);
|
|
4335
4337
|
}
|
|
4336
|
-
const vt = /* @__PURE__ */ C(
|
|
4338
|
+
const vt = /* @__PURE__ */ C(Ss, [["render", Cs]]), xs = V({
|
|
4337
4339
|
components: { VLoading: yt, VNotice: vt },
|
|
4338
4340
|
props: {
|
|
4339
4341
|
schemaHandler: {
|
|
@@ -4375,9 +4377,9 @@ const vt = /* @__PURE__ */ C(Cs, [["render", xs]]), Bs = V({
|
|
|
4375
4377
|
});
|
|
4376
4378
|
}
|
|
4377
4379
|
});
|
|
4378
|
-
const
|
|
4380
|
+
const Bs = ["innerHTML"];
|
|
4379
4381
|
function Is(e, t, l, n, o, s) {
|
|
4380
|
-
const a =
|
|
4382
|
+
const a = Fe, u = vt, p = yt;
|
|
4381
4383
|
return i(), h(k, null, [
|
|
4382
4384
|
e.owners.length > 0 ? (i(), m(a, {
|
|
4383
4385
|
key: 0,
|
|
@@ -4390,7 +4392,7 @@ function Is(e, t, l, n, o, s) {
|
|
|
4390
4392
|
key: 1,
|
|
4391
4393
|
class: "offline-notice",
|
|
4392
4394
|
innerHTML: e.serviceOffLine === !0 ? e.setting.serviceOffLineNotice : e.serviceOffLine
|
|
4393
|
-
}, null, 8,
|
|
4395
|
+
}, null, 8, Bs)) : (i(), h(k, { key: 2 }, [
|
|
4394
4396
|
e.haveNotice ? (i(), m(u, {
|
|
4395
4397
|
key: 0,
|
|
4396
4398
|
notice: e.notice,
|
|
@@ -4401,7 +4403,7 @@ function Is(e, t, l, n, o, s) {
|
|
|
4401
4403
|
], 64))
|
|
4402
4404
|
], 64);
|
|
4403
4405
|
}
|
|
4404
|
-
const ae = /* @__PURE__ */ C(
|
|
4406
|
+
const ae = /* @__PURE__ */ C(xs, [["render", Is], ["__scopeId", "data-v-015774e8"]]), gt = {
|
|
4405
4407
|
__name: "table",
|
|
4406
4408
|
setup(e) {
|
|
4407
4409
|
const t = (l, n) => {
|
|
@@ -4449,7 +4451,7 @@ const ae = /* @__PURE__ */ C(Bs, [["render", Is], ["__scopeId", "data-v-015774e8
|
|
|
4449
4451
|
_: 1
|
|
4450
4452
|
}));
|
|
4451
4453
|
}
|
|
4452
|
-
},
|
|
4454
|
+
}, As = V({
|
|
4453
4455
|
name: "VTree",
|
|
4454
4456
|
components: {
|
|
4455
4457
|
VForm: J
|
|
@@ -4591,12 +4593,12 @@ const ae = /* @__PURE__ */ C(Bs, [["render", Is], ["__scopeId", "data-v-015774e8
|
|
|
4591
4593
|
}
|
|
4592
4594
|
}
|
|
4593
4595
|
});
|
|
4594
|
-
const
|
|
4596
|
+
const $s = { class: "card-header" }, Ts = /* @__PURE__ */ b("span", null, "\u5217\u8868", -1), Fs = { class: "tree-action" }, Os = { key: 0 }, Ds = {
|
|
4595
4597
|
key: 1,
|
|
4596
4598
|
style: { color: "#E6A23C" }
|
|
4597
|
-
},
|
|
4598
|
-
function
|
|
4599
|
-
const l = ue, n =
|
|
4599
|
+
}, Ps = { class: "card-header" };
|
|
4600
|
+
function Rs(e, t) {
|
|
4601
|
+
const l = ue, n = xl, o = Oe, s = pe, a = v("v-form"), u = se;
|
|
4600
4602
|
return i(), m(u, {
|
|
4601
4603
|
class: "tree-box",
|
|
4602
4604
|
gutter: 20
|
|
@@ -4609,8 +4611,8 @@ function Ls(e, t) {
|
|
|
4609
4611
|
default: r(() => [
|
|
4610
4612
|
c(o, { shadow: "never" }, {
|
|
4611
4613
|
header: r(() => [
|
|
4612
|
-
b("div",
|
|
4613
|
-
|
|
4614
|
+
b("div", $s, [
|
|
4615
|
+
Ts,
|
|
4614
4616
|
c(l, {
|
|
4615
4617
|
type: "text",
|
|
4616
4618
|
onClick: t[0] || (t[0] = () => e.appendNew())
|
|
@@ -4635,8 +4637,8 @@ function Ls(e, t) {
|
|
|
4635
4637
|
onNodeDragEnd: e.handleDragEnd
|
|
4636
4638
|
}), {
|
|
4637
4639
|
default: r(({ node: p, data: d }) => [
|
|
4638
|
-
b("span",
|
|
4639
|
-
d[e.localTreeProps.props.label] ? (i(), h("span",
|
|
4640
|
+
b("span", Fs, [
|
|
4641
|
+
d[e.localTreeProps.props.label] ? (i(), h("span", Os, I(d[e.localTreeProps.props.label]), 1)) : (i(), h("span", Ds, "\u8BF7\u5728\u53F3\u4FA7\u8868\u5355\u4E2D\u4FEE\u6539 --> ")),
|
|
4640
4642
|
b("span", null, [
|
|
4641
4643
|
d[e.localTreeProps.props.label] ? (i(), m(l, {
|
|
4642
4644
|
key: 0,
|
|
@@ -4692,8 +4694,8 @@ function Ls(e, t) {
|
|
|
4692
4694
|
shadow: "never"
|
|
4693
4695
|
}, {
|
|
4694
4696
|
header: r(() => [
|
|
4695
|
-
b("div",
|
|
4696
|
-
b("span", null,
|
|
4697
|
+
b("div", Ps, [
|
|
4698
|
+
b("span", null, I(e.formType), 1)
|
|
4697
4699
|
])
|
|
4698
4700
|
]),
|
|
4699
4701
|
default: r(() => [
|
|
@@ -4712,18 +4714,18 @@ function Ls(e, t) {
|
|
|
4712
4714
|
_: 1
|
|
4713
4715
|
});
|
|
4714
4716
|
}
|
|
4715
|
-
const
|
|
4717
|
+
const Ge = /* @__PURE__ */ C(As, [["render", Rs]]), Ls = {
|
|
4716
4718
|
__name: "tree",
|
|
4717
4719
|
setup(e) {
|
|
4718
4720
|
const t = (l, n) => {
|
|
4719
|
-
const o = Object.keys(
|
|
4721
|
+
const o = Object.keys(Ge.props);
|
|
4720
4722
|
return Object.keys(l).forEach((s) => {
|
|
4721
4723
|
o.indexOf(s) === -1 && delete l[s];
|
|
4722
4724
|
}), l;
|
|
4723
4725
|
};
|
|
4724
4726
|
return (l, n) => (i(), m(ae, { "schema-handler": t }, {
|
|
4725
4727
|
default: r((o) => [
|
|
4726
|
-
c(
|
|
4728
|
+
c(Ge, K(X(o)), null, 16)
|
|
4727
4729
|
]),
|
|
4728
4730
|
_: 1
|
|
4729
4731
|
}));
|
|
@@ -4739,7 +4741,7 @@ const He = /* @__PURE__ */ C($s, [["render", Ls]]), Ms = {
|
|
|
4739
4741
|
return i(), m(o);
|
|
4740
4742
|
};
|
|
4741
4743
|
}
|
|
4742
|
-
},
|
|
4744
|
+
}, Ms = {
|
|
4743
4745
|
title: {
|
|
4744
4746
|
text: ""
|
|
4745
4747
|
},
|
|
@@ -4768,10 +4770,10 @@ const He = /* @__PURE__ */ C($s, [["render", Ls]]), Ms = {
|
|
|
4768
4770
|
},
|
|
4769
4771
|
series: []
|
|
4770
4772
|
};
|
|
4771
|
-
function
|
|
4773
|
+
function js(e, t, l) {
|
|
4772
4774
|
if (l.length === 0)
|
|
4773
4775
|
return {};
|
|
4774
|
-
let n = F({},
|
|
4776
|
+
let n = F({}, Ms);
|
|
4775
4777
|
if (n.title.text = e, Ce(t)) {
|
|
4776
4778
|
const o = [], s = Object.keys(l[0]);
|
|
4777
4779
|
let a = s[0], u = s.filter((d, f) => f > 0), p = t;
|
|
@@ -4795,7 +4797,7 @@ function Ns(e, t, l) {
|
|
|
4795
4797
|
}
|
|
4796
4798
|
return Q(t) && (n = F(n, t)), console.log(111, n), n;
|
|
4797
4799
|
}
|
|
4798
|
-
const
|
|
4800
|
+
const Ns = V({
|
|
4799
4801
|
name: "NumberPanel",
|
|
4800
4802
|
props: {
|
|
4801
4803
|
dataList: {
|
|
@@ -4806,27 +4808,27 @@ const Vs = V({
|
|
|
4806
4808
|
data() {
|
|
4807
4809
|
return {};
|
|
4808
4810
|
}
|
|
4809
|
-
}),
|
|
4810
|
-
function
|
|
4811
|
-
return i(!0), h(k, null,
|
|
4812
|
-
b("div",
|
|
4813
|
-
(i(!0), h(k, null,
|
|
4811
|
+
}), Vs = { class: "number-panel-title" }, qs = { class: "number" }, Us = { class: "name" };
|
|
4812
|
+
function Hs(e, t, l, n, o, s) {
|
|
4813
|
+
return i(!0), h(k, null, A(e.dataList, (a, u) => (i(), h("span", { key: u }, [
|
|
4814
|
+
b("div", Vs, [
|
|
4815
|
+
(i(!0), h(k, null, A(Object.keys(a), (p, d) => (i(), h("div", {
|
|
4814
4816
|
key: d,
|
|
4815
4817
|
class: "title-inner"
|
|
4816
4818
|
}, [
|
|
4817
|
-
b("p",
|
|
4818
|
-
b("p",
|
|
4819
|
+
b("p", qs, I(a[p]), 1),
|
|
4820
|
+
b("p", Us, I(p), 1)
|
|
4819
4821
|
]))), 128))
|
|
4820
4822
|
])
|
|
4821
4823
|
]))), 128);
|
|
4822
4824
|
}
|
|
4823
|
-
const
|
|
4825
|
+
const Gs = /* @__PURE__ */ C(Ns, [["render", Hs], ["__scopeId", "data-v-cc0d8293"]]), Js = {
|
|
4824
4826
|
components: {
|
|
4825
4827
|
Chart: nl,
|
|
4826
|
-
Md:
|
|
4827
|
-
Json:
|
|
4828
|
+
Md: $l,
|
|
4829
|
+
Json: Ae,
|
|
4828
4830
|
Table: ne,
|
|
4829
|
-
Number:
|
|
4831
|
+
Number: Gs,
|
|
4830
4832
|
Html: ""
|
|
4831
4833
|
},
|
|
4832
4834
|
props: {
|
|
@@ -4847,14 +4849,14 @@ const Js = /* @__PURE__ */ C(Vs, [["render", Gs], ["__scopeId", "data-v-cc0d8293
|
|
|
4847
4849
|
};
|
|
4848
4850
|
if (o === "chart")
|
|
4849
4851
|
return {
|
|
4850
|
-
options:
|
|
4852
|
+
options: js(n.id, n.chart, n.data)
|
|
4851
4853
|
};
|
|
4852
4854
|
if (o === "md")
|
|
4853
4855
|
return {
|
|
4854
4856
|
source: n.data
|
|
4855
4857
|
};
|
|
4856
4858
|
if (o === "table") {
|
|
4857
|
-
if (!
|
|
4859
|
+
if (!Ye(n.data))
|
|
4858
4860
|
return { showPagination: !1 };
|
|
4859
4861
|
const s = [];
|
|
4860
4862
|
return n.data[0] && Object.keys(n.data[0]).forEach((a, u) => {
|
|
@@ -4871,21 +4873,21 @@ const Js = /* @__PURE__ */ C(Vs, [["render", Gs], ["__scopeId", "data-v-cc0d8293
|
|
|
4871
4873
|
};
|
|
4872
4874
|
}
|
|
4873
4875
|
};
|
|
4874
|
-
function
|
|
4875
|
-
const a =
|
|
4876
|
+
function zs(e, t, l, n, o, s) {
|
|
4877
|
+
const a = Oe, u = Ot("resize");
|
|
4876
4878
|
return ve((i(), m(a, {
|
|
4877
4879
|
shadow: "never",
|
|
4878
4880
|
class: "part"
|
|
4879
4881
|
}, {
|
|
4880
4882
|
default: r(() => [
|
|
4881
|
-
(i(), m(
|
|
4883
|
+
(i(), m(Ze(n.comptype()), K(X(n.compprops(l.option))), null, 16))
|
|
4882
4884
|
]),
|
|
4883
4885
|
_: 1
|
|
4884
4886
|
})), [
|
|
4885
4887
|
[u, !0]
|
|
4886
4888
|
]);
|
|
4887
4889
|
}
|
|
4888
|
-
const
|
|
4890
|
+
const Ks = /* @__PURE__ */ C(Js, [["render", zs], ["__scopeId", "data-v-a5a65cc1"]]), Ws = /* @__PURE__ */ V({
|
|
4889
4891
|
__name: "index",
|
|
4890
4892
|
props: {
|
|
4891
4893
|
filter: {
|
|
@@ -4902,7 +4904,7 @@ const Ws = /* @__PURE__ */ C(zs, [["render", Ks], ["__scopeId", "data-v-a5a65cc1
|
|
|
4902
4904
|
Dt(() => {
|
|
4903
4905
|
});
|
|
4904
4906
|
const n = P({});
|
|
4905
|
-
|
|
4907
|
+
ze(() => {
|
|
4906
4908
|
var f;
|
|
4907
4909
|
(f = t.filter) == null || f.forEach((_) => {
|
|
4908
4910
|
_.default !== null && (n.value[_.field] = _.default);
|
|
@@ -4926,12 +4928,12 @@ const Ws = /* @__PURE__ */ C(zs, [["render", Ks], ["__scopeId", "data-v-a5a65cc1
|
|
|
4926
4928
|
}
|
|
4927
4929
|
return "/focusbi_report/view/" + f;
|
|
4928
4930
|
}), d = (f) => {
|
|
4929
|
-
|
|
4931
|
+
sn.get(p.value, { params: f }).then(({ data: _ }) => {
|
|
4930
4932
|
a.value = _.filter, u.value = _.dataPart, s.value++;
|
|
4931
4933
|
});
|
|
4932
4934
|
};
|
|
4933
4935
|
return (f, _) => {
|
|
4934
|
-
const T =
|
|
4936
|
+
const T = Oe, $ = pe, U = Fe, q = se;
|
|
4935
4937
|
return i(), m(q, null, {
|
|
4936
4938
|
default: r(() => [
|
|
4937
4939
|
w(a).length > 0 ? (i(), m($, {
|
|
@@ -4961,7 +4963,7 @@ const Ws = /* @__PURE__ */ C(zs, [["render", Ks], ["__scopeId", "data-v-a5a65cc1
|
|
|
4961
4963
|
default: r(() => [
|
|
4962
4964
|
c(q, { gutter: 20 }, {
|
|
4963
4965
|
default: r(() => [
|
|
4964
|
-
(i(!0), h(k, null,
|
|
4966
|
+
(i(!0), h(k, null, A(w(u), (B, W) => (i(), m($, {
|
|
4965
4967
|
key: W,
|
|
4966
4968
|
span: B.col || 24
|
|
4967
4969
|
}, {
|
|
@@ -4972,10 +4974,10 @@ const Ws = /* @__PURE__ */ C(zs, [["render", Ks], ["__scopeId", "data-v-a5a65cc1
|
|
|
4972
4974
|
type: "error"
|
|
4973
4975
|
}, {
|
|
4974
4976
|
default: r(() => [
|
|
4975
|
-
g(
|
|
4977
|
+
g(I(B.errMsg), 1)
|
|
4976
4978
|
]),
|
|
4977
4979
|
_: 2
|
|
4978
|
-
}, 1032, ["title"])) : (i(), m(
|
|
4980
|
+
}, 1032, ["title"])) : (i(), m(Ks, {
|
|
4979
4981
|
key: w(s),
|
|
4980
4982
|
option: B
|
|
4981
4983
|
}, null, 8, ["option"]))
|
|
@@ -4994,7 +4996,7 @@ const Ws = /* @__PURE__ */ C(zs, [["render", Ks], ["__scopeId", "data-v-a5a65cc1
|
|
|
4994
4996
|
};
|
|
4995
4997
|
}
|
|
4996
4998
|
});
|
|
4997
|
-
const
|
|
4999
|
+
const Zs = {
|
|
4998
5000
|
__name: "report",
|
|
4999
5001
|
setup(e) {
|
|
5000
5002
|
const t = useRoute(), l = N(() => {
|
|
@@ -5007,20 +5009,20 @@ const Qs = {
|
|
|
5007
5009
|
});
|
|
5008
5010
|
return (n, o) => (i(), m(ae, { "schema-api": w(l) }, {
|
|
5009
5011
|
default: r((s) => [
|
|
5010
|
-
c(
|
|
5012
|
+
c(Ws, K(X(s)), null, 16)
|
|
5011
5013
|
]),
|
|
5012
5014
|
_: 1
|
|
5013
5015
|
}, 8, ["schema-api"]));
|
|
5014
5016
|
}
|
|
5015
5017
|
};
|
|
5016
|
-
const
|
|
5018
|
+
const Qs = (e) => c("div", null, [e.test]), Xs = {
|
|
5017
5019
|
card: el,
|
|
5018
5020
|
form: J,
|
|
5019
5021
|
table: ne,
|
|
5020
|
-
test:
|
|
5022
|
+
test: Qs,
|
|
5021
5023
|
row: tl,
|
|
5022
5024
|
col: ll
|
|
5023
|
-
},
|
|
5025
|
+
}, Ys = {
|
|
5024
5026
|
card: {
|
|
5025
5027
|
type: "card",
|
|
5026
5028
|
props: {
|
|
@@ -5041,7 +5043,7 @@ const Xs = (e) => c("div", null, [e.test]), Ys = {
|
|
|
5041
5043
|
}
|
|
5042
5044
|
}
|
|
5043
5045
|
};
|
|
5044
|
-
function
|
|
5046
|
+
function ea(e) {
|
|
5045
5047
|
const t = Object.assign({}, e), l = t.type.split(".").reverse(), n = t.span || 24;
|
|
5046
5048
|
delete t.span;
|
|
5047
5049
|
let o = {
|
|
@@ -5053,9 +5055,9 @@ function ta(e) {
|
|
|
5053
5055
|
type: l[s],
|
|
5054
5056
|
children: [o]
|
|
5055
5057
|
};
|
|
5056
|
-
return o.span = n,
|
|
5058
|
+
return o.span = n, Me([o]);
|
|
5057
5059
|
}
|
|
5058
|
-
function
|
|
5060
|
+
function Me(e) {
|
|
5059
5061
|
const t = {
|
|
5060
5062
|
type: "row",
|
|
5061
5063
|
props: {
|
|
@@ -5082,15 +5084,15 @@ function Le(e) {
|
|
|
5082
5084
|
t.children.push({
|
|
5083
5085
|
type: "col",
|
|
5084
5086
|
props: o,
|
|
5085
|
-
children:
|
|
5087
|
+
children: ea(n)
|
|
5086
5088
|
});
|
|
5087
5089
|
return;
|
|
5088
5090
|
}
|
|
5089
5091
|
n = F({
|
|
5090
5092
|
props: {}
|
|
5091
|
-
},
|
|
5093
|
+
}, Ys[n.type] || {}, n);
|
|
5092
5094
|
const s = kt(n.children);
|
|
5093
|
-
s.length && (n.children =
|
|
5095
|
+
s.length && (n.children = Me(s)), t.children.push({
|
|
5094
5096
|
type: "col",
|
|
5095
5097
|
props: o,
|
|
5096
5098
|
children: [n]
|
|
@@ -5098,31 +5100,31 @@ function Le(e) {
|
|
|
5098
5100
|
}), [t];
|
|
5099
5101
|
}
|
|
5100
5102
|
function kt(e) {
|
|
5101
|
-
return
|
|
5103
|
+
return Ye(e) ? e : Q(e) ? [e] : [];
|
|
5102
5104
|
}
|
|
5103
5105
|
let Se = {};
|
|
5104
5106
|
const Et = (e) => {
|
|
5105
|
-
const t =
|
|
5107
|
+
const t = Xs[e.type] || Se[e.type] || e.type;
|
|
5106
5108
|
return Lt(t, e.props, {
|
|
5107
5109
|
default: () => kt(e.children).map((l) => Et(l))
|
|
5108
5110
|
});
|
|
5109
|
-
},
|
|
5111
|
+
}, ta = (e) => (Object.keys(Se).length === 0 && (Se = Rt().appContext.components), Me(Object.values(e.schema)).map((l) => Et(l))), la = {
|
|
5110
5112
|
__name: "custom",
|
|
5111
5113
|
setup(e) {
|
|
5112
5114
|
const t = P([]), l = (n, o) => (t.value = Mt(n), n);
|
|
5113
5115
|
return (n, o) => (i(), m(ae, { "schema-handler": l }, {
|
|
5114
5116
|
default: r(() => [
|
|
5115
|
-
c(w(
|
|
5117
|
+
c(w(ta), { schema: w(t) }, null, 8, ["schema"])
|
|
5116
5118
|
]),
|
|
5117
5119
|
_: 1
|
|
5118
5120
|
}));
|
|
5119
5121
|
}
|
|
5120
5122
|
};
|
|
5121
5123
|
let ee = {};
|
|
5122
|
-
function
|
|
5124
|
+
function yi(e) {
|
|
5123
5125
|
ee = e;
|
|
5124
5126
|
}
|
|
5125
|
-
const
|
|
5127
|
+
const na = (e) => {
|
|
5126
5128
|
const t = (l) => {
|
|
5127
5129
|
const n = "./views/" + l + ".vue";
|
|
5128
5130
|
return ee && ee[n] && ee[n].default ? ee[n].default : (console.error(`\u81EA\u5B9A\u4E49\u7EC4\u4EF6\u4E0D\u5B58\u5728 ${e.name} ${e.view}`), ye);
|
|
@@ -5138,26 +5140,26 @@ const oa = (e) => {
|
|
|
5138
5140
|
case L.localComp:
|
|
5139
5141
|
return t(e.view || "");
|
|
5140
5142
|
case L.tree:
|
|
5141
|
-
return
|
|
5143
|
+
return Ls;
|
|
5142
5144
|
case L.report:
|
|
5143
|
-
return
|
|
5145
|
+
return Zs;
|
|
5144
5146
|
case L.customSchema:
|
|
5145
|
-
return
|
|
5147
|
+
return la;
|
|
5146
5148
|
}
|
|
5147
5149
|
return ye;
|
|
5148
5150
|
};
|
|
5149
|
-
function
|
|
5151
|
+
function oa(e) {
|
|
5150
5152
|
let t = e.path;
|
|
5151
5153
|
return e.type === D.menu && e.page_type === L.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;
|
|
5152
5154
|
}
|
|
5153
|
-
function
|
|
5155
|
+
function sa(e) {
|
|
5154
5156
|
return (e.path + e.name).split("/").filter((t) => t).join("_");
|
|
5155
5157
|
}
|
|
5156
5158
|
const wt = (e) => {
|
|
5157
5159
|
const t = e.type !== D.page, l = {
|
|
5158
|
-
path:
|
|
5159
|
-
name: e.id + "_" +
|
|
5160
|
-
component:
|
|
5160
|
+
path: oa(e),
|
|
5161
|
+
name: e.id + "_" + sa(e) + "_" + e.path.replaceAll("/", "_"),
|
|
5162
|
+
component: na(e),
|
|
5161
5163
|
meta: {
|
|
5162
5164
|
id: e.id,
|
|
5163
5165
|
pageId: e.id,
|
|
@@ -5226,7 +5228,7 @@ const wt = (e) => {
|
|
|
5226
5228
|
}
|
|
5227
5229
|
}
|
|
5228
5230
|
return l;
|
|
5229
|
-
},
|
|
5231
|
+
}, aa = (e) => {
|
|
5230
5232
|
const t = [];
|
|
5231
5233
|
return e.forEach((l) => {
|
|
5232
5234
|
const n = {
|
|
@@ -5239,18 +5241,18 @@ const wt = (e) => {
|
|
|
5239
5241
|
}), t.push(n);
|
|
5240
5242
|
}), t;
|
|
5241
5243
|
};
|
|
5242
|
-
function
|
|
5244
|
+
function ia(e) {
|
|
5243
5245
|
e.beforeEach(async (t, l, n) => {
|
|
5244
5246
|
if (_t().indexOf(t.path) !== -1) {
|
|
5245
5247
|
n();
|
|
5246
5248
|
return;
|
|
5247
5249
|
}
|
|
5248
|
-
if (
|
|
5250
|
+
if (bs()) {
|
|
5249
5251
|
n();
|
|
5250
5252
|
return;
|
|
5251
5253
|
}
|
|
5252
5254
|
await S.dispatch("user/info");
|
|
5253
|
-
const o = await S.dispatch("user/loadRemoteRoutes"), s =
|
|
5255
|
+
const o = await S.dispatch("user/loadRemoteRoutes"), s = aa(o);
|
|
5254
5256
|
s.forEach((a) => {
|
|
5255
5257
|
a.routes.forEach((u) => {
|
|
5256
5258
|
e.addRoute({
|
|
@@ -5262,7 +5264,7 @@ function ra(e) {
|
|
|
5262
5264
|
}), e.addRoute({ name: "404", path: "/:pathMatch(.*)*", redirect: "/404", hidden: !0 }), S.commit("user/updateRemoteRouter", s), await e.replace(t), n();
|
|
5263
5265
|
});
|
|
5264
5266
|
}
|
|
5265
|
-
function
|
|
5267
|
+
function ra(e) {
|
|
5266
5268
|
e.beforeEach(async (t, l, n) => {
|
|
5267
5269
|
var u;
|
|
5268
5270
|
const s = [S.state.settings.title || ""], a = t.matched.length;
|
|
@@ -5275,11 +5277,11 @@ function ua(e) {
|
|
|
5275
5277
|
Object.keys(t.meta).length > 0 && await S.dispatch("app/setCurrentMeta", t.meta);
|
|
5276
5278
|
});
|
|
5277
5279
|
}
|
|
5278
|
-
function
|
|
5279
|
-
|
|
5280
|
+
function ua(e) {
|
|
5281
|
+
ys(e), hs(e), ia(e), ra(e);
|
|
5280
5282
|
}
|
|
5281
|
-
|
|
5282
|
-
const
|
|
5283
|
+
ua(oe);
|
|
5284
|
+
const ca = {
|
|
5283
5285
|
beforeMount(e, t) {
|
|
5284
5286
|
e.clickOutsideEvent = function(l) {
|
|
5285
5287
|
e === l.target || e.contains(l.target) || t.value(l, e);
|
|
@@ -5288,23 +5290,23 @@ const pa = {
|
|
|
5288
5290
|
unmounted(e) {
|
|
5289
5291
|
document.body.removeEventListener("click", e.clickOutsideEvent);
|
|
5290
5292
|
}
|
|
5291
|
-
}, z = Il(),
|
|
5293
|
+
}, z = Il(), pa = {
|
|
5292
5294
|
mounted: (e, t) => {
|
|
5293
5295
|
e !== null && (t.value, e.oncontextmenu = (l) => {
|
|
5294
5296
|
l.preventDefault(), l.stopPropagation(), l.cancelBubble = !0, t.value && z.emit("right-click", { event: l, data: t.value });
|
|
5295
5297
|
});
|
|
5296
5298
|
}
|
|
5297
|
-
},
|
|
5299
|
+
}, da = {
|
|
5298
5300
|
mounted(e) {
|
|
5299
5301
|
}
|
|
5300
5302
|
};
|
|
5301
|
-
function
|
|
5303
|
+
function Je(e, t) {
|
|
5302
5304
|
let l = e[`offset${t}`], n = e.offsetParent;
|
|
5303
5305
|
for (; n; )
|
|
5304
5306
|
l += n[`offset${t}`], n = n.offsetParent;
|
|
5305
5307
|
return l;
|
|
5306
5308
|
}
|
|
5307
|
-
const
|
|
5309
|
+
const ma = {
|
|
5308
5310
|
mounted: (e, t) => {
|
|
5309
5311
|
if (e === null || !t.value.dev)
|
|
5310
5312
|
return;
|
|
@@ -5315,7 +5317,7 @@ const fa = {
|
|
|
5315
5317
|
l.classList.add("devtool-hover");
|
|
5316
5318
|
const n = document.createElement("i");
|
|
5317
5319
|
n.className = "devtool-item-wrapper", l.onmouseover = () => {
|
|
5318
|
-
n.style.height = l.offsetHeight + 30 + "px", n.style.width = l.offsetWidth + 30 + "px", n.style.top =
|
|
5320
|
+
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";
|
|
5319
5321
|
};
|
|
5320
5322
|
const o = document.createElement("span");
|
|
5321
5323
|
o.className = "dev-action-edit", o.title = "\u7F16\u8F91";
|
|
@@ -5330,46 +5332,46 @@ const fa = {
|
|
|
5330
5332
|
z.emit("dev-action", { event: p, data: { type: "del", devId: t.value.devId } });
|
|
5331
5333
|
}, n.appendChild(a), l.insertBefore(n, l.firstChild);
|
|
5332
5334
|
}
|
|
5333
|
-
},
|
|
5335
|
+
}, fa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5334
5336
|
__proto__: null,
|
|
5335
|
-
outClick:
|
|
5336
|
-
rightClick:
|
|
5337
|
-
resize:
|
|
5338
|
-
devtool:
|
|
5337
|
+
outClick: ca,
|
|
5338
|
+
rightClick: pa,
|
|
5339
|
+
resize: da,
|
|
5340
|
+
devtool: ma
|
|
5339
5341
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5340
5342
|
let re;
|
|
5341
|
-
function
|
|
5342
|
-
return e ?
|
|
5343
|
+
function vi(e) {
|
|
5344
|
+
return e ? Re(F(de.axios, e)) : re;
|
|
5343
5345
|
}
|
|
5344
|
-
function
|
|
5345
|
-
const t = F(de, e), l = jt(
|
|
5346
|
+
function gi(e) {
|
|
5347
|
+
const t = F(de, e), l = jt(Tl), n = ka(t), o = t.plugins || [];
|
|
5346
5348
|
o.unshift(n), o.forEach((s) => {
|
|
5347
|
-
|
|
5348
|
-
}), t != null && t.mock &&
|
|
5349
|
-
"X-Token":
|
|
5349
|
+
ga(l, s);
|
|
5350
|
+
}), t != null && t.mock && Vl(), re = Re(t.axios), S.dispatch("setHttp", re).then(), S.dispatch("settings/updateSettings", e == null ? void 0 : e.settings).then(), l.config.globalProperties.$http = re, l.config.globalProperties.$router = oe, window.App = l, window.OmsOptions = t, ol(() => ({
|
|
5351
|
+
"X-Token": Pe()
|
|
5350
5352
|
})), oe.isReady().then(() => l.mount("#app"));
|
|
5351
5353
|
}
|
|
5352
|
-
function
|
|
5354
|
+
function ha(e, t = {}) {
|
|
5353
5355
|
Object.keys(t).forEach((l) => {
|
|
5354
5356
|
e.component(l, t[l]);
|
|
5355
5357
|
});
|
|
5356
5358
|
}
|
|
5357
|
-
function
|
|
5359
|
+
function ba(e = []) {
|
|
5358
5360
|
e.forEach((t) => {
|
|
5359
5361
|
oe.addRoute(t);
|
|
5360
5362
|
}), S.commit("user/setCustomRoutes", e);
|
|
5361
5363
|
}
|
|
5362
|
-
function
|
|
5364
|
+
function _a(e, t) {
|
|
5363
5365
|
t.forEach((l) => {
|
|
5364
5366
|
Q(l) && (l = [l]), e.use(...l);
|
|
5365
5367
|
});
|
|
5366
5368
|
}
|
|
5367
|
-
function
|
|
5369
|
+
function ya(e, t = {}) {
|
|
5368
5370
|
Object.keys(t).forEach((l) => {
|
|
5369
5371
|
e.directive(l, t[l]);
|
|
5370
5372
|
});
|
|
5371
5373
|
}
|
|
5372
|
-
function
|
|
5374
|
+
function va(e = {}) {
|
|
5373
5375
|
const t = ["app", "settings", "user"];
|
|
5374
5376
|
Object.keys(e).forEach((l) => {
|
|
5375
5377
|
if (t.indexOf(l) !== -1) {
|
|
@@ -5379,39 +5381,39 @@ function ga(e = {}) {
|
|
|
5379
5381
|
S.registerModule(l, e[l]);
|
|
5380
5382
|
});
|
|
5381
5383
|
}
|
|
5382
|
-
function
|
|
5383
|
-
|
|
5384
|
+
function ga(e, t) {
|
|
5385
|
+
ha(e, t.components || {}), ba(t.routes || []), _a(e, t.use || []), ya(e, t.directives || {}), va(t.storeModules || {}), rt(t.mockApis || []);
|
|
5384
5386
|
}
|
|
5385
|
-
function
|
|
5387
|
+
function ka(e) {
|
|
5386
5388
|
var t;
|
|
5387
5389
|
return {
|
|
5388
5390
|
components: { VIcon: sl },
|
|
5389
|
-
directives:
|
|
5391
|
+
directives: fa,
|
|
5390
5392
|
use: [
|
|
5391
5393
|
S,
|
|
5392
5394
|
oe,
|
|
5393
|
-
[Qt, { locale:
|
|
5395
|
+
[Qt, { locale: tt, ...(t = e.settings) == null ? void 0 : t.ElementPlus }]
|
|
5394
5396
|
]
|
|
5395
5397
|
};
|
|
5396
5398
|
}
|
|
5397
5399
|
export {
|
|
5398
|
-
|
|
5400
|
+
Wo as BaseSso,
|
|
5399
5401
|
ye as Container,
|
|
5400
|
-
|
|
5402
|
+
Zo as DingTalk,
|
|
5401
5403
|
ht as Layout,
|
|
5402
5404
|
D as MenuType,
|
|
5403
|
-
|
|
5404
|
-
|
|
5405
|
+
Ql as Message,
|
|
5406
|
+
qe as MessageBox,
|
|
5405
5407
|
L as PageType,
|
|
5406
|
-
|
|
5407
|
-
|
|
5408
|
+
Xo as allSso,
|
|
5409
|
+
gi as createAdmin,
|
|
5408
5410
|
z as eventBus,
|
|
5409
|
-
|
|
5411
|
+
an as getCmp,
|
|
5410
5412
|
re as http,
|
|
5411
|
-
|
|
5412
|
-
|
|
5413
|
-
|
|
5414
|
-
|
|
5415
|
-
|
|
5413
|
+
Re as instance,
|
|
5414
|
+
yi as regViews,
|
|
5415
|
+
_i as setCmp,
|
|
5416
|
+
aa as transRemoteModules,
|
|
5417
|
+
vi as useHttp
|
|
5416
5418
|
};
|
|
5417
5419
|
//# sourceMappingURL=index.es.js.map
|