@okiss/oms 0.0.59 → 0.0.61
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 +36 -36
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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 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
|
|
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
|
|
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 re, vModelText as be, onMounted as Ze, onUnmounted as Nt, resolveDirective as Vt, isRef as qt, getCurrentInstance as Ut, h as Ht, toRaw as Ft, createApp as Gt } from "vue";
|
|
5
|
+
import { addNewStyle as Jt, addNewStyleTag as zt, queryParams as Kt, logGroup as Wt, compactObject as Qe, showEleByClassName as Ye, waterMarker as Xt, Cache as ce, 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
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";
|
|
@@ -12,8 +12,8 @@ import { createStore as ll, useStore as ot, mapGetters as Ce } from "vuex";
|
|
|
12
12
|
import nl, { ElMessage as ol, ElMessageBox as at, ElCard as al, ElRow as sl, ElCol as il } from "element-plus";
|
|
13
13
|
import "element-plus/dist/index.css";
|
|
14
14
|
import "dayjs/locale/zh-cn";
|
|
15
|
-
import { useRoute as
|
|
16
|
-
import { ElBreadcrumbItem as dl, ElBreadcrumb as ml, ElRow as
|
|
15
|
+
import { useRoute as ae, 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 se, ElMain as fl, ElAside as hl, ElContainer as bl, ElDivider as it, ElButton as de, ElOption as Te, ElSelect as Be, ElFormItem as rt, ElForm as ct, ElCol as me, ElDrawer as ut, ElDropdownItem as _l, ElDropdownMenu as yl, ElDropdown as vl, ElMenuItem as gl, ElSubMenu as kl, ElOptionGroup as wl, ElMenu as Sl, ElScrollbar as xl, ElBacktop as El, ElMessage as Il, ElAlert as Oe, ElTree as $l, ElCard as Ae } from "element-plus/es";
|
|
17
17
|
import "element-plus/es/components/base/style/css";
|
|
18
18
|
import "element-plus/es/components/row/style/css";
|
|
19
19
|
import "element-plus/es/components/drawer/style/css";
|
|
@@ -1023,7 +1023,7 @@ const Kl = {
|
|
|
1023
1023
|
app: Yl,
|
|
1024
1024
|
builderSchema: tn
|
|
1025
1025
|
}
|
|
1026
|
-
}), ln = ol, Ue = at, nn = $e.CancelToken,
|
|
1026
|
+
}), ln = ol, Ue = at, nn = $e.CancelToken, ue = {
|
|
1027
1027
|
taskList: {},
|
|
1028
1028
|
cacheList: /* @__PURE__ */ new Map(),
|
|
1029
1029
|
uniqueId(e) {
|
|
@@ -1061,8 +1061,8 @@ const Kl = {
|
|
|
1061
1061
|
}
|
|
1062
1062
|
}, on = {
|
|
1063
1063
|
onFulfilled: function(e) {
|
|
1064
|
-
return e.cacheEnable === !1 || (
|
|
1065
|
-
|
|
1064
|
+
return e.cacheEnable === !1 || (ue.pending(e) && ue.delTask(e), e.cancelToken = new nn((t) => {
|
|
1065
|
+
ue.addTask(e, t);
|
|
1066
1066
|
})), e;
|
|
1067
1067
|
},
|
|
1068
1068
|
onRejected(e) {
|
|
@@ -1070,7 +1070,7 @@ const Kl = {
|
|
|
1070
1070
|
}
|
|
1071
1071
|
}, an = {
|
|
1072
1072
|
onFulfilled: function(e) {
|
|
1073
|
-
return e.config.cacheEnable === !1 || e.config.method === "get" && Object.keys(e.data).length > 0 &&
|
|
1073
|
+
return e.config.cacheEnable === !1 || e.config.method === "get" && Object.keys(e.data).length > 0 && ue.addCache(e.config, e.data), e;
|
|
1074
1074
|
},
|
|
1075
1075
|
onRejected(e) {
|
|
1076
1076
|
return Promise.reject(e);
|
|
@@ -1206,7 +1206,7 @@ function bn(e, t, l, o, n, a) {
|
|
|
1206
1206
|
const _n = /* @__PURE__ */ $(hn, [["render", bn]]);
|
|
1207
1207
|
const yn = {};
|
|
1208
1208
|
function vn(e, t) {
|
|
1209
|
-
const l =
|
|
1209
|
+
const l = se, o = fl, n = hl, a = bl;
|
|
1210
1210
|
return i(), f(a, { style: { width: "100%", height: "100%" } }, {
|
|
1211
1211
|
default: c(() => [
|
|
1212
1212
|
p(l, { class: "aside" }, {
|
|
@@ -2104,7 +2104,7 @@ const Rn = {
|
|
|
2104
2104
|
}
|
|
2105
2105
|
};
|
|
2106
2106
|
function Mn(e, t, l, o, n, a) {
|
|
2107
|
-
const s = w("v-form"), r = it, d =
|
|
2107
|
+
const s = w("v-form"), r = it, d = de, u = w("JsonView"), m = w("VButton"), _ = Te, k = Be, y = rt, J = ct, U = w("dev-layout");
|
|
2108
2108
|
return i(), f(U, null, {
|
|
2109
2109
|
main: c(() => [
|
|
2110
2110
|
n.builderSchema.formItems ? (i(), f(s, F({
|
|
@@ -3050,7 +3050,7 @@ const lo = {
|
|
|
3050
3050
|
}
|
|
3051
3051
|
};
|
|
3052
3052
|
function no(e, t, l, o, n, a) {
|
|
3053
|
-
const s = me, r =
|
|
3053
|
+
const s = me, r = de, d = se, u = w("v-table"), m = it, _ = de, k = w("JsonView"), y = w("VButton"), J = Te, U = Be, T = rt, X = ct, Bt = w("v-form"), Ot = w("dev-layout");
|
|
3054
3054
|
return i(), f(Ot, null, {
|
|
3055
3055
|
"left-aside": c(() => [
|
|
3056
3056
|
p(d, { style: { width: "200px" } }, {
|
|
@@ -3313,7 +3313,7 @@ const oo = /* @__PURE__ */ $(lo, [["render", no], ["__scopeId", "data-v-e5209cb7
|
|
|
3313
3313
|
name: "PageEditor",
|
|
3314
3314
|
components: { FormBuilder: Dn, TableBuilder: oo },
|
|
3315
3315
|
setup() {
|
|
3316
|
-
const e = D(!1), t = D(1), l = "rtl", o =
|
|
3316
|
+
const e = D(!1), t = D(1), l = "rtl", o = ae(), n = M(() => g.state.app.pages[o.path]);
|
|
3317
3317
|
return { show: e, key: t, direction: l, pageSchema: n };
|
|
3318
3318
|
}
|
|
3319
3319
|
};
|
|
@@ -3418,11 +3418,11 @@ const ro = {
|
|
|
3418
3418
|
},
|
|
3419
3419
|
showNotice(e) {
|
|
3420
3420
|
const t = "dismiss:navbar_notice";
|
|
3421
|
-
return
|
|
3421
|
+
return ce.exist(t) ? ce.get(t) !== e : !0;
|
|
3422
3422
|
},
|
|
3423
3423
|
closeNotice(e) {
|
|
3424
3424
|
const t = "dismiss:navbar_notice";
|
|
3425
|
-
|
|
3425
|
+
ce.set(t, e);
|
|
3426
3426
|
},
|
|
3427
3427
|
gotoMenuEdit() {
|
|
3428
3428
|
var e, t, l, o;
|
|
@@ -3437,7 +3437,7 @@ const ro = {
|
|
|
3437
3437
|
style: { padding: "0" }
|
|
3438
3438
|
}, fo = { class: "user-info" }, ho = ["src"], bo = { class: "user-name" };
|
|
3439
3439
|
function _o(e, t, l, o, n, a) {
|
|
3440
|
-
const s = w("hamburger"), r = w("breadcrumb"), d = me, u = w("VIcon"), m = w("PageEditor"), _ = w("v-button"), k = _l, y = yl, J = vl, U = ut, T =
|
|
3440
|
+
const s = w("hamburger"), r = w("breadcrumb"), d = me, u = w("VIcon"), m = w("PageEditor"), _ = w("v-button"), k = _l, y = yl, J = vl, U = ut, T = se;
|
|
3441
3441
|
return i(), f(T, {
|
|
3442
3442
|
ref: "header",
|
|
3443
3443
|
class: "navbar",
|
|
@@ -3696,7 +3696,7 @@ const Bo = /* @__PURE__ */ $(Co, [["render", To]]), Oo = {
|
|
|
3696
3696
|
},
|
|
3697
3697
|
methods: {
|
|
3698
3698
|
itemClick() {
|
|
3699
|
-
|
|
3699
|
+
ce.remove("table_filter:" + this.$props.to);
|
|
3700
3700
|
},
|
|
3701
3701
|
getTo(e) {
|
|
3702
3702
|
try {
|
|
@@ -3948,7 +3948,7 @@ const Ho = /* @__PURE__ */ $(qo, [["render", Uo], ["__scopeId", "data-v-d252f828
|
|
|
3948
3948
|
const Fo = { class: "app-main" }, Go = {
|
|
3949
3949
|
__name: "AppMain",
|
|
3950
3950
|
setup(e) {
|
|
3951
|
-
const t =
|
|
3951
|
+
const t = ae(), l = [], o = D(0);
|
|
3952
3952
|
return rl(() => {
|
|
3953
3953
|
var n;
|
|
3954
3954
|
(n = t.meta) != null && n.keepAlive && l.indexOf(t.name) && l.push(t.name), o.value++;
|
|
@@ -4006,7 +4006,7 @@ const zo = { class: "main-container" }, Ko = 992, Wo = {
|
|
|
4006
4006
|
}, ea = ["src"], ta = { class: "tips" }, la = { class: "sso" }, na = /* @__PURE__ */ b("div", { id: "sso-qrcode" }, null, -1), oa = /* @__PURE__ */ q({
|
|
4007
4007
|
__name: "login",
|
|
4008
4008
|
setup(e) {
|
|
4009
|
-
const t = st(), l =
|
|
4009
|
+
const t = st(), l = ae(), 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({
|
|
4010
4010
|
username: "",
|
|
4011
4011
|
password: "",
|
|
4012
4012
|
captcha: "",
|
|
@@ -4026,7 +4026,7 @@ const zo = { class: "main-container" }, Ko = 992, Wo = {
|
|
|
4026
4026
|
return (_, k) => (i(), h("div", Xo, [
|
|
4027
4027
|
Zo,
|
|
4028
4028
|
b("form", Qo, [
|
|
4029
|
-
|
|
4029
|
+
re(b("input", {
|
|
4030
4030
|
"onUpdate:modelValue": k[0] || (k[0] = (y) => x(u).username = y),
|
|
4031
4031
|
type: "text",
|
|
4032
4032
|
placeholder: "用户名",
|
|
@@ -4034,7 +4034,7 @@ const zo = { class: "main-container" }, Ko = 992, Wo = {
|
|
|
4034
4034
|
}, null, 512), [
|
|
4035
4035
|
[be, x(u).username]
|
|
4036
4036
|
]),
|
|
4037
|
-
|
|
4037
|
+
re(b("input", {
|
|
4038
4038
|
"onUpdate:modelValue": k[1] || (k[1] = (y) => x(u).password = y),
|
|
4039
4039
|
type: "password",
|
|
4040
4040
|
placeholder: "密码",
|
|
@@ -4043,7 +4043,7 @@ const zo = { class: "main-container" }, Ko = 992, Wo = {
|
|
|
4043
4043
|
[be, x(u).password]
|
|
4044
4044
|
]),
|
|
4045
4045
|
n.value ? (i(), h("div", Yo, [
|
|
4046
|
-
|
|
4046
|
+
re(b("input", {
|
|
4047
4047
|
"onUpdate:modelValue": k[2] || (k[2] = (y) => x(u).captcha = y),
|
|
4048
4048
|
type: "text",
|
|
4049
4049
|
placeholder: "验证码",
|
|
@@ -4418,7 +4418,7 @@ function Ta(e, t, l, o, n, a) {
|
|
|
4418
4418
|
], 64))
|
|
4419
4419
|
], 64);
|
|
4420
4420
|
}
|
|
4421
|
-
const
|
|
4421
|
+
const ie = /* @__PURE__ */ $($a, [["render", Ta], ["__scopeId", "data-v-4965a709"]]), Et = {
|
|
4422
4422
|
__name: "table",
|
|
4423
4423
|
setup(e) {
|
|
4424
4424
|
const t = (l, o) => {
|
|
@@ -4434,7 +4434,7 @@ const se = /* @__PURE__ */ $($a, [["render", Ta], ["__scopeId", "data-v-4965a709
|
|
|
4434
4434
|
n.indexOf(a) === -1 && delete l[a];
|
|
4435
4435
|
}), l.listApi === void 0 && (l.listApi = `/${o}/list`), l;
|
|
4436
4436
|
};
|
|
4437
|
-
return (l, o) => (i(), f(
|
|
4437
|
+
return (l, o) => (i(), f(ie, { "schema-handler": t }, {
|
|
4438
4438
|
default: c((n) => [
|
|
4439
4439
|
p(x(oe), G(Y(n)), null, 16)
|
|
4440
4440
|
]),
|
|
@@ -4444,7 +4444,7 @@ const se = /* @__PURE__ */ $($a, [["render", Ta], ["__scopeId", "data-v-4965a709
|
|
|
4444
4444
|
}, xe = {
|
|
4445
4445
|
__name: "form",
|
|
4446
4446
|
setup(e) {
|
|
4447
|
-
const t =
|
|
4447
|
+
const t = ae(), l = st(), o = (r, d) => {
|
|
4448
4448
|
const u = Object.keys(z.props);
|
|
4449
4449
|
return Object.keys(r).forEach((m) => {
|
|
4450
4450
|
if (u.indexOf(m) === -1) {
|
|
@@ -4486,7 +4486,7 @@ const se = /* @__PURE__ */ $($a, [["render", Ta], ["__scopeId", "data-v-4965a709
|
|
|
4486
4486
|
var r, d;
|
|
4487
4487
|
(r = t.query) != null && r.goback ? l.push((d = t.query) == null ? void 0 : d.goback) : history.state.back && history.back();
|
|
4488
4488
|
}
|
|
4489
|
-
return (r, d) => (i(), f(
|
|
4489
|
+
return (r, d) => (i(), f(ie, { "schema-handler": o }, {
|
|
4490
4490
|
default: c((u) => [
|
|
4491
4491
|
p(x(z), G(Y(u)), null, 16)
|
|
4492
4492
|
]),
|
|
@@ -4641,7 +4641,7 @@ const Oa = { class: "card-header" }, Aa = /* @__PURE__ */ b("span", null, "列
|
|
|
4641
4641
|
style: { color: "#E6A23C" }
|
|
4642
4642
|
}, Ma = { class: "card-header" };
|
|
4643
4643
|
function Da(e, t, l, o, n, a) {
|
|
4644
|
-
const s =
|
|
4644
|
+
const s = de, r = $l, d = Ae, u = me, m = w("v-form"), _ = se;
|
|
4645
4645
|
return i(), f(_, {
|
|
4646
4646
|
class: "tree-box",
|
|
4647
4647
|
gutter: 20
|
|
@@ -4766,7 +4766,7 @@ const Fe = /* @__PURE__ */ $(Ba, [["render", Da]]), ja = {
|
|
|
4766
4766
|
n.indexOf(a) === -1 && delete l[a];
|
|
4767
4767
|
}), l;
|
|
4768
4768
|
};
|
|
4769
|
-
return (l, o) => (i(), f(
|
|
4769
|
+
return (l, o) => (i(), f(ie, { "schema-handler": t }, {
|
|
4770
4770
|
default: c((n) => [
|
|
4771
4771
|
p(Fe, G(Y(n)), null, 16)
|
|
4772
4772
|
]),
|
|
@@ -4918,7 +4918,7 @@ const Ja = /* @__PURE__ */ $(qa, [["render", Ga], ["__scopeId", "data-v-cc0d8293
|
|
|
4918
4918
|
};
|
|
4919
4919
|
function Ka(e, t, l, o, n, a) {
|
|
4920
4920
|
const s = Ae, r = Vt("resize");
|
|
4921
|
-
return
|
|
4921
|
+
return re((i(), f(s, {
|
|
4922
4922
|
shadow: "never",
|
|
4923
4923
|
class: "part"
|
|
4924
4924
|
}, {
|
|
@@ -4943,7 +4943,7 @@ const Wa = /* @__PURE__ */ $(za, [["render", Ka], ["__scopeId", "data-v-a5a65cc1
|
|
|
4943
4943
|
}
|
|
4944
4944
|
},
|
|
4945
4945
|
setup(e) {
|
|
4946
|
-
const t = e, l =
|
|
4946
|
+
const t = e, l = ae();
|
|
4947
4947
|
Ze(() => {
|
|
4948
4948
|
});
|
|
4949
4949
|
const o = D({});
|
|
@@ -4976,7 +4976,7 @@ const Wa = /* @__PURE__ */ $(za, [["render", Ka], ["__scopeId", "data-v-a5a65cc1
|
|
|
4976
4976
|
});
|
|
4977
4977
|
};
|
|
4978
4978
|
return (m, _) => {
|
|
4979
|
-
const k = Ae, y = me, J = Oe, U =
|
|
4979
|
+
const k = Ae, y = me, J = Oe, U = se;
|
|
4980
4980
|
return i(), f(U, null, {
|
|
4981
4981
|
default: c(() => [
|
|
4982
4982
|
x(s).length > 0 ? (i(), f(y, {
|
|
@@ -5050,7 +5050,7 @@ const Za = {
|
|
|
5050
5050
|
}
|
|
5051
5051
|
return "/focusbi_report/view/" + o;
|
|
5052
5052
|
});
|
|
5053
|
-
return (o, n) => (i(), f(
|
|
5053
|
+
return (o, n) => (i(), f(ie, { "schema-api": x(l) }, {
|
|
5054
5054
|
default: c((a) => [
|
|
5055
5055
|
p(Xa, G(Y(a)), null, 16)
|
|
5056
5056
|
]),
|
|
@@ -5155,7 +5155,7 @@ const $t = (e) => {
|
|
|
5155
5155
|
__name: "custom",
|
|
5156
5156
|
setup(e) {
|
|
5157
5157
|
const t = D([]), l = (o, n) => (t.value = Ft(o), o);
|
|
5158
|
-
return (o, n) => (i(), f(
|
|
5158
|
+
return (o, n) => (i(), f(ie, { "schema-handler": l }, {
|
|
5159
5159
|
default: c(() => [
|
|
5160
5160
|
p(x(ls), { schema: x(t) }, null, 8, ["schema"])
|
|
5161
5161
|
]),
|
|
@@ -5462,15 +5462,15 @@ const vs = {
|
|
|
5462
5462
|
resize: ys,
|
|
5463
5463
|
rightClick: _s
|
|
5464
5464
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5465
|
-
let
|
|
5465
|
+
let pe;
|
|
5466
5466
|
function Ti(e) {
|
|
5467
|
-
return e ? Ne(A(fe.axios, e)) :
|
|
5467
|
+
return e ? Ne(A(fe.axios, e)) : pe;
|
|
5468
5468
|
}
|
|
5469
5469
|
function Bi(e) {
|
|
5470
5470
|
const t = A(fe, e), l = Gt(Ml), o = $s(t), n = t.plugins || [];
|
|
5471
5471
|
n.unshift(o), n.forEach((a) => {
|
|
5472
5472
|
Is(l, a);
|
|
5473
|
-
}), t != null && t.mock && Jl(),
|
|
5473
|
+
}), t != null && t.mock && Jl(), pe = Ne(t.axios), g.dispatch("setHttp", pe).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 = pe, l.config.globalProperties.$router = K, window.App = l, window.OmsOptions = t, Bl(() => ({
|
|
5474
5474
|
"X-Token": Me()
|
|
5475
5475
|
})), K.isReady().then(() => l.mount("#app"));
|
|
5476
5476
|
}
|
|
@@ -5533,7 +5533,7 @@ export {
|
|
|
5533
5533
|
Bi as createAdmin,
|
|
5534
5534
|
W as eventBus,
|
|
5535
5535
|
sn as getCmp,
|
|
5536
|
-
|
|
5536
|
+
pe as http,
|
|
5537
5537
|
Ne as instance,
|
|
5538
5538
|
Ci as regViews,
|
|
5539
5539
|
Ei as setCmp,
|