@okiss/oms 0.0.52 → 0.0.54
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 +540 -522
- package/dist/index.es.js.map +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,19 +1,19 @@
|
|
|
1
1
|
var At = Object.defineProperty;
|
|
2
2
|
var Pt = (e, t, l) => t in e ? At(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l;
|
|
3
3
|
var R = (e, t, l) => (Pt(e, typeof t != "symbol" ? t + "" : t, l), l);
|
|
4
|
-
import { defineComponent as q, onBeforeMount as ze, provide as Rt, resolveComponent as
|
|
5
|
-
import { addNewStyle as Jt, addNewStyleTag as zt, queryParams as Kt, logGroup as Wt, compactObject as
|
|
4
|
+
import { defineComponent as q, onBeforeMount as ze, provide as Rt, resolveComponent as w, openBlock as i, createBlock as f, createVNode as p, computed as M, createTextVNode as S, withCtx as c, TransitionGroup as Lt, createElementBlock as h, Fragment as I, renderList as O, toDisplayString as B, normalizeClass as H, renderSlot as le, mergeProps as F, createCommentVNode as E, toRefs as Mt, ref as D, normalizeStyle as Dt, createElementVNode as b, Transition as jt, pushScopeId as Ke, popScopeId as We, resolveDynamicComponent as Xe, normalizeProps as G, guardReactiveProps as Y, unref as x, withDirectives as ie, vModelText as be, onMounted as Ze, onUnmounted as Nt, resolveDirective as Vt, isRef as qt, getCurrentInstance as Ut, h as Ht, toRaw as Ft, createApp as Gt } from "vue";
|
|
5
|
+
import { addNewStyle as Jt, addNewStyleTag as zt, queryParams as Kt, logGroup as Wt, compactObject as Qe, showEleByClassName as Ye, waterMarker as Xt, Cache as re, isExternal as Ve, getQueryParam as et, createIFrame as Zt, strVarReplace as Z, obj2Param as Qt, isObject as Q, isString as Ie, effectDataTrans as Yt, isArray as tt } from "@okiss/utils";
|
|
6
6
|
import _e from "mockjs";
|
|
7
|
-
import el, { cloneDeep as
|
|
7
|
+
import el, { cloneDeep as v, merge as A, get as ne, unset as lt, isObject as tl } from "lodash";
|
|
8
8
|
import nt from "element-plus/lib/locale/lang/zh-cn";
|
|
9
|
-
import
|
|
9
|
+
import $e from "axios";
|
|
10
10
|
import N from "js-cookie";
|
|
11
11
|
import { createStore as ll, useStore as ot, mapGetters as Ce } from "vuex";
|
|
12
12
|
import nl, { ElMessage as ol, ElMessageBox as at, ElCard as al, ElRow as sl, ElCol as il } 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 dl, ElBreadcrumb as ml, ElRow as ae, ElMain as fl, ElAside as hl, ElContainer as bl, ElDivider as it, ElButton as
|
|
15
|
+
import { useRoute as de, onBeforeRouteLeave as rl, useRouter as st, createRouter as cl, createWebHashHistory as ul, onBeforeRouteUpdate as pl } from "vue-router";
|
|
16
|
+
import { ElBreadcrumbItem as dl, ElBreadcrumb as ml, ElRow as ae, ElMain as fl, ElAside as hl, ElContainer as bl, ElDivider as it, ElButton as pe, ElOption as Te, ElSelect as Be, ElFormItem as rt, ElForm as ct, ElCol as me, ElDrawer as ut, ElDropdownItem as _l, ElDropdownMenu as yl, ElDropdown as vl, ElMenuItem as gl, ElSubMenu as kl, ElOptionGroup as wl, ElMenu as Sl, ElScrollbar as xl, ElBacktop as El, ElMessage as Il, ElAlert as Oe, ElTree as $l, 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";
|
|
@@ -72,13 +72,13 @@ const Ml = /* @__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 && Rt("vsPath", (n = (o = window == null ? void 0 : window.OmsOptions) == null ? void 0 : o.form) == null ? void 0 : n.vsPath), (a, s) => {
|
|
75
|
-
const r =
|
|
75
|
+
const r = w("router-view");
|
|
76
76
|
return i(), f(r);
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
79
|
});
|
|
80
80
|
var ee = /* @__PURE__ */ ((e) => (e.GET = "get", e.POST = "post", e.DELETE = "delete", e.FETCH = "fetch", e.OPTION = "option", e.PUT = "put", e))(ee || {});
|
|
81
|
-
const
|
|
81
|
+
const Dl = {
|
|
82
82
|
saveApi: "/save",
|
|
83
83
|
afterSubmit: "",
|
|
84
84
|
afterReset: "goback",
|
|
@@ -467,7 +467,7 @@ const jl = {
|
|
|
467
467
|
type: "success"
|
|
468
468
|
}
|
|
469
469
|
}
|
|
470
|
-
],
|
|
470
|
+
], jl = {
|
|
471
471
|
exportAble: !0,
|
|
472
472
|
filter: [
|
|
473
473
|
{
|
|
@@ -673,7 +673,7 @@ const jl = {
|
|
|
673
673
|
label: "span"
|
|
674
674
|
}
|
|
675
675
|
]
|
|
676
|
-
}, Ul = { form:
|
|
676
|
+
}, Ul = { form: Dl, table: jl, listMock: Nl, layoutForm: Vl, layoutSection: ql }, Hl = [
|
|
677
677
|
{
|
|
678
678
|
method: ee.POST,
|
|
679
679
|
url: "/login",
|
|
@@ -750,8 +750,9 @@ const jl = {
|
|
|
750
750
|
pre: "green"
|
|
751
751
|
},
|
|
752
752
|
serviceOffLineNotice: "当前页面功能正在维护, 请稍后再试~~~",
|
|
753
|
-
formMutex: !0
|
|
754
|
-
|
|
753
|
+
formMutex: !0,
|
|
754
|
+
captcha: !0
|
|
755
|
+
}, fe = {
|
|
755
756
|
axios: Gl,
|
|
756
757
|
settings: pt,
|
|
757
758
|
plugins: [],
|
|
@@ -766,15 +767,15 @@ function dt(e) {
|
|
|
766
767
|
dt(Fl);
|
|
767
768
|
function mt(e) {
|
|
768
769
|
var o;
|
|
769
|
-
let t = e.url, l = e.baseURL || ((o =
|
|
770
|
+
let t = e.url, l = e.baseURL || ((o = fe.axios) == null ? void 0 : o.baseURL);
|
|
770
771
|
return l || (l = ""), typeof t == "string" ? (t = ("/" + l + t).split("/").filter((n) => n).join("/"), t += "(|\\?.*)$", new RegExp(t)) : t;
|
|
771
772
|
}
|
|
772
773
|
function Jl() {
|
|
773
774
|
Object.keys(we).forEach((e) => {
|
|
774
775
|
const t = we[e], l = mt(t);
|
|
775
776
|
_e.mock(l, t.method, function(o) {
|
|
776
|
-
const { url: n, type: a, body: s } = o, r = Kt(n),
|
|
777
|
-
return Wt(n, { type: a, query: r, data:
|
|
777
|
+
const { url: n, type: a, body: s } = o, r = Kt(n), d = s ? JSON.parse(s) : {}, u = t.response({ query: r, data: d }), m = _e.mock(u);
|
|
778
|
+
return Wt(n, { type: a, query: r, data: d, response: m }), _e.mock(m);
|
|
778
779
|
});
|
|
779
780
|
});
|
|
780
781
|
}
|
|
@@ -783,7 +784,7 @@ function Me() {
|
|
|
783
784
|
return N.get(Le) || "";
|
|
784
785
|
}
|
|
785
786
|
function zl(e) {
|
|
786
|
-
const t = new Date((/* @__PURE__ */ new Date()).getTime() + (
|
|
787
|
+
const t = new Date((/* @__PURE__ */ new Date()).getTime() + (g.state.settings.tokenExpire || 864e5));
|
|
787
788
|
return N.set(Le, e, { expires: t });
|
|
788
789
|
}
|
|
789
790
|
function ft() {
|
|
@@ -801,7 +802,8 @@ const Kl = {
|
|
|
801
802
|
resource: {},
|
|
802
803
|
roleIds: [],
|
|
803
804
|
path: "",
|
|
804
|
-
env: ""
|
|
805
|
+
env: "",
|
|
806
|
+
expired: !1
|
|
805
807
|
}, Wl = {
|
|
806
808
|
namespaced: !0,
|
|
807
809
|
state: Kl,
|
|
@@ -834,8 +836,12 @@ const Kl = {
|
|
|
834
836
|
resource: {},
|
|
835
837
|
roleIds: [],
|
|
836
838
|
path: "",
|
|
837
|
-
env: ""
|
|
839
|
+
env: "",
|
|
840
|
+
expired: !1
|
|
838
841
|
});
|
|
842
|
+
},
|
|
843
|
+
SET_EXPIRED: (e) => {
|
|
844
|
+
e.expired = !e.expired;
|
|
839
845
|
}
|
|
840
846
|
},
|
|
841
847
|
actions: {
|
|
@@ -866,11 +872,11 @@ const Kl = {
|
|
|
866
872
|
url: "/user/info",
|
|
867
873
|
method: "GET"
|
|
868
874
|
}).then((n) => {
|
|
869
|
-
var r,
|
|
875
|
+
var r, d, u, m, _, k;
|
|
870
876
|
const a = ((r = n.data) == null ? void 0 : r.role_ids) || [];
|
|
871
|
-
e("updateState", { key: "name", value: (
|
|
872
|
-
const s = ((
|
|
873
|
-
e("settings/updateSettings", s, { root: !0 }), !N.get("username") && N.set("username", (
|
|
877
|
+
e("updateState", { key: "name", value: (d = n.data) == null ? void 0 : d.name }), e("updateState", { key: "nickname", value: (u = n.data) == null ? void 0 : u.nickname }), e("updateState", { key: "roleIds", value: a }), e("updateState", { key: "env", value: (m = n.data) == null ? void 0 : m.env });
|
|
878
|
+
const s = ((_ = n.data) == null ? void 0 : _.website) || {};
|
|
879
|
+
e("settings/updateSettings", s, { root: !0 }), !N.get("username") && N.set("username", (k = n.data) == null ? void 0 : k.name), l(!0);
|
|
874
880
|
}).catch((n) => {
|
|
875
881
|
o(n);
|
|
876
882
|
}) : o("http client not init");
|
|
@@ -892,11 +898,14 @@ const Kl = {
|
|
|
892
898
|
o(a);
|
|
893
899
|
});
|
|
894
900
|
});
|
|
901
|
+
},
|
|
902
|
+
SetExpired({ commit: e }) {
|
|
903
|
+
e("SET_EXPIRED");
|
|
895
904
|
}
|
|
896
905
|
}
|
|
897
|
-
},
|
|
906
|
+
}, Xl = v(pt), Zl = {
|
|
898
907
|
namespaced: !0,
|
|
899
|
-
state:
|
|
908
|
+
state: Xl,
|
|
900
909
|
mutations: {
|
|
901
910
|
updateSettings(e, t) {
|
|
902
911
|
e = A(e, t);
|
|
@@ -907,7 +916,7 @@ const Kl = {
|
|
|
907
916
|
e("updateSettings", l);
|
|
908
917
|
}
|
|
909
918
|
}
|
|
910
|
-
},
|
|
919
|
+
}, Ql = {
|
|
911
920
|
sidebar: {
|
|
912
921
|
opened: N.get("sidebarStatus") ? !!N.get("sidebarStatus") : !0,
|
|
913
922
|
withoutAnimation: !1
|
|
@@ -919,7 +928,7 @@ const Kl = {
|
|
|
919
928
|
baseURL: ""
|
|
920
929
|
}, Yl = {
|
|
921
930
|
namespaced: !0,
|
|
922
|
-
state:
|
|
931
|
+
state: Ql,
|
|
923
932
|
mutations: {
|
|
924
933
|
TOGGLE_SIDEBAR: (e) => {
|
|
925
934
|
e.sidebar.opened = !e.sidebar.opened, e.sidebar.withoutAnimation = !1, e.sidebar.opened ? N.set("sidebarStatus", "1") : N.set("sidebarStatus", "0");
|
|
@@ -982,7 +991,7 @@ const Kl = {
|
|
|
982
991
|
e("SET_CURRENT_CELLITEM", t);
|
|
983
992
|
}
|
|
984
993
|
}
|
|
985
|
-
},
|
|
994
|
+
}, g = ll({
|
|
986
995
|
state: void 0,
|
|
987
996
|
getters: {
|
|
988
997
|
http: (e) => e.http,
|
|
@@ -1010,11 +1019,11 @@ const Kl = {
|
|
|
1010
1019
|
},
|
|
1011
1020
|
modules: {
|
|
1012
1021
|
user: Wl,
|
|
1013
|
-
settings:
|
|
1022
|
+
settings: Zl,
|
|
1014
1023
|
app: Yl,
|
|
1015
1024
|
builderSchema: tn
|
|
1016
1025
|
}
|
|
1017
|
-
}), ln = ol, Ue = at, nn =
|
|
1026
|
+
}), ln = ol, Ue = at, nn = $e.CancelToken, ce = {
|
|
1018
1027
|
taskList: {},
|
|
1019
1028
|
cacheList: /* @__PURE__ */ new Map(),
|
|
1020
1029
|
uniqueId(e) {
|
|
@@ -1052,8 +1061,8 @@ const Kl = {
|
|
|
1052
1061
|
}
|
|
1053
1062
|
}, on = {
|
|
1054
1063
|
onFulfilled: function(e) {
|
|
1055
|
-
return e.cacheEnable === !1 || (
|
|
1056
|
-
|
|
1064
|
+
return e.cacheEnable === !1 || (ce.pending(e) && ce.delTask(e), e.cancelToken = new nn((t) => {
|
|
1065
|
+
ce.addTask(e, t);
|
|
1057
1066
|
})), e;
|
|
1058
1067
|
},
|
|
1059
1068
|
onRejected(e) {
|
|
@@ -1061,13 +1070,13 @@ const Kl = {
|
|
|
1061
1070
|
}
|
|
1062
1071
|
}, an = {
|
|
1063
1072
|
onFulfilled: function(e) {
|
|
1064
|
-
return e.config.cacheEnable === !1 || e.config.method === "get" && Object.keys(e.data).length > 0 &&
|
|
1073
|
+
return e.config.cacheEnable === !1 || e.config.method === "get" && Object.keys(e.data).length > 0 && ce.addCache(e.config, e.data), e;
|
|
1065
1074
|
},
|
|
1066
1075
|
onRejected(e) {
|
|
1067
1076
|
return Promise.reject(e);
|
|
1068
1077
|
}
|
|
1069
1078
|
}, ht = {};
|
|
1070
|
-
function
|
|
1079
|
+
function Ei(e, t) {
|
|
1071
1080
|
ht[e] = t;
|
|
1072
1081
|
}
|
|
1073
1082
|
function sn(e) {
|
|
@@ -1079,20 +1088,20 @@ const rn = /* @__PURE__ */ q({
|
|
|
1079
1088
|
const e = ot(), t = sn("dashboard");
|
|
1080
1089
|
if (t)
|
|
1081
1090
|
return () => p("span", null, [p(t, null, null)]);
|
|
1082
|
-
const l =
|
|
1091
|
+
const l = M(() => e.getters.name);
|
|
1083
1092
|
return () => p("div", {
|
|
1084
1093
|
class: "dashboard-container"
|
|
1085
1094
|
}, [p("div", {
|
|
1086
1095
|
class: "dashboard-text"
|
|
1087
|
-
}, [
|
|
1096
|
+
}, [S("Hi "), l.value, S(" 😄")])]);
|
|
1088
1097
|
}
|
|
1089
1098
|
});
|
|
1090
|
-
const
|
|
1099
|
+
const $ = (e, t) => {
|
|
1091
1100
|
const l = e.__vccOpts || e;
|
|
1092
1101
|
for (const [o, n] of t)
|
|
1093
1102
|
l[o] = n;
|
|
1094
1103
|
return l;
|
|
1095
|
-
}, cn = /* @__PURE__ */
|
|
1104
|
+
}, cn = /* @__PURE__ */ $(rn, [["__scopeId", "data-v-3122b6c7"]]);
|
|
1096
1105
|
const un = {
|
|
1097
1106
|
data() {
|
|
1098
1107
|
return {
|
|
@@ -1149,14 +1158,14 @@ function mn(e, t, l, o, n, a) {
|
|
|
1149
1158
|
default: c(() => [
|
|
1150
1159
|
p(Lt, { name: "breadcrumb" }, {
|
|
1151
1160
|
default: c(() => [
|
|
1152
|
-
(i(!0), h(
|
|
1153
|
-
key:
|
|
1161
|
+
(i(!0), h(I, null, O(n.levelList, (d, u) => (i(), f(s, {
|
|
1162
|
+
key: d.path
|
|
1154
1163
|
}, {
|
|
1155
1164
|
default: c(() => [
|
|
1156
|
-
|
|
1165
|
+
d.path.indexOf("/DIR_") === 0 && d.redirect === void 0 || u === n.levelList.length - 1 ? (i(), h("span", pn, B(d.meta.title), 1)) : (i(), h("a", {
|
|
1157
1166
|
key: 1,
|
|
1158
|
-
onClick: (m) => a.handleLink(
|
|
1159
|
-
}, B(
|
|
1167
|
+
onClick: (m) => a.handleLink(d)
|
|
1168
|
+
}, B(d.meta.title), 9, dn))
|
|
1160
1169
|
]),
|
|
1161
1170
|
_: 2
|
|
1162
1171
|
}, 1024))), 128))
|
|
@@ -1167,7 +1176,7 @@ function mn(e, t, l, o, n, a) {
|
|
|
1167
1176
|
_: 1
|
|
1168
1177
|
});
|
|
1169
1178
|
}
|
|
1170
|
-
const fn = /* @__PURE__ */
|
|
1179
|
+
const fn = /* @__PURE__ */ $(un, [["render", mn], ["__scopeId", "data-v-fa74804e"]]), hn = {
|
|
1171
1180
|
name: "Hamburger",
|
|
1172
1181
|
props: {
|
|
1173
1182
|
isActive: {
|
|
@@ -1183,7 +1192,7 @@ const fn = /* @__PURE__ */ I(un, [["render", mn], ["__scopeId", "data-v-fa74804e
|
|
|
1183
1192
|
}
|
|
1184
1193
|
};
|
|
1185
1194
|
function bn(e, t, l, o, n, a) {
|
|
1186
|
-
const s =
|
|
1195
|
+
const s = w("v-icon");
|
|
1187
1196
|
return i(), h("div", {
|
|
1188
1197
|
style: { padding: "0 15px" },
|
|
1189
1198
|
onClick: t[0] || (t[0] = (...r) => a.toggleClick && a.toggleClick(...r))
|
|
@@ -1194,7 +1203,7 @@ function bn(e, t, l, o, n, a) {
|
|
|
1194
1203
|
}, null, 8, ["class"])
|
|
1195
1204
|
]);
|
|
1196
1205
|
}
|
|
1197
|
-
const _n = /* @__PURE__ */
|
|
1206
|
+
const _n = /* @__PURE__ */ $(hn, [["render", bn]]);
|
|
1198
1207
|
const yn = {};
|
|
1199
1208
|
function vn(e, t) {
|
|
1200
1209
|
const l = ae, o = fl, n = hl, a = bl;
|
|
@@ -1229,7 +1238,7 @@ function vn(e, t) {
|
|
|
1229
1238
|
_: 3
|
|
1230
1239
|
});
|
|
1231
1240
|
}
|
|
1232
|
-
const bt = /* @__PURE__ */
|
|
1241
|
+
const bt = /* @__PURE__ */ $(yn, [["render", vn], ["__scopeId", "data-v-7c3d697b"]]), gn = {
|
|
1233
1242
|
type: "input",
|
|
1234
1243
|
name: "文本框",
|
|
1235
1244
|
default: {
|
|
@@ -1483,7 +1492,7 @@ const bt = /* @__PURE__ */ I(yn, [["render", vn], ["__scopeId", "data-v-7c3d697b
|
|
|
1483
1492
|
}
|
|
1484
1493
|
],
|
|
1485
1494
|
trans(e) {
|
|
1486
|
-
const t =
|
|
1495
|
+
const t = v(e);
|
|
1487
1496
|
return e.optionType === 0 ? t.props && t.props.selectApi !== void 0 && delete t.props.selectApi : e.optionType === 1 && t.options && delete t.options, delete t.optionType, t;
|
|
1488
1497
|
}
|
|
1489
1498
|
}, xn = {
|
|
@@ -1588,7 +1597,7 @@ const bt = /* @__PURE__ */ I(yn, [["render", vn], ["__scopeId", "data-v-7c3d697b
|
|
|
1588
1597
|
}
|
|
1589
1598
|
}
|
|
1590
1599
|
]
|
|
1591
|
-
},
|
|
1600
|
+
}, In = {
|
|
1592
1601
|
type: "code",
|
|
1593
1602
|
name: "Code",
|
|
1594
1603
|
default: {
|
|
@@ -1608,7 +1617,7 @@ const bt = /* @__PURE__ */ I(yn, [["render", vn], ["__scopeId", "data-v-7c3d697b
|
|
|
1608
1617
|
label: "字段key"
|
|
1609
1618
|
}
|
|
1610
1619
|
]
|
|
1611
|
-
},
|
|
1620
|
+
}, $n = {
|
|
1612
1621
|
type: "json",
|
|
1613
1622
|
name: "json",
|
|
1614
1623
|
default: {
|
|
@@ -1814,8 +1823,8 @@ P(En);
|
|
|
1814
1823
|
P(On);
|
|
1815
1824
|
P(xn);
|
|
1816
1825
|
P(An);
|
|
1817
|
-
P($n);
|
|
1818
1826
|
P(In);
|
|
1827
|
+
P($n);
|
|
1819
1828
|
P(Cn);
|
|
1820
1829
|
P(Bn);
|
|
1821
1830
|
P(Tn);
|
|
@@ -1922,9 +1931,9 @@ const ye = {
|
|
|
1922
1931
|
labelPosition: "top",
|
|
1923
1932
|
submitButton: !1,
|
|
1924
1933
|
cancelButton: !1
|
|
1925
|
-
},
|
|
1934
|
+
}, De = [];
|
|
1926
1935
|
Object.keys(Se).forEach((e) => {
|
|
1927
|
-
|
|
1936
|
+
De.push({ value: e, label: Se[e].name });
|
|
1928
1937
|
});
|
|
1929
1938
|
const Rn = {
|
|
1930
1939
|
options: {
|
|
@@ -1947,7 +1956,7 @@ const Rn = {
|
|
|
1947
1956
|
type: "select",
|
|
1948
1957
|
field: "type",
|
|
1949
1958
|
label: "类型",
|
|
1950
|
-
options:
|
|
1959
|
+
options: v(De)
|
|
1951
1960
|
},
|
|
1952
1961
|
{
|
|
1953
1962
|
type: "input",
|
|
@@ -1996,7 +2005,7 @@ const Rn = {
|
|
|
1996
2005
|
tableStruct: "",
|
|
1997
2006
|
activeName: "1",
|
|
1998
2007
|
currentCtrlType: "input",
|
|
1999
|
-
types:
|
|
2008
|
+
types: v(De)
|
|
2000
2009
|
};
|
|
2001
2010
|
},
|
|
2002
2011
|
computed: {
|
|
@@ -2011,7 +2020,7 @@ const Rn = {
|
|
|
2011
2020
|
deep: !0,
|
|
2012
2021
|
immediate: !0,
|
|
2013
2022
|
handler(e) {
|
|
2014
|
-
const t =
|
|
2023
|
+
const t = v(e);
|
|
2015
2024
|
e.showSubmitButton === !1 && (t.submitButton = !1), e.cancelSubmitButton === !1 && (t.cancelButton = !1), delete t.showSubmitButton, delete t.showCancelButton, Object.keys(t).length > 0 && (this.builderSchema = A(this.builderSchema, { options: t }), this.key++);
|
|
2016
2025
|
}
|
|
2017
2026
|
},
|
|
@@ -2036,12 +2045,12 @@ const Rn = {
|
|
|
2036
2045
|
currentCtrlType: {
|
|
2037
2046
|
handler(e) {
|
|
2038
2047
|
const t = this.ctrlMap[e];
|
|
2039
|
-
this.ctrlSchema =
|
|
2040
|
-
options:
|
|
2041
|
-
formItems:
|
|
2048
|
+
this.ctrlSchema = v({
|
|
2049
|
+
options: v(ye),
|
|
2050
|
+
formItems: v(t.builder)
|
|
2042
2051
|
});
|
|
2043
2052
|
const l = ne(this.builderSchema, this.activeIndex);
|
|
2044
|
-
this.ctrlOptions =
|
|
2053
|
+
this.ctrlOptions = v(l), this.ctrlOptions.type = e, this.ctrlKey++, this.key++;
|
|
2045
2054
|
}
|
|
2046
2055
|
}
|
|
2047
2056
|
},
|
|
@@ -2061,25 +2070,25 @@ const Rn = {
|
|
|
2061
2070
|
const t = "formItems";
|
|
2062
2071
|
this.ctrlOptions = {}, this.builderSchema[t] = this.builderSchema[t] || [];
|
|
2063
2072
|
const l = this.ctrlMap[e];
|
|
2064
|
-
this.activeCtrl = l, this.builderSchema[t].push(
|
|
2065
|
-
options:
|
|
2066
|
-
formItems:
|
|
2073
|
+
this.activeCtrl = l, this.builderSchema[t].push(v(l.default)), this.ctrlSchema = v({
|
|
2074
|
+
options: v(ye),
|
|
2075
|
+
formItems: v(l.builder)
|
|
2067
2076
|
}), this.ctrlKey++, this.key++, this.activeIndex = `${t}[${this.builderSchema[t].length - 1}]`, this.activeTab = "ctrl";
|
|
2068
2077
|
},
|
|
2069
2078
|
removeOne() {
|
|
2070
|
-
lt(this.builderSchema, this.activeIndex), this.builderSchema =
|
|
2079
|
+
lt(this.builderSchema, this.activeIndex), this.builderSchema = v(Qe(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
|
|
2071
2080
|
},
|
|
2072
2081
|
clicklabel() {
|
|
2073
2082
|
const e = this.activeIndex;
|
|
2074
2083
|
if (e.match(this.activeIndexReg)) {
|
|
2075
|
-
const l =
|
|
2084
|
+
const l = v(ne(this.builderSchema, e)), o = l.type, n = this.ctrlMap[o];
|
|
2076
2085
|
if (!n) {
|
|
2077
2086
|
this.$message({ type: "warning", message: "尚未支持该组件的UI编辑" });
|
|
2078
2087
|
return;
|
|
2079
2088
|
}
|
|
2080
|
-
this.currentCtrlType = o, this.ctrlOptions = l, this.ctrlSchema =
|
|
2081
|
-
options:
|
|
2082
|
-
formItems:
|
|
2089
|
+
this.currentCtrlType = o, this.ctrlOptions = l, this.ctrlSchema = v({
|
|
2090
|
+
options: v(ye),
|
|
2091
|
+
formItems: v(n.builder)
|
|
2083
2092
|
}), this.ctrlKey++;
|
|
2084
2093
|
}
|
|
2085
2094
|
},
|
|
@@ -2095,31 +2104,31 @@ const Rn = {
|
|
|
2095
2104
|
}
|
|
2096
2105
|
};
|
|
2097
2106
|
function Mn(e, t, l, o, n, a) {
|
|
2098
|
-
const s =
|
|
2107
|
+
const s = w("v-form"), r = it, d = pe, u = w("JsonView"), m = w("VButton"), _ = Te, k = Be, y = rt, J = ct, U = w("dev-layout");
|
|
2099
2108
|
return i(), f(U, null, {
|
|
2100
2109
|
main: c(() => [
|
|
2101
2110
|
n.builderSchema.formItems ? (i(), f(s, F({
|
|
2102
2111
|
ref: "form",
|
|
2103
2112
|
key: n.key,
|
|
2104
2113
|
dev: !0
|
|
2105
|
-
}, n.builderSchema), null, 16)) :
|
|
2114
|
+
}, n.builderSchema), null, 16)) : E("", !0),
|
|
2106
2115
|
p(r),
|
|
2107
|
-
p(
|
|
2116
|
+
p(d, {
|
|
2108
2117
|
type: "primary",
|
|
2109
2118
|
onClick: a.saveSchema
|
|
2110
2119
|
}, {
|
|
2111
2120
|
default: c(() => [
|
|
2112
|
-
|
|
2121
|
+
S("保存页面配置")
|
|
2113
2122
|
]),
|
|
2114
2123
|
_: 1
|
|
2115
2124
|
}, 8, ["onClick"]),
|
|
2116
|
-
|
|
2125
|
+
S(" "),
|
|
2117
2126
|
p(m, {
|
|
2118
2127
|
text: "PageSchema",
|
|
2119
2128
|
type: "modal"
|
|
2120
2129
|
}, {
|
|
2121
2130
|
default: c(() => [
|
|
2122
|
-
p(
|
|
2131
|
+
p(u, { data: a.getSaveSchema }, null, 8, ["data"])
|
|
2123
2132
|
]),
|
|
2124
2133
|
_: 1
|
|
2125
2134
|
})
|
|
@@ -2127,15 +2136,15 @@ function Mn(e, t, l, o, n, a) {
|
|
|
2127
2136
|
"right-aside": c(() => [
|
|
2128
2137
|
n.activeIndex ? (i(), f(J, { key: 0 }, {
|
|
2129
2138
|
default: c(() => [
|
|
2130
|
-
p(
|
|
2139
|
+
p(y, { label: "控件类型" }, {
|
|
2131
2140
|
default: c(() => [
|
|
2132
|
-
p(
|
|
2141
|
+
p(k, {
|
|
2133
2142
|
modelValue: n.currentCtrlType,
|
|
2134
2143
|
"onUpdate:modelValue": t[0] || (t[0] = (T) => n.currentCtrlType = T)
|
|
2135
2144
|
}, {
|
|
2136
2145
|
default: c(() => [
|
|
2137
|
-
(i(!0), h(
|
|
2138
|
-
key:
|
|
2146
|
+
(i(!0), h(I, null, O(n.types, (T, X) => (i(), f(_, {
|
|
2147
|
+
key: X,
|
|
2139
2148
|
label: T.label,
|
|
2140
2149
|
value: T.value
|
|
2141
2150
|
}, null, 8, ["label", "value"]))), 128))
|
|
@@ -2147,7 +2156,7 @@ function Mn(e, t, l, o, n, a) {
|
|
|
2147
2156
|
})
|
|
2148
2157
|
]),
|
|
2149
2158
|
_: 1
|
|
2150
|
-
})) :
|
|
2159
|
+
})) : E("", !0),
|
|
2151
2160
|
(i(), f(s, F({
|
|
2152
2161
|
key: n.ctrlKey,
|
|
2153
2162
|
modelValue: n.ctrlOptions,
|
|
@@ -2157,7 +2166,7 @@ function Mn(e, t, l, o, n, a) {
|
|
|
2157
2166
|
_: 1
|
|
2158
2167
|
});
|
|
2159
2168
|
}
|
|
2160
|
-
const
|
|
2169
|
+
const Dn = /* @__PURE__ */ $(Ln, [["render", Mn], ["__scopeId", "data-v-875f0171"]]), jn = {
|
|
2161
2170
|
type: "input",
|
|
2162
2171
|
name: "文本框",
|
|
2163
2172
|
default: {
|
|
@@ -2303,7 +2312,7 @@ const jn = /* @__PURE__ */ I(Ln, [["render", Mn], ["__scopeId", "data-v-875f0171
|
|
|
2303
2312
|
}
|
|
2304
2313
|
],
|
|
2305
2314
|
trans(e) {
|
|
2306
|
-
const t =
|
|
2315
|
+
const t = v(e);
|
|
2307
2316
|
return e.optionType === 0 ? t.props && t.props.selectApi !== void 0 && delete t.props.selectApi : e.optionType === 1 && t.options && delete t.options, delete t.optionType, t;
|
|
2308
2317
|
}
|
|
2309
2318
|
}, Vn = {
|
|
@@ -2617,7 +2626,7 @@ const jn = /* @__PURE__ */ I(Ln, [["render", Mn], ["__scopeId", "data-v-875f0171
|
|
|
2617
2626
|
info: "例如 <code>姓名: {name} 年龄:{age}</code>"
|
|
2618
2627
|
}
|
|
2619
2628
|
]
|
|
2620
|
-
},
|
|
2629
|
+
}, Xn = {
|
|
2621
2630
|
span: qn,
|
|
2622
2631
|
enum: Un,
|
|
2623
2632
|
html: Hn,
|
|
@@ -2627,7 +2636,7 @@ const jn = /* @__PURE__ */ I(Ln, [["render", Mn], ["__scopeId", "data-v-875f0171
|
|
|
2627
2636
|
link: zn,
|
|
2628
2637
|
rich: Kn,
|
|
2629
2638
|
tpl: Wn
|
|
2630
|
-
},
|
|
2639
|
+
}, Zn = {
|
|
2631
2640
|
type: "jump",
|
|
2632
2641
|
name: "跳转",
|
|
2633
2642
|
default: {
|
|
@@ -2674,7 +2683,7 @@ const jn = /* @__PURE__ */ I(Ln, [["render", Mn], ["__scopeId", "data-v-875f0171
|
|
|
2674
2683
|
}
|
|
2675
2684
|
}
|
|
2676
2685
|
]
|
|
2677
|
-
},
|
|
2686
|
+
}, Qn = {
|
|
2678
2687
|
type: "api",
|
|
2679
2688
|
name: "接口请求",
|
|
2680
2689
|
default: {
|
|
@@ -2852,8 +2861,8 @@ const jn = /* @__PURE__ */ I(Ln, [["render", Mn], ["__scopeId", "data-v-875f0171
|
|
|
2852
2861
|
}
|
|
2853
2862
|
]
|
|
2854
2863
|
}, to = {
|
|
2855
|
-
jump:
|
|
2856
|
-
api:
|
|
2864
|
+
jump: Zn,
|
|
2865
|
+
api: Qn,
|
|
2857
2866
|
form: Yn,
|
|
2858
2867
|
table: eo
|
|
2859
2868
|
};
|
|
@@ -2886,8 +2895,8 @@ const lo = {
|
|
|
2886
2895
|
ctrlName: "",
|
|
2887
2896
|
activeIndex: void 0,
|
|
2888
2897
|
ctrlMap: {
|
|
2889
|
-
filter: { input:
|
|
2890
|
-
headers:
|
|
2898
|
+
filter: { input: jn, select: Nn, date: Vn },
|
|
2899
|
+
headers: Xn,
|
|
2891
2900
|
buttons: to
|
|
2892
2901
|
},
|
|
2893
2902
|
activeIndexReg: /(filter|headers|normalButton|batchButton|rowButton)?\[(\d+)\]/,
|
|
@@ -2949,13 +2958,13 @@ const lo = {
|
|
|
2949
2958
|
currentCtrlType: {
|
|
2950
2959
|
handler(e) {
|
|
2951
2960
|
const t = this.ctrlMap[this.activeBrick][e];
|
|
2952
|
-
this.ctrlSchema =
|
|
2953
|
-
options:
|
|
2954
|
-
formItems:
|
|
2961
|
+
this.ctrlSchema = v({
|
|
2962
|
+
options: v(ve),
|
|
2963
|
+
formItems: v(t.builder)
|
|
2955
2964
|
});
|
|
2956
2965
|
const l = ne(this.builderSchema, this.activeIndex);
|
|
2957
2966
|
l.type = e;
|
|
2958
|
-
const o =
|
|
2967
|
+
const o = v(l);
|
|
2959
2968
|
this.ctrlOptions = o, o.text && (this.ctrlOptions.text = o.text, this.ctrlOptions.props = o.props || {}), this.ctrlKey++, this.key++, this.updateBuilderSchema();
|
|
2960
2969
|
}
|
|
2961
2970
|
}
|
|
@@ -2996,18 +3005,18 @@ const lo = {
|
|
|
2996
3005
|
this.$message({ type: "warning", message: "尚未支持此组件的UI编辑" });
|
|
2997
3006
|
return;
|
|
2998
3007
|
}
|
|
2999
|
-
this.activeCtrl = n[e], this.activeBrick = o, this.ctrlOptions = {}, this.builderSchema[t] = this.builderSchema[t] || [], this.builderSchema[t].push(
|
|
3000
|
-
options:
|
|
3001
|
-
formItems:
|
|
3008
|
+
this.activeCtrl = n[e], this.activeBrick = o, this.ctrlOptions = {}, this.builderSchema[t] = this.builderSchema[t] || [], this.builderSchema[t].push(v(n[e].default)), this.ctrlSchema = v({
|
|
3009
|
+
options: v(ve),
|
|
3010
|
+
formItems: v(n[e].builder)
|
|
3002
3011
|
}), this.key++, this.ctrlKey++, this.activeIndex = `${t}[${this.builderSchema[t].length - 1}]`, this.activeTab = "ctrl";
|
|
3003
3012
|
},
|
|
3004
3013
|
removeOne() {
|
|
3005
|
-
lt(this.builderSchema, this.activeIndex), this.builderSchema =
|
|
3014
|
+
lt(this.builderSchema, this.activeIndex), this.builderSchema = v(Qe(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
|
|
3006
3015
|
},
|
|
3007
3016
|
clicklabel() {
|
|
3008
3017
|
const e = this.activeIndex, t = e.match(this.activeIndexReg);
|
|
3009
3018
|
if (t) {
|
|
3010
|
-
const l =
|
|
3019
|
+
const l = v(ne(this.builderSchema, e));
|
|
3011
3020
|
this.activeBrick = t[1], ["normalButton", "batchButton", "rowButton"].indexOf(t[1]) > -1 && (this.activeBrick = "buttons");
|
|
3012
3021
|
let o = this.builderSchema[t[1]][parseInt(t[2])].type;
|
|
3013
3022
|
t[1] === "headers" && o === void 0 && (o = "span");
|
|
@@ -3016,9 +3025,9 @@ const lo = {
|
|
|
3016
3025
|
this.activeBrick, this.$message({ type: "warning", message: "尚未支持此组件的UI编辑" });
|
|
3017
3026
|
return;
|
|
3018
3027
|
}
|
|
3019
|
-
this.ctrlOptions = l, this.currentCtrlType = o, this.ctrlSchema =
|
|
3020
|
-
options:
|
|
3021
|
-
formItems:
|
|
3028
|
+
this.ctrlOptions = l, this.currentCtrlType = o, this.ctrlSchema = v({
|
|
3029
|
+
options: v(ve),
|
|
3030
|
+
formItems: v(n.builder)
|
|
3022
3031
|
}), this.ctrlKey++;
|
|
3023
3032
|
}
|
|
3024
3033
|
},
|
|
@@ -3041,19 +3050,19 @@ const lo = {
|
|
|
3041
3050
|
}
|
|
3042
3051
|
};
|
|
3043
3052
|
function no(e, t, l, o, n, a) {
|
|
3044
|
-
const s =
|
|
3053
|
+
const s = me, r = pe, d = ae, u = w("v-table"), m = it, _ = pe, k = w("JsonView"), y = w("VButton"), J = Te, U = Be, T = rt, X = ct, Bt = w("v-form"), Ot = w("dev-layout");
|
|
3045
3054
|
return i(), f(Ot, null, {
|
|
3046
3055
|
"left-aside": c(() => [
|
|
3047
|
-
p(
|
|
3056
|
+
p(d, { style: { width: "200px" } }, {
|
|
3048
3057
|
default: c(() => [
|
|
3049
|
-
p(
|
|
3058
|
+
p(d, null, {
|
|
3050
3059
|
default: c(() => [
|
|
3051
3060
|
p(s, {
|
|
3052
3061
|
class: "title",
|
|
3053
3062
|
"data-id": 22222
|
|
3054
3063
|
}, {
|
|
3055
3064
|
default: c(() => [
|
|
3056
|
-
|
|
3065
|
+
S("添加搜索条件")
|
|
3057
3066
|
]),
|
|
3058
3067
|
_: 1
|
|
3059
3068
|
}),
|
|
@@ -3064,7 +3073,7 @@ function no(e, t, l, o, n, a) {
|
|
|
3064
3073
|
onClick: t[0] || (t[0] = (C) => a.pushFilter("input"))
|
|
3065
3074
|
}, {
|
|
3066
3075
|
default: c(() => [
|
|
3067
|
-
|
|
3076
|
+
S("文本框")
|
|
3068
3077
|
]),
|
|
3069
3078
|
_: 1
|
|
3070
3079
|
})
|
|
@@ -3078,7 +3087,7 @@ function no(e, t, l, o, n, a) {
|
|
|
3078
3087
|
onClick: t[1] || (t[1] = (C) => a.pushFilter("select"))
|
|
3079
3088
|
}, {
|
|
3080
3089
|
default: c(() => [
|
|
3081
|
-
|
|
3090
|
+
S("下拉框")
|
|
3082
3091
|
]),
|
|
3083
3092
|
_: 1
|
|
3084
3093
|
})
|
|
@@ -3092,7 +3101,7 @@ function no(e, t, l, o, n, a) {
|
|
|
3092
3101
|
onClick: t[2] || (t[2] = (C) => a.pushFilter("date"))
|
|
3093
3102
|
}, {
|
|
3094
3103
|
default: c(() => [
|
|
3095
|
-
|
|
3104
|
+
S("日期")
|
|
3096
3105
|
]),
|
|
3097
3106
|
_: 1
|
|
3098
3107
|
})
|
|
@@ -3102,25 +3111,25 @@ function no(e, t, l, o, n, a) {
|
|
|
3102
3111
|
]),
|
|
3103
3112
|
_: 1
|
|
3104
3113
|
}),
|
|
3105
|
-
p(
|
|
3114
|
+
p(d, null, {
|
|
3106
3115
|
default: c(() => [
|
|
3107
3116
|
p(s, { class: "title" }, {
|
|
3108
3117
|
default: c(() => [
|
|
3109
|
-
|
|
3118
|
+
S("添加列表项")
|
|
3110
3119
|
]),
|
|
3111
3120
|
_: 1
|
|
3112
3121
|
}),
|
|
3113
|
-
(i(!0), h(
|
|
3122
|
+
(i(!0), h(I, null, O(Object.keys(n.ctrlMap.headers), (C, V) => (i(), f(s, {
|
|
3114
3123
|
key: `column-${V}`,
|
|
3115
3124
|
class: "ctrl"
|
|
3116
3125
|
}, {
|
|
3117
3126
|
default: c(() => [
|
|
3118
3127
|
p(r, {
|
|
3119
3128
|
class: "ctrl-btn",
|
|
3120
|
-
onClick: (
|
|
3129
|
+
onClick: (he) => a.pushHeaders(n.ctrlMap.headers[C].type)
|
|
3121
3130
|
}, {
|
|
3122
3131
|
default: c(() => [
|
|
3123
|
-
|
|
3132
|
+
S(B(n.ctrlMap.headers[C].name), 1)
|
|
3124
3133
|
]),
|
|
3125
3134
|
_: 2
|
|
3126
3135
|
}, 1032, ["onClick"])
|
|
@@ -3130,25 +3139,25 @@ function no(e, t, l, o, n, a) {
|
|
|
3130
3139
|
]),
|
|
3131
3140
|
_: 1
|
|
3132
3141
|
}),
|
|
3133
|
-
p(
|
|
3142
|
+
p(d, null, {
|
|
3134
3143
|
default: c(() => [
|
|
3135
3144
|
p(s, { class: "title" }, {
|
|
3136
3145
|
default: c(() => [
|
|
3137
|
-
|
|
3146
|
+
S("添加行按钮")
|
|
3138
3147
|
]),
|
|
3139
3148
|
_: 1
|
|
3140
3149
|
}),
|
|
3141
|
-
(i(!0), h(
|
|
3150
|
+
(i(!0), h(I, null, O(Object.keys(n.ctrlMap.buttons), (C, V) => (i(), f(s, {
|
|
3142
3151
|
key: `column-${V}`,
|
|
3143
3152
|
class: "ctrl"
|
|
3144
3153
|
}, {
|
|
3145
3154
|
default: c(() => [
|
|
3146
3155
|
p(r, {
|
|
3147
3156
|
class: "ctrl-btn",
|
|
3148
|
-
onClick: (
|
|
3157
|
+
onClick: (he) => a.pushRowButton(n.ctrlMap.buttons[C].type)
|
|
3149
3158
|
}, {
|
|
3150
3159
|
default: c(() => [
|
|
3151
|
-
|
|
3160
|
+
S(B(n.ctrlMap.buttons[C].name), 1)
|
|
3152
3161
|
]),
|
|
3153
3162
|
_: 2
|
|
3154
3163
|
}, 1032, ["onClick"])
|
|
@@ -3158,25 +3167,25 @@ function no(e, t, l, o, n, a) {
|
|
|
3158
3167
|
]),
|
|
3159
3168
|
_: 1
|
|
3160
3169
|
}),
|
|
3161
|
-
p(
|
|
3170
|
+
p(d, null, {
|
|
3162
3171
|
default: c(() => [
|
|
3163
3172
|
p(s, { class: "title" }, {
|
|
3164
3173
|
default: c(() => [
|
|
3165
|
-
|
|
3174
|
+
S("添加常规按钮")
|
|
3166
3175
|
]),
|
|
3167
3176
|
_: 1
|
|
3168
3177
|
}),
|
|
3169
|
-
(i(!0), h(
|
|
3178
|
+
(i(!0), h(I, null, O(Object.keys(n.ctrlMap.buttons), (C, V) => (i(), f(s, {
|
|
3170
3179
|
key: `column-${V}`,
|
|
3171
3180
|
class: "ctrl"
|
|
3172
3181
|
}, {
|
|
3173
3182
|
default: c(() => [
|
|
3174
3183
|
p(r, {
|
|
3175
3184
|
class: "ctrl-btn",
|
|
3176
|
-
onClick: (
|
|
3185
|
+
onClick: (he) => a.pushNormalButton(n.ctrlMap.buttons[C].type)
|
|
3177
3186
|
}, {
|
|
3178
3187
|
default: c(() => [
|
|
3179
|
-
|
|
3188
|
+
S(B(n.ctrlMap.buttons[C].name), 1)
|
|
3180
3189
|
]),
|
|
3181
3190
|
_: 2
|
|
3182
3191
|
}, 1032, ["onClick"])
|
|
@@ -3187,7 +3196,7 @@ function no(e, t, l, o, n, a) {
|
|
|
3187
3196
|
default: c(() => [
|
|
3188
3197
|
p(r, { class: "ctrl-btn" }, {
|
|
3189
3198
|
default: c(() => [
|
|
3190
|
-
|
|
3199
|
+
S("按钮组")
|
|
3191
3200
|
]),
|
|
3192
3201
|
_: 1
|
|
3193
3202
|
})
|
|
@@ -3197,25 +3206,25 @@ function no(e, t, l, o, n, a) {
|
|
|
3197
3206
|
]),
|
|
3198
3207
|
_: 1
|
|
3199
3208
|
}),
|
|
3200
|
-
p(
|
|
3209
|
+
p(d, null, {
|
|
3201
3210
|
default: c(() => [
|
|
3202
3211
|
p(s, { class: "title" }, {
|
|
3203
3212
|
default: c(() => [
|
|
3204
|
-
|
|
3213
|
+
S("添加批量按钮")
|
|
3205
3214
|
]),
|
|
3206
3215
|
_: 1
|
|
3207
3216
|
}),
|
|
3208
|
-
(i(!0), h(
|
|
3217
|
+
(i(!0), h(I, null, O(Object.keys(n.ctrlMap.buttons), (C, V) => (i(), f(s, {
|
|
3209
3218
|
key: `column-${V}`,
|
|
3210
3219
|
class: "ctrl"
|
|
3211
3220
|
}, {
|
|
3212
3221
|
default: c(() => [
|
|
3213
3222
|
p(r, {
|
|
3214
3223
|
class: "ctrl-btn",
|
|
3215
|
-
onClick: (
|
|
3224
|
+
onClick: (he) => a.pushBatchButton(n.ctrlMap.buttons[C].type)
|
|
3216
3225
|
}, {
|
|
3217
3226
|
default: c(() => [
|
|
3218
|
-
|
|
3227
|
+
S(B(n.ctrlMap.buttons[C].name), 1)
|
|
3219
3228
|
]),
|
|
3220
3229
|
_: 2
|
|
3221
3230
|
}, 1032, ["onClick"])
|
|
@@ -3226,7 +3235,7 @@ function no(e, t, l, o, n, a) {
|
|
|
3226
3235
|
default: c(() => [
|
|
3227
3236
|
p(r, { class: "ctrl-btn" }, {
|
|
3228
3237
|
default: c(() => [
|
|
3229
|
-
|
|
3238
|
+
S("按钮组")
|
|
3230
3239
|
]),
|
|
3231
3240
|
_: 1
|
|
3232
3241
|
})
|
|
@@ -3241,34 +3250,34 @@ function no(e, t, l, o, n, a) {
|
|
|
3241
3250
|
})
|
|
3242
3251
|
]),
|
|
3243
3252
|
main: c(() => [
|
|
3244
|
-
(i(), f(
|
|
3253
|
+
(i(), f(u, F({
|
|
3245
3254
|
ref: "table",
|
|
3246
3255
|
key: n.key,
|
|
3247
3256
|
dev: !0
|
|
3248
3257
|
}, n.builderSchema), null, 16)),
|
|
3249
3258
|
p(m),
|
|
3250
|
-
p(
|
|
3259
|
+
p(_, {
|
|
3251
3260
|
type: "primary",
|
|
3252
3261
|
onClick: a.saveSchema
|
|
3253
3262
|
}, {
|
|
3254
3263
|
default: c(() => [
|
|
3255
|
-
|
|
3264
|
+
S("保存页面配置")
|
|
3256
3265
|
]),
|
|
3257
3266
|
_: 1
|
|
3258
3267
|
}, 8, ["onClick"]),
|
|
3259
|
-
|
|
3260
|
-
p(
|
|
3268
|
+
S(" "),
|
|
3269
|
+
p(y, {
|
|
3261
3270
|
text: "PageSchema",
|
|
3262
3271
|
type: "modal"
|
|
3263
3272
|
}, {
|
|
3264
3273
|
default: c(() => [
|
|
3265
|
-
p(
|
|
3274
|
+
p(k, { data: a.getSaveSchema }, null, 8, ["data"])
|
|
3266
3275
|
]),
|
|
3267
3276
|
_: 1
|
|
3268
3277
|
})
|
|
3269
3278
|
]),
|
|
3270
3279
|
"right-aside": c(() => [
|
|
3271
|
-
n.activeIndex ? (i(), f(
|
|
3280
|
+
n.activeIndex ? (i(), f(X, { key: 0 }, {
|
|
3272
3281
|
default: c(() => [
|
|
3273
3282
|
p(T, { label: "控件类型" }, {
|
|
3274
3283
|
default: c(() => [
|
|
@@ -3277,7 +3286,7 @@ function no(e, t, l, o, n, a) {
|
|
|
3277
3286
|
"onUpdate:modelValue": t[3] || (t[3] = (C) => n.currentCtrlType = C)
|
|
3278
3287
|
}, {
|
|
3279
3288
|
default: c(() => [
|
|
3280
|
-
(i(!0), h(
|
|
3289
|
+
(i(!0), h(I, null, O(a.types, (C, V) => (i(), f(J, {
|
|
3281
3290
|
key: V,
|
|
3282
3291
|
label: C.label,
|
|
3283
3292
|
value: C.value
|
|
@@ -3290,7 +3299,7 @@ function no(e, t, l, o, n, a) {
|
|
|
3290
3299
|
})
|
|
3291
3300
|
]),
|
|
3292
3301
|
_: 1
|
|
3293
|
-
})) :
|
|
3302
|
+
})) : E("", !0),
|
|
3294
3303
|
(i(), f(Bt, F({
|
|
3295
3304
|
key: n.ctrlKey,
|
|
3296
3305
|
modelValue: n.ctrlOptions,
|
|
@@ -3300,22 +3309,22 @@ function no(e, t, l, o, n, a) {
|
|
|
3300
3309
|
_: 1
|
|
3301
3310
|
});
|
|
3302
3311
|
}
|
|
3303
|
-
const oo = /* @__PURE__ */
|
|
3312
|
+
const oo = /* @__PURE__ */ $(lo, [["render", no], ["__scopeId", "data-v-e5209cb7"]]), ao = {
|
|
3304
3313
|
name: "PageEditor",
|
|
3305
|
-
components: { FormBuilder:
|
|
3314
|
+
components: { FormBuilder: Dn, TableBuilder: oo },
|
|
3306
3315
|
setup() {
|
|
3307
|
-
const e =
|
|
3316
|
+
const e = D(!1), t = D(1), l = "rtl", o = de(), n = M(() => g.state.app.pages[o.path]);
|
|
3308
3317
|
return { show: e, key: t, direction: l, pageSchema: n };
|
|
3309
3318
|
}
|
|
3310
3319
|
};
|
|
3311
3320
|
function so(e, t, l, o, n, a) {
|
|
3312
|
-
const s =
|
|
3313
|
-
return i(), h(
|
|
3321
|
+
const s = w("VIcon"), r = w("form-builder"), d = w("table-builder"), u = ut;
|
|
3322
|
+
return i(), h(I, null, [
|
|
3314
3323
|
p(s, {
|
|
3315
3324
|
name: "ra-set",
|
|
3316
3325
|
onClick: t[0] || (t[0] = (m) => o.show = !o.show)
|
|
3317
3326
|
}),
|
|
3318
|
-
p(
|
|
3327
|
+
p(u, {
|
|
3319
3328
|
modelValue: o.show,
|
|
3320
3329
|
"onUpdate:modelValue": t[1] || (t[1] = (m) => o.show = m),
|
|
3321
3330
|
title: "页面设计",
|
|
@@ -3329,17 +3338,17 @@ function so(e, t, l, o, n, a) {
|
|
|
3329
3338
|
o.pageSchema.formItems !== void 0 ? (i(), f(r, {
|
|
3330
3339
|
key: 0,
|
|
3331
3340
|
schema: o.pageSchema
|
|
3332
|
-
}, null, 8, ["schema"])) :
|
|
3333
|
-
o.pageSchema.headers !== void 0 ? (i(), f(
|
|
3341
|
+
}, null, 8, ["schema"])) : E("", !0),
|
|
3342
|
+
o.pageSchema.headers !== void 0 ? (i(), f(d, {
|
|
3334
3343
|
key: 1,
|
|
3335
3344
|
schema: o.pageSchema
|
|
3336
|
-
}, null, 8, ["schema"])) :
|
|
3345
|
+
}, null, 8, ["schema"])) : E("", !0)
|
|
3337
3346
|
]),
|
|
3338
3347
|
_: 1
|
|
3339
3348
|
}, 8, ["modelValue", "direction"])
|
|
3340
3349
|
], 64);
|
|
3341
3350
|
}
|
|
3342
|
-
const io = /* @__PURE__ */
|
|
3351
|
+
const io = /* @__PURE__ */ $(ao, [["render", so]]);
|
|
3343
3352
|
const ro = {
|
|
3344
3353
|
components: {
|
|
3345
3354
|
Breadcrumb: fn,
|
|
@@ -3384,7 +3393,7 @@ const ro = {
|
|
|
3384
3393
|
dangerouslyUseHTMLString: !0,
|
|
3385
3394
|
duration: 0,
|
|
3386
3395
|
onClose: this.closeNavBarNotice
|
|
3387
|
-
}), this.setting.envColor[this.user.env] &&
|
|
3396
|
+
}), this.setting.envColor[this.user.env] && Xt({
|
|
3388
3397
|
elRef: this.$refs.header.$el,
|
|
3389
3398
|
waterMark: this.user.env,
|
|
3390
3399
|
color: "skyblue",
|
|
@@ -3409,11 +3418,11 @@ const ro = {
|
|
|
3409
3418
|
},
|
|
3410
3419
|
showNotice(e) {
|
|
3411
3420
|
const t = "dismiss:navbar_notice";
|
|
3412
|
-
return
|
|
3421
|
+
return re.exist(t) ? re.get(t) !== e : !0;
|
|
3413
3422
|
},
|
|
3414
3423
|
closeNotice(e) {
|
|
3415
3424
|
const t = "dismiss:navbar_notice";
|
|
3416
|
-
|
|
3425
|
+
re.set(t, e);
|
|
3417
3426
|
},
|
|
3418
3427
|
gotoMenuEdit() {
|
|
3419
3428
|
var e, t, l, o;
|
|
@@ -3428,14 +3437,14 @@ const ro = {
|
|
|
3428
3437
|
style: { padding: "0" }
|
|
3429
3438
|
}, fo = { class: "user-info" }, ho = ["src"], bo = { class: "user-name" };
|
|
3430
3439
|
function _o(e, t, l, o, n, a) {
|
|
3431
|
-
const s =
|
|
3440
|
+
const s = w("hamburger"), r = w("breadcrumb"), d = me, u = w("VIcon"), m = w("PageEditor"), _ = w("v-button"), k = _l, y = yl, J = vl, U = ut, T = ae;
|
|
3432
3441
|
return i(), f(T, {
|
|
3433
3442
|
ref: "header",
|
|
3434
3443
|
class: "navbar",
|
|
3435
|
-
style:
|
|
3444
|
+
style: Dt({ background: a.setting.envColor[a.user.env] })
|
|
3436
3445
|
}, {
|
|
3437
3446
|
default: c(() => [
|
|
3438
|
-
p(
|
|
3447
|
+
p(d, { span: 16 }, {
|
|
3439
3448
|
default: c(() => [
|
|
3440
3449
|
p(s, {
|
|
3441
3450
|
"is-active": e.sidebar.opened,
|
|
@@ -3446,44 +3455,44 @@ function _o(e, t, l, o, n, a) {
|
|
|
3446
3455
|
]),
|
|
3447
3456
|
_: 1
|
|
3448
3457
|
}),
|
|
3449
|
-
p(
|
|
3458
|
+
p(d, { span: 8 }, {
|
|
3450
3459
|
default: c(() => [
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
p(
|
|
3460
|
+
b("div", co, [
|
|
3461
|
+
b("div", uo, [
|
|
3462
|
+
p(u, {
|
|
3454
3463
|
name: "ra-code",
|
|
3455
3464
|
onClick: a.gotoMenuEdit
|
|
3456
3465
|
}, null, 8, ["onClick"])
|
|
3457
3466
|
]),
|
|
3458
3467
|
a.showPageJsonSchemaIcon ? (i(), h("div", po, [
|
|
3459
3468
|
p(m)
|
|
3460
|
-
])) :
|
|
3461
|
-
|
|
3462
|
-
p(
|
|
3469
|
+
])) : E("", !0),
|
|
3470
|
+
b("div", mo, [
|
|
3471
|
+
p(_, { buttons: e.nav }, null, 8, ["buttons"])
|
|
3463
3472
|
]),
|
|
3464
3473
|
p(J, {
|
|
3465
3474
|
class: "right-item",
|
|
3466
3475
|
trigger: "click"
|
|
3467
3476
|
}, {
|
|
3468
3477
|
dropdown: c(() => [
|
|
3469
|
-
p(
|
|
3478
|
+
p(y, { class: "user-dropdown" }, {
|
|
3470
3479
|
default: c(() => [
|
|
3471
|
-
p(
|
|
3480
|
+
p(k, {
|
|
3472
3481
|
icon: "oms-icon-index",
|
|
3473
|
-
onClick: t[0] || (t[0] = (
|
|
3482
|
+
onClick: t[0] || (t[0] = (X) => e.$router.push("/"))
|
|
3474
3483
|
}, {
|
|
3475
3484
|
default: c(() => [
|
|
3476
|
-
|
|
3485
|
+
S("首页")
|
|
3477
3486
|
]),
|
|
3478
3487
|
_: 1
|
|
3479
3488
|
}),
|
|
3480
|
-
p(
|
|
3489
|
+
p(k, {
|
|
3481
3490
|
divided: "",
|
|
3482
3491
|
icon: "el-icon-switch-button",
|
|
3483
3492
|
onClick: a.logout
|
|
3484
3493
|
}, {
|
|
3485
3494
|
default: c(() => [
|
|
3486
|
-
|
|
3495
|
+
S("退出登录")
|
|
3487
3496
|
]),
|
|
3488
3497
|
_: 1
|
|
3489
3498
|
}, 8, ["onClick"])
|
|
@@ -3492,14 +3501,14 @@ function _o(e, t, l, o, n, a) {
|
|
|
3492
3501
|
})
|
|
3493
3502
|
]),
|
|
3494
3503
|
default: c(() => [
|
|
3495
|
-
|
|
3496
|
-
|
|
3504
|
+
b("div", fo, [
|
|
3505
|
+
b("img", {
|
|
3497
3506
|
src: e.avatar ? e.avatar : n.defaultAvatar,
|
|
3498
3507
|
class: "user-avatar",
|
|
3499
3508
|
alt: "头像"
|
|
3500
3509
|
}, null, 8, ho),
|
|
3501
|
-
|
|
3502
|
-
|
|
3510
|
+
S(),
|
|
3511
|
+
b("span", bo, B(e.nickname || e.name), 1)
|
|
3503
3512
|
])
|
|
3504
3513
|
]),
|
|
3505
3514
|
_: 1
|
|
@@ -3512,12 +3521,12 @@ function _o(e, t, l, o, n, a) {
|
|
|
3512
3521
|
key: 0,
|
|
3513
3522
|
"with-header": !1,
|
|
3514
3523
|
size: "50%"
|
|
3515
|
-
})) :
|
|
3524
|
+
})) : E("", !0)
|
|
3516
3525
|
]),
|
|
3517
3526
|
_: 1
|
|
3518
3527
|
}, 8, ["style"]);
|
|
3519
3528
|
}
|
|
3520
|
-
const yo = /* @__PURE__ */
|
|
3529
|
+
const yo = /* @__PURE__ */ $(ro, [["render", _o], ["__scopeId", "data-v-99b3c688"]]);
|
|
3521
3530
|
const vo = {
|
|
3522
3531
|
name: "SidebarLogo",
|
|
3523
3532
|
props: {
|
|
@@ -3537,13 +3546,13 @@ const vo = {
|
|
|
3537
3546
|
}, go = (e) => (Ke("data-v-49084925"), e = e(), We(), e), ko = ["src"], wo = {
|
|
3538
3547
|
key: 1,
|
|
3539
3548
|
class: "sidebar-title"
|
|
3540
|
-
}, So = /* @__PURE__ */ go(() => /* @__PURE__ */
|
|
3541
|
-
function
|
|
3542
|
-
const s =
|
|
3549
|
+
}, So = /* @__PURE__ */ go(() => /* @__PURE__ */ b("div", null, "系统", -1)), xo = ["src"], Eo = { class: "sidebar-title" };
|
|
3550
|
+
function Io(e, t, l, o, n, a) {
|
|
3551
|
+
const s = w("router-link");
|
|
3543
3552
|
return i(), h("div", {
|
|
3544
3553
|
class: H(["sidebar-logo-container", { collapse: l.collapse }])
|
|
3545
3554
|
}, [
|
|
3546
|
-
p(
|
|
3555
|
+
p(jt, { name: "sidebarLogoFade" }, {
|
|
3547
3556
|
default: c(() => [
|
|
3548
3557
|
l.collapse ? (i(), f(s, {
|
|
3549
3558
|
key: "collapse",
|
|
@@ -3569,8 +3578,8 @@ function $o(e, t, l, o, n, a) {
|
|
|
3569
3578
|
key: 0,
|
|
3570
3579
|
src: a.logo,
|
|
3571
3580
|
class: "sidebar-logo"
|
|
3572
|
-
}, null, 8, xo)) :
|
|
3573
|
-
|
|
3581
|
+
}, null, 8, xo)) : E("", !0),
|
|
3582
|
+
b("h1", Eo, B(a.title), 1)
|
|
3574
3583
|
]),
|
|
3575
3584
|
_: 1
|
|
3576
3585
|
}))
|
|
@@ -3579,7 +3588,7 @@ function $o(e, t, l, o, n, a) {
|
|
|
3579
3588
|
})
|
|
3580
3589
|
], 2);
|
|
3581
3590
|
}
|
|
3582
|
-
const
|
|
3591
|
+
const $o = /* @__PURE__ */ $(vo, [["render", Io], ["__scopeId", "data-v-49084925"]]), Co = {
|
|
3583
3592
|
props: {
|
|
3584
3593
|
to: {
|
|
3585
3594
|
type: String,
|
|
@@ -3613,14 +3622,14 @@ const Io = /* @__PURE__ */ I(vo, [["render", $o], ["__scopeId", "data-v-49084925
|
|
|
3613
3622
|
}
|
|
3614
3623
|
};
|
|
3615
3624
|
function To(e, t, l, o, n, a) {
|
|
3616
|
-
return i(), f(
|
|
3625
|
+
return i(), f(Xe(a.compType(l.to)), G(Y(a.linkProps(l.to))), {
|
|
3617
3626
|
default: c(() => [
|
|
3618
3627
|
le(e.$slots, "default")
|
|
3619
3628
|
]),
|
|
3620
3629
|
_: 3
|
|
3621
3630
|
}, 16);
|
|
3622
3631
|
}
|
|
3623
|
-
const Bo = /* @__PURE__ */
|
|
3632
|
+
const Bo = /* @__PURE__ */ $(Co, [["render", To]]), Oo = {
|
|
3624
3633
|
computed: {
|
|
3625
3634
|
// @ts-ignore
|
|
3626
3635
|
device() {
|
|
@@ -3654,12 +3663,12 @@ const Bo = /* @__PURE__ */ I(Co, [["render", To]]), Oo = {
|
|
|
3654
3663
|
},
|
|
3655
3664
|
setup(e) {
|
|
3656
3665
|
return (t, l) => {
|
|
3657
|
-
const o =
|
|
3658
|
-
return i(), h(
|
|
3666
|
+
const o = w("VIcon");
|
|
3667
|
+
return i(), h(I, null, [
|
|
3659
3668
|
p(o, {
|
|
3660
3669
|
name: e.meta.icon || "ra-all"
|
|
3661
3670
|
}, null, 8, ["name"]),
|
|
3662
|
-
|
|
3671
|
+
b("span", Ao, B(e.meta.title), 1)
|
|
3663
3672
|
], 64);
|
|
3664
3673
|
};
|
|
3665
3674
|
}
|
|
@@ -3688,7 +3697,8 @@ const Bo = /* @__PURE__ */ I(Co, [["render", To]]), Oo = {
|
|
|
3688
3697
|
methods: {
|
|
3689
3698
|
getTo(e) {
|
|
3690
3699
|
try {
|
|
3691
|
-
|
|
3700
|
+
const t = this.$router.resolve(e.redirect ? e.redirect : e);
|
|
3701
|
+
return re.remove("table_filter:" + t.hash), t.fullPath;
|
|
3692
3702
|
} catch {
|
|
3693
3703
|
return console.error("路由解析错误"), "/";
|
|
3694
3704
|
}
|
|
@@ -3699,10 +3709,10 @@ const Bo = /* @__PURE__ */ I(Co, [["render", To]]), Oo = {
|
|
|
3699
3709
|
class: "menu-wrapper"
|
|
3700
3710
|
};
|
|
3701
3711
|
function Mo(e, t, l, o, n, a) {
|
|
3702
|
-
const s =
|
|
3712
|
+
const s = w("menu-content"), r = gl, d = w("app-link"), u = w("sidebar-item", !0), m = kl;
|
|
3703
3713
|
return l.item.hidden !== !1 ? (i(), h("div", Lo, [
|
|
3704
|
-
l.item.meta && l.item.meta.menuType === 2 ? (i(), h(
|
|
3705
|
-
l.item.meta ? (i(), f(
|
|
3714
|
+
l.item.meta && l.item.meta.menuType === 2 ? (i(), h(I, { key: 0 }, [
|
|
3715
|
+
l.item.meta ? (i(), f(d, {
|
|
3706
3716
|
key: 0,
|
|
3707
3717
|
to: l.to,
|
|
3708
3718
|
"new-tab": l.item.meta.newTab
|
|
@@ -3721,7 +3731,7 @@ function Mo(e, t, l, o, n, a) {
|
|
|
3721
3731
|
}, 8, ["index", "class"])
|
|
3722
3732
|
]),
|
|
3723
3733
|
_: 1
|
|
3724
|
-
}, 8, ["to", "new-tab"])) :
|
|
3734
|
+
}, 8, ["to", "new-tab"])) : E("", !0)
|
|
3725
3735
|
], 64)) : l.item.meta && l.item.meta.menuType === 1 ? (i(), f(m, {
|
|
3726
3736
|
key: 1,
|
|
3727
3737
|
ref: "subMenu",
|
|
@@ -3729,7 +3739,7 @@ function Mo(e, t, l, o, n, a) {
|
|
|
3729
3739
|
class: H({ "submenu-title-noDropdown": !l.isNest })
|
|
3730
3740
|
}, {
|
|
3731
3741
|
title: c(() => [
|
|
3732
|
-
l.item.redirect && l.item.redirect !== "#" ? (i(), f(
|
|
3742
|
+
l.item.redirect && l.item.redirect !== "#" ? (i(), f(d, {
|
|
3733
3743
|
key: 0,
|
|
3734
3744
|
to: l.to
|
|
3735
3745
|
}, {
|
|
@@ -3745,26 +3755,26 @@ function Mo(e, t, l, o, n, a) {
|
|
|
3745
3755
|
}, null, 8, ["meta"]))
|
|
3746
3756
|
]),
|
|
3747
3757
|
default: c(() => [
|
|
3748
|
-
(i(!0), h(
|
|
3749
|
-
key:
|
|
3758
|
+
(i(!0), h(I, null, O(l.item.children, (_) => (i(), f(u, {
|
|
3759
|
+
key: _.path,
|
|
3750
3760
|
"is-nest": !0,
|
|
3751
|
-
item:
|
|
3752
|
-
to: a.getTo(
|
|
3761
|
+
item: _,
|
|
3762
|
+
to: a.getTo(_),
|
|
3753
3763
|
class: "nest-menu"
|
|
3754
3764
|
}, null, 8, ["item", "to"]))), 128))
|
|
3755
3765
|
]),
|
|
3756
3766
|
_: 1
|
|
3757
|
-
}, 8, ["index", "class"])) :
|
|
3758
|
-
])) :
|
|
3767
|
+
}, 8, ["index", "class"])) : E("", !0)
|
|
3768
|
+
])) : E("", !0);
|
|
3759
3769
|
}
|
|
3760
|
-
const
|
|
3770
|
+
const Do = /* @__PURE__ */ $(Ro, [["render", Mo]]);
|
|
3761
3771
|
function yt(e) {
|
|
3762
3772
|
return e.filter((t) => {
|
|
3763
3773
|
var l;
|
|
3764
3774
|
return ((l = t.meta) == null ? void 0 : l.menuType) === 0 ? !1 : (t.children && (t.children = yt(t.children), t.children.length === 0 && delete t.children), !0);
|
|
3765
3775
|
});
|
|
3766
3776
|
}
|
|
3767
|
-
const
|
|
3777
|
+
const jo = {
|
|
3768
3778
|
data() {
|
|
3769
3779
|
return {
|
|
3770
3780
|
selected: ""
|
|
@@ -3775,7 +3785,7 @@ const Do = {
|
|
|
3775
3785
|
filterRoutes() {
|
|
3776
3786
|
let e = [];
|
|
3777
3787
|
return this.remoteRouter.forEach((t) => {
|
|
3778
|
-
e = e.concat(
|
|
3788
|
+
e = e.concat(v(t.routes));
|
|
3779
3789
|
}), yt(e);
|
|
3780
3790
|
}
|
|
3781
3791
|
},
|
|
@@ -3797,58 +3807,58 @@ const Do = {
|
|
|
3797
3807
|
}
|
|
3798
3808
|
};
|
|
3799
3809
|
function No(e, t, l, o, n, a) {
|
|
3800
|
-
const s = Te, r = wl,
|
|
3801
|
-
return i(), f(
|
|
3810
|
+
const s = Te, r = wl, d = Be;
|
|
3811
|
+
return i(), f(d, {
|
|
3802
3812
|
modelValue: n.selected,
|
|
3803
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
3813
|
+
"onUpdate:modelValue": t[0] || (t[0] = (u) => n.selected = u),
|
|
3804
3814
|
filterable: "",
|
|
3805
3815
|
placeholder: "搜索菜单...",
|
|
3806
3816
|
class: "search-menu",
|
|
3807
3817
|
onChange: a.onselected
|
|
3808
3818
|
}, {
|
|
3809
3819
|
default: c(() => [
|
|
3810
|
-
(i(!0), h(
|
|
3811
|
-
key:
|
|
3820
|
+
(i(!0), h(I, null, O(a.filterRoutes, (u) => (i(), h(I, {
|
|
3821
|
+
key: u.path
|
|
3812
3822
|
}, [
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
key:
|
|
3816
|
-
label:
|
|
3823
|
+
u.children !== void 0 ? (i(), h(I, { key: 0 }, [
|
|
3824
|
+
u.meta.menuType !== 0 ? (i(), f(r, {
|
|
3825
|
+
key: u.path + "-",
|
|
3826
|
+
label: u.meta.title
|
|
3817
3827
|
}, {
|
|
3818
3828
|
default: c(() => [
|
|
3819
|
-
(i(!0), h(
|
|
3829
|
+
(i(!0), h(I, null, O(u.children, (m, _) => (i(), h(I, {
|
|
3820
3830
|
key: m.path
|
|
3821
3831
|
}, [
|
|
3822
|
-
|
|
3832
|
+
u.meta.menuType !== 0 ? (i(), f(s, {
|
|
3823
3833
|
key: 0,
|
|
3824
|
-
label: (
|
|
3834
|
+
label: (_ === u.children.length - 1 ? "└─" : "├─") + m.meta.title,
|
|
3825
3835
|
value: a.getJumpPath(m)
|
|
3826
|
-
}, null, 8, ["label", "value"])) :
|
|
3836
|
+
}, null, 8, ["label", "value"])) : E("", !0)
|
|
3827
3837
|
], 64))), 128))
|
|
3828
3838
|
]),
|
|
3829
3839
|
_: 2
|
|
3830
|
-
}, 1032, ["label"])) :
|
|
3840
|
+
}, 1032, ["label"])) : E("", !0)
|
|
3831
3841
|
], 64)) : (i(), f(s, {
|
|
3832
3842
|
key: 1,
|
|
3833
|
-
label: "" +
|
|
3834
|
-
value: a.getJumpPath(
|
|
3843
|
+
label: "" + u.meta.title,
|
|
3844
|
+
value: a.getJumpPath(u)
|
|
3835
3845
|
}, null, 8, ["label", "value"]))
|
|
3836
3846
|
], 64))), 128))
|
|
3837
3847
|
]),
|
|
3838
3848
|
_: 1
|
|
3839
3849
|
}, 8, ["modelValue", "onChange"]);
|
|
3840
3850
|
}
|
|
3841
|
-
const Vo = /* @__PURE__ */
|
|
3842
|
-
var
|
|
3851
|
+
const Vo = /* @__PURE__ */ $(jo, [["render", No], ["__scopeId", "data-v-38301044"]]);
|
|
3852
|
+
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 || {}), L = /* @__PURE__ */ ((e) => (e[e.hidden = 0] = "hidden", e[e.dir = 1] = "dir", e[e.menu = 2] = "menu", e[e.page = 3] = "page", e))(L || {});
|
|
3843
3853
|
const qo = q({
|
|
3844
|
-
components: { SidebarItem:
|
|
3854
|
+
components: { SidebarItem: Do, Logo: $o, SearchMenu: Vo },
|
|
3845
3855
|
computed: {
|
|
3846
3856
|
...Ce(["sidebar", "remoteRouter", "customRouter"]),
|
|
3847
3857
|
routes() {
|
|
3848
3858
|
let e = [];
|
|
3849
3859
|
return this.$router.options.routes.concat(this.customRouter || []).forEach((t) => {
|
|
3850
3860
|
t.path === "/" ? e = e.concat(t.children || []) : e.push(t);
|
|
3851
|
-
}),
|
|
3861
|
+
}), v([
|
|
3852
3862
|
{
|
|
3853
3863
|
label: "",
|
|
3854
3864
|
routes: e
|
|
@@ -3892,18 +3902,18 @@ const qo = q({
|
|
|
3892
3902
|
}
|
|
3893
3903
|
});
|
|
3894
3904
|
function Uo(e, t, l, o, n, a) {
|
|
3895
|
-
const s =
|
|
3905
|
+
const s = w("logo"), r = w("search-menu"), d = w("sidebar-item"), u = Sl, m = xl;
|
|
3896
3906
|
return i(), h("div", {
|
|
3897
3907
|
class: H({ "has-logo": e.showLogo })
|
|
3898
3908
|
}, [
|
|
3899
3909
|
e.showLogo ? (i(), f(s, {
|
|
3900
3910
|
key: 0,
|
|
3901
3911
|
collapse: e.isCollapse
|
|
3902
|
-
}, null, 8, ["collapse"])) :
|
|
3912
|
+
}, null, 8, ["collapse"])) : E("", !0),
|
|
3903
3913
|
p(m, { "wrap-class": "scrollbar-wrapper" }, {
|
|
3904
3914
|
default: c(() => [
|
|
3905
|
-
e.isCollapse ?
|
|
3906
|
-
p(
|
|
3915
|
+
e.isCollapse ? E("", !0) : (i(), f(r, { key: 0 })),
|
|
3916
|
+
p(u, {
|
|
3907
3917
|
"default-active": e.activeMenu,
|
|
3908
3918
|
collapse: e.isCollapse,
|
|
3909
3919
|
"background-color": e.variables.menuBg,
|
|
@@ -3914,13 +3924,13 @@ function Uo(e, t, l, o, n, a) {
|
|
|
3914
3924
|
mode: "vertical"
|
|
3915
3925
|
}, {
|
|
3916
3926
|
default: c(() => [
|
|
3917
|
-
(i(!0), h(
|
|
3918
|
-
key:
|
|
3927
|
+
(i(!0), h(I, null, O(e.routes, (_, k) => (i(), h(I, {
|
|
3928
|
+
key: k + "-module"
|
|
3919
3929
|
}, [
|
|
3920
|
-
(i(!0), h(
|
|
3921
|
-
key:
|
|
3922
|
-
item:
|
|
3923
|
-
to: e.$router.resolve(
|
|
3930
|
+
(i(!0), h(I, null, O(e.filterRoute(_.routes), (y) => (i(), f(d, {
|
|
3931
|
+
key: y.path,
|
|
3932
|
+
item: y,
|
|
3933
|
+
to: e.$router.resolve(y.redirect ? y.redirect : y).fullPath
|
|
3924
3934
|
}, null, 8, ["item", "to"]))), 128))
|
|
3925
3935
|
], 64))), 128))
|
|
3926
3936
|
]),
|
|
@@ -3931,127 +3941,130 @@ function Uo(e, t, l, o, n, a) {
|
|
|
3931
3941
|
})
|
|
3932
3942
|
], 2);
|
|
3933
3943
|
}
|
|
3934
|
-
const Ho = /* @__PURE__ */
|
|
3944
|
+
const Ho = /* @__PURE__ */ $(qo, [["render", Uo], ["__scopeId", "data-v-d252f828"]]);
|
|
3935
3945
|
const Fo = { class: "app-main" }, Go = {
|
|
3936
3946
|
__name: "AppMain",
|
|
3937
3947
|
setup(e) {
|
|
3938
|
-
const t =
|
|
3948
|
+
const t = de(), l = [], o = D(0);
|
|
3939
3949
|
return rl(() => {
|
|
3940
3950
|
var n;
|
|
3941
3951
|
(n = t.meta) != null && n.keepAlive && l.indexOf(t.name) && l.push(t.name), o.value++;
|
|
3942
3952
|
}), (n, a) => {
|
|
3943
|
-
const s =
|
|
3953
|
+
const s = w("router-view"), r = El;
|
|
3944
3954
|
return i(), h("section", Fo, [
|
|
3945
3955
|
(i(), f(s, {
|
|
3946
|
-
key: n.$route.fullPath +
|
|
3956
|
+
key: n.$route.fullPath + x(o)
|
|
3947
3957
|
})),
|
|
3948
3958
|
p(r, { bottom: 50 })
|
|
3949
3959
|
]);
|
|
3950
3960
|
};
|
|
3951
3961
|
}
|
|
3952
|
-
}, Jo = /* @__PURE__ */
|
|
3962
|
+
}, Jo = /* @__PURE__ */ $(Go, [["__scopeId", "data-v-ca0f0d98"]]);
|
|
3953
3963
|
const zo = { class: "main-container" }, Ko = 992, Wo = {
|
|
3954
3964
|
__name: "index",
|
|
3955
3965
|
setup(e) {
|
|
3956
|
-
const t = ot(), { body: l } = document, o =
|
|
3966
|
+
const t = ot(), { body: l } = document, o = M(() => t.state.app.sidebar), n = M(() => t.state.app.device), a = M(() => t.state.settings.fixedHeader), s = M(() => ({
|
|
3957
3967
|
hideSidebar: !o.value.opened,
|
|
3958
3968
|
openSidebar: o.value.opened,
|
|
3959
3969
|
withoutAnimation: o.value.withoutAnimation,
|
|
3960
3970
|
mobile: n.value === "mobile"
|
|
3961
3971
|
})), r = () => l.getBoundingClientRect().width - 1 < Ko;
|
|
3962
|
-
Pl(window, "resize", () =>
|
|
3963
|
-
const
|
|
3972
|
+
Pl(window, "resize", () => u());
|
|
3973
|
+
const d = () => {
|
|
3964
3974
|
t.dispatch("app/closeSideBar", { withoutAnimation: !1 });
|
|
3965
|
-
},
|
|
3975
|
+
}, u = () => {
|
|
3966
3976
|
if (!document.hidden) {
|
|
3967
3977
|
const m = r();
|
|
3968
3978
|
t.dispatch("app/toggleDevice", m ? "mobile" : "desktop"), m && t.dispatch("app/closeSideBar", { withoutAnimation: !0 });
|
|
3969
3979
|
}
|
|
3970
3980
|
};
|
|
3971
|
-
return (m,
|
|
3972
|
-
class: H([
|
|
3981
|
+
return (m, _) => (i(), h("div", {
|
|
3982
|
+
class: H([x(s), "app-wrapper"])
|
|
3973
3983
|
}, [
|
|
3974
|
-
|
|
3984
|
+
x(n) === "mobile" && x(o).opened ? (i(), h("div", {
|
|
3975
3985
|
key: 0,
|
|
3976
3986
|
class: "drawer-bg",
|
|
3977
|
-
onClick:
|
|
3978
|
-
})) :
|
|
3979
|
-
p(
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
class: H({ "fixed-header":
|
|
3987
|
+
onClick: d
|
|
3988
|
+
})) : E("", !0),
|
|
3989
|
+
p(x(Ho), { class: "sidebar-container" }),
|
|
3990
|
+
b("div", zo, [
|
|
3991
|
+
b("div", {
|
|
3992
|
+
class: H({ "fixed-header": x(a) })
|
|
3983
3993
|
}, [
|
|
3984
|
-
p(
|
|
3994
|
+
p(x(yo))
|
|
3985
3995
|
], 2),
|
|
3986
|
-
p(
|
|
3996
|
+
p(x(Jo))
|
|
3987
3997
|
])
|
|
3988
3998
|
], 2));
|
|
3989
3999
|
}
|
|
3990
|
-
}, vt = /* @__PURE__ */
|
|
4000
|
+
}, vt = /* @__PURE__ */ $(Wo, [["__scopeId", "data-v-957442cd"]]), Xo = { id: "login" }, Zo = /* @__PURE__ */ b("h1", { id: "title" }, "登录", -1), Qo = { id: "form" }, Yo = {
|
|
4001
|
+
key: 0,
|
|
4002
|
+
class: "captcha"
|
|
4003
|
+
}, ea = ["src"], ta = { class: "tips" }, la = { class: "sso" }, na = /* @__PURE__ */ b("div", { id: "sso-qrcode" }, null, -1), oa = /* @__PURE__ */ q({
|
|
3991
4004
|
__name: "login",
|
|
3992
4005
|
setup(e) {
|
|
3993
|
-
const t = st(), l =
|
|
4006
|
+
const t = st(), l = de(), o = M(() => g.state.settings.loginTips), n = M(() => g.state.settings.captcha), a = M(() => (g.state.app, g.state.app.baseURL)), s = D(0), r = () => s.value++, d = M(() => u.value.username.length > 0 && u.value.password.length >= 4 && (n.value ? u.value.captcha.length === 4 : !0)), u = D({
|
|
3994
4007
|
username: "",
|
|
3995
4008
|
password: "",
|
|
3996
4009
|
captcha: "",
|
|
3997
4010
|
sing: ""
|
|
3998
|
-
}),
|
|
3999
|
-
if (u.value.username === "" || u.value.password === "" || u.value.captcha === "") {
|
|
4000
|
-
|
|
4011
|
+
}), m = () => {
|
|
4012
|
+
if (u.value.username === "" || u.value.password === "" || n.value && u.value.captcha === "") {
|
|
4013
|
+
Il.error("用户名, 密码, 验证码是必须的");
|
|
4001
4014
|
return;
|
|
4002
4015
|
}
|
|
4003
|
-
u.value.sing = Ll(`${u.value.username}${u.value.password}${u.value.captcha}`).toString(),
|
|
4004
|
-
var
|
|
4005
|
-
t.push({ path: ((
|
|
4006
|
-
}).catch((
|
|
4007
|
-
|
|
4016
|
+
n.value && (u.value.sing = Ll(`${u.value.username}${u.value.password}${u.value.captcha}`).toString()), g.dispatch("user/login", u.value).then((_) => {
|
|
4017
|
+
var k;
|
|
4018
|
+
t.push({ path: ((k = l.query) == null ? void 0 : k.redirect) || "/" });
|
|
4019
|
+
}).catch((_) => {
|
|
4020
|
+
s.value++;
|
|
4008
4021
|
});
|
|
4009
4022
|
};
|
|
4010
|
-
return (
|
|
4011
|
-
|
|
4012
|
-
|
|
4013
|
-
ie(
|
|
4014
|
-
"onUpdate:modelValue":
|
|
4023
|
+
return (_, k) => (i(), h("div", Xo, [
|
|
4024
|
+
Zo,
|
|
4025
|
+
b("form", Qo, [
|
|
4026
|
+
ie(b("input", {
|
|
4027
|
+
"onUpdate:modelValue": k[0] || (k[0] = (y) => x(u).username = y),
|
|
4015
4028
|
type: "text",
|
|
4016
4029
|
placeholder: "用户名",
|
|
4017
4030
|
class: "input"
|
|
4018
4031
|
}, null, 512), [
|
|
4019
|
-
[
|
|
4032
|
+
[be, x(u).username]
|
|
4020
4033
|
]),
|
|
4021
|
-
ie(
|
|
4022
|
-
"onUpdate:modelValue":
|
|
4034
|
+
ie(b("input", {
|
|
4035
|
+
"onUpdate:modelValue": k[1] || (k[1] = (y) => x(u).password = y),
|
|
4023
4036
|
type: "password",
|
|
4024
4037
|
placeholder: "密码",
|
|
4025
4038
|
class: "input"
|
|
4026
4039
|
}, null, 512), [
|
|
4027
|
-
[
|
|
4040
|
+
[be, x(u).password]
|
|
4028
4041
|
]),
|
|
4029
|
-
|
|
4030
|
-
ie(
|
|
4031
|
-
"onUpdate:modelValue":
|
|
4042
|
+
n.value ? (i(), h("div", Yo, [
|
|
4043
|
+
ie(b("input", {
|
|
4044
|
+
"onUpdate:modelValue": k[2] || (k[2] = (y) => x(u).captcha = y),
|
|
4032
4045
|
type: "text",
|
|
4033
4046
|
placeholder: "验证码",
|
|
4034
4047
|
class: "input-captcha"
|
|
4035
4048
|
}, null, 512), [
|
|
4036
|
-
[
|
|
4049
|
+
[be, x(u).captcha]
|
|
4037
4050
|
]),
|
|
4038
|
-
|
|
4051
|
+
b("img", {
|
|
4039
4052
|
class: "captcha-img",
|
|
4040
|
-
src:
|
|
4053
|
+
src: a.value + "/user/captcha?ts=" + x(s),
|
|
4041
4054
|
title: "点击刷新",
|
|
4042
|
-
onClick:
|
|
4055
|
+
onClick: r
|
|
4043
4056
|
}, null, 8, ea)
|
|
4044
|
-
]),
|
|
4045
|
-
|
|
4046
|
-
class: H({ input: !0, button: !0, "no-ready": !
|
|
4047
|
-
onClick:
|
|
4057
|
+
])) : E("", !0),
|
|
4058
|
+
b("div", {
|
|
4059
|
+
class: H({ input: !0, button: !0, "no-ready": !d.value }),
|
|
4060
|
+
onClick: m
|
|
4048
4061
|
}, "登录", 2),
|
|
4049
|
-
|
|
4050
|
-
|
|
4062
|
+
b("div", ta, [
|
|
4063
|
+
b("div", null, B(o.value), 1)
|
|
4051
4064
|
]),
|
|
4052
|
-
|
|
4065
|
+
b("div", la, [
|
|
4053
4066
|
na,
|
|
4054
|
-
(i(!0), h(
|
|
4067
|
+
(i(!0), h(I, null, O(Object.keys([]), (y) => (i(), h("div", { key: y }, B(y), 1))), 128))
|
|
4055
4068
|
])
|
|
4056
4069
|
])
|
|
4057
4070
|
]));
|
|
@@ -4059,7 +4072,7 @@ const zo = { class: "main-container" }, Ko = 992, Wo = {
|
|
|
4059
4072
|
});
|
|
4060
4073
|
const aa = {
|
|
4061
4074
|
name: "NotFoundPage"
|
|
4062
|
-
}, gt = (e) => (Ke("data-v-26068803"), e = e(), We(), e), sa = { class: "not-found" }, ia = /* @__PURE__ */ gt(() => /* @__PURE__ */
|
|
4075
|
+
}, gt = (e) => (Ke("data-v-26068803"), e = e(), We(), e), sa = { class: "not-found" }, ia = /* @__PURE__ */ gt(() => /* @__PURE__ */ b("svg", {
|
|
4063
4076
|
width: "380px",
|
|
4064
4077
|
height: "500px",
|
|
4065
4078
|
viewBox: "0 0 837 1045",
|
|
@@ -4068,7 +4081,7 @@ const aa = {
|
|
|
4068
4081
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
4069
4082
|
"xmlns:sketch": "http://www.bohemiancoding.com/sketch/ns"
|
|
4070
4083
|
}, [
|
|
4071
|
-
/* @__PURE__ */
|
|
4084
|
+
/* @__PURE__ */ b("g", {
|
|
4072
4085
|
id: "Page-1",
|
|
4073
4086
|
stroke: "none",
|
|
4074
4087
|
"stroke-width": "1",
|
|
@@ -4076,35 +4089,35 @@ const aa = {
|
|
|
4076
4089
|
"fill-rule": "evenodd",
|
|
4077
4090
|
"sketch:type": "MSPage"
|
|
4078
4091
|
}, [
|
|
4079
|
-
/* @__PURE__ */
|
|
4092
|
+
/* @__PURE__ */ b("path", {
|
|
4080
4093
|
id: "Polygon-1",
|
|
4081
4094
|
d: "M353,9 L626.664028,170 L626.664028,487 L353,642 L79.3359724,487 L79.3359724,170 L353,9 Z",
|
|
4082
4095
|
stroke: "#007FB2",
|
|
4083
4096
|
"stroke-width": "6",
|
|
4084
4097
|
"sketch:type": "MSShapeGroup"
|
|
4085
4098
|
}),
|
|
4086
|
-
/* @__PURE__ */
|
|
4099
|
+
/* @__PURE__ */ b("path", {
|
|
4087
4100
|
id: "Polygon-2",
|
|
4088
4101
|
d: "M78.5,529 L147,569.186414 L147,648.311216 L78.5,687 L10,648.311216 L10,569.186414 L78.5,529 Z",
|
|
4089
4102
|
stroke: "#EF4A5B",
|
|
4090
4103
|
"stroke-width": "6",
|
|
4091
4104
|
"sketch:type": "MSShapeGroup"
|
|
4092
4105
|
}),
|
|
4093
|
-
/* @__PURE__ */
|
|
4106
|
+
/* @__PURE__ */ b("path", {
|
|
4094
4107
|
id: "Polygon-3",
|
|
4095
4108
|
d: "M773,186 L827,217.538705 L827,279.636651 L773,310 L719,279.636651 L719,217.538705 L773,186 Z",
|
|
4096
4109
|
stroke: "#795D9C",
|
|
4097
4110
|
"stroke-width": "6",
|
|
4098
4111
|
"sketch:type": "MSShapeGroup"
|
|
4099
4112
|
}),
|
|
4100
|
-
/* @__PURE__ */
|
|
4113
|
+
/* @__PURE__ */ b("path", {
|
|
4101
4114
|
id: "Polygon-4",
|
|
4102
4115
|
d: "M639,529 L773,607.846761 L773,763.091627 L639,839 L505,763.091627 L505,607.846761 L639,529 Z",
|
|
4103
4116
|
stroke: "#F2773F",
|
|
4104
4117
|
"stroke-width": "6",
|
|
4105
4118
|
"sketch:type": "MSShapeGroup"
|
|
4106
4119
|
}),
|
|
4107
|
-
/* @__PURE__ */
|
|
4120
|
+
/* @__PURE__ */ b("path", {
|
|
4108
4121
|
id: "Polygon-5",
|
|
4109
4122
|
d: "M281,801 L383,861.025276 L383,979.21169 L281,1037 L179,979.21169 L179,861.025276 L281,801 Z",
|
|
4110
4123
|
stroke: "#36B455",
|
|
@@ -4112,12 +4125,12 @@ const aa = {
|
|
|
4112
4125
|
"sketch:type": "MSShapeGroup"
|
|
4113
4126
|
})
|
|
4114
4127
|
])
|
|
4115
|
-
], -1)), ra = /* @__PURE__ */ gt(() => /* @__PURE__ */
|
|
4116
|
-
/* @__PURE__ */
|
|
4117
|
-
/* @__PURE__ */
|
|
4118
|
-
/* @__PURE__ */
|
|
4119
|
-
/* @__PURE__ */
|
|
4120
|
-
/* @__PURE__ */
|
|
4128
|
+
], -1)), ra = /* @__PURE__ */ gt(() => /* @__PURE__ */ b("div", { class: "message-box" }, [
|
|
4129
|
+
/* @__PURE__ */ b("h1", null, "404"),
|
|
4130
|
+
/* @__PURE__ */ b("p", null, "Page not found"),
|
|
4131
|
+
/* @__PURE__ */ b("div", { class: "buttons-con" }, [
|
|
4132
|
+
/* @__PURE__ */ b("div", { class: "action-link-wrap" }, [
|
|
4133
|
+
/* @__PURE__ */ b("a", {
|
|
4121
4134
|
href: "",
|
|
4122
4135
|
class: "link-button"
|
|
4123
4136
|
}, "Go to Home Page")
|
|
@@ -4130,7 +4143,7 @@ const aa = {
|
|
|
4130
4143
|
function ua(e, t, l, o, n, a) {
|
|
4131
4144
|
return i(), h("div", sa, ca);
|
|
4132
4145
|
}
|
|
4133
|
-
const pa = /* @__PURE__ */
|
|
4146
|
+
const pa = /* @__PURE__ */ $(aa, [["render", ua], ["__scopeId", "data-v-26068803"]]), da = [
|
|
4134
4147
|
{
|
|
4135
4148
|
path: "/",
|
|
4136
4149
|
component: vt,
|
|
@@ -4169,20 +4182,20 @@ function ma(e) {
|
|
|
4169
4182
|
e.beforeEach((t, l, o) => {
|
|
4170
4183
|
ke.start(), t.preHash = location.hash.replace("#", ""), o();
|
|
4171
4184
|
}), e.afterEach((t) => {
|
|
4172
|
-
t.matched.length > 0 &&
|
|
4185
|
+
t.matched.length > 0 && g.commit("user/updateState", {
|
|
4173
4186
|
key: "path",
|
|
4174
4187
|
value: t.matched[t.matched.length - 1].path.replace("(\\d+)", "")
|
|
4175
4188
|
}), ke.done();
|
|
4176
4189
|
});
|
|
4177
4190
|
}
|
|
4178
4191
|
function fa() {
|
|
4179
|
-
return
|
|
4192
|
+
return g.state.user.isLodeRemoteRoutes;
|
|
4180
4193
|
}
|
|
4181
4194
|
function kt() {
|
|
4182
|
-
return
|
|
4195
|
+
return g.state.settings.whiteRoutes || [];
|
|
4183
4196
|
}
|
|
4184
4197
|
function ha() {
|
|
4185
|
-
return
|
|
4198
|
+
return g.state.user.token;
|
|
4186
4199
|
}
|
|
4187
4200
|
class wt {
|
|
4188
4201
|
constructor() {
|
|
@@ -4196,7 +4209,7 @@ class wt {
|
|
|
4196
4209
|
showQrCode() {
|
|
4197
4210
|
}
|
|
4198
4211
|
}
|
|
4199
|
-
class
|
|
4212
|
+
class Ii extends wt {
|
|
4200
4213
|
constructor(l) {
|
|
4201
4214
|
super();
|
|
4202
4215
|
R(this, "type", "jump");
|
|
@@ -4242,18 +4255,18 @@ class $i extends wt {
|
|
|
4242
4255
|
appid: this.appid,
|
|
4243
4256
|
redirect_uri: encodeURIComponent(this.redirectUri)
|
|
4244
4257
|
};
|
|
4245
|
-
return
|
|
4258
|
+
return Z(this.reloadUrl, s) + "&" + Qt(a || {});
|
|
4246
4259
|
}, o = () => {
|
|
4247
4260
|
const a = {
|
|
4248
4261
|
goto: encodeURIComponent(l()),
|
|
4249
4262
|
style: encodeURIComponent(this.style)
|
|
4250
4263
|
};
|
|
4251
|
-
return
|
|
4264
|
+
return Z(this.qrCodeUrl, a);
|
|
4252
4265
|
}, n = (a) => {
|
|
4253
4266
|
const { origin: s, data: r } = a;
|
|
4254
4267
|
s === "https://login.dingtalk.com" && (window.location.href = l({ loginTmpCode: r }));
|
|
4255
4268
|
};
|
|
4256
|
-
this.iframe.src = o(),
|
|
4269
|
+
this.iframe.src = o(), Zt({ elId: this.elId, attrs: this.iframe }), typeof window.addEventListener < "u" ? window.addEventListener(
|
|
4257
4270
|
"message",
|
|
4258
4271
|
(a) => n(a),
|
|
4259
4272
|
!1
|
|
@@ -4262,22 +4275,22 @@ class $i extends wt {
|
|
|
4262
4275
|
}
|
|
4263
4276
|
const ba = {};
|
|
4264
4277
|
function _a() {
|
|
4265
|
-
return A(
|
|
4278
|
+
return A(g.state.settings.sso || {}, ba);
|
|
4266
4279
|
}
|
|
4267
4280
|
function ya() {
|
|
4268
|
-
const e = _a(), t =
|
|
4281
|
+
const e = _a(), t = g.state.settings.activeSsoKey || "", l = e[t];
|
|
4269
4282
|
if (l !== void 0)
|
|
4270
4283
|
return l();
|
|
4271
4284
|
}
|
|
4272
4285
|
function va(e) {
|
|
4273
4286
|
e.beforeEach(async (t, l, o) => {
|
|
4274
|
-
var
|
|
4287
|
+
var d, u;
|
|
4275
4288
|
if (kt().indexOf(t.path) !== -1) {
|
|
4276
4289
|
o();
|
|
4277
4290
|
return;
|
|
4278
4291
|
}
|
|
4279
4292
|
if (ha()) {
|
|
4280
|
-
(
|
|
4293
|
+
(d = t.query) != null && d.redirect ? o((u = t.query) == null ? void 0 : u.redirect) : o();
|
|
4281
4294
|
return;
|
|
4282
4295
|
}
|
|
4283
4296
|
const a = t.query.redirect || t.path, s = ya();
|
|
@@ -4286,20 +4299,20 @@ function va(e) {
|
|
|
4286
4299
|
return;
|
|
4287
4300
|
}
|
|
4288
4301
|
const r = s.flag();
|
|
4289
|
-
if (r && await
|
|
4302
|
+
if (r && await g.dispatch("user/login", tl(r) ? r : { ticket: r })) {
|
|
4290
4303
|
o();
|
|
4291
4304
|
return;
|
|
4292
4305
|
}
|
|
4293
4306
|
s.jumpToLoginPage(o, `/login?redirect=${a}`);
|
|
4294
4307
|
});
|
|
4295
4308
|
}
|
|
4296
|
-
const ga = {}, ka = { class: "loading preloader" }, wa = /* @__PURE__ */
|
|
4309
|
+
const ga = {}, ka = { class: "loading preloader" }, wa = /* @__PURE__ */ b("div", { class: "preloader-inner" }, null, -1), Sa = [
|
|
4297
4310
|
wa
|
|
4298
4311
|
];
|
|
4299
4312
|
function xa(e, t) {
|
|
4300
4313
|
return i(), h("div", ka, Sa);
|
|
4301
4314
|
}
|
|
4302
|
-
const St = /* @__PURE__ */
|
|
4315
|
+
const St = /* @__PURE__ */ $(ga, [["render", xa]]), Ea = {
|
|
4303
4316
|
name: "VNotice",
|
|
4304
4317
|
props: {
|
|
4305
4318
|
dataApi: {
|
|
@@ -4328,13 +4341,13 @@ const St = /* @__PURE__ */ I(ga, [["render", xa]]), Ea = {
|
|
|
4328
4341
|
this.hasNotice = Object.keys(this.$props.notice).length > 0, this.noticeProps = this.$props.notice;
|
|
4329
4342
|
}
|
|
4330
4343
|
};
|
|
4331
|
-
function
|
|
4344
|
+
function Ia(e, t, l, o, n, a) {
|
|
4332
4345
|
const s = Oe;
|
|
4333
4346
|
return i(), h("div", null, [
|
|
4334
|
-
n.hasNotice ? (i(), f(s, G(F({ key: 0 }, n.noticeProps)), null, 16)) :
|
|
4347
|
+
n.hasNotice ? (i(), f(s, G(F({ key: 0 }, n.noticeProps)), null, 16)) : E("", !0)
|
|
4335
4348
|
]);
|
|
4336
4349
|
}
|
|
4337
|
-
const xt = /* @__PURE__ */
|
|
4350
|
+
const xt = /* @__PURE__ */ $(Ea, [["render", Ia]]), $a = q({
|
|
4338
4351
|
components: { VLoading: St, VNotice: xt },
|
|
4339
4352
|
props: {
|
|
4340
4353
|
schemaHandler: {
|
|
@@ -4370,39 +4383,39 @@ const xt = /* @__PURE__ */ I(Ea, [["render", $a]]), Ia = q({
|
|
|
4370
4383
|
beforeCreate() {
|
|
4371
4384
|
const e = this.$route.path.split("/").filter((n) => n), t = e.length > 1 ? e.slice(0, e.length - 1).join("/") : e[0], l = "/schema" + this.$route.meta.path, o = { params: this.$route.params };
|
|
4372
4385
|
this.$http.get(this.$props.schemaApi || l, o).then(({ data: n }) => {
|
|
4373
|
-
this.loading = !1,
|
|
4386
|
+
this.loading = !1, Q(n) && (n.notice !== void 0 && (this.haveNotice = !0, Ie(n.notice) ? this.notice = {
|
|
4374
4387
|
title: n.notice
|
|
4375
|
-
} :
|
|
4388
|
+
} : Q(n.notice) && (this.notice = n.notice, this.noticeApi = n.notice.noticeApi), delete n.notice), this.owners = n.ownerNames || [], this.serviceOffLine = n.serviceOffLine || !1), this.schema = this.$props.schemaHandler(n, t), g.commit("app/SET_PAGE_JSON_SCHEMA", { page: this.$route.path, json: this.schema });
|
|
4376
4389
|
});
|
|
4377
4390
|
}
|
|
4378
4391
|
});
|
|
4379
4392
|
const Ca = ["innerHTML"];
|
|
4380
4393
|
function Ta(e, t, l, o, n, a) {
|
|
4381
|
-
const s = Oe, r = xt,
|
|
4382
|
-
return i(), h(
|
|
4394
|
+
const s = Oe, r = xt, d = St;
|
|
4395
|
+
return i(), h(I, null, [
|
|
4383
4396
|
e.owners.length > 0 ? (i(), f(s, {
|
|
4384
4397
|
key: 0,
|
|
4385
4398
|
title: `该页面功能对应开发: [ ${e.owners.join(", ")} ] 有问题可直接企微反馈`,
|
|
4386
4399
|
type: "info",
|
|
4387
4400
|
style: { margin: "0 0 20px 0" },
|
|
4388
4401
|
closable: !1
|
|
4389
|
-
}, null, 8, ["title"])) :
|
|
4402
|
+
}, null, 8, ["title"])) : E("", !0),
|
|
4390
4403
|
e.env === "prod" && e.serviceOffLine ? (i(), h("div", {
|
|
4391
4404
|
key: 1,
|
|
4392
4405
|
class: "offline-notice",
|
|
4393
4406
|
innerHTML: e.serviceOffLine === !0 ? e.setting.serviceOffLineNotice : e.serviceOffLine
|
|
4394
|
-
}, null, 8, Ca)) : (i(), h(
|
|
4407
|
+
}, null, 8, Ca)) : (i(), h(I, { key: 2 }, [
|
|
4395
4408
|
e.haveNotice ? (i(), f(r, {
|
|
4396
4409
|
key: 0,
|
|
4397
4410
|
notice: e.notice,
|
|
4398
4411
|
style: { margin: "0 0 20px 0" },
|
|
4399
4412
|
"data-api": e.noticeApi
|
|
4400
|
-
}, null, 8, ["notice", "data-api"])) :
|
|
4401
|
-
e.loading ? (i(), f(
|
|
4413
|
+
}, null, 8, ["notice", "data-api"])) : E("", !0),
|
|
4414
|
+
e.loading ? (i(), f(d, { key: 1 })) : le(e.$slots, "default", G(F({ key: 2 }, e.schema)), void 0, !0)
|
|
4402
4415
|
], 64))
|
|
4403
4416
|
], 64);
|
|
4404
4417
|
}
|
|
4405
|
-
const se = /* @__PURE__ */
|
|
4418
|
+
const se = /* @__PURE__ */ $($a, [["render", Ta], ["__scopeId", "data-v-4965a709"]]), Et = {
|
|
4406
4419
|
__name: "table",
|
|
4407
4420
|
setup(e) {
|
|
4408
4421
|
const t = (l, o) => {
|
|
@@ -4420,7 +4433,7 @@ const se = /* @__PURE__ */ I(Ia, [["render", Ta], ["__scopeId", "data-v-4965a709
|
|
|
4420
4433
|
};
|
|
4421
4434
|
return (l, o) => (i(), f(se, { "schema-handler": t }, {
|
|
4422
4435
|
default: c((n) => [
|
|
4423
|
-
p(
|
|
4436
|
+
p(x(oe), G(Y(n)), null, 16)
|
|
4424
4437
|
]),
|
|
4425
4438
|
_: 1
|
|
4426
4439
|
}));
|
|
@@ -4428,21 +4441,21 @@ const se = /* @__PURE__ */ I(Ia, [["render", Ta], ["__scopeId", "data-v-4965a709
|
|
|
4428
4441
|
}, xe = {
|
|
4429
4442
|
__name: "form",
|
|
4430
4443
|
setup(e) {
|
|
4431
|
-
const t =
|
|
4432
|
-
const
|
|
4444
|
+
const t = de(), l = st(), o = (r, d) => {
|
|
4445
|
+
const u = Object.keys(z.props);
|
|
4433
4446
|
return Object.keys(r).forEach((m) => {
|
|
4434
|
-
if (
|
|
4447
|
+
if (u.indexOf(m) === -1) {
|
|
4435
4448
|
delete r[m];
|
|
4436
4449
|
return;
|
|
4437
4450
|
}
|
|
4438
|
-
/.*Api$/.test(m) && (r[m] =
|
|
4439
|
-
}), r.saveApi === void 0 && (t.params.id !== void 0 ? (r.saveApi = `/${
|
|
4440
|
-
saveApi:
|
|
4451
|
+
/.*Api$/.test(m) && (r[m] = Z(r[m], t.params));
|
|
4452
|
+
}), r.saveApi === void 0 && (t.params.id !== void 0 ? (r.saveApi = `/${d}/update/${t.params.id}`, r.getApi || (r.getApi = `/${d}/get/${t.params.id}`)) : (delete r.getApi, r.saveApi = `/${d}/create`)), r = A({
|
|
4453
|
+
saveApi: d + "/save",
|
|
4441
4454
|
afterSubmit: "goback",
|
|
4442
4455
|
afterReset: "goback",
|
|
4443
4456
|
mod: t.params.id ? "edit" : "create"
|
|
4444
4457
|
}, r), r;
|
|
4445
|
-
}, n =
|
|
4458
|
+
}, n = D(0), a = () => {
|
|
4446
4459
|
Tt.request({
|
|
4447
4460
|
url: "/form_mutex",
|
|
4448
4461
|
method: "get",
|
|
@@ -4455,24 +4468,24 @@ const se = /* @__PURE__ */ I(Ia, [["render", Ta], ["__scopeId", "data-v-4965a709
|
|
|
4455
4468
|
showCancelButton: !0,
|
|
4456
4469
|
confirmButtonText: "返回",
|
|
4457
4470
|
cancelButtonText: "刷新",
|
|
4458
|
-
callback: (
|
|
4459
|
-
|
|
4471
|
+
callback: (d) => {
|
|
4472
|
+
d === "cancel" ? location.reload() : s();
|
|
4460
4473
|
}
|
|
4461
4474
|
}));
|
|
4462
4475
|
});
|
|
4463
4476
|
};
|
|
4464
|
-
|
|
4465
|
-
t.params.id !== void 0 &&
|
|
4477
|
+
Ze(() => {
|
|
4478
|
+
t.params.id !== void 0 && g.state.settings.formMutex && (a(), n.value = setInterval(a, 2e3));
|
|
4466
4479
|
}), Nt(() => {
|
|
4467
4480
|
clearInterval(n.value);
|
|
4468
4481
|
});
|
|
4469
4482
|
function s() {
|
|
4470
|
-
var r,
|
|
4471
|
-
(r = t.query) != null && r.goback ? l.push((
|
|
4483
|
+
var r, d;
|
|
4484
|
+
(r = t.query) != null && r.goback ? l.push((d = t.query) == null ? void 0 : d.goback) : history.state.back && history.back();
|
|
4472
4485
|
}
|
|
4473
|
-
return (r,
|
|
4474
|
-
default: c((
|
|
4475
|
-
p(
|
|
4486
|
+
return (r, d) => (i(), f(se, { "schema-handler": o }, {
|
|
4487
|
+
default: c((u) => [
|
|
4488
|
+
p(x(z), G(Y(u)), null, 16)
|
|
4476
4489
|
]),
|
|
4477
4490
|
_: 1
|
|
4478
4491
|
}));
|
|
@@ -4551,7 +4564,7 @@ const se = /* @__PURE__ */ I(Ia, [["render", Ta], ["__scopeId", "data-v-4965a709
|
|
|
4551
4564
|
return ["", "新建", "编辑"][this.type];
|
|
4552
4565
|
},
|
|
4553
4566
|
formProps() {
|
|
4554
|
-
let e =
|
|
4567
|
+
let e = Z(this.$props.saveApi, this.formData);
|
|
4555
4568
|
return this.type === 1 && (e = this.$props.createApi), {
|
|
4556
4569
|
saveApi: e,
|
|
4557
4570
|
getApi: this.$props.getApi,
|
|
@@ -4592,7 +4605,7 @@ const se = /* @__PURE__ */ I(Ia, [["render", Ta], ["__scopeId", "data-v-4965a709
|
|
|
4592
4605
|
remove(e) {
|
|
4593
4606
|
this.$http.request({
|
|
4594
4607
|
method: "DELETE",
|
|
4595
|
-
url:
|
|
4608
|
+
url: Z(this.$props.deleteApi, e)
|
|
4596
4609
|
}).then(({ code: t }) => {
|
|
4597
4610
|
t !== 0 ? this.$message.error("操作失败") : this.loadTree();
|
|
4598
4611
|
});
|
|
@@ -4612,7 +4625,7 @@ const se = /* @__PURE__ */ I(Ia, [["render", Ta], ["__scopeId", "data-v-4965a709
|
|
|
4612
4625
|
const n = e.data;
|
|
4613
4626
|
n.pid = t.data.id, this.$http.request({
|
|
4614
4627
|
method: "POST",
|
|
4615
|
-
url:
|
|
4628
|
+
url: Z(this.$props.saveApi, n),
|
|
4616
4629
|
data: n
|
|
4617
4630
|
}).then(({ code: a }) => {
|
|
4618
4631
|
a !== 0 && this.$message.error("操作失败");
|
|
@@ -4620,32 +4633,32 @@ const se = /* @__PURE__ */ I(Ia, [["render", Ta], ["__scopeId", "data-v-4965a709
|
|
|
4620
4633
|
}
|
|
4621
4634
|
}
|
|
4622
4635
|
});
|
|
4623
|
-
const Oa = { class: "card-header" }, Aa = /* @__PURE__ */
|
|
4636
|
+
const Oa = { class: "card-header" }, Aa = /* @__PURE__ */ b("span", null, "列表", -1), Pa = { class: "tree-action" }, Ra = { key: 0 }, La = {
|
|
4624
4637
|
key: 1,
|
|
4625
4638
|
style: { color: "#E6A23C" }
|
|
4626
4639
|
}, Ma = { class: "card-header" };
|
|
4627
|
-
function
|
|
4628
|
-
const s =
|
|
4629
|
-
return i(), f(
|
|
4640
|
+
function Da(e, t, l, o, n, a) {
|
|
4641
|
+
const s = pe, r = $l, d = Ae, u = me, m = w("v-form"), _ = ae;
|
|
4642
|
+
return i(), f(_, {
|
|
4630
4643
|
class: "tree-box",
|
|
4631
4644
|
gutter: 20
|
|
4632
4645
|
}, {
|
|
4633
4646
|
default: c(() => [
|
|
4634
|
-
p(
|
|
4647
|
+
p(u, {
|
|
4635
4648
|
span: 8,
|
|
4636
4649
|
class: "tree-tree"
|
|
4637
4650
|
}, {
|
|
4638
4651
|
default: c(() => [
|
|
4639
|
-
p(
|
|
4652
|
+
p(d, { shadow: "never" }, {
|
|
4640
4653
|
header: c(() => [
|
|
4641
|
-
|
|
4654
|
+
b("div", Oa, [
|
|
4642
4655
|
Aa,
|
|
4643
4656
|
p(s, {
|
|
4644
4657
|
type: "text",
|
|
4645
4658
|
onClick: t[0] || (t[0] = () => e.appendNew())
|
|
4646
4659
|
}, {
|
|
4647
4660
|
default: c(() => [
|
|
4648
|
-
|
|
4661
|
+
S("添加")
|
|
4649
4662
|
]),
|
|
4650
4663
|
_: 1
|
|
4651
4664
|
})
|
|
@@ -4663,77 +4676,77 @@ function ja(e, t, l, o, n, a) {
|
|
|
4663
4676
|
"allow-drop": e.allowDrop,
|
|
4664
4677
|
onNodeDragEnd: e.handleDragEnd
|
|
4665
4678
|
}), {
|
|
4666
|
-
default: c(({ node:
|
|
4667
|
-
|
|
4668
|
-
|
|
4669
|
-
|
|
4670
|
-
|
|
4679
|
+
default: c(({ node: k, data: y }) => [
|
|
4680
|
+
b("span", Pa, [
|
|
4681
|
+
y[e.localTreeProps.props.label] ? (i(), h("span", Ra, B(y[e.localTreeProps.props.label]), 1)) : (i(), h("span", La, "请在右侧表单中修改 --> ")),
|
|
4682
|
+
b("span", null, [
|
|
4683
|
+
y[e.localTreeProps.props.label] ? (i(), f(s, {
|
|
4671
4684
|
key: 0,
|
|
4672
4685
|
class: "button",
|
|
4673
4686
|
type: "text",
|
|
4674
|
-
onClick: () => e.onclick(
|
|
4687
|
+
onClick: () => e.onclick(y)
|
|
4675
4688
|
}, {
|
|
4676
4689
|
default: c(() => [
|
|
4677
|
-
|
|
4690
|
+
S("编辑")
|
|
4678
4691
|
]),
|
|
4679
4692
|
_: 2
|
|
4680
|
-
}, 1032, ["onClick"])) :
|
|
4681
|
-
e.canAppend(
|
|
4693
|
+
}, 1032, ["onClick"])) : E("", !0),
|
|
4694
|
+
e.canAppend(y, k) ? (i(), f(s, {
|
|
4682
4695
|
key: 1,
|
|
4683
4696
|
class: "button",
|
|
4684
4697
|
type: "text",
|
|
4685
|
-
onClick: () => e.append(
|
|
4698
|
+
onClick: () => e.append(y, k)
|
|
4686
4699
|
}, {
|
|
4687
4700
|
default: c(() => [
|
|
4688
|
-
|
|
4701
|
+
S("添加")
|
|
4689
4702
|
]),
|
|
4690
4703
|
_: 2
|
|
4691
|
-
}, 1032, ["onClick"])) :
|
|
4692
|
-
|
|
4704
|
+
}, 1032, ["onClick"])) : E("", !0),
|
|
4705
|
+
y.children === void 0 || y.children.length === 0 ? (i(), f(s, {
|
|
4693
4706
|
key: 2,
|
|
4694
4707
|
class: "button",
|
|
4695
4708
|
type: "text",
|
|
4696
|
-
onClick: () => e.remove(
|
|
4709
|
+
onClick: () => e.remove(y)
|
|
4697
4710
|
}, {
|
|
4698
4711
|
default: c(() => [
|
|
4699
|
-
|
|
4712
|
+
S("删除")
|
|
4700
4713
|
]),
|
|
4701
4714
|
_: 2
|
|
4702
|
-
}, 1032, ["onClick"])) :
|
|
4715
|
+
}, 1032, ["onClick"])) : E("", !0)
|
|
4703
4716
|
])
|
|
4704
4717
|
])
|
|
4705
4718
|
]),
|
|
4706
4719
|
_: 1
|
|
4707
|
-
}, 16, ["data", "allow-drag", "allow-drop", "onNodeDragEnd"])) :
|
|
4720
|
+
}, 16, ["data", "allow-drag", "allow-drop", "onNodeDragEnd"])) : E("", !0)
|
|
4708
4721
|
]),
|
|
4709
4722
|
_: 1
|
|
4710
4723
|
})
|
|
4711
4724
|
]),
|
|
4712
4725
|
_: 1
|
|
4713
4726
|
}),
|
|
4714
|
-
p(
|
|
4727
|
+
p(u, {
|
|
4715
4728
|
span: 16,
|
|
4716
4729
|
class: "tree-form"
|
|
4717
4730
|
}, {
|
|
4718
4731
|
default: c(() => [
|
|
4719
|
-
e.type ? (i(), f(
|
|
4732
|
+
e.type ? (i(), f(d, {
|
|
4720
4733
|
key: 0,
|
|
4721
4734
|
shadow: "never"
|
|
4722
4735
|
}, {
|
|
4723
4736
|
header: c(() => [
|
|
4724
|
-
|
|
4725
|
-
|
|
4737
|
+
b("div", Ma, [
|
|
4738
|
+
b("span", null, B(e.formType), 1)
|
|
4726
4739
|
])
|
|
4727
4740
|
]),
|
|
4728
4741
|
default: c(() => [
|
|
4729
4742
|
(i(), f(m, F({
|
|
4730
4743
|
key: e.formkey,
|
|
4731
4744
|
modelValue: e.formData,
|
|
4732
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
4745
|
+
"onUpdate:modelValue": t[1] || (t[1] = (k) => e.formData = k)
|
|
4733
4746
|
}, e.formProps, { onSubmit: e.submit }), null, 16, ["modelValue", "onSubmit"]))
|
|
4734
4747
|
]),
|
|
4735
4748
|
_: 1
|
|
4736
|
-
})) :
|
|
4749
|
+
})) : E("", !0)
|
|
4737
4750
|
]),
|
|
4738
4751
|
_: 1
|
|
4739
4752
|
})
|
|
@@ -4741,7 +4754,7 @@ function ja(e, t, l, o, n, a) {
|
|
|
4741
4754
|
_: 1
|
|
4742
4755
|
});
|
|
4743
4756
|
}
|
|
4744
|
-
const Fe = /* @__PURE__ */
|
|
4757
|
+
const Fe = /* @__PURE__ */ $(Ba, [["render", Da]]), ja = {
|
|
4745
4758
|
__name: "tree",
|
|
4746
4759
|
setup(e) {
|
|
4747
4760
|
const t = (l, o) => {
|
|
@@ -4760,11 +4773,11 @@ const Fe = /* @__PURE__ */ I(Ba, [["render", ja]]), Da = {
|
|
|
4760
4773
|
}, ge = {
|
|
4761
4774
|
__name: "container",
|
|
4762
4775
|
setup(e) {
|
|
4763
|
-
const t =
|
|
4776
|
+
const t = D(0);
|
|
4764
4777
|
return pl(() => {
|
|
4765
4778
|
t.value++;
|
|
4766
4779
|
}), (l, o) => {
|
|
4767
|
-
const n =
|
|
4780
|
+
const n = w("router-view");
|
|
4768
4781
|
return i(), f(n);
|
|
4769
4782
|
};
|
|
4770
4783
|
}
|
|
@@ -4801,28 +4814,28 @@ function Va(e, t, l) {
|
|
|
4801
4814
|
if (l.length === 0)
|
|
4802
4815
|
return {};
|
|
4803
4816
|
let o = A({}, Na);
|
|
4804
|
-
if (o.title.text = e,
|
|
4817
|
+
if (o.title.text = e, Ie(t)) {
|
|
4805
4818
|
const n = [], a = Object.keys(l[0]);
|
|
4806
|
-
let s = a[0], r = a.filter((
|
|
4819
|
+
let s = a[0], r = a.filter((u, m) => m > 0), d = t;
|
|
4807
4820
|
if (t.indexOf(":") > -1) {
|
|
4808
|
-
const
|
|
4809
|
-
|
|
4821
|
+
const u = t.split(":"), m = u[1].split(",");
|
|
4822
|
+
d = u[0], s = m[0], r = m.filter((_, k) => k > 0);
|
|
4810
4823
|
}
|
|
4811
|
-
r.forEach((
|
|
4824
|
+
r.forEach((u) => {
|
|
4812
4825
|
const m = [];
|
|
4813
|
-
l.forEach((
|
|
4814
|
-
m.push(
|
|
4826
|
+
l.forEach((_) => {
|
|
4827
|
+
m.push(_[u]);
|
|
4815
4828
|
}), o.series.push({
|
|
4816
|
-
name:
|
|
4817
|
-
type:
|
|
4829
|
+
name: u,
|
|
4830
|
+
type: d,
|
|
4818
4831
|
smooth: !0,
|
|
4819
4832
|
data: m
|
|
4820
|
-
}), o.legend.data.push(
|
|
4821
|
-
}), l.forEach((
|
|
4822
|
-
n.push(
|
|
4833
|
+
}), o.legend.data.push(u);
|
|
4834
|
+
}), l.forEach((u) => {
|
|
4835
|
+
n.push(u[s]);
|
|
4823
4836
|
}), o.xAxis.data = n;
|
|
4824
4837
|
}
|
|
4825
|
-
return
|
|
4838
|
+
return Q(t) && (o = A(o, t)), o;
|
|
4826
4839
|
}
|
|
4827
4840
|
const qa = q({
|
|
4828
4841
|
name: "NumberPanel",
|
|
@@ -4837,19 +4850,19 @@ const qa = q({
|
|
|
4837
4850
|
}
|
|
4838
4851
|
}), Ua = { class: "number-panel-title" }, Ha = { class: "number" }, Fa = { class: "name" };
|
|
4839
4852
|
function Ga(e, t, l, o, n, a) {
|
|
4840
|
-
return i(!0), h(
|
|
4841
|
-
|
|
4842
|
-
(i(!0), h(
|
|
4843
|
-
key:
|
|
4853
|
+
return i(!0), h(I, null, O(e.dataList, (s, r) => (i(), h("span", { key: r }, [
|
|
4854
|
+
b("div", Ua, [
|
|
4855
|
+
(i(!0), h(I, null, O(Object.keys(s), (d, u) => (i(), h("div", {
|
|
4856
|
+
key: u,
|
|
4844
4857
|
class: "title-inner"
|
|
4845
4858
|
}, [
|
|
4846
|
-
|
|
4847
|
-
|
|
4859
|
+
b("p", Ha, B(s[d]), 1),
|
|
4860
|
+
b("p", Fa, B(d), 1)
|
|
4848
4861
|
]))), 128))
|
|
4849
4862
|
])
|
|
4850
4863
|
]))), 128);
|
|
4851
4864
|
}
|
|
4852
|
-
const Ja = /* @__PURE__ */
|
|
4865
|
+
const Ja = /* @__PURE__ */ $(qa, [["render", Ga], ["__scopeId", "data-v-cc0d8293"]]), za = {
|
|
4853
4866
|
components: {
|
|
4854
4867
|
Chart: Tl,
|
|
4855
4868
|
Md: Rl,
|
|
@@ -4907,14 +4920,14 @@ function Ka(e, t, l, o, n, a) {
|
|
|
4907
4920
|
class: "part"
|
|
4908
4921
|
}, {
|
|
4909
4922
|
default: c(() => [
|
|
4910
|
-
(i(), f(
|
|
4923
|
+
(i(), f(Xe(o.comptype()), G(Y(o.compprops(l.option))), null, 16))
|
|
4911
4924
|
]),
|
|
4912
4925
|
_: 1
|
|
4913
4926
|
})), [
|
|
4914
4927
|
[r, !0]
|
|
4915
4928
|
]);
|
|
4916
4929
|
}
|
|
4917
|
-
const Wa = /* @__PURE__ */
|
|
4930
|
+
const Wa = /* @__PURE__ */ $(za, [["render", Ka], ["__scopeId", "data-v-a5a65cc1"]]), Xa = /* @__PURE__ */ q({
|
|
4918
4931
|
__name: "index",
|
|
4919
4932
|
props: {
|
|
4920
4933
|
filter: {
|
|
@@ -4928,13 +4941,13 @@ const Wa = /* @__PURE__ */ I(za, [["render", Ka], ["__scopeId", "data-v-a5a65cc1
|
|
|
4928
4941
|
},
|
|
4929
4942
|
setup(e) {
|
|
4930
4943
|
const t = e, l = useRoute();
|
|
4931
|
-
|
|
4944
|
+
Ze(() => {
|
|
4932
4945
|
});
|
|
4933
|
-
const o =
|
|
4946
|
+
const o = D({});
|
|
4934
4947
|
ze(() => {
|
|
4935
4948
|
var m;
|
|
4936
|
-
(m = t.filter) == null || m.forEach((
|
|
4937
|
-
|
|
4949
|
+
(m = t.filter) == null || m.forEach((_) => {
|
|
4950
|
+
_.default !== null && (o.value[_.field] = _.default);
|
|
4938
4951
|
});
|
|
4939
4952
|
});
|
|
4940
4953
|
const n = {
|
|
@@ -4947,51 +4960,51 @@ const Wa = /* @__PURE__ */ I(za, [["render", Ka], ["__scopeId", "data-v-a5a65cc1
|
|
|
4947
4960
|
cancelButton: {
|
|
4948
4961
|
text: "重置"
|
|
4949
4962
|
}
|
|
4950
|
-
}, a =
|
|
4963
|
+
}, a = D(1), s = D(t.filter), r = D(t.dataPart), d = M(() => {
|
|
4951
4964
|
let m = l.params.id;
|
|
4952
4965
|
if (!m) {
|
|
4953
|
-
const
|
|
4954
|
-
m =
|
|
4966
|
+
const _ = l.path.split("/");
|
|
4967
|
+
m = _[_.length - 1];
|
|
4955
4968
|
}
|
|
4956
4969
|
return "/focusbi_report/view/" + m;
|
|
4957
|
-
}),
|
|
4958
|
-
Tt.get(
|
|
4959
|
-
s.value =
|
|
4970
|
+
}), u = (m) => {
|
|
4971
|
+
Tt.get(d.value, { params: m }).then(({ data: _ }) => {
|
|
4972
|
+
s.value = _.filter, r.value = _.dataPart, a.value++;
|
|
4960
4973
|
});
|
|
4961
4974
|
};
|
|
4962
|
-
return (m,
|
|
4963
|
-
const
|
|
4975
|
+
return (m, _) => {
|
|
4976
|
+
const k = Ae, y = me, J = Oe, U = ae;
|
|
4964
4977
|
return i(), f(U, null, {
|
|
4965
4978
|
default: c(() => [
|
|
4966
|
-
|
|
4979
|
+
x(s).length > 0 ? (i(), f(y, {
|
|
4967
4980
|
key: 0,
|
|
4968
4981
|
span: 24
|
|
4969
4982
|
}, {
|
|
4970
4983
|
default: c(() => [
|
|
4971
|
-
p(
|
|
4984
|
+
p(k, {
|
|
4972
4985
|
shadow: "never",
|
|
4973
4986
|
class: "part-filter"
|
|
4974
4987
|
}, {
|
|
4975
4988
|
default: c(() => [
|
|
4976
|
-
p(
|
|
4977
|
-
modelValue:
|
|
4978
|
-
"onUpdate:modelValue":
|
|
4979
|
-
"form-items":
|
|
4989
|
+
p(x(z), {
|
|
4990
|
+
modelValue: x(o),
|
|
4991
|
+
"onUpdate:modelValue": _[0] || (_[0] = (T) => qt(o) ? o.value = T : null),
|
|
4992
|
+
"form-items": x(s),
|
|
4980
4993
|
options: n,
|
|
4981
|
-
onSubmit:
|
|
4994
|
+
onSubmit: u
|
|
4982
4995
|
}, null, 8, ["modelValue", "form-items"])
|
|
4983
4996
|
]),
|
|
4984
4997
|
_: 1
|
|
4985
4998
|
})
|
|
4986
4999
|
]),
|
|
4987
5000
|
_: 1
|
|
4988
|
-
})) :
|
|
4989
|
-
p(
|
|
5001
|
+
})) : E("", !0),
|
|
5002
|
+
p(y, { span: 24 }, {
|
|
4990
5003
|
default: c(() => [
|
|
4991
5004
|
p(U, { gutter: 20 }, {
|
|
4992
5005
|
default: c(() => [
|
|
4993
|
-
(i(!0), h(
|
|
4994
|
-
key:
|
|
5006
|
+
(i(!0), h(I, null, O(x(r), (T, X) => (i(), f(y, {
|
|
5007
|
+
key: X,
|
|
4995
5008
|
span: T.col || 24
|
|
4996
5009
|
}, {
|
|
4997
5010
|
default: c(() => [
|
|
@@ -5001,11 +5014,11 @@ const Wa = /* @__PURE__ */ I(za, [["render", Ka], ["__scopeId", "data-v-a5a65cc1
|
|
|
5001
5014
|
type: "error"
|
|
5002
5015
|
}, {
|
|
5003
5016
|
default: c(() => [
|
|
5004
|
-
|
|
5017
|
+
S(B(T.errMsg), 1)
|
|
5005
5018
|
]),
|
|
5006
5019
|
_: 2
|
|
5007
5020
|
}, 1032, ["title"])) : (i(), f(Wa, {
|
|
5008
|
-
key:
|
|
5021
|
+
key: x(a),
|
|
5009
5022
|
option: T
|
|
5010
5023
|
}, null, 8, ["option"]))
|
|
5011
5024
|
]),
|
|
@@ -5023,10 +5036,10 @@ const Wa = /* @__PURE__ */ I(za, [["render", Ka], ["__scopeId", "data-v-a5a65cc1
|
|
|
5023
5036
|
};
|
|
5024
5037
|
}
|
|
5025
5038
|
});
|
|
5026
|
-
const
|
|
5039
|
+
const Za = {
|
|
5027
5040
|
__name: "report",
|
|
5028
5041
|
setup(e) {
|
|
5029
|
-
const t = useRoute(), l =
|
|
5042
|
+
const t = useRoute(), l = M(() => {
|
|
5030
5043
|
let o = t.params.id;
|
|
5031
5044
|
if (!o) {
|
|
5032
5045
|
const n = t.path.split("/");
|
|
@@ -5034,19 +5047,19 @@ const Qa = {
|
|
|
5034
5047
|
}
|
|
5035
5048
|
return "/focusbi_report/view/" + o;
|
|
5036
5049
|
});
|
|
5037
|
-
return (o, n) => (i(), f(se, { "schema-api":
|
|
5050
|
+
return (o, n) => (i(), f(se, { "schema-api": x(l) }, {
|
|
5038
5051
|
default: c((a) => [
|
|
5039
|
-
p(
|
|
5052
|
+
p(Xa, G(Y(a)), null, 16)
|
|
5040
5053
|
]),
|
|
5041
5054
|
_: 1
|
|
5042
5055
|
}, 8, ["schema-api"]));
|
|
5043
5056
|
}
|
|
5044
5057
|
};
|
|
5045
|
-
const
|
|
5058
|
+
const Qa = (e) => p("div", null, [e.test]), Ya = {
|
|
5046
5059
|
card: al,
|
|
5047
5060
|
form: z,
|
|
5048
5061
|
table: oe,
|
|
5049
|
-
test:
|
|
5062
|
+
test: Qa,
|
|
5050
5063
|
row: sl,
|
|
5051
5064
|
col: il
|
|
5052
5065
|
}, es = {
|
|
@@ -5082,9 +5095,9 @@ function ts(e) {
|
|
|
5082
5095
|
type: l[a],
|
|
5083
5096
|
children: [n]
|
|
5084
5097
|
};
|
|
5085
|
-
return n.span = o,
|
|
5098
|
+
return n.span = o, je([n]);
|
|
5086
5099
|
}
|
|
5087
|
-
function
|
|
5100
|
+
function je(e) {
|
|
5088
5101
|
const t = {
|
|
5089
5102
|
type: "row",
|
|
5090
5103
|
props: {
|
|
@@ -5096,12 +5109,12 @@ function De(e) {
|
|
|
5096
5109
|
return e.forEach((l) => {
|
|
5097
5110
|
var s, r;
|
|
5098
5111
|
let o = Object.assign({}, l);
|
|
5099
|
-
if (
|
|
5100
|
-
let
|
|
5101
|
-
Object.keys((r = o.props) == null ? void 0 : r.style).forEach((
|
|
5112
|
+
if (Q((s = o.props) == null ? void 0 : s.style)) {
|
|
5113
|
+
let d = "";
|
|
5114
|
+
Object.keys((r = o.props) == null ? void 0 : r.style).forEach((u) => {
|
|
5102
5115
|
var m;
|
|
5103
|
-
|
|
5104
|
-
}), o.props.style =
|
|
5116
|
+
d += u + ":" + ((m = o.props) == null ? void 0 : m.style[u]) + ";";
|
|
5117
|
+
}), o.props.style = d;
|
|
5105
5118
|
}
|
|
5106
5119
|
const n = {
|
|
5107
5120
|
span: o.span ?? 24,
|
|
@@ -5118,37 +5131,37 @@ function De(e) {
|
|
|
5118
5131
|
o = A({
|
|
5119
5132
|
props: {}
|
|
5120
5133
|
}, es[o.type] || {}, o);
|
|
5121
|
-
const a =
|
|
5122
|
-
a.length && (o.children =
|
|
5134
|
+
const a = It(o.children);
|
|
5135
|
+
a.length && (o.children = je(a)), t.children.push({
|
|
5123
5136
|
type: "col",
|
|
5124
5137
|
props: n,
|
|
5125
5138
|
children: [o]
|
|
5126
5139
|
});
|
|
5127
5140
|
}), [t];
|
|
5128
5141
|
}
|
|
5129
|
-
function
|
|
5130
|
-
return tt(e) ? e :
|
|
5142
|
+
function It(e) {
|
|
5143
|
+
return tt(e) ? e : Q(e) ? [e] : [];
|
|
5131
5144
|
}
|
|
5132
5145
|
let Ee = {};
|
|
5133
|
-
const
|
|
5146
|
+
const $t = (e) => {
|
|
5134
5147
|
const t = Ya[e.type] || Ee[e.type] || e.type;
|
|
5135
5148
|
return Ht(t, e.props, {
|
|
5136
|
-
default: () =>
|
|
5149
|
+
default: () => It(e.children).map((l) => $t(l))
|
|
5137
5150
|
});
|
|
5138
|
-
}, ls = (e) => (Object.keys(Ee).length === 0 && (Ee = Ut().appContext.components),
|
|
5151
|
+
}, ls = (e) => (Object.keys(Ee).length === 0 && (Ee = Ut().appContext.components), je(Object.values(e.schema)).map((l) => $t(l))), ns = {
|
|
5139
5152
|
__name: "custom",
|
|
5140
5153
|
setup(e) {
|
|
5141
|
-
const t =
|
|
5154
|
+
const t = D([]), l = (o, n) => (t.value = Ft(o), o);
|
|
5142
5155
|
return (o, n) => (i(), f(se, { "schema-handler": l }, {
|
|
5143
5156
|
default: c(() => [
|
|
5144
|
-
p(
|
|
5157
|
+
p(x(ls), { schema: x(t) }, null, 8, ["schema"])
|
|
5145
5158
|
]),
|
|
5146
5159
|
_: 1
|
|
5147
5160
|
}));
|
|
5148
5161
|
}
|
|
5149
5162
|
};
|
|
5150
5163
|
let te = {};
|
|
5151
|
-
function
|
|
5164
|
+
function Ci(e) {
|
|
5152
5165
|
te = e;
|
|
5153
5166
|
}
|
|
5154
5167
|
const os = (e) => {
|
|
@@ -5159,25 +5172,25 @@ const os = (e) => {
|
|
|
5159
5172
|
if (e.path === "#")
|
|
5160
5173
|
return ge;
|
|
5161
5174
|
switch (e.page_type) {
|
|
5162
|
-
case
|
|
5175
|
+
case j.list:
|
|
5163
5176
|
return Et;
|
|
5164
|
-
case
|
|
5177
|
+
case j.form:
|
|
5165
5178
|
return xe;
|
|
5166
|
-
case
|
|
5167
|
-
case
|
|
5179
|
+
case j.custom:
|
|
5180
|
+
case j.localComp:
|
|
5168
5181
|
return t(e.view || "");
|
|
5169
|
-
case
|
|
5170
|
-
return
|
|
5171
|
-
case
|
|
5172
|
-
return
|
|
5173
|
-
case
|
|
5182
|
+
case j.tree:
|
|
5183
|
+
return ja;
|
|
5184
|
+
case j.report:
|
|
5185
|
+
return Za;
|
|
5186
|
+
case j.customSchema:
|
|
5174
5187
|
return ns;
|
|
5175
5188
|
}
|
|
5176
5189
|
return ge;
|
|
5177
5190
|
};
|
|
5178
5191
|
function as(e) {
|
|
5179
5192
|
let t = e.path;
|
|
5180
|
-
return e.type === L.menu && e.page_type ===
|
|
5193
|
+
return e.type === L.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;
|
|
5181
5194
|
}
|
|
5182
5195
|
function ss(e) {
|
|
5183
5196
|
return (e.path + e.name).split("/").filter((t) => t).join("_");
|
|
@@ -5199,7 +5212,7 @@ const Ct = (e) => {
|
|
|
5199
5212
|
},
|
|
5200
5213
|
children: e.children ? e.children.map((o) => Ct(o)) : []
|
|
5201
5214
|
};
|
|
5202
|
-
if (e.page_type ===
|
|
5215
|
+
if (e.page_type === j.entity) {
|
|
5203
5216
|
const o = e.path + "/list", n = e.path + "/form", a = e.path + "/:id", s = [{
|
|
5204
5217
|
path: o,
|
|
5205
5218
|
name: e.name + "列表" + e.id,
|
|
@@ -5281,8 +5294,8 @@ function rs(e) {
|
|
|
5281
5294
|
o();
|
|
5282
5295
|
return;
|
|
5283
5296
|
}
|
|
5284
|
-
await
|
|
5285
|
-
const n = await
|
|
5297
|
+
await g.dispatch("user/info");
|
|
5298
|
+
const n = await g.dispatch("user/loadRemoteRoutes"), a = is(n);
|
|
5286
5299
|
a.forEach((s) => {
|
|
5287
5300
|
s.routes.forEach((r) => {
|
|
5288
5301
|
e.addRoute({
|
|
@@ -5291,20 +5304,20 @@ function rs(e) {
|
|
|
5291
5304
|
children: [r]
|
|
5292
5305
|
});
|
|
5293
5306
|
});
|
|
5294
|
-
}), e.addRoute({ name: "404", path: "/:pathMatch(.*)*", redirect: "/404", hidden: !0 }),
|
|
5307
|
+
}), e.addRoute({ name: "404", path: "/:pathMatch(.*)*", redirect: "/404", hidden: !0 }), g.commit("user/updateRemoteRouter", a), await e.replace(t), o();
|
|
5295
5308
|
});
|
|
5296
5309
|
}
|
|
5297
5310
|
function cs(e) {
|
|
5298
5311
|
e.beforeEach(async (t, l, o) => {
|
|
5299
5312
|
var r;
|
|
5300
|
-
const a = [
|
|
5301
|
-
for (let
|
|
5302
|
-
const
|
|
5303
|
-
(r =
|
|
5313
|
+
const a = [g.state.settings.title || ""], s = t.matched.length;
|
|
5314
|
+
for (let d = s; d > s - 3; d--) {
|
|
5315
|
+
const u = t.matched[d - 1];
|
|
5316
|
+
(r = u == null ? void 0 : u.meta) != null && r.title && a.push(u.meta.title + "");
|
|
5304
5317
|
}
|
|
5305
5318
|
a.length > 1 && (document.title = a.reverse().join("-")), o();
|
|
5306
5319
|
}), e.afterEach(async (t, l, o) => {
|
|
5307
|
-
Object.keys(t.meta).length > 0 && await
|
|
5320
|
+
Object.keys(t.meta).length > 0 && await g.dispatch("app/setCurrentMeta", t.meta);
|
|
5308
5321
|
});
|
|
5309
5322
|
}
|
|
5310
5323
|
function us(e) {
|
|
@@ -5312,7 +5325,10 @@ function us(e) {
|
|
|
5312
5325
|
}
|
|
5313
5326
|
us(K);
|
|
5314
5327
|
function ps() {
|
|
5315
|
-
return
|
|
5328
|
+
return g.state.user.token;
|
|
5329
|
+
}
|
|
5330
|
+
function ds() {
|
|
5331
|
+
return g.state.user.expired;
|
|
5316
5332
|
}
|
|
5317
5333
|
function Ge(e) {
|
|
5318
5334
|
ln({
|
|
@@ -5322,26 +5338,28 @@ function Ge(e) {
|
|
|
5322
5338
|
grouping: !0
|
|
5323
5339
|
});
|
|
5324
5340
|
}
|
|
5325
|
-
const
|
|
5341
|
+
const ms = {
|
|
5326
5342
|
onFulfilled: function(e) {
|
|
5327
5343
|
var l;
|
|
5328
5344
|
e.headers = e.headers || {};
|
|
5329
5345
|
const t = ps();
|
|
5330
5346
|
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;
|
|
5331
5347
|
}
|
|
5332
|
-
},
|
|
5348
|
+
}, fs = {
|
|
5333
5349
|
onFulfilled(e) {
|
|
5334
|
-
var o, n, a, s, r,
|
|
5350
|
+
var o, n, a, s, r, d, u;
|
|
5335
5351
|
if (!(((o = e.config) == null ? void 0 : o.notHoldApiErr) !== void 0 && ((n = e.config) == null ? void 0 : n.notHoldApiErr) === !0) && e.data.code !== 0) {
|
|
5336
5352
|
const m = e.data.message || `接口请求错误 ${e.config.method}::${(a = e.config.url) == null ? void 0 : a.split("?")[0]}`;
|
|
5337
5353
|
if (e.data.code === 401) {
|
|
5338
|
-
|
|
5354
|
+
if (ds())
|
|
5355
|
+
return;
|
|
5356
|
+
g.dispatch("user/SetExpired"), Ue.alert("登录信息已过期或未登录, 是否跳转登录", "操作提醒", {
|
|
5339
5357
|
showClose: !1,
|
|
5340
5358
|
confirmButtonText: "重新登录",
|
|
5341
5359
|
showCancelButton: !0,
|
|
5342
5360
|
cancelButtonText: "取消",
|
|
5343
|
-
callback: (
|
|
5344
|
-
|
|
5361
|
+
callback: (_) => {
|
|
5362
|
+
_ === "confirm" && (ft(), location.href = location.origin + location.pathname + location.hash.replace("#", "#/?redirect="), location.reload()), g.dispatch("user/SetExpired");
|
|
5345
5363
|
}
|
|
5346
5364
|
});
|
|
5347
5365
|
return;
|
|
@@ -5350,8 +5368,8 @@ const ds = {
|
|
|
5350
5368
|
return Promise.reject(m);
|
|
5351
5369
|
}
|
|
5352
5370
|
let l = (r = (s = e.data) == null ? void 0 : s.data) == null ? void 0 : r._message_box;
|
|
5353
|
-
return l !== void 0 && (
|
|
5354
|
-
message: (
|
|
5371
|
+
return l !== void 0 && (Ie(l) && (l = {
|
|
5372
|
+
message: (u = (d = e.data) == null ? void 0 : d.data) == null ? void 0 : u._message_box
|
|
5355
5373
|
}), Ue({
|
|
5356
5374
|
title: "提示",
|
|
5357
5375
|
type: "success",
|
|
@@ -5361,29 +5379,29 @@ const ds = {
|
|
|
5361
5379
|
},
|
|
5362
5380
|
onRejected(e) {
|
|
5363
5381
|
var t;
|
|
5364
|
-
return
|
|
5382
|
+
return $e.isCancel(e) ? Promise.reject("") : (Ge(`${e.message} ${e.config.method}::${(t = e.config.url) == null ? void 0 : t.split("?")[0]}`), Promise.reject(e));
|
|
5365
5383
|
}
|
|
5366
|
-
},
|
|
5384
|
+
}, hs = [
|
|
5367
5385
|
{
|
|
5368
5386
|
request: on,
|
|
5369
5387
|
response: an
|
|
5370
5388
|
},
|
|
5371
5389
|
{
|
|
5372
|
-
request:
|
|
5373
|
-
response:
|
|
5390
|
+
request: ms,
|
|
5391
|
+
response: fs
|
|
5374
5392
|
}
|
|
5375
5393
|
];
|
|
5376
5394
|
function Ne(e = {}) {
|
|
5377
|
-
const t =
|
|
5395
|
+
const t = fe.axios || {}, l = A(t, e || {}), o = $e.create({
|
|
5378
5396
|
...l
|
|
5379
5397
|
// adapter: (c) => cacheAdapter(c, defaultAxios)
|
|
5380
5398
|
});
|
|
5381
|
-
return
|
|
5399
|
+
return hs.forEach((n) => {
|
|
5382
5400
|
o.interceptors.request.use(n.request.onFulfilled, n.request.onRejected), o.interceptors.response.use(n.response.onFulfilled, n.response.onRejected);
|
|
5383
5401
|
}), o;
|
|
5384
5402
|
}
|
|
5385
5403
|
const Tt = Ne();
|
|
5386
|
-
const
|
|
5404
|
+
const bs = {
|
|
5387
5405
|
beforeMount(e, t) {
|
|
5388
5406
|
e.clickOutsideEvent = function(l) {
|
|
5389
5407
|
e === l.target || e.contains(l.target) || t.value(l, e);
|
|
@@ -5392,13 +5410,13 @@ const hs = {
|
|
|
5392
5410
|
unmounted(e) {
|
|
5393
5411
|
document.body.removeEventListener("click", e.clickOutsideEvent);
|
|
5394
5412
|
}
|
|
5395
|
-
}, W = Al(),
|
|
5413
|
+
}, W = Al(), _s = {
|
|
5396
5414
|
mounted: (e, t) => {
|
|
5397
5415
|
e !== null && (t.value, e.oncontextmenu = (l) => {
|
|
5398
5416
|
l.preventDefault(), l.stopPropagation(), l.cancelBubble = !0, t.value && W.emit("right-click", { event: l, data: t.value });
|
|
5399
5417
|
});
|
|
5400
5418
|
}
|
|
5401
|
-
},
|
|
5419
|
+
}, ys = {
|
|
5402
5420
|
mounted(e) {
|
|
5403
5421
|
}
|
|
5404
5422
|
};
|
|
@@ -5408,13 +5426,13 @@ function Je(e, t) {
|
|
|
5408
5426
|
l += o[`offset${t}`], o = o.offsetParent;
|
|
5409
5427
|
return l;
|
|
5410
5428
|
}
|
|
5411
|
-
const
|
|
5429
|
+
const vs = {
|
|
5412
5430
|
mounted: (e, t) => {
|
|
5413
5431
|
if (e === null || !t.value.dev)
|
|
5414
5432
|
return;
|
|
5415
5433
|
let l = e;
|
|
5416
5434
|
if (t.value.parent)
|
|
5417
|
-
for (let
|
|
5435
|
+
for (let d = 0; d < t.value.parent; d++)
|
|
5418
5436
|
l.parentElement && (l = l.parentElement);
|
|
5419
5437
|
l.classList.add("devtool-hover");
|
|
5420
5438
|
const o = document.createElement("i");
|
|
@@ -5424,75 +5442,75 @@ const ys = {
|
|
|
5424
5442
|
const n = document.createElement("span");
|
|
5425
5443
|
n.className = "dev-action-edit", n.title = "编辑";
|
|
5426
5444
|
const a = document.createElement("i");
|
|
5427
|
-
a.className = "iconfont ra-editor1", n.appendChild(a), n.onclick = (
|
|
5428
|
-
W.emit("dev-action", { event:
|
|
5445
|
+
a.className = "iconfont ra-editor1", n.appendChild(a), n.onclick = (d) => {
|
|
5446
|
+
W.emit("dev-action", { event: d, data: { type: "edit", devId: t.value.devId } });
|
|
5429
5447
|
}, o.appendChild(n);
|
|
5430
5448
|
const s = document.createElement("span");
|
|
5431
5449
|
s.className = "dev-action-del", s.title = "删除";
|
|
5432
5450
|
const r = document.createElement("i");
|
|
5433
|
-
r.className = "iconfont ra-cut", s.appendChild(r), s.onclick = (
|
|
5434
|
-
W.emit("dev-action", { event:
|
|
5451
|
+
r.className = "iconfont ra-cut", s.appendChild(r), s.onclick = (d) => {
|
|
5452
|
+
W.emit("dev-action", { event: d, data: { type: "del", devId: t.value.devId } });
|
|
5435
5453
|
}, o.appendChild(s), l.insertBefore(o, l.firstChild);
|
|
5436
5454
|
}
|
|
5437
|
-
},
|
|
5455
|
+
}, gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5438
5456
|
__proto__: null,
|
|
5439
|
-
devtool:
|
|
5440
|
-
outClick:
|
|
5441
|
-
resize:
|
|
5442
|
-
rightClick:
|
|
5457
|
+
devtool: vs,
|
|
5458
|
+
outClick: bs,
|
|
5459
|
+
resize: ys,
|
|
5460
|
+
rightClick: _s
|
|
5443
5461
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5444
|
-
let
|
|
5445
|
-
function Ci(e) {
|
|
5446
|
-
return e ? Ne(A(me.axios, e)) : ce;
|
|
5447
|
-
}
|
|
5462
|
+
let ue;
|
|
5448
5463
|
function Ti(e) {
|
|
5449
|
-
|
|
5464
|
+
return e ? Ne(A(fe.axios, e)) : ue;
|
|
5465
|
+
}
|
|
5466
|
+
function Bi(e) {
|
|
5467
|
+
const t = A(fe, e), l = Gt(Ml), o = $s(t), n = t.plugins || [];
|
|
5450
5468
|
n.unshift(o), n.forEach((a) => {
|
|
5451
|
-
|
|
5452
|
-
}), t != null && t.mock && Jl(),
|
|
5469
|
+
Is(l, a);
|
|
5470
|
+
}), t != null && t.mock && Jl(), ue = Ne(t.axios), g.dispatch("setHttp", ue).then(), g.dispatch("settings/updateSettings", e == null ? void 0 : e.settings).then(), g.dispatch("app/setBaseAPI", t == null ? void 0 : t.axios.baseURL).then(), l.config.globalProperties.$http = ue, l.config.globalProperties.$router = K, window.App = l, window.OmsOptions = t, Bl(() => ({
|
|
5453
5471
|
"X-Token": Me()
|
|
5454
5472
|
})), K.isReady().then(() => l.mount("#app"));
|
|
5455
5473
|
}
|
|
5456
|
-
function
|
|
5474
|
+
function ks(e, t = {}) {
|
|
5457
5475
|
Object.keys(t).forEach((l) => {
|
|
5458
5476
|
e.component(l, t[l]);
|
|
5459
5477
|
});
|
|
5460
5478
|
}
|
|
5461
|
-
function
|
|
5479
|
+
function ws(e = []) {
|
|
5462
5480
|
e.forEach((t) => {
|
|
5463
5481
|
K.addRoute(t);
|
|
5464
|
-
}),
|
|
5482
|
+
}), g.commit("user/setCustomRoutes", e);
|
|
5465
5483
|
}
|
|
5466
|
-
function
|
|
5484
|
+
function Ss(e, t) {
|
|
5467
5485
|
t.forEach((l) => {
|
|
5468
|
-
|
|
5486
|
+
Q(l) && (l = [l]), e.use(...l);
|
|
5469
5487
|
});
|
|
5470
5488
|
}
|
|
5471
|
-
function
|
|
5489
|
+
function xs(e, t = {}) {
|
|
5472
5490
|
Object.keys(t).forEach((l) => {
|
|
5473
5491
|
e.directive(l, t[l]);
|
|
5474
5492
|
});
|
|
5475
5493
|
}
|
|
5476
|
-
function
|
|
5494
|
+
function Es(e = {}) {
|
|
5477
5495
|
const t = ["app", "settings", "user"];
|
|
5478
5496
|
Object.keys(e).forEach((l) => {
|
|
5479
5497
|
if (t.indexOf(l) !== -1) {
|
|
5480
5498
|
console.warn(`storeModule name [${l}] is use by base, please change it!`);
|
|
5481
5499
|
return;
|
|
5482
5500
|
}
|
|
5483
|
-
|
|
5501
|
+
g.registerModule(l, e[l]);
|
|
5484
5502
|
});
|
|
5485
5503
|
}
|
|
5486
|
-
function
|
|
5487
|
-
|
|
5504
|
+
function Is(e, t) {
|
|
5505
|
+
ks(e, t.components || {}), ws(t.routes || []), Ss(e, t.use || []), xs(e, t.directives || {}), Es(t.storeModules || {}), dt(t.mockApis || []);
|
|
5488
5506
|
}
|
|
5489
5507
|
function $s(e) {
|
|
5490
5508
|
var t;
|
|
5491
5509
|
return {
|
|
5492
5510
|
components: { VIcon: Ol },
|
|
5493
|
-
directives:
|
|
5511
|
+
directives: gs,
|
|
5494
5512
|
use: [
|
|
5495
|
-
|
|
5513
|
+
g,
|
|
5496
5514
|
K,
|
|
5497
5515
|
[nl, { locale: nt, ...(t = e.settings) == null ? void 0 : t.ElementPlus }]
|
|
5498
5516
|
]
|
|
@@ -5502,21 +5520,21 @@ export {
|
|
|
5502
5520
|
wt as BaseSso,
|
|
5503
5521
|
ge as Container,
|
|
5504
5522
|
$i as DingTalk,
|
|
5505
|
-
|
|
5523
|
+
Ii as Github,
|
|
5506
5524
|
vt as Layout,
|
|
5507
5525
|
L as MenuType,
|
|
5508
5526
|
ln as Message,
|
|
5509
5527
|
Ue as MessageBox,
|
|
5510
|
-
|
|
5528
|
+
j as PageType,
|
|
5511
5529
|
_a as allSso,
|
|
5512
|
-
|
|
5530
|
+
Bi as createAdmin,
|
|
5513
5531
|
W as eventBus,
|
|
5514
5532
|
sn as getCmp,
|
|
5515
|
-
|
|
5533
|
+
ue as http,
|
|
5516
5534
|
Ne as instance,
|
|
5517
|
-
|
|
5518
|
-
|
|
5535
|
+
Ci as regViews,
|
|
5536
|
+
Ei as setCmp,
|
|
5519
5537
|
is as transRemoteModules,
|
|
5520
|
-
|
|
5538
|
+
Ti as useHttp
|
|
5521
5539
|
};
|
|
5522
5540
|
//# sourceMappingURL=index.es.js.map
|