@okiss/oms 0.0.34 → 0.0.35
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,22 +1,22 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var R = (e, t, l) => (
|
|
4
|
-
import { defineComponent as V, onBeforeMount as
|
|
5
|
-
import { addNewStyle as
|
|
1
|
+
var xt = Object.defineProperty;
|
|
2
|
+
var Bt = (e, t, l) => t in e ? xt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l;
|
|
3
|
+
var R = (e, t, l) => (Bt(e, typeof t != "symbol" ? t + "" : t, l), l);
|
|
4
|
+
import { defineComponent as V, onBeforeMount as Je, provide as At, resolveComponent as v, openBlock as i, createBlock as m, createVNode as c, computed as N, createTextVNode as g, withCtx as r, TransitionGroup as It, createElementBlock as h, Fragment as k, renderList as I, toDisplayString as A, 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 ze, popScopeId as Ke, resolveDynamicComponent as We, normalizeProps as K, guardReactiveProps as X, unref as w, withDirectives as ve, vModelText as Me, 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 Ze, showEleByClassName as Qe, waterMarker as Ht, Cache as fe, isExternal as je, getQueryParam as Gt, createIFrame as Jt, strVarReplace as Z, obj2Param as zt, isObject as Q, effectDataTrans as Kt, isArray as Xe } from "@okiss/utils";
|
|
6
6
|
import he from "mockjs";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
7
|
+
import Wt, { cloneDeep as y, merge as F, get as le, unset as Ye } from "lodash";
|
|
8
|
+
import et from "element-plus/lib/locale/lang/zh-cn";
|
|
9
|
+
import xe from "axios";
|
|
10
10
|
import M from "js-cookie";
|
|
11
|
-
import { createStore as
|
|
12
|
-
import
|
|
11
|
+
import { createStore as Zt, useStore as tt, mapGetters as Be } from "vuex";
|
|
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 Ae, JsonView as
|
|
15
|
+
import { VForm as J, VBtn as Ae, JsonView as Ie, 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
|
-
import { useRoute as ce, onBeforeRouteLeave as
|
|
19
|
-
import { ElBreadcrumbItem as
|
|
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 lt, ElButton as ue, ElOption as $e, ElSelect as Te, ElFormItem as nt, ElForm as ot, ElCol as pe, ElDrawer as st, 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, ElAlter as xl, ElAlert as at, ElTree as Bl, ElCard as Fe } 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 Al 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";
|
|
@@ -35,20 +35,21 @@ import "element-plus/es/components/divider/style/css";
|
|
|
35
35
|
import "element-plus/es/components/container/style/css";
|
|
36
36
|
import "element-plus/es/components/aside/style/css";
|
|
37
37
|
import "element-plus/es/components/main/style/css";
|
|
38
|
-
import
|
|
38
|
+
import Il from "mitt";
|
|
39
39
|
import "element-plus/es/components/scrollbar/style/css";
|
|
40
40
|
import "element-plus/es/components/menu/style/css";
|
|
41
41
|
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
|
|
45
|
+
import { useEventListener as $l } from "@vueuse/core";
|
|
46
|
+
import "element-plus/es/components/alter/style/css";
|
|
46
47
|
import "element-plus/es/components/alert/style/css";
|
|
47
48
|
import "element-plus/es/components/card/style/css";
|
|
48
49
|
import "element-plus/es/components/tree/style/css";
|
|
49
|
-
import
|
|
50
|
+
import Tl from "vue3-markdown-it";
|
|
50
51
|
import "element-plus/es/components/message/style/css";
|
|
51
|
-
import
|
|
52
|
+
import ge from "nprogress";
|
|
52
53
|
import "nprogress/nprogress.css";
|
|
53
54
|
String.prototype.format || (String.prototype.format = function() {
|
|
54
55
|
const e = arguments;
|
|
@@ -56,26 +57,26 @@ String.prototype.format || (String.prototype.format = function() {
|
|
|
56
57
|
return typeof e[l] < "u" ? e[l] : t;
|
|
57
58
|
});
|
|
58
59
|
});
|
|
59
|
-
const
|
|
60
|
+
const Fl = /* @__PURE__ */ V({
|
|
60
61
|
__name: "App",
|
|
61
62
|
setup(e) {
|
|
62
63
|
var t, l, n, o;
|
|
63
|
-
return
|
|
64
|
+
return Je(() => {
|
|
64
65
|
const s = document.getElementById("preloader");
|
|
65
|
-
s !== null && (document.body.removeChild(s),
|
|
66
|
+
s !== null && (document.body.removeChild(s), Nt("test-icon", "//at.alicdn.com/t/font_2246548_zclaqxwmzq8.css"), Vt(`.iconfont {
|
|
66
67
|
font-size: 19px;
|
|
67
68
|
font-style: normal;
|
|
68
69
|
-webkit-font-smoothing: antialiased;
|
|
69
70
|
font-family: iconfont !important;
|
|
70
71
|
}`));
|
|
71
|
-
}), (l = (t = window == null ? void 0 : window.OmsOptions) == null ? void 0 : t.form) != null && l.vsPath &&
|
|
72
|
+
}), (l = (t = window == null ? void 0 : window.OmsOptions) == null ? void 0 : t.form) != null && l.vsPath && At("vsPath", (o = (n = window == null ? void 0 : window.OmsOptions) == null ? void 0 : n.form) == null ? void 0 : o.vsPath), (s, a) => {
|
|
72
73
|
const u = v("router-view");
|
|
73
74
|
return i(), m(u);
|
|
74
75
|
};
|
|
75
76
|
}
|
|
76
77
|
});
|
|
77
78
|
var Y = /* @__PURE__ */ ((e) => (e.GET = "get", e.POST = "post", e.DELETE = "delete", e.FETCH = "fetch", e.OPTION = "option", e.PUT = "put", e))(Y || {});
|
|
78
|
-
const
|
|
79
|
+
const Ol = {
|
|
79
80
|
saveApi: "/save",
|
|
80
81
|
afterSubmit: "",
|
|
81
82
|
afterReset: "goback",
|
|
@@ -407,7 +408,7 @@ const Tl = {
|
|
|
407
408
|
info: "\u5728\u901A\u7528\u8868\u5355\u63A7\u4EF6\u65E0\u6CD5\u6EE1\u8DB3\u9700\u6C42\u65F6, \u53EF\u4EE5\u7F16\u5199 `template` \u6A21\u677F\u7EC4\u4EF6"
|
|
408
409
|
}
|
|
409
410
|
]
|
|
410
|
-
},
|
|
411
|
+
}, Ne = [
|
|
411
412
|
{
|
|
412
413
|
type: "jump",
|
|
413
414
|
text: "\u8DF3\u8F6C",
|
|
@@ -462,7 +463,7 @@ const Tl = {
|
|
|
462
463
|
type: "success"
|
|
463
464
|
}
|
|
464
465
|
}
|
|
465
|
-
],
|
|
466
|
+
], Dl = {
|
|
466
467
|
exportAble: !0,
|
|
467
468
|
filter: [
|
|
468
469
|
{
|
|
@@ -528,7 +529,7 @@ const Tl = {
|
|
|
528
529
|
label: "\u4FE1\u606F"
|
|
529
530
|
}
|
|
530
531
|
],
|
|
531
|
-
batchButton:
|
|
532
|
+
batchButton: Ne,
|
|
532
533
|
rowButton: [
|
|
533
534
|
{
|
|
534
535
|
type: "jump",
|
|
@@ -559,7 +560,7 @@ const Tl = {
|
|
|
559
560
|
}
|
|
560
561
|
],
|
|
561
562
|
normalButton: [
|
|
562
|
-
...
|
|
563
|
+
...Wt.cloneDeep(Ne),
|
|
563
564
|
{
|
|
564
565
|
type: "jump",
|
|
565
566
|
target: "/user/form",
|
|
@@ -571,7 +572,7 @@ const Tl = {
|
|
|
571
572
|
],
|
|
572
573
|
selectedNotice: "\u5F53\u524D\u5171\u52FE\u9009: {selectedCount} \u6761",
|
|
573
574
|
listApi: "/user/list"
|
|
574
|
-
},
|
|
575
|
+
}, Pl = {
|
|
575
576
|
code: 0,
|
|
576
577
|
data: {
|
|
577
578
|
"list|0-100": [
|
|
@@ -592,7 +593,7 @@ const Tl = {
|
|
|
592
593
|
"page|1-5": 2
|
|
593
594
|
}
|
|
594
595
|
}
|
|
595
|
-
},
|
|
596
|
+
}, Rl = {
|
|
596
597
|
afterSubmit: "",
|
|
597
598
|
afterReset: "goback",
|
|
598
599
|
formItems: [
|
|
@@ -629,7 +630,7 @@ const Tl = {
|
|
|
629
630
|
label: "span"
|
|
630
631
|
}
|
|
631
632
|
]
|
|
632
|
-
},
|
|
633
|
+
}, Ll = {
|
|
633
634
|
afterSubmit: "",
|
|
634
635
|
afterReset: "",
|
|
635
636
|
formItems: [
|
|
@@ -668,7 +669,7 @@ const Tl = {
|
|
|
668
669
|
label: "span"
|
|
669
670
|
}
|
|
670
671
|
]
|
|
671
|
-
},
|
|
672
|
+
}, Ml = { form: Ol, table: Dl, listMock: Pl, layoutForm: Rl, layoutSection: Ll }, jl = [
|
|
672
673
|
{
|
|
673
674
|
method: Y.POST,
|
|
674
675
|
url: "/login",
|
|
@@ -712,11 +713,11 @@ const Tl = {
|
|
|
712
713
|
{
|
|
713
714
|
url: "/user/list",
|
|
714
715
|
method: Y.GET,
|
|
715
|
-
response: (e) =>
|
|
716
|
+
response: (e) => Ml.listMock
|
|
716
717
|
}
|
|
717
|
-
],
|
|
718
|
-
...
|
|
719
|
-
],
|
|
718
|
+
], Nl = [
|
|
719
|
+
...jl
|
|
720
|
+
], Vl = {
|
|
720
721
|
baseURL: "/api",
|
|
721
722
|
withCredentials: !0,
|
|
722
723
|
timeout: 5e3,
|
|
@@ -735,7 +736,7 @@ const Tl = {
|
|
|
735
736
|
ElementPlus: {
|
|
736
737
|
size: "default",
|
|
737
738
|
zIndex: 3e3,
|
|
738
|
-
locale:
|
|
739
|
+
locale: et
|
|
739
740
|
},
|
|
740
741
|
nav: [],
|
|
741
742
|
whiteRoutes: ["/login"],
|
|
@@ -747,48 +748,48 @@ const Tl = {
|
|
|
747
748
|
},
|
|
748
749
|
serviceOffLineNotice: "\u5F53\u524D\u9875\u9762\u529F\u80FD\u6B63\u5728\u7EF4\u62A4, \u8BF7\u7A0D\u540E\u518D\u8BD5~~~"
|
|
749
750
|
}, de = {
|
|
750
|
-
axios:
|
|
751
|
+
axios: Vl,
|
|
751
752
|
settings: it,
|
|
752
753
|
plugins: [],
|
|
753
754
|
mock: !1
|
|
754
|
-
},
|
|
755
|
+
}, ke = {};
|
|
755
756
|
function rt(e) {
|
|
756
757
|
e.forEach((t) => {
|
|
757
758
|
const l = ut(t);
|
|
758
|
-
|
|
759
|
+
ke[`${t.method}::${l}`] = t;
|
|
759
760
|
});
|
|
760
761
|
}
|
|
761
|
-
rt(
|
|
762
|
+
rt(Nl);
|
|
762
763
|
function ut(e) {
|
|
763
764
|
var n;
|
|
764
765
|
let t = e.url, l = e.baseURL || ((n = de.axios) == null ? void 0 : n.baseURL);
|
|
765
766
|
return l || (l = ""), typeof t == "string" ? (t = ("/" + l + t).split("/").filter((o) => o).join("/"), t += "(|\\?.*)$", new RegExp(t)) : t;
|
|
766
767
|
}
|
|
767
|
-
function
|
|
768
|
-
Object.keys(
|
|
769
|
-
const t =
|
|
768
|
+
function ql() {
|
|
769
|
+
Object.keys(ke).forEach((e) => {
|
|
770
|
+
const t = ke[e], l = ut(t);
|
|
770
771
|
he.mock(l, t.method, function(n) {
|
|
771
|
-
const { url: o, type: s, body: a } = n, u =
|
|
772
|
-
return
|
|
772
|
+
const { url: o, type: s, body: a } = n, u = qt(o), p = a ? JSON.parse(a) : {}, d = t.response({ query: u, data: p }), f = he.mock(d);
|
|
773
|
+
return Ut(o, { type: s, query: u, data: p, response: f }), he.mock(f);
|
|
773
774
|
});
|
|
774
775
|
}), console.log("%c ApiMock is stared! ", "background: #606060; color: #fff; padding: 4px 5px; border-radius: 1px;");
|
|
775
776
|
}
|
|
776
|
-
const
|
|
777
|
-
function
|
|
778
|
-
return M.get(
|
|
777
|
+
const Oe = "oms:token";
|
|
778
|
+
function De() {
|
|
779
|
+
return M.get(Oe) || "";
|
|
779
780
|
}
|
|
780
|
-
function
|
|
781
|
+
function Ul(e) {
|
|
781
782
|
const t = new Date(new Date().getTime() + (S.state.settings.tokenExpire || 864e5));
|
|
782
|
-
return M.set(
|
|
783
|
+
return M.set(Oe, e, { expires: t });
|
|
783
784
|
}
|
|
784
785
|
function ct() {
|
|
785
|
-
return M.remove(
|
|
786
|
+
return M.remove(Oe);
|
|
786
787
|
}
|
|
787
|
-
const
|
|
788
|
+
const Hl = {
|
|
788
789
|
name: "",
|
|
789
790
|
nickname: "",
|
|
790
791
|
avatar: "",
|
|
791
|
-
token:
|
|
792
|
+
token: De(),
|
|
792
793
|
customRouter: [],
|
|
793
794
|
remoteRouter: [],
|
|
794
795
|
menuRoutes: [],
|
|
@@ -797,12 +798,12 @@ const ql = {
|
|
|
797
798
|
roleIds: [],
|
|
798
799
|
path: "",
|
|
799
800
|
env: ""
|
|
800
|
-
},
|
|
801
|
+
}, Gl = {
|
|
801
802
|
namespaced: !0,
|
|
802
|
-
state:
|
|
803
|
+
state: Hl,
|
|
803
804
|
mutations: {
|
|
804
805
|
updateToken(e, t) {
|
|
805
|
-
e.token = t,
|
|
806
|
+
e.token = t, Ul(t);
|
|
806
807
|
},
|
|
807
808
|
removeToken(e) {
|
|
808
809
|
e.token = "", ct();
|
|
@@ -821,7 +822,7 @@ const ql = {
|
|
|
821
822
|
name: "",
|
|
822
823
|
nickname: "",
|
|
823
824
|
avatar: "",
|
|
824
|
-
token:
|
|
825
|
+
token: De(),
|
|
825
826
|
customRouter: [],
|
|
826
827
|
remoteRouter: [],
|
|
827
828
|
menuRoutes: [],
|
|
@@ -887,9 +888,9 @@ const ql = {
|
|
|
887
888
|
});
|
|
888
889
|
}
|
|
889
890
|
}
|
|
890
|
-
},
|
|
891
|
+
}, Jl = y(it), zl = {
|
|
891
892
|
namespaced: !0,
|
|
892
|
-
state:
|
|
893
|
+
state: Jl,
|
|
893
894
|
mutations: {
|
|
894
895
|
updateSettings(e, t) {
|
|
895
896
|
e = F(e, t);
|
|
@@ -900,7 +901,7 @@ const ql = {
|
|
|
900
901
|
e("updateSettings", l);
|
|
901
902
|
}
|
|
902
903
|
}
|
|
903
|
-
},
|
|
904
|
+
}, Kl = {
|
|
904
905
|
sidebar: {
|
|
905
906
|
opened: M.get("sidebarStatus") ? !!M.get("sidebarStatus") : !0,
|
|
906
907
|
withoutAnimation: !1
|
|
@@ -909,9 +910,9 @@ const ql = {
|
|
|
909
910
|
pages: {},
|
|
910
911
|
currentRouteMeta: {},
|
|
911
912
|
builderSchema: {}
|
|
912
|
-
},
|
|
913
|
+
}, Wl = {
|
|
913
914
|
namespaced: !0,
|
|
914
|
-
state:
|
|
915
|
+
state: Kl,
|
|
915
916
|
mutations: {
|
|
916
917
|
TOGGLE_SIDEBAR: (e) => {
|
|
917
918
|
e.sidebar.opened = !e.sidebar.opened, e.sidebar.withoutAnimation = !1, e.sidebar.opened ? M.set("sidebarStatus", "1") : M.set("sidebarStatus", "0");
|
|
@@ -952,11 +953,11 @@ const ql = {
|
|
|
952
953
|
e("SET_BUILDER_SCHEMA", t);
|
|
953
954
|
}
|
|
954
955
|
}
|
|
955
|
-
},
|
|
956
|
+
}, Zl = {
|
|
956
957
|
currentCellItem: {}
|
|
957
|
-
},
|
|
958
|
+
}, Ql = {
|
|
958
959
|
namespaced: !0,
|
|
959
|
-
state:
|
|
960
|
+
state: Zl,
|
|
960
961
|
mutations: {
|
|
961
962
|
SET_CURRENT_CELLITEM: (e, t) => {
|
|
962
963
|
e.currentCellItem = t;
|
|
@@ -967,7 +968,7 @@ const ql = {
|
|
|
967
968
|
e("SET_CURRENT_CELLITEM", t);
|
|
968
969
|
}
|
|
969
970
|
}
|
|
970
|
-
}, S =
|
|
971
|
+
}, S = Zt({
|
|
971
972
|
state: void 0,
|
|
972
973
|
getters: {
|
|
973
974
|
http: (e) => e.http,
|
|
@@ -994,12 +995,12 @@ const ql = {
|
|
|
994
995
|
}
|
|
995
996
|
},
|
|
996
997
|
modules: {
|
|
997
|
-
user:
|
|
998
|
-
settings:
|
|
999
|
-
app:
|
|
1000
|
-
builderSchema:
|
|
998
|
+
user: Gl,
|
|
999
|
+
settings: zl,
|
|
1000
|
+
app: Wl,
|
|
1001
|
+
builderSchema: Ql
|
|
1001
1002
|
}
|
|
1002
|
-
}),
|
|
1003
|
+
}), Xl = Xt, Ve = Yt, Yl = xe.CancelToken, ie = {
|
|
1003
1004
|
taskList: {},
|
|
1004
1005
|
cacheList: /* @__PURE__ */ new Map(),
|
|
1005
1006
|
uniqueId(e) {
|
|
@@ -1035,16 +1036,16 @@ const ql = {
|
|
|
1035
1036
|
const t = this.uniqueId(e);
|
|
1036
1037
|
return this.cacheList.delete(t);
|
|
1037
1038
|
}
|
|
1038
|
-
},
|
|
1039
|
+
}, en = {
|
|
1039
1040
|
onFulfilled: function(e) {
|
|
1040
|
-
return e.cacheEnable === !1 || (ie.pending(e) && ie.delTask(e), e.cancelToken = new
|
|
1041
|
+
return e.cacheEnable === !1 || (ie.pending(e) && ie.delTask(e), e.cancelToken = new Yl((t) => {
|
|
1041
1042
|
ie.addTask(e, t);
|
|
1042
1043
|
})), e;
|
|
1043
1044
|
},
|
|
1044
1045
|
onRejected(e) {
|
|
1045
1046
|
return Promise.reject(e);
|
|
1046
1047
|
}
|
|
1047
|
-
},
|
|
1048
|
+
}, tn = {
|
|
1048
1049
|
onFulfilled: function(e) {
|
|
1049
1050
|
return e.config.cacheEnable === !1 || e.config.method === "get" && Object.keys(e.data).length > 0 && ie.addCache(e.config, e.data), e;
|
|
1050
1051
|
},
|
|
@@ -1052,30 +1053,30 @@ const ql = {
|
|
|
1052
1053
|
return Promise.reject(e);
|
|
1053
1054
|
}
|
|
1054
1055
|
};
|
|
1055
|
-
function
|
|
1056
|
+
function ln() {
|
|
1056
1057
|
return S.state.user.token;
|
|
1057
1058
|
}
|
|
1058
|
-
function
|
|
1059
|
-
|
|
1059
|
+
function qe(e) {
|
|
1060
|
+
Xl({
|
|
1060
1061
|
message: e,
|
|
1061
1062
|
type: "error",
|
|
1062
1063
|
duration: 5 * 1e3,
|
|
1063
1064
|
grouping: !0
|
|
1064
1065
|
});
|
|
1065
1066
|
}
|
|
1066
|
-
const
|
|
1067
|
+
const nn = {
|
|
1067
1068
|
onFulfilled: function(e) {
|
|
1068
1069
|
e.headers = e.headers || {};
|
|
1069
|
-
const t =
|
|
1070
|
+
const t = ln();
|
|
1070
1071
|
return t && (e.headers["X-Token"] = t), e;
|
|
1071
1072
|
}
|
|
1072
|
-
},
|
|
1073
|
+
}, on = {
|
|
1073
1074
|
onFulfilled(e) {
|
|
1074
1075
|
var n, o, s, a, u, p, d;
|
|
1075
1076
|
if (!(((n = e.config) == null ? void 0 : n.notHoldApiErr) !== void 0 && ((o = e.config) == null ? void 0 : o.notHoldApiErr) === !0) && e.data.code !== 0) {
|
|
1076
1077
|
const f = e.data.message || `\u63A5\u53E3\u8BF7\u6C42\u9519\u8BEF ${e.config.method}::${(s = e.config.url) == null ? void 0 : s.split("?")[0]}`;
|
|
1077
1078
|
if (e.data.code === 401) {
|
|
1078
|
-
|
|
1079
|
+
Ve.alert("\u767B\u5F55\u4FE1\u606F\u5DF2\u8FC7\u671F\u6216\u672A\u767B\u5F55, \u662F\u5426\u8DF3\u8F6C\u767B\u5F55", "\u64CD\u4F5C\u63D0\u9192", {
|
|
1079
1080
|
showClose: !1,
|
|
1080
1081
|
confirmButtonText: "\u91CD\u65B0\u767B\u5F55",
|
|
1081
1082
|
showCancelButton: !0,
|
|
@@ -1086,13 +1087,13 @@ const tn = {
|
|
|
1086
1087
|
});
|
|
1087
1088
|
return;
|
|
1088
1089
|
} else
|
|
1089
|
-
|
|
1090
|
+
qe(f);
|
|
1090
1091
|
return Promise.reject(f);
|
|
1091
1092
|
}
|
|
1092
1093
|
let l = (u = (a = e.data) == null ? void 0 : a.data) == null ? void 0 : u._message_box;
|
|
1093
|
-
return l !== void 0 && (
|
|
1094
|
+
return l !== void 0 && (Ce(l) && (l = {
|
|
1094
1095
|
message: (d = (p = e.data) == null ? void 0 : p.data) == null ? void 0 : d._message_box
|
|
1095
|
-
}),
|
|
1096
|
+
}), Ve({
|
|
1096
1097
|
title: "\u63D0\u793A",
|
|
1097
1098
|
type: "success",
|
|
1098
1099
|
grouping: !0,
|
|
@@ -1101,41 +1102,41 @@ const tn = {
|
|
|
1101
1102
|
},
|
|
1102
1103
|
onRejected(e) {
|
|
1103
1104
|
var t;
|
|
1104
|
-
return
|
|
1105
|
+
return xe.isCancel(e) ? Promise.reject("") : (qe(`${e.message} ${e.config.method}::${(t = e.config.url) == null ? void 0 : t.split("?")[0]}`), Promise.reject(e));
|
|
1105
1106
|
}
|
|
1106
|
-
},
|
|
1107
|
+
}, sn = [
|
|
1107
1108
|
{
|
|
1108
|
-
request:
|
|
1109
|
-
response:
|
|
1109
|
+
request: en,
|
|
1110
|
+
response: tn
|
|
1110
1111
|
},
|
|
1111
1112
|
{
|
|
1112
|
-
request:
|
|
1113
|
-
response:
|
|
1113
|
+
request: nn,
|
|
1114
|
+
response: on
|
|
1114
1115
|
}
|
|
1115
1116
|
];
|
|
1116
|
-
function
|
|
1117
|
-
const t = de.axios || {}, l = F(t, e || {}), n =
|
|
1117
|
+
function Pe(e = {}) {
|
|
1118
|
+
const t = de.axios || {}, l = F(t, e || {}), n = xe.create({
|
|
1118
1119
|
...l
|
|
1119
1120
|
});
|
|
1120
|
-
return
|
|
1121
|
+
return sn.forEach((o) => {
|
|
1121
1122
|
n.interceptors.request.use(o.request.onFulfilled, o.request.onRejected), n.interceptors.response.use(o.response.onFulfilled, o.response.onRejected);
|
|
1122
1123
|
}), n;
|
|
1123
1124
|
}
|
|
1124
|
-
const
|
|
1125
|
+
const an = Pe();
|
|
1125
1126
|
const pt = {};
|
|
1126
|
-
function
|
|
1127
|
+
function vi(e, t) {
|
|
1127
1128
|
pt[e] = t;
|
|
1128
1129
|
}
|
|
1129
|
-
function
|
|
1130
|
+
function rn(e) {
|
|
1130
1131
|
return pt[e];
|
|
1131
1132
|
}
|
|
1132
|
-
const
|
|
1133
|
+
const un = V({
|
|
1133
1134
|
name: "Dashboard",
|
|
1134
1135
|
setup() {
|
|
1135
|
-
const e =
|
|
1136
|
+
const e = rn("test");
|
|
1136
1137
|
if (e)
|
|
1137
1138
|
return () => c(e, null, null);
|
|
1138
|
-
const t =
|
|
1139
|
+
const t = tt(), l = N(() => t.getters.name);
|
|
1139
1140
|
return () => c("div", {
|
|
1140
1141
|
class: "dashboard-container"
|
|
1141
1142
|
}, [c("div", {
|
|
@@ -1143,13 +1144,13 @@ const an = V({
|
|
|
1143
1144
|
}, [g("Hi "), l.value, g(" \u{1F604}")])]);
|
|
1144
1145
|
}
|
|
1145
1146
|
});
|
|
1146
|
-
const
|
|
1147
|
+
const C = (e, t) => {
|
|
1147
1148
|
const l = e.__vccOpts || e;
|
|
1148
1149
|
for (const [n, o] of t)
|
|
1149
1150
|
l[n] = o;
|
|
1150
1151
|
return l;
|
|
1151
|
-
},
|
|
1152
|
-
const
|
|
1152
|
+
}, cn = /* @__PURE__ */ C(un, [["__scopeId", "data-v-10e6b4b6"]]);
|
|
1153
|
+
const pn = {
|
|
1153
1154
|
data() {
|
|
1154
1155
|
return {
|
|
1155
1156
|
levelList: null
|
|
@@ -1181,7 +1182,7 @@ const un = {
|
|
|
1181
1182
|
},
|
|
1182
1183
|
pathCompile(e) {
|
|
1183
1184
|
const { params: t } = this.$route;
|
|
1184
|
-
return
|
|
1185
|
+
return Al.compile(e)(t);
|
|
1185
1186
|
},
|
|
1186
1187
|
handleLink(e) {
|
|
1187
1188
|
const { redirect: t, path: l } = e;
|
|
@@ -1192,12 +1193,12 @@ const un = {
|
|
|
1192
1193
|
this.$router.push(this.pathCompile(l));
|
|
1193
1194
|
}
|
|
1194
1195
|
}
|
|
1195
|
-
},
|
|
1196
|
+
}, dn = {
|
|
1196
1197
|
key: 0,
|
|
1197
1198
|
class: "no-redirect"
|
|
1198
|
-
},
|
|
1199
|
-
function
|
|
1200
|
-
const a =
|
|
1199
|
+
}, mn = ["onClick"];
|
|
1200
|
+
function fn(e, t, l, n, o, s) {
|
|
1201
|
+
const a = pl, u = dl;
|
|
1201
1202
|
return i(), m(u, {
|
|
1202
1203
|
class: "app-breadcrumb",
|
|
1203
1204
|
separator: "/"
|
|
@@ -1205,14 +1206,14 @@ function dn(e, t, l, n, o, s) {
|
|
|
1205
1206
|
default: r(() => [
|
|
1206
1207
|
c(It, { name: "breadcrumb" }, {
|
|
1207
1208
|
default: r(() => [
|
|
1208
|
-
(i(!0), h(k, null,
|
|
1209
|
+
(i(!0), h(k, null, I(o.levelList, (p, d) => (i(), m(a, {
|
|
1209
1210
|
key: p.path
|
|
1210
1211
|
}, {
|
|
1211
1212
|
default: r(() => [
|
|
1212
|
-
p.path.indexOf("/DIR_") === 0 && p.redirect === void 0 || d === o.levelList.length - 1 ? (i(), h("span",
|
|
1213
|
+
p.path.indexOf("/DIR_") === 0 && p.redirect === void 0 || d === o.levelList.length - 1 ? (i(), h("span", dn, A(p.meta.title), 1)) : (i(), h("a", {
|
|
1213
1214
|
key: 1,
|
|
1214
1215
|
onClick: (f) => s.handleLink(p)
|
|
1215
|
-
},
|
|
1216
|
+
}, A(p.meta.title), 9, mn))
|
|
1216
1217
|
]),
|
|
1217
1218
|
_: 2
|
|
1218
1219
|
}, 1024))), 128))
|
|
@@ -1223,7 +1224,7 @@ function dn(e, t, l, n, o, s) {
|
|
|
1223
1224
|
_: 1
|
|
1224
1225
|
});
|
|
1225
1226
|
}
|
|
1226
|
-
const
|
|
1227
|
+
const hn = /* @__PURE__ */ C(pn, [["render", fn], ["__scopeId", "data-v-fa74804e"]]), bn = {
|
|
1227
1228
|
name: "Hamburger",
|
|
1228
1229
|
props: {
|
|
1229
1230
|
isActive: {
|
|
@@ -1238,22 +1239,22 @@ const mn = /* @__PURE__ */ x(un, [["render", dn], ["__scopeId", "data-v-fa74804e
|
|
|
1238
1239
|
}
|
|
1239
1240
|
}
|
|
1240
1241
|
};
|
|
1241
|
-
function
|
|
1242
|
+
function _n(e, t, l, n, o, s) {
|
|
1242
1243
|
const a = v("v-icon");
|
|
1243
1244
|
return i(), h("div", {
|
|
1244
1245
|
style: { padding: "0 15px" },
|
|
1245
1246
|
onClick: t[0] || (t[0] = (...u) => s.toggleClick && s.toggleClick(...u))
|
|
1246
1247
|
}, [
|
|
1247
1248
|
c(a, {
|
|
1248
|
-
class:
|
|
1249
|
+
class: H({ "is-active": l.isActive }),
|
|
1249
1250
|
name: "ra-leftalignment"
|
|
1250
1251
|
}, null, 8, ["class"])
|
|
1251
1252
|
]);
|
|
1252
1253
|
}
|
|
1253
|
-
const
|
|
1254
|
-
const
|
|
1255
|
-
function
|
|
1256
|
-
const l = se, n =
|
|
1254
|
+
const yn = /* @__PURE__ */ C(bn, [["render", _n]]);
|
|
1255
|
+
const vn = {};
|
|
1256
|
+
function gn(e, t) {
|
|
1257
|
+
const l = se, n = ml, o = fl, s = hl;
|
|
1257
1258
|
return i(), m(s, { style: { width: "100%", height: "100%" } }, {
|
|
1258
1259
|
default: r(() => [
|
|
1259
1260
|
c(l, { class: "aside" }, {
|
|
@@ -1285,7 +1286,7 @@ function yn(e, t) {
|
|
|
1285
1286
|
_: 3
|
|
1286
1287
|
});
|
|
1287
1288
|
}
|
|
1288
|
-
const dt = /* @__PURE__ */
|
|
1289
|
+
const dt = /* @__PURE__ */ C(vn, [["render", gn], ["__scopeId", "data-v-7c3d697b"]]), kn = {
|
|
1289
1290
|
type: "input",
|
|
1290
1291
|
name: "\u6587\u672C\u6846",
|
|
1291
1292
|
default: {
|
|
@@ -1353,7 +1354,7 @@ const dt = /* @__PURE__ */ x(_n, [["render", yn], ["__scopeId", "data-v-7c3d697b
|
|
|
1353
1354
|
}
|
|
1354
1355
|
}
|
|
1355
1356
|
]
|
|
1356
|
-
},
|
|
1357
|
+
}, En = {
|
|
1357
1358
|
type: "number",
|
|
1358
1359
|
name: "\u6570\u5B57",
|
|
1359
1360
|
default: {
|
|
@@ -1395,7 +1396,7 @@ const dt = /* @__PURE__ */ x(_n, [["render", yn], ["__scopeId", "data-v-7c3d697b
|
|
|
1395
1396
|
}
|
|
1396
1397
|
}
|
|
1397
1398
|
]
|
|
1398
|
-
},
|
|
1399
|
+
}, wn = {
|
|
1399
1400
|
type: "number-range",
|
|
1400
1401
|
name: "\u6570\u5B57\u533A\u95F4",
|
|
1401
1402
|
default: {
|
|
@@ -1436,7 +1437,7 @@ const dt = /* @__PURE__ */ x(_n, [["render", yn], ["__scopeId", "data-v-7c3d697b
|
|
|
1436
1437
|
}
|
|
1437
1438
|
}
|
|
1438
1439
|
]
|
|
1439
|
-
},
|
|
1440
|
+
}, Sn = {
|
|
1440
1441
|
type: "select",
|
|
1441
1442
|
name: "\u4E0B\u62C9\u6846",
|
|
1442
1443
|
default: {
|
|
@@ -1542,7 +1543,7 @@ const dt = /* @__PURE__ */ x(_n, [["render", yn], ["__scopeId", "data-v-7c3d697b
|
|
|
1542
1543
|
const t = y(e);
|
|
1543
1544
|
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;
|
|
1544
1545
|
}
|
|
1545
|
-
},
|
|
1546
|
+
}, Cn = {
|
|
1546
1547
|
type: "radio",
|
|
1547
1548
|
name: "\u5355\u9009\u6846",
|
|
1548
1549
|
default: {
|
|
@@ -1588,7 +1589,7 @@ const dt = /* @__PURE__ */ x(_n, [["render", yn], ["__scopeId", "data-v-7c3d697b
|
|
|
1588
1589
|
label: "\u9ED8\u8BA4\u503C"
|
|
1589
1590
|
}
|
|
1590
1591
|
]
|
|
1591
|
-
},
|
|
1592
|
+
}, xn = {
|
|
1592
1593
|
type: "switch",
|
|
1593
1594
|
name: "\u5F00\u5173",
|
|
1594
1595
|
default: {
|
|
@@ -1644,7 +1645,7 @@ const dt = /* @__PURE__ */ x(_n, [["render", yn], ["__scopeId", "data-v-7c3d697b
|
|
|
1644
1645
|
}
|
|
1645
1646
|
}
|
|
1646
1647
|
]
|
|
1647
|
-
},
|
|
1648
|
+
}, Bn = {
|
|
1648
1649
|
type: "code",
|
|
1649
1650
|
name: "Code",
|
|
1650
1651
|
default: {
|
|
@@ -1664,7 +1665,7 @@ const dt = /* @__PURE__ */ x(_n, [["render", yn], ["__scopeId", "data-v-7c3d697b
|
|
|
1664
1665
|
label: "\u5B57\u6BB5key"
|
|
1665
1666
|
}
|
|
1666
1667
|
]
|
|
1667
|
-
},
|
|
1668
|
+
}, An = {
|
|
1668
1669
|
type: "json",
|
|
1669
1670
|
name: "json",
|
|
1670
1671
|
default: {
|
|
@@ -1684,7 +1685,7 @@ const dt = /* @__PURE__ */ x(_n, [["render", yn], ["__scopeId", "data-v-7c3d697b
|
|
|
1684
1685
|
label: "\u5B57\u6BB5key"
|
|
1685
1686
|
}
|
|
1686
1687
|
]
|
|
1687
|
-
},
|
|
1688
|
+
}, In = {
|
|
1688
1689
|
type: "upload",
|
|
1689
1690
|
name: "\u4E0A\u4F20",
|
|
1690
1691
|
default: {
|
|
@@ -1704,7 +1705,7 @@ const dt = /* @__PURE__ */ x(_n, [["render", yn], ["__scopeId", "data-v-7c3d697b
|
|
|
1704
1705
|
label: "\u5B57\u6BB5key"
|
|
1705
1706
|
}
|
|
1706
1707
|
]
|
|
1707
|
-
},
|
|
1708
|
+
}, $n = {
|
|
1708
1709
|
type: "template",
|
|
1709
1710
|
name: "\u81EA\u5B9A\u4E49\u7EC4\u4EF6",
|
|
1710
1711
|
default: {
|
|
@@ -1724,7 +1725,7 @@ const dt = /* @__PURE__ */ x(_n, [["render", yn], ["__scopeId", "data-v-7c3d697b
|
|
|
1724
1725
|
label: "\u5B57\u6BB5key"
|
|
1725
1726
|
}
|
|
1726
1727
|
]
|
|
1727
|
-
},
|
|
1728
|
+
}, Tn = {
|
|
1728
1729
|
type: "icon-select",
|
|
1729
1730
|
name: "\u56FE\u6807\u9009\u62E9\u5668",
|
|
1730
1731
|
default: {
|
|
@@ -1744,7 +1745,7 @@ const dt = /* @__PURE__ */ x(_n, [["render", yn], ["__scopeId", "data-v-7c3d697b
|
|
|
1744
1745
|
label: "\u5B57\u6BB5key"
|
|
1745
1746
|
}
|
|
1746
1747
|
]
|
|
1747
|
-
},
|
|
1748
|
+
}, Fn = {
|
|
1748
1749
|
type: "sub-form",
|
|
1749
1750
|
name: "\u5B50\u8868\u5355",
|
|
1750
1751
|
default: {
|
|
@@ -1812,7 +1813,7 @@ const dt = /* @__PURE__ */ x(_n, [["render", yn], ["__scopeId", "data-v-7c3d697b
|
|
|
1812
1813
|
}
|
|
1813
1814
|
}
|
|
1814
1815
|
]
|
|
1815
|
-
},
|
|
1816
|
+
}, On = {
|
|
1816
1817
|
type: "checkbox",
|
|
1817
1818
|
name: "\u590D\u9009\u6846",
|
|
1818
1819
|
default: {
|
|
@@ -1862,20 +1863,20 @@ const dt = /* @__PURE__ */ x(_n, [["render", yn], ["__scopeId", "data-v-7c3d697b
|
|
|
1862
1863
|
function O(e) {
|
|
1863
1864
|
mt[e.type] = e;
|
|
1864
1865
|
}
|
|
1865
|
-
O(vn);
|
|
1866
|
-
O(En);
|
|
1867
|
-
O(gn);
|
|
1868
1866
|
O(kn);
|
|
1869
1867
|
O(Sn);
|
|
1870
|
-
O(
|
|
1868
|
+
O(En);
|
|
1871
1869
|
O(wn);
|
|
1872
|
-
O(Tn);
|
|
1873
|
-
O(Cn);
|
|
1874
1870
|
O(xn);
|
|
1871
|
+
O(Fn);
|
|
1872
|
+
O(Cn);
|
|
1873
|
+
O(On);
|
|
1875
1874
|
O(Bn);
|
|
1876
1875
|
O(An);
|
|
1877
1876
|
O(In);
|
|
1878
|
-
|
|
1877
|
+
O(Tn);
|
|
1878
|
+
O($n);
|
|
1879
|
+
const Ee = mt, Dn = {
|
|
1879
1880
|
options: {
|
|
1880
1881
|
labelPosition: "top",
|
|
1881
1882
|
submitButton: !1,
|
|
@@ -1978,11 +1979,11 @@ const be = {
|
|
|
1978
1979
|
labelPosition: "top",
|
|
1979
1980
|
submitButton: !1,
|
|
1980
1981
|
cancelButton: !1
|
|
1981
|
-
},
|
|
1982
|
-
Object.keys(
|
|
1983
|
-
|
|
1982
|
+
}, Re = [];
|
|
1983
|
+
Object.keys(Ee).forEach((e) => {
|
|
1984
|
+
Re.push({ value: e, label: Ee[e].name });
|
|
1984
1985
|
});
|
|
1985
|
-
const
|
|
1986
|
+
const Pn = {
|
|
1986
1987
|
options: {
|
|
1987
1988
|
submitButton: !1,
|
|
1988
1989
|
cancelButton: !1
|
|
@@ -2003,7 +2004,7 @@ const On = {
|
|
|
2003
2004
|
type: "select",
|
|
2004
2005
|
field: "type",
|
|
2005
2006
|
label: "\u7C7B\u578B",
|
|
2006
|
-
options: y(
|
|
2007
|
+
options: y(Re)
|
|
2007
2008
|
},
|
|
2008
2009
|
{
|
|
2009
2010
|
type: "input",
|
|
@@ -2014,8 +2015,8 @@ const On = {
|
|
|
2014
2015
|
}
|
|
2015
2016
|
}
|
|
2016
2017
|
]
|
|
2017
|
-
},
|
|
2018
|
-
components: { DevLayout: dt, VForm: J, VButton: Ae, JsonView:
|
|
2018
|
+
}, Rn = {
|
|
2019
|
+
components: { DevLayout: dt, VForm: J, VButton: Ae, JsonView: Ie },
|
|
2019
2020
|
props: {
|
|
2020
2021
|
schema: {
|
|
2021
2022
|
type: Object,
|
|
@@ -2026,8 +2027,8 @@ const On = {
|
|
|
2026
2027
|
data() {
|
|
2027
2028
|
return {
|
|
2028
2029
|
sqlOptions: {},
|
|
2029
|
-
sqlSchema:
|
|
2030
|
-
baseSchema:
|
|
2030
|
+
sqlSchema: Pn,
|
|
2031
|
+
baseSchema: Dn,
|
|
2031
2032
|
activeTab: "base",
|
|
2032
2033
|
builderSchema: Object.assign(
|
|
2033
2034
|
{},
|
|
@@ -2047,12 +2048,12 @@ const On = {
|
|
|
2047
2048
|
ctrlSchema: {},
|
|
2048
2049
|
ctrlName: "",
|
|
2049
2050
|
activeIndex: void 0,
|
|
2050
|
-
ctrlMap:
|
|
2051
|
+
ctrlMap: Ee,
|
|
2051
2052
|
activeIndexReg: /(formItems)?\[(\d+)\]/,
|
|
2052
2053
|
tableStruct: "",
|
|
2053
2054
|
activeName: "1",
|
|
2054
2055
|
currentCtrlType: "input",
|
|
2055
|
-
types: y(
|
|
2056
|
+
types: y(Re)
|
|
2056
2057
|
};
|
|
2057
2058
|
},
|
|
2058
2059
|
computed: {
|
|
@@ -2122,7 +2123,7 @@ const On = {
|
|
|
2122
2123
|
}), this.ctrlKey++, this.key++, this.activeIndex = `${t}[${this.builderSchema[t].length - 1}]`, this.activeTab = "ctrl";
|
|
2123
2124
|
},
|
|
2124
2125
|
removeOne() {
|
|
2125
|
-
|
|
2126
|
+
Ye(this.builderSchema, this.activeIndex), this.builderSchema = y(Ze(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
|
|
2126
2127
|
},
|
|
2127
2128
|
clicklabel() {
|
|
2128
2129
|
const e = this.activeIndex;
|
|
@@ -2149,15 +2150,15 @@ const On = {
|
|
|
2149
2150
|
}
|
|
2150
2151
|
}
|
|
2151
2152
|
};
|
|
2152
|
-
function
|
|
2153
|
-
const a = v("v-form"), u =
|
|
2153
|
+
function Ln(e, t, l, n, o, s) {
|
|
2154
|
+
const a = v("v-form"), u = lt, p = ue, d = v("JsonView"), f = v("VButton"), _ = $e, T = Te, $ = nt, U = ot, q = v("dev-layout");
|
|
2154
2155
|
return i(), m(q, null, {
|
|
2155
2156
|
main: r(() => [
|
|
2156
|
-
o.builderSchema.formItems ? (i(), m(a,
|
|
2157
|
+
o.builderSchema.formItems ? (i(), m(a, G({
|
|
2157
2158
|
ref: "form",
|
|
2158
2159
|
key: o.key,
|
|
2159
2160
|
dev: !0
|
|
2160
|
-
}, o.builderSchema), null, 16)) :
|
|
2161
|
+
}, o.builderSchema), null, 16)) : E("", !0),
|
|
2161
2162
|
c(u),
|
|
2162
2163
|
c(p, {
|
|
2163
2164
|
type: "primary",
|
|
@@ -2180,7 +2181,7 @@ function Pn(e, t, l, n, o, s) {
|
|
|
2180
2181
|
})
|
|
2181
2182
|
]),
|
|
2182
2183
|
"right-aside": r(() => [
|
|
2183
|
-
o.activeIndex ? (i(), m(
|
|
2184
|
+
o.activeIndex ? (i(), m(U, { key: 0 }, {
|
|
2184
2185
|
default: r(() => [
|
|
2185
2186
|
c($, { label: "\u63A7\u4EF6\u7C7B\u578B" }, {
|
|
2186
2187
|
default: r(() => [
|
|
@@ -2189,7 +2190,7 @@ function Pn(e, t, l, n, o, s) {
|
|
|
2189
2190
|
"onUpdate:modelValue": t[0] || (t[0] = (B) => o.currentCtrlType = B)
|
|
2190
2191
|
}, {
|
|
2191
2192
|
default: r(() => [
|
|
2192
|
-
(i(!0), h(k, null,
|
|
2193
|
+
(i(!0), h(k, null, I(o.types, (B, W) => (i(), m(_, {
|
|
2193
2194
|
key: W,
|
|
2194
2195
|
label: B.label,
|
|
2195
2196
|
value: B.value
|
|
@@ -2202,8 +2203,8 @@ function Pn(e, t, l, n, o, s) {
|
|
|
2202
2203
|
})
|
|
2203
2204
|
]),
|
|
2204
2205
|
_: 1
|
|
2205
|
-
})) :
|
|
2206
|
-
(i(), m(a,
|
|
2206
|
+
})) : E("", !0),
|
|
2207
|
+
(i(), m(a, G({
|
|
2207
2208
|
key: o.ctrlKey,
|
|
2208
2209
|
modelValue: o.ctrlOptions,
|
|
2209
2210
|
"onUpdate:modelValue": t[1] || (t[1] = (B) => o.ctrlOptions = B)
|
|
@@ -2212,7 +2213,7 @@ function Pn(e, t, l, n, o, s) {
|
|
|
2212
2213
|
_: 1
|
|
2213
2214
|
});
|
|
2214
2215
|
}
|
|
2215
|
-
const
|
|
2216
|
+
const Mn = /* @__PURE__ */ C(Rn, [["render", Ln], ["__scopeId", "data-v-875f0171"]]), jn = {
|
|
2216
2217
|
type: "input",
|
|
2217
2218
|
name: "\u6587\u672C\u6846",
|
|
2218
2219
|
default: {
|
|
@@ -2260,7 +2261,7 @@ const Rn = /* @__PURE__ */ x(Dn, [["render", Pn], ["__scopeId", "data-v-875f0171
|
|
|
2260
2261
|
}
|
|
2261
2262
|
}
|
|
2262
2263
|
]
|
|
2263
|
-
},
|
|
2264
|
+
}, Nn = {
|
|
2264
2265
|
type: "select",
|
|
2265
2266
|
name: "\u4E0B\u62C9\u6846",
|
|
2266
2267
|
default: {
|
|
@@ -2361,7 +2362,7 @@ const Rn = /* @__PURE__ */ x(Dn, [["render", Pn], ["__scopeId", "data-v-875f0171
|
|
|
2361
2362
|
const t = y(e);
|
|
2362
2363
|
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;
|
|
2363
2364
|
}
|
|
2364
|
-
},
|
|
2365
|
+
}, Vn = {
|
|
2365
2366
|
type: "date",
|
|
2366
2367
|
name: "\u65E5\u671F",
|
|
2367
2368
|
default: {
|
|
@@ -2381,7 +2382,7 @@ const Rn = /* @__PURE__ */ x(Dn, [["render", Pn], ["__scopeId", "data-v-875f0171
|
|
|
2381
2382
|
label: "\u5B57\u6BB5key"
|
|
2382
2383
|
}
|
|
2383
2384
|
]
|
|
2384
|
-
},
|
|
2385
|
+
}, Ue = {
|
|
2385
2386
|
options: {
|
|
2386
2387
|
labelPosition: "top",
|
|
2387
2388
|
submitButton: !1,
|
|
@@ -2410,7 +2411,7 @@ const Rn = /* @__PURE__ */ x(Dn, [["render", Pn], ["__scopeId", "data-v-875f0171
|
|
|
2410
2411
|
labelPosition: "top",
|
|
2411
2412
|
submitButton: !1,
|
|
2412
2413
|
cancelButton: !1
|
|
2413
|
-
},
|
|
2414
|
+
}, qn = {
|
|
2414
2415
|
type: "span",
|
|
2415
2416
|
name: "\u6587\u672C",
|
|
2416
2417
|
default: {
|
|
@@ -2440,7 +2441,7 @@ const Rn = /* @__PURE__ */ x(Dn, [["render", Pn], ["__scopeId", "data-v-875f0171
|
|
|
2440
2441
|
label: "\u6392\u5E8F"
|
|
2441
2442
|
}
|
|
2442
2443
|
]
|
|
2443
|
-
},
|
|
2444
|
+
}, Un = {
|
|
2444
2445
|
type: "enum",
|
|
2445
2446
|
name: "\u6807\u7B7E",
|
|
2446
2447
|
default: {
|
|
@@ -2491,7 +2492,7 @@ const Rn = /* @__PURE__ */ x(Dn, [["render", Pn], ["__scopeId", "data-v-875f0171
|
|
|
2491
2492
|
trans(e) {
|
|
2492
2493
|
return e.options = e.options || [], e.label || (e.label = "\u8868\u5934"), e;
|
|
2493
2494
|
}
|
|
2494
|
-
},
|
|
2495
|
+
}, Hn = {
|
|
2495
2496
|
type: "html",
|
|
2496
2497
|
name: "HTML",
|
|
2497
2498
|
default: {
|
|
@@ -2516,7 +2517,7 @@ const Rn = /* @__PURE__ */ x(Dn, [["render", Pn], ["__scopeId", "data-v-875f0171
|
|
|
2516
2517
|
label: "\u63D0\u793A"
|
|
2517
2518
|
}
|
|
2518
2519
|
]
|
|
2519
|
-
},
|
|
2520
|
+
}, Gn = {
|
|
2520
2521
|
type: "icon",
|
|
2521
2522
|
name: "\u56FE\u6807",
|
|
2522
2523
|
default: {
|
|
@@ -2541,7 +2542,7 @@ const Rn = /* @__PURE__ */ x(Dn, [["render", Pn], ["__scopeId", "data-v-875f0171
|
|
|
2541
2542
|
label: "\u63D0\u793A"
|
|
2542
2543
|
}
|
|
2543
2544
|
]
|
|
2544
|
-
},
|
|
2545
|
+
}, Jn = {
|
|
2545
2546
|
type: "image",
|
|
2546
2547
|
name: "\u56FE\u7247",
|
|
2547
2548
|
default: {
|
|
@@ -2566,7 +2567,7 @@ const Rn = /* @__PURE__ */ x(Dn, [["render", Pn], ["__scopeId", "data-v-875f0171
|
|
|
2566
2567
|
label: "\u63D0\u793A"
|
|
2567
2568
|
}
|
|
2568
2569
|
]
|
|
2569
|
-
},
|
|
2570
|
+
}, zn = {
|
|
2570
2571
|
type: "json",
|
|
2571
2572
|
name: "JSON",
|
|
2572
2573
|
default: {
|
|
@@ -2591,7 +2592,7 @@ const Rn = /* @__PURE__ */ x(Dn, [["render", Pn], ["__scopeId", "data-v-875f0171
|
|
|
2591
2592
|
label: "\u63D0\u793A"
|
|
2592
2593
|
}
|
|
2593
2594
|
]
|
|
2594
|
-
},
|
|
2595
|
+
}, Kn = {
|
|
2595
2596
|
type: "link",
|
|
2596
2597
|
name: "\u94FE\u63A5",
|
|
2597
2598
|
default: {
|
|
@@ -2616,7 +2617,7 @@ const Rn = /* @__PURE__ */ x(Dn, [["render", Pn], ["__scopeId", "data-v-875f0171
|
|
|
2616
2617
|
label: "\u63D0\u793A"
|
|
2617
2618
|
}
|
|
2618
2619
|
]
|
|
2619
|
-
},
|
|
2620
|
+
}, Wn = {
|
|
2620
2621
|
type: "rich",
|
|
2621
2622
|
name: "\u5BCC\u6587\u672C",
|
|
2622
2623
|
default: {
|
|
@@ -2641,7 +2642,7 @@ const Rn = /* @__PURE__ */ x(Dn, [["render", Pn], ["__scopeId", "data-v-875f0171
|
|
|
2641
2642
|
label: "\u63D0\u793A"
|
|
2642
2643
|
}
|
|
2643
2644
|
]
|
|
2644
|
-
},
|
|
2645
|
+
}, Zn = {
|
|
2645
2646
|
type: "tpl",
|
|
2646
2647
|
name: "\u6A21\u677F",
|
|
2647
2648
|
default: {
|
|
@@ -2672,17 +2673,17 @@ const Rn = /* @__PURE__ */ x(Dn, [["render", Pn], ["__scopeId", "data-v-875f0171
|
|
|
2672
2673
|
info: "\u4F8B\u5982 <code>\u59D3\u540D: {name} \u5E74\u9F84:{age}</code>"
|
|
2673
2674
|
}
|
|
2674
2675
|
]
|
|
2675
|
-
},
|
|
2676
|
-
span:
|
|
2677
|
-
enum:
|
|
2678
|
-
html:
|
|
2679
|
-
icon:
|
|
2680
|
-
image:
|
|
2681
|
-
json:
|
|
2682
|
-
link:
|
|
2683
|
-
rich:
|
|
2684
|
-
tpl:
|
|
2685
|
-
},
|
|
2676
|
+
}, 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 = {
|
|
2686
2687
|
type: "jump",
|
|
2687
2688
|
name: "\u8DF3\u8F6C",
|
|
2688
2689
|
default: {
|
|
@@ -2729,7 +2730,7 @@ const Rn = /* @__PURE__ */ x(Dn, [["render", Pn], ["__scopeId", "data-v-875f0171
|
|
|
2729
2730
|
}
|
|
2730
2731
|
}
|
|
2731
2732
|
]
|
|
2732
|
-
},
|
|
2733
|
+
}, Yn = {
|
|
2733
2734
|
type: "api",
|
|
2734
2735
|
name: "\u63A5\u53E3\u8BF7\u6C42",
|
|
2735
2736
|
default: {
|
|
@@ -2798,7 +2799,7 @@ const Rn = /* @__PURE__ */ x(Dn, [["render", Pn], ["__scopeId", "data-v-875f0171
|
|
|
2798
2799
|
}
|
|
2799
2800
|
}
|
|
2800
2801
|
]
|
|
2801
|
-
},
|
|
2802
|
+
}, eo = {
|
|
2802
2803
|
type: "form",
|
|
2803
2804
|
name: "\u5F39\u6846\u8868\u5355",
|
|
2804
2805
|
default: {
|
|
@@ -2852,7 +2853,7 @@ const Rn = /* @__PURE__ */ x(Dn, [["render", Pn], ["__scopeId", "data-v-875f0171
|
|
|
2852
2853
|
label: "\u4FDD\u5B58\u63A5\u53E3"
|
|
2853
2854
|
}
|
|
2854
2855
|
]
|
|
2855
|
-
},
|
|
2856
|
+
}, to = {
|
|
2856
2857
|
type: "table",
|
|
2857
2858
|
name: "\u5F39\u6846\u5217\u8868",
|
|
2858
2859
|
default: {
|
|
@@ -2906,14 +2907,14 @@ const Rn = /* @__PURE__ */ x(Dn, [["render", Pn], ["__scopeId", "data-v-875f0171
|
|
|
2906
2907
|
label: "\u4FDD\u5B58\u63A5\u53E3"
|
|
2907
2908
|
}
|
|
2908
2909
|
]
|
|
2909
|
-
},
|
|
2910
|
-
jump:
|
|
2911
|
-
api:
|
|
2912
|
-
form:
|
|
2913
|
-
table:
|
|
2910
|
+
}, lo = {
|
|
2911
|
+
jump: Xn,
|
|
2912
|
+
api: Yn,
|
|
2913
|
+
form: eo,
|
|
2914
|
+
table: to
|
|
2914
2915
|
};
|
|
2915
|
-
const
|
|
2916
|
-
components: { JsonView:
|
|
2916
|
+
const no = {
|
|
2917
|
+
components: { JsonView: Ie, DevLayout: dt, VTable: ne, VForm: J, VButton: Ae },
|
|
2917
2918
|
props: {
|
|
2918
2919
|
schema: {
|
|
2919
2920
|
type: Object,
|
|
@@ -2922,13 +2923,13 @@ const to = {
|
|
|
2922
2923
|
}
|
|
2923
2924
|
},
|
|
2924
2925
|
data() {
|
|
2925
|
-
const e =
|
|
2926
|
+
const e = $t(this.$props.schema);
|
|
2926
2927
|
return delete e.listApi, e.list = [{}], {
|
|
2927
|
-
baseSchema:
|
|
2928
|
+
baseSchema: Ue,
|
|
2928
2929
|
activeTab: "base",
|
|
2929
2930
|
builderSchema: Object.assign(
|
|
2930
2931
|
{},
|
|
2931
|
-
|
|
2932
|
+
Ue,
|
|
2932
2933
|
e
|
|
2933
2934
|
),
|
|
2934
2935
|
baseOptions: {},
|
|
@@ -2941,9 +2942,9 @@ const to = {
|
|
|
2941
2942
|
ctrlName: "",
|
|
2942
2943
|
activeIndex: void 0,
|
|
2943
2944
|
ctrlMap: {
|
|
2944
|
-
filter: { input:
|
|
2945
|
-
headers:
|
|
2946
|
-
buttons:
|
|
2945
|
+
filter: { input: jn, select: Nn, date: Vn },
|
|
2946
|
+
headers: Qn,
|
|
2947
|
+
buttons: lo
|
|
2947
2948
|
},
|
|
2948
2949
|
activeIndexReg: /(filter|headers|normalButton|batchButton|rowButton)?\[(\d+)\]/,
|
|
2949
2950
|
currentCtrlType: "input"
|
|
@@ -3056,7 +3057,7 @@ const to = {
|
|
|
3056
3057
|
}), this.key++, this.ctrlKey++, this.activeIndex = `${t}[${this.builderSchema[t].length - 1}]`, this.activeTab = "ctrl";
|
|
3057
3058
|
},
|
|
3058
3059
|
removeOne() {
|
|
3059
|
-
|
|
3060
|
+
Ye(this.builderSchema, this.activeIndex), this.builderSchema = y(Ze(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
|
|
3060
3061
|
},
|
|
3061
3062
|
clicklabel() {
|
|
3062
3063
|
const e = this.activeIndex, t = e.match(this.activeIndexReg);
|
|
@@ -3094,9 +3095,9 @@ const to = {
|
|
|
3094
3095
|
}
|
|
3095
3096
|
}
|
|
3096
3097
|
};
|
|
3097
|
-
function
|
|
3098
|
-
const a = pe, u = ue, p = se, d = v("v-table"), f =
|
|
3099
|
-
return i(), m(
|
|
3098
|
+
function oo(e, t, l, n, o, s) {
|
|
3099
|
+
const a = pe, u = ue, p = se, d = v("v-table"), f = lt, _ = ue, T = v("JsonView"), $ = v("VButton"), U = $e, q = Te, B = nt, W = ot, St = v("v-form"), Ct = v("dev-layout");
|
|
3100
|
+
return i(), m(Ct, null, {
|
|
3100
3101
|
"left-aside": r(() => [
|
|
3101
3102
|
c(p, { style: { width: "200px" } }, {
|
|
3102
3103
|
default: r(() => [
|
|
@@ -3115,7 +3116,7 @@ function lo(e, t, l, n, o, s) {
|
|
|
3115
3116
|
default: r(() => [
|
|
3116
3117
|
c(u, {
|
|
3117
3118
|
class: "ctrl-btn",
|
|
3118
|
-
onClick: t[0] || (t[0] = (
|
|
3119
|
+
onClick: t[0] || (t[0] = (x) => s.pushFilter("input"))
|
|
3119
3120
|
}, {
|
|
3120
3121
|
default: r(() => [
|
|
3121
3122
|
g("\u6587\u672C\u6846")
|
|
@@ -3129,7 +3130,7 @@ function lo(e, t, l, n, o, s) {
|
|
|
3129
3130
|
default: r(() => [
|
|
3130
3131
|
c(u, {
|
|
3131
3132
|
class: "ctrl-btn",
|
|
3132
|
-
onClick: t[1] || (t[1] = (
|
|
3133
|
+
onClick: t[1] || (t[1] = (x) => s.pushFilter("select"))
|
|
3133
3134
|
}, {
|
|
3134
3135
|
default: r(() => [
|
|
3135
3136
|
g("\u4E0B\u62C9\u6846")
|
|
@@ -3143,7 +3144,7 @@ function lo(e, t, l, n, o, s) {
|
|
|
3143
3144
|
default: r(() => [
|
|
3144
3145
|
c(u, {
|
|
3145
3146
|
class: "ctrl-btn",
|
|
3146
|
-
onClick: t[2] || (t[2] = (
|
|
3147
|
+
onClick: t[2] || (t[2] = (x) => s.pushFilter("date"))
|
|
3147
3148
|
}, {
|
|
3148
3149
|
default: r(() => [
|
|
3149
3150
|
g("\u65E5\u671F")
|
|
@@ -3164,17 +3165,17 @@ function lo(e, t, l, n, o, s) {
|
|
|
3164
3165
|
]),
|
|
3165
3166
|
_: 1
|
|
3166
3167
|
}),
|
|
3167
|
-
(i(!0), h(k, null,
|
|
3168
|
+
(i(!0), h(k, null, I(Object.keys(o.ctrlMap.headers), (x, j) => (i(), m(a, {
|
|
3168
3169
|
key: `column-${j}`,
|
|
3169
3170
|
class: "ctrl"
|
|
3170
3171
|
}, {
|
|
3171
3172
|
default: r(() => [
|
|
3172
3173
|
c(u, {
|
|
3173
3174
|
class: "ctrl-btn",
|
|
3174
|
-
onClick: (me) => s.pushHeaders(o.ctrlMap.headers[
|
|
3175
|
+
onClick: (me) => s.pushHeaders(o.ctrlMap.headers[x].type)
|
|
3175
3176
|
}, {
|
|
3176
3177
|
default: r(() => [
|
|
3177
|
-
g(
|
|
3178
|
+
g(A(o.ctrlMap.headers[x].name), 1)
|
|
3178
3179
|
]),
|
|
3179
3180
|
_: 2
|
|
3180
3181
|
}, 1032, ["onClick"])
|
|
@@ -3192,17 +3193,17 @@ function lo(e, t, l, n, o, s) {
|
|
|
3192
3193
|
]),
|
|
3193
3194
|
_: 1
|
|
3194
3195
|
}),
|
|
3195
|
-
(i(!0), h(k, null,
|
|
3196
|
+
(i(!0), h(k, null, I(Object.keys(o.ctrlMap.buttons), (x, j) => (i(), m(a, {
|
|
3196
3197
|
key: `column-${j}`,
|
|
3197
3198
|
class: "ctrl"
|
|
3198
3199
|
}, {
|
|
3199
3200
|
default: r(() => [
|
|
3200
3201
|
c(u, {
|
|
3201
3202
|
class: "ctrl-btn",
|
|
3202
|
-
onClick: (me) => s.pushRowButton(o.ctrlMap.buttons[
|
|
3203
|
+
onClick: (me) => s.pushRowButton(o.ctrlMap.buttons[x].type)
|
|
3203
3204
|
}, {
|
|
3204
3205
|
default: r(() => [
|
|
3205
|
-
g(
|
|
3206
|
+
g(A(o.ctrlMap.buttons[x].name), 1)
|
|
3206
3207
|
]),
|
|
3207
3208
|
_: 2
|
|
3208
3209
|
}, 1032, ["onClick"])
|
|
@@ -3220,17 +3221,17 @@ function lo(e, t, l, n, o, s) {
|
|
|
3220
3221
|
]),
|
|
3221
3222
|
_: 1
|
|
3222
3223
|
}),
|
|
3223
|
-
(i(!0), h(k, null,
|
|
3224
|
+
(i(!0), h(k, null, I(Object.keys(o.ctrlMap.buttons), (x, j) => (i(), m(a, {
|
|
3224
3225
|
key: `column-${j}`,
|
|
3225
3226
|
class: "ctrl"
|
|
3226
3227
|
}, {
|
|
3227
3228
|
default: r(() => [
|
|
3228
3229
|
c(u, {
|
|
3229
3230
|
class: "ctrl-btn",
|
|
3230
|
-
onClick: (me) => s.pushNormalButton(o.ctrlMap.buttons[
|
|
3231
|
+
onClick: (me) => s.pushNormalButton(o.ctrlMap.buttons[x].type)
|
|
3231
3232
|
}, {
|
|
3232
3233
|
default: r(() => [
|
|
3233
|
-
g(
|
|
3234
|
+
g(A(o.ctrlMap.buttons[x].name), 1)
|
|
3234
3235
|
]),
|
|
3235
3236
|
_: 2
|
|
3236
3237
|
}, 1032, ["onClick"])
|
|
@@ -3259,17 +3260,17 @@ function lo(e, t, l, n, o, s) {
|
|
|
3259
3260
|
]),
|
|
3260
3261
|
_: 1
|
|
3261
3262
|
}),
|
|
3262
|
-
(i(!0), h(k, null,
|
|
3263
|
+
(i(!0), h(k, null, I(Object.keys(o.ctrlMap.buttons), (x, j) => (i(), m(a, {
|
|
3263
3264
|
key: `column-${j}`,
|
|
3264
3265
|
class: "ctrl"
|
|
3265
3266
|
}, {
|
|
3266
3267
|
default: r(() => [
|
|
3267
3268
|
c(u, {
|
|
3268
3269
|
class: "ctrl-btn",
|
|
3269
|
-
onClick: (me) => s.pushBatchButton(o.ctrlMap.buttons[
|
|
3270
|
+
onClick: (me) => s.pushBatchButton(o.ctrlMap.buttons[x].type)
|
|
3270
3271
|
}, {
|
|
3271
3272
|
default: r(() => [
|
|
3272
|
-
g(
|
|
3273
|
+
g(A(o.ctrlMap.buttons[x].name), 1)
|
|
3273
3274
|
]),
|
|
3274
3275
|
_: 2
|
|
3275
3276
|
}, 1032, ["onClick"])
|
|
@@ -3295,7 +3296,7 @@ function lo(e, t, l, n, o, s) {
|
|
|
3295
3296
|
})
|
|
3296
3297
|
]),
|
|
3297
3298
|
main: r(() => [
|
|
3298
|
-
(i(), m(d,
|
|
3299
|
+
(i(), m(d, G({
|
|
3299
3300
|
ref: "table",
|
|
3300
3301
|
key: o.key,
|
|
3301
3302
|
dev: !0
|
|
@@ -3328,13 +3329,13 @@ function lo(e, t, l, n, o, s) {
|
|
|
3328
3329
|
default: r(() => [
|
|
3329
3330
|
c(q, {
|
|
3330
3331
|
modelValue: o.currentCtrlType,
|
|
3331
|
-
"onUpdate:modelValue": t[3] || (t[3] = (
|
|
3332
|
+
"onUpdate:modelValue": t[3] || (t[3] = (x) => o.currentCtrlType = x)
|
|
3332
3333
|
}, {
|
|
3333
3334
|
default: r(() => [
|
|
3334
|
-
(i(!0), h(k, null,
|
|
3335
|
+
(i(!0), h(k, null, I(s.types, (x, j) => (i(), m(U, {
|
|
3335
3336
|
key: j,
|
|
3336
|
-
label:
|
|
3337
|
-
value:
|
|
3337
|
+
label: x.label,
|
|
3338
|
+
value: x.value
|
|
3338
3339
|
}, null, 8, ["label", "value"]))), 128))
|
|
3339
3340
|
]),
|
|
3340
3341
|
_: 1
|
|
@@ -3344,26 +3345,26 @@ function lo(e, t, l, n, o, s) {
|
|
|
3344
3345
|
})
|
|
3345
3346
|
]),
|
|
3346
3347
|
_: 1
|
|
3347
|
-
})) :
|
|
3348
|
-
(i(), m(
|
|
3348
|
+
})) : E("", !0),
|
|
3349
|
+
(i(), m(St, G({
|
|
3349
3350
|
key: o.ctrlKey,
|
|
3350
3351
|
modelValue: o.ctrlOptions,
|
|
3351
|
-
"onUpdate:modelValue": t[4] || (t[4] = (
|
|
3352
|
+
"onUpdate:modelValue": t[4] || (t[4] = (x) => o.ctrlOptions = x)
|
|
3352
3353
|
}, o.ctrlSchema), null, 16, ["modelValue"]))
|
|
3353
3354
|
]),
|
|
3354
3355
|
_: 1
|
|
3355
3356
|
});
|
|
3356
3357
|
}
|
|
3357
|
-
const
|
|
3358
|
+
const so = /* @__PURE__ */ C(no, [["render", oo], ["__scopeId", "data-v-e5209cb7"]]), ao = {
|
|
3358
3359
|
name: "PageEditor",
|
|
3359
|
-
components: { FormBuilder:
|
|
3360
|
+
components: { FormBuilder: Mn, TableBuilder: so },
|
|
3360
3361
|
setup() {
|
|
3361
3362
|
const e = P(!1), t = P(1), l = "rtl", n = ce(), o = N(() => S.state.app.pages[n.path]);
|
|
3362
3363
|
return { show: e, key: t, direction: l, pageSchema: o };
|
|
3363
3364
|
}
|
|
3364
3365
|
};
|
|
3365
|
-
function
|
|
3366
|
-
const a = v("VIcon"), u = v("form-builder"), p = v("table-builder"), d =
|
|
3366
|
+
function io(e, t, l, n, o, s) {
|
|
3367
|
+
const a = v("VIcon"), u = v("form-builder"), p = v("table-builder"), d = st;
|
|
3367
3368
|
return i(), h(k, null, [
|
|
3368
3369
|
c(a, {
|
|
3369
3370
|
name: "ra-set",
|
|
@@ -3383,23 +3384,23 @@ function so(e, t, l, n, o, s) {
|
|
|
3383
3384
|
n.pageSchema.formItems !== void 0 ? (i(), m(u, {
|
|
3384
3385
|
key: 0,
|
|
3385
3386
|
schema: n.pageSchema
|
|
3386
|
-
}, null, 8, ["schema"])) :
|
|
3387
|
+
}, null, 8, ["schema"])) : E("", !0),
|
|
3387
3388
|
n.pageSchema.headers !== void 0 ? (i(), m(p, {
|
|
3388
3389
|
key: 1,
|
|
3389
3390
|
schema: n.pageSchema
|
|
3390
|
-
}, null, 8, ["schema"])) :
|
|
3391
|
+
}, null, 8, ["schema"])) : E("", !0)
|
|
3391
3392
|
]),
|
|
3392
3393
|
_: 1
|
|
3393
3394
|
}, 8, ["modelValue", "direction"])
|
|
3394
3395
|
], 64);
|
|
3395
3396
|
}
|
|
3396
|
-
const
|
|
3397
|
-
const
|
|
3397
|
+
const ro = /* @__PURE__ */ C(ao, [["render", io]]);
|
|
3398
|
+
const uo = {
|
|
3398
3399
|
components: {
|
|
3399
|
-
Breadcrumb:
|
|
3400
|
-
Hamburger:
|
|
3400
|
+
Breadcrumb: hn,
|
|
3401
|
+
Hamburger: yn,
|
|
3401
3402
|
VButton: Ae,
|
|
3402
|
-
PageEditor:
|
|
3403
|
+
PageEditor: ro
|
|
3403
3404
|
},
|
|
3404
3405
|
data() {
|
|
3405
3406
|
return {
|
|
@@ -3412,7 +3413,7 @@ const io = {
|
|
|
3412
3413
|
};
|
|
3413
3414
|
},
|
|
3414
3415
|
computed: {
|
|
3415
|
-
...
|
|
3416
|
+
...Be(["sidebar", "avatar", "name", "nickname", "nav"]),
|
|
3416
3417
|
hasNewMessage() {
|
|
3417
3418
|
return this.$store.state.settings.hasNewMessage;
|
|
3418
3419
|
},
|
|
@@ -3430,7 +3431,7 @@ const io = {
|
|
|
3430
3431
|
}
|
|
3431
3432
|
},
|
|
3432
3433
|
mounted() {
|
|
3433
|
-
|
|
3434
|
+
Qe("el-submenu is-active");
|
|
3434
3435
|
const e = this.getSetting("navBarNotice");
|
|
3435
3436
|
e.length > 0 && !this.getSetting("closeNavNotice") && this.showNotice(e) && this.$notify({
|
|
3436
3437
|
title: "\u63D0\u793A",
|
|
@@ -3438,7 +3439,7 @@ const io = {
|
|
|
3438
3439
|
dangerouslyUseHTMLString: !0,
|
|
3439
3440
|
duration: 0,
|
|
3440
3441
|
onClose: this.closeNavBarNotice
|
|
3441
|
-
}), this.setting.envColor[this.user.env] &&
|
|
3442
|
+
}), this.setting.envColor[this.user.env] && Ht({
|
|
3442
3443
|
elRef: this.$refs.header.$el,
|
|
3443
3444
|
waterMark: this.user.env,
|
|
3444
3445
|
color: "skyblue",
|
|
@@ -3474,19 +3475,19 @@ const io = {
|
|
|
3474
3475
|
(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));
|
|
3475
3476
|
}
|
|
3476
3477
|
}
|
|
3477
|
-
},
|
|
3478
|
+
}, co = { class: "right-content" }, po = { class: "right-item" }, mo = {
|
|
3478
3479
|
key: 0,
|
|
3479
3480
|
class: "right-item"
|
|
3480
|
-
},
|
|
3481
|
+
}, fo = {
|
|
3481
3482
|
class: "right-item-button",
|
|
3482
3483
|
style: { padding: "0" }
|
|
3483
|
-
},
|
|
3484
|
-
function
|
|
3485
|
-
const a = v("hamburger"), u = v("breadcrumb"), p = pe, d = v("VIcon"), f = v("PageEditor"), _ = v("v-button"), T =
|
|
3484
|
+
}, ho = { class: "user-info" }, bo = ["src"], _o = { class: "user-name" };
|
|
3485
|
+
function yo(e, t, l, n, o, s) {
|
|
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 = st, B = se;
|
|
3486
3487
|
return i(), m(B, {
|
|
3487
3488
|
ref: "header",
|
|
3488
3489
|
class: "navbar",
|
|
3489
|
-
style:
|
|
3490
|
+
style: Tt({ background: s.setting.envColor[s.user.env] })
|
|
3490
3491
|
}, {
|
|
3491
3492
|
default: r(() => [
|
|
3492
3493
|
c(p, { span: 16 }, {
|
|
@@ -3502,20 +3503,20 @@ function bo(e, t, l, n, o, s) {
|
|
|
3502
3503
|
}),
|
|
3503
3504
|
c(p, { span: 8 }, {
|
|
3504
3505
|
default: r(() => [
|
|
3505
|
-
b("div",
|
|
3506
|
-
b("div",
|
|
3506
|
+
b("div", co, [
|
|
3507
|
+
b("div", po, [
|
|
3507
3508
|
c(d, {
|
|
3508
3509
|
name: "ra-code",
|
|
3509
3510
|
onClick: s.gotoMenuEdit
|
|
3510
3511
|
}, null, 8, ["onClick"])
|
|
3511
3512
|
]),
|
|
3512
|
-
s.showPageJsonSchemaIcon ? (i(), h("div",
|
|
3513
|
+
s.showPageJsonSchemaIcon ? (i(), h("div", mo, [
|
|
3513
3514
|
c(f)
|
|
3514
|
-
])) :
|
|
3515
|
-
b("div",
|
|
3515
|
+
])) : E("", !0),
|
|
3516
|
+
b("div", fo, [
|
|
3516
3517
|
c(_, { buttons: e.nav }, null, 8, ["buttons"])
|
|
3517
3518
|
]),
|
|
3518
|
-
c(
|
|
3519
|
+
c(U, {
|
|
3519
3520
|
class: "right-item",
|
|
3520
3521
|
trigger: "click"
|
|
3521
3522
|
}, {
|
|
@@ -3546,14 +3547,14 @@ function bo(e, t, l, n, o, s) {
|
|
|
3546
3547
|
})
|
|
3547
3548
|
]),
|
|
3548
3549
|
default: r(() => [
|
|
3549
|
-
b("div",
|
|
3550
|
+
b("div", ho, [
|
|
3550
3551
|
b("img", {
|
|
3551
3552
|
src: e.avatar ? e.avatar : o.defaultAvatar,
|
|
3552
3553
|
class: "user-avatar",
|
|
3553
3554
|
alt: "\u5934\u50CF"
|
|
3554
|
-
}, null, 8,
|
|
3555
|
+
}, null, 8, bo),
|
|
3555
3556
|
g(),
|
|
3556
|
-
b("span",
|
|
3557
|
+
b("span", _o, A(e.nickname || e.name), 1)
|
|
3557
3558
|
])
|
|
3558
3559
|
]),
|
|
3559
3560
|
_: 1
|
|
@@ -3566,13 +3567,13 @@ function bo(e, t, l, n, o, s) {
|
|
|
3566
3567
|
key: 0,
|
|
3567
3568
|
"with-header": !1,
|
|
3568
3569
|
size: "50%"
|
|
3569
|
-
})) :
|
|
3570
|
+
})) : E("", !0)
|
|
3570
3571
|
]),
|
|
3571
3572
|
_: 1
|
|
3572
3573
|
}, 8, ["style"]);
|
|
3573
3574
|
}
|
|
3574
|
-
const
|
|
3575
|
-
const
|
|
3575
|
+
const vo = /* @__PURE__ */ C(uo, [["render", yo], ["__scopeId", "data-v-9d0fb088"]]);
|
|
3576
|
+
const go = {
|
|
3576
3577
|
name: "SidebarLogo",
|
|
3577
3578
|
props: {
|
|
3578
3579
|
collapse: {
|
|
@@ -3588,16 +3589,16 @@ const yo = {
|
|
|
3588
3589
|
return this.$store.state.settings.logo;
|
|
3589
3590
|
}
|
|
3590
3591
|
}
|
|
3591
|
-
},
|
|
3592
|
+
}, ko = (e) => (ze("data-v-49084925"), e = e(), Ke(), e), Eo = ["src"], wo = {
|
|
3592
3593
|
key: 1,
|
|
3593
3594
|
class: "sidebar-title"
|
|
3594
|
-
},
|
|
3595
|
-
function
|
|
3595
|
+
}, So = /* @__PURE__ */ ko(() => /* @__PURE__ */ b("div", null, "\u7CFB\u7EDF", -1)), Co = ["src"], xo = { class: "sidebar-title" };
|
|
3596
|
+
function Bo(e, t, l, n, o, s) {
|
|
3596
3597
|
const a = v("router-link");
|
|
3597
3598
|
return i(), h("div", {
|
|
3598
|
-
class:
|
|
3599
|
+
class: H(["sidebar-logo-container", { collapse: l.collapse }])
|
|
3599
3600
|
}, [
|
|
3600
|
-
c(
|
|
3601
|
+
c(Ft, { name: "sidebarLogoFade" }, {
|
|
3601
3602
|
default: r(() => [
|
|
3602
3603
|
l.collapse ? (i(), m(a, {
|
|
3603
3604
|
key: "collapse",
|
|
@@ -3609,8 +3610,8 @@ function Co(e, t, l, n, o, s) {
|
|
|
3609
3610
|
key: 0,
|
|
3610
3611
|
src: s.logo,
|
|
3611
3612
|
class: "sidebar-logo"
|
|
3612
|
-
}, null, 8,
|
|
3613
|
-
|
|
3613
|
+
}, null, 8, Eo)) : (i(), h("h1", wo, A(s.title), 1)),
|
|
3614
|
+
So
|
|
3614
3615
|
]),
|
|
3615
3616
|
_: 1
|
|
3616
3617
|
})) : (i(), m(a, {
|
|
@@ -3623,8 +3624,8 @@ function Co(e, t, l, n, o, s) {
|
|
|
3623
3624
|
key: 0,
|
|
3624
3625
|
src: s.logo,
|
|
3625
3626
|
class: "sidebar-logo"
|
|
3626
|
-
}, null, 8,
|
|
3627
|
-
b("h1",
|
|
3627
|
+
}, null, 8, Co)) : E("", !0),
|
|
3628
|
+
b("h1", xo, A(s.title), 1)
|
|
3628
3629
|
]),
|
|
3629
3630
|
_: 1
|
|
3630
3631
|
}))
|
|
@@ -3633,7 +3634,7 @@ function Co(e, t, l, n, o, s) {
|
|
|
3633
3634
|
})
|
|
3634
3635
|
], 2);
|
|
3635
3636
|
}
|
|
3636
|
-
const
|
|
3637
|
+
const Ao = /* @__PURE__ */ C(go, [["render", Bo], ["__scopeId", "data-v-49084925"]]), Io = {
|
|
3637
3638
|
props: {
|
|
3638
3639
|
to: {
|
|
3639
3640
|
type: String,
|
|
@@ -3646,10 +3647,10 @@ const xo = /* @__PURE__ */ x(yo, [["render", Co], ["__scopeId", "data-v-49084925
|
|
|
3646
3647
|
},
|
|
3647
3648
|
methods: {
|
|
3648
3649
|
compType(e) {
|
|
3649
|
-
return
|
|
3650
|
+
return je(e) || this.newTab ? "a" : "router-link";
|
|
3650
3651
|
},
|
|
3651
3652
|
linkProps(e) {
|
|
3652
|
-
return
|
|
3653
|
+
return je(e) ? {
|
|
3653
3654
|
is: "a",
|
|
3654
3655
|
href: e,
|
|
3655
3656
|
target: "_blank",
|
|
@@ -3666,15 +3667,15 @@ const xo = /* @__PURE__ */ x(yo, [["render", Co], ["__scopeId", "data-v-49084925
|
|
|
3666
3667
|
}
|
|
3667
3668
|
}
|
|
3668
3669
|
};
|
|
3669
|
-
function
|
|
3670
|
-
return i(), m(
|
|
3670
|
+
function $o(e, t, l, n, o, s) {
|
|
3671
|
+
return i(), m(We(s.compType(l.to)), K(X(s.linkProps(l.to))), {
|
|
3671
3672
|
default: r(() => [
|
|
3672
3673
|
te(e.$slots, "default")
|
|
3673
3674
|
]),
|
|
3674
3675
|
_: 3
|
|
3675
3676
|
}, 16);
|
|
3676
3677
|
}
|
|
3677
|
-
const
|
|
3678
|
+
const To = /* @__PURE__ */ C(Io, [["render", $o]]), Fo = {
|
|
3678
3679
|
computed: {
|
|
3679
3680
|
device() {
|
|
3680
3681
|
return this.$store.state.app.device;
|
|
@@ -3694,7 +3695,7 @@ const Ao = /* @__PURE__ */ x(Bo, [["render", Io]]), $o = {
|
|
|
3694
3695
|
}
|
|
3695
3696
|
}
|
|
3696
3697
|
}
|
|
3697
|
-
},
|
|
3698
|
+
}, Oo = { class: "menu-content" }, Do = /* @__PURE__ */ V({
|
|
3698
3699
|
__name: "MenuContent",
|
|
3699
3700
|
props: {
|
|
3700
3701
|
meta: {
|
|
@@ -3712,17 +3713,17 @@ const Ao = /* @__PURE__ */ x(Bo, [["render", Io]]), $o = {
|
|
|
3712
3713
|
c(n, {
|
|
3713
3714
|
name: e.meta.icon || "ra-all"
|
|
3714
3715
|
}, null, 8, ["name"]),
|
|
3715
|
-
b("span",
|
|
3716
|
+
b("span", Oo, A(e.meta.title), 1)
|
|
3716
3717
|
], 64);
|
|
3717
3718
|
};
|
|
3718
3719
|
}
|
|
3719
|
-
}),
|
|
3720
|
+
}), Po = {
|
|
3720
3721
|
name: "SidebarItem",
|
|
3721
3722
|
components: {
|
|
3722
|
-
AppLink:
|
|
3723
|
-
MenuContent:
|
|
3723
|
+
AppLink: To,
|
|
3724
|
+
MenuContent: Do
|
|
3724
3725
|
},
|
|
3725
|
-
mixins: [
|
|
3726
|
+
mixins: [Fo],
|
|
3726
3727
|
props: {
|
|
3727
3728
|
item: {
|
|
3728
3729
|
type: Object,
|
|
@@ -3746,13 +3747,13 @@ const Ao = /* @__PURE__ */ x(Bo, [["render", Io]]), $o = {
|
|
|
3746
3747
|
}
|
|
3747
3748
|
}
|
|
3748
3749
|
}
|
|
3749
|
-
},
|
|
3750
|
+
}, Ro = {
|
|
3750
3751
|
key: 0,
|
|
3751
3752
|
class: "menu-wrapper"
|
|
3752
3753
|
};
|
|
3753
|
-
function
|
|
3754
|
-
const a = v("menu-content"), u =
|
|
3755
|
-
return l.item.hidden !== !1 ? (i(), h("div",
|
|
3754
|
+
function Lo(e, t, l, n, o, s) {
|
|
3755
|
+
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", Ro, [
|
|
3756
3757
|
l.item.meta && l.item.meta.menuType === 2 ? (i(), h(k, { key: 0 }, [
|
|
3757
3758
|
l.item.meta ? (i(), m(p, {
|
|
3758
3759
|
key: 0,
|
|
@@ -3762,7 +3763,7 @@ function Po(e, t, l, n, o, s) {
|
|
|
3762
3763
|
default: r(() => [
|
|
3763
3764
|
c(u, {
|
|
3764
3765
|
index: l.to,
|
|
3765
|
-
class:
|
|
3766
|
+
class: H({ "submenu-title-noDropdown": !l.isNest })
|
|
3766
3767
|
}, {
|
|
3767
3768
|
default: r(() => [
|
|
3768
3769
|
c(a, {
|
|
@@ -3773,12 +3774,12 @@ function Po(e, t, l, n, o, s) {
|
|
|
3773
3774
|
}, 8, ["index", "class"])
|
|
3774
3775
|
]),
|
|
3775
3776
|
_: 1
|
|
3776
|
-
}, 8, ["to", "new-tab"])) :
|
|
3777
|
+
}, 8, ["to", "new-tab"])) : E("", !0)
|
|
3777
3778
|
], 64)) : l.item.meta && l.item.meta.menuType === 1 ? (i(), m(f, {
|
|
3778
3779
|
key: 1,
|
|
3779
3780
|
ref: "subMenu",
|
|
3780
3781
|
index: l.to,
|
|
3781
|
-
class:
|
|
3782
|
+
class: H({ "submenu-title-noDropdown": !l.isNest }),
|
|
3782
3783
|
"popper-append-to-body": ""
|
|
3783
3784
|
}, {
|
|
3784
3785
|
title: r(() => [
|
|
@@ -3798,7 +3799,7 @@ function Po(e, t, l, n, o, s) {
|
|
|
3798
3799
|
}, null, 8, ["meta"]))
|
|
3799
3800
|
]),
|
|
3800
3801
|
default: r(() => [
|
|
3801
|
-
(i(!0), h(k, null,
|
|
3802
|
+
(i(!0), h(k, null, I(l.item.children, (_) => (i(), m(d, {
|
|
3802
3803
|
key: _.path,
|
|
3803
3804
|
"is-nest": !0,
|
|
3804
3805
|
item: _,
|
|
@@ -3807,24 +3808,24 @@ function Po(e, t, l, n, o, s) {
|
|
|
3807
3808
|
}, null, 8, ["item", "to"]))), 128))
|
|
3808
3809
|
]),
|
|
3809
3810
|
_: 1
|
|
3810
|
-
}, 8, ["index", "class"])) :
|
|
3811
|
-
])) :
|
|
3811
|
+
}, 8, ["index", "class"])) : E("", !0)
|
|
3812
|
+
])) : E("", !0);
|
|
3812
3813
|
}
|
|
3813
|
-
const
|
|
3814
|
+
const Mo = /* @__PURE__ */ C(Po, [["render", Lo]]);
|
|
3814
3815
|
function ft(e) {
|
|
3815
3816
|
return e.filter((t) => {
|
|
3816
3817
|
var l;
|
|
3817
3818
|
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);
|
|
3818
3819
|
});
|
|
3819
3820
|
}
|
|
3820
|
-
const
|
|
3821
|
+
const jo = {
|
|
3821
3822
|
data() {
|
|
3822
3823
|
return {
|
|
3823
3824
|
selected: ""
|
|
3824
3825
|
};
|
|
3825
3826
|
},
|
|
3826
3827
|
computed: {
|
|
3827
|
-
...
|
|
3828
|
+
...Be(["remoteRouter"]),
|
|
3828
3829
|
filterRoutes() {
|
|
3829
3830
|
let e = [];
|
|
3830
3831
|
return this.remoteRouter.forEach((t) => {
|
|
@@ -3838,8 +3839,8 @@ const Lo = {
|
|
|
3838
3839
|
}
|
|
3839
3840
|
}
|
|
3840
3841
|
};
|
|
3841
|
-
function
|
|
3842
|
-
const a =
|
|
3842
|
+
function No(e, t, l, n, o, s) {
|
|
3843
|
+
const a = $e, u = kl, p = Te;
|
|
3843
3844
|
return i(), m(p, {
|
|
3844
3845
|
modelValue: o.selected,
|
|
3845
3846
|
"onUpdate:modelValue": t[0] || (t[0] = (d) => o.selected = d),
|
|
@@ -3849,7 +3850,7 @@ function Mo(e, t, l, n, o, s) {
|
|
|
3849
3850
|
onChange: s.onselected
|
|
3850
3851
|
}, {
|
|
3851
3852
|
default: r(() => [
|
|
3852
|
-
(i(!0), h(k, null,
|
|
3853
|
+
(i(!0), h(k, null, I(s.filterRoutes, (d) => (i(), h(k, {
|
|
3853
3854
|
key: d.path
|
|
3854
3855
|
}, [
|
|
3855
3856
|
d.children !== void 0 ? (i(), h(k, { key: 0 }, [
|
|
@@ -3858,18 +3859,18 @@ function Mo(e, t, l, n, o, s) {
|
|
|
3858
3859
|
label: d.meta.title
|
|
3859
3860
|
}, {
|
|
3860
3861
|
default: r(() => [
|
|
3861
|
-
(i(!0), h(k, null,
|
|
3862
|
+
(i(!0), h(k, null, I(d.children, (f, _) => (i(), h(k, {
|
|
3862
3863
|
key: f.path
|
|
3863
3864
|
}, [
|
|
3864
3865
|
d.meta.menuType !== 0 ? (i(), m(a, {
|
|
3865
3866
|
key: 0,
|
|
3866
3867
|
label: (_ === d.children.length - 1 ? "\u2514\u2500" : "\u251C\u2500") + f.meta.title,
|
|
3867
3868
|
value: f.path
|
|
3868
|
-
}, null, 8, ["label", "value"])) :
|
|
3869
|
+
}, null, 8, ["label", "value"])) : E("", !0)
|
|
3869
3870
|
], 64))), 128))
|
|
3870
3871
|
]),
|
|
3871
3872
|
_: 2
|
|
3872
|
-
}, 1032, ["label"])) :
|
|
3873
|
+
}, 1032, ["label"])) : E("", !0)
|
|
3873
3874
|
], 64)) : (i(), m(a, {
|
|
3874
3875
|
key: 1,
|
|
3875
3876
|
label: "" + d.meta.title,
|
|
@@ -3880,12 +3881,12 @@ function Mo(e, t, l, n, o, s) {
|
|
|
3880
3881
|
_: 1
|
|
3881
3882
|
}, 8, ["modelValue", "onChange"]);
|
|
3882
3883
|
}
|
|
3883
|
-
const
|
|
3884
|
+
const Vo = /* @__PURE__ */ C(jo, [["render", No], ["__scopeId", "data-v-811395be"]]);
|
|
3884
3885
|
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 || {});
|
|
3885
|
-
const
|
|
3886
|
-
components: { SidebarItem:
|
|
3886
|
+
const qo = V({
|
|
3887
|
+
components: { SidebarItem: Mo, Logo: Ao, SearchMenu: Vo },
|
|
3887
3888
|
computed: {
|
|
3888
|
-
...
|
|
3889
|
+
...Be(["sidebar", "remoteRouter", "customRouter"]),
|
|
3889
3890
|
routes() {
|
|
3890
3891
|
let e = [];
|
|
3891
3892
|
return this.$router.options.routes.concat(this.customRouter || []).forEach((t) => {
|
|
@@ -3922,7 +3923,7 @@ const No = V({
|
|
|
3922
3923
|
}
|
|
3923
3924
|
},
|
|
3924
3925
|
mounted() {
|
|
3925
|
-
|
|
3926
|
+
Qe("is-active");
|
|
3926
3927
|
},
|
|
3927
3928
|
methods: {
|
|
3928
3929
|
filterRoute(e) {
|
|
@@ -3930,18 +3931,18 @@ const No = V({
|
|
|
3930
3931
|
}
|
|
3931
3932
|
}
|
|
3932
3933
|
});
|
|
3933
|
-
function
|
|
3934
|
-
const a = v("logo"), u = v("search-menu"), p = v("sidebar-item"), d =
|
|
3934
|
+
function Uo(e, t, l, n, o, s) {
|
|
3935
|
+
const a = v("logo"), u = v("search-menu"), p = v("sidebar-item"), d = El, f = wl;
|
|
3935
3936
|
return i(), h("div", {
|
|
3936
|
-
class:
|
|
3937
|
+
class: H({ "has-logo": e.showLogo })
|
|
3937
3938
|
}, [
|
|
3938
3939
|
e.showLogo ? (i(), m(a, {
|
|
3939
3940
|
key: 0,
|
|
3940
3941
|
collapse: e.isCollapse
|
|
3941
|
-
}, null, 8, ["collapse"])) :
|
|
3942
|
+
}, null, 8, ["collapse"])) : E("", !0),
|
|
3942
3943
|
c(f, { "wrap-class": "scrollbar-wrapper" }, {
|
|
3943
3944
|
default: r(() => [
|
|
3944
|
-
e.isCollapse ?
|
|
3945
|
+
e.isCollapse ? E("", !0) : (i(), m(u, { key: 0 })),
|
|
3945
3946
|
c(d, {
|
|
3946
3947
|
"default-active": e.activeMenu,
|
|
3947
3948
|
collapse: e.isCollapse,
|
|
@@ -3953,10 +3954,10 @@ function Vo(e, t, l, n, o, s) {
|
|
|
3953
3954
|
mode: "vertical"
|
|
3954
3955
|
}, {
|
|
3955
3956
|
default: r(() => [
|
|
3956
|
-
(i(!0), h(k, null,
|
|
3957
|
+
(i(!0), h(k, null, I(e.routes, (_, T) => (i(), h(k, {
|
|
3957
3958
|
key: T + "-module"
|
|
3958
3959
|
}, [
|
|
3959
|
-
(i(!0), h(k, null,
|
|
3960
|
+
(i(!0), h(k, null, I(e.filterRoute(_.routes), ($) => (i(), m(p, {
|
|
3960
3961
|
key: $.path,
|
|
3961
3962
|
item: $,
|
|
3962
3963
|
to: e.$router.resolve($.redirect ? $.redirect : $).fullPath
|
|
@@ -3970,35 +3971,35 @@ function Vo(e, t, l, n, o, s) {
|
|
|
3970
3971
|
})
|
|
3971
3972
|
], 2);
|
|
3972
3973
|
}
|
|
3973
|
-
const
|
|
3974
|
-
const
|
|
3974
|
+
const Ho = /* @__PURE__ */ C(qo, [["render", Uo], ["__scopeId", "data-v-800716bb"]]);
|
|
3975
|
+
const Go = { class: "app-main" }, Jo = {
|
|
3975
3976
|
__name: "AppMain",
|
|
3976
3977
|
setup(e) {
|
|
3977
3978
|
const t = ce(), l = [], n = P(0);
|
|
3978
|
-
return
|
|
3979
|
+
return al(() => {
|
|
3979
3980
|
var o;
|
|
3980
3981
|
(o = t.meta) != null && o.keepAlive && l.indexOf(t.name) && l.push(t.name), n.value++;
|
|
3981
3982
|
}), (o, s) => {
|
|
3982
|
-
const a = v("router-view"), u =
|
|
3983
|
-
return i(), h("section",
|
|
3983
|
+
const a = v("router-view"), u = Sl;
|
|
3984
|
+
return i(), h("section", Go, [
|
|
3984
3985
|
(i(), m(a, {
|
|
3985
|
-
key: o.$route.fullPath +
|
|
3986
|
+
key: o.$route.fullPath + w(n)
|
|
3986
3987
|
})),
|
|
3987
3988
|
c(u, { bottom: 50 })
|
|
3988
3989
|
]);
|
|
3989
3990
|
};
|
|
3990
3991
|
}
|
|
3991
|
-
},
|
|
3992
|
-
const
|
|
3992
|
+
}, zo = /* @__PURE__ */ C(Jo, [["__scopeId", "data-v-ca0f0d98"]]);
|
|
3993
|
+
const Ko = { class: "main-container" }, Wo = {
|
|
3993
3994
|
__name: "index",
|
|
3994
3995
|
setup(e) {
|
|
3995
|
-
const t =
|
|
3996
|
+
const t = tt(), { 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(() => ({
|
|
3996
3997
|
hideSidebar: !o.value.opened,
|
|
3997
3998
|
openSidebar: o.value.opened,
|
|
3998
3999
|
withoutAnimation: o.value.withoutAnimation,
|
|
3999
4000
|
mobile: s.value === "mobile"
|
|
4000
4001
|
})), p = () => l.getBoundingClientRect().width - 1 < n;
|
|
4001
|
-
|
|
4002
|
+
$l(window, "resize", () => f());
|
|
4002
4003
|
const d = () => {
|
|
4003
4004
|
t.dispatch("app/closeSideBar", { withoutAnimation: !1 });
|
|
4004
4005
|
}, f = () => {
|
|
@@ -4008,26 +4009,26 @@ const Jo = { class: "main-container" }, zo = {
|
|
|
4008
4009
|
}
|
|
4009
4010
|
};
|
|
4010
4011
|
return (_, T) => (i(), h("div", {
|
|
4011
|
-
class:
|
|
4012
|
+
class: H([w(u), "app-wrapper"])
|
|
4012
4013
|
}, [
|
|
4013
|
-
|
|
4014
|
+
w(s) === "mobile" && w(o).opened ? (i(), h("div", {
|
|
4014
4015
|
key: 0,
|
|
4015
4016
|
class: "drawer-bg",
|
|
4016
4017
|
onClick: d
|
|
4017
|
-
})) :
|
|
4018
|
-
c(
|
|
4019
|
-
b("div",
|
|
4018
|
+
})) : E("", !0),
|
|
4019
|
+
c(w(Ho), { class: "sidebar-container" }),
|
|
4020
|
+
b("div", Ko, [
|
|
4020
4021
|
b("div", {
|
|
4021
|
-
class:
|
|
4022
|
+
class: H({ "fixed-header": w(a) })
|
|
4022
4023
|
}, [
|
|
4023
|
-
c(
|
|
4024
|
+
c(w(vo))
|
|
4024
4025
|
], 2),
|
|
4025
|
-
c(
|
|
4026
|
+
c(w(zo))
|
|
4026
4027
|
])
|
|
4027
4028
|
], 2));
|
|
4028
4029
|
}
|
|
4029
|
-
}, ht = /* @__PURE__ */
|
|
4030
|
-
class
|
|
4030
|
+
}, ht = /* @__PURE__ */ C(Wo, [["__scopeId", "data-v-957442cd"]]);
|
|
4031
|
+
class Zo {
|
|
4031
4032
|
constructor() {
|
|
4032
4033
|
R(this, "type", "qrcode");
|
|
4033
4034
|
}
|
|
@@ -4039,7 +4040,7 @@ class Ko {
|
|
|
4039
4040
|
showQrCode() {
|
|
4040
4041
|
}
|
|
4041
4042
|
}
|
|
4042
|
-
class
|
|
4043
|
+
class Qo extends Zo {
|
|
4043
4044
|
constructor(l) {
|
|
4044
4045
|
super();
|
|
4045
4046
|
R(this, "type", "qrcode");
|
|
@@ -4052,7 +4053,7 @@ class Wo extends Ko {
|
|
|
4052
4053
|
R(this, "style", "");
|
|
4053
4054
|
}
|
|
4054
4055
|
flag() {
|
|
4055
|
-
const l =
|
|
4056
|
+
const l = Gt("code");
|
|
4056
4057
|
if (l)
|
|
4057
4058
|
return l;
|
|
4058
4059
|
}
|
|
@@ -4062,7 +4063,7 @@ class Wo extends Ko {
|
|
|
4062
4063
|
appid: this.appid,
|
|
4063
4064
|
redirect_uri: encodeURIComponent(this.redirectUri)
|
|
4064
4065
|
};
|
|
4065
|
-
return Z(this.reloadUrl, a) + "&" +
|
|
4066
|
+
return Z(this.reloadUrl, a) + "&" + zt(s || {});
|
|
4066
4067
|
}, n = () => {
|
|
4067
4068
|
const s = {
|
|
4068
4069
|
goto: encodeURIComponent(l()),
|
|
@@ -4073,33 +4074,33 @@ class Wo extends Ko {
|
|
|
4073
4074
|
const { origin: a, data: u } = s;
|
|
4074
4075
|
a === "https://login.dingtalk.com" && (window.location.href = l({ loginTmpCode: u }));
|
|
4075
4076
|
};
|
|
4076
|
-
this.iframe.src = n(),
|
|
4077
|
+
this.iframe.src = n(), Jt({ elId: this.elId, attrs: this.iframe }), typeof window.addEventListener < "u" ? window.addEventListener(
|
|
4077
4078
|
"message",
|
|
4078
4079
|
(s) => o(s),
|
|
4079
4080
|
!1
|
|
4080
4081
|
) : typeof window.attachEvent < "u" && window.attachEvent("onmessage", (s) => this.onScanSuccess(s));
|
|
4081
4082
|
}
|
|
4082
4083
|
}
|
|
4083
|
-
const
|
|
4084
|
-
dingtalk: (e) => new
|
|
4084
|
+
const Xo = {
|
|
4085
|
+
dingtalk: (e) => new Qo(e)
|
|
4085
4086
|
};
|
|
4086
|
-
function
|
|
4087
|
-
return F(S.state.settings.sso || {},
|
|
4087
|
+
function Yo() {
|
|
4088
|
+
return F(S.state.settings.sso || {}, Xo);
|
|
4088
4089
|
}
|
|
4089
|
-
function
|
|
4090
|
-
const t =
|
|
4090
|
+
function es(e) {
|
|
4091
|
+
const t = Yo(), l = S.state.settings.activeSsoKey || "", n = t[l];
|
|
4091
4092
|
if (n !== void 0)
|
|
4092
4093
|
return n(e);
|
|
4093
4094
|
}
|
|
4094
|
-
const
|
|
4095
|
+
const ts = { id: "login" }, ls = /* @__PURE__ */ b("h1", { id: "title" }, "\u767B\u5F55", -1), ns = { id: "form" }, os = { class: "tips" }, ss = { class: "sso" }, as = /* @__PURE__ */ b("div", { id: "sso-qrcode" }, null, -1), is = /* @__PURE__ */ V({
|
|
4095
4096
|
__name: "login",
|
|
4096
4097
|
setup(e) {
|
|
4097
|
-
const t =
|
|
4098
|
+
const t = il(), l = ce(), n = N(() => S.state.settings.loginTips), o = P({
|
|
4098
4099
|
username: "",
|
|
4099
4100
|
password: ""
|
|
4100
4101
|
}), s = () => {
|
|
4101
4102
|
if (o.value.username === "" || o.value.password === "") {
|
|
4102
|
-
|
|
4103
|
+
Cl.error("\u8BF7\u586B\u5199\u7528\u6237\u540D\u548C\u5BC6\u7801");
|
|
4103
4104
|
return;
|
|
4104
4105
|
}
|
|
4105
4106
|
S.dispatch("user/login", o.value).then((a) => {
|
|
@@ -4107,43 +4108,43 @@ const Yo = { id: "login" }, es = /* @__PURE__ */ b("h1", { id: "title" }, "\u767
|
|
|
4107
4108
|
t.push({ path: ((u = l.query) == null ? void 0 : u.redirect) || "/" });
|
|
4108
4109
|
});
|
|
4109
4110
|
};
|
|
4110
|
-
return P(), (a, u) => (i(), h("div",
|
|
4111
|
-
|
|
4112
|
-
b("form",
|
|
4111
|
+
return P(), (a, u) => (i(), h("div", ts, [
|
|
4112
|
+
ls,
|
|
4113
|
+
b("form", ns, [
|
|
4113
4114
|
ve(b("input", {
|
|
4114
|
-
"onUpdate:modelValue": u[0] || (u[0] = (p) =>
|
|
4115
|
+
"onUpdate:modelValue": u[0] || (u[0] = (p) => w(o).username = p),
|
|
4115
4116
|
type: "text",
|
|
4116
4117
|
placeholder: "\u7528\u6237\u540D",
|
|
4117
4118
|
class: "input"
|
|
4118
4119
|
}, null, 512), [
|
|
4119
|
-
[
|
|
4120
|
+
[Me, w(o).username]
|
|
4120
4121
|
]),
|
|
4121
4122
|
ve(b("input", {
|
|
4122
|
-
"onUpdate:modelValue": u[1] || (u[1] = (p) =>
|
|
4123
|
+
"onUpdate:modelValue": u[1] || (u[1] = (p) => w(o).password = p),
|
|
4123
4124
|
type: "password",
|
|
4124
4125
|
placeholder: "\u5BC6\u7801",
|
|
4125
4126
|
class: "input"
|
|
4126
4127
|
}, null, 512), [
|
|
4127
|
-
[
|
|
4128
|
+
[Me, w(o).password]
|
|
4128
4129
|
]),
|
|
4129
4130
|
b("div", {
|
|
4130
4131
|
class: "input button",
|
|
4131
4132
|
onClick: s
|
|
4132
4133
|
}, "\u767B\u5F55"),
|
|
4133
|
-
b("div",
|
|
4134
|
-
b("div", null,
|
|
4134
|
+
b("div", os, [
|
|
4135
|
+
b("div", null, A(w(n)), 1)
|
|
4135
4136
|
]),
|
|
4136
|
-
b("div",
|
|
4137
|
-
|
|
4138
|
-
(i(!0), h(k, null,
|
|
4137
|
+
b("div", ss, [
|
|
4138
|
+
as,
|
|
4139
|
+
(i(!0), h(k, null, I(Object.keys([]), (p) => (i(), h("div", { key: p }, A(p), 1))), 128))
|
|
4139
4140
|
])
|
|
4140
4141
|
])
|
|
4141
4142
|
]));
|
|
4142
4143
|
}
|
|
4143
4144
|
});
|
|
4144
|
-
const
|
|
4145
|
+
const rs = {
|
|
4145
4146
|
name: "NotFoundPage"
|
|
4146
|
-
}, bt = (e) => (
|
|
4147
|
+
}, bt = (e) => (ze("data-v-26068803"), e = e(), Ke(), e), us = { class: "not-found" }, cs = /* @__PURE__ */ bt(() => /* @__PURE__ */ b("svg", {
|
|
4147
4148
|
width: "380px",
|
|
4148
4149
|
height: "500px",
|
|
4149
4150
|
viewBox: "0 0 837 1045",
|
|
@@ -4196,7 +4197,7 @@ const as = {
|
|
|
4196
4197
|
"sketch:type": "MSShapeGroup"
|
|
4197
4198
|
})
|
|
4198
4199
|
])
|
|
4199
|
-
], -1)),
|
|
4200
|
+
], -1)), ps = /* @__PURE__ */ bt(() => /* @__PURE__ */ b("div", { class: "message-box" }, [
|
|
4200
4201
|
/* @__PURE__ */ b("h1", null, "404"),
|
|
4201
4202
|
/* @__PURE__ */ b("p", null, "Page not found"),
|
|
4202
4203
|
/* @__PURE__ */ b("div", { class: "buttons-con" }, [
|
|
@@ -4207,14 +4208,14 @@ const as = {
|
|
|
4207
4208
|
}, "Go to Home Page")
|
|
4208
4209
|
])
|
|
4209
4210
|
])
|
|
4210
|
-
], -1)),
|
|
4211
|
-
|
|
4212
|
-
|
|
4211
|
+
], -1)), ds = [
|
|
4212
|
+
cs,
|
|
4213
|
+
ps
|
|
4213
4214
|
];
|
|
4214
|
-
function
|
|
4215
|
-
return i(), h("div",
|
|
4215
|
+
function ms(e, t, l, n, o, s) {
|
|
4216
|
+
return i(), h("div", us, ds);
|
|
4216
4217
|
}
|
|
4217
|
-
const
|
|
4218
|
+
const fs = /* @__PURE__ */ C(rs, [["render", ms], ["__scopeId", "data-v-26068803"]]), hs = [
|
|
4218
4219
|
{
|
|
4219
4220
|
path: "/",
|
|
4220
4221
|
component: ht,
|
|
@@ -4227,59 +4228,59 @@ const ds = /* @__PURE__ */ x(as, [["render", ps], ["__scopeId", "data-v-26068803
|
|
|
4227
4228
|
{
|
|
4228
4229
|
path: "dashboard",
|
|
4229
4230
|
name: "Dashboard",
|
|
4230
|
-
component:
|
|
4231
|
+
component: cn,
|
|
4231
4232
|
meta: { title: "Dashboard", icon: "el-icon-help", menuType: 2, keepAlive: !0 }
|
|
4232
4233
|
}
|
|
4233
4234
|
]
|
|
4234
4235
|
},
|
|
4235
4236
|
{
|
|
4236
4237
|
path: "/login",
|
|
4237
|
-
component:
|
|
4238
|
+
component: is,
|
|
4238
4239
|
meta: { title: "\u7528\u6237\u767B\u5F55", menuType: 0 },
|
|
4239
4240
|
hidden: !0
|
|
4240
4241
|
},
|
|
4241
4242
|
{
|
|
4242
4243
|
path: "/404",
|
|
4243
|
-
component:
|
|
4244
|
+
component: fs,
|
|
4244
4245
|
meta: { menuType: 0 },
|
|
4245
4246
|
hidden: !0
|
|
4246
4247
|
}
|
|
4247
|
-
], oe =
|
|
4248
|
-
history:
|
|
4249
|
-
routes:
|
|
4248
|
+
], oe = rl({
|
|
4249
|
+
history: ul(),
|
|
4250
|
+
routes: hs
|
|
4250
4251
|
});
|
|
4251
|
-
|
|
4252
|
-
function
|
|
4252
|
+
ge.configure({ showSpinner: !1 });
|
|
4253
|
+
function bs(e) {
|
|
4253
4254
|
e.beforeEach((t, l, n) => {
|
|
4254
|
-
|
|
4255
|
+
ge.start(), t.preHash = location.hash.replace("#", ""), n();
|
|
4255
4256
|
}), e.afterEach((t) => {
|
|
4256
4257
|
t.matched.length > 0 && S.commit("user/updateState", {
|
|
4257
4258
|
key: "path",
|
|
4258
4259
|
value: t.matched[t.matched.length - 1].path.replace("(\\d+)", "")
|
|
4259
|
-
}),
|
|
4260
|
+
}), ge.done();
|
|
4260
4261
|
});
|
|
4261
4262
|
}
|
|
4262
|
-
function
|
|
4263
|
+
function _s() {
|
|
4263
4264
|
return S.state.user.isLodeRemoteRoutes;
|
|
4264
4265
|
}
|
|
4265
4266
|
function _t() {
|
|
4266
4267
|
return S.state.settings.whiteRoutes || [];
|
|
4267
4268
|
}
|
|
4268
|
-
function
|
|
4269
|
+
function ys() {
|
|
4269
4270
|
return S.state.user.token;
|
|
4270
4271
|
}
|
|
4271
|
-
function
|
|
4272
|
+
function vs(e) {
|
|
4272
4273
|
e.beforeEach(async (t, l, n) => {
|
|
4273
4274
|
var p, d;
|
|
4274
4275
|
if (_t().indexOf(t.path) !== -1) {
|
|
4275
4276
|
n();
|
|
4276
4277
|
return;
|
|
4277
4278
|
}
|
|
4278
|
-
if (
|
|
4279
|
+
if (ys()) {
|
|
4279
4280
|
(p = t.query) != null && p.redirect ? n((d = t.query) == null ? void 0 : d.redirect) : n();
|
|
4280
4281
|
return;
|
|
4281
4282
|
}
|
|
4282
|
-
const s = t.query.redirect || t.path, a =
|
|
4283
|
+
const s = t.query.redirect || t.path, a = es({});
|
|
4283
4284
|
if (!a) {
|
|
4284
4285
|
n(`/login?redirect=${s}`);
|
|
4285
4286
|
return;
|
|
@@ -4292,14 +4293,48 @@ function _s(e) {
|
|
|
4292
4293
|
a.jumpToLoginPage(n, `/login?redirect=${s}`);
|
|
4293
4294
|
});
|
|
4294
4295
|
}
|
|
4295
|
-
const
|
|
4296
|
-
|
|
4296
|
+
const gs = {}, ks = { class: "loading preloader" }, Es = /* @__PURE__ */ b("div", { class: "preloader-inner" }, null, -1), ws = [
|
|
4297
|
+
Es
|
|
4297
4298
|
];
|
|
4298
|
-
function
|
|
4299
|
-
return i(), h("div",
|
|
4299
|
+
function Ss(e, t) {
|
|
4300
|
+
return i(), h("div", ks, ws);
|
|
4300
4301
|
}
|
|
4301
|
-
const yt = /* @__PURE__ */
|
|
4302
|
-
|
|
4302
|
+
const yt = /* @__PURE__ */ C(gs, [["render", Ss]]), Cs = {
|
|
4303
|
+
name: "VNotice",
|
|
4304
|
+
props: {
|
|
4305
|
+
dataApi: {
|
|
4306
|
+
type: String,
|
|
4307
|
+
default: ""
|
|
4308
|
+
},
|
|
4309
|
+
notice: {}
|
|
4310
|
+
},
|
|
4311
|
+
data() {
|
|
4312
|
+
return {
|
|
4313
|
+
title: {},
|
|
4314
|
+
hasNotice: !1
|
|
4315
|
+
};
|
|
4316
|
+
},
|
|
4317
|
+
beforeCreate() {
|
|
4318
|
+
if (len(this.$props.dataApi) != 0) {
|
|
4319
|
+
this.$http.get(this.$props.dataApi).then(({ data: e }) => {
|
|
4320
|
+
this.title = e.title, this.hasNotice = len(e.title) != 0;
|
|
4321
|
+
});
|
|
4322
|
+
return;
|
|
4323
|
+
} else
|
|
4324
|
+
this.title = this.notice.title;
|
|
4325
|
+
}
|
|
4326
|
+
};
|
|
4327
|
+
function xs(e, t, l, n, o, s) {
|
|
4328
|
+
const a = xl;
|
|
4329
|
+
return i(), h("div", null, [
|
|
4330
|
+
o.hasNotice ? (i(), m(a, {
|
|
4331
|
+
key: 0,
|
|
4332
|
+
title: o.title
|
|
4333
|
+
}, null, 8, ["title"])) : E("", !0)
|
|
4334
|
+
]);
|
|
4335
|
+
}
|
|
4336
|
+
const vt = /* @__PURE__ */ C(Cs, [["render", xs]]), Bs = V({
|
|
4337
|
+
components: { VLoading: yt, VNotice: vt },
|
|
4303
4338
|
props: {
|
|
4304
4339
|
schemaHandler: {
|
|
4305
4340
|
type: Function,
|
|
@@ -4317,6 +4352,7 @@ const yt = /* @__PURE__ */ x(ys, [["render", Es]]), ws = V({
|
|
|
4317
4352
|
loading: !0,
|
|
4318
4353
|
haveNotice: !1,
|
|
4319
4354
|
notice: {},
|
|
4355
|
+
noticeApi: "",
|
|
4320
4356
|
schema: {},
|
|
4321
4357
|
owners: [],
|
|
4322
4358
|
serviceOffLine: !1
|
|
@@ -4333,15 +4369,15 @@ const yt = /* @__PURE__ */ x(ys, [["render", Es]]), ws = V({
|
|
|
4333
4369
|
beforeCreate() {
|
|
4334
4370
|
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 };
|
|
4335
4371
|
this.$http.get(this.$props.schemaApi || l, n).then(({ data: o }) => {
|
|
4336
|
-
this.loading = !1, Q(o) && (o.notice !== void 0 && (this.haveNotice = !0,
|
|
4372
|
+
this.loading = !1, Q(o) && (o.notice !== void 0 && (this.haveNotice = !0, Ce(o.notice) ? this.notice = {
|
|
4337
4373
|
title: o.notice
|
|
4338
|
-
} : Q(o.notice) && (this.notice = o.notice), delete o.notice), this.owners = o.ownerNames || [], this.serviceOffLine = o.serviceOffLine || !1), this.schema = this.$props.schemaHandler(o, t), S.commit("app/SET_PAGE_JSON_SCHEMA", { page: this.$route.path, json: this.schema });
|
|
4374
|
+
} : Q(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), S.commit("app/SET_PAGE_JSON_SCHEMA", { page: this.$route.path, json: this.schema });
|
|
4339
4375
|
});
|
|
4340
4376
|
}
|
|
4341
4377
|
});
|
|
4342
|
-
const
|
|
4343
|
-
function
|
|
4344
|
-
const a =
|
|
4378
|
+
const As = ["innerHTML"];
|
|
4379
|
+
function Is(e, t, l, n, o, s) {
|
|
4380
|
+
const a = at, u = vt, p = yt;
|
|
4345
4381
|
return i(), h(k, null, [
|
|
4346
4382
|
e.owners.length > 0 ? (i(), m(a, {
|
|
4347
4383
|
key: 0,
|
|
@@ -4349,18 +4385,23 @@ function Cs(e, t, l, n, o, s) {
|
|
|
4349
4385
|
type: "info",
|
|
4350
4386
|
style: { margin: "0 0 20px 0" },
|
|
4351
4387
|
closable: !1
|
|
4352
|
-
}, null, 8, ["title"])) :
|
|
4388
|
+
}, null, 8, ["title"])) : E("", !0),
|
|
4353
4389
|
e.env === "prod" && e.serviceOffLine ? (i(), h("div", {
|
|
4354
4390
|
key: 1,
|
|
4355
4391
|
class: "offline-notice",
|
|
4356
4392
|
innerHTML: e.serviceOffLine === !0 ? e.setting.serviceOffLineNotice : e.serviceOffLine
|
|
4357
|
-
}, null, 8,
|
|
4358
|
-
e.haveNotice ? (i(), m(u,
|
|
4359
|
-
|
|
4393
|
+
}, null, 8, As)) : (i(), h(k, { key: 2 }, [
|
|
4394
|
+
e.haveNotice ? (i(), m(u, {
|
|
4395
|
+
key: 0,
|
|
4396
|
+
notice: e.notice,
|
|
4397
|
+
style: { margin: "0 0 20px 0" },
|
|
4398
|
+
"data-api": e.noticeApi
|
|
4399
|
+
}, null, 8, ["notice", "data-api"])) : E("", !0),
|
|
4400
|
+
e.loading ? (i(), m(p, { key: 1 })) : te(e.$slots, "default", K(G({ key: 2 }, e.schema)), void 0, !0)
|
|
4360
4401
|
], 64))
|
|
4361
4402
|
], 64);
|
|
4362
4403
|
}
|
|
4363
|
-
const ae = /* @__PURE__ */
|
|
4404
|
+
const ae = /* @__PURE__ */ C(Bs, [["render", Is], ["__scopeId", "data-v-015774e8"]]), gt = {
|
|
4364
4405
|
__name: "table",
|
|
4365
4406
|
setup(e) {
|
|
4366
4407
|
const t = (l, n) => {
|
|
@@ -4378,12 +4419,12 @@ const ae = /* @__PURE__ */ x(ws, [["render", Cs], ["__scopeId", "data-v-14e96c9f
|
|
|
4378
4419
|
};
|
|
4379
4420
|
return (l, n) => (i(), m(ae, { "schema-handler": t }, {
|
|
4380
4421
|
default: r((o) => [
|
|
4381
|
-
c(
|
|
4422
|
+
c(w(ne), K(X(o)), null, 16)
|
|
4382
4423
|
]),
|
|
4383
4424
|
_: 1
|
|
4384
4425
|
}));
|
|
4385
4426
|
}
|
|
4386
|
-
},
|
|
4427
|
+
}, we = {
|
|
4387
4428
|
__name: "form",
|
|
4388
4429
|
setup(e) {
|
|
4389
4430
|
const t = ce(), l = (n, o) => {
|
|
@@ -4403,12 +4444,12 @@ const ae = /* @__PURE__ */ x(ws, [["render", Cs], ["__scopeId", "data-v-14e96c9f
|
|
|
4403
4444
|
};
|
|
4404
4445
|
return (n, o) => (i(), m(ae, { "schema-handler": l }, {
|
|
4405
4446
|
default: r((s) => [
|
|
4406
|
-
c(
|
|
4447
|
+
c(w(J), K(X(s)), null, 16)
|
|
4407
4448
|
]),
|
|
4408
4449
|
_: 1
|
|
4409
4450
|
}));
|
|
4410
4451
|
}
|
|
4411
|
-
},
|
|
4452
|
+
}, $s = V({
|
|
4412
4453
|
name: "VTree",
|
|
4413
4454
|
components: {
|
|
4414
4455
|
VForm: J
|
|
@@ -4507,7 +4548,7 @@ const ae = /* @__PURE__ */ x(ws, [["render", Cs], ["__scopeId", "data-v-14e96c9f
|
|
|
4507
4548
|
append(e, t) {
|
|
4508
4549
|
var n, o, s;
|
|
4509
4550
|
this.type = 1;
|
|
4510
|
-
const l = { pid: e.id, [(o = (n = this.$props.props) == null ? void 0 : n.levelKey) != null ? o : "level"]: t.level + 1, ...
|
|
4551
|
+
const l = { pid: e.id, [(o = (n = this.$props.props) == null ? void 0 : n.levelKey) != null ? o : "level"]: t.level + 1, ...Kt((s = this.$props.props) == null ? void 0 : s.effectData, e) };
|
|
4511
4552
|
console.log(111, l), e.children || (e.children = []), this.formData = l, this.formkey++, e.children.push(l), this.treeData = [...this.treeData];
|
|
4512
4553
|
},
|
|
4513
4554
|
canAppend(e, t) {
|
|
@@ -4550,12 +4591,12 @@ const ae = /* @__PURE__ */ x(ws, [["render", Cs], ["__scopeId", "data-v-14e96c9f
|
|
|
4550
4591
|
}
|
|
4551
4592
|
}
|
|
4552
4593
|
});
|
|
4553
|
-
const
|
|
4594
|
+
const Ts = { class: "card-header" }, Fs = /* @__PURE__ */ b("span", null, "\u5217\u8868", -1), Os = { class: "tree-action" }, Ds = { key: 0 }, Ps = {
|
|
4554
4595
|
key: 1,
|
|
4555
4596
|
style: { color: "#E6A23C" }
|
|
4556
|
-
},
|
|
4557
|
-
function
|
|
4558
|
-
const l = ue, n =
|
|
4597
|
+
}, Rs = { class: "card-header" };
|
|
4598
|
+
function Ls(e, t) {
|
|
4599
|
+
const l = ue, n = Bl, o = Fe, s = pe, a = v("v-form"), u = se;
|
|
4559
4600
|
return i(), m(u, {
|
|
4560
4601
|
class: "tree-box",
|
|
4561
4602
|
gutter: 20
|
|
@@ -4568,8 +4609,8 @@ function Os(e, t) {
|
|
|
4568
4609
|
default: r(() => [
|
|
4569
4610
|
c(o, { shadow: "never" }, {
|
|
4570
4611
|
header: r(() => [
|
|
4571
|
-
b("div",
|
|
4572
|
-
|
|
4612
|
+
b("div", Ts, [
|
|
4613
|
+
Fs,
|
|
4573
4614
|
c(l, {
|
|
4574
4615
|
type: "text",
|
|
4575
4616
|
onClick: t[0] || (t[0] = () => e.appendNew())
|
|
@@ -4582,7 +4623,7 @@ function Os(e, t) {
|
|
|
4582
4623
|
])
|
|
4583
4624
|
]),
|
|
4584
4625
|
default: r(() => [
|
|
4585
|
-
(e.treeData || []).length > 0 ? (i(), m(n,
|
|
4626
|
+
(e.treeData || []).length > 0 ? (i(), m(n, G({
|
|
4586
4627
|
key: 0,
|
|
4587
4628
|
style: { height: "100vh" },
|
|
4588
4629
|
data: e.treeData,
|
|
@@ -4594,8 +4635,8 @@ function Os(e, t) {
|
|
|
4594
4635
|
onNodeDragEnd: e.handleDragEnd
|
|
4595
4636
|
}), {
|
|
4596
4637
|
default: r(({ node: p, data: d }) => [
|
|
4597
|
-
b("span",
|
|
4598
|
-
d[e.localTreeProps.props.label] ? (i(), h("span",
|
|
4638
|
+
b("span", Os, [
|
|
4639
|
+
d[e.localTreeProps.props.label] ? (i(), h("span", Ds, A(d[e.localTreeProps.props.label]), 1)) : (i(), h("span", Ps, "\u8BF7\u5728\u53F3\u4FA7\u8868\u5355\u4E2D\u4FEE\u6539 --> ")),
|
|
4599
4640
|
b("span", null, [
|
|
4600
4641
|
d[e.localTreeProps.props.label] ? (i(), m(l, {
|
|
4601
4642
|
key: 0,
|
|
@@ -4607,7 +4648,7 @@ function Os(e, t) {
|
|
|
4607
4648
|
g("\u7F16\u8F91")
|
|
4608
4649
|
]),
|
|
4609
4650
|
_: 2
|
|
4610
|
-
}, 1032, ["onClick"])) :
|
|
4651
|
+
}, 1032, ["onClick"])) : E("", !0),
|
|
4611
4652
|
e.canAppend(d, p) ? (i(), m(l, {
|
|
4612
4653
|
key: 1,
|
|
4613
4654
|
class: "button",
|
|
@@ -4618,7 +4659,7 @@ function Os(e, t) {
|
|
|
4618
4659
|
g("\u6DFB\u52A0")
|
|
4619
4660
|
]),
|
|
4620
4661
|
_: 2
|
|
4621
|
-
}, 1032, ["onClick"])) :
|
|
4662
|
+
}, 1032, ["onClick"])) : E("", !0),
|
|
4622
4663
|
d.children === void 0 || d.children.length === 0 ? (i(), m(l, {
|
|
4623
4664
|
key: 2,
|
|
4624
4665
|
class: "button",
|
|
@@ -4629,12 +4670,12 @@ function Os(e, t) {
|
|
|
4629
4670
|
g("\u5220\u9664")
|
|
4630
4671
|
]),
|
|
4631
4672
|
_: 2
|
|
4632
|
-
}, 1032, ["onClick"])) :
|
|
4673
|
+
}, 1032, ["onClick"])) : E("", !0)
|
|
4633
4674
|
])
|
|
4634
4675
|
])
|
|
4635
4676
|
]),
|
|
4636
4677
|
_: 1
|
|
4637
|
-
}, 16, ["data", "allow-drag", "allow-drop", "onNodeDragEnd"])) :
|
|
4678
|
+
}, 16, ["data", "allow-drag", "allow-drop", "onNodeDragEnd"])) : E("", !0)
|
|
4638
4679
|
]),
|
|
4639
4680
|
_: 1
|
|
4640
4681
|
})
|
|
@@ -4651,19 +4692,19 @@ function Os(e, t) {
|
|
|
4651
4692
|
shadow: "never"
|
|
4652
4693
|
}, {
|
|
4653
4694
|
header: r(() => [
|
|
4654
|
-
b("div",
|
|
4655
|
-
b("span", null,
|
|
4695
|
+
b("div", Rs, [
|
|
4696
|
+
b("span", null, A(e.formType), 1)
|
|
4656
4697
|
])
|
|
4657
4698
|
]),
|
|
4658
4699
|
default: r(() => [
|
|
4659
|
-
(i(), m(a,
|
|
4700
|
+
(i(), m(a, G({
|
|
4660
4701
|
key: e.formkey,
|
|
4661
4702
|
modelValue: e.formData,
|
|
4662
4703
|
"onUpdate:modelValue": t[1] || (t[1] = (p) => e.formData = p)
|
|
4663
4704
|
}, e.formProps, { onSubmit: e.submit }), null, 16, ["modelValue", "onSubmit"]))
|
|
4664
4705
|
]),
|
|
4665
4706
|
_: 1
|
|
4666
|
-
})) :
|
|
4707
|
+
})) : E("", !0)
|
|
4667
4708
|
]),
|
|
4668
4709
|
_: 1
|
|
4669
4710
|
})
|
|
@@ -4671,18 +4712,18 @@ function Os(e, t) {
|
|
|
4671
4712
|
_: 1
|
|
4672
4713
|
});
|
|
4673
4714
|
}
|
|
4674
|
-
const
|
|
4715
|
+
const He = /* @__PURE__ */ C($s, [["render", Ls]]), Ms = {
|
|
4675
4716
|
__name: "tree",
|
|
4676
4717
|
setup(e) {
|
|
4677
4718
|
const t = (l, n) => {
|
|
4678
|
-
const o = Object.keys(
|
|
4719
|
+
const o = Object.keys(He.props);
|
|
4679
4720
|
return Object.keys(l).forEach((s) => {
|
|
4680
4721
|
o.indexOf(s) === -1 && delete l[s];
|
|
4681
4722
|
}), l;
|
|
4682
4723
|
};
|
|
4683
4724
|
return (l, n) => (i(), m(ae, { "schema-handler": t }, {
|
|
4684
4725
|
default: r((o) => [
|
|
4685
|
-
c(
|
|
4726
|
+
c(He, K(X(o)), null, 16)
|
|
4686
4727
|
]),
|
|
4687
4728
|
_: 1
|
|
4688
4729
|
}));
|
|
@@ -4691,14 +4732,14 @@ const Ge = /* @__PURE__ */ x(xs, [["render", Os]]), Ds = {
|
|
|
4691
4732
|
__name: "container",
|
|
4692
4733
|
setup(e) {
|
|
4693
4734
|
const t = P(0);
|
|
4694
|
-
return
|
|
4735
|
+
return cl(() => {
|
|
4695
4736
|
t.value++;
|
|
4696
4737
|
}), (l, n) => {
|
|
4697
4738
|
const o = v("router-view");
|
|
4698
4739
|
return i(), m(o);
|
|
4699
4740
|
};
|
|
4700
4741
|
}
|
|
4701
|
-
},
|
|
4742
|
+
}, js = {
|
|
4702
4743
|
title: {
|
|
4703
4744
|
text: ""
|
|
4704
4745
|
},
|
|
@@ -4727,11 +4768,11 @@ const Ge = /* @__PURE__ */ x(xs, [["render", Os]]), Ds = {
|
|
|
4727
4768
|
},
|
|
4728
4769
|
series: []
|
|
4729
4770
|
};
|
|
4730
|
-
function
|
|
4771
|
+
function Ns(e, t, l) {
|
|
4731
4772
|
if (l.length === 0)
|
|
4732
4773
|
return {};
|
|
4733
|
-
let n = F({},
|
|
4734
|
-
if (n.title.text = e,
|
|
4774
|
+
let n = F({}, js);
|
|
4775
|
+
if (n.title.text = e, Ce(t)) {
|
|
4735
4776
|
const o = [], s = Object.keys(l[0]);
|
|
4736
4777
|
let a = s[0], u = s.filter((d, f) => f > 0), p = t;
|
|
4737
4778
|
if (t.indexOf(":") > -1) {
|
|
@@ -4754,7 +4795,7 @@ function Rs(e, t, l) {
|
|
|
4754
4795
|
}
|
|
4755
4796
|
return Q(t) && (n = F(n, t)), console.log(111, n), n;
|
|
4756
4797
|
}
|
|
4757
|
-
const
|
|
4798
|
+
const Vs = V({
|
|
4758
4799
|
name: "NumberPanel",
|
|
4759
4800
|
props: {
|
|
4760
4801
|
dataList: {
|
|
@@ -4765,27 +4806,27 @@ const Ls = V({
|
|
|
4765
4806
|
data() {
|
|
4766
4807
|
return {};
|
|
4767
4808
|
}
|
|
4768
|
-
}),
|
|
4769
|
-
function
|
|
4770
|
-
return i(!0), h(k, null,
|
|
4771
|
-
b("div",
|
|
4772
|
-
(i(!0), h(k, null,
|
|
4809
|
+
}), qs = { class: "number-panel-title" }, Us = { class: "number" }, Hs = { class: "name" };
|
|
4810
|
+
function Gs(e, t, l, n, o, s) {
|
|
4811
|
+
return i(!0), h(k, null, I(e.dataList, (a, u) => (i(), h("span", { key: u }, [
|
|
4812
|
+
b("div", qs, [
|
|
4813
|
+
(i(!0), h(k, null, I(Object.keys(a), (p, d) => (i(), h("div", {
|
|
4773
4814
|
key: d,
|
|
4774
4815
|
class: "title-inner"
|
|
4775
4816
|
}, [
|
|
4776
|
-
b("p",
|
|
4777
|
-
b("p",
|
|
4817
|
+
b("p", Us, A(a[p]), 1),
|
|
4818
|
+
b("p", Hs, A(p), 1)
|
|
4778
4819
|
]))), 128))
|
|
4779
4820
|
])
|
|
4780
4821
|
]))), 128);
|
|
4781
4822
|
}
|
|
4782
|
-
const
|
|
4823
|
+
const Js = /* @__PURE__ */ C(Vs, [["render", Gs], ["__scopeId", "data-v-cc0d8293"]]), zs = {
|
|
4783
4824
|
components: {
|
|
4784
|
-
Chart:
|
|
4785
|
-
Md:
|
|
4786
|
-
Json:
|
|
4825
|
+
Chart: nl,
|
|
4826
|
+
Md: Tl,
|
|
4827
|
+
Json: Ie,
|
|
4787
4828
|
Table: ne,
|
|
4788
|
-
Number:
|
|
4829
|
+
Number: Js,
|
|
4789
4830
|
Html: ""
|
|
4790
4831
|
},
|
|
4791
4832
|
props: {
|
|
@@ -4806,14 +4847,14 @@ const qs = /* @__PURE__ */ x(Ls, [["render", Vs], ["__scopeId", "data-v-cc0d8293
|
|
|
4806
4847
|
};
|
|
4807
4848
|
if (o === "chart")
|
|
4808
4849
|
return {
|
|
4809
|
-
options:
|
|
4850
|
+
options: Ns(n.id, n.chart, n.data)
|
|
4810
4851
|
};
|
|
4811
4852
|
if (o === "md")
|
|
4812
4853
|
return {
|
|
4813
4854
|
source: n.data
|
|
4814
4855
|
};
|
|
4815
4856
|
if (o === "table") {
|
|
4816
|
-
if (!
|
|
4857
|
+
if (!Xe(n.data))
|
|
4817
4858
|
return { showPagination: !1 };
|
|
4818
4859
|
const s = [];
|
|
4819
4860
|
return n.data[0] && Object.keys(n.data[0]).forEach((a, u) => {
|
|
@@ -4830,21 +4871,21 @@ const qs = /* @__PURE__ */ x(Ls, [["render", Vs], ["__scopeId", "data-v-cc0d8293
|
|
|
4830
4871
|
};
|
|
4831
4872
|
}
|
|
4832
4873
|
};
|
|
4833
|
-
function
|
|
4834
|
-
const a =
|
|
4874
|
+
function Ks(e, t, l, n, o, s) {
|
|
4875
|
+
const a = Fe, u = Ot("resize");
|
|
4835
4876
|
return ve((i(), m(a, {
|
|
4836
4877
|
shadow: "never",
|
|
4837
4878
|
class: "part"
|
|
4838
4879
|
}, {
|
|
4839
4880
|
default: r(() => [
|
|
4840
|
-
(i(), m(
|
|
4881
|
+
(i(), m(We(n.comptype()), K(X(n.compprops(l.option))), null, 16))
|
|
4841
4882
|
]),
|
|
4842
4883
|
_: 1
|
|
4843
4884
|
})), [
|
|
4844
4885
|
[u, !0]
|
|
4845
4886
|
]);
|
|
4846
4887
|
}
|
|
4847
|
-
const
|
|
4888
|
+
const Ws = /* @__PURE__ */ C(zs, [["render", Ks], ["__scopeId", "data-v-a5a65cc1"]]), Zs = /* @__PURE__ */ V({
|
|
4848
4889
|
__name: "index",
|
|
4849
4890
|
props: {
|
|
4850
4891
|
filter: {
|
|
@@ -4858,10 +4899,10 @@ const Gs = /* @__PURE__ */ x(Us, [["render", Hs], ["__scopeId", "data-v-a5a65cc1
|
|
|
4858
4899
|
},
|
|
4859
4900
|
setup(e) {
|
|
4860
4901
|
const t = e, l = useRoute();
|
|
4861
|
-
|
|
4902
|
+
Dt(() => {
|
|
4862
4903
|
});
|
|
4863
4904
|
const n = P({});
|
|
4864
|
-
|
|
4905
|
+
Je(() => {
|
|
4865
4906
|
var f;
|
|
4866
4907
|
(f = t.filter) == null || f.forEach((_) => {
|
|
4867
4908
|
_.default !== null && (n.value[_.field] = _.default);
|
|
@@ -4885,15 +4926,15 @@ const Gs = /* @__PURE__ */ x(Us, [["render", Hs], ["__scopeId", "data-v-a5a65cc1
|
|
|
4885
4926
|
}
|
|
4886
4927
|
return "/focusbi_report/view/" + f;
|
|
4887
4928
|
}), d = (f) => {
|
|
4888
|
-
|
|
4929
|
+
an.get(p.value, { params: f }).then(({ data: _ }) => {
|
|
4889
4930
|
a.value = _.filter, u.value = _.dataPart, s.value++;
|
|
4890
4931
|
});
|
|
4891
4932
|
};
|
|
4892
4933
|
return (f, _) => {
|
|
4893
|
-
const T =
|
|
4934
|
+
const T = Fe, $ = pe, U = at, q = se;
|
|
4894
4935
|
return i(), m(q, null, {
|
|
4895
4936
|
default: r(() => [
|
|
4896
|
-
|
|
4937
|
+
w(a).length > 0 ? (i(), m($, {
|
|
4897
4938
|
key: 0,
|
|
4898
4939
|
span: 24
|
|
4899
4940
|
}, {
|
|
@@ -4903,10 +4944,10 @@ const Gs = /* @__PURE__ */ x(Us, [["render", Hs], ["__scopeId", "data-v-a5a65cc1
|
|
|
4903
4944
|
class: "part-filter"
|
|
4904
4945
|
}, {
|
|
4905
4946
|
default: r(() => [
|
|
4906
|
-
c(
|
|
4907
|
-
modelValue:
|
|
4908
|
-
"onUpdate:modelValue": _[0] || (_[0] = (B) =>
|
|
4909
|
-
"form-items":
|
|
4947
|
+
c(w(J), {
|
|
4948
|
+
modelValue: w(n),
|
|
4949
|
+
"onUpdate:modelValue": _[0] || (_[0] = (B) => Pt(n) ? n.value = B : null),
|
|
4950
|
+
"form-items": w(a),
|
|
4910
4951
|
options: o,
|
|
4911
4952
|
onSubmit: d
|
|
4912
4953
|
}, null, 8, ["modelValue", "form-items"])
|
|
@@ -4915,27 +4956,27 @@ const Gs = /* @__PURE__ */ x(Us, [["render", Hs], ["__scopeId", "data-v-a5a65cc1
|
|
|
4915
4956
|
})
|
|
4916
4957
|
]),
|
|
4917
4958
|
_: 1
|
|
4918
|
-
})) :
|
|
4959
|
+
})) : E("", !0),
|
|
4919
4960
|
c($, { span: 24 }, {
|
|
4920
4961
|
default: r(() => [
|
|
4921
4962
|
c(q, { gutter: 20 }, {
|
|
4922
4963
|
default: r(() => [
|
|
4923
|
-
(i(!0), h(k, null,
|
|
4964
|
+
(i(!0), h(k, null, I(w(u), (B, W) => (i(), m($, {
|
|
4924
4965
|
key: W,
|
|
4925
4966
|
span: B.col || 24
|
|
4926
4967
|
}, {
|
|
4927
4968
|
default: r(() => [
|
|
4928
|
-
B.errMsg ? (i(), m(
|
|
4969
|
+
B.errMsg ? (i(), m(U, {
|
|
4929
4970
|
key: 1,
|
|
4930
4971
|
title: B.id + " \u7247\u6BB5\u6267\u884C\u51FA\u9519",
|
|
4931
4972
|
type: "error"
|
|
4932
4973
|
}, {
|
|
4933
4974
|
default: r(() => [
|
|
4934
|
-
g(
|
|
4975
|
+
g(A(B.errMsg), 1)
|
|
4935
4976
|
]),
|
|
4936
4977
|
_: 2
|
|
4937
|
-
}, 1032, ["title"])) : (i(), m(
|
|
4938
|
-
key:
|
|
4978
|
+
}, 1032, ["title"])) : (i(), m(Ws, {
|
|
4979
|
+
key: w(s),
|
|
4939
4980
|
option: B
|
|
4940
4981
|
}, null, 8, ["option"]))
|
|
4941
4982
|
]),
|
|
@@ -4953,7 +4994,7 @@ const Gs = /* @__PURE__ */ x(Us, [["render", Hs], ["__scopeId", "data-v-a5a65cc1
|
|
|
4953
4994
|
};
|
|
4954
4995
|
}
|
|
4955
4996
|
});
|
|
4956
|
-
const
|
|
4997
|
+
const Qs = {
|
|
4957
4998
|
__name: "report",
|
|
4958
4999
|
setup(e) {
|
|
4959
5000
|
const t = useRoute(), l = N(() => {
|
|
@@ -4964,22 +5005,22 @@ const zs = {
|
|
|
4964
5005
|
}
|
|
4965
5006
|
return "/focusbi_report/view/" + n;
|
|
4966
5007
|
});
|
|
4967
|
-
return (n, o) => (i(), m(ae, { "schema-api":
|
|
5008
|
+
return (n, o) => (i(), m(ae, { "schema-api": w(l) }, {
|
|
4968
5009
|
default: r((s) => [
|
|
4969
|
-
c(
|
|
5010
|
+
c(Zs, K(X(s)), null, 16)
|
|
4970
5011
|
]),
|
|
4971
5012
|
_: 1
|
|
4972
5013
|
}, 8, ["schema-api"]));
|
|
4973
5014
|
}
|
|
4974
5015
|
};
|
|
4975
|
-
const
|
|
4976
|
-
card:
|
|
5016
|
+
const Xs = (e) => c("div", null, [e.test]), Ys = {
|
|
5017
|
+
card: el,
|
|
4977
5018
|
form: J,
|
|
4978
5019
|
table: ne,
|
|
4979
|
-
test:
|
|
4980
|
-
row:
|
|
4981
|
-
col:
|
|
4982
|
-
},
|
|
5020
|
+
test: Xs,
|
|
5021
|
+
row: tl,
|
|
5022
|
+
col: ll
|
|
5023
|
+
}, ea = {
|
|
4983
5024
|
card: {
|
|
4984
5025
|
type: "card",
|
|
4985
5026
|
props: {
|
|
@@ -5000,7 +5041,7 @@ const Ks = (e) => c("div", null, [e.test]), Ws = {
|
|
|
5000
5041
|
}
|
|
5001
5042
|
}
|
|
5002
5043
|
};
|
|
5003
|
-
function
|
|
5044
|
+
function ta(e) {
|
|
5004
5045
|
const t = Object.assign({}, e), l = t.type.split(".").reverse(), n = t.span || 24;
|
|
5005
5046
|
delete t.span;
|
|
5006
5047
|
let o = {
|
|
@@ -5012,9 +5053,9 @@ function Qs(e) {
|
|
|
5012
5053
|
type: l[s],
|
|
5013
5054
|
children: [o]
|
|
5014
5055
|
};
|
|
5015
|
-
return o.span = n,
|
|
5056
|
+
return o.span = n, Le([o]);
|
|
5016
5057
|
}
|
|
5017
|
-
function
|
|
5058
|
+
function Le(e) {
|
|
5018
5059
|
const t = {
|
|
5019
5060
|
type: "row",
|
|
5020
5061
|
props: {
|
|
@@ -5041,47 +5082,47 @@ function Me(e) {
|
|
|
5041
5082
|
t.children.push({
|
|
5042
5083
|
type: "col",
|
|
5043
5084
|
props: o,
|
|
5044
|
-
children:
|
|
5085
|
+
children: ta(n)
|
|
5045
5086
|
});
|
|
5046
5087
|
return;
|
|
5047
5088
|
}
|
|
5048
5089
|
n = F({
|
|
5049
5090
|
props: {}
|
|
5050
|
-
},
|
|
5051
|
-
const s =
|
|
5052
|
-
s.length && (n.children =
|
|
5091
|
+
}, ea[n.type] || {}, n);
|
|
5092
|
+
const s = kt(n.children);
|
|
5093
|
+
s.length && (n.children = Le(s)), t.children.push({
|
|
5053
5094
|
type: "col",
|
|
5054
5095
|
props: o,
|
|
5055
5096
|
children: [n]
|
|
5056
5097
|
});
|
|
5057
5098
|
}), [t];
|
|
5058
5099
|
}
|
|
5059
|
-
function
|
|
5060
|
-
return
|
|
5100
|
+
function kt(e) {
|
|
5101
|
+
return Xe(e) ? e : Q(e) ? [e] : [];
|
|
5061
5102
|
}
|
|
5062
|
-
let
|
|
5063
|
-
const
|
|
5064
|
-
const t =
|
|
5065
|
-
return
|
|
5066
|
-
default: () =>
|
|
5103
|
+
let Se = {};
|
|
5104
|
+
const Et = (e) => {
|
|
5105
|
+
const t = Ys[e.type] || Se[e.type] || e.type;
|
|
5106
|
+
return Lt(t, e.props, {
|
|
5107
|
+
default: () => kt(e.children).map((l) => Et(l))
|
|
5067
5108
|
});
|
|
5068
|
-
},
|
|
5109
|
+
}, la = (e) => (Object.keys(Se).length === 0 && (Se = Rt().appContext.components), Le(Object.values(e.schema)).map((l) => Et(l))), na = {
|
|
5069
5110
|
__name: "custom",
|
|
5070
5111
|
setup(e) {
|
|
5071
|
-
const t = P([]), l = (n, o) => (t.value =
|
|
5112
|
+
const t = P([]), l = (n, o) => (t.value = Mt(n), n);
|
|
5072
5113
|
return (n, o) => (i(), m(ae, { "schema-handler": l }, {
|
|
5073
5114
|
default: r(() => [
|
|
5074
|
-
c(
|
|
5115
|
+
c(w(la), { schema: w(t) }, null, 8, ["schema"])
|
|
5075
5116
|
]),
|
|
5076
5117
|
_: 1
|
|
5077
5118
|
}));
|
|
5078
5119
|
}
|
|
5079
5120
|
};
|
|
5080
5121
|
let ee = {};
|
|
5081
|
-
function
|
|
5122
|
+
function gi(e) {
|
|
5082
5123
|
ee = e;
|
|
5083
5124
|
}
|
|
5084
|
-
const
|
|
5125
|
+
const oa = (e) => {
|
|
5085
5126
|
const t = (l) => {
|
|
5086
5127
|
const n = "./views/" + l + ".vue";
|
|
5087
5128
|
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);
|
|
@@ -5090,33 +5131,33 @@ const ea = (e) => {
|
|
|
5090
5131
|
return ye;
|
|
5091
5132
|
switch (e.page_type) {
|
|
5092
5133
|
case L.list:
|
|
5093
|
-
return
|
|
5134
|
+
return gt;
|
|
5094
5135
|
case L.form:
|
|
5095
|
-
return
|
|
5136
|
+
return we;
|
|
5096
5137
|
case L.custom:
|
|
5097
5138
|
case L.localComp:
|
|
5098
5139
|
return t(e.view || "");
|
|
5099
5140
|
case L.tree:
|
|
5100
|
-
return
|
|
5141
|
+
return Ms;
|
|
5101
5142
|
case L.report:
|
|
5102
|
-
return
|
|
5143
|
+
return Qs;
|
|
5103
5144
|
case L.customSchema:
|
|
5104
|
-
return
|
|
5145
|
+
return na;
|
|
5105
5146
|
}
|
|
5106
5147
|
return ye;
|
|
5107
5148
|
};
|
|
5108
|
-
function
|
|
5149
|
+
function sa(e) {
|
|
5109
5150
|
let t = e.path;
|
|
5110
5151
|
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;
|
|
5111
5152
|
}
|
|
5112
|
-
function
|
|
5153
|
+
function aa(e) {
|
|
5113
5154
|
return (e.path + e.name).split("/").filter((t) => t).join("_");
|
|
5114
5155
|
}
|
|
5115
|
-
const
|
|
5156
|
+
const wt = (e) => {
|
|
5116
5157
|
const t = e.type !== D.page, l = {
|
|
5117
|
-
path:
|
|
5118
|
-
name: e.id + "_" +
|
|
5119
|
-
component:
|
|
5158
|
+
path: sa(e),
|
|
5159
|
+
name: e.id + "_" + aa(e) + "_" + e.path.replaceAll("/", "_"),
|
|
5160
|
+
component: oa(e),
|
|
5120
5161
|
meta: {
|
|
5121
5162
|
id: e.id,
|
|
5122
5163
|
pageId: e.id,
|
|
@@ -5127,13 +5168,13 @@ const Et = (e) => {
|
|
|
5127
5168
|
menuType: e.type,
|
|
5128
5169
|
keepAlive: !1
|
|
5129
5170
|
},
|
|
5130
|
-
children: e.children ? e.children.map((n) =>
|
|
5171
|
+
children: e.children ? e.children.map((n) => wt(n)) : []
|
|
5131
5172
|
};
|
|
5132
5173
|
if (e.page_type === L.entity) {
|
|
5133
5174
|
const n = e.path + "/list", o = e.path + "/form", s = e.path + "/:id", a = [{
|
|
5134
5175
|
path: n,
|
|
5135
5176
|
name: e.name + "\u5217\u8868" + e.id,
|
|
5136
|
-
component:
|
|
5177
|
+
component: gt,
|
|
5137
5178
|
meta: {
|
|
5138
5179
|
id: e.id + 99999,
|
|
5139
5180
|
title: "\u5217\u8868",
|
|
@@ -5145,7 +5186,7 @@ const Et = (e) => {
|
|
|
5145
5186
|
}, {
|
|
5146
5187
|
path: o,
|
|
5147
5188
|
name: e.name + "\u65B0\u5EFA" + e.id,
|
|
5148
|
-
component:
|
|
5189
|
+
component: we,
|
|
5149
5190
|
meta: {
|
|
5150
5191
|
id: e.id + 99999 + 1,
|
|
5151
5192
|
title: "\u65B0\u5EFA",
|
|
@@ -5157,7 +5198,7 @@ const Et = (e) => {
|
|
|
5157
5198
|
}, {
|
|
5158
5199
|
path: s,
|
|
5159
5200
|
name: e.name + "\u7F16\u8F91" + e.id,
|
|
5160
|
-
component:
|
|
5201
|
+
component: we,
|
|
5161
5202
|
meta: {
|
|
5162
5203
|
id: e.id + 99999 + 2,
|
|
5163
5204
|
title: "\u7F16\u8F91",
|
|
@@ -5185,7 +5226,7 @@ const Et = (e) => {
|
|
|
5185
5226
|
}
|
|
5186
5227
|
}
|
|
5187
5228
|
return l;
|
|
5188
|
-
},
|
|
5229
|
+
}, ia = (e) => {
|
|
5189
5230
|
const t = [];
|
|
5190
5231
|
return e.forEach((l) => {
|
|
5191
5232
|
const n = {
|
|
@@ -5194,22 +5235,22 @@ const Et = (e) => {
|
|
|
5194
5235
|
routes: []
|
|
5195
5236
|
};
|
|
5196
5237
|
l.routes.forEach((o) => {
|
|
5197
|
-
n.routes.push(
|
|
5238
|
+
n.routes.push(wt(o));
|
|
5198
5239
|
}), t.push(n);
|
|
5199
5240
|
}), t;
|
|
5200
5241
|
};
|
|
5201
|
-
function
|
|
5242
|
+
function ra(e) {
|
|
5202
5243
|
e.beforeEach(async (t, l, n) => {
|
|
5203
5244
|
if (_t().indexOf(t.path) !== -1) {
|
|
5204
5245
|
n();
|
|
5205
5246
|
return;
|
|
5206
5247
|
}
|
|
5207
|
-
if (
|
|
5248
|
+
if (_s()) {
|
|
5208
5249
|
n();
|
|
5209
5250
|
return;
|
|
5210
5251
|
}
|
|
5211
5252
|
await S.dispatch("user/info");
|
|
5212
|
-
const o = await S.dispatch("user/loadRemoteRoutes"), s =
|
|
5253
|
+
const o = await S.dispatch("user/loadRemoteRoutes"), s = ia(o);
|
|
5213
5254
|
s.forEach((a) => {
|
|
5214
5255
|
a.routes.forEach((u) => {
|
|
5215
5256
|
e.addRoute({
|
|
@@ -5221,7 +5262,7 @@ function oa(e) {
|
|
|
5221
5262
|
}), e.addRoute({ name: "404", path: "/:pathMatch(.*)*", redirect: "/404", hidden: !0 }), S.commit("user/updateRemoteRouter", s), await e.replace(t), n();
|
|
5222
5263
|
});
|
|
5223
5264
|
}
|
|
5224
|
-
function
|
|
5265
|
+
function ua(e) {
|
|
5225
5266
|
e.beforeEach(async (t, l, n) => {
|
|
5226
5267
|
var u;
|
|
5227
5268
|
const s = [S.state.settings.title || ""], a = t.matched.length;
|
|
@@ -5234,11 +5275,11 @@ function sa(e) {
|
|
|
5234
5275
|
Object.keys(t.meta).length > 0 && await S.dispatch("app/setCurrentMeta", t.meta);
|
|
5235
5276
|
});
|
|
5236
5277
|
}
|
|
5237
|
-
function
|
|
5238
|
-
|
|
5278
|
+
function ca(e) {
|
|
5279
|
+
vs(e), bs(e), ra(e), ua(e);
|
|
5239
5280
|
}
|
|
5240
|
-
|
|
5241
|
-
const
|
|
5281
|
+
ca(oe);
|
|
5282
|
+
const pa = {
|
|
5242
5283
|
beforeMount(e, t) {
|
|
5243
5284
|
e.clickOutsideEvent = function(l) {
|
|
5244
5285
|
e === l.target || e.contains(l.target) || t.value(l, e);
|
|
@@ -5247,23 +5288,23 @@ const ia = {
|
|
|
5247
5288
|
unmounted(e) {
|
|
5248
5289
|
document.body.removeEventListener("click", e.clickOutsideEvent);
|
|
5249
5290
|
}
|
|
5250
|
-
}, z =
|
|
5291
|
+
}, z = Il(), da = {
|
|
5251
5292
|
mounted: (e, t) => {
|
|
5252
5293
|
e !== null && (t.value, e.oncontextmenu = (l) => {
|
|
5253
5294
|
l.preventDefault(), l.stopPropagation(), l.cancelBubble = !0, t.value && z.emit("right-click", { event: l, data: t.value });
|
|
5254
5295
|
});
|
|
5255
5296
|
}
|
|
5256
|
-
},
|
|
5297
|
+
}, ma = {
|
|
5257
5298
|
mounted(e) {
|
|
5258
5299
|
}
|
|
5259
5300
|
};
|
|
5260
|
-
function
|
|
5301
|
+
function Ge(e, t) {
|
|
5261
5302
|
let l = e[`offset${t}`], n = e.offsetParent;
|
|
5262
5303
|
for (; n; )
|
|
5263
5304
|
l += n[`offset${t}`], n = n.offsetParent;
|
|
5264
5305
|
return l;
|
|
5265
5306
|
}
|
|
5266
|
-
const
|
|
5307
|
+
const fa = {
|
|
5267
5308
|
mounted: (e, t) => {
|
|
5268
5309
|
if (e === null || !t.value.dev)
|
|
5269
5310
|
return;
|
|
@@ -5274,7 +5315,7 @@ const ca = {
|
|
|
5274
5315
|
l.classList.add("devtool-hover");
|
|
5275
5316
|
const n = document.createElement("i");
|
|
5276
5317
|
n.className = "devtool-item-wrapper", l.onmouseover = () => {
|
|
5277
|
-
n.style.height = l.offsetHeight + 30 + "px", n.style.width = l.offsetWidth + 30 + "px", n.style.top =
|
|
5318
|
+
n.style.height = l.offsetHeight + 30 + "px", n.style.width = l.offsetWidth + 30 + "px", n.style.top = Ge(l, "Top") - 15 + "px", n.style.left = Ge(l, "Left") - 15 + "px";
|
|
5278
5319
|
};
|
|
5279
5320
|
const o = document.createElement("span");
|
|
5280
5321
|
o.className = "dev-action-edit", o.title = "\u7F16\u8F91";
|
|
@@ -5289,46 +5330,46 @@ const ca = {
|
|
|
5289
5330
|
z.emit("dev-action", { event: p, data: { type: "del", devId: t.value.devId } });
|
|
5290
5331
|
}, n.appendChild(a), l.insertBefore(n, l.firstChild);
|
|
5291
5332
|
}
|
|
5292
|
-
},
|
|
5333
|
+
}, ha = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5293
5334
|
__proto__: null,
|
|
5294
|
-
outClick:
|
|
5295
|
-
rightClick:
|
|
5296
|
-
resize:
|
|
5297
|
-
devtool:
|
|
5335
|
+
outClick: pa,
|
|
5336
|
+
rightClick: da,
|
|
5337
|
+
resize: ma,
|
|
5338
|
+
devtool: fa
|
|
5298
5339
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5299
5340
|
let re;
|
|
5300
|
-
function
|
|
5301
|
-
return e ?
|
|
5341
|
+
function ki(e) {
|
|
5342
|
+
return e ? Pe(F(de.axios, e)) : re;
|
|
5302
5343
|
}
|
|
5303
|
-
function
|
|
5304
|
-
const t = F(de, e), l =
|
|
5344
|
+
function Ei(e) {
|
|
5345
|
+
const t = F(de, e), l = jt(Fl), n = Ea(t), o = t.plugins || [];
|
|
5305
5346
|
o.unshift(n), o.forEach((s) => {
|
|
5306
|
-
|
|
5307
|
-
}), t != null && t.mock &&
|
|
5308
|
-
"X-Token":
|
|
5347
|
+
ka(l, s);
|
|
5348
|
+
}), t != null && t.mock && ql(), re = Pe(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(() => ({
|
|
5349
|
+
"X-Token": De()
|
|
5309
5350
|
})), oe.isReady().then(() => l.mount("#app"));
|
|
5310
5351
|
}
|
|
5311
|
-
function
|
|
5352
|
+
function ba(e, t = {}) {
|
|
5312
5353
|
Object.keys(t).forEach((l) => {
|
|
5313
5354
|
e.component(l, t[l]);
|
|
5314
5355
|
});
|
|
5315
5356
|
}
|
|
5316
|
-
function
|
|
5357
|
+
function _a(e = []) {
|
|
5317
5358
|
e.forEach((t) => {
|
|
5318
5359
|
oe.addRoute(t);
|
|
5319
5360
|
}), S.commit("user/setCustomRoutes", e);
|
|
5320
5361
|
}
|
|
5321
|
-
function
|
|
5362
|
+
function ya(e, t) {
|
|
5322
5363
|
t.forEach((l) => {
|
|
5323
5364
|
Q(l) && (l = [l]), e.use(...l);
|
|
5324
5365
|
});
|
|
5325
5366
|
}
|
|
5326
|
-
function
|
|
5367
|
+
function va(e, t = {}) {
|
|
5327
5368
|
Object.keys(t).forEach((l) => {
|
|
5328
5369
|
e.directive(l, t[l]);
|
|
5329
5370
|
});
|
|
5330
5371
|
}
|
|
5331
|
-
function
|
|
5372
|
+
function ga(e = {}) {
|
|
5332
5373
|
const t = ["app", "settings", "user"];
|
|
5333
5374
|
Object.keys(e).forEach((l) => {
|
|
5334
5375
|
if (t.indexOf(l) !== -1) {
|
|
@@ -5338,39 +5379,39 @@ function ba(e = {}) {
|
|
|
5338
5379
|
S.registerModule(l, e[l]);
|
|
5339
5380
|
});
|
|
5340
5381
|
}
|
|
5341
|
-
function
|
|
5342
|
-
|
|
5382
|
+
function ka(e, t) {
|
|
5383
|
+
ba(e, t.components || {}), _a(t.routes || []), ya(e, t.use || []), va(e, t.directives || {}), ga(t.storeModules || {}), rt(t.mockApis || []);
|
|
5343
5384
|
}
|
|
5344
|
-
function
|
|
5385
|
+
function Ea(e) {
|
|
5345
5386
|
var t;
|
|
5346
5387
|
return {
|
|
5347
|
-
components: { VIcon:
|
|
5348
|
-
directives:
|
|
5388
|
+
components: { VIcon: sl },
|
|
5389
|
+
directives: ha,
|
|
5349
5390
|
use: [
|
|
5350
5391
|
S,
|
|
5351
5392
|
oe,
|
|
5352
|
-
[
|
|
5393
|
+
[Qt, { locale: et, ...(t = e.settings) == null ? void 0 : t.ElementPlus }]
|
|
5353
5394
|
]
|
|
5354
5395
|
};
|
|
5355
5396
|
}
|
|
5356
5397
|
export {
|
|
5357
|
-
|
|
5398
|
+
Zo as BaseSso,
|
|
5358
5399
|
ye as Container,
|
|
5359
|
-
|
|
5400
|
+
Qo as DingTalk,
|
|
5360
5401
|
ht as Layout,
|
|
5361
5402
|
D as MenuType,
|
|
5362
|
-
|
|
5363
|
-
|
|
5403
|
+
Xl as Message,
|
|
5404
|
+
Ve as MessageBox,
|
|
5364
5405
|
L as PageType,
|
|
5365
|
-
|
|
5366
|
-
|
|
5406
|
+
Yo as allSso,
|
|
5407
|
+
Ei as createAdmin,
|
|
5367
5408
|
z as eventBus,
|
|
5368
|
-
|
|
5409
|
+
rn as getCmp,
|
|
5369
5410
|
re as http,
|
|
5370
|
-
|
|
5371
|
-
|
|
5372
|
-
|
|
5373
|
-
|
|
5374
|
-
|
|
5411
|
+
Pe as instance,
|
|
5412
|
+
gi as regViews,
|
|
5413
|
+
vi as setCmp,
|
|
5414
|
+
ia as transRemoteModules,
|
|
5415
|
+
ki as useHttp
|
|
5375
5416
|
};
|
|
5376
5417
|
//# sourceMappingURL=index.es.js.map
|