@okiss/oms 0.0.39 → 0.0.41
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 +134 -130
- package/dist/index.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
var $t = Object.defineProperty;
|
|
2
2
|
var It = (e, t, l) => t in e ? $t(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l;
|
|
3
3
|
var M = (e, t, l) => (It(e, typeof t != "symbol" ? t + "" : t, l), l);
|
|
4
|
-
import { defineComponent as q, onBeforeMount as
|
|
5
|
-
import { addNewStyle as Vt, addNewStyleTag as qt, queryParams as Ut, logGroup as Ht, compactObject as
|
|
6
|
-
import
|
|
4
|
+
import { defineComponent as q, onBeforeMount as Ke, provide as Ct, resolveComponent as v, openBlock as i, createBlock as f, createVNode as u, computed as j, createTextVNode as g, withCtx as r, TransitionGroup as Tt, createElementBlock as h, Fragment as S, renderList as B, toDisplayString as O, normalizeClass as H, renderSlot as le, mergeProps as G, createCommentVNode as x, toRefs as Ot, ref as L, normalizeStyle as Bt, createElementVNode as b, Transition as At, pushScopeId as We, popScopeId as Ze, resolveDynamicComponent as Qe, normalizeProps as W, guardReactiveProps as Y, unref as k, withDirectives as ie, vModelText as be, resolveDirective as Rt, onMounted as Pt, isRef as Lt, getCurrentInstance as Mt, h as Dt, toRaw as jt, createApp as Nt } from "vue";
|
|
5
|
+
import { addNewStyle as Vt, addNewStyleTag as qt, queryParams as Ut, logGroup as Ht, compactObject as Xe, showEleByClassName as pe, waterMarker as Ft, Cache as _e, isExternal as qe, getQueryParam as Gt, createIFrame as Jt, strVarReplace as Q, obj2Param as zt, isObject as X, isString as Ie, effectDataTrans as Kt, isArray as Ye } from "@okiss/utils";
|
|
6
|
+
import ye from "mockjs";
|
|
7
7
|
import Wt, { cloneDeep as y, merge as A, get as ne, unset as et } from "lodash";
|
|
8
8
|
import tt from "element-plus/lib/locale/lang/zh-cn";
|
|
9
|
-
import
|
|
9
|
+
import Ce from "axios";
|
|
10
10
|
import N from "js-cookie";
|
|
11
|
-
import { createStore as Zt, useStore as lt, mapGetters as
|
|
11
|
+
import { createStore as Zt, useStore as lt, mapGetters as Te } from "vuex";
|
|
12
12
|
import Qt, { ElMessage as Xt, ElMessageBox as Yt, ElCard as el, ElRow as tl, ElCol as ll } from "element-plus";
|
|
13
13
|
import "element-plus/dist/index.css";
|
|
14
14
|
import "dayjs/locale/zh-cn";
|
|
15
|
-
import { useRoute as
|
|
16
|
-
import { ElBreadcrumbItem as rl, ElBreadcrumb as cl, ElRow as ae, ElMain as ul, ElAside as pl, ElContainer as dl, ElDivider as nt, ElButton as ue, ElOption as
|
|
15
|
+
import { useRoute as de, onBeforeRouteLeave as nl, useRouter as ol, createRouter as al, createWebHashHistory as sl, onBeforeRouteUpdate as il } from "vue-router";
|
|
16
|
+
import { ElBreadcrumbItem as rl, ElBreadcrumb as cl, ElRow as ae, ElMain as ul, ElAside as pl, ElContainer as dl, ElDivider as nt, ElButton as ue, ElOption as Oe, ElSelect as Be, ElFormItem as ot, ElForm as at, ElCol as me, ElDrawer as st, ElDropdownItem as ml, ElDropdownMenu as fl, ElDropdown as hl, ElMenuItem as bl, ElSubMenu as _l, ElOptionGroup as yl, ElMenu as vl, ElScrollbar as gl, ElBacktop as kl, ElMessage as wl, ElAlert as Ae, ElTree as Sl, ElCard as Re } from "element-plus/es";
|
|
17
17
|
import "element-plus/es/components/base/style/css";
|
|
18
18
|
import "element-plus/es/components/row/style/css";
|
|
19
19
|
import "element-plus/es/components/drawer/style/css";
|
|
@@ -33,7 +33,7 @@ import "element-plus/es/components/divider/style/css";
|
|
|
33
33
|
import "element-plus/es/components/container/style/css";
|
|
34
34
|
import "element-plus/es/components/aside/style/css";
|
|
35
35
|
import "element-plus/es/components/main/style/css";
|
|
36
|
-
import { VForm as J, VBtn as
|
|
36
|
+
import { VForm as J, VBtn as Pe, JsonView as Le, VTable as oe, VChart as El, setUploadHeaderHandle as $l, VIcon as Il } from "@okiss/vbtf";
|
|
37
37
|
import "normalize.css/normalize.css";
|
|
38
38
|
import "@okiss/vbtf/style.css";
|
|
39
39
|
import Cl from "mitt";
|
|
@@ -50,7 +50,7 @@ import "element-plus/es/components/tree/style/css";
|
|
|
50
50
|
import Ol from "vue3-markdown-it";
|
|
51
51
|
import { MD5 as Bl } from "crypto-js";
|
|
52
52
|
import "element-plus/es/components/message/style/css";
|
|
53
|
-
import
|
|
53
|
+
import we from "nprogress";
|
|
54
54
|
import "nprogress/nprogress.css";
|
|
55
55
|
String.prototype.format || (String.prototype.format = function() {
|
|
56
56
|
const e = arguments;
|
|
@@ -62,7 +62,7 @@ const Al = /* @__PURE__ */ q({
|
|
|
62
62
|
__name: "App",
|
|
63
63
|
setup(e) {
|
|
64
64
|
var t, l, n, o;
|
|
65
|
-
return
|
|
65
|
+
return Ke(() => {
|
|
66
66
|
const a = document.getElementById("preloader");
|
|
67
67
|
a !== null && (document.body.removeChild(a), Vt("test-icon", "//at.alicdn.com/t/font_2246548_zclaqxwmzq8.css"), qt(`.iconfont {
|
|
68
68
|
font-size: 19px;
|
|
@@ -411,7 +411,7 @@ const Rl = {
|
|
|
411
411
|
info: "在通用表单控件无法满足需求时, 可以编写 `template` 模板组件"
|
|
412
412
|
}
|
|
413
413
|
]
|
|
414
|
-
},
|
|
414
|
+
}, Ue = [
|
|
415
415
|
{
|
|
416
416
|
type: "jump",
|
|
417
417
|
text: "跳转",
|
|
@@ -532,7 +532,7 @@ const Rl = {
|
|
|
532
532
|
label: "信息"
|
|
533
533
|
}
|
|
534
534
|
],
|
|
535
|
-
batchButton:
|
|
535
|
+
batchButton: Ue,
|
|
536
536
|
rowButton: [
|
|
537
537
|
{
|
|
538
538
|
type: "jump",
|
|
@@ -563,7 +563,7 @@ const Rl = {
|
|
|
563
563
|
}
|
|
564
564
|
],
|
|
565
565
|
normalButton: [
|
|
566
|
-
...Wt.cloneDeep(
|
|
566
|
+
...Wt.cloneDeep(Ue),
|
|
567
567
|
{
|
|
568
568
|
type: "jump",
|
|
569
569
|
target: "/user/form",
|
|
@@ -750,49 +750,49 @@ const Rl = {
|
|
|
750
750
|
pre: "green"
|
|
751
751
|
},
|
|
752
752
|
serviceOffLineNotice: "当前页面功能正在维护, 请稍后再试~~~"
|
|
753
|
-
},
|
|
753
|
+
}, fe = {
|
|
754
754
|
axios: ql,
|
|
755
755
|
settings: it,
|
|
756
756
|
plugins: [],
|
|
757
757
|
mock: !1
|
|
758
|
-
},
|
|
758
|
+
}, Se = {};
|
|
759
759
|
function rt(e) {
|
|
760
760
|
e.forEach((t) => {
|
|
761
761
|
const l = ct(t);
|
|
762
|
-
|
|
762
|
+
Se[`${t.method}::${l}`] = t;
|
|
763
763
|
});
|
|
764
764
|
}
|
|
765
765
|
rt(Vl);
|
|
766
766
|
function ct(e) {
|
|
767
767
|
var n;
|
|
768
|
-
let t = e.url, l = e.baseURL || ((n =
|
|
768
|
+
let t = e.url, l = e.baseURL || ((n = fe.axios) == null ? void 0 : n.baseURL);
|
|
769
769
|
return l || (l = ""), typeof t == "string" ? (t = ("/" + l + t).split("/").filter((o) => o).join("/"), t += "(|\\?.*)$", new RegExp(t)) : t;
|
|
770
770
|
}
|
|
771
771
|
function Ul() {
|
|
772
|
-
Object.keys(
|
|
773
|
-
const t =
|
|
774
|
-
|
|
775
|
-
const { url: o, type: a, body: s } = n, c = Ut(o), p = s ? JSON.parse(s) : {}, d = t.response({ query: c, data: p }), m =
|
|
776
|
-
return Ht(o, { type: a, query: c, data: p, response: m }),
|
|
772
|
+
Object.keys(Se).forEach((e) => {
|
|
773
|
+
const t = Se[e], l = ct(t);
|
|
774
|
+
ye.mock(l, t.method, function(n) {
|
|
775
|
+
const { url: o, type: a, body: s } = n, c = Ut(o), p = s ? JSON.parse(s) : {}, d = t.response({ query: c, data: p }), m = ye.mock(d);
|
|
776
|
+
return Ht(o, { type: a, query: c, data: p, response: m }), ye.mock(m);
|
|
777
777
|
});
|
|
778
778
|
}), console.log("%c ApiMock is stared! ", "background: #606060; color: #fff; padding: 4px 5px; border-radius: 1px;");
|
|
779
779
|
}
|
|
780
|
-
const
|
|
781
|
-
function
|
|
782
|
-
return N.get(
|
|
780
|
+
const Me = "oms:token";
|
|
781
|
+
function De() {
|
|
782
|
+
return N.get(Me) || "";
|
|
783
783
|
}
|
|
784
784
|
function Hl(e) {
|
|
785
785
|
const t = new Date((/* @__PURE__ */ new Date()).getTime() + (E.state.settings.tokenExpire || 864e5));
|
|
786
|
-
return N.set(
|
|
786
|
+
return N.set(Me, e, { expires: t });
|
|
787
787
|
}
|
|
788
788
|
function ut() {
|
|
789
|
-
return N.remove(
|
|
789
|
+
return N.remove(Me);
|
|
790
790
|
}
|
|
791
791
|
const Fl = {
|
|
792
792
|
name: "",
|
|
793
793
|
nickname: "",
|
|
794
794
|
avatar: "",
|
|
795
|
-
token:
|
|
795
|
+
token: De(),
|
|
796
796
|
customRouter: [],
|
|
797
797
|
remoteRouter: [],
|
|
798
798
|
menuRoutes: [],
|
|
@@ -825,7 +825,7 @@ const Fl = {
|
|
|
825
825
|
name: "",
|
|
826
826
|
nickname: "",
|
|
827
827
|
avatar: "",
|
|
828
|
-
token:
|
|
828
|
+
token: De(),
|
|
829
829
|
customRouter: [],
|
|
830
830
|
remoteRouter: [],
|
|
831
831
|
menuRoutes: [],
|
|
@@ -1004,7 +1004,7 @@ const Fl = {
|
|
|
1004
1004
|
app: Wl,
|
|
1005
1005
|
builderSchema: Ql
|
|
1006
1006
|
}
|
|
1007
|
-
}), Xl = Xt,
|
|
1007
|
+
}), Xl = Xt, He = Yt, Yl = Ce.CancelToken, re = {
|
|
1008
1008
|
taskList: {},
|
|
1009
1009
|
cacheList: /* @__PURE__ */ new Map(),
|
|
1010
1010
|
uniqueId(e) {
|
|
@@ -1809,7 +1809,7 @@ R(Sn);
|
|
|
1809
1809
|
R(xn);
|
|
1810
1810
|
R($n);
|
|
1811
1811
|
R(En);
|
|
1812
|
-
const
|
|
1812
|
+
const xe = mt, Tn = {
|
|
1813
1813
|
options: {
|
|
1814
1814
|
labelPosition: "top",
|
|
1815
1815
|
submitButton: !1,
|
|
@@ -1908,13 +1908,13 @@ const Se = mt, Tn = {
|
|
|
1908
1908
|
}
|
|
1909
1909
|
]
|
|
1910
1910
|
};
|
|
1911
|
-
const
|
|
1911
|
+
const ve = {
|
|
1912
1912
|
labelPosition: "top",
|
|
1913
1913
|
submitButton: !1,
|
|
1914
1914
|
cancelButton: !1
|
|
1915
|
-
},
|
|
1916
|
-
Object.keys(
|
|
1917
|
-
|
|
1915
|
+
}, je = [];
|
|
1916
|
+
Object.keys(xe).forEach((e) => {
|
|
1917
|
+
je.push({ value: e, label: xe[e].name });
|
|
1918
1918
|
});
|
|
1919
1919
|
const On = {
|
|
1920
1920
|
options: {
|
|
@@ -1937,7 +1937,7 @@ const On = {
|
|
|
1937
1937
|
type: "select",
|
|
1938
1938
|
field: "type",
|
|
1939
1939
|
label: "类型",
|
|
1940
|
-
options: y(
|
|
1940
|
+
options: y(je)
|
|
1941
1941
|
},
|
|
1942
1942
|
{
|
|
1943
1943
|
type: "input",
|
|
@@ -1949,7 +1949,7 @@ const On = {
|
|
|
1949
1949
|
}
|
|
1950
1950
|
]
|
|
1951
1951
|
}, Bn = {
|
|
1952
|
-
components: { DevLayout: dt, VForm: J, VButton:
|
|
1952
|
+
components: { DevLayout: dt, VForm: J, VButton: Pe, JsonView: Le },
|
|
1953
1953
|
props: {
|
|
1954
1954
|
schema: {
|
|
1955
1955
|
type: Object,
|
|
@@ -1981,12 +1981,12 @@ const On = {
|
|
|
1981
1981
|
ctrlSchema: {},
|
|
1982
1982
|
ctrlName: "",
|
|
1983
1983
|
activeIndex: void 0,
|
|
1984
|
-
ctrlMap:
|
|
1984
|
+
ctrlMap: xe,
|
|
1985
1985
|
activeIndexReg: /(formItems)?\[(\d+)\]/,
|
|
1986
1986
|
tableStruct: "",
|
|
1987
1987
|
activeName: "1",
|
|
1988
1988
|
currentCtrlType: "input",
|
|
1989
|
-
types: y(
|
|
1989
|
+
types: y(je)
|
|
1990
1990
|
};
|
|
1991
1991
|
},
|
|
1992
1992
|
computed: {
|
|
@@ -2027,7 +2027,7 @@ const On = {
|
|
|
2027
2027
|
handler(e) {
|
|
2028
2028
|
const t = this.ctrlMap[e];
|
|
2029
2029
|
this.ctrlSchema = y({
|
|
2030
|
-
options: y(
|
|
2030
|
+
options: y(ve),
|
|
2031
2031
|
formItems: y(t.builder)
|
|
2032
2032
|
});
|
|
2033
2033
|
const l = ne(this.builderSchema, this.activeIndex);
|
|
@@ -2052,12 +2052,12 @@ const On = {
|
|
|
2052
2052
|
this.ctrlOptions = {}, this.builderSchema[t] = this.builderSchema[t] || [];
|
|
2053
2053
|
const l = this.ctrlMap[e];
|
|
2054
2054
|
this.activeCtrl = l, this.builderSchema[t].push(y(l.default)), this.ctrlSchema = y({
|
|
2055
|
-
options: y(
|
|
2055
|
+
options: y(ve),
|
|
2056
2056
|
formItems: y(l.builder)
|
|
2057
2057
|
}), this.ctrlKey++, this.key++, this.activeIndex = `${t}[${this.builderSchema[t].length - 1}]`, this.activeTab = "ctrl";
|
|
2058
2058
|
},
|
|
2059
2059
|
removeOne() {
|
|
2060
|
-
et(this.builderSchema, this.activeIndex), this.builderSchema = y(
|
|
2060
|
+
et(this.builderSchema, this.activeIndex), this.builderSchema = y(Xe(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
|
|
2061
2061
|
},
|
|
2062
2062
|
clicklabel() {
|
|
2063
2063
|
const e = this.activeIndex;
|
|
@@ -2068,7 +2068,7 @@ const On = {
|
|
|
2068
2068
|
return;
|
|
2069
2069
|
}
|
|
2070
2070
|
this.currentCtrlType = n, this.ctrlOptions = l, this.ctrlSchema = y({
|
|
2071
|
-
options: y(
|
|
2071
|
+
options: y(ve),
|
|
2072
2072
|
formItems: y(o.builder)
|
|
2073
2073
|
}), this.ctrlKey++;
|
|
2074
2074
|
}
|
|
@@ -2085,7 +2085,7 @@ const On = {
|
|
|
2085
2085
|
}
|
|
2086
2086
|
};
|
|
2087
2087
|
function An(e, t, l, n, o, a) {
|
|
2088
|
-
const s = v("v-form"), c = nt, p = ue, d = v("JsonView"), m = v("VButton"), _ =
|
|
2088
|
+
const s = v("v-form"), c = nt, p = ue, d = v("JsonView"), m = v("VButton"), _ = Oe, T = Be, w = ot, F = at, U = v("dev-layout");
|
|
2089
2089
|
return i(), f(U, null, {
|
|
2090
2090
|
main: r(() => [
|
|
2091
2091
|
o.builderSchema.formItems ? (i(), f(s, G({
|
|
@@ -2316,7 +2316,7 @@ const Rn = /* @__PURE__ */ $(Bn, [["render", An], ["__scopeId", "data-v-875f0171
|
|
|
2316
2316
|
label: "字段key"
|
|
2317
2317
|
}
|
|
2318
2318
|
]
|
|
2319
|
-
},
|
|
2319
|
+
}, Fe = {
|
|
2320
2320
|
options: {
|
|
2321
2321
|
labelPosition: "top",
|
|
2322
2322
|
submitButton: !1,
|
|
@@ -2341,7 +2341,7 @@ const Rn = /* @__PURE__ */ $(Bn, [["render", An], ["__scopeId", "data-v-875f0171
|
|
|
2341
2341
|
label: "导出按钮"
|
|
2342
2342
|
}
|
|
2343
2343
|
]
|
|
2344
|
-
},
|
|
2344
|
+
}, ge = {
|
|
2345
2345
|
labelPosition: "top",
|
|
2346
2346
|
submitButton: !1,
|
|
2347
2347
|
cancelButton: !1
|
|
@@ -2848,7 +2848,7 @@ const Rn = /* @__PURE__ */ $(Bn, [["render", An], ["__scopeId", "data-v-875f0171
|
|
|
2848
2848
|
table: Zn
|
|
2849
2849
|
};
|
|
2850
2850
|
const Xn = {
|
|
2851
|
-
components: { JsonView:
|
|
2851
|
+
components: { JsonView: Le, DevLayout: dt, VTable: oe, VForm: J, VButton: Pe },
|
|
2852
2852
|
props: {
|
|
2853
2853
|
schema: {
|
|
2854
2854
|
type: Object,
|
|
@@ -2859,11 +2859,11 @@ const Xn = {
|
|
|
2859
2859
|
data() {
|
|
2860
2860
|
const e = Ot(this.$props.schema);
|
|
2861
2861
|
return delete e.listApi, e.list = [{}], {
|
|
2862
|
-
baseSchema:
|
|
2862
|
+
baseSchema: Fe,
|
|
2863
2863
|
activeTab: "base",
|
|
2864
2864
|
builderSchema: Object.assign(
|
|
2865
2865
|
{},
|
|
2866
|
-
|
|
2866
|
+
Fe,
|
|
2867
2867
|
e
|
|
2868
2868
|
),
|
|
2869
2869
|
baseOptions: {},
|
|
@@ -2940,7 +2940,7 @@ const Xn = {
|
|
|
2940
2940
|
handler(e) {
|
|
2941
2941
|
const t = this.ctrlMap[this.activeBrick][e];
|
|
2942
2942
|
this.ctrlSchema = y({
|
|
2943
|
-
options: y(
|
|
2943
|
+
options: y(ge),
|
|
2944
2944
|
formItems: y(t.builder)
|
|
2945
2945
|
});
|
|
2946
2946
|
const l = ne(this.builderSchema, this.activeIndex);
|
|
@@ -2987,12 +2987,12 @@ const Xn = {
|
|
|
2987
2987
|
return;
|
|
2988
2988
|
}
|
|
2989
2989
|
this.activeCtrl = o[e], this.activeBrick = n, this.ctrlOptions = {}, this.builderSchema[t] = this.builderSchema[t] || [], this.builderSchema[t].push(y(o[e].default)), this.ctrlSchema = y({
|
|
2990
|
-
options: y(
|
|
2990
|
+
options: y(ge),
|
|
2991
2991
|
formItems: y(o[e].builder)
|
|
2992
2992
|
}), this.key++, this.ctrlKey++, this.activeIndex = `${t}[${this.builderSchema[t].length - 1}]`, this.activeTab = "ctrl";
|
|
2993
2993
|
},
|
|
2994
2994
|
removeOne() {
|
|
2995
|
-
et(this.builderSchema, this.activeIndex), this.builderSchema = y(
|
|
2995
|
+
et(this.builderSchema, this.activeIndex), this.builderSchema = y(Xe(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
|
|
2996
2996
|
},
|
|
2997
2997
|
clicklabel() {
|
|
2998
2998
|
const e = this.activeIndex, t = e.match(this.activeIndexReg);
|
|
@@ -3007,7 +3007,7 @@ const Xn = {
|
|
|
3007
3007
|
return;
|
|
3008
3008
|
}
|
|
3009
3009
|
this.ctrlOptions = l, this.currentCtrlType = n, this.ctrlSchema = y({
|
|
3010
|
-
options: y(
|
|
3010
|
+
options: y(ge),
|
|
3011
3011
|
formItems: y(o.builder)
|
|
3012
3012
|
}), this.ctrlKey++;
|
|
3013
3013
|
}
|
|
@@ -3031,7 +3031,7 @@ const Xn = {
|
|
|
3031
3031
|
}
|
|
3032
3032
|
};
|
|
3033
3033
|
function Yn(e, t, l, n, o, a) {
|
|
3034
|
-
const s =
|
|
3034
|
+
const s = me, c = ue, p = ae, d = v("v-table"), m = nt, _ = ue, T = v("JsonView"), w = v("VButton"), F = Oe, U = Be, C = ot, Z = at, xt = v("v-form"), Et = v("dev-layout");
|
|
3035
3035
|
return i(), f(Et, null, {
|
|
3036
3036
|
"left-aside": r(() => [
|
|
3037
3037
|
u(p, { style: { width: "200px" } }, {
|
|
@@ -3107,7 +3107,7 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3107
3107
|
default: r(() => [
|
|
3108
3108
|
u(c, {
|
|
3109
3109
|
class: "ctrl-btn",
|
|
3110
|
-
onClick: (
|
|
3110
|
+
onClick: (he) => a.pushHeaders(o.ctrlMap.headers[I].type)
|
|
3111
3111
|
}, {
|
|
3112
3112
|
default: r(() => [
|
|
3113
3113
|
g(O(o.ctrlMap.headers[I].name), 1)
|
|
@@ -3135,7 +3135,7 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3135
3135
|
default: r(() => [
|
|
3136
3136
|
u(c, {
|
|
3137
3137
|
class: "ctrl-btn",
|
|
3138
|
-
onClick: (
|
|
3138
|
+
onClick: (he) => a.pushRowButton(o.ctrlMap.buttons[I].type)
|
|
3139
3139
|
}, {
|
|
3140
3140
|
default: r(() => [
|
|
3141
3141
|
g(O(o.ctrlMap.buttons[I].name), 1)
|
|
@@ -3163,7 +3163,7 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3163
3163
|
default: r(() => [
|
|
3164
3164
|
u(c, {
|
|
3165
3165
|
class: "ctrl-btn",
|
|
3166
|
-
onClick: (
|
|
3166
|
+
onClick: (he) => a.pushNormalButton(o.ctrlMap.buttons[I].type)
|
|
3167
3167
|
}, {
|
|
3168
3168
|
default: r(() => [
|
|
3169
3169
|
g(O(o.ctrlMap.buttons[I].name), 1)
|
|
@@ -3202,7 +3202,7 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3202
3202
|
default: r(() => [
|
|
3203
3203
|
u(c, {
|
|
3204
3204
|
class: "ctrl-btn",
|
|
3205
|
-
onClick: (
|
|
3205
|
+
onClick: (he) => a.pushBatchButton(o.ctrlMap.buttons[I].type)
|
|
3206
3206
|
}, {
|
|
3207
3207
|
default: r(() => [
|
|
3208
3208
|
g(O(o.ctrlMap.buttons[I].name), 1)
|
|
@@ -3294,7 +3294,7 @@ const eo = /* @__PURE__ */ $(Xn, [["render", Yn], ["__scopeId", "data-v-e5209cb7
|
|
|
3294
3294
|
name: "PageEditor",
|
|
3295
3295
|
components: { FormBuilder: Rn, TableBuilder: eo },
|
|
3296
3296
|
setup() {
|
|
3297
|
-
const e = L(!1), t = L(1), l = "rtl", n =
|
|
3297
|
+
const e = L(!1), t = L(1), l = "rtl", n = de(), o = j(() => E.state.app.pages[n.path]);
|
|
3298
3298
|
return { show: e, key: t, direction: l, pageSchema: o };
|
|
3299
3299
|
}
|
|
3300
3300
|
};
|
|
@@ -3334,7 +3334,7 @@ const oo = {
|
|
|
3334
3334
|
components: {
|
|
3335
3335
|
Breadcrumb: un,
|
|
3336
3336
|
Hamburger: mn,
|
|
3337
|
-
VButton:
|
|
3337
|
+
VButton: Pe,
|
|
3338
3338
|
PageEditor: no
|
|
3339
3339
|
},
|
|
3340
3340
|
data() {
|
|
@@ -3348,7 +3348,7 @@ const oo = {
|
|
|
3348
3348
|
};
|
|
3349
3349
|
},
|
|
3350
3350
|
computed: {
|
|
3351
|
-
...
|
|
3351
|
+
...Te(["sidebar", "avatar", "name", "nickname", "nav"]),
|
|
3352
3352
|
hasNewMessage() {
|
|
3353
3353
|
return this.$store.state.settings.hasNewMessage;
|
|
3354
3354
|
},
|
|
@@ -3366,7 +3366,7 @@ const oo = {
|
|
|
3366
3366
|
}
|
|
3367
3367
|
},
|
|
3368
3368
|
mounted() {
|
|
3369
|
-
|
|
3369
|
+
pe("el-submenu is-active");
|
|
3370
3370
|
const e = this.getSetting("navBarNotice");
|
|
3371
3371
|
e.length > 0 && !this.getSetting("closeNavNotice") && this.showNotice(e) && this.$notify({
|
|
3372
3372
|
title: "提示",
|
|
@@ -3399,11 +3399,11 @@ const oo = {
|
|
|
3399
3399
|
},
|
|
3400
3400
|
showNotice(e) {
|
|
3401
3401
|
const t = "dismiss:navbar_notice";
|
|
3402
|
-
return
|
|
3402
|
+
return _e.exist(t) ? _e.get(t) !== e : !0;
|
|
3403
3403
|
},
|
|
3404
3404
|
closeNotice(e) {
|
|
3405
3405
|
const t = "dismiss:navbar_notice";
|
|
3406
|
-
|
|
3406
|
+
_e.set(t, e);
|
|
3407
3407
|
},
|
|
3408
3408
|
gotoMenuEdit() {
|
|
3409
3409
|
var e, t, l, n;
|
|
@@ -3418,7 +3418,7 @@ const oo = {
|
|
|
3418
3418
|
style: { padding: "0" }
|
|
3419
3419
|
}, co = { class: "user-info" }, uo = ["src"], po = { class: "user-name" };
|
|
3420
3420
|
function mo(e, t, l, n, o, a) {
|
|
3421
|
-
const s = v("hamburger"), c = v("breadcrumb"), p =
|
|
3421
|
+
const s = v("hamburger"), c = v("breadcrumb"), p = me, d = v("VIcon"), m = v("PageEditor"), _ = v("v-button"), T = ml, w = fl, F = hl, U = st, C = ae;
|
|
3422
3422
|
return i(), f(C, {
|
|
3423
3423
|
ref: "header",
|
|
3424
3424
|
class: "navbar",
|
|
@@ -3524,7 +3524,7 @@ const ho = {
|
|
|
3524
3524
|
return this.$store.state.settings.logo;
|
|
3525
3525
|
}
|
|
3526
3526
|
}
|
|
3527
|
-
}, bo = (e) => (
|
|
3527
|
+
}, bo = (e) => (We("data-v-49084925"), e = e(), Ze(), e), _o = ["src"], yo = {
|
|
3528
3528
|
key: 1,
|
|
3529
3529
|
class: "sidebar-title"
|
|
3530
3530
|
}, vo = /* @__PURE__ */ bo(() => /* @__PURE__ */ b("div", null, "系统", -1)), go = ["src"], ko = { class: "sidebar-title" };
|
|
@@ -3582,10 +3582,10 @@ const So = /* @__PURE__ */ $(ho, [["render", wo], ["__scopeId", "data-v-49084925
|
|
|
3582
3582
|
},
|
|
3583
3583
|
methods: {
|
|
3584
3584
|
compType(e) {
|
|
3585
|
-
return
|
|
3585
|
+
return qe(e) || this.newTab ? "a" : "router-link";
|
|
3586
3586
|
},
|
|
3587
3587
|
linkProps(e) {
|
|
3588
|
-
return
|
|
3588
|
+
return qe(e) ? {
|
|
3589
3589
|
is: "a",
|
|
3590
3590
|
href: e,
|
|
3591
3591
|
target: "_blank",
|
|
@@ -3603,7 +3603,7 @@ const So = /* @__PURE__ */ $(ho, [["render", wo], ["__scopeId", "data-v-49084925
|
|
|
3603
3603
|
}
|
|
3604
3604
|
};
|
|
3605
3605
|
function Eo(e, t, l, n, o, a) {
|
|
3606
|
-
return i(), f(
|
|
3606
|
+
return i(), f(Qe(a.compType(l.to)), W(Y(a.linkProps(l.to))), {
|
|
3607
3607
|
default: r(() => [
|
|
3608
3608
|
le(e.$slots, "default")
|
|
3609
3609
|
]),
|
|
@@ -3762,7 +3762,7 @@ const Po = {
|
|
|
3762
3762
|
};
|
|
3763
3763
|
},
|
|
3764
3764
|
computed: {
|
|
3765
|
-
...
|
|
3765
|
+
...Te(["remoteRouter"]),
|
|
3766
3766
|
filterRoutes() {
|
|
3767
3767
|
let e = [];
|
|
3768
3768
|
return this.remoteRouter.forEach((t) => {
|
|
@@ -3772,12 +3772,14 @@ const Po = {
|
|
|
3772
3772
|
},
|
|
3773
3773
|
methods: {
|
|
3774
3774
|
onselected: function(e) {
|
|
3775
|
-
this.$router.push(e), this.selected = ""
|
|
3775
|
+
this.$router.push(e), this.selected = "", setTimeout(() => {
|
|
3776
|
+
pe("is-active");
|
|
3777
|
+
}, 100);
|
|
3776
3778
|
}
|
|
3777
3779
|
}
|
|
3778
3780
|
};
|
|
3779
3781
|
function Lo(e, t, l, n, o, a) {
|
|
3780
|
-
const s =
|
|
3782
|
+
const s = Oe, c = yl, p = Be;
|
|
3781
3783
|
return i(), f(p, {
|
|
3782
3784
|
modelValue: o.selected,
|
|
3783
3785
|
"onUpdate:modelValue": t[0] || (t[0] = (d) => o.selected = d),
|
|
@@ -3818,12 +3820,12 @@ function Lo(e, t, l, n, o, a) {
|
|
|
3818
3820
|
_: 1
|
|
3819
3821
|
}, 8, ["modelValue", "onChange"]);
|
|
3820
3822
|
}
|
|
3821
|
-
const Mo = /* @__PURE__ */ $(Po, [["render", Lo], ["__scopeId", "data-v-
|
|
3823
|
+
const Mo = /* @__PURE__ */ $(Po, [["render", Lo], ["__scopeId", "data-v-33fb5a99"]]);
|
|
3822
3824
|
var D = /* @__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))(D || {}), P = /* @__PURE__ */ ((e) => (e[e.hidden = 0] = "hidden", e[e.dir = 1] = "dir", e[e.menu = 2] = "menu", e[e.page = 3] = "page", e))(P || {});
|
|
3823
3825
|
const Do = q({
|
|
3824
3826
|
components: { SidebarItem: Ro, Logo: So, SearchMenu: Mo },
|
|
3825
3827
|
computed: {
|
|
3826
|
-
...
|
|
3828
|
+
...Te(["sidebar", "remoteRouter", "customRouter"]),
|
|
3827
3829
|
routes() {
|
|
3828
3830
|
let e = [];
|
|
3829
3831
|
return this.$router.options.routes.concat(this.customRouter || []).forEach((t) => {
|
|
@@ -3860,7 +3862,7 @@ const Do = q({
|
|
|
3860
3862
|
}
|
|
3861
3863
|
},
|
|
3862
3864
|
mounted() {
|
|
3863
|
-
|
|
3865
|
+
pe("is-active");
|
|
3864
3866
|
},
|
|
3865
3867
|
methods: {
|
|
3866
3868
|
filterRoute(e) {
|
|
@@ -3912,7 +3914,7 @@ const No = /* @__PURE__ */ $(Do, [["render", jo], ["__scopeId", "data-v-800716bb
|
|
|
3912
3914
|
const Vo = { class: "app-main" }, qo = {
|
|
3913
3915
|
__name: "AppMain",
|
|
3914
3916
|
setup(e) {
|
|
3915
|
-
const t =
|
|
3917
|
+
const t = de(), l = [], n = L(0);
|
|
3916
3918
|
return nl(() => {
|
|
3917
3919
|
var o;
|
|
3918
3920
|
(o = t.meta) != null && o.keepAlive && l.indexOf(t.name) && l.push(t.name), n.value++;
|
|
@@ -4032,7 +4034,7 @@ function Zo(e) {
|
|
|
4032
4034
|
const Qo = { id: "login" }, Xo = /* @__PURE__ */ b("h1", { id: "title" }, "登录", -1), Yo = { id: "form" }, ea = { class: "captcha" }, ta = ["src"], la = { class: "tips" }, na = { class: "sso" }, oa = /* @__PURE__ */ b("div", { id: "sso-qrcode" }, null, -1), aa = /* @__PURE__ */ q({
|
|
4033
4035
|
__name: "login",
|
|
4034
4036
|
setup(e) {
|
|
4035
|
-
const t = ol(), l =
|
|
4037
|
+
const t = ol(), l = de(), n = j(() => E.state.settings.loginTips), o = L(0), a = () => o.value++, s = j(() => c.value.username.length > 0 && c.value.password.length >= 4 && c.value.captcha.length === 4), c = L({
|
|
4036
4038
|
username: "",
|
|
4037
4039
|
password: "",
|
|
4038
4040
|
captcha: "",
|
|
@@ -4056,7 +4058,7 @@ const Qo = { id: "login" }, Xo = /* @__PURE__ */ b("h1", { id: "title" }, "登
|
|
|
4056
4058
|
placeholder: "用户名",
|
|
4057
4059
|
class: "input"
|
|
4058
4060
|
}, null, 512), [
|
|
4059
|
-
[
|
|
4061
|
+
[be, k(c).username]
|
|
4060
4062
|
]),
|
|
4061
4063
|
ie(b("input", {
|
|
4062
4064
|
"onUpdate:modelValue": m[1] || (m[1] = (_) => k(c).password = _),
|
|
@@ -4064,7 +4066,7 @@ const Qo = { id: "login" }, Xo = /* @__PURE__ */ b("h1", { id: "title" }, "登
|
|
|
4064
4066
|
placeholder: "密码",
|
|
4065
4067
|
class: "input"
|
|
4066
4068
|
}, null, 512), [
|
|
4067
|
-
[
|
|
4069
|
+
[be, k(c).password]
|
|
4068
4070
|
]),
|
|
4069
4071
|
b("div", ea, [
|
|
4070
4072
|
ie(b("input", {
|
|
@@ -4073,7 +4075,7 @@ const Qo = { id: "login" }, Xo = /* @__PURE__ */ b("h1", { id: "title" }, "登
|
|
|
4073
4075
|
placeholder: "验证码",
|
|
4074
4076
|
class: "input-captcha"
|
|
4075
4077
|
}, null, 512), [
|
|
4076
|
-
[
|
|
4078
|
+
[be, k(c).captcha]
|
|
4077
4079
|
]),
|
|
4078
4080
|
b("img", {
|
|
4079
4081
|
class: "captcha-img",
|
|
@@ -4099,7 +4101,7 @@ const Qo = { id: "login" }, Xo = /* @__PURE__ */ b("h1", { id: "title" }, "登
|
|
|
4099
4101
|
});
|
|
4100
4102
|
const sa = {
|
|
4101
4103
|
name: "NotFoundPage"
|
|
4102
|
-
}, bt = (e) => (
|
|
4104
|
+
}, bt = (e) => (We("data-v-26068803"), e = e(), Ze(), e), ia = { class: "not-found" }, ra = /* @__PURE__ */ bt(() => /* @__PURE__ */ b("svg", {
|
|
4103
4105
|
width: "380px",
|
|
4104
4106
|
height: "500px",
|
|
4105
4107
|
viewBox: "0 0 837 1045",
|
|
@@ -4204,15 +4206,17 @@ const da = /* @__PURE__ */ $(sa, [["render", pa], ["__scopeId", "data-v-26068803
|
|
|
4204
4206
|
history: sl(),
|
|
4205
4207
|
routes: ma
|
|
4206
4208
|
});
|
|
4207
|
-
|
|
4209
|
+
we.configure({ showSpinner: !1 });
|
|
4208
4210
|
function fa(e) {
|
|
4209
4211
|
e.beforeEach((t, l, n) => {
|
|
4210
|
-
|
|
4212
|
+
we.start(), t.preHash = location.hash.replace("#", ""), n();
|
|
4211
4213
|
}), e.afterEach((t) => {
|
|
4212
4214
|
t.matched.length > 0 && E.commit("user/updateState", {
|
|
4213
4215
|
key: "path",
|
|
4214
4216
|
value: t.matched[t.matched.length - 1].path.replace("(\\d+)", "")
|
|
4215
|
-
}),
|
|
4217
|
+
}), we.done(), setTimeout(() => {
|
|
4218
|
+
pe("is-active");
|
|
4219
|
+
}, 100);
|
|
4216
4220
|
});
|
|
4217
4221
|
}
|
|
4218
4222
|
function ha() {
|
|
@@ -4283,7 +4287,7 @@ const yt = /* @__PURE__ */ $(ya, [["render", wa]]), Sa = {
|
|
|
4283
4287
|
}
|
|
4284
4288
|
};
|
|
4285
4289
|
function xa(e, t, l, n, o, a) {
|
|
4286
|
-
const s =
|
|
4290
|
+
const s = Ae;
|
|
4287
4291
|
return i(), h("div", null, [
|
|
4288
4292
|
o.hasNotice ? (i(), f(s, {
|
|
4289
4293
|
key: 0,
|
|
@@ -4327,7 +4331,7 @@ const vt = /* @__PURE__ */ $(Sa, [["render", xa]]), Ea = q({
|
|
|
4327
4331
|
beforeCreate() {
|
|
4328
4332
|
const e = this.$route.path.split("/").filter((o) => o), t = e.length > 1 ? e.slice(0, e.length - 1).join("/") : e[0], l = "/schema" + this.$route.meta.path, n = { params: this.$route.params };
|
|
4329
4333
|
this.$http.get(this.$props.schemaApi || l, n).then(({ data: o }) => {
|
|
4330
|
-
this.loading = !1, X(o) && (o.notice !== void 0 && (this.haveNotice = !0,
|
|
4334
|
+
this.loading = !1, X(o) && (o.notice !== void 0 && (this.haveNotice = !0, Ie(o.notice) ? this.notice = {
|
|
4331
4335
|
title: o.notice
|
|
4332
4336
|
} : X(o.notice) && (this.notice = o.notice, this.noticeApi = o.notice.noticeApi), delete o.notice), this.owners = o.ownerNames || [], this.serviceOffLine = o.serviceOffLine || !1), this.schema = this.$props.schemaHandler(o, t), E.commit("app/SET_PAGE_JSON_SCHEMA", { page: this.$route.path, json: this.schema });
|
|
4333
4337
|
});
|
|
@@ -4335,7 +4339,7 @@ const vt = /* @__PURE__ */ $(Sa, [["render", xa]]), Ea = q({
|
|
|
4335
4339
|
});
|
|
4336
4340
|
const $a = ["innerHTML"];
|
|
4337
4341
|
function Ia(e, t, l, n, o, a) {
|
|
4338
|
-
const s =
|
|
4342
|
+
const s = Ae, c = vt, p = yt;
|
|
4339
4343
|
return i(), h(S, null, [
|
|
4340
4344
|
e.owners.length > 0 ? (i(), f(s, {
|
|
4341
4345
|
key: 0,
|
|
@@ -4382,10 +4386,10 @@ const se = /* @__PURE__ */ $(Ea, [["render", Ia], ["__scopeId", "data-v-015774e8
|
|
|
4382
4386
|
_: 1
|
|
4383
4387
|
}));
|
|
4384
4388
|
}
|
|
4385
|
-
},
|
|
4389
|
+
}, Ee = {
|
|
4386
4390
|
__name: "form",
|
|
4387
4391
|
setup(e) {
|
|
4388
|
-
const t =
|
|
4392
|
+
const t = de(), l = (n, o) => {
|
|
4389
4393
|
const a = Object.keys(J.props);
|
|
4390
4394
|
return Object.keys(n).forEach((s) => {
|
|
4391
4395
|
if (a.indexOf(s) === -1) {
|
|
@@ -4555,7 +4559,7 @@ const Ta = { class: "card-header" }, Oa = /* @__PURE__ */ b("span", null, "列
|
|
|
4555
4559
|
style: { color: "#E6A23C" }
|
|
4556
4560
|
}, Pa = { class: "card-header" };
|
|
4557
4561
|
function La(e, t, l, n, o, a) {
|
|
4558
|
-
const s = ue, c = Sl, p =
|
|
4562
|
+
const s = ue, c = Sl, p = Re, d = me, m = v("v-form"), _ = ae;
|
|
4559
4563
|
return i(), f(_, {
|
|
4560
4564
|
class: "tree-box",
|
|
4561
4565
|
gutter: 20
|
|
@@ -4671,23 +4675,23 @@ function La(e, t, l, n, o, a) {
|
|
|
4671
4675
|
_: 1
|
|
4672
4676
|
});
|
|
4673
4677
|
}
|
|
4674
|
-
const
|
|
4678
|
+
const Ge = /* @__PURE__ */ $(Ca, [["render", La]]), Ma = {
|
|
4675
4679
|
__name: "tree",
|
|
4676
4680
|
setup(e) {
|
|
4677
4681
|
const t = (l, n) => {
|
|
4678
|
-
const o = Object.keys(
|
|
4682
|
+
const o = Object.keys(Ge.props);
|
|
4679
4683
|
return Object.keys(l).forEach((a) => {
|
|
4680
4684
|
o.indexOf(a) === -1 && delete l[a];
|
|
4681
4685
|
}), l;
|
|
4682
4686
|
};
|
|
4683
4687
|
return (l, n) => (i(), f(se, { "schema-handler": t }, {
|
|
4684
4688
|
default: r((o) => [
|
|
4685
|
-
u(
|
|
4689
|
+
u(Ge, W(Y(o)), null, 16)
|
|
4686
4690
|
]),
|
|
4687
4691
|
_: 1
|
|
4688
4692
|
}));
|
|
4689
4693
|
}
|
|
4690
|
-
},
|
|
4694
|
+
}, ke = {
|
|
4691
4695
|
__name: "container",
|
|
4692
4696
|
setup(e) {
|
|
4693
4697
|
const t = L(0);
|
|
@@ -4731,7 +4735,7 @@ function ja(e, t, l) {
|
|
|
4731
4735
|
if (l.length === 0)
|
|
4732
4736
|
return {};
|
|
4733
4737
|
let n = A({}, Da);
|
|
4734
|
-
if (n.title.text = e,
|
|
4738
|
+
if (n.title.text = e, Ie(t)) {
|
|
4735
4739
|
const o = [], a = Object.keys(l[0]);
|
|
4736
4740
|
let s = a[0], c = a.filter((d, m) => m > 0), p = t;
|
|
4737
4741
|
if (t.indexOf(":") > -1) {
|
|
@@ -4783,7 +4787,7 @@ const Fa = /* @__PURE__ */ $(Na, [["render", Ha], ["__scopeId", "data-v-cc0d8293
|
|
|
4783
4787
|
components: {
|
|
4784
4788
|
Chart: El,
|
|
4785
4789
|
Md: Ol,
|
|
4786
|
-
Json:
|
|
4790
|
+
Json: Le,
|
|
4787
4791
|
Table: oe,
|
|
4788
4792
|
Number: Fa,
|
|
4789
4793
|
Html: ""
|
|
@@ -4831,13 +4835,13 @@ const Fa = /* @__PURE__ */ $(Na, [["render", Ha], ["__scopeId", "data-v-cc0d8293
|
|
|
4831
4835
|
}
|
|
4832
4836
|
};
|
|
4833
4837
|
function Ja(e, t, l, n, o, a) {
|
|
4834
|
-
const s =
|
|
4838
|
+
const s = Re, c = Rt("resize");
|
|
4835
4839
|
return ie((i(), f(s, {
|
|
4836
4840
|
shadow: "never",
|
|
4837
4841
|
class: "part"
|
|
4838
4842
|
}, {
|
|
4839
4843
|
default: r(() => [
|
|
4840
|
-
(i(), f(
|
|
4844
|
+
(i(), f(Qe(n.comptype()), W(Y(n.compprops(l.option))), null, 16))
|
|
4841
4845
|
]),
|
|
4842
4846
|
_: 1
|
|
4843
4847
|
})), [
|
|
@@ -4861,7 +4865,7 @@ const za = /* @__PURE__ */ $(Ga, [["render", Ja], ["__scopeId", "data-v-a5a65cc1
|
|
|
4861
4865
|
Pt(() => {
|
|
4862
4866
|
});
|
|
4863
4867
|
const n = L({});
|
|
4864
|
-
|
|
4868
|
+
Ke(() => {
|
|
4865
4869
|
var m;
|
|
4866
4870
|
(m = t.filter) == null || m.forEach((_) => {
|
|
4867
4871
|
_.default !== null && (n.value[_.field] = _.default);
|
|
@@ -4890,7 +4894,7 @@ const za = /* @__PURE__ */ $(Ga, [["render", Ja], ["__scopeId", "data-v-a5a65cc1
|
|
|
4890
4894
|
});
|
|
4891
4895
|
};
|
|
4892
4896
|
return (m, _) => {
|
|
4893
|
-
const T =
|
|
4897
|
+
const T = Re, w = me, F = Ae, U = ae;
|
|
4894
4898
|
return i(), f(U, null, {
|
|
4895
4899
|
default: r(() => [
|
|
4896
4900
|
k(s).length > 0 ? (i(), f(w, {
|
|
@@ -5012,9 +5016,9 @@ function Ya(e) {
|
|
|
5012
5016
|
type: l[a],
|
|
5013
5017
|
children: [o]
|
|
5014
5018
|
};
|
|
5015
|
-
return o.span = n,
|
|
5019
|
+
return o.span = n, Ne([o]);
|
|
5016
5020
|
}
|
|
5017
|
-
function
|
|
5021
|
+
function Ne(e) {
|
|
5018
5022
|
const t = {
|
|
5019
5023
|
type: "row",
|
|
5020
5024
|
props: {
|
|
@@ -5049,7 +5053,7 @@ function je(e) {
|
|
|
5049
5053
|
props: {}
|
|
5050
5054
|
}, Xa[n.type] || {}, n);
|
|
5051
5055
|
const a = kt(n.children);
|
|
5052
|
-
a.length && (n.children =
|
|
5056
|
+
a.length && (n.children = Ne(a)), t.children.push({
|
|
5053
5057
|
type: "col",
|
|
5054
5058
|
props: o,
|
|
5055
5059
|
children: [n]
|
|
@@ -5059,13 +5063,13 @@ function je(e) {
|
|
|
5059
5063
|
function kt(e) {
|
|
5060
5064
|
return Ye(e) ? e : X(e) ? [e] : [];
|
|
5061
5065
|
}
|
|
5062
|
-
let
|
|
5066
|
+
let $e = {};
|
|
5063
5067
|
const wt = (e) => {
|
|
5064
|
-
const t = Qa[e.type] ||
|
|
5068
|
+
const t = Qa[e.type] || $e[e.type] || e.type;
|
|
5065
5069
|
return Dt(t, e.props, {
|
|
5066
5070
|
default: () => kt(e.children).map((l) => wt(l))
|
|
5067
5071
|
});
|
|
5068
|
-
}, es = (e) => (Object.keys(
|
|
5072
|
+
}, es = (e) => (Object.keys($e).length === 0 && ($e = Mt().appContext.components), Ne(Object.values(e.schema)).map((l) => wt(l))), ts = {
|
|
5069
5073
|
__name: "custom",
|
|
5070
5074
|
setup(e) {
|
|
5071
5075
|
const t = L([]), l = (n, o) => (t.value = jt(n), n);
|
|
@@ -5084,15 +5088,15 @@ function xi(e) {
|
|
|
5084
5088
|
const ls = (e) => {
|
|
5085
5089
|
const t = (l) => {
|
|
5086
5090
|
const n = "./views/" + l + ".vue";
|
|
5087
|
-
return te && te[n] && te[n].default ? te[n].default : (console.error(`自定义组件不存在 ${e.name} ${e.view}`),
|
|
5091
|
+
return te && te[n] && te[n].default ? te[n].default : (console.error(`自定义组件不存在 ${e.name} ${e.view}`), ke);
|
|
5088
5092
|
};
|
|
5089
5093
|
if (e.path === "#")
|
|
5090
|
-
return
|
|
5094
|
+
return ke;
|
|
5091
5095
|
switch (e.page_type) {
|
|
5092
5096
|
case D.list:
|
|
5093
5097
|
return gt;
|
|
5094
5098
|
case D.form:
|
|
5095
|
-
return
|
|
5099
|
+
return Ee;
|
|
5096
5100
|
case D.custom:
|
|
5097
5101
|
case D.localComp:
|
|
5098
5102
|
return t(e.view || "");
|
|
@@ -5103,7 +5107,7 @@ const ls = (e) => {
|
|
|
5103
5107
|
case D.customSchema:
|
|
5104
5108
|
return ts;
|
|
5105
5109
|
}
|
|
5106
|
-
return
|
|
5110
|
+
return ke;
|
|
5107
5111
|
};
|
|
5108
5112
|
function ns(e) {
|
|
5109
5113
|
let t = e.path;
|
|
@@ -5146,7 +5150,7 @@ const St = (e) => {
|
|
|
5146
5150
|
}, {
|
|
5147
5151
|
path: o,
|
|
5148
5152
|
name: e.name + "新建" + e.id,
|
|
5149
|
-
component:
|
|
5153
|
+
component: Ee,
|
|
5150
5154
|
meta: {
|
|
5151
5155
|
id: e.id + 99999 + 1,
|
|
5152
5156
|
title: "新建",
|
|
@@ -5159,7 +5163,7 @@ const St = (e) => {
|
|
|
5159
5163
|
}, {
|
|
5160
5164
|
path: a,
|
|
5161
5165
|
name: e.name + "编辑" + e.id,
|
|
5162
|
-
component:
|
|
5166
|
+
component: Ee,
|
|
5163
5167
|
meta: {
|
|
5164
5168
|
id: e.id + 99999 + 2,
|
|
5165
5169
|
title: "编辑",
|
|
@@ -5244,7 +5248,7 @@ rs(z);
|
|
|
5244
5248
|
function cs() {
|
|
5245
5249
|
return E.state.user.token;
|
|
5246
5250
|
}
|
|
5247
|
-
function
|
|
5251
|
+
function Je(e) {
|
|
5248
5252
|
Xl({
|
|
5249
5253
|
message: e,
|
|
5250
5254
|
type: "error",
|
|
@@ -5265,7 +5269,7 @@ const us = {
|
|
|
5265
5269
|
if (!(((n = e.config) == null ? void 0 : n.notHoldApiErr) !== void 0 && ((o = e.config) == null ? void 0 : o.notHoldApiErr) === !0) && e.data.code !== 0) {
|
|
5266
5270
|
const m = e.data.message || `接口请求错误 ${e.config.method}::${(a = e.config.url) == null ? void 0 : a.split("?")[0]}`;
|
|
5267
5271
|
if (e.data.code === 401) {
|
|
5268
|
-
|
|
5272
|
+
He.alert("登录信息已过期或未登录, 是否跳转登录", "操作提醒", {
|
|
5269
5273
|
showClose: !1,
|
|
5270
5274
|
confirmButtonText: "重新登录",
|
|
5271
5275
|
showCancelButton: !0,
|
|
@@ -5276,13 +5280,13 @@ const us = {
|
|
|
5276
5280
|
});
|
|
5277
5281
|
return;
|
|
5278
5282
|
} else
|
|
5279
|
-
|
|
5283
|
+
Je(m);
|
|
5280
5284
|
return Promise.reject(m);
|
|
5281
5285
|
}
|
|
5282
5286
|
let l = (c = (s = e.data) == null ? void 0 : s.data) == null ? void 0 : c._message_box;
|
|
5283
|
-
return l !== void 0 && (
|
|
5287
|
+
return l !== void 0 && (Ie(l) && (l = {
|
|
5284
5288
|
message: (d = (p = e.data) == null ? void 0 : p.data) == null ? void 0 : d._message_box
|
|
5285
|
-
}),
|
|
5289
|
+
}), He({
|
|
5286
5290
|
title: "提示",
|
|
5287
5291
|
type: "success",
|
|
5288
5292
|
grouping: !0,
|
|
@@ -5291,7 +5295,7 @@ const us = {
|
|
|
5291
5295
|
},
|
|
5292
5296
|
onRejected(e) {
|
|
5293
5297
|
var t;
|
|
5294
|
-
return
|
|
5298
|
+
return Ce.isCancel(e) ? Promise.reject("") : (Je(`${e.message} ${e.config.method}::${(t = e.config.url) == null ? void 0 : t.split("?")[0]}`), Promise.reject(e));
|
|
5295
5299
|
}
|
|
5296
5300
|
}, ds = [
|
|
5297
5301
|
{
|
|
@@ -5303,8 +5307,8 @@ const us = {
|
|
|
5303
5307
|
response: ps
|
|
5304
5308
|
}
|
|
5305
5309
|
];
|
|
5306
|
-
function
|
|
5307
|
-
const t =
|
|
5310
|
+
function Ve(e = {}) {
|
|
5311
|
+
const t = fe.axios || {}, l = A(t, e || {}), n = Ce.create({
|
|
5308
5312
|
...l
|
|
5309
5313
|
// adapter: (c) => cacheAdapter(c, defaultAxios)
|
|
5310
5314
|
});
|
|
@@ -5312,7 +5316,7 @@ function Ne(e = {}) {
|
|
|
5312
5316
|
n.interceptors.request.use(o.request.onFulfilled, o.request.onRejected), n.interceptors.response.use(o.response.onFulfilled, o.response.onRejected);
|
|
5313
5317
|
}), n;
|
|
5314
5318
|
}
|
|
5315
|
-
const ms =
|
|
5319
|
+
const ms = Ve();
|
|
5316
5320
|
const fs = {
|
|
5317
5321
|
beforeMount(e, t) {
|
|
5318
5322
|
e.clickOutsideEvent = function(l) {
|
|
@@ -5332,7 +5336,7 @@ const fs = {
|
|
|
5332
5336
|
mounted(e) {
|
|
5333
5337
|
}
|
|
5334
5338
|
};
|
|
5335
|
-
function
|
|
5339
|
+
function ze(e, t) {
|
|
5336
5340
|
let l = e[`offset${t}`], n = e.offsetParent;
|
|
5337
5341
|
for (; n; )
|
|
5338
5342
|
l += n[`offset${t}`], n = n.offsetParent;
|
|
@@ -5349,7 +5353,7 @@ const _s = {
|
|
|
5349
5353
|
l.classList.add("devtool-hover");
|
|
5350
5354
|
const n = document.createElement("i");
|
|
5351
5355
|
n.className = "devtool-item-wrapper", l.onmouseover = () => {
|
|
5352
|
-
n.style.height = l.offsetHeight + 30 + "px", n.style.width = l.offsetWidth + 30 + "px", n.style.top =
|
|
5356
|
+
n.style.height = l.offsetHeight + 30 + "px", n.style.width = l.offsetWidth + 30 + "px", n.style.top = ze(l, "Top") - 15 + "px", n.style.left = ze(l, "Left") - 15 + "px";
|
|
5353
5357
|
};
|
|
5354
5358
|
const o = document.createElement("span");
|
|
5355
5359
|
o.className = "dev-action-edit", o.title = "编辑";
|
|
@@ -5373,14 +5377,14 @@ const _s = {
|
|
|
5373
5377
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5374
5378
|
let ce;
|
|
5375
5379
|
function Ei(e) {
|
|
5376
|
-
return e ?
|
|
5380
|
+
return e ? Ve(A(fe.axios, e)) : ce;
|
|
5377
5381
|
}
|
|
5378
5382
|
function $i(e) {
|
|
5379
|
-
const t = A(
|
|
5383
|
+
const t = A(fe, e), l = Nt(Al), n = Es(t), o = t.plugins || [];
|
|
5380
5384
|
o.unshift(n), o.forEach((a) => {
|
|
5381
5385
|
xs(l, a);
|
|
5382
|
-
}), t != null && t.mock && Ul(), ce =
|
|
5383
|
-
"X-Token":
|
|
5386
|
+
}), t != null && t.mock && Ul(), ce = Ve(t.axios), E.dispatch("setHttp", ce).then(), E.dispatch("settings/updateSettings", e == null ? void 0 : e.settings).then(), l.config.globalProperties.$http = ce, l.config.globalProperties.$router = z, window.App = l, window.OmsOptions = t, $l(() => ({
|
|
5387
|
+
"X-Token": De()
|
|
5384
5388
|
})), z.isReady().then(() => l.mount("#app"));
|
|
5385
5389
|
}
|
|
5386
5390
|
function vs(e, t = {}) {
|
|
@@ -5430,19 +5434,19 @@ function Es(e) {
|
|
|
5430
5434
|
}
|
|
5431
5435
|
export {
|
|
5432
5436
|
Jo as BaseSso,
|
|
5433
|
-
|
|
5437
|
+
ke as Container,
|
|
5434
5438
|
zo as DingTalk,
|
|
5435
5439
|
ht as Layout,
|
|
5436
5440
|
P as MenuType,
|
|
5437
5441
|
Xl as Message,
|
|
5438
|
-
|
|
5442
|
+
He as MessageBox,
|
|
5439
5443
|
D as PageType,
|
|
5440
5444
|
Wo as allSso,
|
|
5441
5445
|
$i as createAdmin,
|
|
5442
5446
|
K as eventBus,
|
|
5443
5447
|
ln as getCmp,
|
|
5444
5448
|
ce as http,
|
|
5445
|
-
|
|
5449
|
+
Ve as instance,
|
|
5446
5450
|
xi as regViews,
|
|
5447
5451
|
Si as setCmp,
|
|
5448
5452
|
as as transRemoteModules,
|