@okiss/oms 0.0.27 → 0.0.28
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 +427 -410
- package/dist/index.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/components/PageLoad.d.ts +5 -1
- package/dist/types/types.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as N, onBeforeMount as Ge, provide as vt, resolveComponent as v, openBlock as i, createBlock as m, unref as T, withCtx as r, createVNode as u, computed as j, createTextVNode as g, TransitionGroup as gt, createElementBlock as
|
|
2
|
-
import { ElConfigProvider as
|
|
1
|
+
import { defineComponent as N, onBeforeMount as Ge, provide as vt, resolveComponent as v, openBlock as i, createBlock as m, unref as T, withCtx as r, createVNode as u, computed as j, createTextVNode as g, TransitionGroup as gt, createElementBlock as f, Fragment as k, renderList as $, toDisplayString as x, normalizeClass as H, renderSlot as Y, mergeProps as q, createCommentVNode as E, toRefs as kt, ref as R, normalizeStyle as Et, createElementVNode as b, Transition as wt, pushScopeId as Je, popScopeId as ze, resolveDynamicComponent as Ke, normalizeProps as J, guardReactiveProps as Z, withDirectives as _e, vModelText as Le, resolveDirective as St, onMounted as Ct, createApp as Bt } from "vue";
|
|
2
|
+
import { ElConfigProvider as xt, ElBreadcrumbItem as $t, ElBreadcrumb as It, ElRow as le, ElMain as At, ElAside as Tt, ElContainer as Ft, ElDivider as We, ElButton as ae, ElOption as we, ElSelect as Se, ElFormItem as Ze, ElForm as Qe, ElCol as re, ElDrawer as Xe, ElDropdownItem as Dt, ElDropdownMenu as Ot, ElDropdown as Pt, ElMenuItem as Rt, ElSubMenu as Lt, ElOptionGroup as Mt, ElMenu as jt, ElScrollbar as Nt, ElBacktop as Vt, ElMessage as qt, ElAlert as ye, ElTree as Ut, ElCard as Ce } from "element-plus/es";
|
|
3
3
|
import "element-plus/es/components/config-provider/style/css";
|
|
4
|
-
import
|
|
5
|
-
import { addNewStyle as Ht, addNewStyleTag as Gt, queryParams as Jt, logGroup as zt, isString as
|
|
4
|
+
import Be from "element-plus/lib/locale/lang/zh-cn";
|
|
5
|
+
import { addNewStyle as Ht, addNewStyleTag as Gt, queryParams as Jt, logGroup as zt, isString as xe, compactObject as Ye, showEleByClassName as et, waterMarker as Kt, Cache as me, isExternal as Me, getQueryParam as Wt, createIFrame as Zt, strVarReplace as K, obj2Param as Qt, isObject as $e, effectDataTrans as Xt, isArray as Yt } from "@okiss/utils";
|
|
6
6
|
import fe from "mockjs";
|
|
7
7
|
import el, { cloneDeep as y, merge as O, get as ee, unset as tt } from "lodash";
|
|
8
8
|
import Ie from "axios";
|
|
@@ -11,7 +11,7 @@ import { createStore as tl, useStore as lt, mapGetters as Ae } from "vuex";
|
|
|
11
11
|
import ll, { ElMessage as ol, ElMessageBox as nl } from "element-plus";
|
|
12
12
|
import "element-plus/dist/index.css";
|
|
13
13
|
import "dayjs/locale/zh-cn";
|
|
14
|
-
import { VForm as W, VBtn as Te, JsonView as Fe, VTable as ie, VChart as
|
|
14
|
+
import { VForm as W, VBtn as Te, JsonView as Fe, VTable as ie, VChart as sl, setUploadHeaderHandle as al, VIcon as il } from "@okiss/vbtf";
|
|
15
15
|
import "normalize.css/normalize.css";
|
|
16
16
|
import "@okiss/vbtf/style.css";
|
|
17
17
|
import { useRoute as ue, onBeforeRouteLeave as rl, useRouter as ul, createRouter as cl, createWebHashHistory as dl, onBeforeRouteUpdate as pl } from "vue-router";
|
|
@@ -57,19 +57,19 @@ String.prototype.format || (String.prototype.format = function() {
|
|
|
57
57
|
const _l = /* @__PURE__ */ N({
|
|
58
58
|
__name: "App",
|
|
59
59
|
setup(e) {
|
|
60
|
-
var l, n, o,
|
|
60
|
+
var l, n, o, s;
|
|
61
61
|
Ge(() => {
|
|
62
|
-
const
|
|
63
|
-
|
|
62
|
+
const a = document.getElementById("preloader");
|
|
63
|
+
a !== null && (document.body.removeChild(a), Ht("test-icon", "//at.alicdn.com/t/font_2246548_zclaqxwmzq8.css"), Gt(`.iconfont {
|
|
64
64
|
font-size: 19px;
|
|
65
65
|
font-style: normal;
|
|
66
66
|
-webkit-font-smoothing: antialiased;
|
|
67
67
|
font-family: iconfont !important;
|
|
68
68
|
}`));
|
|
69
69
|
});
|
|
70
|
-
const t =
|
|
71
|
-
return (n = (l = window == null ? void 0 : window.OmsOptions) == null ? void 0 : l.form) != null && n.vsPath && vt("vsPath", (
|
|
72
|
-
const d = v("router-view"), p =
|
|
70
|
+
const t = Be;
|
|
71
|
+
return (n = (l = window == null ? void 0 : window.OmsOptions) == null ? void 0 : l.form) != null && n.vsPath && vt("vsPath", (s = (o = window == null ? void 0 : window.OmsOptions) == null ? void 0 : o.form) == null ? void 0 : s.vsPath), (a, c) => {
|
|
72
|
+
const d = v("router-view"), p = xt;
|
|
73
73
|
return i(), m(p, { locale: T(t) }, {
|
|
74
74
|
default: r(() => [
|
|
75
75
|
u(d)
|
|
@@ -721,7 +721,7 @@ const yl = {
|
|
|
721
721
|
}
|
|
722
722
|
], Cl = [
|
|
723
723
|
...Sl
|
|
724
|
-
],
|
|
724
|
+
], Bl = {
|
|
725
725
|
baseURL: "/api",
|
|
726
726
|
withCredentials: !0,
|
|
727
727
|
timeout: 5e3,
|
|
@@ -740,7 +740,7 @@ const yl = {
|
|
|
740
740
|
ElementPlus: {
|
|
741
741
|
size: "default",
|
|
742
742
|
zIndex: 3e3,
|
|
743
|
-
locale:
|
|
743
|
+
locale: Be
|
|
744
744
|
},
|
|
745
745
|
nav: [],
|
|
746
746
|
whiteRoutes: ["/login"],
|
|
@@ -749,31 +749,32 @@ const yl = {
|
|
|
749
749
|
envColor: {
|
|
750
750
|
uat: "gray",
|
|
751
751
|
pre: "green"
|
|
752
|
-
}
|
|
752
|
+
},
|
|
753
|
+
serviceOffLineNotice: "\u5F53\u524D\u9875\u9762\u529F\u80FD\u6B63\u5728\u7EF4\u62A4, \u8BF7\u7A0D\u540E\u518D\u8BD5~~~"
|
|
753
754
|
}, ce = {
|
|
754
|
-
axios:
|
|
755
|
+
axios: Bl,
|
|
755
756
|
settings: ot,
|
|
756
757
|
plugins: [],
|
|
757
758
|
mock: !1
|
|
758
759
|
}, ge = {};
|
|
759
760
|
function nt(e) {
|
|
760
761
|
e.forEach((t) => {
|
|
761
|
-
const l =
|
|
762
|
+
const l = st(t);
|
|
762
763
|
ge[`${t.method}::${l}`] = t;
|
|
763
764
|
});
|
|
764
765
|
}
|
|
765
766
|
nt(Cl);
|
|
766
|
-
function
|
|
767
|
+
function st(e) {
|
|
767
768
|
var n;
|
|
768
769
|
let t = e.url, l = e.baseURL || ((n = ce.axios) == null ? void 0 : n.baseURL);
|
|
769
770
|
return l || (l = ""), typeof t == "string" ? (t = ("/" + l + t).split("/").filter((o) => o).join("/"), t += "(|\\?.*)$", new RegExp(t)) : t;
|
|
770
771
|
}
|
|
771
|
-
function
|
|
772
|
+
function xl() {
|
|
772
773
|
Object.keys(ge).forEach((e) => {
|
|
773
|
-
const t = ge[e], l =
|
|
774
|
+
const t = ge[e], l = st(t);
|
|
774
775
|
fe.mock(l, t.method, function(n) {
|
|
775
|
-
const { url: o, type:
|
|
776
|
-
return zt(o, { type:
|
|
776
|
+
const { url: o, type: s, body: a } = n, c = Jt(o), d = a ? JSON.parse(a) : {}, p = t.response({ query: c, data: d }), h = fe.mock(p);
|
|
777
|
+
return zt(o, { type: s, query: c, data: d, response: h }), fe.mock(h);
|
|
777
778
|
});
|
|
778
779
|
}), console.log("%c ApiMock is stared! ", "background: #606060; color: #fff; padding: 4px 5px; border-radius: 1px;");
|
|
779
780
|
}
|
|
@@ -785,7 +786,7 @@ function $l(e) {
|
|
|
785
786
|
const t = new Date(new Date().getTime() + (w.state.settings.tokenExpire || 864e5));
|
|
786
787
|
return L.set(De, e, { expires: t });
|
|
787
788
|
}
|
|
788
|
-
function
|
|
789
|
+
function at() {
|
|
789
790
|
return L.remove(De);
|
|
790
791
|
}
|
|
791
792
|
const Il = {
|
|
@@ -809,7 +810,7 @@ const Il = {
|
|
|
809
810
|
e.token = t, $l(t);
|
|
810
811
|
},
|
|
811
812
|
removeToken(e) {
|
|
812
|
-
e.token = "",
|
|
813
|
+
e.token = "", at();
|
|
813
814
|
},
|
|
814
815
|
updateRemoteRouter(e, t) {
|
|
815
816
|
e.remoteRouter = t, e.isLodeRemoteRoutes = !0;
|
|
@@ -843,17 +844,17 @@ const Il = {
|
|
|
843
844
|
state: t,
|
|
844
845
|
rootState: l
|
|
845
846
|
}, n) {
|
|
846
|
-
return new Promise((o,
|
|
847
|
+
return new Promise((o, s) => {
|
|
847
848
|
l.http ? l.http.request({
|
|
848
849
|
url: "/user/login",
|
|
849
850
|
method: "POST",
|
|
850
851
|
data: n
|
|
851
|
-
}).then((
|
|
852
|
+
}).then((a) => {
|
|
852
853
|
var c;
|
|
853
|
-
e("updateToken", (c =
|
|
854
|
-
}).catch((
|
|
855
|
-
a
|
|
856
|
-
}) :
|
|
854
|
+
e("updateToken", (c = a.data) == null ? void 0 : c.token), o(!0);
|
|
855
|
+
}).catch((a) => {
|
|
856
|
+
s(a);
|
|
857
|
+
}) : s("http client not init");
|
|
857
858
|
});
|
|
858
859
|
},
|
|
859
860
|
logout({ commit: e }) {
|
|
@@ -865,9 +866,9 @@ const Il = {
|
|
|
865
866
|
url: "/user/info",
|
|
866
867
|
method: "GET"
|
|
867
868
|
}).then((o) => {
|
|
868
|
-
var
|
|
869
|
-
const
|
|
870
|
-
e("updateState", { key: "name", value: (c = o.data) == null ? void 0 : c.name }), e("updateState", { key: "nickname", value: (d = o.data) == null ? void 0 : d.nickname }), e("updateState", { key: "roleIds", value:
|
|
869
|
+
var a, c, d, p, h;
|
|
870
|
+
const s = ((a = o.data) == null ? void 0 : a.role_ids) || [];
|
|
871
|
+
e("updateState", { key: "name", value: (c = o.data) == null ? void 0 : c.name }), e("updateState", { key: "nickname", value: (d = o.data) == null ? void 0 : d.nickname }), e("updateState", { key: "roleIds", value: s }), e("updateState", { key: "env", value: (p = o.data) == null ? void 0 : p.env }), !L.get("username") && L.set("username", (h = o.data) == null ? void 0 : h.name), l(!0);
|
|
871
872
|
}).catch((o) => {
|
|
872
873
|
n(o);
|
|
873
874
|
}) : n("http client not init");
|
|
@@ -879,14 +880,14 @@ const Il = {
|
|
|
879
880
|
(o = t.http) == null || o.request({
|
|
880
881
|
url: "/user/routes",
|
|
881
882
|
method: "get"
|
|
882
|
-
}).then((
|
|
883
|
-
if (
|
|
884
|
-
const
|
|
885
|
-
l(
|
|
883
|
+
}).then((s) => {
|
|
884
|
+
if (s.code === 0) {
|
|
885
|
+
const a = s.data || [];
|
|
886
|
+
l(a);
|
|
886
887
|
} else
|
|
887
888
|
n("error");
|
|
888
|
-
}).catch((
|
|
889
|
-
console.log(
|
|
889
|
+
}).catch((s) => {
|
|
890
|
+
console.log(s), n(s);
|
|
890
891
|
});
|
|
891
892
|
});
|
|
892
893
|
}
|
|
@@ -1050,7 +1051,7 @@ const Il = {
|
|
|
1050
1051
|
}
|
|
1051
1052
|
}, jl = {
|
|
1052
1053
|
onFulfilled: function(e) {
|
|
1053
|
-
return
|
|
1054
|
+
return e.config.cacheEnable === !1 || e.config.method === "get" && Object.keys(e.data).length > 0 && ne.addCache(e.config, e.data), e;
|
|
1054
1055
|
},
|
|
1055
1056
|
onRejected(e) {
|
|
1056
1057
|
return Promise.reject(e);
|
|
@@ -1067,9 +1068,9 @@ const Vl = {
|
|
|
1067
1068
|
}
|
|
1068
1069
|
}, ql = {
|
|
1069
1070
|
onFulfilled(e) {
|
|
1070
|
-
var n, o,
|
|
1071
|
+
var n, o, s, a, c, d, p;
|
|
1071
1072
|
if (!(((n = e.config) == null ? void 0 : n.notHoldApiErr) !== void 0 && ((o = e.config) == null ? void 0 : o.notHoldApiErr) === !0) && e.data.code !== 0) {
|
|
1072
|
-
const
|
|
1073
|
+
const h = e.data.message || `\u63A5\u53E3\u8BF7\u6C42\u9519\u8BEF ${e.config.method}::${(s = e.config.url) == null ? void 0 : s.split("?")[0]}`;
|
|
1073
1074
|
if (e.data.code === 401) {
|
|
1074
1075
|
Ve.alert("\u767B\u5F55\u4FE1\u606F\u5DF2\u8FC7\u671F\u6216\u672A\u767B\u5F55, \u662F\u5426\u8DF3\u8F6C\u767B\u5F55", "\u64CD\u4F5C\u63D0\u9192", {
|
|
1075
1076
|
showClose: !1,
|
|
@@ -1077,20 +1078,20 @@ const Vl = {
|
|
|
1077
1078
|
showCancelButton: !0,
|
|
1078
1079
|
cancelButtonText: "\u53D6\u6D88",
|
|
1079
1080
|
callback: (_) => {
|
|
1080
|
-
_ === "confirm" && (
|
|
1081
|
+
_ === "confirm" && (at(), location.href = location.origin + location.pathname + location.hash.replace("#", "#/?redirect="), location.reload());
|
|
1081
1082
|
}
|
|
1082
1083
|
});
|
|
1083
1084
|
return;
|
|
1084
1085
|
} else
|
|
1085
1086
|
Ne({
|
|
1086
|
-
message:
|
|
1087
|
+
message: h,
|
|
1087
1088
|
type: "error",
|
|
1088
1089
|
duration: 5 * 1e3
|
|
1089
1090
|
});
|
|
1090
|
-
return Promise.reject(
|
|
1091
|
+
return Promise.reject(h);
|
|
1091
1092
|
}
|
|
1092
|
-
let l = (c = (
|
|
1093
|
-
return l !== void 0 && (
|
|
1093
|
+
let l = (c = (a = e.data) == null ? void 0 : a.data) == null ? void 0 : c._message_box;
|
|
1094
|
+
return l !== void 0 && (xe(l) && (l = {
|
|
1094
1095
|
message: (p = (d = e.data) == null ? void 0 : d.data) == null ? void 0 : p._message_box
|
|
1095
1096
|
}), Ve({
|
|
1096
1097
|
title: "\u63D0\u793A",
|
|
@@ -1126,7 +1127,7 @@ function Pe(e = {}) {
|
|
|
1126
1127
|
}
|
|
1127
1128
|
const Hl = Pe();
|
|
1128
1129
|
const it = {};
|
|
1129
|
-
function
|
|
1130
|
+
function hi(e, t) {
|
|
1130
1131
|
it[e] = t;
|
|
1131
1132
|
}
|
|
1132
1133
|
function Gl(e) {
|
|
@@ -1196,8 +1197,8 @@ const Kl = {
|
|
|
1196
1197
|
key: 0,
|
|
1197
1198
|
class: "no-redirect"
|
|
1198
1199
|
}, Zl = ["onClick"];
|
|
1199
|
-
function Ql(e, t, l, n, o,
|
|
1200
|
-
const
|
|
1200
|
+
function Ql(e, t, l, n, o, s) {
|
|
1201
|
+
const a = $t, c = It;
|
|
1201
1202
|
return i(), m(c, {
|
|
1202
1203
|
class: "app-breadcrumb",
|
|
1203
1204
|
separator: "/"
|
|
@@ -1205,14 +1206,14 @@ function Ql(e, t, l, n, o, a) {
|
|
|
1205
1206
|
default: r(() => [
|
|
1206
1207
|
u(gt, { name: "breadcrumb" }, {
|
|
1207
1208
|
default: r(() => [
|
|
1208
|
-
(i(!0),
|
|
1209
|
+
(i(!0), f(k, null, $(o.levelList, (d, p) => (i(), m(a, {
|
|
1209
1210
|
key: d.path
|
|
1210
1211
|
}, {
|
|
1211
1212
|
default: r(() => [
|
|
1212
|
-
d.path.indexOf("/DIR_") === 0 && d.redirect === void 0 || p === o.levelList.length - 1 ? (i(),
|
|
1213
|
+
d.path.indexOf("/DIR_") === 0 && d.redirect === void 0 || p === o.levelList.length - 1 ? (i(), f("span", Wl, x(d.meta.title), 1)) : (i(), f("a", {
|
|
1213
1214
|
key: 1,
|
|
1214
|
-
onClick: (
|
|
1215
|
-
},
|
|
1215
|
+
onClick: (h) => s.handleLink(d)
|
|
1216
|
+
}, x(d.meta.title), 9, Zl))
|
|
1216
1217
|
]),
|
|
1217
1218
|
_: 2
|
|
1218
1219
|
}, 1024))), 128))
|
|
@@ -1238,13 +1239,13 @@ const Xl = /* @__PURE__ */ C(Kl, [["render", Ql], ["__scopeId", "data-v-fa74804e
|
|
|
1238
1239
|
}
|
|
1239
1240
|
}
|
|
1240
1241
|
};
|
|
1241
|
-
function eo(e, t, l, n, o,
|
|
1242
|
-
const
|
|
1243
|
-
return i(),
|
|
1242
|
+
function eo(e, t, l, n, o, s) {
|
|
1243
|
+
const a = v("v-icon");
|
|
1244
|
+
return i(), f("div", {
|
|
1244
1245
|
style: { padding: "0 15px" },
|
|
1245
|
-
onClick: t[0] || (t[0] = (...c) =>
|
|
1246
|
+
onClick: t[0] || (t[0] = (...c) => s.toggleClick && s.toggleClick(...c))
|
|
1246
1247
|
}, [
|
|
1247
|
-
u(
|
|
1248
|
+
u(a, {
|
|
1248
1249
|
class: H({ "is-active": l.isActive }),
|
|
1249
1250
|
name: "ra-leftalignment"
|
|
1250
1251
|
}, null, 8, ["class"])
|
|
@@ -1253,8 +1254,8 @@ function eo(e, t, l, n, o, a) {
|
|
|
1253
1254
|
const to = /* @__PURE__ */ C(Yl, [["render", eo]]);
|
|
1254
1255
|
const lo = {};
|
|
1255
1256
|
function oo(e, t) {
|
|
1256
|
-
const l = le, n = At, o = Tt,
|
|
1257
|
-
return i(), m(
|
|
1257
|
+
const l = le, n = At, o = Tt, s = Ft;
|
|
1258
|
+
return i(), m(s, { style: { width: "100%", height: "100%" } }, {
|
|
1258
1259
|
default: r(() => [
|
|
1259
1260
|
u(l, { class: "aside" }, {
|
|
1260
1261
|
default: r(() => [
|
|
@@ -1353,7 +1354,7 @@ const rt = /* @__PURE__ */ C(lo, [["render", oo], ["__scopeId", "data-v-7c3d697b
|
|
|
1353
1354
|
}
|
|
1354
1355
|
}
|
|
1355
1356
|
]
|
|
1356
|
-
},
|
|
1357
|
+
}, so = {
|
|
1357
1358
|
type: "number",
|
|
1358
1359
|
name: "\u6570\u5B57",
|
|
1359
1360
|
default: {
|
|
@@ -1395,7 +1396,7 @@ const rt = /* @__PURE__ */ C(lo, [["render", oo], ["__scopeId", "data-v-7c3d697b
|
|
|
1395
1396
|
}
|
|
1396
1397
|
}
|
|
1397
1398
|
]
|
|
1398
|
-
},
|
|
1399
|
+
}, ao = {
|
|
1399
1400
|
type: "number-range",
|
|
1400
1401
|
name: "\u6570\u5B57\u533A\u95F4",
|
|
1401
1402
|
default: {
|
|
@@ -1864,8 +1865,8 @@ function F(e) {
|
|
|
1864
1865
|
}
|
|
1865
1866
|
F(no);
|
|
1866
1867
|
F(io);
|
|
1867
|
-
F(ao);
|
|
1868
1868
|
F(so);
|
|
1869
|
+
F(ao);
|
|
1869
1870
|
F(uo);
|
|
1870
1871
|
F(bo);
|
|
1871
1872
|
F(ro);
|
|
@@ -2080,8 +2081,8 @@ const vo = {
|
|
|
2080
2081
|
const l = t ? t.type : "", n = this.ctrlMap[l], o = n.trans ? n.trans(e) : e;
|
|
2081
2082
|
if (o && Object.keys(o).length > 0) {
|
|
2082
2083
|
if (o.type = l, this.activeIndex.indexOf("[") > -1) {
|
|
2083
|
-
const [
|
|
2084
|
-
this.builderSchema[
|
|
2084
|
+
const [s, a, c] = this.activeIndex.match(/(\w+)\[(\d+)\]/);
|
|
2085
|
+
this.builderSchema[a][c] = { ...o };
|
|
2085
2086
|
} else
|
|
2086
2087
|
this.builderSchema[this.activeIndex] = o;
|
|
2087
2088
|
this.key++;
|
|
@@ -2149,11 +2150,11 @@ const vo = {
|
|
|
2149
2150
|
}
|
|
2150
2151
|
}
|
|
2151
2152
|
}, ko = /* @__PURE__ */ g("\u4FDD\u5B58\u9875\u9762\u914D\u7F6E"), Eo = /* @__PURE__ */ g(" \xA0\xA0 ");
|
|
2152
|
-
function wo(e, t, l, n, o,
|
|
2153
|
-
const
|
|
2153
|
+
function wo(e, t, l, n, o, s) {
|
|
2154
|
+
const a = v("v-form"), c = We, d = ae, p = v("JsonView"), h = v("VButton"), _ = we, A = Se, I = Ze, U = Qe, V = v("dev-layout");
|
|
2154
2155
|
return i(), m(V, null, {
|
|
2155
2156
|
main: r(() => [
|
|
2156
|
-
o.builderSchema.formItems ? (i(), m(
|
|
2157
|
+
o.builderSchema.formItems ? (i(), m(a, q({
|
|
2157
2158
|
key: 0,
|
|
2158
2159
|
ref: "form",
|
|
2159
2160
|
key: o.key,
|
|
@@ -2162,7 +2163,7 @@ function wo(e, t, l, n, o, a) {
|
|
|
2162
2163
|
u(c),
|
|
2163
2164
|
u(d, {
|
|
2164
2165
|
type: "primary",
|
|
2165
|
-
onClick:
|
|
2166
|
+
onClick: s.saveSchema
|
|
2166
2167
|
}, {
|
|
2167
2168
|
default: r(() => [
|
|
2168
2169
|
ko
|
|
@@ -2170,12 +2171,12 @@ function wo(e, t, l, n, o, a) {
|
|
|
2170
2171
|
_: 1
|
|
2171
2172
|
}, 8, ["onClick"]),
|
|
2172
2173
|
Eo,
|
|
2173
|
-
u(
|
|
2174
|
+
u(h, {
|
|
2174
2175
|
text: "PageSchema",
|
|
2175
2176
|
type: "modal"
|
|
2176
2177
|
}, {
|
|
2177
2178
|
default: r(() => [
|
|
2178
|
-
u(p, { data:
|
|
2179
|
+
u(p, { data: s.getSaveSchema }, null, 8, ["data"])
|
|
2179
2180
|
]),
|
|
2180
2181
|
_: 1
|
|
2181
2182
|
})
|
|
@@ -2187,13 +2188,13 @@ function wo(e, t, l, n, o, a) {
|
|
|
2187
2188
|
default: r(() => [
|
|
2188
2189
|
u(A, {
|
|
2189
2190
|
modelValue: o.currentCtrlType,
|
|
2190
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
2191
|
+
"onUpdate:modelValue": t[0] || (t[0] = (B) => o.currentCtrlType = B)
|
|
2191
2192
|
}, {
|
|
2192
2193
|
default: r(() => [
|
|
2193
|
-
(i(!0),
|
|
2194
|
+
(i(!0), f(k, null, $(o.types, (B, z) => (i(), m(_, {
|
|
2194
2195
|
key: z,
|
|
2195
|
-
label:
|
|
2196
|
-
value:
|
|
2196
|
+
label: B.label,
|
|
2197
|
+
value: B.value
|
|
2197
2198
|
}, null, 8, ["label", "value"]))), 128))
|
|
2198
2199
|
]),
|
|
2199
2200
|
_: 1
|
|
@@ -2204,10 +2205,10 @@ function wo(e, t, l, n, o, a) {
|
|
|
2204
2205
|
]),
|
|
2205
2206
|
_: 1
|
|
2206
2207
|
})) : E("", !0),
|
|
2207
|
-
(i(), m(
|
|
2208
|
+
(i(), m(a, q({
|
|
2208
2209
|
key: o.ctrlKey,
|
|
2209
2210
|
modelValue: o.ctrlOptions,
|
|
2210
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
2211
|
+
"onUpdate:modelValue": t[1] || (t[1] = (B) => o.ctrlOptions = B)
|
|
2211
2212
|
}, o.ctrlSchema), null, 16, ["modelValue"]))
|
|
2212
2213
|
]),
|
|
2213
2214
|
_: 1
|
|
@@ -2261,7 +2262,7 @@ const So = /* @__PURE__ */ C(go, [["render", wo], ["__scopeId", "data-v-d89bdb06
|
|
|
2261
2262
|
}
|
|
2262
2263
|
}
|
|
2263
2264
|
]
|
|
2264
|
-
},
|
|
2265
|
+
}, Bo = {
|
|
2265
2266
|
type: "select",
|
|
2266
2267
|
name: "\u4E0B\u62C9\u6846",
|
|
2267
2268
|
default: {
|
|
@@ -2362,7 +2363,7 @@ const So = /* @__PURE__ */ C(go, [["render", wo], ["__scopeId", "data-v-d89bdb06
|
|
|
2362
2363
|
const t = y(e);
|
|
2363
2364
|
return e.optionType === 0 ? t.props && t.props.selectApi !== void 0 && delete t.props.selectApi : e.optionType === 1 && t.options && delete t.options, delete t.optionType, t;
|
|
2364
2365
|
}
|
|
2365
|
-
},
|
|
2366
|
+
}, xo = {
|
|
2366
2367
|
type: "date",
|
|
2367
2368
|
name: "\u65E5\u671F",
|
|
2368
2369
|
default: {
|
|
@@ -2942,7 +2943,7 @@ const Uo = {
|
|
|
2942
2943
|
ctrlName: "",
|
|
2943
2944
|
activeIndex: void 0,
|
|
2944
2945
|
ctrlMap: {
|
|
2945
|
-
filter: { input: Co, select:
|
|
2946
|
+
filter: { input: Co, select: Bo, date: xo },
|
|
2946
2947
|
headers: Lo,
|
|
2947
2948
|
buttons: qo
|
|
2948
2949
|
},
|
|
@@ -2992,8 +2993,8 @@ const Uo = {
|
|
|
2992
2993
|
const o = n.trans ? n.trans(e) : e;
|
|
2993
2994
|
if (o && Object.keys(o).length > 0) {
|
|
2994
2995
|
if (o.type = l, this.activeIndex.indexOf("[") > -1) {
|
|
2995
|
-
const [
|
|
2996
|
-
this.builderSchema[
|
|
2996
|
+
const [s, a, c] = this.activeIndex.match(/(\w+)\[(\d+)\]/);
|
|
2997
|
+
this.builderSchema[a][c] = { ...o };
|
|
2997
2998
|
} else
|
|
2998
2999
|
this.builderSchema[this.activeIndex] = o;
|
|
2999
3000
|
this.key++;
|
|
@@ -3089,21 +3090,21 @@ const Uo = {
|
|
|
3089
3090
|
normalButton: n,
|
|
3090
3091
|
batchButton: o
|
|
3091
3092
|
}
|
|
3092
|
-
}).then(({ data:
|
|
3093
|
-
|
|
3093
|
+
}).then(({ data: s }) => {
|
|
3094
|
+
s && this.$message({ type: "success", message: "\u4FDD\u5B58\u6210\u529F, \u8BF7\u5237\u65B0\u9875\u9762\u67E5\u770B\u6548\u679C" });
|
|
3094
3095
|
});
|
|
3095
3096
|
}
|
|
3096
3097
|
}
|
|
3097
3098
|
}, Ho = /* @__PURE__ */ g("\u6DFB\u52A0\u641C\u7D22\u6761\u4EF6"), Go = /* @__PURE__ */ g("\u6587\u672C\u6846"), Jo = /* @__PURE__ */ g("\u4E0B\u62C9\u6846"), zo = /* @__PURE__ */ g("\u65E5\u671F"), Ko = /* @__PURE__ */ g("\u6DFB\u52A0\u5217\u8868\u9879"), Wo = /* @__PURE__ */ g("\u6DFB\u52A0\u884C\u6309\u94AE"), Zo = /* @__PURE__ */ g("\u6DFB\u52A0\u5E38\u89C4\u6309\u94AE"), Qo = /* @__PURE__ */ g("\u6309\u94AE\u7EC4"), Xo = /* @__PURE__ */ g("\u6DFB\u52A0\u6279\u91CF\u6309\u94AE"), Yo = /* @__PURE__ */ g("\u6309\u94AE\u7EC4"), en = /* @__PURE__ */ g("\u4FDD\u5B58\u9875\u9762\u914D\u7F6E"), tn = /* @__PURE__ */ g(" \xA0\xA0 ");
|
|
3098
|
-
function ln(e, t, l, n, o,
|
|
3099
|
-
const
|
|
3099
|
+
function ln(e, t, l, n, o, s) {
|
|
3100
|
+
const a = re, c = ae, d = le, p = v("v-table"), h = We, _ = ae, A = v("JsonView"), I = v("VButton"), U = we, V = Se, B = Ze, z = Qe, _t = v("v-form"), yt = v("dev-layout");
|
|
3100
3101
|
return i(), m(yt, null, {
|
|
3101
3102
|
"left-aside": r(() => [
|
|
3102
3103
|
u(d, { style: { width: "200px" } }, {
|
|
3103
3104
|
default: r(() => [
|
|
3104
3105
|
u(d, null, {
|
|
3105
3106
|
default: r(() => [
|
|
3106
|
-
u(
|
|
3107
|
+
u(a, {
|
|
3107
3108
|
class: "title",
|
|
3108
3109
|
"data-id": 22222
|
|
3109
3110
|
}, {
|
|
@@ -3112,11 +3113,11 @@ function ln(e, t, l, n, o, a) {
|
|
|
3112
3113
|
]),
|
|
3113
3114
|
_: 1
|
|
3114
3115
|
}),
|
|
3115
|
-
u(
|
|
3116
|
+
u(a, { class: "ctrl" }, {
|
|
3116
3117
|
default: r(() => [
|
|
3117
3118
|
u(c, {
|
|
3118
3119
|
class: "ctrl-btn",
|
|
3119
|
-
onClick: t[0] || (t[0] = (S) =>
|
|
3120
|
+
onClick: t[0] || (t[0] = (S) => s.pushFilter("input"))
|
|
3120
3121
|
}, {
|
|
3121
3122
|
default: r(() => [
|
|
3122
3123
|
Go
|
|
@@ -3126,11 +3127,11 @@ function ln(e, t, l, n, o, a) {
|
|
|
3126
3127
|
]),
|
|
3127
3128
|
_: 1
|
|
3128
3129
|
}),
|
|
3129
|
-
u(
|
|
3130
|
+
u(a, { class: "ctrl" }, {
|
|
3130
3131
|
default: r(() => [
|
|
3131
3132
|
u(c, {
|
|
3132
3133
|
class: "ctrl-btn",
|
|
3133
|
-
onClick: t[1] || (t[1] = (S) =>
|
|
3134
|
+
onClick: t[1] || (t[1] = (S) => s.pushFilter("select"))
|
|
3134
3135
|
}, {
|
|
3135
3136
|
default: r(() => [
|
|
3136
3137
|
Jo
|
|
@@ -3140,11 +3141,11 @@ function ln(e, t, l, n, o, a) {
|
|
|
3140
3141
|
]),
|
|
3141
3142
|
_: 1
|
|
3142
3143
|
}),
|
|
3143
|
-
u(
|
|
3144
|
+
u(a, { class: "ctrl" }, {
|
|
3144
3145
|
default: r(() => [
|
|
3145
3146
|
u(c, {
|
|
3146
3147
|
class: "ctrl-btn",
|
|
3147
|
-
onClick: t[2] || (t[2] = (S) =>
|
|
3148
|
+
onClick: t[2] || (t[2] = (S) => s.pushFilter("date"))
|
|
3148
3149
|
}, {
|
|
3149
3150
|
default: r(() => [
|
|
3150
3151
|
zo
|
|
@@ -3159,23 +3160,23 @@ function ln(e, t, l, n, o, a) {
|
|
|
3159
3160
|
}),
|
|
3160
3161
|
u(d, null, {
|
|
3161
3162
|
default: r(() => [
|
|
3162
|
-
u(
|
|
3163
|
+
u(a, { class: "title" }, {
|
|
3163
3164
|
default: r(() => [
|
|
3164
3165
|
Ko
|
|
3165
3166
|
]),
|
|
3166
3167
|
_: 1
|
|
3167
3168
|
}),
|
|
3168
|
-
(i(!0),
|
|
3169
|
+
(i(!0), f(k, null, $(Object.keys(o.ctrlMap.headers), (S, M) => (i(), m(a, {
|
|
3169
3170
|
key: `column-${M}`,
|
|
3170
3171
|
class: "ctrl"
|
|
3171
3172
|
}, {
|
|
3172
3173
|
default: r(() => [
|
|
3173
3174
|
u(c, {
|
|
3174
3175
|
class: "ctrl-btn",
|
|
3175
|
-
onClick: (pe) =>
|
|
3176
|
+
onClick: (pe) => s.pushHeaders(o.ctrlMap.headers[S].type)
|
|
3176
3177
|
}, {
|
|
3177
3178
|
default: r(() => [
|
|
3178
|
-
g(
|
|
3179
|
+
g(x(o.ctrlMap.headers[S].name), 1)
|
|
3179
3180
|
]),
|
|
3180
3181
|
_: 2
|
|
3181
3182
|
}, 1032, ["onClick"])
|
|
@@ -3187,23 +3188,23 @@ function ln(e, t, l, n, o, a) {
|
|
|
3187
3188
|
}),
|
|
3188
3189
|
u(d, null, {
|
|
3189
3190
|
default: r(() => [
|
|
3190
|
-
u(
|
|
3191
|
+
u(a, { class: "title" }, {
|
|
3191
3192
|
default: r(() => [
|
|
3192
3193
|
Wo
|
|
3193
3194
|
]),
|
|
3194
3195
|
_: 1
|
|
3195
3196
|
}),
|
|
3196
|
-
(i(!0),
|
|
3197
|
+
(i(!0), f(k, null, $(Object.keys(o.ctrlMap.buttons), (S, M) => (i(), m(a, {
|
|
3197
3198
|
key: `column-${M}`,
|
|
3198
3199
|
class: "ctrl"
|
|
3199
3200
|
}, {
|
|
3200
3201
|
default: r(() => [
|
|
3201
3202
|
u(c, {
|
|
3202
3203
|
class: "ctrl-btn",
|
|
3203
|
-
onClick: (pe) =>
|
|
3204
|
+
onClick: (pe) => s.pushRowButton(o.ctrlMap.buttons[S].type)
|
|
3204
3205
|
}, {
|
|
3205
3206
|
default: r(() => [
|
|
3206
|
-
g(
|
|
3207
|
+
g(x(o.ctrlMap.buttons[S].name), 1)
|
|
3207
3208
|
]),
|
|
3208
3209
|
_: 2
|
|
3209
3210
|
}, 1032, ["onClick"])
|
|
@@ -3215,30 +3216,30 @@ function ln(e, t, l, n, o, a) {
|
|
|
3215
3216
|
}),
|
|
3216
3217
|
u(d, null, {
|
|
3217
3218
|
default: r(() => [
|
|
3218
|
-
u(
|
|
3219
|
+
u(a, { class: "title" }, {
|
|
3219
3220
|
default: r(() => [
|
|
3220
3221
|
Zo
|
|
3221
3222
|
]),
|
|
3222
3223
|
_: 1
|
|
3223
3224
|
}),
|
|
3224
|
-
(i(!0),
|
|
3225
|
+
(i(!0), f(k, null, $(Object.keys(o.ctrlMap.buttons), (S, M) => (i(), m(a, {
|
|
3225
3226
|
key: `column-${M}`,
|
|
3226
3227
|
class: "ctrl"
|
|
3227
3228
|
}, {
|
|
3228
3229
|
default: r(() => [
|
|
3229
3230
|
u(c, {
|
|
3230
3231
|
class: "ctrl-btn",
|
|
3231
|
-
onClick: (pe) =>
|
|
3232
|
+
onClick: (pe) => s.pushNormalButton(o.ctrlMap.buttons[S].type)
|
|
3232
3233
|
}, {
|
|
3233
3234
|
default: r(() => [
|
|
3234
|
-
g(
|
|
3235
|
+
g(x(o.ctrlMap.buttons[S].name), 1)
|
|
3235
3236
|
]),
|
|
3236
3237
|
_: 2
|
|
3237
3238
|
}, 1032, ["onClick"])
|
|
3238
3239
|
]),
|
|
3239
3240
|
_: 2
|
|
3240
3241
|
}, 1024))), 128)),
|
|
3241
|
-
u(
|
|
3242
|
+
u(a, { class: "ctrl" }, {
|
|
3242
3243
|
default: r(() => [
|
|
3243
3244
|
u(c, { class: "ctrl-btn" }, {
|
|
3244
3245
|
default: r(() => [
|
|
@@ -3254,30 +3255,30 @@ function ln(e, t, l, n, o, a) {
|
|
|
3254
3255
|
}),
|
|
3255
3256
|
u(d, null, {
|
|
3256
3257
|
default: r(() => [
|
|
3257
|
-
u(
|
|
3258
|
+
u(a, { class: "title" }, {
|
|
3258
3259
|
default: r(() => [
|
|
3259
3260
|
Xo
|
|
3260
3261
|
]),
|
|
3261
3262
|
_: 1
|
|
3262
3263
|
}),
|
|
3263
|
-
(i(!0),
|
|
3264
|
+
(i(!0), f(k, null, $(Object.keys(o.ctrlMap.buttons), (S, M) => (i(), m(a, {
|
|
3264
3265
|
key: `column-${M}`,
|
|
3265
3266
|
class: "ctrl"
|
|
3266
3267
|
}, {
|
|
3267
3268
|
default: r(() => [
|
|
3268
3269
|
u(c, {
|
|
3269
3270
|
class: "ctrl-btn",
|
|
3270
|
-
onClick: (pe) =>
|
|
3271
|
+
onClick: (pe) => s.pushBatchButton(o.ctrlMap.buttons[S].type)
|
|
3271
3272
|
}, {
|
|
3272
3273
|
default: r(() => [
|
|
3273
|
-
g(
|
|
3274
|
+
g(x(o.ctrlMap.buttons[S].name), 1)
|
|
3274
3275
|
]),
|
|
3275
3276
|
_: 2
|
|
3276
3277
|
}, 1032, ["onClick"])
|
|
3277
3278
|
]),
|
|
3278
3279
|
_: 2
|
|
3279
3280
|
}, 1024))), 128)),
|
|
3280
|
-
u(
|
|
3281
|
+
u(a, { class: "ctrl" }, {
|
|
3281
3282
|
default: r(() => [
|
|
3282
3283
|
u(c, { class: "ctrl-btn" }, {
|
|
3283
3284
|
default: r(() => [
|
|
@@ -3301,10 +3302,10 @@ function ln(e, t, l, n, o, a) {
|
|
|
3301
3302
|
key: o.key,
|
|
3302
3303
|
dev: !0
|
|
3303
3304
|
}, o.builderSchema), null, 16)),
|
|
3304
|
-
u(
|
|
3305
|
+
u(h),
|
|
3305
3306
|
u(_, {
|
|
3306
3307
|
type: "primary",
|
|
3307
|
-
onClick:
|
|
3308
|
+
onClick: s.saveSchema
|
|
3308
3309
|
}, {
|
|
3309
3310
|
default: r(() => [
|
|
3310
3311
|
en
|
|
@@ -3317,7 +3318,7 @@ function ln(e, t, l, n, o, a) {
|
|
|
3317
3318
|
type: "modal"
|
|
3318
3319
|
}, {
|
|
3319
3320
|
default: r(() => [
|
|
3320
|
-
u(A, { data:
|
|
3321
|
+
u(A, { data: s.getSaveSchema }, null, 8, ["data"])
|
|
3321
3322
|
]),
|
|
3322
3323
|
_: 1
|
|
3323
3324
|
})
|
|
@@ -3325,14 +3326,14 @@ function ln(e, t, l, n, o, a) {
|
|
|
3325
3326
|
"right-aside": r(() => [
|
|
3326
3327
|
o.activeIndex ? (i(), m(z, { key: 0 }, {
|
|
3327
3328
|
default: r(() => [
|
|
3328
|
-
u(
|
|
3329
|
+
u(B, { label: "\u63A7\u4EF6\u7C7B\u578B" }, {
|
|
3329
3330
|
default: r(() => [
|
|
3330
3331
|
u(V, {
|
|
3331
3332
|
modelValue: o.currentCtrlType,
|
|
3332
3333
|
"onUpdate:modelValue": t[3] || (t[3] = (S) => o.currentCtrlType = S)
|
|
3333
3334
|
}, {
|
|
3334
3335
|
default: r(() => [
|
|
3335
|
-
(i(!0),
|
|
3336
|
+
(i(!0), f(k, null, $(s.types, (S, M) => (i(), m(U, {
|
|
3336
3337
|
key: M,
|
|
3337
3338
|
label: S.label,
|
|
3338
3339
|
value: S.value
|
|
@@ -3363,16 +3364,16 @@ const on = /* @__PURE__ */ C(Uo, [["render", ln], ["__scopeId", "data-v-77db3a16
|
|
|
3363
3364
|
return { show: e, key: t, direction: l, pageSchema: o };
|
|
3364
3365
|
}
|
|
3365
3366
|
};
|
|
3366
|
-
function
|
|
3367
|
-
const
|
|
3368
|
-
return i(),
|
|
3369
|
-
u(
|
|
3367
|
+
function sn(e, t, l, n, o, s) {
|
|
3368
|
+
const a = v("VIcon"), c = v("form-builder"), d = v("table-builder"), p = Xe;
|
|
3369
|
+
return i(), f(k, null, [
|
|
3370
|
+
u(a, {
|
|
3370
3371
|
name: "ra-set",
|
|
3371
|
-
onClick: t[0] || (t[0] = (
|
|
3372
|
+
onClick: t[0] || (t[0] = (h) => n.show = !n.show)
|
|
3372
3373
|
}),
|
|
3373
3374
|
u(p, {
|
|
3374
3375
|
modelValue: n.show,
|
|
3375
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
3376
|
+
"onUpdate:modelValue": t[1] || (t[1] = (h) => n.show = h),
|
|
3376
3377
|
title: "\u9875\u9762\u8BBE\u8BA1",
|
|
3377
3378
|
"custom-class": "my-drawer",
|
|
3378
3379
|
direction: n.direction,
|
|
@@ -3394,13 +3395,13 @@ function an(e, t, l, n, o, a) {
|
|
|
3394
3395
|
}, 8, ["modelValue", "direction"])
|
|
3395
3396
|
], 64);
|
|
3396
3397
|
}
|
|
3397
|
-
const
|
|
3398
|
+
const an = /* @__PURE__ */ C(nn, [["render", sn]]);
|
|
3398
3399
|
const rn = {
|
|
3399
3400
|
components: {
|
|
3400
3401
|
Breadcrumb: Xl,
|
|
3401
3402
|
Hamburger: to,
|
|
3402
3403
|
VButton: Te,
|
|
3403
|
-
PageEditor:
|
|
3404
|
+
PageEditor: an
|
|
3404
3405
|
},
|
|
3405
3406
|
data() {
|
|
3406
3407
|
return {
|
|
@@ -3482,20 +3483,20 @@ const rn = {
|
|
|
3482
3483
|
class: "right-item-button",
|
|
3483
3484
|
style: { padding: "0" }
|
|
3484
3485
|
}, mn = { class: "user-info" }, fn = ["src"], hn = /* @__PURE__ */ g(), bn = { class: "user-name" }, _n = /* @__PURE__ */ g("\u9996\u9875"), yn = /* @__PURE__ */ g("\u9000\u51FA\u767B\u5F55");
|
|
3485
|
-
function vn(e, t, l, n, o,
|
|
3486
|
-
const
|
|
3487
|
-
return i(), m(
|
|
3486
|
+
function vn(e, t, l, n, o, s) {
|
|
3487
|
+
const a = v("hamburger"), c = v("breadcrumb"), d = re, p = v("VIcon"), h = v("PageEditor"), _ = v("v-button"), A = Dt, I = Ot, U = Pt, V = Xe, B = le;
|
|
3488
|
+
return i(), m(B, {
|
|
3488
3489
|
ref: "header",
|
|
3489
3490
|
class: "navbar",
|
|
3490
|
-
style: Et({ background:
|
|
3491
|
+
style: Et({ background: s.setting.envColor[s.user.env] })
|
|
3491
3492
|
}, {
|
|
3492
3493
|
default: r(() => [
|
|
3493
3494
|
u(d, { span: 16 }, {
|
|
3494
3495
|
default: r(() => [
|
|
3495
|
-
u(
|
|
3496
|
+
u(a, {
|
|
3496
3497
|
"is-active": e.sidebar.opened,
|
|
3497
3498
|
class: "hamburger-container",
|
|
3498
|
-
onToggleClick:
|
|
3499
|
+
onToggleClick: s.toggleSideBar
|
|
3499
3500
|
}, null, 8, ["is-active", "onToggleClick"]),
|
|
3500
3501
|
u(c, { class: "breadcrumb-container" })
|
|
3501
3502
|
]),
|
|
@@ -3507,11 +3508,11 @@ function vn(e, t, l, n, o, a) {
|
|
|
3507
3508
|
b("div", cn, [
|
|
3508
3509
|
u(p, {
|
|
3509
3510
|
name: "ra-code",
|
|
3510
|
-
onClick:
|
|
3511
|
+
onClick: s.gotoMenuEdit
|
|
3511
3512
|
}, null, 8, ["onClick"])
|
|
3512
3513
|
]),
|
|
3513
|
-
|
|
3514
|
-
u(
|
|
3514
|
+
s.showPageJsonSchemaIcon ? (i(), f("div", dn, [
|
|
3515
|
+
u(h)
|
|
3515
3516
|
])) : E("", !0),
|
|
3516
3517
|
b("div", pn, [
|
|
3517
3518
|
u(_, { buttons: e.nav }, null, 8, ["buttons"])
|
|
@@ -3535,7 +3536,7 @@ function vn(e, t, l, n, o, a) {
|
|
|
3535
3536
|
u(A, {
|
|
3536
3537
|
divided: "",
|
|
3537
3538
|
icon: "el-icon-switch-button",
|
|
3538
|
-
onClick:
|
|
3539
|
+
onClick: s.logout
|
|
3539
3540
|
}, {
|
|
3540
3541
|
default: r(() => [
|
|
3541
3542
|
yn
|
|
@@ -3554,7 +3555,7 @@ function vn(e, t, l, n, o, a) {
|
|
|
3554
3555
|
alt: "\u5934\u50CF"
|
|
3555
3556
|
}, null, 8, fn),
|
|
3556
3557
|
hn,
|
|
3557
|
-
b("span", bn,
|
|
3558
|
+
b("span", bn, x(e.nickname || e.name), 1)
|
|
3558
3559
|
])
|
|
3559
3560
|
]),
|
|
3560
3561
|
_: 1
|
|
@@ -3592,40 +3593,40 @@ const kn = {
|
|
|
3592
3593
|
}, En = (e) => (Je("data-v-49084925"), e = e(), ze(), e), wn = ["src"], Sn = {
|
|
3593
3594
|
key: 1,
|
|
3594
3595
|
class: "sidebar-title"
|
|
3595
|
-
}, Cn = /* @__PURE__ */ En(() => /* @__PURE__ */ b("div", null, "\u7CFB\u7EDF", -1)),
|
|
3596
|
-
function $n(e, t, l, n, o,
|
|
3597
|
-
const
|
|
3598
|
-
return i(),
|
|
3596
|
+
}, Cn = /* @__PURE__ */ En(() => /* @__PURE__ */ b("div", null, "\u7CFB\u7EDF", -1)), Bn = ["src"], xn = { class: "sidebar-title" };
|
|
3597
|
+
function $n(e, t, l, n, o, s) {
|
|
3598
|
+
const a = v("router-link");
|
|
3599
|
+
return i(), f("div", {
|
|
3599
3600
|
class: H(["sidebar-logo-container", { collapse: l.collapse }])
|
|
3600
3601
|
}, [
|
|
3601
3602
|
u(wt, { name: "sidebarLogoFade" }, {
|
|
3602
3603
|
default: r(() => [
|
|
3603
|
-
l.collapse ? (i(), m(
|
|
3604
|
+
l.collapse ? (i(), m(a, {
|
|
3604
3605
|
key: "collapse",
|
|
3605
3606
|
class: "sidebar-logo-link",
|
|
3606
3607
|
to: "/"
|
|
3607
3608
|
}, {
|
|
3608
3609
|
default: r(() => [
|
|
3609
|
-
|
|
3610
|
+
s.logo ? (i(), f("img", {
|
|
3610
3611
|
key: 0,
|
|
3611
|
-
src:
|
|
3612
|
+
src: s.logo,
|
|
3612
3613
|
class: "sidebar-logo"
|
|
3613
|
-
}, null, 8, wn)) : (i(),
|
|
3614
|
+
}, null, 8, wn)) : (i(), f("h1", Sn, x(s.title), 1)),
|
|
3614
3615
|
Cn
|
|
3615
3616
|
]),
|
|
3616
3617
|
_: 1
|
|
3617
|
-
})) : (i(), m(
|
|
3618
|
+
})) : (i(), m(a, {
|
|
3618
3619
|
key: "expand",
|
|
3619
3620
|
class: "sidebar-logo-link",
|
|
3620
3621
|
to: "/"
|
|
3621
3622
|
}, {
|
|
3622
3623
|
default: r(() => [
|
|
3623
|
-
|
|
3624
|
+
s.logo ? (i(), f("img", {
|
|
3624
3625
|
key: 0,
|
|
3625
|
-
src:
|
|
3626
|
+
src: s.logo,
|
|
3626
3627
|
class: "sidebar-logo"
|
|
3627
|
-
}, null, 8,
|
|
3628
|
-
b("h1",
|
|
3628
|
+
}, null, 8, Bn)) : E("", !0),
|
|
3629
|
+
b("h1", xn, x(s.title), 1)
|
|
3629
3630
|
]),
|
|
3630
3631
|
_: 1
|
|
3631
3632
|
}))
|
|
@@ -3673,8 +3674,8 @@ const In = /* @__PURE__ */ C(kn, [["render", $n], ["__scopeId", "data-v-49084925
|
|
|
3673
3674
|
}
|
|
3674
3675
|
}
|
|
3675
3676
|
};
|
|
3676
|
-
function Tn(e, t, l, n, o,
|
|
3677
|
-
return i(), m(Ke(
|
|
3677
|
+
function Tn(e, t, l, n, o, s) {
|
|
3678
|
+
return i(), m(Ke(s.compType(l.to)), J(Z(s.linkProps(l.to))), {
|
|
3678
3679
|
default: r(() => [
|
|
3679
3680
|
Y(e.$slots, "default")
|
|
3680
3681
|
]),
|
|
@@ -3715,11 +3716,11 @@ const Fn = /* @__PURE__ */ C(An, [["render", Tn]]), Dn = {
|
|
|
3715
3716
|
setup(e) {
|
|
3716
3717
|
return (t, l) => {
|
|
3717
3718
|
const n = v("VIcon");
|
|
3718
|
-
return i(),
|
|
3719
|
+
return i(), f(k, null, [
|
|
3719
3720
|
u(n, {
|
|
3720
3721
|
name: e.meta.icon || "ra-all"
|
|
3721
3722
|
}, null, 8, ["name"]),
|
|
3722
|
-
b("span", On,
|
|
3723
|
+
b("span", On, x(e.meta.title), 1)
|
|
3723
3724
|
], 64);
|
|
3724
3725
|
};
|
|
3725
3726
|
}
|
|
@@ -3757,10 +3758,10 @@ const Fn = /* @__PURE__ */ C(An, [["render", Tn]]), Dn = {
|
|
|
3757
3758
|
key: 0,
|
|
3758
3759
|
class: "menu-wrapper"
|
|
3759
3760
|
};
|
|
3760
|
-
function Mn(e, t, l, n, o,
|
|
3761
|
-
const
|
|
3762
|
-
return l.item.hidden !== !1 ? (i(),
|
|
3763
|
-
l.item.meta && l.item.meta.menuType === 2 ? (i(),
|
|
3761
|
+
function Mn(e, t, l, n, o, s) {
|
|
3762
|
+
const a = v("menu-content"), c = Rt, d = v("app-link"), p = v("sidebar-item", !0), h = Lt;
|
|
3763
|
+
return l.item.hidden !== !1 ? (i(), f("div", Ln, [
|
|
3764
|
+
l.item.meta && l.item.meta.menuType === 2 ? (i(), f(k, { key: 0 }, [
|
|
3764
3765
|
l.item.meta ? (i(), m(d, {
|
|
3765
3766
|
key: 0,
|
|
3766
3767
|
to: l.to,
|
|
@@ -3772,7 +3773,7 @@ function Mn(e, t, l, n, o, a) {
|
|
|
3772
3773
|
class: H({ "submenu-title-noDropdown": !l.isNest })
|
|
3773
3774
|
}, {
|
|
3774
3775
|
default: r(() => [
|
|
3775
|
-
u(
|
|
3776
|
+
u(a, {
|
|
3776
3777
|
meta: l.item.meta
|
|
3777
3778
|
}, null, 8, ["meta"])
|
|
3778
3779
|
]),
|
|
@@ -3781,7 +3782,7 @@ function Mn(e, t, l, n, o, a) {
|
|
|
3781
3782
|
]),
|
|
3782
3783
|
_: 1
|
|
3783
3784
|
}, 8, ["to", "new-tab"])) : E("", !0)
|
|
3784
|
-
], 64)) : l.item.meta && l.item.meta.menuType === 1 ? (i(), m(
|
|
3785
|
+
], 64)) : l.item.meta && l.item.meta.menuType === 1 ? (i(), m(h, {
|
|
3785
3786
|
key: 1,
|
|
3786
3787
|
ref: "subMenu",
|
|
3787
3788
|
index: l.to,
|
|
@@ -3794,22 +3795,22 @@ function Mn(e, t, l, n, o, a) {
|
|
|
3794
3795
|
to: l.to
|
|
3795
3796
|
}, {
|
|
3796
3797
|
default: r(() => [
|
|
3797
|
-
u(
|
|
3798
|
+
u(a, {
|
|
3798
3799
|
meta: l.item.meta
|
|
3799
3800
|
}, null, 8, ["meta"])
|
|
3800
3801
|
]),
|
|
3801
3802
|
_: 1
|
|
3802
|
-
}, 8, ["to"])) : (i(), m(
|
|
3803
|
+
}, 8, ["to"])) : (i(), m(a, {
|
|
3803
3804
|
key: 1,
|
|
3804
3805
|
meta: l.item.meta
|
|
3805
3806
|
}, null, 8, ["meta"]))
|
|
3806
3807
|
]),
|
|
3807
3808
|
default: r(() => [
|
|
3808
|
-
(i(!0),
|
|
3809
|
+
(i(!0), f(k, null, $(l.item.children, (_) => (i(), m(p, {
|
|
3809
3810
|
key: _.path,
|
|
3810
3811
|
"is-nest": !0,
|
|
3811
3812
|
item: _,
|
|
3812
|
-
to:
|
|
3813
|
+
to: s.getTo(_),
|
|
3813
3814
|
class: "nest-menu"
|
|
3814
3815
|
}, null, 8, ["item", "to"]))), 128))
|
|
3815
3816
|
]),
|
|
@@ -3845,39 +3846,39 @@ const Nn = {
|
|
|
3845
3846
|
}
|
|
3846
3847
|
}
|
|
3847
3848
|
};
|
|
3848
|
-
function Vn(e, t, l, n, o,
|
|
3849
|
-
const
|
|
3849
|
+
function Vn(e, t, l, n, o, s) {
|
|
3850
|
+
const a = we, c = Mt, d = Se;
|
|
3850
3851
|
return i(), m(d, {
|
|
3851
3852
|
modelValue: o.selected,
|
|
3852
3853
|
"onUpdate:modelValue": t[0] || (t[0] = (p) => o.selected = p),
|
|
3853
3854
|
filterable: "",
|
|
3854
3855
|
placeholder: "\u641C\u7D22\u83DC\u5355...",
|
|
3855
3856
|
class: "search-menu",
|
|
3856
|
-
onChange:
|
|
3857
|
+
onChange: s.onselected
|
|
3857
3858
|
}, {
|
|
3858
3859
|
default: r(() => [
|
|
3859
|
-
(i(!0),
|
|
3860
|
+
(i(!0), f(k, null, $(s.filterRoutes, (p) => (i(), f(k, {
|
|
3860
3861
|
key: p.path
|
|
3861
3862
|
}, [
|
|
3862
|
-
p.children !== void 0 ? (i(),
|
|
3863
|
+
p.children !== void 0 ? (i(), f(k, { key: 0 }, [
|
|
3863
3864
|
p.meta.menuType !== 0 ? (i(), m(c, {
|
|
3864
3865
|
key: p.path + "-",
|
|
3865
3866
|
label: p.meta.title
|
|
3866
3867
|
}, {
|
|
3867
3868
|
default: r(() => [
|
|
3868
|
-
(i(!0),
|
|
3869
|
-
key:
|
|
3869
|
+
(i(!0), f(k, null, $(p.children, (h, _) => (i(), f(k, {
|
|
3870
|
+
key: h.path
|
|
3870
3871
|
}, [
|
|
3871
|
-
p.meta.menuType !== 0 ? (i(), m(
|
|
3872
|
+
p.meta.menuType !== 0 ? (i(), m(a, {
|
|
3872
3873
|
key: 0,
|
|
3873
|
-
label: (_ === p.children.length - 1 ? "\u2514\u2500" : "\u251C\u2500") +
|
|
3874
|
-
value:
|
|
3874
|
+
label: (_ === p.children.length - 1 ? "\u2514\u2500" : "\u251C\u2500") + h.meta.title,
|
|
3875
|
+
value: h.path
|
|
3875
3876
|
}, null, 8, ["label", "value"])) : E("", !0)
|
|
3876
3877
|
], 64))), 128))
|
|
3877
3878
|
]),
|
|
3878
3879
|
_: 2
|
|
3879
3880
|
}, 1032, ["label"])) : E("", !0)
|
|
3880
|
-
], 64)) : (i(), m(
|
|
3881
|
+
], 64)) : (i(), m(a, {
|
|
3881
3882
|
key: 1,
|
|
3882
3883
|
label: "" + p.meta.title,
|
|
3883
3884
|
value: p.path
|
|
@@ -3944,16 +3945,16 @@ const Un = N({
|
|
|
3944
3945
|
}
|
|
3945
3946
|
}
|
|
3946
3947
|
});
|
|
3947
|
-
function Hn(e, t, l, n, o,
|
|
3948
|
-
const
|
|
3949
|
-
return i(),
|
|
3948
|
+
function Hn(e, t, l, n, o, s) {
|
|
3949
|
+
const a = v("logo"), c = v("search-menu"), d = v("sidebar-item"), p = jt, h = Nt;
|
|
3950
|
+
return i(), f("div", {
|
|
3950
3951
|
class: H({ "has-logo": e.showLogo })
|
|
3951
3952
|
}, [
|
|
3952
|
-
e.showLogo ? (i(), m(
|
|
3953
|
+
e.showLogo ? (i(), m(a, {
|
|
3953
3954
|
key: 0,
|
|
3954
3955
|
collapse: e.isCollapse
|
|
3955
3956
|
}, null, 8, ["collapse"])) : E("", !0),
|
|
3956
|
-
u(
|
|
3957
|
+
u(h, { "wrap-class": "scrollbar-wrapper" }, {
|
|
3957
3958
|
default: r(() => [
|
|
3958
3959
|
e.isCollapse ? E("", !0) : (i(), m(c, { key: 0 })),
|
|
3959
3960
|
u(p, {
|
|
@@ -3967,10 +3968,10 @@ function Hn(e, t, l, n, o, a) {
|
|
|
3967
3968
|
mode: "vertical"
|
|
3968
3969
|
}, {
|
|
3969
3970
|
default: r(() => [
|
|
3970
|
-
(i(!0),
|
|
3971
|
+
(i(!0), f(k, null, $(e.routes, (_, A) => (i(), f(k, {
|
|
3971
3972
|
key: A + "-module"
|
|
3972
3973
|
}, [
|
|
3973
|
-
(i(!0),
|
|
3974
|
+
(i(!0), f(k, null, $(e.filterRoute(_.routes), (I) => (i(), m(d, {
|
|
3974
3975
|
key: I.path,
|
|
3975
3976
|
item: I,
|
|
3976
3977
|
to: e.$router.resolve(I.redirect ? I.redirect : I).fullPath
|
|
@@ -3992,10 +3993,10 @@ const Jn = { class: "app-main" }, zn = {
|
|
|
3992
3993
|
return rl(() => {
|
|
3993
3994
|
var o;
|
|
3994
3995
|
(o = t.meta) != null && o.keepAlive && l.indexOf(t.name) && l.push(t.name), n.value++;
|
|
3995
|
-
}), (o,
|
|
3996
|
-
const
|
|
3997
|
-
return i(),
|
|
3998
|
-
(i(), m(
|
|
3996
|
+
}), (o, s) => {
|
|
3997
|
+
const a = v("router-view"), c = Vt;
|
|
3998
|
+
return i(), f("section", Jn, [
|
|
3999
|
+
(i(), m(a, {
|
|
3999
4000
|
key: o.$route.fullPath + n.value
|
|
4000
4001
|
})),
|
|
4001
4002
|
u(c, { bottom: 50 })
|
|
@@ -4006,25 +4007,25 @@ const Jn = { class: "app-main" }, zn = {
|
|
|
4006
4007
|
const Wn = { class: "main-container" }, Zn = {
|
|
4007
4008
|
__name: "index",
|
|
4008
4009
|
setup(e) {
|
|
4009
|
-
const t = lt(), { body: l } = document, n = 992, o = j(() => t.state.app.sidebar),
|
|
4010
|
+
const t = lt(), { body: l } = document, n = 992, o = j(() => t.state.app.sidebar), s = j(() => t.state.app.device), a = j(() => t.state.settings.fixedHeader), c = j(() => ({
|
|
4010
4011
|
hideSidebar: !o.value.opened,
|
|
4011
4012
|
openSidebar: o.value.opened,
|
|
4012
4013
|
withoutAnimation: o.value.withoutAnimation,
|
|
4013
|
-
mobile:
|
|
4014
|
+
mobile: s.value === "mobile"
|
|
4014
4015
|
})), d = () => l.getBoundingClientRect().width - 1 < n;
|
|
4015
|
-
hl(window, "resize", () =>
|
|
4016
|
+
hl(window, "resize", () => h());
|
|
4016
4017
|
const p = () => {
|
|
4017
4018
|
t.dispatch("app/closeSideBar", { withoutAnimation: !1 });
|
|
4018
|
-
},
|
|
4019
|
+
}, h = () => {
|
|
4019
4020
|
if (!document.hidden) {
|
|
4020
4021
|
const _ = d();
|
|
4021
4022
|
t.dispatch("app/toggleDevice", _ ? "mobile" : "desktop"), _ && t.dispatch("app/closeSideBar", { withoutAnimation: !0 });
|
|
4022
4023
|
}
|
|
4023
4024
|
};
|
|
4024
|
-
return (_, A) => (i(),
|
|
4025
|
+
return (_, A) => (i(), f("div", {
|
|
4025
4026
|
class: H([T(c), "app-wrapper"])
|
|
4026
4027
|
}, [
|
|
4027
|
-
T(
|
|
4028
|
+
T(s) === "mobile" && T(o).opened ? (i(), f("div", {
|
|
4028
4029
|
key: 0,
|
|
4029
4030
|
class: "drawer-bg",
|
|
4030
4031
|
onClick: p
|
|
@@ -4032,7 +4033,7 @@ const Wn = { class: "main-container" }, Zn = {
|
|
|
4032
4033
|
u(T(Gn), { class: "sidebar-container" }),
|
|
4033
4034
|
b("div", Wn, [
|
|
4034
4035
|
b("div", {
|
|
4035
|
-
class: H({ "fixed-header": T(
|
|
4036
|
+
class: H({ "fixed-header": T(a) })
|
|
4036
4037
|
}, [
|
|
4037
4038
|
u(T(gn))
|
|
4038
4039
|
], 2),
|
|
@@ -4064,11 +4065,11 @@ class Xn extends Qn {
|
|
|
4064
4065
|
}
|
|
4065
4066
|
showQrCode() {
|
|
4066
4067
|
const t = (o) => {
|
|
4067
|
-
const
|
|
4068
|
+
const s = {
|
|
4068
4069
|
appid: this.appid,
|
|
4069
4070
|
redirect_uri: encodeURIComponent(this.redirectUri)
|
|
4070
4071
|
};
|
|
4071
|
-
return K(this.reloadUrl,
|
|
4072
|
+
return K(this.reloadUrl, s) + "&" + Qt(o || {});
|
|
4072
4073
|
}, l = () => {
|
|
4073
4074
|
const o = {
|
|
4074
4075
|
goto: encodeURIComponent(t()),
|
|
@@ -4076,8 +4077,8 @@ class Xn extends Qn {
|
|
|
4076
4077
|
};
|
|
4077
4078
|
return K(this.qrCodeUrl, o);
|
|
4078
4079
|
}, n = (o) => {
|
|
4079
|
-
const { origin:
|
|
4080
|
-
|
|
4080
|
+
const { origin: s, data: a } = o;
|
|
4081
|
+
s === "https://login.dingtalk.com" && (window.location.href = t({ loginTmpCode: a }));
|
|
4081
4082
|
};
|
|
4082
4083
|
this.iframe.src = l(), Zt({ elId: this.elId, attrs: this.iframe }), typeof window.addEventListener < "u" ? window.addEventListener(
|
|
4083
4084
|
"message",
|
|
@@ -4089,33 +4090,33 @@ class Xn extends Qn {
|
|
|
4089
4090
|
const Yn = {
|
|
4090
4091
|
dingtalk: (e) => new Xn(e)
|
|
4091
4092
|
};
|
|
4092
|
-
function
|
|
4093
|
+
function es() {
|
|
4093
4094
|
return O(w.state.settings.sso || {}, Yn);
|
|
4094
4095
|
}
|
|
4095
|
-
function
|
|
4096
|
-
const t =
|
|
4096
|
+
function ts(e) {
|
|
4097
|
+
const t = es(), l = w.state.settings.activeSsoKey || "", n = t[l];
|
|
4097
4098
|
if (n !== void 0)
|
|
4098
4099
|
return n(e);
|
|
4099
4100
|
}
|
|
4100
|
-
const
|
|
4101
|
+
const ls = { id: "login" }, os = /* @__PURE__ */ b("h1", { id: "title" }, "\u767B\u5F55", -1), ns = { id: "form" }, ss = { class: "tips" }, as = { class: "sso" }, is = /* @__PURE__ */ b("div", { id: "sso-qrcode" }, null, -1), rs = /* @__PURE__ */ N({
|
|
4101
4102
|
__name: "login",
|
|
4102
4103
|
setup(e) {
|
|
4103
4104
|
const t = ul(), l = ue(), n = j(() => w.state.settings.loginTips), o = R({
|
|
4104
4105
|
username: "",
|
|
4105
4106
|
password: ""
|
|
4106
|
-
}),
|
|
4107
|
+
}), s = () => {
|
|
4107
4108
|
if (o.value.username === "" || o.value.password === "") {
|
|
4108
4109
|
qt.error("\u8BF7\u586B\u5199\u7528\u6237\u540D\u548C\u5BC6\u7801");
|
|
4109
4110
|
return;
|
|
4110
4111
|
}
|
|
4111
|
-
w.dispatch("user/login", o.value).then((
|
|
4112
|
+
w.dispatch("user/login", o.value).then((a) => {
|
|
4112
4113
|
var c;
|
|
4113
4114
|
t.push({ path: ((c = l.query) == null ? void 0 : c.redirect) || "/" });
|
|
4114
4115
|
});
|
|
4115
4116
|
};
|
|
4116
|
-
return R(), (
|
|
4117
|
-
|
|
4118
|
-
b("form",
|
|
4117
|
+
return R(), (a, c) => (i(), f("div", ls, [
|
|
4118
|
+
os,
|
|
4119
|
+
b("form", ns, [
|
|
4119
4120
|
_e(b("input", {
|
|
4120
4121
|
"onUpdate:modelValue": c[0] || (c[0] = (d) => o.value.username = d),
|
|
4121
4122
|
type: "text",
|
|
@@ -4134,22 +4135,22 @@ const la = { id: "login" }, oa = /* @__PURE__ */ b("h1", { id: "title" }, "\u767
|
|
|
4134
4135
|
]),
|
|
4135
4136
|
b("div", {
|
|
4136
4137
|
class: "input button",
|
|
4137
|
-
onClick:
|
|
4138
|
+
onClick: s
|
|
4138
4139
|
}, "\u767B\u5F55"),
|
|
4139
|
-
b("div",
|
|
4140
|
-
b("div", null,
|
|
4140
|
+
b("div", ss, [
|
|
4141
|
+
b("div", null, x(T(n)), 1)
|
|
4141
4142
|
]),
|
|
4142
|
-
b("div",
|
|
4143
|
-
|
|
4144
|
-
(i(!0),
|
|
4143
|
+
b("div", as, [
|
|
4144
|
+
is,
|
|
4145
|
+
(i(!0), f(k, null, $(Object.keys([]), (d) => (i(), f("div", { key: d }, x(d), 1))), 128))
|
|
4145
4146
|
])
|
|
4146
4147
|
])
|
|
4147
4148
|
]));
|
|
4148
4149
|
}
|
|
4149
4150
|
});
|
|
4150
|
-
const
|
|
4151
|
+
const us = {
|
|
4151
4152
|
name: "NotFoundPage"
|
|
4152
|
-
}, pt = (e) => (Je("data-v-26068803"), e = e(), ze(), e),
|
|
4153
|
+
}, pt = (e) => (Je("data-v-26068803"), e = e(), ze(), e), cs = { class: "not-found" }, ds = /* @__PURE__ */ pt(() => /* @__PURE__ */ b("svg", {
|
|
4153
4154
|
width: "380px",
|
|
4154
4155
|
height: "500px",
|
|
4155
4156
|
viewBox: "0 0 837 1045",
|
|
@@ -4202,7 +4203,7 @@ const ua = {
|
|
|
4202
4203
|
"sketch:type": "MSShapeGroup"
|
|
4203
4204
|
})
|
|
4204
4205
|
])
|
|
4205
|
-
], -1)),
|
|
4206
|
+
], -1)), ps = /* @__PURE__ */ pt(() => /* @__PURE__ */ b("div", { class: "message-box" }, [
|
|
4206
4207
|
/* @__PURE__ */ b("h1", null, "404"),
|
|
4207
4208
|
/* @__PURE__ */ b("p", null, "Page not found"),
|
|
4208
4209
|
/* @__PURE__ */ b("div", { class: "buttons-con" }, [
|
|
@@ -4213,14 +4214,14 @@ const ua = {
|
|
|
4213
4214
|
}, "Go to Home Page")
|
|
4214
4215
|
])
|
|
4215
4216
|
])
|
|
4216
|
-
], -1)),
|
|
4217
|
-
|
|
4218
|
-
|
|
4217
|
+
], -1)), ms = [
|
|
4218
|
+
ds,
|
|
4219
|
+
ps
|
|
4219
4220
|
];
|
|
4220
|
-
function
|
|
4221
|
-
return i(),
|
|
4221
|
+
function fs(e, t, l, n, o, s) {
|
|
4222
|
+
return i(), f("div", cs, ms);
|
|
4222
4223
|
}
|
|
4223
|
-
const
|
|
4224
|
+
const hs = /* @__PURE__ */ C(us, [["render", fs], ["__scopeId", "data-v-26068803"]]), bs = [
|
|
4224
4225
|
{
|
|
4225
4226
|
path: "/",
|
|
4226
4227
|
component: dt,
|
|
@@ -4240,22 +4241,22 @@ const ha = /* @__PURE__ */ C(ua, [["render", fa], ["__scopeId", "data-v-26068803
|
|
|
4240
4241
|
},
|
|
4241
4242
|
{
|
|
4242
4243
|
path: "/login",
|
|
4243
|
-
component:
|
|
4244
|
+
component: rs,
|
|
4244
4245
|
meta: { title: "\u7528\u6237\u767B\u5F55", menuType: 0 },
|
|
4245
4246
|
hidden: !0
|
|
4246
4247
|
},
|
|
4247
4248
|
{
|
|
4248
4249
|
path: "/404",
|
|
4249
|
-
component:
|
|
4250
|
+
component: hs,
|
|
4250
4251
|
meta: { menuType: 0 },
|
|
4251
4252
|
hidden: !0
|
|
4252
4253
|
}
|
|
4253
4254
|
], te = cl({
|
|
4254
4255
|
history: dl(),
|
|
4255
|
-
routes:
|
|
4256
|
+
routes: bs
|
|
4256
4257
|
});
|
|
4257
4258
|
ve.configure({ showSpinner: !1 });
|
|
4258
|
-
function
|
|
4259
|
+
function _s(e) {
|
|
4259
4260
|
e.beforeEach((t, l, n) => {
|
|
4260
4261
|
ve.start(), t.preHash = location.hash.replace("#", ""), n();
|
|
4261
4262
|
}), e.afterEach((t) => {
|
|
@@ -4265,46 +4266,46 @@ function _a(e) {
|
|
|
4265
4266
|
}), ve.done();
|
|
4266
4267
|
});
|
|
4267
4268
|
}
|
|
4268
|
-
function
|
|
4269
|
+
function ys() {
|
|
4269
4270
|
return w.state.user.isLodeRemoteRoutes;
|
|
4270
4271
|
}
|
|
4271
4272
|
function mt() {
|
|
4272
4273
|
return w.state.settings.whiteRoutes || [];
|
|
4273
4274
|
}
|
|
4274
|
-
function
|
|
4275
|
+
function vs() {
|
|
4275
4276
|
return w.state.user.token;
|
|
4276
4277
|
}
|
|
4277
|
-
function
|
|
4278
|
+
function gs(e) {
|
|
4278
4279
|
e.beforeEach(async (t, l, n) => {
|
|
4279
4280
|
var d, p;
|
|
4280
4281
|
if (mt().indexOf(t.path) !== -1) {
|
|
4281
4282
|
n();
|
|
4282
4283
|
return;
|
|
4283
4284
|
}
|
|
4284
|
-
if (
|
|
4285
|
+
if (vs()) {
|
|
4285
4286
|
(d = t.query) != null && d.redirect ? n((p = t.query) == null ? void 0 : p.redirect) : n();
|
|
4286
4287
|
return;
|
|
4287
4288
|
}
|
|
4288
|
-
const
|
|
4289
|
-
if (!
|
|
4290
|
-
n(`/login?redirect=${
|
|
4289
|
+
const s = t.query.redirect || t.path, a = ts({});
|
|
4290
|
+
if (!a) {
|
|
4291
|
+
n(`/login?redirect=${s}`);
|
|
4291
4292
|
return;
|
|
4292
4293
|
}
|
|
4293
|
-
const c =
|
|
4294
|
+
const c = a.flag();
|
|
4294
4295
|
if (c && await w.dispatch("user/login", { ticket: c })) {
|
|
4295
4296
|
n();
|
|
4296
4297
|
return;
|
|
4297
4298
|
}
|
|
4298
|
-
|
|
4299
|
+
a.jumpToLoginPage(n, `/login?redirect=${s}`);
|
|
4299
4300
|
});
|
|
4300
4301
|
}
|
|
4301
|
-
const
|
|
4302
|
-
|
|
4302
|
+
const ks = {}, Es = { class: "loading preloader" }, ws = /* @__PURE__ */ b("div", { class: "preloader-inner" }, null, -1), Ss = [
|
|
4303
|
+
ws
|
|
4303
4304
|
];
|
|
4304
|
-
function
|
|
4305
|
-
return i(),
|
|
4305
|
+
function Cs(e, t) {
|
|
4306
|
+
return i(), f("div", Es, Ss);
|
|
4306
4307
|
}
|
|
4307
|
-
const ft = /* @__PURE__ */ C(
|
|
4308
|
+
const ft = /* @__PURE__ */ C(ks, [["render", Cs]]), Bs = N({
|
|
4308
4309
|
components: { VLoading: ft },
|
|
4309
4310
|
props: {
|
|
4310
4311
|
schemaHandler: {
|
|
@@ -4324,46 +4325,62 @@ const ft = /* @__PURE__ */ C(ka, [["render", Ca]]), xa = N({
|
|
|
4324
4325
|
haveNotice: !1,
|
|
4325
4326
|
notice: {},
|
|
4326
4327
|
schema: {},
|
|
4327
|
-
owners: []
|
|
4328
|
+
owners: [],
|
|
4329
|
+
serviceOffLine: !1
|
|
4328
4330
|
};
|
|
4329
4331
|
},
|
|
4332
|
+
computed: {
|
|
4333
|
+
env() {
|
|
4334
|
+
return this.$store.state.user.env;
|
|
4335
|
+
},
|
|
4336
|
+
setting() {
|
|
4337
|
+
return this.$store.state.settings;
|
|
4338
|
+
}
|
|
4339
|
+
},
|
|
4330
4340
|
beforeCreate() {
|
|
4331
4341
|
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 };
|
|
4332
4342
|
this.$http.get(this.$props.schemaApi || l, n).then(({ data: o }) => {
|
|
4333
|
-
this.loading = !1, o.notice !== void 0 && (this.haveNotice = !0,
|
|
4343
|
+
this.loading = !1, o.notice !== void 0 && (this.haveNotice = !0, xe(o.notice) ? this.notice = {
|
|
4334
4344
|
title: o.notice
|
|
4335
|
-
} : $e(o.notice) && (this.notice = o.notice), delete o.notice), this.owners = o.ownerNames || [], this.schema = this.$props.schemaHandler(o, t), w.commit("app/SET_PAGE_JSON_SCHEMA", { page: this.$route.path, json: this.schema });
|
|
4345
|
+
} : $e(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), w.commit("app/SET_PAGE_JSON_SCHEMA", { page: this.$route.path, json: this.schema });
|
|
4336
4346
|
});
|
|
4337
4347
|
}
|
|
4338
4348
|
});
|
|
4339
|
-
|
|
4340
|
-
|
|
4341
|
-
|
|
4342
|
-
|
|
4349
|
+
const xs = ["innerHTML"];
|
|
4350
|
+
function $s(e, t, l, n, o, s) {
|
|
4351
|
+
const a = ye, c = ye, d = ft;
|
|
4352
|
+
return i(), f(k, null, [
|
|
4353
|
+
e.owners.length > 0 ? (i(), m(a, {
|
|
4343
4354
|
key: 0,
|
|
4344
4355
|
title: `\u8BE5\u9875\u9762\u529F\u80FD\u5BF9\u5E94\u5F00\u53D1: [ ${e.owners.join(", ")} ] \u6709\u95EE\u9898\u53EF\u76F4\u63A5\u4F01\u5FAE\u53CD\u9988`,
|
|
4345
4356
|
type: "info",
|
|
4346
4357
|
style: { margin: "0 0 20px 0" },
|
|
4347
4358
|
closable: !1
|
|
4348
4359
|
}, null, 8, ["title"])) : E("", !0),
|
|
4349
|
-
e.
|
|
4350
|
-
|
|
4360
|
+
e.env === "prod" && e.serviceOffLine ? (i(), f("div", {
|
|
4361
|
+
key: 1,
|
|
4362
|
+
class: "offline-notice",
|
|
4363
|
+
innerHTML: e.serviceOffLine === !0 ? e.setting.serviceOffLineNotice : e.serviceOffLine
|
|
4364
|
+
}, null, 8, xs)) : (i(), f(k, { key: 2 }, [
|
|
4365
|
+
e.haveNotice ? (i(), m(c, q({ key: 0 }, e.notice, { style: { margin: "0 0 20px 0" } }), null, 16)) : E("", !0),
|
|
4366
|
+
e.loading ? (i(), m(d, { key: 1 })) : Y(e.$slots, "default", J(q({ key: 2 }, e.schema)), void 0, !0)
|
|
4367
|
+
], 64))
|
|
4351
4368
|
], 64);
|
|
4352
4369
|
}
|
|
4353
|
-
const de = /* @__PURE__ */ C(
|
|
4370
|
+
const de = /* @__PURE__ */ C(Bs, [["render", $s], ["__scopeId", "data-v-2ad53b38"]]), ht = {
|
|
4354
4371
|
__name: "table",
|
|
4355
4372
|
setup(e) {
|
|
4356
4373
|
const t = (l, n) => {
|
|
4357
4374
|
if (l.orderBy) {
|
|
4358
|
-
const
|
|
4375
|
+
const s = {
|
|
4359
4376
|
prop: l.orderBy.field,
|
|
4360
4377
|
order: l.orderBy.mod === "desc" ? "descending" : "ascending"
|
|
4361
4378
|
};
|
|
4362
|
-
l.tableProps = O(l.tableProps, { defaultSort:
|
|
4379
|
+
l.tableProps = O(l.tableProps, { defaultSort: s });
|
|
4363
4380
|
}
|
|
4364
4381
|
const o = Object.keys(ie.props);
|
|
4365
|
-
return Object.keys(l).forEach((
|
|
4366
|
-
o.indexOf(
|
|
4382
|
+
return Object.keys(l).forEach((s) => {
|
|
4383
|
+
o.indexOf(s) === -1 && delete l[s];
|
|
4367
4384
|
}), l.listApi === void 0 && (l.listApi = `/${n}/list`), l;
|
|
4368
4385
|
};
|
|
4369
4386
|
return (l, n) => (i(), m(de, { "schema-handler": t }, {
|
|
@@ -4377,13 +4394,13 @@ const de = /* @__PURE__ */ C(xa, [["render", Ba]]), ht = {
|
|
|
4377
4394
|
__name: "form",
|
|
4378
4395
|
setup(e) {
|
|
4379
4396
|
const t = ue(), l = (n, o) => {
|
|
4380
|
-
const
|
|
4381
|
-
return Object.keys(n).forEach((
|
|
4382
|
-
if (
|
|
4383
|
-
delete n[
|
|
4397
|
+
const s = Object.keys(W.props);
|
|
4398
|
+
return Object.keys(n).forEach((a) => {
|
|
4399
|
+
if (s.indexOf(a) === -1) {
|
|
4400
|
+
delete n[a];
|
|
4384
4401
|
return;
|
|
4385
4402
|
}
|
|
4386
|
-
/.*Api$/.test(
|
|
4403
|
+
/.*Api$/.test(a) && (n[a] = K(n[a], t.params));
|
|
4387
4404
|
}), 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({
|
|
4388
4405
|
saveApi: o + "/save",
|
|
4389
4406
|
afterSubmit: "goback",
|
|
@@ -4392,13 +4409,13 @@ const de = /* @__PURE__ */ C(xa, [["render", Ba]]), ht = {
|
|
|
4392
4409
|
}, n), n;
|
|
4393
4410
|
};
|
|
4394
4411
|
return (n, o) => (i(), m(de, { "schema-handler": l }, {
|
|
4395
|
-
default: r((
|
|
4396
|
-
u(T(W), J(Z(
|
|
4412
|
+
default: r((s) => [
|
|
4413
|
+
u(T(W), J(Z(s)), null, 16)
|
|
4397
4414
|
]),
|
|
4398
4415
|
_: 1
|
|
4399
4416
|
}));
|
|
4400
4417
|
}
|
|
4401
|
-
},
|
|
4418
|
+
}, Is = N({
|
|
4402
4419
|
name: "VTree",
|
|
4403
4420
|
components: {
|
|
4404
4421
|
VForm: W
|
|
@@ -4495,9 +4512,9 @@ const de = /* @__PURE__ */ C(xa, [["render", Ba]]), ht = {
|
|
|
4495
4512
|
this.type = 2, this.formData = e, this.formkey++;
|
|
4496
4513
|
},
|
|
4497
4514
|
append(e, t) {
|
|
4498
|
-
var n, o,
|
|
4515
|
+
var n, o, s;
|
|
4499
4516
|
this.type = 1;
|
|
4500
|
-
const l = { pid: e.id, [(o = (n = this.$props.props) == null ? void 0 : n.levelKey) != null ? o : "level"]: t.level + 1, ...Xt((
|
|
4517
|
+
const l = { pid: e.id, [(o = (n = this.$props.props) == null ? void 0 : n.levelKey) != null ? o : "level"]: t.level + 1, ...Xt((s = this.$props.props) == null ? void 0 : s.effectData, e) };
|
|
4501
4518
|
console.log(111, l), e.children || (e.children = []), this.formData = l, this.formkey++, e.children.push(l), this.treeData = [...this.treeData];
|
|
4502
4519
|
},
|
|
4503
4520
|
canAppend(e, t) {
|
|
@@ -4534,38 +4551,38 @@ const de = /* @__PURE__ */ C(xa, [["render", Ba]]), ht = {
|
|
|
4534
4551
|
method: "POST",
|
|
4535
4552
|
url: K(this.$props.saveApi, o),
|
|
4536
4553
|
data: o
|
|
4537
|
-
}).then(({ code:
|
|
4538
|
-
|
|
4554
|
+
}).then(({ code: s }) => {
|
|
4555
|
+
s !== 0 && this.$message.error("\u64CD\u4F5C\u5931\u8D25");
|
|
4539
4556
|
});
|
|
4540
4557
|
}
|
|
4541
4558
|
}
|
|
4542
4559
|
});
|
|
4543
|
-
const
|
|
4560
|
+
const As = { class: "card-header" }, Ts = /* @__PURE__ */ b("span", null, "\u5217\u8868", -1), Fs = /* @__PURE__ */ g("\u6DFB\u52A0"), Ds = { class: "tree-action" }, Os = { key: 0 }, Ps = {
|
|
4544
4561
|
key: 1,
|
|
4545
4562
|
style: { color: "#E6A23C" }
|
|
4546
|
-
},
|
|
4547
|
-
function
|
|
4548
|
-
const l =
|
|
4563
|
+
}, Rs = /* @__PURE__ */ g("\u7F16\u8F91"), Ls = /* @__PURE__ */ g("\u6DFB\u52A0"), Ms = /* @__PURE__ */ g("\u5220\u9664"), js = { class: "card-header" };
|
|
4564
|
+
function Ns(e, t) {
|
|
4565
|
+
const l = ae, n = Ut, o = Ce, s = re, a = v("v-form"), c = le;
|
|
4549
4566
|
return i(), m(c, {
|
|
4550
4567
|
class: "tree-box",
|
|
4551
4568
|
gutter: 20
|
|
4552
4569
|
}, {
|
|
4553
4570
|
default: r(() => [
|
|
4554
|
-
u(
|
|
4571
|
+
u(s, {
|
|
4555
4572
|
span: 8,
|
|
4556
4573
|
class: "tree-tree"
|
|
4557
4574
|
}, {
|
|
4558
4575
|
default: r(() => [
|
|
4559
4576
|
u(o, { shadow: "never" }, {
|
|
4560
4577
|
header: r(() => [
|
|
4561
|
-
b("div",
|
|
4562
|
-
|
|
4578
|
+
b("div", As, [
|
|
4579
|
+
Ts,
|
|
4563
4580
|
u(l, {
|
|
4564
4581
|
type: "text",
|
|
4565
4582
|
onClick: t[0] || (t[0] = () => e.appendNew())
|
|
4566
4583
|
}, {
|
|
4567
4584
|
default: r(() => [
|
|
4568
|
-
|
|
4585
|
+
Fs
|
|
4569
4586
|
]),
|
|
4570
4587
|
_: 1
|
|
4571
4588
|
})
|
|
@@ -4584,8 +4601,8 @@ function ja(e, t) {
|
|
|
4584
4601
|
onNodeDragEnd: e.handleDragEnd
|
|
4585
4602
|
}), {
|
|
4586
4603
|
default: r(({ node: d, data: p }) => [
|
|
4587
|
-
b("span",
|
|
4588
|
-
p[e.localTreeProps.props.label] ? (i(),
|
|
4604
|
+
b("span", Ds, [
|
|
4605
|
+
p[e.localTreeProps.props.label] ? (i(), f("span", Os, x(p[e.localTreeProps.props.label]), 1)) : (i(), f("span", Ps, "\u8BF7\u5728\u53F3\u4FA7\u8868\u5355\u4E2D\u4FEE\u6539 --> ")),
|
|
4589
4606
|
b("span", null, [
|
|
4590
4607
|
p[e.localTreeProps.props.label] ? (i(), m(l, {
|
|
4591
4608
|
key: 0,
|
|
@@ -4594,7 +4611,7 @@ function ja(e, t) {
|
|
|
4594
4611
|
onClick: () => e.onclick(p)
|
|
4595
4612
|
}, {
|
|
4596
4613
|
default: r(() => [
|
|
4597
|
-
|
|
4614
|
+
Rs
|
|
4598
4615
|
]),
|
|
4599
4616
|
_: 2
|
|
4600
4617
|
}, 1032, ["onClick"])) : E("", !0),
|
|
@@ -4605,7 +4622,7 @@ function ja(e, t) {
|
|
|
4605
4622
|
onClick: () => e.append(p, d)
|
|
4606
4623
|
}, {
|
|
4607
4624
|
default: r(() => [
|
|
4608
|
-
|
|
4625
|
+
Ls
|
|
4609
4626
|
]),
|
|
4610
4627
|
_: 2
|
|
4611
4628
|
}, 1032, ["onClick"])) : E("", !0),
|
|
@@ -4616,7 +4633,7 @@ function ja(e, t) {
|
|
|
4616
4633
|
onClick: () => e.remove(p)
|
|
4617
4634
|
}, {
|
|
4618
4635
|
default: r(() => [
|
|
4619
|
-
|
|
4636
|
+
Ms
|
|
4620
4637
|
]),
|
|
4621
4638
|
_: 2
|
|
4622
4639
|
}, 1032, ["onClick"])) : E("", !0)
|
|
@@ -4631,7 +4648,7 @@ function ja(e, t) {
|
|
|
4631
4648
|
]),
|
|
4632
4649
|
_: 1
|
|
4633
4650
|
}),
|
|
4634
|
-
u(
|
|
4651
|
+
u(s, {
|
|
4635
4652
|
span: 16,
|
|
4636
4653
|
class: "tree-form"
|
|
4637
4654
|
}, {
|
|
@@ -4641,12 +4658,12 @@ function ja(e, t) {
|
|
|
4641
4658
|
shadow: "never"
|
|
4642
4659
|
}, {
|
|
4643
4660
|
header: r(() => [
|
|
4644
|
-
b("div",
|
|
4645
|
-
b("span", null,
|
|
4661
|
+
b("div", js, [
|
|
4662
|
+
b("span", null, x(e.formType), 1)
|
|
4646
4663
|
])
|
|
4647
4664
|
]),
|
|
4648
4665
|
default: r(() => [
|
|
4649
|
-
(i(), m(
|
|
4666
|
+
(i(), m(a, q({
|
|
4650
4667
|
key: e.formkey,
|
|
4651
4668
|
modelValue: e.formData,
|
|
4652
4669
|
"onUpdate:modelValue": t[1] || (t[1] = (d) => e.formData = d)
|
|
@@ -4661,13 +4678,13 @@ function ja(e, t) {
|
|
|
4661
4678
|
_: 1
|
|
4662
4679
|
});
|
|
4663
4680
|
}
|
|
4664
|
-
const Ue = /* @__PURE__ */ C(
|
|
4681
|
+
const Ue = /* @__PURE__ */ C(Is, [["render", Ns]]), Vs = {
|
|
4665
4682
|
__name: "tree",
|
|
4666
4683
|
setup(e) {
|
|
4667
4684
|
const t = (l, n) => {
|
|
4668
4685
|
const o = Object.keys(Ue.props);
|
|
4669
|
-
return Object.keys(l).forEach((
|
|
4670
|
-
o.indexOf(
|
|
4686
|
+
return Object.keys(l).forEach((s) => {
|
|
4687
|
+
o.indexOf(s) === -1 && delete l[s];
|
|
4671
4688
|
}), l;
|
|
4672
4689
|
};
|
|
4673
4690
|
return (l, n) => (i(), m(de, { "schema-handler": t }, {
|
|
@@ -4688,7 +4705,7 @@ const Ue = /* @__PURE__ */ C($a, [["render", ja]]), Na = {
|
|
|
4688
4705
|
return i(), m(o);
|
|
4689
4706
|
};
|
|
4690
4707
|
}
|
|
4691
|
-
},
|
|
4708
|
+
}, qs = {
|
|
4692
4709
|
title: {
|
|
4693
4710
|
text: ""
|
|
4694
4711
|
},
|
|
@@ -4717,34 +4734,34 @@ const Ue = /* @__PURE__ */ C($a, [["render", ja]]), Na = {
|
|
|
4717
4734
|
},
|
|
4718
4735
|
series: []
|
|
4719
4736
|
};
|
|
4720
|
-
function
|
|
4737
|
+
function Us(e, t, l) {
|
|
4721
4738
|
if (l.length === 0)
|
|
4722
4739
|
return {};
|
|
4723
|
-
let n = O({},
|
|
4724
|
-
if (n.title.text = e,
|
|
4725
|
-
const o = [],
|
|
4726
|
-
let
|
|
4740
|
+
let n = O({}, qs);
|
|
4741
|
+
if (n.title.text = e, xe(t)) {
|
|
4742
|
+
const o = [], s = Object.keys(l[0]);
|
|
4743
|
+
let a = s[0], c = s.filter((p, h) => h > 0), d = t;
|
|
4727
4744
|
if (t.indexOf(":") > -1) {
|
|
4728
|
-
const p = t.split(":"),
|
|
4729
|
-
d = p[0],
|
|
4745
|
+
const p = t.split(":"), h = p[1].split(",");
|
|
4746
|
+
d = p[0], a = h[0], c = h.filter((_, A) => A > 0);
|
|
4730
4747
|
}
|
|
4731
4748
|
c.forEach((p) => {
|
|
4732
|
-
const
|
|
4749
|
+
const h = [];
|
|
4733
4750
|
l.forEach((_) => {
|
|
4734
|
-
|
|
4751
|
+
h.push(_[p]);
|
|
4735
4752
|
}), n.series.push({
|
|
4736
4753
|
name: p,
|
|
4737
4754
|
type: d,
|
|
4738
4755
|
smooth: !0,
|
|
4739
|
-
data:
|
|
4756
|
+
data: h
|
|
4740
4757
|
}), n.legend.data.push(p);
|
|
4741
4758
|
}), l.forEach((p) => {
|
|
4742
|
-
o.push(p[
|
|
4759
|
+
o.push(p[a]);
|
|
4743
4760
|
}), n.xAxis.data = o;
|
|
4744
4761
|
}
|
|
4745
4762
|
return $e(t) && (n = O(n, t)), console.log(111, n), n;
|
|
4746
4763
|
}
|
|
4747
|
-
const
|
|
4764
|
+
const Hs = N({
|
|
4748
4765
|
name: "NumberPanel",
|
|
4749
4766
|
props: {
|
|
4750
4767
|
dataList: {
|
|
@@ -4755,27 +4772,27 @@ const Ua = N({
|
|
|
4755
4772
|
data() {
|
|
4756
4773
|
return {};
|
|
4757
4774
|
}
|
|
4758
|
-
}),
|
|
4759
|
-
function
|
|
4760
|
-
return i(!0),
|
|
4761
|
-
b("div",
|
|
4762
|
-
(i(!0),
|
|
4775
|
+
}), Gs = { class: "number-panel-title" }, Js = { class: "number" }, zs = { class: "name" };
|
|
4776
|
+
function Ks(e, t, l, n, o, s) {
|
|
4777
|
+
return i(!0), f(k, null, $(e.dataList, (a, c) => (i(), f("span", { key: c }, [
|
|
4778
|
+
b("div", Gs, [
|
|
4779
|
+
(i(!0), f(k, null, $(Object.keys(a), (d, p) => (i(), f("div", {
|
|
4763
4780
|
key: p,
|
|
4764
4781
|
class: "title-inner"
|
|
4765
4782
|
}, [
|
|
4766
|
-
b("p",
|
|
4767
|
-
b("p",
|
|
4783
|
+
b("p", Js, x(a[d]), 1),
|
|
4784
|
+
b("p", zs, x(d), 1)
|
|
4768
4785
|
]))), 128))
|
|
4769
4786
|
])
|
|
4770
4787
|
]))), 128);
|
|
4771
4788
|
}
|
|
4772
|
-
const
|
|
4789
|
+
const Ws = /* @__PURE__ */ C(Hs, [["render", Ks], ["__scopeId", "data-v-cc0d8293"]]), Zs = {
|
|
4773
4790
|
components: {
|
|
4774
|
-
Chart:
|
|
4791
|
+
Chart: sl,
|
|
4775
4792
|
Md: bl,
|
|
4776
4793
|
Json: Fe,
|
|
4777
4794
|
Table: ie,
|
|
4778
|
-
Number:
|
|
4795
|
+
Number: Ws,
|
|
4779
4796
|
Html: ""
|
|
4780
4797
|
},
|
|
4781
4798
|
props: {
|
|
@@ -4796,7 +4813,7 @@ const Ka = /* @__PURE__ */ C(Ua, [["render", za], ["__scopeId", "data-v-cc0d8293
|
|
|
4796
4813
|
};
|
|
4797
4814
|
if (o === "chart")
|
|
4798
4815
|
return {
|
|
4799
|
-
options:
|
|
4816
|
+
options: Us(n.id, n.chart, n.data)
|
|
4800
4817
|
};
|
|
4801
4818
|
if (o === "md")
|
|
4802
4819
|
return {
|
|
@@ -4805,11 +4822,11 @@ const Ka = /* @__PURE__ */ C(Ua, [["render", za], ["__scopeId", "data-v-cc0d8293
|
|
|
4805
4822
|
if (o === "table") {
|
|
4806
4823
|
if (!Yt(n.data))
|
|
4807
4824
|
return { showPagination: !1 };
|
|
4808
|
-
const
|
|
4809
|
-
return n.data[0] && Object.keys(n.data[0]).forEach((
|
|
4810
|
-
|
|
4825
|
+
const s = [];
|
|
4826
|
+
return n.data[0] && Object.keys(n.data[0]).forEach((a, c) => {
|
|
4827
|
+
s.push({ field: a, label: a });
|
|
4811
4828
|
}), {
|
|
4812
|
-
headers:
|
|
4829
|
+
headers: s,
|
|
4813
4830
|
list: n.data,
|
|
4814
4831
|
showPagination: !1
|
|
4815
4832
|
};
|
|
@@ -4820,9 +4837,9 @@ const Ka = /* @__PURE__ */ C(Ua, [["render", za], ["__scopeId", "data-v-cc0d8293
|
|
|
4820
4837
|
};
|
|
4821
4838
|
}
|
|
4822
4839
|
};
|
|
4823
|
-
function
|
|
4824
|
-
const
|
|
4825
|
-
return _e((i(), m(
|
|
4840
|
+
function Qs(e, t, l, n, o, s) {
|
|
4841
|
+
const a = Ce, c = St("resize");
|
|
4842
|
+
return _e((i(), m(a, {
|
|
4826
4843
|
shadow: "never",
|
|
4827
4844
|
class: "part"
|
|
4828
4845
|
}, {
|
|
@@ -4834,7 +4851,7 @@ function Za(e, t, l, n, o, a) {
|
|
|
4834
4851
|
[c, !0]
|
|
4835
4852
|
]);
|
|
4836
4853
|
}
|
|
4837
|
-
const
|
|
4854
|
+
const Xs = /* @__PURE__ */ C(Zs, [["render", Qs], ["__scopeId", "data-v-a5a65cc1"]]), Ys = /* @__PURE__ */ N({
|
|
4838
4855
|
__name: "index",
|
|
4839
4856
|
props: {
|
|
4840
4857
|
filter: {
|
|
@@ -4852,8 +4869,8 @@ const Qa = /* @__PURE__ */ C(Wa, [["render", Za], ["__scopeId", "data-v-a5a65cc1
|
|
|
4852
4869
|
});
|
|
4853
4870
|
const n = R({});
|
|
4854
4871
|
Ge(() => {
|
|
4855
|
-
var
|
|
4856
|
-
(
|
|
4872
|
+
var h;
|
|
4873
|
+
(h = t.filter) == null || h.forEach((_) => {
|
|
4857
4874
|
_.default !== null && (n.value[_.field] = _.default);
|
|
4858
4875
|
});
|
|
4859
4876
|
});
|
|
@@ -4867,23 +4884,23 @@ const Qa = /* @__PURE__ */ C(Wa, [["render", Za], ["__scopeId", "data-v-a5a65cc1
|
|
|
4867
4884
|
cancelButton: {
|
|
4868
4885
|
text: "\u91CD\u7F6E"
|
|
4869
4886
|
}
|
|
4870
|
-
},
|
|
4871
|
-
let
|
|
4872
|
-
if (!
|
|
4887
|
+
}, s = R(1), a = R(t.filter), c = R(t.dataPart), d = j(() => {
|
|
4888
|
+
let h = l.params.id;
|
|
4889
|
+
if (!h) {
|
|
4873
4890
|
const _ = l.path.split("/");
|
|
4874
|
-
|
|
4891
|
+
h = _[_.length - 1];
|
|
4875
4892
|
}
|
|
4876
|
-
return "/focusbi_report/view/" +
|
|
4877
|
-
}), p = (
|
|
4878
|
-
Hl.get(d.value, { params:
|
|
4879
|
-
|
|
4893
|
+
return "/focusbi_report/view/" + h;
|
|
4894
|
+
}), p = (h) => {
|
|
4895
|
+
Hl.get(d.value, { params: h }).then(({ data: _ }) => {
|
|
4896
|
+
a.value = _.filter, c.value = _.dataPart, s.value++;
|
|
4880
4897
|
});
|
|
4881
4898
|
};
|
|
4882
|
-
return (
|
|
4899
|
+
return (h, _) => {
|
|
4883
4900
|
const A = Ce, I = re, U = ye, V = le;
|
|
4884
4901
|
return i(), m(V, null, {
|
|
4885
4902
|
default: r(() => [
|
|
4886
|
-
|
|
4903
|
+
a.value.length > 0 ? (i(), m(I, {
|
|
4887
4904
|
key: 0,
|
|
4888
4905
|
span: 24
|
|
4889
4906
|
}, {
|
|
@@ -4895,8 +4912,8 @@ const Qa = /* @__PURE__ */ C(Wa, [["render", Za], ["__scopeId", "data-v-a5a65cc1
|
|
|
4895
4912
|
default: r(() => [
|
|
4896
4913
|
u(T(W), {
|
|
4897
4914
|
modelValue: n.value,
|
|
4898
|
-
"onUpdate:modelValue": _[0] || (_[0] = (
|
|
4899
|
-
"form-items":
|
|
4915
|
+
"onUpdate:modelValue": _[0] || (_[0] = (B) => n.value = B),
|
|
4916
|
+
"form-items": a.value,
|
|
4900
4917
|
options: o,
|
|
4901
4918
|
onSubmit: p
|
|
4902
4919
|
}, null, 8, ["modelValue", "form-items"])
|
|
@@ -4910,23 +4927,23 @@ const Qa = /* @__PURE__ */ C(Wa, [["render", Za], ["__scopeId", "data-v-a5a65cc1
|
|
|
4910
4927
|
default: r(() => [
|
|
4911
4928
|
u(V, { gutter: 20 }, {
|
|
4912
4929
|
default: r(() => [
|
|
4913
|
-
(i(!0),
|
|
4930
|
+
(i(!0), f(k, null, $(c.value, (B, z) => (i(), m(I, {
|
|
4914
4931
|
key: z,
|
|
4915
|
-
span:
|
|
4932
|
+
span: B.col || 24
|
|
4916
4933
|
}, {
|
|
4917
4934
|
default: r(() => [
|
|
4918
|
-
|
|
4935
|
+
B.errMsg ? (i(), m(U, {
|
|
4919
4936
|
key: 1,
|
|
4920
|
-
title:
|
|
4937
|
+
title: B.id + " \u7247\u6BB5\u6267\u884C\u51FA\u9519",
|
|
4921
4938
|
type: "error"
|
|
4922
4939
|
}, {
|
|
4923
4940
|
default: r(() => [
|
|
4924
|
-
g(B
|
|
4941
|
+
g(x(B.errMsg), 1)
|
|
4925
4942
|
]),
|
|
4926
4943
|
_: 2
|
|
4927
|
-
}, 1032, ["title"])) : (i(), m(
|
|
4928
|
-
key:
|
|
4929
|
-
option:
|
|
4944
|
+
}, 1032, ["title"])) : (i(), m(Xs, {
|
|
4945
|
+
key: s.value,
|
|
4946
|
+
option: B
|
|
4930
4947
|
}, null, 8, ["option"]))
|
|
4931
4948
|
]),
|
|
4932
4949
|
_: 2
|
|
@@ -4943,7 +4960,7 @@ const Qa = /* @__PURE__ */ C(Wa, [["render", Za], ["__scopeId", "data-v-a5a65cc1
|
|
|
4943
4960
|
};
|
|
4944
4961
|
}
|
|
4945
4962
|
});
|
|
4946
|
-
const
|
|
4963
|
+
const ea = {
|
|
4947
4964
|
__name: "report",
|
|
4948
4965
|
setup(e) {
|
|
4949
4966
|
const t = useRoute(), l = j(() => {
|
|
@@ -4955,18 +4972,18 @@ const Ya = {
|
|
|
4955
4972
|
return "/focusbi_report/view/" + n;
|
|
4956
4973
|
});
|
|
4957
4974
|
return (n, o) => (i(), m(de, { "schema-api": T(l) }, {
|
|
4958
|
-
default: r((
|
|
4959
|
-
u(
|
|
4975
|
+
default: r((s) => [
|
|
4976
|
+
u(Ys, J(Z(s)), null, 16)
|
|
4960
4977
|
]),
|
|
4961
4978
|
_: 1
|
|
4962
4979
|
}, 8, ["schema-api"]));
|
|
4963
4980
|
}
|
|
4964
4981
|
};
|
|
4965
4982
|
let X = {};
|
|
4966
|
-
function
|
|
4983
|
+
function bi(e) {
|
|
4967
4984
|
X = e;
|
|
4968
4985
|
}
|
|
4969
|
-
const
|
|
4986
|
+
const ta = (e) => {
|
|
4970
4987
|
const t = (l) => {
|
|
4971
4988
|
const n = "./views/" + l + ".vue";
|
|
4972
4989
|
return X && X[n] && X[n].default ? X[n].default : (console.error(`\u81EA\u5B9A\u4E49\u7EC4\u4EF6\u4E0D\u5B58\u5728 ${e.name} ${e.view}`), oe);
|
|
@@ -4982,26 +4999,26 @@ const es = (e) => {
|
|
|
4982
4999
|
case P.localComp:
|
|
4983
5000
|
return t(e.view || "");
|
|
4984
5001
|
case P.tree:
|
|
4985
|
-
return
|
|
5002
|
+
return Vs;
|
|
4986
5003
|
case P.report:
|
|
4987
|
-
return
|
|
5004
|
+
return ea;
|
|
4988
5005
|
case P.customSchema:
|
|
4989
5006
|
return oe;
|
|
4990
5007
|
}
|
|
4991
5008
|
return oe;
|
|
4992
5009
|
};
|
|
4993
|
-
function
|
|
5010
|
+
function la(e) {
|
|
4994
5011
|
let t = e.path;
|
|
4995
5012
|
return e.type === D.menu && e.page_type === P.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;
|
|
4996
5013
|
}
|
|
4997
|
-
function
|
|
5014
|
+
function oa(e) {
|
|
4998
5015
|
return (e.path + e.name).split("/").filter((t) => t).join("_");
|
|
4999
5016
|
}
|
|
5000
5017
|
const bt = (e) => {
|
|
5001
5018
|
const t = e.type !== D.page, l = {
|
|
5002
|
-
path:
|
|
5003
|
-
name: e.id + "_" +
|
|
5004
|
-
component:
|
|
5019
|
+
path: la(e),
|
|
5020
|
+
name: e.id + "_" + oa(e) + "_" + e.path.replaceAll("/", "_"),
|
|
5021
|
+
component: ta(e),
|
|
5005
5022
|
meta: {
|
|
5006
5023
|
id: e.id,
|
|
5007
5024
|
pageId: e.id,
|
|
@@ -5015,7 +5032,7 @@ const bt = (e) => {
|
|
|
5015
5032
|
children: e.children ? e.children.map((n) => bt(n)) : []
|
|
5016
5033
|
};
|
|
5017
5034
|
if (e.page_type === P.entity) {
|
|
5018
|
-
const n = e.path + "/list", o = e.path + "/form",
|
|
5035
|
+
const n = e.path + "/list", o = e.path + "/form", s = e.path + "/:id", a = [{
|
|
5019
5036
|
path: n,
|
|
5020
5037
|
name: e.name + "\u5217\u8868" + e.id,
|
|
5021
5038
|
component: ht,
|
|
@@ -5040,7 +5057,7 @@ const bt = (e) => {
|
|
|
5040
5057
|
pageId: e.id
|
|
5041
5058
|
}
|
|
5042
5059
|
}, {
|
|
5043
|
-
path:
|
|
5060
|
+
path: s,
|
|
5044
5061
|
name: e.name + "\u7F16\u8F91" + e.id,
|
|
5045
5062
|
component: Ee,
|
|
5046
5063
|
meta: {
|
|
@@ -5052,7 +5069,7 @@ const bt = (e) => {
|
|
|
5052
5069
|
pageId: e.id
|
|
5053
5070
|
}
|
|
5054
5071
|
}];
|
|
5055
|
-
l.children = [...
|
|
5072
|
+
l.children = [...a, ...l.children];
|
|
5056
5073
|
}
|
|
5057
5074
|
if (l.children && l.children.length > 0) {
|
|
5058
5075
|
let n = !0;
|
|
@@ -5061,16 +5078,16 @@ const bt = (e) => {
|
|
|
5061
5078
|
}), l.meta && (l.meta.menuType = t ? D.dir : D.hidden), n) {
|
|
5062
5079
|
l.meta && (l.meta.menuType = D.menu);
|
|
5063
5080
|
let o = "/";
|
|
5064
|
-
for (let
|
|
5065
|
-
if (l.children[
|
|
5066
|
-
o = l.children[
|
|
5081
|
+
for (let s = 0; s < l.children.length; s++)
|
|
5082
|
+
if (l.children[s].path.indexOf("/:") === -1) {
|
|
5083
|
+
o = l.children[s].path;
|
|
5067
5084
|
break;
|
|
5068
5085
|
}
|
|
5069
5086
|
l.redirect = o, l.path = "/" + e.id + "_DIR" + l.redirect.replaceAll("/", "_").toUpperCase();
|
|
5070
5087
|
}
|
|
5071
5088
|
}
|
|
5072
5089
|
return l;
|
|
5073
|
-
},
|
|
5090
|
+
}, na = (e) => {
|
|
5074
5091
|
const t = [];
|
|
5075
5092
|
return e.forEach((l) => {
|
|
5076
5093
|
const n = {
|
|
@@ -5083,47 +5100,47 @@ const bt = (e) => {
|
|
|
5083
5100
|
}), t.push(n);
|
|
5084
5101
|
}), t;
|
|
5085
5102
|
};
|
|
5086
|
-
function
|
|
5103
|
+
function sa(e) {
|
|
5087
5104
|
e.beforeEach(async (t, l, n) => {
|
|
5088
5105
|
if (mt().indexOf(t.path) !== -1) {
|
|
5089
5106
|
n();
|
|
5090
5107
|
return;
|
|
5091
5108
|
}
|
|
5092
|
-
if (
|
|
5109
|
+
if (ys()) {
|
|
5093
5110
|
n();
|
|
5094
5111
|
return;
|
|
5095
5112
|
}
|
|
5096
5113
|
await w.dispatch("user/info");
|
|
5097
|
-
const o = await w.dispatch("user/loadRemoteRoutes"),
|
|
5098
|
-
|
|
5099
|
-
|
|
5114
|
+
const o = await w.dispatch("user/loadRemoteRoutes"), s = na(o);
|
|
5115
|
+
s.forEach((a) => {
|
|
5116
|
+
a.routes.forEach((c) => {
|
|
5100
5117
|
e.addRoute({
|
|
5101
5118
|
path: "/",
|
|
5102
5119
|
component: dt,
|
|
5103
5120
|
children: [c]
|
|
5104
5121
|
});
|
|
5105
5122
|
});
|
|
5106
|
-
}), e.addRoute({ name: "404", path: "/:pathMatch(.*)*", redirect: "/404", hidden: !0 }), w.commit("user/updateRemoteRouter",
|
|
5123
|
+
}), e.addRoute({ name: "404", path: "/:pathMatch(.*)*", redirect: "/404", hidden: !0 }), w.commit("user/updateRemoteRouter", s), await e.replace(t), n();
|
|
5107
5124
|
});
|
|
5108
5125
|
}
|
|
5109
|
-
function
|
|
5126
|
+
function aa(e) {
|
|
5110
5127
|
e.beforeEach(async (t, l, n) => {
|
|
5111
5128
|
var c;
|
|
5112
|
-
const
|
|
5113
|
-
for (let d =
|
|
5129
|
+
const s = [w.state.settings.title || ""], a = t.matched.length;
|
|
5130
|
+
for (let d = a; d > a - 3; d--) {
|
|
5114
5131
|
const p = t.matched[d - 1];
|
|
5115
|
-
(c = p == null ? void 0 : p.meta) != null && c.title &&
|
|
5132
|
+
(c = p == null ? void 0 : p.meta) != null && c.title && s.push(p.meta.title + "");
|
|
5116
5133
|
}
|
|
5117
|
-
|
|
5134
|
+
s.length > 1 && (document.title = s.reverse().join("-")), n();
|
|
5118
5135
|
}), e.afterEach(async (t, l, n) => {
|
|
5119
5136
|
Object.keys(t.meta).length > 0 && await w.dispatch("app/setCurrentMeta", t.meta);
|
|
5120
5137
|
});
|
|
5121
5138
|
}
|
|
5122
|
-
function
|
|
5123
|
-
|
|
5139
|
+
function ia(e) {
|
|
5140
|
+
gs(e), _s(e), sa(e), aa(e);
|
|
5124
5141
|
}
|
|
5125
|
-
|
|
5126
|
-
const
|
|
5142
|
+
ia(te);
|
|
5143
|
+
const ra = {
|
|
5127
5144
|
beforeMount(e, t) {
|
|
5128
5145
|
e.clickOutsideEvent = function(l) {
|
|
5129
5146
|
e === l.target || e.contains(l.target) || t.value(l, e);
|
|
@@ -5132,13 +5149,13 @@ const is = {
|
|
|
5132
5149
|
unmounted(e) {
|
|
5133
5150
|
document.body.removeEventListener("click", e.clickOutsideEvent);
|
|
5134
5151
|
}
|
|
5135
|
-
}, G = fl(),
|
|
5152
|
+
}, G = fl(), ua = {
|
|
5136
5153
|
mounted: (e, t) => {
|
|
5137
5154
|
e !== null && (t.value, e.oncontextmenu = (l) => {
|
|
5138
5155
|
l.preventDefault(), l.stopPropagation(), l.cancelBubble = !0, t.value && G.emit("right-click", { event: l, data: t.value });
|
|
5139
5156
|
});
|
|
5140
5157
|
}
|
|
5141
|
-
},
|
|
5158
|
+
}, ca = {
|
|
5142
5159
|
mounted(e) {
|
|
5143
5160
|
}
|
|
5144
5161
|
};
|
|
@@ -5148,7 +5165,7 @@ function He(e, t) {
|
|
|
5148
5165
|
l += n[`offset${t}`], n = n.offsetParent;
|
|
5149
5166
|
return l;
|
|
5150
5167
|
}
|
|
5151
|
-
const
|
|
5168
|
+
const da = {
|
|
5152
5169
|
mounted: (e, t) => {
|
|
5153
5170
|
if (e === null || !t.value.dev)
|
|
5154
5171
|
return;
|
|
@@ -5163,57 +5180,57 @@ const cs = {
|
|
|
5163
5180
|
};
|
|
5164
5181
|
const o = document.createElement("span");
|
|
5165
5182
|
o.className = "dev-action-edit", o.title = "\u7F16\u8F91";
|
|
5166
|
-
const
|
|
5167
|
-
|
|
5183
|
+
const s = document.createElement("i");
|
|
5184
|
+
s.className = "iconfont ra-editor1", o.appendChild(s), o.onclick = (d) => {
|
|
5168
5185
|
G.emit("dev-action", { event: d, data: { type: "edit", devId: t.value.devId } });
|
|
5169
5186
|
}, n.appendChild(o);
|
|
5170
|
-
const
|
|
5171
|
-
|
|
5187
|
+
const a = document.createElement("span");
|
|
5188
|
+
a.className = "dev-action-del", a.title = "\u5220\u9664";
|
|
5172
5189
|
const c = document.createElement("i");
|
|
5173
|
-
c.className = "iconfont ra-cut",
|
|
5190
|
+
c.className = "iconfont ra-cut", a.appendChild(c), a.onclick = (d) => {
|
|
5174
5191
|
G.emit("dev-action", { event: d, data: { type: "del", devId: t.value.devId } });
|
|
5175
|
-
}, n.appendChild(
|
|
5192
|
+
}, n.appendChild(a), l.insertBefore(n, l.firstChild);
|
|
5176
5193
|
}
|
|
5177
|
-
},
|
|
5194
|
+
}, pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5178
5195
|
__proto__: null,
|
|
5179
|
-
outClick:
|
|
5180
|
-
rightClick:
|
|
5181
|
-
resize:
|
|
5182
|
-
devtool:
|
|
5196
|
+
outClick: ra,
|
|
5197
|
+
rightClick: ua,
|
|
5198
|
+
resize: ca,
|
|
5199
|
+
devtool: da
|
|
5183
5200
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5184
|
-
let
|
|
5185
|
-
function bi(e) {
|
|
5186
|
-
return e ? Pe(O(ce.axios, e)) : ae;
|
|
5187
|
-
}
|
|
5201
|
+
let se;
|
|
5188
5202
|
function _i(e) {
|
|
5189
|
-
|
|
5190
|
-
|
|
5191
|
-
|
|
5192
|
-
|
|
5203
|
+
return e ? Pe(O(ce.axios, e)) : se;
|
|
5204
|
+
}
|
|
5205
|
+
function yi(e) {
|
|
5206
|
+
const t = O(ce, e), l = Bt(_l), n = va(t), o = t.plugins || [];
|
|
5207
|
+
o.unshift(n), o.forEach((s) => {
|
|
5208
|
+
ya(l, s);
|
|
5209
|
+
}), t != null && t.mock && xl(), se = Pe(t.axios), w.dispatch("setHttp", se).then(), w.dispatch("settings/updateSettings", e == null ? void 0 : e.settings).then(), l.config.globalProperties.$http = se, l.config.globalProperties.$router = te, window.App = l, window.OmsOptions = t, al(() => ({
|
|
5193
5210
|
"X-Token": Oe()
|
|
5194
5211
|
})), te.isReady().then(() => l.mount("#app"));
|
|
5195
5212
|
}
|
|
5196
|
-
function
|
|
5213
|
+
function ma(e, t = {}) {
|
|
5197
5214
|
Object.keys(t).forEach((l) => {
|
|
5198
5215
|
e.component(l, t[l]);
|
|
5199
5216
|
});
|
|
5200
5217
|
}
|
|
5201
|
-
function
|
|
5218
|
+
function fa(e = []) {
|
|
5202
5219
|
e.forEach((t) => {
|
|
5203
5220
|
te.addRoute(t);
|
|
5204
5221
|
}), w.commit("user/setCustomRoutes", e);
|
|
5205
5222
|
}
|
|
5206
|
-
function
|
|
5223
|
+
function ha(e, t) {
|
|
5207
5224
|
t.forEach((l) => {
|
|
5208
5225
|
$e(l) && (l = [l]), e.use(...l);
|
|
5209
5226
|
});
|
|
5210
5227
|
}
|
|
5211
|
-
function
|
|
5228
|
+
function ba(e, t = {}) {
|
|
5212
5229
|
Object.keys(t).forEach((l) => {
|
|
5213
5230
|
e.directive(l, t[l]);
|
|
5214
5231
|
});
|
|
5215
5232
|
}
|
|
5216
|
-
function
|
|
5233
|
+
function _a(e = {}) {
|
|
5217
5234
|
const t = ["app", "settings", "user"];
|
|
5218
5235
|
Object.keys(e).forEach((l) => {
|
|
5219
5236
|
if (t.indexOf(l) !== -1) {
|
|
@@ -5223,18 +5240,18 @@ function bs(e = {}) {
|
|
|
5223
5240
|
w.registerModule(l, e[l]);
|
|
5224
5241
|
});
|
|
5225
5242
|
}
|
|
5226
|
-
function
|
|
5227
|
-
|
|
5243
|
+
function ya(e, t) {
|
|
5244
|
+
ma(e, t.components || {}), fa(t.routes || []), ha(e, t.use || []), ba(e, t.directives || {}), _a(t.storeModules || {}), nt(t.mockApis || []);
|
|
5228
5245
|
}
|
|
5229
|
-
function
|
|
5246
|
+
function va(e) {
|
|
5230
5247
|
var t;
|
|
5231
5248
|
return {
|
|
5232
5249
|
components: { VIcon: il },
|
|
5233
|
-
directives:
|
|
5250
|
+
directives: pa,
|
|
5234
5251
|
use: [
|
|
5235
5252
|
w,
|
|
5236
5253
|
te,
|
|
5237
|
-
[ll, { locale:
|
|
5254
|
+
[ll, { locale: Be, ...(t = e.settings) == null ? void 0 : t.ElementPlus }]
|
|
5238
5255
|
]
|
|
5239
5256
|
};
|
|
5240
5257
|
}
|
|
@@ -5247,15 +5264,15 @@ export {
|
|
|
5247
5264
|
Ne as Message,
|
|
5248
5265
|
Ve as MessageBox,
|
|
5249
5266
|
P as PageType,
|
|
5250
|
-
|
|
5251
|
-
|
|
5267
|
+
es as allSso,
|
|
5268
|
+
yi as createAdmin,
|
|
5252
5269
|
G as eventBus,
|
|
5253
5270
|
Gl as getCmp,
|
|
5254
|
-
|
|
5271
|
+
se as http,
|
|
5255
5272
|
Pe as instance,
|
|
5256
|
-
|
|
5257
|
-
|
|
5258
|
-
|
|
5259
|
-
|
|
5273
|
+
bi as regViews,
|
|
5274
|
+
hi as setCmp,
|
|
5275
|
+
na as transRemoteModules,
|
|
5276
|
+
_i as useHttp
|
|
5260
5277
|
};
|
|
5261
5278
|
//# sourceMappingURL=index.es.js.map
|