@okiss/oms 0.0.28 → 0.0.29
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 +925 -921
- package/dist/index.es.js.map +1 -1
- package/dist/types/App.d.ts +1 -1
- package/dist/types/components/PageLoad.d.ts +1 -1
- package/dist/types/components/RightMenu.d.ts +1 -1
- package/dist/types/components/VTree.d.ts +1 -1
- package/dist/types/components/report/NumberPanel.d.ts +1 -1
- package/dist/types/scaffold/dashboard.d.ts +1 -1
- package/dist/types/scaffold/login.d.ts +1 -1
- package/package.json +24 -26
package/dist/index.es.js
CHANGED
|
@@ -1,20 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
var gt = Object.defineProperty;
|
|
2
|
+
var kt = (e, t, l) => t in e ? gt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l;
|
|
3
|
+
var P = (e, t, l) => (kt(e, typeof t != "symbol" ? t + "" : t, l), l);
|
|
4
|
+
import { defineComponent as V, onBeforeMount as Je, provide as Et, resolveComponent as v, openBlock as i, createBlock as m, unref as w, withCtx as r, createVNode as c, computed as N, createTextVNode as g, TransitionGroup as wt, createElementBlock as f, Fragment as k, renderList as A, toDisplayString as I, normalizeClass as G, renderSlot as ee, mergeProps as U, createCommentVNode as E, toRefs as St, ref as L, normalizeStyle as Ct, createElementVNode as b, Transition as Bt, pushScopeId as ze, popScopeId as Ke, resolveDynamicComponent as We, normalizeProps as z, guardReactiveProps as Q, withDirectives as ye, vModelText as Me, resolveDirective as xt, onMounted as It, isRef as At, createApp as $t } from "vue";
|
|
5
|
+
import { ElConfigProvider as Tt, ElBreadcrumbItem as Ft, ElBreadcrumb as Dt, ElRow as oe, ElMain as Ot, ElAside as Pt, ElContainer as Rt, ElDivider as Ze, ElButton as ie, ElOption as Se, ElSelect as Ce, ElFormItem as Qe, ElForm as Xe, ElCol as ue, ElDrawer as Ye, ElDropdownItem as Lt, ElDropdownMenu as Mt, ElDropdown as jt, ElMenuItem as Nt, ElSubMenu as Vt, ElOptionGroup as qt, ElMenu as Ut, ElScrollbar as Ht, ElBacktop as Gt, ElMessage as Jt, ElAlert as ve, ElTree as zt, ElCard as Be } from "element-plus/es";
|
|
3
6
|
import "element-plus/es/components/config-provider/style/css";
|
|
4
|
-
import
|
|
5
|
-
import { addNewStyle as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { createStore as
|
|
11
|
-
import
|
|
7
|
+
import xe from "element-plus/lib/locale/lang/zh-cn";
|
|
8
|
+
import { addNewStyle as Kt, addNewStyleTag as Wt, queryParams as Zt, logGroup as Qt, isString as Ie, compactObject as et, showEleByClassName as tt, waterMarker as Xt, Cache as fe, isExternal as je, getQueryParam as Yt, createIFrame as el, strVarReplace as W, obj2Param as tl, isObject as Ae, effectDataTrans as ll, isArray as ol } from "@okiss/utils";
|
|
9
|
+
import he from "mockjs";
|
|
10
|
+
import nl, { cloneDeep as y, merge as O, get as te, unset as lt } from "lodash";
|
|
11
|
+
import $e from "axios";
|
|
12
|
+
import M from "js-cookie";
|
|
13
|
+
import { createStore as al, useStore as ot, mapGetters as Te } from "vuex";
|
|
14
|
+
import sl, { ElMessage as il, ElMessageBox as rl } from "element-plus";
|
|
12
15
|
import "element-plus/dist/index.css";
|
|
13
16
|
import "dayjs/locale/zh-cn";
|
|
14
|
-
import { VForm as
|
|
17
|
+
import { VForm as Z, VBtn as Fe, JsonView as De, VTable as re, VChart as ul, setUploadHeaderHandle as cl, VIcon as pl } from "@okiss/vbtf";
|
|
15
18
|
import "normalize.css/normalize.css";
|
|
16
19
|
import "@okiss/vbtf/style.css";
|
|
17
|
-
import { useRoute as
|
|
20
|
+
import { useRoute as ce, onBeforeRouteLeave as dl, useRouter as ml, createRouter as fl, createWebHashHistory as hl, onBeforeRouteUpdate as bl } from "vue-router";
|
|
18
21
|
import "element-plus/es/components/row/style/css";
|
|
19
22
|
import "element-plus/es/components/drawer/style/css";
|
|
20
23
|
import "element-plus/es/components/dropdown/style/css";
|
|
@@ -23,7 +26,7 @@ import "element-plus/es/components/dropdown-item/style/css";
|
|
|
23
26
|
import "element-plus/es/components/col/style/css";
|
|
24
27
|
import "element-plus/es/components/breadcrumb/style/css";
|
|
25
28
|
import "element-plus/es/components/breadcrumb-item/style/css";
|
|
26
|
-
import * as
|
|
29
|
+
import * as _l from "path-to-regexp";
|
|
27
30
|
import "element-plus/es/components/form/style/css";
|
|
28
31
|
import "element-plus/es/components/form-item/style/css";
|
|
29
32
|
import "element-plus/es/components/select/style/css";
|
|
@@ -33,20 +36,20 @@ import "element-plus/es/components/divider/style/css";
|
|
|
33
36
|
import "element-plus/es/components/container/style/css";
|
|
34
37
|
import "element-plus/es/components/aside/style/css";
|
|
35
38
|
import "element-plus/es/components/main/style/css";
|
|
36
|
-
import
|
|
39
|
+
import yl from "mitt";
|
|
37
40
|
import "element-plus/es/components/scrollbar/style/css";
|
|
38
41
|
import "element-plus/es/components/menu/style/css";
|
|
39
42
|
import "element-plus/es/components/sub-menu/style/css";
|
|
40
43
|
import "element-plus/es/components/menu-item/style/css";
|
|
41
44
|
import "element-plus/es/components/option-group/style/css";
|
|
42
45
|
import "element-plus/es/components/backtop/style/css";
|
|
43
|
-
import { useEventListener as
|
|
46
|
+
import { useEventListener as vl } from "@vueuse/core";
|
|
44
47
|
import "element-plus/es/components/alert/style/css";
|
|
45
48
|
import "element-plus/es/components/card/style/css";
|
|
46
49
|
import "element-plus/es/components/tree/style/css";
|
|
47
|
-
import
|
|
50
|
+
import gl from "vue3-markdown-it";
|
|
48
51
|
import "element-plus/es/components/message/style/css";
|
|
49
|
-
import
|
|
52
|
+
import ge from "nprogress";
|
|
50
53
|
import "nprogress/nprogress.css";
|
|
51
54
|
String.prototype.format || (String.prototype.format = function() {
|
|
52
55
|
const e = arguments;
|
|
@@ -54,33 +57,33 @@ String.prototype.format || (String.prototype.format = function() {
|
|
|
54
57
|
return typeof e[l] < "u" ? e[l] : t;
|
|
55
58
|
});
|
|
56
59
|
});
|
|
57
|
-
const
|
|
60
|
+
const kl = /* @__PURE__ */ V({
|
|
58
61
|
__name: "App",
|
|
59
62
|
setup(e) {
|
|
60
|
-
var l, n, o,
|
|
61
|
-
|
|
62
|
-
const
|
|
63
|
-
|
|
63
|
+
var l, n, o, a;
|
|
64
|
+
Je(() => {
|
|
65
|
+
const s = document.getElementById("preloader");
|
|
66
|
+
s !== null && (document.body.removeChild(s), Kt("test-icon", "//at.alicdn.com/t/font_2246548_zclaqxwmzq8.css"), Wt(`.iconfont {
|
|
64
67
|
font-size: 19px;
|
|
65
68
|
font-style: normal;
|
|
66
69
|
-webkit-font-smoothing: antialiased;
|
|
67
70
|
font-family: iconfont !important;
|
|
68
71
|
}`));
|
|
69
72
|
});
|
|
70
|
-
const t =
|
|
71
|
-
return (n = (l = window == null ? void 0 : window.OmsOptions) == null ? void 0 : l.form) != null && n.vsPath &&
|
|
72
|
-
const
|
|
73
|
-
return i(), m(
|
|
73
|
+
const t = xe;
|
|
74
|
+
return (n = (l = window == null ? void 0 : window.OmsOptions) == null ? void 0 : l.form) != null && n.vsPath && Et("vsPath", (a = (o = window == null ? void 0 : window.OmsOptions) == null ? void 0 : o.form) == null ? void 0 : a.vsPath), (s, u) => {
|
|
75
|
+
const p = v("router-view"), d = Tt;
|
|
76
|
+
return i(), m(d, { locale: w(t) }, {
|
|
74
77
|
default: r(() => [
|
|
75
|
-
|
|
78
|
+
c(p)
|
|
76
79
|
]),
|
|
77
80
|
_: 1
|
|
78
81
|
}, 8, ["locale"]);
|
|
79
82
|
};
|
|
80
83
|
}
|
|
81
84
|
});
|
|
82
|
-
var
|
|
83
|
-
const
|
|
85
|
+
var X = /* @__PURE__ */ ((e) => (e.GET = "get", e.POST = "post", e.DELETE = "delete", e.FETCH = "fetch", e.OPTION = "option", e.PUT = "put", e))(X || {});
|
|
86
|
+
const El = {
|
|
84
87
|
saveApi: "/save",
|
|
85
88
|
afterSubmit: "",
|
|
86
89
|
afterReset: "goback",
|
|
@@ -412,7 +415,7 @@ const yl = {
|
|
|
412
415
|
info: "\u5728\u901A\u7528\u8868\u5355\u63A7\u4EF6\u65E0\u6CD5\u6EE1\u8DB3\u9700\u6C42\u65F6, \u53EF\u4EE5\u7F16\u5199 `template` \u6A21\u677F\u7EC4\u4EF6"
|
|
413
416
|
}
|
|
414
417
|
]
|
|
415
|
-
},
|
|
418
|
+
}, Ne = [
|
|
416
419
|
{
|
|
417
420
|
type: "jump",
|
|
418
421
|
text: "\u8DF3\u8F6C",
|
|
@@ -467,7 +470,7 @@ const yl = {
|
|
|
467
470
|
type: "success"
|
|
468
471
|
}
|
|
469
472
|
}
|
|
470
|
-
],
|
|
473
|
+
], wl = {
|
|
471
474
|
exportAble: !0,
|
|
472
475
|
filter: [
|
|
473
476
|
{
|
|
@@ -533,7 +536,7 @@ const yl = {
|
|
|
533
536
|
label: "\u4FE1\u606F"
|
|
534
537
|
}
|
|
535
538
|
],
|
|
536
|
-
batchButton:
|
|
539
|
+
batchButton: Ne,
|
|
537
540
|
rowButton: [
|
|
538
541
|
{
|
|
539
542
|
type: "jump",
|
|
@@ -564,7 +567,7 @@ const yl = {
|
|
|
564
567
|
}
|
|
565
568
|
],
|
|
566
569
|
normalButton: [
|
|
567
|
-
...
|
|
570
|
+
...nl.cloneDeep(Ne),
|
|
568
571
|
{
|
|
569
572
|
type: "jump",
|
|
570
573
|
target: "/user/form",
|
|
@@ -576,7 +579,7 @@ const yl = {
|
|
|
576
579
|
],
|
|
577
580
|
selectedNotice: "\u5F53\u524D\u5171\u52FE\u9009: {selectedCount} \u6761",
|
|
578
581
|
listApi: "/user/list"
|
|
579
|
-
},
|
|
582
|
+
}, Sl = {
|
|
580
583
|
code: 0,
|
|
581
584
|
data: {
|
|
582
585
|
"list|0-100": [
|
|
@@ -597,7 +600,7 @@ const yl = {
|
|
|
597
600
|
"page|1-5": 2
|
|
598
601
|
}
|
|
599
602
|
}
|
|
600
|
-
},
|
|
603
|
+
}, Cl = {
|
|
601
604
|
afterSubmit: "",
|
|
602
605
|
afterReset: "goback",
|
|
603
606
|
formItems: [
|
|
@@ -634,7 +637,7 @@ const yl = {
|
|
|
634
637
|
label: "span"
|
|
635
638
|
}
|
|
636
639
|
]
|
|
637
|
-
},
|
|
640
|
+
}, Bl = {
|
|
638
641
|
afterSubmit: "",
|
|
639
642
|
afterReset: "",
|
|
640
643
|
formItems: [
|
|
@@ -673,9 +676,9 @@ const yl = {
|
|
|
673
676
|
label: "span"
|
|
674
677
|
}
|
|
675
678
|
]
|
|
676
|
-
},
|
|
679
|
+
}, xl = { form: El, table: wl, listMock: Sl, layoutForm: Cl, layoutSection: Bl }, Il = [
|
|
677
680
|
{
|
|
678
|
-
method:
|
|
681
|
+
method: X.POST,
|
|
679
682
|
url: "/login",
|
|
680
683
|
response(e) {
|
|
681
684
|
return {
|
|
@@ -688,7 +691,7 @@ const yl = {
|
|
|
688
691
|
}
|
|
689
692
|
},
|
|
690
693
|
{
|
|
691
|
-
method:
|
|
694
|
+
method: X.GET,
|
|
692
695
|
url: "/user/info",
|
|
693
696
|
response(e) {
|
|
694
697
|
return {
|
|
@@ -702,7 +705,7 @@ const yl = {
|
|
|
702
705
|
},
|
|
703
706
|
{
|
|
704
707
|
url: "/user/routes",
|
|
705
|
-
method:
|
|
708
|
+
method: X.GET,
|
|
706
709
|
response: (e) => ({
|
|
707
710
|
code: 0,
|
|
708
711
|
data: [
|
|
@@ -716,17 +719,17 @@ const yl = {
|
|
|
716
719
|
},
|
|
717
720
|
{
|
|
718
721
|
url: "/user/list",
|
|
719
|
-
method:
|
|
720
|
-
response: (e) =>
|
|
722
|
+
method: X.GET,
|
|
723
|
+
response: (e) => xl.listMock
|
|
721
724
|
}
|
|
722
|
-
],
|
|
723
|
-
...
|
|
724
|
-
],
|
|
725
|
+
], Al = [
|
|
726
|
+
...Il
|
|
727
|
+
], $l = {
|
|
725
728
|
baseURL: "/api",
|
|
726
729
|
withCredentials: !0,
|
|
727
730
|
timeout: 5e3,
|
|
728
731
|
cacheEnable: !0
|
|
729
|
-
},
|
|
732
|
+
}, nt = {
|
|
730
733
|
title: "oms",
|
|
731
734
|
fixedHeader: !1,
|
|
732
735
|
sidebarLogo: !0,
|
|
@@ -740,7 +743,7 @@ const yl = {
|
|
|
740
743
|
ElementPlus: {
|
|
741
744
|
size: "default",
|
|
742
745
|
zIndex: 3e3,
|
|
743
|
-
locale:
|
|
746
|
+
locale: xe
|
|
744
747
|
},
|
|
745
748
|
nav: [],
|
|
746
749
|
whiteRoutes: ["/login"],
|
|
@@ -751,49 +754,49 @@ const yl = {
|
|
|
751
754
|
pre: "green"
|
|
752
755
|
},
|
|
753
756
|
serviceOffLineNotice: "\u5F53\u524D\u9875\u9762\u529F\u80FD\u6B63\u5728\u7EF4\u62A4, \u8BF7\u7A0D\u540E\u518D\u8BD5~~~"
|
|
754
|
-
},
|
|
755
|
-
axios:
|
|
756
|
-
settings:
|
|
757
|
+
}, pe = {
|
|
758
|
+
axios: $l,
|
|
759
|
+
settings: nt,
|
|
757
760
|
plugins: [],
|
|
758
761
|
mock: !1
|
|
759
|
-
},
|
|
760
|
-
function
|
|
762
|
+
}, ke = {};
|
|
763
|
+
function at(e) {
|
|
761
764
|
e.forEach((t) => {
|
|
762
765
|
const l = st(t);
|
|
763
|
-
|
|
766
|
+
ke[`${t.method}::${l}`] = t;
|
|
764
767
|
});
|
|
765
768
|
}
|
|
766
|
-
|
|
769
|
+
at(Al);
|
|
767
770
|
function st(e) {
|
|
768
771
|
var n;
|
|
769
|
-
let t = e.url, l = e.baseURL || ((n =
|
|
772
|
+
let t = e.url, l = e.baseURL || ((n = pe.axios) == null ? void 0 : n.baseURL);
|
|
770
773
|
return l || (l = ""), typeof t == "string" ? (t = ("/" + l + t).split("/").filter((o) => o).join("/"), t += "(|\\?.*)$", new RegExp(t)) : t;
|
|
771
774
|
}
|
|
772
|
-
function
|
|
773
|
-
Object.keys(
|
|
774
|
-
const t =
|
|
775
|
-
|
|
776
|
-
const { url: o, type:
|
|
777
|
-
return
|
|
775
|
+
function Tl() {
|
|
776
|
+
Object.keys(ke).forEach((e) => {
|
|
777
|
+
const t = ke[e], l = st(t);
|
|
778
|
+
he.mock(l, t.method, function(n) {
|
|
779
|
+
const { url: o, type: a, body: s } = n, u = Zt(o), p = s ? JSON.parse(s) : {}, d = t.response({ query: u, data: p }), h = he.mock(d);
|
|
780
|
+
return Qt(o, { type: a, query: u, data: p, response: h }), he.mock(h);
|
|
778
781
|
});
|
|
779
782
|
}), console.log("%c ApiMock is stared! ", "background: #606060; color: #fff; padding: 4px 5px; border-radius: 1px;");
|
|
780
783
|
}
|
|
781
|
-
const
|
|
782
|
-
function
|
|
783
|
-
return
|
|
784
|
+
const Oe = "oms:token";
|
|
785
|
+
function Pe() {
|
|
786
|
+
return M.get(Oe) || "";
|
|
784
787
|
}
|
|
785
|
-
function
|
|
786
|
-
const t = new Date(new Date().getTime() + (
|
|
787
|
-
return
|
|
788
|
+
function Fl(e) {
|
|
789
|
+
const t = new Date(new Date().getTime() + (S.state.settings.tokenExpire || 864e5));
|
|
790
|
+
return M.set(Oe, e, { expires: t });
|
|
788
791
|
}
|
|
789
|
-
function
|
|
790
|
-
return
|
|
792
|
+
function it() {
|
|
793
|
+
return M.remove(Oe);
|
|
791
794
|
}
|
|
792
|
-
const
|
|
795
|
+
const Dl = {
|
|
793
796
|
name: "",
|
|
794
797
|
nickname: "",
|
|
795
798
|
avatar: "",
|
|
796
|
-
token:
|
|
799
|
+
token: Pe(),
|
|
797
800
|
customRouter: [],
|
|
798
801
|
remoteRouter: [],
|
|
799
802
|
menuRoutes: [],
|
|
@@ -802,15 +805,15 @@ const Il = {
|
|
|
802
805
|
roleIds: [],
|
|
803
806
|
path: "",
|
|
804
807
|
env: ""
|
|
805
|
-
},
|
|
808
|
+
}, Ol = {
|
|
806
809
|
namespaced: !0,
|
|
807
|
-
state:
|
|
810
|
+
state: Dl,
|
|
808
811
|
mutations: {
|
|
809
812
|
updateToken(e, t) {
|
|
810
|
-
e.token = t,
|
|
813
|
+
e.token = t, Fl(t);
|
|
811
814
|
},
|
|
812
815
|
removeToken(e) {
|
|
813
|
-
e.token = "",
|
|
816
|
+
e.token = "", it();
|
|
814
817
|
},
|
|
815
818
|
updateRemoteRouter(e, t) {
|
|
816
819
|
e.remoteRouter = t, e.isLodeRemoteRoutes = !0;
|
|
@@ -826,7 +829,7 @@ const Il = {
|
|
|
826
829
|
name: "",
|
|
827
830
|
nickname: "",
|
|
828
831
|
avatar: "",
|
|
829
|
-
token:
|
|
832
|
+
token: Pe(),
|
|
830
833
|
customRouter: [],
|
|
831
834
|
remoteRouter: [],
|
|
832
835
|
menuRoutes: [],
|
|
@@ -844,17 +847,17 @@ const Il = {
|
|
|
844
847
|
state: t,
|
|
845
848
|
rootState: l
|
|
846
849
|
}, n) {
|
|
847
|
-
return new Promise((o,
|
|
850
|
+
return new Promise((o, a) => {
|
|
848
851
|
l.http ? l.http.request({
|
|
849
852
|
url: "/user/login",
|
|
850
853
|
method: "POST",
|
|
851
854
|
data: n
|
|
852
|
-
}).then((
|
|
853
|
-
var
|
|
854
|
-
e("updateToken", (
|
|
855
|
-
}).catch((
|
|
856
|
-
s
|
|
857
|
-
}) :
|
|
855
|
+
}).then((s) => {
|
|
856
|
+
var u;
|
|
857
|
+
e("updateToken", (u = s.data) == null ? void 0 : u.token), o(!0);
|
|
858
|
+
}).catch((s) => {
|
|
859
|
+
a(s);
|
|
860
|
+
}) : a("http client not init");
|
|
858
861
|
});
|
|
859
862
|
},
|
|
860
863
|
logout({ commit: e }) {
|
|
@@ -866,9 +869,9 @@ const Il = {
|
|
|
866
869
|
url: "/user/info",
|
|
867
870
|
method: "GET"
|
|
868
871
|
}).then((o) => {
|
|
869
|
-
var
|
|
870
|
-
const
|
|
871
|
-
e("updateState", { key: "name", value: (
|
|
872
|
+
var s, u, p, d, h;
|
|
873
|
+
const a = ((s = o.data) == null ? void 0 : s.role_ids) || [];
|
|
874
|
+
e("updateState", { key: "name", value: (u = o.data) == null ? void 0 : u.name }), e("updateState", { key: "nickname", value: (p = o.data) == null ? void 0 : p.nickname }), e("updateState", { key: "roleIds", value: a }), e("updateState", { key: "env", value: (d = o.data) == null ? void 0 : d.env }), !M.get("username") && M.set("username", (h = o.data) == null ? void 0 : h.name), l(!0);
|
|
872
875
|
}).catch((o) => {
|
|
873
876
|
n(o);
|
|
874
877
|
}) : n("http client not init");
|
|
@@ -880,21 +883,21 @@ const Il = {
|
|
|
880
883
|
(o = t.http) == null || o.request({
|
|
881
884
|
url: "/user/routes",
|
|
882
885
|
method: "get"
|
|
883
|
-
}).then((
|
|
884
|
-
if (
|
|
885
|
-
const
|
|
886
|
-
l(
|
|
886
|
+
}).then((a) => {
|
|
887
|
+
if (a.code === 0) {
|
|
888
|
+
const s = a.data || [];
|
|
889
|
+
l(s);
|
|
887
890
|
} else
|
|
888
891
|
n("error");
|
|
889
|
-
}).catch((
|
|
890
|
-
console.log(
|
|
892
|
+
}).catch((a) => {
|
|
893
|
+
console.log(a), n(a);
|
|
891
894
|
});
|
|
892
895
|
});
|
|
893
896
|
}
|
|
894
897
|
}
|
|
895
|
-
},
|
|
898
|
+
}, Pl = y(nt), Rl = {
|
|
896
899
|
namespaced: !0,
|
|
897
|
-
state:
|
|
900
|
+
state: Pl,
|
|
898
901
|
mutations: {
|
|
899
902
|
updateSettings(e, t) {
|
|
900
903
|
e = O(e, t);
|
|
@@ -905,24 +908,24 @@ const Il = {
|
|
|
905
908
|
e("updateSettings", l);
|
|
906
909
|
}
|
|
907
910
|
}
|
|
908
|
-
},
|
|
911
|
+
}, Ll = {
|
|
909
912
|
sidebar: {
|
|
910
|
-
opened:
|
|
913
|
+
opened: M.get("sidebarStatus") ? !!M.get("sidebarStatus") : !0,
|
|
911
914
|
withoutAnimation: !1
|
|
912
915
|
},
|
|
913
916
|
device: "desktop",
|
|
914
917
|
pages: {},
|
|
915
918
|
currentRouteMeta: {},
|
|
916
919
|
builderSchema: {}
|
|
917
|
-
},
|
|
920
|
+
}, Ml = {
|
|
918
921
|
namespaced: !0,
|
|
919
|
-
state:
|
|
922
|
+
state: Ll,
|
|
920
923
|
mutations: {
|
|
921
924
|
TOGGLE_SIDEBAR: (e) => {
|
|
922
|
-
e.sidebar.opened = !e.sidebar.opened, e.sidebar.withoutAnimation = !1, e.sidebar.opened ?
|
|
925
|
+
e.sidebar.opened = !e.sidebar.opened, e.sidebar.withoutAnimation = !1, e.sidebar.opened ? M.set("sidebarStatus", "1") : M.set("sidebarStatus", "0");
|
|
923
926
|
},
|
|
924
927
|
CLOSE_SIDEBAR: (e, t) => {
|
|
925
|
-
|
|
928
|
+
M.set("sidebarStatus", "0"), e.sidebar.opened = !1, e.sidebar.withoutAnimation = t;
|
|
926
929
|
},
|
|
927
930
|
TOGGLE_DEVICE: (e, t) => {
|
|
928
931
|
e.device = t;
|
|
@@ -957,11 +960,11 @@ const Il = {
|
|
|
957
960
|
e("SET_BUILDER_SCHEMA", t);
|
|
958
961
|
}
|
|
959
962
|
}
|
|
960
|
-
},
|
|
963
|
+
}, jl = {
|
|
961
964
|
currentCellItem: {}
|
|
962
|
-
},
|
|
965
|
+
}, Nl = {
|
|
963
966
|
namespaced: !0,
|
|
964
|
-
state:
|
|
967
|
+
state: jl,
|
|
965
968
|
mutations: {
|
|
966
969
|
SET_CURRENT_CELLITEM: (e, t) => {
|
|
967
970
|
e.currentCellItem = t;
|
|
@@ -972,7 +975,7 @@ const Il = {
|
|
|
972
975
|
e("SET_CURRENT_CELLITEM", t);
|
|
973
976
|
}
|
|
974
977
|
}
|
|
975
|
-
},
|
|
978
|
+
}, S = al({
|
|
976
979
|
state: void 0,
|
|
977
980
|
getters: {
|
|
978
981
|
http: (e) => e.http,
|
|
@@ -999,12 +1002,12 @@ const Il = {
|
|
|
999
1002
|
}
|
|
1000
1003
|
},
|
|
1001
1004
|
modules: {
|
|
1002
|
-
user:
|
|
1003
|
-
settings:
|
|
1004
|
-
app:
|
|
1005
|
-
builderSchema:
|
|
1005
|
+
user: Ol,
|
|
1006
|
+
settings: Rl,
|
|
1007
|
+
app: Ml,
|
|
1008
|
+
builderSchema: Nl
|
|
1006
1009
|
}
|
|
1007
|
-
}),
|
|
1010
|
+
}), Ve = il, qe = rl, Vl = $e.CancelToken, ae = {
|
|
1008
1011
|
taskList: {},
|
|
1009
1012
|
cacheList: /* @__PURE__ */ new Map(),
|
|
1010
1013
|
uniqueId(e) {
|
|
@@ -1040,60 +1043,60 @@ const Il = {
|
|
|
1040
1043
|
const t = this.uniqueId(e);
|
|
1041
1044
|
return this.cacheList.delete(t);
|
|
1042
1045
|
}
|
|
1043
|
-
},
|
|
1046
|
+
}, ql = {
|
|
1044
1047
|
onFulfilled: function(e) {
|
|
1045
|
-
return e.cacheEnable === !1 || (
|
|
1046
|
-
|
|
1048
|
+
return e.cacheEnable === !1 || (ae.pending(e) && ae.delTask(e), e.cancelToken = new Vl((t) => {
|
|
1049
|
+
ae.addTask(e, t);
|
|
1047
1050
|
})), e;
|
|
1048
1051
|
},
|
|
1049
1052
|
onRejected(e) {
|
|
1050
1053
|
return Promise.reject(e);
|
|
1051
1054
|
}
|
|
1052
|
-
},
|
|
1055
|
+
}, Ul = {
|
|
1053
1056
|
onFulfilled: function(e) {
|
|
1054
|
-
return e.config.cacheEnable === !1 || e.config.method === "get" && Object.keys(e.data).length > 0 &&
|
|
1057
|
+
return e.config.cacheEnable === !1 || e.config.method === "get" && Object.keys(e.data).length > 0 && ae.addCache(e.config, e.data), e;
|
|
1055
1058
|
},
|
|
1056
1059
|
onRejected(e) {
|
|
1057
1060
|
return Promise.reject(e);
|
|
1058
1061
|
}
|
|
1059
1062
|
};
|
|
1060
|
-
function
|
|
1061
|
-
return
|
|
1063
|
+
function Hl() {
|
|
1064
|
+
return S.state.user.token;
|
|
1062
1065
|
}
|
|
1063
|
-
const
|
|
1066
|
+
const Gl = {
|
|
1064
1067
|
onFulfilled: function(e) {
|
|
1065
1068
|
e.headers = e.headers || {};
|
|
1066
|
-
const t =
|
|
1069
|
+
const t = Hl();
|
|
1067
1070
|
return t && (e.headers["X-Token"] = t), e;
|
|
1068
1071
|
}
|
|
1069
|
-
},
|
|
1072
|
+
}, Jl = {
|
|
1070
1073
|
onFulfilled(e) {
|
|
1071
|
-
var n, o, s,
|
|
1074
|
+
var n, o, a, s, u, p, d;
|
|
1072
1075
|
if (!(((n = e.config) == null ? void 0 : n.notHoldApiErr) !== void 0 && ((o = e.config) == null ? void 0 : o.notHoldApiErr) === !0) && e.data.code !== 0) {
|
|
1073
|
-
const h = e.data.message || `\u63A5\u53E3\u8BF7\u6C42\u9519\u8BEF ${e.config.method}::${(
|
|
1076
|
+
const h = e.data.message || `\u63A5\u53E3\u8BF7\u6C42\u9519\u8BEF ${e.config.method}::${(a = e.config.url) == null ? void 0 : a.split("?")[0]}`;
|
|
1074
1077
|
if (e.data.code === 401) {
|
|
1075
|
-
|
|
1078
|
+
qe.alert("\u767B\u5F55\u4FE1\u606F\u5DF2\u8FC7\u671F\u6216\u672A\u767B\u5F55, \u662F\u5426\u8DF3\u8F6C\u767B\u5F55", "\u64CD\u4F5C\u63D0\u9192", {
|
|
1076
1079
|
showClose: !1,
|
|
1077
1080
|
confirmButtonText: "\u91CD\u65B0\u767B\u5F55",
|
|
1078
1081
|
showCancelButton: !0,
|
|
1079
1082
|
cancelButtonText: "\u53D6\u6D88",
|
|
1080
1083
|
callback: (_) => {
|
|
1081
|
-
_ === "confirm" && (
|
|
1084
|
+
_ === "confirm" && (it(), location.href = location.origin + location.pathname + location.hash.replace("#", "#/?redirect="), location.reload());
|
|
1082
1085
|
}
|
|
1083
1086
|
});
|
|
1084
1087
|
return;
|
|
1085
1088
|
} else
|
|
1086
|
-
|
|
1089
|
+
Ve({
|
|
1087
1090
|
message: h,
|
|
1088
1091
|
type: "error",
|
|
1089
1092
|
duration: 5 * 1e3
|
|
1090
1093
|
});
|
|
1091
1094
|
return Promise.reject(h);
|
|
1092
1095
|
}
|
|
1093
|
-
let l = (
|
|
1094
|
-
return l !== void 0 && (
|
|
1095
|
-
message: (
|
|
1096
|
-
}),
|
|
1096
|
+
let l = (u = (s = e.data) == null ? void 0 : s.data) == null ? void 0 : u._message_box;
|
|
1097
|
+
return l !== void 0 && (Ie(l) && (l = {
|
|
1098
|
+
message: (d = (p = e.data) == null ? void 0 : p.data) == null ? void 0 : d._message_box
|
|
1099
|
+
}), qe({
|
|
1097
1100
|
title: "\u63D0\u793A",
|
|
1098
1101
|
type: "success",
|
|
1099
1102
|
...l
|
|
@@ -1101,56 +1104,56 @@ const Vl = {
|
|
|
1101
1104
|
},
|
|
1102
1105
|
onRejected(e) {
|
|
1103
1106
|
var t;
|
|
1104
|
-
return
|
|
1107
|
+
return $e.isCancel(e) ? Promise.reject("") : (Ve({
|
|
1105
1108
|
message: `${e.message} ${e.config.method}::${(t = e.config.url) == null ? void 0 : t.split("?")[0]}`,
|
|
1106
1109
|
type: "error",
|
|
1107
1110
|
duration: 5 * 1e3
|
|
1108
1111
|
}), Promise.reject(e));
|
|
1109
1112
|
}
|
|
1110
|
-
},
|
|
1113
|
+
}, zl = [
|
|
1111
1114
|
{
|
|
1112
|
-
request:
|
|
1113
|
-
response:
|
|
1115
|
+
request: ql,
|
|
1116
|
+
response: Ul
|
|
1114
1117
|
},
|
|
1115
1118
|
{
|
|
1116
|
-
request:
|
|
1117
|
-
response:
|
|
1119
|
+
request: Gl,
|
|
1120
|
+
response: Jl
|
|
1118
1121
|
}
|
|
1119
1122
|
];
|
|
1120
|
-
function
|
|
1121
|
-
const t =
|
|
1123
|
+
function Re(e = {}) {
|
|
1124
|
+
const t = pe.axios || {}, l = O(t, e || {}), n = $e.create({
|
|
1122
1125
|
...l
|
|
1123
1126
|
});
|
|
1124
|
-
return
|
|
1127
|
+
return zl.forEach((o) => {
|
|
1125
1128
|
n.interceptors.request.use(o.request.onFulfilled, o.request.onRejected), n.interceptors.response.use(o.response.onFulfilled, o.response.onRejected);
|
|
1126
1129
|
}), n;
|
|
1127
1130
|
}
|
|
1128
|
-
const
|
|
1129
|
-
const
|
|
1130
|
-
function
|
|
1131
|
-
|
|
1131
|
+
const Kl = Re();
|
|
1132
|
+
const rt = {};
|
|
1133
|
+
function Ys(e, t) {
|
|
1134
|
+
rt[e] = t;
|
|
1132
1135
|
}
|
|
1133
|
-
function
|
|
1134
|
-
return
|
|
1136
|
+
function Wl(e) {
|
|
1137
|
+
return rt[e];
|
|
1135
1138
|
}
|
|
1136
|
-
const
|
|
1139
|
+
const Zl = V({
|
|
1137
1140
|
name: "Dashboard",
|
|
1138
1141
|
setup() {
|
|
1139
|
-
const e =
|
|
1140
|
-
return l ? () =>
|
|
1142
|
+
const e = ot(), t = N(() => e.getters.name), l = Wl("test");
|
|
1143
|
+
return l ? () => c(l, null, null) : () => c("div", {
|
|
1141
1144
|
class: "dashboard-container"
|
|
1142
|
-
}, [
|
|
1145
|
+
}, [c("div", {
|
|
1143
1146
|
class: "dashboard-text"
|
|
1144
1147
|
}, [g("Hi "), t.value, g(" \u{1F604}")])]);
|
|
1145
1148
|
}
|
|
1146
1149
|
});
|
|
1147
|
-
const
|
|
1150
|
+
const B = (e, t) => {
|
|
1148
1151
|
const l = e.__vccOpts || e;
|
|
1149
1152
|
for (const [n, o] of t)
|
|
1150
1153
|
l[n] = o;
|
|
1151
1154
|
return l;
|
|
1152
|
-
},
|
|
1153
|
-
const
|
|
1155
|
+
}, Ql = /* @__PURE__ */ B(Zl, [["__scopeId", "data-v-07cd0734"]]);
|
|
1156
|
+
const Xl = {
|
|
1154
1157
|
data() {
|
|
1155
1158
|
return {
|
|
1156
1159
|
levelList: null
|
|
@@ -1182,7 +1185,7 @@ const Kl = {
|
|
|
1182
1185
|
},
|
|
1183
1186
|
pathCompile(e) {
|
|
1184
1187
|
const { params: t } = this.$route;
|
|
1185
|
-
return
|
|
1188
|
+
return _l.compile(e)(t);
|
|
1186
1189
|
},
|
|
1187
1190
|
handleLink(e) {
|
|
1188
1191
|
const { redirect: t, path: l } = e;
|
|
@@ -1193,27 +1196,27 @@ const Kl = {
|
|
|
1193
1196
|
this.$router.push(this.pathCompile(l));
|
|
1194
1197
|
}
|
|
1195
1198
|
}
|
|
1196
|
-
},
|
|
1199
|
+
}, Yl = {
|
|
1197
1200
|
key: 0,
|
|
1198
1201
|
class: "no-redirect"
|
|
1199
|
-
},
|
|
1200
|
-
function
|
|
1201
|
-
const
|
|
1202
|
-
return i(), m(
|
|
1202
|
+
}, eo = ["onClick"];
|
|
1203
|
+
function to(e, t, l, n, o, a) {
|
|
1204
|
+
const s = Ft, u = Dt;
|
|
1205
|
+
return i(), m(u, {
|
|
1203
1206
|
class: "app-breadcrumb",
|
|
1204
1207
|
separator: "/"
|
|
1205
1208
|
}, {
|
|
1206
1209
|
default: r(() => [
|
|
1207
|
-
|
|
1210
|
+
c(wt, { name: "breadcrumb" }, {
|
|
1208
1211
|
default: r(() => [
|
|
1209
|
-
(i(!0), f(k, null,
|
|
1210
|
-
key:
|
|
1212
|
+
(i(!0), f(k, null, A(o.levelList, (p, d) => (i(), m(s, {
|
|
1213
|
+
key: p.path
|
|
1211
1214
|
}, {
|
|
1212
1215
|
default: r(() => [
|
|
1213
|
-
|
|
1216
|
+
p.path.indexOf("/DIR_") === 0 && p.redirect === void 0 || d === o.levelList.length - 1 ? (i(), f("span", Yl, I(p.meta.title), 1)) : (i(), f("a", {
|
|
1214
1217
|
key: 1,
|
|
1215
|
-
onClick: (h) =>
|
|
1216
|
-
},
|
|
1218
|
+
onClick: (h) => a.handleLink(p)
|
|
1219
|
+
}, I(p.meta.title), 9, eo))
|
|
1217
1220
|
]),
|
|
1218
1221
|
_: 2
|
|
1219
1222
|
}, 1024))), 128))
|
|
@@ -1224,7 +1227,7 @@ function Ql(e, t, l, n, o, s) {
|
|
|
1224
1227
|
_: 1
|
|
1225
1228
|
});
|
|
1226
1229
|
}
|
|
1227
|
-
const
|
|
1230
|
+
const lo = /* @__PURE__ */ B(Xl, [["render", to], ["__scopeId", "data-v-fa74804e"]]), oo = {
|
|
1228
1231
|
name: "Hamburger",
|
|
1229
1232
|
props: {
|
|
1230
1233
|
isActive: {
|
|
@@ -1239,46 +1242,46 @@ const Xl = /* @__PURE__ */ C(Kl, [["render", Ql], ["__scopeId", "data-v-fa74804e
|
|
|
1239
1242
|
}
|
|
1240
1243
|
}
|
|
1241
1244
|
};
|
|
1242
|
-
function
|
|
1243
|
-
const
|
|
1245
|
+
function no(e, t, l, n, o, a) {
|
|
1246
|
+
const s = v("v-icon");
|
|
1244
1247
|
return i(), f("div", {
|
|
1245
1248
|
style: { padding: "0 15px" },
|
|
1246
|
-
onClick: t[0] || (t[0] = (...
|
|
1249
|
+
onClick: t[0] || (t[0] = (...u) => a.toggleClick && a.toggleClick(...u))
|
|
1247
1250
|
}, [
|
|
1248
|
-
|
|
1249
|
-
class:
|
|
1251
|
+
c(s, {
|
|
1252
|
+
class: G({ "is-active": l.isActive }),
|
|
1250
1253
|
name: "ra-leftalignment"
|
|
1251
1254
|
}, null, 8, ["class"])
|
|
1252
1255
|
]);
|
|
1253
1256
|
}
|
|
1254
|
-
const
|
|
1255
|
-
const
|
|
1256
|
-
function
|
|
1257
|
-
const l =
|
|
1258
|
-
return i(), m(
|
|
1257
|
+
const ao = /* @__PURE__ */ B(oo, [["render", no]]);
|
|
1258
|
+
const so = {};
|
|
1259
|
+
function io(e, t) {
|
|
1260
|
+
const l = oe, n = Ot, o = Pt, a = Rt;
|
|
1261
|
+
return i(), m(a, { style: { width: "100%", height: "100%" } }, {
|
|
1259
1262
|
default: r(() => [
|
|
1260
|
-
|
|
1263
|
+
c(l, { class: "aside" }, {
|
|
1261
1264
|
default: r(() => [
|
|
1262
|
-
|
|
1265
|
+
ee(e.$slots, "left-aside", {}, void 0, !0)
|
|
1263
1266
|
]),
|
|
1264
1267
|
_: 3
|
|
1265
1268
|
}),
|
|
1266
|
-
|
|
1269
|
+
c(n, {
|
|
1267
1270
|
class: "main",
|
|
1268
1271
|
style: { margin: "0 10px" }
|
|
1269
1272
|
}, {
|
|
1270
1273
|
default: r(() => [
|
|
1271
|
-
|
|
1274
|
+
ee(e.$slots, "main", {}, void 0, !0)
|
|
1272
1275
|
]),
|
|
1273
1276
|
_: 3
|
|
1274
1277
|
}),
|
|
1275
|
-
|
|
1278
|
+
c(o, {
|
|
1276
1279
|
class: "aside",
|
|
1277
1280
|
width: "350px",
|
|
1278
1281
|
style: { padding: "20px" }
|
|
1279
1282
|
}, {
|
|
1280
1283
|
default: r(() => [
|
|
1281
|
-
|
|
1284
|
+
ee(e.$slots, "right-aside", {}, void 0, !0)
|
|
1282
1285
|
]),
|
|
1283
1286
|
_: 3
|
|
1284
1287
|
})
|
|
@@ -1286,7 +1289,7 @@ function oo(e, t) {
|
|
|
1286
1289
|
_: 3
|
|
1287
1290
|
});
|
|
1288
1291
|
}
|
|
1289
|
-
const
|
|
1292
|
+
const ut = /* @__PURE__ */ B(so, [["render", io], ["__scopeId", "data-v-7c3d697b"]]), ro = {
|
|
1290
1293
|
type: "input",
|
|
1291
1294
|
name: "\u6587\u672C\u6846",
|
|
1292
1295
|
default: {
|
|
@@ -1354,7 +1357,7 @@ const rt = /* @__PURE__ */ C(lo, [["render", oo], ["__scopeId", "data-v-7c3d697b
|
|
|
1354
1357
|
}
|
|
1355
1358
|
}
|
|
1356
1359
|
]
|
|
1357
|
-
},
|
|
1360
|
+
}, uo = {
|
|
1358
1361
|
type: "number",
|
|
1359
1362
|
name: "\u6570\u5B57",
|
|
1360
1363
|
default: {
|
|
@@ -1396,7 +1399,7 @@ const rt = /* @__PURE__ */ C(lo, [["render", oo], ["__scopeId", "data-v-7c3d697b
|
|
|
1396
1399
|
}
|
|
1397
1400
|
}
|
|
1398
1401
|
]
|
|
1399
|
-
},
|
|
1402
|
+
}, co = {
|
|
1400
1403
|
type: "number-range",
|
|
1401
1404
|
name: "\u6570\u5B57\u533A\u95F4",
|
|
1402
1405
|
default: {
|
|
@@ -1437,7 +1440,7 @@ const rt = /* @__PURE__ */ C(lo, [["render", oo], ["__scopeId", "data-v-7c3d697b
|
|
|
1437
1440
|
}
|
|
1438
1441
|
}
|
|
1439
1442
|
]
|
|
1440
|
-
},
|
|
1443
|
+
}, po = {
|
|
1441
1444
|
type: "select",
|
|
1442
1445
|
name: "\u4E0B\u62C9\u6846",
|
|
1443
1446
|
default: {
|
|
@@ -1543,7 +1546,7 @@ const rt = /* @__PURE__ */ C(lo, [["render", oo], ["__scopeId", "data-v-7c3d697b
|
|
|
1543
1546
|
const t = y(e);
|
|
1544
1547
|
return e.optionType === 0 ? t.props && t.props.selectApi !== void 0 && delete t.props.selectApi : e.optionType === 1 && t.options && delete t.options, delete t.optionType, t;
|
|
1545
1548
|
}
|
|
1546
|
-
},
|
|
1549
|
+
}, mo = {
|
|
1547
1550
|
type: "radio",
|
|
1548
1551
|
name: "\u5355\u9009\u6846",
|
|
1549
1552
|
default: {
|
|
@@ -1589,7 +1592,7 @@ const rt = /* @__PURE__ */ C(lo, [["render", oo], ["__scopeId", "data-v-7c3d697b
|
|
|
1589
1592
|
label: "\u9ED8\u8BA4\u503C"
|
|
1590
1593
|
}
|
|
1591
1594
|
]
|
|
1592
|
-
},
|
|
1595
|
+
}, fo = {
|
|
1593
1596
|
type: "switch",
|
|
1594
1597
|
name: "\u5F00\u5173",
|
|
1595
1598
|
default: {
|
|
@@ -1645,7 +1648,7 @@ const rt = /* @__PURE__ */ C(lo, [["render", oo], ["__scopeId", "data-v-7c3d697b
|
|
|
1645
1648
|
}
|
|
1646
1649
|
}
|
|
1647
1650
|
]
|
|
1648
|
-
},
|
|
1651
|
+
}, ho = {
|
|
1649
1652
|
type: "code",
|
|
1650
1653
|
name: "Code",
|
|
1651
1654
|
default: {
|
|
@@ -1665,7 +1668,7 @@ const rt = /* @__PURE__ */ C(lo, [["render", oo], ["__scopeId", "data-v-7c3d697b
|
|
|
1665
1668
|
label: "\u5B57\u6BB5key"
|
|
1666
1669
|
}
|
|
1667
1670
|
]
|
|
1668
|
-
},
|
|
1671
|
+
}, bo = {
|
|
1669
1672
|
type: "json",
|
|
1670
1673
|
name: "json",
|
|
1671
1674
|
default: {
|
|
@@ -1685,7 +1688,7 @@ const rt = /* @__PURE__ */ C(lo, [["render", oo], ["__scopeId", "data-v-7c3d697b
|
|
|
1685
1688
|
label: "\u5B57\u6BB5key"
|
|
1686
1689
|
}
|
|
1687
1690
|
]
|
|
1688
|
-
},
|
|
1691
|
+
}, _o = {
|
|
1689
1692
|
type: "upload",
|
|
1690
1693
|
name: "\u4E0A\u4F20",
|
|
1691
1694
|
default: {
|
|
@@ -1705,7 +1708,7 @@ const rt = /* @__PURE__ */ C(lo, [["render", oo], ["__scopeId", "data-v-7c3d697b
|
|
|
1705
1708
|
label: "\u5B57\u6BB5key"
|
|
1706
1709
|
}
|
|
1707
1710
|
]
|
|
1708
|
-
},
|
|
1711
|
+
}, yo = {
|
|
1709
1712
|
type: "template",
|
|
1710
1713
|
name: "\u81EA\u5B9A\u4E49\u7EC4\u4EF6",
|
|
1711
1714
|
default: {
|
|
@@ -1725,7 +1728,7 @@ const rt = /* @__PURE__ */ C(lo, [["render", oo], ["__scopeId", "data-v-7c3d697b
|
|
|
1725
1728
|
label: "\u5B57\u6BB5key"
|
|
1726
1729
|
}
|
|
1727
1730
|
]
|
|
1728
|
-
},
|
|
1731
|
+
}, vo = {
|
|
1729
1732
|
type: "icon-select",
|
|
1730
1733
|
name: "\u56FE\u6807\u9009\u62E9\u5668",
|
|
1731
1734
|
default: {
|
|
@@ -1745,7 +1748,7 @@ const rt = /* @__PURE__ */ C(lo, [["render", oo], ["__scopeId", "data-v-7c3d697b
|
|
|
1745
1748
|
label: "\u5B57\u6BB5key"
|
|
1746
1749
|
}
|
|
1747
1750
|
]
|
|
1748
|
-
},
|
|
1751
|
+
}, go = {
|
|
1749
1752
|
type: "sub-form",
|
|
1750
1753
|
name: "\u5B50\u8868\u5355",
|
|
1751
1754
|
default: {
|
|
@@ -1813,7 +1816,7 @@ const rt = /* @__PURE__ */ C(lo, [["render", oo], ["__scopeId", "data-v-7c3d697b
|
|
|
1813
1816
|
}
|
|
1814
1817
|
}
|
|
1815
1818
|
]
|
|
1816
|
-
},
|
|
1819
|
+
}, ko = {
|
|
1817
1820
|
type: "checkbox",
|
|
1818
1821
|
name: "\u590D\u9009\u6846",
|
|
1819
1822
|
default: {
|
|
@@ -1859,24 +1862,24 @@ const rt = /* @__PURE__ */ C(lo, [["render", oo], ["__scopeId", "data-v-7c3d697b
|
|
|
1859
1862
|
}
|
|
1860
1863
|
}
|
|
1861
1864
|
]
|
|
1862
|
-
},
|
|
1865
|
+
}, ct = {};
|
|
1863
1866
|
function F(e) {
|
|
1864
|
-
|
|
1867
|
+
ct[e.type] = e;
|
|
1865
1868
|
}
|
|
1866
|
-
F(no);
|
|
1867
|
-
F(io);
|
|
1868
|
-
F(so);
|
|
1869
|
-
F(ao);
|
|
1870
|
-
F(uo);
|
|
1871
|
-
F(bo);
|
|
1872
1869
|
F(ro);
|
|
1873
|
-
F(_o);
|
|
1874
|
-
F(co);
|
|
1875
1870
|
F(po);
|
|
1871
|
+
F(uo);
|
|
1872
|
+
F(co);
|
|
1873
|
+
F(fo);
|
|
1874
|
+
F(go);
|
|
1876
1875
|
F(mo);
|
|
1876
|
+
F(ko);
|
|
1877
1877
|
F(ho);
|
|
1878
|
-
F(
|
|
1879
|
-
|
|
1878
|
+
F(bo);
|
|
1879
|
+
F(_o);
|
|
1880
|
+
F(vo);
|
|
1881
|
+
F(yo);
|
|
1882
|
+
const Ee = ct, Eo = {
|
|
1880
1883
|
options: {
|
|
1881
1884
|
labelPosition: "top",
|
|
1882
1885
|
submitButton: !1,
|
|
@@ -1975,15 +1978,15 @@ const ke = ut, yo = {
|
|
|
1975
1978
|
}
|
|
1976
1979
|
]
|
|
1977
1980
|
};
|
|
1978
|
-
const
|
|
1981
|
+
const be = {
|
|
1979
1982
|
labelPosition: "top",
|
|
1980
1983
|
submitButton: !1,
|
|
1981
1984
|
cancelButton: !1
|
|
1982
|
-
},
|
|
1983
|
-
Object.keys(
|
|
1984
|
-
|
|
1985
|
+
}, Le = [];
|
|
1986
|
+
Object.keys(Ee).forEach((e) => {
|
|
1987
|
+
Le.push({ value: e, label: Ee[e].name });
|
|
1985
1988
|
});
|
|
1986
|
-
const
|
|
1989
|
+
const wo = {
|
|
1987
1990
|
options: {
|
|
1988
1991
|
submitButton: !1,
|
|
1989
1992
|
cancelButton: !1
|
|
@@ -2004,7 +2007,7 @@ const vo = {
|
|
|
2004
2007
|
type: "select",
|
|
2005
2008
|
field: "type",
|
|
2006
2009
|
label: "\u7C7B\u578B",
|
|
2007
|
-
options: y(
|
|
2010
|
+
options: y(Le)
|
|
2008
2011
|
},
|
|
2009
2012
|
{
|
|
2010
2013
|
type: "input",
|
|
@@ -2015,8 +2018,8 @@ const vo = {
|
|
|
2015
2018
|
}
|
|
2016
2019
|
}
|
|
2017
2020
|
]
|
|
2018
|
-
},
|
|
2019
|
-
components: { DevLayout:
|
|
2021
|
+
}, So = {
|
|
2022
|
+
components: { DevLayout: ut, VForm: Z, VButton: Fe, JsonView: De },
|
|
2020
2023
|
props: {
|
|
2021
2024
|
schema: {
|
|
2022
2025
|
type: Object,
|
|
@@ -2027,8 +2030,8 @@ const vo = {
|
|
|
2027
2030
|
data() {
|
|
2028
2031
|
return {
|
|
2029
2032
|
sqlOptions: {},
|
|
2030
|
-
sqlSchema:
|
|
2031
|
-
baseSchema:
|
|
2033
|
+
sqlSchema: wo,
|
|
2034
|
+
baseSchema: Eo,
|
|
2032
2035
|
activeTab: "base",
|
|
2033
2036
|
builderSchema: Object.assign(
|
|
2034
2037
|
{},
|
|
@@ -2048,12 +2051,12 @@ const vo = {
|
|
|
2048
2051
|
ctrlSchema: {},
|
|
2049
2052
|
ctrlName: "",
|
|
2050
2053
|
activeIndex: void 0,
|
|
2051
|
-
ctrlMap:
|
|
2054
|
+
ctrlMap: Ee,
|
|
2052
2055
|
activeIndexReg: /(formItems)?\[(\d+)\]/,
|
|
2053
2056
|
tableStruct: "",
|
|
2054
2057
|
activeName: "1",
|
|
2055
2058
|
currentCtrlType: "input",
|
|
2056
|
-
types: y(
|
|
2059
|
+
types: y(Le)
|
|
2057
2060
|
};
|
|
2058
2061
|
},
|
|
2059
2062
|
computed: {
|
|
@@ -2075,14 +2078,14 @@ const vo = {
|
|
|
2075
2078
|
ctrlOptions: {
|
|
2076
2079
|
deep: !0,
|
|
2077
2080
|
handler(e) {
|
|
2078
|
-
const t =
|
|
2081
|
+
const t = te(this.builderSchema, this.activeIndex);
|
|
2079
2082
|
if (!t)
|
|
2080
2083
|
return;
|
|
2081
2084
|
const l = t ? t.type : "", n = this.ctrlMap[l], o = n.trans ? n.trans(e) : e;
|
|
2082
2085
|
if (o && Object.keys(o).length > 0) {
|
|
2083
2086
|
if (o.type = l, this.activeIndex.indexOf("[") > -1) {
|
|
2084
|
-
const [
|
|
2085
|
-
this.builderSchema[
|
|
2087
|
+
const [a, s, u] = this.activeIndex.match(/(\w+)\[(\d+)\]/);
|
|
2088
|
+
this.builderSchema[s][u] = { ...o };
|
|
2086
2089
|
} else
|
|
2087
2090
|
this.builderSchema[this.activeIndex] = o;
|
|
2088
2091
|
this.key++;
|
|
@@ -2093,21 +2096,21 @@ const vo = {
|
|
|
2093
2096
|
handler(e) {
|
|
2094
2097
|
const t = this.ctrlMap[e];
|
|
2095
2098
|
this.ctrlSchema = y({
|
|
2096
|
-
options: y(
|
|
2099
|
+
options: y(be),
|
|
2097
2100
|
formItems: y(t.builder)
|
|
2098
2101
|
});
|
|
2099
|
-
const l =
|
|
2102
|
+
const l = te(this.builderSchema, this.activeIndex);
|
|
2100
2103
|
this.ctrlOptions = y(l), this.ctrlOptions.type = e, this.ctrlKey++, this.key++;
|
|
2101
2104
|
}
|
|
2102
2105
|
}
|
|
2103
2106
|
},
|
|
2104
2107
|
beforeCreate() {
|
|
2105
|
-
|
|
2108
|
+
J.on("dev-action", ({ event: e, data: t }) => {
|
|
2106
2109
|
this.onDevAction(t.type, t.devId);
|
|
2107
2110
|
});
|
|
2108
2111
|
},
|
|
2109
2112
|
unmounted() {
|
|
2110
|
-
|
|
2113
|
+
J.off("dev-action");
|
|
2111
2114
|
},
|
|
2112
2115
|
methods: {
|
|
2113
2116
|
onDevAction(e, t) {
|
|
@@ -2118,23 +2121,23 @@ const vo = {
|
|
|
2118
2121
|
this.ctrlOptions = {}, this.builderSchema[t] = this.builderSchema[t] || [];
|
|
2119
2122
|
const l = this.ctrlMap[e];
|
|
2120
2123
|
this.activeCtrl = l, this.builderSchema[t].push(y(l.default)), this.ctrlSchema = y({
|
|
2121
|
-
options: y(
|
|
2124
|
+
options: y(be),
|
|
2122
2125
|
formItems: y(l.builder)
|
|
2123
2126
|
}), this.ctrlKey++, this.key++, this.activeIndex = `${t}[${this.builderSchema[t].length - 1}]`, this.activeTab = "ctrl";
|
|
2124
2127
|
},
|
|
2125
2128
|
removeOne() {
|
|
2126
|
-
|
|
2129
|
+
lt(this.builderSchema, this.activeIndex), this.builderSchema = y(et(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
|
|
2127
2130
|
},
|
|
2128
2131
|
clicklabel() {
|
|
2129
2132
|
const e = this.activeIndex;
|
|
2130
2133
|
if (e.match(this.activeIndexReg)) {
|
|
2131
|
-
const l = y(
|
|
2134
|
+
const l = y(te(this.builderSchema, e)), n = l.type, o = this.ctrlMap[n];
|
|
2132
2135
|
if (!o) {
|
|
2133
2136
|
this.$message({ type: "warning", message: "\u5C1A\u672A\u652F\u6301\u8BE5\u7EC4\u4EF6\u7684UI\u7F16\u8F91" });
|
|
2134
2137
|
return;
|
|
2135
2138
|
}
|
|
2136
2139
|
this.currentCtrlType = n, this.ctrlOptions = l, this.ctrlSchema = y({
|
|
2137
|
-
options: y(
|
|
2140
|
+
options: y(be),
|
|
2138
2141
|
formItems: y(o.builder)
|
|
2139
2142
|
}), this.ctrlKey++;
|
|
2140
2143
|
}
|
|
@@ -2149,52 +2152,51 @@ const vo = {
|
|
|
2149
2152
|
});
|
|
2150
2153
|
}
|
|
2151
2154
|
}
|
|
2152
|
-
}
|
|
2153
|
-
function
|
|
2154
|
-
const
|
|
2155
|
-
return i(), m(
|
|
2155
|
+
};
|
|
2156
|
+
function Co(e, t, l, n, o, a) {
|
|
2157
|
+
const s = v("v-form"), u = Ze, p = ie, d = v("JsonView"), h = v("VButton"), _ = Se, T = Ce, $ = Qe, H = Xe, q = v("dev-layout");
|
|
2158
|
+
return i(), m(q, null, {
|
|
2156
2159
|
main: r(() => [
|
|
2157
|
-
o.builderSchema.formItems ? (i(), m(
|
|
2158
|
-
key: 0,
|
|
2160
|
+
o.builderSchema.formItems ? (i(), m(s, U({
|
|
2159
2161
|
ref: "form",
|
|
2160
2162
|
key: o.key,
|
|
2161
2163
|
dev: !0
|
|
2162
2164
|
}, o.builderSchema), null, 16)) : E("", !0),
|
|
2163
|
-
u
|
|
2164
|
-
|
|
2165
|
+
c(u),
|
|
2166
|
+
c(p, {
|
|
2165
2167
|
type: "primary",
|
|
2166
|
-
onClick:
|
|
2168
|
+
onClick: a.saveSchema
|
|
2167
2169
|
}, {
|
|
2168
2170
|
default: r(() => [
|
|
2169
|
-
|
|
2171
|
+
g("\u4FDD\u5B58\u9875\u9762\u914D\u7F6E")
|
|
2170
2172
|
]),
|
|
2171
2173
|
_: 1
|
|
2172
2174
|
}, 8, ["onClick"]),
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
+
g(" \xA0\xA0 "),
|
|
2176
|
+
c(h, {
|
|
2175
2177
|
text: "PageSchema",
|
|
2176
2178
|
type: "modal"
|
|
2177
2179
|
}, {
|
|
2178
2180
|
default: r(() => [
|
|
2179
|
-
|
|
2181
|
+
c(d, { data: a.getSaveSchema }, null, 8, ["data"])
|
|
2180
2182
|
]),
|
|
2181
2183
|
_: 1
|
|
2182
2184
|
})
|
|
2183
2185
|
]),
|
|
2184
2186
|
"right-aside": r(() => [
|
|
2185
|
-
o.activeIndex ? (i(), m(
|
|
2187
|
+
o.activeIndex ? (i(), m(H, { key: 0 }, {
|
|
2186
2188
|
default: r(() => [
|
|
2187
|
-
|
|
2189
|
+
c($, { label: "\u63A7\u4EF6\u7C7B\u578B" }, {
|
|
2188
2190
|
default: r(() => [
|
|
2189
|
-
|
|
2191
|
+
c(T, {
|
|
2190
2192
|
modelValue: o.currentCtrlType,
|
|
2191
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
2193
|
+
"onUpdate:modelValue": t[0] || (t[0] = (x) => o.currentCtrlType = x)
|
|
2192
2194
|
}, {
|
|
2193
2195
|
default: r(() => [
|
|
2194
|
-
(i(!0), f(k, null,
|
|
2195
|
-
key:
|
|
2196
|
-
label:
|
|
2197
|
-
value:
|
|
2196
|
+
(i(!0), f(k, null, A(o.types, (x, K) => (i(), m(_, {
|
|
2197
|
+
key: K,
|
|
2198
|
+
label: x.label,
|
|
2199
|
+
value: x.value
|
|
2198
2200
|
}, null, 8, ["label", "value"]))), 128))
|
|
2199
2201
|
]),
|
|
2200
2202
|
_: 1
|
|
@@ -2205,16 +2207,16 @@ function wo(e, t, l, n, o, s) {
|
|
|
2205
2207
|
]),
|
|
2206
2208
|
_: 1
|
|
2207
2209
|
})) : E("", !0),
|
|
2208
|
-
(i(), m(
|
|
2210
|
+
(i(), m(s, U({
|
|
2209
2211
|
key: o.ctrlKey,
|
|
2210
2212
|
modelValue: o.ctrlOptions,
|
|
2211
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
2213
|
+
"onUpdate:modelValue": t[1] || (t[1] = (x) => o.ctrlOptions = x)
|
|
2212
2214
|
}, o.ctrlSchema), null, 16, ["modelValue"]))
|
|
2213
2215
|
]),
|
|
2214
2216
|
_: 1
|
|
2215
2217
|
});
|
|
2216
2218
|
}
|
|
2217
|
-
const
|
|
2219
|
+
const Bo = /* @__PURE__ */ B(So, [["render", Co], ["__scopeId", "data-v-d89bdb06"]]), xo = {
|
|
2218
2220
|
type: "input",
|
|
2219
2221
|
name: "\u6587\u672C\u6846",
|
|
2220
2222
|
default: {
|
|
@@ -2262,7 +2264,7 @@ const So = /* @__PURE__ */ C(go, [["render", wo], ["__scopeId", "data-v-d89bdb06
|
|
|
2262
2264
|
}
|
|
2263
2265
|
}
|
|
2264
2266
|
]
|
|
2265
|
-
},
|
|
2267
|
+
}, Io = {
|
|
2266
2268
|
type: "select",
|
|
2267
2269
|
name: "\u4E0B\u62C9\u6846",
|
|
2268
2270
|
default: {
|
|
@@ -2363,7 +2365,7 @@ const So = /* @__PURE__ */ C(go, [["render", wo], ["__scopeId", "data-v-d89bdb06
|
|
|
2363
2365
|
const t = y(e);
|
|
2364
2366
|
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;
|
|
2365
2367
|
}
|
|
2366
|
-
},
|
|
2368
|
+
}, Ao = {
|
|
2367
2369
|
type: "date",
|
|
2368
2370
|
name: "\u65E5\u671F",
|
|
2369
2371
|
default: {
|
|
@@ -2383,7 +2385,7 @@ const So = /* @__PURE__ */ C(go, [["render", wo], ["__scopeId", "data-v-d89bdb06
|
|
|
2383
2385
|
label: "\u5B57\u6BB5key"
|
|
2384
2386
|
}
|
|
2385
2387
|
]
|
|
2386
|
-
},
|
|
2388
|
+
}, Ue = {
|
|
2387
2389
|
options: {
|
|
2388
2390
|
labelPosition: "top",
|
|
2389
2391
|
submitButton: !1,
|
|
@@ -2408,7 +2410,7 @@ const So = /* @__PURE__ */ C(go, [["render", wo], ["__scopeId", "data-v-d89bdb06
|
|
|
2408
2410
|
label: "\u5BFC\u51FA\u6309\u94AE"
|
|
2409
2411
|
}
|
|
2410
2412
|
]
|
|
2411
|
-
},
|
|
2413
|
+
}, _e = {
|
|
2412
2414
|
labelPosition: "top",
|
|
2413
2415
|
submitButton: !1,
|
|
2414
2416
|
cancelButton: !1
|
|
@@ -2442,7 +2444,7 @@ const So = /* @__PURE__ */ C(go, [["render", wo], ["__scopeId", "data-v-d89bdb06
|
|
|
2442
2444
|
label: "\u6392\u5E8F"
|
|
2443
2445
|
}
|
|
2444
2446
|
]
|
|
2445
|
-
},
|
|
2447
|
+
}, To = {
|
|
2446
2448
|
type: "enum",
|
|
2447
2449
|
name: "\u6807\u7B7E",
|
|
2448
2450
|
default: {
|
|
@@ -2493,7 +2495,7 @@ const So = /* @__PURE__ */ C(go, [["render", wo], ["__scopeId", "data-v-d89bdb06
|
|
|
2493
2495
|
trans(e) {
|
|
2494
2496
|
return e.options = e.options || [], e.label || (e.label = "\u8868\u5934"), e;
|
|
2495
2497
|
}
|
|
2496
|
-
},
|
|
2498
|
+
}, Fo = {
|
|
2497
2499
|
type: "html",
|
|
2498
2500
|
name: "HTML",
|
|
2499
2501
|
default: {
|
|
@@ -2518,7 +2520,7 @@ const So = /* @__PURE__ */ C(go, [["render", wo], ["__scopeId", "data-v-d89bdb06
|
|
|
2518
2520
|
label: "\u63D0\u793A"
|
|
2519
2521
|
}
|
|
2520
2522
|
]
|
|
2521
|
-
},
|
|
2523
|
+
}, Do = {
|
|
2522
2524
|
type: "icon",
|
|
2523
2525
|
name: "\u56FE\u6807",
|
|
2524
2526
|
default: {
|
|
@@ -2543,7 +2545,7 @@ const So = /* @__PURE__ */ C(go, [["render", wo], ["__scopeId", "data-v-d89bdb06
|
|
|
2543
2545
|
label: "\u63D0\u793A"
|
|
2544
2546
|
}
|
|
2545
2547
|
]
|
|
2546
|
-
},
|
|
2548
|
+
}, Oo = {
|
|
2547
2549
|
type: "image",
|
|
2548
2550
|
name: "\u56FE\u7247",
|
|
2549
2551
|
default: {
|
|
@@ -2568,7 +2570,7 @@ const So = /* @__PURE__ */ C(go, [["render", wo], ["__scopeId", "data-v-d89bdb06
|
|
|
2568
2570
|
label: "\u63D0\u793A"
|
|
2569
2571
|
}
|
|
2570
2572
|
]
|
|
2571
|
-
},
|
|
2573
|
+
}, Po = {
|
|
2572
2574
|
type: "json",
|
|
2573
2575
|
name: "JSON",
|
|
2574
2576
|
default: {
|
|
@@ -2593,7 +2595,7 @@ const So = /* @__PURE__ */ C(go, [["render", wo], ["__scopeId", "data-v-d89bdb06
|
|
|
2593
2595
|
label: "\u63D0\u793A"
|
|
2594
2596
|
}
|
|
2595
2597
|
]
|
|
2596
|
-
},
|
|
2598
|
+
}, Ro = {
|
|
2597
2599
|
type: "link",
|
|
2598
2600
|
name: "\u94FE\u63A5",
|
|
2599
2601
|
default: {
|
|
@@ -2618,7 +2620,7 @@ const So = /* @__PURE__ */ C(go, [["render", wo], ["__scopeId", "data-v-d89bdb06
|
|
|
2618
2620
|
label: "\u63D0\u793A"
|
|
2619
2621
|
}
|
|
2620
2622
|
]
|
|
2621
|
-
},
|
|
2623
|
+
}, Lo = {
|
|
2622
2624
|
type: "rich",
|
|
2623
2625
|
name: "\u5BCC\u6587\u672C",
|
|
2624
2626
|
default: {
|
|
@@ -2643,7 +2645,7 @@ const So = /* @__PURE__ */ C(go, [["render", wo], ["__scopeId", "data-v-d89bdb06
|
|
|
2643
2645
|
label: "\u63D0\u793A"
|
|
2644
2646
|
}
|
|
2645
2647
|
]
|
|
2646
|
-
},
|
|
2648
|
+
}, Mo = {
|
|
2647
2649
|
type: "tpl",
|
|
2648
2650
|
name: "\u6A21\u677F",
|
|
2649
2651
|
default: {
|
|
@@ -2674,17 +2676,17 @@ const So = /* @__PURE__ */ C(go, [["render", wo], ["__scopeId", "data-v-d89bdb06
|
|
|
2674
2676
|
info: "\u4F8B\u5982 <code>\u59D3\u540D: {name} \u5E74\u9F84:{age}</code>"
|
|
2675
2677
|
}
|
|
2676
2678
|
]
|
|
2677
|
-
},
|
|
2679
|
+
}, jo = {
|
|
2678
2680
|
span: $o,
|
|
2679
|
-
enum:
|
|
2680
|
-
html:
|
|
2681
|
-
icon:
|
|
2682
|
-
image:
|
|
2683
|
-
json:
|
|
2684
|
-
link:
|
|
2685
|
-
rich:
|
|
2686
|
-
tpl:
|
|
2687
|
-
},
|
|
2681
|
+
enum: To,
|
|
2682
|
+
html: Fo,
|
|
2683
|
+
icon: Do,
|
|
2684
|
+
image: Oo,
|
|
2685
|
+
json: Po,
|
|
2686
|
+
link: Ro,
|
|
2687
|
+
rich: Lo,
|
|
2688
|
+
tpl: Mo
|
|
2689
|
+
}, No = {
|
|
2688
2690
|
type: "jump",
|
|
2689
2691
|
name: "\u8DF3\u8F6C",
|
|
2690
2692
|
default: {
|
|
@@ -2731,7 +2733,7 @@ const So = /* @__PURE__ */ C(go, [["render", wo], ["__scopeId", "data-v-d89bdb06
|
|
|
2731
2733
|
}
|
|
2732
2734
|
}
|
|
2733
2735
|
]
|
|
2734
|
-
},
|
|
2736
|
+
}, Vo = {
|
|
2735
2737
|
type: "api",
|
|
2736
2738
|
name: "\u63A5\u53E3\u8BF7\u6C42",
|
|
2737
2739
|
default: {
|
|
@@ -2800,7 +2802,7 @@ const So = /* @__PURE__ */ C(go, [["render", wo], ["__scopeId", "data-v-d89bdb06
|
|
|
2800
2802
|
}
|
|
2801
2803
|
}
|
|
2802
2804
|
]
|
|
2803
|
-
},
|
|
2805
|
+
}, qo = {
|
|
2804
2806
|
type: "form",
|
|
2805
2807
|
name: "\u5F39\u6846\u8868\u5355",
|
|
2806
2808
|
default: {
|
|
@@ -2854,7 +2856,7 @@ const So = /* @__PURE__ */ C(go, [["render", wo], ["__scopeId", "data-v-d89bdb06
|
|
|
2854
2856
|
label: "\u4FDD\u5B58\u63A5\u53E3"
|
|
2855
2857
|
}
|
|
2856
2858
|
]
|
|
2857
|
-
},
|
|
2859
|
+
}, Uo = {
|
|
2858
2860
|
type: "table",
|
|
2859
2861
|
name: "\u5F39\u6846\u5217\u8868",
|
|
2860
2862
|
default: {
|
|
@@ -2908,14 +2910,14 @@ const So = /* @__PURE__ */ C(go, [["render", wo], ["__scopeId", "data-v-d89bdb06
|
|
|
2908
2910
|
label: "\u4FDD\u5B58\u63A5\u53E3"
|
|
2909
2911
|
}
|
|
2910
2912
|
]
|
|
2911
|
-
},
|
|
2912
|
-
jump:
|
|
2913
|
-
api:
|
|
2914
|
-
form:
|
|
2915
|
-
table:
|
|
2913
|
+
}, Ho = {
|
|
2914
|
+
jump: No,
|
|
2915
|
+
api: Vo,
|
|
2916
|
+
form: qo,
|
|
2917
|
+
table: Uo
|
|
2916
2918
|
};
|
|
2917
|
-
const
|
|
2918
|
-
components: { JsonView:
|
|
2919
|
+
const Go = {
|
|
2920
|
+
components: { JsonView: De, DevLayout: ut, VTable: re, VForm: Z, VButton: Fe },
|
|
2919
2921
|
props: {
|
|
2920
2922
|
schema: {
|
|
2921
2923
|
type: Object,
|
|
@@ -2924,13 +2926,13 @@ const Uo = {
|
|
|
2924
2926
|
}
|
|
2925
2927
|
},
|
|
2926
2928
|
data() {
|
|
2927
|
-
const e =
|
|
2929
|
+
const e = St(this.$props.schema);
|
|
2928
2930
|
return delete e.listApi, e.list = [{}], {
|
|
2929
|
-
baseSchema:
|
|
2931
|
+
baseSchema: Ue,
|
|
2930
2932
|
activeTab: "base",
|
|
2931
2933
|
builderSchema: Object.assign(
|
|
2932
2934
|
{},
|
|
2933
|
-
|
|
2935
|
+
Ue,
|
|
2934
2936
|
e
|
|
2935
2937
|
),
|
|
2936
2938
|
baseOptions: {},
|
|
@@ -2943,9 +2945,9 @@ const Uo = {
|
|
|
2943
2945
|
ctrlName: "",
|
|
2944
2946
|
activeIndex: void 0,
|
|
2945
2947
|
ctrlMap: {
|
|
2946
|
-
filter: { input:
|
|
2947
|
-
headers:
|
|
2948
|
-
buttons:
|
|
2948
|
+
filter: { input: xo, select: Io, date: Ao },
|
|
2949
|
+
headers: jo,
|
|
2950
|
+
buttons: Ho
|
|
2949
2951
|
},
|
|
2950
2952
|
activeIndexReg: /(filter|headers|normalButton|batchButton|rowButton)?\[(\d+)\]/,
|
|
2951
2953
|
currentCtrlType: "input"
|
|
@@ -2993,8 +2995,8 @@ const Uo = {
|
|
|
2993
2995
|
const o = n.trans ? n.trans(e) : e;
|
|
2994
2996
|
if (o && Object.keys(o).length > 0) {
|
|
2995
2997
|
if (o.type = l, this.activeIndex.indexOf("[") > -1) {
|
|
2996
|
-
const [
|
|
2997
|
-
this.builderSchema[
|
|
2998
|
+
const [a, s, u] = this.activeIndex.match(/(\w+)\[(\d+)\]/);
|
|
2999
|
+
this.builderSchema[s][u] = { ...o };
|
|
2998
3000
|
} else
|
|
2999
3001
|
this.builderSchema[this.activeIndex] = o;
|
|
3000
3002
|
this.key++;
|
|
@@ -3006,10 +3008,10 @@ const Uo = {
|
|
|
3006
3008
|
handler(e) {
|
|
3007
3009
|
const t = this.ctrlMap[this.activeBrick][e];
|
|
3008
3010
|
this.ctrlSchema = y({
|
|
3009
|
-
options: y(
|
|
3011
|
+
options: y(_e),
|
|
3010
3012
|
formItems: y(t.builder)
|
|
3011
3013
|
});
|
|
3012
|
-
const l =
|
|
3014
|
+
const l = te(this.builderSchema, this.activeIndex);
|
|
3013
3015
|
l.type = e;
|
|
3014
3016
|
const n = y(l);
|
|
3015
3017
|
this.ctrlOptions = n, n.text && (this.ctrlOptions.text = n.text, this.ctrlOptions.props = n.props || {}), this.ctrlKey++, this.key++, this.updateBuilderSchema();
|
|
@@ -3017,12 +3019,12 @@ const Uo = {
|
|
|
3017
3019
|
}
|
|
3018
3020
|
},
|
|
3019
3021
|
beforeCreate() {
|
|
3020
|
-
|
|
3022
|
+
J.on("dev-action", ({ event: e, data: t }) => {
|
|
3021
3023
|
this.onDevAction(t.type, t.devId);
|
|
3022
3024
|
});
|
|
3023
3025
|
},
|
|
3024
3026
|
unmounted() {
|
|
3025
|
-
|
|
3027
|
+
J.off("dev-action");
|
|
3026
3028
|
},
|
|
3027
3029
|
methods: {
|
|
3028
3030
|
updateBuilderSchema() {
|
|
@@ -3053,17 +3055,17 @@ const Uo = {
|
|
|
3053
3055
|
return;
|
|
3054
3056
|
}
|
|
3055
3057
|
this.activeCtrl = o[e], this.activeBrick = n, this.ctrlOptions = {}, this.builderSchema[t] = this.builderSchema[t] || [], this.builderSchema[t].push(y(o[e].default)), this.ctrlSchema = y({
|
|
3056
|
-
options: y(
|
|
3058
|
+
options: y(_e),
|
|
3057
3059
|
formItems: y(o[e].builder)
|
|
3058
3060
|
}), this.key++, this.ctrlKey++, this.activeIndex = `${t}[${this.builderSchema[t].length - 1}]`, this.activeTab = "ctrl";
|
|
3059
3061
|
},
|
|
3060
3062
|
removeOne() {
|
|
3061
|
-
|
|
3063
|
+
lt(this.builderSchema, this.activeIndex), this.builderSchema = y(et(this.builderSchema)), console.log(this.builderSchema), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
|
|
3062
3064
|
},
|
|
3063
3065
|
clicklabel() {
|
|
3064
3066
|
const e = this.activeIndex, t = e.match(this.activeIndexReg);
|
|
3065
3067
|
if (t) {
|
|
3066
|
-
const l = y(
|
|
3068
|
+
const l = y(te(this.builderSchema, e));
|
|
3067
3069
|
this.activeBrick = t[1], ["normalButton", "batchButton", "rowButton"].indexOf(t[1]) > -1 && (this.activeBrick = "buttons"), console.log(t);
|
|
3068
3070
|
let n = this.builderSchema[t[1]][parseInt(t[2])].type;
|
|
3069
3071
|
t[1] === "headers" && n === void 0 && (n = "span");
|
|
@@ -3073,7 +3075,7 @@ const Uo = {
|
|
|
3073
3075
|
return;
|
|
3074
3076
|
}
|
|
3075
3077
|
this.ctrlOptions = l, this.currentCtrlType = n, this.ctrlSchema = y({
|
|
3076
|
-
options: y(
|
|
3078
|
+
options: y(_e),
|
|
3077
3079
|
formItems: y(o.builder)
|
|
3078
3080
|
}), this.ctrlKey++;
|
|
3079
3081
|
}
|
|
@@ -3090,65 +3092,65 @@ const Uo = {
|
|
|
3090
3092
|
normalButton: n,
|
|
3091
3093
|
batchButton: o
|
|
3092
3094
|
}
|
|
3093
|
-
}).then(({ data:
|
|
3094
|
-
|
|
3095
|
+
}).then(({ data: a }) => {
|
|
3096
|
+
a && this.$message({ type: "success", message: "\u4FDD\u5B58\u6210\u529F, \u8BF7\u5237\u65B0\u9875\u9762\u67E5\u770B\u6548\u679C" });
|
|
3095
3097
|
});
|
|
3096
3098
|
}
|
|
3097
3099
|
}
|
|
3098
|
-
}
|
|
3099
|
-
function
|
|
3100
|
-
const
|
|
3101
|
-
return i(), m(
|
|
3100
|
+
};
|
|
3101
|
+
function Jo(e, t, l, n, o, a) {
|
|
3102
|
+
const s = ue, u = ie, p = oe, d = v("v-table"), h = Ze, _ = ie, T = v("JsonView"), $ = v("VButton"), H = Se, q = Ce, x = Qe, K = Xe, yt = v("v-form"), vt = v("dev-layout");
|
|
3103
|
+
return i(), m(vt, null, {
|
|
3102
3104
|
"left-aside": r(() => [
|
|
3103
|
-
|
|
3105
|
+
c(p, { style: { width: "200px" } }, {
|
|
3104
3106
|
default: r(() => [
|
|
3105
|
-
|
|
3107
|
+
c(p, null, {
|
|
3106
3108
|
default: r(() => [
|
|
3107
|
-
|
|
3109
|
+
c(s, {
|
|
3108
3110
|
class: "title",
|
|
3109
3111
|
"data-id": 22222
|
|
3110
3112
|
}, {
|
|
3111
3113
|
default: r(() => [
|
|
3112
|
-
|
|
3114
|
+
g("\u6DFB\u52A0\u641C\u7D22\u6761\u4EF6")
|
|
3113
3115
|
]),
|
|
3114
3116
|
_: 1
|
|
3115
3117
|
}),
|
|
3116
|
-
|
|
3118
|
+
c(s, { class: "ctrl" }, {
|
|
3117
3119
|
default: r(() => [
|
|
3118
|
-
u
|
|
3120
|
+
c(u, {
|
|
3119
3121
|
class: "ctrl-btn",
|
|
3120
|
-
onClick: t[0] || (t[0] = (
|
|
3122
|
+
onClick: t[0] || (t[0] = (C) => a.pushFilter("input"))
|
|
3121
3123
|
}, {
|
|
3122
3124
|
default: r(() => [
|
|
3123
|
-
|
|
3125
|
+
g("\u6587\u672C\u6846")
|
|
3124
3126
|
]),
|
|
3125
3127
|
_: 1
|
|
3126
3128
|
})
|
|
3127
3129
|
]),
|
|
3128
3130
|
_: 1
|
|
3129
3131
|
}),
|
|
3130
|
-
|
|
3132
|
+
c(s, { class: "ctrl" }, {
|
|
3131
3133
|
default: r(() => [
|
|
3132
|
-
u
|
|
3134
|
+
c(u, {
|
|
3133
3135
|
class: "ctrl-btn",
|
|
3134
|
-
onClick: t[1] || (t[1] = (
|
|
3136
|
+
onClick: t[1] || (t[1] = (C) => a.pushFilter("select"))
|
|
3135
3137
|
}, {
|
|
3136
3138
|
default: r(() => [
|
|
3137
|
-
|
|
3139
|
+
g("\u4E0B\u62C9\u6846")
|
|
3138
3140
|
]),
|
|
3139
3141
|
_: 1
|
|
3140
3142
|
})
|
|
3141
3143
|
]),
|
|
3142
3144
|
_: 1
|
|
3143
3145
|
}),
|
|
3144
|
-
|
|
3146
|
+
c(s, { class: "ctrl" }, {
|
|
3145
3147
|
default: r(() => [
|
|
3146
|
-
u
|
|
3148
|
+
c(u, {
|
|
3147
3149
|
class: "ctrl-btn",
|
|
3148
|
-
onClick: t[2] || (t[2] = (
|
|
3150
|
+
onClick: t[2] || (t[2] = (C) => a.pushFilter("date"))
|
|
3149
3151
|
}, {
|
|
3150
3152
|
default: r(() => [
|
|
3151
|
-
|
|
3153
|
+
g("\u65E5\u671F")
|
|
3152
3154
|
]),
|
|
3153
3155
|
_: 1
|
|
3154
3156
|
})
|
|
@@ -3158,25 +3160,25 @@ function ln(e, t, l, n, o, s) {
|
|
|
3158
3160
|
]),
|
|
3159
3161
|
_: 1
|
|
3160
3162
|
}),
|
|
3161
|
-
|
|
3163
|
+
c(p, null, {
|
|
3162
3164
|
default: r(() => [
|
|
3163
|
-
|
|
3165
|
+
c(s, { class: "title" }, {
|
|
3164
3166
|
default: r(() => [
|
|
3165
|
-
|
|
3167
|
+
g("\u6DFB\u52A0\u5217\u8868\u9879")
|
|
3166
3168
|
]),
|
|
3167
3169
|
_: 1
|
|
3168
3170
|
}),
|
|
3169
|
-
(i(!0), f(k, null,
|
|
3170
|
-
key: `column-${
|
|
3171
|
+
(i(!0), f(k, null, A(Object.keys(o.ctrlMap.headers), (C, j) => (i(), m(s, {
|
|
3172
|
+
key: `column-${j}`,
|
|
3171
3173
|
class: "ctrl"
|
|
3172
3174
|
}, {
|
|
3173
3175
|
default: r(() => [
|
|
3174
|
-
u
|
|
3176
|
+
c(u, {
|
|
3175
3177
|
class: "ctrl-btn",
|
|
3176
|
-
onClick: (
|
|
3178
|
+
onClick: (me) => a.pushHeaders(o.ctrlMap.headers[C].type)
|
|
3177
3179
|
}, {
|
|
3178
3180
|
default: r(() => [
|
|
3179
|
-
g(
|
|
3181
|
+
g(I(o.ctrlMap.headers[C].name), 1)
|
|
3180
3182
|
]),
|
|
3181
3183
|
_: 2
|
|
3182
3184
|
}, 1032, ["onClick"])
|
|
@@ -3186,25 +3188,25 @@ function ln(e, t, l, n, o, s) {
|
|
|
3186
3188
|
]),
|
|
3187
3189
|
_: 1
|
|
3188
3190
|
}),
|
|
3189
|
-
|
|
3191
|
+
c(p, null, {
|
|
3190
3192
|
default: r(() => [
|
|
3191
|
-
|
|
3193
|
+
c(s, { class: "title" }, {
|
|
3192
3194
|
default: r(() => [
|
|
3193
|
-
|
|
3195
|
+
g("\u6DFB\u52A0\u884C\u6309\u94AE")
|
|
3194
3196
|
]),
|
|
3195
3197
|
_: 1
|
|
3196
3198
|
}),
|
|
3197
|
-
(i(!0), f(k, null,
|
|
3198
|
-
key: `column-${
|
|
3199
|
+
(i(!0), f(k, null, A(Object.keys(o.ctrlMap.buttons), (C, j) => (i(), m(s, {
|
|
3200
|
+
key: `column-${j}`,
|
|
3199
3201
|
class: "ctrl"
|
|
3200
3202
|
}, {
|
|
3201
3203
|
default: r(() => [
|
|
3202
|
-
u
|
|
3204
|
+
c(u, {
|
|
3203
3205
|
class: "ctrl-btn",
|
|
3204
|
-
onClick: (
|
|
3206
|
+
onClick: (me) => a.pushRowButton(o.ctrlMap.buttons[C].type)
|
|
3205
3207
|
}, {
|
|
3206
3208
|
default: r(() => [
|
|
3207
|
-
g(
|
|
3209
|
+
g(I(o.ctrlMap.buttons[C].name), 1)
|
|
3208
3210
|
]),
|
|
3209
3211
|
_: 2
|
|
3210
3212
|
}, 1032, ["onClick"])
|
|
@@ -3214,36 +3216,36 @@ function ln(e, t, l, n, o, s) {
|
|
|
3214
3216
|
]),
|
|
3215
3217
|
_: 1
|
|
3216
3218
|
}),
|
|
3217
|
-
|
|
3219
|
+
c(p, null, {
|
|
3218
3220
|
default: r(() => [
|
|
3219
|
-
|
|
3221
|
+
c(s, { class: "title" }, {
|
|
3220
3222
|
default: r(() => [
|
|
3221
|
-
|
|
3223
|
+
g("\u6DFB\u52A0\u5E38\u89C4\u6309\u94AE")
|
|
3222
3224
|
]),
|
|
3223
3225
|
_: 1
|
|
3224
3226
|
}),
|
|
3225
|
-
(i(!0), f(k, null,
|
|
3226
|
-
key: `column-${
|
|
3227
|
+
(i(!0), f(k, null, A(Object.keys(o.ctrlMap.buttons), (C, j) => (i(), m(s, {
|
|
3228
|
+
key: `column-${j}`,
|
|
3227
3229
|
class: "ctrl"
|
|
3228
3230
|
}, {
|
|
3229
3231
|
default: r(() => [
|
|
3230
|
-
u
|
|
3232
|
+
c(u, {
|
|
3231
3233
|
class: "ctrl-btn",
|
|
3232
|
-
onClick: (
|
|
3234
|
+
onClick: (me) => a.pushNormalButton(o.ctrlMap.buttons[C].type)
|
|
3233
3235
|
}, {
|
|
3234
3236
|
default: r(() => [
|
|
3235
|
-
g(
|
|
3237
|
+
g(I(o.ctrlMap.buttons[C].name), 1)
|
|
3236
3238
|
]),
|
|
3237
3239
|
_: 2
|
|
3238
3240
|
}, 1032, ["onClick"])
|
|
3239
3241
|
]),
|
|
3240
3242
|
_: 2
|
|
3241
3243
|
}, 1024))), 128)),
|
|
3242
|
-
|
|
3244
|
+
c(s, { class: "ctrl" }, {
|
|
3243
3245
|
default: r(() => [
|
|
3244
|
-
u
|
|
3246
|
+
c(u, { class: "ctrl-btn" }, {
|
|
3245
3247
|
default: r(() => [
|
|
3246
|
-
|
|
3248
|
+
g("\u6309\u94AE\u7EC4")
|
|
3247
3249
|
]),
|
|
3248
3250
|
_: 1
|
|
3249
3251
|
})
|
|
@@ -3253,36 +3255,36 @@ function ln(e, t, l, n, o, s) {
|
|
|
3253
3255
|
]),
|
|
3254
3256
|
_: 1
|
|
3255
3257
|
}),
|
|
3256
|
-
|
|
3258
|
+
c(p, null, {
|
|
3257
3259
|
default: r(() => [
|
|
3258
|
-
|
|
3260
|
+
c(s, { class: "title" }, {
|
|
3259
3261
|
default: r(() => [
|
|
3260
|
-
|
|
3262
|
+
g("\u6DFB\u52A0\u6279\u91CF\u6309\u94AE")
|
|
3261
3263
|
]),
|
|
3262
3264
|
_: 1
|
|
3263
3265
|
}),
|
|
3264
|
-
(i(!0), f(k, null,
|
|
3265
|
-
key: `column-${
|
|
3266
|
+
(i(!0), f(k, null, A(Object.keys(o.ctrlMap.buttons), (C, j) => (i(), m(s, {
|
|
3267
|
+
key: `column-${j}`,
|
|
3266
3268
|
class: "ctrl"
|
|
3267
3269
|
}, {
|
|
3268
3270
|
default: r(() => [
|
|
3269
|
-
u
|
|
3271
|
+
c(u, {
|
|
3270
3272
|
class: "ctrl-btn",
|
|
3271
|
-
onClick: (
|
|
3273
|
+
onClick: (me) => a.pushBatchButton(o.ctrlMap.buttons[C].type)
|
|
3272
3274
|
}, {
|
|
3273
3275
|
default: r(() => [
|
|
3274
|
-
g(
|
|
3276
|
+
g(I(o.ctrlMap.buttons[C].name), 1)
|
|
3275
3277
|
]),
|
|
3276
3278
|
_: 2
|
|
3277
3279
|
}, 1032, ["onClick"])
|
|
3278
3280
|
]),
|
|
3279
3281
|
_: 2
|
|
3280
3282
|
}, 1024))), 128)),
|
|
3281
|
-
|
|
3283
|
+
c(s, { class: "ctrl" }, {
|
|
3282
3284
|
default: r(() => [
|
|
3283
|
-
u
|
|
3285
|
+
c(u, { class: "ctrl-btn" }, {
|
|
3284
3286
|
default: r(() => [
|
|
3285
|
-
|
|
3287
|
+
g("\u6309\u94AE\u7EC4")
|
|
3286
3288
|
]),
|
|
3287
3289
|
_: 1
|
|
3288
3290
|
})
|
|
@@ -3297,46 +3299,46 @@ function ln(e, t, l, n, o, s) {
|
|
|
3297
3299
|
})
|
|
3298
3300
|
]),
|
|
3299
3301
|
main: r(() => [
|
|
3300
|
-
(i(), m(
|
|
3302
|
+
(i(), m(d, U({
|
|
3301
3303
|
ref: "table",
|
|
3302
3304
|
key: o.key,
|
|
3303
3305
|
dev: !0
|
|
3304
3306
|
}, o.builderSchema), null, 16)),
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
+
c(h),
|
|
3308
|
+
c(_, {
|
|
3307
3309
|
type: "primary",
|
|
3308
|
-
onClick:
|
|
3310
|
+
onClick: a.saveSchema
|
|
3309
3311
|
}, {
|
|
3310
3312
|
default: r(() => [
|
|
3311
|
-
|
|
3313
|
+
g("\u4FDD\u5B58\u9875\u9762\u914D\u7F6E")
|
|
3312
3314
|
]),
|
|
3313
3315
|
_: 1
|
|
3314
3316
|
}, 8, ["onClick"]),
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
+
g(" \xA0\xA0 "),
|
|
3318
|
+
c($, {
|
|
3317
3319
|
text: "PageSchema",
|
|
3318
3320
|
type: "modal"
|
|
3319
3321
|
}, {
|
|
3320
3322
|
default: r(() => [
|
|
3321
|
-
|
|
3323
|
+
c(T, { data: a.getSaveSchema }, null, 8, ["data"])
|
|
3322
3324
|
]),
|
|
3323
3325
|
_: 1
|
|
3324
3326
|
})
|
|
3325
3327
|
]),
|
|
3326
3328
|
"right-aside": r(() => [
|
|
3327
|
-
o.activeIndex ? (i(), m(
|
|
3329
|
+
o.activeIndex ? (i(), m(K, { key: 0 }, {
|
|
3328
3330
|
default: r(() => [
|
|
3329
|
-
|
|
3331
|
+
c(x, { label: "\u63A7\u4EF6\u7C7B\u578B" }, {
|
|
3330
3332
|
default: r(() => [
|
|
3331
|
-
|
|
3333
|
+
c(q, {
|
|
3332
3334
|
modelValue: o.currentCtrlType,
|
|
3333
|
-
"onUpdate:modelValue": t[3] || (t[3] = (
|
|
3335
|
+
"onUpdate:modelValue": t[3] || (t[3] = (C) => o.currentCtrlType = C)
|
|
3334
3336
|
}, {
|
|
3335
3337
|
default: r(() => [
|
|
3336
|
-
(i(!0), f(k, null,
|
|
3337
|
-
key:
|
|
3338
|
-
label:
|
|
3339
|
-
value:
|
|
3338
|
+
(i(!0), f(k, null, A(a.types, (C, j) => (i(), m(H, {
|
|
3339
|
+
key: j,
|
|
3340
|
+
label: C.label,
|
|
3341
|
+
value: C.value
|
|
3340
3342
|
}, null, 8, ["label", "value"]))), 128))
|
|
3341
3343
|
]),
|
|
3342
3344
|
_: 1
|
|
@@ -3347,31 +3349,31 @@ function ln(e, t, l, n, o, s) {
|
|
|
3347
3349
|
]),
|
|
3348
3350
|
_: 1
|
|
3349
3351
|
})) : E("", !0),
|
|
3350
|
-
(i(), m(
|
|
3352
|
+
(i(), m(yt, U({
|
|
3351
3353
|
key: o.ctrlKey,
|
|
3352
3354
|
modelValue: o.ctrlOptions,
|
|
3353
|
-
"onUpdate:modelValue": t[4] || (t[4] = (
|
|
3355
|
+
"onUpdate:modelValue": t[4] || (t[4] = (C) => o.ctrlOptions = C)
|
|
3354
3356
|
}, o.ctrlSchema), null, 16, ["modelValue"]))
|
|
3355
3357
|
]),
|
|
3356
3358
|
_: 1
|
|
3357
3359
|
});
|
|
3358
3360
|
}
|
|
3359
|
-
const
|
|
3361
|
+
const zo = /* @__PURE__ */ B(Go, [["render", Jo], ["__scopeId", "data-v-77db3a16"]]), Ko = {
|
|
3360
3362
|
name: "PageEditor",
|
|
3361
|
-
components: { FormBuilder:
|
|
3363
|
+
components: { FormBuilder: Bo, TableBuilder: zo },
|
|
3362
3364
|
setup() {
|
|
3363
|
-
const e =
|
|
3365
|
+
const e = L(!1), t = L(1), l = "rtl", n = ce(), o = N(() => S.state.app.pages[n.path]);
|
|
3364
3366
|
return { show: e, key: t, direction: l, pageSchema: o };
|
|
3365
3367
|
}
|
|
3366
3368
|
};
|
|
3367
|
-
function
|
|
3368
|
-
const
|
|
3369
|
+
function Wo(e, t, l, n, o, a) {
|
|
3370
|
+
const s = v("VIcon"), u = v("form-builder"), p = v("table-builder"), d = Ye;
|
|
3369
3371
|
return i(), f(k, null, [
|
|
3370
|
-
|
|
3372
|
+
c(s, {
|
|
3371
3373
|
name: "ra-set",
|
|
3372
3374
|
onClick: t[0] || (t[0] = (h) => n.show = !n.show)
|
|
3373
3375
|
}),
|
|
3374
|
-
|
|
3376
|
+
c(d, {
|
|
3375
3377
|
modelValue: n.show,
|
|
3376
3378
|
"onUpdate:modelValue": t[1] || (t[1] = (h) => n.show = h),
|
|
3377
3379
|
title: "\u9875\u9762\u8BBE\u8BA1",
|
|
@@ -3382,11 +3384,11 @@ function sn(e, t, l, n, o, s) {
|
|
|
3382
3384
|
"append-to-body": ""
|
|
3383
3385
|
}, {
|
|
3384
3386
|
default: r(() => [
|
|
3385
|
-
n.pageSchema.formItems !== void 0 ? (i(), m(
|
|
3387
|
+
n.pageSchema.formItems !== void 0 ? (i(), m(u, {
|
|
3386
3388
|
key: 0,
|
|
3387
3389
|
schema: n.pageSchema
|
|
3388
3390
|
}, null, 8, ["schema"])) : E("", !0),
|
|
3389
|
-
n.pageSchema.headers !== void 0 ? (i(), m(
|
|
3391
|
+
n.pageSchema.headers !== void 0 ? (i(), m(p, {
|
|
3390
3392
|
key: 1,
|
|
3391
3393
|
schema: n.pageSchema
|
|
3392
3394
|
}, null, 8, ["schema"])) : E("", !0)
|
|
@@ -3395,13 +3397,13 @@ function sn(e, t, l, n, o, s) {
|
|
|
3395
3397
|
}, 8, ["modelValue", "direction"])
|
|
3396
3398
|
], 64);
|
|
3397
3399
|
}
|
|
3398
|
-
const
|
|
3399
|
-
const
|
|
3400
|
+
const Zo = /* @__PURE__ */ B(Ko, [["render", Wo]]);
|
|
3401
|
+
const Qo = {
|
|
3400
3402
|
components: {
|
|
3401
|
-
Breadcrumb:
|
|
3402
|
-
Hamburger:
|
|
3403
|
-
VButton:
|
|
3404
|
-
PageEditor:
|
|
3403
|
+
Breadcrumb: lo,
|
|
3404
|
+
Hamburger: ao,
|
|
3405
|
+
VButton: Fe,
|
|
3406
|
+
PageEditor: Zo
|
|
3405
3407
|
},
|
|
3406
3408
|
data() {
|
|
3407
3409
|
return {
|
|
@@ -3414,7 +3416,7 @@ const rn = {
|
|
|
3414
3416
|
};
|
|
3415
3417
|
},
|
|
3416
3418
|
computed: {
|
|
3417
|
-
...
|
|
3419
|
+
...Te(["sidebar", "avatar", "name", "nickname", "nav"]),
|
|
3418
3420
|
hasNewMessage() {
|
|
3419
3421
|
return this.$store.state.settings.hasNewMessage;
|
|
3420
3422
|
},
|
|
@@ -3432,7 +3434,7 @@ const rn = {
|
|
|
3432
3434
|
}
|
|
3433
3435
|
},
|
|
3434
3436
|
mounted() {
|
|
3435
|
-
|
|
3437
|
+
tt("el-submenu is-active");
|
|
3436
3438
|
const e = this.getSetting("navBarNotice");
|
|
3437
3439
|
e.length > 0 && !this.getSetting("closeNavNotice") && this.showNotice(e) && this.$notify({
|
|
3438
3440
|
title: "\u63D0\u793A",
|
|
@@ -3440,7 +3442,7 @@ const rn = {
|
|
|
3440
3442
|
dangerouslyUseHTMLString: !0,
|
|
3441
3443
|
duration: 0,
|
|
3442
3444
|
onClose: this.closeNavBarNotice
|
|
3443
|
-
}), this.setting.envColor[this.user.env] &&
|
|
3445
|
+
}), this.setting.envColor[this.user.env] && Xt({
|
|
3444
3446
|
elRef: this.$refs.header.$el,
|
|
3445
3447
|
waterMark: this.user.env,
|
|
3446
3448
|
color: "skyblue",
|
|
@@ -3465,81 +3467,81 @@ const rn = {
|
|
|
3465
3467
|
},
|
|
3466
3468
|
showNotice(e) {
|
|
3467
3469
|
const t = "dismiss:navbar_notice";
|
|
3468
|
-
return
|
|
3470
|
+
return fe.exist(t) ? fe.get(t) !== e : !0;
|
|
3469
3471
|
},
|
|
3470
3472
|
closeNotice(e) {
|
|
3471
3473
|
const t = "dismiss:navbar_notice";
|
|
3472
|
-
|
|
3474
|
+
fe.set(t, e);
|
|
3473
3475
|
},
|
|
3474
3476
|
gotoMenuEdit() {
|
|
3475
3477
|
var e, t, l, n;
|
|
3476
3478
|
(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));
|
|
3477
3479
|
}
|
|
3478
3480
|
}
|
|
3479
|
-
},
|
|
3481
|
+
}, Xo = { class: "right-content" }, Yo = { class: "right-item" }, en = {
|
|
3480
3482
|
key: 0,
|
|
3481
3483
|
class: "right-item"
|
|
3482
|
-
},
|
|
3484
|
+
}, tn = {
|
|
3483
3485
|
class: "right-item-button",
|
|
3484
3486
|
style: { padding: "0" }
|
|
3485
|
-
},
|
|
3486
|
-
function
|
|
3487
|
-
const
|
|
3488
|
-
return i(), m(
|
|
3487
|
+
}, ln = { class: "user-info" }, on = ["src"], nn = { class: "user-name" };
|
|
3488
|
+
function an(e, t, l, n, o, a) {
|
|
3489
|
+
const s = v("hamburger"), u = v("breadcrumb"), p = ue, d = v("VIcon"), h = v("PageEditor"), _ = v("v-button"), T = Lt, $ = Mt, H = jt, q = Ye, x = oe;
|
|
3490
|
+
return i(), m(x, {
|
|
3489
3491
|
ref: "header",
|
|
3490
3492
|
class: "navbar",
|
|
3491
|
-
style:
|
|
3493
|
+
style: Ct({ background: a.setting.envColor[a.user.env] })
|
|
3492
3494
|
}, {
|
|
3493
3495
|
default: r(() => [
|
|
3494
|
-
|
|
3496
|
+
c(p, { span: 16 }, {
|
|
3495
3497
|
default: r(() => [
|
|
3496
|
-
|
|
3498
|
+
c(s, {
|
|
3497
3499
|
"is-active": e.sidebar.opened,
|
|
3498
3500
|
class: "hamburger-container",
|
|
3499
|
-
onToggleClick:
|
|
3501
|
+
onToggleClick: a.toggleSideBar
|
|
3500
3502
|
}, null, 8, ["is-active", "onToggleClick"]),
|
|
3501
|
-
u
|
|
3503
|
+
c(u, { class: "breadcrumb-container" })
|
|
3502
3504
|
]),
|
|
3503
3505
|
_: 1
|
|
3504
3506
|
}),
|
|
3505
|
-
|
|
3507
|
+
c(p, { span: 8 }, {
|
|
3506
3508
|
default: r(() => [
|
|
3507
|
-
b("div",
|
|
3508
|
-
b("div",
|
|
3509
|
-
|
|
3509
|
+
b("div", Xo, [
|
|
3510
|
+
b("div", Yo, [
|
|
3511
|
+
c(d, {
|
|
3510
3512
|
name: "ra-code",
|
|
3511
|
-
onClick:
|
|
3513
|
+
onClick: a.gotoMenuEdit
|
|
3512
3514
|
}, null, 8, ["onClick"])
|
|
3513
3515
|
]),
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
+
a.showPageJsonSchemaIcon ? (i(), f("div", en, [
|
|
3517
|
+
c(h)
|
|
3516
3518
|
])) : E("", !0),
|
|
3517
|
-
b("div",
|
|
3518
|
-
|
|
3519
|
+
b("div", tn, [
|
|
3520
|
+
c(_, { buttons: e.nav }, null, 8, ["buttons"])
|
|
3519
3521
|
]),
|
|
3520
|
-
|
|
3522
|
+
c(H, {
|
|
3521
3523
|
class: "right-item",
|
|
3522
3524
|
trigger: "click"
|
|
3523
3525
|
}, {
|
|
3524
3526
|
dropdown: r(() => [
|
|
3525
|
-
|
|
3527
|
+
c($, { class: "user-dropdown" }, {
|
|
3526
3528
|
default: r(() => [
|
|
3527
|
-
|
|
3529
|
+
c(T, {
|
|
3528
3530
|
icon: "oms-icon-index",
|
|
3529
|
-
onClick: t[0] || (t[0] = (
|
|
3531
|
+
onClick: t[0] || (t[0] = (K) => e.$router.push("/"))
|
|
3530
3532
|
}, {
|
|
3531
3533
|
default: r(() => [
|
|
3532
|
-
|
|
3534
|
+
g("\u9996\u9875")
|
|
3533
3535
|
]),
|
|
3534
3536
|
_: 1
|
|
3535
3537
|
}),
|
|
3536
|
-
|
|
3538
|
+
c(T, {
|
|
3537
3539
|
divided: "",
|
|
3538
3540
|
icon: "el-icon-switch-button",
|
|
3539
|
-
onClick:
|
|
3541
|
+
onClick: a.logout
|
|
3540
3542
|
}, {
|
|
3541
3543
|
default: r(() => [
|
|
3542
|
-
|
|
3544
|
+
g("\u9000\u51FA\u767B\u5F55")
|
|
3543
3545
|
]),
|
|
3544
3546
|
_: 1
|
|
3545
3547
|
}, 8, ["onClick"])
|
|
@@ -3548,14 +3550,14 @@ function vn(e, t, l, n, o, s) {
|
|
|
3548
3550
|
})
|
|
3549
3551
|
]),
|
|
3550
3552
|
default: r(() => [
|
|
3551
|
-
b("div",
|
|
3553
|
+
b("div", ln, [
|
|
3552
3554
|
b("img", {
|
|
3553
3555
|
src: e.avatar ? e.avatar : o.defaultAvatar,
|
|
3554
3556
|
class: "user-avatar",
|
|
3555
3557
|
alt: "\u5934\u50CF"
|
|
3556
|
-
}, null, 8,
|
|
3557
|
-
|
|
3558
|
-
b("span",
|
|
3558
|
+
}, null, 8, on),
|
|
3559
|
+
g(),
|
|
3560
|
+
b("span", nn, I(e.nickname || e.name), 1)
|
|
3559
3561
|
])
|
|
3560
3562
|
]),
|
|
3561
3563
|
_: 1
|
|
@@ -3564,7 +3566,7 @@ function vn(e, t, l, n, o, s) {
|
|
|
3564
3566
|
]),
|
|
3565
3567
|
_: 1
|
|
3566
3568
|
}),
|
|
3567
|
-
o.showJsonSchema ? (i(), m(
|
|
3569
|
+
o.showJsonSchema ? (i(), m(q, {
|
|
3568
3570
|
key: 0,
|
|
3569
3571
|
"with-header": !1,
|
|
3570
3572
|
size: "50%"
|
|
@@ -3573,8 +3575,8 @@ function vn(e, t, l, n, o, s) {
|
|
|
3573
3575
|
_: 1
|
|
3574
3576
|
}, 8, ["style"]);
|
|
3575
3577
|
}
|
|
3576
|
-
const
|
|
3577
|
-
const
|
|
3578
|
+
const sn = /* @__PURE__ */ B(Qo, [["render", an], ["__scopeId", "data-v-9d0fb088"]]);
|
|
3579
|
+
const rn = {
|
|
3578
3580
|
name: "SidebarLogo",
|
|
3579
3581
|
props: {
|
|
3580
3582
|
collapse: {
|
|
@@ -3590,43 +3592,43 @@ const kn = {
|
|
|
3590
3592
|
return this.$store.state.settings.logo;
|
|
3591
3593
|
}
|
|
3592
3594
|
}
|
|
3593
|
-
},
|
|
3595
|
+
}, un = (e) => (ze("data-v-49084925"), e = e(), Ke(), e), cn = ["src"], pn = {
|
|
3594
3596
|
key: 1,
|
|
3595
3597
|
class: "sidebar-title"
|
|
3596
|
-
},
|
|
3597
|
-
function
|
|
3598
|
-
const
|
|
3598
|
+
}, dn = /* @__PURE__ */ un(() => /* @__PURE__ */ b("div", null, "\u7CFB\u7EDF", -1)), mn = ["src"], fn = { class: "sidebar-title" };
|
|
3599
|
+
function hn(e, t, l, n, o, a) {
|
|
3600
|
+
const s = v("router-link");
|
|
3599
3601
|
return i(), f("div", {
|
|
3600
|
-
class:
|
|
3602
|
+
class: G(["sidebar-logo-container", { collapse: l.collapse }])
|
|
3601
3603
|
}, [
|
|
3602
|
-
|
|
3604
|
+
c(Bt, { name: "sidebarLogoFade" }, {
|
|
3603
3605
|
default: r(() => [
|
|
3604
|
-
l.collapse ? (i(), m(
|
|
3606
|
+
l.collapse ? (i(), m(s, {
|
|
3605
3607
|
key: "collapse",
|
|
3606
3608
|
class: "sidebar-logo-link",
|
|
3607
3609
|
to: "/"
|
|
3608
3610
|
}, {
|
|
3609
3611
|
default: r(() => [
|
|
3610
|
-
|
|
3612
|
+
a.logo ? (i(), f("img", {
|
|
3611
3613
|
key: 0,
|
|
3612
|
-
src:
|
|
3614
|
+
src: a.logo,
|
|
3613
3615
|
class: "sidebar-logo"
|
|
3614
|
-
}, null, 8,
|
|
3615
|
-
|
|
3616
|
+
}, null, 8, cn)) : (i(), f("h1", pn, I(a.title), 1)),
|
|
3617
|
+
dn
|
|
3616
3618
|
]),
|
|
3617
3619
|
_: 1
|
|
3618
|
-
})) : (i(), m(
|
|
3620
|
+
})) : (i(), m(s, {
|
|
3619
3621
|
key: "expand",
|
|
3620
3622
|
class: "sidebar-logo-link",
|
|
3621
3623
|
to: "/"
|
|
3622
3624
|
}, {
|
|
3623
3625
|
default: r(() => [
|
|
3624
|
-
|
|
3626
|
+
a.logo ? (i(), f("img", {
|
|
3625
3627
|
key: 0,
|
|
3626
|
-
src:
|
|
3628
|
+
src: a.logo,
|
|
3627
3629
|
class: "sidebar-logo"
|
|
3628
|
-
}, null, 8,
|
|
3629
|
-
b("h1",
|
|
3630
|
+
}, null, 8, mn)) : E("", !0),
|
|
3631
|
+
b("h1", fn, I(a.title), 1)
|
|
3630
3632
|
]),
|
|
3631
3633
|
_: 1
|
|
3632
3634
|
}))
|
|
@@ -3635,7 +3637,7 @@ function $n(e, t, l, n, o, s) {
|
|
|
3635
3637
|
})
|
|
3636
3638
|
], 2);
|
|
3637
3639
|
}
|
|
3638
|
-
const
|
|
3640
|
+
const bn = /* @__PURE__ */ B(rn, [["render", hn], ["__scopeId", "data-v-49084925"]]), _n = {
|
|
3639
3641
|
props: {
|
|
3640
3642
|
to: {
|
|
3641
3643
|
type: String,
|
|
@@ -3648,41 +3650,35 @@ const In = /* @__PURE__ */ C(kn, [["render", $n], ["__scopeId", "data-v-49084925
|
|
|
3648
3650
|
},
|
|
3649
3651
|
methods: {
|
|
3650
3652
|
compType(e) {
|
|
3651
|
-
return
|
|
3653
|
+
return je(e) || this.newTab ? "a" : "router-link";
|
|
3652
3654
|
},
|
|
3653
3655
|
linkProps(e) {
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
href: t.href,
|
|
3666
|
-
target: "_blank",
|
|
3667
|
-
rel: "noopener"
|
|
3668
|
-
};
|
|
3669
|
-
}
|
|
3670
|
-
return {
|
|
3656
|
+
return je(e) ? {
|
|
3657
|
+
is: "a",
|
|
3658
|
+
href: e,
|
|
3659
|
+
target: "_blank",
|
|
3660
|
+
rel: "noopener"
|
|
3661
|
+
} : this.newTab ? {
|
|
3662
|
+
is: "a",
|
|
3663
|
+
href: this.$router.resolve(e).href,
|
|
3664
|
+
target: "_blank",
|
|
3665
|
+
rel: "noopener"
|
|
3666
|
+
} : {
|
|
3671
3667
|
is: "router-link",
|
|
3672
3668
|
to: e
|
|
3673
3669
|
};
|
|
3674
3670
|
}
|
|
3675
3671
|
}
|
|
3676
3672
|
};
|
|
3677
|
-
function
|
|
3678
|
-
return i(), m(
|
|
3673
|
+
function yn(e, t, l, n, o, a) {
|
|
3674
|
+
return i(), m(We(a.compType(l.to)), z(Q(a.linkProps(l.to))), {
|
|
3679
3675
|
default: r(() => [
|
|
3680
|
-
|
|
3676
|
+
ee(e.$slots, "default")
|
|
3681
3677
|
]),
|
|
3682
3678
|
_: 3
|
|
3683
3679
|
}, 16);
|
|
3684
3680
|
}
|
|
3685
|
-
const
|
|
3681
|
+
const vn = /* @__PURE__ */ B(_n, [["render", yn]]), gn = {
|
|
3686
3682
|
computed: {
|
|
3687
3683
|
device() {
|
|
3688
3684
|
return this.$store.state.app.device;
|
|
@@ -3702,7 +3698,7 @@ const Fn = /* @__PURE__ */ C(An, [["render", Tn]]), Dn = {
|
|
|
3702
3698
|
}
|
|
3703
3699
|
}
|
|
3704
3700
|
}
|
|
3705
|
-
},
|
|
3701
|
+
}, kn = { class: "menu-content" }, En = /* @__PURE__ */ V({
|
|
3706
3702
|
__name: "MenuContent",
|
|
3707
3703
|
props: {
|
|
3708
3704
|
meta: {
|
|
@@ -3717,20 +3713,20 @@ const Fn = /* @__PURE__ */ C(An, [["render", Tn]]), Dn = {
|
|
|
3717
3713
|
return (t, l) => {
|
|
3718
3714
|
const n = v("VIcon");
|
|
3719
3715
|
return i(), f(k, null, [
|
|
3720
|
-
|
|
3716
|
+
c(n, {
|
|
3721
3717
|
name: e.meta.icon || "ra-all"
|
|
3722
3718
|
}, null, 8, ["name"]),
|
|
3723
|
-
b("span",
|
|
3719
|
+
b("span", kn, I(e.meta.title), 1)
|
|
3724
3720
|
], 64);
|
|
3725
3721
|
};
|
|
3726
3722
|
}
|
|
3727
|
-
}),
|
|
3723
|
+
}), wn = {
|
|
3728
3724
|
name: "SidebarItem",
|
|
3729
3725
|
components: {
|
|
3730
|
-
AppLink:
|
|
3731
|
-
MenuContent:
|
|
3726
|
+
AppLink: vn,
|
|
3727
|
+
MenuContent: En
|
|
3732
3728
|
},
|
|
3733
|
-
mixins: [
|
|
3729
|
+
mixins: [gn],
|
|
3734
3730
|
props: {
|
|
3735
3731
|
item: {
|
|
3736
3732
|
type: Object,
|
|
@@ -3754,26 +3750,26 @@ const Fn = /* @__PURE__ */ C(An, [["render", Tn]]), Dn = {
|
|
|
3754
3750
|
}
|
|
3755
3751
|
}
|
|
3756
3752
|
}
|
|
3757
|
-
},
|
|
3753
|
+
}, Sn = {
|
|
3758
3754
|
key: 0,
|
|
3759
3755
|
class: "menu-wrapper"
|
|
3760
3756
|
};
|
|
3761
|
-
function
|
|
3762
|
-
const
|
|
3763
|
-
return l.item.hidden !== !1 ? (i(), f("div",
|
|
3757
|
+
function Cn(e, t, l, n, o, a) {
|
|
3758
|
+
const s = v("menu-content"), u = Nt, p = v("app-link"), d = v("sidebar-item", !0), h = Vt;
|
|
3759
|
+
return l.item.hidden !== !1 ? (i(), f("div", Sn, [
|
|
3764
3760
|
l.item.meta && l.item.meta.menuType === 2 ? (i(), f(k, { key: 0 }, [
|
|
3765
|
-
l.item.meta ? (i(), m(
|
|
3761
|
+
l.item.meta ? (i(), m(p, {
|
|
3766
3762
|
key: 0,
|
|
3767
3763
|
to: l.to,
|
|
3768
3764
|
"new-tab": l.item.meta.newTab
|
|
3769
3765
|
}, {
|
|
3770
3766
|
default: r(() => [
|
|
3771
|
-
u
|
|
3767
|
+
c(u, {
|
|
3772
3768
|
index: l.to,
|
|
3773
|
-
class:
|
|
3769
|
+
class: G({ "submenu-title-noDropdown": !l.isNest })
|
|
3774
3770
|
}, {
|
|
3775
3771
|
default: r(() => [
|
|
3776
|
-
|
|
3772
|
+
c(s, {
|
|
3777
3773
|
meta: l.item.meta
|
|
3778
3774
|
}, null, 8, ["meta"])
|
|
3779
3775
|
]),
|
|
@@ -3786,31 +3782,31 @@ function Mn(e, t, l, n, o, s) {
|
|
|
3786
3782
|
key: 1,
|
|
3787
3783
|
ref: "subMenu",
|
|
3788
3784
|
index: l.to,
|
|
3789
|
-
class:
|
|
3785
|
+
class: G({ "submenu-title-noDropdown": !l.isNest }),
|
|
3790
3786
|
"popper-append-to-body": ""
|
|
3791
3787
|
}, {
|
|
3792
3788
|
title: r(() => [
|
|
3793
|
-
l.item.redirect && l.item.redirect !== "#" ? (i(), m(
|
|
3789
|
+
l.item.redirect && l.item.redirect !== "#" ? (i(), m(p, {
|
|
3794
3790
|
key: 0,
|
|
3795
3791
|
to: l.to
|
|
3796
3792
|
}, {
|
|
3797
3793
|
default: r(() => [
|
|
3798
|
-
|
|
3794
|
+
c(s, {
|
|
3799
3795
|
meta: l.item.meta
|
|
3800
3796
|
}, null, 8, ["meta"])
|
|
3801
3797
|
]),
|
|
3802
3798
|
_: 1
|
|
3803
|
-
}, 8, ["to"])) : (i(), m(
|
|
3799
|
+
}, 8, ["to"])) : (i(), m(s, {
|
|
3804
3800
|
key: 1,
|
|
3805
3801
|
meta: l.item.meta
|
|
3806
3802
|
}, null, 8, ["meta"]))
|
|
3807
3803
|
]),
|
|
3808
3804
|
default: r(() => [
|
|
3809
|
-
(i(!0), f(k, null,
|
|
3805
|
+
(i(!0), f(k, null, A(l.item.children, (_) => (i(), m(d, {
|
|
3810
3806
|
key: _.path,
|
|
3811
3807
|
"is-nest": !0,
|
|
3812
3808
|
item: _,
|
|
3813
|
-
to:
|
|
3809
|
+
to: a.getTo(_),
|
|
3814
3810
|
class: "nest-menu"
|
|
3815
3811
|
}, null, 8, ["item", "to"]))), 128))
|
|
3816
3812
|
]),
|
|
@@ -3818,26 +3814,26 @@ function Mn(e, t, l, n, o, s) {
|
|
|
3818
3814
|
}, 8, ["index", "class"])) : E("", !0)
|
|
3819
3815
|
])) : E("", !0);
|
|
3820
3816
|
}
|
|
3821
|
-
const
|
|
3822
|
-
function
|
|
3817
|
+
const Bn = /* @__PURE__ */ B(wn, [["render", Cn]]);
|
|
3818
|
+
function pt(e) {
|
|
3823
3819
|
return e.filter((t) => {
|
|
3824
3820
|
var l;
|
|
3825
|
-
return ((l = t.meta) == null ? void 0 : l.menuType) === 0 ? !1 : (t.children && (t.children =
|
|
3821
|
+
return ((l = t.meta) == null ? void 0 : l.menuType) === 0 ? !1 : (t.children && (t.children = pt(t.children), t.children.length === 0 && delete t.children), !0);
|
|
3826
3822
|
});
|
|
3827
3823
|
}
|
|
3828
|
-
const
|
|
3824
|
+
const xn = {
|
|
3829
3825
|
data() {
|
|
3830
3826
|
return {
|
|
3831
3827
|
selected: ""
|
|
3832
3828
|
};
|
|
3833
3829
|
},
|
|
3834
3830
|
computed: {
|
|
3835
|
-
...
|
|
3831
|
+
...Te(["remoteRouter"]),
|
|
3836
3832
|
filterRoutes() {
|
|
3837
3833
|
let e = [];
|
|
3838
3834
|
return this.remoteRouter.forEach((t) => {
|
|
3839
3835
|
e = e.concat(y(t.routes));
|
|
3840
|
-
}),
|
|
3836
|
+
}), pt(e);
|
|
3841
3837
|
}
|
|
3842
3838
|
},
|
|
3843
3839
|
methods: {
|
|
@@ -3846,54 +3842,54 @@ const Nn = {
|
|
|
3846
3842
|
}
|
|
3847
3843
|
}
|
|
3848
3844
|
};
|
|
3849
|
-
function
|
|
3850
|
-
const
|
|
3851
|
-
return i(), m(
|
|
3845
|
+
function In(e, t, l, n, o, a) {
|
|
3846
|
+
const s = Se, u = qt, p = Ce;
|
|
3847
|
+
return i(), m(p, {
|
|
3852
3848
|
modelValue: o.selected,
|
|
3853
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
3849
|
+
"onUpdate:modelValue": t[0] || (t[0] = (d) => o.selected = d),
|
|
3854
3850
|
filterable: "",
|
|
3855
3851
|
placeholder: "\u641C\u7D22\u83DC\u5355...",
|
|
3856
3852
|
class: "search-menu",
|
|
3857
|
-
onChange:
|
|
3853
|
+
onChange: a.onselected
|
|
3858
3854
|
}, {
|
|
3859
3855
|
default: r(() => [
|
|
3860
|
-
(i(!0), f(k, null,
|
|
3861
|
-
key:
|
|
3856
|
+
(i(!0), f(k, null, A(a.filterRoutes, (d) => (i(), f(k, {
|
|
3857
|
+
key: d.path
|
|
3862
3858
|
}, [
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
key:
|
|
3866
|
-
label:
|
|
3859
|
+
d.children !== void 0 ? (i(), f(k, { key: 0 }, [
|
|
3860
|
+
d.meta.menuType !== 0 ? (i(), m(u, {
|
|
3861
|
+
key: d.path + "-",
|
|
3862
|
+
label: d.meta.title
|
|
3867
3863
|
}, {
|
|
3868
3864
|
default: r(() => [
|
|
3869
|
-
(i(!0), f(k, null,
|
|
3865
|
+
(i(!0), f(k, null, A(d.children, (h, _) => (i(), f(k, {
|
|
3870
3866
|
key: h.path
|
|
3871
3867
|
}, [
|
|
3872
|
-
|
|
3868
|
+
d.meta.menuType !== 0 ? (i(), m(s, {
|
|
3873
3869
|
key: 0,
|
|
3874
|
-
label: (_ ===
|
|
3870
|
+
label: (_ === d.children.length - 1 ? "\u2514\u2500" : "\u251C\u2500") + h.meta.title,
|
|
3875
3871
|
value: h.path
|
|
3876
3872
|
}, null, 8, ["label", "value"])) : E("", !0)
|
|
3877
3873
|
], 64))), 128))
|
|
3878
3874
|
]),
|
|
3879
3875
|
_: 2
|
|
3880
3876
|
}, 1032, ["label"])) : E("", !0)
|
|
3881
|
-
], 64)) : (i(), m(
|
|
3877
|
+
], 64)) : (i(), m(s, {
|
|
3882
3878
|
key: 1,
|
|
3883
|
-
label: "" +
|
|
3884
|
-
value:
|
|
3879
|
+
label: "" + d.meta.title,
|
|
3880
|
+
value: d.path
|
|
3885
3881
|
}, null, 8, ["label", "value"]))
|
|
3886
3882
|
], 64))), 128))
|
|
3887
3883
|
]),
|
|
3888
3884
|
_: 1
|
|
3889
3885
|
}, 8, ["modelValue", "onChange"]);
|
|
3890
3886
|
}
|
|
3891
|
-
const
|
|
3892
|
-
var
|
|
3893
|
-
const
|
|
3894
|
-
components: { SidebarItem:
|
|
3887
|
+
const An = /* @__PURE__ */ B(xn, [["render", In], ["__scopeId", "data-v-811395be"]]);
|
|
3888
|
+
var R = /* @__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))(R || {}), 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 || {});
|
|
3889
|
+
const $n = V({
|
|
3890
|
+
components: { SidebarItem: Bn, Logo: bn, SearchMenu: An },
|
|
3895
3891
|
computed: {
|
|
3896
|
-
...
|
|
3892
|
+
...Te(["sidebar", "remoteRouter", "customRouter"]),
|
|
3897
3893
|
routes() {
|
|
3898
3894
|
let e = [];
|
|
3899
3895
|
return this.$router.options.routes.concat(this.customRouter || []).forEach((t) => {
|
|
@@ -3937,7 +3933,7 @@ const Un = N({
|
|
|
3937
3933
|
}
|
|
3938
3934
|
},
|
|
3939
3935
|
mounted() {
|
|
3940
|
-
|
|
3936
|
+
tt("is-active");
|
|
3941
3937
|
},
|
|
3942
3938
|
methods: {
|
|
3943
3939
|
filterRoute(e) {
|
|
@@ -3945,19 +3941,19 @@ const Un = N({
|
|
|
3945
3941
|
}
|
|
3946
3942
|
}
|
|
3947
3943
|
});
|
|
3948
|
-
function
|
|
3949
|
-
const
|
|
3944
|
+
function Tn(e, t, l, n, o, a) {
|
|
3945
|
+
const s = v("logo"), u = v("search-menu"), p = v("sidebar-item"), d = Ut, h = Ht;
|
|
3950
3946
|
return i(), f("div", {
|
|
3951
|
-
class:
|
|
3947
|
+
class: G({ "has-logo": e.showLogo })
|
|
3952
3948
|
}, [
|
|
3953
|
-
e.showLogo ? (i(), m(
|
|
3949
|
+
e.showLogo ? (i(), m(s, {
|
|
3954
3950
|
key: 0,
|
|
3955
3951
|
collapse: e.isCollapse
|
|
3956
3952
|
}, null, 8, ["collapse"])) : E("", !0),
|
|
3957
|
-
|
|
3953
|
+
c(h, { "wrap-class": "scrollbar-wrapper" }, {
|
|
3958
3954
|
default: r(() => [
|
|
3959
|
-
e.isCollapse ? E("", !0) : (i(), m(
|
|
3960
|
-
|
|
3955
|
+
e.isCollapse ? E("", !0) : (i(), m(u, { key: 0 })),
|
|
3956
|
+
c(d, {
|
|
3961
3957
|
"default-active": e.activeMenu,
|
|
3962
3958
|
collapse: e.isCollapse,
|
|
3963
3959
|
"background-color": e.variables.menuBg,
|
|
@@ -3968,13 +3964,13 @@ function Hn(e, t, l, n, o, s) {
|
|
|
3968
3964
|
mode: "vertical"
|
|
3969
3965
|
}, {
|
|
3970
3966
|
default: r(() => [
|
|
3971
|
-
(i(!0), f(k, null,
|
|
3972
|
-
key:
|
|
3967
|
+
(i(!0), f(k, null, A(e.routes, (_, T) => (i(), f(k, {
|
|
3968
|
+
key: T + "-module"
|
|
3973
3969
|
}, [
|
|
3974
|
-
(i(!0), f(k, null,
|
|
3975
|
-
key:
|
|
3976
|
-
item:
|
|
3977
|
-
to: e.$router.resolve(
|
|
3970
|
+
(i(!0), f(k, null, A(e.filterRoute(_.routes), ($) => (i(), m(p, {
|
|
3971
|
+
key: $.path,
|
|
3972
|
+
item: $,
|
|
3973
|
+
to: e.$router.resolve($.redirect ? $.redirect : $).fullPath
|
|
3978
3974
|
}, null, 8, ["item", "to"]))), 128))
|
|
3979
3975
|
], 64))), 128))
|
|
3980
3976
|
]),
|
|
@@ -3985,66 +3981,66 @@ function Hn(e, t, l, n, o, s) {
|
|
|
3985
3981
|
})
|
|
3986
3982
|
], 2);
|
|
3987
3983
|
}
|
|
3988
|
-
const
|
|
3989
|
-
const
|
|
3984
|
+
const Fn = /* @__PURE__ */ B($n, [["render", Tn], ["__scopeId", "data-v-cf9a1835"]]);
|
|
3985
|
+
const Dn = { class: "app-main" }, On = {
|
|
3990
3986
|
__name: "AppMain",
|
|
3991
3987
|
setup(e) {
|
|
3992
|
-
const t =
|
|
3993
|
-
return
|
|
3988
|
+
const t = ce(), l = [], n = L(0);
|
|
3989
|
+
return dl(() => {
|
|
3994
3990
|
var o;
|
|
3995
3991
|
(o = t.meta) != null && o.keepAlive && l.indexOf(t.name) && l.push(t.name), n.value++;
|
|
3996
|
-
}), (o,
|
|
3997
|
-
const
|
|
3998
|
-
return i(), f("section",
|
|
3999
|
-
(i(), m(
|
|
4000
|
-
key: o.$route.fullPath + n
|
|
3992
|
+
}), (o, a) => {
|
|
3993
|
+
const s = v("router-view"), u = Gt;
|
|
3994
|
+
return i(), f("section", Dn, [
|
|
3995
|
+
(i(), m(s, {
|
|
3996
|
+
key: o.$route.fullPath + w(n)
|
|
4001
3997
|
})),
|
|
4002
|
-
u
|
|
3998
|
+
c(u, { bottom: 50 })
|
|
4003
3999
|
]);
|
|
4004
4000
|
};
|
|
4005
4001
|
}
|
|
4006
|
-
},
|
|
4007
|
-
const
|
|
4002
|
+
}, Pn = /* @__PURE__ */ B(On, [["__scopeId", "data-v-ca0f0d98"]]);
|
|
4003
|
+
const Rn = { class: "main-container" }, Ln = {
|
|
4008
4004
|
__name: "index",
|
|
4009
4005
|
setup(e) {
|
|
4010
|
-
const t =
|
|
4006
|
+
const t = ot(), { body: l } = document, n = 992, o = N(() => t.state.app.sidebar), a = N(() => t.state.app.device), s = N(() => t.state.settings.fixedHeader), u = N(() => ({
|
|
4011
4007
|
hideSidebar: !o.value.opened,
|
|
4012
4008
|
openSidebar: o.value.opened,
|
|
4013
4009
|
withoutAnimation: o.value.withoutAnimation,
|
|
4014
|
-
mobile:
|
|
4015
|
-
})),
|
|
4016
|
-
|
|
4017
|
-
const
|
|
4010
|
+
mobile: a.value === "mobile"
|
|
4011
|
+
})), p = () => l.getBoundingClientRect().width - 1 < n;
|
|
4012
|
+
vl(window, "resize", () => h());
|
|
4013
|
+
const d = () => {
|
|
4018
4014
|
t.dispatch("app/closeSideBar", { withoutAnimation: !1 });
|
|
4019
4015
|
}, h = () => {
|
|
4020
4016
|
if (!document.hidden) {
|
|
4021
|
-
const _ =
|
|
4017
|
+
const _ = p();
|
|
4022
4018
|
t.dispatch("app/toggleDevice", _ ? "mobile" : "desktop"), _ && t.dispatch("app/closeSideBar", { withoutAnimation: !0 });
|
|
4023
4019
|
}
|
|
4024
4020
|
};
|
|
4025
|
-
return (_,
|
|
4026
|
-
class:
|
|
4021
|
+
return (_, T) => (i(), f("div", {
|
|
4022
|
+
class: G([w(u), "app-wrapper"])
|
|
4027
4023
|
}, [
|
|
4028
|
-
|
|
4024
|
+
w(a) === "mobile" && w(o).opened ? (i(), f("div", {
|
|
4029
4025
|
key: 0,
|
|
4030
4026
|
class: "drawer-bg",
|
|
4031
|
-
onClick:
|
|
4027
|
+
onClick: d
|
|
4032
4028
|
})) : E("", !0),
|
|
4033
|
-
|
|
4034
|
-
b("div",
|
|
4029
|
+
c(w(Fn), { class: "sidebar-container" }),
|
|
4030
|
+
b("div", Rn, [
|
|
4035
4031
|
b("div", {
|
|
4036
|
-
class:
|
|
4032
|
+
class: G({ "fixed-header": w(s) })
|
|
4037
4033
|
}, [
|
|
4038
|
-
|
|
4034
|
+
c(w(sn))
|
|
4039
4035
|
], 2),
|
|
4040
|
-
|
|
4036
|
+
c(w(Pn))
|
|
4041
4037
|
])
|
|
4042
4038
|
], 2));
|
|
4043
4039
|
}
|
|
4044
|
-
}, dt = /* @__PURE__ */
|
|
4045
|
-
class
|
|
4040
|
+
}, dt = /* @__PURE__ */ B(Ln, [["__scopeId", "data-v-957442cd"]]);
|
|
4041
|
+
class Mn {
|
|
4046
4042
|
constructor() {
|
|
4047
|
-
this
|
|
4043
|
+
P(this, "type", "qrcode");
|
|
4048
4044
|
}
|
|
4049
4045
|
flag() {
|
|
4050
4046
|
}
|
|
@@ -4054,103 +4050,111 @@ class Qn {
|
|
|
4054
4050
|
showQrCode() {
|
|
4055
4051
|
}
|
|
4056
4052
|
}
|
|
4057
|
-
class
|
|
4058
|
-
constructor(
|
|
4059
|
-
super()
|
|
4053
|
+
class jn extends Mn {
|
|
4054
|
+
constructor(l) {
|
|
4055
|
+
super();
|
|
4056
|
+
P(this, "type", "qrcode");
|
|
4057
|
+
P(this, "qrCodeUrl", "https://login.dingtalk.com/login/qrcode.htm?goto={goto}&style={style}");
|
|
4058
|
+
P(this, "reloadUrl", "https://oapi.dingtalk.com/connect/oauth2/sns_authorize?response_type=code&scope=snsapi_login&state=&appid={appid}&redirect_uri={redirect_uri}");
|
|
4059
|
+
P(this, "elId", "");
|
|
4060
|
+
P(this, "appid", "");
|
|
4061
|
+
P(this, "iframe", new HTMLIFrameElement());
|
|
4062
|
+
P(this, "redirectUri", "");
|
|
4063
|
+
P(this, "style", "");
|
|
4060
4064
|
}
|
|
4061
4065
|
flag() {
|
|
4062
|
-
const
|
|
4063
|
-
if (
|
|
4064
|
-
return
|
|
4066
|
+
const l = Yt("code");
|
|
4067
|
+
if (l)
|
|
4068
|
+
return l;
|
|
4065
4069
|
}
|
|
4066
4070
|
showQrCode() {
|
|
4067
|
-
const
|
|
4071
|
+
const l = (a) => {
|
|
4068
4072
|
const s = {
|
|
4069
4073
|
appid: this.appid,
|
|
4070
4074
|
redirect_uri: encodeURIComponent(this.redirectUri)
|
|
4071
4075
|
};
|
|
4072
|
-
return
|
|
4073
|
-
},
|
|
4074
|
-
const
|
|
4075
|
-
goto: encodeURIComponent(
|
|
4076
|
+
return W(this.reloadUrl, s) + "&" + tl(a || {});
|
|
4077
|
+
}, n = () => {
|
|
4078
|
+
const a = {
|
|
4079
|
+
goto: encodeURIComponent(l()),
|
|
4076
4080
|
style: encodeURIComponent(this.style)
|
|
4077
4081
|
};
|
|
4078
|
-
return
|
|
4079
|
-
},
|
|
4080
|
-
const { origin: s, data:
|
|
4081
|
-
s === "https://login.dingtalk.com" && (window.location.href =
|
|
4082
|
+
return W(this.qrCodeUrl, a);
|
|
4083
|
+
}, o = (a) => {
|
|
4084
|
+
const { origin: s, data: u } = a;
|
|
4085
|
+
s === "https://login.dingtalk.com" && (window.location.href = l({ loginTmpCode: u }));
|
|
4082
4086
|
};
|
|
4083
|
-
this.iframe.src =
|
|
4087
|
+
this.iframe.src = n(), el({ elId: this.elId, attrs: this.iframe }), typeof window.addEventListener < "u" ? window.addEventListener(
|
|
4084
4088
|
"message",
|
|
4085
|
-
(
|
|
4089
|
+
(a) => o(a),
|
|
4086
4090
|
!1
|
|
4087
|
-
) : typeof window.attachEvent < "u" && window.attachEvent("onmessage", (
|
|
4091
|
+
) : typeof window.attachEvent < "u" && window.attachEvent("onmessage", (a) => this.onScanSuccess(a));
|
|
4088
4092
|
}
|
|
4089
4093
|
}
|
|
4090
|
-
const
|
|
4091
|
-
dingtalk: (e) => new
|
|
4094
|
+
const Nn = {
|
|
4095
|
+
dingtalk: (e) => new jn(e)
|
|
4092
4096
|
};
|
|
4093
|
-
function
|
|
4094
|
-
return O(
|
|
4097
|
+
function Vn() {
|
|
4098
|
+
return O(S.state.settings.sso || {}, Nn);
|
|
4095
4099
|
}
|
|
4096
|
-
function
|
|
4097
|
-
const t =
|
|
4100
|
+
function qn(e) {
|
|
4101
|
+
const t = Vn(), l = S.state.settings.activeSsoKey || "", n = t[l];
|
|
4098
4102
|
if (n !== void 0)
|
|
4099
4103
|
return n(e);
|
|
4100
4104
|
}
|
|
4101
|
-
const
|
|
4105
|
+
const Un = { id: "login" }, Hn = /* @__PURE__ */ b("h1", { id: "title" }, "\u767B\u5F55", -1), Gn = { id: "form" }, Jn = { class: "tips" }, zn = { class: "sso" }, Kn = /* @__PURE__ */ b("div", { id: "sso-qrcode" }, null, -1), Wn = /* @__PURE__ */ V({
|
|
4102
4106
|
__name: "login",
|
|
4103
4107
|
setup(e) {
|
|
4104
|
-
const t =
|
|
4108
|
+
const t = ml(), l = ce(), n = N(() => S.state.settings.loginTips), o = L({
|
|
4105
4109
|
username: "",
|
|
4106
4110
|
password: ""
|
|
4107
|
-
}),
|
|
4111
|
+
}), a = () => {
|
|
4108
4112
|
if (o.value.username === "" || o.value.password === "") {
|
|
4109
|
-
|
|
4113
|
+
Jt.error("\u8BF7\u586B\u5199\u7528\u6237\u540D\u548C\u5BC6\u7801");
|
|
4110
4114
|
return;
|
|
4111
4115
|
}
|
|
4112
|
-
|
|
4113
|
-
var
|
|
4114
|
-
t.push({ path: ((
|
|
4116
|
+
S.dispatch("user/login", o.value).then((s) => {
|
|
4117
|
+
var u;
|
|
4118
|
+
t.push({ path: ((u = l.query) == null ? void 0 : u.redirect) || "/" });
|
|
4115
4119
|
});
|
|
4116
4120
|
};
|
|
4117
|
-
return
|
|
4118
|
-
|
|
4119
|
-
b("form",
|
|
4120
|
-
|
|
4121
|
-
"onUpdate:modelValue":
|
|
4121
|
+
return L(), (s, u) => (i(), f("div", Un, [
|
|
4122
|
+
Hn,
|
|
4123
|
+
b("form", Gn, [
|
|
4124
|
+
ye(b("input", {
|
|
4125
|
+
"onUpdate:modelValue": u[0] || (u[0] = (p) => w(o).username = p),
|
|
4122
4126
|
type: "text",
|
|
4123
4127
|
placeholder: "\u7528\u6237\u540D",
|
|
4124
4128
|
class: "input"
|
|
4125
4129
|
}, null, 512), [
|
|
4126
|
-
[
|
|
4130
|
+
[Me, w(o).username]
|
|
4127
4131
|
]),
|
|
4128
|
-
|
|
4129
|
-
"onUpdate:modelValue":
|
|
4132
|
+
ye(b("input", {
|
|
4133
|
+
"onUpdate:modelValue": u[1] || (u[1] = (p) => w(o).password = p),
|
|
4130
4134
|
type: "password",
|
|
4131
4135
|
placeholder: "\u5BC6\u7801",
|
|
4132
4136
|
class: "input"
|
|
4133
4137
|
}, null, 512), [
|
|
4134
|
-
[
|
|
4138
|
+
[Me, w(o).password]
|
|
4135
4139
|
]),
|
|
4136
4140
|
b("div", {
|
|
4137
4141
|
class: "input button",
|
|
4138
|
-
onClick:
|
|
4142
|
+
onClick: a
|
|
4139
4143
|
}, "\u767B\u5F55"),
|
|
4140
|
-
b("div",
|
|
4141
|
-
b("div", null,
|
|
4144
|
+
b("div", Jn, [
|
|
4145
|
+
b("div", null, I(w(n)), 1)
|
|
4142
4146
|
]),
|
|
4143
|
-
b("div",
|
|
4144
|
-
|
|
4145
|
-
(i(!0), f(k, null,
|
|
4147
|
+
b("div", zn, [
|
|
4148
|
+
Kn,
|
|
4149
|
+
(i(!0), f(k, null, A(Object.keys([]), (p) => (i(), f("div", { key: p }, I(p), 1))), 128))
|
|
4146
4150
|
])
|
|
4147
4151
|
])
|
|
4148
4152
|
]));
|
|
4149
4153
|
}
|
|
4150
4154
|
});
|
|
4151
|
-
const
|
|
4155
|
+
const Zn = {
|
|
4152
4156
|
name: "NotFoundPage"
|
|
4153
|
-
},
|
|
4157
|
+
}, mt = (e) => (ze("data-v-26068803"), e = e(), Ke(), e), Qn = { class: "not-found" }, Xn = /* @__PURE__ */ mt(() => /* @__PURE__ */ b("svg", {
|
|
4154
4158
|
width: "380px",
|
|
4155
4159
|
height: "500px",
|
|
4156
4160
|
viewBox: "0 0 837 1045",
|
|
@@ -4203,7 +4207,7 @@ const us = {
|
|
|
4203
4207
|
"sketch:type": "MSShapeGroup"
|
|
4204
4208
|
})
|
|
4205
4209
|
])
|
|
4206
|
-
], -1)),
|
|
4210
|
+
], -1)), Yn = /* @__PURE__ */ mt(() => /* @__PURE__ */ b("div", { class: "message-box" }, [
|
|
4207
4211
|
/* @__PURE__ */ b("h1", null, "404"),
|
|
4208
4212
|
/* @__PURE__ */ b("p", null, "Page not found"),
|
|
4209
4213
|
/* @__PURE__ */ b("div", { class: "buttons-con" }, [
|
|
@@ -4214,14 +4218,14 @@ const us = {
|
|
|
4214
4218
|
}, "Go to Home Page")
|
|
4215
4219
|
])
|
|
4216
4220
|
])
|
|
4217
|
-
], -1)),
|
|
4218
|
-
|
|
4219
|
-
|
|
4221
|
+
], -1)), ea = [
|
|
4222
|
+
Xn,
|
|
4223
|
+
Yn
|
|
4220
4224
|
];
|
|
4221
|
-
function
|
|
4222
|
-
return i(), f("div",
|
|
4225
|
+
function ta(e, t, l, n, o, a) {
|
|
4226
|
+
return i(), f("div", Qn, ea);
|
|
4223
4227
|
}
|
|
4224
|
-
const
|
|
4228
|
+
const la = /* @__PURE__ */ B(Zn, [["render", ta], ["__scopeId", "data-v-26068803"]]), oa = [
|
|
4225
4229
|
{
|
|
4226
4230
|
path: "/",
|
|
4227
4231
|
component: dt,
|
|
@@ -4234,79 +4238,79 @@ const hs = /* @__PURE__ */ C(us, [["render", fs], ["__scopeId", "data-v-26068803
|
|
|
4234
4238
|
{
|
|
4235
4239
|
path: "dashboard",
|
|
4236
4240
|
name: "Dashboard",
|
|
4237
|
-
component:
|
|
4241
|
+
component: Ql,
|
|
4238
4242
|
meta: { title: "Dashboard", icon: "el-icon-help", menuType: 2, keepAlive: !0 }
|
|
4239
4243
|
}
|
|
4240
4244
|
]
|
|
4241
4245
|
},
|
|
4242
4246
|
{
|
|
4243
4247
|
path: "/login",
|
|
4244
|
-
component:
|
|
4248
|
+
component: Wn,
|
|
4245
4249
|
meta: { title: "\u7528\u6237\u767B\u5F55", menuType: 0 },
|
|
4246
4250
|
hidden: !0
|
|
4247
4251
|
},
|
|
4248
4252
|
{
|
|
4249
4253
|
path: "/404",
|
|
4250
|
-
component:
|
|
4254
|
+
component: la,
|
|
4251
4255
|
meta: { menuType: 0 },
|
|
4252
4256
|
hidden: !0
|
|
4253
4257
|
}
|
|
4254
|
-
],
|
|
4255
|
-
history:
|
|
4256
|
-
routes:
|
|
4258
|
+
], le = fl({
|
|
4259
|
+
history: hl(),
|
|
4260
|
+
routes: oa
|
|
4257
4261
|
});
|
|
4258
|
-
|
|
4259
|
-
function
|
|
4262
|
+
ge.configure({ showSpinner: !1 });
|
|
4263
|
+
function na(e) {
|
|
4260
4264
|
e.beforeEach((t, l, n) => {
|
|
4261
|
-
|
|
4265
|
+
ge.start(), t.preHash = location.hash.replace("#", ""), n();
|
|
4262
4266
|
}), e.afterEach((t) => {
|
|
4263
|
-
t.matched.length > 0 &&
|
|
4267
|
+
t.matched.length > 0 && S.commit("user/updateState", {
|
|
4264
4268
|
key: "path",
|
|
4265
4269
|
value: t.matched[t.matched.length - 1].path.replace("(\\d+)", "")
|
|
4266
|
-
}),
|
|
4270
|
+
}), ge.done();
|
|
4267
4271
|
});
|
|
4268
4272
|
}
|
|
4269
|
-
function
|
|
4270
|
-
return
|
|
4273
|
+
function aa() {
|
|
4274
|
+
return S.state.user.isLodeRemoteRoutes;
|
|
4271
4275
|
}
|
|
4272
|
-
function
|
|
4273
|
-
return
|
|
4276
|
+
function ft() {
|
|
4277
|
+
return S.state.settings.whiteRoutes || [];
|
|
4274
4278
|
}
|
|
4275
|
-
function
|
|
4276
|
-
return
|
|
4279
|
+
function sa() {
|
|
4280
|
+
return S.state.user.token;
|
|
4277
4281
|
}
|
|
4278
|
-
function
|
|
4282
|
+
function ia(e) {
|
|
4279
4283
|
e.beforeEach(async (t, l, n) => {
|
|
4280
|
-
var
|
|
4281
|
-
if (
|
|
4284
|
+
var p, d;
|
|
4285
|
+
if (ft().indexOf(t.path) !== -1) {
|
|
4282
4286
|
n();
|
|
4283
4287
|
return;
|
|
4284
4288
|
}
|
|
4285
|
-
if (
|
|
4286
|
-
(
|
|
4289
|
+
if (sa()) {
|
|
4290
|
+
(p = t.query) != null && p.redirect ? n((d = t.query) == null ? void 0 : d.redirect) : n();
|
|
4287
4291
|
return;
|
|
4288
4292
|
}
|
|
4289
|
-
const
|
|
4290
|
-
if (!
|
|
4291
|
-
n(`/login?redirect=${
|
|
4293
|
+
const a = t.query.redirect || t.path, s = qn({});
|
|
4294
|
+
if (!s) {
|
|
4295
|
+
n(`/login?redirect=${a}`);
|
|
4292
4296
|
return;
|
|
4293
4297
|
}
|
|
4294
|
-
const
|
|
4295
|
-
if (
|
|
4298
|
+
const u = s.flag();
|
|
4299
|
+
if (u && await S.dispatch("user/login", { ticket: u })) {
|
|
4296
4300
|
n();
|
|
4297
4301
|
return;
|
|
4298
4302
|
}
|
|
4299
|
-
|
|
4303
|
+
s.jumpToLoginPage(n, `/login?redirect=${a}`);
|
|
4300
4304
|
});
|
|
4301
4305
|
}
|
|
4302
|
-
const
|
|
4303
|
-
|
|
4306
|
+
const ra = {}, ua = { class: "loading preloader" }, ca = /* @__PURE__ */ b("div", { class: "preloader-inner" }, null, -1), pa = [
|
|
4307
|
+
ca
|
|
4304
4308
|
];
|
|
4305
|
-
function
|
|
4306
|
-
return i(), f("div",
|
|
4309
|
+
function da(e, t) {
|
|
4310
|
+
return i(), f("div", ua, pa);
|
|
4307
4311
|
}
|
|
4308
|
-
const
|
|
4309
|
-
components: { VLoading:
|
|
4312
|
+
const ht = /* @__PURE__ */ B(ra, [["render", da]]), ma = V({
|
|
4313
|
+
components: { VLoading: ht },
|
|
4310
4314
|
props: {
|
|
4311
4315
|
schemaHandler: {
|
|
4312
4316
|
type: Function,
|
|
@@ -4340,17 +4344,17 @@ const ft = /* @__PURE__ */ C(ks, [["render", Cs]]), Bs = N({
|
|
|
4340
4344
|
beforeCreate() {
|
|
4341
4345
|
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 };
|
|
4342
4346
|
this.$http.get(this.$props.schemaApi || l, n).then(({ data: o }) => {
|
|
4343
|
-
this.loading = !1, o.notice !== void 0 && (this.haveNotice = !0,
|
|
4347
|
+
this.loading = !1, o.notice !== void 0 && (this.haveNotice = !0, Ie(o.notice) ? this.notice = {
|
|
4344
4348
|
title: o.notice
|
|
4345
|
-
} :
|
|
4349
|
+
} : Ae(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 });
|
|
4346
4350
|
});
|
|
4347
4351
|
}
|
|
4348
4352
|
});
|
|
4349
|
-
const
|
|
4350
|
-
function
|
|
4351
|
-
const
|
|
4353
|
+
const fa = ["innerHTML"];
|
|
4354
|
+
function ha(e, t, l, n, o, a) {
|
|
4355
|
+
const s = ve, u = ve, p = ht;
|
|
4352
4356
|
return i(), f(k, null, [
|
|
4353
|
-
e.owners.length > 0 ? (i(), m(
|
|
4357
|
+
e.owners.length > 0 ? (i(), m(s, {
|
|
4354
4358
|
key: 0,
|
|
4355
4359
|
title: `\u8BE5\u9875\u9762\u529F\u80FD\u5BF9\u5E94\u5F00\u53D1: [ ${e.owners.join(", ")} ] \u6709\u95EE\u9898\u53EF\u76F4\u63A5\u4F01\u5FAE\u53CD\u9988`,
|
|
4356
4360
|
type: "info",
|
|
@@ -4361,46 +4365,46 @@ function $s(e, t, l, n, o, s) {
|
|
|
4361
4365
|
key: 1,
|
|
4362
4366
|
class: "offline-notice",
|
|
4363
4367
|
innerHTML: e.serviceOffLine === !0 ? e.setting.serviceOffLineNotice : e.serviceOffLine
|
|
4364
|
-
}, null, 8,
|
|
4365
|
-
e.haveNotice ? (i(), m(
|
|
4366
|
-
e.loading ? (i(), m(
|
|
4368
|
+
}, null, 8, fa)) : (i(), f(k, { key: 2 }, [
|
|
4369
|
+
e.haveNotice ? (i(), m(u, U({ key: 0 }, e.notice, { style: { margin: "0 0 20px 0" } }), null, 16)) : E("", !0),
|
|
4370
|
+
e.loading ? (i(), m(p, { key: 1 })) : ee(e.$slots, "default", z(U({ key: 2 }, e.schema)), void 0, !0)
|
|
4367
4371
|
], 64))
|
|
4368
4372
|
], 64);
|
|
4369
4373
|
}
|
|
4370
|
-
const de = /* @__PURE__ */
|
|
4374
|
+
const de = /* @__PURE__ */ B(ma, [["render", ha], ["__scopeId", "data-v-2ad53b38"]]), bt = {
|
|
4371
4375
|
__name: "table",
|
|
4372
4376
|
setup(e) {
|
|
4373
4377
|
const t = (l, n) => {
|
|
4374
4378
|
if (l.orderBy) {
|
|
4375
|
-
const
|
|
4379
|
+
const a = {
|
|
4376
4380
|
prop: l.orderBy.field,
|
|
4377
4381
|
order: l.orderBy.mod === "desc" ? "descending" : "ascending"
|
|
4378
4382
|
};
|
|
4379
|
-
l.tableProps = O(l.tableProps, { defaultSort:
|
|
4383
|
+
l.tableProps = O(l.tableProps, { defaultSort: a });
|
|
4380
4384
|
}
|
|
4381
|
-
const o = Object.keys(
|
|
4382
|
-
return Object.keys(l).forEach((
|
|
4383
|
-
o.indexOf(
|
|
4385
|
+
const o = Object.keys(re.props);
|
|
4386
|
+
return Object.keys(l).forEach((a) => {
|
|
4387
|
+
o.indexOf(a) === -1 && delete l[a];
|
|
4384
4388
|
}), l.listApi === void 0 && (l.listApi = `/${n}/list`), l;
|
|
4385
4389
|
};
|
|
4386
4390
|
return (l, n) => (i(), m(de, { "schema-handler": t }, {
|
|
4387
4391
|
default: r((o) => [
|
|
4388
|
-
|
|
4392
|
+
c(w(re), z(Q(o)), null, 16)
|
|
4389
4393
|
]),
|
|
4390
4394
|
_: 1
|
|
4391
4395
|
}));
|
|
4392
4396
|
}
|
|
4393
|
-
},
|
|
4397
|
+
}, we = {
|
|
4394
4398
|
__name: "form",
|
|
4395
4399
|
setup(e) {
|
|
4396
|
-
const t =
|
|
4397
|
-
const
|
|
4398
|
-
return Object.keys(n).forEach((
|
|
4399
|
-
if (
|
|
4400
|
-
delete n[
|
|
4400
|
+
const t = ce(), l = (n, o) => {
|
|
4401
|
+
const a = Object.keys(Z.props);
|
|
4402
|
+
return Object.keys(n).forEach((s) => {
|
|
4403
|
+
if (a.indexOf(s) === -1) {
|
|
4404
|
+
delete n[s];
|
|
4401
4405
|
return;
|
|
4402
4406
|
}
|
|
4403
|
-
/.*Api$/.test(
|
|
4407
|
+
/.*Api$/.test(s) && (n[s] = W(n[s], t.params));
|
|
4404
4408
|
}), n.saveApi === void 0 && (t.params.id !== void 0 ? (n.saveApi = `/${o}/update/${t.params.id}`, n.getApi || (n.getApi = `/${o}/get/${t.params.id}`)) : (delete n.getApi, n.saveApi = `/${o}/create`)), n = O({
|
|
4405
4409
|
saveApi: o + "/save",
|
|
4406
4410
|
afterSubmit: "goback",
|
|
@@ -4409,16 +4413,16 @@ const de = /* @__PURE__ */ C(Bs, [["render", $s], ["__scopeId", "data-v-2ad53b38
|
|
|
4409
4413
|
}, n), n;
|
|
4410
4414
|
};
|
|
4411
4415
|
return (n, o) => (i(), m(de, { "schema-handler": l }, {
|
|
4412
|
-
default: r((
|
|
4413
|
-
|
|
4416
|
+
default: r((a) => [
|
|
4417
|
+
c(w(Z), z(Q(a)), null, 16)
|
|
4414
4418
|
]),
|
|
4415
4419
|
_: 1
|
|
4416
4420
|
}));
|
|
4417
4421
|
}
|
|
4418
|
-
},
|
|
4422
|
+
}, ba = V({
|
|
4419
4423
|
name: "VTree",
|
|
4420
4424
|
components: {
|
|
4421
|
-
VForm:
|
|
4425
|
+
VForm: Z
|
|
4422
4426
|
},
|
|
4423
4427
|
props: {
|
|
4424
4428
|
treeApi: {
|
|
@@ -4488,7 +4492,7 @@ const de = /* @__PURE__ */ C(Bs, [["render", $s], ["__scopeId", "data-v-2ad53b38
|
|
|
4488
4492
|
return ["", "\u65B0\u5EFA", "\u7F16\u8F91"][this.type];
|
|
4489
4493
|
},
|
|
4490
4494
|
formProps() {
|
|
4491
|
-
let e =
|
|
4495
|
+
let e = W(this.$props.saveApi, this.formData);
|
|
4492
4496
|
return this.type === 1 && (e = this.$props.createApi), {
|
|
4493
4497
|
saveApi: e,
|
|
4494
4498
|
getApi: this.$props.getApi,
|
|
@@ -4512,9 +4516,9 @@ const de = /* @__PURE__ */ C(Bs, [["render", $s], ["__scopeId", "data-v-2ad53b38
|
|
|
4512
4516
|
this.type = 2, this.formData = e, this.formkey++;
|
|
4513
4517
|
},
|
|
4514
4518
|
append(e, t) {
|
|
4515
|
-
var n, o,
|
|
4519
|
+
var n, o, a;
|
|
4516
4520
|
this.type = 1;
|
|
4517
|
-
const l = { pid: e.id, [(o = (n = this.$props.props) == null ? void 0 : n.levelKey) != null ? o : "level"]: t.level + 1, ...
|
|
4521
|
+
const l = { pid: e.id, [(o = (n = this.$props.props) == null ? void 0 : n.levelKey) != null ? o : "level"]: t.level + 1, ...ll((a = this.$props.props) == null ? void 0 : a.effectData, e) };
|
|
4518
4522
|
console.log(111, l), e.children || (e.children = []), this.formData = l, this.formkey++, e.children.push(l), this.treeData = [...this.treeData];
|
|
4519
4523
|
},
|
|
4520
4524
|
canAppend(e, t) {
|
|
@@ -4529,7 +4533,7 @@ const de = /* @__PURE__ */ C(Bs, [["render", $s], ["__scopeId", "data-v-2ad53b38
|
|
|
4529
4533
|
remove(e) {
|
|
4530
4534
|
this.$http.request({
|
|
4531
4535
|
method: "DELETE",
|
|
4532
|
-
url:
|
|
4536
|
+
url: W(this.$props.deleteApi, e)
|
|
4533
4537
|
}).then(({ code: t }) => {
|
|
4534
4538
|
t !== 0 ? this.$message.error("\u64CD\u4F5C\u5931\u8D25") : this.loadTree();
|
|
4535
4539
|
});
|
|
@@ -4549,47 +4553,47 @@ const de = /* @__PURE__ */ C(Bs, [["render", $s], ["__scopeId", "data-v-2ad53b38
|
|
|
4549
4553
|
const o = e.data;
|
|
4550
4554
|
o.pid = t.data.id, this.$http.request({
|
|
4551
4555
|
method: "POST",
|
|
4552
|
-
url:
|
|
4556
|
+
url: W(this.$props.saveApi, o),
|
|
4553
4557
|
data: o
|
|
4554
|
-
}).then(({ code:
|
|
4555
|
-
|
|
4558
|
+
}).then(({ code: a }) => {
|
|
4559
|
+
a !== 0 && this.$message.error("\u64CD\u4F5C\u5931\u8D25");
|
|
4556
4560
|
});
|
|
4557
4561
|
}
|
|
4558
4562
|
}
|
|
4559
4563
|
});
|
|
4560
|
-
const
|
|
4564
|
+
const _a = { class: "card-header" }, ya = /* @__PURE__ */ b("span", null, "\u5217\u8868", -1), va = { class: "tree-action" }, ga = { key: 0 }, ka = {
|
|
4561
4565
|
key: 1,
|
|
4562
4566
|
style: { color: "#E6A23C" }
|
|
4563
|
-
},
|
|
4564
|
-
function
|
|
4565
|
-
const l =
|
|
4566
|
-
return i(), m(
|
|
4567
|
+
}, Ea = { class: "card-header" };
|
|
4568
|
+
function wa(e, t) {
|
|
4569
|
+
const l = ie, n = zt, o = Be, a = ue, s = v("v-form"), u = oe;
|
|
4570
|
+
return i(), m(u, {
|
|
4567
4571
|
class: "tree-box",
|
|
4568
4572
|
gutter: 20
|
|
4569
4573
|
}, {
|
|
4570
4574
|
default: r(() => [
|
|
4571
|
-
|
|
4575
|
+
c(a, {
|
|
4572
4576
|
span: 8,
|
|
4573
4577
|
class: "tree-tree"
|
|
4574
4578
|
}, {
|
|
4575
4579
|
default: r(() => [
|
|
4576
|
-
|
|
4580
|
+
c(o, { shadow: "never" }, {
|
|
4577
4581
|
header: r(() => [
|
|
4578
|
-
b("div",
|
|
4579
|
-
|
|
4580
|
-
|
|
4582
|
+
b("div", _a, [
|
|
4583
|
+
ya,
|
|
4584
|
+
c(l, {
|
|
4581
4585
|
type: "text",
|
|
4582
4586
|
onClick: t[0] || (t[0] = () => e.appendNew())
|
|
4583
4587
|
}, {
|
|
4584
4588
|
default: r(() => [
|
|
4585
|
-
|
|
4589
|
+
g("\u6DFB\u52A0")
|
|
4586
4590
|
]),
|
|
4587
4591
|
_: 1
|
|
4588
4592
|
})
|
|
4589
4593
|
])
|
|
4590
4594
|
]),
|
|
4591
4595
|
default: r(() => [
|
|
4592
|
-
(e.treeData || []).length > 0 ? (i(), m(n,
|
|
4596
|
+
(e.treeData || []).length > 0 ? (i(), m(n, U({
|
|
4593
4597
|
key: 0,
|
|
4594
4598
|
style: { height: "100vh" },
|
|
4595
4599
|
data: e.treeData,
|
|
@@ -4600,40 +4604,40 @@ function Ns(e, t) {
|
|
|
4600
4604
|
"allow-drop": e.allowDrop,
|
|
4601
4605
|
onNodeDragEnd: e.handleDragEnd
|
|
4602
4606
|
}), {
|
|
4603
|
-
default: r(({ node:
|
|
4604
|
-
b("span",
|
|
4605
|
-
|
|
4607
|
+
default: r(({ node: p, data: d }) => [
|
|
4608
|
+
b("span", va, [
|
|
4609
|
+
d[e.localTreeProps.props.label] ? (i(), f("span", ga, I(d[e.localTreeProps.props.label]), 1)) : (i(), f("span", ka, "\u8BF7\u5728\u53F3\u4FA7\u8868\u5355\u4E2D\u4FEE\u6539 --> ")),
|
|
4606
4610
|
b("span", null, [
|
|
4607
|
-
|
|
4611
|
+
d[e.localTreeProps.props.label] ? (i(), m(l, {
|
|
4608
4612
|
key: 0,
|
|
4609
4613
|
class: "button",
|
|
4610
4614
|
type: "text",
|
|
4611
|
-
onClick: () => e.onclick(
|
|
4615
|
+
onClick: () => e.onclick(d)
|
|
4612
4616
|
}, {
|
|
4613
4617
|
default: r(() => [
|
|
4614
|
-
|
|
4618
|
+
g("\u7F16\u8F91")
|
|
4615
4619
|
]),
|
|
4616
4620
|
_: 2
|
|
4617
4621
|
}, 1032, ["onClick"])) : E("", !0),
|
|
4618
|
-
e.canAppend(
|
|
4622
|
+
e.canAppend(d, p) ? (i(), m(l, {
|
|
4619
4623
|
key: 1,
|
|
4620
4624
|
class: "button",
|
|
4621
4625
|
type: "text",
|
|
4622
|
-
onClick: () => e.append(
|
|
4626
|
+
onClick: () => e.append(d, p)
|
|
4623
4627
|
}, {
|
|
4624
4628
|
default: r(() => [
|
|
4625
|
-
|
|
4629
|
+
g("\u6DFB\u52A0")
|
|
4626
4630
|
]),
|
|
4627
4631
|
_: 2
|
|
4628
4632
|
}, 1032, ["onClick"])) : E("", !0),
|
|
4629
|
-
|
|
4633
|
+
d.children === void 0 || d.children.length === 0 ? (i(), m(l, {
|
|
4630
4634
|
key: 2,
|
|
4631
4635
|
class: "button",
|
|
4632
4636
|
type: "text",
|
|
4633
|
-
onClick: () => e.remove(
|
|
4637
|
+
onClick: () => e.remove(d)
|
|
4634
4638
|
}, {
|
|
4635
4639
|
default: r(() => [
|
|
4636
|
-
|
|
4640
|
+
g("\u5220\u9664")
|
|
4637
4641
|
]),
|
|
4638
4642
|
_: 2
|
|
4639
4643
|
}, 1032, ["onClick"])) : E("", !0)
|
|
@@ -4648,7 +4652,7 @@ function Ns(e, t) {
|
|
|
4648
4652
|
]),
|
|
4649
4653
|
_: 1
|
|
4650
4654
|
}),
|
|
4651
|
-
|
|
4655
|
+
c(a, {
|
|
4652
4656
|
span: 16,
|
|
4653
4657
|
class: "tree-form"
|
|
4654
4658
|
}, {
|
|
@@ -4658,15 +4662,15 @@ function Ns(e, t) {
|
|
|
4658
4662
|
shadow: "never"
|
|
4659
4663
|
}, {
|
|
4660
4664
|
header: r(() => [
|
|
4661
|
-
b("div",
|
|
4662
|
-
b("span", null,
|
|
4665
|
+
b("div", Ea, [
|
|
4666
|
+
b("span", null, I(e.formType), 1)
|
|
4663
4667
|
])
|
|
4664
4668
|
]),
|
|
4665
4669
|
default: r(() => [
|
|
4666
|
-
(i(), m(
|
|
4670
|
+
(i(), m(s, U({
|
|
4667
4671
|
key: e.formkey,
|
|
4668
4672
|
modelValue: e.formData,
|
|
4669
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
4673
|
+
"onUpdate:modelValue": t[1] || (t[1] = (p) => e.formData = p)
|
|
4670
4674
|
}, e.formProps, { onSubmit: e.submit }), null, 16, ["modelValue", "onSubmit"]))
|
|
4671
4675
|
]),
|
|
4672
4676
|
_: 1
|
|
@@ -4678,34 +4682,34 @@ function Ns(e, t) {
|
|
|
4678
4682
|
_: 1
|
|
4679
4683
|
});
|
|
4680
4684
|
}
|
|
4681
|
-
const
|
|
4685
|
+
const He = /* @__PURE__ */ B(ba, [["render", wa]]), Sa = {
|
|
4682
4686
|
__name: "tree",
|
|
4683
4687
|
setup(e) {
|
|
4684
4688
|
const t = (l, n) => {
|
|
4685
|
-
const o = Object.keys(
|
|
4686
|
-
return Object.keys(l).forEach((
|
|
4687
|
-
o.indexOf(
|
|
4689
|
+
const o = Object.keys(He.props);
|
|
4690
|
+
return Object.keys(l).forEach((a) => {
|
|
4691
|
+
o.indexOf(a) === -1 && delete l[a];
|
|
4688
4692
|
}), l;
|
|
4689
4693
|
};
|
|
4690
4694
|
return (l, n) => (i(), m(de, { "schema-handler": t }, {
|
|
4691
4695
|
default: r((o) => [
|
|
4692
|
-
|
|
4696
|
+
c(He, z(Q(o)), null, 16)
|
|
4693
4697
|
]),
|
|
4694
4698
|
_: 1
|
|
4695
4699
|
}));
|
|
4696
4700
|
}
|
|
4697
|
-
},
|
|
4701
|
+
}, ne = {
|
|
4698
4702
|
__name: "container",
|
|
4699
4703
|
setup(e) {
|
|
4700
|
-
const t =
|
|
4701
|
-
return
|
|
4704
|
+
const t = L(0);
|
|
4705
|
+
return bl(() => {
|
|
4702
4706
|
t.value++;
|
|
4703
4707
|
}), (l, n) => {
|
|
4704
4708
|
const o = v("router-view");
|
|
4705
4709
|
return i(), m(o);
|
|
4706
4710
|
};
|
|
4707
4711
|
}
|
|
4708
|
-
},
|
|
4712
|
+
}, Ca = {
|
|
4709
4713
|
title: {
|
|
4710
4714
|
text: ""
|
|
4711
4715
|
},
|
|
@@ -4734,34 +4738,34 @@ const Ue = /* @__PURE__ */ C(Is, [["render", Ns]]), Vs = {
|
|
|
4734
4738
|
},
|
|
4735
4739
|
series: []
|
|
4736
4740
|
};
|
|
4737
|
-
function
|
|
4741
|
+
function Ba(e, t, l) {
|
|
4738
4742
|
if (l.length === 0)
|
|
4739
4743
|
return {};
|
|
4740
|
-
let n = O({},
|
|
4741
|
-
if (n.title.text = e,
|
|
4742
|
-
const o = [],
|
|
4743
|
-
let
|
|
4744
|
+
let n = O({}, Ca);
|
|
4745
|
+
if (n.title.text = e, Ie(t)) {
|
|
4746
|
+
const o = [], a = Object.keys(l[0]);
|
|
4747
|
+
let s = a[0], u = a.filter((d, h) => h > 0), p = t;
|
|
4744
4748
|
if (t.indexOf(":") > -1) {
|
|
4745
|
-
const
|
|
4746
|
-
|
|
4749
|
+
const d = t.split(":"), h = d[1].split(",");
|
|
4750
|
+
p = d[0], s = h[0], u = h.filter((_, T) => T > 0);
|
|
4747
4751
|
}
|
|
4748
|
-
|
|
4752
|
+
u.forEach((d) => {
|
|
4749
4753
|
const h = [];
|
|
4750
4754
|
l.forEach((_) => {
|
|
4751
|
-
h.push(_[
|
|
4755
|
+
h.push(_[d]);
|
|
4752
4756
|
}), n.series.push({
|
|
4753
|
-
name:
|
|
4754
|
-
type:
|
|
4757
|
+
name: d,
|
|
4758
|
+
type: p,
|
|
4755
4759
|
smooth: !0,
|
|
4756
4760
|
data: h
|
|
4757
|
-
}), n.legend.data.push(
|
|
4758
|
-
}), l.forEach((
|
|
4759
|
-
o.push(
|
|
4761
|
+
}), n.legend.data.push(d);
|
|
4762
|
+
}), l.forEach((d) => {
|
|
4763
|
+
o.push(d[s]);
|
|
4760
4764
|
}), n.xAxis.data = o;
|
|
4761
4765
|
}
|
|
4762
|
-
return
|
|
4766
|
+
return Ae(t) && (n = O(n, t)), console.log(111, n), n;
|
|
4763
4767
|
}
|
|
4764
|
-
const
|
|
4768
|
+
const xa = V({
|
|
4765
4769
|
name: "NumberPanel",
|
|
4766
4770
|
props: {
|
|
4767
4771
|
dataList: {
|
|
@@ -4772,27 +4776,27 @@ const Hs = N({
|
|
|
4772
4776
|
data() {
|
|
4773
4777
|
return {};
|
|
4774
4778
|
}
|
|
4775
|
-
}),
|
|
4776
|
-
function
|
|
4777
|
-
return i(!0), f(k, null,
|
|
4778
|
-
b("div",
|
|
4779
|
-
(i(!0), f(k, null,
|
|
4780
|
-
key:
|
|
4779
|
+
}), Ia = { class: "number-panel-title" }, Aa = { class: "number" }, $a = { class: "name" };
|
|
4780
|
+
function Ta(e, t, l, n, o, a) {
|
|
4781
|
+
return i(!0), f(k, null, A(e.dataList, (s, u) => (i(), f("span", { key: u }, [
|
|
4782
|
+
b("div", Ia, [
|
|
4783
|
+
(i(!0), f(k, null, A(Object.keys(s), (p, d) => (i(), f("div", {
|
|
4784
|
+
key: d,
|
|
4781
4785
|
class: "title-inner"
|
|
4782
4786
|
}, [
|
|
4783
|
-
b("p",
|
|
4784
|
-
b("p",
|
|
4787
|
+
b("p", Aa, I(s[p]), 1),
|
|
4788
|
+
b("p", $a, I(p), 1)
|
|
4785
4789
|
]))), 128))
|
|
4786
4790
|
])
|
|
4787
4791
|
]))), 128);
|
|
4788
4792
|
}
|
|
4789
|
-
const
|
|
4793
|
+
const Fa = /* @__PURE__ */ B(xa, [["render", Ta], ["__scopeId", "data-v-cc0d8293"]]), Da = {
|
|
4790
4794
|
components: {
|
|
4791
|
-
Chart:
|
|
4792
|
-
Md:
|
|
4793
|
-
Json:
|
|
4794
|
-
Table:
|
|
4795
|
-
Number:
|
|
4795
|
+
Chart: ul,
|
|
4796
|
+
Md: gl,
|
|
4797
|
+
Json: De,
|
|
4798
|
+
Table: re,
|
|
4799
|
+
Number: Fa,
|
|
4796
4800
|
Html: ""
|
|
4797
4801
|
},
|
|
4798
4802
|
props: {
|
|
@@ -4813,20 +4817,20 @@ const Ws = /* @__PURE__ */ C(Hs, [["render", Ks], ["__scopeId", "data-v-cc0d8293
|
|
|
4813
4817
|
};
|
|
4814
4818
|
if (o === "chart")
|
|
4815
4819
|
return {
|
|
4816
|
-
options:
|
|
4820
|
+
options: Ba(n.id, n.chart, n.data)
|
|
4817
4821
|
};
|
|
4818
4822
|
if (o === "md")
|
|
4819
4823
|
return {
|
|
4820
4824
|
source: n.data
|
|
4821
4825
|
};
|
|
4822
4826
|
if (o === "table") {
|
|
4823
|
-
if (!
|
|
4827
|
+
if (!ol(n.data))
|
|
4824
4828
|
return { showPagination: !1 };
|
|
4825
|
-
const
|
|
4826
|
-
return n.data[0] && Object.keys(n.data[0]).forEach((
|
|
4827
|
-
|
|
4829
|
+
const a = [];
|
|
4830
|
+
return n.data[0] && Object.keys(n.data[0]).forEach((s, u) => {
|
|
4831
|
+
a.push({ field: s, label: s });
|
|
4828
4832
|
}), {
|
|
4829
|
-
headers:
|
|
4833
|
+
headers: a,
|
|
4830
4834
|
list: n.data,
|
|
4831
4835
|
showPagination: !1
|
|
4832
4836
|
};
|
|
@@ -4837,21 +4841,21 @@ const Ws = /* @__PURE__ */ C(Hs, [["render", Ks], ["__scopeId", "data-v-cc0d8293
|
|
|
4837
4841
|
};
|
|
4838
4842
|
}
|
|
4839
4843
|
};
|
|
4840
|
-
function
|
|
4841
|
-
const
|
|
4842
|
-
return
|
|
4844
|
+
function Oa(e, t, l, n, o, a) {
|
|
4845
|
+
const s = Be, u = xt("resize");
|
|
4846
|
+
return ye((i(), m(s, {
|
|
4843
4847
|
shadow: "never",
|
|
4844
4848
|
class: "part"
|
|
4845
4849
|
}, {
|
|
4846
4850
|
default: r(() => [
|
|
4847
|
-
(i(), m(
|
|
4851
|
+
(i(), m(We(n.comptype()), z(Q(n.compprops(l.option))), null, 16))
|
|
4848
4852
|
]),
|
|
4849
4853
|
_: 1
|
|
4850
4854
|
})), [
|
|
4851
|
-
[
|
|
4855
|
+
[u, !0]
|
|
4852
4856
|
]);
|
|
4853
4857
|
}
|
|
4854
|
-
const
|
|
4858
|
+
const Pa = /* @__PURE__ */ B(Da, [["render", Oa], ["__scopeId", "data-v-a5a65cc1"]]), Ra = /* @__PURE__ */ V({
|
|
4855
4859
|
__name: "index",
|
|
4856
4860
|
props: {
|
|
4857
4861
|
filter: {
|
|
@@ -4865,10 +4869,10 @@ const Xs = /* @__PURE__ */ C(Zs, [["render", Qs], ["__scopeId", "data-v-a5a65cc1
|
|
|
4865
4869
|
},
|
|
4866
4870
|
setup(e) {
|
|
4867
4871
|
const t = e, l = useRoute();
|
|
4868
|
-
|
|
4872
|
+
It(() => {
|
|
4869
4873
|
});
|
|
4870
|
-
const n =
|
|
4871
|
-
|
|
4874
|
+
const n = L({});
|
|
4875
|
+
Je(() => {
|
|
4872
4876
|
var h;
|
|
4873
4877
|
(h = t.filter) == null || h.forEach((_) => {
|
|
4874
4878
|
_.default !== null && (n.value[_.field] = _.default);
|
|
@@ -4884,38 +4888,38 @@ const Xs = /* @__PURE__ */ C(Zs, [["render", Qs], ["__scopeId", "data-v-a5a65cc1
|
|
|
4884
4888
|
cancelButton: {
|
|
4885
4889
|
text: "\u91CD\u7F6E"
|
|
4886
4890
|
}
|
|
4887
|
-
},
|
|
4891
|
+
}, a = L(1), s = L(t.filter), u = L(t.dataPart), p = N(() => {
|
|
4888
4892
|
let h = l.params.id;
|
|
4889
4893
|
if (!h) {
|
|
4890
4894
|
const _ = l.path.split("/");
|
|
4891
4895
|
h = _[_.length - 1];
|
|
4892
4896
|
}
|
|
4893
4897
|
return "/focusbi_report/view/" + h;
|
|
4894
|
-
}),
|
|
4895
|
-
|
|
4896
|
-
|
|
4898
|
+
}), d = (h) => {
|
|
4899
|
+
Kl.get(p.value, { params: h }).then(({ data: _ }) => {
|
|
4900
|
+
s.value = _.filter, u.value = _.dataPart, a.value++;
|
|
4897
4901
|
});
|
|
4898
4902
|
};
|
|
4899
4903
|
return (h, _) => {
|
|
4900
|
-
const
|
|
4901
|
-
return i(), m(
|
|
4904
|
+
const T = Be, $ = ue, H = ve, q = oe;
|
|
4905
|
+
return i(), m(q, null, {
|
|
4902
4906
|
default: r(() => [
|
|
4903
|
-
|
|
4907
|
+
w(s).length > 0 ? (i(), m($, {
|
|
4904
4908
|
key: 0,
|
|
4905
4909
|
span: 24
|
|
4906
4910
|
}, {
|
|
4907
4911
|
default: r(() => [
|
|
4908
|
-
|
|
4912
|
+
c(T, {
|
|
4909
4913
|
shadow: "never",
|
|
4910
4914
|
class: "part-filter"
|
|
4911
4915
|
}, {
|
|
4912
4916
|
default: r(() => [
|
|
4913
|
-
|
|
4914
|
-
modelValue: n
|
|
4915
|
-
"onUpdate:modelValue": _[0] || (_[0] = (
|
|
4916
|
-
"form-items":
|
|
4917
|
+
c(w(Z), {
|
|
4918
|
+
modelValue: w(n),
|
|
4919
|
+
"onUpdate:modelValue": _[0] || (_[0] = (x) => At(n) ? n.value = x : null),
|
|
4920
|
+
"form-items": w(s),
|
|
4917
4921
|
options: o,
|
|
4918
|
-
onSubmit:
|
|
4922
|
+
onSubmit: d
|
|
4919
4923
|
}, null, 8, ["modelValue", "form-items"])
|
|
4920
4924
|
]),
|
|
4921
4925
|
_: 1
|
|
@@ -4923,27 +4927,27 @@ const Xs = /* @__PURE__ */ C(Zs, [["render", Qs], ["__scopeId", "data-v-a5a65cc1
|
|
|
4923
4927
|
]),
|
|
4924
4928
|
_: 1
|
|
4925
4929
|
})) : E("", !0),
|
|
4926
|
-
|
|
4930
|
+
c($, { span: 24 }, {
|
|
4927
4931
|
default: r(() => [
|
|
4928
|
-
|
|
4932
|
+
c(q, { gutter: 20 }, {
|
|
4929
4933
|
default: r(() => [
|
|
4930
|
-
(i(!0), f(k, null,
|
|
4931
|
-
key:
|
|
4932
|
-
span:
|
|
4934
|
+
(i(!0), f(k, null, A(w(u), (x, K) => (i(), m($, {
|
|
4935
|
+
key: K,
|
|
4936
|
+
span: x.col || 24
|
|
4933
4937
|
}, {
|
|
4934
4938
|
default: r(() => [
|
|
4935
|
-
|
|
4939
|
+
x.errMsg ? (i(), m(H, {
|
|
4936
4940
|
key: 1,
|
|
4937
|
-
title:
|
|
4941
|
+
title: x.id + " \u7247\u6BB5\u6267\u884C\u51FA\u9519",
|
|
4938
4942
|
type: "error"
|
|
4939
4943
|
}, {
|
|
4940
4944
|
default: r(() => [
|
|
4941
|
-
g(x
|
|
4945
|
+
g(I(x.errMsg), 1)
|
|
4942
4946
|
]),
|
|
4943
4947
|
_: 2
|
|
4944
|
-
}, 1032, ["title"])) : (i(), m(
|
|
4945
|
-
key:
|
|
4946
|
-
option:
|
|
4948
|
+
}, 1032, ["title"])) : (i(), m(Pa, {
|
|
4949
|
+
key: w(a),
|
|
4950
|
+
option: x
|
|
4947
4951
|
}, null, 8, ["option"]))
|
|
4948
4952
|
]),
|
|
4949
4953
|
_: 2
|
|
@@ -4960,10 +4964,10 @@ const Xs = /* @__PURE__ */ C(Zs, [["render", Qs], ["__scopeId", "data-v-a5a65cc1
|
|
|
4960
4964
|
};
|
|
4961
4965
|
}
|
|
4962
4966
|
});
|
|
4963
|
-
const
|
|
4967
|
+
const La = {
|
|
4964
4968
|
__name: "report",
|
|
4965
4969
|
setup(e) {
|
|
4966
|
-
const t = useRoute(), l =
|
|
4970
|
+
const t = useRoute(), l = N(() => {
|
|
4967
4971
|
let n = t.params.id;
|
|
4968
4972
|
if (!n) {
|
|
4969
4973
|
const o = t.path.split("/");
|
|
@@ -4971,54 +4975,54 @@ const ea = {
|
|
|
4971
4975
|
}
|
|
4972
4976
|
return "/focusbi_report/view/" + n;
|
|
4973
4977
|
});
|
|
4974
|
-
return (n, o) => (i(), m(de, { "schema-api":
|
|
4975
|
-
default: r((
|
|
4976
|
-
|
|
4978
|
+
return (n, o) => (i(), m(de, { "schema-api": w(l) }, {
|
|
4979
|
+
default: r((a) => [
|
|
4980
|
+
c(Ra, z(Q(a)), null, 16)
|
|
4977
4981
|
]),
|
|
4978
4982
|
_: 1
|
|
4979
4983
|
}, 8, ["schema-api"]));
|
|
4980
4984
|
}
|
|
4981
4985
|
};
|
|
4982
|
-
let
|
|
4983
|
-
function
|
|
4984
|
-
|
|
4986
|
+
let Y = {};
|
|
4987
|
+
function ei(e) {
|
|
4988
|
+
Y = e;
|
|
4985
4989
|
}
|
|
4986
|
-
const
|
|
4990
|
+
const Ma = (e) => {
|
|
4987
4991
|
const t = (l) => {
|
|
4988
4992
|
const n = "./views/" + l + ".vue";
|
|
4989
|
-
return
|
|
4993
|
+
return Y && Y[n] && Y[n].default ? Y[n].default : (console.error(`\u81EA\u5B9A\u4E49\u7EC4\u4EF6\u4E0D\u5B58\u5728 ${e.name} ${e.view}`), ne);
|
|
4990
4994
|
};
|
|
4991
4995
|
if (e.path === "#")
|
|
4992
|
-
return
|
|
4996
|
+
return ne;
|
|
4993
4997
|
switch (e.page_type) {
|
|
4994
|
-
case
|
|
4995
|
-
return
|
|
4996
|
-
case
|
|
4997
|
-
return
|
|
4998
|
-
case
|
|
4999
|
-
case
|
|
4998
|
+
case R.list:
|
|
4999
|
+
return bt;
|
|
5000
|
+
case R.form:
|
|
5001
|
+
return we;
|
|
5002
|
+
case R.custom:
|
|
5003
|
+
case R.localComp:
|
|
5000
5004
|
return t(e.view || "");
|
|
5001
|
-
case
|
|
5002
|
-
return
|
|
5003
|
-
case
|
|
5004
|
-
return
|
|
5005
|
-
case
|
|
5006
|
-
return
|
|
5005
|
+
case R.tree:
|
|
5006
|
+
return Sa;
|
|
5007
|
+
case R.report:
|
|
5008
|
+
return La;
|
|
5009
|
+
case R.customSchema:
|
|
5010
|
+
return ne;
|
|
5007
5011
|
}
|
|
5008
|
-
return
|
|
5012
|
+
return ne;
|
|
5009
5013
|
};
|
|
5010
|
-
function
|
|
5014
|
+
function ja(e) {
|
|
5011
5015
|
let t = e.path;
|
|
5012
|
-
return e.type === D.menu && e.page_type ===
|
|
5016
|
+
return e.type === D.menu && e.page_type === R.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;
|
|
5013
5017
|
}
|
|
5014
|
-
function
|
|
5018
|
+
function Na(e) {
|
|
5015
5019
|
return (e.path + e.name).split("/").filter((t) => t).join("_");
|
|
5016
5020
|
}
|
|
5017
|
-
const
|
|
5021
|
+
const _t = (e) => {
|
|
5018
5022
|
const t = e.type !== D.page, l = {
|
|
5019
|
-
path:
|
|
5020
|
-
name: e.id + "_" +
|
|
5021
|
-
component:
|
|
5023
|
+
path: ja(e),
|
|
5024
|
+
name: e.id + "_" + Na(e) + "_" + e.path.replaceAll("/", "_"),
|
|
5025
|
+
component: Ma(e),
|
|
5022
5026
|
meta: {
|
|
5023
5027
|
id: e.id,
|
|
5024
5028
|
pageId: e.id,
|
|
@@ -5029,13 +5033,13 @@ const bt = (e) => {
|
|
|
5029
5033
|
menuType: e.type,
|
|
5030
5034
|
keepAlive: !1
|
|
5031
5035
|
},
|
|
5032
|
-
children: e.children ? e.children.map((n) =>
|
|
5036
|
+
children: e.children ? e.children.map((n) => _t(n)) : []
|
|
5033
5037
|
};
|
|
5034
|
-
if (e.page_type ===
|
|
5035
|
-
const n = e.path + "/list", o = e.path + "/form",
|
|
5038
|
+
if (e.page_type === R.entity) {
|
|
5039
|
+
const n = e.path + "/list", o = e.path + "/form", a = e.path + "/:id", s = [{
|
|
5036
5040
|
path: n,
|
|
5037
5041
|
name: e.name + "\u5217\u8868" + e.id,
|
|
5038
|
-
component:
|
|
5042
|
+
component: bt,
|
|
5039
5043
|
meta: {
|
|
5040
5044
|
id: e.id + 99999,
|
|
5041
5045
|
title: "\u5217\u8868",
|
|
@@ -5047,7 +5051,7 @@ const bt = (e) => {
|
|
|
5047
5051
|
}, {
|
|
5048
5052
|
path: o,
|
|
5049
5053
|
name: e.name + "\u65B0\u5EFA" + e.id,
|
|
5050
|
-
component:
|
|
5054
|
+
component: we,
|
|
5051
5055
|
meta: {
|
|
5052
5056
|
id: e.id + 99999 + 1,
|
|
5053
5057
|
title: "\u65B0\u5EFA",
|
|
@@ -5057,9 +5061,9 @@ const bt = (e) => {
|
|
|
5057
5061
|
pageId: e.id
|
|
5058
5062
|
}
|
|
5059
5063
|
}, {
|
|
5060
|
-
path:
|
|
5064
|
+
path: a,
|
|
5061
5065
|
name: e.name + "\u7F16\u8F91" + e.id,
|
|
5062
|
-
component:
|
|
5066
|
+
component: we,
|
|
5063
5067
|
meta: {
|
|
5064
5068
|
id: e.id + 99999 + 2,
|
|
5065
5069
|
title: "\u7F16\u8F91",
|
|
@@ -5069,7 +5073,7 @@ const bt = (e) => {
|
|
|
5069
5073
|
pageId: e.id
|
|
5070
5074
|
}
|
|
5071
5075
|
}];
|
|
5072
|
-
l.children = [...
|
|
5076
|
+
l.children = [...s, ...l.children];
|
|
5073
5077
|
}
|
|
5074
5078
|
if (l.children && l.children.length > 0) {
|
|
5075
5079
|
let n = !0;
|
|
@@ -5078,16 +5082,16 @@ const bt = (e) => {
|
|
|
5078
5082
|
}), l.meta && (l.meta.menuType = t ? D.dir : D.hidden), n) {
|
|
5079
5083
|
l.meta && (l.meta.menuType = D.menu);
|
|
5080
5084
|
let o = "/";
|
|
5081
|
-
for (let
|
|
5082
|
-
if (l.children[
|
|
5083
|
-
o = l.children[
|
|
5085
|
+
for (let a = 0; a < l.children.length; a++)
|
|
5086
|
+
if (l.children[a].path.indexOf("/:") === -1) {
|
|
5087
|
+
o = l.children[a].path;
|
|
5084
5088
|
break;
|
|
5085
5089
|
}
|
|
5086
5090
|
l.redirect = o, l.path = "/" + e.id + "_DIR" + l.redirect.replaceAll("/", "_").toUpperCase();
|
|
5087
5091
|
}
|
|
5088
5092
|
}
|
|
5089
5093
|
return l;
|
|
5090
|
-
},
|
|
5094
|
+
}, Va = (e) => {
|
|
5091
5095
|
const t = [];
|
|
5092
5096
|
return e.forEach((l) => {
|
|
5093
5097
|
const n = {
|
|
@@ -5096,51 +5100,51 @@ const bt = (e) => {
|
|
|
5096
5100
|
routes: []
|
|
5097
5101
|
};
|
|
5098
5102
|
l.routes.forEach((o) => {
|
|
5099
|
-
n.routes.push(
|
|
5103
|
+
n.routes.push(_t(o));
|
|
5100
5104
|
}), t.push(n);
|
|
5101
5105
|
}), t;
|
|
5102
5106
|
};
|
|
5103
|
-
function
|
|
5107
|
+
function qa(e) {
|
|
5104
5108
|
e.beforeEach(async (t, l, n) => {
|
|
5105
|
-
if (
|
|
5109
|
+
if (ft().indexOf(t.path) !== -1) {
|
|
5106
5110
|
n();
|
|
5107
5111
|
return;
|
|
5108
5112
|
}
|
|
5109
|
-
if (
|
|
5113
|
+
if (aa()) {
|
|
5110
5114
|
n();
|
|
5111
5115
|
return;
|
|
5112
5116
|
}
|
|
5113
|
-
await
|
|
5114
|
-
const o = await
|
|
5115
|
-
|
|
5116
|
-
|
|
5117
|
+
await S.dispatch("user/info");
|
|
5118
|
+
const o = await S.dispatch("user/loadRemoteRoutes"), a = Va(o);
|
|
5119
|
+
a.forEach((s) => {
|
|
5120
|
+
s.routes.forEach((u) => {
|
|
5117
5121
|
e.addRoute({
|
|
5118
5122
|
path: "/",
|
|
5119
5123
|
component: dt,
|
|
5120
|
-
children: [
|
|
5124
|
+
children: [u]
|
|
5121
5125
|
});
|
|
5122
5126
|
});
|
|
5123
|
-
}), e.addRoute({ name: "404", path: "/:pathMatch(.*)*", redirect: "/404", hidden: !0 }),
|
|
5127
|
+
}), e.addRoute({ name: "404", path: "/:pathMatch(.*)*", redirect: "/404", hidden: !0 }), S.commit("user/updateRemoteRouter", a), await e.replace(t), n();
|
|
5124
5128
|
});
|
|
5125
5129
|
}
|
|
5126
|
-
function
|
|
5130
|
+
function Ua(e) {
|
|
5127
5131
|
e.beforeEach(async (t, l, n) => {
|
|
5128
|
-
var
|
|
5129
|
-
const
|
|
5130
|
-
for (let
|
|
5131
|
-
const
|
|
5132
|
-
(
|
|
5132
|
+
var u;
|
|
5133
|
+
const a = [S.state.settings.title || ""], s = t.matched.length;
|
|
5134
|
+
for (let p = s; p > s - 3; p--) {
|
|
5135
|
+
const d = t.matched[p - 1];
|
|
5136
|
+
(u = d == null ? void 0 : d.meta) != null && u.title && a.push(d.meta.title + "");
|
|
5133
5137
|
}
|
|
5134
|
-
|
|
5138
|
+
a.length > 1 && (document.title = a.reverse().join("-")), n();
|
|
5135
5139
|
}), e.afterEach(async (t, l, n) => {
|
|
5136
|
-
Object.keys(t.meta).length > 0 && await
|
|
5140
|
+
Object.keys(t.meta).length > 0 && await S.dispatch("app/setCurrentMeta", t.meta);
|
|
5137
5141
|
});
|
|
5138
5142
|
}
|
|
5139
|
-
function
|
|
5140
|
-
|
|
5143
|
+
function Ha(e) {
|
|
5144
|
+
ia(e), na(e), qa(e), Ua(e);
|
|
5141
5145
|
}
|
|
5142
|
-
|
|
5143
|
-
const
|
|
5146
|
+
Ha(le);
|
|
5147
|
+
const Ga = {
|
|
5144
5148
|
beforeMount(e, t) {
|
|
5145
5149
|
e.clickOutsideEvent = function(l) {
|
|
5146
5150
|
e === l.target || e.contains(l.target) || t.value(l, e);
|
|
@@ -5149,130 +5153,130 @@ const ra = {
|
|
|
5149
5153
|
unmounted(e) {
|
|
5150
5154
|
document.body.removeEventListener("click", e.clickOutsideEvent);
|
|
5151
5155
|
}
|
|
5152
|
-
},
|
|
5156
|
+
}, J = yl(), Ja = {
|
|
5153
5157
|
mounted: (e, t) => {
|
|
5154
5158
|
e !== null && (t.value, e.oncontextmenu = (l) => {
|
|
5155
|
-
l.preventDefault(), l.stopPropagation(), l.cancelBubble = !0, t.value &&
|
|
5159
|
+
l.preventDefault(), l.stopPropagation(), l.cancelBubble = !0, t.value && J.emit("right-click", { event: l, data: t.value });
|
|
5156
5160
|
});
|
|
5157
5161
|
}
|
|
5158
|
-
},
|
|
5162
|
+
}, za = {
|
|
5159
5163
|
mounted(e) {
|
|
5160
5164
|
}
|
|
5161
5165
|
};
|
|
5162
|
-
function
|
|
5166
|
+
function Ge(e, t) {
|
|
5163
5167
|
let l = e[`offset${t}`], n = e.offsetParent;
|
|
5164
5168
|
for (; n; )
|
|
5165
5169
|
l += n[`offset${t}`], n = n.offsetParent;
|
|
5166
5170
|
return l;
|
|
5167
5171
|
}
|
|
5168
|
-
const
|
|
5172
|
+
const Ka = {
|
|
5169
5173
|
mounted: (e, t) => {
|
|
5170
5174
|
if (e === null || !t.value.dev)
|
|
5171
5175
|
return;
|
|
5172
5176
|
let l = e;
|
|
5173
5177
|
if (t.value.parent)
|
|
5174
|
-
for (let
|
|
5178
|
+
for (let p = 0; p < t.value.parent; p++)
|
|
5175
5179
|
l.parentElement && (l = l.parentElement);
|
|
5176
5180
|
l.classList.add("devtool-hover");
|
|
5177
5181
|
const n = document.createElement("i");
|
|
5178
5182
|
n.className = "devtool-item-wrapper", l.onmouseover = () => {
|
|
5179
|
-
n.style.height = l.offsetHeight + 30 + "px", n.style.width = l.offsetWidth + 30 + "px", n.style.top =
|
|
5183
|
+
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";
|
|
5180
5184
|
};
|
|
5181
5185
|
const o = document.createElement("span");
|
|
5182
5186
|
o.className = "dev-action-edit", o.title = "\u7F16\u8F91";
|
|
5183
|
-
const
|
|
5184
|
-
|
|
5185
|
-
|
|
5187
|
+
const a = document.createElement("i");
|
|
5188
|
+
a.className = "iconfont ra-editor1", o.appendChild(a), o.onclick = (p) => {
|
|
5189
|
+
J.emit("dev-action", { event: p, data: { type: "edit", devId: t.value.devId } });
|
|
5186
5190
|
}, n.appendChild(o);
|
|
5187
|
-
const
|
|
5188
|
-
|
|
5189
|
-
const
|
|
5190
|
-
|
|
5191
|
-
|
|
5192
|
-
}, n.appendChild(
|
|
5191
|
+
const s = document.createElement("span");
|
|
5192
|
+
s.className = "dev-action-del", s.title = "\u5220\u9664";
|
|
5193
|
+
const u = document.createElement("i");
|
|
5194
|
+
u.className = "iconfont ra-cut", s.appendChild(u), s.onclick = (p) => {
|
|
5195
|
+
J.emit("dev-action", { event: p, data: { type: "del", devId: t.value.devId } });
|
|
5196
|
+
}, n.appendChild(s), l.insertBefore(n, l.firstChild);
|
|
5193
5197
|
}
|
|
5194
|
-
},
|
|
5198
|
+
}, Wa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5195
5199
|
__proto__: null,
|
|
5196
|
-
outClick:
|
|
5197
|
-
rightClick:
|
|
5198
|
-
resize:
|
|
5199
|
-
devtool:
|
|
5200
|
+
outClick: Ga,
|
|
5201
|
+
rightClick: Ja,
|
|
5202
|
+
resize: za,
|
|
5203
|
+
devtool: Ka
|
|
5200
5204
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5201
5205
|
let se;
|
|
5202
|
-
function
|
|
5203
|
-
return e ?
|
|
5206
|
+
function ti(e) {
|
|
5207
|
+
return e ? Re(O(pe.axios, e)) : se;
|
|
5204
5208
|
}
|
|
5205
|
-
function
|
|
5206
|
-
const t = O(
|
|
5207
|
-
o.unshift(n), o.forEach((
|
|
5208
|
-
|
|
5209
|
-
}), t != null && t.mock &&
|
|
5210
|
-
"X-Token":
|
|
5211
|
-
})),
|
|
5209
|
+
function li(e) {
|
|
5210
|
+
const t = O(pe, e), l = $t(kl), n = ls(t), o = t.plugins || [];
|
|
5211
|
+
o.unshift(n), o.forEach((a) => {
|
|
5212
|
+
ts(l, a);
|
|
5213
|
+
}), t != null && t.mock && Tl(), se = Re(t.axios), S.dispatch("setHttp", se).then(), S.dispatch("settings/updateSettings", e == null ? void 0 : e.settings).then(), l.config.globalProperties.$http = se, l.config.globalProperties.$router = le, window.App = l, window.OmsOptions = t, cl(() => ({
|
|
5214
|
+
"X-Token": Pe()
|
|
5215
|
+
})), le.isReady().then(() => l.mount("#app"));
|
|
5212
5216
|
}
|
|
5213
|
-
function
|
|
5217
|
+
function Za(e, t = {}) {
|
|
5214
5218
|
Object.keys(t).forEach((l) => {
|
|
5215
5219
|
e.component(l, t[l]);
|
|
5216
5220
|
});
|
|
5217
5221
|
}
|
|
5218
|
-
function
|
|
5222
|
+
function Qa(e = []) {
|
|
5219
5223
|
e.forEach((t) => {
|
|
5220
|
-
|
|
5221
|
-
}),
|
|
5224
|
+
le.addRoute(t);
|
|
5225
|
+
}), S.commit("user/setCustomRoutes", e);
|
|
5222
5226
|
}
|
|
5223
|
-
function
|
|
5227
|
+
function Xa(e, t) {
|
|
5224
5228
|
t.forEach((l) => {
|
|
5225
|
-
|
|
5229
|
+
Ae(l) && (l = [l]), e.use(...l);
|
|
5226
5230
|
});
|
|
5227
5231
|
}
|
|
5228
|
-
function
|
|
5232
|
+
function Ya(e, t = {}) {
|
|
5229
5233
|
Object.keys(t).forEach((l) => {
|
|
5230
5234
|
e.directive(l, t[l]);
|
|
5231
5235
|
});
|
|
5232
5236
|
}
|
|
5233
|
-
function
|
|
5237
|
+
function es(e = {}) {
|
|
5234
5238
|
const t = ["app", "settings", "user"];
|
|
5235
5239
|
Object.keys(e).forEach((l) => {
|
|
5236
5240
|
if (t.indexOf(l) !== -1) {
|
|
5237
5241
|
console.warn(`storeModule name [${l}] is use by base, please change it!`);
|
|
5238
5242
|
return;
|
|
5239
5243
|
}
|
|
5240
|
-
|
|
5244
|
+
S.registerModule(l, e[l]);
|
|
5241
5245
|
});
|
|
5242
5246
|
}
|
|
5243
|
-
function
|
|
5244
|
-
|
|
5247
|
+
function ts(e, t) {
|
|
5248
|
+
Za(e, t.components || {}), Qa(t.routes || []), Xa(e, t.use || []), Ya(e, t.directives || {}), es(t.storeModules || {}), at(t.mockApis || []);
|
|
5245
5249
|
}
|
|
5246
|
-
function
|
|
5250
|
+
function ls(e) {
|
|
5247
5251
|
var t;
|
|
5248
5252
|
return {
|
|
5249
|
-
components: { VIcon:
|
|
5250
|
-
directives:
|
|
5253
|
+
components: { VIcon: pl },
|
|
5254
|
+
directives: Wa,
|
|
5251
5255
|
use: [
|
|
5252
|
-
|
|
5253
|
-
|
|
5254
|
-
[
|
|
5256
|
+
S,
|
|
5257
|
+
le,
|
|
5258
|
+
[sl, { locale: xe, ...(t = e.settings) == null ? void 0 : t.ElementPlus }]
|
|
5255
5259
|
]
|
|
5256
5260
|
};
|
|
5257
5261
|
}
|
|
5258
5262
|
export {
|
|
5259
|
-
|
|
5260
|
-
|
|
5261
|
-
|
|
5263
|
+
Mn as BaseSso,
|
|
5264
|
+
ne as Container,
|
|
5265
|
+
jn as DingTalk,
|
|
5262
5266
|
dt as Layout,
|
|
5263
5267
|
D as MenuType,
|
|
5264
|
-
|
|
5265
|
-
|
|
5266
|
-
|
|
5267
|
-
|
|
5268
|
-
|
|
5269
|
-
|
|
5270
|
-
|
|
5268
|
+
Ve as Message,
|
|
5269
|
+
qe as MessageBox,
|
|
5270
|
+
R as PageType,
|
|
5271
|
+
Vn as allSso,
|
|
5272
|
+
li as createAdmin,
|
|
5273
|
+
J as eventBus,
|
|
5274
|
+
Wl as getCmp,
|
|
5271
5275
|
se as http,
|
|
5272
|
-
|
|
5273
|
-
|
|
5274
|
-
|
|
5275
|
-
|
|
5276
|
-
|
|
5276
|
+
Re as instance,
|
|
5277
|
+
ei as regViews,
|
|
5278
|
+
Ys as setCmp,
|
|
5279
|
+
Va as transRemoteModules,
|
|
5280
|
+
ti as useHttp
|
|
5277
5281
|
};
|
|
5278
5282
|
//# sourceMappingURL=index.es.js.map
|