@okiss/oms 0.0.52 → 0.0.53
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 +522 -505
- 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 he, 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 be, 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
15
|
import { useRoute as pe, 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 ue, ElOption as Te, ElSelect as Be, ElFormItem as rt, ElForm as ct, ElCol as de, 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
|
|
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 ue, ElOption as Te, ElSelect as Be, ElFormItem as rt, ElForm as ct, ElCol as de, 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,7 +750,8 @@ const jl = {
|
|
|
750
750
|
pre: "green"
|
|
751
751
|
},
|
|
752
752
|
serviceOffLineNotice: "当前页面功能正在维护, 请稍后再试~~~",
|
|
753
|
-
formMutex: !0
|
|
753
|
+
formMutex: !0,
|
|
754
|
+
captcha: !0
|
|
754
755
|
}, me = {
|
|
755
756
|
axios: Gl,
|
|
756
757
|
settings: pt,
|
|
@@ -773,8 +774,8 @@ 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, re = {
|
|
1018
1027
|
taskList: {},
|
|
1019
1028
|
cacheList: /* @__PURE__ */ new Map(),
|
|
1020
1029
|
uniqueId(e) {
|
|
@@ -1067,7 +1076,7 @@ const Kl = {
|
|
|
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 = ue, 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 = de, r = ue,
|
|
3053
|
+
const s = de, r = ue, d = ae, u = w("v-table"), m = it, _ = ue, 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,15 +3111,15 @@ 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
|
}, {
|
|
@@ -3120,7 +3129,7 @@ function no(e, t, l, o, n, a) {
|
|
|
3120
3129
|
onClick: (fe) => 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,15 +3139,15 @@ 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
|
}, {
|
|
@@ -3148,7 +3157,7 @@ function no(e, t, l, o, n, a) {
|
|
|
3148
3157
|
onClick: (fe) => 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,15 +3167,15 @@ 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
|
}, {
|
|
@@ -3176,7 +3185,7 @@ function no(e, t, l, o, n, a) {
|
|
|
3176
3185
|
onClick: (fe) => 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,15 +3206,15 @@ 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
|
}, {
|
|
@@ -3215,7 +3224,7 @@ function no(e, t, l, o, n, a) {
|
|
|
3215
3224
|
onClick: (fe) => 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 = pe(), 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",
|
|
@@ -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 = de, 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
|
}
|
|
@@ -3699,10 +3708,10 @@ const Bo = /* @__PURE__ */ I(Co, [["render", To]]), Oo = {
|
|
|
3699
3708
|
class: "menu-wrapper"
|
|
3700
3709
|
};
|
|
3701
3710
|
function Mo(e, t, l, o, n, a) {
|
|
3702
|
-
const s =
|
|
3711
|
+
const s = w("menu-content"), r = gl, d = w("app-link"), u = w("sidebar-item", !0), m = kl;
|
|
3703
3712
|
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(
|
|
3713
|
+
l.item.meta && l.item.meta.menuType === 2 ? (i(), h(I, { key: 0 }, [
|
|
3714
|
+
l.item.meta ? (i(), f(d, {
|
|
3706
3715
|
key: 0,
|
|
3707
3716
|
to: l.to,
|
|
3708
3717
|
"new-tab": l.item.meta.newTab
|
|
@@ -3721,7 +3730,7 @@ function Mo(e, t, l, o, n, a) {
|
|
|
3721
3730
|
}, 8, ["index", "class"])
|
|
3722
3731
|
]),
|
|
3723
3732
|
_: 1
|
|
3724
|
-
}, 8, ["to", "new-tab"])) :
|
|
3733
|
+
}, 8, ["to", "new-tab"])) : E("", !0)
|
|
3725
3734
|
], 64)) : l.item.meta && l.item.meta.menuType === 1 ? (i(), f(m, {
|
|
3726
3735
|
key: 1,
|
|
3727
3736
|
ref: "subMenu",
|
|
@@ -3729,7 +3738,7 @@ function Mo(e, t, l, o, n, a) {
|
|
|
3729
3738
|
class: H({ "submenu-title-noDropdown": !l.isNest })
|
|
3730
3739
|
}, {
|
|
3731
3740
|
title: c(() => [
|
|
3732
|
-
l.item.redirect && l.item.redirect !== "#" ? (i(), f(
|
|
3741
|
+
l.item.redirect && l.item.redirect !== "#" ? (i(), f(d, {
|
|
3733
3742
|
key: 0,
|
|
3734
3743
|
to: l.to
|
|
3735
3744
|
}, {
|
|
@@ -3745,26 +3754,26 @@ function Mo(e, t, l, o, n, a) {
|
|
|
3745
3754
|
}, null, 8, ["meta"]))
|
|
3746
3755
|
]),
|
|
3747
3756
|
default: c(() => [
|
|
3748
|
-
(i(!0), h(
|
|
3749
|
-
key:
|
|
3757
|
+
(i(!0), h(I, null, O(l.item.children, (_) => (i(), f(u, {
|
|
3758
|
+
key: _.path,
|
|
3750
3759
|
"is-nest": !0,
|
|
3751
|
-
item:
|
|
3752
|
-
to: a.getTo(
|
|
3760
|
+
item: _,
|
|
3761
|
+
to: a.getTo(_),
|
|
3753
3762
|
class: "nest-menu"
|
|
3754
3763
|
}, null, 8, ["item", "to"]))), 128))
|
|
3755
3764
|
]),
|
|
3756
3765
|
_: 1
|
|
3757
|
-
}, 8, ["index", "class"])) :
|
|
3758
|
-
])) :
|
|
3766
|
+
}, 8, ["index", "class"])) : E("", !0)
|
|
3767
|
+
])) : E("", !0);
|
|
3759
3768
|
}
|
|
3760
|
-
const
|
|
3769
|
+
const Do = /* @__PURE__ */ $(Ro, [["render", Mo]]);
|
|
3761
3770
|
function yt(e) {
|
|
3762
3771
|
return e.filter((t) => {
|
|
3763
3772
|
var l;
|
|
3764
3773
|
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
3774
|
});
|
|
3766
3775
|
}
|
|
3767
|
-
const
|
|
3776
|
+
const jo = {
|
|
3768
3777
|
data() {
|
|
3769
3778
|
return {
|
|
3770
3779
|
selected: ""
|
|
@@ -3775,7 +3784,7 @@ const Do = {
|
|
|
3775
3784
|
filterRoutes() {
|
|
3776
3785
|
let e = [];
|
|
3777
3786
|
return this.remoteRouter.forEach((t) => {
|
|
3778
|
-
e = e.concat(
|
|
3787
|
+
e = e.concat(v(t.routes));
|
|
3779
3788
|
}), yt(e);
|
|
3780
3789
|
}
|
|
3781
3790
|
},
|
|
@@ -3797,58 +3806,58 @@ const Do = {
|
|
|
3797
3806
|
}
|
|
3798
3807
|
};
|
|
3799
3808
|
function No(e, t, l, o, n, a) {
|
|
3800
|
-
const s = Te, r = wl,
|
|
3801
|
-
return i(), f(
|
|
3809
|
+
const s = Te, r = wl, d = Be;
|
|
3810
|
+
return i(), f(d, {
|
|
3802
3811
|
modelValue: n.selected,
|
|
3803
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
3812
|
+
"onUpdate:modelValue": t[0] || (t[0] = (u) => n.selected = u),
|
|
3804
3813
|
filterable: "",
|
|
3805
3814
|
placeholder: "搜索菜单...",
|
|
3806
3815
|
class: "search-menu",
|
|
3807
3816
|
onChange: a.onselected
|
|
3808
3817
|
}, {
|
|
3809
3818
|
default: c(() => [
|
|
3810
|
-
(i(!0), h(
|
|
3811
|
-
key:
|
|
3819
|
+
(i(!0), h(I, null, O(a.filterRoutes, (u) => (i(), h(I, {
|
|
3820
|
+
key: u.path
|
|
3812
3821
|
}, [
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
key:
|
|
3816
|
-
label:
|
|
3822
|
+
u.children !== void 0 ? (i(), h(I, { key: 0 }, [
|
|
3823
|
+
u.meta.menuType !== 0 ? (i(), f(r, {
|
|
3824
|
+
key: u.path + "-",
|
|
3825
|
+
label: u.meta.title
|
|
3817
3826
|
}, {
|
|
3818
3827
|
default: c(() => [
|
|
3819
|
-
(i(!0), h(
|
|
3828
|
+
(i(!0), h(I, null, O(u.children, (m, _) => (i(), h(I, {
|
|
3820
3829
|
key: m.path
|
|
3821
3830
|
}, [
|
|
3822
|
-
|
|
3831
|
+
u.meta.menuType !== 0 ? (i(), f(s, {
|
|
3823
3832
|
key: 0,
|
|
3824
|
-
label: (
|
|
3833
|
+
label: (_ === u.children.length - 1 ? "└─" : "├─") + m.meta.title,
|
|
3825
3834
|
value: a.getJumpPath(m)
|
|
3826
|
-
}, null, 8, ["label", "value"])) :
|
|
3835
|
+
}, null, 8, ["label", "value"])) : E("", !0)
|
|
3827
3836
|
], 64))), 128))
|
|
3828
3837
|
]),
|
|
3829
3838
|
_: 2
|
|
3830
|
-
}, 1032, ["label"])) :
|
|
3839
|
+
}, 1032, ["label"])) : E("", !0)
|
|
3831
3840
|
], 64)) : (i(), f(s, {
|
|
3832
3841
|
key: 1,
|
|
3833
|
-
label: "" +
|
|
3834
|
-
value: a.getJumpPath(
|
|
3842
|
+
label: "" + u.meta.title,
|
|
3843
|
+
value: a.getJumpPath(u)
|
|
3835
3844
|
}, null, 8, ["label", "value"]))
|
|
3836
3845
|
], 64))), 128))
|
|
3837
3846
|
]),
|
|
3838
3847
|
_: 1
|
|
3839
3848
|
}, 8, ["modelValue", "onChange"]);
|
|
3840
3849
|
}
|
|
3841
|
-
const Vo = /* @__PURE__ */
|
|
3842
|
-
var
|
|
3850
|
+
const Vo = /* @__PURE__ */ $(jo, [["render", No], ["__scopeId", "data-v-38301044"]]);
|
|
3851
|
+
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
3852
|
const qo = q({
|
|
3844
|
-
components: { SidebarItem:
|
|
3853
|
+
components: { SidebarItem: Do, Logo: $o, SearchMenu: Vo },
|
|
3845
3854
|
computed: {
|
|
3846
3855
|
...Ce(["sidebar", "remoteRouter", "customRouter"]),
|
|
3847
3856
|
routes() {
|
|
3848
3857
|
let e = [];
|
|
3849
3858
|
return this.$router.options.routes.concat(this.customRouter || []).forEach((t) => {
|
|
3850
3859
|
t.path === "/" ? e = e.concat(t.children || []) : e.push(t);
|
|
3851
|
-
}),
|
|
3860
|
+
}), v([
|
|
3852
3861
|
{
|
|
3853
3862
|
label: "",
|
|
3854
3863
|
routes: e
|
|
@@ -3892,18 +3901,18 @@ const qo = q({
|
|
|
3892
3901
|
}
|
|
3893
3902
|
});
|
|
3894
3903
|
function Uo(e, t, l, o, n, a) {
|
|
3895
|
-
const s =
|
|
3904
|
+
const s = w("logo"), r = w("search-menu"), d = w("sidebar-item"), u = Sl, m = xl;
|
|
3896
3905
|
return i(), h("div", {
|
|
3897
3906
|
class: H({ "has-logo": e.showLogo })
|
|
3898
3907
|
}, [
|
|
3899
3908
|
e.showLogo ? (i(), f(s, {
|
|
3900
3909
|
key: 0,
|
|
3901
3910
|
collapse: e.isCollapse
|
|
3902
|
-
}, null, 8, ["collapse"])) :
|
|
3911
|
+
}, null, 8, ["collapse"])) : E("", !0),
|
|
3903
3912
|
p(m, { "wrap-class": "scrollbar-wrapper" }, {
|
|
3904
3913
|
default: c(() => [
|
|
3905
|
-
e.isCollapse ?
|
|
3906
|
-
p(
|
|
3914
|
+
e.isCollapse ? E("", !0) : (i(), f(r, { key: 0 })),
|
|
3915
|
+
p(u, {
|
|
3907
3916
|
"default-active": e.activeMenu,
|
|
3908
3917
|
collapse: e.isCollapse,
|
|
3909
3918
|
"background-color": e.variables.menuBg,
|
|
@@ -3914,13 +3923,13 @@ function Uo(e, t, l, o, n, a) {
|
|
|
3914
3923
|
mode: "vertical"
|
|
3915
3924
|
}, {
|
|
3916
3925
|
default: c(() => [
|
|
3917
|
-
(i(!0), h(
|
|
3918
|
-
key:
|
|
3926
|
+
(i(!0), h(I, null, O(e.routes, (_, k) => (i(), h(I, {
|
|
3927
|
+
key: k + "-module"
|
|
3919
3928
|
}, [
|
|
3920
|
-
(i(!0), h(
|
|
3921
|
-
key:
|
|
3922
|
-
item:
|
|
3923
|
-
to: e.$router.resolve(
|
|
3929
|
+
(i(!0), h(I, null, O(e.filterRoute(_.routes), (y) => (i(), f(d, {
|
|
3930
|
+
key: y.path,
|
|
3931
|
+
item: y,
|
|
3932
|
+
to: e.$router.resolve(y.redirect ? y.redirect : y).fullPath
|
|
3924
3933
|
}, null, 8, ["item", "to"]))), 128))
|
|
3925
3934
|
], 64))), 128))
|
|
3926
3935
|
]),
|
|
@@ -3931,127 +3940,130 @@ function Uo(e, t, l, o, n, a) {
|
|
|
3931
3940
|
})
|
|
3932
3941
|
], 2);
|
|
3933
3942
|
}
|
|
3934
|
-
const Ho = /* @__PURE__ */
|
|
3943
|
+
const Ho = /* @__PURE__ */ $(qo, [["render", Uo], ["__scopeId", "data-v-d252f828"]]);
|
|
3935
3944
|
const Fo = { class: "app-main" }, Go = {
|
|
3936
3945
|
__name: "AppMain",
|
|
3937
3946
|
setup(e) {
|
|
3938
|
-
const t = pe(), l = [], o =
|
|
3947
|
+
const t = pe(), l = [], o = D(0);
|
|
3939
3948
|
return rl(() => {
|
|
3940
3949
|
var n;
|
|
3941
3950
|
(n = t.meta) != null && n.keepAlive && l.indexOf(t.name) && l.push(t.name), o.value++;
|
|
3942
3951
|
}), (n, a) => {
|
|
3943
|
-
const s =
|
|
3952
|
+
const s = w("router-view"), r = El;
|
|
3944
3953
|
return i(), h("section", Fo, [
|
|
3945
3954
|
(i(), f(s, {
|
|
3946
|
-
key: n.$route.fullPath +
|
|
3955
|
+
key: n.$route.fullPath + x(o)
|
|
3947
3956
|
})),
|
|
3948
3957
|
p(r, { bottom: 50 })
|
|
3949
3958
|
]);
|
|
3950
3959
|
};
|
|
3951
3960
|
}
|
|
3952
|
-
}, Jo = /* @__PURE__ */
|
|
3961
|
+
}, Jo = /* @__PURE__ */ $(Go, [["__scopeId", "data-v-ca0f0d98"]]);
|
|
3953
3962
|
const zo = { class: "main-container" }, Ko = 992, Wo = {
|
|
3954
3963
|
__name: "index",
|
|
3955
3964
|
setup(e) {
|
|
3956
|
-
const t = ot(), { body: l } = document, o =
|
|
3965
|
+
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
3966
|
hideSidebar: !o.value.opened,
|
|
3958
3967
|
openSidebar: o.value.opened,
|
|
3959
3968
|
withoutAnimation: o.value.withoutAnimation,
|
|
3960
3969
|
mobile: n.value === "mobile"
|
|
3961
3970
|
})), r = () => l.getBoundingClientRect().width - 1 < Ko;
|
|
3962
|
-
Pl(window, "resize", () =>
|
|
3963
|
-
const
|
|
3971
|
+
Pl(window, "resize", () => u());
|
|
3972
|
+
const d = () => {
|
|
3964
3973
|
t.dispatch("app/closeSideBar", { withoutAnimation: !1 });
|
|
3965
|
-
},
|
|
3974
|
+
}, u = () => {
|
|
3966
3975
|
if (!document.hidden) {
|
|
3967
3976
|
const m = r();
|
|
3968
3977
|
t.dispatch("app/toggleDevice", m ? "mobile" : "desktop"), m && t.dispatch("app/closeSideBar", { withoutAnimation: !0 });
|
|
3969
3978
|
}
|
|
3970
3979
|
};
|
|
3971
|
-
return (m,
|
|
3972
|
-
class: H([
|
|
3980
|
+
return (m, _) => (i(), h("div", {
|
|
3981
|
+
class: H([x(s), "app-wrapper"])
|
|
3973
3982
|
}, [
|
|
3974
|
-
|
|
3983
|
+
x(n) === "mobile" && x(o).opened ? (i(), h("div", {
|
|
3975
3984
|
key: 0,
|
|
3976
3985
|
class: "drawer-bg",
|
|
3977
|
-
onClick:
|
|
3978
|
-
})) :
|
|
3979
|
-
p(
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
class: H({ "fixed-header":
|
|
3986
|
+
onClick: d
|
|
3987
|
+
})) : E("", !0),
|
|
3988
|
+
p(x(Ho), { class: "sidebar-container" }),
|
|
3989
|
+
b("div", zo, [
|
|
3990
|
+
b("div", {
|
|
3991
|
+
class: H({ "fixed-header": x(a) })
|
|
3983
3992
|
}, [
|
|
3984
|
-
p(
|
|
3993
|
+
p(x(yo))
|
|
3985
3994
|
], 2),
|
|
3986
|
-
p(
|
|
3995
|
+
p(x(Jo))
|
|
3987
3996
|
])
|
|
3988
3997
|
], 2));
|
|
3989
3998
|
}
|
|
3990
|
-
}, vt = /* @__PURE__ */
|
|
3999
|
+
}, vt = /* @__PURE__ */ $(Wo, [["__scopeId", "data-v-957442cd"]]), Xo = { id: "login" }, Zo = /* @__PURE__ */ b("h1", { id: "title" }, "登录", -1), Qo = { id: "form" }, Yo = {
|
|
4000
|
+
key: 0,
|
|
4001
|
+
class: "captcha"
|
|
4002
|
+
}, ea = ["src"], ta = { class: "tips" }, la = { class: "sso" }, na = /* @__PURE__ */ b("div", { id: "sso-qrcode" }, null, -1), oa = /* @__PURE__ */ q({
|
|
3991
4003
|
__name: "login",
|
|
3992
4004
|
setup(e) {
|
|
3993
|
-
const t = st(), l = pe(), o =
|
|
4005
|
+
const t = st(), l = pe(), 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
4006
|
username: "",
|
|
3995
4007
|
password: "",
|
|
3996
4008
|
captcha: "",
|
|
3997
4009
|
sing: ""
|
|
3998
|
-
}),
|
|
3999
|
-
if (u.value.username === "" || u.value.password === "" || u.value.captcha === "") {
|
|
4000
|
-
|
|
4010
|
+
}), m = () => {
|
|
4011
|
+
if (u.value.username === "" || u.value.password === "" || n.value && u.value.captcha === "") {
|
|
4012
|
+
Il.error("用户名, 密码, 验证码是必须的");
|
|
4001
4013
|
return;
|
|
4002
4014
|
}
|
|
4003
|
-
u.value.sing = Ll(`${u.value.username}${u.value.password}${u.value.captcha}`).toString(),
|
|
4004
|
-
var
|
|
4005
|
-
t.push({ path: ((
|
|
4006
|
-
}).catch((
|
|
4007
|
-
|
|
4015
|
+
n.value && (u.value.sing = Ll(`${u.value.username}${u.value.password}${u.value.captcha}`).toString()), g.dispatch("user/login", u.value).then((_) => {
|
|
4016
|
+
var k;
|
|
4017
|
+
t.push({ path: ((k = l.query) == null ? void 0 : k.redirect) || "/" });
|
|
4018
|
+
}).catch((_) => {
|
|
4019
|
+
s.value++;
|
|
4008
4020
|
});
|
|
4009
4021
|
};
|
|
4010
|
-
return (
|
|
4011
|
-
|
|
4012
|
-
|
|
4013
|
-
ie(
|
|
4014
|
-
"onUpdate:modelValue":
|
|
4022
|
+
return (_, k) => (i(), h("div", Xo, [
|
|
4023
|
+
Zo,
|
|
4024
|
+
b("form", Qo, [
|
|
4025
|
+
ie(b("input", {
|
|
4026
|
+
"onUpdate:modelValue": k[0] || (k[0] = (y) => x(u).username = y),
|
|
4015
4027
|
type: "text",
|
|
4016
4028
|
placeholder: "用户名",
|
|
4017
4029
|
class: "input"
|
|
4018
4030
|
}, null, 512), [
|
|
4019
|
-
[he,
|
|
4031
|
+
[he, x(u).username]
|
|
4020
4032
|
]),
|
|
4021
|
-
ie(
|
|
4022
|
-
"onUpdate:modelValue":
|
|
4033
|
+
ie(b("input", {
|
|
4034
|
+
"onUpdate:modelValue": k[1] || (k[1] = (y) => x(u).password = y),
|
|
4023
4035
|
type: "password",
|
|
4024
4036
|
placeholder: "密码",
|
|
4025
4037
|
class: "input"
|
|
4026
4038
|
}, null, 512), [
|
|
4027
|
-
[he,
|
|
4039
|
+
[he, x(u).password]
|
|
4028
4040
|
]),
|
|
4029
|
-
|
|
4030
|
-
ie(
|
|
4031
|
-
"onUpdate:modelValue":
|
|
4041
|
+
n.value ? (i(), h("div", Yo, [
|
|
4042
|
+
ie(b("input", {
|
|
4043
|
+
"onUpdate:modelValue": k[2] || (k[2] = (y) => x(u).captcha = y),
|
|
4032
4044
|
type: "text",
|
|
4033
4045
|
placeholder: "验证码",
|
|
4034
4046
|
class: "input-captcha"
|
|
4035
4047
|
}, null, 512), [
|
|
4036
|
-
[he,
|
|
4048
|
+
[he, x(u).captcha]
|
|
4037
4049
|
]),
|
|
4038
|
-
|
|
4050
|
+
b("img", {
|
|
4039
4051
|
class: "captcha-img",
|
|
4040
|
-
src:
|
|
4052
|
+
src: a.value + "/user/captcha?ts=" + x(s),
|
|
4041
4053
|
title: "点击刷新",
|
|
4042
|
-
onClick:
|
|
4054
|
+
onClick: r
|
|
4043
4055
|
}, null, 8, ea)
|
|
4044
|
-
]),
|
|
4045
|
-
|
|
4046
|
-
class: H({ input: !0, button: !0, "no-ready": !
|
|
4047
|
-
onClick:
|
|
4056
|
+
])) : E("", !0),
|
|
4057
|
+
b("div", {
|
|
4058
|
+
class: H({ input: !0, button: !0, "no-ready": !d.value }),
|
|
4059
|
+
onClick: m
|
|
4048
4060
|
}, "登录", 2),
|
|
4049
|
-
|
|
4050
|
-
|
|
4061
|
+
b("div", ta, [
|
|
4062
|
+
b("div", null, B(o.value), 1)
|
|
4051
4063
|
]),
|
|
4052
|
-
|
|
4064
|
+
b("div", la, [
|
|
4053
4065
|
na,
|
|
4054
|
-
(i(!0), h(
|
|
4066
|
+
(i(!0), h(I, null, O(Object.keys([]), (y) => (i(), h("div", { key: y }, B(y), 1))), 128))
|
|
4055
4067
|
])
|
|
4056
4068
|
])
|
|
4057
4069
|
]));
|
|
@@ -4059,7 +4071,7 @@ const zo = { class: "main-container" }, Ko = 992, Wo = {
|
|
|
4059
4071
|
});
|
|
4060
4072
|
const aa = {
|
|
4061
4073
|
name: "NotFoundPage"
|
|
4062
|
-
}, gt = (e) => (Ke("data-v-26068803"), e = e(), We(), e), sa = { class: "not-found" }, ia = /* @__PURE__ */ gt(() => /* @__PURE__ */
|
|
4074
|
+
}, gt = (e) => (Ke("data-v-26068803"), e = e(), We(), e), sa = { class: "not-found" }, ia = /* @__PURE__ */ gt(() => /* @__PURE__ */ b("svg", {
|
|
4063
4075
|
width: "380px",
|
|
4064
4076
|
height: "500px",
|
|
4065
4077
|
viewBox: "0 0 837 1045",
|
|
@@ -4068,7 +4080,7 @@ const aa = {
|
|
|
4068
4080
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
4069
4081
|
"xmlns:sketch": "http://www.bohemiancoding.com/sketch/ns"
|
|
4070
4082
|
}, [
|
|
4071
|
-
/* @__PURE__ */
|
|
4083
|
+
/* @__PURE__ */ b("g", {
|
|
4072
4084
|
id: "Page-1",
|
|
4073
4085
|
stroke: "none",
|
|
4074
4086
|
"stroke-width": "1",
|
|
@@ -4076,35 +4088,35 @@ const aa = {
|
|
|
4076
4088
|
"fill-rule": "evenodd",
|
|
4077
4089
|
"sketch:type": "MSPage"
|
|
4078
4090
|
}, [
|
|
4079
|
-
/* @__PURE__ */
|
|
4091
|
+
/* @__PURE__ */ b("path", {
|
|
4080
4092
|
id: "Polygon-1",
|
|
4081
4093
|
d: "M353,9 L626.664028,170 L626.664028,487 L353,642 L79.3359724,487 L79.3359724,170 L353,9 Z",
|
|
4082
4094
|
stroke: "#007FB2",
|
|
4083
4095
|
"stroke-width": "6",
|
|
4084
4096
|
"sketch:type": "MSShapeGroup"
|
|
4085
4097
|
}),
|
|
4086
|
-
/* @__PURE__ */
|
|
4098
|
+
/* @__PURE__ */ b("path", {
|
|
4087
4099
|
id: "Polygon-2",
|
|
4088
4100
|
d: "M78.5,529 L147,569.186414 L147,648.311216 L78.5,687 L10,648.311216 L10,569.186414 L78.5,529 Z",
|
|
4089
4101
|
stroke: "#EF4A5B",
|
|
4090
4102
|
"stroke-width": "6",
|
|
4091
4103
|
"sketch:type": "MSShapeGroup"
|
|
4092
4104
|
}),
|
|
4093
|
-
/* @__PURE__ */
|
|
4105
|
+
/* @__PURE__ */ b("path", {
|
|
4094
4106
|
id: "Polygon-3",
|
|
4095
4107
|
d: "M773,186 L827,217.538705 L827,279.636651 L773,310 L719,279.636651 L719,217.538705 L773,186 Z",
|
|
4096
4108
|
stroke: "#795D9C",
|
|
4097
4109
|
"stroke-width": "6",
|
|
4098
4110
|
"sketch:type": "MSShapeGroup"
|
|
4099
4111
|
}),
|
|
4100
|
-
/* @__PURE__ */
|
|
4112
|
+
/* @__PURE__ */ b("path", {
|
|
4101
4113
|
id: "Polygon-4",
|
|
4102
4114
|
d: "M639,529 L773,607.846761 L773,763.091627 L639,839 L505,763.091627 L505,607.846761 L639,529 Z",
|
|
4103
4115
|
stroke: "#F2773F",
|
|
4104
4116
|
"stroke-width": "6",
|
|
4105
4117
|
"sketch:type": "MSShapeGroup"
|
|
4106
4118
|
}),
|
|
4107
|
-
/* @__PURE__ */
|
|
4119
|
+
/* @__PURE__ */ b("path", {
|
|
4108
4120
|
id: "Polygon-5",
|
|
4109
4121
|
d: "M281,801 L383,861.025276 L383,979.21169 L281,1037 L179,979.21169 L179,861.025276 L281,801 Z",
|
|
4110
4122
|
stroke: "#36B455",
|
|
@@ -4112,12 +4124,12 @@ const aa = {
|
|
|
4112
4124
|
"sketch:type": "MSShapeGroup"
|
|
4113
4125
|
})
|
|
4114
4126
|
])
|
|
4115
|
-
], -1)), ra = /* @__PURE__ */ gt(() => /* @__PURE__ */
|
|
4116
|
-
/* @__PURE__ */
|
|
4117
|
-
/* @__PURE__ */
|
|
4118
|
-
/* @__PURE__ */
|
|
4119
|
-
/* @__PURE__ */
|
|
4120
|
-
/* @__PURE__ */
|
|
4127
|
+
], -1)), ra = /* @__PURE__ */ gt(() => /* @__PURE__ */ b("div", { class: "message-box" }, [
|
|
4128
|
+
/* @__PURE__ */ b("h1", null, "404"),
|
|
4129
|
+
/* @__PURE__ */ b("p", null, "Page not found"),
|
|
4130
|
+
/* @__PURE__ */ b("div", { class: "buttons-con" }, [
|
|
4131
|
+
/* @__PURE__ */ b("div", { class: "action-link-wrap" }, [
|
|
4132
|
+
/* @__PURE__ */ b("a", {
|
|
4121
4133
|
href: "",
|
|
4122
4134
|
class: "link-button"
|
|
4123
4135
|
}, "Go to Home Page")
|
|
@@ -4130,7 +4142,7 @@ const aa = {
|
|
|
4130
4142
|
function ua(e, t, l, o, n, a) {
|
|
4131
4143
|
return i(), h("div", sa, ca);
|
|
4132
4144
|
}
|
|
4133
|
-
const pa = /* @__PURE__ */
|
|
4145
|
+
const pa = /* @__PURE__ */ $(aa, [["render", ua], ["__scopeId", "data-v-26068803"]]), da = [
|
|
4134
4146
|
{
|
|
4135
4147
|
path: "/",
|
|
4136
4148
|
component: vt,
|
|
@@ -4169,20 +4181,20 @@ function ma(e) {
|
|
|
4169
4181
|
e.beforeEach((t, l, o) => {
|
|
4170
4182
|
ke.start(), t.preHash = location.hash.replace("#", ""), o();
|
|
4171
4183
|
}), e.afterEach((t) => {
|
|
4172
|
-
t.matched.length > 0 &&
|
|
4184
|
+
t.matched.length > 0 && g.commit("user/updateState", {
|
|
4173
4185
|
key: "path",
|
|
4174
4186
|
value: t.matched[t.matched.length - 1].path.replace("(\\d+)", "")
|
|
4175
4187
|
}), ke.done();
|
|
4176
4188
|
});
|
|
4177
4189
|
}
|
|
4178
4190
|
function fa() {
|
|
4179
|
-
return
|
|
4191
|
+
return g.state.user.isLodeRemoteRoutes;
|
|
4180
4192
|
}
|
|
4181
4193
|
function kt() {
|
|
4182
|
-
return
|
|
4194
|
+
return g.state.settings.whiteRoutes || [];
|
|
4183
4195
|
}
|
|
4184
4196
|
function ha() {
|
|
4185
|
-
return
|
|
4197
|
+
return g.state.user.token;
|
|
4186
4198
|
}
|
|
4187
4199
|
class wt {
|
|
4188
4200
|
constructor() {
|
|
@@ -4196,7 +4208,7 @@ class wt {
|
|
|
4196
4208
|
showQrCode() {
|
|
4197
4209
|
}
|
|
4198
4210
|
}
|
|
4199
|
-
class
|
|
4211
|
+
class Ii extends wt {
|
|
4200
4212
|
constructor(l) {
|
|
4201
4213
|
super();
|
|
4202
4214
|
R(this, "type", "jump");
|
|
@@ -4242,18 +4254,18 @@ class $i extends wt {
|
|
|
4242
4254
|
appid: this.appid,
|
|
4243
4255
|
redirect_uri: encodeURIComponent(this.redirectUri)
|
|
4244
4256
|
};
|
|
4245
|
-
return
|
|
4257
|
+
return Z(this.reloadUrl, s) + "&" + Qt(a || {});
|
|
4246
4258
|
}, o = () => {
|
|
4247
4259
|
const a = {
|
|
4248
4260
|
goto: encodeURIComponent(l()),
|
|
4249
4261
|
style: encodeURIComponent(this.style)
|
|
4250
4262
|
};
|
|
4251
|
-
return
|
|
4263
|
+
return Z(this.qrCodeUrl, a);
|
|
4252
4264
|
}, n = (a) => {
|
|
4253
4265
|
const { origin: s, data: r } = a;
|
|
4254
4266
|
s === "https://login.dingtalk.com" && (window.location.href = l({ loginTmpCode: r }));
|
|
4255
4267
|
};
|
|
4256
|
-
this.iframe.src = o(),
|
|
4268
|
+
this.iframe.src = o(), Zt({ elId: this.elId, attrs: this.iframe }), typeof window.addEventListener < "u" ? window.addEventListener(
|
|
4257
4269
|
"message",
|
|
4258
4270
|
(a) => n(a),
|
|
4259
4271
|
!1
|
|
@@ -4262,22 +4274,22 @@ class $i extends wt {
|
|
|
4262
4274
|
}
|
|
4263
4275
|
const ba = {};
|
|
4264
4276
|
function _a() {
|
|
4265
|
-
return A(
|
|
4277
|
+
return A(g.state.settings.sso || {}, ba);
|
|
4266
4278
|
}
|
|
4267
4279
|
function ya() {
|
|
4268
|
-
const e = _a(), t =
|
|
4280
|
+
const e = _a(), t = g.state.settings.activeSsoKey || "", l = e[t];
|
|
4269
4281
|
if (l !== void 0)
|
|
4270
4282
|
return l();
|
|
4271
4283
|
}
|
|
4272
4284
|
function va(e) {
|
|
4273
4285
|
e.beforeEach(async (t, l, o) => {
|
|
4274
|
-
var
|
|
4286
|
+
var d, u;
|
|
4275
4287
|
if (kt().indexOf(t.path) !== -1) {
|
|
4276
4288
|
o();
|
|
4277
4289
|
return;
|
|
4278
4290
|
}
|
|
4279
4291
|
if (ha()) {
|
|
4280
|
-
(
|
|
4292
|
+
(d = t.query) != null && d.redirect ? o((u = t.query) == null ? void 0 : u.redirect) : o();
|
|
4281
4293
|
return;
|
|
4282
4294
|
}
|
|
4283
4295
|
const a = t.query.redirect || t.path, s = ya();
|
|
@@ -4286,20 +4298,20 @@ function va(e) {
|
|
|
4286
4298
|
return;
|
|
4287
4299
|
}
|
|
4288
4300
|
const r = s.flag();
|
|
4289
|
-
if (r && await
|
|
4301
|
+
if (r && await g.dispatch("user/login", tl(r) ? r : { ticket: r })) {
|
|
4290
4302
|
o();
|
|
4291
4303
|
return;
|
|
4292
4304
|
}
|
|
4293
4305
|
s.jumpToLoginPage(o, `/login?redirect=${a}`);
|
|
4294
4306
|
});
|
|
4295
4307
|
}
|
|
4296
|
-
const ga = {}, ka = { class: "loading preloader" }, wa = /* @__PURE__ */
|
|
4308
|
+
const ga = {}, ka = { class: "loading preloader" }, wa = /* @__PURE__ */ b("div", { class: "preloader-inner" }, null, -1), Sa = [
|
|
4297
4309
|
wa
|
|
4298
4310
|
];
|
|
4299
4311
|
function xa(e, t) {
|
|
4300
4312
|
return i(), h("div", ka, Sa);
|
|
4301
4313
|
}
|
|
4302
|
-
const St = /* @__PURE__ */
|
|
4314
|
+
const St = /* @__PURE__ */ $(ga, [["render", xa]]), Ea = {
|
|
4303
4315
|
name: "VNotice",
|
|
4304
4316
|
props: {
|
|
4305
4317
|
dataApi: {
|
|
@@ -4328,13 +4340,13 @@ const St = /* @__PURE__ */ I(ga, [["render", xa]]), Ea = {
|
|
|
4328
4340
|
this.hasNotice = Object.keys(this.$props.notice).length > 0, this.noticeProps = this.$props.notice;
|
|
4329
4341
|
}
|
|
4330
4342
|
};
|
|
4331
|
-
function
|
|
4343
|
+
function Ia(e, t, l, o, n, a) {
|
|
4332
4344
|
const s = Oe;
|
|
4333
4345
|
return i(), h("div", null, [
|
|
4334
|
-
n.hasNotice ? (i(), f(s, G(F({ key: 0 }, n.noticeProps)), null, 16)) :
|
|
4346
|
+
n.hasNotice ? (i(), f(s, G(F({ key: 0 }, n.noticeProps)), null, 16)) : E("", !0)
|
|
4335
4347
|
]);
|
|
4336
4348
|
}
|
|
4337
|
-
const xt = /* @__PURE__ */
|
|
4349
|
+
const xt = /* @__PURE__ */ $(Ea, [["render", Ia]]), $a = q({
|
|
4338
4350
|
components: { VLoading: St, VNotice: xt },
|
|
4339
4351
|
props: {
|
|
4340
4352
|
schemaHandler: {
|
|
@@ -4370,39 +4382,39 @@ const xt = /* @__PURE__ */ I(Ea, [["render", $a]]), Ia = q({
|
|
|
4370
4382
|
beforeCreate() {
|
|
4371
4383
|
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
4384
|
this.$http.get(this.$props.schemaApi || l, o).then(({ data: n }) => {
|
|
4373
|
-
this.loading = !1,
|
|
4385
|
+
this.loading = !1, Q(n) && (n.notice !== void 0 && (this.haveNotice = !0, Ie(n.notice) ? this.notice = {
|
|
4374
4386
|
title: n.notice
|
|
4375
|
-
} :
|
|
4387
|
+
} : 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
4388
|
});
|
|
4377
4389
|
}
|
|
4378
4390
|
});
|
|
4379
4391
|
const Ca = ["innerHTML"];
|
|
4380
4392
|
function Ta(e, t, l, o, n, a) {
|
|
4381
|
-
const s = Oe, r = xt,
|
|
4382
|
-
return i(), h(
|
|
4393
|
+
const s = Oe, r = xt, d = St;
|
|
4394
|
+
return i(), h(I, null, [
|
|
4383
4395
|
e.owners.length > 0 ? (i(), f(s, {
|
|
4384
4396
|
key: 0,
|
|
4385
4397
|
title: `该页面功能对应开发: [ ${e.owners.join(", ")} ] 有问题可直接企微反馈`,
|
|
4386
4398
|
type: "info",
|
|
4387
4399
|
style: { margin: "0 0 20px 0" },
|
|
4388
4400
|
closable: !1
|
|
4389
|
-
}, null, 8, ["title"])) :
|
|
4401
|
+
}, null, 8, ["title"])) : E("", !0),
|
|
4390
4402
|
e.env === "prod" && e.serviceOffLine ? (i(), h("div", {
|
|
4391
4403
|
key: 1,
|
|
4392
4404
|
class: "offline-notice",
|
|
4393
4405
|
innerHTML: e.serviceOffLine === !0 ? e.setting.serviceOffLineNotice : e.serviceOffLine
|
|
4394
|
-
}, null, 8, Ca)) : (i(), h(
|
|
4406
|
+
}, null, 8, Ca)) : (i(), h(I, { key: 2 }, [
|
|
4395
4407
|
e.haveNotice ? (i(), f(r, {
|
|
4396
4408
|
key: 0,
|
|
4397
4409
|
notice: e.notice,
|
|
4398
4410
|
style: { margin: "0 0 20px 0" },
|
|
4399
4411
|
"data-api": e.noticeApi
|
|
4400
|
-
}, null, 8, ["notice", "data-api"])) :
|
|
4401
|
-
e.loading ? (i(), f(
|
|
4412
|
+
}, null, 8, ["notice", "data-api"])) : E("", !0),
|
|
4413
|
+
e.loading ? (i(), f(d, { key: 1 })) : le(e.$slots, "default", G(F({ key: 2 }, e.schema)), void 0, !0)
|
|
4402
4414
|
], 64))
|
|
4403
4415
|
], 64);
|
|
4404
4416
|
}
|
|
4405
|
-
const se = /* @__PURE__ */
|
|
4417
|
+
const se = /* @__PURE__ */ $($a, [["render", Ta], ["__scopeId", "data-v-4965a709"]]), Et = {
|
|
4406
4418
|
__name: "table",
|
|
4407
4419
|
setup(e) {
|
|
4408
4420
|
const t = (l, o) => {
|
|
@@ -4420,7 +4432,7 @@ const se = /* @__PURE__ */ I(Ia, [["render", Ta], ["__scopeId", "data-v-4965a709
|
|
|
4420
4432
|
};
|
|
4421
4433
|
return (l, o) => (i(), f(se, { "schema-handler": t }, {
|
|
4422
4434
|
default: c((n) => [
|
|
4423
|
-
p(
|
|
4435
|
+
p(x(oe), G(Y(n)), null, 16)
|
|
4424
4436
|
]),
|
|
4425
4437
|
_: 1
|
|
4426
4438
|
}));
|
|
@@ -4428,21 +4440,21 @@ const se = /* @__PURE__ */ I(Ia, [["render", Ta], ["__scopeId", "data-v-4965a709
|
|
|
4428
4440
|
}, xe = {
|
|
4429
4441
|
__name: "form",
|
|
4430
4442
|
setup(e) {
|
|
4431
|
-
const t = pe(), l = st(), o = (r,
|
|
4432
|
-
const
|
|
4443
|
+
const t = pe(), l = st(), o = (r, d) => {
|
|
4444
|
+
const u = Object.keys(z.props);
|
|
4433
4445
|
return Object.keys(r).forEach((m) => {
|
|
4434
|
-
if (
|
|
4446
|
+
if (u.indexOf(m) === -1) {
|
|
4435
4447
|
delete r[m];
|
|
4436
4448
|
return;
|
|
4437
4449
|
}
|
|
4438
|
-
/.*Api$/.test(m) && (r[m] =
|
|
4439
|
-
}), r.saveApi === void 0 && (t.params.id !== void 0 ? (r.saveApi = `/${
|
|
4440
|
-
saveApi:
|
|
4450
|
+
/.*Api$/.test(m) && (r[m] = Z(r[m], t.params));
|
|
4451
|
+
}), 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({
|
|
4452
|
+
saveApi: d + "/save",
|
|
4441
4453
|
afterSubmit: "goback",
|
|
4442
4454
|
afterReset: "goback",
|
|
4443
4455
|
mod: t.params.id ? "edit" : "create"
|
|
4444
4456
|
}, r), r;
|
|
4445
|
-
}, n =
|
|
4457
|
+
}, n = D(0), a = () => {
|
|
4446
4458
|
Tt.request({
|
|
4447
4459
|
url: "/form_mutex",
|
|
4448
4460
|
method: "get",
|
|
@@ -4455,24 +4467,24 @@ const se = /* @__PURE__ */ I(Ia, [["render", Ta], ["__scopeId", "data-v-4965a709
|
|
|
4455
4467
|
showCancelButton: !0,
|
|
4456
4468
|
confirmButtonText: "返回",
|
|
4457
4469
|
cancelButtonText: "刷新",
|
|
4458
|
-
callback: (
|
|
4459
|
-
|
|
4470
|
+
callback: (d) => {
|
|
4471
|
+
d === "cancel" ? location.reload() : s();
|
|
4460
4472
|
}
|
|
4461
4473
|
}));
|
|
4462
4474
|
});
|
|
4463
4475
|
};
|
|
4464
|
-
|
|
4465
|
-
t.params.id !== void 0 &&
|
|
4476
|
+
Ze(() => {
|
|
4477
|
+
t.params.id !== void 0 && g.state.settings.formMutex && (a(), n.value = setInterval(a, 2e3));
|
|
4466
4478
|
}), Nt(() => {
|
|
4467
4479
|
clearInterval(n.value);
|
|
4468
4480
|
});
|
|
4469
4481
|
function s() {
|
|
4470
|
-
var r,
|
|
4471
|
-
(r = t.query) != null && r.goback ? l.push((
|
|
4482
|
+
var r, d;
|
|
4483
|
+
(r = t.query) != null && r.goback ? l.push((d = t.query) == null ? void 0 : d.goback) : history.state.back && history.back();
|
|
4472
4484
|
}
|
|
4473
|
-
return (r,
|
|
4474
|
-
default: c((
|
|
4475
|
-
p(
|
|
4485
|
+
return (r, d) => (i(), f(se, { "schema-handler": o }, {
|
|
4486
|
+
default: c((u) => [
|
|
4487
|
+
p(x(z), G(Y(u)), null, 16)
|
|
4476
4488
|
]),
|
|
4477
4489
|
_: 1
|
|
4478
4490
|
}));
|
|
@@ -4551,7 +4563,7 @@ const se = /* @__PURE__ */ I(Ia, [["render", Ta], ["__scopeId", "data-v-4965a709
|
|
|
4551
4563
|
return ["", "新建", "编辑"][this.type];
|
|
4552
4564
|
},
|
|
4553
4565
|
formProps() {
|
|
4554
|
-
let e =
|
|
4566
|
+
let e = Z(this.$props.saveApi, this.formData);
|
|
4555
4567
|
return this.type === 1 && (e = this.$props.createApi), {
|
|
4556
4568
|
saveApi: e,
|
|
4557
4569
|
getApi: this.$props.getApi,
|
|
@@ -4592,7 +4604,7 @@ const se = /* @__PURE__ */ I(Ia, [["render", Ta], ["__scopeId", "data-v-4965a709
|
|
|
4592
4604
|
remove(e) {
|
|
4593
4605
|
this.$http.request({
|
|
4594
4606
|
method: "DELETE",
|
|
4595
|
-
url:
|
|
4607
|
+
url: Z(this.$props.deleteApi, e)
|
|
4596
4608
|
}).then(({ code: t }) => {
|
|
4597
4609
|
t !== 0 ? this.$message.error("操作失败") : this.loadTree();
|
|
4598
4610
|
});
|
|
@@ -4612,7 +4624,7 @@ const se = /* @__PURE__ */ I(Ia, [["render", Ta], ["__scopeId", "data-v-4965a709
|
|
|
4612
4624
|
const n = e.data;
|
|
4613
4625
|
n.pid = t.data.id, this.$http.request({
|
|
4614
4626
|
method: "POST",
|
|
4615
|
-
url:
|
|
4627
|
+
url: Z(this.$props.saveApi, n),
|
|
4616
4628
|
data: n
|
|
4617
4629
|
}).then(({ code: a }) => {
|
|
4618
4630
|
a !== 0 && this.$message.error("操作失败");
|
|
@@ -4620,32 +4632,32 @@ const se = /* @__PURE__ */ I(Ia, [["render", Ta], ["__scopeId", "data-v-4965a709
|
|
|
4620
4632
|
}
|
|
4621
4633
|
}
|
|
4622
4634
|
});
|
|
4623
|
-
const Oa = { class: "card-header" }, Aa = /* @__PURE__ */
|
|
4635
|
+
const Oa = { class: "card-header" }, Aa = /* @__PURE__ */ b("span", null, "列表", -1), Pa = { class: "tree-action" }, Ra = { key: 0 }, La = {
|
|
4624
4636
|
key: 1,
|
|
4625
4637
|
style: { color: "#E6A23C" }
|
|
4626
4638
|
}, Ma = { class: "card-header" };
|
|
4627
|
-
function
|
|
4628
|
-
const s = ue, r =
|
|
4629
|
-
return i(), f(
|
|
4639
|
+
function Da(e, t, l, o, n, a) {
|
|
4640
|
+
const s = ue, r = $l, d = Ae, u = de, m = w("v-form"), _ = ae;
|
|
4641
|
+
return i(), f(_, {
|
|
4630
4642
|
class: "tree-box",
|
|
4631
4643
|
gutter: 20
|
|
4632
4644
|
}, {
|
|
4633
4645
|
default: c(() => [
|
|
4634
|
-
p(
|
|
4646
|
+
p(u, {
|
|
4635
4647
|
span: 8,
|
|
4636
4648
|
class: "tree-tree"
|
|
4637
4649
|
}, {
|
|
4638
4650
|
default: c(() => [
|
|
4639
|
-
p(
|
|
4651
|
+
p(d, { shadow: "never" }, {
|
|
4640
4652
|
header: c(() => [
|
|
4641
|
-
|
|
4653
|
+
b("div", Oa, [
|
|
4642
4654
|
Aa,
|
|
4643
4655
|
p(s, {
|
|
4644
4656
|
type: "text",
|
|
4645
4657
|
onClick: t[0] || (t[0] = () => e.appendNew())
|
|
4646
4658
|
}, {
|
|
4647
4659
|
default: c(() => [
|
|
4648
|
-
|
|
4660
|
+
S("添加")
|
|
4649
4661
|
]),
|
|
4650
4662
|
_: 1
|
|
4651
4663
|
})
|
|
@@ -4663,77 +4675,77 @@ function ja(e, t, l, o, n, a) {
|
|
|
4663
4675
|
"allow-drop": e.allowDrop,
|
|
4664
4676
|
onNodeDragEnd: e.handleDragEnd
|
|
4665
4677
|
}), {
|
|
4666
|
-
default: c(({ node:
|
|
4667
|
-
|
|
4668
|
-
|
|
4669
|
-
|
|
4670
|
-
|
|
4678
|
+
default: c(({ node: k, data: y }) => [
|
|
4679
|
+
b("span", Pa, [
|
|
4680
|
+
y[e.localTreeProps.props.label] ? (i(), h("span", Ra, B(y[e.localTreeProps.props.label]), 1)) : (i(), h("span", La, "请在右侧表单中修改 --> ")),
|
|
4681
|
+
b("span", null, [
|
|
4682
|
+
y[e.localTreeProps.props.label] ? (i(), f(s, {
|
|
4671
4683
|
key: 0,
|
|
4672
4684
|
class: "button",
|
|
4673
4685
|
type: "text",
|
|
4674
|
-
onClick: () => e.onclick(
|
|
4686
|
+
onClick: () => e.onclick(y)
|
|
4675
4687
|
}, {
|
|
4676
4688
|
default: c(() => [
|
|
4677
|
-
|
|
4689
|
+
S("编辑")
|
|
4678
4690
|
]),
|
|
4679
4691
|
_: 2
|
|
4680
|
-
}, 1032, ["onClick"])) :
|
|
4681
|
-
e.canAppend(
|
|
4692
|
+
}, 1032, ["onClick"])) : E("", !0),
|
|
4693
|
+
e.canAppend(y, k) ? (i(), f(s, {
|
|
4682
4694
|
key: 1,
|
|
4683
4695
|
class: "button",
|
|
4684
4696
|
type: "text",
|
|
4685
|
-
onClick: () => e.append(
|
|
4697
|
+
onClick: () => e.append(y, k)
|
|
4686
4698
|
}, {
|
|
4687
4699
|
default: c(() => [
|
|
4688
|
-
|
|
4700
|
+
S("添加")
|
|
4689
4701
|
]),
|
|
4690
4702
|
_: 2
|
|
4691
|
-
}, 1032, ["onClick"])) :
|
|
4692
|
-
|
|
4703
|
+
}, 1032, ["onClick"])) : E("", !0),
|
|
4704
|
+
y.children === void 0 || y.children.length === 0 ? (i(), f(s, {
|
|
4693
4705
|
key: 2,
|
|
4694
4706
|
class: "button",
|
|
4695
4707
|
type: "text",
|
|
4696
|
-
onClick: () => e.remove(
|
|
4708
|
+
onClick: () => e.remove(y)
|
|
4697
4709
|
}, {
|
|
4698
4710
|
default: c(() => [
|
|
4699
|
-
|
|
4711
|
+
S("删除")
|
|
4700
4712
|
]),
|
|
4701
4713
|
_: 2
|
|
4702
|
-
}, 1032, ["onClick"])) :
|
|
4714
|
+
}, 1032, ["onClick"])) : E("", !0)
|
|
4703
4715
|
])
|
|
4704
4716
|
])
|
|
4705
4717
|
]),
|
|
4706
4718
|
_: 1
|
|
4707
|
-
}, 16, ["data", "allow-drag", "allow-drop", "onNodeDragEnd"])) :
|
|
4719
|
+
}, 16, ["data", "allow-drag", "allow-drop", "onNodeDragEnd"])) : E("", !0)
|
|
4708
4720
|
]),
|
|
4709
4721
|
_: 1
|
|
4710
4722
|
})
|
|
4711
4723
|
]),
|
|
4712
4724
|
_: 1
|
|
4713
4725
|
}),
|
|
4714
|
-
p(
|
|
4726
|
+
p(u, {
|
|
4715
4727
|
span: 16,
|
|
4716
4728
|
class: "tree-form"
|
|
4717
4729
|
}, {
|
|
4718
4730
|
default: c(() => [
|
|
4719
|
-
e.type ? (i(), f(
|
|
4731
|
+
e.type ? (i(), f(d, {
|
|
4720
4732
|
key: 0,
|
|
4721
4733
|
shadow: "never"
|
|
4722
4734
|
}, {
|
|
4723
4735
|
header: c(() => [
|
|
4724
|
-
|
|
4725
|
-
|
|
4736
|
+
b("div", Ma, [
|
|
4737
|
+
b("span", null, B(e.formType), 1)
|
|
4726
4738
|
])
|
|
4727
4739
|
]),
|
|
4728
4740
|
default: c(() => [
|
|
4729
4741
|
(i(), f(m, F({
|
|
4730
4742
|
key: e.formkey,
|
|
4731
4743
|
modelValue: e.formData,
|
|
4732
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
4744
|
+
"onUpdate:modelValue": t[1] || (t[1] = (k) => e.formData = k)
|
|
4733
4745
|
}, e.formProps, { onSubmit: e.submit }), null, 16, ["modelValue", "onSubmit"]))
|
|
4734
4746
|
]),
|
|
4735
4747
|
_: 1
|
|
4736
|
-
})) :
|
|
4748
|
+
})) : E("", !0)
|
|
4737
4749
|
]),
|
|
4738
4750
|
_: 1
|
|
4739
4751
|
})
|
|
@@ -4741,7 +4753,7 @@ function ja(e, t, l, o, n, a) {
|
|
|
4741
4753
|
_: 1
|
|
4742
4754
|
});
|
|
4743
4755
|
}
|
|
4744
|
-
const Fe = /* @__PURE__ */
|
|
4756
|
+
const Fe = /* @__PURE__ */ $(Ba, [["render", Da]]), ja = {
|
|
4745
4757
|
__name: "tree",
|
|
4746
4758
|
setup(e) {
|
|
4747
4759
|
const t = (l, o) => {
|
|
@@ -4760,11 +4772,11 @@ const Fe = /* @__PURE__ */ I(Ba, [["render", ja]]), Da = {
|
|
|
4760
4772
|
}, ge = {
|
|
4761
4773
|
__name: "container",
|
|
4762
4774
|
setup(e) {
|
|
4763
|
-
const t =
|
|
4775
|
+
const t = D(0);
|
|
4764
4776
|
return pl(() => {
|
|
4765
4777
|
t.value++;
|
|
4766
4778
|
}), (l, o) => {
|
|
4767
|
-
const n =
|
|
4779
|
+
const n = w("router-view");
|
|
4768
4780
|
return i(), f(n);
|
|
4769
4781
|
};
|
|
4770
4782
|
}
|
|
@@ -4801,28 +4813,28 @@ function Va(e, t, l) {
|
|
|
4801
4813
|
if (l.length === 0)
|
|
4802
4814
|
return {};
|
|
4803
4815
|
let o = A({}, Na);
|
|
4804
|
-
if (o.title.text = e,
|
|
4816
|
+
if (o.title.text = e, Ie(t)) {
|
|
4805
4817
|
const n = [], a = Object.keys(l[0]);
|
|
4806
|
-
let s = a[0], r = a.filter((
|
|
4818
|
+
let s = a[0], r = a.filter((u, m) => m > 0), d = t;
|
|
4807
4819
|
if (t.indexOf(":") > -1) {
|
|
4808
|
-
const
|
|
4809
|
-
|
|
4820
|
+
const u = t.split(":"), m = u[1].split(",");
|
|
4821
|
+
d = u[0], s = m[0], r = m.filter((_, k) => k > 0);
|
|
4810
4822
|
}
|
|
4811
|
-
r.forEach((
|
|
4823
|
+
r.forEach((u) => {
|
|
4812
4824
|
const m = [];
|
|
4813
|
-
l.forEach((
|
|
4814
|
-
m.push(
|
|
4825
|
+
l.forEach((_) => {
|
|
4826
|
+
m.push(_[u]);
|
|
4815
4827
|
}), o.series.push({
|
|
4816
|
-
name:
|
|
4817
|
-
type:
|
|
4828
|
+
name: u,
|
|
4829
|
+
type: d,
|
|
4818
4830
|
smooth: !0,
|
|
4819
4831
|
data: m
|
|
4820
|
-
}), o.legend.data.push(
|
|
4821
|
-
}), l.forEach((
|
|
4822
|
-
n.push(
|
|
4832
|
+
}), o.legend.data.push(u);
|
|
4833
|
+
}), l.forEach((u) => {
|
|
4834
|
+
n.push(u[s]);
|
|
4823
4835
|
}), o.xAxis.data = n;
|
|
4824
4836
|
}
|
|
4825
|
-
return
|
|
4837
|
+
return Q(t) && (o = A(o, t)), o;
|
|
4826
4838
|
}
|
|
4827
4839
|
const qa = q({
|
|
4828
4840
|
name: "NumberPanel",
|
|
@@ -4837,19 +4849,19 @@ const qa = q({
|
|
|
4837
4849
|
}
|
|
4838
4850
|
}), Ua = { class: "number-panel-title" }, Ha = { class: "number" }, Fa = { class: "name" };
|
|
4839
4851
|
function Ga(e, t, l, o, n, a) {
|
|
4840
|
-
return i(!0), h(
|
|
4841
|
-
|
|
4842
|
-
(i(!0), h(
|
|
4843
|
-
key:
|
|
4852
|
+
return i(!0), h(I, null, O(e.dataList, (s, r) => (i(), h("span", { key: r }, [
|
|
4853
|
+
b("div", Ua, [
|
|
4854
|
+
(i(!0), h(I, null, O(Object.keys(s), (d, u) => (i(), h("div", {
|
|
4855
|
+
key: u,
|
|
4844
4856
|
class: "title-inner"
|
|
4845
4857
|
}, [
|
|
4846
|
-
|
|
4847
|
-
|
|
4858
|
+
b("p", Ha, B(s[d]), 1),
|
|
4859
|
+
b("p", Fa, B(d), 1)
|
|
4848
4860
|
]))), 128))
|
|
4849
4861
|
])
|
|
4850
4862
|
]))), 128);
|
|
4851
4863
|
}
|
|
4852
|
-
const Ja = /* @__PURE__ */
|
|
4864
|
+
const Ja = /* @__PURE__ */ $(qa, [["render", Ga], ["__scopeId", "data-v-cc0d8293"]]), za = {
|
|
4853
4865
|
components: {
|
|
4854
4866
|
Chart: Tl,
|
|
4855
4867
|
Md: Rl,
|
|
@@ -4907,14 +4919,14 @@ function Ka(e, t, l, o, n, a) {
|
|
|
4907
4919
|
class: "part"
|
|
4908
4920
|
}, {
|
|
4909
4921
|
default: c(() => [
|
|
4910
|
-
(i(), f(
|
|
4922
|
+
(i(), f(Xe(o.comptype()), G(Y(o.compprops(l.option))), null, 16))
|
|
4911
4923
|
]),
|
|
4912
4924
|
_: 1
|
|
4913
4925
|
})), [
|
|
4914
4926
|
[r, !0]
|
|
4915
4927
|
]);
|
|
4916
4928
|
}
|
|
4917
|
-
const Wa = /* @__PURE__ */
|
|
4929
|
+
const Wa = /* @__PURE__ */ $(za, [["render", Ka], ["__scopeId", "data-v-a5a65cc1"]]), Xa = /* @__PURE__ */ q({
|
|
4918
4930
|
__name: "index",
|
|
4919
4931
|
props: {
|
|
4920
4932
|
filter: {
|
|
@@ -4928,13 +4940,13 @@ const Wa = /* @__PURE__ */ I(za, [["render", Ka], ["__scopeId", "data-v-a5a65cc1
|
|
|
4928
4940
|
},
|
|
4929
4941
|
setup(e) {
|
|
4930
4942
|
const t = e, l = useRoute();
|
|
4931
|
-
|
|
4943
|
+
Ze(() => {
|
|
4932
4944
|
});
|
|
4933
|
-
const o =
|
|
4945
|
+
const o = D({});
|
|
4934
4946
|
ze(() => {
|
|
4935
4947
|
var m;
|
|
4936
|
-
(m = t.filter) == null || m.forEach((
|
|
4937
|
-
|
|
4948
|
+
(m = t.filter) == null || m.forEach((_) => {
|
|
4949
|
+
_.default !== null && (o.value[_.field] = _.default);
|
|
4938
4950
|
});
|
|
4939
4951
|
});
|
|
4940
4952
|
const n = {
|
|
@@ -4947,51 +4959,51 @@ const Wa = /* @__PURE__ */ I(za, [["render", Ka], ["__scopeId", "data-v-a5a65cc1
|
|
|
4947
4959
|
cancelButton: {
|
|
4948
4960
|
text: "重置"
|
|
4949
4961
|
}
|
|
4950
|
-
}, a =
|
|
4962
|
+
}, a = D(1), s = D(t.filter), r = D(t.dataPart), d = M(() => {
|
|
4951
4963
|
let m = l.params.id;
|
|
4952
4964
|
if (!m) {
|
|
4953
|
-
const
|
|
4954
|
-
m =
|
|
4965
|
+
const _ = l.path.split("/");
|
|
4966
|
+
m = _[_.length - 1];
|
|
4955
4967
|
}
|
|
4956
4968
|
return "/focusbi_report/view/" + m;
|
|
4957
|
-
}),
|
|
4958
|
-
Tt.get(
|
|
4959
|
-
s.value =
|
|
4969
|
+
}), u = (m) => {
|
|
4970
|
+
Tt.get(d.value, { params: m }).then(({ data: _ }) => {
|
|
4971
|
+
s.value = _.filter, r.value = _.dataPart, a.value++;
|
|
4960
4972
|
});
|
|
4961
4973
|
};
|
|
4962
|
-
return (m,
|
|
4963
|
-
const
|
|
4974
|
+
return (m, _) => {
|
|
4975
|
+
const k = Ae, y = de, J = Oe, U = ae;
|
|
4964
4976
|
return i(), f(U, null, {
|
|
4965
4977
|
default: c(() => [
|
|
4966
|
-
|
|
4978
|
+
x(s).length > 0 ? (i(), f(y, {
|
|
4967
4979
|
key: 0,
|
|
4968
4980
|
span: 24
|
|
4969
4981
|
}, {
|
|
4970
4982
|
default: c(() => [
|
|
4971
|
-
p(
|
|
4983
|
+
p(k, {
|
|
4972
4984
|
shadow: "never",
|
|
4973
4985
|
class: "part-filter"
|
|
4974
4986
|
}, {
|
|
4975
4987
|
default: c(() => [
|
|
4976
|
-
p(
|
|
4977
|
-
modelValue:
|
|
4978
|
-
"onUpdate:modelValue":
|
|
4979
|
-
"form-items":
|
|
4988
|
+
p(x(z), {
|
|
4989
|
+
modelValue: x(o),
|
|
4990
|
+
"onUpdate:modelValue": _[0] || (_[0] = (T) => qt(o) ? o.value = T : null),
|
|
4991
|
+
"form-items": x(s),
|
|
4980
4992
|
options: n,
|
|
4981
|
-
onSubmit:
|
|
4993
|
+
onSubmit: u
|
|
4982
4994
|
}, null, 8, ["modelValue", "form-items"])
|
|
4983
4995
|
]),
|
|
4984
4996
|
_: 1
|
|
4985
4997
|
})
|
|
4986
4998
|
]),
|
|
4987
4999
|
_: 1
|
|
4988
|
-
})) :
|
|
4989
|
-
p(
|
|
5000
|
+
})) : E("", !0),
|
|
5001
|
+
p(y, { span: 24 }, {
|
|
4990
5002
|
default: c(() => [
|
|
4991
5003
|
p(U, { gutter: 20 }, {
|
|
4992
5004
|
default: c(() => [
|
|
4993
|
-
(i(!0), h(
|
|
4994
|
-
key:
|
|
5005
|
+
(i(!0), h(I, null, O(x(r), (T, X) => (i(), f(y, {
|
|
5006
|
+
key: X,
|
|
4995
5007
|
span: T.col || 24
|
|
4996
5008
|
}, {
|
|
4997
5009
|
default: c(() => [
|
|
@@ -5001,11 +5013,11 @@ const Wa = /* @__PURE__ */ I(za, [["render", Ka], ["__scopeId", "data-v-a5a65cc1
|
|
|
5001
5013
|
type: "error"
|
|
5002
5014
|
}, {
|
|
5003
5015
|
default: c(() => [
|
|
5004
|
-
|
|
5016
|
+
S(B(T.errMsg), 1)
|
|
5005
5017
|
]),
|
|
5006
5018
|
_: 2
|
|
5007
5019
|
}, 1032, ["title"])) : (i(), f(Wa, {
|
|
5008
|
-
key:
|
|
5020
|
+
key: x(a),
|
|
5009
5021
|
option: T
|
|
5010
5022
|
}, null, 8, ["option"]))
|
|
5011
5023
|
]),
|
|
@@ -5023,10 +5035,10 @@ const Wa = /* @__PURE__ */ I(za, [["render", Ka], ["__scopeId", "data-v-a5a65cc1
|
|
|
5023
5035
|
};
|
|
5024
5036
|
}
|
|
5025
5037
|
});
|
|
5026
|
-
const
|
|
5038
|
+
const Za = {
|
|
5027
5039
|
__name: "report",
|
|
5028
5040
|
setup(e) {
|
|
5029
|
-
const t = useRoute(), l =
|
|
5041
|
+
const t = useRoute(), l = M(() => {
|
|
5030
5042
|
let o = t.params.id;
|
|
5031
5043
|
if (!o) {
|
|
5032
5044
|
const n = t.path.split("/");
|
|
@@ -5034,19 +5046,19 @@ const Qa = {
|
|
|
5034
5046
|
}
|
|
5035
5047
|
return "/focusbi_report/view/" + o;
|
|
5036
5048
|
});
|
|
5037
|
-
return (o, n) => (i(), f(se, { "schema-api":
|
|
5049
|
+
return (o, n) => (i(), f(se, { "schema-api": x(l) }, {
|
|
5038
5050
|
default: c((a) => [
|
|
5039
|
-
p(
|
|
5051
|
+
p(Xa, G(Y(a)), null, 16)
|
|
5040
5052
|
]),
|
|
5041
5053
|
_: 1
|
|
5042
5054
|
}, 8, ["schema-api"]));
|
|
5043
5055
|
}
|
|
5044
5056
|
};
|
|
5045
|
-
const
|
|
5057
|
+
const Qa = (e) => p("div", null, [e.test]), Ya = {
|
|
5046
5058
|
card: al,
|
|
5047
5059
|
form: z,
|
|
5048
5060
|
table: oe,
|
|
5049
|
-
test:
|
|
5061
|
+
test: Qa,
|
|
5050
5062
|
row: sl,
|
|
5051
5063
|
col: il
|
|
5052
5064
|
}, es = {
|
|
@@ -5082,9 +5094,9 @@ function ts(e) {
|
|
|
5082
5094
|
type: l[a],
|
|
5083
5095
|
children: [n]
|
|
5084
5096
|
};
|
|
5085
|
-
return n.span = o,
|
|
5097
|
+
return n.span = o, je([n]);
|
|
5086
5098
|
}
|
|
5087
|
-
function
|
|
5099
|
+
function je(e) {
|
|
5088
5100
|
const t = {
|
|
5089
5101
|
type: "row",
|
|
5090
5102
|
props: {
|
|
@@ -5096,12 +5108,12 @@ function De(e) {
|
|
|
5096
5108
|
return e.forEach((l) => {
|
|
5097
5109
|
var s, r;
|
|
5098
5110
|
let o = Object.assign({}, l);
|
|
5099
|
-
if (
|
|
5100
|
-
let
|
|
5101
|
-
Object.keys((r = o.props) == null ? void 0 : r.style).forEach((
|
|
5111
|
+
if (Q((s = o.props) == null ? void 0 : s.style)) {
|
|
5112
|
+
let d = "";
|
|
5113
|
+
Object.keys((r = o.props) == null ? void 0 : r.style).forEach((u) => {
|
|
5102
5114
|
var m;
|
|
5103
|
-
|
|
5104
|
-
}), o.props.style =
|
|
5115
|
+
d += u + ":" + ((m = o.props) == null ? void 0 : m.style[u]) + ";";
|
|
5116
|
+
}), o.props.style = d;
|
|
5105
5117
|
}
|
|
5106
5118
|
const n = {
|
|
5107
5119
|
span: o.span ?? 24,
|
|
@@ -5118,37 +5130,37 @@ function De(e) {
|
|
|
5118
5130
|
o = A({
|
|
5119
5131
|
props: {}
|
|
5120
5132
|
}, es[o.type] || {}, o);
|
|
5121
|
-
const a =
|
|
5122
|
-
a.length && (o.children =
|
|
5133
|
+
const a = It(o.children);
|
|
5134
|
+
a.length && (o.children = je(a)), t.children.push({
|
|
5123
5135
|
type: "col",
|
|
5124
5136
|
props: n,
|
|
5125
5137
|
children: [o]
|
|
5126
5138
|
});
|
|
5127
5139
|
}), [t];
|
|
5128
5140
|
}
|
|
5129
|
-
function
|
|
5130
|
-
return tt(e) ? e :
|
|
5141
|
+
function It(e) {
|
|
5142
|
+
return tt(e) ? e : Q(e) ? [e] : [];
|
|
5131
5143
|
}
|
|
5132
5144
|
let Ee = {};
|
|
5133
|
-
const
|
|
5145
|
+
const $t = (e) => {
|
|
5134
5146
|
const t = Ya[e.type] || Ee[e.type] || e.type;
|
|
5135
5147
|
return Ht(t, e.props, {
|
|
5136
|
-
default: () =>
|
|
5148
|
+
default: () => It(e.children).map((l) => $t(l))
|
|
5137
5149
|
});
|
|
5138
|
-
}, ls = (e) => (Object.keys(Ee).length === 0 && (Ee = Ut().appContext.components),
|
|
5150
|
+
}, ls = (e) => (Object.keys(Ee).length === 0 && (Ee = Ut().appContext.components), je(Object.values(e.schema)).map((l) => $t(l))), ns = {
|
|
5139
5151
|
__name: "custom",
|
|
5140
5152
|
setup(e) {
|
|
5141
|
-
const t =
|
|
5153
|
+
const t = D([]), l = (o, n) => (t.value = Ft(o), o);
|
|
5142
5154
|
return (o, n) => (i(), f(se, { "schema-handler": l }, {
|
|
5143
5155
|
default: c(() => [
|
|
5144
|
-
p(
|
|
5156
|
+
p(x(ls), { schema: x(t) }, null, 8, ["schema"])
|
|
5145
5157
|
]),
|
|
5146
5158
|
_: 1
|
|
5147
5159
|
}));
|
|
5148
5160
|
}
|
|
5149
5161
|
};
|
|
5150
5162
|
let te = {};
|
|
5151
|
-
function
|
|
5163
|
+
function Ci(e) {
|
|
5152
5164
|
te = e;
|
|
5153
5165
|
}
|
|
5154
5166
|
const os = (e) => {
|
|
@@ -5159,25 +5171,25 @@ const os = (e) => {
|
|
|
5159
5171
|
if (e.path === "#")
|
|
5160
5172
|
return ge;
|
|
5161
5173
|
switch (e.page_type) {
|
|
5162
|
-
case
|
|
5174
|
+
case j.list:
|
|
5163
5175
|
return Et;
|
|
5164
|
-
case
|
|
5176
|
+
case j.form:
|
|
5165
5177
|
return xe;
|
|
5166
|
-
case
|
|
5167
|
-
case
|
|
5178
|
+
case j.custom:
|
|
5179
|
+
case j.localComp:
|
|
5168
5180
|
return t(e.view || "");
|
|
5169
|
-
case
|
|
5170
|
-
return
|
|
5171
|
-
case
|
|
5172
|
-
return
|
|
5173
|
-
case
|
|
5181
|
+
case j.tree:
|
|
5182
|
+
return ja;
|
|
5183
|
+
case j.report:
|
|
5184
|
+
return Za;
|
|
5185
|
+
case j.customSchema:
|
|
5174
5186
|
return ns;
|
|
5175
5187
|
}
|
|
5176
5188
|
return ge;
|
|
5177
5189
|
};
|
|
5178
5190
|
function as(e) {
|
|
5179
5191
|
let t = e.path;
|
|
5180
|
-
return e.type === L.menu && e.page_type ===
|
|
5192
|
+
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
5193
|
}
|
|
5182
5194
|
function ss(e) {
|
|
5183
5195
|
return (e.path + e.name).split("/").filter((t) => t).join("_");
|
|
@@ -5199,7 +5211,7 @@ const Ct = (e) => {
|
|
|
5199
5211
|
},
|
|
5200
5212
|
children: e.children ? e.children.map((o) => Ct(o)) : []
|
|
5201
5213
|
};
|
|
5202
|
-
if (e.page_type ===
|
|
5214
|
+
if (e.page_type === j.entity) {
|
|
5203
5215
|
const o = e.path + "/list", n = e.path + "/form", a = e.path + "/:id", s = [{
|
|
5204
5216
|
path: o,
|
|
5205
5217
|
name: e.name + "列表" + e.id,
|
|
@@ -5281,8 +5293,8 @@ function rs(e) {
|
|
|
5281
5293
|
o();
|
|
5282
5294
|
return;
|
|
5283
5295
|
}
|
|
5284
|
-
await
|
|
5285
|
-
const n = await
|
|
5296
|
+
await g.dispatch("user/info");
|
|
5297
|
+
const n = await g.dispatch("user/loadRemoteRoutes"), a = is(n);
|
|
5286
5298
|
a.forEach((s) => {
|
|
5287
5299
|
s.routes.forEach((r) => {
|
|
5288
5300
|
e.addRoute({
|
|
@@ -5291,20 +5303,20 @@ function rs(e) {
|
|
|
5291
5303
|
children: [r]
|
|
5292
5304
|
});
|
|
5293
5305
|
});
|
|
5294
|
-
}), e.addRoute({ name: "404", path: "/:pathMatch(.*)*", redirect: "/404", hidden: !0 }),
|
|
5306
|
+
}), e.addRoute({ name: "404", path: "/:pathMatch(.*)*", redirect: "/404", hidden: !0 }), g.commit("user/updateRemoteRouter", a), await e.replace(t), o();
|
|
5295
5307
|
});
|
|
5296
5308
|
}
|
|
5297
5309
|
function cs(e) {
|
|
5298
5310
|
e.beforeEach(async (t, l, o) => {
|
|
5299
5311
|
var r;
|
|
5300
|
-
const a = [
|
|
5301
|
-
for (let
|
|
5302
|
-
const
|
|
5303
|
-
(r =
|
|
5312
|
+
const a = [g.state.settings.title || ""], s = t.matched.length;
|
|
5313
|
+
for (let d = s; d > s - 3; d--) {
|
|
5314
|
+
const u = t.matched[d - 1];
|
|
5315
|
+
(r = u == null ? void 0 : u.meta) != null && r.title && a.push(u.meta.title + "");
|
|
5304
5316
|
}
|
|
5305
5317
|
a.length > 1 && (document.title = a.reverse().join("-")), o();
|
|
5306
5318
|
}), e.afterEach(async (t, l, o) => {
|
|
5307
|
-
Object.keys(t.meta).length > 0 && await
|
|
5319
|
+
Object.keys(t.meta).length > 0 && await g.dispatch("app/setCurrentMeta", t.meta);
|
|
5308
5320
|
});
|
|
5309
5321
|
}
|
|
5310
5322
|
function us(e) {
|
|
@@ -5312,7 +5324,10 @@ function us(e) {
|
|
|
5312
5324
|
}
|
|
5313
5325
|
us(K);
|
|
5314
5326
|
function ps() {
|
|
5315
|
-
return
|
|
5327
|
+
return g.state.user.token;
|
|
5328
|
+
}
|
|
5329
|
+
function ds() {
|
|
5330
|
+
return g.state.user.expired;
|
|
5316
5331
|
}
|
|
5317
5332
|
function Ge(e) {
|
|
5318
5333
|
ln({
|
|
@@ -5322,26 +5337,28 @@ function Ge(e) {
|
|
|
5322
5337
|
grouping: !0
|
|
5323
5338
|
});
|
|
5324
5339
|
}
|
|
5325
|
-
const
|
|
5340
|
+
const ms = {
|
|
5326
5341
|
onFulfilled: function(e) {
|
|
5327
5342
|
var l;
|
|
5328
5343
|
e.headers = e.headers || {};
|
|
5329
5344
|
const t = ps();
|
|
5330
5345
|
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
5346
|
}
|
|
5332
|
-
},
|
|
5347
|
+
}, fs = {
|
|
5333
5348
|
onFulfilled(e) {
|
|
5334
|
-
var o, n, a, s, r,
|
|
5349
|
+
var o, n, a, s, r, d, u;
|
|
5335
5350
|
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
5351
|
const m = e.data.message || `接口请求错误 ${e.config.method}::${(a = e.config.url) == null ? void 0 : a.split("?")[0]}`;
|
|
5337
5352
|
if (e.data.code === 401) {
|
|
5338
|
-
|
|
5353
|
+
if (ds())
|
|
5354
|
+
return;
|
|
5355
|
+
g.dispatch("user/SetExpired"), Ue.alert("登录信息已过期或未登录, 是否跳转登录", "操作提醒", {
|
|
5339
5356
|
showClose: !1,
|
|
5340
5357
|
confirmButtonText: "重新登录",
|
|
5341
5358
|
showCancelButton: !0,
|
|
5342
5359
|
cancelButtonText: "取消",
|
|
5343
|
-
callback: (
|
|
5344
|
-
|
|
5360
|
+
callback: (_) => {
|
|
5361
|
+
_ === "confirm" && (ft(), location.href = location.origin + location.pathname + location.hash.replace("#", "#/?redirect="), location.reload()), g.dispatch("user/SetExpired");
|
|
5345
5362
|
}
|
|
5346
5363
|
});
|
|
5347
5364
|
return;
|
|
@@ -5350,8 +5367,8 @@ const ds = {
|
|
|
5350
5367
|
return Promise.reject(m);
|
|
5351
5368
|
}
|
|
5352
5369
|
let l = (r = (s = e.data) == null ? void 0 : s.data) == null ? void 0 : r._message_box;
|
|
5353
|
-
return l !== void 0 && (
|
|
5354
|
-
message: (
|
|
5370
|
+
return l !== void 0 && (Ie(l) && (l = {
|
|
5371
|
+
message: (u = (d = e.data) == null ? void 0 : d.data) == null ? void 0 : u._message_box
|
|
5355
5372
|
}), Ue({
|
|
5356
5373
|
title: "提示",
|
|
5357
5374
|
type: "success",
|
|
@@ -5361,29 +5378,29 @@ const ds = {
|
|
|
5361
5378
|
},
|
|
5362
5379
|
onRejected(e) {
|
|
5363
5380
|
var t;
|
|
5364
|
-
return
|
|
5381
|
+
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
5382
|
}
|
|
5366
|
-
},
|
|
5383
|
+
}, hs = [
|
|
5367
5384
|
{
|
|
5368
5385
|
request: on,
|
|
5369
5386
|
response: an
|
|
5370
5387
|
},
|
|
5371
5388
|
{
|
|
5372
|
-
request:
|
|
5373
|
-
response:
|
|
5389
|
+
request: ms,
|
|
5390
|
+
response: fs
|
|
5374
5391
|
}
|
|
5375
5392
|
];
|
|
5376
5393
|
function Ne(e = {}) {
|
|
5377
|
-
const t = me.axios || {}, l = A(t, e || {}), o =
|
|
5394
|
+
const t = me.axios || {}, l = A(t, e || {}), o = $e.create({
|
|
5378
5395
|
...l
|
|
5379
5396
|
// adapter: (c) => cacheAdapter(c, defaultAxios)
|
|
5380
5397
|
});
|
|
5381
|
-
return
|
|
5398
|
+
return hs.forEach((n) => {
|
|
5382
5399
|
o.interceptors.request.use(n.request.onFulfilled, n.request.onRejected), o.interceptors.response.use(n.response.onFulfilled, n.response.onRejected);
|
|
5383
5400
|
}), o;
|
|
5384
5401
|
}
|
|
5385
5402
|
const Tt = Ne();
|
|
5386
|
-
const
|
|
5403
|
+
const bs = {
|
|
5387
5404
|
beforeMount(e, t) {
|
|
5388
5405
|
e.clickOutsideEvent = function(l) {
|
|
5389
5406
|
e === l.target || e.contains(l.target) || t.value(l, e);
|
|
@@ -5392,13 +5409,13 @@ const hs = {
|
|
|
5392
5409
|
unmounted(e) {
|
|
5393
5410
|
document.body.removeEventListener("click", e.clickOutsideEvent);
|
|
5394
5411
|
}
|
|
5395
|
-
}, W = Al(),
|
|
5412
|
+
}, W = Al(), _s = {
|
|
5396
5413
|
mounted: (e, t) => {
|
|
5397
5414
|
e !== null && (t.value, e.oncontextmenu = (l) => {
|
|
5398
5415
|
l.preventDefault(), l.stopPropagation(), l.cancelBubble = !0, t.value && W.emit("right-click", { event: l, data: t.value });
|
|
5399
5416
|
});
|
|
5400
5417
|
}
|
|
5401
|
-
},
|
|
5418
|
+
}, ys = {
|
|
5402
5419
|
mounted(e) {
|
|
5403
5420
|
}
|
|
5404
5421
|
};
|
|
@@ -5408,13 +5425,13 @@ function Je(e, t) {
|
|
|
5408
5425
|
l += o[`offset${t}`], o = o.offsetParent;
|
|
5409
5426
|
return l;
|
|
5410
5427
|
}
|
|
5411
|
-
const
|
|
5428
|
+
const vs = {
|
|
5412
5429
|
mounted: (e, t) => {
|
|
5413
5430
|
if (e === null || !t.value.dev)
|
|
5414
5431
|
return;
|
|
5415
5432
|
let l = e;
|
|
5416
5433
|
if (t.value.parent)
|
|
5417
|
-
for (let
|
|
5434
|
+
for (let d = 0; d < t.value.parent; d++)
|
|
5418
5435
|
l.parentElement && (l = l.parentElement);
|
|
5419
5436
|
l.classList.add("devtool-hover");
|
|
5420
5437
|
const o = document.createElement("i");
|
|
@@ -5424,75 +5441,75 @@ const ys = {
|
|
|
5424
5441
|
const n = document.createElement("span");
|
|
5425
5442
|
n.className = "dev-action-edit", n.title = "编辑";
|
|
5426
5443
|
const a = document.createElement("i");
|
|
5427
|
-
a.className = "iconfont ra-editor1", n.appendChild(a), n.onclick = (
|
|
5428
|
-
W.emit("dev-action", { event:
|
|
5444
|
+
a.className = "iconfont ra-editor1", n.appendChild(a), n.onclick = (d) => {
|
|
5445
|
+
W.emit("dev-action", { event: d, data: { type: "edit", devId: t.value.devId } });
|
|
5429
5446
|
}, o.appendChild(n);
|
|
5430
5447
|
const s = document.createElement("span");
|
|
5431
5448
|
s.className = "dev-action-del", s.title = "删除";
|
|
5432
5449
|
const r = document.createElement("i");
|
|
5433
|
-
r.className = "iconfont ra-cut", s.appendChild(r), s.onclick = (
|
|
5434
|
-
W.emit("dev-action", { event:
|
|
5450
|
+
r.className = "iconfont ra-cut", s.appendChild(r), s.onclick = (d) => {
|
|
5451
|
+
W.emit("dev-action", { event: d, data: { type: "del", devId: t.value.devId } });
|
|
5435
5452
|
}, o.appendChild(s), l.insertBefore(o, l.firstChild);
|
|
5436
5453
|
}
|
|
5437
|
-
},
|
|
5454
|
+
}, gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5438
5455
|
__proto__: null,
|
|
5439
|
-
devtool:
|
|
5440
|
-
outClick:
|
|
5441
|
-
resize:
|
|
5442
|
-
rightClick:
|
|
5456
|
+
devtool: vs,
|
|
5457
|
+
outClick: bs,
|
|
5458
|
+
resize: ys,
|
|
5459
|
+
rightClick: _s
|
|
5443
5460
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5444
5461
|
let ce;
|
|
5445
|
-
function
|
|
5462
|
+
function Ti(e) {
|
|
5446
5463
|
return e ? Ne(A(me.axios, e)) : ce;
|
|
5447
5464
|
}
|
|
5448
|
-
function
|
|
5465
|
+
function Bi(e) {
|
|
5449
5466
|
const t = A(me, e), l = Gt(Ml), o = $s(t), n = t.plugins || [];
|
|
5450
5467
|
n.unshift(o), n.forEach((a) => {
|
|
5451
|
-
|
|
5452
|
-
}), t != null && t.mock && Jl(), ce = Ne(t.axios),
|
|
5468
|
+
Is(l, a);
|
|
5469
|
+
}), t != null && t.mock && Jl(), ce = Ne(t.axios), g.dispatch("setHttp", ce).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 = ce, l.config.globalProperties.$router = K, window.App = l, window.OmsOptions = t, Bl(() => ({
|
|
5453
5470
|
"X-Token": Me()
|
|
5454
5471
|
})), K.isReady().then(() => l.mount("#app"));
|
|
5455
5472
|
}
|
|
5456
|
-
function
|
|
5473
|
+
function ks(e, t = {}) {
|
|
5457
5474
|
Object.keys(t).forEach((l) => {
|
|
5458
5475
|
e.component(l, t[l]);
|
|
5459
5476
|
});
|
|
5460
5477
|
}
|
|
5461
|
-
function
|
|
5478
|
+
function ws(e = []) {
|
|
5462
5479
|
e.forEach((t) => {
|
|
5463
5480
|
K.addRoute(t);
|
|
5464
|
-
}),
|
|
5481
|
+
}), g.commit("user/setCustomRoutes", e);
|
|
5465
5482
|
}
|
|
5466
|
-
function
|
|
5483
|
+
function Ss(e, t) {
|
|
5467
5484
|
t.forEach((l) => {
|
|
5468
|
-
|
|
5485
|
+
Q(l) && (l = [l]), e.use(...l);
|
|
5469
5486
|
});
|
|
5470
5487
|
}
|
|
5471
|
-
function
|
|
5488
|
+
function xs(e, t = {}) {
|
|
5472
5489
|
Object.keys(t).forEach((l) => {
|
|
5473
5490
|
e.directive(l, t[l]);
|
|
5474
5491
|
});
|
|
5475
5492
|
}
|
|
5476
|
-
function
|
|
5493
|
+
function Es(e = {}) {
|
|
5477
5494
|
const t = ["app", "settings", "user"];
|
|
5478
5495
|
Object.keys(e).forEach((l) => {
|
|
5479
5496
|
if (t.indexOf(l) !== -1) {
|
|
5480
5497
|
console.warn(`storeModule name [${l}] is use by base, please change it!`);
|
|
5481
5498
|
return;
|
|
5482
5499
|
}
|
|
5483
|
-
|
|
5500
|
+
g.registerModule(l, e[l]);
|
|
5484
5501
|
});
|
|
5485
5502
|
}
|
|
5486
|
-
function
|
|
5487
|
-
|
|
5503
|
+
function Is(e, t) {
|
|
5504
|
+
ks(e, t.components || {}), ws(t.routes || []), Ss(e, t.use || []), xs(e, t.directives || {}), Es(t.storeModules || {}), dt(t.mockApis || []);
|
|
5488
5505
|
}
|
|
5489
5506
|
function $s(e) {
|
|
5490
5507
|
var t;
|
|
5491
5508
|
return {
|
|
5492
5509
|
components: { VIcon: Ol },
|
|
5493
|
-
directives:
|
|
5510
|
+
directives: gs,
|
|
5494
5511
|
use: [
|
|
5495
|
-
|
|
5512
|
+
g,
|
|
5496
5513
|
K,
|
|
5497
5514
|
[nl, { locale: nt, ...(t = e.settings) == null ? void 0 : t.ElementPlus }]
|
|
5498
5515
|
]
|
|
@@ -5502,21 +5519,21 @@ export {
|
|
|
5502
5519
|
wt as BaseSso,
|
|
5503
5520
|
ge as Container,
|
|
5504
5521
|
$i as DingTalk,
|
|
5505
|
-
|
|
5522
|
+
Ii as Github,
|
|
5506
5523
|
vt as Layout,
|
|
5507
5524
|
L as MenuType,
|
|
5508
5525
|
ln as Message,
|
|
5509
5526
|
Ue as MessageBox,
|
|
5510
|
-
|
|
5527
|
+
j as PageType,
|
|
5511
5528
|
_a as allSso,
|
|
5512
|
-
|
|
5529
|
+
Bi as createAdmin,
|
|
5513
5530
|
W as eventBus,
|
|
5514
5531
|
sn as getCmp,
|
|
5515
5532
|
ce as http,
|
|
5516
5533
|
Ne as instance,
|
|
5517
|
-
|
|
5518
|
-
|
|
5534
|
+
Ci as regViews,
|
|
5535
|
+
Ei as setCmp,
|
|
5519
5536
|
is as transRemoteModules,
|
|
5520
|
-
|
|
5537
|
+
Ti as useHttp
|
|
5521
5538
|
};
|
|
5522
5539
|
//# sourceMappingURL=index.es.js.map
|