@okiss/oms 0.0.94 → 0.0.95
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 +159 -159
- package/dist/index.es.js.map +1 -1
- package/dist/oms.css +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as T, watch as ue, computed as g, defineComponent as G, onBeforeMount as We, provide as xn, resolveComponent as M, createBlock as h, openBlock as r, createVNode as c, createTextVNode as I, withCtx as i, TransitionGroup as En, createElementBlock as v, Fragment as R, renderList as U, toDisplayString as A, normalizeClass as te, renderSlot as
|
|
1
|
+
import { ref as T, watch as ue, computed as g, defineComponent as G, onBeforeMount as We, provide as xn, resolveComponent as M, createBlock as h, openBlock as r, createVNode as c, createTextVNode as I, withCtx as i, TransitionGroup as En, createElementBlock as v, Fragment as R, renderList as U, toDisplayString as A, normalizeClass as te, renderSlot as fe, createCommentVNode as $, mergeProps as X, toRefs as In, unref as f, isRef as Qe, onMounted as Te, normalizeStyle as Cn, createElementVNode as y, withKeys as bt, withModifiers as He, resolveDynamicComponent as Xe, Transition as Bt, normalizeProps as Z, guardReactiveProps as de, onUnmounted as Tn, resolveDirective as On, withDirectives as $n, getCurrentInstance as Bn, h as An, toRaw as Rn, createApp as Pn } from "vue";
|
|
2
2
|
import { normalizeTheme as he, applyDocumentTheme as Ln, dispatchThemeChange as Mn, addNewStyle as Dn, addNewStyleTag as jn, queryParams as Nn, logGroup as Vn, compactObject as At, showEleByClassName as Rt, waterMarker as Un, Cache as we, isExternal as yt, getQueryParam as Pt, createIFrame as qn, strVarReplace as re, obj2Param as Hn, isObject as ce, isString as Ze, effectDataTrans as Fn, isArray as Lt } from "@okiss/utils";
|
|
3
3
|
import { defineStore as Oe, createPinia as Gn } from "pinia";
|
|
4
4
|
import ne from "js-cookie";
|
|
@@ -11,7 +11,7 @@ import "element-plus/theme-chalk/src/index.scss";
|
|
|
11
11
|
import "element-plus/theme-chalk/src/dark/css-vars.scss";
|
|
12
12
|
import "dayjs/locale/zh-cn";
|
|
13
13
|
import { useRoute as Q, useRouter as $e, onBeforeRouteLeave as Zn, createRouter as Yn, createWebHashHistory as eo, onBeforeRouteUpdate as to } from "vue-router";
|
|
14
|
-
import { ElBreadcrumb as no, ElBreadcrumbItem as oo, ElContainer as lo, ElRow as ve, ElMain as so, ElAside as ao, ElForm as et, ElFormItem as tt, ElSelect as nt, ElOption as ot, ElDivider as Vt, ElButton as ye, ElCol as Be, ElDrawer as Ut, ElTooltip as qt, ElIcon as Ht, ElDropdown as io, ElDropdownMenu as ro, ElDropdownItem as co, ElAvatar as uo, ElImage as po, ElMenuItem as
|
|
14
|
+
import { ElBreadcrumb as no, ElBreadcrumbItem as oo, ElContainer as lo, ElRow as ve, ElMain as so, ElAside as ao, ElForm as et, ElFormItem as tt, ElSelect as nt, ElOption as ot, ElDivider as Vt, ElButton as ye, ElCol as Be, ElDrawer as Ut, ElTooltip as qt, ElIcon as Ht, ElDropdown as io, ElDropdownMenu as ro, ElDropdownItem as co, ElAvatar as uo, ElImage as po, ElMenuItem as mo, ElSubMenu as fo, ElOptionGroup as ho, ElScrollbar as bo, ElMenu as yo, ElBacktop as _o, ElCard as Ae, ElInput as vo, ElAlert as lt, ElTree as go } from "element-plus/es";
|
|
15
15
|
import "element-plus/es/components/base/style/css";
|
|
16
16
|
import "element-plus/es/components/row/style/css";
|
|
17
17
|
import "element-plus/es/components/drawer/style/css";
|
|
@@ -529,7 +529,7 @@ function Qo() {
|
|
|
529
529
|
Object.keys(Ge).forEach((e) => {
|
|
530
530
|
const t = Ge[e], n = Xt(t);
|
|
531
531
|
Me.mock(n, t.method, function(o) {
|
|
532
|
-
const { url: l, type: s, body: a } = o, u = Nn(l), d = a ? JSON.parse(a) : {},
|
|
532
|
+
const { url: l, type: s, body: a } = o, u = Nn(l), d = a ? JSON.parse(a) : {}, m = t.response({ query: u, data: d }), p = Me.mock(m);
|
|
533
533
|
return Vn(l, { type: s, query: u, data: d, response: p }), Me.mock(p);
|
|
534
534
|
});
|
|
535
535
|
});
|
|
@@ -667,11 +667,11 @@ function il(e, t, n, o, l, s) {
|
|
|
667
667
|
default: i(() => [
|
|
668
668
|
c(En, { name: "breadcrumb" }, {
|
|
669
669
|
default: i(() => [
|
|
670
|
-
(r(!0), v(R, null, U(l.levelList, (d,
|
|
670
|
+
(r(!0), v(R, null, U(l.levelList, (d, m) => (r(), h(a, {
|
|
671
671
|
key: d.path
|
|
672
672
|
}, {
|
|
673
673
|
default: i(() => [
|
|
674
|
-
d.path.indexOf("/DIR_") === 0 && d.redirect === void 0 ||
|
|
674
|
+
d.path.indexOf("/DIR_") === 0 && d.redirect === void 0 || m === l.levelList.length - 1 ? (r(), v("span", sl, A(d.meta.title), 1)) : (r(), v("a", {
|
|
675
675
|
key: 1,
|
|
676
676
|
onClick: (p) => s.handleLink(d)
|
|
677
677
|
}, A(d.meta.title), 9, al))
|
|
@@ -713,13 +713,13 @@ function ul(e, t, n, o, l, s) {
|
|
|
713
713
|
]);
|
|
714
714
|
}
|
|
715
715
|
const dl = /* @__PURE__ */ L(cl, [["render", ul]]), pl = {};
|
|
716
|
-
function
|
|
716
|
+
function ml(e, t) {
|
|
717
717
|
const n = ve, o = so, l = ao, s = lo;
|
|
718
718
|
return r(), h(s, { style: { width: "100%", height: "100%" } }, {
|
|
719
719
|
default: i(() => [
|
|
720
720
|
c(n, { class: "aside" }, {
|
|
721
721
|
default: i(() => [
|
|
722
|
-
|
|
722
|
+
fe(e.$slots, "left-aside", {}, void 0, !0)
|
|
723
723
|
]),
|
|
724
724
|
_: 3
|
|
725
725
|
}),
|
|
@@ -728,7 +728,7 @@ function fl(e, t) {
|
|
|
728
728
|
style: { margin: "0 10px" }
|
|
729
729
|
}, {
|
|
730
730
|
default: i(() => [
|
|
731
|
-
|
|
731
|
+
fe(e.$slots, "main", {}, void 0, !0)
|
|
732
732
|
]),
|
|
733
733
|
_: 3
|
|
734
734
|
}),
|
|
@@ -738,7 +738,7 @@ function fl(e, t) {
|
|
|
738
738
|
style: { padding: "20px" }
|
|
739
739
|
}, {
|
|
740
740
|
default: i(() => [
|
|
741
|
-
|
|
741
|
+
fe(e.$slots, "right-aside", {}, void 0, !0)
|
|
742
742
|
]),
|
|
743
743
|
_: 3
|
|
744
744
|
})
|
|
@@ -746,7 +746,7 @@ function fl(e, t) {
|
|
|
746
746
|
_: 3
|
|
747
747
|
});
|
|
748
748
|
}
|
|
749
|
-
const Yt = /* @__PURE__ */ L(pl, [["render",
|
|
749
|
+
const Yt = /* @__PURE__ */ L(pl, [["render", ml], ["__scopeId", "data-v-7c3d697b"]]), fl = {
|
|
750
750
|
type: "input",
|
|
751
751
|
name: "文本框",
|
|
752
752
|
default: {
|
|
@@ -1323,7 +1323,7 @@ const Yt = /* @__PURE__ */ L(pl, [["render", fl], ["__scopeId", "data-v-7c3d697b
|
|
|
1323
1323
|
function H(e) {
|
|
1324
1324
|
en[e.type] = e;
|
|
1325
1325
|
}
|
|
1326
|
-
H(
|
|
1326
|
+
H(fl);
|
|
1327
1327
|
H(yl);
|
|
1328
1328
|
H(hl);
|
|
1329
1329
|
H(bl);
|
|
@@ -1611,7 +1611,7 @@ const Tl = {
|
|
|
1611
1611
|
}
|
|
1612
1612
|
};
|
|
1613
1613
|
function $l(e, t, n, o, l, s) {
|
|
1614
|
-
const a = M("v-form"), u = Vt, d = ye,
|
|
1614
|
+
const a = M("v-form"), u = Vt, d = ye, m = M("JsonView"), p = M("VButton"), b = ot, w = nt, C = tt, O = et, x = M("dev-layout");
|
|
1615
1615
|
return r(), h(x, null, {
|
|
1616
1616
|
main: i(() => [
|
|
1617
1617
|
l.builderSchema.formItems ? (r(), h(a, X({
|
|
@@ -1635,7 +1635,7 @@ function $l(e, t, n, o, l, s) {
|
|
|
1635
1635
|
type: "modal"
|
|
1636
1636
|
}, {
|
|
1637
1637
|
default: i(() => [
|
|
1638
|
-
c(
|
|
1638
|
+
c(m, { data: s.getSaveSchema }, null, 8, ["data"])
|
|
1639
1639
|
]),
|
|
1640
1640
|
_: 1
|
|
1641
1641
|
})
|
|
@@ -2557,7 +2557,7 @@ const Bl = /* @__PURE__ */ L(Ol, [["render", $l], ["__scopeId", "data-v-875f0171
|
|
|
2557
2557
|
}
|
|
2558
2558
|
};
|
|
2559
2559
|
function Xl(e, t, n, o, l, s) {
|
|
2560
|
-
const a = Be, u = ye, d = ve,
|
|
2560
|
+
const a = Be, u = ye, d = ve, m = M("v-table"), p = Vt, b = ye, w = M("JsonView"), C = M("VButton"), O = ot, x = nt, _ = tt, S = et, K = M("v-form"), z = M("dev-layout");
|
|
2561
2561
|
return r(), h(z, null, {
|
|
2562
2562
|
"left-aside": i(() => [
|
|
2563
2563
|
c(d, { style: { width: "200px" } }, {
|
|
@@ -2757,7 +2757,7 @@ function Xl(e, t, n, o, l, s) {
|
|
|
2757
2757
|
})
|
|
2758
2758
|
]),
|
|
2759
2759
|
main: i(() => [
|
|
2760
|
-
(r(), h(
|
|
2760
|
+
(r(), h(m, X({
|
|
2761
2761
|
ref: "table",
|
|
2762
2762
|
key: l.key,
|
|
2763
2763
|
dev: !0
|
|
@@ -2827,11 +2827,11 @@ const Zl = /* @__PURE__ */ L(Ql, [["render", Xl], ["__scopeId", "data-v-cd18f87f
|
|
|
2827
2827
|
return r(), v(R, null, [
|
|
2828
2828
|
c(u, {
|
|
2829
2829
|
name: "ra-set",
|
|
2830
|
-
onClick: a[0] || (a[0] = (
|
|
2830
|
+
onClick: a[0] || (a[0] = (m) => t.value = !f(t))
|
|
2831
2831
|
}),
|
|
2832
2832
|
c(d, {
|
|
2833
|
-
modelValue:
|
|
2834
|
-
"onUpdate:modelValue": a[1] || (a[1] = (
|
|
2833
|
+
modelValue: f(t),
|
|
2834
|
+
"onUpdate:modelValue": a[1] || (a[1] = (m) => Qe(t) ? t.value = m : null),
|
|
2835
2835
|
title: "页面设计",
|
|
2836
2836
|
class: "my-drawer",
|
|
2837
2837
|
direction: Yl,
|
|
@@ -2840,13 +2840,13 @@ const Zl = /* @__PURE__ */ L(Ql, [["render", Xl], ["__scopeId", "data-v-cd18f87f
|
|
|
2840
2840
|
"append-to-body": ""
|
|
2841
2841
|
}, {
|
|
2842
2842
|
default: i(() => [
|
|
2843
|
-
|
|
2843
|
+
f(l).formItems !== void 0 ? (r(), h(Bl, {
|
|
2844
2844
|
key: 0,
|
|
2845
|
-
schema:
|
|
2845
|
+
schema: f(l)
|
|
2846
2846
|
}, null, 8, ["schema"])) : $("", !0),
|
|
2847
|
-
|
|
2847
|
+
f(l).headers !== void 0 ? (r(), h(Zl, {
|
|
2848
2848
|
key: 1,
|
|
2849
|
-
schema:
|
|
2849
|
+
schema: f(l)
|
|
2850
2850
|
}, null, 8, ["schema"])) : $("", !0)
|
|
2851
2851
|
]),
|
|
2852
2852
|
_: 1
|
|
@@ -2870,7 +2870,7 @@ function ns(e) {
|
|
|
2870
2870
|
function Ue(e) {
|
|
2871
2871
|
if (Ee.value = e, typeof document < "u") {
|
|
2872
2872
|
const t = document.documentElement;
|
|
2873
|
-
t.classList.remove("aesthetic-default", "aesthetic-theme2", "aesthetic-theme3"), e === "default" ? t.classList.add("aesthetic-default") : e === "theme2" ? t.classList.add("aesthetic-theme2") : e === "theme3" && t.classList.add("aesthetic-theme3");
|
|
2873
|
+
t.classList.remove("aesthetic-default", "aesthetic-theme2", "aesthetic-theme3"), e === "default" ? t.classList.add("aesthetic-default") : e === "theme2" ? t.classList.add("aesthetic-theme2") : e === "theme3" && t.classList.add("aesthetic-theme3"), `${e}`, t.className;
|
|
2874
2874
|
}
|
|
2875
2875
|
ns(e);
|
|
2876
2876
|
}
|
|
@@ -2916,10 +2916,10 @@ const ls = { class: "right-content" }, ss = {
|
|
|
2916
2916
|
T(!1);
|
|
2917
2917
|
const l = T(!1);
|
|
2918
2918
|
T(""), T(0);
|
|
2919
|
-
const s = g(() => n.defaultAvatar), a = g(() => t.sidebar), u = g(() => t.device), d = g(() => o.avatar),
|
|
2919
|
+
const s = g(() => n.defaultAvatar), a = g(() => t.sidebar), u = g(() => t.device), d = g(() => o.avatar), m = g(() => o.name), p = g(() => o.nickname), b = g(() => n.nav), w = g(() => n), C = g(() => o), O = g(() => n.showPageJsonSchema || !1), { isDark: x, toggleTheme: _ } = Wt(), { aestheticMode: S, setAestheticMode: K } = os(), z = g(() => {
|
|
2920
2920
|
const j = w.value.envColor?.[C.value.env];
|
|
2921
2921
|
return x.value ? {
|
|
2922
|
-
background: "linear-gradient(135deg, rgba(0, 176, 116, 0.15) 0%, rgba(2, 6, 23, 0.95) 100%)",
|
|
2922
|
+
background: "linear-gradient(135deg, rgba(var(--el-color-primary-rgb, 0, 176, 116), 0.15) 0%, rgba(2, 6, 23, 0.95) 100%)",
|
|
2923
2923
|
borderBottom: "1px solid var(--border-color)",
|
|
2924
2924
|
boxShadow: "0 4px 12px rgba(0, 0, 0, 0.3)"
|
|
2925
2925
|
} : j ? {
|
|
@@ -2953,7 +2953,7 @@ const ls = { class: "right-content" }, ss = {
|
|
|
2953
2953
|
W.value = !1, P.value = d.value || s.value || "";
|
|
2954
2954
|
}, { immediate: !0 });
|
|
2955
2955
|
const Pe = g(() => {
|
|
2956
|
-
const j = p.value ||
|
|
2956
|
+
const j = p.value || m.value || n.title || "用户";
|
|
2957
2957
|
return j ? j.toString().trim().charAt(0).toUpperCase() : "用";
|
|
2958
2958
|
});
|
|
2959
2959
|
function ee() {
|
|
@@ -2981,7 +2981,7 @@ const ls = { class: "right-content" }, ss = {
|
|
|
2981
2981
|
W.value || (W.value = !0, P.value = "");
|
|
2982
2982
|
}
|
|
2983
2983
|
return (j, B) => {
|
|
2984
|
-
const pt = Be,
|
|
2984
|
+
const pt = Be, mt = Ht, gn = qt, ae = co, ft = ro, ht = io, kn = uo, wn = Ut, Sn = ve;
|
|
2985
2985
|
return r(), h(Sn, {
|
|
2986
2986
|
ref_key: "header",
|
|
2987
2987
|
ref: k,
|
|
@@ -3010,11 +3010,11 @@ const ls = { class: "right-content" }, ss = {
|
|
|
3010
3010
|
c(es)
|
|
3011
3011
|
])) : $("", !0),
|
|
3012
3012
|
y("div", as, [
|
|
3013
|
-
c(
|
|
3013
|
+
c(f(at), { buttons: b.value }, null, 8, ["buttons"])
|
|
3014
3014
|
]),
|
|
3015
3015
|
c(gn, {
|
|
3016
3016
|
placement: "bottom",
|
|
3017
|
-
content:
|
|
3017
|
+
content: f(x) ? "切换为明亮模式" : "切换为暗黑模式"
|
|
3018
3018
|
}, {
|
|
3019
3019
|
default: i(() => [
|
|
3020
3020
|
y("div", {
|
|
@@ -3022,23 +3022,23 @@ const ls = { class: "right-content" }, ss = {
|
|
|
3022
3022
|
role: "button",
|
|
3023
3023
|
tabindex: "0",
|
|
3024
3024
|
onClick: B[0] || (B[0] = //@ts-ignore
|
|
3025
|
-
(...ie) =>
|
|
3025
|
+
(...ie) => f(_) && f(_)(...ie)),
|
|
3026
3026
|
onKeydown: [
|
|
3027
3027
|
B[1] || (B[1] = bt(He(
|
|
3028
3028
|
//@ts-ignore
|
|
3029
|
-
(...ie) =>
|
|
3029
|
+
(...ie) => f(_) && f(_)(...ie),
|
|
3030
3030
|
["prevent"]
|
|
3031
3031
|
), ["enter"])),
|
|
3032
3032
|
B[2] || (B[2] = bt(He(
|
|
3033
3033
|
//@ts-ignore
|
|
3034
|
-
(...ie) =>
|
|
3034
|
+
(...ie) => f(_) && f(_)(...ie),
|
|
3035
3035
|
["prevent"]
|
|
3036
3036
|
), ["space"]))
|
|
3037
3037
|
]
|
|
3038
3038
|
}, [
|
|
3039
|
-
c(
|
|
3039
|
+
c(mt, null, {
|
|
3040
3040
|
default: i(() => [
|
|
3041
|
-
(r(), h(Xe(
|
|
3041
|
+
(r(), h(Xe(f(x) ? f(Io) : f(Co))))
|
|
3042
3042
|
]),
|
|
3043
3043
|
_: 1
|
|
3044
3044
|
})
|
|
@@ -3049,14 +3049,14 @@ const ls = { class: "right-content" }, ss = {
|
|
|
3049
3049
|
c(ht, {
|
|
3050
3050
|
class: "right-item",
|
|
3051
3051
|
trigger: "click",
|
|
3052
|
-
onCommand:
|
|
3052
|
+
onCommand: f(K)
|
|
3053
3053
|
}, {
|
|
3054
3054
|
dropdown: i(() => [
|
|
3055
|
-
c(
|
|
3055
|
+
c(ft, null, {
|
|
3056
3056
|
default: i(() => [
|
|
3057
3057
|
c(ae, {
|
|
3058
3058
|
command: "theme1",
|
|
3059
|
-
disabled:
|
|
3059
|
+
disabled: f(S) === "theme1"
|
|
3060
3060
|
}, {
|
|
3061
3061
|
default: i(() => [...B[4] || (B[4] = [
|
|
3062
3062
|
I("薄荷绿 (Mint)", -1)
|
|
@@ -3065,7 +3065,7 @@ const ls = { class: "right-content" }, ss = {
|
|
|
3065
3065
|
}, 8, ["disabled"]),
|
|
3066
3066
|
c(ae, {
|
|
3067
3067
|
command: "theme2",
|
|
3068
|
-
disabled:
|
|
3068
|
+
disabled: f(S) === "theme2"
|
|
3069
3069
|
}, {
|
|
3070
3070
|
default: i(() => [...B[5] || (B[5] = [
|
|
3071
3071
|
I("皇家紫 (Purple)", -1)
|
|
@@ -3074,7 +3074,7 @@ const ls = { class: "right-content" }, ss = {
|
|
|
3074
3074
|
}, 8, ["disabled"]),
|
|
3075
3075
|
c(ae, {
|
|
3076
3076
|
command: "theme3",
|
|
3077
|
-
disabled:
|
|
3077
|
+
disabled: f(S) === "theme3"
|
|
3078
3078
|
}, {
|
|
3079
3079
|
default: i(() => [...B[6] || (B[6] = [
|
|
3080
3080
|
I("海洋蓝 (Blue)", -1)
|
|
@@ -3083,7 +3083,7 @@ const ls = { class: "right-content" }, ss = {
|
|
|
3083
3083
|
}, 8, ["disabled"]),
|
|
3084
3084
|
c(ae, {
|
|
3085
3085
|
command: "default",
|
|
3086
|
-
disabled:
|
|
3086
|
+
disabled: f(S) === "default",
|
|
3087
3087
|
divided: ""
|
|
3088
3088
|
}, {
|
|
3089
3089
|
default: i(() => [...B[7] || (B[7] = [
|
|
@@ -3097,9 +3097,9 @@ const ls = { class: "right-content" }, ss = {
|
|
|
3097
3097
|
]),
|
|
3098
3098
|
default: i(() => [
|
|
3099
3099
|
y("div", is, [
|
|
3100
|
-
c(
|
|
3100
|
+
c(mt, null, {
|
|
3101
3101
|
default: i(() => [
|
|
3102
|
-
c(
|
|
3102
|
+
c(f(To))
|
|
3103
3103
|
]),
|
|
3104
3104
|
_: 1
|
|
3105
3105
|
})
|
|
@@ -3112,7 +3112,7 @@ const ls = { class: "right-content" }, ss = {
|
|
|
3112
3112
|
trigger: "click"
|
|
3113
3113
|
}, {
|
|
3114
3114
|
dropdown: i(() => [
|
|
3115
|
-
c(
|
|
3115
|
+
c(ft, { class: "user-dropdown" }, {
|
|
3116
3116
|
default: i(() => [
|
|
3117
3117
|
c(ae, {
|
|
3118
3118
|
icon: "oms-icon-index",
|
|
@@ -3150,7 +3150,7 @@ const ls = { class: "right-content" }, ss = {
|
|
|
3150
3150
|
]),
|
|
3151
3151
|
_: 1
|
|
3152
3152
|
}, 8, ["src"]),
|
|
3153
|
-
y("span", cs, A(p.value ||
|
|
3153
|
+
y("span", cs, A(p.value || m.value), 1)
|
|
3154
3154
|
])
|
|
3155
3155
|
]),
|
|
3156
3156
|
_: 1
|
|
@@ -3169,10 +3169,10 @@ const ls = { class: "right-content" }, ss = {
|
|
|
3169
3169
|
}, 8, ["style"]);
|
|
3170
3170
|
};
|
|
3171
3171
|
}
|
|
3172
|
-
}), ds = /* @__PURE__ */ L(us, [["__scopeId", "data-v-
|
|
3172
|
+
}), ds = /* @__PURE__ */ L(us, [["__scopeId", "data-v-a6b384a8"]]), ps = { class: "sidebar-logo-fallback" }, ms = {
|
|
3173
3173
|
key: 1,
|
|
3174
3174
|
class: "sidebar-logo-fallback"
|
|
3175
|
-
},
|
|
3175
|
+
}, fs = { class: "sidebar-logo-fallback" }, hs = {
|
|
3176
3176
|
key: 1,
|
|
3177
3177
|
class: "sidebar-logo-fallback"
|
|
3178
3178
|
}, bs = { class: "sidebar-title" }, ys = /* @__PURE__ */ G({
|
|
@@ -3191,7 +3191,7 @@ const ls = { class: "right-content" }, ss = {
|
|
|
3191
3191
|
function u() {
|
|
3192
3192
|
l.value = !0;
|
|
3193
3193
|
}
|
|
3194
|
-
return (d,
|
|
3194
|
+
return (d, m) => {
|
|
3195
3195
|
const p = po, b = M("router-link");
|
|
3196
3196
|
return r(), v("div", {
|
|
3197
3197
|
class: te(["sidebar-logo-container", { collapse: e.collapse }])
|
|
@@ -3215,8 +3215,8 @@ const ls = { class: "right-content" }, ss = {
|
|
|
3215
3215
|
y("div", ps, A(a.value), 1)
|
|
3216
3216
|
]),
|
|
3217
3217
|
_: 1
|
|
3218
|
-
}, 8, ["src"])) : (r(), v("div",
|
|
3219
|
-
|
|
3218
|
+
}, 8, ["src"])) : (r(), v("div", ms, A(a.value), 1)),
|
|
3219
|
+
m[0] || (m[0] = y("div", { class: "sidebar-subtitle" }, "系统", -1))
|
|
3220
3220
|
]),
|
|
3221
3221
|
_: 1
|
|
3222
3222
|
})) : (r(), h(b, {
|
|
@@ -3233,7 +3233,7 @@ const ls = { class: "right-content" }, ss = {
|
|
|
3233
3233
|
onError: u
|
|
3234
3234
|
}, {
|
|
3235
3235
|
error: i(() => [
|
|
3236
|
-
y("div",
|
|
3236
|
+
y("div", fs, A(a.value), 1)
|
|
3237
3237
|
]),
|
|
3238
3238
|
_: 1
|
|
3239
3239
|
}, 8, ["src"])) : (r(), v("div", hs, A(a.value), 1)),
|
|
@@ -3247,7 +3247,7 @@ const ls = { class: "right-content" }, ss = {
|
|
|
3247
3247
|
], 2);
|
|
3248
3248
|
};
|
|
3249
3249
|
}
|
|
3250
|
-
}), _s = /* @__PURE__ */ L(ys, [["__scopeId", "data-v-
|
|
3250
|
+
}), _s = /* @__PURE__ */ L(ys, [["__scopeId", "data-v-737655f0"]]), vs = {
|
|
3251
3251
|
props: {
|
|
3252
3252
|
to: {
|
|
3253
3253
|
type: String,
|
|
@@ -3283,7 +3283,7 @@ const ls = { class: "right-content" }, ss = {
|
|
|
3283
3283
|
function gs(e, t, n, o, l, s) {
|
|
3284
3284
|
return r(), h(Xe(s.compType(n.to)), Z(de(s.linkProps(n.to))), {
|
|
3285
3285
|
default: i(() => [
|
|
3286
|
-
|
|
3286
|
+
fe(e.$slots, "default")
|
|
3287
3287
|
]),
|
|
3288
3288
|
_: 3
|
|
3289
3289
|
}, 16);
|
|
@@ -3374,9 +3374,9 @@ const ks = /* @__PURE__ */ L(vs, [["render", gs]]), ws = {
|
|
|
3374
3374
|
class: "menu-wrapper"
|
|
3375
3375
|
};
|
|
3376
3376
|
function Cs(e, t, n, o, l, s) {
|
|
3377
|
-
const a = M("menu-content"), u =
|
|
3377
|
+
const a = M("menu-content"), u = mo, d = M("app-link"), m = qt, p = M("sidebar-item", !0), b = fo;
|
|
3378
3378
|
return n.item.hidden !== !1 ? (r(), v("div", Is, [
|
|
3379
|
-
n.item.meta && n.item.meta.menuType === 2 ? (r(), h(
|
|
3379
|
+
n.item.meta && n.item.meta.menuType === 2 ? (r(), h(m, {
|
|
3380
3380
|
key: 0,
|
|
3381
3381
|
disabled: !n.isCollapse,
|
|
3382
3382
|
effect: "dark",
|
|
@@ -3407,7 +3407,7 @@ function Cs(e, t, n, o, l, s) {
|
|
|
3407
3407
|
}, 8, ["to", "new-tab"])) : $("", !0)
|
|
3408
3408
|
]),
|
|
3409
3409
|
_: 1
|
|
3410
|
-
}, 8, ["disabled", "content"])) : n.item.meta && n.item.meta.menuType === 1 ? (r(), h(
|
|
3410
|
+
}, 8, ["disabled", "content"])) : n.item.meta && n.item.meta.menuType === 1 ? (r(), h(m, {
|
|
3411
3411
|
key: 1,
|
|
3412
3412
|
disabled: !n.isCollapse,
|
|
3413
3413
|
effect: "dark",
|
|
@@ -3456,33 +3456,33 @@ const Ts = /* @__PURE__ */ L(Es, [["render", Cs]]), Os = /* @__PURE__ */ G({
|
|
|
3456
3456
|
__name: "SearchMenu",
|
|
3457
3457
|
setup(e) {
|
|
3458
3458
|
const t = N();
|
|
3459
|
-
function n(
|
|
3460
|
-
return
|
|
3459
|
+
function n(m) {
|
|
3460
|
+
return m.filter((p) => p.meta?.menuType === 0 ? !1 : (p.children && (p.children = n(p.children), p.children.length === 0 && delete p.children), !0));
|
|
3461
3461
|
}
|
|
3462
3462
|
const o = T(""), l = g(() => t.remoteRouter), s = $e(), a = g(() => {
|
|
3463
|
-
let
|
|
3463
|
+
let m = [];
|
|
3464
3464
|
return l.value.forEach((p) => {
|
|
3465
|
-
|
|
3466
|
-
}), n(
|
|
3465
|
+
m = m.concat(E(p.routes));
|
|
3466
|
+
}), n(m);
|
|
3467
3467
|
});
|
|
3468
|
-
function u(
|
|
3469
|
-
let p =
|
|
3470
|
-
if (
|
|
3471
|
-
for (let b = 0; b <
|
|
3472
|
-
if (
|
|
3473
|
-
p =
|
|
3468
|
+
function u(m) {
|
|
3469
|
+
let p = m;
|
|
3470
|
+
if (m.meta.menuType === 1 && m.children && m.children.length > 0) {
|
|
3471
|
+
for (let b = 0; b < m.children.length; b++)
|
|
3472
|
+
if (m.children[b].path.indexOf("/:") === -1) {
|
|
3473
|
+
p = m.children[b];
|
|
3474
3474
|
break;
|
|
3475
3475
|
}
|
|
3476
3476
|
}
|
|
3477
3477
|
return s.resolve(p.redirect ? p.redirect : p).fullPath;
|
|
3478
3478
|
}
|
|
3479
|
-
function d(
|
|
3480
|
-
s.push(
|
|
3479
|
+
function d(m) {
|
|
3480
|
+
s.push(m), o.value = "";
|
|
3481
3481
|
}
|
|
3482
|
-
return (
|
|
3482
|
+
return (m, p) => {
|
|
3483
3483
|
const b = ot, w = ho, C = nt;
|
|
3484
3484
|
return r(), h(C, {
|
|
3485
|
-
modelValue:
|
|
3485
|
+
modelValue: f(o),
|
|
3486
3486
|
"onUpdate:modelValue": p[0] || (p[0] = (O) => Qe(o) ? o.value = O : null),
|
|
3487
3487
|
filterable: "",
|
|
3488
3488
|
placeholder: "搜索菜单...",
|
|
@@ -3490,7 +3490,7 @@ const Ts = /* @__PURE__ */ L(Es, [["render", Cs]]), Os = /* @__PURE__ */ G({
|
|
|
3490
3490
|
onChange: d
|
|
3491
3491
|
}, {
|
|
3492
3492
|
default: i(() => [
|
|
3493
|
-
(r(!0), v(R, null, U(
|
|
3493
|
+
(r(!0), v(R, null, U(f(a), (O) => (r(), v(R, {
|
|
3494
3494
|
key: O.path
|
|
3495
3495
|
}, [
|
|
3496
3496
|
O.children !== void 0 ? (r(), v(R, { key: 0 }, [
|
|
@@ -3522,12 +3522,12 @@ const Ts = /* @__PURE__ */ L(Es, [["render", Cs]]), Os = /* @__PURE__ */ G({
|
|
|
3522
3522
|
}, 8, ["modelValue"]);
|
|
3523
3523
|
};
|
|
3524
3524
|
}
|
|
3525
|
-
}), $s = /* @__PURE__ */ L(Os, [["__scopeId", "data-v-
|
|
3525
|
+
}), $s = /* @__PURE__ */ L(Os, [["__scopeId", "data-v-02f2e7b9"]]);
|
|
3526
3526
|
var J = /* @__PURE__ */ ((e) => (e[e.custom = 0] = "custom", e[e.list = 1] = "list", e[e.form = 2] = "form", e[e.customSchema = 3] = "customSchema", e[e.localComp = 4] = "localComp", e[e.tree = 5] = "tree", e[e.report = 6] = "report", e[e.entity = 7] = "entity", e))(J || {}), F = /* @__PURE__ */ ((e) => (e[e.hidden = 0] = "hidden", e[e.dir = 1] = "dir", e[e.menu = 2] = "menu", e[e.page = 3] = "page", e))(F || {});
|
|
3527
3527
|
const Bs = /* @__PURE__ */ G({
|
|
3528
3528
|
__name: "index",
|
|
3529
3529
|
setup(e) {
|
|
3530
|
-
const t = Y(), n = N(), o = V(), l = g(() => t.sidebar), s = g(() => n.remoteRouter), a = g(() => n.customRouter), u = $e(), d = Q(),
|
|
3530
|
+
const t = Y(), n = N(), o = V(), l = g(() => t.sidebar), s = g(() => n.remoteRouter), a = g(() => n.customRouter), u = $e(), d = Q(), m = g(() => {
|
|
3531
3531
|
let x = [];
|
|
3532
3532
|
return u.options.routes.concat(a.value || []).forEach((_) => {
|
|
3533
3533
|
_.path === "/" ? x = x.concat(_.children || []) : x.push(_);
|
|
@@ -3554,31 +3554,31 @@ const Bs = /* @__PURE__ */ G({
|
|
|
3554
3554
|
return (x, _) => {
|
|
3555
3555
|
const S = yo, K = bo;
|
|
3556
3556
|
return r(), v("div", {
|
|
3557
|
-
class: te({ "has-logo":
|
|
3557
|
+
class: te({ "has-logo": f(b) })
|
|
3558
3558
|
}, [
|
|
3559
|
-
|
|
3559
|
+
f(b) ? (r(), h(_s, {
|
|
3560
3560
|
key: 0,
|
|
3561
|
-
collapse:
|
|
3561
|
+
collapse: f(w)
|
|
3562
3562
|
}, null, 8, ["collapse"])) : $("", !0),
|
|
3563
3563
|
c(K, { "wrap-class": "scrollbar-wrapper" }, {
|
|
3564
3564
|
default: i(() => [
|
|
3565
|
-
|
|
3565
|
+
f(w) ? $("", !0) : (r(), h($s, { key: 0 })),
|
|
3566
3566
|
c(S, {
|
|
3567
|
-
"default-active":
|
|
3568
|
-
collapse:
|
|
3567
|
+
"default-active": f(p),
|
|
3568
|
+
collapse: f(w),
|
|
3569
3569
|
"unique-opened": !1,
|
|
3570
3570
|
"collapse-transition": !1,
|
|
3571
3571
|
mode: "vertical"
|
|
3572
3572
|
}, {
|
|
3573
3573
|
default: i(() => [
|
|
3574
|
-
(r(!0), v(R, null, U(m
|
|
3574
|
+
(r(!0), v(R, null, U(f(m), (z, k) => (r(), v(R, {
|
|
3575
3575
|
key: k + "-module"
|
|
3576
3576
|
}, [
|
|
3577
3577
|
(r(!0), v(R, null, U(O(z.routes), (P) => (r(), h(Ts, {
|
|
3578
3578
|
key: P.path,
|
|
3579
3579
|
item: P,
|
|
3580
3580
|
to: x.$router.resolve(P.redirect ? P.redirect : P).fullPath,
|
|
3581
|
-
"is-collapse":
|
|
3581
|
+
"is-collapse": f(w)
|
|
3582
3582
|
}, null, 8, ["item", "to", "is-collapse"]))), 128))
|
|
3583
3583
|
], 64))), 128))
|
|
3584
3584
|
]),
|
|
@@ -3600,7 +3600,7 @@ const Bs = /* @__PURE__ */ G({
|
|
|
3600
3600
|
const a = M("router-view"), u = _o;
|
|
3601
3601
|
return r(), v("section", Rs, [
|
|
3602
3602
|
(r(), h(a, {
|
|
3603
|
-
key: l.$route.fullPath +
|
|
3603
|
+
key: l.$route.fullPath + f(o)
|
|
3604
3604
|
})),
|
|
3605
3605
|
c(u, { bottom: 50 })
|
|
3606
3606
|
]);
|
|
@@ -3614,9 +3614,9 @@ const Bs = /* @__PURE__ */ G({
|
|
|
3614
3614
|
openSidebar: s.value.opened,
|
|
3615
3615
|
withoutAnimation: s.value.withoutAnimation,
|
|
3616
3616
|
mobile: a.value === "mobile"
|
|
3617
|
-
})),
|
|
3617
|
+
})), m = () => t.getBoundingClientRect().width - 1 < Ds, p = () => {
|
|
3618
3618
|
if (!document.hidden) {
|
|
3619
|
-
const w =
|
|
3619
|
+
const w = m();
|
|
3620
3620
|
n.toggleDevice(w ? "mobile" : "desktop"), w && n.closeSideBar({ withoutAnimation: !0 });
|
|
3621
3621
|
}
|
|
3622
3622
|
};
|
|
@@ -3625,21 +3625,21 @@ const Bs = /* @__PURE__ */ G({
|
|
|
3625
3625
|
});
|
|
3626
3626
|
const b = () => n.closeSideBar({ withoutAnimation: !1 });
|
|
3627
3627
|
return (w, C) => (r(), v("div", {
|
|
3628
|
-
class: te([
|
|
3628
|
+
class: te([f(d), "app-wrapper"])
|
|
3629
3629
|
}, [
|
|
3630
|
-
|
|
3630
|
+
f(a) === "mobile" && f(s).opened ? (r(), v("div", {
|
|
3631
3631
|
key: 0,
|
|
3632
3632
|
class: "drawer-bg",
|
|
3633
3633
|
onClick: b
|
|
3634
3634
|
})) : $("", !0),
|
|
3635
|
-
c(
|
|
3635
|
+
c(f(As), { class: "sidebar-container" }),
|
|
3636
3636
|
y("div", Ms, [
|
|
3637
3637
|
y("div", {
|
|
3638
|
-
class: te({ "fixed-header":
|
|
3638
|
+
class: te({ "fixed-header": f(u) })
|
|
3639
3639
|
}, [
|
|
3640
|
-
c(
|
|
3640
|
+
c(f(ds))
|
|
3641
3641
|
], 2),
|
|
3642
|
-
c(
|
|
3642
|
+
c(f(Ls))
|
|
3643
3643
|
])
|
|
3644
3644
|
], 2));
|
|
3645
3645
|
}
|
|
@@ -3655,7 +3655,7 @@ const Bs = /* @__PURE__ */ G({
|
|
|
3655
3655
|
}, Qs = { class: "login-footer" }, Xs = /* @__PURE__ */ G({
|
|
3656
3656
|
__name: "login",
|
|
3657
3657
|
setup(e) {
|
|
3658
|
-
const t = $e(), n = Q(), o = V(), l = Y(), s = N(), a = g(() => o.loginTips), u = g(() => o.captcha), d = g(() => l.baseURL),
|
|
3658
|
+
const t = $e(), n = Q(), o = V(), l = Y(), s = N(), a = g(() => o.loginTips), u = g(() => o.captcha), d = g(() => l.baseURL), m = T(0), p = T(!1), b = T({
|
|
3659
3659
|
username: "",
|
|
3660
3660
|
password: "",
|
|
3661
3661
|
captcha: "",
|
|
@@ -3664,7 +3664,7 @@ const Bs = /* @__PURE__ */ G({
|
|
|
3664
3664
|
const _ = o.title || "OMS";
|
|
3665
3665
|
return _ ? _.toString().trim().charAt(0).toUpperCase() : "O";
|
|
3666
3666
|
}), C = () => {
|
|
3667
|
-
|
|
3667
|
+
m.value++;
|
|
3668
3668
|
}, O = g(() => b.value.username.length > 0 && b.value.password.length >= 4 && (u.value ? b.value.captcha.length === 4 : !0)), x = () => {
|
|
3669
3669
|
if (!p.value) {
|
|
3670
3670
|
if (!O.value) {
|
|
@@ -3674,7 +3674,7 @@ const Bs = /* @__PURE__ */ G({
|
|
|
3674
3674
|
u.value && (b.value.sing = Ao.MD5(`${b.value.username}${b.value.password}${b.value.captcha}`).toString()), p.value = !0, s.login(b.value).then((_) => {
|
|
3675
3675
|
t.push({ path: n.query?.redirect || "/" });
|
|
3676
3676
|
}).catch((_) => {
|
|
3677
|
-
|
|
3677
|
+
m.value++;
|
|
3678
3678
|
}).finally(() => {
|
|
3679
3679
|
p.value = !1;
|
|
3680
3680
|
});
|
|
@@ -3701,14 +3701,14 @@ const Bs = /* @__PURE__ */ G({
|
|
|
3701
3701
|
default: i(() => [
|
|
3702
3702
|
y("div", Us, [
|
|
3703
3703
|
y("div", qs, [
|
|
3704
|
-
|
|
3704
|
+
f(o).logo ? (r(), v("img", {
|
|
3705
3705
|
key: 0,
|
|
3706
|
-
src:
|
|
3706
|
+
src: f(o).logo,
|
|
3707
3707
|
alt: "Logo",
|
|
3708
3708
|
class: "logo-img"
|
|
3709
3709
|
}, null, 8, Hs)) : (r(), v("div", Fs, A(w.value), 1))
|
|
3710
3710
|
]),
|
|
3711
|
-
y("h1", Gs, A(
|
|
3711
|
+
y("h1", Gs, A(f(o).title || "OMS"), 1),
|
|
3712
3712
|
S[3] || (S[3] = y("p", { class: "login-subtitle" }, "欢迎回来,请登录您的账户", -1))
|
|
3713
3713
|
]),
|
|
3714
3714
|
c(W, {
|
|
@@ -3763,7 +3763,7 @@ const Bs = /* @__PURE__ */ G({
|
|
|
3763
3763
|
onClick: C
|
|
3764
3764
|
}, [
|
|
3765
3765
|
y("img", {
|
|
3766
|
-
src: d.value + "/user/captcha?ts=" +
|
|
3766
|
+
src: d.value + "/user/captcha?ts=" + m.value,
|
|
3767
3767
|
title: "点击刷新",
|
|
3768
3768
|
class: "captcha-img"
|
|
3769
3769
|
}, null, 8, zs)
|
|
@@ -3775,7 +3775,7 @@ const Bs = /* @__PURE__ */ G({
|
|
|
3775
3775
|
a.value ? (r(), v("div", Js, [
|
|
3776
3776
|
c(k, null, {
|
|
3777
3777
|
default: i(() => [
|
|
3778
|
-
c(
|
|
3778
|
+
c(f(Oo))
|
|
3779
3779
|
]),
|
|
3780
3780
|
_: 1
|
|
3781
3781
|
}),
|
|
@@ -3794,7 +3794,7 @@ const Bs = /* @__PURE__ */ G({
|
|
|
3794
3794
|
])]),
|
|
3795
3795
|
_: 1
|
|
3796
3796
|
}, 8, ["loading", "disabled"]),
|
|
3797
|
-
Object.keys(
|
|
3797
|
+
Object.keys(f(o).sso || {}).length > 0 ? (r(), v("div", Ws, [...S[5] || (S[5] = [
|
|
3798
3798
|
y("span", null, "其他登录方式", -1)
|
|
3799
3799
|
])])) : $("", !0),
|
|
3800
3800
|
S[6] || (S[6] = y("div", { class: "sso-container" }, [
|
|
@@ -3806,7 +3806,7 @@ const Bs = /* @__PURE__ */ G({
|
|
|
3806
3806
|
]),
|
|
3807
3807
|
_: 1
|
|
3808
3808
|
}),
|
|
3809
|
-
y("div", Qs, " © " + A((/* @__PURE__ */ new Date()).getFullYear()) + " " + A(
|
|
3809
|
+
y("div", Qs, " © " + A((/* @__PURE__ */ new Date()).getFullYear()) + " " + A(f(o).title || "OMS") + ". All rights reserved. ", 1)
|
|
3810
3810
|
])
|
|
3811
3811
|
]),
|
|
3812
3812
|
_: 1
|
|
@@ -4053,7 +4053,7 @@ function pa(e, t) {
|
|
|
4053
4053
|
y("div", { class: "preloader-inner" }, null, -1)
|
|
4054
4054
|
])]);
|
|
4055
4055
|
}
|
|
4056
|
-
const
|
|
4056
|
+
const ma = /* @__PURE__ */ L(ua, [["render", pa]]), fa = {
|
|
4057
4057
|
name: "VNotice",
|
|
4058
4058
|
props: {
|
|
4059
4059
|
dataApi: {
|
|
@@ -4088,41 +4088,41 @@ function ha(e, t, n, o, l, s) {
|
|
|
4088
4088
|
l.hasNotice ? (r(), h(a, Z(X({ key: 0 }, l.noticeProps)), null, 16)) : $("", !0)
|
|
4089
4089
|
]);
|
|
4090
4090
|
}
|
|
4091
|
-
const ba = /* @__PURE__ */ L(
|
|
4091
|
+
const ba = /* @__PURE__ */ L(fa, [["render", ha]]), ya = ["innerHTML"], _a = /* @__PURE__ */ G({
|
|
4092
4092
|
__name: "PageLoad",
|
|
4093
4093
|
props: {
|
|
4094
4094
|
schemaHandler: { type: Function, default: (e) => e },
|
|
4095
4095
|
schemaApi: { default: "" }
|
|
4096
4096
|
},
|
|
4097
4097
|
setup(e) {
|
|
4098
|
-
const t = e, n = Y(), o = V(), l = N(), s = Q(), a = T(!0), u = T(!1), d = T({}),
|
|
4098
|
+
const t = e, n = Y(), o = V(), l = N(), s = Q(), a = T(!0), u = T(!1), d = T({}), m = T(""), p = T({}), b = T([]), w = T(!1), C = g(() => l.env), O = g(() => o);
|
|
4099
4099
|
return We(() => {
|
|
4100
4100
|
const x = s.path.split("/").filter((k) => k), _ = x.length > 1 ? x.slice(0, x.length - 1).join("/") : x[0], S = "/schema" + s.meta.path, K = { params: s.params };
|
|
4101
4101
|
(window?.App?.config?.globalProperties?.$http).get(t.schemaApi || S, K).then(({ data: k }) => {
|
|
4102
|
-
a.value = !1, ce(k) && (k.notice !== void 0 && (u.value = !0, Ze(k.notice) ? d.value = { title: k.notice } : ce(k.notice) && (d.value = k.notice,
|
|
4102
|
+
a.value = !1, ce(k) && (k.notice !== void 0 && (u.value = !0, Ze(k.notice) ? d.value = { title: k.notice } : ce(k.notice) && (d.value = k.notice, m.value = k.notice.noticeApi), delete k.notice), b.value = k.ownerNames || [], w.value = k.serviceOffLine || !1), p.value = t.schemaHandler(k, _), n.SET_PAGE_JSON_SCHEMA({ page: s.path, json: p.value });
|
|
4103
4103
|
});
|
|
4104
4104
|
}), (x, _) => {
|
|
4105
4105
|
const S = lt;
|
|
4106
4106
|
return r(), v(R, null, [
|
|
4107
|
-
|
|
4107
|
+
f(b).length > 0 ? (r(), h(S, {
|
|
4108
4108
|
key: 0,
|
|
4109
|
-
title: `该页面功能对应开发: [ ${
|
|
4109
|
+
title: `该页面功能对应开发: [ ${f(b).join(", ")} ] 有问题可直接企微反馈`,
|
|
4110
4110
|
type: "info",
|
|
4111
4111
|
style: { margin: "0 0 20px 0" },
|
|
4112
4112
|
closable: !1
|
|
4113
4113
|
}, null, 8, ["title"])) : $("", !0),
|
|
4114
|
-
|
|
4114
|
+
f(C) === "prod" && f(w) ? (r(), v("div", {
|
|
4115
4115
|
key: 1,
|
|
4116
4116
|
class: "offline-notice",
|
|
4117
|
-
innerHTML:
|
|
4117
|
+
innerHTML: f(w) === !0 ? f(O).serviceOffLineNotice : f(w)
|
|
4118
4118
|
}, null, 8, ya)) : (r(), v(R, { key: 2 }, [
|
|
4119
|
-
|
|
4119
|
+
f(u) ? (r(), h(ba, {
|
|
4120
4120
|
key: 0,
|
|
4121
|
-
notice:
|
|
4121
|
+
notice: f(d),
|
|
4122
4122
|
style: { margin: "0 0 20px 0" },
|
|
4123
|
-
"data-api": m
|
|
4123
|
+
"data-api": f(m)
|
|
4124
4124
|
}, null, 8, ["notice", "data-api"])) : $("", !0),
|
|
4125
|
-
|
|
4125
|
+
f(a) ? (r(), h(ma, { key: 1 })) : fe(x.$slots, "default", Z(X({ key: 2 }, f(p))), void 0, !0)
|
|
4126
4126
|
], 64))
|
|
4127
4127
|
], 64);
|
|
4128
4128
|
};
|
|
@@ -4145,7 +4145,7 @@ const ba = /* @__PURE__ */ L(ma, [["render", ha]]), ya = ["innerHTML"], _a = /*
|
|
|
4145
4145
|
};
|
|
4146
4146
|
return (n, o) => (r(), h(ke, { "schema-handler": t }, {
|
|
4147
4147
|
default: i((l) => [
|
|
4148
|
-
c(
|
|
4148
|
+
c(f(_e), Z(de(l)), null, 16)
|
|
4149
4149
|
]),
|
|
4150
4150
|
_: 1
|
|
4151
4151
|
}));
|
|
@@ -4154,9 +4154,9 @@ const ba = /* @__PURE__ */ L(ma, [["render", ha]]), ya = ["innerHTML"], _a = /*
|
|
|
4154
4154
|
__name: "form",
|
|
4155
4155
|
setup(e) {
|
|
4156
4156
|
const t = Q(), n = $e(), o = (u, d) => {
|
|
4157
|
-
const
|
|
4157
|
+
const m = Object.keys(oe.props);
|
|
4158
4158
|
return Object.keys(u).forEach((p) => {
|
|
4159
|
-
if (
|
|
4159
|
+
if (m.indexOf(p) === -1) {
|
|
4160
4160
|
delete u[p];
|
|
4161
4161
|
return;
|
|
4162
4162
|
}
|
|
@@ -4196,8 +4196,8 @@ const ba = /* @__PURE__ */ L(ma, [["render", ha]]), ya = ["innerHTML"], _a = /*
|
|
|
4196
4196
|
t.query?.goback ? n.push(t.query?.goback) : history.state.back && history.back();
|
|
4197
4197
|
}
|
|
4198
4198
|
return (u, d) => (r(), h(ke, { "schema-handler": o }, {
|
|
4199
|
-
default: i((
|
|
4200
|
-
c(
|
|
4199
|
+
default: i((m) => [
|
|
4200
|
+
c(f(oe), Z(de(m)), null, 16)
|
|
4201
4201
|
]),
|
|
4202
4202
|
_: 1
|
|
4203
4203
|
}));
|
|
@@ -4347,13 +4347,13 @@ const ba = /* @__PURE__ */ L(ma, [["render", ha]]), ya = ["innerHTML"], _a = /*
|
|
|
4347
4347
|
style: { color: "#E6A23C" }
|
|
4348
4348
|
}, xa = { class: "card-header" };
|
|
4349
4349
|
function Ea(e, t, n, o, l, s) {
|
|
4350
|
-
const a = ye, u = go, d = Ae,
|
|
4350
|
+
const a = ye, u = go, d = Ae, m = Be, p = M("v-form"), b = ve;
|
|
4351
4351
|
return r(), h(b, {
|
|
4352
4352
|
class: "tree-box",
|
|
4353
4353
|
gutter: 20
|
|
4354
4354
|
}, {
|
|
4355
4355
|
default: i(() => [
|
|
4356
|
-
c(
|
|
4356
|
+
c(m, {
|
|
4357
4357
|
span: 8,
|
|
4358
4358
|
class: "tree-tree"
|
|
4359
4359
|
}, {
|
|
@@ -4433,7 +4433,7 @@ function Ea(e, t, n, o, l, s) {
|
|
|
4433
4433
|
]),
|
|
4434
4434
|
_: 1
|
|
4435
4435
|
}),
|
|
4436
|
-
c(
|
|
4436
|
+
c(m, {
|
|
4437
4437
|
span: 16,
|
|
4438
4438
|
class: "tree-form"
|
|
4439
4439
|
}, {
|
|
@@ -4525,23 +4525,23 @@ function Ta(e, t, n) {
|
|
|
4525
4525
|
let o = q({}, Ca);
|
|
4526
4526
|
if (o.title.text = e, Ze(t)) {
|
|
4527
4527
|
const l = [], s = Object.keys(n[0]);
|
|
4528
|
-
let a = s[0], u = s.filter((
|
|
4528
|
+
let a = s[0], u = s.filter((m, p) => p > 0), d = t;
|
|
4529
4529
|
if (t.indexOf(":") > -1) {
|
|
4530
|
-
const
|
|
4531
|
-
d =
|
|
4530
|
+
const m = t.split(":"), p = m[1].split(",");
|
|
4531
|
+
d = m[0], a = p[0], u = p.filter((b, w) => w > 0);
|
|
4532
4532
|
}
|
|
4533
|
-
u.forEach((
|
|
4533
|
+
u.forEach((m) => {
|
|
4534
4534
|
const p = [];
|
|
4535
4535
|
n.forEach((b) => {
|
|
4536
|
-
p.push(b[
|
|
4536
|
+
p.push(b[m]);
|
|
4537
4537
|
}), o.series.push({
|
|
4538
|
-
name:
|
|
4538
|
+
name: m,
|
|
4539
4539
|
type: d,
|
|
4540
4540
|
smooth: !0,
|
|
4541
4541
|
data: p
|
|
4542
|
-
}), o.legend.data.push(
|
|
4543
|
-
}), n.forEach((
|
|
4544
|
-
l.push(
|
|
4542
|
+
}), o.legend.data.push(m);
|
|
4543
|
+
}), n.forEach((m) => {
|
|
4544
|
+
l.push(m[a]);
|
|
4545
4545
|
}), o.xAxis.data = l;
|
|
4546
4546
|
}
|
|
4547
4547
|
return ce(t) && (o = q(o, t)), o;
|
|
@@ -4561,8 +4561,8 @@ const Oa = G({
|
|
|
4561
4561
|
function Ra(e, t, n, o, l, s) {
|
|
4562
4562
|
return r(!0), v(R, null, U(e.dataList, (a, u) => (r(), v("span", { key: u }, [
|
|
4563
4563
|
y("div", $a, [
|
|
4564
|
-
(r(!0), v(R, null, U(Object.keys(a), (d,
|
|
4565
|
-
key:
|
|
4564
|
+
(r(!0), v(R, null, U(Object.keys(a), (d, m) => (r(), v("div", {
|
|
4565
|
+
key: m,
|
|
4566
4566
|
class: "title-inner"
|
|
4567
4567
|
}, [
|
|
4568
4568
|
y("p", Ba, A(a[d]), 1),
|
|
@@ -4675,7 +4675,7 @@ const Da = /* @__PURE__ */ L(La, [["render", Ma], ["__scopeId", "data-v-a5a65cc1
|
|
|
4675
4675
|
p = b[b.length - 1];
|
|
4676
4676
|
}
|
|
4677
4677
|
return "/focusbi_report/view/" + p;
|
|
4678
|
-
}),
|
|
4678
|
+
}), m = (p) => {
|
|
4679
4679
|
pn.get(d.value, { params: p }).then(({ data: b }) => {
|
|
4680
4680
|
a.value = b.filter, u.value = b.dataPart, s.value++;
|
|
4681
4681
|
});
|
|
@@ -4684,7 +4684,7 @@ const Da = /* @__PURE__ */ L(La, [["render", Ma], ["__scopeId", "data-v-a5a65cc1
|
|
|
4684
4684
|
const w = Ae, C = Be, O = lt, x = ve;
|
|
4685
4685
|
return r(), h(x, null, {
|
|
4686
4686
|
default: i(() => [
|
|
4687
|
-
|
|
4687
|
+
f(a).length > 0 ? (r(), h(C, {
|
|
4688
4688
|
key: 0,
|
|
4689
4689
|
span: 24
|
|
4690
4690
|
}, {
|
|
@@ -4694,12 +4694,12 @@ const Da = /* @__PURE__ */ L(La, [["render", Ma], ["__scopeId", "data-v-a5a65cc1
|
|
|
4694
4694
|
class: "part-filter"
|
|
4695
4695
|
}, {
|
|
4696
4696
|
default: i(() => [
|
|
4697
|
-
c(
|
|
4698
|
-
modelValue:
|
|
4697
|
+
c(f(oe), {
|
|
4698
|
+
modelValue: f(o),
|
|
4699
4699
|
"onUpdate:modelValue": b[0] || (b[0] = (_) => Qe(o) ? o.value = _ : null),
|
|
4700
|
-
"form-items":
|
|
4700
|
+
"form-items": f(a),
|
|
4701
4701
|
options: l,
|
|
4702
|
-
onSubmit:
|
|
4702
|
+
onSubmit: m
|
|
4703
4703
|
}, null, 8, ["modelValue", "form-items"])
|
|
4704
4704
|
]),
|
|
4705
4705
|
_: 1
|
|
@@ -4711,7 +4711,7 @@ const Da = /* @__PURE__ */ L(La, [["render", Ma], ["__scopeId", "data-v-a5a65cc1
|
|
|
4711
4711
|
default: i(() => [
|
|
4712
4712
|
c(x, { gutter: 20 }, {
|
|
4713
4713
|
default: i(() => [
|
|
4714
|
-
(r(!0), v(R, null, U(
|
|
4714
|
+
(r(!0), v(R, null, U(f(u), (_, S) => (r(), h(C, {
|
|
4715
4715
|
key: S,
|
|
4716
4716
|
span: _.col || 24
|
|
4717
4717
|
}, {
|
|
@@ -4726,7 +4726,7 @@ const Da = /* @__PURE__ */ L(La, [["render", Ma], ["__scopeId", "data-v-a5a65cc1
|
|
|
4726
4726
|
]),
|
|
4727
4727
|
_: 2
|
|
4728
4728
|
}, 1032, ["title"])) : (r(), h(Da, {
|
|
4729
|
-
key:
|
|
4729
|
+
key: f(s),
|
|
4730
4730
|
option: _
|
|
4731
4731
|
}, null, 8, ["option"]))
|
|
4732
4732
|
]),
|
|
@@ -4754,7 +4754,7 @@ const Da = /* @__PURE__ */ L(La, [["render", Ma], ["__scopeId", "data-v-a5a65cc1
|
|
|
4754
4754
|
}
|
|
4755
4755
|
return "/focusbi_report/view/" + o;
|
|
4756
4756
|
});
|
|
4757
|
-
return (o, l) => (r(), h(ke, { "schema-api":
|
|
4757
|
+
return (o, l) => (r(), h(ke, { "schema-api": f(n) }, {
|
|
4758
4758
|
default: i((s) => [
|
|
4759
4759
|
c(ja, Z(de(s)), null, 16)
|
|
4760
4760
|
]),
|
|
@@ -4858,20 +4858,20 @@ const rn = (e) => {
|
|
|
4858
4858
|
const t = T([]), n = (o, l) => (t.value = Rn(o), o);
|
|
4859
4859
|
return (o, l) => (r(), h(ke, { "schema-handler": n }, {
|
|
4860
4860
|
default: i(() => [
|
|
4861
|
-
c(
|
|
4861
|
+
c(f(Fa), { schema: f(t) }, null, 8, ["schema"])
|
|
4862
4862
|
]),
|
|
4863
4863
|
_: 1
|
|
4864
4864
|
}));
|
|
4865
4865
|
}
|
|
4866
4866
|
};
|
|
4867
|
-
let
|
|
4867
|
+
let me = {};
|
|
4868
4868
|
function Tr(e) {
|
|
4869
|
-
|
|
4869
|
+
me = e;
|
|
4870
4870
|
}
|
|
4871
4871
|
const Ka = (e) => {
|
|
4872
4872
|
const t = (n) => {
|
|
4873
4873
|
const o = "./views/" + n + ".vue";
|
|
4874
|
-
return
|
|
4874
|
+
return me && me[o] && me[o].default ? me[o].default : (console.error(`自定义组件不存在 ${e.name} ${e.view}`), qe);
|
|
4875
4875
|
};
|
|
4876
4876
|
if (e.path === "#")
|
|
4877
4877
|
return qe;
|
|
@@ -5049,15 +5049,15 @@ function ni(e) {
|
|
|
5049
5049
|
}
|
|
5050
5050
|
const l = N(D);
|
|
5051
5051
|
await l.info();
|
|
5052
|
-
const s = await l.loadRemoteRoutes(), a = Wa(s), u = dn(ge()), d = a.map((
|
|
5053
|
-
const p = ut(
|
|
5052
|
+
const s = await l.loadRemoteRoutes(), a = Wa(s), u = dn(ge()), d = a.map((m) => {
|
|
5053
|
+
const p = ut(m.routes, u);
|
|
5054
5054
|
return {
|
|
5055
|
-
...
|
|
5055
|
+
...m,
|
|
5056
5056
|
routes: p
|
|
5057
5057
|
};
|
|
5058
|
-
}).filter((
|
|
5059
|
-
d.forEach((
|
|
5060
|
-
|
|
5058
|
+
}).filter((m) => m.routes.length > 0);
|
|
5059
|
+
d.forEach((m) => {
|
|
5060
|
+
m.routes.forEach((p) => {
|
|
5061
5061
|
e.addRoute({
|
|
5062
5062
|
path: "/",
|
|
5063
5063
|
component: nn,
|
|
@@ -5182,7 +5182,7 @@ function Tt(e, t) {
|
|
|
5182
5182
|
n += o[`offset${t}`], o = o.offsetParent;
|
|
5183
5183
|
return n;
|
|
5184
5184
|
}
|
|
5185
|
-
const
|
|
5185
|
+
const mi = {
|
|
5186
5186
|
mounted: (e, t) => {
|
|
5187
5187
|
if (e === null || !t.value.dev)
|
|
5188
5188
|
return;
|
|
@@ -5208,15 +5208,15 @@ const fi = {
|
|
|
5208
5208
|
se.emit("dev-action", { event: d, data: { type: "del", devId: t.value.devId } });
|
|
5209
5209
|
}, o.appendChild(a), n.insertBefore(o, n.firstChild);
|
|
5210
5210
|
}
|
|
5211
|
-
},
|
|
5211
|
+
}, fi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5212
5212
|
__proto__: null,
|
|
5213
|
-
devtool:
|
|
5213
|
+
devtool: mi,
|
|
5214
5214
|
outClick: ui,
|
|
5215
5215
|
resize: pi,
|
|
5216
5216
|
rightClick: di
|
|
5217
5217
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5218
5218
|
let Ie;
|
|
5219
|
-
const
|
|
5219
|
+
const mn = [], Ot = /* @__PURE__ */ new Set(), $t = (e) => typeof e.name == "string" ? e.name : e.path;
|
|
5220
5220
|
function Or(e) {
|
|
5221
5221
|
return e ? dt(q(Re.axios, e)) : Ie;
|
|
5222
5222
|
}
|
|
@@ -5229,7 +5229,7 @@ function $r(e) {
|
|
|
5229
5229
|
Po(Ie), a.updateSettings(e?.settings || {}), s.setBaseAPI(t?.axios.baseURL), n.config.globalProperties.$http = Ie, n.config.globalProperties.$router = le, window.App = n, window.OmsOptions = t, So(() => ({
|
|
5230
5230
|
"X-Token": ge()
|
|
5231
5231
|
})), ue(() => u.token, () => {
|
|
5232
|
-
|
|
5232
|
+
fn();
|
|
5233
5233
|
}, { immediate: !0 }), le.isReady().then(() => n.mount("#app"));
|
|
5234
5234
|
}
|
|
5235
5235
|
function hi(e, t = {}) {
|
|
@@ -5237,8 +5237,8 @@ function hi(e, t = {}) {
|
|
|
5237
5237
|
e.component(n, t[n]);
|
|
5238
5238
|
});
|
|
5239
5239
|
}
|
|
5240
|
-
function
|
|
5241
|
-
const e = dn(ge()), t = ut(
|
|
5240
|
+
function fn() {
|
|
5241
|
+
const e = dn(ge()), t = ut(mn, e), n = N(D), o = new Set(n.customRouter.map((s) => $t(s))), l = t.filter((s) => {
|
|
5242
5242
|
const a = $t(s);
|
|
5243
5243
|
return Ot.has(a) || o.has(a) ? !1 : (Ot.add(a), !0);
|
|
5244
5244
|
});
|
|
@@ -5247,7 +5247,7 @@ function mn() {
|
|
|
5247
5247
|
}), l.length && n.setCustomRoutes(l);
|
|
5248
5248
|
}
|
|
5249
5249
|
function bi(e = []) {
|
|
5250
|
-
|
|
5250
|
+
mn.push(...e), fn();
|
|
5251
5251
|
}
|
|
5252
5252
|
function yi(e, t) {
|
|
5253
5253
|
t.forEach((n) => {
|
|
@@ -5275,7 +5275,7 @@ function gi(e, t) {
|
|
|
5275
5275
|
function ki(e) {
|
|
5276
5276
|
return {
|
|
5277
5277
|
components: { VIcon: xo },
|
|
5278
|
-
directives:
|
|
5278
|
+
directives: fi,
|
|
5279
5279
|
use: [
|
|
5280
5280
|
le,
|
|
5281
5281
|
[Jn, { locale: Mt, ...e.settings?.ElementPlus }]
|