@okiss/oms 0.0.26 → 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 +330 -314
- 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,20 +1,20 @@
|
|
|
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
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
|
|
6
|
-
import
|
|
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
|
+
import fe from "mockjs";
|
|
7
7
|
import el, { cloneDeep as y, merge as O, get as ee, unset as tt } from "lodash";
|
|
8
|
-
import
|
|
8
|
+
import Ie from "axios";
|
|
9
9
|
import L from "js-cookie";
|
|
10
10
|
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
|
|
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
|
-
import { useRoute as
|
|
17
|
+
import { useRoute as ue, onBeforeRouteLeave as rl, useRouter as ul, createRouter as cl, createWebHashHistory as dl, onBeforeRouteUpdate as pl } from "vue-router";
|
|
18
18
|
import "element-plus/es/components/row/style/css";
|
|
19
19
|
import "element-plus/es/components/drawer/style/css";
|
|
20
20
|
import "element-plus/es/components/dropdown/style/css";
|
|
@@ -46,7 +46,7 @@ import "element-plus/es/components/card/style/css";
|
|
|
46
46
|
import "element-plus/es/components/tree/style/css";
|
|
47
47
|
import bl from "vue3-markdown-it";
|
|
48
48
|
import "element-plus/es/components/message/style/css";
|
|
49
|
-
import
|
|
49
|
+
import ve from "nprogress";
|
|
50
50
|
import "nprogress/nprogress.css";
|
|
51
51
|
String.prototype.format || (String.prototype.format = function() {
|
|
52
52
|
const e = arguments;
|
|
@@ -69,7 +69,7 @@ const _l = /* @__PURE__ */ N({
|
|
|
69
69
|
});
|
|
70
70
|
const t = Be;
|
|
71
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 =
|
|
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)
|
|
@@ -634,7 +634,7 @@ const yl = {
|
|
|
634
634
|
label: "span"
|
|
635
635
|
}
|
|
636
636
|
]
|
|
637
|
-
},
|
|
637
|
+
}, El = {
|
|
638
638
|
afterSubmit: "",
|
|
639
639
|
afterReset: "",
|
|
640
640
|
formItems: [
|
|
@@ -673,7 +673,7 @@ const yl = {
|
|
|
673
673
|
label: "span"
|
|
674
674
|
}
|
|
675
675
|
]
|
|
676
|
-
},
|
|
676
|
+
}, wl = { form: yl, table: vl, listMock: gl, layoutForm: kl, layoutSection: El }, Sl = [
|
|
677
677
|
{
|
|
678
678
|
method: Q.POST,
|
|
679
679
|
url: "/login",
|
|
@@ -717,14 +717,15 @@ const yl = {
|
|
|
717
717
|
{
|
|
718
718
|
url: "/user/list",
|
|
719
719
|
method: Q.GET,
|
|
720
|
-
response: (e) =>
|
|
720
|
+
response: (e) => wl.listMock
|
|
721
721
|
}
|
|
722
722
|
], Cl = [
|
|
723
723
|
...Sl
|
|
724
|
-
],
|
|
724
|
+
], Bl = {
|
|
725
725
|
baseURL: "/api",
|
|
726
726
|
withCredentials: !0,
|
|
727
|
-
timeout: 5e3
|
|
727
|
+
timeout: 5e3,
|
|
728
|
+
cacheEnable: !0
|
|
728
729
|
}, ot = {
|
|
729
730
|
title: "oms",
|
|
730
731
|
fixedHeader: !1,
|
|
@@ -748,31 +749,32 @@ const yl = {
|
|
|
748
749
|
envColor: {
|
|
749
750
|
uat: "gray",
|
|
750
751
|
pre: "green"
|
|
751
|
-
}
|
|
752
|
-
|
|
753
|
-
|
|
752
|
+
},
|
|
753
|
+
serviceOffLineNotice: "\u5F53\u524D\u9875\u9762\u529F\u80FD\u6B63\u5728\u7EF4\u62A4, \u8BF7\u7A0D\u540E\u518D\u8BD5~~~"
|
|
754
|
+
}, ce = {
|
|
755
|
+
axios: Bl,
|
|
754
756
|
settings: ot,
|
|
755
757
|
plugins: [],
|
|
756
758
|
mock: !1
|
|
757
|
-
},
|
|
759
|
+
}, ge = {};
|
|
758
760
|
function nt(e) {
|
|
759
761
|
e.forEach((t) => {
|
|
760
762
|
const l = st(t);
|
|
761
|
-
|
|
763
|
+
ge[`${t.method}::${l}`] = t;
|
|
762
764
|
});
|
|
763
765
|
}
|
|
764
766
|
nt(Cl);
|
|
765
767
|
function st(e) {
|
|
766
768
|
var n;
|
|
767
|
-
let t = e.url, l = e.baseURL || ((n =
|
|
769
|
+
let t = e.url, l = e.baseURL || ((n = ce.axios) == null ? void 0 : n.baseURL);
|
|
768
770
|
return l || (l = ""), typeof t == "string" ? (t = ("/" + l + t).split("/").filter((o) => o).join("/"), t += "(|\\?.*)$", new RegExp(t)) : t;
|
|
769
771
|
}
|
|
770
|
-
function
|
|
771
|
-
Object.keys(
|
|
772
|
-
const t =
|
|
773
|
-
|
|
774
|
-
const { url: o, type: s, body: a } = n, c = Jt(o), d = a ? JSON.parse(a) : {}, p = t.response({ query: c, data: d }),
|
|
775
|
-
return zt(o, { type: s, query: c, data: d, response:
|
|
772
|
+
function xl() {
|
|
773
|
+
Object.keys(ge).forEach((e) => {
|
|
774
|
+
const t = ge[e], l = st(t);
|
|
775
|
+
fe.mock(l, t.method, function(n) {
|
|
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);
|
|
776
778
|
});
|
|
777
779
|
}), console.log("%c ApiMock is stared! ", "background: #606060; color: #fff; padding: 4px 5px; border-radius: 1px;");
|
|
778
780
|
}
|
|
@@ -781,7 +783,7 @@ function Oe() {
|
|
|
781
783
|
return L.get(De) || "";
|
|
782
784
|
}
|
|
783
785
|
function $l(e) {
|
|
784
|
-
const t = new Date(new Date().getTime() + (
|
|
786
|
+
const t = new Date(new Date().getTime() + (w.state.settings.tokenExpire || 864e5));
|
|
785
787
|
return L.set(De, e, { expires: t });
|
|
786
788
|
}
|
|
787
789
|
function at() {
|
|
@@ -864,9 +866,9 @@ const Il = {
|
|
|
864
866
|
url: "/user/info",
|
|
865
867
|
method: "GET"
|
|
866
868
|
}).then((o) => {
|
|
867
|
-
var a, c, d, p,
|
|
869
|
+
var a, c, d, p, h;
|
|
868
870
|
const s = ((a = o.data) == null ? void 0 : a.role_ids) || [];
|
|
869
|
-
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", (
|
|
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);
|
|
870
872
|
}).catch((o) => {
|
|
871
873
|
n(o);
|
|
872
874
|
}) : n("http client not init");
|
|
@@ -970,7 +972,7 @@ const Il = {
|
|
|
970
972
|
e("SET_CURRENT_CELLITEM", t);
|
|
971
973
|
}
|
|
972
974
|
}
|
|
973
|
-
},
|
|
975
|
+
}, w = tl({
|
|
974
976
|
state: void 0,
|
|
975
977
|
getters: {
|
|
976
978
|
http: (e) => e.http,
|
|
@@ -1002,7 +1004,7 @@ const Il = {
|
|
|
1002
1004
|
app: Ol,
|
|
1003
1005
|
builderSchema: Rl
|
|
1004
1006
|
}
|
|
1005
|
-
}), Ne = ol, Ve = nl, Ll =
|
|
1007
|
+
}), Ne = ol, Ve = nl, Ll = Ie.CancelToken, ne = {
|
|
1006
1008
|
taskList: {},
|
|
1007
1009
|
cacheList: /* @__PURE__ */ new Map(),
|
|
1008
1010
|
uniqueId(e) {
|
|
@@ -1040,23 +1042,23 @@ const Il = {
|
|
|
1040
1042
|
}
|
|
1041
1043
|
}, Ml = {
|
|
1042
1044
|
onFulfilled: function(e) {
|
|
1043
|
-
return ne.pending(e) && ne.delTask(e), e.cancelToken = new Ll((t) => {
|
|
1045
|
+
return e.cacheEnable === !1 || (ne.pending(e) && ne.delTask(e), e.cancelToken = new Ll((t) => {
|
|
1044
1046
|
ne.addTask(e, t);
|
|
1045
|
-
}), e;
|
|
1047
|
+
})), e;
|
|
1046
1048
|
},
|
|
1047
1049
|
onRejected(e) {
|
|
1048
1050
|
return Promise.reject(e);
|
|
1049
1051
|
}
|
|
1050
1052
|
}, jl = {
|
|
1051
1053
|
onFulfilled: function(e) {
|
|
1052
|
-
return e.config.method === "get" && Object.keys(e.data).length > 0 && ne.addCache(e.config, e.data), e;
|
|
1054
|
+
return e.config.cacheEnable === !1 || e.config.method === "get" && Object.keys(e.data).length > 0 && ne.addCache(e.config, e.data), e;
|
|
1053
1055
|
},
|
|
1054
1056
|
onRejected(e) {
|
|
1055
1057
|
return Promise.reject(e);
|
|
1056
1058
|
}
|
|
1057
1059
|
};
|
|
1058
1060
|
function Nl() {
|
|
1059
|
-
return
|
|
1061
|
+
return w.state.user.token;
|
|
1060
1062
|
}
|
|
1061
1063
|
const Vl = {
|
|
1062
1064
|
onFulfilled: function(e) {
|
|
@@ -1068,7 +1070,7 @@ const Vl = {
|
|
|
1068
1070
|
onFulfilled(e) {
|
|
1069
1071
|
var n, o, s, a, c, d, p;
|
|
1070
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) {
|
|
1071
|
-
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]}`;
|
|
1072
1074
|
if (e.data.code === 401) {
|
|
1073
1075
|
Ve.alert("\u767B\u5F55\u4FE1\u606F\u5DF2\u8FC7\u671F\u6216\u672A\u767B\u5F55, \u662F\u5426\u8DF3\u8F6C\u767B\u5F55", "\u64CD\u4F5C\u63D0\u9192", {
|
|
1074
1076
|
showClose: !1,
|
|
@@ -1082,14 +1084,14 @@ const Vl = {
|
|
|
1082
1084
|
return;
|
|
1083
1085
|
} else
|
|
1084
1086
|
Ne({
|
|
1085
|
-
message:
|
|
1087
|
+
message: h,
|
|
1086
1088
|
type: "error",
|
|
1087
1089
|
duration: 5 * 1e3
|
|
1088
1090
|
});
|
|
1089
|
-
return Promise.reject(
|
|
1091
|
+
return Promise.reject(h);
|
|
1090
1092
|
}
|
|
1091
1093
|
let l = (c = (a = e.data) == null ? void 0 : a.data) == null ? void 0 : c._message_box;
|
|
1092
|
-
return l !== void 0 && (
|
|
1094
|
+
return l !== void 0 && (xe(l) && (l = {
|
|
1093
1095
|
message: (p = (d = e.data) == null ? void 0 : d.data) == null ? void 0 : p._message_box
|
|
1094
1096
|
}), Ve({
|
|
1095
1097
|
title: "\u63D0\u793A",
|
|
@@ -1099,7 +1101,7 @@ const Vl = {
|
|
|
1099
1101
|
},
|
|
1100
1102
|
onRejected(e) {
|
|
1101
1103
|
var t;
|
|
1102
|
-
return
|
|
1104
|
+
return Ie.isCancel(e) ? Promise.reject("") : (Ne({
|
|
1103
1105
|
message: `${e.message} ${e.config.method}::${(t = e.config.url) == null ? void 0 : t.split("?")[0]}`,
|
|
1104
1106
|
type: "error",
|
|
1105
1107
|
duration: 5 * 1e3
|
|
@@ -1116,9 +1118,7 @@ const Vl = {
|
|
|
1116
1118
|
}
|
|
1117
1119
|
];
|
|
1118
1120
|
function Pe(e = {}) {
|
|
1119
|
-
const t =
|
|
1120
|
-
ie.create(l);
|
|
1121
|
-
const n = ie.create({
|
|
1121
|
+
const t = ce.axios || {}, l = O(t, e || {}), n = Ie.create({
|
|
1122
1122
|
...l
|
|
1123
1123
|
});
|
|
1124
1124
|
return Ul.forEach((o) => {
|
|
@@ -1127,7 +1127,7 @@ function Pe(e = {}) {
|
|
|
1127
1127
|
}
|
|
1128
1128
|
const Hl = Pe();
|
|
1129
1129
|
const it = {};
|
|
1130
|
-
function
|
|
1130
|
+
function hi(e, t) {
|
|
1131
1131
|
it[e] = t;
|
|
1132
1132
|
}
|
|
1133
1133
|
function Gl(e) {
|
|
@@ -1206,14 +1206,14 @@ function Ql(e, t, l, n, o, s) {
|
|
|
1206
1206
|
default: r(() => [
|
|
1207
1207
|
u(gt, { name: "breadcrumb" }, {
|
|
1208
1208
|
default: r(() => [
|
|
1209
|
-
(i(!0),
|
|
1209
|
+
(i(!0), f(k, null, $(o.levelList, (d, p) => (i(), m(a, {
|
|
1210
1210
|
key: d.path
|
|
1211
1211
|
}, {
|
|
1212
1212
|
default: r(() => [
|
|
1213
|
-
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", {
|
|
1214
1214
|
key: 1,
|
|
1215
|
-
onClick: (
|
|
1216
|
-
},
|
|
1215
|
+
onClick: (h) => s.handleLink(d)
|
|
1216
|
+
}, x(d.meta.title), 9, Zl))
|
|
1217
1217
|
]),
|
|
1218
1218
|
_: 2
|
|
1219
1219
|
}, 1024))), 128))
|
|
@@ -1241,7 +1241,7 @@ const Xl = /* @__PURE__ */ C(Kl, [["render", Ql], ["__scopeId", "data-v-fa74804e
|
|
|
1241
1241
|
};
|
|
1242
1242
|
function eo(e, t, l, n, o, s) {
|
|
1243
1243
|
const a = v("v-icon");
|
|
1244
|
-
return i(),
|
|
1244
|
+
return i(), f("div", {
|
|
1245
1245
|
style: { padding: "0 15px" },
|
|
1246
1246
|
onClick: t[0] || (t[0] = (...c) => s.toggleClick && s.toggleClick(...c))
|
|
1247
1247
|
}, [
|
|
@@ -1876,7 +1876,7 @@ F(po);
|
|
|
1876
1876
|
F(mo);
|
|
1877
1877
|
F(ho);
|
|
1878
1878
|
F(fo);
|
|
1879
|
-
const
|
|
1879
|
+
const ke = ut, yo = {
|
|
1880
1880
|
options: {
|
|
1881
1881
|
labelPosition: "top",
|
|
1882
1882
|
submitButton: !1,
|
|
@@ -1975,13 +1975,13 @@ const we = ut, yo = {
|
|
|
1975
1975
|
}
|
|
1976
1976
|
]
|
|
1977
1977
|
};
|
|
1978
|
-
const
|
|
1978
|
+
const he = {
|
|
1979
1979
|
labelPosition: "top",
|
|
1980
1980
|
submitButton: !1,
|
|
1981
1981
|
cancelButton: !1
|
|
1982
1982
|
}, Re = [];
|
|
1983
|
-
Object.keys(
|
|
1984
|
-
Re.push({ value: e, label:
|
|
1983
|
+
Object.keys(ke).forEach((e) => {
|
|
1984
|
+
Re.push({ value: e, label: ke[e].name });
|
|
1985
1985
|
});
|
|
1986
1986
|
const vo = {
|
|
1987
1987
|
options: {
|
|
@@ -2048,7 +2048,7 @@ const vo = {
|
|
|
2048
2048
|
ctrlSchema: {},
|
|
2049
2049
|
ctrlName: "",
|
|
2050
2050
|
activeIndex: void 0,
|
|
2051
|
-
ctrlMap:
|
|
2051
|
+
ctrlMap: ke,
|
|
2052
2052
|
activeIndexReg: /(formItems)?\[(\d+)\]/,
|
|
2053
2053
|
tableStruct: "",
|
|
2054
2054
|
activeName: "1",
|
|
@@ -2093,7 +2093,7 @@ const vo = {
|
|
|
2093
2093
|
handler(e) {
|
|
2094
2094
|
const t = this.ctrlMap[e];
|
|
2095
2095
|
this.ctrlSchema = y({
|
|
2096
|
-
options: y(
|
|
2096
|
+
options: y(he),
|
|
2097
2097
|
formItems: y(t.builder)
|
|
2098
2098
|
});
|
|
2099
2099
|
const l = ee(this.builderSchema, this.activeIndex);
|
|
@@ -2118,7 +2118,7 @@ const vo = {
|
|
|
2118
2118
|
this.ctrlOptions = {}, this.builderSchema[t] = this.builderSchema[t] || [];
|
|
2119
2119
|
const l = this.ctrlMap[e];
|
|
2120
2120
|
this.activeCtrl = l, this.builderSchema[t].push(y(l.default)), this.ctrlSchema = y({
|
|
2121
|
-
options: y(
|
|
2121
|
+
options: y(he),
|
|
2122
2122
|
formItems: y(l.builder)
|
|
2123
2123
|
}), this.ctrlKey++, this.key++, this.activeIndex = `${t}[${this.builderSchema[t].length - 1}]`, this.activeTab = "ctrl";
|
|
2124
2124
|
},
|
|
@@ -2134,7 +2134,7 @@ const vo = {
|
|
|
2134
2134
|
return;
|
|
2135
2135
|
}
|
|
2136
2136
|
this.currentCtrlType = n, this.ctrlOptions = l, this.ctrlSchema = y({
|
|
2137
|
-
options: y(
|
|
2137
|
+
options: y(he),
|
|
2138
2138
|
formItems: y(o.builder)
|
|
2139
2139
|
}), this.ctrlKey++;
|
|
2140
2140
|
}
|
|
@@ -2149,9 +2149,9 @@ const vo = {
|
|
|
2149
2149
|
});
|
|
2150
2150
|
}
|
|
2151
2151
|
}
|
|
2152
|
-
}, ko = /* @__PURE__ */ g("\u4FDD\u5B58\u9875\u9762\u914D\u7F6E"),
|
|
2153
|
-
function
|
|
2154
|
-
const a = v("v-form"), c = We, d = ae, p = v("JsonView"),
|
|
2152
|
+
}, ko = /* @__PURE__ */ g("\u4FDD\u5B58\u9875\u9762\u914D\u7F6E"), Eo = /* @__PURE__ */ g(" \xA0\xA0 ");
|
|
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");
|
|
2155
2155
|
return i(), m(V, null, {
|
|
2156
2156
|
main: r(() => [
|
|
2157
2157
|
o.builderSchema.formItems ? (i(), m(a, q({
|
|
@@ -2159,7 +2159,7 @@ function Eo(e, t, l, n, o, s) {
|
|
|
2159
2159
|
ref: "form",
|
|
2160
2160
|
key: o.key,
|
|
2161
2161
|
dev: !0
|
|
2162
|
-
}, o.builderSchema), null, 16)) :
|
|
2162
|
+
}, o.builderSchema), null, 16)) : E("", !0),
|
|
2163
2163
|
u(c),
|
|
2164
2164
|
u(d, {
|
|
2165
2165
|
type: "primary",
|
|
@@ -2170,8 +2170,8 @@ function Eo(e, t, l, n, o, s) {
|
|
|
2170
2170
|
]),
|
|
2171
2171
|
_: 1
|
|
2172
2172
|
}, 8, ["onClick"]),
|
|
2173
|
-
|
|
2174
|
-
u(
|
|
2173
|
+
Eo,
|
|
2174
|
+
u(h, {
|
|
2175
2175
|
text: "PageSchema",
|
|
2176
2176
|
type: "modal"
|
|
2177
2177
|
}, {
|
|
@@ -2188,13 +2188,13 @@ function Eo(e, t, l, n, o, s) {
|
|
|
2188
2188
|
default: r(() => [
|
|
2189
2189
|
u(A, {
|
|
2190
2190
|
modelValue: o.currentCtrlType,
|
|
2191
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
2191
|
+
"onUpdate:modelValue": t[0] || (t[0] = (B) => o.currentCtrlType = B)
|
|
2192
2192
|
}, {
|
|
2193
2193
|
default: r(() => [
|
|
2194
|
-
(i(!0),
|
|
2194
|
+
(i(!0), f(k, null, $(o.types, (B, z) => (i(), m(_, {
|
|
2195
2195
|
key: z,
|
|
2196
|
-
label:
|
|
2197
|
-
value:
|
|
2196
|
+
label: B.label,
|
|
2197
|
+
value: B.value
|
|
2198
2198
|
}, null, 8, ["label", "value"]))), 128))
|
|
2199
2199
|
]),
|
|
2200
2200
|
_: 1
|
|
@@ -2204,17 +2204,17 @@ function Eo(e, t, l, n, o, s) {
|
|
|
2204
2204
|
})
|
|
2205
2205
|
]),
|
|
2206
2206
|
_: 1
|
|
2207
|
-
})) :
|
|
2207
|
+
})) : E("", !0),
|
|
2208
2208
|
(i(), m(a, q({
|
|
2209
2209
|
key: o.ctrlKey,
|
|
2210
2210
|
modelValue: o.ctrlOptions,
|
|
2211
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
2211
|
+
"onUpdate:modelValue": t[1] || (t[1] = (B) => o.ctrlOptions = B)
|
|
2212
2212
|
}, o.ctrlSchema), null, 16, ["modelValue"]))
|
|
2213
2213
|
]),
|
|
2214
2214
|
_: 1
|
|
2215
2215
|
});
|
|
2216
2216
|
}
|
|
2217
|
-
const So = /* @__PURE__ */ C(go, [["render",
|
|
2217
|
+
const So = /* @__PURE__ */ C(go, [["render", wo], ["__scopeId", "data-v-d89bdb06"]]), Co = {
|
|
2218
2218
|
type: "input",
|
|
2219
2219
|
name: "\u6587\u672C\u6846",
|
|
2220
2220
|
default: {
|
|
@@ -2262,7 +2262,7 @@ const So = /* @__PURE__ */ C(go, [["render", Eo], ["__scopeId", "data-v-d89bdb06
|
|
|
2262
2262
|
}
|
|
2263
2263
|
}
|
|
2264
2264
|
]
|
|
2265
|
-
},
|
|
2265
|
+
}, Bo = {
|
|
2266
2266
|
type: "select",
|
|
2267
2267
|
name: "\u4E0B\u62C9\u6846",
|
|
2268
2268
|
default: {
|
|
@@ -2363,7 +2363,7 @@ const So = /* @__PURE__ */ C(go, [["render", Eo], ["__scopeId", "data-v-d89bdb06
|
|
|
2363
2363
|
const t = y(e);
|
|
2364
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;
|
|
2365
2365
|
}
|
|
2366
|
-
},
|
|
2366
|
+
}, xo = {
|
|
2367
2367
|
type: "date",
|
|
2368
2368
|
name: "\u65E5\u671F",
|
|
2369
2369
|
default: {
|
|
@@ -2408,7 +2408,7 @@ const So = /* @__PURE__ */ C(go, [["render", Eo], ["__scopeId", "data-v-d89bdb06
|
|
|
2408
2408
|
label: "\u5BFC\u51FA\u6309\u94AE"
|
|
2409
2409
|
}
|
|
2410
2410
|
]
|
|
2411
|
-
},
|
|
2411
|
+
}, be = {
|
|
2412
2412
|
labelPosition: "top",
|
|
2413
2413
|
submitButton: !1,
|
|
2414
2414
|
cancelButton: !1
|
|
@@ -2915,7 +2915,7 @@ const So = /* @__PURE__ */ C(go, [["render", Eo], ["__scopeId", "data-v-d89bdb06
|
|
|
2915
2915
|
table: Vo
|
|
2916
2916
|
};
|
|
2917
2917
|
const Uo = {
|
|
2918
|
-
components: { JsonView: Fe, DevLayout: rt, VTable:
|
|
2918
|
+
components: { JsonView: Fe, DevLayout: rt, VTable: ie, VForm: W, VButton: Te },
|
|
2919
2919
|
props: {
|
|
2920
2920
|
schema: {
|
|
2921
2921
|
type: Object,
|
|
@@ -2943,7 +2943,7 @@ const Uo = {
|
|
|
2943
2943
|
ctrlName: "",
|
|
2944
2944
|
activeIndex: void 0,
|
|
2945
2945
|
ctrlMap: {
|
|
2946
|
-
filter: { input: Co, select:
|
|
2946
|
+
filter: { input: Co, select: Bo, date: xo },
|
|
2947
2947
|
headers: Lo,
|
|
2948
2948
|
buttons: qo
|
|
2949
2949
|
},
|
|
@@ -3006,7 +3006,7 @@ const Uo = {
|
|
|
3006
3006
|
handler(e) {
|
|
3007
3007
|
const t = this.ctrlMap[this.activeBrick][e];
|
|
3008
3008
|
this.ctrlSchema = y({
|
|
3009
|
-
options: y(
|
|
3009
|
+
options: y(be),
|
|
3010
3010
|
formItems: y(t.builder)
|
|
3011
3011
|
});
|
|
3012
3012
|
const l = ee(this.builderSchema, this.activeIndex);
|
|
@@ -3053,7 +3053,7 @@ const Uo = {
|
|
|
3053
3053
|
return;
|
|
3054
3054
|
}
|
|
3055
3055
|
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(
|
|
3056
|
+
options: y(be),
|
|
3057
3057
|
formItems: y(o[e].builder)
|
|
3058
3058
|
}), this.key++, this.ctrlKey++, this.activeIndex = `${t}[${this.builderSchema[t].length - 1}]`, this.activeTab = "ctrl";
|
|
3059
3059
|
},
|
|
@@ -3073,7 +3073,7 @@ const Uo = {
|
|
|
3073
3073
|
return;
|
|
3074
3074
|
}
|
|
3075
3075
|
this.ctrlOptions = l, this.currentCtrlType = n, this.ctrlSchema = y({
|
|
3076
|
-
options: y(
|
|
3076
|
+
options: y(be),
|
|
3077
3077
|
formItems: y(o.builder)
|
|
3078
3078
|
}), this.ctrlKey++;
|
|
3079
3079
|
}
|
|
@@ -3097,7 +3097,7 @@ const Uo = {
|
|
|
3097
3097
|
}
|
|
3098
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 ");
|
|
3099
3099
|
function ln(e, t, l, n, o, s) {
|
|
3100
|
-
const a =
|
|
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");
|
|
3101
3101
|
return i(), m(yt, null, {
|
|
3102
3102
|
"left-aside": r(() => [
|
|
3103
3103
|
u(d, { style: { width: "200px" } }, {
|
|
@@ -3166,17 +3166,17 @@ function ln(e, t, l, n, o, s) {
|
|
|
3166
3166
|
]),
|
|
3167
3167
|
_: 1
|
|
3168
3168
|
}),
|
|
3169
|
-
(i(!0),
|
|
3169
|
+
(i(!0), f(k, null, $(Object.keys(o.ctrlMap.headers), (S, M) => (i(), m(a, {
|
|
3170
3170
|
key: `column-${M}`,
|
|
3171
3171
|
class: "ctrl"
|
|
3172
3172
|
}, {
|
|
3173
3173
|
default: r(() => [
|
|
3174
3174
|
u(c, {
|
|
3175
3175
|
class: "ctrl-btn",
|
|
3176
|
-
onClick: (
|
|
3176
|
+
onClick: (pe) => s.pushHeaders(o.ctrlMap.headers[S].type)
|
|
3177
3177
|
}, {
|
|
3178
3178
|
default: r(() => [
|
|
3179
|
-
g(
|
|
3179
|
+
g(x(o.ctrlMap.headers[S].name), 1)
|
|
3180
3180
|
]),
|
|
3181
3181
|
_: 2
|
|
3182
3182
|
}, 1032, ["onClick"])
|
|
@@ -3194,17 +3194,17 @@ function ln(e, t, l, n, o, s) {
|
|
|
3194
3194
|
]),
|
|
3195
3195
|
_: 1
|
|
3196
3196
|
}),
|
|
3197
|
-
(i(!0),
|
|
3197
|
+
(i(!0), f(k, null, $(Object.keys(o.ctrlMap.buttons), (S, M) => (i(), m(a, {
|
|
3198
3198
|
key: `column-${M}`,
|
|
3199
3199
|
class: "ctrl"
|
|
3200
3200
|
}, {
|
|
3201
3201
|
default: r(() => [
|
|
3202
3202
|
u(c, {
|
|
3203
3203
|
class: "ctrl-btn",
|
|
3204
|
-
onClick: (
|
|
3204
|
+
onClick: (pe) => s.pushRowButton(o.ctrlMap.buttons[S].type)
|
|
3205
3205
|
}, {
|
|
3206
3206
|
default: r(() => [
|
|
3207
|
-
g(
|
|
3207
|
+
g(x(o.ctrlMap.buttons[S].name), 1)
|
|
3208
3208
|
]),
|
|
3209
3209
|
_: 2
|
|
3210
3210
|
}, 1032, ["onClick"])
|
|
@@ -3222,17 +3222,17 @@ function ln(e, t, l, n, o, s) {
|
|
|
3222
3222
|
]),
|
|
3223
3223
|
_: 1
|
|
3224
3224
|
}),
|
|
3225
|
-
(i(!0),
|
|
3225
|
+
(i(!0), f(k, null, $(Object.keys(o.ctrlMap.buttons), (S, M) => (i(), m(a, {
|
|
3226
3226
|
key: `column-${M}`,
|
|
3227
3227
|
class: "ctrl"
|
|
3228
3228
|
}, {
|
|
3229
3229
|
default: r(() => [
|
|
3230
3230
|
u(c, {
|
|
3231
3231
|
class: "ctrl-btn",
|
|
3232
|
-
onClick: (
|
|
3232
|
+
onClick: (pe) => s.pushNormalButton(o.ctrlMap.buttons[S].type)
|
|
3233
3233
|
}, {
|
|
3234
3234
|
default: r(() => [
|
|
3235
|
-
g(
|
|
3235
|
+
g(x(o.ctrlMap.buttons[S].name), 1)
|
|
3236
3236
|
]),
|
|
3237
3237
|
_: 2
|
|
3238
3238
|
}, 1032, ["onClick"])
|
|
@@ -3261,17 +3261,17 @@ function ln(e, t, l, n, o, s) {
|
|
|
3261
3261
|
]),
|
|
3262
3262
|
_: 1
|
|
3263
3263
|
}),
|
|
3264
|
-
(i(!0),
|
|
3264
|
+
(i(!0), f(k, null, $(Object.keys(o.ctrlMap.buttons), (S, M) => (i(), m(a, {
|
|
3265
3265
|
key: `column-${M}`,
|
|
3266
3266
|
class: "ctrl"
|
|
3267
3267
|
}, {
|
|
3268
3268
|
default: r(() => [
|
|
3269
3269
|
u(c, {
|
|
3270
3270
|
class: "ctrl-btn",
|
|
3271
|
-
onClick: (
|
|
3271
|
+
onClick: (pe) => s.pushBatchButton(o.ctrlMap.buttons[S].type)
|
|
3272
3272
|
}, {
|
|
3273
3273
|
default: r(() => [
|
|
3274
|
-
g(
|
|
3274
|
+
g(x(o.ctrlMap.buttons[S].name), 1)
|
|
3275
3275
|
]),
|
|
3276
3276
|
_: 2
|
|
3277
3277
|
}, 1032, ["onClick"])
|
|
@@ -3302,7 +3302,7 @@ function ln(e, t, l, n, o, s) {
|
|
|
3302
3302
|
key: o.key,
|
|
3303
3303
|
dev: !0
|
|
3304
3304
|
}, o.builderSchema), null, 16)),
|
|
3305
|
-
u(
|
|
3305
|
+
u(h),
|
|
3306
3306
|
u(_, {
|
|
3307
3307
|
type: "primary",
|
|
3308
3308
|
onClick: s.saveSchema
|
|
@@ -3326,14 +3326,14 @@ function ln(e, t, l, n, o, s) {
|
|
|
3326
3326
|
"right-aside": r(() => [
|
|
3327
3327
|
o.activeIndex ? (i(), m(z, { key: 0 }, {
|
|
3328
3328
|
default: r(() => [
|
|
3329
|
-
u(
|
|
3329
|
+
u(B, { label: "\u63A7\u4EF6\u7C7B\u578B" }, {
|
|
3330
3330
|
default: r(() => [
|
|
3331
3331
|
u(V, {
|
|
3332
3332
|
modelValue: o.currentCtrlType,
|
|
3333
3333
|
"onUpdate:modelValue": t[3] || (t[3] = (S) => o.currentCtrlType = S)
|
|
3334
3334
|
}, {
|
|
3335
3335
|
default: r(() => [
|
|
3336
|
-
(i(!0),
|
|
3336
|
+
(i(!0), f(k, null, $(s.types, (S, M) => (i(), m(U, {
|
|
3337
3337
|
key: M,
|
|
3338
3338
|
label: S.label,
|
|
3339
3339
|
value: S.value
|
|
@@ -3346,7 +3346,7 @@ function ln(e, t, l, n, o, s) {
|
|
|
3346
3346
|
})
|
|
3347
3347
|
]),
|
|
3348
3348
|
_: 1
|
|
3349
|
-
})) :
|
|
3349
|
+
})) : E("", !0),
|
|
3350
3350
|
(i(), m(_t, q({
|
|
3351
3351
|
key: o.ctrlKey,
|
|
3352
3352
|
modelValue: o.ctrlOptions,
|
|
@@ -3360,20 +3360,20 @@ const on = /* @__PURE__ */ C(Uo, [["render", ln], ["__scopeId", "data-v-77db3a16
|
|
|
3360
3360
|
name: "PageEditor",
|
|
3361
3361
|
components: { FormBuilder: So, TableBuilder: on },
|
|
3362
3362
|
setup() {
|
|
3363
|
-
const e = R(!1), t = R(1), l = "rtl", n =
|
|
3363
|
+
const e = R(!1), t = R(1), l = "rtl", n = ue(), o = j(() => w.state.app.pages[n.path]);
|
|
3364
3364
|
return { show: e, key: t, direction: l, pageSchema: o };
|
|
3365
3365
|
}
|
|
3366
3366
|
};
|
|
3367
3367
|
function sn(e, t, l, n, o, s) {
|
|
3368
3368
|
const a = v("VIcon"), c = v("form-builder"), d = v("table-builder"), p = Xe;
|
|
3369
|
-
return i(),
|
|
3369
|
+
return i(), f(k, null, [
|
|
3370
3370
|
u(a, {
|
|
3371
3371
|
name: "ra-set",
|
|
3372
|
-
onClick: t[0] || (t[0] = (
|
|
3372
|
+
onClick: t[0] || (t[0] = (h) => n.show = !n.show)
|
|
3373
3373
|
}),
|
|
3374
3374
|
u(p, {
|
|
3375
3375
|
modelValue: n.show,
|
|
3376
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
3376
|
+
"onUpdate:modelValue": t[1] || (t[1] = (h) => n.show = h),
|
|
3377
3377
|
title: "\u9875\u9762\u8BBE\u8BA1",
|
|
3378
3378
|
"custom-class": "my-drawer",
|
|
3379
3379
|
direction: n.direction,
|
|
@@ -3385,11 +3385,11 @@ function sn(e, t, l, n, o, s) {
|
|
|
3385
3385
|
n.pageSchema.formItems !== void 0 ? (i(), m(c, {
|
|
3386
3386
|
key: 0,
|
|
3387
3387
|
schema: n.pageSchema
|
|
3388
|
-
}, null, 8, ["schema"])) :
|
|
3388
|
+
}, null, 8, ["schema"])) : E("", !0),
|
|
3389
3389
|
n.pageSchema.headers !== void 0 ? (i(), m(d, {
|
|
3390
3390
|
key: 1,
|
|
3391
3391
|
schema: n.pageSchema
|
|
3392
|
-
}, null, 8, ["schema"])) :
|
|
3392
|
+
}, null, 8, ["schema"])) : E("", !0)
|
|
3393
3393
|
]),
|
|
3394
3394
|
_: 1
|
|
3395
3395
|
}, 8, ["modelValue", "direction"])
|
|
@@ -3465,11 +3465,11 @@ const rn = {
|
|
|
3465
3465
|
},
|
|
3466
3466
|
showNotice(e) {
|
|
3467
3467
|
const t = "dismiss:navbar_notice";
|
|
3468
|
-
return
|
|
3468
|
+
return me.exist(t) ? me.get(t) !== e : !0;
|
|
3469
3469
|
},
|
|
3470
3470
|
closeNotice(e) {
|
|
3471
3471
|
const t = "dismiss:navbar_notice";
|
|
3472
|
-
|
|
3472
|
+
me.set(t, e);
|
|
3473
3473
|
},
|
|
3474
3474
|
gotoMenuEdit() {
|
|
3475
3475
|
var e, t, l, n;
|
|
@@ -3484,11 +3484,11 @@ const rn = {
|
|
|
3484
3484
|
style: { padding: "0" }
|
|
3485
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");
|
|
3486
3486
|
function vn(e, t, l, n, o, s) {
|
|
3487
|
-
const a = v("hamburger"), c = v("breadcrumb"), d =
|
|
3488
|
-
return i(), m(
|
|
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, {
|
|
3489
3489
|
ref: "header",
|
|
3490
3490
|
class: "navbar",
|
|
3491
|
-
style:
|
|
3491
|
+
style: Et({ background: s.setting.envColor[s.user.env] })
|
|
3492
3492
|
}, {
|
|
3493
3493
|
default: r(() => [
|
|
3494
3494
|
u(d, { span: 16 }, {
|
|
@@ -3511,9 +3511,9 @@ function vn(e, t, l, n, o, s) {
|
|
|
3511
3511
|
onClick: s.gotoMenuEdit
|
|
3512
3512
|
}, null, 8, ["onClick"])
|
|
3513
3513
|
]),
|
|
3514
|
-
s.showPageJsonSchemaIcon ? (i(),
|
|
3515
|
-
u(
|
|
3516
|
-
])) :
|
|
3514
|
+
s.showPageJsonSchemaIcon ? (i(), f("div", dn, [
|
|
3515
|
+
u(h)
|
|
3516
|
+
])) : E("", !0),
|
|
3517
3517
|
b("div", pn, [
|
|
3518
3518
|
u(_, { buttons: e.nav }, null, 8, ["buttons"])
|
|
3519
3519
|
]),
|
|
@@ -3555,7 +3555,7 @@ function vn(e, t, l, n, o, s) {
|
|
|
3555
3555
|
alt: "\u5934\u50CF"
|
|
3556
3556
|
}, null, 8, fn),
|
|
3557
3557
|
hn,
|
|
3558
|
-
b("span", bn,
|
|
3558
|
+
b("span", bn, x(e.nickname || e.name), 1)
|
|
3559
3559
|
])
|
|
3560
3560
|
]),
|
|
3561
3561
|
_: 1
|
|
@@ -3568,7 +3568,7 @@ function vn(e, t, l, n, o, s) {
|
|
|
3568
3568
|
key: 0,
|
|
3569
3569
|
"with-header": !1,
|
|
3570
3570
|
size: "50%"
|
|
3571
|
-
})) :
|
|
3571
|
+
})) : E("", !0)
|
|
3572
3572
|
]),
|
|
3573
3573
|
_: 1
|
|
3574
3574
|
}, 8, ["style"]);
|
|
@@ -3590,16 +3590,16 @@ const kn = {
|
|
|
3590
3590
|
return this.$store.state.settings.logo;
|
|
3591
3591
|
}
|
|
3592
3592
|
}
|
|
3593
|
-
},
|
|
3593
|
+
}, En = (e) => (Je("data-v-49084925"), e = e(), ze(), e), wn = ["src"], Sn = {
|
|
3594
3594
|
key: 1,
|
|
3595
3595
|
class: "sidebar-title"
|
|
3596
|
-
}, Cn = /* @__PURE__ */
|
|
3596
|
+
}, Cn = /* @__PURE__ */ En(() => /* @__PURE__ */ b("div", null, "\u7CFB\u7EDF", -1)), Bn = ["src"], xn = { class: "sidebar-title" };
|
|
3597
3597
|
function $n(e, t, l, n, o, s) {
|
|
3598
3598
|
const a = v("router-link");
|
|
3599
|
-
return i(),
|
|
3599
|
+
return i(), f("div", {
|
|
3600
3600
|
class: H(["sidebar-logo-container", { collapse: l.collapse }])
|
|
3601
3601
|
}, [
|
|
3602
|
-
u(
|
|
3602
|
+
u(wt, { name: "sidebarLogoFade" }, {
|
|
3603
3603
|
default: r(() => [
|
|
3604
3604
|
l.collapse ? (i(), m(a, {
|
|
3605
3605
|
key: "collapse",
|
|
@@ -3607,11 +3607,11 @@ function $n(e, t, l, n, o, s) {
|
|
|
3607
3607
|
to: "/"
|
|
3608
3608
|
}, {
|
|
3609
3609
|
default: r(() => [
|
|
3610
|
-
s.logo ? (i(),
|
|
3610
|
+
s.logo ? (i(), f("img", {
|
|
3611
3611
|
key: 0,
|
|
3612
3612
|
src: s.logo,
|
|
3613
3613
|
class: "sidebar-logo"
|
|
3614
|
-
}, null, 8,
|
|
3614
|
+
}, null, 8, wn)) : (i(), f("h1", Sn, x(s.title), 1)),
|
|
3615
3615
|
Cn
|
|
3616
3616
|
]),
|
|
3617
3617
|
_: 1
|
|
@@ -3621,12 +3621,12 @@ function $n(e, t, l, n, o, s) {
|
|
|
3621
3621
|
to: "/"
|
|
3622
3622
|
}, {
|
|
3623
3623
|
default: r(() => [
|
|
3624
|
-
s.logo ? (i(),
|
|
3624
|
+
s.logo ? (i(), f("img", {
|
|
3625
3625
|
key: 0,
|
|
3626
3626
|
src: s.logo,
|
|
3627
3627
|
class: "sidebar-logo"
|
|
3628
|
-
}, null, 8,
|
|
3629
|
-
b("h1",
|
|
3628
|
+
}, null, 8, Bn)) : E("", !0),
|
|
3629
|
+
b("h1", xn, x(s.title), 1)
|
|
3630
3630
|
]),
|
|
3631
3631
|
_: 1
|
|
3632
3632
|
}))
|
|
@@ -3716,11 +3716,11 @@ const Fn = /* @__PURE__ */ C(An, [["render", Tn]]), Dn = {
|
|
|
3716
3716
|
setup(e) {
|
|
3717
3717
|
return (t, l) => {
|
|
3718
3718
|
const n = v("VIcon");
|
|
3719
|
-
return i(),
|
|
3719
|
+
return i(), f(k, null, [
|
|
3720
3720
|
u(n, {
|
|
3721
3721
|
name: e.meta.icon || "ra-all"
|
|
3722
3722
|
}, null, 8, ["name"]),
|
|
3723
|
-
b("span", On,
|
|
3723
|
+
b("span", On, x(e.meta.title), 1)
|
|
3724
3724
|
], 64);
|
|
3725
3725
|
};
|
|
3726
3726
|
}
|
|
@@ -3759,9 +3759,9 @@ const Fn = /* @__PURE__ */ C(An, [["render", Tn]]), Dn = {
|
|
|
3759
3759
|
class: "menu-wrapper"
|
|
3760
3760
|
};
|
|
3761
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),
|
|
3763
|
-
return l.item.hidden !== !1 ? (i(),
|
|
3764
|
-
l.item.meta && l.item.meta.menuType === 2 ? (i(),
|
|
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 }, [
|
|
3765
3765
|
l.item.meta ? (i(), m(d, {
|
|
3766
3766
|
key: 0,
|
|
3767
3767
|
to: l.to,
|
|
@@ -3781,8 +3781,8 @@ function Mn(e, t, l, n, o, s) {
|
|
|
3781
3781
|
}, 8, ["index", "class"])
|
|
3782
3782
|
]),
|
|
3783
3783
|
_: 1
|
|
3784
|
-
}, 8, ["to", "new-tab"])) :
|
|
3785
|
-
], 64)) : l.item.meta && l.item.meta.menuType === 1 ? (i(), m(
|
|
3784
|
+
}, 8, ["to", "new-tab"])) : E("", !0)
|
|
3785
|
+
], 64)) : l.item.meta && l.item.meta.menuType === 1 ? (i(), m(h, {
|
|
3786
3786
|
key: 1,
|
|
3787
3787
|
ref: "subMenu",
|
|
3788
3788
|
index: l.to,
|
|
@@ -3806,7 +3806,7 @@ function Mn(e, t, l, n, o, s) {
|
|
|
3806
3806
|
}, null, 8, ["meta"]))
|
|
3807
3807
|
]),
|
|
3808
3808
|
default: r(() => [
|
|
3809
|
-
(i(!0),
|
|
3809
|
+
(i(!0), f(k, null, $(l.item.children, (_) => (i(), m(p, {
|
|
3810
3810
|
key: _.path,
|
|
3811
3811
|
"is-nest": !0,
|
|
3812
3812
|
item: _,
|
|
@@ -3815,8 +3815,8 @@ function Mn(e, t, l, n, o, s) {
|
|
|
3815
3815
|
}, null, 8, ["item", "to"]))), 128))
|
|
3816
3816
|
]),
|
|
3817
3817
|
_: 1
|
|
3818
|
-
}, 8, ["index", "class"])) :
|
|
3819
|
-
])) :
|
|
3818
|
+
}, 8, ["index", "class"])) : E("", !0)
|
|
3819
|
+
])) : E("", !0);
|
|
3820
3820
|
}
|
|
3821
3821
|
const jn = /* @__PURE__ */ C(Rn, [["render", Mn]]);
|
|
3822
3822
|
function ct(e) {
|
|
@@ -3847,7 +3847,7 @@ const Nn = {
|
|
|
3847
3847
|
}
|
|
3848
3848
|
};
|
|
3849
3849
|
function Vn(e, t, l, n, o, s) {
|
|
3850
|
-
const a =
|
|
3850
|
+
const a = we, c = Mt, d = Se;
|
|
3851
3851
|
return i(), m(d, {
|
|
3852
3852
|
modelValue: o.selected,
|
|
3853
3853
|
"onUpdate:modelValue": t[0] || (t[0] = (p) => o.selected = p),
|
|
@@ -3857,27 +3857,27 @@ function Vn(e, t, l, n, o, s) {
|
|
|
3857
3857
|
onChange: s.onselected
|
|
3858
3858
|
}, {
|
|
3859
3859
|
default: r(() => [
|
|
3860
|
-
(i(!0),
|
|
3860
|
+
(i(!0), f(k, null, $(s.filterRoutes, (p) => (i(), f(k, {
|
|
3861
3861
|
key: p.path
|
|
3862
3862
|
}, [
|
|
3863
|
-
p.children !== void 0 ? (i(),
|
|
3863
|
+
p.children !== void 0 ? (i(), f(k, { key: 0 }, [
|
|
3864
3864
|
p.meta.menuType !== 0 ? (i(), m(c, {
|
|
3865
3865
|
key: p.path + "-",
|
|
3866
3866
|
label: p.meta.title
|
|
3867
3867
|
}, {
|
|
3868
3868
|
default: r(() => [
|
|
3869
|
-
(i(!0),
|
|
3870
|
-
key:
|
|
3869
|
+
(i(!0), f(k, null, $(p.children, (h, _) => (i(), f(k, {
|
|
3870
|
+
key: h.path
|
|
3871
3871
|
}, [
|
|
3872
3872
|
p.meta.menuType !== 0 ? (i(), m(a, {
|
|
3873
3873
|
key: 0,
|
|
3874
|
-
label: (_ === p.children.length - 1 ? "\u2514\u2500" : "\u251C\u2500") +
|
|
3875
|
-
value:
|
|
3876
|
-
}, null, 8, ["label", "value"])) :
|
|
3874
|
+
label: (_ === p.children.length - 1 ? "\u2514\u2500" : "\u251C\u2500") + h.meta.title,
|
|
3875
|
+
value: h.path
|
|
3876
|
+
}, null, 8, ["label", "value"])) : E("", !0)
|
|
3877
3877
|
], 64))), 128))
|
|
3878
3878
|
]),
|
|
3879
3879
|
_: 2
|
|
3880
|
-
}, 1032, ["label"])) :
|
|
3880
|
+
}, 1032, ["label"])) : E("", !0)
|
|
3881
3881
|
], 64)) : (i(), m(a, {
|
|
3882
3882
|
key: 1,
|
|
3883
3883
|
label: "" + p.meta.title,
|
|
@@ -3946,17 +3946,17 @@ const Un = N({
|
|
|
3946
3946
|
}
|
|
3947
3947
|
});
|
|
3948
3948
|
function Hn(e, t, l, n, o, s) {
|
|
3949
|
-
const a = v("logo"), c = v("search-menu"), d = v("sidebar-item"), p = jt,
|
|
3950
|
-
return i(),
|
|
3949
|
+
const a = v("logo"), c = v("search-menu"), d = v("sidebar-item"), p = jt, h = Nt;
|
|
3950
|
+
return i(), f("div", {
|
|
3951
3951
|
class: H({ "has-logo": e.showLogo })
|
|
3952
3952
|
}, [
|
|
3953
3953
|
e.showLogo ? (i(), m(a, {
|
|
3954
3954
|
key: 0,
|
|
3955
3955
|
collapse: e.isCollapse
|
|
3956
|
-
}, null, 8, ["collapse"])) :
|
|
3957
|
-
u(
|
|
3956
|
+
}, null, 8, ["collapse"])) : E("", !0),
|
|
3957
|
+
u(h, { "wrap-class": "scrollbar-wrapper" }, {
|
|
3958
3958
|
default: r(() => [
|
|
3959
|
-
e.isCollapse ?
|
|
3959
|
+
e.isCollapse ? E("", !0) : (i(), m(c, { key: 0 })),
|
|
3960
3960
|
u(p, {
|
|
3961
3961
|
"default-active": e.activeMenu,
|
|
3962
3962
|
collapse: e.isCollapse,
|
|
@@ -3968,10 +3968,10 @@ function Hn(e, t, l, n, o, s) {
|
|
|
3968
3968
|
mode: "vertical"
|
|
3969
3969
|
}, {
|
|
3970
3970
|
default: r(() => [
|
|
3971
|
-
(i(!0),
|
|
3971
|
+
(i(!0), f(k, null, $(e.routes, (_, A) => (i(), f(k, {
|
|
3972
3972
|
key: A + "-module"
|
|
3973
3973
|
}, [
|
|
3974
|
-
(i(!0),
|
|
3974
|
+
(i(!0), f(k, null, $(e.filterRoute(_.routes), (I) => (i(), m(d, {
|
|
3975
3975
|
key: I.path,
|
|
3976
3976
|
item: I,
|
|
3977
3977
|
to: e.$router.resolve(I.redirect ? I.redirect : I).fullPath
|
|
@@ -3989,13 +3989,13 @@ const Gn = /* @__PURE__ */ C(Un, [["render", Hn], ["__scopeId", "data-v-cf9a1835
|
|
|
3989
3989
|
const Jn = { class: "app-main" }, zn = {
|
|
3990
3990
|
__name: "AppMain",
|
|
3991
3991
|
setup(e) {
|
|
3992
|
-
const t =
|
|
3992
|
+
const t = ue(), l = [], n = R(0);
|
|
3993
3993
|
return rl(() => {
|
|
3994
3994
|
var o;
|
|
3995
3995
|
(o = t.meta) != null && o.keepAlive && l.indexOf(t.name) && l.push(t.name), n.value++;
|
|
3996
3996
|
}), (o, s) => {
|
|
3997
3997
|
const a = v("router-view"), c = Vt;
|
|
3998
|
-
return i(),
|
|
3998
|
+
return i(), f("section", Jn, [
|
|
3999
3999
|
(i(), m(a, {
|
|
4000
4000
|
key: o.$route.fullPath + n.value
|
|
4001
4001
|
})),
|
|
@@ -4013,23 +4013,23 @@ const Wn = { class: "main-container" }, Zn = {
|
|
|
4013
4013
|
withoutAnimation: o.value.withoutAnimation,
|
|
4014
4014
|
mobile: s.value === "mobile"
|
|
4015
4015
|
})), d = () => l.getBoundingClientRect().width - 1 < n;
|
|
4016
|
-
hl(window, "resize", () =>
|
|
4016
|
+
hl(window, "resize", () => h());
|
|
4017
4017
|
const p = () => {
|
|
4018
4018
|
t.dispatch("app/closeSideBar", { withoutAnimation: !1 });
|
|
4019
|
-
},
|
|
4019
|
+
}, h = () => {
|
|
4020
4020
|
if (!document.hidden) {
|
|
4021
4021
|
const _ = d();
|
|
4022
4022
|
t.dispatch("app/toggleDevice", _ ? "mobile" : "desktop"), _ && t.dispatch("app/closeSideBar", { withoutAnimation: !0 });
|
|
4023
4023
|
}
|
|
4024
4024
|
};
|
|
4025
|
-
return (_, A) => (i(),
|
|
4025
|
+
return (_, A) => (i(), f("div", {
|
|
4026
4026
|
class: H([T(c), "app-wrapper"])
|
|
4027
4027
|
}, [
|
|
4028
|
-
T(s) === "mobile" && T(o).opened ? (i(),
|
|
4028
|
+
T(s) === "mobile" && T(o).opened ? (i(), f("div", {
|
|
4029
4029
|
key: 0,
|
|
4030
4030
|
class: "drawer-bg",
|
|
4031
4031
|
onClick: p
|
|
4032
|
-
})) :
|
|
4032
|
+
})) : E("", !0),
|
|
4033
4033
|
u(T(Gn), { class: "sidebar-container" }),
|
|
4034
4034
|
b("div", Wn, [
|
|
4035
4035
|
b("div", {
|
|
@@ -4091,17 +4091,17 @@ const Yn = {
|
|
|
4091
4091
|
dingtalk: (e) => new Xn(e)
|
|
4092
4092
|
};
|
|
4093
4093
|
function es() {
|
|
4094
|
-
return O(
|
|
4094
|
+
return O(w.state.settings.sso || {}, Yn);
|
|
4095
4095
|
}
|
|
4096
4096
|
function ts(e) {
|
|
4097
|
-
const t = es(), l =
|
|
4097
|
+
const t = es(), l = w.state.settings.activeSsoKey || "", n = t[l];
|
|
4098
4098
|
if (n !== void 0)
|
|
4099
4099
|
return n(e);
|
|
4100
4100
|
}
|
|
4101
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({
|
|
4102
4102
|
__name: "login",
|
|
4103
4103
|
setup(e) {
|
|
4104
|
-
const t = ul(), l =
|
|
4104
|
+
const t = ul(), l = ue(), n = j(() => w.state.settings.loginTips), o = R({
|
|
4105
4105
|
username: "",
|
|
4106
4106
|
password: ""
|
|
4107
4107
|
}), s = () => {
|
|
@@ -4109,15 +4109,15 @@ const ls = { id: "login" }, os = /* @__PURE__ */ b("h1", { id: "title" }, "\u767
|
|
|
4109
4109
|
qt.error("\u8BF7\u586B\u5199\u7528\u6237\u540D\u548C\u5BC6\u7801");
|
|
4110
4110
|
return;
|
|
4111
4111
|
}
|
|
4112
|
-
|
|
4112
|
+
w.dispatch("user/login", o.value).then((a) => {
|
|
4113
4113
|
var c;
|
|
4114
4114
|
t.push({ path: ((c = l.query) == null ? void 0 : c.redirect) || "/" });
|
|
4115
4115
|
});
|
|
4116
4116
|
};
|
|
4117
|
-
return R(), (a, c) => (i(),
|
|
4117
|
+
return R(), (a, c) => (i(), f("div", ls, [
|
|
4118
4118
|
os,
|
|
4119
4119
|
b("form", ns, [
|
|
4120
|
-
|
|
4120
|
+
_e(b("input", {
|
|
4121
4121
|
"onUpdate:modelValue": c[0] || (c[0] = (d) => o.value.username = d),
|
|
4122
4122
|
type: "text",
|
|
4123
4123
|
placeholder: "\u7528\u6237\u540D",
|
|
@@ -4125,7 +4125,7 @@ const ls = { id: "login" }, os = /* @__PURE__ */ b("h1", { id: "title" }, "\u767
|
|
|
4125
4125
|
}, null, 512), [
|
|
4126
4126
|
[Le, o.value.username]
|
|
4127
4127
|
]),
|
|
4128
|
-
|
|
4128
|
+
_e(b("input", {
|
|
4129
4129
|
"onUpdate:modelValue": c[1] || (c[1] = (d) => o.value.password = d),
|
|
4130
4130
|
type: "password",
|
|
4131
4131
|
placeholder: "\u5BC6\u7801",
|
|
@@ -4138,11 +4138,11 @@ const ls = { id: "login" }, os = /* @__PURE__ */ b("h1", { id: "title" }, "\u767
|
|
|
4138
4138
|
onClick: s
|
|
4139
4139
|
}, "\u767B\u5F55"),
|
|
4140
4140
|
b("div", ss, [
|
|
4141
|
-
b("div", null,
|
|
4141
|
+
b("div", null, x(T(n)), 1)
|
|
4142
4142
|
]),
|
|
4143
4143
|
b("div", as, [
|
|
4144
4144
|
is,
|
|
4145
|
-
(i(!0),
|
|
4145
|
+
(i(!0), f(k, null, $(Object.keys([]), (d) => (i(), f("div", { key: d }, x(d), 1))), 128))
|
|
4146
4146
|
])
|
|
4147
4147
|
])
|
|
4148
4148
|
]));
|
|
@@ -4219,7 +4219,7 @@ const us = {
|
|
|
4219
4219
|
ps
|
|
4220
4220
|
];
|
|
4221
4221
|
function fs(e, t, l, n, o, s) {
|
|
4222
|
-
return i(),
|
|
4222
|
+
return i(), f("div", cs, ms);
|
|
4223
4223
|
}
|
|
4224
4224
|
const hs = /* @__PURE__ */ C(us, [["render", fs], ["__scopeId", "data-v-26068803"]]), bs = [
|
|
4225
4225
|
{
|
|
@@ -4255,25 +4255,25 @@ const hs = /* @__PURE__ */ C(us, [["render", fs], ["__scopeId", "data-v-26068803
|
|
|
4255
4255
|
history: dl(),
|
|
4256
4256
|
routes: bs
|
|
4257
4257
|
});
|
|
4258
|
-
|
|
4258
|
+
ve.configure({ showSpinner: !1 });
|
|
4259
4259
|
function _s(e) {
|
|
4260
4260
|
e.beforeEach((t, l, n) => {
|
|
4261
|
-
|
|
4261
|
+
ve.start(), t.preHash = location.hash.replace("#", ""), n();
|
|
4262
4262
|
}), e.afterEach((t) => {
|
|
4263
|
-
t.matched.length > 0 &&
|
|
4263
|
+
t.matched.length > 0 && w.commit("user/updateState", {
|
|
4264
4264
|
key: "path",
|
|
4265
4265
|
value: t.matched[t.matched.length - 1].path.replace("(\\d+)", "")
|
|
4266
|
-
}),
|
|
4266
|
+
}), ve.done();
|
|
4267
4267
|
});
|
|
4268
4268
|
}
|
|
4269
4269
|
function ys() {
|
|
4270
|
-
return
|
|
4270
|
+
return w.state.user.isLodeRemoteRoutes;
|
|
4271
4271
|
}
|
|
4272
4272
|
function mt() {
|
|
4273
|
-
return
|
|
4273
|
+
return w.state.settings.whiteRoutes || [];
|
|
4274
4274
|
}
|
|
4275
4275
|
function vs() {
|
|
4276
|
-
return
|
|
4276
|
+
return w.state.user.token;
|
|
4277
4277
|
}
|
|
4278
4278
|
function gs(e) {
|
|
4279
4279
|
e.beforeEach(async (t, l, n) => {
|
|
@@ -4292,20 +4292,20 @@ function gs(e) {
|
|
|
4292
4292
|
return;
|
|
4293
4293
|
}
|
|
4294
4294
|
const c = a.flag();
|
|
4295
|
-
if (c && await
|
|
4295
|
+
if (c && await w.dispatch("user/login", { ticket: c })) {
|
|
4296
4296
|
n();
|
|
4297
4297
|
return;
|
|
4298
4298
|
}
|
|
4299
4299
|
a.jumpToLoginPage(n, `/login?redirect=${s}`);
|
|
4300
4300
|
});
|
|
4301
4301
|
}
|
|
4302
|
-
const ks = {},
|
|
4303
|
-
|
|
4302
|
+
const ks = {}, Es = { class: "loading preloader" }, ws = /* @__PURE__ */ b("div", { class: "preloader-inner" }, null, -1), Ss = [
|
|
4303
|
+
ws
|
|
4304
4304
|
];
|
|
4305
4305
|
function Cs(e, t) {
|
|
4306
|
-
return i(),
|
|
4306
|
+
return i(), f("div", Es, Ss);
|
|
4307
4307
|
}
|
|
4308
|
-
const ft = /* @__PURE__ */ C(ks, [["render", Cs]]),
|
|
4308
|
+
const ft = /* @__PURE__ */ C(ks, [["render", Cs]]), Bs = N({
|
|
4309
4309
|
components: { VLoading: ft },
|
|
4310
4310
|
props: {
|
|
4311
4311
|
schemaHandler: {
|
|
@@ -4325,33 +4325,49 @@ const ft = /* @__PURE__ */ C(ks, [["render", Cs]]), xs = N({
|
|
|
4325
4325
|
haveNotice: !1,
|
|
4326
4326
|
notice: {},
|
|
4327
4327
|
schema: {},
|
|
4328
|
-
owners: []
|
|
4328
|
+
owners: [],
|
|
4329
|
+
serviceOffLine: !1
|
|
4329
4330
|
};
|
|
4330
4331
|
},
|
|
4332
|
+
computed: {
|
|
4333
|
+
env() {
|
|
4334
|
+
return this.$store.state.user.env;
|
|
4335
|
+
},
|
|
4336
|
+
setting() {
|
|
4337
|
+
return this.$store.state.settings;
|
|
4338
|
+
}
|
|
4339
|
+
},
|
|
4331
4340
|
beforeCreate() {
|
|
4332
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 };
|
|
4333
4342
|
this.$http.get(this.$props.schemaApi || l, n).then(({ data: o }) => {
|
|
4334
|
-
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 = {
|
|
4335
4344
|
title: o.notice
|
|
4336
|
-
} :
|
|
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 });
|
|
4337
4346
|
});
|
|
4338
4347
|
}
|
|
4339
4348
|
});
|
|
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, [
|
|
4343
4353
|
e.owners.length > 0 ? (i(), m(a, {
|
|
4344
4354
|
key: 0,
|
|
4345
4355
|
title: `\u8BE5\u9875\u9762\u529F\u80FD\u5BF9\u5E94\u5F00\u53D1: [ ${e.owners.join(", ")} ] \u6709\u95EE\u9898\u53EF\u76F4\u63A5\u4F01\u5FAE\u53CD\u9988`,
|
|
4346
4356
|
type: "info",
|
|
4347
4357
|
style: { margin: "0 0 20px 0" },
|
|
4348
4358
|
closable: !1
|
|
4349
|
-
}, null, 8, ["title"])) :
|
|
4350
|
-
e.
|
|
4351
|
-
|
|
4359
|
+
}, null, 8, ["title"])) : E("", !0),
|
|
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))
|
|
4352
4368
|
], 64);
|
|
4353
4369
|
}
|
|
4354
|
-
const
|
|
4370
|
+
const de = /* @__PURE__ */ C(Bs, [["render", $s], ["__scopeId", "data-v-2ad53b38"]]), ht = {
|
|
4355
4371
|
__name: "table",
|
|
4356
4372
|
setup(e) {
|
|
4357
4373
|
const t = (l, n) => {
|
|
@@ -4362,14 +4378,14 @@ const pe = /* @__PURE__ */ C(xs, [["render", Bs]]), ht = {
|
|
|
4362
4378
|
};
|
|
4363
4379
|
l.tableProps = O(l.tableProps, { defaultSort: s });
|
|
4364
4380
|
}
|
|
4365
|
-
const o = Object.keys(
|
|
4381
|
+
const o = Object.keys(ie.props);
|
|
4366
4382
|
return Object.keys(l).forEach((s) => {
|
|
4367
4383
|
o.indexOf(s) === -1 && delete l[s];
|
|
4368
4384
|
}), l.listApi === void 0 && (l.listApi = `/${n}/list`), l;
|
|
4369
4385
|
};
|
|
4370
|
-
return (l, n) => (i(), m(
|
|
4386
|
+
return (l, n) => (i(), m(de, { "schema-handler": t }, {
|
|
4371
4387
|
default: r((o) => [
|
|
4372
|
-
u(T(
|
|
4388
|
+
u(T(ie), J(Z(o)), null, 16)
|
|
4373
4389
|
]),
|
|
4374
4390
|
_: 1
|
|
4375
4391
|
}));
|
|
@@ -4377,7 +4393,7 @@ const pe = /* @__PURE__ */ C(xs, [["render", Bs]]), ht = {
|
|
|
4377
4393
|
}, Ee = {
|
|
4378
4394
|
__name: "form",
|
|
4379
4395
|
setup(e) {
|
|
4380
|
-
const t =
|
|
4396
|
+
const t = ue(), l = (n, o) => {
|
|
4381
4397
|
const s = Object.keys(W.props);
|
|
4382
4398
|
return Object.keys(n).forEach((a) => {
|
|
4383
4399
|
if (s.indexOf(a) === -1) {
|
|
@@ -4392,14 +4408,14 @@ const pe = /* @__PURE__ */ C(xs, [["render", Bs]]), ht = {
|
|
|
4392
4408
|
mod: t.params.id ? "edit" : "create"
|
|
4393
4409
|
}, n), n;
|
|
4394
4410
|
};
|
|
4395
|
-
return (n, o) => (i(), m(
|
|
4411
|
+
return (n, o) => (i(), m(de, { "schema-handler": l }, {
|
|
4396
4412
|
default: r((s) => [
|
|
4397
4413
|
u(T(W), J(Z(s)), null, 16)
|
|
4398
4414
|
]),
|
|
4399
4415
|
_: 1
|
|
4400
4416
|
}));
|
|
4401
4417
|
}
|
|
4402
|
-
},
|
|
4418
|
+
}, Is = N({
|
|
4403
4419
|
name: "VTree",
|
|
4404
4420
|
components: {
|
|
4405
4421
|
VForm: W
|
|
@@ -4541,12 +4557,12 @@ const pe = /* @__PURE__ */ C(xs, [["render", Bs]]), ht = {
|
|
|
4541
4557
|
}
|
|
4542
4558
|
}
|
|
4543
4559
|
});
|
|
4544
|
-
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 = {
|
|
4545
4561
|
key: 1,
|
|
4546
4562
|
style: { color: "#E6A23C" }
|
|
4547
|
-
},
|
|
4548
|
-
function
|
|
4549
|
-
const l = ae, n = Ut, o =
|
|
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;
|
|
4550
4566
|
return i(), m(c, {
|
|
4551
4567
|
class: "tree-box",
|
|
4552
4568
|
gutter: 20
|
|
@@ -4559,14 +4575,14 @@ function js(e, t) {
|
|
|
4559
4575
|
default: r(() => [
|
|
4560
4576
|
u(o, { shadow: "never" }, {
|
|
4561
4577
|
header: r(() => [
|
|
4562
|
-
b("div",
|
|
4563
|
-
|
|
4578
|
+
b("div", As, [
|
|
4579
|
+
Ts,
|
|
4564
4580
|
u(l, {
|
|
4565
4581
|
type: "text",
|
|
4566
4582
|
onClick: t[0] || (t[0] = () => e.appendNew())
|
|
4567
4583
|
}, {
|
|
4568
4584
|
default: r(() => [
|
|
4569
|
-
|
|
4585
|
+
Fs
|
|
4570
4586
|
]),
|
|
4571
4587
|
_: 1
|
|
4572
4588
|
})
|
|
@@ -4585,8 +4601,8 @@ function js(e, t) {
|
|
|
4585
4601
|
onNodeDragEnd: e.handleDragEnd
|
|
4586
4602
|
}), {
|
|
4587
4603
|
default: r(({ node: d, data: p }) => [
|
|
4588
|
-
b("span",
|
|
4589
|
-
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 --> ")),
|
|
4590
4606
|
b("span", null, [
|
|
4591
4607
|
p[e.localTreeProps.props.label] ? (i(), m(l, {
|
|
4592
4608
|
key: 0,
|
|
@@ -4595,10 +4611,10 @@ function js(e, t) {
|
|
|
4595
4611
|
onClick: () => e.onclick(p)
|
|
4596
4612
|
}, {
|
|
4597
4613
|
default: r(() => [
|
|
4598
|
-
|
|
4614
|
+
Rs
|
|
4599
4615
|
]),
|
|
4600
4616
|
_: 2
|
|
4601
|
-
}, 1032, ["onClick"])) :
|
|
4617
|
+
}, 1032, ["onClick"])) : E("", !0),
|
|
4602
4618
|
e.canAppend(p, d) ? (i(), m(l, {
|
|
4603
4619
|
key: 1,
|
|
4604
4620
|
class: "button",
|
|
@@ -4606,10 +4622,10 @@ function js(e, t) {
|
|
|
4606
4622
|
onClick: () => e.append(p, d)
|
|
4607
4623
|
}, {
|
|
4608
4624
|
default: r(() => [
|
|
4609
|
-
|
|
4625
|
+
Ls
|
|
4610
4626
|
]),
|
|
4611
4627
|
_: 2
|
|
4612
|
-
}, 1032, ["onClick"])) :
|
|
4628
|
+
}, 1032, ["onClick"])) : E("", !0),
|
|
4613
4629
|
p.children === void 0 || p.children.length === 0 ? (i(), m(l, {
|
|
4614
4630
|
key: 2,
|
|
4615
4631
|
class: "button",
|
|
@@ -4617,15 +4633,15 @@ function js(e, t) {
|
|
|
4617
4633
|
onClick: () => e.remove(p)
|
|
4618
4634
|
}, {
|
|
4619
4635
|
default: r(() => [
|
|
4620
|
-
|
|
4636
|
+
Ms
|
|
4621
4637
|
]),
|
|
4622
4638
|
_: 2
|
|
4623
|
-
}, 1032, ["onClick"])) :
|
|
4639
|
+
}, 1032, ["onClick"])) : E("", !0)
|
|
4624
4640
|
])
|
|
4625
4641
|
])
|
|
4626
4642
|
]),
|
|
4627
4643
|
_: 1
|
|
4628
|
-
}, 16, ["data", "allow-drag", "allow-drop", "onNodeDragEnd"])) :
|
|
4644
|
+
}, 16, ["data", "allow-drag", "allow-drop", "onNodeDragEnd"])) : E("", !0)
|
|
4629
4645
|
]),
|
|
4630
4646
|
_: 1
|
|
4631
4647
|
})
|
|
@@ -4642,8 +4658,8 @@ function js(e, t) {
|
|
|
4642
4658
|
shadow: "never"
|
|
4643
4659
|
}, {
|
|
4644
4660
|
header: r(() => [
|
|
4645
|
-
b("div",
|
|
4646
|
-
b("span", null,
|
|
4661
|
+
b("div", js, [
|
|
4662
|
+
b("span", null, x(e.formType), 1)
|
|
4647
4663
|
])
|
|
4648
4664
|
]),
|
|
4649
4665
|
default: r(() => [
|
|
@@ -4654,7 +4670,7 @@ function js(e, t) {
|
|
|
4654
4670
|
}, e.formProps, { onSubmit: e.submit }), null, 16, ["modelValue", "onSubmit"]))
|
|
4655
4671
|
]),
|
|
4656
4672
|
_: 1
|
|
4657
|
-
})) :
|
|
4673
|
+
})) : E("", !0)
|
|
4658
4674
|
]),
|
|
4659
4675
|
_: 1
|
|
4660
4676
|
})
|
|
@@ -4662,7 +4678,7 @@ function js(e, t) {
|
|
|
4662
4678
|
_: 1
|
|
4663
4679
|
});
|
|
4664
4680
|
}
|
|
4665
|
-
const Ue = /* @__PURE__ */ C(
|
|
4681
|
+
const Ue = /* @__PURE__ */ C(Is, [["render", Ns]]), Vs = {
|
|
4666
4682
|
__name: "tree",
|
|
4667
4683
|
setup(e) {
|
|
4668
4684
|
const t = (l, n) => {
|
|
@@ -4671,7 +4687,7 @@ const Ue = /* @__PURE__ */ C($s, [["render", js]]), Ns = {
|
|
|
4671
4687
|
o.indexOf(s) === -1 && delete l[s];
|
|
4672
4688
|
}), l;
|
|
4673
4689
|
};
|
|
4674
|
-
return (l, n) => (i(), m(
|
|
4690
|
+
return (l, n) => (i(), m(de, { "schema-handler": t }, {
|
|
4675
4691
|
default: r((o) => [
|
|
4676
4692
|
u(Ue, J(Z(o)), null, 16)
|
|
4677
4693
|
]),
|
|
@@ -4689,7 +4705,7 @@ const Ue = /* @__PURE__ */ C($s, [["render", js]]), Ns = {
|
|
|
4689
4705
|
return i(), m(o);
|
|
4690
4706
|
};
|
|
4691
4707
|
}
|
|
4692
|
-
},
|
|
4708
|
+
}, qs = {
|
|
4693
4709
|
title: {
|
|
4694
4710
|
text: ""
|
|
4695
4711
|
},
|
|
@@ -4718,34 +4734,34 @@ const Ue = /* @__PURE__ */ C($s, [["render", js]]), Ns = {
|
|
|
4718
4734
|
},
|
|
4719
4735
|
series: []
|
|
4720
4736
|
};
|
|
4721
|
-
function
|
|
4737
|
+
function Us(e, t, l) {
|
|
4722
4738
|
if (l.length === 0)
|
|
4723
4739
|
return {};
|
|
4724
|
-
let n = O({},
|
|
4725
|
-
if (n.title.text = e,
|
|
4740
|
+
let n = O({}, qs);
|
|
4741
|
+
if (n.title.text = e, xe(t)) {
|
|
4726
4742
|
const o = [], s = Object.keys(l[0]);
|
|
4727
|
-
let a = s[0], c = s.filter((p,
|
|
4743
|
+
let a = s[0], c = s.filter((p, h) => h > 0), d = t;
|
|
4728
4744
|
if (t.indexOf(":") > -1) {
|
|
4729
|
-
const p = t.split(":"),
|
|
4730
|
-
d = p[0], a =
|
|
4745
|
+
const p = t.split(":"), h = p[1].split(",");
|
|
4746
|
+
d = p[0], a = h[0], c = h.filter((_, A) => A > 0);
|
|
4731
4747
|
}
|
|
4732
4748
|
c.forEach((p) => {
|
|
4733
|
-
const
|
|
4749
|
+
const h = [];
|
|
4734
4750
|
l.forEach((_) => {
|
|
4735
|
-
|
|
4751
|
+
h.push(_[p]);
|
|
4736
4752
|
}), n.series.push({
|
|
4737
4753
|
name: p,
|
|
4738
4754
|
type: d,
|
|
4739
4755
|
smooth: !0,
|
|
4740
|
-
data:
|
|
4756
|
+
data: h
|
|
4741
4757
|
}), n.legend.data.push(p);
|
|
4742
4758
|
}), l.forEach((p) => {
|
|
4743
4759
|
o.push(p[a]);
|
|
4744
4760
|
}), n.xAxis.data = o;
|
|
4745
4761
|
}
|
|
4746
|
-
return
|
|
4762
|
+
return $e(t) && (n = O(n, t)), console.log(111, n), n;
|
|
4747
4763
|
}
|
|
4748
|
-
const
|
|
4764
|
+
const Hs = N({
|
|
4749
4765
|
name: "NumberPanel",
|
|
4750
4766
|
props: {
|
|
4751
4767
|
dataList: {
|
|
@@ -4756,27 +4772,27 @@ const Us = N({
|
|
|
4756
4772
|
data() {
|
|
4757
4773
|
return {};
|
|
4758
4774
|
}
|
|
4759
|
-
}),
|
|
4760
|
-
function
|
|
4761
|
-
return i(!0),
|
|
4762
|
-
b("div",
|
|
4763
|
-
(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", {
|
|
4764
4780
|
key: p,
|
|
4765
4781
|
class: "title-inner"
|
|
4766
4782
|
}, [
|
|
4767
|
-
b("p",
|
|
4768
|
-
b("p",
|
|
4783
|
+
b("p", Js, x(a[d]), 1),
|
|
4784
|
+
b("p", zs, x(d), 1)
|
|
4769
4785
|
]))), 128))
|
|
4770
4786
|
])
|
|
4771
4787
|
]))), 128);
|
|
4772
4788
|
}
|
|
4773
|
-
const
|
|
4789
|
+
const Ws = /* @__PURE__ */ C(Hs, [["render", Ks], ["__scopeId", "data-v-cc0d8293"]]), Zs = {
|
|
4774
4790
|
components: {
|
|
4775
4791
|
Chart: sl,
|
|
4776
4792
|
Md: bl,
|
|
4777
4793
|
Json: Fe,
|
|
4778
|
-
Table:
|
|
4779
|
-
Number:
|
|
4794
|
+
Table: ie,
|
|
4795
|
+
Number: Ws,
|
|
4780
4796
|
Html: ""
|
|
4781
4797
|
},
|
|
4782
4798
|
props: {
|
|
@@ -4797,7 +4813,7 @@ const Ks = /* @__PURE__ */ C(Us, [["render", zs], ["__scopeId", "data-v-cc0d8293
|
|
|
4797
4813
|
};
|
|
4798
4814
|
if (o === "chart")
|
|
4799
4815
|
return {
|
|
4800
|
-
options:
|
|
4816
|
+
options: Us(n.id, n.chart, n.data)
|
|
4801
4817
|
};
|
|
4802
4818
|
if (o === "md")
|
|
4803
4819
|
return {
|
|
@@ -4821,9 +4837,9 @@ const Ks = /* @__PURE__ */ C(Us, [["render", zs], ["__scopeId", "data-v-cc0d8293
|
|
|
4821
4837
|
};
|
|
4822
4838
|
}
|
|
4823
4839
|
};
|
|
4824
|
-
function
|
|
4825
|
-
const a =
|
|
4826
|
-
return
|
|
4840
|
+
function Qs(e, t, l, n, o, s) {
|
|
4841
|
+
const a = Ce, c = St("resize");
|
|
4842
|
+
return _e((i(), m(a, {
|
|
4827
4843
|
shadow: "never",
|
|
4828
4844
|
class: "part"
|
|
4829
4845
|
}, {
|
|
@@ -4835,7 +4851,7 @@ function Zs(e, t, l, n, o, s) {
|
|
|
4835
4851
|
[c, !0]
|
|
4836
4852
|
]);
|
|
4837
4853
|
}
|
|
4838
|
-
const
|
|
4854
|
+
const Xs = /* @__PURE__ */ C(Zs, [["render", Qs], ["__scopeId", "data-v-a5a65cc1"]]), Ys = /* @__PURE__ */ N({
|
|
4839
4855
|
__name: "index",
|
|
4840
4856
|
props: {
|
|
4841
4857
|
filter: {
|
|
@@ -4853,8 +4869,8 @@ const Qs = /* @__PURE__ */ C(Ws, [["render", Zs], ["__scopeId", "data-v-a5a65cc1
|
|
|
4853
4869
|
});
|
|
4854
4870
|
const n = R({});
|
|
4855
4871
|
Ge(() => {
|
|
4856
|
-
var
|
|
4857
|
-
(
|
|
4872
|
+
var h;
|
|
4873
|
+
(h = t.filter) == null || h.forEach((_) => {
|
|
4858
4874
|
_.default !== null && (n.value[_.field] = _.default);
|
|
4859
4875
|
});
|
|
4860
4876
|
});
|
|
@@ -4869,19 +4885,19 @@ const Qs = /* @__PURE__ */ C(Ws, [["render", Zs], ["__scopeId", "data-v-a5a65cc1
|
|
|
4869
4885
|
text: "\u91CD\u7F6E"
|
|
4870
4886
|
}
|
|
4871
4887
|
}, s = R(1), a = R(t.filter), c = R(t.dataPart), d = j(() => {
|
|
4872
|
-
let
|
|
4873
|
-
if (!
|
|
4888
|
+
let h = l.params.id;
|
|
4889
|
+
if (!h) {
|
|
4874
4890
|
const _ = l.path.split("/");
|
|
4875
|
-
|
|
4891
|
+
h = _[_.length - 1];
|
|
4876
4892
|
}
|
|
4877
|
-
return "/focusbi_report/view/" +
|
|
4878
|
-
}), p = (
|
|
4879
|
-
Hl.get(d.value, { params:
|
|
4893
|
+
return "/focusbi_report/view/" + h;
|
|
4894
|
+
}), p = (h) => {
|
|
4895
|
+
Hl.get(d.value, { params: h }).then(({ data: _ }) => {
|
|
4880
4896
|
a.value = _.filter, c.value = _.dataPart, s.value++;
|
|
4881
4897
|
});
|
|
4882
4898
|
};
|
|
4883
|
-
return (
|
|
4884
|
-
const A =
|
|
4899
|
+
return (h, _) => {
|
|
4900
|
+
const A = Ce, I = re, U = ye, V = le;
|
|
4885
4901
|
return i(), m(V, null, {
|
|
4886
4902
|
default: r(() => [
|
|
4887
4903
|
a.value.length > 0 ? (i(), m(I, {
|
|
@@ -4896,7 +4912,7 @@ const Qs = /* @__PURE__ */ C(Ws, [["render", Zs], ["__scopeId", "data-v-a5a65cc1
|
|
|
4896
4912
|
default: r(() => [
|
|
4897
4913
|
u(T(W), {
|
|
4898
4914
|
modelValue: n.value,
|
|
4899
|
-
"onUpdate:modelValue": _[0] || (_[0] = (
|
|
4915
|
+
"onUpdate:modelValue": _[0] || (_[0] = (B) => n.value = B),
|
|
4900
4916
|
"form-items": a.value,
|
|
4901
4917
|
options: o,
|
|
4902
4918
|
onSubmit: p
|
|
@@ -4906,28 +4922,28 @@ const Qs = /* @__PURE__ */ C(Ws, [["render", Zs], ["__scopeId", "data-v-a5a65cc1
|
|
|
4906
4922
|
})
|
|
4907
4923
|
]),
|
|
4908
4924
|
_: 1
|
|
4909
|
-
})) :
|
|
4925
|
+
})) : E("", !0),
|
|
4910
4926
|
u(I, { span: 24 }, {
|
|
4911
4927
|
default: r(() => [
|
|
4912
4928
|
u(V, { gutter: 20 }, {
|
|
4913
4929
|
default: r(() => [
|
|
4914
|
-
(i(!0),
|
|
4930
|
+
(i(!0), f(k, null, $(c.value, (B, z) => (i(), m(I, {
|
|
4915
4931
|
key: z,
|
|
4916
|
-
span:
|
|
4932
|
+
span: B.col || 24
|
|
4917
4933
|
}, {
|
|
4918
4934
|
default: r(() => [
|
|
4919
|
-
|
|
4935
|
+
B.errMsg ? (i(), m(U, {
|
|
4920
4936
|
key: 1,
|
|
4921
|
-
title:
|
|
4937
|
+
title: B.id + " \u7247\u6BB5\u6267\u884C\u51FA\u9519",
|
|
4922
4938
|
type: "error"
|
|
4923
4939
|
}, {
|
|
4924
4940
|
default: r(() => [
|
|
4925
|
-
g(B
|
|
4941
|
+
g(x(B.errMsg), 1)
|
|
4926
4942
|
]),
|
|
4927
4943
|
_: 2
|
|
4928
|
-
}, 1032, ["title"])) : (i(), m(
|
|
4944
|
+
}, 1032, ["title"])) : (i(), m(Xs, {
|
|
4929
4945
|
key: s.value,
|
|
4930
|
-
option:
|
|
4946
|
+
option: B
|
|
4931
4947
|
}, null, 8, ["option"]))
|
|
4932
4948
|
]),
|
|
4933
4949
|
_: 2
|
|
@@ -4944,7 +4960,7 @@ const Qs = /* @__PURE__ */ C(Ws, [["render", Zs], ["__scopeId", "data-v-a5a65cc1
|
|
|
4944
4960
|
};
|
|
4945
4961
|
}
|
|
4946
4962
|
});
|
|
4947
|
-
const
|
|
4963
|
+
const ea = {
|
|
4948
4964
|
__name: "report",
|
|
4949
4965
|
setup(e) {
|
|
4950
4966
|
const t = useRoute(), l = j(() => {
|
|
@@ -4955,19 +4971,19 @@ const Ys = {
|
|
|
4955
4971
|
}
|
|
4956
4972
|
return "/focusbi_report/view/" + n;
|
|
4957
4973
|
});
|
|
4958
|
-
return (n, o) => (i(), m(
|
|
4974
|
+
return (n, o) => (i(), m(de, { "schema-api": T(l) }, {
|
|
4959
4975
|
default: r((s) => [
|
|
4960
|
-
u(
|
|
4976
|
+
u(Ys, J(Z(s)), null, 16)
|
|
4961
4977
|
]),
|
|
4962
4978
|
_: 1
|
|
4963
4979
|
}, 8, ["schema-api"]));
|
|
4964
4980
|
}
|
|
4965
4981
|
};
|
|
4966
4982
|
let X = {};
|
|
4967
|
-
function
|
|
4983
|
+
function bi(e) {
|
|
4968
4984
|
X = e;
|
|
4969
4985
|
}
|
|
4970
|
-
const
|
|
4986
|
+
const ta = (e) => {
|
|
4971
4987
|
const t = (l) => {
|
|
4972
4988
|
const n = "./views/" + l + ".vue";
|
|
4973
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);
|
|
@@ -4983,26 +4999,26 @@ const ea = (e) => {
|
|
|
4983
4999
|
case P.localComp:
|
|
4984
5000
|
return t(e.view || "");
|
|
4985
5001
|
case P.tree:
|
|
4986
|
-
return
|
|
5002
|
+
return Vs;
|
|
4987
5003
|
case P.report:
|
|
4988
|
-
return
|
|
5004
|
+
return ea;
|
|
4989
5005
|
case P.customSchema:
|
|
4990
5006
|
return oe;
|
|
4991
5007
|
}
|
|
4992
5008
|
return oe;
|
|
4993
5009
|
};
|
|
4994
|
-
function
|
|
5010
|
+
function la(e) {
|
|
4995
5011
|
let t = e.path;
|
|
4996
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;
|
|
4997
5013
|
}
|
|
4998
|
-
function
|
|
5014
|
+
function oa(e) {
|
|
4999
5015
|
return (e.path + e.name).split("/").filter((t) => t).join("_");
|
|
5000
5016
|
}
|
|
5001
5017
|
const bt = (e) => {
|
|
5002
5018
|
const t = e.type !== D.page, l = {
|
|
5003
|
-
path:
|
|
5004
|
-
name: e.id + "_" +
|
|
5005
|
-
component:
|
|
5019
|
+
path: la(e),
|
|
5020
|
+
name: e.id + "_" + oa(e) + "_" + e.path.replaceAll("/", "_"),
|
|
5021
|
+
component: ta(e),
|
|
5006
5022
|
meta: {
|
|
5007
5023
|
id: e.id,
|
|
5008
5024
|
pageId: e.id,
|
|
@@ -5071,7 +5087,7 @@ const bt = (e) => {
|
|
|
5071
5087
|
}
|
|
5072
5088
|
}
|
|
5073
5089
|
return l;
|
|
5074
|
-
},
|
|
5090
|
+
}, na = (e) => {
|
|
5075
5091
|
const t = [];
|
|
5076
5092
|
return e.forEach((l) => {
|
|
5077
5093
|
const n = {
|
|
@@ -5084,7 +5100,7 @@ const bt = (e) => {
|
|
|
5084
5100
|
}), t.push(n);
|
|
5085
5101
|
}), t;
|
|
5086
5102
|
};
|
|
5087
|
-
function
|
|
5103
|
+
function sa(e) {
|
|
5088
5104
|
e.beforeEach(async (t, l, n) => {
|
|
5089
5105
|
if (mt().indexOf(t.path) !== -1) {
|
|
5090
5106
|
n();
|
|
@@ -5094,8 +5110,8 @@ function na(e) {
|
|
|
5094
5110
|
n();
|
|
5095
5111
|
return;
|
|
5096
5112
|
}
|
|
5097
|
-
await
|
|
5098
|
-
const o = await
|
|
5113
|
+
await w.dispatch("user/info");
|
|
5114
|
+
const o = await w.dispatch("user/loadRemoteRoutes"), s = na(o);
|
|
5099
5115
|
s.forEach((a) => {
|
|
5100
5116
|
a.routes.forEach((c) => {
|
|
5101
5117
|
e.addRoute({
|
|
@@ -5104,27 +5120,27 @@ function na(e) {
|
|
|
5104
5120
|
children: [c]
|
|
5105
5121
|
});
|
|
5106
5122
|
});
|
|
5107
|
-
}), e.addRoute({ name: "404", path: "/:pathMatch(.*)*", redirect: "/404", hidden: !0 }),
|
|
5123
|
+
}), e.addRoute({ name: "404", path: "/:pathMatch(.*)*", redirect: "/404", hidden: !0 }), w.commit("user/updateRemoteRouter", s), await e.replace(t), n();
|
|
5108
5124
|
});
|
|
5109
5125
|
}
|
|
5110
|
-
function
|
|
5126
|
+
function aa(e) {
|
|
5111
5127
|
e.beforeEach(async (t, l, n) => {
|
|
5112
5128
|
var c;
|
|
5113
|
-
const s = [
|
|
5129
|
+
const s = [w.state.settings.title || ""], a = t.matched.length;
|
|
5114
5130
|
for (let d = a; d > a - 3; d--) {
|
|
5115
5131
|
const p = t.matched[d - 1];
|
|
5116
5132
|
(c = p == null ? void 0 : p.meta) != null && c.title && s.push(p.meta.title + "");
|
|
5117
5133
|
}
|
|
5118
5134
|
s.length > 1 && (document.title = s.reverse().join("-")), n();
|
|
5119
5135
|
}), e.afterEach(async (t, l, n) => {
|
|
5120
|
-
Object.keys(t.meta).length > 0 && await
|
|
5136
|
+
Object.keys(t.meta).length > 0 && await w.dispatch("app/setCurrentMeta", t.meta);
|
|
5121
5137
|
});
|
|
5122
5138
|
}
|
|
5123
|
-
function
|
|
5124
|
-
gs(e), _s(e),
|
|
5139
|
+
function ia(e) {
|
|
5140
|
+
gs(e), _s(e), sa(e), aa(e);
|
|
5125
5141
|
}
|
|
5126
|
-
|
|
5127
|
-
const
|
|
5142
|
+
ia(te);
|
|
5143
|
+
const ra = {
|
|
5128
5144
|
beforeMount(e, t) {
|
|
5129
5145
|
e.clickOutsideEvent = function(l) {
|
|
5130
5146
|
e === l.target || e.contains(l.target) || t.value(l, e);
|
|
@@ -5133,13 +5149,13 @@ const ia = {
|
|
|
5133
5149
|
unmounted(e) {
|
|
5134
5150
|
document.body.removeEventListener("click", e.clickOutsideEvent);
|
|
5135
5151
|
}
|
|
5136
|
-
}, G = fl(),
|
|
5152
|
+
}, G = fl(), ua = {
|
|
5137
5153
|
mounted: (e, t) => {
|
|
5138
5154
|
e !== null && (t.value, e.oncontextmenu = (l) => {
|
|
5139
5155
|
l.preventDefault(), l.stopPropagation(), l.cancelBubble = !0, t.value && G.emit("right-click", { event: l, data: t.value });
|
|
5140
5156
|
});
|
|
5141
5157
|
}
|
|
5142
|
-
},
|
|
5158
|
+
}, ca = {
|
|
5143
5159
|
mounted(e) {
|
|
5144
5160
|
}
|
|
5145
5161
|
};
|
|
@@ -5149,7 +5165,7 @@ function He(e, t) {
|
|
|
5149
5165
|
l += n[`offset${t}`], n = n.offsetParent;
|
|
5150
5166
|
return l;
|
|
5151
5167
|
}
|
|
5152
|
-
const
|
|
5168
|
+
const da = {
|
|
5153
5169
|
mounted: (e, t) => {
|
|
5154
5170
|
if (e === null || !t.value.dev)
|
|
5155
5171
|
return;
|
|
@@ -5175,65 +5191,65 @@ const ca = {
|
|
|
5175
5191
|
G.emit("dev-action", { event: d, data: { type: "del", devId: t.value.devId } });
|
|
5176
5192
|
}, n.appendChild(a), l.insertBefore(n, l.firstChild);
|
|
5177
5193
|
}
|
|
5178
|
-
},
|
|
5194
|
+
}, pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5179
5195
|
__proto__: null,
|
|
5180
|
-
outClick:
|
|
5181
|
-
rightClick:
|
|
5182
|
-
resize:
|
|
5183
|
-
devtool:
|
|
5196
|
+
outClick: ra,
|
|
5197
|
+
rightClick: ua,
|
|
5198
|
+
resize: ca,
|
|
5199
|
+
devtool: da
|
|
5184
5200
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5185
5201
|
let se;
|
|
5186
|
-
function bi(e) {
|
|
5187
|
-
return e ? Pe(O(de.axios, e)) : se;
|
|
5188
|
-
}
|
|
5189
5202
|
function _i(e) {
|
|
5190
|
-
|
|
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 || [];
|
|
5191
5207
|
o.unshift(n), o.forEach((s) => {
|
|
5192
|
-
|
|
5193
|
-
}), t != null && t.mock &&
|
|
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(() => ({
|
|
5194
5210
|
"X-Token": Oe()
|
|
5195
5211
|
})), te.isReady().then(() => l.mount("#app"));
|
|
5196
5212
|
}
|
|
5197
|
-
function
|
|
5213
|
+
function ma(e, t = {}) {
|
|
5198
5214
|
Object.keys(t).forEach((l) => {
|
|
5199
5215
|
e.component(l, t[l]);
|
|
5200
5216
|
});
|
|
5201
5217
|
}
|
|
5202
|
-
function
|
|
5218
|
+
function fa(e = []) {
|
|
5203
5219
|
e.forEach((t) => {
|
|
5204
5220
|
te.addRoute(t);
|
|
5205
|
-
}),
|
|
5221
|
+
}), w.commit("user/setCustomRoutes", e);
|
|
5206
5222
|
}
|
|
5207
|
-
function
|
|
5223
|
+
function ha(e, t) {
|
|
5208
5224
|
t.forEach((l) => {
|
|
5209
|
-
|
|
5225
|
+
$e(l) && (l = [l]), e.use(...l);
|
|
5210
5226
|
});
|
|
5211
5227
|
}
|
|
5212
|
-
function
|
|
5228
|
+
function ba(e, t = {}) {
|
|
5213
5229
|
Object.keys(t).forEach((l) => {
|
|
5214
5230
|
e.directive(l, t[l]);
|
|
5215
5231
|
});
|
|
5216
5232
|
}
|
|
5217
|
-
function
|
|
5233
|
+
function _a(e = {}) {
|
|
5218
5234
|
const t = ["app", "settings", "user"];
|
|
5219
5235
|
Object.keys(e).forEach((l) => {
|
|
5220
5236
|
if (t.indexOf(l) !== -1) {
|
|
5221
5237
|
console.warn(`storeModule name [${l}] is use by base, please change it!`);
|
|
5222
5238
|
return;
|
|
5223
5239
|
}
|
|
5224
|
-
|
|
5240
|
+
w.registerModule(l, e[l]);
|
|
5225
5241
|
});
|
|
5226
5242
|
}
|
|
5227
|
-
function
|
|
5228
|
-
|
|
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 || []);
|
|
5229
5245
|
}
|
|
5230
|
-
function
|
|
5246
|
+
function va(e) {
|
|
5231
5247
|
var t;
|
|
5232
5248
|
return {
|
|
5233
5249
|
components: { VIcon: il },
|
|
5234
|
-
directives:
|
|
5250
|
+
directives: pa,
|
|
5235
5251
|
use: [
|
|
5236
|
-
|
|
5252
|
+
w,
|
|
5237
5253
|
te,
|
|
5238
5254
|
[ll, { locale: Be, ...(t = e.settings) == null ? void 0 : t.ElementPlus }]
|
|
5239
5255
|
]
|
|
@@ -5249,14 +5265,14 @@ export {
|
|
|
5249
5265
|
Ve as MessageBox,
|
|
5250
5266
|
P as PageType,
|
|
5251
5267
|
es as allSso,
|
|
5252
|
-
|
|
5268
|
+
yi as createAdmin,
|
|
5253
5269
|
G as eventBus,
|
|
5254
5270
|
Gl as getCmp,
|
|
5255
5271
|
se as http,
|
|
5256
5272
|
Pe as instance,
|
|
5257
|
-
|
|
5258
|
-
|
|
5259
|
-
|
|
5260
|
-
|
|
5273
|
+
bi as regViews,
|
|
5274
|
+
hi as setCmp,
|
|
5275
|
+
na as transRemoteModules,
|
|
5276
|
+
_i as useHttp
|
|
5261
5277
|
};
|
|
5262
5278
|
//# sourceMappingURL=index.es.js.map
|