@okiss/oms 0.0.95 → 0.0.97

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 CHANGED
@@ -1,17 +1,17 @@
1
- import { ref as T, watch as ue, computed as g, defineComponent as G, onBeforeMount as We, provide as xn, resolveComponent as M, createBlock as h, openBlock as r, createVNode as c, createTextVNode as I, withCtx as i, TransitionGroup as En, createElementBlock as v, Fragment as R, renderList as U, toDisplayString as A, normalizeClass as te, renderSlot as fe, createCommentVNode as $, mergeProps as X, toRefs as In, unref as f, isRef as Qe, onMounted as Te, normalizeStyle as Cn, createElementVNode as y, withKeys as bt, withModifiers as He, resolveDynamicComponent as Xe, Transition as Bt, normalizeProps as Z, guardReactiveProps as de, onUnmounted as Tn, resolveDirective as On, withDirectives as $n, getCurrentInstance as Bn, h as An, toRaw as Rn, createApp as Pn } from "vue";
2
- import { normalizeTheme as he, applyDocumentTheme as Ln, dispatchThemeChange as Mn, addNewStyle as Dn, addNewStyleTag as jn, queryParams as Nn, logGroup as Vn, compactObject as At, showEleByClassName as Rt, waterMarker as Un, Cache as we, isExternal as yt, getQueryParam as Pt, createIFrame as qn, strVarReplace as re, obj2Param as Hn, isObject as ce, isString as Ze, effectDataTrans as Fn, isArray as Lt } from "@okiss/utils";
3
- import { defineStore as Oe, createPinia as Gn } from "pinia";
4
- import ne from "js-cookie";
1
+ import { ref as T, watch as ue, computed as g, defineComponent as G, onBeforeMount as We, provide as xo, resolveComponent as M, createBlock as h, openBlock as r, createVNode as c, createTextVNode as I, withCtx as i, TransitionGroup as Eo, createElementBlock as v, Fragment as R, renderList as U, toDisplayString as A, normalizeClass as te, renderSlot as fe, createCommentVNode as $, mergeProps as X, toRefs as Io, unref as f, isRef as Qe, onMounted as Te, normalizeStyle as Co, createElementVNode as y, withKeys as bt, withModifiers as He, resolveDynamicComponent as Xe, Transition as Bt, normalizeProps as Z, guardReactiveProps as de, onUnmounted as To, resolveDirective as Oo, withDirectives as $o, getCurrentInstance as Bo, h as Ao, toRaw as Ro, createApp as Po } from "vue";
2
+ import { normalizeTheme as he, applyDocumentTheme as Lo, dispatchThemeChange as Mo, addNewStyle as Do, addNewStyleTag as jo, queryParams as No, logGroup as Vo, compactObject as At, showEleByClassName as Rt, waterMarker as Uo, Cache as we, isExternal as yt, getQueryParam as Pt, createIFrame as qo, strVarReplace as re, obj2Param as Ho, isObject as ce, isString as Ze, effectDataTrans as Fo, isArray as Lt } from "@okiss/utils";
3
+ import { defineStore as Oe, createPinia as Go } from "pinia";
4
+ import oe from "js-cookie";
5
5
  import Mt from "element-plus/es/locale/lang/zh-cn";
6
- import Kn, { cloneDeep as E, merge as q, get as be, unset as Dt, isObject as zn } from "lodash";
6
+ import Ko, { cloneDeep as E, merge as q, get as be, unset as Dt, isObject as zo } from "lodash";
7
7
  import Me from "mockjs";
8
8
  import Ye from "axios";
9
- import Jn, { ElMessageBox as jt, ElMessage as Nt, ElCol as Wn, ElRow as Qn, ElCard as Xn } from "element-plus";
9
+ import Jo, { ElMessageBox as jt, ElMessage as Nt, ElCol as Wo, ElRow as Qo, ElCard as Xo } from "element-plus";
10
10
  import "element-plus/theme-chalk/src/index.scss";
11
11
  import "element-plus/theme-chalk/src/dark/css-vars.scss";
12
12
  import "dayjs/locale/zh-cn";
13
- import { useRoute as Q, useRouter as $e, onBeforeRouteLeave as Zn, createRouter as Yn, createWebHashHistory as eo, onBeforeRouteUpdate as to } from "vue-router";
14
- import { ElBreadcrumb as no, ElBreadcrumbItem as oo, ElContainer as lo, ElRow as ve, ElMain as so, ElAside as ao, ElForm as et, ElFormItem as tt, ElSelect as nt, ElOption as ot, ElDivider as Vt, ElButton as ye, ElCol as Be, ElDrawer as Ut, ElTooltip as qt, ElIcon as Ht, ElDropdown as io, ElDropdownMenu as ro, ElDropdownItem as co, ElAvatar as uo, ElImage as po, ElMenuItem as mo, ElSubMenu as fo, ElOptionGroup as ho, ElScrollbar as bo, ElMenu as yo, ElBacktop as _o, ElCard as Ae, ElInput as vo, ElAlert as lt, ElTree as go } from "element-plus/es";
13
+ import { useRoute as Q, useRouter as $e, onBeforeRouteLeave as Zo, createRouter as Yo, createWebHashHistory as en, onBeforeRouteUpdate as tn } from "vue-router";
14
+ import { ElBreadcrumb as on, ElBreadcrumbItem as nn, ElContainer as ln, ElRow as ve, ElMain as sn, ElAside as an, ElForm as et, ElFormItem as tt, ElSelect as ot, ElOption as nt, ElDivider as Vt, ElButton as ye, ElCol as Be, ElDrawer as Ut, ElTooltip as qt, ElIcon as Ht, ElDropdown as rn, ElDropdownMenu as cn, ElDropdownItem as un, ElAvatar as dn, ElImage as pn, ElMenuItem as mn, ElSubMenu as fn, ElOptionGroup as hn, ElScrollbar as bn, ElMenu as yn, ElBacktop as _n, ElCard as Ae, ElInput as vn, ElAlert as lt, ElTree as gn } from "element-plus/es";
15
15
  import "element-plus/es/components/base/style/css";
16
16
  import "element-plus/es/components/row/style/css";
17
17
  import "element-plus/es/components/drawer/style/css";
@@ -24,7 +24,7 @@ import "element-plus/es/components/icon/style/css";
24
24
  import "element-plus/es/components/col/style/css";
25
25
  import "element-plus/es/components/breadcrumb/style/css";
26
26
  import "element-plus/es/components/breadcrumb-item/style/css";
27
- import * as ko from "path-to-regexp";
27
+ import * as kn from "path-to-regexp";
28
28
  import "element-plus/es/components/form/style/css";
29
29
  import "element-plus/es/components/form-item/style/css";
30
30
  import "element-plus/es/components/select/style/css";
@@ -34,11 +34,11 @@ import "element-plus/es/components/divider/style/css";
34
34
  import "element-plus/es/components/container/style/css";
35
35
  import "element-plus/es/components/aside/style/css";
36
36
  import "element-plus/es/components/main/style/css";
37
- import { JsonView as st, VBtn as at, VForm as oe, VTable as _e, VChart as wo, setUploadHeaderHandle as So, VIcon as xo } from "@okiss/vbtf";
37
+ import { JsonView as st, VBtn as at, VForm as ne, VTable as _e, VChart as wn, setUploadHeaderHandle as Sn, VIcon as xn } from "@okiss/vbtf";
38
38
  import "normalize.css/normalize.css";
39
39
  import "@okiss/vbtf/style.css";
40
- import Eo from "mitt";
41
- import { Moon as Io, Sunny as Co, Brush as To, InfoFilled as Oo } from "@element-plus/icons-vue";
40
+ import En from "mitt";
41
+ import { Moon as In, Sunny as Cn, Brush as Tn, InfoFilled as On } from "@element-plus/icons-vue";
42
42
  import "element-plus/es/components/scrollbar/style/css";
43
43
  import "element-plus/es/components/menu/style/css";
44
44
  import "element-plus/es/components/image/style/css";
@@ -46,40 +46,40 @@ import "element-plus/es/components/sub-menu/style/css";
46
46
  import "element-plus/es/components/menu-item/style/css";
47
47
  import "element-plus/es/components/option-group/style/css";
48
48
  import "element-plus/es/components/backtop/style/css";
49
- import { useEventListener as $o } from "@vueuse/core";
49
+ import { useEventListener as $n } from "@vueuse/core";
50
50
  import "element-plus/es/components/alert/style/css";
51
51
  import "element-plus/es/components/card/style/css";
52
52
  import "element-plus/es/components/tree/style/css";
53
- import Bo from "vue3-markdown-it";
53
+ import Bn from "vue3-markdown-it";
54
54
  import "element-plus/es/components/input/style/css";
55
- import Ao from "crypto-js";
55
+ import An from "crypto-js";
56
56
  import Fe from "nprogress";
57
57
  import "nprogress/nprogress.css";
