@okiss/oms 0.0.45 → 0.0.46
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 +201 -204
- package/dist/index.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/components/notice/VNotice.vue.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var $t = Object.defineProperty;
|
|
2
2
|
var It = (e, t, l) => t in e ? $t(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l;
|
|
3
3
|
var M = (e, t, l) => (It(e, typeof t != "symbol" ? t + "" : t, l), l);
|
|
4
|
-
import { defineComponent as q, onBeforeMount as ze, provide as Ct, resolveComponent as v, openBlock as i, createBlock as f, createVNode as
|
|
4
|
+
import { defineComponent as q, onBeforeMount as ze, provide as Ct, resolveComponent as v, openBlock as i, createBlock as f, createVNode as p, computed as j, createTextVNode as g, withCtx as r, TransitionGroup as Tt, createElementBlock as h, Fragment as S, renderList as B, toDisplayString as O, normalizeClass as H, renderSlot as le, mergeProps as F, createCommentVNode as x, toRefs as Ot, ref as L, normalizeStyle as Bt, createElementVNode as b, Transition as At, pushScopeId as Ke, popScopeId as We, resolveDynamicComponent as Ze, normalizeProps as G, guardReactiveProps as Y, unref as k, withDirectives as ie, vModelText as he, resolveDirective as Pt, onMounted as Rt, isRef as Lt, getCurrentInstance as Mt, h as Dt, toRaw as jt, createApp as Nt } from "vue";
|
|
5
5
|
import { addNewStyle as Vt, addNewStyleTag as qt, queryParams as Ut, logGroup as Ht, compactObject as Qe, showEleByClassName as Xe, waterMarker as Ft, Cache as be, isExternal as Ve, getQueryParam as Gt, createIFrame as Jt, strVarReplace as Q, obj2Param as zt, isObject as X, isString as $e, effectDataTrans as Kt, isArray as Ye } from "@okiss/utils";
|
|
6
6
|
import _e from "mockjs";
|
|
7
7
|
import Wt, { cloneDeep as y, merge as A, get as ne, unset as et } from "lodash";
|
|
@@ -12,8 +12,8 @@ import { createStore as Zt, useStore as lt, mapGetters as Ce } from "vuex";
|
|
|
12
12
|
import Qt, { ElMessage as Xt, ElMessageBox as Yt, ElCard as el, ElRow as tl, ElCol as ll } from "element-plus";
|
|
13
13
|
import "element-plus/dist/index.css";
|
|
14
14
|
import "dayjs/locale/zh-cn";
|
|
15
|
-
import { useRoute as
|
|
16
|
-
import { ElBreadcrumbItem as rl, ElBreadcrumb as cl, ElRow as ae, ElMain as
|
|
15
|
+
import { useRoute as ue, onBeforeRouteLeave as nl, useRouter as ol, createRouter as al, createWebHashHistory as sl, onBeforeRouteUpdate as il } from "vue-router";
|
|
16
|
+
import { ElBreadcrumbItem as rl, ElBreadcrumb as cl, ElRow as ae, ElMain as pl, ElAside as ul, ElContainer as dl, ElDivider as nt, ElButton as pe, ElOption as Te, ElSelect as Oe, ElFormItem as ot, ElForm as at, ElCol as de, ElDrawer as st, ElDropdownItem as ml, ElDropdownMenu as fl, ElDropdown as hl, ElMenuItem as bl, ElSubMenu as _l, ElOptionGroup as yl, ElMenu as vl, ElScrollbar as gl, ElBacktop as kl, ElMessage as wl, ElAlert as Be, ElTree as Sl, ElCard as Ae } from "element-plus/es";
|
|
17
17
|
import "element-plus/es/components/base/style/css";
|
|
18
18
|
import "element-plus/es/components/row/style/css";
|
|
19
19
|
import "element-plus/es/components/drawer/style/css";
|
|
@@ -33,7 +33,7 @@ import "element-plus/es/components/divider/style/css";
|
|
|
33
33
|
import "element-plus/es/components/container/style/css";
|
|
34
34
|
import "element-plus/es/components/aside/style/css";
|
|
35
35
|
import "element-plus/es/components/main/style/css";
|
|
36
|
-
import { VForm as
|
|
36
|
+
import { VForm as z, VBtn as Pe, JsonView as Re, VTable as oe, VChart as El, setUploadHeaderHandle as $l, VIcon as Il } from "@okiss/vbtf";
|
|
37
37
|
import "normalize.css/normalize.css";
|
|
38
38
|
import "@okiss/vbtf/style.css";
|
|
39
39
|
import Cl from "mitt";
|
|
@@ -773,8 +773,8 @@ function Ul() {
|
|
|
773
773
|
Object.keys(we).forEach((e) => {
|
|
774
774
|
const t = we[e], l = ct(t);
|
|
775
775
|
_e.mock(l, t.method, function(n) {
|
|
776
|
-
const { url: o, type: a, body: s } = n, c = Ut(o),
|
|
777
|
-
return Ht(o, { type: a, query: c, data:
|
|
776
|
+
const { url: o, type: a, body: s } = n, c = Ut(o), u = s ? JSON.parse(s) : {}, d = t.response({ query: c, data: u }), m = _e.mock(d);
|
|
777
|
+
return Ht(o, { type: a, query: c, data: u, response: m }), _e.mock(m);
|
|
778
778
|
});
|
|
779
779
|
}), console.log("%c ApiMock is stared! ", "background: #606060; color: #fff; padding: 4px 5px; border-radius: 1px;");
|
|
780
780
|
}
|
|
@@ -786,7 +786,7 @@ function Hl(e) {
|
|
|
786
786
|
const t = new Date((/* @__PURE__ */ new Date()).getTime() + (E.state.settings.tokenExpire || 864e5));
|
|
787
787
|
return N.set(Le, e, { expires: t });
|
|
788
788
|
}
|
|
789
|
-
function
|
|
789
|
+
function pt() {
|
|
790
790
|
return N.remove(Le);
|
|
791
791
|
}
|
|
792
792
|
const Fl = {
|
|
@@ -810,7 +810,7 @@ const Fl = {
|
|
|
810
810
|
e.token = t, Hl(t);
|
|
811
811
|
},
|
|
812
812
|
removeToken(e) {
|
|
813
|
-
e.token = "",
|
|
813
|
+
e.token = "", pt();
|
|
814
814
|
},
|
|
815
815
|
updateRemoteRouter(e, t) {
|
|
816
816
|
e.remoteRouter = t, e.isLodeRemoteRoutes = !0;
|
|
@@ -866,9 +866,9 @@ const Fl = {
|
|
|
866
866
|
url: "/user/info",
|
|
867
867
|
method: "GET"
|
|
868
868
|
}).then((o) => {
|
|
869
|
-
var s, c,
|
|
869
|
+
var s, c, u, d, m;
|
|
870
870
|
const a = ((s = o.data) == null ? void 0 : s.role_ids) || [];
|
|
871
|
-
e("updateState", { key: "name", value: (c = o.data) == null ? void 0 : c.name }), e("updateState", { key: "nickname", value: (
|
|
871
|
+
e("updateState", { key: "name", value: (c = o.data) == null ? void 0 : c.name }), e("updateState", { key: "nickname", value: (u = o.data) == null ? void 0 : u.nickname }), e("updateState", { key: "roleIds", value: a }), e("updateState", { key: "env", value: (d = o.data) == null ? void 0 : d.env }), !N.get("username") && N.set("username", (m = o.data) == null ? void 0 : m.name), l(!0);
|
|
872
872
|
}).catch((o) => {
|
|
873
873
|
n(o);
|
|
874
874
|
}) : n("http client not init");
|
|
@@ -1057,23 +1057,23 @@ const Fl = {
|
|
|
1057
1057
|
onRejected(e) {
|
|
1058
1058
|
return Promise.reject(e);
|
|
1059
1059
|
}
|
|
1060
|
-
},
|
|
1060
|
+
}, ut = {};
|
|
1061
1061
|
function Si(e, t) {
|
|
1062
|
-
|
|
1062
|
+
ut[e] = t;
|
|
1063
1063
|
}
|
|
1064
1064
|
function ln(e) {
|
|
1065
|
-
return
|
|
1065
|
+
return ut[e];
|
|
1066
1066
|
}
|
|
1067
1067
|
const nn = /* @__PURE__ */ q({
|
|
1068
1068
|
name: "Dashboard",
|
|
1069
1069
|
setup() {
|
|
1070
1070
|
const e = ln("test");
|
|
1071
1071
|
if (e)
|
|
1072
|
-
return () =>
|
|
1072
|
+
return () => p(e, null, null);
|
|
1073
1073
|
const t = lt(), l = j(() => t.getters.name);
|
|
1074
|
-
return () =>
|
|
1074
|
+
return () => p("div", {
|
|
1075
1075
|
class: "dashboard-container"
|
|
1076
|
-
}, [
|
|
1076
|
+
}, [p("div", {
|
|
1077
1077
|
class: "dashboard-text"
|
|
1078
1078
|
}, [g("Hi "), l.value, g(" 😄")])]);
|
|
1079
1079
|
}
|
|
@@ -1138,16 +1138,16 @@ function cn(e, t, l, n, o, a) {
|
|
|
1138
1138
|
separator: "/"
|
|
1139
1139
|
}, {
|
|
1140
1140
|
default: r(() => [
|
|
1141
|
-
|
|
1141
|
+
p(Tt, { name: "breadcrumb" }, {
|
|
1142
1142
|
default: r(() => [
|
|
1143
|
-
(i(!0), h(S, null, B(o.levelList, (
|
|
1144
|
-
key:
|
|
1143
|
+
(i(!0), h(S, null, B(o.levelList, (u, d) => (i(), f(s, {
|
|
1144
|
+
key: u.path
|
|
1145
1145
|
}, {
|
|
1146
1146
|
default: r(() => [
|
|
1147
|
-
|
|
1147
|
+
u.path.indexOf("/DIR_") === 0 && u.redirect === void 0 || d === o.levelList.length - 1 ? (i(), h("span", sn, O(u.meta.title), 1)) : (i(), h("a", {
|
|
1148
1148
|
key: 1,
|
|
1149
|
-
onClick: (m) => a.handleLink(
|
|
1150
|
-
}, O(
|
|
1149
|
+
onClick: (m) => a.handleLink(u)
|
|
1150
|
+
}, O(u.meta.title), 9, rn))
|
|
1151
1151
|
]),
|
|
1152
1152
|
_: 2
|
|
1153
1153
|
}, 1024))), 128))
|
|
@@ -1158,7 +1158,7 @@ function cn(e, t, l, n, o, a) {
|
|
|
1158
1158
|
_: 1
|
|
1159
1159
|
});
|
|
1160
1160
|
}
|
|
1161
|
-
const
|
|
1161
|
+
const pn = /* @__PURE__ */ $(an, [["render", cn], ["__scopeId", "data-v-fa74804e"]]), un = {
|
|
1162
1162
|
name: "Hamburger",
|
|
1163
1163
|
props: {
|
|
1164
1164
|
isActive: {
|
|
@@ -1179,25 +1179,25 @@ function dn(e, t, l, n, o, a) {
|
|
|
1179
1179
|
style: { padding: "0 15px" },
|
|
1180
1180
|
onClick: t[0] || (t[0] = (...c) => a.toggleClick && a.toggleClick(...c))
|
|
1181
1181
|
}, [
|
|
1182
|
-
|
|
1182
|
+
p(s, {
|
|
1183
1183
|
class: H({ "is-active": l.isActive }),
|
|
1184
1184
|
name: "ra-leftalignment"
|
|
1185
1185
|
}, null, 8, ["class"])
|
|
1186
1186
|
]);
|
|
1187
1187
|
}
|
|
1188
|
-
const mn = /* @__PURE__ */ $(
|
|
1188
|
+
const mn = /* @__PURE__ */ $(un, [["render", dn]]);
|
|
1189
1189
|
const fn = {};
|
|
1190
1190
|
function hn(e, t) {
|
|
1191
|
-
const l = ae, n =
|
|
1191
|
+
const l = ae, n = pl, o = ul, a = dl;
|
|
1192
1192
|
return i(), f(a, { style: { width: "100%", height: "100%" } }, {
|
|
1193
1193
|
default: r(() => [
|
|
1194
|
-
|
|
1194
|
+
p(l, { class: "aside" }, {
|
|
1195
1195
|
default: r(() => [
|
|
1196
1196
|
le(e.$slots, "left-aside", {}, void 0, !0)
|
|
1197
1197
|
]),
|
|
1198
1198
|
_: 3
|
|
1199
1199
|
}),
|
|
1200
|
-
|
|
1200
|
+
p(n, {
|
|
1201
1201
|
class: "main",
|
|
1202
1202
|
style: { margin: "0 10px" }
|
|
1203
1203
|
}, {
|
|
@@ -1206,7 +1206,7 @@ function hn(e, t) {
|
|
|
1206
1206
|
]),
|
|
1207
1207
|
_: 3
|
|
1208
1208
|
}),
|
|
1209
|
-
|
|
1209
|
+
p(o, {
|
|
1210
1210
|
class: "aside",
|
|
1211
1211
|
width: "350px",
|
|
1212
1212
|
style: { padding: "20px" }
|
|
@@ -1950,7 +1950,7 @@ const On = {
|
|
|
1950
1950
|
}
|
|
1951
1951
|
]
|
|
1952
1952
|
}, Bn = {
|
|
1953
|
-
components: { DevLayout: dt, VForm:
|
|
1953
|
+
components: { DevLayout: dt, VForm: z, VButton: Pe, JsonView: Re },
|
|
1954
1954
|
props: {
|
|
1955
1955
|
schema: {
|
|
1956
1956
|
type: Object,
|
|
@@ -2037,12 +2037,12 @@ const On = {
|
|
|
2037
2037
|
}
|
|
2038
2038
|
},
|
|
2039
2039
|
beforeCreate() {
|
|
2040
|
-
|
|
2040
|
+
W.on("dev-action", ({ event: e, data: t }) => {
|
|
2041
2041
|
this.onDevAction(t.type, t.devId);
|
|
2042
2042
|
});
|
|
2043
2043
|
},
|
|
2044
2044
|
unmounted() {
|
|
2045
|
-
|
|
2045
|
+
W.off("dev-action");
|
|
2046
2046
|
},
|
|
2047
2047
|
methods: {
|
|
2048
2048
|
onDevAction(e, t) {
|
|
@@ -2086,16 +2086,16 @@ const On = {
|
|
|
2086
2086
|
}
|
|
2087
2087
|
};
|
|
2088
2088
|
function An(e, t, l, n, o, a) {
|
|
2089
|
-
const s = v("v-form"), c = nt,
|
|
2089
|
+
const s = v("v-form"), c = nt, u = pe, d = v("JsonView"), m = v("VButton"), _ = Te, T = Oe, w = ot, J = at, U = v("dev-layout");
|
|
2090
2090
|
return i(), f(U, null, {
|
|
2091
2091
|
main: r(() => [
|
|
2092
|
-
o.builderSchema.formItems ? (i(), f(s,
|
|
2092
|
+
o.builderSchema.formItems ? (i(), f(s, F({
|
|
2093
2093
|
ref: "form",
|
|
2094
2094
|
key: o.key,
|
|
2095
2095
|
dev: !0
|
|
2096
2096
|
}, o.builderSchema), null, 16)) : x("", !0),
|
|
2097
|
-
|
|
2098
|
-
u
|
|
2097
|
+
p(c),
|
|
2098
|
+
p(u, {
|
|
2099
2099
|
type: "primary",
|
|
2100
2100
|
onClick: a.saveSchema
|
|
2101
2101
|
}, {
|
|
@@ -2105,22 +2105,22 @@ function An(e, t, l, n, o, a) {
|
|
|
2105
2105
|
_: 1
|
|
2106
2106
|
}, 8, ["onClick"]),
|
|
2107
2107
|
g(" "),
|
|
2108
|
-
|
|
2108
|
+
p(m, {
|
|
2109
2109
|
text: "PageSchema",
|
|
2110
2110
|
type: "modal"
|
|
2111
2111
|
}, {
|
|
2112
2112
|
default: r(() => [
|
|
2113
|
-
|
|
2113
|
+
p(d, { data: a.getSaveSchema }, null, 8, ["data"])
|
|
2114
2114
|
]),
|
|
2115
2115
|
_: 1
|
|
2116
2116
|
})
|
|
2117
2117
|
]),
|
|
2118
2118
|
"right-aside": r(() => [
|
|
2119
|
-
o.activeIndex ? (i(), f(
|
|
2119
|
+
o.activeIndex ? (i(), f(J, { key: 0 }, {
|
|
2120
2120
|
default: r(() => [
|
|
2121
|
-
|
|
2121
|
+
p(w, { label: "控件类型" }, {
|
|
2122
2122
|
default: r(() => [
|
|
2123
|
-
|
|
2123
|
+
p(T, {
|
|
2124
2124
|
modelValue: o.currentCtrlType,
|
|
2125
2125
|
"onUpdate:modelValue": t[0] || (t[0] = (C) => o.currentCtrlType = C)
|
|
2126
2126
|
}, {
|
|
@@ -2139,7 +2139,7 @@ function An(e, t, l, n, o, a) {
|
|
|
2139
2139
|
]),
|
|
2140
2140
|
_: 1
|
|
2141
2141
|
})) : x("", !0),
|
|
2142
|
-
(i(), f(s,
|
|
2142
|
+
(i(), f(s, F({
|
|
2143
2143
|
key: o.ctrlKey,
|
|
2144
2144
|
modelValue: o.ctrlOptions,
|
|
2145
2145
|
"onUpdate:modelValue": t[1] || (t[1] = (C) => o.ctrlOptions = C)
|
|
@@ -2849,7 +2849,7 @@ const Pn = /* @__PURE__ */ $(Bn, [["render", An], ["__scopeId", "data-v-875f0171
|
|
|
2849
2849
|
table: Zn
|
|
2850
2850
|
};
|
|
2851
2851
|
const Xn = {
|
|
2852
|
-
components: { JsonView: Re, DevLayout: dt, VTable: oe, VForm:
|
|
2852
|
+
components: { JsonView: Re, DevLayout: dt, VTable: oe, VForm: z, VButton: Pe },
|
|
2853
2853
|
props: {
|
|
2854
2854
|
schema: {
|
|
2855
2855
|
type: Object,
|
|
@@ -2952,12 +2952,12 @@ const Xn = {
|
|
|
2952
2952
|
}
|
|
2953
2953
|
},
|
|
2954
2954
|
beforeCreate() {
|
|
2955
|
-
|
|
2955
|
+
W.on("dev-action", ({ event: e, data: t }) => {
|
|
2956
2956
|
this.onDevAction(t.type, t.devId);
|
|
2957
2957
|
});
|
|
2958
2958
|
},
|
|
2959
2959
|
unmounted() {
|
|
2960
|
-
|
|
2960
|
+
W.off("dev-action");
|
|
2961
2961
|
},
|
|
2962
2962
|
methods: {
|
|
2963
2963
|
updateBuilderSchema() {
|
|
@@ -3032,14 +3032,14 @@ const Xn = {
|
|
|
3032
3032
|
}
|
|
3033
3033
|
};
|
|
3034
3034
|
function Yn(e, t, l, n, o, a) {
|
|
3035
|
-
const s = de, c =
|
|
3035
|
+
const s = de, c = pe, u = ae, d = v("v-table"), m = nt, _ = pe, T = v("JsonView"), w = v("VButton"), J = Te, U = Oe, C = ot, Z = at, xt = v("v-form"), Et = v("dev-layout");
|
|
3036
3036
|
return i(), f(Et, null, {
|
|
3037
3037
|
"left-aside": r(() => [
|
|
3038
|
-
u
|
|
3038
|
+
p(u, { style: { width: "200px" } }, {
|
|
3039
3039
|
default: r(() => [
|
|
3040
|
-
u
|
|
3040
|
+
p(u, null, {
|
|
3041
3041
|
default: r(() => [
|
|
3042
|
-
|
|
3042
|
+
p(s, {
|
|
3043
3043
|
class: "title",
|
|
3044
3044
|
"data-id": 22222
|
|
3045
3045
|
}, {
|
|
@@ -3048,9 +3048,9 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3048
3048
|
]),
|
|
3049
3049
|
_: 1
|
|
3050
3050
|
}),
|
|
3051
|
-
|
|
3051
|
+
p(s, { class: "ctrl" }, {
|
|
3052
3052
|
default: r(() => [
|
|
3053
|
-
|
|
3053
|
+
p(c, {
|
|
3054
3054
|
class: "ctrl-btn",
|
|
3055
3055
|
onClick: t[0] || (t[0] = (I) => a.pushFilter("input"))
|
|
3056
3056
|
}, {
|
|
@@ -3062,9 +3062,9 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3062
3062
|
]),
|
|
3063
3063
|
_: 1
|
|
3064
3064
|
}),
|
|
3065
|
-
|
|
3065
|
+
p(s, { class: "ctrl" }, {
|
|
3066
3066
|
default: r(() => [
|
|
3067
|
-
|
|
3067
|
+
p(c, {
|
|
3068
3068
|
class: "ctrl-btn",
|
|
3069
3069
|
onClick: t[1] || (t[1] = (I) => a.pushFilter("select"))
|
|
3070
3070
|
}, {
|
|
@@ -3076,9 +3076,9 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3076
3076
|
]),
|
|
3077
3077
|
_: 1
|
|
3078
3078
|
}),
|
|
3079
|
-
|
|
3079
|
+
p(s, { class: "ctrl" }, {
|
|
3080
3080
|
default: r(() => [
|
|
3081
|
-
|
|
3081
|
+
p(c, {
|
|
3082
3082
|
class: "ctrl-btn",
|
|
3083
3083
|
onClick: t[2] || (t[2] = (I) => a.pushFilter("date"))
|
|
3084
3084
|
}, {
|
|
@@ -3093,9 +3093,9 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3093
3093
|
]),
|
|
3094
3094
|
_: 1
|
|
3095
3095
|
}),
|
|
3096
|
-
u
|
|
3096
|
+
p(u, null, {
|
|
3097
3097
|
default: r(() => [
|
|
3098
|
-
|
|
3098
|
+
p(s, { class: "title" }, {
|
|
3099
3099
|
default: r(() => [
|
|
3100
3100
|
g("添加列表项")
|
|
3101
3101
|
]),
|
|
@@ -3106,7 +3106,7 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3106
3106
|
class: "ctrl"
|
|
3107
3107
|
}, {
|
|
3108
3108
|
default: r(() => [
|
|
3109
|
-
|
|
3109
|
+
p(c, {
|
|
3110
3110
|
class: "ctrl-btn",
|
|
3111
3111
|
onClick: (fe) => a.pushHeaders(o.ctrlMap.headers[I].type)
|
|
3112
3112
|
}, {
|
|
@@ -3121,9 +3121,9 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3121
3121
|
]),
|
|
3122
3122
|
_: 1
|
|
3123
3123
|
}),
|
|
3124
|
-
u
|
|
3124
|
+
p(u, null, {
|
|
3125
3125
|
default: r(() => [
|
|
3126
|
-
|
|
3126
|
+
p(s, { class: "title" }, {
|
|
3127
3127
|
default: r(() => [
|
|
3128
3128
|
g("添加行按钮")
|
|
3129
3129
|
]),
|
|
@@ -3134,7 +3134,7 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3134
3134
|
class: "ctrl"
|
|
3135
3135
|
}, {
|
|
3136
3136
|
default: r(() => [
|
|
3137
|
-
|
|
3137
|
+
p(c, {
|
|
3138
3138
|
class: "ctrl-btn",
|
|
3139
3139
|
onClick: (fe) => a.pushRowButton(o.ctrlMap.buttons[I].type)
|
|
3140
3140
|
}, {
|
|
@@ -3149,9 +3149,9 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3149
3149
|
]),
|
|
3150
3150
|
_: 1
|
|
3151
3151
|
}),
|
|
3152
|
-
u
|
|
3152
|
+
p(u, null, {
|
|
3153
3153
|
default: r(() => [
|
|
3154
|
-
|
|
3154
|
+
p(s, { class: "title" }, {
|
|
3155
3155
|
default: r(() => [
|
|
3156
3156
|
g("添加常规按钮")
|
|
3157
3157
|
]),
|
|
@@ -3162,7 +3162,7 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3162
3162
|
class: "ctrl"
|
|
3163
3163
|
}, {
|
|
3164
3164
|
default: r(() => [
|
|
3165
|
-
|
|
3165
|
+
p(c, {
|
|
3166
3166
|
class: "ctrl-btn",
|
|
3167
3167
|
onClick: (fe) => a.pushNormalButton(o.ctrlMap.buttons[I].type)
|
|
3168
3168
|
}, {
|
|
@@ -3174,9 +3174,9 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3174
3174
|
]),
|
|
3175
3175
|
_: 2
|
|
3176
3176
|
}, 1024))), 128)),
|
|
3177
|
-
|
|
3177
|
+
p(s, { class: "ctrl" }, {
|
|
3178
3178
|
default: r(() => [
|
|
3179
|
-
|
|
3179
|
+
p(c, { class: "ctrl-btn" }, {
|
|
3180
3180
|
default: r(() => [
|
|
3181
3181
|
g("按钮组")
|
|
3182
3182
|
]),
|
|
@@ -3188,9 +3188,9 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3188
3188
|
]),
|
|
3189
3189
|
_: 1
|
|
3190
3190
|
}),
|
|
3191
|
-
u
|
|
3191
|
+
p(u, null, {
|
|
3192
3192
|
default: r(() => [
|
|
3193
|
-
|
|
3193
|
+
p(s, { class: "title" }, {
|
|
3194
3194
|
default: r(() => [
|
|
3195
3195
|
g("添加批量按钮")
|
|
3196
3196
|
]),
|
|
@@ -3201,7 +3201,7 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3201
3201
|
class: "ctrl"
|
|
3202
3202
|
}, {
|
|
3203
3203
|
default: r(() => [
|
|
3204
|
-
|
|
3204
|
+
p(c, {
|
|
3205
3205
|
class: "ctrl-btn",
|
|
3206
3206
|
onClick: (fe) => a.pushBatchButton(o.ctrlMap.buttons[I].type)
|
|
3207
3207
|
}, {
|
|
@@ -3213,9 +3213,9 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3213
3213
|
]),
|
|
3214
3214
|
_: 2
|
|
3215
3215
|
}, 1024))), 128)),
|
|
3216
|
-
|
|
3216
|
+
p(s, { class: "ctrl" }, {
|
|
3217
3217
|
default: r(() => [
|
|
3218
|
-
|
|
3218
|
+
p(c, { class: "ctrl-btn" }, {
|
|
3219
3219
|
default: r(() => [
|
|
3220
3220
|
g("按钮组")
|
|
3221
3221
|
]),
|
|
@@ -3232,13 +3232,13 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3232
3232
|
})
|
|
3233
3233
|
]),
|
|
3234
3234
|
main: r(() => [
|
|
3235
|
-
(i(), f(d,
|
|
3235
|
+
(i(), f(d, F({
|
|
3236
3236
|
ref: "table",
|
|
3237
3237
|
key: o.key,
|
|
3238
3238
|
dev: !0
|
|
3239
3239
|
}, o.builderSchema), null, 16)),
|
|
3240
|
-
|
|
3241
|
-
|
|
3240
|
+
p(m),
|
|
3241
|
+
p(_, {
|
|
3242
3242
|
type: "primary",
|
|
3243
3243
|
onClick: a.saveSchema
|
|
3244
3244
|
}, {
|
|
@@ -3248,12 +3248,12 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3248
3248
|
_: 1
|
|
3249
3249
|
}, 8, ["onClick"]),
|
|
3250
3250
|
g(" "),
|
|
3251
|
-
|
|
3251
|
+
p(w, {
|
|
3252
3252
|
text: "PageSchema",
|
|
3253
3253
|
type: "modal"
|
|
3254
3254
|
}, {
|
|
3255
3255
|
default: r(() => [
|
|
3256
|
-
|
|
3256
|
+
p(T, { data: a.getSaveSchema }, null, 8, ["data"])
|
|
3257
3257
|
]),
|
|
3258
3258
|
_: 1
|
|
3259
3259
|
})
|
|
@@ -3261,14 +3261,14 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3261
3261
|
"right-aside": r(() => [
|
|
3262
3262
|
o.activeIndex ? (i(), f(Z, { key: 0 }, {
|
|
3263
3263
|
default: r(() => [
|
|
3264
|
-
|
|
3264
|
+
p(C, { label: "控件类型" }, {
|
|
3265
3265
|
default: r(() => [
|
|
3266
|
-
|
|
3266
|
+
p(U, {
|
|
3267
3267
|
modelValue: o.currentCtrlType,
|
|
3268
3268
|
"onUpdate:modelValue": t[3] || (t[3] = (I) => o.currentCtrlType = I)
|
|
3269
3269
|
}, {
|
|
3270
3270
|
default: r(() => [
|
|
3271
|
-
(i(!0), h(S, null, B(a.types, (I, V) => (i(), f(
|
|
3271
|
+
(i(!0), h(S, null, B(a.types, (I, V) => (i(), f(J, {
|
|
3272
3272
|
key: V,
|
|
3273
3273
|
label: I.label,
|
|
3274
3274
|
value: I.value
|
|
@@ -3282,7 +3282,7 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3282
3282
|
]),
|
|
3283
3283
|
_: 1
|
|
3284
3284
|
})) : x("", !0),
|
|
3285
|
-
(i(), f(xt,
|
|
3285
|
+
(i(), f(xt, F({
|
|
3286
3286
|
key: o.ctrlKey,
|
|
3287
3287
|
modelValue: o.ctrlOptions,
|
|
3288
3288
|
"onUpdate:modelValue": t[4] || (t[4] = (I) => o.ctrlOptions = I)
|
|
@@ -3295,18 +3295,18 @@ const eo = /* @__PURE__ */ $(Xn, [["render", Yn], ["__scopeId", "data-v-e5209cb7
|
|
|
3295
3295
|
name: "PageEditor",
|
|
3296
3296
|
components: { FormBuilder: Pn, TableBuilder: eo },
|
|
3297
3297
|
setup() {
|
|
3298
|
-
const e = L(!1), t = L(1), l = "rtl", n =
|
|
3298
|
+
const e = L(!1), t = L(1), l = "rtl", n = ue(), o = j(() => E.state.app.pages[n.path]);
|
|
3299
3299
|
return { show: e, key: t, direction: l, pageSchema: o };
|
|
3300
3300
|
}
|
|
3301
3301
|
};
|
|
3302
3302
|
function lo(e, t, l, n, o, a) {
|
|
3303
|
-
const s = v("VIcon"), c = v("form-builder"),
|
|
3303
|
+
const s = v("VIcon"), c = v("form-builder"), u = v("table-builder"), d = st;
|
|
3304
3304
|
return i(), h(S, null, [
|
|
3305
|
-
|
|
3305
|
+
p(s, {
|
|
3306
3306
|
name: "ra-set",
|
|
3307
3307
|
onClick: t[0] || (t[0] = (m) => n.show = !n.show)
|
|
3308
3308
|
}),
|
|
3309
|
-
|
|
3309
|
+
p(d, {
|
|
3310
3310
|
modelValue: n.show,
|
|
3311
3311
|
"onUpdate:modelValue": t[1] || (t[1] = (m) => n.show = m),
|
|
3312
3312
|
title: "页面设计",
|
|
@@ -3321,7 +3321,7 @@ function lo(e, t, l, n, o, a) {
|
|
|
3321
3321
|
key: 0,
|
|
3322
3322
|
schema: n.pageSchema
|
|
3323
3323
|
}, null, 8, ["schema"])) : x("", !0),
|
|
3324
|
-
n.pageSchema.headers !== void 0 ? (i(), f(
|
|
3324
|
+
n.pageSchema.headers !== void 0 ? (i(), f(u, {
|
|
3325
3325
|
key: 1,
|
|
3326
3326
|
schema: n.pageSchema
|
|
3327
3327
|
}, null, 8, ["schema"])) : x("", !0)
|
|
@@ -3333,7 +3333,7 @@ function lo(e, t, l, n, o, a) {
|
|
|
3333
3333
|
const no = /* @__PURE__ */ $(to, [["render", lo]]);
|
|
3334
3334
|
const oo = {
|
|
3335
3335
|
components: {
|
|
3336
|
-
Breadcrumb:
|
|
3336
|
+
Breadcrumb: pn,
|
|
3337
3337
|
Hamburger: mn,
|
|
3338
3338
|
VButton: Pe,
|
|
3339
3339
|
PageEditor: no
|
|
@@ -3417,49 +3417,49 @@ const oo = {
|
|
|
3417
3417
|
}, ro = {
|
|
3418
3418
|
class: "right-item-button",
|
|
3419
3419
|
style: { padding: "0" }
|
|
3420
|
-
}, co = { class: "user-info" },
|
|
3420
|
+
}, co = { class: "user-info" }, po = ["src"], uo = { class: "user-name" };
|
|
3421
3421
|
function mo(e, t, l, n, o, a) {
|
|
3422
|
-
const s = v("hamburger"), c = v("breadcrumb"),
|
|
3422
|
+
const s = v("hamburger"), c = v("breadcrumb"), u = de, d = v("VIcon"), m = v("PageEditor"), _ = v("v-button"), T = ml, w = fl, J = hl, U = st, C = ae;
|
|
3423
3423
|
return i(), f(C, {
|
|
3424
3424
|
ref: "header",
|
|
3425
3425
|
class: "navbar",
|
|
3426
3426
|
style: Bt({ background: a.setting.envColor[a.user.env] })
|
|
3427
3427
|
}, {
|
|
3428
3428
|
default: r(() => [
|
|
3429
|
-
u
|
|
3429
|
+
p(u, { span: 16 }, {
|
|
3430
3430
|
default: r(() => [
|
|
3431
|
-
|
|
3431
|
+
p(s, {
|
|
3432
3432
|
"is-active": e.sidebar.opened,
|
|
3433
3433
|
class: "hamburger-container",
|
|
3434
3434
|
onToggleClick: a.toggleSideBar
|
|
3435
3435
|
}, null, 8, ["is-active", "onToggleClick"]),
|
|
3436
|
-
|
|
3436
|
+
p(c, { class: "breadcrumb-container" })
|
|
3437
3437
|
]),
|
|
3438
3438
|
_: 1
|
|
3439
3439
|
}),
|
|
3440
|
-
u
|
|
3440
|
+
p(u, { span: 8 }, {
|
|
3441
3441
|
default: r(() => [
|
|
3442
3442
|
b("div", ao, [
|
|
3443
3443
|
b("div", so, [
|
|
3444
|
-
|
|
3444
|
+
p(d, {
|
|
3445
3445
|
name: "ra-code",
|
|
3446
3446
|
onClick: a.gotoMenuEdit
|
|
3447
3447
|
}, null, 8, ["onClick"])
|
|
3448
3448
|
]),
|
|
3449
3449
|
a.showPageJsonSchemaIcon ? (i(), h("div", io, [
|
|
3450
|
-
|
|
3450
|
+
p(m)
|
|
3451
3451
|
])) : x("", !0),
|
|
3452
3452
|
b("div", ro, [
|
|
3453
|
-
|
|
3453
|
+
p(_, { buttons: e.nav }, null, 8, ["buttons"])
|
|
3454
3454
|
]),
|
|
3455
|
-
|
|
3455
|
+
p(J, {
|
|
3456
3456
|
class: "right-item",
|
|
3457
3457
|
trigger: "click"
|
|
3458
3458
|
}, {
|
|
3459
3459
|
dropdown: r(() => [
|
|
3460
|
-
|
|
3460
|
+
p(w, { class: "user-dropdown" }, {
|
|
3461
3461
|
default: r(() => [
|
|
3462
|
-
|
|
3462
|
+
p(T, {
|
|
3463
3463
|
icon: "oms-icon-index",
|
|
3464
3464
|
onClick: t[0] || (t[0] = (Z) => e.$router.push("/"))
|
|
3465
3465
|
}, {
|
|
@@ -3468,7 +3468,7 @@ function mo(e, t, l, n, o, a) {
|
|
|
3468
3468
|
]),
|
|
3469
3469
|
_: 1
|
|
3470
3470
|
}),
|
|
3471
|
-
|
|
3471
|
+
p(T, {
|
|
3472
3472
|
divided: "",
|
|
3473
3473
|
icon: "el-icon-switch-button",
|
|
3474
3474
|
onClick: a.logout
|
|
@@ -3488,9 +3488,9 @@ function mo(e, t, l, n, o, a) {
|
|
|
3488
3488
|
src: e.avatar ? e.avatar : o.defaultAvatar,
|
|
3489
3489
|
class: "user-avatar",
|
|
3490
3490
|
alt: "头像"
|
|
3491
|
-
}, null, 8,
|
|
3491
|
+
}, null, 8, po),
|
|
3492
3492
|
g(),
|
|
3493
|
-
b("span",
|
|
3493
|
+
b("span", uo, O(e.nickname || e.name), 1)
|
|
3494
3494
|
])
|
|
3495
3495
|
]),
|
|
3496
3496
|
_: 1
|
|
@@ -3534,7 +3534,7 @@ function wo(e, t, l, n, o, a) {
|
|
|
3534
3534
|
return i(), h("div", {
|
|
3535
3535
|
class: H(["sidebar-logo-container", { collapse: l.collapse }])
|
|
3536
3536
|
}, [
|
|
3537
|
-
|
|
3537
|
+
p(At, { name: "sidebarLogoFade" }, {
|
|
3538
3538
|
default: r(() => [
|
|
3539
3539
|
l.collapse ? (i(), f(s, {
|
|
3540
3540
|
key: "collapse",
|
|
@@ -3604,7 +3604,7 @@ const So = /* @__PURE__ */ $(ho, [["render", wo], ["__scopeId", "data-v-49084925
|
|
|
3604
3604
|
}
|
|
3605
3605
|
};
|
|
3606
3606
|
function Eo(e, t, l, n, o, a) {
|
|
3607
|
-
return i(), f(Ze(a.compType(l.to)),
|
|
3607
|
+
return i(), f(Ze(a.compType(l.to)), G(Y(a.linkProps(l.to))), {
|
|
3608
3608
|
default: r(() => [
|
|
3609
3609
|
le(e.$slots, "default")
|
|
3610
3610
|
]),
|
|
@@ -3647,7 +3647,7 @@ const $o = /* @__PURE__ */ $(xo, [["render", Eo]]), Io = {
|
|
|
3647
3647
|
return (t, l) => {
|
|
3648
3648
|
const n = v("VIcon");
|
|
3649
3649
|
return i(), h(S, null, [
|
|
3650
|
-
|
|
3650
|
+
p(n, {
|
|
3651
3651
|
name: e.meta.icon || "ra-all"
|
|
3652
3652
|
}, null, 8, ["name"]),
|
|
3653
3653
|
b("span", Co, O(e.meta.title), 1)
|
|
@@ -3690,21 +3690,21 @@ const $o = /* @__PURE__ */ $(xo, [["render", Eo]]), Io = {
|
|
|
3690
3690
|
class: "menu-wrapper"
|
|
3691
3691
|
};
|
|
3692
3692
|
function Ao(e, t, l, n, o, a) {
|
|
3693
|
-
const s = v("menu-content"), c = bl,
|
|
3693
|
+
const s = v("menu-content"), c = bl, u = v("app-link"), d = v("sidebar-item", !0), m = _l;
|
|
3694
3694
|
return l.item.hidden !== !1 ? (i(), h("div", Bo, [
|
|
3695
3695
|
l.item.meta && l.item.meta.menuType === 2 ? (i(), h(S, { key: 0 }, [
|
|
3696
|
-
l.item.meta ? (i(), f(
|
|
3696
|
+
l.item.meta ? (i(), f(u, {
|
|
3697
3697
|
key: 0,
|
|
3698
3698
|
to: l.to,
|
|
3699
3699
|
"new-tab": l.item.meta.newTab
|
|
3700
3700
|
}, {
|
|
3701
3701
|
default: r(() => [
|
|
3702
|
-
|
|
3702
|
+
p(c, {
|
|
3703
3703
|
index: l.to,
|
|
3704
3704
|
class: H({ "submenu-title-noDropdown": !l.isNest })
|
|
3705
3705
|
}, {
|
|
3706
3706
|
default: r(() => [
|
|
3707
|
-
|
|
3707
|
+
p(s, {
|
|
3708
3708
|
meta: l.item.meta
|
|
3709
3709
|
}, null, 8, ["meta"])
|
|
3710
3710
|
]),
|
|
@@ -3720,12 +3720,12 @@ function Ao(e, t, l, n, o, a) {
|
|
|
3720
3720
|
class: H({ "submenu-title-noDropdown": !l.isNest })
|
|
3721
3721
|
}, {
|
|
3722
3722
|
title: r(() => [
|
|
3723
|
-
l.item.redirect && l.item.redirect !== "#" ? (i(), f(
|
|
3723
|
+
l.item.redirect && l.item.redirect !== "#" ? (i(), f(u, {
|
|
3724
3724
|
key: 0,
|
|
3725
3725
|
to: l.to
|
|
3726
3726
|
}, {
|
|
3727
3727
|
default: r(() => [
|
|
3728
|
-
|
|
3728
|
+
p(s, {
|
|
3729
3729
|
meta: l.item.meta
|
|
3730
3730
|
}, null, 8, ["meta"])
|
|
3731
3731
|
]),
|
|
@@ -3788,8 +3788,8 @@ const Ro = {
|
|
|
3788
3788
|
}
|
|
3789
3789
|
};
|
|
3790
3790
|
function Lo(e, t, l, n, o, a) {
|
|
3791
|
-
const s = Te, c = yl,
|
|
3792
|
-
return i(), f(
|
|
3791
|
+
const s = Te, c = yl, u = Oe;
|
|
3792
|
+
return i(), f(u, {
|
|
3793
3793
|
modelValue: o.selected,
|
|
3794
3794
|
"onUpdate:modelValue": t[0] || (t[0] = (d) => o.selected = d),
|
|
3795
3795
|
filterable: "",
|
|
@@ -3883,7 +3883,7 @@ const Do = q({
|
|
|
3883
3883
|
}
|
|
3884
3884
|
});
|
|
3885
3885
|
function jo(e, t, l, n, o, a) {
|
|
3886
|
-
const s = v("logo"), c = v("search-menu"),
|
|
3886
|
+
const s = v("logo"), c = v("search-menu"), u = v("sidebar-item"), d = vl, m = gl;
|
|
3887
3887
|
return i(), h("div", {
|
|
3888
3888
|
class: H({ "has-logo": e.showLogo })
|
|
3889
3889
|
}, [
|
|
@@ -3891,10 +3891,10 @@ function jo(e, t, l, n, o, a) {
|
|
|
3891
3891
|
key: 0,
|
|
3892
3892
|
collapse: e.isCollapse
|
|
3893
3893
|
}, null, 8, ["collapse"])) : x("", !0),
|
|
3894
|
-
|
|
3894
|
+
p(m, { "wrap-class": "scrollbar-wrapper" }, {
|
|
3895
3895
|
default: r(() => [
|
|
3896
3896
|
e.isCollapse ? x("", !0) : (i(), f(c, { key: 0 })),
|
|
3897
|
-
|
|
3897
|
+
p(d, {
|
|
3898
3898
|
"default-active": e.activeMenu,
|
|
3899
3899
|
collapse: e.isCollapse,
|
|
3900
3900
|
"background-color": e.variables.menuBg,
|
|
@@ -3908,7 +3908,7 @@ function jo(e, t, l, n, o, a) {
|
|
|
3908
3908
|
(i(!0), h(S, null, B(e.routes, (_, T) => (i(), h(S, {
|
|
3909
3909
|
key: T + "-module"
|
|
3910
3910
|
}, [
|
|
3911
|
-
(i(!0), h(S, null, B(e.filterRoute(_.routes), (w) => (i(), f(
|
|
3911
|
+
(i(!0), h(S, null, B(e.filterRoute(_.routes), (w) => (i(), f(u, {
|
|
3912
3912
|
key: w.path,
|
|
3913
3913
|
item: w,
|
|
3914
3914
|
to: e.$router.resolve(w.redirect ? w.redirect : w).fullPath
|
|
@@ -3926,7 +3926,7 @@ const No = /* @__PURE__ */ $(Do, [["render", jo], ["__scopeId", "data-v-d252f828
|
|
|
3926
3926
|
const Vo = { class: "app-main" }, qo = {
|
|
3927
3927
|
__name: "AppMain",
|
|
3928
3928
|
setup(e) {
|
|
3929
|
-
const t =
|
|
3929
|
+
const t = ue(), l = [], n = L(0);
|
|
3930
3930
|
return nl(() => {
|
|
3931
3931
|
var o;
|
|
3932
3932
|
(o = t.meta) != null && o.keepAlive && l.indexOf(t.name) && l.push(t.name), n.value++;
|
|
@@ -3936,7 +3936,7 @@ const Vo = { class: "app-main" }, qo = {
|
|
|
3936
3936
|
(i(), f(s, {
|
|
3937
3937
|
key: o.$route.fullPath + k(n)
|
|
3938
3938
|
})),
|
|
3939
|
-
|
|
3939
|
+
p(c, { bottom: 50 })
|
|
3940
3940
|
]);
|
|
3941
3941
|
};
|
|
3942
3942
|
}
|
|
@@ -3951,7 +3951,7 @@ const Ho = { class: "main-container" }, Fo = 992, Go = {
|
|
|
3951
3951
|
mobile: o.value === "mobile"
|
|
3952
3952
|
})), c = () => l.getBoundingClientRect().width - 1 < Fo;
|
|
3953
3953
|
Tl(window, "resize", () => d());
|
|
3954
|
-
const
|
|
3954
|
+
const u = () => {
|
|
3955
3955
|
t.dispatch("app/closeSideBar", { withoutAnimation: !1 });
|
|
3956
3956
|
}, d = () => {
|
|
3957
3957
|
if (!document.hidden) {
|
|
@@ -3965,16 +3965,16 @@ const Ho = { class: "main-container" }, Fo = 992, Go = {
|
|
|
3965
3965
|
k(o) === "mobile" && k(n).opened ? (i(), h("div", {
|
|
3966
3966
|
key: 0,
|
|
3967
3967
|
class: "drawer-bg",
|
|
3968
|
-
onClick:
|
|
3968
|
+
onClick: u
|
|
3969
3969
|
})) : x("", !0),
|
|
3970
|
-
|
|
3970
|
+
p(k(No), { class: "sidebar-container" }),
|
|
3971
3971
|
b("div", Ho, [
|
|
3972
3972
|
b("div", {
|
|
3973
3973
|
class: H({ "fixed-header": k(a) })
|
|
3974
3974
|
}, [
|
|
3975
|
-
|
|
3975
|
+
p(k(fo))
|
|
3976
3976
|
], 2),
|
|
3977
|
-
|
|
3977
|
+
p(k(Uo))
|
|
3978
3978
|
])
|
|
3979
3979
|
], 2));
|
|
3980
3980
|
}
|
|
@@ -4046,12 +4046,12 @@ function Zo(e) {
|
|
|
4046
4046
|
const Qo = { id: "login" }, Xo = /* @__PURE__ */ b("h1", { id: "title" }, "登录", -1), Yo = { id: "form" }, ea = { class: "captcha" }, ta = ["src"], la = { class: "tips" }, na = { class: "sso" }, oa = /* @__PURE__ */ b("div", { id: "sso-qrcode" }, null, -1), aa = /* @__PURE__ */ q({
|
|
4047
4047
|
__name: "login",
|
|
4048
4048
|
setup(e) {
|
|
4049
|
-
const t = ol(), l =
|
|
4049
|
+
const t = ol(), l = ue(), n = j(() => E.state.settings.loginTips), o = L(0), a = () => o.value++, s = j(() => c.value.username.length > 0 && c.value.password.length >= 4 && c.value.captcha.length === 4), c = L({
|
|
4050
4050
|
username: "",
|
|
4051
4051
|
password: "",
|
|
4052
4052
|
captcha: "",
|
|
4053
4053
|
sing: ""
|
|
4054
|
-
}),
|
|
4054
|
+
}), u = () => {
|
|
4055
4055
|
if (c.value.username === "" || c.value.password === "" || c.value.captcha === "") {
|
|
4056
4056
|
wl.error("用户名, 密码, 验证码是必须的");
|
|
4057
4057
|
return;
|
|
@@ -4098,7 +4098,7 @@ const Qo = { id: "login" }, Xo = /* @__PURE__ */ b("h1", { id: "title" }, "登
|
|
|
4098
4098
|
]),
|
|
4099
4099
|
b("div", {
|
|
4100
4100
|
class: H({ input: !0, button: !0, "no-ready": !s.value }),
|
|
4101
|
-
onClick:
|
|
4101
|
+
onClick: u
|
|
4102
4102
|
}, "登录", 2),
|
|
4103
4103
|
b("div", la, [
|
|
4104
4104
|
b("div", null, O(n.value), 1)
|
|
@@ -4177,14 +4177,14 @@ const sa = {
|
|
|
4177
4177
|
}, "Go to Home Page")
|
|
4178
4178
|
])
|
|
4179
4179
|
])
|
|
4180
|
-
], -1)),
|
|
4180
|
+
], -1)), pa = [
|
|
4181
4181
|
ra,
|
|
4182
4182
|
ca
|
|
4183
4183
|
];
|
|
4184
|
-
function
|
|
4185
|
-
return i(), h("div", ia,
|
|
4184
|
+
function ua(e, t, l, n, o, a) {
|
|
4185
|
+
return i(), h("div", ia, pa);
|
|
4186
4186
|
}
|
|
4187
|
-
const da = /* @__PURE__ */ $(sa, [["render",
|
|
4187
|
+
const da = /* @__PURE__ */ $(sa, [["render", ua], ["__scopeId", "data-v-26068803"]]), ma = [
|
|
4188
4188
|
{
|
|
4189
4189
|
path: "/",
|
|
4190
4190
|
component: ht,
|
|
@@ -4214,7 +4214,7 @@ const da = /* @__PURE__ */ $(sa, [["render", pa], ["__scopeId", "data-v-26068803
|
|
|
4214
4214
|
meta: { menuType: 0 },
|
|
4215
4215
|
hidden: !0
|
|
4216
4216
|
}
|
|
4217
|
-
],
|
|
4217
|
+
], K = al({
|
|
4218
4218
|
history: sl(),
|
|
4219
4219
|
routes: ma
|
|
4220
4220
|
});
|
|
@@ -4240,13 +4240,13 @@ function ba() {
|
|
|
4240
4240
|
}
|
|
4241
4241
|
function _a(e) {
|
|
4242
4242
|
e.beforeEach(async (t, l, n) => {
|
|
4243
|
-
var
|
|
4243
|
+
var u, d;
|
|
4244
4244
|
if (_t().indexOf(t.path) !== -1) {
|
|
4245
4245
|
n();
|
|
4246
4246
|
return;
|
|
4247
4247
|
}
|
|
4248
4248
|
if (ba()) {
|
|
4249
|
-
(
|
|
4249
|
+
(u = t.query) != null && u.redirect ? n((d = t.query) == null ? void 0 : d.redirect) : n();
|
|
4250
4250
|
return;
|
|
4251
4251
|
}
|
|
4252
4252
|
const a = t.query.redirect || t.path, s = Zo({});
|
|
@@ -4283,27 +4283,24 @@ const yt = /* @__PURE__ */ $(ya, [["render", wa]]), Sa = {
|
|
|
4283
4283
|
},
|
|
4284
4284
|
data() {
|
|
4285
4285
|
return {
|
|
4286
|
-
|
|
4286
|
+
noticeProps: {},
|
|
4287
4287
|
hasNotice: !1
|
|
4288
4288
|
};
|
|
4289
4289
|
},
|
|
4290
|
-
|
|
4291
|
-
if (this.$props.dataApi) {
|
|
4290
|
+
mounted() {
|
|
4291
|
+
if (console.log("dataApi", !!this.$props.dataApi), this.$props.dataApi) {
|
|
4292
4292
|
this.$http.get(this.$props.dataApi).then(({ data: e }) => {
|
|
4293
|
-
this.
|
|
4293
|
+
this.noticeProps = e, this.hasNotice = !!e;
|
|
4294
4294
|
});
|
|
4295
4295
|
return;
|
|
4296
4296
|
} else
|
|
4297
|
-
this.
|
|
4297
|
+
this.hasNotice = Object.keys(this.$props.notice).length > 0, this.noticeProps = this.$props.notice;
|
|
4298
4298
|
}
|
|
4299
4299
|
};
|
|
4300
4300
|
function xa(e, t, l, n, o, a) {
|
|
4301
4301
|
const s = Be;
|
|
4302
4302
|
return i(), h("div", null, [
|
|
4303
|
-
o.hasNotice ? (i(), f(s, {
|
|
4304
|
-
key: 0,
|
|
4305
|
-
title: o.title
|
|
4306
|
-
}, null, 8, ["title"])) : x("", !0)
|
|
4303
|
+
o.hasNotice ? (i(), f(s, G(F({ key: 0 }, o.noticeProps)), null, 16)) : x("", !0)
|
|
4307
4304
|
]);
|
|
4308
4305
|
}
|
|
4309
4306
|
const vt = /* @__PURE__ */ $(Sa, [["render", xa]]), Ea = q({
|
|
@@ -4350,7 +4347,7 @@ const vt = /* @__PURE__ */ $(Sa, [["render", xa]]), Ea = q({
|
|
|
4350
4347
|
});
|
|
4351
4348
|
const $a = ["innerHTML"];
|
|
4352
4349
|
function Ia(e, t, l, n, o, a) {
|
|
4353
|
-
const s = Be, c = vt,
|
|
4350
|
+
const s = Be, c = vt, u = yt;
|
|
4354
4351
|
return i(), h(S, null, [
|
|
4355
4352
|
e.owners.length > 0 ? (i(), f(s, {
|
|
4356
4353
|
key: 0,
|
|
@@ -4370,11 +4367,11 @@ function Ia(e, t, l, n, o, a) {
|
|
|
4370
4367
|
style: { margin: "0 0 20px 0" },
|
|
4371
4368
|
"data-api": e.noticeApi
|
|
4372
4369
|
}, null, 8, ["notice", "data-api"])) : x("", !0),
|
|
4373
|
-
e.loading ? (i(), f(
|
|
4370
|
+
e.loading ? (i(), f(u, { key: 1 })) : le(e.$slots, "default", G(F({ key: 2 }, e.schema)), void 0, !0)
|
|
4374
4371
|
], 64))
|
|
4375
4372
|
], 64);
|
|
4376
4373
|
}
|
|
4377
|
-
const se = /* @__PURE__ */ $(Ea, [["render", Ia], ["__scopeId", "data-v-
|
|
4374
|
+
const se = /* @__PURE__ */ $(Ea, [["render", Ia], ["__scopeId", "data-v-4965a709"]]), gt = {
|
|
4378
4375
|
__name: "table",
|
|
4379
4376
|
setup(e) {
|
|
4380
4377
|
const t = (l, n) => {
|
|
@@ -4392,7 +4389,7 @@ const se = /* @__PURE__ */ $(Ea, [["render", Ia], ["__scopeId", "data-v-015774e8
|
|
|
4392
4389
|
};
|
|
4393
4390
|
return (l, n) => (i(), f(se, { "schema-handler": t }, {
|
|
4394
4391
|
default: r((o) => [
|
|
4395
|
-
|
|
4392
|
+
p(k(oe), G(Y(o)), null, 16)
|
|
4396
4393
|
]),
|
|
4397
4394
|
_: 1
|
|
4398
4395
|
}));
|
|
@@ -4400,8 +4397,8 @@ const se = /* @__PURE__ */ $(Ea, [["render", Ia], ["__scopeId", "data-v-015774e8
|
|
|
4400
4397
|
}, xe = {
|
|
4401
4398
|
__name: "form",
|
|
4402
4399
|
setup(e) {
|
|
4403
|
-
const t =
|
|
4404
|
-
const a = Object.keys(
|
|
4400
|
+
const t = ue(), l = (n, o) => {
|
|
4401
|
+
const a = Object.keys(z.props);
|
|
4405
4402
|
return Object.keys(n).forEach((s) => {
|
|
4406
4403
|
if (a.indexOf(s) === -1) {
|
|
4407
4404
|
delete n[s];
|
|
@@ -4417,7 +4414,7 @@ const se = /* @__PURE__ */ $(Ea, [["render", Ia], ["__scopeId", "data-v-015774e8
|
|
|
4417
4414
|
};
|
|
4418
4415
|
return (n, o) => (i(), f(se, { "schema-handler": l }, {
|
|
4419
4416
|
default: r((a) => [
|
|
4420
|
-
|
|
4417
|
+
p(k(z), G(Y(a)), null, 16)
|
|
4421
4418
|
]),
|
|
4422
4419
|
_: 1
|
|
4423
4420
|
}));
|
|
@@ -4425,7 +4422,7 @@ const se = /* @__PURE__ */ $(Ea, [["render", Ia], ["__scopeId", "data-v-015774e8
|
|
|
4425
4422
|
}, Ca = q({
|
|
4426
4423
|
name: "VTree",
|
|
4427
4424
|
components: {
|
|
4428
|
-
VForm:
|
|
4425
|
+
VForm: z
|
|
4429
4426
|
},
|
|
4430
4427
|
props: {
|
|
4431
4428
|
treeApi: {
|
|
@@ -4570,22 +4567,22 @@ const Ta = { class: "card-header" }, Oa = /* @__PURE__ */ b("span", null, "列
|
|
|
4570
4567
|
style: { color: "#E6A23C" }
|
|
4571
4568
|
}, Ra = { class: "card-header" };
|
|
4572
4569
|
function La(e, t, l, n, o, a) {
|
|
4573
|
-
const s =
|
|
4570
|
+
const s = pe, c = Sl, u = Ae, d = de, m = v("v-form"), _ = ae;
|
|
4574
4571
|
return i(), f(_, {
|
|
4575
4572
|
class: "tree-box",
|
|
4576
4573
|
gutter: 20
|
|
4577
4574
|
}, {
|
|
4578
4575
|
default: r(() => [
|
|
4579
|
-
|
|
4576
|
+
p(d, {
|
|
4580
4577
|
span: 8,
|
|
4581
4578
|
class: "tree-tree"
|
|
4582
4579
|
}, {
|
|
4583
4580
|
default: r(() => [
|
|
4584
|
-
u
|
|
4581
|
+
p(u, { shadow: "never" }, {
|
|
4585
4582
|
header: r(() => [
|
|
4586
4583
|
b("div", Ta, [
|
|
4587
4584
|
Oa,
|
|
4588
|
-
|
|
4585
|
+
p(s, {
|
|
4589
4586
|
type: "text",
|
|
4590
4587
|
onClick: t[0] || (t[0] = () => e.appendNew())
|
|
4591
4588
|
}, {
|
|
@@ -4597,7 +4594,7 @@ function La(e, t, l, n, o, a) {
|
|
|
4597
4594
|
])
|
|
4598
4595
|
]),
|
|
4599
4596
|
default: r(() => [
|
|
4600
|
-
(e.treeData || []).length > 0 ? (i(), f(c,
|
|
4597
|
+
(e.treeData || []).length > 0 ? (i(), f(c, F({
|
|
4601
4598
|
key: 0,
|
|
4602
4599
|
style: { height: "100vh" },
|
|
4603
4600
|
data: e.treeData,
|
|
@@ -4656,12 +4653,12 @@ function La(e, t, l, n, o, a) {
|
|
|
4656
4653
|
]),
|
|
4657
4654
|
_: 1
|
|
4658
4655
|
}),
|
|
4659
|
-
|
|
4656
|
+
p(d, {
|
|
4660
4657
|
span: 16,
|
|
4661
4658
|
class: "tree-form"
|
|
4662
4659
|
}, {
|
|
4663
4660
|
default: r(() => [
|
|
4664
|
-
e.type ? (i(), f(
|
|
4661
|
+
e.type ? (i(), f(u, {
|
|
4665
4662
|
key: 0,
|
|
4666
4663
|
shadow: "never"
|
|
4667
4664
|
}, {
|
|
@@ -4671,7 +4668,7 @@ function La(e, t, l, n, o, a) {
|
|
|
4671
4668
|
])
|
|
4672
4669
|
]),
|
|
4673
4670
|
default: r(() => [
|
|
4674
|
-
(i(), f(m,
|
|
4671
|
+
(i(), f(m, F({
|
|
4675
4672
|
key: e.formkey,
|
|
4676
4673
|
modelValue: e.formData,
|
|
4677
4674
|
"onUpdate:modelValue": t[1] || (t[1] = (T) => e.formData = T)
|
|
@@ -4697,7 +4694,7 @@ const Fe = /* @__PURE__ */ $(Ca, [["render", La]]), Ma = {
|
|
|
4697
4694
|
};
|
|
4698
4695
|
return (l, n) => (i(), f(se, { "schema-handler": t }, {
|
|
4699
4696
|
default: r((o) => [
|
|
4700
|
-
|
|
4697
|
+
p(Fe, G(Y(o)), null, 16)
|
|
4701
4698
|
]),
|
|
4702
4699
|
_: 1
|
|
4703
4700
|
}));
|
|
@@ -4748,10 +4745,10 @@ function ja(e, t, l) {
|
|
|
4748
4745
|
let n = A({}, Da);
|
|
4749
4746
|
if (n.title.text = e, $e(t)) {
|
|
4750
4747
|
const o = [], a = Object.keys(l[0]);
|
|
4751
|
-
let s = a[0], c = a.filter((d, m) => m > 0),
|
|
4748
|
+
let s = a[0], c = a.filter((d, m) => m > 0), u = t;
|
|
4752
4749
|
if (t.indexOf(":") > -1) {
|
|
4753
4750
|
const d = t.split(":"), m = d[1].split(",");
|
|
4754
|
-
|
|
4751
|
+
u = d[0], s = m[0], c = m.filter((_, T) => T > 0);
|
|
4755
4752
|
}
|
|
4756
4753
|
c.forEach((d) => {
|
|
4757
4754
|
const m = [];
|
|
@@ -4759,7 +4756,7 @@ function ja(e, t, l) {
|
|
|
4759
4756
|
m.push(_[d]);
|
|
4760
4757
|
}), n.series.push({
|
|
4761
4758
|
name: d,
|
|
4762
|
-
type:
|
|
4759
|
+
type: u,
|
|
4763
4760
|
smooth: !0,
|
|
4764
4761
|
data: m
|
|
4765
4762
|
}), n.legend.data.push(d);
|
|
@@ -4784,12 +4781,12 @@ const Na = q({
|
|
|
4784
4781
|
function Ha(e, t, l, n, o, a) {
|
|
4785
4782
|
return i(!0), h(S, null, B(e.dataList, (s, c) => (i(), h("span", { key: c }, [
|
|
4786
4783
|
b("div", Va, [
|
|
4787
|
-
(i(!0), h(S, null, B(Object.keys(s), (
|
|
4784
|
+
(i(!0), h(S, null, B(Object.keys(s), (u, d) => (i(), h("div", {
|
|
4788
4785
|
key: d,
|
|
4789
4786
|
class: "title-inner"
|
|
4790
4787
|
}, [
|
|
4791
|
-
b("p", qa, O(s[
|
|
4792
|
-
b("p", Ua, O(
|
|
4788
|
+
b("p", qa, O(s[u]), 1),
|
|
4789
|
+
b("p", Ua, O(u), 1)
|
|
4793
4790
|
]))), 128))
|
|
4794
4791
|
])
|
|
4795
4792
|
]))), 128);
|
|
@@ -4852,7 +4849,7 @@ function Ja(e, t, l, n, o, a) {
|
|
|
4852
4849
|
class: "part"
|
|
4853
4850
|
}, {
|
|
4854
4851
|
default: r(() => [
|
|
4855
|
-
(i(), f(Ze(n.comptype()),
|
|
4852
|
+
(i(), f(Ze(n.comptype()), G(Y(n.compprops(l.option))), null, 16))
|
|
4856
4853
|
]),
|
|
4857
4854
|
_: 1
|
|
4858
4855
|
})), [
|
|
@@ -4892,7 +4889,7 @@ const za = /* @__PURE__ */ $(Ga, [["render", Ja], ["__scopeId", "data-v-a5a65cc1
|
|
|
4892
4889
|
cancelButton: {
|
|
4893
4890
|
text: "重置"
|
|
4894
4891
|
}
|
|
4895
|
-
}, a = L(1), s = L(t.filter), c = L(t.dataPart),
|
|
4892
|
+
}, a = L(1), s = L(t.filter), c = L(t.dataPart), u = j(() => {
|
|
4896
4893
|
let m = l.params.id;
|
|
4897
4894
|
if (!m) {
|
|
4898
4895
|
const _ = l.path.split("/");
|
|
@@ -4900,12 +4897,12 @@ const za = /* @__PURE__ */ $(Ga, [["render", Ja], ["__scopeId", "data-v-a5a65cc1
|
|
|
4900
4897
|
}
|
|
4901
4898
|
return "/focusbi_report/view/" + m;
|
|
4902
4899
|
}), d = (m) => {
|
|
4903
|
-
ms.get(
|
|
4900
|
+
ms.get(u.value, { params: m }).then(({ data: _ }) => {
|
|
4904
4901
|
s.value = _.filter, c.value = _.dataPart, a.value++;
|
|
4905
4902
|
});
|
|
4906
4903
|
};
|
|
4907
4904
|
return (m, _) => {
|
|
4908
|
-
const T = Ae, w = de,
|
|
4905
|
+
const T = Ae, w = de, J = Be, U = ae;
|
|
4909
4906
|
return i(), f(U, null, {
|
|
4910
4907
|
default: r(() => [
|
|
4911
4908
|
k(s).length > 0 ? (i(), f(w, {
|
|
@@ -4913,12 +4910,12 @@ const za = /* @__PURE__ */ $(Ga, [["render", Ja], ["__scopeId", "data-v-a5a65cc1
|
|
|
4913
4910
|
span: 24
|
|
4914
4911
|
}, {
|
|
4915
4912
|
default: r(() => [
|
|
4916
|
-
|
|
4913
|
+
p(T, {
|
|
4917
4914
|
shadow: "never",
|
|
4918
4915
|
class: "part-filter"
|
|
4919
4916
|
}, {
|
|
4920
4917
|
default: r(() => [
|
|
4921
|
-
|
|
4918
|
+
p(k(z), {
|
|
4922
4919
|
modelValue: k(n),
|
|
4923
4920
|
"onUpdate:modelValue": _[0] || (_[0] = (C) => Lt(n) ? n.value = C : null),
|
|
4924
4921
|
"form-items": k(s),
|
|
@@ -4931,16 +4928,16 @@ const za = /* @__PURE__ */ $(Ga, [["render", Ja], ["__scopeId", "data-v-a5a65cc1
|
|
|
4931
4928
|
]),
|
|
4932
4929
|
_: 1
|
|
4933
4930
|
})) : x("", !0),
|
|
4934
|
-
|
|
4931
|
+
p(w, { span: 24 }, {
|
|
4935
4932
|
default: r(() => [
|
|
4936
|
-
|
|
4933
|
+
p(U, { gutter: 20 }, {
|
|
4937
4934
|
default: r(() => [
|
|
4938
4935
|
(i(!0), h(S, null, B(k(c), (C, Z) => (i(), f(w, {
|
|
4939
4936
|
key: Z,
|
|
4940
4937
|
span: C.col || 24
|
|
4941
4938
|
}, {
|
|
4942
4939
|
default: r(() => [
|
|
4943
|
-
C.errMsg ? (i(), f(
|
|
4940
|
+
C.errMsg ? (i(), f(J, {
|
|
4944
4941
|
key: 1,
|
|
4945
4942
|
title: C.id + " 片段执行出错",
|
|
4946
4943
|
type: "error"
|
|
@@ -4981,15 +4978,15 @@ const Wa = {
|
|
|
4981
4978
|
});
|
|
4982
4979
|
return (n, o) => (i(), f(se, { "schema-api": k(l) }, {
|
|
4983
4980
|
default: r((a) => [
|
|
4984
|
-
|
|
4981
|
+
p(Ka, G(Y(a)), null, 16)
|
|
4985
4982
|
]),
|
|
4986
4983
|
_: 1
|
|
4987
4984
|
}, 8, ["schema-api"]));
|
|
4988
4985
|
}
|
|
4989
4986
|
};
|
|
4990
|
-
const Za = (e) =>
|
|
4987
|
+
const Za = (e) => p("div", null, [e.test]), Qa = {
|
|
4991
4988
|
card: el,
|
|
4992
|
-
form:
|
|
4989
|
+
form: z,
|
|
4993
4990
|
table: oe,
|
|
4994
4991
|
test: Za,
|
|
4995
4992
|
row: tl,
|
|
@@ -5042,11 +5039,11 @@ function je(e) {
|
|
|
5042
5039
|
var s, c;
|
|
5043
5040
|
let n = Object.assign({}, l);
|
|
5044
5041
|
if (X((s = n.props) == null ? void 0 : s.style)) {
|
|
5045
|
-
let
|
|
5042
|
+
let u = "";
|
|
5046
5043
|
Object.keys((c = n.props) == null ? void 0 : c.style).forEach((d) => {
|
|
5047
5044
|
var m;
|
|
5048
|
-
|
|
5049
|
-
}), n.props.style =
|
|
5045
|
+
u += d + ":" + ((m = n.props) == null ? void 0 : m.style[d]) + ";";
|
|
5046
|
+
}), n.props.style = u;
|
|
5050
5047
|
}
|
|
5051
5048
|
const o = {
|
|
5052
5049
|
span: n.span ?? 24,
|
|
@@ -5086,7 +5083,7 @@ const wt = (e) => {
|
|
|
5086
5083
|
const t = L([]), l = (n, o) => (t.value = jt(n), n);
|
|
5087
5084
|
return (n, o) => (i(), f(se, { "schema-handler": l }, {
|
|
5088
5085
|
default: r(() => [
|
|
5089
|
-
|
|
5086
|
+
p(k(es), { schema: k(t) }, null, 8, ["schema"])
|
|
5090
5087
|
]),
|
|
5091
5088
|
_: 1
|
|
5092
5089
|
}));
|
|
@@ -5243,8 +5240,8 @@ function is(e) {
|
|
|
5243
5240
|
e.beforeEach(async (t, l, n) => {
|
|
5244
5241
|
var c;
|
|
5245
5242
|
const a = [E.state.settings.title || ""], s = t.matched.length;
|
|
5246
|
-
for (let
|
|
5247
|
-
const d = t.matched[
|
|
5243
|
+
for (let u = s; u > s - 3; u--) {
|
|
5244
|
+
const d = t.matched[u - 1];
|
|
5248
5245
|
(c = d == null ? void 0 : d.meta) != null && c.title && a.push(d.meta.title + "");
|
|
5249
5246
|
}
|
|
5250
5247
|
a.length > 1 && (document.title = a.reverse().join("-")), n();
|
|
@@ -5255,7 +5252,7 @@ function is(e) {
|
|
|
5255
5252
|
function rs(e) {
|
|
5256
5253
|
_a(e), fa(e), ss(e), is(e);
|
|
5257
5254
|
}
|
|
5258
|
-
rs(
|
|
5255
|
+
rs(K);
|
|
5259
5256
|
function cs() {
|
|
5260
5257
|
return E.state.user.token;
|
|
5261
5258
|
}
|
|
@@ -5267,16 +5264,16 @@ function Ge(e) {
|
|
|
5267
5264
|
grouping: !0
|
|
5268
5265
|
});
|
|
5269
5266
|
}
|
|
5270
|
-
const
|
|
5267
|
+
const ps = {
|
|
5271
5268
|
onFulfilled: function(e) {
|
|
5272
5269
|
var l;
|
|
5273
5270
|
e.headers = e.headers || {};
|
|
5274
5271
|
const t = cs();
|
|
5275
|
-
return t && (e.headers["X-Token"] = t), (l =
|
|
5272
|
+
return t && (e.headers["X-Token"] = t), (l = K.currentRoute.value.meta) != null && l.path && (e.headers["X-Path"] = K.currentRoute.value.meta.path), e;
|
|
5276
5273
|
}
|
|
5277
|
-
},
|
|
5274
|
+
}, us = {
|
|
5278
5275
|
onFulfilled(e) {
|
|
5279
|
-
var n, o, a, s, c,
|
|
5276
|
+
var n, o, a, s, c, u, d;
|
|
5280
5277
|
if (!(((n = e.config) == null ? void 0 : n.notHoldApiErr) !== void 0 && ((o = e.config) == null ? void 0 : o.notHoldApiErr) === !0) && e.data.code !== 0) {
|
|
5281
5278
|
const m = e.data.message || `接口请求错误 ${e.config.method}::${(a = e.config.url) == null ? void 0 : a.split("?")[0]}`;
|
|
5282
5279
|
if (e.data.code === 401) {
|
|
@@ -5286,7 +5283,7 @@ const us = {
|
|
|
5286
5283
|
showCancelButton: !0,
|
|
5287
5284
|
cancelButtonText: "取消",
|
|
5288
5285
|
callback: (_) => {
|
|
5289
|
-
_ === "confirm" && (
|
|
5286
|
+
_ === "confirm" && (pt(), location.href = location.origin + location.pathname + location.hash.replace("#", "#/?redirect="), location.reload());
|
|
5290
5287
|
}
|
|
5291
5288
|
});
|
|
5292
5289
|
return;
|
|
@@ -5296,7 +5293,7 @@ const us = {
|
|
|
5296
5293
|
}
|
|
5297
5294
|
let l = (c = (s = e.data) == null ? void 0 : s.data) == null ? void 0 : c._message_box;
|
|
5298
5295
|
return l !== void 0 && ($e(l) && (l = {
|
|
5299
|
-
message: (d = (
|
|
5296
|
+
message: (d = (u = e.data) == null ? void 0 : u.data) == null ? void 0 : d._message_box
|
|
5300
5297
|
}), Ue({
|
|
5301
5298
|
title: "提示",
|
|
5302
5299
|
type: "success",
|
|
@@ -5314,8 +5311,8 @@ const us = {
|
|
|
5314
5311
|
response: tn
|
|
5315
5312
|
},
|
|
5316
5313
|
{
|
|
5317
|
-
request:
|
|
5318
|
-
response:
|
|
5314
|
+
request: ps,
|
|
5315
|
+
response: us
|
|
5319
5316
|
}
|
|
5320
5317
|
];
|
|
5321
5318
|
function Ne(e = {}) {
|
|
@@ -5337,10 +5334,10 @@ const fs = {
|
|
|
5337
5334
|
unmounted(e) {
|
|
5338
5335
|
document.body.removeEventListener("click", e.clickOutsideEvent);
|
|
5339
5336
|
}
|
|
5340
|
-
},
|
|
5337
|
+
}, W = Cl(), hs = {
|
|
5341
5338
|
mounted: (e, t) => {
|
|
5342
5339
|
e !== null && (t.value, e.oncontextmenu = (l) => {
|
|
5343
|
-
l.preventDefault(), l.stopPropagation(), l.cancelBubble = !0, t.value &&
|
|
5340
|
+
l.preventDefault(), l.stopPropagation(), l.cancelBubble = !0, t.value && W.emit("right-click", { event: l, data: t.value });
|
|
5344
5341
|
});
|
|
5345
5342
|
}
|
|
5346
5343
|
}, bs = {
|
|
@@ -5359,7 +5356,7 @@ const _s = {
|
|
|
5359
5356
|
return;
|
|
5360
5357
|
let l = e;
|
|
5361
5358
|
if (t.value.parent)
|
|
5362
|
-
for (let
|
|
5359
|
+
for (let u = 0; u < t.value.parent; u++)
|
|
5363
5360
|
l.parentElement && (l = l.parentElement);
|
|
5364
5361
|
l.classList.add("devtool-hover");
|
|
5365
5362
|
const n = document.createElement("i");
|
|
@@ -5369,14 +5366,14 @@ const _s = {
|
|
|
5369
5366
|
const o = document.createElement("span");
|
|
5370
5367
|
o.className = "dev-action-edit", o.title = "编辑";
|
|
5371
5368
|
const a = document.createElement("i");
|
|
5372
|
-
a.className = "iconfont ra-editor1", o.appendChild(a), o.onclick = (
|
|
5373
|
-
|
|
5369
|
+
a.className = "iconfont ra-editor1", o.appendChild(a), o.onclick = (u) => {
|
|
5370
|
+
W.emit("dev-action", { event: u, data: { type: "edit", devId: t.value.devId } });
|
|
5374
5371
|
}, n.appendChild(o);
|
|
5375
5372
|
const s = document.createElement("span");
|
|
5376
5373
|
s.className = "dev-action-del", s.title = "删除";
|
|
5377
5374
|
const c = document.createElement("i");
|
|
5378
|
-
c.className = "iconfont ra-cut", s.appendChild(c), s.onclick = (
|
|
5379
|
-
|
|
5375
|
+
c.className = "iconfont ra-cut", s.appendChild(c), s.onclick = (u) => {
|
|
5376
|
+
W.emit("dev-action", { event: u, data: { type: "del", devId: t.value.devId } });
|
|
5380
5377
|
}, n.appendChild(s), l.insertBefore(n, l.firstChild);
|
|
5381
5378
|
}
|
|
5382
5379
|
}, ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -5394,9 +5391,9 @@ function $i(e) {
|
|
|
5394
5391
|
const t = A(me, e), l = Nt(Al), n = Es(t), o = t.plugins || [];
|
|
5395
5392
|
o.unshift(n), o.forEach((a) => {
|
|
5396
5393
|
xs(l, a);
|
|
5397
|
-
}), t != null && t.mock && Ul(), ce = Ne(t.axios), E.dispatch("setHttp", ce).then(), E.dispatch("settings/updateSettings", e == null ? void 0 : e.settings).then(), l.config.globalProperties.$http = ce, l.config.globalProperties.$router =
|
|
5394
|
+
}), t != null && t.mock && Ul(), ce = Ne(t.axios), E.dispatch("setHttp", ce).then(), E.dispatch("settings/updateSettings", e == null ? void 0 : e.settings).then(), l.config.globalProperties.$http = ce, l.config.globalProperties.$router = K, window.App = l, window.OmsOptions = t, $l(() => ({
|
|
5398
5395
|
"X-Token": Me()
|
|
5399
|
-
})),
|
|
5396
|
+
})), K.isReady().then(() => l.mount("#app"));
|
|
5400
5397
|
}
|
|
5401
5398
|
function vs(e, t = {}) {
|
|
5402
5399
|
Object.keys(t).forEach((l) => {
|
|
@@ -5405,7 +5402,7 @@ function vs(e, t = {}) {
|
|
|
5405
5402
|
}
|
|
5406
5403
|
function gs(e = []) {
|
|
5407
5404
|
e.forEach((t) => {
|
|
5408
|
-
|
|
5405
|
+
K.addRoute(t);
|
|
5409
5406
|
}), E.commit("user/setCustomRoutes", e);
|
|
5410
5407
|
}
|
|
5411
5408
|
function ks(e, t) {
|
|
@@ -5438,7 +5435,7 @@ function Es(e) {
|
|
|
5438
5435
|
directives: ys,
|
|
5439
5436
|
use: [
|
|
5440
5437
|
E,
|
|
5441
|
-
|
|
5438
|
+
K,
|
|
5442
5439
|
[Qt, { locale: tt, ...(t = e.settings) == null ? void 0 : t.ElementPlus }]
|
|
5443
5440
|
]
|
|
5444
5441
|
};
|
|
@@ -5454,7 +5451,7 @@ export {
|
|
|
5454
5451
|
D as PageType,
|
|
5455
5452
|
Wo as allSso,
|
|
5456
5453
|
$i as createAdmin,
|
|
5457
|
-
|
|
5454
|
+
W as eventBus,
|
|
5458
5455
|
ln as getCmp,
|
|
5459
5456
|
ce as http,
|
|
5460
5457
|
Ne as instance,
|