@okiss/oms 0.0.46 → 0.0.48
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 +461 -452
- package/dist/index.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/components/RightMenu.vue.d.ts +1 -1
- package/dist/types/scaffold/layout/components/Breadcrumb/index.vue.d.ts +1 -1
- package/dist/types/scaffold/layout/components/Sidebar/index.vue.d.ts +1 -1
- package/dist/types/store/types.d.ts +1 -0
- package/dist/types/types.d.ts +1 -0
- 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
|
-
var
|
|
4
|
-
import { defineComponent as q, onBeforeMount as ze, provide as Ct, resolveComponent as v, openBlock as i, createBlock as
|
|
3
|
+
var D = (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 m, createVNode as p, computed as M, createTextVNode as k, withCtx as r, TransitionGroup as Tt, createElementBlock as h, Fragment as E, renderList as O, toDisplayString as B, normalizeClass as H, renderSlot as le, mergeProps as F, createCommentVNode as $, toRefs as Bt, ref as L, normalizeStyle as Ot, createElementVNode as _, Transition as At, pushScopeId as Ke, popScopeId as We, resolveDynamicComponent as Ze, normalizeProps as G, guardReactiveProps as Y, unref as w, 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";
|
|
@@ -13,7 +13,7 @@ import Qt, { ElMessage as Xt, ElMessageBox as Yt, ElCard as el, ElRow as tl, ElC
|
|
|
13
13
|
import "element-plus/dist/index.css";
|
|
14
14
|
import "dayjs/locale/zh-cn";
|
|
15
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
|
|
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 Be, 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 Oe, 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";
|
|
@@ -47,8 +47,8 @@ import { useEventListener as Tl } from "@vueuse/core";
|
|
|
47
47
|
import "element-plus/es/components/alert/style/css";
|
|
48
48
|
import "element-plus/es/components/card/style/css";
|
|
49
49
|
import "element-plus/es/components/tree/style/css";
|
|
50
|
-
import
|
|
51
|
-
import { MD5 as
|
|
50
|
+
import Bl from "vue3-markdown-it";
|
|
51
|
+
import { MD5 as Ol } from "crypto-js";
|
|
52
52
|
import "element-plus/es/components/message/style/css";
|
|
53
53
|
import ke from "nprogress";
|
|
54
54
|
import "nprogress/nprogress.css";
|
|
@@ -72,8 +72,8 @@ const Al = /* @__PURE__ */ q({
|
|
|
72
72
|
font-family: iconfont !important;
|
|
73
73
|
}`));
|
|
74
74
|
}), (l = (t = window == null ? void 0 : window.OmsOptions) == null ? void 0 : t.form) != null && l.vsPath && Ct("vsPath", (o = (n = window == null ? void 0 : window.OmsOptions) == null ? void 0 : n.form) == null ? void 0 : o.vsPath), (a, s) => {
|
|
75
|
-
const
|
|
76
|
-
return i(),
|
|
75
|
+
const u = v("router-view");
|
|
76
|
+
return i(), m(u);
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
79
|
});
|
|
@@ -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,
|
|
777
|
-
return Ht(o, { type: a, query:
|
|
776
|
+
const { url: o, type: a, body: s } = n, u = Ut(o), c = s ? JSON.parse(s) : {}, d = t.response({ query: u, data: c }), f = _e.mock(d);
|
|
777
|
+
return Ht(o, { type: a, query: u, data: c, response: f }), _e.mock(f);
|
|
778
778
|
});
|
|
779
779
|
}), console.log("%c ApiMock is stared! ", "background: #606060; color: #fff; padding: 4px 5px; border-radius: 1px;");
|
|
780
780
|
}
|
|
@@ -783,7 +783,7 @@ function Me() {
|
|
|
783
783
|
return N.get(Le) || "";
|
|
784
784
|
}
|
|
785
785
|
function Hl(e) {
|
|
786
|
-
const t = new Date((/* @__PURE__ */ new Date()).getTime() + (
|
|
786
|
+
const t = new Date((/* @__PURE__ */ new Date()).getTime() + (S.state.settings.tokenExpire || 864e5));
|
|
787
787
|
return N.set(Le, e, { expires: t });
|
|
788
788
|
}
|
|
789
789
|
function pt() {
|
|
@@ -850,8 +850,8 @@ const Fl = {
|
|
|
850
850
|
method: "POST",
|
|
851
851
|
data: n
|
|
852
852
|
}).then((s) => {
|
|
853
|
-
var
|
|
854
|
-
e("updateToken", (
|
|
853
|
+
var u;
|
|
854
|
+
e("updateToken", (u = s.data) == null ? void 0 : u.token), o(!0);
|
|
855
855
|
}).catch((s) => {
|
|
856
856
|
a(s);
|
|
857
857
|
}) : a("http client not init");
|
|
@@ -866,9 +866,11 @@ const Fl = {
|
|
|
866
866
|
url: "/user/info",
|
|
867
867
|
method: "GET"
|
|
868
868
|
}).then((o) => {
|
|
869
|
-
var
|
|
870
|
-
const a = ((
|
|
871
|
-
e("updateState", { key: "name", value: (c = o.data) == null ? void 0 : c.name }), e("updateState", { key: "nickname", value: (
|
|
869
|
+
var u, c, d, f, b, g;
|
|
870
|
+
const a = ((u = o.data) == null ? void 0 : u.role_ids) || [];
|
|
871
|
+
e("updateState", { key: "name", value: (c = o.data) == null ? void 0 : c.name }), e("updateState", { key: "nickname", value: (d = o.data) == null ? void 0 : d.nickname }), e("updateState", { key: "roleIds", value: a }), e("updateState", { key: "env", value: (f = o.data) == null ? void 0 : f.env });
|
|
872
|
+
const s = ((b = o.data) == null ? void 0 : b.website) || {};
|
|
873
|
+
e("settings/updateSettings", s, { root: !0 }), !N.get("username") && N.set("username", (g = o.data) == null ? void 0 : g.name), l(!0);
|
|
872
874
|
}).catch((o) => {
|
|
873
875
|
n(o);
|
|
874
876
|
}) : n("http client not init");
|
|
@@ -913,7 +915,8 @@ const Fl = {
|
|
|
913
915
|
device: "desktop",
|
|
914
916
|
pages: {},
|
|
915
917
|
currentRouteMeta: {},
|
|
916
|
-
builderSchema: {}
|
|
918
|
+
builderSchema: {},
|
|
919
|
+
baseURL: ""
|
|
917
920
|
}, Wl = {
|
|
918
921
|
namespaced: !0,
|
|
919
922
|
state: Kl,
|
|
@@ -935,6 +938,9 @@ const Fl = {
|
|
|
935
938
|
},
|
|
936
939
|
SET_BUILDER_SCHEMA: (e, t) => {
|
|
937
940
|
e.builderSchema = t;
|
|
941
|
+
},
|
|
942
|
+
SET_BASE_API: (e, t) => {
|
|
943
|
+
e.baseURL = t;
|
|
938
944
|
}
|
|
939
945
|
},
|
|
940
946
|
actions: {
|
|
@@ -955,6 +961,9 @@ const Fl = {
|
|
|
955
961
|
},
|
|
956
962
|
setBuilderSchema({ commit: e }, t) {
|
|
957
963
|
e("SET_BUILDER_SCHEMA", t);
|
|
964
|
+
},
|
|
965
|
+
setBaseAPI({ commit: e }, t) {
|
|
966
|
+
e("SET_BASE_API", t);
|
|
958
967
|
}
|
|
959
968
|
}
|
|
960
969
|
}, Zl = {
|
|
@@ -973,7 +982,7 @@ const Fl = {
|
|
|
973
982
|
e("SET_CURRENT_CELLITEM", t);
|
|
974
983
|
}
|
|
975
984
|
}
|
|
976
|
-
},
|
|
985
|
+
}, S = Zt({
|
|
977
986
|
state: void 0,
|
|
978
987
|
getters: {
|
|
979
988
|
http: (e) => e.http,
|
|
@@ -1067,23 +1076,23 @@ function ln(e) {
|
|
|
1067
1076
|
const nn = /* @__PURE__ */ q({
|
|
1068
1077
|
name: "Dashboard",
|
|
1069
1078
|
setup() {
|
|
1070
|
-
const e = ln("
|
|
1079
|
+
const e = ln("dashboard");
|
|
1071
1080
|
if (e)
|
|
1072
1081
|
return () => p(e, null, null);
|
|
1073
|
-
const t = lt(), l =
|
|
1082
|
+
const t = lt(), l = M(() => t.getters.name);
|
|
1074
1083
|
return () => p("div", {
|
|
1075
1084
|
class: "dashboard-container"
|
|
1076
1085
|
}, [p("div", {
|
|
1077
1086
|
class: "dashboard-text"
|
|
1078
|
-
}, [
|
|
1087
|
+
}, [k("Hi "), l.value, k(" 😄")])]);
|
|
1079
1088
|
}
|
|
1080
1089
|
});
|
|
1081
|
-
const
|
|
1090
|
+
const I = (e, t) => {
|
|
1082
1091
|
const l = e.__vccOpts || e;
|
|
1083
1092
|
for (const [n, o] of t)
|
|
1084
1093
|
l[n] = o;
|
|
1085
1094
|
return l;
|
|
1086
|
-
}, on = /* @__PURE__ */
|
|
1095
|
+
}, on = /* @__PURE__ */ I(nn, [["__scopeId", "data-v-e9e66e35"]]);
|
|
1087
1096
|
const an = {
|
|
1088
1097
|
data() {
|
|
1089
1098
|
return {
|
|
@@ -1132,22 +1141,22 @@ const an = {
|
|
|
1132
1141
|
class: "no-redirect"
|
|
1133
1142
|
}, rn = ["onClick"];
|
|
1134
1143
|
function cn(e, t, l, n, o, a) {
|
|
1135
|
-
const s = rl,
|
|
1136
|
-
return i(),
|
|
1144
|
+
const s = rl, u = cl;
|
|
1145
|
+
return i(), m(u, {
|
|
1137
1146
|
class: "app-breadcrumb",
|
|
1138
1147
|
separator: "/"
|
|
1139
1148
|
}, {
|
|
1140
1149
|
default: r(() => [
|
|
1141
1150
|
p(Tt, { name: "breadcrumb" }, {
|
|
1142
1151
|
default: r(() => [
|
|
1143
|
-
(i(!0), h(
|
|
1144
|
-
key:
|
|
1152
|
+
(i(!0), h(E, null, O(o.levelList, (c, d) => (i(), m(s, {
|
|
1153
|
+
key: c.path
|
|
1145
1154
|
}, {
|
|
1146
1155
|
default: r(() => [
|
|
1147
|
-
|
|
1156
|
+
c.path.indexOf("/DIR_") === 0 && c.redirect === void 0 || d === o.levelList.length - 1 ? (i(), h("span", sn, B(c.meta.title), 1)) : (i(), h("a", {
|
|
1148
1157
|
key: 1,
|
|
1149
|
-
onClick: (
|
|
1150
|
-
},
|
|
1158
|
+
onClick: (f) => a.handleLink(c)
|
|
1159
|
+
}, B(c.meta.title), 9, rn))
|
|
1151
1160
|
]),
|
|
1152
1161
|
_: 2
|
|
1153
1162
|
}, 1024))), 128))
|
|
@@ -1158,7 +1167,7 @@ function cn(e, t, l, n, o, a) {
|
|
|
1158
1167
|
_: 1
|
|
1159
1168
|
});
|
|
1160
1169
|
}
|
|
1161
|
-
const pn = /* @__PURE__ */
|
|
1170
|
+
const pn = /* @__PURE__ */ I(an, [["render", cn], ["__scopeId", "data-v-fa74804e"]]), un = {
|
|
1162
1171
|
name: "Hamburger",
|
|
1163
1172
|
props: {
|
|
1164
1173
|
isActive: {
|
|
@@ -1177,7 +1186,7 @@ function dn(e, t, l, n, o, a) {
|
|
|
1177
1186
|
const s = v("v-icon");
|
|
1178
1187
|
return i(), h("div", {
|
|
1179
1188
|
style: { padding: "0 15px" },
|
|
1180
|
-
onClick: t[0] || (t[0] = (...
|
|
1189
|
+
onClick: t[0] || (t[0] = (...u) => a.toggleClick && a.toggleClick(...u))
|
|
1181
1190
|
}, [
|
|
1182
1191
|
p(s, {
|
|
1183
1192
|
class: H({ "is-active": l.isActive }),
|
|
@@ -1185,11 +1194,11 @@ function dn(e, t, l, n, o, a) {
|
|
|
1185
1194
|
}, null, 8, ["class"])
|
|
1186
1195
|
]);
|
|
1187
1196
|
}
|
|
1188
|
-
const mn = /* @__PURE__ */
|
|
1197
|
+
const mn = /* @__PURE__ */ I(un, [["render", dn]]);
|
|
1189
1198
|
const fn = {};
|
|
1190
1199
|
function hn(e, t) {
|
|
1191
1200
|
const l = ae, n = pl, o = ul, a = dl;
|
|
1192
|
-
return i(),
|
|
1201
|
+
return i(), m(a, { style: { width: "100%", height: "100%" } }, {
|
|
1193
1202
|
default: r(() => [
|
|
1194
1203
|
p(l, { class: "aside" }, {
|
|
1195
1204
|
default: r(() => [
|
|
@@ -1220,7 +1229,7 @@ function hn(e, t) {
|
|
|
1220
1229
|
_: 3
|
|
1221
1230
|
});
|
|
1222
1231
|
}
|
|
1223
|
-
const dt = /* @__PURE__ */
|
|
1232
|
+
const dt = /* @__PURE__ */ I(fn, [["render", hn], ["__scopeId", "data-v-7c3d697b"]]), bn = {
|
|
1224
1233
|
type: "input",
|
|
1225
1234
|
name: "文本框",
|
|
1226
1235
|
default: {
|
|
@@ -1917,7 +1926,7 @@ const ye = {
|
|
|
1917
1926
|
Object.keys(Se).forEach((e) => {
|
|
1918
1927
|
De.push({ value: e, label: Se[e].name });
|
|
1919
1928
|
});
|
|
1920
|
-
const
|
|
1929
|
+
const Bn = {
|
|
1921
1930
|
options: {
|
|
1922
1931
|
submitButton: !1,
|
|
1923
1932
|
cancelButton: !1
|
|
@@ -1949,7 +1958,7 @@ const On = {
|
|
|
1949
1958
|
}
|
|
1950
1959
|
}
|
|
1951
1960
|
]
|
|
1952
|
-
},
|
|
1961
|
+
}, On = {
|
|
1953
1962
|
components: { DevLayout: dt, VForm: z, VButton: Pe, JsonView: Re },
|
|
1954
1963
|
props: {
|
|
1955
1964
|
schema: {
|
|
@@ -1961,7 +1970,7 @@ const On = {
|
|
|
1961
1970
|
data() {
|
|
1962
1971
|
return {
|
|
1963
1972
|
sqlOptions: {},
|
|
1964
|
-
sqlSchema:
|
|
1973
|
+
sqlSchema: Bn,
|
|
1965
1974
|
baseSchema: Tn,
|
|
1966
1975
|
activeTab: "base",
|
|
1967
1976
|
builderSchema: Object.assign(
|
|
@@ -2016,8 +2025,8 @@ const On = {
|
|
|
2016
2025
|
const l = t ? t.type : "", n = this.ctrlMap[l], o = n.trans ? n.trans(e) : e;
|
|
2017
2026
|
if (o && Object.keys(o).length > 0) {
|
|
2018
2027
|
if (o.type = l, this.activeIndex.indexOf("[") > -1) {
|
|
2019
|
-
const [a, s,
|
|
2020
|
-
this.builderSchema[s][
|
|
2028
|
+
const [a, s, u] = this.activeIndex.match(/(\w+)\[(\d+)\]/);
|
|
2029
|
+
this.builderSchema[s][u] = { ...o };
|
|
2021
2030
|
} else
|
|
2022
2031
|
this.builderSchema[this.activeIndex] = o;
|
|
2023
2032
|
this.key++;
|
|
@@ -2086,26 +2095,26 @@ const On = {
|
|
|
2086
2095
|
}
|
|
2087
2096
|
};
|
|
2088
2097
|
function An(e, t, l, n, o, a) {
|
|
2089
|
-
const s = v("v-form"),
|
|
2090
|
-
return i(),
|
|
2098
|
+
const s = v("v-form"), u = nt, c = pe, d = v("JsonView"), f = v("VButton"), b = Te, g = Be, x = ot, J = at, U = v("dev-layout");
|
|
2099
|
+
return i(), m(U, null, {
|
|
2091
2100
|
main: r(() => [
|
|
2092
|
-
o.builderSchema.formItems ? (i(),
|
|
2101
|
+
o.builderSchema.formItems ? (i(), m(s, F({
|
|
2093
2102
|
ref: "form",
|
|
2094
2103
|
key: o.key,
|
|
2095
2104
|
dev: !0
|
|
2096
|
-
}, o.builderSchema), null, 16)) :
|
|
2097
|
-
p(
|
|
2098
|
-
p(
|
|
2105
|
+
}, o.builderSchema), null, 16)) : $("", !0),
|
|
2106
|
+
p(u),
|
|
2107
|
+
p(c, {
|
|
2099
2108
|
type: "primary",
|
|
2100
2109
|
onClick: a.saveSchema
|
|
2101
2110
|
}, {
|
|
2102
2111
|
default: r(() => [
|
|
2103
|
-
|
|
2112
|
+
k("保存页面配置")
|
|
2104
2113
|
]),
|
|
2105
2114
|
_: 1
|
|
2106
2115
|
}, 8, ["onClick"]),
|
|
2107
|
-
|
|
2108
|
-
p(
|
|
2116
|
+
k(" "),
|
|
2117
|
+
p(f, {
|
|
2109
2118
|
text: "PageSchema",
|
|
2110
2119
|
type: "modal"
|
|
2111
2120
|
}, {
|
|
@@ -2116,19 +2125,19 @@ function An(e, t, l, n, o, a) {
|
|
|
2116
2125
|
})
|
|
2117
2126
|
]),
|
|
2118
2127
|
"right-aside": r(() => [
|
|
2119
|
-
o.activeIndex ? (i(),
|
|
2128
|
+
o.activeIndex ? (i(), m(J, { key: 0 }, {
|
|
2120
2129
|
default: r(() => [
|
|
2121
|
-
p(
|
|
2130
|
+
p(x, { label: "控件类型" }, {
|
|
2122
2131
|
default: r(() => [
|
|
2123
|
-
p(
|
|
2132
|
+
p(g, {
|
|
2124
2133
|
modelValue: o.currentCtrlType,
|
|
2125
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
2134
|
+
"onUpdate:modelValue": t[0] || (t[0] = (T) => o.currentCtrlType = T)
|
|
2126
2135
|
}, {
|
|
2127
2136
|
default: r(() => [
|
|
2128
|
-
(i(!0), h(
|
|
2137
|
+
(i(!0), h(E, null, O(o.types, (T, Z) => (i(), m(b, {
|
|
2129
2138
|
key: Z,
|
|
2130
|
-
label:
|
|
2131
|
-
value:
|
|
2139
|
+
label: T.label,
|
|
2140
|
+
value: T.value
|
|
2132
2141
|
}, null, 8, ["label", "value"]))), 128))
|
|
2133
2142
|
]),
|
|
2134
2143
|
_: 1
|
|
@@ -2138,17 +2147,17 @@ function An(e, t, l, n, o, a) {
|
|
|
2138
2147
|
})
|
|
2139
2148
|
]),
|
|
2140
2149
|
_: 1
|
|
2141
|
-
})) :
|
|
2142
|
-
(i(),
|
|
2150
|
+
})) : $("", !0),
|
|
2151
|
+
(i(), m(s, F({
|
|
2143
2152
|
key: o.ctrlKey,
|
|
2144
2153
|
modelValue: o.ctrlOptions,
|
|
2145
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
2154
|
+
"onUpdate:modelValue": t[1] || (t[1] = (T) => o.ctrlOptions = T)
|
|
2146
2155
|
}, o.ctrlSchema), null, 16, ["modelValue"]))
|
|
2147
2156
|
]),
|
|
2148
2157
|
_: 1
|
|
2149
2158
|
});
|
|
2150
2159
|
}
|
|
2151
|
-
const Pn = /* @__PURE__ */
|
|
2160
|
+
const Pn = /* @__PURE__ */ I(On, [["render", An], ["__scopeId", "data-v-875f0171"]]), Rn = {
|
|
2152
2161
|
type: "input",
|
|
2153
2162
|
name: "文本框",
|
|
2154
2163
|
default: {
|
|
@@ -2858,7 +2867,7 @@ const Xn = {
|
|
|
2858
2867
|
}
|
|
2859
2868
|
},
|
|
2860
2869
|
data() {
|
|
2861
|
-
const e =
|
|
2870
|
+
const e = Bt(this.$props.schema);
|
|
2862
2871
|
return delete e.listApi, e.list = [{}], {
|
|
2863
2872
|
baseSchema: He,
|
|
2864
2873
|
activeTab: "base",
|
|
@@ -2928,8 +2937,8 @@ const Xn = {
|
|
|
2928
2937
|
const o = n.trans ? n.trans(e) : e;
|
|
2929
2938
|
if (o && Object.keys(o).length > 0) {
|
|
2930
2939
|
if (o.type = l, this.activeIndex.indexOf("[") > -1) {
|
|
2931
|
-
const [a, s,
|
|
2932
|
-
this.builderSchema[s][
|
|
2940
|
+
const [a, s, u] = this.activeIndex.match(/(\w+)\[(\d+)\]/);
|
|
2941
|
+
this.builderSchema[s][u] = { ...o };
|
|
2933
2942
|
} else
|
|
2934
2943
|
this.builderSchema[this.activeIndex] = o;
|
|
2935
2944
|
this.key++;
|
|
@@ -3032,30 +3041,30 @@ const Xn = {
|
|
|
3032
3041
|
}
|
|
3033
3042
|
};
|
|
3034
3043
|
function Yn(e, t, l, n, o, a) {
|
|
3035
|
-
const s = de,
|
|
3036
|
-
return i(),
|
|
3044
|
+
const s = de, u = pe, c = ae, d = v("v-table"), f = nt, b = pe, g = v("JsonView"), x = v("VButton"), J = Te, U = Be, T = ot, Z = at, xt = v("v-form"), Et = v("dev-layout");
|
|
3045
|
+
return i(), m(Et, null, {
|
|
3037
3046
|
"left-aside": r(() => [
|
|
3038
|
-
p(
|
|
3047
|
+
p(c, { style: { width: "200px" } }, {
|
|
3039
3048
|
default: r(() => [
|
|
3040
|
-
p(
|
|
3049
|
+
p(c, null, {
|
|
3041
3050
|
default: r(() => [
|
|
3042
3051
|
p(s, {
|
|
3043
3052
|
class: "title",
|
|
3044
3053
|
"data-id": 22222
|
|
3045
3054
|
}, {
|
|
3046
3055
|
default: r(() => [
|
|
3047
|
-
|
|
3056
|
+
k("添加搜索条件")
|
|
3048
3057
|
]),
|
|
3049
3058
|
_: 1
|
|
3050
3059
|
}),
|
|
3051
3060
|
p(s, { class: "ctrl" }, {
|
|
3052
3061
|
default: r(() => [
|
|
3053
|
-
p(
|
|
3062
|
+
p(u, {
|
|
3054
3063
|
class: "ctrl-btn",
|
|
3055
|
-
onClick: t[0] || (t[0] = (
|
|
3064
|
+
onClick: t[0] || (t[0] = (C) => a.pushFilter("input"))
|
|
3056
3065
|
}, {
|
|
3057
3066
|
default: r(() => [
|
|
3058
|
-
|
|
3067
|
+
k("文本框")
|
|
3059
3068
|
]),
|
|
3060
3069
|
_: 1
|
|
3061
3070
|
})
|
|
@@ -3064,12 +3073,12 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3064
3073
|
}),
|
|
3065
3074
|
p(s, { class: "ctrl" }, {
|
|
3066
3075
|
default: r(() => [
|
|
3067
|
-
p(
|
|
3076
|
+
p(u, {
|
|
3068
3077
|
class: "ctrl-btn",
|
|
3069
|
-
onClick: t[1] || (t[1] = (
|
|
3078
|
+
onClick: t[1] || (t[1] = (C) => a.pushFilter("select"))
|
|
3070
3079
|
}, {
|
|
3071
3080
|
default: r(() => [
|
|
3072
|
-
|
|
3081
|
+
k("下拉框")
|
|
3073
3082
|
]),
|
|
3074
3083
|
_: 1
|
|
3075
3084
|
})
|
|
@@ -3078,12 +3087,12 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3078
3087
|
}),
|
|
3079
3088
|
p(s, { class: "ctrl" }, {
|
|
3080
3089
|
default: r(() => [
|
|
3081
|
-
p(
|
|
3090
|
+
p(u, {
|
|
3082
3091
|
class: "ctrl-btn",
|
|
3083
|
-
onClick: t[2] || (t[2] = (
|
|
3092
|
+
onClick: t[2] || (t[2] = (C) => a.pushFilter("date"))
|
|
3084
3093
|
}, {
|
|
3085
3094
|
default: r(() => [
|
|
3086
|
-
|
|
3095
|
+
k("日期")
|
|
3087
3096
|
]),
|
|
3088
3097
|
_: 1
|
|
3089
3098
|
})
|
|
@@ -3093,25 +3102,25 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3093
3102
|
]),
|
|
3094
3103
|
_: 1
|
|
3095
3104
|
}),
|
|
3096
|
-
p(
|
|
3105
|
+
p(c, null, {
|
|
3097
3106
|
default: r(() => [
|
|
3098
3107
|
p(s, { class: "title" }, {
|
|
3099
3108
|
default: r(() => [
|
|
3100
|
-
|
|
3109
|
+
k("添加列表项")
|
|
3101
3110
|
]),
|
|
3102
3111
|
_: 1
|
|
3103
3112
|
}),
|
|
3104
|
-
(i(!0), h(
|
|
3113
|
+
(i(!0), h(E, null, O(Object.keys(o.ctrlMap.headers), (C, V) => (i(), m(s, {
|
|
3105
3114
|
key: `column-${V}`,
|
|
3106
3115
|
class: "ctrl"
|
|
3107
3116
|
}, {
|
|
3108
3117
|
default: r(() => [
|
|
3109
|
-
p(
|
|
3118
|
+
p(u, {
|
|
3110
3119
|
class: "ctrl-btn",
|
|
3111
|
-
onClick: (fe) => a.pushHeaders(o.ctrlMap.headers[
|
|
3120
|
+
onClick: (fe) => a.pushHeaders(o.ctrlMap.headers[C].type)
|
|
3112
3121
|
}, {
|
|
3113
3122
|
default: r(() => [
|
|
3114
|
-
|
|
3123
|
+
k(B(o.ctrlMap.headers[C].name), 1)
|
|
3115
3124
|
]),
|
|
3116
3125
|
_: 2
|
|
3117
3126
|
}, 1032, ["onClick"])
|
|
@@ -3121,25 +3130,25 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3121
3130
|
]),
|
|
3122
3131
|
_: 1
|
|
3123
3132
|
}),
|
|
3124
|
-
p(
|
|
3133
|
+
p(c, null, {
|
|
3125
3134
|
default: r(() => [
|
|
3126
3135
|
p(s, { class: "title" }, {
|
|
3127
3136
|
default: r(() => [
|
|
3128
|
-
|
|
3137
|
+
k("添加行按钮")
|
|
3129
3138
|
]),
|
|
3130
3139
|
_: 1
|
|
3131
3140
|
}),
|
|
3132
|
-
(i(!0), h(
|
|
3141
|
+
(i(!0), h(E, null, O(Object.keys(o.ctrlMap.buttons), (C, V) => (i(), m(s, {
|
|
3133
3142
|
key: `column-${V}`,
|
|
3134
3143
|
class: "ctrl"
|
|
3135
3144
|
}, {
|
|
3136
3145
|
default: r(() => [
|
|
3137
|
-
p(
|
|
3146
|
+
p(u, {
|
|
3138
3147
|
class: "ctrl-btn",
|
|
3139
|
-
onClick: (fe) => a.pushRowButton(o.ctrlMap.buttons[
|
|
3148
|
+
onClick: (fe) => a.pushRowButton(o.ctrlMap.buttons[C].type)
|
|
3140
3149
|
}, {
|
|
3141
3150
|
default: r(() => [
|
|
3142
|
-
|
|
3151
|
+
k(B(o.ctrlMap.buttons[C].name), 1)
|
|
3143
3152
|
]),
|
|
3144
3153
|
_: 2
|
|
3145
3154
|
}, 1032, ["onClick"])
|
|
@@ -3149,25 +3158,25 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3149
3158
|
]),
|
|
3150
3159
|
_: 1
|
|
3151
3160
|
}),
|
|
3152
|
-
p(
|
|
3161
|
+
p(c, null, {
|
|
3153
3162
|
default: r(() => [
|
|
3154
3163
|
p(s, { class: "title" }, {
|
|
3155
3164
|
default: r(() => [
|
|
3156
|
-
|
|
3165
|
+
k("添加常规按钮")
|
|
3157
3166
|
]),
|
|
3158
3167
|
_: 1
|
|
3159
3168
|
}),
|
|
3160
|
-
(i(!0), h(
|
|
3169
|
+
(i(!0), h(E, null, O(Object.keys(o.ctrlMap.buttons), (C, V) => (i(), m(s, {
|
|
3161
3170
|
key: `column-${V}`,
|
|
3162
3171
|
class: "ctrl"
|
|
3163
3172
|
}, {
|
|
3164
3173
|
default: r(() => [
|
|
3165
|
-
p(
|
|
3174
|
+
p(u, {
|
|
3166
3175
|
class: "ctrl-btn",
|
|
3167
|
-
onClick: (fe) => a.pushNormalButton(o.ctrlMap.buttons[
|
|
3176
|
+
onClick: (fe) => a.pushNormalButton(o.ctrlMap.buttons[C].type)
|
|
3168
3177
|
}, {
|
|
3169
3178
|
default: r(() => [
|
|
3170
|
-
|
|
3179
|
+
k(B(o.ctrlMap.buttons[C].name), 1)
|
|
3171
3180
|
]),
|
|
3172
3181
|
_: 2
|
|
3173
3182
|
}, 1032, ["onClick"])
|
|
@@ -3176,9 +3185,9 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3176
3185
|
}, 1024))), 128)),
|
|
3177
3186
|
p(s, { class: "ctrl" }, {
|
|
3178
3187
|
default: r(() => [
|
|
3179
|
-
p(
|
|
3188
|
+
p(u, { class: "ctrl-btn" }, {
|
|
3180
3189
|
default: r(() => [
|
|
3181
|
-
|
|
3190
|
+
k("按钮组")
|
|
3182
3191
|
]),
|
|
3183
3192
|
_: 1
|
|
3184
3193
|
})
|
|
@@ -3188,25 +3197,25 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3188
3197
|
]),
|
|
3189
3198
|
_: 1
|
|
3190
3199
|
}),
|
|
3191
|
-
p(
|
|
3200
|
+
p(c, null, {
|
|
3192
3201
|
default: r(() => [
|
|
3193
3202
|
p(s, { class: "title" }, {
|
|
3194
3203
|
default: r(() => [
|
|
3195
|
-
|
|
3204
|
+
k("添加批量按钮")
|
|
3196
3205
|
]),
|
|
3197
3206
|
_: 1
|
|
3198
3207
|
}),
|
|
3199
|
-
(i(!0), h(
|
|
3208
|
+
(i(!0), h(E, null, O(Object.keys(o.ctrlMap.buttons), (C, V) => (i(), m(s, {
|
|
3200
3209
|
key: `column-${V}`,
|
|
3201
3210
|
class: "ctrl"
|
|
3202
3211
|
}, {
|
|
3203
3212
|
default: r(() => [
|
|
3204
|
-
p(
|
|
3213
|
+
p(u, {
|
|
3205
3214
|
class: "ctrl-btn",
|
|
3206
|
-
onClick: (fe) => a.pushBatchButton(o.ctrlMap.buttons[
|
|
3215
|
+
onClick: (fe) => a.pushBatchButton(o.ctrlMap.buttons[C].type)
|
|
3207
3216
|
}, {
|
|
3208
3217
|
default: r(() => [
|
|
3209
|
-
|
|
3218
|
+
k(B(o.ctrlMap.buttons[C].name), 1)
|
|
3210
3219
|
]),
|
|
3211
3220
|
_: 2
|
|
3212
3221
|
}, 1032, ["onClick"])
|
|
@@ -3215,9 +3224,9 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3215
3224
|
}, 1024))), 128)),
|
|
3216
3225
|
p(s, { class: "ctrl" }, {
|
|
3217
3226
|
default: r(() => [
|
|
3218
|
-
p(
|
|
3227
|
+
p(u, { class: "ctrl-btn" }, {
|
|
3219
3228
|
default: r(() => [
|
|
3220
|
-
|
|
3229
|
+
k("按钮组")
|
|
3221
3230
|
]),
|
|
3222
3231
|
_: 1
|
|
3223
3232
|
})
|
|
@@ -3232,46 +3241,46 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3232
3241
|
})
|
|
3233
3242
|
]),
|
|
3234
3243
|
main: r(() => [
|
|
3235
|
-
(i(),
|
|
3244
|
+
(i(), m(d, F({
|
|
3236
3245
|
ref: "table",
|
|
3237
3246
|
key: o.key,
|
|
3238
3247
|
dev: !0
|
|
3239
3248
|
}, o.builderSchema), null, 16)),
|
|
3240
|
-
p(
|
|
3241
|
-
p(
|
|
3249
|
+
p(f),
|
|
3250
|
+
p(b, {
|
|
3242
3251
|
type: "primary",
|
|
3243
3252
|
onClick: a.saveSchema
|
|
3244
3253
|
}, {
|
|
3245
3254
|
default: r(() => [
|
|
3246
|
-
|
|
3255
|
+
k("保存页面配置")
|
|
3247
3256
|
]),
|
|
3248
3257
|
_: 1
|
|
3249
3258
|
}, 8, ["onClick"]),
|
|
3250
|
-
|
|
3251
|
-
p(
|
|
3259
|
+
k(" "),
|
|
3260
|
+
p(x, {
|
|
3252
3261
|
text: "PageSchema",
|
|
3253
3262
|
type: "modal"
|
|
3254
3263
|
}, {
|
|
3255
3264
|
default: r(() => [
|
|
3256
|
-
p(
|
|
3265
|
+
p(g, { data: a.getSaveSchema }, null, 8, ["data"])
|
|
3257
3266
|
]),
|
|
3258
3267
|
_: 1
|
|
3259
3268
|
})
|
|
3260
3269
|
]),
|
|
3261
3270
|
"right-aside": r(() => [
|
|
3262
|
-
o.activeIndex ? (i(),
|
|
3271
|
+
o.activeIndex ? (i(), m(Z, { key: 0 }, {
|
|
3263
3272
|
default: r(() => [
|
|
3264
|
-
p(
|
|
3273
|
+
p(T, { label: "控件类型" }, {
|
|
3265
3274
|
default: r(() => [
|
|
3266
3275
|
p(U, {
|
|
3267
3276
|
modelValue: o.currentCtrlType,
|
|
3268
|
-
"onUpdate:modelValue": t[3] || (t[3] = (
|
|
3277
|
+
"onUpdate:modelValue": t[3] || (t[3] = (C) => o.currentCtrlType = C)
|
|
3269
3278
|
}, {
|
|
3270
3279
|
default: r(() => [
|
|
3271
|
-
(i(!0), h(
|
|
3280
|
+
(i(!0), h(E, null, O(a.types, (C, V) => (i(), m(J, {
|
|
3272
3281
|
key: V,
|
|
3273
|
-
label:
|
|
3274
|
-
value:
|
|
3282
|
+
label: C.label,
|
|
3283
|
+
value: C.value
|
|
3275
3284
|
}, null, 8, ["label", "value"]))), 128))
|
|
3276
3285
|
]),
|
|
3277
3286
|
_: 1
|
|
@@ -3281,34 +3290,34 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3281
3290
|
})
|
|
3282
3291
|
]),
|
|
3283
3292
|
_: 1
|
|
3284
|
-
})) :
|
|
3285
|
-
(i(),
|
|
3293
|
+
})) : $("", !0),
|
|
3294
|
+
(i(), m(xt, F({
|
|
3286
3295
|
key: o.ctrlKey,
|
|
3287
3296
|
modelValue: o.ctrlOptions,
|
|
3288
|
-
"onUpdate:modelValue": t[4] || (t[4] = (
|
|
3297
|
+
"onUpdate:modelValue": t[4] || (t[4] = (C) => o.ctrlOptions = C)
|
|
3289
3298
|
}, o.ctrlSchema), null, 16, ["modelValue"]))
|
|
3290
3299
|
]),
|
|
3291
3300
|
_: 1
|
|
3292
3301
|
});
|
|
3293
3302
|
}
|
|
3294
|
-
const eo = /* @__PURE__ */
|
|
3303
|
+
const eo = /* @__PURE__ */ I(Xn, [["render", Yn], ["__scopeId", "data-v-e5209cb7"]]), to = {
|
|
3295
3304
|
name: "PageEditor",
|
|
3296
3305
|
components: { FormBuilder: Pn, TableBuilder: eo },
|
|
3297
3306
|
setup() {
|
|
3298
|
-
const e = L(!1), t = L(1), l = "rtl", n = ue(), o =
|
|
3307
|
+
const e = L(!1), t = L(1), l = "rtl", n = ue(), o = M(() => S.state.app.pages[n.path]);
|
|
3299
3308
|
return { show: e, key: t, direction: l, pageSchema: o };
|
|
3300
3309
|
}
|
|
3301
3310
|
};
|
|
3302
3311
|
function lo(e, t, l, n, o, a) {
|
|
3303
|
-
const s = v("VIcon"),
|
|
3304
|
-
return i(), h(
|
|
3312
|
+
const s = v("VIcon"), u = v("form-builder"), c = v("table-builder"), d = st;
|
|
3313
|
+
return i(), h(E, null, [
|
|
3305
3314
|
p(s, {
|
|
3306
3315
|
name: "ra-set",
|
|
3307
|
-
onClick: t[0] || (t[0] = (
|
|
3316
|
+
onClick: t[0] || (t[0] = (f) => n.show = !n.show)
|
|
3308
3317
|
}),
|
|
3309
3318
|
p(d, {
|
|
3310
3319
|
modelValue: n.show,
|
|
3311
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
3320
|
+
"onUpdate:modelValue": t[1] || (t[1] = (f) => n.show = f),
|
|
3312
3321
|
title: "页面设计",
|
|
3313
3322
|
class: "my-drawer",
|
|
3314
3323
|
direction: n.direction,
|
|
@@ -3317,20 +3326,20 @@ function lo(e, t, l, n, o, a) {
|
|
|
3317
3326
|
"append-to-body": ""
|
|
3318
3327
|
}, {
|
|
3319
3328
|
default: r(() => [
|
|
3320
|
-
n.pageSchema.formItems !== void 0 ? (i(),
|
|
3329
|
+
n.pageSchema.formItems !== void 0 ? (i(), m(u, {
|
|
3321
3330
|
key: 0,
|
|
3322
3331
|
schema: n.pageSchema
|
|
3323
|
-
}, null, 8, ["schema"])) :
|
|
3324
|
-
n.pageSchema.headers !== void 0 ? (i(),
|
|
3332
|
+
}, null, 8, ["schema"])) : $("", !0),
|
|
3333
|
+
n.pageSchema.headers !== void 0 ? (i(), m(c, {
|
|
3325
3334
|
key: 1,
|
|
3326
3335
|
schema: n.pageSchema
|
|
3327
|
-
}, null, 8, ["schema"])) :
|
|
3336
|
+
}, null, 8, ["schema"])) : $("", !0)
|
|
3328
3337
|
]),
|
|
3329
3338
|
_: 1
|
|
3330
3339
|
}, 8, ["modelValue", "direction"])
|
|
3331
3340
|
], 64);
|
|
3332
3341
|
}
|
|
3333
|
-
const no = /* @__PURE__ */
|
|
3342
|
+
const no = /* @__PURE__ */ I(to, [["render", lo]]);
|
|
3334
3343
|
const oo = {
|
|
3335
3344
|
components: {
|
|
3336
3345
|
Breadcrumb: pn,
|
|
@@ -3419,62 +3428,62 @@ const oo = {
|
|
|
3419
3428
|
style: { padding: "0" }
|
|
3420
3429
|
}, co = { class: "user-info" }, po = ["src"], uo = { class: "user-name" };
|
|
3421
3430
|
function mo(e, t, l, n, o, a) {
|
|
3422
|
-
const s = v("hamburger"),
|
|
3423
|
-
return i(),
|
|
3431
|
+
const s = v("hamburger"), u = v("breadcrumb"), c = de, d = v("VIcon"), f = v("PageEditor"), b = v("v-button"), g = ml, x = fl, J = hl, U = st, T = ae;
|
|
3432
|
+
return i(), m(T, {
|
|
3424
3433
|
ref: "header",
|
|
3425
3434
|
class: "navbar",
|
|
3426
|
-
style:
|
|
3435
|
+
style: Ot({ background: a.setting.envColor[a.user.env] })
|
|
3427
3436
|
}, {
|
|
3428
3437
|
default: r(() => [
|
|
3429
|
-
p(
|
|
3438
|
+
p(c, { span: 16 }, {
|
|
3430
3439
|
default: r(() => [
|
|
3431
3440
|
p(s, {
|
|
3432
3441
|
"is-active": e.sidebar.opened,
|
|
3433
3442
|
class: "hamburger-container",
|
|
3434
3443
|
onToggleClick: a.toggleSideBar
|
|
3435
3444
|
}, null, 8, ["is-active", "onToggleClick"]),
|
|
3436
|
-
p(
|
|
3445
|
+
p(u, { class: "breadcrumb-container" })
|
|
3437
3446
|
]),
|
|
3438
3447
|
_: 1
|
|
3439
3448
|
}),
|
|
3440
|
-
p(
|
|
3449
|
+
p(c, { span: 8 }, {
|
|
3441
3450
|
default: r(() => [
|
|
3442
|
-
|
|
3443
|
-
|
|
3451
|
+
_("div", ao, [
|
|
3452
|
+
_("div", so, [
|
|
3444
3453
|
p(d, {
|
|
3445
3454
|
name: "ra-code",
|
|
3446
3455
|
onClick: a.gotoMenuEdit
|
|
3447
3456
|
}, null, 8, ["onClick"])
|
|
3448
3457
|
]),
|
|
3449
3458
|
a.showPageJsonSchemaIcon ? (i(), h("div", io, [
|
|
3450
|
-
p(
|
|
3451
|
-
])) :
|
|
3452
|
-
|
|
3453
|
-
p(
|
|
3459
|
+
p(f)
|
|
3460
|
+
])) : $("", !0),
|
|
3461
|
+
_("div", ro, [
|
|
3462
|
+
p(b, { buttons: e.nav }, null, 8, ["buttons"])
|
|
3454
3463
|
]),
|
|
3455
3464
|
p(J, {
|
|
3456
3465
|
class: "right-item",
|
|
3457
3466
|
trigger: "click"
|
|
3458
3467
|
}, {
|
|
3459
3468
|
dropdown: r(() => [
|
|
3460
|
-
p(
|
|
3469
|
+
p(x, { class: "user-dropdown" }, {
|
|
3461
3470
|
default: r(() => [
|
|
3462
|
-
p(
|
|
3471
|
+
p(g, {
|
|
3463
3472
|
icon: "oms-icon-index",
|
|
3464
3473
|
onClick: t[0] || (t[0] = (Z) => e.$router.push("/"))
|
|
3465
3474
|
}, {
|
|
3466
3475
|
default: r(() => [
|
|
3467
|
-
|
|
3476
|
+
k("首页")
|
|
3468
3477
|
]),
|
|
3469
3478
|
_: 1
|
|
3470
3479
|
}),
|
|
3471
|
-
p(
|
|
3480
|
+
p(g, {
|
|
3472
3481
|
divided: "",
|
|
3473
3482
|
icon: "el-icon-switch-button",
|
|
3474
3483
|
onClick: a.logout
|
|
3475
3484
|
}, {
|
|
3476
3485
|
default: r(() => [
|
|
3477
|
-
|
|
3486
|
+
k("退出登录")
|
|
3478
3487
|
]),
|
|
3479
3488
|
_: 1
|
|
3480
3489
|
}, 8, ["onClick"])
|
|
@@ -3483,14 +3492,14 @@ function mo(e, t, l, n, o, a) {
|
|
|
3483
3492
|
})
|
|
3484
3493
|
]),
|
|
3485
3494
|
default: r(() => [
|
|
3486
|
-
|
|
3487
|
-
|
|
3495
|
+
_("div", co, [
|
|
3496
|
+
_("img", {
|
|
3488
3497
|
src: e.avatar ? e.avatar : o.defaultAvatar,
|
|
3489
3498
|
class: "user-avatar",
|
|
3490
3499
|
alt: "头像"
|
|
3491
3500
|
}, null, 8, po),
|
|
3492
|
-
|
|
3493
|
-
|
|
3501
|
+
k(),
|
|
3502
|
+
_("span", uo, B(e.nickname || e.name), 1)
|
|
3494
3503
|
])
|
|
3495
3504
|
]),
|
|
3496
3505
|
_: 1
|
|
@@ -3499,16 +3508,16 @@ function mo(e, t, l, n, o, a) {
|
|
|
3499
3508
|
]),
|
|
3500
3509
|
_: 1
|
|
3501
3510
|
}),
|
|
3502
|
-
o.showJsonSchema ? (i(),
|
|
3511
|
+
o.showJsonSchema ? (i(), m(U, {
|
|
3503
3512
|
key: 0,
|
|
3504
3513
|
"with-header": !1,
|
|
3505
3514
|
size: "50%"
|
|
3506
|
-
})) :
|
|
3515
|
+
})) : $("", !0)
|
|
3507
3516
|
]),
|
|
3508
3517
|
_: 1
|
|
3509
3518
|
}, 8, ["style"]);
|
|
3510
3519
|
}
|
|
3511
|
-
const fo = /* @__PURE__ */
|
|
3520
|
+
const fo = /* @__PURE__ */ I(oo, [["render", mo], ["__scopeId", "data-v-99b3c688"]]);
|
|
3512
3521
|
const ho = {
|
|
3513
3522
|
name: "SidebarLogo",
|
|
3514
3523
|
props: {
|
|
@@ -3528,7 +3537,7 @@ const ho = {
|
|
|
3528
3537
|
}, bo = (e) => (Ke("data-v-49084925"), e = e(), We(), e), _o = ["src"], yo = {
|
|
3529
3538
|
key: 1,
|
|
3530
3539
|
class: "sidebar-title"
|
|
3531
|
-
}, vo = /* @__PURE__ */ bo(() => /* @__PURE__ */
|
|
3540
|
+
}, vo = /* @__PURE__ */ bo(() => /* @__PURE__ */ _("div", null, "系统", -1)), go = ["src"], ko = { class: "sidebar-title" };
|
|
3532
3541
|
function wo(e, t, l, n, o, a) {
|
|
3533
3542
|
const s = v("router-link");
|
|
3534
3543
|
return i(), h("div", {
|
|
@@ -3536,7 +3545,7 @@ function wo(e, t, l, n, o, a) {
|
|
|
3536
3545
|
}, [
|
|
3537
3546
|
p(At, { name: "sidebarLogoFade" }, {
|
|
3538
3547
|
default: r(() => [
|
|
3539
|
-
l.collapse ? (i(),
|
|
3548
|
+
l.collapse ? (i(), m(s, {
|
|
3540
3549
|
key: "collapse",
|
|
3541
3550
|
class: "sidebar-logo-link",
|
|
3542
3551
|
to: "/"
|
|
@@ -3546,11 +3555,11 @@ function wo(e, t, l, n, o, a) {
|
|
|
3546
3555
|
key: 0,
|
|
3547
3556
|
src: a.logo,
|
|
3548
3557
|
class: "sidebar-logo"
|
|
3549
|
-
}, null, 8, _o)) : (i(), h("h1", yo,
|
|
3558
|
+
}, null, 8, _o)) : (i(), h("h1", yo, B(a.title), 1)),
|
|
3550
3559
|
vo
|
|
3551
3560
|
]),
|
|
3552
3561
|
_: 1
|
|
3553
|
-
})) : (i(),
|
|
3562
|
+
})) : (i(), m(s, {
|
|
3554
3563
|
key: "expand",
|
|
3555
3564
|
class: "sidebar-logo-link",
|
|
3556
3565
|
to: "/"
|
|
@@ -3560,8 +3569,8 @@ function wo(e, t, l, n, o, a) {
|
|
|
3560
3569
|
key: 0,
|
|
3561
3570
|
src: a.logo,
|
|
3562
3571
|
class: "sidebar-logo"
|
|
3563
|
-
}, null, 8, go)) :
|
|
3564
|
-
|
|
3572
|
+
}, null, 8, go)) : $("", !0),
|
|
3573
|
+
_("h1", ko, B(a.title), 1)
|
|
3565
3574
|
]),
|
|
3566
3575
|
_: 1
|
|
3567
3576
|
}))
|
|
@@ -3570,7 +3579,7 @@ function wo(e, t, l, n, o, a) {
|
|
|
3570
3579
|
})
|
|
3571
3580
|
], 2);
|
|
3572
3581
|
}
|
|
3573
|
-
const So = /* @__PURE__ */
|
|
3582
|
+
const So = /* @__PURE__ */ I(ho, [["render", wo], ["__scopeId", "data-v-49084925"]]), xo = {
|
|
3574
3583
|
props: {
|
|
3575
3584
|
to: {
|
|
3576
3585
|
type: String,
|
|
@@ -3604,14 +3613,14 @@ const So = /* @__PURE__ */ $(ho, [["render", wo], ["__scopeId", "data-v-49084925
|
|
|
3604
3613
|
}
|
|
3605
3614
|
};
|
|
3606
3615
|
function Eo(e, t, l, n, o, a) {
|
|
3607
|
-
return i(),
|
|
3616
|
+
return i(), m(Ze(a.compType(l.to)), G(Y(a.linkProps(l.to))), {
|
|
3608
3617
|
default: r(() => [
|
|
3609
3618
|
le(e.$slots, "default")
|
|
3610
3619
|
]),
|
|
3611
3620
|
_: 3
|
|
3612
3621
|
}, 16);
|
|
3613
3622
|
}
|
|
3614
|
-
const $o = /* @__PURE__ */
|
|
3623
|
+
const $o = /* @__PURE__ */ I(xo, [["render", Eo]]), Io = {
|
|
3615
3624
|
computed: {
|
|
3616
3625
|
// @ts-ignore
|
|
3617
3626
|
device() {
|
|
@@ -3646,15 +3655,15 @@ const $o = /* @__PURE__ */ $(xo, [["render", Eo]]), Io = {
|
|
|
3646
3655
|
setup(e) {
|
|
3647
3656
|
return (t, l) => {
|
|
3648
3657
|
const n = v("VIcon");
|
|
3649
|
-
return i(), h(
|
|
3658
|
+
return i(), h(E, null, [
|
|
3650
3659
|
p(n, {
|
|
3651
3660
|
name: e.meta.icon || "ra-all"
|
|
3652
3661
|
}, null, 8, ["name"]),
|
|
3653
|
-
|
|
3662
|
+
_("span", Co, B(e.meta.title), 1)
|
|
3654
3663
|
], 64);
|
|
3655
3664
|
};
|
|
3656
3665
|
}
|
|
3657
|
-
}),
|
|
3666
|
+
}), Bo = {
|
|
3658
3667
|
name: "SidebarItem",
|
|
3659
3668
|
components: {
|
|
3660
3669
|
AppLink: $o,
|
|
@@ -3685,21 +3694,21 @@ const $o = /* @__PURE__ */ $(xo, [["render", Eo]]), Io = {
|
|
|
3685
3694
|
}
|
|
3686
3695
|
}
|
|
3687
3696
|
}
|
|
3688
|
-
},
|
|
3697
|
+
}, Oo = {
|
|
3689
3698
|
key: 0,
|
|
3690
3699
|
class: "menu-wrapper"
|
|
3691
3700
|
};
|
|
3692
3701
|
function Ao(e, t, l, n, o, a) {
|
|
3693
|
-
const s = v("menu-content"),
|
|
3694
|
-
return l.item.hidden !== !1 ? (i(), h("div",
|
|
3695
|
-
l.item.meta && l.item.meta.menuType === 2 ? (i(), h(
|
|
3696
|
-
l.item.meta ? (i(),
|
|
3702
|
+
const s = v("menu-content"), u = bl, c = v("app-link"), d = v("sidebar-item", !0), f = _l;
|
|
3703
|
+
return l.item.hidden !== !1 ? (i(), h("div", Oo, [
|
|
3704
|
+
l.item.meta && l.item.meta.menuType === 2 ? (i(), h(E, { key: 0 }, [
|
|
3705
|
+
l.item.meta ? (i(), m(c, {
|
|
3697
3706
|
key: 0,
|
|
3698
3707
|
to: l.to,
|
|
3699
3708
|
"new-tab": l.item.meta.newTab
|
|
3700
3709
|
}, {
|
|
3701
3710
|
default: r(() => [
|
|
3702
|
-
p(
|
|
3711
|
+
p(u, {
|
|
3703
3712
|
index: l.to,
|
|
3704
3713
|
class: H({ "submenu-title-noDropdown": !l.isNest })
|
|
3705
3714
|
}, {
|
|
@@ -3712,15 +3721,15 @@ function Ao(e, t, l, n, o, a) {
|
|
|
3712
3721
|
}, 8, ["index", "class"])
|
|
3713
3722
|
]),
|
|
3714
3723
|
_: 1
|
|
3715
|
-
}, 8, ["to", "new-tab"])) :
|
|
3716
|
-
], 64)) : l.item.meta && l.item.meta.menuType === 1 ? (i(), f
|
|
3724
|
+
}, 8, ["to", "new-tab"])) : $("", !0)
|
|
3725
|
+
], 64)) : l.item.meta && l.item.meta.menuType === 1 ? (i(), m(f, {
|
|
3717
3726
|
key: 1,
|
|
3718
3727
|
ref: "subMenu",
|
|
3719
3728
|
index: l.to,
|
|
3720
3729
|
class: H({ "submenu-title-noDropdown": !l.isNest })
|
|
3721
3730
|
}, {
|
|
3722
3731
|
title: r(() => [
|
|
3723
|
-
l.item.redirect && l.item.redirect !== "#" ? (i(),
|
|
3732
|
+
l.item.redirect && l.item.redirect !== "#" ? (i(), m(c, {
|
|
3724
3733
|
key: 0,
|
|
3725
3734
|
to: l.to
|
|
3726
3735
|
}, {
|
|
@@ -3730,25 +3739,25 @@ function Ao(e, t, l, n, o, a) {
|
|
|
3730
3739
|
}, null, 8, ["meta"])
|
|
3731
3740
|
]),
|
|
3732
3741
|
_: 1
|
|
3733
|
-
}, 8, ["to"])) : (i(),
|
|
3742
|
+
}, 8, ["to"])) : (i(), m(s, {
|
|
3734
3743
|
key: 1,
|
|
3735
3744
|
meta: l.item.meta
|
|
3736
3745
|
}, null, 8, ["meta"]))
|
|
3737
3746
|
]),
|
|
3738
3747
|
default: r(() => [
|
|
3739
|
-
(i(!0), h(
|
|
3740
|
-
key:
|
|
3748
|
+
(i(!0), h(E, null, O(l.item.children, (b) => (i(), m(d, {
|
|
3749
|
+
key: b.path,
|
|
3741
3750
|
"is-nest": !0,
|
|
3742
|
-
item:
|
|
3743
|
-
to: a.getTo(
|
|
3751
|
+
item: b,
|
|
3752
|
+
to: a.getTo(b),
|
|
3744
3753
|
class: "nest-menu"
|
|
3745
3754
|
}, null, 8, ["item", "to"]))), 128))
|
|
3746
3755
|
]),
|
|
3747
3756
|
_: 1
|
|
3748
|
-
}, 8, ["index", "class"])) :
|
|
3749
|
-
])) :
|
|
3757
|
+
}, 8, ["index", "class"])) : $("", !0)
|
|
3758
|
+
])) : $("", !0);
|
|
3750
3759
|
}
|
|
3751
|
-
const Po = /* @__PURE__ */
|
|
3760
|
+
const Po = /* @__PURE__ */ I(Bo, [["render", Ao]]);
|
|
3752
3761
|
function ft(e) {
|
|
3753
3762
|
return e.filter((t) => {
|
|
3754
3763
|
var l;
|
|
@@ -3788,8 +3797,8 @@ const Ro = {
|
|
|
3788
3797
|
}
|
|
3789
3798
|
};
|
|
3790
3799
|
function Lo(e, t, l, n, o, a) {
|
|
3791
|
-
const s = Te,
|
|
3792
|
-
return i(),
|
|
3800
|
+
const s = Te, u = yl, c = Be;
|
|
3801
|
+
return i(), m(c, {
|
|
3793
3802
|
modelValue: o.selected,
|
|
3794
3803
|
"onUpdate:modelValue": t[0] || (t[0] = (d) => o.selected = d),
|
|
3795
3804
|
filterable: "",
|
|
@@ -3798,28 +3807,28 @@ function Lo(e, t, l, n, o, a) {
|
|
|
3798
3807
|
onChange: a.onselected
|
|
3799
3808
|
}, {
|
|
3800
3809
|
default: r(() => [
|
|
3801
|
-
(i(!0), h(
|
|
3810
|
+
(i(!0), h(E, null, O(a.filterRoutes, (d) => (i(), h(E, {
|
|
3802
3811
|
key: d.path
|
|
3803
3812
|
}, [
|
|
3804
|
-
d.children !== void 0 ? (i(), h(
|
|
3805
|
-
d.meta.menuType !== 0 ? (i(),
|
|
3813
|
+
d.children !== void 0 ? (i(), h(E, { key: 0 }, [
|
|
3814
|
+
d.meta.menuType !== 0 ? (i(), m(u, {
|
|
3806
3815
|
key: d.path + "-",
|
|
3807
3816
|
label: d.meta.title
|
|
3808
3817
|
}, {
|
|
3809
3818
|
default: r(() => [
|
|
3810
|
-
(i(!0), h(
|
|
3811
|
-
key:
|
|
3819
|
+
(i(!0), h(E, null, O(d.children, (f, b) => (i(), h(E, {
|
|
3820
|
+
key: f.path
|
|
3812
3821
|
}, [
|
|
3813
|
-
d.meta.menuType !== 0 ? (i(),
|
|
3822
|
+
d.meta.menuType !== 0 ? (i(), m(s, {
|
|
3814
3823
|
key: 0,
|
|
3815
|
-
label: (
|
|
3816
|
-
value: a.getJumpPath(
|
|
3817
|
-
}, null, 8, ["label", "value"])) :
|
|
3824
|
+
label: (b === d.children.length - 1 ? "└─" : "├─") + f.meta.title,
|
|
3825
|
+
value: a.getJumpPath(f)
|
|
3826
|
+
}, null, 8, ["label", "value"])) : $("", !0)
|
|
3818
3827
|
], 64))), 128))
|
|
3819
3828
|
]),
|
|
3820
3829
|
_: 2
|
|
3821
|
-
}, 1032, ["label"])) :
|
|
3822
|
-
], 64)) : (i(),
|
|
3830
|
+
}, 1032, ["label"])) : $("", !0)
|
|
3831
|
+
], 64)) : (i(), m(s, {
|
|
3823
3832
|
key: 1,
|
|
3824
3833
|
label: "" + d.meta.title,
|
|
3825
3834
|
value: a.getJumpPath(d)
|
|
@@ -3829,8 +3838,8 @@ function Lo(e, t, l, n, o, a) {
|
|
|
3829
3838
|
_: 1
|
|
3830
3839
|
}, 8, ["modelValue", "onChange"]);
|
|
3831
3840
|
}
|
|
3832
|
-
const Mo = /* @__PURE__ */
|
|
3833
|
-
var
|
|
3841
|
+
const Mo = /* @__PURE__ */ I(Ro, [["render", Lo], ["__scopeId", "data-v-7a867c34"]]);
|
|
3842
|
+
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 || {}), R = /* @__PURE__ */ ((e) => (e[e.hidden = 0] = "hidden", e[e.dir = 1] = "dir", e[e.menu = 2] = "menu", e[e.page = 3] = "page", e))(R || {});
|
|
3834
3843
|
const Do = q({
|
|
3835
3844
|
components: { SidebarItem: Po, Logo: So, SearchMenu: Mo },
|
|
3836
3845
|
computed: {
|
|
@@ -3883,17 +3892,17 @@ const Do = q({
|
|
|
3883
3892
|
}
|
|
3884
3893
|
});
|
|
3885
3894
|
function jo(e, t, l, n, o, a) {
|
|
3886
|
-
const s = v("logo"),
|
|
3895
|
+
const s = v("logo"), u = v("search-menu"), c = v("sidebar-item"), d = vl, f = gl;
|
|
3887
3896
|
return i(), h("div", {
|
|
3888
3897
|
class: H({ "has-logo": e.showLogo })
|
|
3889
3898
|
}, [
|
|
3890
|
-
e.showLogo ? (i(),
|
|
3899
|
+
e.showLogo ? (i(), m(s, {
|
|
3891
3900
|
key: 0,
|
|
3892
3901
|
collapse: e.isCollapse
|
|
3893
|
-
}, null, 8, ["collapse"])) :
|
|
3894
|
-
p(
|
|
3902
|
+
}, null, 8, ["collapse"])) : $("", !0),
|
|
3903
|
+
p(f, { "wrap-class": "scrollbar-wrapper" }, {
|
|
3895
3904
|
default: r(() => [
|
|
3896
|
-
e.isCollapse ?
|
|
3905
|
+
e.isCollapse ? $("", !0) : (i(), m(u, { key: 0 })),
|
|
3897
3906
|
p(d, {
|
|
3898
3907
|
"default-active": e.activeMenu,
|
|
3899
3908
|
collapse: e.isCollapse,
|
|
@@ -3905,13 +3914,13 @@ function jo(e, t, l, n, o, a) {
|
|
|
3905
3914
|
mode: "vertical"
|
|
3906
3915
|
}, {
|
|
3907
3916
|
default: r(() => [
|
|
3908
|
-
(i(!0), h(
|
|
3909
|
-
key:
|
|
3917
|
+
(i(!0), h(E, null, O(e.routes, (b, g) => (i(), h(E, {
|
|
3918
|
+
key: g + "-module"
|
|
3910
3919
|
}, [
|
|
3911
|
-
(i(!0), h(
|
|
3912
|
-
key:
|
|
3913
|
-
item:
|
|
3914
|
-
to: e.$router.resolve(
|
|
3920
|
+
(i(!0), h(E, null, O(e.filterRoute(b.routes), (x) => (i(), m(c, {
|
|
3921
|
+
key: x.path,
|
|
3922
|
+
item: x,
|
|
3923
|
+
to: e.$router.resolve(x.redirect ? x.redirect : x).fullPath
|
|
3915
3924
|
}, null, 8, ["item", "to"]))), 128))
|
|
3916
3925
|
], 64))), 128))
|
|
3917
3926
|
]),
|
|
@@ -3922,7 +3931,7 @@ function jo(e, t, l, n, o, a) {
|
|
|
3922
3931
|
})
|
|
3923
3932
|
], 2);
|
|
3924
3933
|
}
|
|
3925
|
-
const No = /* @__PURE__ */
|
|
3934
|
+
const No = /* @__PURE__ */ I(Do, [["render", jo], ["__scopeId", "data-v-d252f828"]]);
|
|
3926
3935
|
const Vo = { class: "app-main" }, qo = {
|
|
3927
3936
|
__name: "AppMain",
|
|
3928
3937
|
setup(e) {
|
|
@@ -3931,57 +3940,57 @@ const Vo = { class: "app-main" }, qo = {
|
|
|
3931
3940
|
var o;
|
|
3932
3941
|
(o = t.meta) != null && o.keepAlive && l.indexOf(t.name) && l.push(t.name), n.value++;
|
|
3933
3942
|
}), (o, a) => {
|
|
3934
|
-
const s = v("router-view"),
|
|
3943
|
+
const s = v("router-view"), u = kl;
|
|
3935
3944
|
return i(), h("section", Vo, [
|
|
3936
|
-
(i(),
|
|
3937
|
-
key: o.$route.fullPath +
|
|
3945
|
+
(i(), m(s, {
|
|
3946
|
+
key: o.$route.fullPath + w(n)
|
|
3938
3947
|
})),
|
|
3939
|
-
p(
|
|
3948
|
+
p(u, { bottom: 50 })
|
|
3940
3949
|
]);
|
|
3941
3950
|
};
|
|
3942
3951
|
}
|
|
3943
|
-
}, Uo = /* @__PURE__ */
|
|
3952
|
+
}, Uo = /* @__PURE__ */ I(qo, [["__scopeId", "data-v-ca0f0d98"]]);
|
|
3944
3953
|
const Ho = { class: "main-container" }, Fo = 992, Go = {
|
|
3945
3954
|
__name: "index",
|
|
3946
3955
|
setup(e) {
|
|
3947
|
-
const t = lt(), { body: l } = document, n =
|
|
3956
|
+
const t = lt(), { body: l } = document, n = M(() => t.state.app.sidebar), o = M(() => t.state.app.device), a = M(() => t.state.settings.fixedHeader), s = M(() => ({
|
|
3948
3957
|
hideSidebar: !n.value.opened,
|
|
3949
3958
|
openSidebar: n.value.opened,
|
|
3950
3959
|
withoutAnimation: n.value.withoutAnimation,
|
|
3951
3960
|
mobile: o.value === "mobile"
|
|
3952
|
-
})),
|
|
3961
|
+
})), u = () => l.getBoundingClientRect().width - 1 < Fo;
|
|
3953
3962
|
Tl(window, "resize", () => d());
|
|
3954
|
-
const
|
|
3963
|
+
const c = () => {
|
|
3955
3964
|
t.dispatch("app/closeSideBar", { withoutAnimation: !1 });
|
|
3956
3965
|
}, d = () => {
|
|
3957
3966
|
if (!document.hidden) {
|
|
3958
|
-
const
|
|
3959
|
-
t.dispatch("app/toggleDevice",
|
|
3967
|
+
const f = u();
|
|
3968
|
+
t.dispatch("app/toggleDevice", f ? "mobile" : "desktop"), f && t.dispatch("app/closeSideBar", { withoutAnimation: !0 });
|
|
3960
3969
|
}
|
|
3961
3970
|
};
|
|
3962
|
-
return (
|
|
3963
|
-
class: H([
|
|
3971
|
+
return (f, b) => (i(), h("div", {
|
|
3972
|
+
class: H([w(s), "app-wrapper"])
|
|
3964
3973
|
}, [
|
|
3965
|
-
|
|
3974
|
+
w(o) === "mobile" && w(n).opened ? (i(), h("div", {
|
|
3966
3975
|
key: 0,
|
|
3967
3976
|
class: "drawer-bg",
|
|
3968
|
-
onClick:
|
|
3969
|
-
})) :
|
|
3970
|
-
p(
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
class: H({ "fixed-header":
|
|
3977
|
+
onClick: c
|
|
3978
|
+
})) : $("", !0),
|
|
3979
|
+
p(w(No), { class: "sidebar-container" }),
|
|
3980
|
+
_("div", Ho, [
|
|
3981
|
+
_("div", {
|
|
3982
|
+
class: H({ "fixed-header": w(a) })
|
|
3974
3983
|
}, [
|
|
3975
|
-
p(
|
|
3984
|
+
p(w(fo))
|
|
3976
3985
|
], 2),
|
|
3977
|
-
p(
|
|
3986
|
+
p(w(Uo))
|
|
3978
3987
|
])
|
|
3979
3988
|
], 2));
|
|
3980
3989
|
}
|
|
3981
|
-
}, ht = /* @__PURE__ */
|
|
3990
|
+
}, ht = /* @__PURE__ */ I(Go, [["__scopeId", "data-v-957442cd"]]);
|
|
3982
3991
|
class Jo {
|
|
3983
3992
|
constructor() {
|
|
3984
|
-
|
|
3993
|
+
D(this, "type", "qrcode");
|
|
3985
3994
|
}
|
|
3986
3995
|
flag() {
|
|
3987
3996
|
}
|
|
@@ -3994,14 +4003,14 @@ class Jo {
|
|
|
3994
4003
|
class zo extends Jo {
|
|
3995
4004
|
constructor(l) {
|
|
3996
4005
|
super();
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
4006
|
+
D(this, "type", "qrcode");
|
|
4007
|
+
D(this, "qrCodeUrl", "https://login.dingtalk.com/login/qrcode.htm?goto={goto}&style={style}");
|
|
4008
|
+
D(this, "reloadUrl", "https://oapi.dingtalk.com/connect/oauth2/sns_authorize?response_type=code&scope=snsapi_login&state=&appid={appid}&redirect_uri={redirect_uri}");
|
|
4009
|
+
D(this, "elId", "");
|
|
4010
|
+
D(this, "appid", "");
|
|
4011
|
+
D(this, "iframe", new HTMLIFrameElement());
|
|
4012
|
+
D(this, "redirectUri", "");
|
|
4013
|
+
D(this, "style", "");
|
|
4005
4014
|
}
|
|
4006
4015
|
flag() {
|
|
4007
4016
|
const l = Gt("code");
|
|
@@ -4022,8 +4031,8 @@ class zo extends Jo {
|
|
|
4022
4031
|
};
|
|
4023
4032
|
return Q(this.qrCodeUrl, a);
|
|
4024
4033
|
}, o = (a) => {
|
|
4025
|
-
const { origin: s, data:
|
|
4026
|
-
s === "https://login.dingtalk.com" && (window.location.href = l({ loginTmpCode:
|
|
4034
|
+
const { origin: s, data: u } = a;
|
|
4035
|
+
s === "https://login.dingtalk.com" && (window.location.href = l({ loginTmpCode: u }));
|
|
4027
4036
|
};
|
|
4028
4037
|
this.iframe.src = n(), Jt({ elId: this.elId, attrs: this.iframe }), typeof window.addEventListener < "u" ? window.addEventListener(
|
|
4029
4038
|
"message",
|
|
@@ -4036,76 +4045,76 @@ const Ko = {
|
|
|
4036
4045
|
dingtalk: (e) => new zo(e)
|
|
4037
4046
|
};
|
|
4038
4047
|
function Wo() {
|
|
4039
|
-
return A(
|
|
4048
|
+
return A(S.state.settings.sso || {}, Ko);
|
|
4040
4049
|
}
|
|
4041
4050
|
function Zo(e) {
|
|
4042
|
-
const t = Wo(), l =
|
|
4051
|
+
const t = Wo(), l = S.state.settings.activeSsoKey || "", n = t[l];
|
|
4043
4052
|
if (n !== void 0)
|
|
4044
4053
|
return n(e);
|
|
4045
4054
|
}
|
|
4046
|
-
const Qo = { id: "login" }, Xo = /* @__PURE__ */
|
|
4055
|
+
const Qo = { id: "login" }, Xo = /* @__PURE__ */ _("h1", { id: "title" }, "登录", -1), Yo = { id: "form" }, ea = { class: "captcha" }, ta = ["src"], la = { class: "tips" }, na = { class: "sso" }, oa = /* @__PURE__ */ _("div", { id: "sso-qrcode" }, null, -1), aa = /* @__PURE__ */ q({
|
|
4047
4056
|
__name: "login",
|
|
4048
4057
|
setup(e) {
|
|
4049
|
-
const t = ol(), l = ue(), n =
|
|
4058
|
+
const t = ol(), l = ue(), n = M(() => S.state.settings.loginTips), o = M(() => (console.log(S.state.app), S.state.app.baseURL)), a = L(0), s = () => a.value++, u = M(() => c.value.username.length > 0 && c.value.password.length >= 4 && c.value.captcha.length === 4), c = L({
|
|
4050
4059
|
username: "",
|
|
4051
4060
|
password: "",
|
|
4052
4061
|
captcha: "",
|
|
4053
4062
|
sing: ""
|
|
4054
|
-
}),
|
|
4063
|
+
}), d = () => {
|
|
4055
4064
|
if (c.value.username === "" || c.value.password === "" || c.value.captcha === "") {
|
|
4056
4065
|
wl.error("用户名, 密码, 验证码是必须的");
|
|
4057
4066
|
return;
|
|
4058
4067
|
}
|
|
4059
|
-
c.value.sing =
|
|
4060
|
-
var
|
|
4061
|
-
t.push({ path: ((
|
|
4068
|
+
c.value.sing = Ol(`${c.value.username}${c.value.password}${c.value.captcha}`).toString(), S.dispatch("user/login", c.value).then((f) => {
|
|
4069
|
+
var b;
|
|
4070
|
+
t.push({ path: ((b = l.query) == null ? void 0 : b.redirect) || "/" });
|
|
4062
4071
|
});
|
|
4063
4072
|
};
|
|
4064
|
-
return L(), (
|
|
4073
|
+
return L(), (f, b) => (i(), h("div", Qo, [
|
|
4065
4074
|
Xo,
|
|
4066
|
-
|
|
4067
|
-
ie(
|
|
4068
|
-
"onUpdate:modelValue":
|
|
4075
|
+
_("form", Yo, [
|
|
4076
|
+
ie(_("input", {
|
|
4077
|
+
"onUpdate:modelValue": b[0] || (b[0] = (g) => w(c).username = g),
|
|
4069
4078
|
type: "text",
|
|
4070
4079
|
placeholder: "用户名",
|
|
4071
4080
|
class: "input"
|
|
4072
4081
|
}, null, 512), [
|
|
4073
|
-
[he,
|
|
4082
|
+
[he, w(c).username]
|
|
4074
4083
|
]),
|
|
4075
|
-
ie(
|
|
4076
|
-
"onUpdate:modelValue":
|
|
4084
|
+
ie(_("input", {
|
|
4085
|
+
"onUpdate:modelValue": b[1] || (b[1] = (g) => w(c).password = g),
|
|
4077
4086
|
type: "password",
|
|
4078
4087
|
placeholder: "密码",
|
|
4079
4088
|
class: "input"
|
|
4080
4089
|
}, null, 512), [
|
|
4081
|
-
[he,
|
|
4090
|
+
[he, w(c).password]
|
|
4082
4091
|
]),
|
|
4083
|
-
|
|
4084
|
-
ie(
|
|
4085
|
-
"onUpdate:modelValue":
|
|
4092
|
+
_("div", ea, [
|
|
4093
|
+
ie(_("input", {
|
|
4094
|
+
"onUpdate:modelValue": b[2] || (b[2] = (g) => w(c).captcha = g),
|
|
4086
4095
|
type: "text",
|
|
4087
4096
|
placeholder: "验证码",
|
|
4088
4097
|
class: "input-captcha"
|
|
4089
4098
|
}, null, 512), [
|
|
4090
|
-
[he,
|
|
4099
|
+
[he, w(c).captcha]
|
|
4091
4100
|
]),
|
|
4092
|
-
|
|
4101
|
+
_("img", {
|
|
4093
4102
|
class: "captcha-img",
|
|
4094
|
-
src: "/
|
|
4103
|
+
src: o.value + "/user/captcha?ts=" + w(a),
|
|
4095
4104
|
title: "点击刷新",
|
|
4096
|
-
onClick:
|
|
4105
|
+
onClick: s
|
|
4097
4106
|
}, null, 8, ta)
|
|
4098
4107
|
]),
|
|
4099
|
-
|
|
4100
|
-
class: H({ input: !0, button: !0, "no-ready": !
|
|
4101
|
-
onClick:
|
|
4108
|
+
_("div", {
|
|
4109
|
+
class: H({ input: !0, button: !0, "no-ready": !u.value }),
|
|
4110
|
+
onClick: d
|
|
4102
4111
|
}, "登录", 2),
|
|
4103
|
-
|
|
4104
|
-
|
|
4112
|
+
_("div", la, [
|
|
4113
|
+
_("div", null, B(n.value), 1)
|
|
4105
4114
|
]),
|
|
4106
|
-
|
|
4115
|
+
_("div", na, [
|
|
4107
4116
|
oa,
|
|
4108
|
-
(i(!0), h(
|
|
4117
|
+
(i(!0), h(E, null, O(Object.keys([]), (g) => (i(), h("div", { key: g }, B(g), 1))), 128))
|
|
4109
4118
|
])
|
|
4110
4119
|
])
|
|
4111
4120
|
]));
|
|
@@ -4113,7 +4122,7 @@ const Qo = { id: "login" }, Xo = /* @__PURE__ */ b("h1", { id: "title" }, "登
|
|
|
4113
4122
|
});
|
|
4114
4123
|
const sa = {
|
|
4115
4124
|
name: "NotFoundPage"
|
|
4116
|
-
}, bt = (e) => (Ke("data-v-26068803"), e = e(), We(), e), ia = { class: "not-found" }, ra = /* @__PURE__ */ bt(() => /* @__PURE__ */
|
|
4125
|
+
}, bt = (e) => (Ke("data-v-26068803"), e = e(), We(), e), ia = { class: "not-found" }, ra = /* @__PURE__ */ bt(() => /* @__PURE__ */ _("svg", {
|
|
4117
4126
|
width: "380px",
|
|
4118
4127
|
height: "500px",
|
|
4119
4128
|
viewBox: "0 0 837 1045",
|
|
@@ -4122,7 +4131,7 @@ const sa = {
|
|
|
4122
4131
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
4123
4132
|
"xmlns:sketch": "http://www.bohemiancoding.com/sketch/ns"
|
|
4124
4133
|
}, [
|
|
4125
|
-
/* @__PURE__ */
|
|
4134
|
+
/* @__PURE__ */ _("g", {
|
|
4126
4135
|
id: "Page-1",
|
|
4127
4136
|
stroke: "none",
|
|
4128
4137
|
"stroke-width": "1",
|
|
@@ -4130,35 +4139,35 @@ const sa = {
|
|
|
4130
4139
|
"fill-rule": "evenodd",
|
|
4131
4140
|
"sketch:type": "MSPage"
|
|
4132
4141
|
}, [
|
|
4133
|
-
/* @__PURE__ */
|
|
4142
|
+
/* @__PURE__ */ _("path", {
|
|
4134
4143
|
id: "Polygon-1",
|
|
4135
4144
|
d: "M353,9 L626.664028,170 L626.664028,487 L353,642 L79.3359724,487 L79.3359724,170 L353,9 Z",
|
|
4136
4145
|
stroke: "#007FB2",
|
|
4137
4146
|
"stroke-width": "6",
|
|
4138
4147
|
"sketch:type": "MSShapeGroup"
|
|
4139
4148
|
}),
|
|
4140
|
-
/* @__PURE__ */
|
|
4149
|
+
/* @__PURE__ */ _("path", {
|
|
4141
4150
|
id: "Polygon-2",
|
|
4142
4151
|
d: "M78.5,529 L147,569.186414 L147,648.311216 L78.5,687 L10,648.311216 L10,569.186414 L78.5,529 Z",
|
|
4143
4152
|
stroke: "#EF4A5B",
|
|
4144
4153
|
"stroke-width": "6",
|
|
4145
4154
|
"sketch:type": "MSShapeGroup"
|
|
4146
4155
|
}),
|
|
4147
|
-
/* @__PURE__ */
|
|
4156
|
+
/* @__PURE__ */ _("path", {
|
|
4148
4157
|
id: "Polygon-3",
|
|
4149
4158
|
d: "M773,186 L827,217.538705 L827,279.636651 L773,310 L719,279.636651 L719,217.538705 L773,186 Z",
|
|
4150
4159
|
stroke: "#795D9C",
|
|
4151
4160
|
"stroke-width": "6",
|
|
4152
4161
|
"sketch:type": "MSShapeGroup"
|
|
4153
4162
|
}),
|
|
4154
|
-
/* @__PURE__ */
|
|
4163
|
+
/* @__PURE__ */ _("path", {
|
|
4155
4164
|
id: "Polygon-4",
|
|
4156
4165
|
d: "M639,529 L773,607.846761 L773,763.091627 L639,839 L505,763.091627 L505,607.846761 L639,529 Z",
|
|
4157
4166
|
stroke: "#F2773F",
|
|
4158
4167
|
"stroke-width": "6",
|
|
4159
4168
|
"sketch:type": "MSShapeGroup"
|
|
4160
4169
|
}),
|
|
4161
|
-
/* @__PURE__ */
|
|
4170
|
+
/* @__PURE__ */ _("path", {
|
|
4162
4171
|
id: "Polygon-5",
|
|
4163
4172
|
d: "M281,801 L383,861.025276 L383,979.21169 L281,1037 L179,979.21169 L179,861.025276 L281,801 Z",
|
|
4164
4173
|
stroke: "#36B455",
|
|
@@ -4166,12 +4175,12 @@ const sa = {
|
|
|
4166
4175
|
"sketch:type": "MSShapeGroup"
|
|
4167
4176
|
})
|
|
4168
4177
|
])
|
|
4169
|
-
], -1)), ca = /* @__PURE__ */ bt(() => /* @__PURE__ */
|
|
4170
|
-
/* @__PURE__ */
|
|
4171
|
-
/* @__PURE__ */
|
|
4172
|
-
/* @__PURE__ */
|
|
4173
|
-
/* @__PURE__ */
|
|
4174
|
-
/* @__PURE__ */
|
|
4178
|
+
], -1)), ca = /* @__PURE__ */ bt(() => /* @__PURE__ */ _("div", { class: "message-box" }, [
|
|
4179
|
+
/* @__PURE__ */ _("h1", null, "404"),
|
|
4180
|
+
/* @__PURE__ */ _("p", null, "Page not found"),
|
|
4181
|
+
/* @__PURE__ */ _("div", { class: "buttons-con" }, [
|
|
4182
|
+
/* @__PURE__ */ _("div", { class: "action-link-wrap" }, [
|
|
4183
|
+
/* @__PURE__ */ _("a", {
|
|
4175
4184
|
href: "",
|
|
4176
4185
|
class: "link-button"
|
|
4177
4186
|
}, "Go to Home Page")
|
|
@@ -4184,7 +4193,7 @@ const sa = {
|
|
|
4184
4193
|
function ua(e, t, l, n, o, a) {
|
|
4185
4194
|
return i(), h("div", ia, pa);
|
|
4186
4195
|
}
|
|
4187
|
-
const da = /* @__PURE__ */
|
|
4196
|
+
const da = /* @__PURE__ */ I(sa, [["render", ua], ["__scopeId", "data-v-26068803"]]), ma = [
|
|
4188
4197
|
{
|
|
4189
4198
|
path: "/",
|
|
4190
4199
|
component: ht,
|
|
@@ -4223,30 +4232,30 @@ function fa(e) {
|
|
|
4223
4232
|
e.beforeEach((t, l, n) => {
|
|
4224
4233
|
ke.start(), t.preHash = location.hash.replace("#", ""), n();
|
|
4225
4234
|
}), e.afterEach((t) => {
|
|
4226
|
-
t.matched.length > 0 &&
|
|
4235
|
+
t.matched.length > 0 && S.commit("user/updateState", {
|
|
4227
4236
|
key: "path",
|
|
4228
4237
|
value: t.matched[t.matched.length - 1].path.replace("(\\d+)", "")
|
|
4229
4238
|
}), ke.done();
|
|
4230
4239
|
});
|
|
4231
4240
|
}
|
|
4232
4241
|
function ha() {
|
|
4233
|
-
return
|
|
4242
|
+
return S.state.user.isLodeRemoteRoutes;
|
|
4234
4243
|
}
|
|
4235
4244
|
function _t() {
|
|
4236
|
-
return
|
|
4245
|
+
return S.state.settings.whiteRoutes || [];
|
|
4237
4246
|
}
|
|
4238
4247
|
function ba() {
|
|
4239
|
-
return
|
|
4248
|
+
return S.state.user.token;
|
|
4240
4249
|
}
|
|
4241
4250
|
function _a(e) {
|
|
4242
4251
|
e.beforeEach(async (t, l, n) => {
|
|
4243
|
-
var
|
|
4252
|
+
var c, d;
|
|
4244
4253
|
if (_t().indexOf(t.path) !== -1) {
|
|
4245
4254
|
n();
|
|
4246
4255
|
return;
|
|
4247
4256
|
}
|
|
4248
4257
|
if (ba()) {
|
|
4249
|
-
(
|
|
4258
|
+
(c = t.query) != null && c.redirect ? n((d = t.query) == null ? void 0 : d.redirect) : n();
|
|
4250
4259
|
return;
|
|
4251
4260
|
}
|
|
4252
4261
|
const a = t.query.redirect || t.path, s = Zo({});
|
|
@@ -4254,21 +4263,21 @@ function _a(e) {
|
|
|
4254
4263
|
n(`/login?redirect=${a}`);
|
|
4255
4264
|
return;
|
|
4256
4265
|
}
|
|
4257
|
-
const
|
|
4258
|
-
if (
|
|
4266
|
+
const u = s.flag();
|
|
4267
|
+
if (u && await S.dispatch("user/login", { ticket: u })) {
|
|
4259
4268
|
n();
|
|
4260
4269
|
return;
|
|
4261
4270
|
}
|
|
4262
4271
|
s.jumpToLoginPage(n, `/login?redirect=${a}`);
|
|
4263
4272
|
});
|
|
4264
4273
|
}
|
|
4265
|
-
const ya = {}, va = { class: "loading preloader" }, ga = /* @__PURE__ */
|
|
4274
|
+
const ya = {}, va = { class: "loading preloader" }, ga = /* @__PURE__ */ _("div", { class: "preloader-inner" }, null, -1), ka = [
|
|
4266
4275
|
ga
|
|
4267
4276
|
];
|
|
4268
4277
|
function wa(e, t) {
|
|
4269
4278
|
return i(), h("div", va, ka);
|
|
4270
4279
|
}
|
|
4271
|
-
const yt = /* @__PURE__ */
|
|
4280
|
+
const yt = /* @__PURE__ */ I(ya, [["render", wa]]), Sa = {
|
|
4272
4281
|
name: "VNotice",
|
|
4273
4282
|
props: {
|
|
4274
4283
|
dataApi: {
|
|
@@ -4298,12 +4307,12 @@ const yt = /* @__PURE__ */ $(ya, [["render", wa]]), Sa = {
|
|
|
4298
4307
|
}
|
|
4299
4308
|
};
|
|
4300
4309
|
function xa(e, t, l, n, o, a) {
|
|
4301
|
-
const s =
|
|
4310
|
+
const s = Oe;
|
|
4302
4311
|
return i(), h("div", null, [
|
|
4303
|
-
o.hasNotice ? (i(),
|
|
4312
|
+
o.hasNotice ? (i(), m(s, G(F({ key: 0 }, o.noticeProps)), null, 16)) : $("", !0)
|
|
4304
4313
|
]);
|
|
4305
4314
|
}
|
|
4306
|
-
const vt = /* @__PURE__ */
|
|
4315
|
+
const vt = /* @__PURE__ */ I(Sa, [["render", xa]]), Ea = q({
|
|
4307
4316
|
components: { VLoading: yt, VNotice: vt },
|
|
4308
4317
|
props: {
|
|
4309
4318
|
schemaHandler: {
|
|
@@ -4341,37 +4350,37 @@ const vt = /* @__PURE__ */ $(Sa, [["render", xa]]), Ea = q({
|
|
|
4341
4350
|
this.$http.get(this.$props.schemaApi || l, n).then(({ data: o }) => {
|
|
4342
4351
|
this.loading = !1, X(o) && (o.notice !== void 0 && (this.haveNotice = !0, $e(o.notice) ? this.notice = {
|
|
4343
4352
|
title: o.notice
|
|
4344
|
-
} : X(o.notice) && (this.notice = o.notice, this.noticeApi = o.notice.noticeApi), delete o.notice), this.owners = o.ownerNames || [], this.serviceOffLine = o.serviceOffLine || !1), this.schema = this.$props.schemaHandler(o, t),
|
|
4353
|
+
} : X(o.notice) && (this.notice = o.notice, this.noticeApi = o.notice.noticeApi), delete o.notice), this.owners = o.ownerNames || [], this.serviceOffLine = o.serviceOffLine || !1), this.schema = this.$props.schemaHandler(o, t), S.commit("app/SET_PAGE_JSON_SCHEMA", { page: this.$route.path, json: this.schema });
|
|
4345
4354
|
});
|
|
4346
4355
|
}
|
|
4347
4356
|
});
|
|
4348
4357
|
const $a = ["innerHTML"];
|
|
4349
4358
|
function Ia(e, t, l, n, o, a) {
|
|
4350
|
-
const s =
|
|
4351
|
-
return i(), h(
|
|
4352
|
-
e.owners.length > 0 ? (i(),
|
|
4359
|
+
const s = Oe, u = vt, c = yt;
|
|
4360
|
+
return i(), h(E, null, [
|
|
4361
|
+
e.owners.length > 0 ? (i(), m(s, {
|
|
4353
4362
|
key: 0,
|
|
4354
4363
|
title: `该页面功能对应开发: [ ${e.owners.join(", ")} ] 有问题可直接企微反馈`,
|
|
4355
4364
|
type: "info",
|
|
4356
4365
|
style: { margin: "0 0 20px 0" },
|
|
4357
4366
|
closable: !1
|
|
4358
|
-
}, null, 8, ["title"])) :
|
|
4367
|
+
}, null, 8, ["title"])) : $("", !0),
|
|
4359
4368
|
e.env === "prod" && e.serviceOffLine ? (i(), h("div", {
|
|
4360
4369
|
key: 1,
|
|
4361
4370
|
class: "offline-notice",
|
|
4362
4371
|
innerHTML: e.serviceOffLine === !0 ? e.setting.serviceOffLineNotice : e.serviceOffLine
|
|
4363
|
-
}, null, 8, $a)) : (i(), h(
|
|
4364
|
-
e.haveNotice ? (i(),
|
|
4372
|
+
}, null, 8, $a)) : (i(), h(E, { key: 2 }, [
|
|
4373
|
+
e.haveNotice ? (i(), m(u, {
|
|
4365
4374
|
key: 0,
|
|
4366
4375
|
notice: e.notice,
|
|
4367
4376
|
style: { margin: "0 0 20px 0" },
|
|
4368
4377
|
"data-api": e.noticeApi
|
|
4369
|
-
}, null, 8, ["notice", "data-api"])) :
|
|
4370
|
-
e.loading ? (i(),
|
|
4378
|
+
}, null, 8, ["notice", "data-api"])) : $("", !0),
|
|
4379
|
+
e.loading ? (i(), m(c, { key: 1 })) : le(e.$slots, "default", G(F({ key: 2 }, e.schema)), void 0, !0)
|
|
4371
4380
|
], 64))
|
|
4372
4381
|
], 64);
|
|
4373
4382
|
}
|
|
4374
|
-
const se = /* @__PURE__ */
|
|
4383
|
+
const se = /* @__PURE__ */ I(Ea, [["render", Ia], ["__scopeId", "data-v-4965a709"]]), gt = {
|
|
4375
4384
|
__name: "table",
|
|
4376
4385
|
setup(e) {
|
|
4377
4386
|
const t = (l, n) => {
|
|
@@ -4387,9 +4396,9 @@ const se = /* @__PURE__ */ $(Ea, [["render", Ia], ["__scopeId", "data-v-4965a709
|
|
|
4387
4396
|
o.indexOf(a) === -1 && delete l[a];
|
|
4388
4397
|
}), l.listApi === void 0 && (l.listApi = `/${n}/list`), l;
|
|
4389
4398
|
};
|
|
4390
|
-
return (l, n) => (i(),
|
|
4399
|
+
return (l, n) => (i(), m(se, { "schema-handler": t }, {
|
|
4391
4400
|
default: r((o) => [
|
|
4392
|
-
p(
|
|
4401
|
+
p(w(oe), G(Y(o)), null, 16)
|
|
4393
4402
|
]),
|
|
4394
4403
|
_: 1
|
|
4395
4404
|
}));
|
|
@@ -4412,9 +4421,9 @@ const se = /* @__PURE__ */ $(Ea, [["render", Ia], ["__scopeId", "data-v-4965a709
|
|
|
4412
4421
|
mod: t.params.id ? "edit" : "create"
|
|
4413
4422
|
}, n), n;
|
|
4414
4423
|
};
|
|
4415
|
-
return (n, o) => (i(),
|
|
4424
|
+
return (n, o) => (i(), m(se, { "schema-handler": l }, {
|
|
4416
4425
|
default: r((a) => [
|
|
4417
|
-
p(
|
|
4426
|
+
p(w(z), G(Y(a)), null, 16)
|
|
4418
4427
|
]),
|
|
4419
4428
|
_: 1
|
|
4420
4429
|
}));
|
|
@@ -4562,13 +4571,13 @@ const se = /* @__PURE__ */ $(Ea, [["render", Ia], ["__scopeId", "data-v-4965a709
|
|
|
4562
4571
|
}
|
|
4563
4572
|
}
|
|
4564
4573
|
});
|
|
4565
|
-
const Ta = { class: "card-header" },
|
|
4574
|
+
const Ta = { class: "card-header" }, Ba = /* @__PURE__ */ _("span", null, "列表", -1), Oa = { class: "tree-action" }, Aa = { key: 0 }, Pa = {
|
|
4566
4575
|
key: 1,
|
|
4567
4576
|
style: { color: "#E6A23C" }
|
|
4568
4577
|
}, Ra = { class: "card-header" };
|
|
4569
4578
|
function La(e, t, l, n, o, a) {
|
|
4570
|
-
const s = pe,
|
|
4571
|
-
return i(),
|
|
4579
|
+
const s = pe, u = Sl, c = Ae, d = de, f = v("v-form"), b = ae;
|
|
4580
|
+
return i(), m(b, {
|
|
4572
4581
|
class: "tree-box",
|
|
4573
4582
|
gutter: 20
|
|
4574
4583
|
}, {
|
|
@@ -4578,23 +4587,23 @@ function La(e, t, l, n, o, a) {
|
|
|
4578
4587
|
class: "tree-tree"
|
|
4579
4588
|
}, {
|
|
4580
4589
|
default: r(() => [
|
|
4581
|
-
p(
|
|
4590
|
+
p(c, { shadow: "never" }, {
|
|
4582
4591
|
header: r(() => [
|
|
4583
|
-
|
|
4584
|
-
|
|
4592
|
+
_("div", Ta, [
|
|
4593
|
+
Ba,
|
|
4585
4594
|
p(s, {
|
|
4586
4595
|
type: "text",
|
|
4587
4596
|
onClick: t[0] || (t[0] = () => e.appendNew())
|
|
4588
4597
|
}, {
|
|
4589
4598
|
default: r(() => [
|
|
4590
|
-
|
|
4599
|
+
k("添加")
|
|
4591
4600
|
]),
|
|
4592
4601
|
_: 1
|
|
4593
4602
|
})
|
|
4594
4603
|
])
|
|
4595
4604
|
]),
|
|
4596
4605
|
default: r(() => [
|
|
4597
|
-
(e.treeData || []).length > 0 ? (i(),
|
|
4606
|
+
(e.treeData || []).length > 0 ? (i(), m(u, F({
|
|
4598
4607
|
key: 0,
|
|
4599
4608
|
style: { height: "100vh" },
|
|
4600
4609
|
data: e.treeData,
|
|
@@ -4605,48 +4614,48 @@ function La(e, t, l, n, o, a) {
|
|
|
4605
4614
|
"allow-drop": e.allowDrop,
|
|
4606
4615
|
onNodeDragEnd: e.handleDragEnd
|
|
4607
4616
|
}), {
|
|
4608
|
-
default: r(({ node:
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
|
|
4617
|
+
default: r(({ node: g, data: x }) => [
|
|
4618
|
+
_("span", Oa, [
|
|
4619
|
+
x[e.localTreeProps.props.label] ? (i(), h("span", Aa, B(x[e.localTreeProps.props.label]), 1)) : (i(), h("span", Pa, "请在右侧表单中修改 --> ")),
|
|
4620
|
+
_("span", null, [
|
|
4621
|
+
x[e.localTreeProps.props.label] ? (i(), m(s, {
|
|
4613
4622
|
key: 0,
|
|
4614
4623
|
class: "button",
|
|
4615
4624
|
type: "text",
|
|
4616
|
-
onClick: () => e.onclick(
|
|
4625
|
+
onClick: () => e.onclick(x)
|
|
4617
4626
|
}, {
|
|
4618
4627
|
default: r(() => [
|
|
4619
|
-
|
|
4628
|
+
k("编辑")
|
|
4620
4629
|
]),
|
|
4621
4630
|
_: 2
|
|
4622
|
-
}, 1032, ["onClick"])) :
|
|
4623
|
-
e.canAppend(
|
|
4631
|
+
}, 1032, ["onClick"])) : $("", !0),
|
|
4632
|
+
e.canAppend(x, g) ? (i(), m(s, {
|
|
4624
4633
|
key: 1,
|
|
4625
4634
|
class: "button",
|
|
4626
4635
|
type: "text",
|
|
4627
|
-
onClick: () => e.append(
|
|
4636
|
+
onClick: () => e.append(x, g)
|
|
4628
4637
|
}, {
|
|
4629
4638
|
default: r(() => [
|
|
4630
|
-
|
|
4639
|
+
k("添加")
|
|
4631
4640
|
]),
|
|
4632
4641
|
_: 2
|
|
4633
|
-
}, 1032, ["onClick"])) :
|
|
4634
|
-
|
|
4642
|
+
}, 1032, ["onClick"])) : $("", !0),
|
|
4643
|
+
x.children === void 0 || x.children.length === 0 ? (i(), m(s, {
|
|
4635
4644
|
key: 2,
|
|
4636
4645
|
class: "button",
|
|
4637
4646
|
type: "text",
|
|
4638
|
-
onClick: () => e.remove(
|
|
4647
|
+
onClick: () => e.remove(x)
|
|
4639
4648
|
}, {
|
|
4640
4649
|
default: r(() => [
|
|
4641
|
-
|
|
4650
|
+
k("删除")
|
|
4642
4651
|
]),
|
|
4643
4652
|
_: 2
|
|
4644
|
-
}, 1032, ["onClick"])) :
|
|
4653
|
+
}, 1032, ["onClick"])) : $("", !0)
|
|
4645
4654
|
])
|
|
4646
4655
|
])
|
|
4647
4656
|
]),
|
|
4648
4657
|
_: 1
|
|
4649
|
-
}, 16, ["data", "allow-drag", "allow-drop", "onNodeDragEnd"])) :
|
|
4658
|
+
}, 16, ["data", "allow-drag", "allow-drop", "onNodeDragEnd"])) : $("", !0)
|
|
4650
4659
|
]),
|
|
4651
4660
|
_: 1
|
|
4652
4661
|
})
|
|
@@ -4658,24 +4667,24 @@ function La(e, t, l, n, o, a) {
|
|
|
4658
4667
|
class: "tree-form"
|
|
4659
4668
|
}, {
|
|
4660
4669
|
default: r(() => [
|
|
4661
|
-
e.type ? (i(),
|
|
4670
|
+
e.type ? (i(), m(c, {
|
|
4662
4671
|
key: 0,
|
|
4663
4672
|
shadow: "never"
|
|
4664
4673
|
}, {
|
|
4665
4674
|
header: r(() => [
|
|
4666
|
-
|
|
4667
|
-
|
|
4675
|
+
_("div", Ra, [
|
|
4676
|
+
_("span", null, B(e.formType), 1)
|
|
4668
4677
|
])
|
|
4669
4678
|
]),
|
|
4670
4679
|
default: r(() => [
|
|
4671
|
-
(i(), f
|
|
4680
|
+
(i(), m(f, F({
|
|
4672
4681
|
key: e.formkey,
|
|
4673
4682
|
modelValue: e.formData,
|
|
4674
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
4683
|
+
"onUpdate:modelValue": t[1] || (t[1] = (g) => e.formData = g)
|
|
4675
4684
|
}, e.formProps, { onSubmit: e.submit }), null, 16, ["modelValue", "onSubmit"]))
|
|
4676
4685
|
]),
|
|
4677
4686
|
_: 1
|
|
4678
|
-
})) :
|
|
4687
|
+
})) : $("", !0)
|
|
4679
4688
|
]),
|
|
4680
4689
|
_: 1
|
|
4681
4690
|
})
|
|
@@ -4683,7 +4692,7 @@ function La(e, t, l, n, o, a) {
|
|
|
4683
4692
|
_: 1
|
|
4684
4693
|
});
|
|
4685
4694
|
}
|
|
4686
|
-
const Fe = /* @__PURE__ */
|
|
4695
|
+
const Fe = /* @__PURE__ */ I(Ca, [["render", La]]), Ma = {
|
|
4687
4696
|
__name: "tree",
|
|
4688
4697
|
setup(e) {
|
|
4689
4698
|
const t = (l, n) => {
|
|
@@ -4692,7 +4701,7 @@ const Fe = /* @__PURE__ */ $(Ca, [["render", La]]), Ma = {
|
|
|
4692
4701
|
o.indexOf(a) === -1 && delete l[a];
|
|
4693
4702
|
}), l;
|
|
4694
4703
|
};
|
|
4695
|
-
return (l, n) => (i(),
|
|
4704
|
+
return (l, n) => (i(), m(se, { "schema-handler": t }, {
|
|
4696
4705
|
default: r((o) => [
|
|
4697
4706
|
p(Fe, G(Y(o)), null, 16)
|
|
4698
4707
|
]),
|
|
@@ -4707,7 +4716,7 @@ const Fe = /* @__PURE__ */ $(Ca, [["render", La]]), Ma = {
|
|
|
4707
4716
|
t.value++;
|
|
4708
4717
|
}), (l, n) => {
|
|
4709
4718
|
const o = v("router-view");
|
|
4710
|
-
return i(),
|
|
4719
|
+
return i(), m(o);
|
|
4711
4720
|
};
|
|
4712
4721
|
}
|
|
4713
4722
|
}, Da = {
|
|
@@ -4745,20 +4754,20 @@ function ja(e, t, l) {
|
|
|
4745
4754
|
let n = A({}, Da);
|
|
4746
4755
|
if (n.title.text = e, $e(t)) {
|
|
4747
4756
|
const o = [], a = Object.keys(l[0]);
|
|
4748
|
-
let s = a[0],
|
|
4757
|
+
let s = a[0], u = a.filter((d, f) => f > 0), c = t;
|
|
4749
4758
|
if (t.indexOf(":") > -1) {
|
|
4750
|
-
const d = t.split(":"),
|
|
4751
|
-
|
|
4759
|
+
const d = t.split(":"), f = d[1].split(",");
|
|
4760
|
+
c = d[0], s = f[0], u = f.filter((b, g) => g > 0);
|
|
4752
4761
|
}
|
|
4753
|
-
|
|
4754
|
-
const
|
|
4755
|
-
l.forEach((
|
|
4756
|
-
|
|
4762
|
+
u.forEach((d) => {
|
|
4763
|
+
const f = [];
|
|
4764
|
+
l.forEach((b) => {
|
|
4765
|
+
f.push(b[d]);
|
|
4757
4766
|
}), n.series.push({
|
|
4758
4767
|
name: d,
|
|
4759
|
-
type:
|
|
4768
|
+
type: c,
|
|
4760
4769
|
smooth: !0,
|
|
4761
|
-
data:
|
|
4770
|
+
data: f
|
|
4762
4771
|
}), n.legend.data.push(d);
|
|
4763
4772
|
}), l.forEach((d) => {
|
|
4764
4773
|
o.push(d[s]);
|
|
@@ -4779,22 +4788,22 @@ const Na = q({
|
|
|
4779
4788
|
}
|
|
4780
4789
|
}), Va = { class: "number-panel-title" }, qa = { class: "number" }, Ua = { class: "name" };
|
|
4781
4790
|
function Ha(e, t, l, n, o, a) {
|
|
4782
|
-
return i(!0), h(
|
|
4783
|
-
|
|
4784
|
-
(i(!0), h(
|
|
4791
|
+
return i(!0), h(E, null, O(e.dataList, (s, u) => (i(), h("span", { key: u }, [
|
|
4792
|
+
_("div", Va, [
|
|
4793
|
+
(i(!0), h(E, null, O(Object.keys(s), (c, d) => (i(), h("div", {
|
|
4785
4794
|
key: d,
|
|
4786
4795
|
class: "title-inner"
|
|
4787
4796
|
}, [
|
|
4788
|
-
|
|
4789
|
-
|
|
4797
|
+
_("p", qa, B(s[c]), 1),
|
|
4798
|
+
_("p", Ua, B(c), 1)
|
|
4790
4799
|
]))), 128))
|
|
4791
4800
|
])
|
|
4792
4801
|
]))), 128);
|
|
4793
4802
|
}
|
|
4794
|
-
const Fa = /* @__PURE__ */
|
|
4803
|
+
const Fa = /* @__PURE__ */ I(Na, [["render", Ha], ["__scopeId", "data-v-cc0d8293"]]), Ga = {
|
|
4795
4804
|
components: {
|
|
4796
4805
|
Chart: El,
|
|
4797
|
-
Md:
|
|
4806
|
+
Md: Bl,
|
|
4798
4807
|
Json: Re,
|
|
4799
4808
|
Table: oe,
|
|
4800
4809
|
Number: Fa,
|
|
@@ -4828,7 +4837,7 @@ const Fa = /* @__PURE__ */ $(Na, [["render", Ha], ["__scopeId", "data-v-cc0d8293
|
|
|
4828
4837
|
if (!Ye(n.data))
|
|
4829
4838
|
return { showPagination: !1 };
|
|
4830
4839
|
const a = [];
|
|
4831
|
-
return n.data[0] && Object.keys(n.data[0]).forEach((s,
|
|
4840
|
+
return n.data[0] && Object.keys(n.data[0]).forEach((s, u) => {
|
|
4832
4841
|
a.push({ field: s, label: s });
|
|
4833
4842
|
}), {
|
|
4834
4843
|
headers: a,
|
|
@@ -4843,20 +4852,20 @@ const Fa = /* @__PURE__ */ $(Na, [["render", Ha], ["__scopeId", "data-v-cc0d8293
|
|
|
4843
4852
|
}
|
|
4844
4853
|
};
|
|
4845
4854
|
function Ja(e, t, l, n, o, a) {
|
|
4846
|
-
const s = Ae,
|
|
4847
|
-
return ie((i(),
|
|
4855
|
+
const s = Ae, u = Pt("resize");
|
|
4856
|
+
return ie((i(), m(s, {
|
|
4848
4857
|
shadow: "never",
|
|
4849
4858
|
class: "part"
|
|
4850
4859
|
}, {
|
|
4851
4860
|
default: r(() => [
|
|
4852
|
-
(i(),
|
|
4861
|
+
(i(), m(Ze(n.comptype()), G(Y(n.compprops(l.option))), null, 16))
|
|
4853
4862
|
]),
|
|
4854
4863
|
_: 1
|
|
4855
4864
|
})), [
|
|
4856
|
-
[
|
|
4865
|
+
[u, !0]
|
|
4857
4866
|
]);
|
|
4858
4867
|
}
|
|
4859
|
-
const za = /* @__PURE__ */
|
|
4868
|
+
const za = /* @__PURE__ */ I(Ga, [["render", Ja], ["__scopeId", "data-v-a5a65cc1"]]), Ka = /* @__PURE__ */ q({
|
|
4860
4869
|
__name: "index",
|
|
4861
4870
|
props: {
|
|
4862
4871
|
filter: {
|
|
@@ -4874,9 +4883,9 @@ const za = /* @__PURE__ */ $(Ga, [["render", Ja], ["__scopeId", "data-v-a5a65cc1
|
|
|
4874
4883
|
});
|
|
4875
4884
|
const n = L({});
|
|
4876
4885
|
ze(() => {
|
|
4877
|
-
var
|
|
4878
|
-
(
|
|
4879
|
-
|
|
4886
|
+
var f;
|
|
4887
|
+
(f = t.filter) == null || f.forEach((b) => {
|
|
4888
|
+
b.default !== null && (n.value[b.field] = b.default);
|
|
4880
4889
|
});
|
|
4881
4890
|
});
|
|
4882
4891
|
const o = {
|
|
@@ -4889,36 +4898,36 @@ const za = /* @__PURE__ */ $(Ga, [["render", Ja], ["__scopeId", "data-v-a5a65cc1
|
|
|
4889
4898
|
cancelButton: {
|
|
4890
4899
|
text: "重置"
|
|
4891
4900
|
}
|
|
4892
|
-
}, a = L(1), s = L(t.filter),
|
|
4893
|
-
let
|
|
4894
|
-
if (!
|
|
4895
|
-
const
|
|
4896
|
-
|
|
4901
|
+
}, a = L(1), s = L(t.filter), u = L(t.dataPart), c = M(() => {
|
|
4902
|
+
let f = l.params.id;
|
|
4903
|
+
if (!f) {
|
|
4904
|
+
const b = l.path.split("/");
|
|
4905
|
+
f = b[b.length - 1];
|
|
4897
4906
|
}
|
|
4898
|
-
return "/focusbi_report/view/" +
|
|
4899
|
-
}), d = (
|
|
4900
|
-
ms.get(
|
|
4901
|
-
s.value =
|
|
4907
|
+
return "/focusbi_report/view/" + f;
|
|
4908
|
+
}), d = (f) => {
|
|
4909
|
+
ms.get(c.value, { params: f }).then(({ data: b }) => {
|
|
4910
|
+
s.value = b.filter, u.value = b.dataPart, a.value++;
|
|
4902
4911
|
});
|
|
4903
4912
|
};
|
|
4904
|
-
return (
|
|
4905
|
-
const
|
|
4906
|
-
return i(),
|
|
4913
|
+
return (f, b) => {
|
|
4914
|
+
const g = Ae, x = de, J = Oe, U = ae;
|
|
4915
|
+
return i(), m(U, null, {
|
|
4907
4916
|
default: r(() => [
|
|
4908
|
-
|
|
4917
|
+
w(s).length > 0 ? (i(), m(x, {
|
|
4909
4918
|
key: 0,
|
|
4910
4919
|
span: 24
|
|
4911
4920
|
}, {
|
|
4912
4921
|
default: r(() => [
|
|
4913
|
-
p(
|
|
4922
|
+
p(g, {
|
|
4914
4923
|
shadow: "never",
|
|
4915
4924
|
class: "part-filter"
|
|
4916
4925
|
}, {
|
|
4917
4926
|
default: r(() => [
|
|
4918
|
-
p(
|
|
4919
|
-
modelValue:
|
|
4920
|
-
"onUpdate:modelValue":
|
|
4921
|
-
"form-items":
|
|
4927
|
+
p(w(z), {
|
|
4928
|
+
modelValue: w(n),
|
|
4929
|
+
"onUpdate:modelValue": b[0] || (b[0] = (T) => Lt(n) ? n.value = T : null),
|
|
4930
|
+
"form-items": w(s),
|
|
4922
4931
|
options: o,
|
|
4923
4932
|
onSubmit: d
|
|
4924
4933
|
}, null, 8, ["modelValue", "form-items"])
|
|
@@ -4927,28 +4936,28 @@ const za = /* @__PURE__ */ $(Ga, [["render", Ja], ["__scopeId", "data-v-a5a65cc1
|
|
|
4927
4936
|
})
|
|
4928
4937
|
]),
|
|
4929
4938
|
_: 1
|
|
4930
|
-
})) :
|
|
4931
|
-
p(
|
|
4939
|
+
})) : $("", !0),
|
|
4940
|
+
p(x, { span: 24 }, {
|
|
4932
4941
|
default: r(() => [
|
|
4933
4942
|
p(U, { gutter: 20 }, {
|
|
4934
4943
|
default: r(() => [
|
|
4935
|
-
(i(!0), h(
|
|
4944
|
+
(i(!0), h(E, null, O(w(u), (T, Z) => (i(), m(x, {
|
|
4936
4945
|
key: Z,
|
|
4937
|
-
span:
|
|
4946
|
+
span: T.col || 24
|
|
4938
4947
|
}, {
|
|
4939
4948
|
default: r(() => [
|
|
4940
|
-
|
|
4949
|
+
T.errMsg ? (i(), m(J, {
|
|
4941
4950
|
key: 1,
|
|
4942
|
-
title:
|
|
4951
|
+
title: T.id + " 片段执行出错",
|
|
4943
4952
|
type: "error"
|
|
4944
4953
|
}, {
|
|
4945
4954
|
default: r(() => [
|
|
4946
|
-
|
|
4955
|
+
k(B(T.errMsg), 1)
|
|
4947
4956
|
]),
|
|
4948
4957
|
_: 2
|
|
4949
|
-
}, 1032, ["title"])) : (i(),
|
|
4950
|
-
key:
|
|
4951
|
-
option:
|
|
4958
|
+
}, 1032, ["title"])) : (i(), m(za, {
|
|
4959
|
+
key: w(a),
|
|
4960
|
+
option: T
|
|
4952
4961
|
}, null, 8, ["option"]))
|
|
4953
4962
|
]),
|
|
4954
4963
|
_: 2
|
|
@@ -4968,7 +4977,7 @@ const za = /* @__PURE__ */ $(Ga, [["render", Ja], ["__scopeId", "data-v-a5a65cc1
|
|
|
4968
4977
|
const Wa = {
|
|
4969
4978
|
__name: "report",
|
|
4970
4979
|
setup(e) {
|
|
4971
|
-
const t = useRoute(), l =
|
|
4980
|
+
const t = useRoute(), l = M(() => {
|
|
4972
4981
|
let n = t.params.id;
|
|
4973
4982
|
if (!n) {
|
|
4974
4983
|
const o = t.path.split("/");
|
|
@@ -4976,7 +4985,7 @@ const Wa = {
|
|
|
4976
4985
|
}
|
|
4977
4986
|
return "/focusbi_report/view/" + n;
|
|
4978
4987
|
});
|
|
4979
|
-
return (n, o) => (i(),
|
|
4988
|
+
return (n, o) => (i(), m(se, { "schema-api": w(l) }, {
|
|
4980
4989
|
default: r((a) => [
|
|
4981
4990
|
p(Ka, G(Y(a)), null, 16)
|
|
4982
4991
|
]),
|
|
@@ -5036,14 +5045,14 @@ function je(e) {
|
|
|
5036
5045
|
children: []
|
|
5037
5046
|
};
|
|
5038
5047
|
return e.forEach((l) => {
|
|
5039
|
-
var s,
|
|
5048
|
+
var s, u;
|
|
5040
5049
|
let n = Object.assign({}, l);
|
|
5041
5050
|
if (X((s = n.props) == null ? void 0 : s.style)) {
|
|
5042
|
-
let
|
|
5043
|
-
Object.keys((
|
|
5044
|
-
var
|
|
5045
|
-
|
|
5046
|
-
}), n.props.style =
|
|
5051
|
+
let c = "";
|
|
5052
|
+
Object.keys((u = n.props) == null ? void 0 : u.style).forEach((d) => {
|
|
5053
|
+
var f;
|
|
5054
|
+
c += d + ":" + ((f = n.props) == null ? void 0 : f.style[d]) + ";";
|
|
5055
|
+
}), n.props.style = c;
|
|
5047
5056
|
}
|
|
5048
5057
|
const o = {
|
|
5049
5058
|
span: n.span ?? 24,
|
|
@@ -5081,9 +5090,9 @@ const wt = (e) => {
|
|
|
5081
5090
|
__name: "custom",
|
|
5082
5091
|
setup(e) {
|
|
5083
5092
|
const t = L([]), l = (n, o) => (t.value = jt(n), n);
|
|
5084
|
-
return (n, o) => (i(),
|
|
5093
|
+
return (n, o) => (i(), m(se, { "schema-handler": l }, {
|
|
5085
5094
|
default: r(() => [
|
|
5086
|
-
p(
|
|
5095
|
+
p(w(es), { schema: w(t) }, null, 8, ["schema"])
|
|
5087
5096
|
]),
|
|
5088
5097
|
_: 1
|
|
5089
5098
|
}));
|
|
@@ -5101,25 +5110,25 @@ const ls = (e) => {
|
|
|
5101
5110
|
if (e.path === "#")
|
|
5102
5111
|
return ge;
|
|
5103
5112
|
switch (e.page_type) {
|
|
5104
|
-
case
|
|
5113
|
+
case j.list:
|
|
5105
5114
|
return gt;
|
|
5106
|
-
case
|
|
5115
|
+
case j.form:
|
|
5107
5116
|
return xe;
|
|
5108
|
-
case
|
|
5109
|
-
case
|
|
5117
|
+
case j.custom:
|
|
5118
|
+
case j.localComp:
|
|
5110
5119
|
return t(e.view || "");
|
|
5111
|
-
case
|
|
5120
|
+
case j.tree:
|
|
5112
5121
|
return Ma;
|
|
5113
|
-
case
|
|
5122
|
+
case j.report:
|
|
5114
5123
|
return Wa;
|
|
5115
|
-
case
|
|
5124
|
+
case j.customSchema:
|
|
5116
5125
|
return ts;
|
|
5117
5126
|
}
|
|
5118
5127
|
return ge;
|
|
5119
5128
|
};
|
|
5120
5129
|
function ns(e) {
|
|
5121
5130
|
let t = e.path;
|
|
5122
|
-
return e.type === R.menu && e.page_type ===
|
|
5131
|
+
return e.type === R.menu && e.page_type === j.entity && (t = "#"), t.indexOf(":id") > -1 && t.indexOf(":id") + 3 === t.length && (t = t.replace(":id", ":id(\\d+)")), t === "#" ? "/" + e.id + "_DIR_" + e.name : t[0] !== "/" ? "/" + t : t;
|
|
5123
5132
|
}
|
|
5124
5133
|
function os(e) {
|
|
5125
5134
|
return (e.path + e.name).split("/").filter((t) => t).join("_");
|
|
@@ -5141,7 +5150,7 @@ const St = (e) => {
|
|
|
5141
5150
|
},
|
|
5142
5151
|
children: e.children ? e.children.map((n) => St(n)) : []
|
|
5143
5152
|
};
|
|
5144
|
-
if (e.page_type ===
|
|
5153
|
+
if (e.page_type === j.entity) {
|
|
5145
5154
|
const n = e.path + "/list", o = e.path + "/form", a = e.path + "/:id", s = [{
|
|
5146
5155
|
path: n,
|
|
5147
5156
|
name: e.name + "列表" + e.id,
|
|
@@ -5223,30 +5232,30 @@ function ss(e) {
|
|
|
5223
5232
|
n();
|
|
5224
5233
|
return;
|
|
5225
5234
|
}
|
|
5226
|
-
await
|
|
5227
|
-
const o = await
|
|
5235
|
+
await S.dispatch("user/info");
|
|
5236
|
+
const o = await S.dispatch("user/loadRemoteRoutes"), a = as(o);
|
|
5228
5237
|
a.forEach((s) => {
|
|
5229
|
-
s.routes.forEach((
|
|
5238
|
+
s.routes.forEach((u) => {
|
|
5230
5239
|
e.addRoute({
|
|
5231
5240
|
path: "/",
|
|
5232
5241
|
component: ht,
|
|
5233
|
-
children: [
|
|
5242
|
+
children: [u]
|
|
5234
5243
|
});
|
|
5235
5244
|
});
|
|
5236
|
-
}), e.addRoute({ name: "404", path: "/:pathMatch(.*)*", redirect: "/404", hidden: !0 }),
|
|
5245
|
+
}), e.addRoute({ name: "404", path: "/:pathMatch(.*)*", redirect: "/404", hidden: !0 }), S.commit("user/updateRemoteRouter", a), await e.replace(t), n();
|
|
5237
5246
|
});
|
|
5238
5247
|
}
|
|
5239
5248
|
function is(e) {
|
|
5240
5249
|
e.beforeEach(async (t, l, n) => {
|
|
5241
|
-
var
|
|
5242
|
-
const a = [
|
|
5243
|
-
for (let
|
|
5244
|
-
const d = t.matched[
|
|
5245
|
-
(
|
|
5250
|
+
var u;
|
|
5251
|
+
const a = [S.state.settings.title || ""], s = t.matched.length;
|
|
5252
|
+
for (let c = s; c > s - 3; c--) {
|
|
5253
|
+
const d = t.matched[c - 1];
|
|
5254
|
+
(u = d == null ? void 0 : d.meta) != null && u.title && a.push(d.meta.title + "");
|
|
5246
5255
|
}
|
|
5247
5256
|
a.length > 1 && (document.title = a.reverse().join("-")), n();
|
|
5248
5257
|
}), e.afterEach(async (t, l, n) => {
|
|
5249
|
-
Object.keys(t.meta).length > 0 && await
|
|
5258
|
+
Object.keys(t.meta).length > 0 && await S.dispatch("app/setCurrentMeta", t.meta);
|
|
5250
5259
|
});
|
|
5251
5260
|
}
|
|
5252
5261
|
function rs(e) {
|
|
@@ -5254,7 +5263,7 @@ function rs(e) {
|
|
|
5254
5263
|
}
|
|
5255
5264
|
rs(K);
|
|
5256
5265
|
function cs() {
|
|
5257
|
-
return
|
|
5266
|
+
return S.state.user.token;
|
|
5258
5267
|
}
|
|
5259
5268
|
function Ge(e) {
|
|
5260
5269
|
Xl({
|
|
@@ -5273,27 +5282,27 @@ const ps = {
|
|
|
5273
5282
|
}
|
|
5274
5283
|
}, us = {
|
|
5275
5284
|
onFulfilled(e) {
|
|
5276
|
-
var n, o, a, s,
|
|
5285
|
+
var n, o, a, s, u, c, d;
|
|
5277
5286
|
if (!(((n = e.config) == null ? void 0 : n.notHoldApiErr) !== void 0 && ((o = e.config) == null ? void 0 : o.notHoldApiErr) === !0) && e.data.code !== 0) {
|
|
5278
|
-
const
|
|
5287
|
+
const f = e.data.message || `接口请求错误 ${e.config.method}::${(a = e.config.url) == null ? void 0 : a.split("?")[0]}`;
|
|
5279
5288
|
if (e.data.code === 401) {
|
|
5280
5289
|
Ue.alert("登录信息已过期或未登录, 是否跳转登录", "操作提醒", {
|
|
5281
5290
|
showClose: !1,
|
|
5282
5291
|
confirmButtonText: "重新登录",
|
|
5283
5292
|
showCancelButton: !0,
|
|
5284
5293
|
cancelButtonText: "取消",
|
|
5285
|
-
callback: (
|
|
5286
|
-
|
|
5294
|
+
callback: (b) => {
|
|
5295
|
+
b === "confirm" && (pt(), location.href = location.origin + location.pathname + location.hash.replace("#", "#/?redirect="), location.reload());
|
|
5287
5296
|
}
|
|
5288
5297
|
});
|
|
5289
5298
|
return;
|
|
5290
5299
|
} else
|
|
5291
|
-
Ge(
|
|
5292
|
-
return Promise.reject(
|
|
5300
|
+
Ge(f);
|
|
5301
|
+
return Promise.reject(f);
|
|
5293
5302
|
}
|
|
5294
|
-
let l = (
|
|
5303
|
+
let l = (u = (s = e.data) == null ? void 0 : s.data) == null ? void 0 : u._message_box;
|
|
5295
5304
|
return l !== void 0 && ($e(l) && (l = {
|
|
5296
|
-
message: (d = (
|
|
5305
|
+
message: (d = (c = e.data) == null ? void 0 : c.data) == null ? void 0 : d._message_box
|
|
5297
5306
|
}), Ue({
|
|
5298
5307
|
title: "提示",
|
|
5299
5308
|
type: "success",
|
|
@@ -5356,7 +5365,7 @@ const _s = {
|
|
|
5356
5365
|
return;
|
|
5357
5366
|
let l = e;
|
|
5358
5367
|
if (t.value.parent)
|
|
5359
|
-
for (let
|
|
5368
|
+
for (let c = 0; c < t.value.parent; c++)
|
|
5360
5369
|
l.parentElement && (l = l.parentElement);
|
|
5361
5370
|
l.classList.add("devtool-hover");
|
|
5362
5371
|
const n = document.createElement("i");
|
|
@@ -5366,14 +5375,14 @@ const _s = {
|
|
|
5366
5375
|
const o = document.createElement("span");
|
|
5367
5376
|
o.className = "dev-action-edit", o.title = "编辑";
|
|
5368
5377
|
const a = document.createElement("i");
|
|
5369
|
-
a.className = "iconfont ra-editor1", o.appendChild(a), o.onclick = (
|
|
5370
|
-
W.emit("dev-action", { event:
|
|
5378
|
+
a.className = "iconfont ra-editor1", o.appendChild(a), o.onclick = (c) => {
|
|
5379
|
+
W.emit("dev-action", { event: c, data: { type: "edit", devId: t.value.devId } });
|
|
5371
5380
|
}, n.appendChild(o);
|
|
5372
5381
|
const s = document.createElement("span");
|
|
5373
5382
|
s.className = "dev-action-del", s.title = "删除";
|
|
5374
|
-
const
|
|
5375
|
-
|
|
5376
|
-
W.emit("dev-action", { event:
|
|
5383
|
+
const u = document.createElement("i");
|
|
5384
|
+
u.className = "iconfont ra-cut", s.appendChild(u), s.onclick = (c) => {
|
|
5385
|
+
W.emit("dev-action", { event: c, data: { type: "del", devId: t.value.devId } });
|
|
5377
5386
|
}, n.appendChild(s), l.insertBefore(n, l.firstChild);
|
|
5378
5387
|
}
|
|
5379
5388
|
}, ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -5391,7 +5400,7 @@ function $i(e) {
|
|
|
5391
5400
|
const t = A(me, e), l = Nt(Al), n = Es(t), o = t.plugins || [];
|
|
5392
5401
|
o.unshift(n), o.forEach((a) => {
|
|
5393
5402
|
xs(l, a);
|
|
5394
|
-
}), t != null && t.mock && Ul(), ce = Ne(t.axios),
|
|
5403
|
+
}), t != null && t.mock && Ul(), ce = Ne(t.axios), S.dispatch("setHttp", ce).then(), S.dispatch("settings/updateSettings", e == null ? void 0 : e.settings).then(), S.dispatch("app/setBaseAPI", t == null ? void 0 : t.axios.baseURL).then(), l.config.globalProperties.$http = ce, l.config.globalProperties.$router = K, window.App = l, window.OmsOptions = t, $l(() => ({
|
|
5395
5404
|
"X-Token": Me()
|
|
5396
5405
|
})), K.isReady().then(() => l.mount("#app"));
|
|
5397
5406
|
}
|
|
@@ -5403,7 +5412,7 @@ function vs(e, t = {}) {
|
|
|
5403
5412
|
function gs(e = []) {
|
|
5404
5413
|
e.forEach((t) => {
|
|
5405
5414
|
K.addRoute(t);
|
|
5406
|
-
}),
|
|
5415
|
+
}), S.commit("user/setCustomRoutes", e);
|
|
5407
5416
|
}
|
|
5408
5417
|
function ks(e, t) {
|
|
5409
5418
|
t.forEach((l) => {
|
|
@@ -5422,7 +5431,7 @@ function Ss(e = {}) {
|
|
|
5422
5431
|
console.warn(`storeModule name [${l}] is use by base, please change it!`);
|
|
5423
5432
|
return;
|
|
5424
5433
|
}
|
|
5425
|
-
|
|
5434
|
+
S.registerModule(l, e[l]);
|
|
5426
5435
|
});
|
|
5427
5436
|
}
|
|
5428
5437
|
function xs(e, t) {
|
|
@@ -5434,7 +5443,7 @@ function Es(e) {
|
|
|
5434
5443
|
components: { VIcon: Il },
|
|
5435
5444
|
directives: ys,
|
|
5436
5445
|
use: [
|
|
5437
|
-
|
|
5446
|
+
S,
|
|
5438
5447
|
K,
|
|
5439
5448
|
[Qt, { locale: tt, ...(t = e.settings) == null ? void 0 : t.ElementPlus }]
|
|
5440
5449
|
]
|
|
@@ -5448,7 +5457,7 @@ export {
|
|
|
5448
5457
|
R as MenuType,
|
|
5449
5458
|
Xl as Message,
|
|
5450
5459
|
Ue as MessageBox,
|
|
5451
|
-
|
|
5460
|
+
j as PageType,
|
|
5452
5461
|
Wo as allSso,
|
|
5453
5462
|
$i as createAdmin,
|
|
5454
5463
|
W as eventBus,
|