58
58
  String.prototype.format || (String.prototype.format = function() {
59
59
  const e = arguments;
60
- return this.replace(/{(\d+)}/g, function(t, n) {
61
- return typeof e[n] < "u" ? e[n] : t;
60
+ return this.replace(/{(\d+)}/g, function(t, o) {
61
+ return typeof e[o] < "u" ? e[o] : t;
62
62
  });
63
63
  });
64
64
  const it = "oms:token";
65
65
  function ge() {
66
- return ne.get(it) || "";
66
+ return oe.get(it) || "";
67
67
  }
68
- function Ro(e) {
69
- const t = V(D), n = new Date((/* @__PURE__ */ new Date()).getTime() + (t.tokenExpire || 1440 * 60 * 1e3));
70
- return ne.set(it, e, { expires: n });
68
+ function Rn(e) {
69
+ const t = V(D), o = new Date((/* @__PURE__ */ new Date()).getTime() + (t.tokenExpire || 1440 * 60 * 1e3));
70
+ return oe.set(it, e, { expires: o });
71
71
  }
72
72
  function Ft() {
73
- return ne.remove(it);
73
+ return oe.remove(it);
74
74
  }
75
75
  let Gt = null;
76
- function Po(e) {
76
+ function Pn(e) {
77
77
  Gt = e;
78
78
  }
79
79
  function De() {
80
80
  return Gt;
81
81
  }
82
- const Lo = {
82
+ const Ln = {
83
83
  baseURL: "/api",
84
84
  withCredentials: !0,
85
85
  cacheEnable: !0
@@ -113,12 +113,12 @@ const Lo = {
113
113
  themeMode: "light",
114
114
  aestheticMode: "default"
115
115
  }, Re = {
116
- axios: Lo,
116
+ axios: Ln,
117
117
  settings: Kt,
118
118
  plugins: [],
119
119
  mock: !1
120
- }, Mo = E(Kt), V = Oe("settings", {
121
- state: () => ({ ...Mo }),
120
+ }, Mn = E(Kt), V = Oe("settings", {
121
+ state: () => ({ ...Mn }),
122
122
  actions: {
123
123
  updateSettings(e) {
124
124
  q(this, e);
@@ -142,7 +142,7 @@ const Lo = {
142
142
  state: () => ({ ..._t }),
143
143
  actions: {
144
144
  updateToken(e) {
145
- this.token = e, Ro(e);
145
+ this.token = e, Rn(e);
146
146
  },
147
147
  removeToken() {
148
148
  this.token = "", Ft();
@@ -151,8 +151,8 @@ const Lo = {
151
151
  this.remoteRouter = e, this.isLodeRemoteRoutes = !0;
152
152
  },
153
153
  setCustomRoutes(e) {
154
- const t = new Set(this.customRouter.map((o) => vt(o))), n = e.filter((o) => !t.has(vt(o)));
155
- n.length && (this.customRouter = this.customRouter.concat(n));
154
+ const t = new Set(this.customRouter.map((n) => vt(n))), o = e.filter((n) => !t.has(vt(n)));
155
+ o.length && (this.customRouter = this.customRouter.concat(o));
156
156
  },
157
157
  updateState({ key: e, value: t }) {
158
158
  this[e] = t;
@@ -166,19 +166,19 @@ const Lo = {
166
166
  },
167
167
  // async actions
168
168
  login(e) {
169
- return new Promise((t, n) => {
170
- const o = De();
171
- if (!o) {
172
- n("http client not init");
169
+ return new Promise((t, o) => {
170
+ const n = De();
171
+ if (!n) {
172
+ o("http client not init");
173
173
  return;
174
174
  }
175
- o.request({
175
+ n.request({
176
176
  url: "/user/login",
177
177
  method: "POST",
178
178
  data: e
179
179
  }).then((l) => {
180
180
  this.updateToken(l.data?.token || ""), t(!0);
181
- }).catch((l) => n(l));
181
+ }).catch((l) => o(l));
182
182
  });
183
183
  },
184
184
  logout() {
@@ -186,20 +186,20 @@ const Lo = {
186
186
  },
187
187
  info() {
188
188
  return new Promise((e, t) => {
189
- const n = De();
190
- if (!n) {
189
+ const o = De();
190
+ if (!o) {
191
191
  t("http client not init");
192
192
  return;
193
193
  }
194
- n.request({
194
+ o.request({
195
195
  url: "/user/info",
196
196
  method: "GET"
197
- }).then((o) => {
198
- const l = o.data?.role_ids || [];
199
- this.updateState({ key: "name", value: o.data?.name }), this.updateState({ key: "nickname", value: o.data?.nickname }), this.updateState({ key: "roleIds", value: l }), this.updateState({ key: "env", value: o.data?.env });
200
- const s = o.data?.website || {};
201
- V().updateSettings(s), !ne.get("username") && ne.set("username", o.data?.name), e(!0);
202
- }).catch((o) => t(o));
197
+ }).then((n) => {
198
+ const l = n.data?.role_ids || [];
199
+ this.updateState({ key: "name", value: n.data?.name }), this.updateState({ key: "nickname", value: n.data?.nickname }), this.updateState({ key: "roleIds", value: l }), this.updateState({ key: "env", value: n.data?.env });
200
+ const s = n.data?.website || {};
201
+ V().updateSettings(s), !oe.get("username") && oe.set("username", n.data?.name), e(!0);
202
+ }).catch((n) => t(n));
203
203
  });
204
204
  },
205
205
  loadRemoteRoutes() {
@@ -207,14 +207,14 @@ const Lo = {
207
207
  De()?.request({
208
208
  url: "/user/routes",
209
209
  method: "get"
210
- }).then((o) => {
211
- if (o.code === 0) {
212
- const l = o.data || [];
210
+ }).then((n) => {
211
+ if (n.code === 0) {
212
+ const l = n.data || [];
213
213
  e(l);
214
214
  } else
215
215
  t("error");
216
- }).catch((o) => {
217
- t(o);
216
+ }).catch((n) => {
217
+ t(n);
218
218
  });
219
219
  });
220
220
  },
@@ -223,22 +223,22 @@ const Lo = {
223
223
  }
224
224
  }
225
225
  }), Ce = "sidebarStatus";
226
- function Do() {
226
+ function Dn() {
227
227
  if (typeof window > "u")
228
228
  return;
229
229
  const e = window.localStorage.getItem(Ce);
230
230
  if (e !== null)
231
231
  return e === "1";
232
- const t = ne.get(Ce);
232
+ const t = oe.get(Ce);
233
233
  if (t !== void 0)
234
234
  return !!t;
235
235
  }
236
236
  function gt(e) {
237
- typeof window < "u" && window.localStorage.setItem(Ce, e ? "1" : "0"), ne.set(Ce, e ? "1" : "0");
237
+ typeof window < "u" && window.localStorage.setItem(Ce, e ? "1" : "0"), oe.set(Ce, e ? "1" : "0");
238
238
  }
239
- const jo = {
239
+ const jn = {
240
240
  sidebar: {
241
- opened: Do() ?? !0,
241
+ opened: Dn() ?? !0,
242
242
  withoutAnimation: !1
243
243
  },
244
244
  device: "desktop",
@@ -247,7 +247,7 @@ const jo = {
247
247
  builderSchema: {},
248
248
  baseURL: ""
249
249
  }, Y = Oe("app", {
250
- state: () => ({ ...jo }),
250
+ state: () => ({ ...jn }),
251
251
  actions: {
252
252
  TOGGLE_SIDEBAR() {
253
253
  this.sidebar.opened = !this.sidebar.opened, this.sidebar.withoutAnimation = !1, gt(this.sidebar.opened);
@@ -293,11 +293,11 @@ const jo = {
293
293
  this.SET_BASE_API(e);
294
294
  }
295
295
  }
296
- }), No = {
296
+ }), Nn = {
297
297
  currentCellItem: {}
298
298
  // form/sub-form 当前单元格编辑数据
299
299
  }, xr = Oe("builderSchema", {
300
- state: () => ({ ...No }),
300
+ state: () => ({ ...Nn }),
301
301
  actions: {
302
302
  SET_CURRENT_CELLITEM(e) {
303
303
  this.currentCellItem = e;
@@ -306,37 +306,37 @@ const jo = {
306
306
  this.SET_CURRENT_CELLITEM(e);
307
307
  }
308
308
  }
309
- }), D = Gn();
310
- function Vo(e) {
309
+ }), D = Go();
310
+ function Vn(e) {
311
311
  e.use(D);
312
312
  }
313
313
  const zt = "oms-theme", Jt = T("light");
314
314
  let kt = !1, Se = null;
315
- function Uo(e) {
315
+ function Un(e) {
316
316
  const t = he(e ?? void 0);
317
317
  if (typeof window > "u")
318
318
  return t;
319
- const n = window.localStorage?.getItem(zt);
320
- return n === "dark" || n === "light" ? n : e === "dark" || e === "light" ? e : window.matchMedia?.("(prefers-color-scheme: dark)").matches ? "dark" : "light";
319
+ const o = window.localStorage?.getItem(zt);
320
+ return o === "dark" || o === "light" ? o : e === "dark" || e === "light" ? e : window.matchMedia?.("(prefers-color-scheme: dark)").matches ? "dark" : "light";
321
321
  }
322
- function qo(e) {
322
+ function qn(e) {
323
323
  typeof window < "u" && window.localStorage?.setItem(zt, e);
324
324
  }
325
325
  function je(e) {
326
326
  const t = he(e);
327
- Jt.value = t, Ln(t), Mn(t), qo(t);
327
+ Jt.value = t, Lo(t), Mo(t), qn(t);
328
328
  }
329
- function Ho(e) {
329
+ function Hn(e) {
330
330
  if (typeof window > "u" || typeof window.matchMedia != "function") {
331
331
  Se = null;
332
332
  return;
333
333
  }
334
- const t = window.matchMedia("(prefers-color-scheme: dark)"), n = (o) => {
335
- const l = o.matches ?? t.matches;
334
+ const t = window.matchMedia("(prefers-color-scheme: dark)"), o = (n) => {
335
+ const l = n.matches ?? t.matches;
336
336
  e(l ? "dark" : "light");
337
337
  };
338
- typeof t.addEventListener == "function" ? t.addEventListener("change", n) : t.addListener(n), Se = () => {
339
- typeof t.removeEventListener == "function" ? t.removeEventListener("change", n) : t.removeListener(n), Se = null;
338
+ typeof t.addEventListener == "function" ? t.addEventListener("change", o) : t.addListener(o), Se = () => {
339
+ typeof t.removeEventListener == "function" ? t.removeEventListener("change", o) : t.removeListener(o), Se = null;
340
340
  };
341
341
  }
342
342
  function Wt() {
@@ -346,46 +346,46 @@ function Wt() {
346
346
  };
347
347
  if (!kt) {
348
348
  kt = !0;
349
- const s = Uo(e.themeMode);
349
+ const s = Un(e.themeMode);
350
350
  he(e.themeMode) !== s ? e.updateSettings({ themeMode: s }) : je(s), ue(
351
351
  () => e.themeMode,
352
352
  (a) => {
353
353
  je(he(a));
354
354
  },
355
355
  { immediate: !0 }
356
- ), Se?.(), Ho((a) => {
356
+ ), Se?.(), Hn((a) => {
357
357
  t(a);
358
358
  });
359
359
  }
360
- const n = g(() => Jt.value), o = g(() => n.value === "dark");
360
+ const o = g(() => Jt.value), n = g(() => o.value === "dark");
361
361
  return {
362
- themeMode: n,
363
- isDark: o,
362
+ themeMode: o,
363
+ isDark: n,
364
364
  setTheme: t,
365
365
  toggleTheme: () => {
366
- t(o.value ? "light" : "dark");
366
+ t(n.value ? "light" : "dark");
367
367
  }
368
368
  };
369
369
  }
370
- const Fo = /* @__PURE__ */ G({
370
+ const Fn = /* @__PURE__ */ G({
371
371
  __name: "App",
372
372
  setup(e) {
373
373
  return Wt(), We(() => {
374
374
  const t = document.getElementById("preloader");
375
- t !== null && (document.body.removeChild(t), document.getElementById("preloader")?.remove(), Dn("test-icon", "//at.alicdn.com/t/font_2246548_zclaqxwmzq8.css"), jn(`.iconfont {
375
+ t !== null && (document.body.removeChild(t), document.getElementById("preloader")?.remove(), Do("test-icon", "//at.alicdn.com/t/font_2246548_zclaqxwmzq8.css"), jo(`.iconfont {
376
376
  font-size: 19px;
377
377
  font-style: normal;
378
378
  -webkit-font-smoothing: antialiased;
379
379
  font-family: iconfont !important;
380
380
  }`));
381
- }), window?.OmsOptions?.form?.vsPath && xn("vsPath", window?.OmsOptions?.form?.vsPath), (t, n) => {
382
- const o = M("router-view");
383
- return r(), h(o);
381
+ }), window?.OmsOptions?.form?.vsPath && xo("vsPath", window?.OmsOptions?.form?.vsPath), (t, o) => {
382
+ const n = M("router-view");
383
+ return r(), h(n);
384
384
  };
385
385
  }
386
386
  });
387
387
  var pe = /* @__PURE__ */ ((e) => (e.GET = "get", e.POST = "post", e.DELETE = "delete", e.FETCH = "fetch", e.OPTION = "option", e.PUT = "put", e))(pe || {});
388
- const Go = [
388
+ const Gn = [
389
389
  {
390
390
  type: "jump",
391
391
  text: "跳转",
@@ -442,9 +442,9 @@ const Go = [
442
442
  }
443
443
  ];
444
444
  [
445
- ...Kn.cloneDeep(Go)
445
+ ...Ko.cloneDeep(Gn)
446
446
  ];
447
- const Ko = {
447
+ const Kn = {
448
448
  code: 0,
449
449
  data: {
450
450
  "list|0-100": [
@@ -465,7 +465,7 @@ const Ko = {
465
465
  "page|1-5": 2
466
466
  }
467
467
  }
468
- }, zo = { listMock: Ko }, Jo = [
468
+ }, zn = { listMock: Kn }, Jn = [
469
469
  {
470
470
  method: pe.POST,
471
471
  url: "/login",
@@ -509,70 +509,70 @@ const Ko = {
509
509
  {
510
510
  url: "/user/list",
511
511
  method: pe.GET,
512
- response: (e) => zo.listMock
512
+ response: (e) => zn.listMock
513
513
  }
514
- ], Wo = [
515
- ...Jo
514
+ ], Wn = [
515
+ ...Jn
516
516
  ], Ge = {};
517
517
  function Qt(e) {
518
518
  e.forEach((t) => {
519
- const n = Xt(t);
520
- Ge[`${t.method}::${n}`] = t;
519
+ const o = Xt(t);
520
+ Ge[`${t.method}::${o}`] = t;
521
521
  });
522
522
  }
523
- Qt(Wo);
523
+ Qt(Wn);
524
524
  function Xt(e) {
525
- let t = e.url, n = e.baseURL || Re.axios?.baseURL;
526
- return n || (n = ""), typeof t == "string" ? (t = ("/" + n + t).split("/").filter((o) => o).join("/"), t += "(|\\?.*)$", new RegExp(t)) : t;
525
+ let t = e.url, o = e.baseURL || Re.axios?.baseURL;
526
+ return o || (o = ""), typeof t == "string" ? (t = ("/" + o + t).split("/").filter((n) => n).join("/"), t += "(|\\?.*)$", new RegExp(t)) : t;
527
527
  }
528
- function Qo() {
528
+ function Qn() {
529
529
  Object.keys(Ge).forEach((e) => {
530
- const t = Ge[e], n = Xt(t);
531
- Me.mock(n, t.method, function(o) {
532
- const { url: l, type: s, body: a } = o, u = Nn(l), d = a ? JSON.parse(a) : {}, m = t.response({ query: u, data: d }), p = Me.mock(m);
533
- return Vn(l, { type: s, query: u, data: d, response: p }), Me.mock(p);
530
+ const t = Ge[e], o = Xt(t);
531
+ Me.mock(o, t.method, function(n) {
532
+ const { url: l, type: s, body: a } = n, u = No(l), d = a ? JSON.parse(a) : {}, m = t.response({ query: u, data: d }), p = Me.mock(m);
533
+ return Vo(l, { type: s, query: u, data: d, response: p }), Me.mock(p);
534
534
  });
535
535
  });
536
536
  }
537
- const Xo = Nt, wt = jt, Zo = Ye.CancelToken, xe = {
537
+ const Xn = Nt, wt = jt, Zn = Ye.CancelToken, xe = {
538
538
  taskList: {},
539
539
  cacheList: /* @__PURE__ */ new Map(),
540
540
  uniqueId(e) {
541
541
  return `${location.href}|${e.method}|${e.url}|`;
542
542
  },
543
543
  addTask(e, t) {
544
- const n = this.uniqueId(e);
545
- this.taskList[n] = t;
544
+ const o = this.uniqueId(e);
545
+ this.taskList[o] = t;
546
546
  },
547
547
  delTask(e) {
548
- const t = this.uniqueId(e), n = this.taskList[t];
549
- n && n(e);
548
+ const t = this.uniqueId(e), o = this.taskList[t];
549
+ o && o(e);
550
550
  },
551
551
  pending(e) {
552
552
  const t = this.uniqueId(e);
553
553
  return !!this.taskList[t];
554
554
  },
555
555
  cache(e) {
556
- const t = this.uniqueId(e), n = this.cacheList.get(t);
557
- if (n) {
558
- if (n.expirationTime < (/* @__PURE__ */ new Date()).getTime()) {
556
+ const t = this.uniqueId(e), o = this.cacheList.get(t);
557
+ if (o) {
558
+ if (o.expirationTime < (/* @__PURE__ */ new Date()).getTime()) {
559
559
  this.delCache(e);
560
560
  return;
561
561
  }
562
- return n.response, n.response;
562
+ return o.response, o.response;
563
563
  }
564
564
  },
565
565
  addCache(e, t) {
566
- const n = this.uniqueId(e), o = e.cacheTime || 0;
567
- o && this.cacheList.set(n, { response: t, expirationTime: (/* @__PURE__ */ new Date()).getTime() + o });
566
+ const o = this.uniqueId(e), n = e.cacheTime || 0;
567
+ n && this.cacheList.set(o, { response: t, expirationTime: (/* @__PURE__ */ new Date()).getTime() + n });
568
568
  },
569
569
  delCache(e) {
570
570
  const t = this.uniqueId(e);
571
571
  return this.cacheList.delete(t);
572
572
  }
573
- }, Yo = {
573
+ }, Yn = {
574
574
  onFulfilled: function(e) {
575
- return e.cacheEnable === !1 || (xe.pending(e) && xe.delTask(e), e.cancelToken = new Zo((t) => {
575
+ return e.cacheEnable === !1 || (xe.pending(e) && xe.delTask(e), e.cancelToken = new Zn((t) => {
576
576
  xe.addTask(e, t);
577
577
  })), e;
578
578
  },
@@ -593,7 +593,7 @@ function Er(e, t) {
593
593
  function tl(e) {
594
594
  return Zt[e];
595
595
  }
596
- const nl = /* @__PURE__ */ G({
596
+ const ol = /* @__PURE__ */ G({
597
597
  name: "Dashboard",
598
598
  setup() {
599
599
  const e = tl("dashboard");
@@ -607,11 +607,11 @@ const nl = /* @__PURE__ */ G({
607
607
  }, [I("Hi "), t.value, I(" 😄")])]);
608
608
  }
609
609
  }), L = (e, t) => {
610
- const n = e.__vccOpts || e;
611
- for (const [o, l] of t)
612
- n[o] = l;
613
- return n;
614
- }, ol = /* @__PURE__ */ L(nl, [["__scopeId", "data-v-85165680"]]), ll = {
610
+ const o = e.__vccOpts || e;
611
+ for (const [n, l] of t)
612
+ o[n] = l;
613
+ return o;
614
+ }, nl = /* @__PURE__ */ L(ol, [["__scopeId", "data-v-85165680"]]), ll = {
615
615
  data() {
616
616
  return {
617
617
  levelList: null
@@ -628,13 +628,13 @@ const nl = /* @__PURE__ */ G({
628
628
  methods: {
629
629
  getBreadcrumb() {
630
630
  let e = this.$route.matched.filter(
631
- (n) => n.meta && n.meta.title
631
+ (o) => o.meta && o.meta.title
632
632
  );
633
633
  const t = e[0];
634
634
  this.isDashboard(t) || (e = [{ path: "/dashboard", meta: { title: "Dashboard" } }].concat(
635
635
  e
636
636
  )), this.levelList = e.filter(
637
- (n) => n.meta && n.meta.title && n.meta.breadcrumb !== !1
637
+ (o) => o.meta && o.meta.title && o.meta.breadcrumb !== !1
638
638
  );
639
639
  },
640
640
  isDashboard(e) {
@@ -643,29 +643,29 @@ const nl = /* @__PURE__ */ G({
643
643
  },
644
644
  pathCompile(e) {
645
645
  const { params: t } = this.$route;
646
- return ko.compile(e)(t);
646
+ return kn.compile(e)(t);
647
647
  },
648
648
  handleLink(e) {
649
- const { redirect: t, path: n } = e;
649
+ const { redirect: t, path: o } = e;
650
650
  if (t) {
651
651
  this.$router.push(t);
652
652
  return;
653
653
  }
654
- this.$router.push(this.pathCompile(n));
654
+ this.$router.push(this.pathCompile(o));
655
655
  }
656
656
  }
657
657
  }, sl = {
658
658
  key: 0,
659
659
  class: "no-redirect"
660
660
  }, al = ["onClick"];
661
- function il(e, t, n, o, l, s) {
662
- const a = oo, u = no;
661
+ function il(e, t, o, n, l, s) {
662
+ const a = nn, u = on;
663
663
  return r(), h(u, {
664
664
  class: "app-breadcrumb",
665
665
  separator: "/"
666
666
  }, {
667
667
  default: i(() => [
668
- c(En, { name: "breadcrumb" }, {
668
+ c(Eo, { name: "breadcrumb" }, {
669
669
  default: i(() => [
670
670
  (r(!0), v(R, null, U(l.levelList, (d, m) => (r(), h(a, {
671
671
  key: d.path
@@ -700,30 +700,30 @@ const rl = /* @__PURE__ */ L(ll, [["render", il], ["__scopeId", "data-v-fa74804e
700
700
  }
701
701
  }
702
702
  };
703
- function ul(e, t, n, o, l, s) {
703
+ function ul(e, t, o, n, l, s) {
704
704
  const a = M("v-icon");
705
705
  return r(), v("div", {
706
706
  style: { padding: "0 15px" },
707
707
  onClick: t[0] || (t[0] = (...u) => s.toggleClick && s.toggleClick(...u))
708
708
  }, [
709
709
  c(a, {
710
- class: te({ "is-active": n.isActive }),
710
+ class: te({ "is-active": o.isActive }),
711
711
  name: "ra-leftalignment"
712
712
  }, null, 8, ["class"])
713
713
  ]);
714
714
  }
715
715
  const dl = /* @__PURE__ */ L(cl, [["render", ul]]), pl = {};
716
716
  function ml(e, t) {
717
- const n = ve, o = so, l = ao, s = lo;
717
+ const o = ve, n = sn, l = an, s = ln;
718
718
  return r(), h(s, { style: { width: "100%", height: "100%" } }, {
719
719
  default: i(() => [
720
- c(n, { class: "aside" }, {
720
+ c(o, { class: "aside" }, {
721
721
  default: i(() => [
722
722
  fe(e.$slots, "left-aside", {}, void 0, !0)
723
723
  ]),
724
724
  _: 3
725
725
  }),
726
- c(o, {
726
+ c(n, {
727
727
  class: "main",
728
728
  style: { margin: "0 10px" }
729
729
  }, {
@@ -1319,9 +1319,9 @@ const Yt = /* @__PURE__ */ L(pl, [["render", ml], ["__scopeId", "data-v-7c3d697b
1319
1319
  }
1320
1320
  }
1321
1321
  ]
1322
- }, en = {};
1322
+ }, eo = {};
1323
1323
  function H(e) {
1324
- en[e.type] = e;
1324
+ eo[e.type] = e;
1325
1325
  }
1326
1326
  H(fl);
1327
1327
  H(yl);
@@ -1336,7 +1336,7 @@ H(kl);
1336
1336
  H(wl);
1337
1337
  H(xl);
1338
1338
  H(Sl);
1339
- const Ke = en, Cl = {
1339
+ const Ke = eo, Cl = {
1340
1340
  options: {
1341
1341
  labelPosition: "top",
1342
1342
  submitButton: !1,
@@ -1475,7 +1475,7 @@ const Tl = {
1475
1475
  }
1476
1476
  ]
1477
1477
  }, Ol = {
1478
- components: { DevLayout: Yt, VForm: oe, VButton: at, JsonView: st },
1478
+ components: { DevLayout: Yt, VForm: ne, VButton: at, JsonView: st },
1479
1479
  props: {
1480
1480
  schema: {
1481
1481
  type: Object,
@@ -1538,9 +1538,9 @@ const Tl = {
1538
1538
  const t = be(this.builderSchema, this.activeIndex);
1539
1539
  if (!t)
1540
1540
  return;
1541
- const n = t ? t.type : "", o = this.ctrlMap[n], l = o.trans ? o.trans(e) : e;
1541
+ const o = t ? t.type : "", n = this.ctrlMap[o], l = n.trans ? n.trans(e) : e;
1542
1542
  if (l && Object.keys(l).length > 0) {
1543
- if (l.type = n, this.activeIndex.indexOf("[") > -1) {
1543
+ if (l.type = o, this.activeIndex.indexOf("[") > -1) {
1544
1544
  const [s, a, u] = this.activeIndex.match(/(\w+)\[(\d+)\]/);
1545
1545
  this.builderSchema[a][u] = { ...l };
1546
1546
  } else
@@ -1556,8 +1556,8 @@ const Tl = {
1556
1556
  options: E(Ne),
1557
1557
  formItems: E(t.builder)
1558
1558
  });
1559
- const n = be(this.builderSchema, this.activeIndex);
1560
- this.ctrlOptions = E(n), this.ctrlOptions.type = e, this.ctrlKey++, this.key++;
1559
+ const o = be(this.builderSchema, this.activeIndex);
1560
+ this.ctrlOptions = E(o), this.ctrlOptions.type = e, this.ctrlKey++, this.key++;
1561
1561
  }
1562
1562
  }
1563
1563
  },
@@ -1576,10 +1576,10 @@ const Tl = {
1576
1576
  push(e) {
1577
1577
  const t = "formItems";
1578
1578
  this.ctrlOptions = {}, this.builderSchema[t] = this.builderSchema[t] || [];
1579
- const n = this.ctrlMap[e];
1580
- this.activeCtrl = n, this.builderSchema[t].push(E(n.default)), this.ctrlSchema = E({
1579
+ const o = this.ctrlMap[e];
1580
+ this.activeCtrl = o, this.builderSchema[t].push(E(o.default)), this.ctrlSchema = E({
1581
1581
  options: E(Ne),
1582
- formItems: E(n.builder)
1582
+ formItems: E(o.builder)
1583
1583
  }), this.ctrlKey++, this.key++, this.activeIndex = `${t}[${this.builderSchema[t].length - 1}]`, this.activeTab = "ctrl";
1584
1584
  },
1585
1585
  removeOne() {
@@ -1588,12 +1588,12 @@ const Tl = {
1588
1588
  clicklabel() {
1589
1589
  const e = this.activeIndex;
1590
1590
  if (e.match(this.activeIndexReg)) {
1591
- const n = E(be(this.builderSchema, e)), o = n.type, l = this.ctrlMap[o];
1591
+ const o = E(be(this.builderSchema, e)), n = o.type, l = this.ctrlMap[n];
1592
1592
  if (!l) {
1593
1593
  this.$message({ type: "warning", message: "尚未支持该组件的UI编辑" });
1594
1594
  return;
1595
1595
  }
1596
- this.currentCtrlType = o, this.ctrlOptions = n, this.ctrlSchema = E({
1596
+ this.currentCtrlType = n, this.ctrlOptions = o, this.ctrlSchema = E({
1597
1597
  options: E(Ne),
1598
1598
  formItems: E(l.builder)
1599
1599
  }), this.ctrlKey++;
@@ -1610,8 +1610,8 @@ const Tl = {
1610
1610
  }
1611
1611
  }
1612
1612
  };
1613
- function $l(e, t, n, o, l, s) {
1614
- const a = M("v-form"), u = Vt, d = ye, m = M("JsonView"), p = M("VButton"), b = ot, w = nt, C = tt, O = et, x = M("dev-layout");
1613
+ function $l(e, t, o, n, l, s) {
1614
+ const a = M("v-form"), u = Vt, d = ye, m = M("JsonView"), p = M("VButton"), b = nt, w = ot, C = tt, O = et, x = M("dev-layout");
1615
1615
  return r(), h(x, null, {
1616
1616
  main: i(() => [
1617
1617
  l.builderSchema.formItems ? (r(), h(a, X({
@@ -2373,7 +2373,7 @@ const Bl = /* @__PURE__ */ L(Ol, [["render", $l], ["__scopeId", "data-v-875f0171
2373
2373
  form: zl,
2374
2374
  table: Jl
2375
2375
  }, Ql = {
2376
- components: { JsonView: st, DevLayout: Yt, VTable: _e, VForm: oe, VButton: at },
2376
+ components: { JsonView: st, DevLayout: Yt, VTable: _e, VForm: ne, VButton: at },
2377
2377
  props: {
2378
2378
  schema: {
2379
2379
  type: Object,
@@ -2382,7 +2382,7 @@ const Bl = /* @__PURE__ */ L(Ol, [["render", $l], ["__scopeId", "data-v-875f0171
2382
2382
  }
2383
2383
  },
2384
2384
  data() {
2385
- const e = In(this.$props.schema);
2385
+ const e = Io(this.$props.schema);
2386
2386
  return delete e.listApi, e.list = [{}], {
2387
2387
  baseSchema: St,
2388
2388
  activeTab: "base",
@@ -2412,8 +2412,8 @@ const Bl = /* @__PURE__ */ L(Ol, [["render", $l], ["__scopeId", "data-v-875f0171
2412
2412
  computed: {
2413
2413
  types() {
2414
2414
  const e = [], t = this.ctrlMap[this.activeBrick];
2415
- return Object.keys(t).forEach((n) => {
2416
- e.push({ value: n, label: t[n].name });
2415
+ return Object.keys(t).forEach((o) => {
2416
+ e.push({ value: o, label: t[o].name });
2417
2417
  }), e;
2418
2418
  },
2419
2419
  getSaveSchema() {
@@ -2444,14 +2444,14 @@ const Bl = /* @__PURE__ */ L(Ol, [["render", $l], ["__scopeId", "data-v-875f0171
2444
2444
  const t = this.activeIndex.match(this.activeIndexReg);
2445
2445
  if (!t)
2446
2446
  return;
2447
- let n = this.builderSchema[t[1]][parseInt(t[2])].type;
2448
- t[1] === "headers" && n === void 0 && (n = "span");
2449
- const o = this.ctrlMap[this.activeBrick][n];
2450
- if (!o)
2447
+ let o = this.builderSchema[t[1]][parseInt(t[2])].type;
2448
+ t[1] === "headers" && o === void 0 && (o = "span");
2449
+ const n = this.ctrlMap[this.activeBrick][o];
2450
+ if (!n)
2451
2451
  return;
2452
- const l = o.trans ? o.trans(e) : e;
2452
+ const l = n.trans ? n.trans(e) : e;
2453
2453
  if (l && Object.keys(l).length > 0) {
2454
- if (l.type = n, this.activeIndex.indexOf("[") > -1) {
2454
+ if (l.type = o, this.activeIndex.indexOf("[") > -1) {
2455
2455
  const [s, a, u] = this.activeIndex.match(/(\w+)\[(\d+)\]/);
2456
2456
  this.builderSchema[a][u] = { ...l };
2457
2457
  } else
@@ -2468,10 +2468,10 @@ const Bl = /* @__PURE__ */ L(Ol, [["render", $l], ["__scopeId", "data-v-875f0171
2468
2468
  options: E(Ve),
2469
2469
  formItems: E(t.builder)
2470
2470
  });
2471
- const n = be(this.builderSchema, this.activeIndex);
2472
- n.type = e;
2473
- const o = E(n);
2474
- this.ctrlOptions = o, o.text && (this.ctrlOptions.text = o.text, this.ctrlOptions.props = o.props || {}), this.ctrlKey++, this.key++, this.updateBuilderSchema();
2471
+ const o = be(this.builderSchema, this.activeIndex);
2472
+ o.type = e;
2473
+ const n = E(o);
2474
+ this.ctrlOptions = n, n.text && (this.ctrlOptions.text = n.text, this.ctrlOptions.props = n.props || {}), this.ctrlKey++, this.key++, this.updateBuilderSchema();
2475
2475
  }
2476
2476
  }
2477
2477
  },
@@ -2506,13 +2506,13 @@ const Bl = /* @__PURE__ */ L(Ol, [["render", $l], ["__scopeId", "data-v-875f0171
2506
2506
  pushRowButton(e) {
2507
2507
  this.push(e, "rowButton", "buttons", "buttons");
2508
2508
  },
2509
- push(e, t, n, o) {
2510
- const l = this.ctrlMap[n];
2509
+ push(e, t, o, n) {
2510
+ const l = this.ctrlMap[o];
2511
2511
  if (!l[e]) {
2512
2512
  this.$message({ type: "warning", message: "尚未支持此组件的UI编辑" });
2513
2513
  return;
2514
2514
  }
2515
- this.activeCtrl = l[e], this.activeBrick = o, this.ctrlOptions = {}, this.builderSchema[t] = this.builderSchema[t] || [], this.builderSchema[t].push(E(l[e].default)), this.ctrlSchema = E({
2515
+ this.activeCtrl = l[e], this.activeBrick = n, this.ctrlOptions = {}, this.builderSchema[t] = this.builderSchema[t] || [], this.builderSchema[t].push(E(l[e].default)), this.ctrlSchema = E({
2516
2516
  options: E(Ve),
2517
2517
  formItems: E(l[e].builder)
2518
2518
  }), this.key++, this.ctrlKey++, this.activeIndex = `${t}[${this.builderSchema[t].length - 1}]`, this.activeTab = "ctrl";
@@ -2523,31 +2523,31 @@ const Bl = /* @__PURE__ */ L(Ol, [["render", $l], ["__scopeId", "data-v-875f0171
2523
2523
  clicklabel() {
2524
2524
  const e = this.activeIndex, t = e.match(this.activeIndexReg);
2525
2525
  if (t) {
2526
- const n = E(be(this.builderSchema, e));
2526
+ const o = E(be(this.builderSchema, e));
2527
2527
  this.activeBrick = t[1], ["normalButton", "batchButton", "rowButton"].indexOf(t[1]) > -1 && (this.activeBrick = "buttons");
2528
- let o = this.builderSchema[t[1]][parseInt(t[2])].type;
2529
- t[1] === "headers" && o === void 0 && (o = "span");
2530
- const l = this.ctrlMap[this.activeBrick][o];
2528
+ let n = this.builderSchema[t[1]][parseInt(t[2])].type;
2529
+ t[1] === "headers" && n === void 0 && (n = "span");
2530
+ const l = this.ctrlMap[this.activeBrick][n];
2531
2531
  if (!l) {
2532
2532
  this.activeBrick, this.$message({ type: "warning", message: "尚未支持此组件的UI编辑" });
2533
2533
  return;
2534
2534
  }
2535
- this.ctrlOptions = n, this.currentCtrlType = o, this.ctrlSchema = E({
2535
+ this.ctrlOptions = o, this.currentCtrlType = n, this.ctrlSchema = E({
2536
2536
  options: E(Ve),
2537
2537
  formItems: E(l.builder)
2538
2538
  }), this.ctrlKey++;
2539
2539
  }
2540
2540
  },
2541
2541
  saveSchema() {
2542
- const { filter: e, headers: t, rowButton: n, normalButton: o, batchButton: l } = this.currentBuilderSchema;
2542
+ const { filter: e, headers: t, rowButton: o, normalButton: n, batchButton: l } = this.currentBuilderSchema;
2543
2543
  this.$http.request({
2544
2544
  method: "POST",
2545
2545
  url: "/devtool/page_schema",
2546
2546
  data: {
2547
2547
  filter: e,
2548
2548
  headers: t,
2549
- rowButton: n,
2550
- normalButton: o,
2549
+ rowButton: o,
2550
+ normalButton: n,
2551
2551
  batchButton: l
2552
2552
  }
2553
2553
  }).then(({ data: s }) => {
@@ -2556,8 +2556,8 @@ const Bl = /* @__PURE__ */ L(Ol, [["render", $l], ["__scopeId", "data-v-875f0171
2556
2556
  }
2557
2557
  }
2558
2558
  };
2559
- function Xl(e, t, n, o, l, s) {
2560
- const a = Be, u = ye, d = ve, m = M("v-table"), p = Vt, b = ye, w = M("JsonView"), C = M("VButton"), O = ot, x = nt, _ = tt, S = et, K = M("v-form"), z = M("dev-layout");
2559
+ function Xl(e, t, o, n, l, s) {
2560
+ const a = Be, u = ye, d = ve, m = M("v-table"), p = Vt, b = ye, w = M("JsonView"), C = M("VButton"), O = nt, x = ot, _ = tt, S = et, K = M("v-form"), z = M("dev-layout");
2561
2561
  return r(), h(z, null, {
2562
2562
  "left-aside": i(() => [
2563
2563
  c(d, { style: { width: "200px" } }, {
@@ -2821,7 +2821,7 @@ const Zl = /* @__PURE__ */ L(Ql, [["render", Xl], ["__scopeId", "data-v-cd18f87f
2821
2821
  setup(e) {
2822
2822
  const t = T(!1);
2823
2823
  T(1);
2824
- const n = Q(), o = Y(), l = g(() => o.pages[n.path]);
2824
+ const o = Q(), n = Y(), l = g(() => n.pages[o.path]);
2825
2825
  return (s, a) => {
2826
2826
  const u = M("VIcon"), d = Ut;
2827
2827
  return r(), v(R, null, [
@@ -2854,37 +2854,37 @@ const Zl = /* @__PURE__ */ L(Ql, [["render", Xl], ["__scopeId", "data-v-cd18f87f
2854
2854
  ], 64);
2855
2855
  };
2856
2856
  }
2857
- }, tn = "oms-aesthetic-mode", Ee = T("theme1");
2857
+ }, to = "oms-aesthetic-mode", Ee = T("theme1");
2858
2858
  let xt = !1;
2859
2859
  function ts(e) {
2860
2860
  if (e === "default" || e === "theme1" || e === "theme2" || e === "theme3")
2861
2861
  return e;
2862
2862
  if (typeof window > "u")
2863
2863
  return "theme1";
2864
- const t = window.localStorage?.getItem(tn);
2864
+ const t = window.localStorage?.getItem(to);
2865
2865
  return t === "default" || t === "theme1" || t === "theme2" || t === "theme3" ? t : "theme1";
2866
2866
  }
2867
- function ns(e) {
2868
- typeof window < "u" && window.localStorage?.setItem(tn, e);
2867
+ function os(e) {
2868
+ typeof window < "u" && window.localStorage?.setItem(to, e);
2869
2869
  }
2870
2870
  function Ue(e) {
2871
2871
  if (Ee.value = e, typeof document < "u") {
2872
2872
  const t = document.documentElement;
2873
2873
  t.classList.remove("aesthetic-default", "aesthetic-theme2", "aesthetic-theme3"), e === "default" ? t.classList.add("aesthetic-default") : e === "theme2" ? t.classList.add("aesthetic-theme2") : e === "theme3" && t.classList.add("aesthetic-theme3"), `${e}`, t.className;
2874
2874
  }
2875
- ns(e);
2875
+ os(e);
2876
2876
  }
2877
- function os() {
2878
- const e = V(), t = (n) => {
2879
- e.aestheticMode !== n ? e.updateSettings({ aestheticMode: n }) : Ue(n);
2877
+ function ns() {
2878
+ const e = V(), t = (o) => {
2879
+ e.aestheticMode !== o ? e.updateSettings({ aestheticMode: o }) : Ue(o);
2880
2880
  };
2881
2881
  if (!xt) {
2882
2882
  xt = !0;
2883
- const n = ts(e.aestheticMode);
2884
- Ue(n), ue(
2883
+ const o = ts(e.aestheticMode);
2884
+ Ue(o), ue(
2885
2885
  () => e.aestheticMode,
2886
- (o) => {
2887
- (o === "default" || o === "theme1" || o === "theme2" || o === "theme3") && Ue(o);
2886
+ (n) => {
2887
+ (n === "default" || n === "theme1" || n === "theme2" || n === "theme3") && Ue(n);
2888
2888
  },
2889
2889
  { immediate: !0 }
2890
2890
  );
@@ -2894,8 +2894,8 @@ function os() {
2894
2894
  isTheme1: g(() => Ee.value === "theme1"),
2895
2895
  setAestheticMode: t,
2896
2896
  toggleAestheticMode: () => {
2897
- const n = ["default", "theme1", "theme2", "theme3"], l = (n.indexOf(Ee.value) + 1) % n.length;
2898
- t(n[l]);
2897
+ const o = ["default", "theme1", "theme2", "theme3"], l = (o.indexOf(Ee.value) + 1) % o.length;
2898
+ t(o[l]);
2899
2899
  }
2900
2900
  };
2901
2901
  }
@@ -2912,36 +2912,39 @@ const ls = { class: "right-content" }, ss = {
2912
2912
  }, rs = { class: "user-info" }, cs = { class: "user-name" }, us = /* @__PURE__ */ G({
2913
2913
  __name: "Navbar",
2914
2914
  setup(e) {
2915
- const t = Y(), n = V(), o = N();
2915
+ const t = Y(), o = V(), n = N();
2916
2916
  T(!1);
2917
2917
  const l = T(!1);
2918
2918
  T(""), T(0);
2919
- const s = g(() => n.defaultAvatar), a = g(() => t.sidebar), u = g(() => t.device), d = g(() => o.avatar), m = g(() => o.name), p = g(() => o.nickname), b = g(() => n.nav), w = g(() => n), C = g(() => o), O = g(() => n.showPageJsonSchema || !1), { isDark: x, toggleTheme: _ } = Wt(), { aestheticMode: S, setAestheticMode: K } = os(), z = g(() => {
2919
+ const s = g(() => o.defaultAvatar), a = g(() => t.sidebar), u = g(() => t.device), d = g(() => n.avatar), m = g(() => n.name), p = g(() => n.nickname), b = g(() => o.nav), w = g(() => o), C = g(() => n), O = g(() => o.showPageJsonSchema || !1), { isDark: x, toggleTheme: _ } = Wt(), { aestheticMode: S, setAestheticMode: K } = ns(), z = g(() => {
2920
2920
  const j = w.value.envColor?.[C.value.env];
2921
2921
  return x.value ? {
2922
2922
  background: "linear-gradient(135deg, rgba(var(--el-color-primary-rgb, 0, 176, 116), 0.15) 0%, rgba(2, 6, 23, 0.95) 100%)",
2923
2923
  borderBottom: "1px solid var(--border-color)",
2924
- boxShadow: "0 4px 12px rgba(0, 0, 0, 0.3)"
2924
+ boxShadow: "0 4px 12px rgba(0, 0, 0, 0.3)",
2925
+ color: "var(--sidebar-text-color)"
2925
2926
  } : j ? {
2926
2927
  background: `linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(243, 244, 248, 0.9) 60%, ${j} 100%)`,
2927
2928
  borderBottom: "1px solid var(--border-color)",
2928
- boxShadow: "0 1px 4px rgba(0, 0, 0, 0.05)"
2929
+ boxShadow: "0 1px 4px rgba(0, 0, 0, 0.05)",
2930
+ color: "var(--sidebar-text-color)"
2929
2931
  } : {
2930
2932
  background: "linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(243, 244, 248, 0.95) 70%, #ffffff 100%)",
2931
2933
  borderBottom: "1px solid var(--border-color)",
2932
- boxShadow: "0 1px 10px rgba(0, 0, 0, 0.03)"
2934
+ boxShadow: "0 1px 10px rgba(0, 0, 0, 0.03)",
2935
+ color: "var(--sidebar-text-color)"
2933
2936
  };
2934
2937
  });
2935
2938
  Te(() => {
2936
2939
  Rt("el-submenu is-active");
2937
2940
  const j = Le("navBarNotice") || "";
2938
- j.length > 0 && !Le("closeNavNotice") && yn(j) && window?.App?.config?.globalProperties?.$notify({
2941
+ j.length > 0 && !Le("closeNavNotice") && yo(j) && window?.App?.config?.globalProperties?.$notify({
2939
2942
  title: "提示",
2940
2943
  message: j,
2941
2944
  dangerouslyUseHTMLString: !0,
2942
2945
  duration: 0,
2943
- onClose: bn
2944
- }), w.value.envColor?.[C.value.env] && Un({
2946
+ onClose: bo
2947
+ }), w.value.envColor?.[C.value.env] && Uo({
2945
2948
  elRef: k.value.$el,
2946
2949
  waterMark: C.value.env,
2947
2950
  color: "skyblue",
@@ -2953,40 +2956,40 @@ const ls = { class: "right-content" }, ss = {
2953
2956
  W.value = !1, P.value = d.value || s.value || "";
2954
2957
  }, { immediate: !0 });
2955
2958
  const Pe = g(() => {
2956
- const j = p.value || m.value || n.title || "用户";
2959
+ const j = p.value || m.value || o.title || "用户";
2957
2960
  return j ? j.toString().trim().charAt(0).toUpperCase() : "用";
2958
2961
  });
2959
2962
  function ee() {
2960
2963
  t.toggleSideBar();
2961
2964
  }
2962
- async function hn() {
2963
- await o.logout();
2965
+ async function ho() {
2966
+ await n.logout();
2964
2967
  const j = window?.App?.config?.globalProperties?.$router?.currentRoute?.value;
2965
2968
  location.reload(`${location.origin}/#/login?redirect=${j?.fullPath || "/"}`);
2966
2969
  }
2967
2970
  function Le(j) {
2968
- return n[j];
2971
+ return o[j];
2969
2972
  }
2970
- async function bn() {
2971
- n.updateSettings({ closeNavNotice: !0 }), _n(Le("navBarNotice"));
2973
+ async function bo() {
2974
+ o.updateSettings({ closeNavNotice: !0 }), _o(Le("navBarNotice"));
2972
2975
  }
2973
- function yn(j) {
2976
+ function yo(j) {
2974
2977
  const B = "dismiss:navbar_notice";
2975
2978
  return we.exist(B) ? we.get(B) !== j : !0;
2976
2979
  }
2977
- function _n(j) {
2980
+ function _o(j) {
2978
2981
  we.set("dismiss:navbar_notice", j);
2979
2982
  }
2980
- function vn() {
2983
+ function vo() {
2981
2984
  W.value || (W.value = !0, P.value = "");
2982
2985
  }
2983
2986
  return (j, B) => {
2984
- const pt = Be, mt = Ht, gn = qt, ae = co, ft = ro, ht = io, kn = uo, wn = Ut, Sn = ve;
2985
- return r(), h(Sn, {
2987
+ const pt = Be, mt = Ht, go = qt, ae = un, ft = cn, ht = rn, ko = dn, wo = Ut, So = ve;
2988
+ return r(), h(So, {
2986
2989
  ref_key: "header",
2987
2990
  ref: k,
2988
2991
  class: "navbar",
2989
- style: Cn(z.value)
2992
+ style: Co(z.value)
2990
2993
  }, {
2991
2994
  default: i(() => [
2992
2995
  c(pt, { span: 16 }, {
@@ -3012,7 +3015,7 @@ const ls = { class: "right-content" }, ss = {
3012
3015
  y("div", as, [
3013
3016
  c(f(at), { buttons: b.value }, null, 8, ["buttons"])
3014
3017
  ]),
3015
- c(gn, {
3018
+ c(go, {
3016
3019
  placement: "bottom",
3017
3020
  content: f(x) ? "切换为明亮模式" : "切换为暗黑模式"
3018
3021
  }, {
@@ -3038,7 +3041,7 @@ const ls = { class: "right-content" }, ss = {
3038
3041
  }, [
3039
3042
  c(mt, null, {
3040
3043
  default: i(() => [
3041
- (r(), h(Xe(f(x) ? f(Io) : f(Co))))
3044
+ (r(), h(Xe(f(x) ? f(In) : f(Cn))))
3042
3045
  ]),
3043
3046
  _: 1
3044
3047
  })
@@ -3099,7 +3102,7 @@ const ls = { class: "right-content" }, ss = {
3099
3102
  y("div", is, [
3100
3103
  c(mt, null, {
3101
3104
  default: i(() => [
3102
- c(f(To))
3105
+ c(f(Tn))
3103
3106
  ]),
3104
3107
  _: 1
3105
3108
  })
@@ -3126,7 +3129,7 @@ const ls = { class: "right-content" }, ss = {
3126
3129
  c(ae, {
3127
3130
  divided: "",
3128
3131
  icon: "el-icon-switch-button",
3129
- onClick: hn
3132
+ onClick: ho
3130
3133
  }, {
3131
3134
  default: i(() => [...B[9] || (B[9] = [
3132
3135
  I("退出登录", -1)
@@ -3139,11 +3142,11 @@ const ls = { class: "right-content" }, ss = {
3139
3142
  ]),
3140
3143
  default: i(() => [
3141
3144
  y("div", rs, [
3142
- c(kn, {
3145
+ c(ko, {
3143
3146
  class: "user-avatar",
3144
3147
  size: 32,
3145
3148
  src: P.value || void 0,
3146
- onError: vn
3149
+ onError: vo
3147
3150
  }, {
3148
3151
  default: i(() => [
3149
3152
  I(A(Pe.value), 1)
@@ -3159,7 +3162,7 @@ const ls = { class: "right-content" }, ss = {
3159
3162
  ]),
3160
3163
  _: 1
3161
3164
  }),
3162
- l.value ? (r(), h(wn, {
3165
+ l.value ? (r(), h(wo, {
3163
3166
  key: 0,
3164
3167
  "with-header": !1,
3165
3168
  size: "50%"
@@ -3169,7 +3172,7 @@ const ls = { class: "right-content" }, ss = {
3169
3172
  }, 8, ["style"]);
3170
3173
  };
3171
3174
  }
3172
- }), ds = /* @__PURE__ */ L(us, [["__scopeId", "data-v-a6b384a8"]]), ps = { class: "sidebar-logo-fallback" }, ms = {
3175
+ }), ds = /* @__PURE__ */ L(us, [["__scopeId", "data-v-b5895dca"]]), ps = { class: "sidebar-logo-fallback" }, ms = {
3173
3176
  key: 1,
3174
3177
  class: "sidebar-logo-fallback"
3175
3178
  }, fs = { class: "sidebar-logo-fallback" }, hs = {
@@ -3181,18 +3184,18 @@ const ls = { class: "right-content" }, ss = {
3181
3184
  collapse: { type: Boolean }
3182
3185
  },
3183
3186
  setup(e) {
3184
- const t = V(), n = g(() => t.title), o = g(() => t.logo), l = T(!1), s = g(() => !!o.value && !l.value), a = g(() => {
3185
- const d = n.value || "OMS";
3187
+ const t = V(), o = g(() => t.title), n = g(() => t.logo), l = T(!1), s = g(() => !!n.value && !l.value), a = g(() => {
3188
+ const d = o.value || "OMS";
3186
3189
  return d ? d.toString().trim().charAt(0).toUpperCase() : "O";
3187
3190
  });
3188
- ue(o, () => {
3191
+ ue(n, () => {
3189
3192
  l.value = !1;
3190
3193
  }, { immediate: !0 });
3191
3194
  function u() {
3192
3195
  l.value = !0;
3193
3196
  }
3194
3197
  return (d, m) => {
3195
- const p = po, b = M("router-link");
3198
+ const p = pn, b = M("router-link");
3196
3199
  return r(), v("div", {
3197
3200
  class: te(["sidebar-logo-container", { collapse: e.collapse }])
3198
3201
  }, [
@@ -3206,7 +3209,7 @@ const ls = { class: "right-content" }, ss = {
3206
3209
  default: i(() => [
3207
3210
  s.value ? (r(), h(p, {
3208
3211
  key: 0,
3209
- src: o.value || "",
3212
+ src: n.value || "",
3210
3213
  fit: "contain",
3211
3214
  class: "sidebar-logo",
3212
3215
  onError: u
@@ -3227,7 +3230,7 @@ const ls = { class: "right-content" }, ss = {
3227
3230
  default: i(() => [
3228
3231
  s.value ? (r(), h(p, {
3229
3232
  key: 0,
3230
- src: o.value || "",
3233
+ src: n.value || "",
3231
3234
  fit: "contain",
3232
3235
  class: "sidebar-logo",
3233
3236
  onError: u
@@ -3237,7 +3240,7 @@ const ls = { class: "right-content" }, ss = {
3237
3240
  ]),
3238
3241
  _: 1
3239
3242
  }, 8, ["src"])) : (r(), v("div", hs, A(a.value), 1)),
3240
- y("h1", bs, A(n.value), 1)
3243
+ y("h1", bs, A(o.value), 1)
3241
3244
  ]),
3242
3245
  _: 1
3243
3246
  }))
@@ -3280,8 +3283,8 @@ const ls = { class: "right-content" }, ss = {
3280
3283
  }
3281
3284
  }
3282
3285
  };
3283
- function gs(e, t, n, o, l, s) {
3284
- return r(), h(Xe(s.compType(n.to)), Z(de(s.linkProps(n.to))), {
3286
+ function gs(e, t, o, n, l, s) {
3287
+ return r(), h(Xe(s.compType(o.to)), Z(de(s.linkProps(o.to))), {
3285
3288
  default: i(() => [
3286
3289
  fe(e.$slots, "default")
3287
3290
  ]),
@@ -3303,8 +3306,8 @@ const ks = /* @__PURE__ */ L(vs, [["render", gs]]), ws = {
3303
3306
  const e = this.$refs.subMenu;
3304
3307
  if (e) {
3305
3308
  const t = e.handleMouseleave;
3306
- e.handleMouseleave = (n) => {
3307
- this.device !== "mobile" && t(n);
3309
+ e.handleMouseleave = (o) => {
3310
+ this.device !== "mobile" && t(o);
3308
3311
  };
3309
3312
  }
3310
3313
  }
@@ -3321,10 +3324,10 @@ const ks = /* @__PURE__ */ L(vs, [["render", gs]]), ws = {
3321
3324
  }
3322
3325
  },
3323
3326
  setup(e) {
3324
- return (t, n) => {
3325
- const o = M("VIcon");
3327
+ return (t, o) => {
3328
+ const n = M("VIcon");
3326
3329
  return r(), v(R, null, [
3327
- c(o, {
3330
+ c(n, {
3328
3331
  name: e.meta.icon || "ra-all"
3329
3332
  }, null, 8, ["name"]),
3330
3333
  y("span", Ss, A(e.meta.title), 1)
@@ -3373,31 +3376,31 @@ const ks = /* @__PURE__ */ L(vs, [["render", gs]]), ws = {
3373
3376
  key: 0,
3374
3377
  class: "menu-wrapper"
3375
3378
  };
3376
- function Cs(e, t, n, o, l, s) {
3377
- const a = M("menu-content"), u = mo, d = M("app-link"), m = qt, p = M("sidebar-item", !0), b = fo;
3378
- return n.item.hidden !== !1 ? (r(), v("div", Is, [
3379
- n.item.meta && n.item.meta.menuType === 2 ? (r(), h(m, {
3379
+ function Cs(e, t, o, n, l, s) {
3380
+ const a = M("menu-content"), u = mn, d = M("app-link"), m = qt, p = M("sidebar-item", !0), b = fn;
3381
+ return o.item.hidden !== !1 ? (r(), v("div", Is, [
3382
+ o.item.meta && o.item.meta.menuType === 2 ? (r(), h(m, {
3380
3383
  key: 0,
3381
- disabled: !n.isCollapse,
3384
+ disabled: !o.isCollapse,
3382
3385
  effect: "dark",
3383
3386
  placement: "right",
3384
- content: n.item.meta?.title
3387
+ content: o.item.meta?.title
3385
3388
  }, {
3386
3389
  default: i(() => [
3387
- n.item.meta ? (r(), h(d, {
3390
+ o.item.meta ? (r(), h(d, {
3388
3391
  key: 0,
3389
- to: n.to,
3390
- "new-tab": n.item.meta.newTab
3392
+ to: o.to,
3393
+ "new-tab": o.item.meta.newTab
3391
3394
  }, {
3392
3395
  default: i(() => [
3393
3396
  c(u, {
3394
- index: n.to,
3395
- class: te({ "submenu-title-noDropdown": !n.isNest }),
3397
+ index: o.to,
3398
+ class: te({ "submenu-title-noDropdown": !o.isNest }),
3396
3399
  onClick: s.itemClick
3397
3400
  }, {
3398
3401
  default: i(() => [
3399
3402
  c(a, {
3400
- meta: n.item.meta
3403
+ meta: o.item.meta
3401
3404
  }, null, 8, ["meta"])
3402
3405
  ]),
3403
3406
  _: 1
@@ -3407,37 +3410,37 @@ function Cs(e, t, n, o, l, s) {
3407
3410
  }, 8, ["to", "new-tab"])) : $("", !0)
3408
3411
  ]),
3409
3412
  _: 1
3410
- }, 8, ["disabled", "content"])) : n.item.meta && n.item.meta.menuType === 1 ? (r(), h(m, {
3413
+ }, 8, ["disabled", "content"])) : o.item.meta && o.item.meta.menuType === 1 ? (r(), h(m, {
3411
3414
  key: 1,
3412
- disabled: !n.isCollapse,
3415
+ disabled: !o.isCollapse,
3413
3416
  effect: "dark",
3414
3417
  placement: "right",
3415
- content: n.item.meta?.title
3418
+ content: o.item.meta?.title
3416
3419
  }, {
3417
3420
  default: i(() => [
3418
3421
  c(b, {
3419
3422
  ref: "subMenu",
3420
- index: n.to,
3421
- class: te({ "submenu-title-noDropdown": !n.isNest })
3423
+ index: o.to,
3424
+ class: te({ "submenu-title-noDropdown": !o.isNest })
3422
3425
  }, {
3423
3426
  title: i(() => [
3424
- n.item.redirect && n.item.redirect !== "#" ? (r(), h(d, {
3427
+ o.item.redirect && o.item.redirect !== "#" ? (r(), h(d, {
3425
3428
  key: 0,
3426
- to: n.to
3429
+ to: o.to
3427
3430
  }, {
3428
3431
  default: i(() => [
3429
3432
  c(a, {
3430
- meta: n.item.meta
3433
+ meta: o.item.meta
3431
3434
  }, null, 8, ["meta"])
3432
3435
  ]),
3433
3436
  _: 1
3434
3437
  }, 8, ["to"])) : (r(), h(a, {
3435
3438
  key: 1,
3436
- meta: n.item.meta
3439
+ meta: o.item.meta
3437
3440
  }, null, 8, ["meta"]))
3438
3441
  ]),
3439
3442
  default: i(() => [
3440
- (r(!0), v(R, null, U(n.item.children, (w) => (r(), h(p, {
3443
+ (r(!0), v(R, null, U(o.item.children, (w) => (r(), h(p, {
3441
3444
  key: w.path,
3442
3445
  "is-nest": !0,
3443
3446
  item: w,
@@ -3456,14 +3459,14 @@ const Ts = /* @__PURE__ */ L(Es, [["render", Cs]]), Os = /* @__PURE__ */ G({
3456
3459
  __name: "SearchMenu",
3457
3460
  setup(e) {
3458
3461
  const t = N();
3459
- function n(m) {
3460
- return m.filter((p) => p.meta?.menuType === 0 ? !1 : (p.children && (p.children = n(p.children), p.children.length === 0 && delete p.children), !0));
3462
+ function o(m) {
3463
+ return m.filter((p) => p.meta?.menuType === 0 ? !1 : (p.children && (p.children = o(p.children), p.children.length === 0 && delete p.children), !0));
3461
3464
  }
3462
- const o = T(""), l = g(() => t.remoteRouter), s = $e(), a = g(() => {
3465
+ const n = T(""), l = g(() => t.remoteRouter), s = $e(), a = g(() => {
3463
3466
  let m = [];
3464
3467
  return l.value.forEach((p) => {
3465
3468
  m = m.concat(E(p.routes));
3466
- }), n(m);
3469
+ }), o(m);
3467
3470
  });
3468
3471
  function u(m) {
3469
3472
  let p = m;
@@ -3477,13 +3480,13 @@ const Ts = /* @__PURE__ */ L(Es, [["render", Cs]]), Os = /* @__PURE__ */ G({
3477
3480
  return s.resolve(p.redirect ? p.redirect : p).fullPath;
3478
3481
  }
3479
3482
  function d(m) {
3480
- s.push(m), o.value = "";
3483
+ s.push(m), n.value = "";
3481
3484
  }
3482
3485
  return (m, p) => {
3483
- const b = ot, w = ho, C = nt;
3486
+ const b = nt, w = hn, C = ot;
3484
3487
  return r(), h(C, {
3485
- modelValue: f(o),
3486
- "onUpdate:modelValue": p[0] || (p[0] = (O) => Qe(o) ? o.value = O : null),
3488
+ modelValue: f(n),
3489
+ "onUpdate:modelValue": p[0] || (p[0] = (O) => Qe(n) ? n.value = O : null),
3487
3490
  filterable: "",
3488
3491
  placeholder: "搜索菜单...",
3489
3492
  class: "search-menu",
@@ -3527,7 +3530,7 @@ var J = /* @__PURE__ */ ((e) => (e[e.custom = 0] = "custom", e[e.list = 1] = "li
3527
3530
  const Bs = /* @__PURE__ */ G({
3528
3531
  __name: "index",
3529
3532
  setup(e) {
3530
- const t = Y(), n = N(), o = V(), l = g(() => t.sidebar), s = g(() => n.remoteRouter), a = g(() => n.customRouter), u = $e(), d = Q(), m = g(() => {
3533
+ const t = Y(), o = N(), n = V(), l = g(() => t.sidebar), s = g(() => o.remoteRouter), a = g(() => o.customRouter), u = $e(), d = Q(), m = g(() => {
3531
3534
  let x = [];
3532
3535
  return u.options.routes.concat(a.value || []).forEach((_) => {
3533
3536
  _.path === "/" ? x = x.concat(_.children || []) : x.push(_);
@@ -3543,7 +3546,7 @@ const Bs = /* @__PURE__ */ G({
3543
3546
  return C(), u.resolve(S.redirect ? S.redirect : S).fullPath;
3544
3547
  }
3545
3548
  return "";
3546
- }), b = g(() => o.sidebarLogo), w = g(() => !l.value.opened);
3549
+ }), b = g(() => n.sidebarLogo), w = g(() => !l.value.opened);
3547
3550
  Te(() => C());
3548
3551
  function C() {
3549
3552
  Rt("is-active", 200);
@@ -3552,7 +3555,7 @@ const Bs = /* @__PURE__ */ G({
3552
3555
  return x.filter((_) => [F.dir, F.menu].indexOf(_.meta.menuType) !== -1).map((_) => (_ = Object.assign({}, _), _.children && (_.children = O(_.children)), _));
3553
3556
  }
3554
3557
  return (x, _) => {
3555
- const S = yo, K = bo;
3558
+ const S = yn, K = bn;
3556
3559
  return r(), v("div", {
3557
3560
  class: te({ "has-logo": f(b) })
3558
3561
  }, [
@@ -3593,14 +3596,14 @@ const Bs = /* @__PURE__ */ G({
3593
3596
  }), As = /* @__PURE__ */ L(Bs, [["__scopeId", "data-v-ed591c64"]]), Rs = { class: "app-main" }, Ps = {
3594
3597
  __name: "AppMain",
3595
3598
  setup(e) {
3596
- const t = Q(), n = [], o = T(0);
3597
- return Zn(() => {
3598
- t.meta?.keepAlive && n.indexOf(t.name) && n.push(t.name), o.value++;
3599
+ const t = Q(), o = [], n = T(0);
3600
+ return Zo(() => {
3601
+ t.meta?.keepAlive && o.indexOf(t.name) && o.push(t.name), n.value++;
3599
3602
  }), (l, s) => {
3600
- const a = M("router-view"), u = _o;
3603
+ const a = M("router-view"), u = _n;
3601
3604
  return r(), v("section", Rs, [
3602
3605
  (r(), h(a, {
3603
- key: l.$route.fullPath + f(o)
3606
+ key: l.$route.fullPath + f(n)
3604
3607
  })),
3605
3608
  c(u, { bottom: 50 })
3606
3609
  ]);
@@ -3609,7 +3612,7 @@ const Bs = /* @__PURE__ */ G({
3609
3612
  }, Ls = /* @__PURE__ */ L(Ps, [["__scopeId", "data-v-ca0f0d98"]]), Ms = { class: "main-container" }, Ds = 992, js = {
3610
3613
  __name: "index",
3611
3614
  setup(e) {
3612
- const { body: t } = document, n = Y(), o = V(), l = Q(), s = g(() => n.sidebar), a = g(() => n.device), u = g(() => o.fixedHeader), d = g(() => ({
3615
+ const { body: t } = document, o = Y(), n = V(), l = Q(), s = g(() => o.sidebar), a = g(() => o.device), u = g(() => n.fixedHeader), d = g(() => ({
3613
3616
  hideSidebar: !s.value.opened,
3614
3617
  openSidebar: s.value.opened,
3615
3618
  withoutAnimation: s.value.withoutAnimation,
@@ -3617,13 +3620,13 @@ const Bs = /* @__PURE__ */ G({
3617
3620
  })), m = () => t.getBoundingClientRect().width - 1 < Ds, p = () => {
3618
3621
  if (!document.hidden) {
3619
3622
  const w = m();
3620
- n.toggleDevice(w ? "mobile" : "desktop"), w && n.closeSideBar({ withoutAnimation: !0 });
3623
+ o.toggleDevice(w ? "mobile" : "desktop"), w && o.closeSideBar({ withoutAnimation: !0 });
3621
3624
  }
3622
3625
  };
3623
- p(), $o(window, "resize", () => p()), ue(l, () => {
3624
- a.value === "mobile" && s.value.opened && n.closeSideBar({ withoutAnimation: !1 });
3626
+ p(), $n(window, "resize", () => p()), ue(l, () => {
3627
+ a.value === "mobile" && s.value.opened && o.closeSideBar({ withoutAnimation: !1 });
3625
3628
  });
3626
- const b = () => n.closeSideBar({ withoutAnimation: !1 });
3629
+ const b = () => o.closeSideBar({ withoutAnimation: !1 });
3627
3630
  return (w, C) => (r(), v("div", {
3628
3631
  class: te([f(d), "app-wrapper"])
3629
3632
  }, [
@@ -3643,7 +3646,7 @@ const Bs = /* @__PURE__ */ G({
3643
3646
  ])
3644
3647
  ], 2));
3645
3648
  }
3646
- }, nn = /* @__PURE__ */ L(js, [["__scopeId", "data-v-9a7540c6"]]), Ns = { class: "login-container" }, Vs = { class: "login-card-wrapper" }, Us = { class: "login-header" }, qs = { class: "logo-wrapper" }, Hs = ["src"], Fs = {
3649
+ }, oo = /* @__PURE__ */ L(js, [["__scopeId", "data-v-9a7540c6"]]), Ns = { class: "login-container" }, Vs = { class: "login-card-wrapper" }, Us = { class: "login-header" }, qs = { class: "logo-wrapper" }, Hs = ["src"], Fs = {
3647
3650
  key: 1,
3648
3651
  class: "logo-fallback"
3649
3652
  }, Gs = { class: "login-title" }, Ks = { class: "captcha-wrapper" }, zs = ["src"], Js = {
@@ -3655,13 +3658,13 @@ const Bs = /* @__PURE__ */ G({
3655
3658
  }, Qs = { class: "login-footer" }, Xs = /* @__PURE__ */ G({
3656
3659
  __name: "login",
3657
3660
  setup(e) {
3658
- const t = $e(), n = Q(), o = V(), l = Y(), s = N(), a = g(() => o.loginTips), u = g(() => o.captcha), d = g(() => l.baseURL), m = T(0), p = T(!1), b = T({
3661
+ const t = $e(), o = Q(), n = V(), l = Y(), s = N(), a = g(() => n.loginTips), u = g(() => n.captcha), d = g(() => l.baseURL), m = T(0), p = T(!1), b = T({
3659
3662
  username: "",
3660
3663
  password: "",
3661
3664
  captcha: "",
3662
3665
  sing: ""
3663
3666
  }), w = g(() => {
3664
- const _ = o.title || "OMS";
3667
+ const _ = n.title || "OMS";
3665
3668
  return _ ? _.toString().trim().charAt(0).toUpperCase() : "O";
3666
3669
  }), C = () => {
3667
3670
  m.value++;
@@ -3671,8 +3674,8 @@ const Bs = /* @__PURE__ */ G({
3671
3674
  Nt.error("请填写完整的登录信息");
3672
3675
  return;
3673
3676
  }
3674
- u.value && (b.value.sing = Ao.MD5(`${b.value.username}${b.value.password}${b.value.captcha}`).toString()), p.value = !0, s.login(b.value).then((_) => {
3675
- t.push({ path: n.query?.redirect || "/" });
3677
+ u.value && (b.value.sing = An.MD5(`${b.value.username}${b.value.password}${b.value.captcha}`).toString()), p.value = !0, s.login(b.value).then((_) => {
3678
+ t.push({ path: o.query?.redirect || "/" });
3676
3679
  }).catch((_) => {
3677
3680
  m.value++;
3678
3681
  }).finally(() => {
@@ -3681,7 +3684,7 @@ const Bs = /* @__PURE__ */ G({
3681
3684
  }
3682
3685
  };
3683
3686
  return (_, S) => {
3684
- const K = vo, z = tt, k = Ht, P = ye, W = et, Pe = Ae;
3687
+ const K = vn, z = tt, k = Ht, P = ye, W = et, Pe = Ae;
3685
3688
  return r(), v("div", Ns, [
3686
3689
  S[7] || (S[7] = y("div", { class: "login-background" }, [
3687
3690
  y("div", { class: "shape shape-1" }),
@@ -3701,14 +3704,14 @@ const Bs = /* @__PURE__ */ G({
3701
3704
  default: i(() => [
3702
3705
  y("div", Us, [
3703
3706
  y("div", qs, [
3704
- f(o).logo ? (r(), v("img", {
3707
+ f(n).logo ? (r(), v("img", {
3705
3708
  key: 0,
3706
- src: f(o).logo,
3709
+ src: f(n).logo,
3707
3710
  alt: "Logo",
3708
3711
  class: "logo-img"
3709
3712
  }, null, 8, Hs)) : (r(), v("div", Fs, A(w.value), 1))
3710
3713
  ]),
3711
- y("h1", Gs, A(f(o).title || "OMS"), 1),
3714
+ y("h1", Gs, A(f(n).title || "OMS"), 1),
3712
3715
  S[3] || (S[3] = y("p", { class: "login-subtitle" }, "欢迎回来,请登录您的账户", -1))
3713
3716
  ]),
3714
3717
  c(W, {
@@ -3775,7 +3778,7 @@ const Bs = /* @__PURE__ */ G({
3775
3778
  a.value ? (r(), v("div", Js, [
3776
3779
  c(k, null, {
3777
3780
  default: i(() => [
3778
- c(f(Oo))
3781
+ c(f(On))
3779
3782
  ]),
3780
3783
  _: 1
3781
3784
  }),
@@ -3794,7 +3797,7 @@ const Bs = /* @__PURE__ */ G({
3794
3797
  ])]),
3795
3798
  _: 1
3796
3799
  }, 8, ["loading", "disabled"]),
3797
- Object.keys(f(o).sso || {}).length > 0 ? (r(), v("div", Ws, [...S[5] || (S[5] = [
3800
+ Object.keys(f(n).sso || {}).length > 0 ? (r(), v("div", Ws, [...S[5] || (S[5] = [
3798
3801
  y("span", null, "其他登录方式", -1)
3799
3802
  ])])) : $("", !0),
3800
3803
  S[6] || (S[6] = y("div", { class: "sso-container" }, [
@@ -3806,7 +3809,7 @@ const Bs = /* @__PURE__ */ G({
3806
3809
  ]),
3807
3810
  _: 1
3808
3811
  }),
3809
- y("div", Qs, " © " + A((/* @__PURE__ */ new Date()).getFullYear()) + " " + A(f(o).title || "OMS") + ". All rights reserved. ", 1)
3812
+ y("div", Qs, " © " + A((/* @__PURE__ */ new Date()).getFullYear()) + " " + A(f(n).title || "OMS") + ". All rights reserved. ", 1)
3810
3813
  ])
3811
3814
  ]),
3812
3815
  _: 1
@@ -3817,7 +3820,7 @@ const Bs = /* @__PURE__ */ G({
3817
3820
  }), Zs = {
3818
3821
  name: "NotFoundPage"
3819
3822
  }, Ys = { class: "not-found" };
3820
- function ea(e, t, n, o, l, s) {
3823
+ function ea(e, t, o, n, l, s) {
3821
3824
  return r(), v("div", Ys, [...t[0] || (t[0] = [
3822
3825
  y("svg", {
3823
3826
  width: "380px",
@@ -3887,10 +3890,10 @@ function ea(e, t, n, o, l, s) {
3887
3890
  ], -1)
3888
3891
  ])]);
3889
3892
  }
3890
- const ta = /* @__PURE__ */ L(Zs, [["render", ea], ["__scopeId", "data-v-26068803"]]), na = [
3893
+ const ta = /* @__PURE__ */ L(Zs, [["render", ea], ["__scopeId", "data-v-26068803"]]), oa = [
3891
3894
  {
3892
3895
  path: "/",
3893
- component: nn,
3896
+ component: oo,
3894
3897
  redirect: "/dashboard",
3895
3898
  name: "Root",
3896
3899
  meta: {
@@ -3900,7 +3903,7 @@ const ta = /* @__PURE__ */ L(Zs, [["render", ea], ["__scopeId", "data-v-26068803
3900
3903
  {
3901
3904
  path: "dashboard",
3902
3905
  name: "Dashboard",
3903
- component: ol,
3906
+ component: nl,
3904
3907
  meta: { title: "Dashboard", icon: "el-icon-help", menuType: 2, keepAlive: !0 }
3905
3908
  }
3906
3909
  ]
@@ -3917,17 +3920,17 @@ const ta = /* @__PURE__ */ L(Zs, [["render", ea], ["__scopeId", "data-v-26068803
3917
3920
  meta: { menuType: 0 },
3918
3921
  hidden: !0
3919
3922
  }
3920
- ], le = Yn({
3921
- history: eo(),
3922
- routes: na
3923
+ ], le = Yo({
3924
+ history: en(),
3925
+ routes: oa
3923
3926
  });
3924
3927
  Fe.configure({ showSpinner: !1 });
3925
- function oa(e) {
3926
- e.beforeEach((t, n, o) => {
3927
- Fe.start(), t.preHash = location.hash.replace("#", ""), o();
3928
+ function na(e) {
3929
+ e.beforeEach((t, o, n) => {
3930
+ Fe.start(), t.preHash = location.hash.replace("#", ""), n();
3928
3931
  }), e.afterEach((t) => {
3929
- const n = N(D);
3930
- t.matched.length > 0 && n.updateState({
3932
+ const o = N(D);
3933
+ t.matched.length > 0 && o.updateState({
3931
3934
  key: "path",
3932
3935
  value: t.matched[t.matched.length - 1].path.replace("(\\d+)", "")
3933
3936
  }), Fe.done();
@@ -3936,23 +3939,23 @@ function oa(e) {
3936
3939
  function la() {
3937
3940
  return N(D).isLodeRemoteRoutes;
3938
3941
  }
3939
- function on() {
3942
+ function no() {
3940
3943
  return V(D).whiteRoutes || [];
3941
3944
  }
3942
3945
  function sa() {
3943
3946
  return N(D).token;
3944
3947
  }
3945
- class ln {
3948
+ class lo {
3946
3949
  type = "qrcode";
3947
3950
  flag() {
3948
3951
  }
3949
- jumpToLoginPage(t, n) {
3950
- t(n);
3952
+ jumpToLoginPage(t, o) {
3953
+ t(o);
3951
3954
  }
3952
3955
  showQrCode() {
3953
3956
  }
3954
3957
  }
3955
- class Ir extends ln {
3958
+ class Ir extends lo {
3956
3959
  type = "jump";
3957
3960
  client_id = "";
3958
3961
  constructor(t) {
@@ -3966,12 +3969,12 @@ class Ir extends ln {
3966
3969
  key: "github"
3967
3970
  };
3968
3971
  }
3969
- jumpToLoginPage(t, n) {
3970
- const o = encodeURIComponent(location.href);
3971
- location.replace(`https://github.com/login/oauth/authorize?client_id=${this.client_id}&redirect_uri${o}`);
3972
+ jumpToLoginPage(t, o) {
3973
+ const n = encodeURIComponent(location.href);
3974
+ location.replace(`https://github.com/login/oauth/authorize?client_id=${this.client_id}&redirect_uri${n}`);
3972
3975
  }
3973
3976
  }
3974
- class Cr extends ln {
3977
+ class Cr extends lo {
3975
3978
  type = "qrcode";
3976
3979
  qrCodeUrl = "https://login.dingtalk.com/login/qrcode.htm?goto={goto}&style={style}";
3977
3980
  reloadUrl = "https://oapi.dingtalk.com/connect/oauth2/sns_authorize?response_type=code&scope=snsapi_login&state=&appid={appid}&redirect_uri={redirect_uri}";
@@ -3997,20 +4000,20 @@ class Cr extends ln {
3997
4000
  appid: this.appid,
3998
4001
  redirect_uri: encodeURIComponent(this.redirectUri)
3999
4002
  };
4000
- return re(this.reloadUrl, s) + "&" + Hn(l || {});
4001
- }, n = () => {
4003
+ return re(this.reloadUrl, s) + "&" + Ho(l || {});
4004
+ }, o = () => {
4002
4005
  const l = {
4003
4006
  goto: encodeURIComponent(t()),
4004
4007
  style: encodeURIComponent(this.style)
4005
4008
  };
4006
4009
  return re(this.qrCodeUrl, l);
4007
- }, o = (l) => {
4010
+ }, n = (l) => {
4008
4011
  const { origin: s, data: a } = l;
4009
4012
  s === "https://login.dingtalk.com" && (window.location.href = t({ loginTmpCode: a }));
4010
4013
  };
4011
- this.iframe.src = n(), qn({ elId: this.elId, attrs: this.iframe }), typeof window.addEventListener < "u" ? window.addEventListener(
4014
+ this.iframe.src = o(), qo({ elId: this.elId, attrs: this.iframe }), typeof window.addEventListener < "u" ? window.addEventListener(
4012
4015
  "message",
4013
- (l) => o(l),
4016
+ (l) => n(l),
4014
4017
  !1
4015
4018
  ) : typeof window.attachEvent < "u" && window.attachEvent("onmessage", (l) => this.onScanSuccess(l));
4016
4019
  }
@@ -4020,31 +4023,31 @@ function ia() {
4020
4023
  return q(V(D).sso || {}, aa);
4021
4024
  }
4022
4025
  function ra() {
4023
- const e = ia(), t = V(D).activeSsoKey || "", n = e[t];
4024
- if (n !== void 0)
4025
- return n();
4026
+ const e = ia(), t = V(D).activeSsoKey || "", o = e[t];
4027
+ if (o !== void 0)
4028
+ return o();
4026
4029
  }
4027
4030
  function ca(e) {
4028
- e.beforeEach(async (t, n, o) => {
4029
- if (on().indexOf(t.path) !== -1) {
4030
- o();
4031
+ e.beforeEach(async (t, o, n) => {
4032
+ if (no().indexOf(t.path) !== -1) {
4033
+ n();
4031
4034
  return;
4032
4035
  }
4033
4036
  if (sa()) {
4034
- t.query?.redirect ? o(t.query?.redirect) : o();
4037
+ t.query?.redirect ? n(t.query?.redirect) : n();
4035
4038
  return;
4036
4039
  }
4037
4040
  const s = t.query.redirect || t.path, a = ra();
4038
4041
  if (!a) {
4039
- o(`/login?redirect=${s}`);
4042
+ n(`/login?redirect=${s}`);
4040
4043
  return;
4041
4044
  }
4042
4045
  const u = a.flag(), d = N(D);
4043
- if (u && await d.login(zn(u) ? u : { ticket: u })) {
4044
- o();
4046
+ if (u && await d.login(zo(u) ? u : { ticket: u })) {
4047
+ n();
4045
4048
  return;
4046
4049
  }
4047
- a.jumpToLoginPage(o, `/login?redirect=${s}`);
4050
+ a.jumpToLoginPage(n, `/login?redirect=${s}`);
4048
4051
  });
4049
4052
  }
4050
4053
  const ua = {}, da = { class: "loading preloader" };
@@ -4082,7 +4085,7 @@ const ma = /* @__PURE__ */ L(ua, [["render", pa]]), fa = {
4082
4085
  this.hasNotice = Object.keys(this.$props.notice).length > 0, this.noticeProps = this.$props.notice;
4083
4086
  }
4084
4087
  };
4085
- function ha(e, t, n, o, l, s) {
4088
+ function ha(e, t, o, n, l, s) {
4086
4089
  const a = lt;
4087
4090
  return r(), v("div", null, [
4088
4091
  l.hasNotice ? (r(), h(a, Z(X({ key: 0 }, l.noticeProps)), null, 16)) : $("", !0)
@@ -4095,11 +4098,11 @@ const ba = /* @__PURE__ */ L(fa, [["render", ha]]), ya = ["innerHTML"], _a = /*
4095
4098
  schemaApi: { default: "" }
4096
4099
  },
4097
4100
  setup(e) {
4098
- const t = e, n = Y(), o = V(), l = N(), s = Q(), a = T(!0), u = T(!1), d = T({}), m = T(""), p = T({}), b = T([]), w = T(!1), C = g(() => l.env), O = g(() => o);
4101
+ const t = e, o = Y(), n = V(), l = N(), s = Q(), a = T(!0), u = T(!1), d = T({}), m = T(""), p = T({}), b = T([]), w = T(!1), C = g(() => l.env), O = g(() => n);
4099
4102
  return We(() => {
4100
4103
  const x = s.path.split("/").filter((k) => k), _ = x.length > 1 ? x.slice(0, x.length - 1).join("/") : x[0], S = "/schema" + s.meta.path, K = { params: s.params };
4101
4104
  (window?.App?.config?.globalProperties?.$http).get(t.schemaApi || S, K).then(({ data: k }) => {
4102
- a.value = !1, ce(k) && (k.notice !== void 0 && (u.value = !0, Ze(k.notice) ? d.value = { title: k.notice } : ce(k.notice) && (d.value = k.notice, m.value = k.notice.noticeApi), delete k.notice), b.value = k.ownerNames || [], w.value = k.serviceOffLine || !1), p.value = t.schemaHandler(k, _), n.SET_PAGE_JSON_SCHEMA({ page: s.path, json: p.value });
4105
+ a.value = !1, ce(k) && (k.notice !== void 0 && (u.value = !0, Ze(k.notice) ? d.value = { title: k.notice } : ce(k.notice) && (d.value = k.notice, m.value = k.notice.noticeApi), delete k.notice), b.value = k.ownerNames || [], w.value = k.serviceOffLine || !1), p.value = t.schemaHandler(k, _), o.SET_PAGE_JSON_SCHEMA({ page: s.path, json: p.value });
4103
4106
  });
4104
4107
  }), (x, _) => {
4105
4108
  const S = lt;
@@ -4127,23 +4130,23 @@ const ba = /* @__PURE__ */ L(fa, [["render", ha]]), ya = ["innerHTML"], _a = /*
4127
4130
  ], 64);
4128
4131
  };
4129
4132
  }
4130
- }), ke = /* @__PURE__ */ L(_a, [["__scopeId", "data-v-e330fdc7"]]), sn = {
4133
+ }), ke = /* @__PURE__ */ L(_a, [["__scopeId", "data-v-e330fdc7"]]), so = {
4131
4134
  __name: "table",
4132
4135
  setup(e) {
4133
- const t = (n, o) => {
4134
- if (n.orderBy) {
4136
+ const t = (o, n) => {
4137
+ if (o.orderBy) {
4135
4138
  const s = {
4136
- prop: n.orderBy.field,
4137
- order: n.orderBy.mod === "desc" ? "descending" : "ascending"
4139
+ prop: o.orderBy.field,
4140
+ order: o.orderBy.mod === "desc" ? "descending" : "ascending"
4138
4141
  };
4139
- n.tableProps = q(n.tableProps, { defaultSort: s });
4142
+ o.tableProps = q(o.tableProps, { defaultSort: s });
4140
4143
  }
4141
4144
  const l = Object.keys(_e.props);
4142
- return Object.keys(n).forEach((s) => {
4143
- l.indexOf(s) === -1 && delete n[s];
4144
- }), n.listApi === void 0 && (n.listApi = `/${o}/list`), n;
4145
+ return Object.keys(o).forEach((s) => {
4146
+ l.indexOf(s) === -1 && delete o[s];
4147
+ }), o.listApi === void 0 && (o.listApi = `/${n}/list`), o;
4145
4148
  };
4146
- return (n, o) => (r(), h(ke, { "schema-handler": t }, {
4149
+ return (o, n) => (r(), h(ke, { "schema-handler": t }, {
4147
4150
  default: i((l) => [
4148
4151
  c(f(_e), Z(de(l)), null, 16)
4149
4152
  ]),
@@ -4153,8 +4156,8 @@ const ba = /* @__PURE__ */ L(fa, [["render", ha]]), ya = ["innerHTML"], _a = /*
4153
4156
  }, ze = {
4154
4157
  __name: "form",
4155
4158
  setup(e) {
4156
- const t = Q(), n = $e(), o = (u, d) => {
4157
- const m = Object.keys(oe.props);
4159
+ const t = Q(), o = $e(), n = (u, d) => {
4160
+ const m = Object.keys(ne.props);
4158
4161
  return Object.keys(u).forEach((p) => {
4159
4162
  if (m.indexOf(p) === -1) {
4160
4163
  delete u[p];
@@ -4168,7 +4171,7 @@ const ba = /* @__PURE__ */ L(fa, [["render", ha]]), ya = ["innerHTML"], _a = /*
4168
4171
  mod: t.params.id ? "edit" : "create"
4169
4172
  }, u), u;
4170
4173
  }, l = T(0), s = () => {
4171
- pn.request({
4174
+ po.request({
4172
4175
  url: "/form_mutex",
4173
4176
  method: "get",
4174
4177
  params: {
@@ -4189,15 +4192,15 @@ const ba = /* @__PURE__ */ L(fa, [["render", ha]]), ya = ["innerHTML"], _a = /*
4189
4192
  Te(() => {
4190
4193
  const u = V();
4191
4194
  t.params.id !== void 0 && u.formMutex && (s(), l.value = setInterval(s, 2e3));
4192
- }), Tn(() => {
4195
+ }), To(() => {
4193
4196
  clearInterval(l.value);
4194
4197
  });
4195
4198
  function a() {
4196
- t.query?.goback ? n.push(t.query?.goback) : history.state.back && history.back();
4199
+ t.query?.goback ? o.push(t.query?.goback) : history.state.back && history.back();
4197
4200
  }
4198
- return (u, d) => (r(), h(ke, { "schema-handler": o }, {
4201
+ return (u, d) => (r(), h(ke, { "schema-handler": n }, {
4199
4202
  default: i((m) => [
4200
- c(f(oe), Z(de(m)), null, 16)
4203
+ c(f(ne), Z(de(m)), null, 16)
4201
4204
  ]),
4202
4205
  _: 1
4203
4206
  }));
@@ -4205,7 +4208,7 @@ const ba = /* @__PURE__ */ L(fa, [["render", ha]]), ya = ["innerHTML"], _a = /*
4205
4208
  }, va = G({
4206
4209
  name: "VTree",
4207
4210
  components: {
4208
- VForm: oe
4211
+ VForm: ne
4209
4212
  },
4210
4213
  props: {
4211
4214
  treeApi: {
@@ -4301,8 +4304,8 @@ const ba = /* @__PURE__ */ L(fa, [["render", ha]]), ya = ["innerHTML"], _a = /*
4301
4304
  },
4302
4305
  append(e, t) {
4303
4306
  this.type = 1;
4304
- const n = { pid: e.id, [this.$props.props?.levelKey ?? "level"]: t.level + 1, ...Fn(this.$props.props?.effectData, e) };
4305
- e.children || (e.children = []), this.formData = n, this.formkey++, e.children.push(n), this.treeData = [...this.treeData];
4307
+ const o = { pid: e.id, [this.$props.props?.levelKey ?? "level"]: t.level + 1, ...Fo(this.$props.props?.effectData, e) };
4308
+ e.children || (e.children = []), this.formData = o, this.formkey++, e.children.push(o), this.treeData = [...this.treeData];
4306
4309
  },
4307
4310
  canAppend(e, t) {
4308
4311
  return e[this.localTreeProps.props.label] ? t.level < this.$props.maxDepth : !1;
@@ -4328,10 +4331,10 @@ const ba = /* @__PURE__ */ L(fa, [["render", ha]]), ya = ["innerHTML"], _a = /*
4328
4331
  allowDrap(e) {
4329
4332
  return !0;
4330
4333
  },
4331
- allowDrop(e, t, n) {
4332
- return n === "inner";
4334
+ allowDrop(e, t, o) {
4335
+ return o === "inner";
4333
4336
  },
4334
- handleDragEnd(e, t, n, o) {
4337
+ handleDragEnd(e, t, o, n) {
4335
4338
  const l = e.data;
4336
4339
  l.pid = t.data.id, this.$http.request({
4337
4340
  method: "POST",
@@ -4346,8 +4349,8 @@ const ba = /* @__PURE__ */ L(fa, [["render", ha]]), ya = ["innerHTML"], _a = /*
4346
4349
  key: 1,
4347
4350
  style: { color: "#E6A23C" }
4348
4351
  }, xa = { class: "card-header" };
4349
- function Ea(e, t, n, o, l, s) {
4350
- const a = ye, u = go, d = Ae, m = Be, p = M("v-form"), b = ve;
4352
+ function Ea(e, t, o, n, l, s) {
4353
+ const a = ye, u = gn, d = Ae, m = Be, p = M("v-form"), b = ve;
4351
4354
  return r(), h(b, {
4352
4355
  class: "tree-box",
4353
4356
  gutter: 20
@@ -4466,13 +4469,13 @@ function Ea(e, t, n, o, l, s) {
4466
4469
  const Et = /* @__PURE__ */ L(va, [["render", Ea]]), Ia = {
4467
4470
  __name: "tree",
4468
4471
  setup(e) {
4469
- const t = (n, o) => {
4472
+ const t = (o, n) => {
4470
4473
  const l = Object.keys(Et.props);
4471
- return Object.keys(n).forEach((s) => {
4472
- l.indexOf(s) === -1 && delete n[s];
4473
- }), n;
4474
+ return Object.keys(o).forEach((s) => {
4475
+ l.indexOf(s) === -1 && delete o[s];
4476
+ }), o;
4474
4477
  };
4475
- return (n, o) => (r(), h(ke, { "schema-handler": t }, {
4478
+ return (o, n) => (r(), h(ke, { "schema-handler": t }, {
4476
4479
  default: i((l) => [
4477
4480
  c(Et, Z(de(l)), null, 16)
4478
4481
  ]),
@@ -4483,9 +4486,9 @@ const Et = /* @__PURE__ */ L(va, [["render", Ea]]), Ia = {
4483
4486
  __name: "container",
4484
4487
  setup(e) {
4485
4488
  const t = T(0);
4486
- return to(() => {
4489
+ return tn(() => {
4487
4490
  t.value++;
4488
- }), (n, o) => {
4491
+ }), (o, n) => {
4489
4492
  const l = M("router-view");
4490
4493
  return r(), h(l);
4491
4494
  };
@@ -4519,12 +4522,12 @@ const Et = /* @__PURE__ */ L(va, [["render", Ea]]), Ia = {
4519
4522
  },
4520
4523
  series: []
4521
4524
  };
4522
- function Ta(e, t, n) {
4523
- if (n.length === 0)
4525
+ function Ta(e, t, o) {
4526
+ if (o.length === 0)
4524
4527
  return {};
4525
- let o = q({}, Ca);
4526
- if (o.title.text = e, Ze(t)) {
4527
- const l = [], s = Object.keys(n[0]);
4528
+ let n = q({}, Ca);
4529
+ if (n.title.text = e, Ze(t)) {
4530
+ const l = [], s = Object.keys(o[0]);
4528
4531
  let a = s[0], u = s.filter((m, p) => p > 0), d = t;
4529
4532
  if (t.indexOf(":") > -1) {
4530
4533
  const m = t.split(":"), p = m[1].split(",");
@@ -4532,19 +4535,19 @@ function Ta(e, t, n) {
4532
4535
  }
4533
4536
  u.forEach((m) => {
4534
4537
  const p = [];
4535
- n.forEach((b) => {
4538
+ o.forEach((b) => {
4536
4539
  p.push(b[m]);
4537
- }), o.series.push({
4540
+ }), n.series.push({
4538
4541
  name: m,
4539
4542
  type: d,
4540
4543
  smooth: !0,
4541
4544
  data: p
4542
- }), o.legend.data.push(m);
4543
- }), n.forEach((m) => {
4545
+ }), n.legend.data.push(m);
4546
+ }), o.forEach((m) => {
4544
4547
  l.push(m[a]);
4545
- }), o.xAxis.data = l;
4548
+ }), n.xAxis.data = l;
4546
4549
  }
4547
- return ce(t) && (o = q(o, t)), o;
4550
+ return ce(t) && (n = q(n, t)), n;
4548
4551
  }
4549
4552
  const Oa = G({
4550
4553
  name: "NumberPanel",
@@ -4558,7 +4561,7 @@ const Oa = G({
4558
4561
  return {};
4559
4562
  }
4560
4563
  }), $a = { class: "number-panel-title" }, Ba = { class: "number" }, Aa = { class: "name" };
4561
- function Ra(e, t, n, o, l, s) {
4564
+ function Ra(e, t, o, n, l, s) {
4562
4565
  return r(!0), v(R, null, U(e.dataList, (a, u) => (r(), v("span", { key: u }, [
4563
4566
  y("div", $a, [
4564
4567
  (r(!0), v(R, null, U(Object.keys(a), (d, m) => (r(), v("div", {
@@ -4573,8 +4576,8 @@ function Ra(e, t, n, o, l, s) {
4573
4576
  }
4574
4577
  const Pa = /* @__PURE__ */ L(Oa, [["render", Ra], ["__scopeId", "data-v-cc0d8293"]]), La = {
4575
4578
  components: {
4576
- Chart: wo,
4577
- Md: Bo,
4579
+ Chart: wn,
4580
+ Md: Bn,
4578
4581
  Json: st,
4579
4582
  Table: _e,
4580
4583
  Number: Pa,
@@ -4590,29 +4593,29 @@ const Pa = /* @__PURE__ */ L(Oa, [["render", Ra], ["__scopeId", "data-v-cc0d8293
4590
4593
  setup(e) {
4591
4594
  const t = () => e.option.chart === "num" ? "number" : e.option.type;
4592
4595
  return {
4593
- compprops: (o) => {
4596
+ compprops: (n) => {
4594
4597
  const l = t();
4595
4598
  if (l === "number")
4596
4599
  return {
4597
- dataList: o.data
4600
+ dataList: n.data
4598
4601
  };
4599
4602
  if (l === "chart")
4600
4603
  return {
4601
- options: Ta(o.id, o.chart, o.data)
4604
+ options: Ta(n.id, n.chart, n.data)
4602
4605
  };
4603
4606
  if (l === "md")
4604
4607
  return {
4605
- source: o.data
4608
+ source: n.data
4606
4609
  };
4607
4610
  if (l === "table") {
4608
- if (!Lt(o.data))
4611
+ if (!Lt(n.data))
4609
4612
  return { showPagination: !1 };
4610
4613
  const s = [];
4611
- return o.data[0] && Object.keys(o.data[0]).forEach((a, u) => {
4614
+ return n.data[0] && Object.keys(n.data[0]).forEach((a, u) => {
4612
4615
  s.push({ field: a, label: a });
4613
4616
  }), {
4614
4617
  headers: s,
4615
- list: o.data,
4618
+ list: n.data,
4616
4619
  showPagination: !1
4617
4620
  };
4618
4621
  }
@@ -4622,14 +4625,14 @@ const Pa = /* @__PURE__ */ L(Oa, [["render", Ra], ["__scopeId", "data-v-cc0d8293
4622
4625
  };
4623
4626
  }
4624
4627
  };
4625
- function Ma(e, t, n, o, l, s) {
4626
- const a = Ae, u = On("resize");
4627
- return $n((r(), h(a, {
4628
+ function Ma(e, t, o, n, l, s) {
4629
+ const a = Ae, u = Oo("resize");
4630
+ return $o((r(), h(a, {
4628
4631
  shadow: "never",
4629
4632
  class: "part"
4630
4633
  }, {
4631
4634
  default: i(() => [
4632
- (r(), h(Xe(o.comptype()), Z(de(o.compprops(n.option))), null, 16))
4635
+ (r(), h(Xe(n.comptype()), Z(de(n.compprops(o.option))), null, 16))
4633
4636
  ]),
4634
4637
  _: 1
4635
4638
  })), [
@@ -4652,10 +4655,10 @@ const Da = /* @__PURE__ */ L(La, [["render", Ma], ["__scopeId", "data-v-a5a65cc1
4652
4655
  const t = Q();
4653
4656
  Te(() => {
4654
4657
  });
4655
- const n = e, o = T({});
4658
+ const o = e, n = T({});
4656
4659
  We(() => {
4657
- n.filter?.forEach((p) => {
4658
- p.default !== null && (o.value[p.field] = p.default);
4660
+ o.filter?.forEach((p) => {
4661
+ p.default !== null && (n.value[p.field] = p.default);
4659
4662
  });
4660
4663
  });
4661
4664
  const l = {
@@ -4668,7 +4671,7 @@ const Da = /* @__PURE__ */ L(La, [["render", Ma], ["__scopeId", "data-v-a5a65cc1
4668
4671
  cancelButton: {
4669
4672
  text: "重置"
4670
4673
  }
4671
- }, s = T(1), a = T(n.filter), u = T(n.dataPart), d = g(() => {
4674
+ }, s = T(1), a = T(o.filter), u = T(o.dataPart), d = g(() => {
4672
4675
  let p = t.params.id;
4673
4676
  if (!p) {
4674
4677
  const b = t.path.split("/");
@@ -4676,7 +4679,7 @@ const Da = /* @__PURE__ */ L(La, [["render", Ma], ["__scopeId", "data-v-a5a65cc1
4676
4679
  }
4677
4680
  return "/focusbi_report/view/" + p;
4678
4681
  }), m = (p) => {
4679
- pn.get(d.value, { params: p }).then(({ data: b }) => {
4682
+ po.get(d.value, { params: p }).then(({ data: b }) => {
4680
4683
  a.value = b.filter, u.value = b.dataPart, s.value++;
4681
4684
  });
4682
4685
  };
@@ -4694,9 +4697,9 @@ const Da = /* @__PURE__ */ L(La, [["render", Ma], ["__scopeId", "data-v-a5a65cc1
4694
4697
  class: "part-filter"
4695
4698
  }, {
4696
4699
  default: i(() => [
4697
- c(f(oe), {
4698
- modelValue: f(o),
4699
- "onUpdate:modelValue": b[0] || (b[0] = (_) => Qe(o) ? o.value = _ : null),
4700
+ c(f(ne), {
4701
+ modelValue: f(n),
4702
+ "onUpdate:modelValue": b[0] || (b[0] = (_) => Qe(n) ? n.value = _ : null),
4700
4703
  "form-items": f(a),
4701
4704
  options: l,
4702
4705
  onSubmit: m
@@ -4746,15 +4749,15 @@ const Da = /* @__PURE__ */ L(La, [["render", Ma], ["__scopeId", "data-v-a5a65cc1
4746
4749
  }), Na = {
4747
4750
  __name: "report",
4748
4751
  setup(e) {
4749
- const t = Q(), n = g(() => {
4750
- let o = t.params.id;
4751
- if (!o) {
4752
+ const t = Q(), o = g(() => {
4753
+ let n = t.params.id;
4754
+ if (!n) {
4752
4755
  const l = t.path.split("/");
4753
- o = l[l.length - 1];
4756
+ n = l[l.length - 1];
4754
4757
  }
4755
- return "/focusbi_report/view/" + o;
4758
+ return "/focusbi_report/view/" + n;
4756
4759
  });
4757
- return (o, l) => (r(), h(ke, { "schema-api": f(n) }, {
4760
+ return (n, l) => (r(), h(ke, { "schema-api": f(o) }, {
4758
4761
  default: i((s) => [
4759
4762
  c(ja, Z(de(s)), null, 16)
4760
4763
  ]),
@@ -4762,12 +4765,12 @@ const Da = /* @__PURE__ */ L(La, [["render", Ma], ["__scopeId", "data-v-a5a65cc1
4762
4765
  }, 8, ["schema-api"]));
4763
4766
  }
4764
4767
  }, Va = (e) => c("div", null, [e.test]), Ua = {
4765
- card: Xn,
4766
- form: oe,
4768
+ card: Xo,
4769
+ form: ne,
4767
4770
  table: _e,
4768
4771
  test: Va,
4769
- row: Qn,
4770
- col: Wn
4772
+ row: Qo,
4773
+ col: Wo
4771
4774
  }, qa = {
4772
4775
  card: {
4773
4776
  type: "card",
@@ -4790,18 +4793,18 @@ const Da = /* @__PURE__ */ L(La, [["render", Ma], ["__scopeId", "data-v-a5a65cc1
4790
4793
  }
4791
4794
  };
4792
4795
  function Ha(e) {
4793
- const t = Object.assign({}, e), n = t.type.split(".").reverse(), o = t.span || 24;
4796
+ const t = Object.assign({}, e), o = t.type.split(".").reverse(), n = t.span || 24;
4794
4797
  delete t.span;
4795
4798
  let l = {
4796
4799
  ...t,
4797
- type: n[0]
4800
+ type: o[0]
4798
4801
  };
4799
- for (let s = 1; s < n.length; s++)
4802
+ for (let s = 1; s < o.length; s++)
4800
4803
  l = {
4801
- type: n[s],
4804
+ type: o[s],
4802
4805
  children: [l]
4803
4806
  };
4804
- return l.span = o, ct([l]);
4807
+ return l.span = n, ct([l]);
4805
4808
  }
4806
4809
  function ct(e) {
4807
4810
  const t = {
@@ -4812,51 +4815,51 @@ function ct(e) {
4812
4815
  },
4813
4816
  children: []
4814
4817
  };
4815
- return e.forEach((n) => {
4816
- let o = Object.assign({}, n);
4817
- if (ce(o.props?.style)) {
4818
+ return e.forEach((o) => {
4819
+ let n = Object.assign({}, o);
4820
+ if (ce(n.props?.style)) {
4818
4821
  let a = "";
4819
- Object.keys(o.props?.style).forEach((u) => {
4820
- a += u + ":" + o.props?.style[u] + ";";
4821
- }), o.props.style = a;
4822
+ Object.keys(n.props?.style).forEach((u) => {
4823
+ a += u + ":" + n.props?.style[u] + ";";
4824
+ }), n.props.style = a;
4822
4825
  }
4823
4826
  const l = {
4824
- span: o.span ?? 24,
4827
+ span: n.span ?? 24,
4825
4828
  class: "render-col"
4826
4829
  };
4827
- if (delete o.span, o.type.indexOf(".") > 0) {
4830
+ if (delete n.span, n.type.indexOf(".") > 0) {
4828
4831
  t.children.push({
4829
4832
  type: "col",
4830
4833
  props: l,
4831
- children: Ha(o)
4834
+ children: Ha(n)
4832
4835
  });
4833
4836
  return;
4834
4837
  }
4835
- o = q({
4838
+ n = q({
4836
4839
  props: {}
4837
- }, qa[o.type] || {}, o);
4838
- const s = an(o.children);
4839
- s.length && (o.children = ct(s)), t.children.push({
4840
+ }, qa[n.type] || {}, n);
4841
+ const s = ao(n.children);
4842
+ s.length && (n.children = ct(s)), t.children.push({
4840
4843
  type: "col",
4841
4844
  props: l,
4842
- children: [o]
4845
+ children: [n]
4843
4846
  });
4844
4847
  }), [t];
4845
4848
  }
4846
- function an(e) {
4849
+ function ao(e) {
4847
4850
  return Lt(e) ? e : ce(e) ? [e] : [];
4848
4851
  }
4849
4852
  let Je = {};
4850
- const rn = (e) => {
4853
+ const io = (e) => {
4851
4854
  const t = Ua[e.type] || Je[e.type] || e.type;
4852
- return An(t, e.props, {
4853
- default: () => an(e.children).map((n) => rn(n))
4855
+ return Ao(t, e.props, {
4856
+ default: () => ao(e.children).map((o) => io(o))
4854
4857
  });
4855
- }, Fa = (e) => (Object.keys(Je).length === 0 && (Je = Bn().appContext.components), ct(Object.values(e.schema)).map((n) => rn(n))), Ga = {
4858
+ }, Fa = (e) => (Object.keys(Je).length === 0 && (Je = Bo().appContext.components), ct(Object.values(e.schema)).map((o) => io(o))), Ga = {
4856
4859
  __name: "custom",
4857
4860
  setup(e) {
4858
- const t = T([]), n = (o, l) => (t.value = Rn(o), o);
4859
- return (o, l) => (r(), h(ke, { "schema-handler": n }, {
4861
+ const t = T([]), o = (n, l) => (t.value = Ro(n), n);
4862
+ return (n, l) => (r(), h(ke, { "schema-handler": o }, {
4860
4863
  default: i(() => [
4861
4864
  c(f(Fa), { schema: f(t) }, null, 8, ["schema"])
4862
4865
  ]),
@@ -4869,15 +4872,15 @@ function Tr(e) {
4869
4872
  me = e;
4870
4873
  }
4871
4874
  const Ka = (e) => {
4872
- const t = (n) => {
4873
- const o = "./views/" + n + ".vue";
4874
- return me && me[o] && me[o].default ? me[o].default : (console.error(`自定义组件不存在 ${e.name} ${e.view}`), qe);
4875
+ const t = (o) => {
4876
+ const n = "./views/" + o + ".vue";
4877
+ return me && me[n] && me[n].default ? me[n].default : (console.error(`自定义组件不存在 ${e.name} ${e.view}`), qe);
4875
4878
  };
4876
4879
  if (e.path === "#")
4877
4880
  return qe;
4878
4881
  switch (e.page_type) {
4879
4882
  case J.list:
4880
- return sn;
4883
+ return so;
4881
4884
  case J.form:
4882
4885
  return ze;
4883
4886
  case J.custom:
@@ -4899,8 +4902,8 @@ function za(e) {
4899
4902
  function Ja(e) {
4900
4903
  return (e.path + e.name).split("/").filter((t) => t).join("_");
4901
4904
  }
4902
- const cn = (e) => {
4903
- const t = e.type !== F.page, n = {
4905
+ const ro = (e) => {
4906
+ const t = e.type !== F.page, o = {
4904
4907
  path: za(e),
4905
4908
  name: e.id + "_" + Ja(e) + "_" + e.path.replaceAll("/", "_"),
4906
4909
  component: Ka(e),
@@ -4915,13 +4918,13 @@ const cn = (e) => {
4915
4918
  keepAlive: !1,
4916
4919
  role: e.role
4917
4920
  },
4918
- children: e.children ? e.children.map((o) => cn(o)) : []
4921
+ children: e.children ? e.children.map((n) => ro(n)) : []
4919
4922
  };
4920
4923
  if (e.page_type === J.entity) {
4921
- const o = e.path + "/list", l = e.path + "/form", s = e.path + "/:id", a = [{
4922
- path: o,
4924
+ const n = e.path + "/list", l = e.path + "/form", s = e.path + "/:id", a = [{
4925
+ path: n,
4923
4926
  name: e.name + "列表" + e.id,
4924
- component: sn,
4927
+ component: so,
4925
4928
  meta: {
4926
4929
  id: e.id + 99999,
4927
4930
  title: "列表",
@@ -4958,69 +4961,69 @@ const cn = (e) => {
4958
4961
  path: e.path
4959
4962
  }
4960
4963
  }];
4961
- n.children = [...a, ...n.children];
4964
+ o.children = [...a, ...o.children];
4962
4965
  }
4963
- if (n.children && n.children.length > 0) {
4964
- let o = !0;
4965
- if (n.children.forEach((l) => {
4966
- l.meta && !l.meta.hidden && (o = !1);
4967
- }), n.meta && (n.meta.menuType = t ? F.dir : F.hidden), o) {
4968
- n.meta && (n.meta.menuType = F.menu);
4966
+ if (o.children && o.children.length > 0) {
4967
+ let n = !0;
4968
+ if (o.children.forEach((l) => {
4969
+ l.meta && !l.meta.hidden && (n = !1);
4970
+ }), o.meta && (o.meta.menuType = t ? F.dir : F.hidden), n) {
4971
+ o.meta && (o.meta.menuType = F.menu);
4969
4972
  let l = "/";
4970
- for (let s = 0; s < n.children.length; s++)
4971
- if (n.children[s].path.indexOf("/:") === -1) {
4972
- l = n.children[s].path;
4973
+ for (let s = 0; s < o.children.length; s++)
4974
+ if (o.children[s].path.indexOf("/:") === -1) {
4975
+ l = o.children[s].path;
4973
4976
  break;
4974
4977
  }
4975
- n.redirect = l, n.path = "/" + e.id + "_DIR" + n.redirect.replaceAll("/", "_").toUpperCase();
4978
+ o.redirect = l, o.path = "/" + e.id + "_DIR" + o.redirect.replaceAll("/", "_").toUpperCase();
4976
4979
  }
4977
4980
  }
4978
- return n;
4981
+ return o;
4979
4982
  }, Wa = (e) => {
4980
4983
  const t = [];
4981
- return e.forEach((n) => {
4982
- const o = {
4983
- id: n.id,
4984
- label: n.label,
4984
+ return e.forEach((o) => {
4985
+ const n = {
4986
+ id: o.id,
4987
+ label: o.label,
4985
4988
  routes: []
4986
4989
  };
4987
- n.routes.forEach((l) => {
4988
- o.routes.push(cn(l));
4989
- }), t.push(o);
4990
+ o.routes.forEach((l) => {
4991
+ n.routes.push(ro(l));
4992
+ }), t.push(n);
4990
4993
  }), t;
4991
4994
  }, Qa = "root", It = (e) => e ? e.split(",").map((t) => t.trim()).filter((t) => !!t) : [], Xa = (e) => {
4992
- const t = typeof e.role == "string" ? e.role : "", n = e.meta && typeof e.meta.role == "string" ? e.meta.role : "", o = [...It(t), ...It(n)];
4993
- return !o.length && e.children && e.children.length ? [] : Array.from(new Set(o));
4994
- }, un = (e) => {
4995
+ const t = typeof e.role == "string" ? e.role : "", o = e.meta && typeof e.meta.role == "string" ? e.meta.role : "", n = [...It(t), ...It(o)];
4996
+ return !n.length && e.children && e.children.length ? [] : Array.from(new Set(n));
4997
+ }, co = (e) => {
4995
4998
  const t = { ...e };
4996
- return e.meta && (t.meta = { ...e.meta }), e.children && e.children.length && (t.children = e.children.map((n) => un(n))), t;
4997
- }, Za = (e, t) => e.length ? t.length ? e.some((n) => t.includes(n)) : !1 : !0, ut = (e = [], t) => t.includes(Qa) ? e.map((n) => un(n)) : e.reduce((n, o) => {
4998
- const l = Xa(o);
4999
+ return e.meta && (t.meta = { ...e.meta }), e.children && e.children.length && (t.children = e.children.map((o) => co(o))), t;
5000
+ }, Za = (e, t) => e.length ? t.length ? e.some((o) => t.includes(o)) : !1 : !0, ut = (e = [], t) => t.includes(Qa) ? e.map((o) => co(o)) : e.reduce((o, n) => {
5001
+ const l = Xa(n);
4999
5002
  if (!Za(l, t))
5000
- return n;
5001
- const s = { ...o };
5002
- if (o.meta && (s.meta = { ...o.meta }), o.children && o.children.length) {
5003
- const a = ut(o.children, t);
5003
+ return o;
5004
+ const s = { ...n };
5005
+ if (n.meta && (s.meta = { ...n.meta }), n.children && n.children.length) {
5006
+ const a = ut(n.children, t);
5004
5007
  if (!a.length)
5005
- return n;
5008
+ return o;
5006
5009
  s.children = a;
5007
5010
  }
5008
- return n.push(s), n;
5011
+ return o.push(s), o;
5009
5012
  }, []), Ya = (e) => {
5010
5013
  const t = globalThis.atob(e);
5011
- let n = "";
5012
- for (let o = 0; o < t.length; o++) {
5013
- const l = t.charCodeAt(o).toString(16).padStart(2, "0");
5014
- n += "%" + l;
5014
+ let o = "";
5015
+ for (let n = 0; n < t.length; n++) {
5016
+ const l = t.charCodeAt(n).toString(16).padStart(2, "0");
5017
+ o += "%" + l;
5015
5018
  }
5016
5019
  try {
5017
- return decodeURIComponent(n);
5020
+ return decodeURIComponent(o);
5018
5021
  } catch {
5019
5022
  return decodeURIComponent(encodeURIComponent(t));
5020
5023
  }
5021
5024
  }, ei = (e) => {
5022
- const t = e.replace(/-/g, "+").replace(/_/g, "/"), n = 4 - t.length % 4, o = t + (n < 4 ? "=".repeat(n) : "");
5023
- return typeof globalThis.atob == "function" ? Ya(o) : typeof Buffer < "u" ? Buffer.from(o, "base64").toString("utf-8") : "";
5025
+ const t = e.replace(/-/g, "+").replace(/_/g, "/"), o = 4 - t.length % 4, n = t + (o < 4 ? "=".repeat(o) : "");
5026
+ return typeof globalThis.atob == "function" ? Ya(n) : typeof Buffer < "u" ? Buffer.from(n, "base64").toString("utf-8") : "";
5024
5027
  }, ti = (e) => {
5025
5028
  if (!e)
5026
5029
  return null;
@@ -5028,28 +5031,28 @@ const cn = (e) => {
5028
5031
  if (t.length < 2)
5029
5032
  return null;
5030
5033
  try {
5031
- const n = ei(t[1]);
5032
- return n ? JSON.parse(n) : null;
5034
+ const o = ei(t[1]);
5035
+ return o ? JSON.parse(o) : null;
5033
5036
  } catch {
5034
5037
  return null;
5035
5038
  }
5036
- }, dn = (e) => {
5039
+ }, uo = (e) => {
5037
5040
  const t = ti(e);
5038
- return (t && typeof t.role == "string" ? t.role : "").split(",").map((o) => o.trim()).filter((o) => !!o);
5041
+ return (t && typeof t.role == "string" ? t.role : "").split(",").map((n) => n.trim()).filter((n) => !!n);
5039
5042
  };
5040
- function ni(e) {
5041
- e.beforeEach(async (t, n, o) => {
5042
- if (on().indexOf(t.path) !== -1) {
5043
- o();
5043
+ function oi(e) {
5044
+ e.beforeEach(async (t, o, n) => {
5045
+ if (no().indexOf(t.path) !== -1) {
5046
+ n();
5044
5047
  return;
5045
5048
  }
5046
5049
  if (la()) {
5047
- o();
5050
+ n();
5048
5051
  return;
5049
5052
  }
5050
5053
  const l = N(D);
5051
5054
  await l.info();
5052
- const s = await l.loadRemoteRoutes(), a = Wa(s), u = dn(ge()), d = a.map((m) => {
5055
+ const s = await l.loadRemoteRoutes(), a = Wa(s), u = uo(ge()), d = a.map((m) => {
5053
5056
  const p = ut(m.routes, u);
5054
5057
  return {
5055
5058
  ...m,
@@ -5060,28 +5063,28 @@ function ni(e) {
5060
5063
  m.routes.forEach((p) => {
5061
5064
  e.addRoute({
5062
5065
  path: "/",
5063
- component: nn,
5066
+ component: oo,
5064
5067
  children: [p]
5065
5068
  });
5066
5069
  });
5067
- }), e.addRoute({ name: "404", path: "/:pathMatch(.*)*", redirect: "/404", hidden: !0 }), l.updateRemoteRouter(d), await e.replace(t), o();
5070
+ }), e.addRoute({ name: "404", path: "/:pathMatch(.*)*", redirect: "/404", hidden: !0 }), l.updateRemoteRouter(d), await e.replace(t), n();
5068
5071
  });
5069
5072
  }
5070
- function oi(e) {
5071
- e.beforeEach(async (t, n, o) => {
5073
+ function ni(e) {
5074
+ e.beforeEach(async (t, o, n) => {
5072
5075
  const s = [V(D).title || ""], a = t.matched.length;
5073
5076
  for (let u = a; u > a - 3; u--) {
5074
5077
  const d = t.matched[u - 1];
5075
5078
  d?.meta?.title && s.push(d.meta.title + "");
5076
5079
  }
5077
- s.length > 1 && (document.title = s.reverse().join("-")), o();
5078
- }), e.afterEach(async (t, n, o) => {
5080
+ s.length > 1 && (document.title = s.reverse().join("-")), n();
5081
+ }), e.afterEach(async (t, o, n) => {
5079
5082
  const l = Y(D);
5080
5083
  Object.keys(t.meta).length > 0 && await l.setCurrentMeta(t.meta);
5081
5084
  });
5082
5085
  }
5083
5086
  function li(e) {
5084
- ca(e), oa(e), ni(e), oi(e);
5087
+ ca(e), na(e), oi(e), ni(e);
5085
5088
  }
5086
5089
  li(le);
5087
5090
  function si() {
@@ -5091,7 +5094,7 @@ function ai() {
5091
5094
  return N(D).expired;
5092
5095
  }
5093
5096
  function Ct(e) {
5094
- Xo({
5097
+ Xn({
5095
5098
  message: e,
5096
5099
  type: "error",
5097
5100
  duration: 5 * 1e3,
@@ -5107,7 +5110,7 @@ const ii = {
5107
5110
  }, ri = {
5108
5111
  onFulfilled(e) {
5109
5112
  if (!(e.config?.notHoldApiErr !== void 0 && e.config?.notHoldApiErr === !0) && e.data.code !== 0) {
5110
- const o = e.data.message || `接口请求错误 ${e.config.method}::${e.config.url?.split("?")[0]}`;
5113
+ const n = e.data.message || `接口请求错误 ${e.config.method}::${e.config.url?.split("?")[0]}`;
5111
5114
  if (e.data.code === 401) {
5112
5115
  if (ai())
5113
5116
  return;
@@ -5122,17 +5125,17 @@ const ii = {
5122
5125
  });
5123
5126
  return;
5124
5127
  } else
5125
- Ct(o);
5126
- return Promise.reject(o);
5128
+ Ct(n);
5129
+ return Promise.reject(n);
5127
5130
  }
5128
- let n = e.data?.data?._message_box;
5129
- return n !== void 0 && (Ze(n) && (n = {
5131
+ let o = e.data?.data?._message_box;
5132
+ return o !== void 0 && (Ze(o) && (o = {
5130
5133
  message: e.data?.data?._message_box
5131
5134
  }), wt({
5132
5135
  title: "提示",
5133
5136
  type: "success",
5134
5137
  grouping: !0,
5135
- ...n
5138
+ ...o
5136
5139
  })), e.data;
5137
5140
  },
5138
5141
  onRejected(e) {
@@ -5140,7 +5143,7 @@ const ii = {
5140
5143
  }
5141
5144
  }, ci = [
5142
5145
  {
5143
- request: Yo,
5146
+ request: Yn,
5144
5147
  response: el
5145
5148
  },
5146
5149
  {
@@ -5149,27 +5152,27 @@ const ii = {
5149
5152
  }
5150
5153
  ];
5151
5154
  function dt(e = {}) {
5152
- const t = Re.axios || {}, n = q(t, e || {}), o = Ye.create({
5153
- ...n
5155
+ const t = Re.axios || {}, o = q(t, e || {}), n = Ye.create({
5156
+ ...o
5154
5157
  // adapter: (c) => cacheAdapter(c, defaultAxios)
5155
5158
  });
5156
5159
  return ci.forEach((l) => {
5157
- o.interceptors.request.use(l.request.onFulfilled, l.request.onRejected), o.interceptors.response.use(l.response.onFulfilled, l.response.onRejected);
5158
- }), o;
5160
+ n.interceptors.request.use(l.request.onFulfilled, l.request.onRejected), n.interceptors.response.use(l.response.onFulfilled, l.response.onRejected);
5161
+ }), n;
5159
5162
  }
5160
- const pn = dt(), ui = {
5163
+ const po = dt(), ui = {
5161
5164
  beforeMount(e, t) {
5162
- e.clickOutsideEvent = function(n) {
5163
- e === n.target || e.contains(n.target) || t.value(n, e);
5165
+ e.clickOutsideEvent = function(o) {
5166
+ e === o.target || e.contains(o.target) || t.value(o, e);
5164
5167
  }, document.body.addEventListener("click", e.clickOutsideEvent);
5165
5168
  },
5166
5169
  unmounted(e) {
5167
5170
  document.body.removeEventListener("click", e.clickOutsideEvent);
5168
5171
  }
5169
- }, se = Eo(), di = {
5172
+ }, se = En(), di = {
5170
5173
  mounted: (e, t) => {
5171
- e !== null && (t.value, e.oncontextmenu = (n) => {
5172
- n.preventDefault(), n.stopPropagation(), n.cancelBubble = !0, t.value && se.emit("right-click", { event: n, data: t.value });
5174
+ e !== null && (t.value, e.oncontextmenu = (o) => {
5175
+ o.preventDefault(), o.stopPropagation(), o.cancelBubble = !0, t.value && se.emit("right-click", { event: o, data: t.value });
5173
5176
  });
5174
5177
  }
5175
5178
  }, pi = {
@@ -5177,36 +5180,36 @@ const pn = dt(), ui = {
5177
5180
  }
5178
5181
  };
5179
5182
  function Tt(e, t) {
5180
- let n = e[`offset${t}`], o = e.offsetParent;
5181
- for (; o; )
5182
- n += o[`offset${t}`], o = o.offsetParent;
5183
- return n;
5183
+ let o = e[`offset${t}`], n = e.offsetParent;
5184
+ for (; n; )
5185
+ o += n[`offset${t}`], n = n.offsetParent;
5186
+ return o;
5184
5187
  }
5185
5188
  const mi = {
5186
5189
  mounted: (e, t) => {
5187
5190
  if (e === null || !t.value.dev)
5188
5191
  return;
5189
- let n = e;
5192
+ let o = e;
5190
5193
  if (t.value.parent)
5191
5194
  for (let d = 0; d < t.value.parent; d++)
5192
- n.parentElement && (n = n.parentElement);
5193
- n.classList.add("devtool-hover");
5194
- const o = document.createElement("i");
5195
- o.className = "devtool-item-wrapper", n.onmouseover = () => {
5196
- o.style.height = n.offsetHeight + 30 + "px", o.style.width = n.offsetWidth + 30 + "px", o.style.top = Tt(n, "Top") - 15 + "px", o.style.left = Tt(n, "Left") - 15 + "px";
5195
+ o.parentElement && (o = o.parentElement);
5196
+ o.classList.add("devtool-hover");
5197
+ const n = document.createElement("i");
5198
+ n.className = "devtool-item-wrapper", o.onmouseover = () => {
5199
+ n.style.height = o.offsetHeight + 30 + "px", n.style.width = o.offsetWidth + 30 + "px", n.style.top = Tt(o, "Top") - 15 + "px", n.style.left = Tt(o, "Left") - 15 + "px";
5197
5200
  };
5198
5201
  const l = document.createElement("span");
5199
5202
  l.className = "dev-action-edit", l.title = "编辑";
5200
5203
  const s = document.createElement("i");
5201
5204
  s.className = "iconfont ra-editor1", l.appendChild(s), l.onclick = (d) => {
5202
5205
  se.emit("dev-action", { event: d, data: { type: "edit", devId: t.value.devId } });
5203
- }, o.appendChild(l);
5206
+ }, n.appendChild(l);
5204
5207
  const a = document.createElement("span");
5205
5208
  a.className = "dev-action-del", a.title = "删除";
5206
5209
  const u = document.createElement("i");
5207
5210
  u.className = "iconfont ra-cut", a.appendChild(u), a.onclick = (d) => {
5208
5211
  se.emit("dev-action", { event: d, data: { type: "del", devId: t.value.devId } });
5209
- }, o.appendChild(a), n.insertBefore(o, n.firstChild);
5212
+ }, n.appendChild(a), o.insertBefore(n, o.firstChild);
5210
5213
  }
5211
5214
  }, fi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5212
5215
  __proto__: null,
@@ -5216,57 +5219,57 @@ const mi = {
5216
5219
  rightClick: di
5217
5220
  }, Symbol.toStringTag, { value: "Module" }));
5218
5221
  let Ie;
5219
- const mn = [], Ot = /* @__PURE__ */ new Set(), $t = (e) => typeof e.name == "string" ? e.name : e.path;
5222
+ const mo = [], Ot = /* @__PURE__ */ new Set(), $t = (e) => typeof e.name == "string" ? e.name : e.path;
5220
5223
  function Or(e) {
5221
5224
  return e ? dt(q(Re.axios, e)) : Ie;
5222
5225
  }
5223
5226
  function $r(e) {
5224
- const t = q(Re, e), n = Pn(Fo), o = ki(t), l = t.plugins || [];
5225
- l.unshift(o), l.forEach((d) => {
5226
- gi(n, d);
5227
- }), t?.mock && Qo(), Ie = dt(t.axios), Vo(n);
5227
+ const t = q(Re, e), o = Po(Fn), n = ki(t), l = t.plugins || [];
5228
+ l.unshift(n), l.forEach((d) => {
5229
+ gi(o, d);
5230
+ }), t?.mock && Qn(), Ie = dt(t.axios), Vn(o);
5228
5231
  const s = Y(D), a = V(D), u = N(D);
5229
- Po(Ie), a.updateSettings(e?.settings || {}), s.setBaseAPI(t?.axios.baseURL), n.config.globalProperties.$http = Ie, n.config.globalProperties.$router = le, window.App = n, window.OmsOptions = t, So(() => ({
5232
+ Pn(Ie), a.updateSettings(e?.settings || {}), s.setBaseAPI(t?.axios.baseURL), o.config.globalProperties.$http = Ie, o.config.globalProperties.$router = le, window.App = o, window.OmsOptions = t, Sn(() => ({
5230
5233
  "X-Token": ge()
5231
5234
  })), ue(() => u.token, () => {
5232
- fn();
5233
- }, { immediate: !0 }), le.isReady().then(() => n.mount("#app"));
5235
+ fo();
5236
+ }, { immediate: !0 }), le.isReady().then(() => o.mount("#app"));
5234
5237
  }
5235
5238
  function hi(e, t = {}) {
5236
- Object.keys(t).forEach((n) => {
5237
- e.component(n, t[n]);
5239
+ Object.keys(t).forEach((o) => {
5240
+ e.component(o, t[o]);
5238
5241
  });
5239
5242
  }
5240
- function fn() {
5241
- const e = dn(ge()), t = ut(mn, e), n = N(D), o = new Set(n.customRouter.map((s) => $t(s))), l = t.filter((s) => {
5243
+ function fo() {
5244
+ const e = uo(ge()), t = ut(mo, e), o = N(D), n = new Set(o.customRouter.map((s) => $t(s))), l = t.filter((s) => {
5242
5245
  const a = $t(s);
5243
- return Ot.has(a) || o.has(a) ? !1 : (Ot.add(a), !0);
5246
+ return Ot.has(a) || n.has(a) ? !1 : (Ot.add(a), !0);
5244
5247
  });
5245
5248
  l.forEach((s) => {
5246
5249
  le.addRoute(s);
5247
- }), l.length && n.setCustomRoutes(l);
5250
+ }), l.length && o.setCustomRoutes(l);
5248
5251
  }
5249
5252
  function bi(e = []) {
5250
- mn.push(...e), fn();
5253
+ mo.push(...e), fo();
5251
5254
  }
5252
5255
  function yi(e, t) {
5253
- t.forEach((n) => {
5254
- ce(n) && (n = [n]), e.use(...n);
5256
+ t.forEach((o) => {
5257
+ ce(o) && (o = [o]), e.use(...o);
5255
5258
  });
5256
5259
  }
5257
5260
  function _i(e, t = {}) {
5258
- Object.keys(t).forEach((n) => {
5259
- e.directive(n, t[n]);
5261
+ Object.keys(t).forEach((o) => {
5262
+ e.directive(o, t[o]);
5260
5263
  });
5261
5264
  }
5262
5265
  function vi(e = {}) {
5263
5266
  const t = ["app", "settings", "user"];
5264
- Object.keys(e).forEach((n) => {
5265
- if (t.indexOf(n) !== -1) {
5266
- console.warn(`storeModule name [${n}] is use by base, please change it!`);
5267
+ Object.keys(e).forEach((o) => {
5268
+ if (t.indexOf(o) !== -1) {
5269
+ console.warn(`storeModule name [${o}] is use by base, please change it!`);
5267
5270
  return;
5268
5271
  }
5269
- console.warn("[store] plugin storeModules are not supported under Pinia. Ignored:", n);
5272
+ console.warn("[store] plugin storeModules are not supported under Pinia. Ignored:", o);
5270
5273
  });
5271
5274
  }
5272
5275
  function gi(e, t) {
@@ -5274,27 +5277,27 @@ function gi(e, t) {
5274
5277
  }
5275
5278
  function ki(e) {
5276
5279
  return {
5277
- components: { VIcon: xo },
5280
+ components: { VIcon: xn },
5278
5281
  directives: fi,
5279
5282
  use: [
5280
5283
  le,
5281
- [Jn, { locale: Mt, ...e.settings?.ElementPlus }]
5284
+ [Jo, { locale: Mt, ...e.settings?.ElementPlus }]
5282
5285
  ]
5283
5286
  };
5284
5287
  }
5285
5288
  export {
5286
- ln as BaseSso,
5289
+ lo as BaseSso,
5287
5290
  qe as Container,
5288
5291
  Cr as DingTalk,
5289
5292
  Ir as Github,
5290
- nn as Layout,
5293
+ oo as Layout,
5291
5294
  F as MenuType,
5292
- Xo as Message,
5295
+ Xn as Message,
5293
5296
  wt as MessageBox,
5294
5297
  J as PageType,
5295
5298
  ia as allSso,
5296
- jo as appState,
5297
- No as builderSchemaState,
5299
+ jn as appState,
5300
+ Nn as builderSchemaState,
5298
5301
  $r as createAdmin,
5299
5302
  se as eventBus,
5300
5303
  tl as getCmp,
@@ -5304,11 +5307,11 @@ export {
5304
5307
  D as pinia,
5305
5308
  Tr as regViews,
5306
5309
  Er as setCmp,
5307
- Po as setHttp,
5308
- Mo as settings,
5309
- Vo as setupStore,
5310
+ Pn as setHttp,
5311
+ Mn as settings,
5312
+ Vn as setupStore,
5310
5313
  Wa as transRemoteModules,
5311
- os as useAestheticMode,
5314
+ ns as useAestheticMode,
5312
5315
  Y as useAppStore,
5313
5316
  xr as useBuilderSchemaStore,
5314
5317
  Or as useHttp,