@okiss/oms 0.0.40 → 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 +67 -65
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
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 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
|
|
5
|
-
import { addNewStyle as Vt, addNewStyleTag as qt, queryParams as Ut, logGroup as Ht, compactObject as Xe, showEleByClassName 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
9
|
import Ce from "axios";
|
|
@@ -12,8 +12,8 @@ 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 Oe, ElSelect as Be, ElFormItem as ot, ElForm as at, ElCol 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";
|
|
@@ -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;
|
|
@@ -750,30 +750,30 @@ 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
|
}
|
|
@@ -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
1915
|
}, je = [];
|
|
1916
|
-
Object.keys(
|
|
1917
|
-
je.push({ value: e, label:
|
|
1916
|
+
Object.keys(xe).forEach((e) => {
|
|
1917
|
+
je.push({ value: e, label: xe[e].name });
|
|
1918
1918
|
});
|
|
1919
1919
|
const On = {
|
|
1920
1920
|
options: {
|
|
@@ -1981,7 +1981,7 @@ 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",
|
|
@@ -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,7 +2052,7 @@ 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
|
},
|
|
@@ -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
|
}
|
|
@@ -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
|
|
@@ -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,7 +2987,7 @@ 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
|
},
|
|
@@ -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
|
};
|
|
@@ -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",
|
|
@@ -3773,7 +3773,7 @@ const Po = {
|
|
|
3773
3773
|
methods: {
|
|
3774
3774
|
onselected: function(e) {
|
|
3775
3775
|
this.$router.push(e), this.selected = "", setTimeout(() => {
|
|
3776
|
-
|
|
3776
|
+
pe("is-active");
|
|
3777
3777
|
}, 100);
|
|
3778
3778
|
}
|
|
3779
3779
|
}
|
|
@@ -3862,7 +3862,7 @@ const Do = q({
|
|
|
3862
3862
|
}
|
|
3863
3863
|
},
|
|
3864
3864
|
mounted() {
|
|
3865
|
-
|
|
3865
|
+
pe("is-active");
|
|
3866
3866
|
},
|
|
3867
3867
|
methods: {
|
|
3868
3868
|
filterRoute(e) {
|
|
@@ -3914,7 +3914,7 @@ const No = /* @__PURE__ */ $(Do, [["render", jo], ["__scopeId", "data-v-800716bb
|
|
|
3914
3914
|
const Vo = { class: "app-main" }, qo = {
|
|
3915
3915
|
__name: "AppMain",
|
|
3916
3916
|
setup(e) {
|
|
3917
|
-
const t =
|
|
3917
|
+
const t = de(), l = [], n = L(0);
|
|
3918
3918
|
return nl(() => {
|
|
3919
3919
|
var o;
|
|
3920
3920
|
(o = t.meta) != null && o.keepAlive && l.indexOf(t.name) && l.push(t.name), n.value++;
|
|
@@ -4034,7 +4034,7 @@ function Zo(e) {
|
|
|
4034
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({
|
|
4035
4035
|
__name: "login",
|
|
4036
4036
|
setup(e) {
|
|
4037
|
-
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({
|
|
4038
4038
|
username: "",
|
|
4039
4039
|
password: "",
|
|
4040
4040
|
captcha: "",
|
|
@@ -4058,7 +4058,7 @@ const Qo = { id: "login" }, Xo = /* @__PURE__ */ b("h1", { id: "title" }, "登
|
|
|
4058
4058
|
placeholder: "用户名",
|
|
4059
4059
|
class: "input"
|
|
4060
4060
|
}, null, 512), [
|
|
4061
|
-
[
|
|
4061
|
+
[be, k(c).username]
|
|
4062
4062
|
]),
|
|
4063
4063
|
ie(b("input", {
|
|
4064
4064
|
"onUpdate:modelValue": m[1] || (m[1] = (_) => k(c).password = _),
|
|
@@ -4066,7 +4066,7 @@ const Qo = { id: "login" }, Xo = /* @__PURE__ */ b("h1", { id: "title" }, "登
|
|
|
4066
4066
|
placeholder: "密码",
|
|
4067
4067
|
class: "input"
|
|
4068
4068
|
}, null, 512), [
|
|
4069
|
-
[
|
|
4069
|
+
[be, k(c).password]
|
|
4070
4070
|
]),
|
|
4071
4071
|
b("div", ea, [
|
|
4072
4072
|
ie(b("input", {
|
|
@@ -4075,7 +4075,7 @@ const Qo = { id: "login" }, Xo = /* @__PURE__ */ b("h1", { id: "title" }, "登
|
|
|
4075
4075
|
placeholder: "验证码",
|
|
4076
4076
|
class: "input-captcha"
|
|
4077
4077
|
}, null, 512), [
|
|
4078
|
-
[
|
|
4078
|
+
[be, k(c).captcha]
|
|
4079
4079
|
]),
|
|
4080
4080
|
b("img", {
|
|
4081
4081
|
class: "captcha-img",
|
|
@@ -4206,15 +4206,17 @@ const da = /* @__PURE__ */ $(sa, [["render", pa], ["__scopeId", "data-v-26068803
|
|
|
4206
4206
|
history: sl(),
|
|
4207
4207
|
routes: ma
|
|
4208
4208
|
});
|
|
4209
|
-
|
|
4209
|
+
we.configure({ showSpinner: !1 });
|
|
4210
4210
|
function fa(e) {
|
|
4211
4211
|
e.beforeEach((t, l, n) => {
|
|
4212
|
-
|
|
4212
|
+
we.start(), t.preHash = location.hash.replace("#", ""), n();
|
|
4213
4213
|
}), e.afterEach((t) => {
|
|
4214
4214
|
t.matched.length > 0 && E.commit("user/updateState", {
|
|
4215
4215
|
key: "path",
|
|
4216
4216
|
value: t.matched[t.matched.length - 1].path.replace("(\\d+)", "")
|
|
4217
|
-
}),
|
|
4217
|
+
}), we.done(), setTimeout(() => {
|
|
4218
|
+
pe("is-active");
|
|
4219
|
+
}, 100);
|
|
4218
4220
|
});
|
|
4219
4221
|
}
|
|
4220
4222
|
function ha() {
|
|
@@ -4384,10 +4386,10 @@ const se = /* @__PURE__ */ $(Ea, [["render", Ia], ["__scopeId", "data-v-015774e8
|
|
|
4384
4386
|
_: 1
|
|
4385
4387
|
}));
|
|
4386
4388
|
}
|
|
4387
|
-
},
|
|
4389
|
+
}, Ee = {
|
|
4388
4390
|
__name: "form",
|
|
4389
4391
|
setup(e) {
|
|
4390
|
-
const t =
|
|
4392
|
+
const t = de(), l = (n, o) => {
|
|
4391
4393
|
const a = Object.keys(J.props);
|
|
4392
4394
|
return Object.keys(n).forEach((s) => {
|
|
4393
4395
|
if (a.indexOf(s) === -1) {
|
|
@@ -4557,7 +4559,7 @@ const Ta = { class: "card-header" }, Oa = /* @__PURE__ */ b("span", null, "列
|
|
|
4557
4559
|
style: { color: "#E6A23C" }
|
|
4558
4560
|
}, Pa = { class: "card-header" };
|
|
4559
4561
|
function La(e, t, l, n, o, a) {
|
|
4560
|
-
const s = ue, c = Sl, p = Re, d =
|
|
4562
|
+
const s = ue, c = Sl, p = Re, d = me, m = v("v-form"), _ = ae;
|
|
4561
4563
|
return i(), f(_, {
|
|
4562
4564
|
class: "tree-box",
|
|
4563
4565
|
gutter: 20
|
|
@@ -4689,7 +4691,7 @@ const Ge = /* @__PURE__ */ $(Ca, [["render", La]]), Ma = {
|
|
|
4689
4691
|
_: 1
|
|
4690
4692
|
}));
|
|
4691
4693
|
}
|
|
4692
|
-
},
|
|
4694
|
+
}, ke = {
|
|
4693
4695
|
__name: "container",
|
|
4694
4696
|
setup(e) {
|
|
4695
4697
|
const t = L(0);
|
|
@@ -4892,7 +4894,7 @@ const za = /* @__PURE__ */ $(Ga, [["render", Ja], ["__scopeId", "data-v-a5a65cc1
|
|
|
4892
4894
|
});
|
|
4893
4895
|
};
|
|
4894
4896
|
return (m, _) => {
|
|
4895
|
-
const T = Re, w =
|
|
4897
|
+
const T = Re, w = me, F = Ae, U = ae;
|
|
4896
4898
|
return i(), f(U, null, {
|
|
4897
4899
|
default: r(() => [
|
|
4898
4900
|
k(s).length > 0 ? (i(), f(w, {
|
|
@@ -5061,13 +5063,13 @@ function Ne(e) {
|
|
|
5061
5063
|
function kt(e) {
|
|
5062
5064
|
return Ye(e) ? e : X(e) ? [e] : [];
|
|
5063
5065
|
}
|
|
5064
|
-
let
|
|
5066
|
+
let $e = {};
|
|
5065
5067
|
const wt = (e) => {
|
|
5066
|
-
const t = Qa[e.type] ||
|
|
5068
|
+
const t = Qa[e.type] || $e[e.type] || e.type;
|
|
5067
5069
|
return Dt(t, e.props, {
|
|
5068
5070
|
default: () => kt(e.children).map((l) => wt(l))
|
|
5069
5071
|
});
|
|
5070
|
-
}, 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 = {
|
|
5071
5073
|
__name: "custom",
|
|
5072
5074
|
setup(e) {
|
|
5073
5075
|
const t = L([]), l = (n, o) => (t.value = jt(n), n);
|
|
@@ -5086,15 +5088,15 @@ function xi(e) {
|
|
|
5086
5088
|
const ls = (e) => {
|
|
5087
5089
|
const t = (l) => {
|
|
5088
5090
|
const n = "./views/" + l + ".vue";
|
|
5089
|
-
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);
|
|
5090
5092
|
};
|
|
5091
5093
|
if (e.path === "#")
|
|
5092
|
-
return
|
|
5094
|
+
return ke;
|
|
5093
5095
|
switch (e.page_type) {
|
|
5094
5096
|
case D.list:
|
|
5095
5097
|
return gt;
|
|
5096
5098
|
case D.form:
|
|
5097
|
-
return
|
|
5099
|
+
return Ee;
|
|
5098
5100
|
case D.custom:
|
|
5099
5101
|
case D.localComp:
|
|
5100
5102
|
return t(e.view || "");
|
|
@@ -5105,7 +5107,7 @@ const ls = (e) => {
|
|
|
5105
5107
|
case D.customSchema:
|
|
5106
5108
|
return ts;
|
|
5107
5109
|
}
|
|
5108
|
-
return
|
|
5110
|
+
return ke;
|
|
5109
5111
|
};
|
|
5110
5112
|
function ns(e) {
|
|
5111
5113
|
let t = e.path;
|
|
@@ -5148,7 +5150,7 @@ const St = (e) => {
|
|
|
5148
5150
|
}, {
|
|
5149
5151
|
path: o,
|
|
5150
5152
|
name: e.name + "新建" + e.id,
|
|
5151
|
-
component:
|
|
5153
|
+
component: Ee,
|
|
5152
5154
|
meta: {
|
|
5153
5155
|
id: e.id + 99999 + 1,
|
|
5154
5156
|
title: "新建",
|
|
@@ -5161,7 +5163,7 @@ const St = (e) => {
|
|
|
5161
5163
|
}, {
|
|
5162
5164
|
path: a,
|
|
5163
5165
|
name: e.name + "编辑" + e.id,
|
|
5164
|
-
component:
|
|
5166
|
+
component: Ee,
|
|
5165
5167
|
meta: {
|
|
5166
5168
|
id: e.id + 99999 + 2,
|
|
5167
5169
|
title: "编辑",
|
|
@@ -5306,7 +5308,7 @@ const us = {
|
|
|
5306
5308
|
}
|
|
5307
5309
|
];
|
|
5308
5310
|
function Ve(e = {}) {
|
|
5309
|
-
const t =
|
|
5311
|
+
const t = fe.axios || {}, l = A(t, e || {}), n = Ce.create({
|
|
5310
5312
|
...l
|
|
5311
5313
|
// adapter: (c) => cacheAdapter(c, defaultAxios)
|
|
5312
5314
|
});
|
|
@@ -5375,10 +5377,10 @@ const _s = {
|
|
|
5375
5377
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5376
5378
|
let ce;
|
|
5377
5379
|
function Ei(e) {
|
|
5378
|
-
return e ? Ve(A(
|
|
5380
|
+
return e ? Ve(A(fe.axios, e)) : ce;
|
|
5379
5381
|
}
|
|
5380
5382
|
function $i(e) {
|
|
5381
|
-
const t = A(
|
|
5383
|
+
const t = A(fe, e), l = Nt(Al), n = Es(t), o = t.plugins || [];
|
|
5382
5384
|
o.unshift(n), o.forEach((a) => {
|
|
5383
5385
|
xs(l, a);
|
|
5384
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(() => ({
|
|
@@ -5432,7 +5434,7 @@ function Es(e) {
|
|
|
5432
5434
|
}
|
|
5433
5435
|
export {
|
|
5434
5436
|
Jo as BaseSso,
|
|
5435
|
-
|
|
5437
|
+
ke as Container,
|
|
5436
5438
|
zo as DingTalk,
|
|
5437
5439
|
ht as Layout,
|
|
5438
5440
|
P as MenuType,
|