@okiss/oms 0.0.39 → 0.0.40
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 +80 -78
- 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
|
|
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 he, 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 $e, waterMarker as Ft, Cache as be, 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
6
|
import _e 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
15
|
import { useRoute as pe, 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
|
|
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 de, ElDrawer as st, ElDropdownItem as ml, ElDropdownMenu as fl, ElDropdown as hl, ElMenuItem as bl, ElSubMenu as _l, ElOptionGroup as yl, ElMenu as vl, ElScrollbar as gl, ElBacktop as kl, ElMessage as wl, ElAlert as 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";
|
|
@@ -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",
|
|
@@ -777,22 +777,22 @@ function Ul() {
|
|
|
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) {
|
|
@@ -1912,9 +1912,9 @@ const ye = {
|
|
|
1912
1912
|
labelPosition: "top",
|
|
1913
1913
|
submitButton: !1,
|
|
1914
1914
|
cancelButton: !1
|
|
1915
|
-
},
|
|
1915
|
+
}, je = [];
|
|
1916
1916
|
Object.keys(Se).forEach((e) => {
|
|
1917
|
-
|
|
1917
|
+
je.push({ value: e, label: Se[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,
|
|
@@ -1986,7 +1986,7 @@ const On = {
|
|
|
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: {
|
|
@@ -2057,7 +2057,7 @@ const On = {
|
|
|
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;
|
|
@@ -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,
|
|
@@ -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: {},
|
|
@@ -2992,7 +2992,7 @@ const Xn = {
|
|
|
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);
|
|
@@ -3031,7 +3031,7 @@ const Xn = {
|
|
|
3031
3031
|
}
|
|
3032
3032
|
};
|
|
3033
3033
|
function Yn(e, t, l, n, o, a) {
|
|
3034
|
-
const s = de, c = ue, p = ae, d = v("v-table"), m = nt, _ = ue, T = v("JsonView"), w = v("VButton"), F =
|
|
3034
|
+
const s = de, 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" } }, {
|
|
@@ -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
|
+
$e("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: "提示",
|
|
@@ -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
|
+
$e("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
|
+
$e("is-active");
|
|
3864
3866
|
},
|
|
3865
3867
|
methods: {
|
|
3866
3868
|
filterRoute(e) {
|
|
@@ -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",
|
|
@@ -4283,7 +4285,7 @@ const yt = /* @__PURE__ */ $(ya, [["render", wa]]), Sa = {
|
|
|
4283
4285
|
}
|
|
4284
4286
|
};
|
|
4285
4287
|
function xa(e, t, l, n, o, a) {
|
|
4286
|
-
const s =
|
|
4288
|
+
const s = Ae;
|
|
4287
4289
|
return i(), h("div", null, [
|
|
4288
4290
|
o.hasNotice ? (i(), f(s, {
|
|
4289
4291
|
key: 0,
|
|
@@ -4327,7 +4329,7 @@ const vt = /* @__PURE__ */ $(Sa, [["render", xa]]), Ea = q({
|
|
|
4327
4329
|
beforeCreate() {
|
|
4328
4330
|
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
4331
|
this.$http.get(this.$props.schemaApi || l, n).then(({ data: o }) => {
|
|
4330
|
-
this.loading = !1, X(o) && (o.notice !== void 0 && (this.haveNotice = !0,
|
|
4332
|
+
this.loading = !1, X(o) && (o.notice !== void 0 && (this.haveNotice = !0, Ie(o.notice) ? this.notice = {
|
|
4331
4333
|
title: o.notice
|
|
4332
4334
|
} : 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
4335
|
});
|
|
@@ -4335,7 +4337,7 @@ const vt = /* @__PURE__ */ $(Sa, [["render", xa]]), Ea = q({
|
|
|
4335
4337
|
});
|
|
4336
4338
|
const $a = ["innerHTML"];
|
|
4337
4339
|
function Ia(e, t, l, n, o, a) {
|
|
4338
|
-
const s =
|
|
4340
|
+
const s = Ae, c = vt, p = yt;
|
|
4339
4341
|
return i(), h(S, null, [
|
|
4340
4342
|
e.owners.length > 0 ? (i(), f(s, {
|
|
4341
4343
|
key: 0,
|
|
@@ -4555,7 +4557,7 @@ const Ta = { class: "card-header" }, Oa = /* @__PURE__ */ b("span", null, "列
|
|
|
4555
4557
|
style: { color: "#E6A23C" }
|
|
4556
4558
|
}, Pa = { class: "card-header" };
|
|
4557
4559
|
function La(e, t, l, n, o, a) {
|
|
4558
|
-
const s = ue, c = Sl, p =
|
|
4560
|
+
const s = ue, c = Sl, p = Re, d = de, m = v("v-form"), _ = ae;
|
|
4559
4561
|
return i(), f(_, {
|
|
4560
4562
|
class: "tree-box",
|
|
4561
4563
|
gutter: 20
|
|
@@ -4671,18 +4673,18 @@ function La(e, t, l, n, o, a) {
|
|
|
4671
4673
|
_: 1
|
|
4672
4674
|
});
|
|
4673
4675
|
}
|
|
4674
|
-
const
|
|
4676
|
+
const Ge = /* @__PURE__ */ $(Ca, [["render", La]]), Ma = {
|
|
4675
4677
|
__name: "tree",
|
|
4676
4678
|
setup(e) {
|
|
4677
4679
|
const t = (l, n) => {
|
|
4678
|
-
const o = Object.keys(
|
|
4680
|
+
const o = Object.keys(Ge.props);
|
|
4679
4681
|
return Object.keys(l).forEach((a) => {
|
|
4680
4682
|
o.indexOf(a) === -1 && delete l[a];
|
|
4681
4683
|
}), l;
|
|
4682
4684
|
};
|
|
4683
4685
|
return (l, n) => (i(), f(se, { "schema-handler": t }, {
|
|
4684
4686
|
default: r((o) => [
|
|
4685
|
-
u(
|
|
4687
|
+
u(Ge, W(Y(o)), null, 16)
|
|
4686
4688
|
]),
|
|
4687
4689
|
_: 1
|
|
4688
4690
|
}));
|
|
@@ -4731,7 +4733,7 @@ function ja(e, t, l) {
|
|
|
4731
4733
|
if (l.length === 0)
|
|
4732
4734
|
return {};
|
|
4733
4735
|
let n = A({}, Da);
|
|
4734
|
-
if (n.title.text = e,
|
|
4736
|
+
if (n.title.text = e, Ie(t)) {
|
|
4735
4737
|
const o = [], a = Object.keys(l[0]);
|
|
4736
4738
|
let s = a[0], c = a.filter((d, m) => m > 0), p = t;
|
|
4737
4739
|
if (t.indexOf(":") > -1) {
|
|
@@ -4783,7 +4785,7 @@ const Fa = /* @__PURE__ */ $(Na, [["render", Ha], ["__scopeId", "data-v-cc0d8293
|
|
|
4783
4785
|
components: {
|
|
4784
4786
|
Chart: El,
|
|
4785
4787
|
Md: Ol,
|
|
4786
|
-
Json:
|
|
4788
|
+
Json: Le,
|
|
4787
4789
|
Table: oe,
|
|
4788
4790
|
Number: Fa,
|
|
4789
4791
|
Html: ""
|
|
@@ -4831,13 +4833,13 @@ const Fa = /* @__PURE__ */ $(Na, [["render", Ha], ["__scopeId", "data-v-cc0d8293
|
|
|
4831
4833
|
}
|
|
4832
4834
|
};
|
|
4833
4835
|
function Ja(e, t, l, n, o, a) {
|
|
4834
|
-
const s =
|
|
4836
|
+
const s = Re, c = Rt("resize");
|
|
4835
4837
|
return ie((i(), f(s, {
|
|
4836
4838
|
shadow: "never",
|
|
4837
4839
|
class: "part"
|
|
4838
4840
|
}, {
|
|
4839
4841
|
default: r(() => [
|
|
4840
|
-
(i(), f(
|
|
4842
|
+
(i(), f(Qe(n.comptype()), W(Y(n.compprops(l.option))), null, 16))
|
|
4841
4843
|
]),
|
|
4842
4844
|
_: 1
|
|
4843
4845
|
})), [
|
|
@@ -4861,7 +4863,7 @@ const za = /* @__PURE__ */ $(Ga, [["render", Ja], ["__scopeId", "data-v-a5a65cc1
|
|
|
4861
4863
|
Pt(() => {
|
|
4862
4864
|
});
|
|
4863
4865
|
const n = L({});
|
|
4864
|
-
|
|
4866
|
+
Ke(() => {
|
|
4865
4867
|
var m;
|
|
4866
4868
|
(m = t.filter) == null || m.forEach((_) => {
|
|
4867
4869
|
_.default !== null && (n.value[_.field] = _.default);
|
|
@@ -4890,7 +4892,7 @@ const za = /* @__PURE__ */ $(Ga, [["render", Ja], ["__scopeId", "data-v-a5a65cc1
|
|
|
4890
4892
|
});
|
|
4891
4893
|
};
|
|
4892
4894
|
return (m, _) => {
|
|
4893
|
-
const T =
|
|
4895
|
+
const T = Re, w = de, F = Ae, U = ae;
|
|
4894
4896
|
return i(), f(U, null, {
|
|
4895
4897
|
default: r(() => [
|
|
4896
4898
|
k(s).length > 0 ? (i(), f(w, {
|
|
@@ -5012,9 +5014,9 @@ function Ya(e) {
|
|
|
5012
5014
|
type: l[a],
|
|
5013
5015
|
children: [o]
|
|
5014
5016
|
};
|
|
5015
|
-
return o.span = n,
|
|
5017
|
+
return o.span = n, Ne([o]);
|
|
5016
5018
|
}
|
|
5017
|
-
function
|
|
5019
|
+
function Ne(e) {
|
|
5018
5020
|
const t = {
|
|
5019
5021
|
type: "row",
|
|
5020
5022
|
props: {
|
|
@@ -5049,7 +5051,7 @@ function je(e) {
|
|
|
5049
5051
|
props: {}
|
|
5050
5052
|
}, Xa[n.type] || {}, n);
|
|
5051
5053
|
const a = kt(n.children);
|
|
5052
|
-
a.length && (n.children =
|
|
5054
|
+
a.length && (n.children = Ne(a)), t.children.push({
|
|
5053
5055
|
type: "col",
|
|
5054
5056
|
props: o,
|
|
5055
5057
|
children: [n]
|
|
@@ -5065,7 +5067,7 @@ const wt = (e) => {
|
|
|
5065
5067
|
return Dt(t, e.props, {
|
|
5066
5068
|
default: () => kt(e.children).map((l) => wt(l))
|
|
5067
5069
|
});
|
|
5068
|
-
}, es = (e) => (Object.keys(Ee).length === 0 && (Ee = Mt().appContext.components),
|
|
5070
|
+
}, es = (e) => (Object.keys(Ee).length === 0 && (Ee = Mt().appContext.components), Ne(Object.values(e.schema)).map((l) => wt(l))), ts = {
|
|
5069
5071
|
__name: "custom",
|
|
5070
5072
|
setup(e) {
|
|
5071
5073
|
const t = L([]), l = (n, o) => (t.value = jt(n), n);
|
|
@@ -5244,7 +5246,7 @@ rs(z);
|
|
|
5244
5246
|
function cs() {
|
|
5245
5247
|
return E.state.user.token;
|
|
5246
5248
|
}
|
|
5247
|
-
function
|
|
5249
|
+
function Je(e) {
|
|
5248
5250
|
Xl({
|
|
5249
5251
|
message: e,
|
|
5250
5252
|
type: "error",
|
|
@@ -5265,7 +5267,7 @@ const us = {
|
|
|
5265
5267
|
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
5268
|
const m = e.data.message || `接口请求错误 ${e.config.method}::${(a = e.config.url) == null ? void 0 : a.split("?")[0]}`;
|
|
5267
5269
|
if (e.data.code === 401) {
|
|
5268
|
-
|
|
5270
|
+
He.alert("登录信息已过期或未登录, 是否跳转登录", "操作提醒", {
|
|
5269
5271
|
showClose: !1,
|
|
5270
5272
|
confirmButtonText: "重新登录",
|
|
5271
5273
|
showCancelButton: !0,
|
|
@@ -5276,13 +5278,13 @@ const us = {
|
|
|
5276
5278
|
});
|
|
5277
5279
|
return;
|
|
5278
5280
|
} else
|
|
5279
|
-
|
|
5281
|
+
Je(m);
|
|
5280
5282
|
return Promise.reject(m);
|
|
5281
5283
|
}
|
|
5282
5284
|
let l = (c = (s = e.data) == null ? void 0 : s.data) == null ? void 0 : c._message_box;
|
|
5283
|
-
return l !== void 0 && (
|
|
5285
|
+
return l !== void 0 && (Ie(l) && (l = {
|
|
5284
5286
|
message: (d = (p = e.data) == null ? void 0 : p.data) == null ? void 0 : d._message_box
|
|
5285
|
-
}),
|
|
5287
|
+
}), He({
|
|
5286
5288
|
title: "提示",
|
|
5287
5289
|
type: "success",
|
|
5288
5290
|
grouping: !0,
|
|
@@ -5291,7 +5293,7 @@ const us = {
|
|
|
5291
5293
|
},
|
|
5292
5294
|
onRejected(e) {
|
|
5293
5295
|
var t;
|
|
5294
|
-
return
|
|
5296
|
+
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
5297
|
}
|
|
5296
5298
|
}, ds = [
|
|
5297
5299
|
{
|
|
@@ -5303,8 +5305,8 @@ const us = {
|
|
|
5303
5305
|
response: ps
|
|
5304
5306
|
}
|
|
5305
5307
|
];
|
|
5306
|
-
function
|
|
5307
|
-
const t = me.axios || {}, l = A(t, e || {}), n =
|
|
5308
|
+
function Ve(e = {}) {
|
|
5309
|
+
const t = me.axios || {}, l = A(t, e || {}), n = Ce.create({
|
|
5308
5310
|
...l
|
|
5309
5311
|
// adapter: (c) => cacheAdapter(c, defaultAxios)
|
|
5310
5312
|
});
|
|
@@ -5312,7 +5314,7 @@ function Ne(e = {}) {
|
|
|
5312
5314
|
n.interceptors.request.use(o.request.onFulfilled, o.request.onRejected), n.interceptors.response.use(o.response.onFulfilled, o.response.onRejected);
|
|
5313
5315
|
}), n;
|
|
5314
5316
|
}
|
|
5315
|
-
const ms =
|
|
5317
|
+
const ms = Ve();
|
|
5316
5318
|
const fs = {
|
|
5317
5319
|
beforeMount(e, t) {
|
|
5318
5320
|
e.clickOutsideEvent = function(l) {
|
|
@@ -5332,7 +5334,7 @@ const fs = {
|
|
|
5332
5334
|
mounted(e) {
|
|
5333
5335
|
}
|
|
5334
5336
|
};
|
|
5335
|
-
function
|
|
5337
|
+
function ze(e, t) {
|
|
5336
5338
|
let l = e[`offset${t}`], n = e.offsetParent;
|
|
5337
5339
|
for (; n; )
|
|
5338
5340
|
l += n[`offset${t}`], n = n.offsetParent;
|
|
@@ -5349,7 +5351,7 @@ const _s = {
|
|
|
5349
5351
|
l.classList.add("devtool-hover");
|
|
5350
5352
|
const n = document.createElement("i");
|
|
5351
5353
|
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 =
|
|
5354
|
+
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
5355
|
};
|
|
5354
5356
|
const o = document.createElement("span");
|
|
5355
5357
|
o.className = "dev-action-edit", o.title = "编辑";
|
|
@@ -5373,14 +5375,14 @@ const _s = {
|
|
|
5373
5375
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5374
5376
|
let ce;
|
|
5375
5377
|
function Ei(e) {
|
|
5376
|
-
return e ?
|
|
5378
|
+
return e ? Ve(A(me.axios, e)) : ce;
|
|
5377
5379
|
}
|
|
5378
5380
|
function $i(e) {
|
|
5379
5381
|
const t = A(me, e), l = Nt(Al), n = Es(t), o = t.plugins || [];
|
|
5380
5382
|
o.unshift(n), o.forEach((a) => {
|
|
5381
5383
|
xs(l, a);
|
|
5382
|
-
}), t != null && t.mock && Ul(), ce =
|
|
5383
|
-
"X-Token":
|
|
5384
|
+
}), 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(() => ({
|
|
5385
|
+
"X-Token": De()
|
|
5384
5386
|
})), z.isReady().then(() => l.mount("#app"));
|
|
5385
5387
|
}
|
|
5386
5388
|
function vs(e, t = {}) {
|
|
@@ -5435,14 +5437,14 @@ export {
|
|
|
5435
5437
|
ht as Layout,
|
|
5436
5438
|
P as MenuType,
|
|
5437
5439
|
Xl as Message,
|
|
5438
|
-
|
|
5440
|
+
He as MessageBox,
|
|
5439
5441
|
D as PageType,
|
|
5440
5442
|
Wo as allSso,
|
|
5441
5443
|
$i as createAdmin,
|
|
5442
5444
|
K as eventBus,
|
|
5443
5445
|
ln as getCmp,
|
|
5444
5446
|
ce as http,
|
|
5445
|
-
|
|
5447
|
+
Ve as instance,
|
|
5446
5448
|
xi as regViews,
|
|
5447
5449
|
Si as setCmp,
|
|
5448
5450
|
as as transRemoteModules,
|