@okiss/oms 0.0.105 → 0.0.106

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,22 +1,22 @@
1
1
  import { Fragment as e, Transition as t, TransitionGroup as n, computed as r, createApp as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, defineComponent as d, getCurrentInstance as f, guardReactiveProps as p, h as m, isRef as h, mergeProps as g, normalizeClass as _, normalizeProps as v, normalizeStyle as y, onBeforeMount as b, onMounted as x, onUnmounted as S, openBlock as C, provide as w, ref as T, renderList as E, renderSlot as D, resolveComponent as O, resolveDirective as ee, resolveDynamicComponent as te, toDisplayString as k, toRaw as ne, toRefs as re, unref as A, watch as j, withCtx as M, withDirectives as ie, withKeys as ae, withModifiers as oe } from "vue";
2
2
  import { Cache as se, addNewStyle as ce, addNewStyleTag as le, applyDocumentTheme as ue, compactObject as de, createIFrame as fe, dispatchThemeChange as pe, effectDataTrans as me, getQueryParam as he, isArray as ge, isExternal as _e, isObject as N, isString as ve, logGroup as ye, normalizeTheme as be, obj2Param as xe, queryParams as Se, showEleByClassName as Ce, strVarReplace as P, waterMarker as we } from "@okiss/utils";
3
- import { createPinia as Te, defineStore as Ee } from "pinia";
4
- import F from "js-cookie";
5
- import De from "element-plus/es/locale/lang/zh-cn";
6
- import Oe, { cloneDeep as I, get as L, isObject as ke, merge as R, unset as Ae } from "lodash";
7
- import je from "mockjs";
8
- import Me from "axios";
9
- import Ne, { ElCard as Pe, ElCol as Fe, ElMessage as Ie, ElMessageBox as Le, ElRow as Re } from "element-plus";
3
+ import { createRouter as Te, createWebHashHistory as Ee, onBeforeRouteLeave as De, onBeforeRouteUpdate as Oe, useRoute as F, useRouter as ke } from "vue-router";
4
+ import { createPinia as Ae, defineStore as je } from "pinia";
5
+ import I from "js-cookie";
6
+ import Me from "element-plus/es/locale/lang/zh-cn";
7
+ import Ne, { cloneDeep as L, get as R, isObject as Pe, merge as z, unset as Fe } from "lodash";
8
+ import Ie from "mockjs";
9
+ import Le from "axios";
10
+ import Re, { ElCard as ze, ElCol as Be, ElMessage as Ve, ElMessageBox as He, ElRow as Ue } from "element-plus";
10
11
  import "element-plus/theme-chalk/src/index.scss";
11
12
  import "element-plus/theme-chalk/src/dark/css-vars.scss";
12
13
  import "dayjs/locale/zh-cn";
13
- import ze from "nprogress";
14
+ import We from "nprogress";
14
15
  import "nprogress/nprogress.css";
15
- import { JsonView as Be, VBtn as Ve, VChart as He, VForm as z, VIcon as Ue, VTable as B, setUploadHeaderHandle as We } from "@okiss/vbtf";
16
- import { ElAlert as Ge, ElAside as Ke, ElAvatar as qe, ElBacktop as Je, ElBreadcrumb as Ye, ElBreadcrumbItem as Xe, ElButton as V, ElCard as Ze, ElCol as Qe, ElContainer as $e, ElDivider as et, ElDrawer as tt, ElDropdown as nt, ElDropdownItem as rt, ElDropdownMenu as it, ElForm as at, ElFormItem as ot, ElIcon as st, ElImage as ct, ElInput as lt, ElMain as ut, ElMenu as dt, ElMenuItem as ft, ElOption as pt, ElOptionGroup as mt, ElRow as H, ElScrollbar as ht, ElSelect as gt, ElSubMenu as _t, ElTooltip as vt, ElTree as yt } from "element-plus/es";
16
+ import { JsonView as Ge, VBtn as Ke, VChart as qe, VForm as B, VIcon as Je, VTable as V, setUploadHeaderHandle as Ye } from "@okiss/vbtf";
17
+ import { ElAlert as Xe, ElAside as Ze, ElAvatar as Qe, ElBacktop as $e, ElBreadcrumb as et, ElBreadcrumbItem as tt, ElButton as H, ElCard as nt, ElCol as rt, ElContainer as it, ElDivider as at, ElDrawer as ot, ElDropdown as st, ElDropdownItem as ct, ElDropdownMenu as lt, ElForm as ut, ElFormItem as dt, ElIcon as ft, ElImage as pt, ElInput as mt, ElMain as ht, ElMenu as gt, ElMenuItem as _t, ElOption as vt, ElOptionGroup as yt, ElRow as U, ElScrollbar as bt, ElSelect as xt, ElSubMenu as St, ElTooltip as Ct, ElTree as wt } from "element-plus/es";
17
18
  import "element-plus/es/components/base/style/css";
18
19
  import "element-plus/es/components/alert/style/css";
19
- import { createRouter as bt, createWebHashHistory as xt, onBeforeRouteLeave as St, onBeforeRouteUpdate as Ct, useRoute as U, useRouter as wt } from "vue-router";
20
20
  import "element-plus/es/components/row/style/css";
21
21
  import "element-plus/es/components/col/style/css";
22
22
  import "element-plus/es/components/card/style/css";
@@ -76,14 +76,14 @@ String.prototype.format || (String.prototype.format = function() {
76
76
  //#region src/utils/token.ts
77
77
  var Ft = "oms:token";
78
78
  function W() {
79
- return F.get(Ft) || "";
79
+ return I.get(Ft) || "";
80
80
  }
81
81
  function It(e) {
82
82
  let t = G(J), n = new Date((/* @__PURE__ */ new Date()).getTime() + (t.tokenExpire || 1440 * 60 * 1e3));
83
- return F.set(Ft, e, { expires: n });
83
+ return I.set(Ft, e, { expires: n });
84
84
  }
85
85
  function Lt() {
86
- return F.remove(Ft);
86
+ return I.remove(Ft);
87
87
  }
88
88
  //#endregion
89
89
  //#region src/store/http.ts
@@ -114,7 +114,7 @@ var Vt = {
114
114
  ElementPlus: {
115
115
  size: "default",
116
116
  zIndex: 3e3,
117
- locale: De
117
+ locale: Me
118
118
  },
119
119
  nav: [],
120
120
  whiteRoutes: ["/login"],
@@ -133,10 +133,10 @@ var Vt = {
133
133
  settings: Ht,
134
134
  plugins: [],
135
135
  mock: !1
136
- }, Wt = I(Ht), G = Ee("settings", {
136
+ }, Wt = L(Ht), G = je("settings", {
137
137
  state: () => ({ ...Wt }),
138
138
  actions: { updateSettings(e) {
139
- R(this, e);
139
+ z(this, e);
140
140
  } }
141
141
  }), Gt = {
142
142
  name: "",
@@ -152,7 +152,7 @@ var Vt = {
152
152
  path: "",
153
153
  env: "",
154
154
  expired: !1
155
- }, Kt = (e) => typeof e.name == "string" ? e.name : e.path, K = Ee("user", {
155
+ }, Kt = (e) => typeof e.name == "string" ? e.name : e.path, K = je("user", {
156
156
  state: () => ({ ...Gt }),
157
157
  actions: {
158
158
  updateToken(e) {
@@ -226,7 +226,7 @@ var Vt = {
226
226
  value: t.data?.env
227
227
  });
228
228
  let r = t.data?.website || {};
229
- G().updateSettings(r), !F.get("username") && F.set("username", t.data?.name), e(!0);
229
+ G().updateSettings(r), !I.get("username") && I.set("username", t.data?.name), e(!0);
230
230
  }).catch((e) => t(e));
231
231
  });
232
232
  },
@@ -251,11 +251,11 @@ function Jt() {
251
251
  if (typeof window > "u") return;
252
252
  let e = window.localStorage.getItem(qt);
253
253
  if (e !== null) return e === "1";
254
- let t = F.get(qt);
254
+ let t = I.get(qt);
255
255
  if (t !== void 0) return !!t;
256
256
  }
257
257
  function Yt(e) {
258
- typeof window < "u" && window.localStorage.setItem(qt, e ? "1" : "0"), F.set(qt, e ? "1" : "0");
258
+ typeof window < "u" && window.localStorage.setItem(qt, e ? "1" : "0"), I.set(qt, e ? "1" : "0");
259
259
  }
260
260
  var Xt = {
261
261
  sidebar: {
@@ -267,7 +267,7 @@ var Xt = {
267
267
  currentRouteMeta: {},
268
268
  builderSchema: {},
269
269
  baseURL: ""
270
- }, q = Ee("app", {
270
+ }, q = je("app", {
271
271
  state: () => ({ ...Xt }),
272
272
  actions: {
273
273
  TOGGLE_SIDEBAR() {
@@ -313,7 +313,7 @@ var Xt = {
313
313
  this.SET_BASE_API(e);
314
314
  }
315
315
  }
316
- }), Zt = { currentCellItem: {} }, Qt = Ee("builderSchema", {
316
+ }), Zt = { currentCellItem: {} }, Qt = je("builderSchema", {
317
317
  state: () => ({ ...Zt }),
318
318
  actions: {
319
319
  SET_CURRENT_CELLITEM(e) {
@@ -323,7 +323,7 @@ var Xt = {
323
323
  this.SET_CURRENT_CELLITEM(e);
324
324
  }
325
325
  }
326
- }), J = Te();
326
+ }), J = Ae();
327
327
  function $t(e) {
328
328
  e.use(J);
329
329
  }
@@ -384,12 +384,14 @@ function ln() {
384
384
  var un = /* @__PURE__ */ d({
385
385
  __name: "App",
386
386
  setup(e) {
387
- return ln(), b(() => {
387
+ ln();
388
+ let t = F(), n = r(() => t.matched.map((e) => e.name || e.path).join("|") || t.fullPath);
389
+ return b(() => {
388
390
  let e = document.getElementById("preloader");
389
391
  e !== null && (document.body.removeChild(e), document.getElementById("preloader")?.remove(), ce("test-icon", "//at.alicdn.com/t/font_2246548_zclaqxwmzq8.css"), le(".iconfont {\n font-size: 19px;\n font-style: normal;\n -webkit-font-smoothing: antialiased;\n font-family: iconfont !important;\n }"));
390
392
  }), window?.OmsOptions?.form?.vsPath && w("vsPath", window?.OmsOptions?.form?.vsPath), (e, t) => {
391
- let n = O("router-view");
392
- return C(), a(n);
393
+ let r = O("router-view");
394
+ return C(), a(r, { key: A(n) });
393
395
  };
394
396
  }
395
397
  }), dn = /* @__PURE__ */ function(e) {
@@ -862,7 +864,7 @@ var un = /* @__PURE__ */ d({
862
864
  }
863
865
  }
864
866
  ],
865
- normalButton: [...Oe.cloneDeep(pn), {
867
+ normalButton: [...Ne.cloneDeep(pn), {
866
868
  type: "jump",
867
869
  target: "/user/form",
868
870
  props: {
@@ -1023,23 +1025,23 @@ function vn(e) {
1023
1025
  function yn() {
1024
1026
  Object.keys(gn).forEach((e) => {
1025
1027
  let t = gn[e], n = vn(t);
1026
- je.mock(n, t.method, function(e) {
1028
+ Ie.mock(n, t.method, function(e) {
1027
1029
  let { url: n, type: r, body: i } = e, a = Se(n), o = i ? JSON.parse(i) : {}, s = t.response({
1028
1030
  query: a,
1029
1031
  data: o
1030
- }), c = je.mock(s);
1032
+ }), c = Ie.mock(s);
1031
1033
  return ye(n, {
1032
1034
  type: r,
1033
1035
  query: a,
1034
1036
  data: o,
1035
1037
  response: c
1036
- }), je.mock(c);
1038
+ }), Ie.mock(c);
1037
1039
  });
1038
1040
  }), console.log("%c ApiMock is stared! ", "background: #606060; color: #fff; padding: 4px 5px; border-radius: 1px;");
1039
1041
  }
1040
1042
  //#endregion
1041
1043
  //#region src/plugins/element-plus.ts
1042
- var bn = Ie, xn = Le, Sn = Ne, Cn = Me.CancelToken, wn = {
1044
+ var bn = Ve, xn = He, Sn = Re, Cn = Le.CancelToken, wn = {
1043
1045
  taskList: {},
1044
1046
  cacheList: /* @__PURE__ */ new Map(),
1045
1047
  uniqueId(e) {
@@ -1097,16 +1099,16 @@ var bn = Ie, xn = Le, Sn = Ne, Cn = Me.CancelToken, wn = {
1097
1099
  };
1098
1100
  //#endregion
1099
1101
  //#region src/router/guard/nprogress.ts
1100
- ze.configure({ showSpinner: !1 });
1102
+ We.configure({ showSpinner: !1 });
1101
1103
  function Dn(e) {
1102
1104
  e.beforeEach((e, t, n) => {
1103
- ze.start(), e.preHash = location.hash.replace("#", ""), n();
1105
+ We.start(), e.preHash = location.hash.replace("#", ""), n();
1104
1106
  }), e.afterEach((e) => {
1105
1107
  let t = K(J);
1106
1108
  e.matched.length > 0 && t.updateState({
1107
1109
  key: "path",
1108
1110
  value: e.matched[e.matched.length - 1].path.replace("(\\d+)", "")
1109
- }), ze.done();
1111
+ }), We.done();
1110
1112
  });
1111
1113
  }
1112
1114
  //#endregion
@@ -1189,7 +1191,7 @@ var jn = class {
1189
1191
  }
1190
1192
  }, Pn = {};
1191
1193
  function Fn() {
1192
- return R(G(J).sso || {}, Pn);
1194
+ return z(G(J).sso || {}, Pn);
1193
1195
  }
1194
1196
  function In() {
1195
1197
  let e = Fn(), t = G(J).activeSsoKey || "";
@@ -1215,7 +1217,7 @@ function Ln(e) {
1215
1217
  return;
1216
1218
  }
1217
1219
  let a = i.flag(), o = K(J);
1218
- if (a && await o.login(ke(a) ? a : { ticket: a })) {
1220
+ if (a && await o.login(Pe(a) ? a : { ticket: a })) {
1219
1221
  n();
1220
1222
  return;
1221
1223
  }
@@ -1264,7 +1266,7 @@ var Vn = /* @__PURE__ */ Z(Rn, [["render", Bn]]), Hn = {
1264
1266
  }
1265
1267
  };
1266
1268
  function Un(e, t, n, r, i, c) {
1267
- let l = Ge;
1269
+ let l = Xe;
1268
1270
  return C(), s("div", null, [i.hasNotice ? (C(), a(l, v(g({ key: 0 }, i.noticeProps)), null, 16)) : o("", !0)]);
1269
1271
  }
1270
1272
  var Wn = /* @__PURE__ */ Z(Hn, [["render", Un]]), Gn = ["innerHTML"], Kn = /* @__PURE__ */ Z(/* @__PURE__ */ d({
@@ -1277,7 +1279,7 @@ var Wn = /* @__PURE__ */ Z(Hn, [["render", Un]]), Gn = ["innerHTML"], Kn = /* @_
1277
1279
  schemaApi: { default: "" }
1278
1280
  },
1279
1281
  setup(t) {
1280
- let n = t, i = q(), c = G(), l = K(), u = U(), d = T(!0), f = T(!1), p = T({}), m = T(""), h = T({}), _ = T([]), y = T(!1), b = T(0), x = r(() => l.env), S = r(() => c);
1282
+ let n = t, i = q(), c = G(), l = K(), u = F(), d = T(!0), f = T(!1), p = T({}), m = T(""), h = T({}), _ = T([]), y = T(!1), b = T(0), x = r(() => l.env), S = r(() => c);
1281
1283
  function w() {
1282
1284
  d.value = !0, f.value = !1, p.value = {}, m.value = "", h.value = {}, _.value = [], y.value = !1;
1283
1285
  }
@@ -1299,7 +1301,7 @@ var Wn = /* @__PURE__ */ Z(Hn, [["render", Un]]), Gn = ["innerHTML"], Kn = /* @_
1299
1301
  ], () => {
1300
1302
  E();
1301
1303
  }, { immediate: !0 }), (t, n) => {
1302
- let r = Ge;
1304
+ let r = Xe;
1303
1305
  return C(), s(e, null, [A(_).length > 0 ? (C(), a(r, {
1304
1306
  key: 0,
1305
1307
  title: `该页面功能对应开发: [ ${A(_).join(", ")} ] 有问题可直接企微反馈`,
@@ -1327,30 +1329,30 @@ var Wn = /* @__PURE__ */ Z(Hn, [["render", Un]]), Gn = ["innerHTML"], Kn = /* @_
1327
1329
  prop: e.orderBy.field,
1328
1330
  order: e.orderBy.mod === "desc" ? "descending" : "ascending"
1329
1331
  };
1330
- e.tableProps = R(e.tableProps, { defaultSort: t });
1332
+ e.tableProps = z(e.tableProps, { defaultSort: t });
1331
1333
  }
1332
- let n = Object.keys(B.props);
1334
+ let n = Object.keys(V.props);
1333
1335
  return Object.keys(e).forEach((t) => {
1334
1336
  n.indexOf(t) === -1 && delete e[t];
1335
1337
  }), e.listApi === void 0 && (e.listApi = `/${t}/list`), e;
1336
1338
  };
1337
1339
  return (e, n) => (C(), a(Kn, { "schema-handler": t }, {
1338
- default: M((e) => [u(A(B), v(p(e)), null, 16)]),
1340
+ default: M((e) => [u(A(V), v(p(e)), null, 16)]),
1339
1341
  _: 1
1340
1342
  }));
1341
1343
  }
1342
1344
  }, Jn = {
1343
1345
  __name: "form",
1344
1346
  setup(e) {
1345
- let t = U(), n = wt(), r = (e, n) => {
1346
- let r = Object.keys(z.props);
1347
+ let t = F(), n = ke(), r = (e, n) => {
1348
+ let r = Object.keys(B.props);
1347
1349
  return Object.keys(e).forEach((n) => {
1348
1350
  if (r.indexOf(n) === -1) {
1349
1351
  delete e[n];
1350
1352
  return;
1351
1353
  }
1352
1354
  /.*Api$/.test(n) && (e[n] = P(e[n], t.params));
1353
- }), e.saveApi === void 0 && (t.params.id === void 0 ? (delete e.getApi, e.saveApi = `/${n}/create`) : (e.saveApi = `/${n}/update/${t.params.id}`, e.getApi ||= `/${n}/get/${t.params.id}`)), e = R({
1355
+ }), e.saveApi === void 0 && (t.params.id === void 0 ? (delete e.getApi, e.saveApi = `/${n}/create`) : (e.saveApi = `/${n}/update/${t.params.id}`, e.getApi ||= `/${n}/get/${t.params.id}`)), e = z({
1354
1356
  saveApi: n + "/save",
1355
1357
  afterSubmit: "goback",
1356
1358
  afterReset: "goback",
@@ -1362,7 +1364,7 @@ var Wn = /* @__PURE__ */ Z(Hn, [["render", Un]]), Gn = ["innerHTML"], Kn = /* @_
1362
1364
  method: "get",
1363
1365
  params: { path: t.fullPath }
1364
1366
  }).then((e) => {
1365
- console.log(e), e.data && (clearInterval(i.value), Le.alert(`${e.data}`, "操作提醒", {
1367
+ console.log(e), e.data && (clearInterval(i.value), He.alert(`${e.data}`, "操作提醒", {
1366
1368
  showClose: !1,
1367
1369
  showCancelButton: !0,
1368
1370
  confirmButtonText: "返回",
@@ -1383,13 +1385,13 @@ var Wn = /* @__PURE__ */ Z(Hn, [["render", Un]]), Gn = ["innerHTML"], Kn = /* @_
1383
1385
  t.query?.goback ? n.push(t.query?.goback) : history.state.back && history.back();
1384
1386
  }
1385
1387
  return (e, t) => (C(), a(Kn, { "schema-handler": r }, {
1386
- default: M((e) => [u(A(z), v(p(e)), null, 16)]),
1388
+ default: M((e) => [u(A(B), v(p(e)), null, 16)]),
1387
1389
  _: 1
1388
1390
  }));
1389
1391
  }
1390
1392
  }, Yn = d({
1391
1393
  name: "VTree",
1392
- components: { VForm: z },
1394
+ components: { VForm: B },
1393
1395
  props: {
1394
1396
  treeApi: {
1395
1397
  type: String,
@@ -1438,7 +1440,7 @@ var Wn = /* @__PURE__ */ Z(Hn, [["render", Un]]), Gn = ["innerHTML"], Kn = /* @_
1438
1440
  type: 0,
1439
1441
  treeData: [],
1440
1442
  formData: {},
1441
- localTreeProps: R({
1443
+ localTreeProps: z({
1442
1444
  "default-expand-all": !0,
1443
1445
  "expand-on-click-node": !1,
1444
1446
  props: {
@@ -1538,7 +1540,7 @@ var Wn = /* @__PURE__ */ Z(Hn, [["render", Un]]), Gn = ["innerHTML"], Kn = /* @_
1538
1540
  style: { color: "#E6A23C" }
1539
1541
  }, er = { class: "card-header" };
1540
1542
  function tr(e, t, n, r, i, d) {
1541
- let f = V, p = yt, m = Ze, h = Qe, _ = O("v-form"), v = H;
1543
+ let f = H, p = wt, m = nt, h = rt, _ = O("v-form"), v = U;
1542
1544
  return C(), a(v, {
1543
1545
  class: "tree-box",
1544
1546
  gutter: 20
@@ -1644,7 +1646,7 @@ var nr = /* @__PURE__ */ Z(Yn, [["render", tr]]), rr = {
1644
1646
  __name: "container",
1645
1647
  setup(e) {
1646
1648
  let t = T(0);
1647
- return Ct(() => {
1649
+ return Oe(() => {
1648
1650
  t.value++;
1649
1651
  }), (e, t) => {
1650
1652
  let n = O("router-view");
@@ -1668,7 +1670,7 @@ var nr = /* @__PURE__ */ Z(Yn, [["render", tr]]), rr = {
1668
1670
  };
1669
1671
  function or(e, t, n) {
1670
1672
  if (n.length === 0) return {};
1671
- let r = R({}, ar);
1673
+ let r = z({}, ar);
1672
1674
  if (r.title.text = e, ve(t)) {
1673
1675
  let e = [], i = Object.keys(n[0]), a = i[0], o = i.filter((e, t) => t > 0), s = t;
1674
1676
  if (t.indexOf(":") > -1) {
@@ -1689,7 +1691,7 @@ function or(e, t, n) {
1689
1691
  e.push(t[a]);
1690
1692
  }), r.xAxis.data = e;
1691
1693
  }
1692
- return N(t) && (r = R(r, t)), console.log(111, r), r;
1694
+ return N(t) && (r = z(r, t)), console.log(111, r), r;
1693
1695
  }
1694
1696
  //#endregion
1695
1697
  //#region src/components/report/NumberPanel.vue
@@ -1713,10 +1715,10 @@ function dr(t, n, r, i, a, o) {
1713
1715
  //#region src/components/report/part.vue?vue&type=script&lang.ts
1714
1716
  var fr = {
1715
1717
  components: {
1716
- Chart: He,
1718
+ Chart: qe,
1717
1719
  Md: Tt,
1718
- Json: Be,
1719
- Table: B,
1720
+ Json: Ge,
1721
+ Table: V,
1720
1722
  Number: /* @__PURE__ */ Z(sr, [["render", dr], ["__scopeId", "data-v-cc0d8293"]]),
1721
1723
  Html: ""
1722
1724
  },
@@ -1755,7 +1757,7 @@ var fr = {
1755
1757
  //#endregion
1756
1758
  //#region src/components/report/part.vue
1757
1759
  function pr(e, t, n, r, i, o) {
1758
- let s = Ze, c = ee("resize");
1760
+ let s = nt, c = ee("resize");
1759
1761
  return ie((C(), a(s, {
1760
1762
  shadow: "never",
1761
1763
  class: "part"
@@ -1777,7 +1779,7 @@ var mr = /* @__PURE__ */ Z(fr, [["render", pr], ["__scopeId", "data-v-a5a65cc1"]
1777
1779
  }
1778
1780
  },
1779
1781
  setup(t) {
1780
- let n = U();
1782
+ let n = F();
1781
1783
  x(() => {});
1782
1784
  let i = t, c = T({});
1783
1785
  b(() => {
@@ -1804,7 +1806,7 @@ var mr = /* @__PURE__ */ Z(fr, [["render", pr], ["__scopeId", "data-v-a5a65cc1"]
1804
1806
  });
1805
1807
  };
1806
1808
  return (t, n) => {
1807
- let r = Ze, i = Qe, g = Ge, v = H;
1809
+ let r = nt, i = rt, g = Xe, v = U;
1808
1810
  return C(), a(v, null, {
1809
1811
  default: M(() => [A(p).length > 0 ? (C(), a(i, {
1810
1812
  key: 0,
@@ -1814,7 +1816,7 @@ var mr = /* @__PURE__ */ Z(fr, [["render", pr], ["__scopeId", "data-v-a5a65cc1"]
1814
1816
  shadow: "never",
1815
1817
  class: "part-filter"
1816
1818
  }, {
1817
- default: M(() => [u(A(z), {
1819
+ default: M(() => [u(A(B), {
1818
1820
  modelValue: A(c),
1819
1821
  "onUpdate:modelValue": n[0] ||= (e) => h(c) ? c.value = e : null,
1820
1822
  "form-items": A(p),
@@ -1854,7 +1856,7 @@ var mr = /* @__PURE__ */ Z(fr, [["render", pr], ["__scopeId", "data-v-a5a65cc1"]
1854
1856
  }), gr = {
1855
1857
  __name: "report",
1856
1858
  setup(e) {
1857
- let t = U(), n = r(() => {
1859
+ let t = F(), n = r(() => {
1858
1860
  let e = t.params.id;
1859
1861
  if (!e) {
1860
1862
  let n = t.path.split("/");
@@ -1868,12 +1870,12 @@ var mr = /* @__PURE__ */ Z(fr, [["render", pr], ["__scopeId", "data-v-a5a65cc1"]
1868
1870
  }, 8, ["schema-api"]));
1869
1871
  }
1870
1872
  }, _r = {
1871
- card: Pe,
1872
- form: z,
1873
- table: B,
1873
+ card: ze,
1874
+ form: B,
1875
+ table: V,
1874
1876
  test: (e) => u("div", null, [e.test]),
1875
- row: Re,
1876
- col: Fe
1877
+ row: Ue,
1878
+ col: Be
1877
1879
  }, vr = {
1878
1880
  card: {
1879
1881
  type: "card",
@@ -1933,7 +1935,7 @@ function br(e) {
1933
1935
  });
1934
1936
  return;
1935
1937
  }
1936
- n = R({ props: {} }, vr[n.type] || {}, n);
1938
+ n = z({ props: {} }, vr[n.type] || {}, n);
1937
1939
  let i = xr(n.children);
1938
1940
  i.length && (n.children = br(i)), t.children.push({
1939
1941
  type: "col",
@@ -2114,7 +2116,7 @@ var jr = (e) => {
2114
2116
  class: "no-redirect"
2115
2117
  }, Fr = ["onClick"];
2116
2118
  function Ir(t, r, i, o, c, l) {
2117
- let d = Xe, f = Ye;
2119
+ let d = tt, f = et;
2118
2120
  return C(), a(f, {
2119
2121
  class: "app-breadcrumb",
2120
2122
  separator: "/"
@@ -2155,7 +2157,7 @@ function zr(e, t, n, r, i, a) {
2155
2157
  }
2156
2158
  var Br = /* @__PURE__ */ Z(Rr, [["render", zr]]), Vr = {};
2157
2159
  function Hr(e, t) {
2158
- let n = H, r = ut, i = Ke, o = $e;
2160
+ let n = U, r = ht, i = Ze, o = it;
2159
2161
  return C(), a(o, { style: {
2160
2162
  width: "100%",
2161
2163
  height: "100%"
@@ -2422,7 +2424,7 @@ var Ur = /* @__PURE__ */ Z(Vr, [["render", Hr], ["__scopeId", "data-v-7c3d697b"]
2422
2424
  }
2423
2425
  ],
2424
2426
  trans(e) {
2425
- let t = I(e);
2427
+ let t = L(e);
2426
2428
  return e.optionType === 0 ? t.props && t.props.selectApi !== void 0 && delete t.props.selectApi : e.optionType === 1 && t.options && delete t.options, delete t.optionType, t;
2427
2429
  }
2428
2430
  }, Jr = {
@@ -2848,7 +2850,7 @@ var ci = {
2848
2850
  type: "select",
2849
2851
  field: "type",
2850
2852
  label: "类型",
2851
- options: I(si)
2853
+ options: L(si)
2852
2854
  },
2853
2855
  {
2854
2856
  type: "input",
@@ -2861,9 +2863,9 @@ var ci = {
2861
2863
  }, li = {
2862
2864
  components: {
2863
2865
  DevLayout: Ur,
2864
- VForm: z,
2865
- VButton: Ve,
2866
- JsonView: Be
2866
+ VForm: B,
2867
+ VButton: Ke,
2868
+ JsonView: Ge
2867
2869
  },
2868
2870
  props: { schema: {
2869
2871
  type: Object,
@@ -2892,7 +2894,7 @@ var ci = {
2892
2894
  tableStruct: "",
2893
2895
  activeName: "1",
2894
2896
  currentCtrlType: "input",
2895
- types: I(si)
2897
+ types: L(si)
2896
2898
  };
2897
2899
  },
2898
2900
  computed: { getSaveSchema() {
@@ -2903,14 +2905,14 @@ var ci = {
2903
2905
  deep: !0,
2904
2906
  immediate: !0,
2905
2907
  handler(e) {
2906
- let t = I(e);
2907
- e.showSubmitButton === !1 && (t.submitButton = !1), e.cancelSubmitButton === !1 && (t.cancelButton = !1), delete t.showSubmitButton, delete t.showCancelButton, Object.keys(t).length > 0 && (this.builderSchema = R(this.builderSchema, { options: t }), this.key++);
2908
+ let t = L(e);
2909
+ e.showSubmitButton === !1 && (t.submitButton = !1), e.cancelSubmitButton === !1 && (t.cancelButton = !1), delete t.showSubmitButton, delete t.showCancelButton, Object.keys(t).length > 0 && (this.builderSchema = z(this.builderSchema, { options: t }), this.key++);
2908
2910
  }
2909
2911
  },
2910
2912
  ctrlOptions: {
2911
2913
  deep: !0,
2912
2914
  handler(e) {
2913
- let t = L(this.builderSchema, this.activeIndex);
2915
+ let t = R(this.builderSchema, this.activeIndex);
2914
2916
  if (!t) return;
2915
2917
  let n = t ? t.type : "", r = this.ctrlMap[n], i = r.trans ? r.trans(e) : e;
2916
2918
  if (i && Object.keys(i).length > 0) {
@@ -2924,10 +2926,10 @@ var ci = {
2924
2926
  },
2925
2927
  currentCtrlType: { handler(e) {
2926
2928
  let t = this.ctrlMap[e];
2927
- this.ctrlSchema = I({
2928
- options: I(oi),
2929
- formItems: I(t.builder)
2930
- }), this.ctrlOptions = I(L(this.builderSchema, this.activeIndex)), this.ctrlOptions.type = e, this.ctrlKey++, this.key++;
2929
+ this.ctrlSchema = L({
2930
+ options: L(oi),
2931
+ formItems: L(t.builder)
2932
+ }), this.ctrlOptions = L(R(this.builderSchema, this.activeIndex)), this.ctrlOptions.type = e, this.ctrlKey++, this.key++;
2931
2933
  } }
2932
2934
  },
2933
2935
  beforeCreate() {
@@ -2946,18 +2948,18 @@ var ci = {
2946
2948
  let t = "formItems";
2947
2949
  this.ctrlOptions = {}, this.builderSchema[t] = this.builderSchema[t] || [];
2948
2950
  let n = this.ctrlMap[e];
2949
- this.activeCtrl = n, this.builderSchema[t].push(I(n.default)), this.ctrlSchema = I({
2950
- options: I(oi),
2951
- formItems: I(n.builder)
2951
+ this.activeCtrl = n, this.builderSchema[t].push(L(n.default)), this.ctrlSchema = L({
2952
+ options: L(oi),
2953
+ formItems: L(n.builder)
2952
2954
  }), this.ctrlKey++, this.key++, this.activeIndex = `${t}[${this.builderSchema[t].length - 1}]`, this.activeTab = "ctrl";
2953
2955
  },
2954
2956
  removeOne() {
2955
- Ae(this.builderSchema, this.activeIndex), this.builderSchema = I(de(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
2957
+ Fe(this.builderSchema, this.activeIndex), this.builderSchema = L(de(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
2956
2958
  },
2957
2959
  clicklabel() {
2958
2960
  let e = this.activeIndex;
2959
2961
  if (e.match(this.activeIndexReg)) {
2960
- let t = I(L(this.builderSchema, e)), n = t.type, r = this.ctrlMap[n];
2962
+ let t = L(R(this.builderSchema, e)), n = t.type, r = this.ctrlMap[n];
2961
2963
  if (!r) {
2962
2964
  this.$message({
2963
2965
  type: "warning",
@@ -2965,9 +2967,9 @@ var ci = {
2965
2967
  });
2966
2968
  return;
2967
2969
  }
2968
- this.currentCtrlType = n, this.ctrlOptions = t, this.ctrlSchema = I({
2969
- options: I(oi),
2970
- formItems: I(r.builder)
2970
+ this.currentCtrlType = n, this.ctrlOptions = t, this.ctrlSchema = L({
2971
+ options: L(oi),
2972
+ formItems: L(r.builder)
2971
2973
  }), this.ctrlKey++;
2972
2974
  }
2973
2975
  },
@@ -2986,7 +2988,7 @@ var ci = {
2986
2988
  }
2987
2989
  };
2988
2990
  function ui(t, n, r, i, c, d) {
2989
- let f = O("v-form"), p = et, m = V, h = O("JsonView"), _ = O("VButton"), v = pt, y = gt, b = ot, x = at, S = O("dev-layout");
2991
+ let f = O("v-form"), p = at, m = H, h = O("JsonView"), _ = O("VButton"), v = vt, y = xt, b = dt, x = ut, S = O("dev-layout");
2990
2992
  return C(), a(S, null, {
2991
2993
  main: M(() => [
2992
2994
  c.builderSchema.formItems ? (C(), a(f, g({
@@ -3175,7 +3177,7 @@ var di = /* @__PURE__ */ Z(li, [["render", ui], ["__scopeId", "data-v-875f0171"]
3175
3177
  }
3176
3178
  ],
3177
3179
  trans(e) {
3178
- let t = I(e);
3180
+ let t = L(e);
3179
3181
  return e.optionType === 0 ? t.props && t.props.selectApi !== void 0 && delete t.props.selectApi : e.optionType === 1 && t.options && delete t.options, delete t.optionType, t;
3180
3182
  }
3181
3183
  }, mi = {
@@ -3745,11 +3747,11 @@ var di = /* @__PURE__ */ Z(li, [["render", ui], ["__scopeId", "data-v-875f0171"]
3745
3747
  }
3746
3748
  }, yi = {
3747
3749
  components: {
3748
- JsonView: Be,
3750
+ JsonView: Ge,
3749
3751
  DevLayout: Ur,
3750
- VTable: B,
3751
- VForm: z,
3752
- VButton: Ve
3752
+ VTable: V,
3753
+ VForm: B,
3754
+ VButton: Ke
3753
3755
  },
3754
3756
  props: { schema: {
3755
3757
  type: Object,
@@ -3811,7 +3813,7 @@ var di = /* @__PURE__ */ Z(li, [["render", ui], ["__scopeId", "data-v-875f0171"]
3811
3813
  deep: !0,
3812
3814
  immediate: !0,
3813
3815
  handler(e) {
3814
- this.builderSchema = R(this.builderSchema, e), this.key++, this.updateBuilderSchema();
3816
+ this.builderSchema = z(this.builderSchema, e), this.key++, this.updateBuilderSchema();
3815
3817
  }
3816
3818
  },
3817
3819
  ctrlOptions: {
@@ -3836,13 +3838,13 @@ var di = /* @__PURE__ */ Z(li, [["render", ui], ["__scopeId", "data-v-875f0171"]
3836
3838
  },
3837
3839
  currentCtrlType: { handler(e) {
3838
3840
  let t = this.ctrlMap[this.activeBrick][e];
3839
- this.ctrlSchema = I({
3840
- options: I(gi),
3841
- formItems: I(t.builder)
3841
+ this.ctrlSchema = L({
3842
+ options: L(gi),
3843
+ formItems: L(t.builder)
3842
3844
  });
3843
- let n = L(this.builderSchema, this.activeIndex);
3845
+ let n = R(this.builderSchema, this.activeIndex);
3844
3846
  n.type = e;
3845
- let r = I(n);
3847
+ let r = L(n);
3846
3848
  this.ctrlOptions = r, r.text && (this.ctrlOptions.text = r.text, this.ctrlOptions.props = r.props || {}), this.ctrlKey++, this.key++, this.updateBuilderSchema();
3847
3849
  } }
3848
3850
  },
@@ -3886,18 +3888,18 @@ var di = /* @__PURE__ */ Z(li, [["render", ui], ["__scopeId", "data-v-875f0171"]
3886
3888
  });
3887
3889
  return;
3888
3890
  }
3889
- this.activeCtrl = i[e], this.activeBrick = r, this.ctrlOptions = {}, this.builderSchema[t] = this.builderSchema[t] || [], this.builderSchema[t].push(I(i[e].default)), this.ctrlSchema = I({
3890
- options: I(gi),
3891
- formItems: I(i[e].builder)
3891
+ this.activeCtrl = i[e], this.activeBrick = r, this.ctrlOptions = {}, this.builderSchema[t] = this.builderSchema[t] || [], this.builderSchema[t].push(L(i[e].default)), this.ctrlSchema = L({
3892
+ options: L(gi),
3893
+ formItems: L(i[e].builder)
3892
3894
  }), this.key++, this.ctrlKey++, this.activeIndex = `${t}[${this.builderSchema[t].length - 1}]`, this.activeTab = "ctrl";
3893
3895
  },
3894
3896
  removeOne() {
3895
- Ae(this.builderSchema, this.activeIndex), this.builderSchema = I(de(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
3897
+ Fe(this.builderSchema, this.activeIndex), this.builderSchema = L(de(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
3896
3898
  },
3897
3899
  clicklabel() {
3898
3900
  let e = this.activeIndex, t = e.match(this.activeIndexReg);
3899
3901
  if (t) {
3900
- let n = I(L(this.builderSchema, e));
3902
+ let n = L(R(this.builderSchema, e));
3901
3903
  this.activeBrick = t[1], [
3902
3904
  "normalButton",
3903
3905
  "batchButton",
@@ -3913,9 +3915,9 @@ var di = /* @__PURE__ */ Z(li, [["render", ui], ["__scopeId", "data-v-875f0171"]
3913
3915
  });
3914
3916
  return;
3915
3917
  }
3916
- this.ctrlOptions = n, this.currentCtrlType = r, this.ctrlSchema = I({
3917
- options: I(gi),
3918
- formItems: I(i.builder)
3918
+ this.ctrlOptions = n, this.currentCtrlType = r, this.ctrlSchema = L({
3919
+ options: L(gi),
3920
+ formItems: L(i.builder)
3919
3921
  }), this.ctrlKey++;
3920
3922
  }
3921
3923
  },
@@ -3943,7 +3945,7 @@ var di = /* @__PURE__ */ Z(li, [["render", ui], ["__scopeId", "data-v-875f0171"]
3943
3945
  //#endregion
3944
3946
  //#region src/scaffold/devtool/tableBuilder/index.vue
3945
3947
  function bi(t, n, r, i, c, d) {
3946
- let f = Qe, p = V, m = H, h = O("v-table"), _ = et, v = V, y = O("JsonView"), b = O("VButton"), x = pt, S = gt, w = ot, T = at, D = O("v-form"), ee = O("dev-layout");
3948
+ let f = rt, p = H, m = U, h = O("v-table"), _ = at, v = H, y = O("JsonView"), b = O("VButton"), x = vt, S = xt, w = dt, T = ut, D = O("v-form"), ee = O("dev-layout");
3947
3949
  return C(), a(ee, null, {
3948
3950
  "left-aside": M(() => [u(m, { style: { width: "200px" } }, {
3949
3951
  default: M(() => [
@@ -4140,9 +4142,9 @@ var xi = /* @__PURE__ */ Z(yi, [["render", bi], ["__scopeId", "data-v-cd18f87f"]
4140
4142
  setup(t) {
4141
4143
  let n = T(!1);
4142
4144
  T(1);
4143
- let i = U(), c = q(), l = r(() => c.pages[i.path]);
4145
+ let i = F(), c = q(), l = r(() => c.pages[i.path]);
4144
4146
  return (t, r) => {
4145
- let i = O("VIcon"), c = tt;
4147
+ let i = O("VIcon"), c = ot;
4146
4148
  return C(), s(e, null, [u(i, {
4147
4149
  name: "ra-set",
4148
4150
  onClick: r[0] ||= (e) => n.value = !A(n)
@@ -4248,7 +4250,7 @@ var xi = /* @__PURE__ */ Z(yi, [["render", bi], ["__scopeId", "data-v-cd18f87f"]
4248
4250
  re.value || (re.value = !0, ne.value = "");
4249
4251
  }
4250
4252
  return (e, t) => {
4251
- let n = Qe, r = st, i = vt, f = qe, h = rt, b = it, x = nt, S = tt, T = H;
4253
+ let n = rt, r = ft, i = Ct, f = Qe, h = ct, b = lt, x = st, S = ot, T = U;
4252
4254
  return C(), a(T, {
4253
4255
  ref_key: "header",
4254
4256
  ref: ee,
@@ -4270,7 +4272,7 @@ var xi = /* @__PURE__ */ Z(yi, [["render", bi], ["__scopeId", "data-v-cd18f87f"]
4270
4272
  u(n, { span: 8 }, {
4271
4273
  default: M(() => [c("div", wi, [
4272
4274
  w.value ? (C(), s("div", Ti, [u(Ci)])) : o("", !0),
4273
- c("div", Ei, [u(A(Ve), { buttons: v.value }, null, 8, ["buttons"])]),
4275
+ c("div", Ei, [u(A(Ke), { buttons: v.value }, null, 8, ["buttons"])]),
4274
4276
  u(i, {
4275
4277
  placement: "bottom",
4276
4278
  content: A(E) ? "切换为明亮模式" : "切换为暗黑模式"
@@ -4353,7 +4355,7 @@ var xi = /* @__PURE__ */ Z(yi, [["render", bi], ["__scopeId", "data-v-cd18f87f"]
4353
4355
  l.value = !0;
4354
4356
  }
4355
4357
  return (n, r) => {
4356
- let l = ct, m = O("router-link");
4358
+ let l = pt, m = O("router-link");
4357
4359
  return C(), s("div", { class: _(["sidebar-logo-container", { collapse: e.collapse }]) }, [u(t, { name: "sidebarLogoFade" }, {
4358
4360
  default: M(() => [e.collapse ? (C(), a(m, {
4359
4361
  key: "collapse",
@@ -4504,7 +4506,7 @@ var Ri = /* @__PURE__ */ Z(Ii, [["render", Li]]), zi = {
4504
4506
  class: "menu-wrapper"
4505
4507
  };
4506
4508
  function Ui(t, n, r, i, c, l) {
4507
- let d = O("menu-content"), f = ft, p = O("app-link"), m = vt, h = O("sidebar-item", !0), g = _t;
4509
+ let d = O("menu-content"), f = _t, p = O("app-link"), m = Ct, h = O("sidebar-item", !0), g = St;
4508
4510
  return r.item.hidden === !1 ? o("", !0) : (C(), s("div", Hi, [r.item.meta && r.item.meta.menuType === 2 ? (C(), a(m, {
4509
4511
  key: 0,
4510
4512
  disabled: !r.isCollapse,
@@ -4573,10 +4575,10 @@ var Wi = /* @__PURE__ */ Z(Vi, [["render", Ui]]), Gi = /* @__PURE__ */ Z(/* @__P
4573
4575
  function i(e) {
4574
4576
  return e.filter((e) => e.meta?.menuType === 0 ? !1 : (e.children && (e.children = i(e.children), e.children.length === 0 && delete e.children), !0));
4575
4577
  }
4576
- let c = T(""), l = r(() => n.remoteRouter), u = wt(), d = r(() => {
4578
+ let c = T(""), l = r(() => n.remoteRouter), u = ke(), d = r(() => {
4577
4579
  let e = [];
4578
4580
  return l.value.forEach((t) => {
4579
- e = e.concat(I(t.routes));
4581
+ e = e.concat(L(t.routes));
4580
4582
  }), i(e);
4581
4583
  });
4582
4584
  function f(e) {
@@ -4593,7 +4595,7 @@ var Wi = /* @__PURE__ */ Z(Vi, [["render", Ui]]), Gi = /* @__PURE__ */ Z(/* @__P
4593
4595
  u.push(e), c.value = "";
4594
4596
  }
4595
4597
  return (t, n) => {
4596
- let r = pt, i = mt, l = gt;
4598
+ let r = vt, i = yt, l = xt;
4597
4599
  return C(), a(l, {
4598
4600
  modelValue: A(c),
4599
4601
  "onUpdate:modelValue": n[0] ||= (e) => h(c) ? c.value = e : null,
@@ -4624,11 +4626,11 @@ var Wi = /* @__PURE__ */ Z(Vi, [["render", Ui]]), Gi = /* @__PURE__ */ Z(/* @__P
4624
4626
  }), [["__scopeId", "data-v-02f2e7b9"]]), Ki = /* @__PURE__ */ Z(/* @__PURE__ */ d({
4625
4627
  __name: "index",
4626
4628
  setup(t) {
4627
- let n = q(), i = K(), c = G(), l = r(() => n.sidebar), d = r(() => i.remoteRouter), f = r(() => i.customRouter), p = wt(), m = U(), h = r(() => {
4629
+ let n = q(), i = K(), c = G(), l = r(() => n.sidebar), d = r(() => i.remoteRouter), f = r(() => i.customRouter), p = ke(), m = F(), h = r(() => {
4628
4630
  let e = [];
4629
4631
  return p.options.routes.concat(f.value || []).forEach((t) => {
4630
4632
  t.path === "/" ? e = e.concat(t.children || []) : e.push(t);
4631
- }), I([{
4633
+ }), L([{
4632
4634
  label: "",
4633
4635
  routes: e
4634
4636
  }, ...d.value]);
@@ -4648,7 +4650,7 @@ var Wi = /* @__PURE__ */ Z(Vi, [["render", Ui]]), Gi = /* @__PURE__ */ Z(/* @__P
4648
4650
  return e.filter((e) => [X.dir, X.menu].indexOf(e.meta.menuType) !== -1).map((e) => (e = Object.assign({}, e), e.children &&= S(e.children), e));
4649
4651
  }
4650
4652
  return (t, n) => {
4651
- let r = dt, i = ht;
4653
+ let r = gt, i = bt;
4652
4654
  return C(), s("div", { class: _({ "has-logo": A(v) }) }, [A(v) ? (C(), a(Fi, {
4653
4655
  key: 0,
4654
4656
  collapse: A(y)
@@ -4679,18 +4681,18 @@ var Wi = /* @__PURE__ */ Z(Vi, [["render", Ui]]), Gi = /* @__PURE__ */ Z(/* @__P
4679
4681
  }), [["__scopeId", "data-v-ed591c64"]]), qi = { class: "app-main" }, Ji = /* @__PURE__ */ Z({
4680
4682
  __name: "AppMain",
4681
4683
  setup(e) {
4682
- let t = U(), n = [], r = T(0);
4683
- return St(() => {
4684
+ let t = F(), n = [], r = T(0);
4685
+ return De(() => {
4684
4686
  t.meta?.keepAlive && n.indexOf(t.name) && n.push(t.name), r.value++;
4685
4687
  }), (e, t) => {
4686
- let n = O("router-view"), i = Je;
4688
+ let n = O("router-view"), i = $e;
4687
4689
  return C(), s("section", qi, [(C(), a(n, { key: e.$route.fullPath + A(r) })), u(i, { bottom: 50 })]);
4688
4690
  };
4689
4691
  }
4690
4692
  }, [["__scopeId", "data-v-ca0f0d98"]]), Yi = { class: "main-container" }, Xi = 992, Zi = /* @__PURE__ */ Z({
4691
4693
  __name: "index",
4692
4694
  setup(e) {
4693
- let { body: t } = document, n = q(), i = G(), a = U(), l = r(() => n.sidebar), d = r(() => n.device), f = r(() => i.fixedHeader), p = r(() => ({
4695
+ let { body: t } = document, n = q(), i = G(), a = F(), l = r(() => n.sidebar), d = r(() => n.device), f = r(() => i.fixedHeader), p = r(() => ({
4694
4696
  hideSidebar: !l.value.opened,
4695
4697
  openSidebar: l.value.opened,
4696
4698
  withoutAnimation: l.value.withoutAnimation,
@@ -4850,7 +4852,7 @@ var ma = /* @__PURE__ */ d({
4850
4852
  }, Ea = { class: "login-footer" }, Da = /* @__PURE__ */ d({
4851
4853
  __name: "login",
4852
4854
  setup(e) {
4853
- let n = wt(), i = U(), d = G(), f = q(), p = K(), m = r(() => d.loginTips), h = r(() => d.captcha), g = r(() => f.baseURL), _ = T(0), v = T(!1), y = T({
4855
+ let n = ke(), i = F(), d = G(), f = q(), p = K(), m = r(() => d.loginTips), h = r(() => d.captcha), g = r(() => f.baseURL), _ = T(0), v = T(!1), y = T({
4854
4856
  username: "",
4855
4857
  password: "",
4856
4858
  captcha: "",
@@ -4863,7 +4865,7 @@ var ma = /* @__PURE__ */ d({
4863
4865
  }, S = r(() => y.value.username.length > 0 && y.value.password.length >= 4 && (h.value ? y.value.captcha.length === 4 : !0)), w = () => {
4864
4866
  if (!v.value) {
4865
4867
  if (!S.value) {
4866
- Ie.error("请填写完整的登录信息");
4868
+ Ve.error("请填写完整的登录信息");
4867
4869
  return;
4868
4870
  }
4869
4871
  h.value && (y.value.sing = jt.MD5(`${y.value.username}${y.value.password}${y.value.captcha}`).toString()), v.value = !0, p.login(y.value).then((e) => {
@@ -4876,7 +4878,7 @@ var ma = /* @__PURE__ */ d({
4876
4878
  }
4877
4879
  };
4878
4880
  return (e, n) => {
4879
- let r = lt, i = ot, f = st, p = V, T = at, E = Ze;
4881
+ let r = mt, i = dt, f = ft, p = H, T = ut, E = nt;
4880
4882
  return C(), s("div", ha, [n[7] ||= c("div", { class: "login-background" }, [
4881
4883
  c("div", { class: "shape shape-1" }),
4882
4884
  c("div", { class: "shape shape-2" }),
@@ -5073,8 +5075,8 @@ var ja = [
5073
5075
  hidden: !0
5074
5076
  }
5075
5077
  ];
5076
- function Ma(e = xt()) {
5077
- return bt({
5078
+ function Ma(e = Ee()) {
5079
+ return Te({
5078
5080
  history: e,
5079
5081
  routes: ja
5080
5082
  });
@@ -5153,14 +5155,14 @@ var Wa = [{
5153
5155
  })), e.data;
5154
5156
  },
5155
5157
  onRejected(e) {
5156
- return Me.isCancel(e) ? Promise.reject("") : (Ua(`${e.message} ${e.config.method}::${e.config.url?.split("?")[0]}`), Promise.reject(e));
5158
+ return Le.isCancel(e) ? Promise.reject("") : (Ua(`${e.message} ${e.config.method}::${e.config.url?.split("?")[0]}`), Promise.reject(e));
5157
5159
  }
5158
5160
  }
5159
5161
  }];
5160
5162
  //#endregion
5161
5163
  //#region src/utils/request/index.ts
5162
5164
  function Ga(e = {}) {
5163
- let t = R(Ut.axios || {}, e || {}), n = Me.create({ ...t });
5165
+ let t = z(Ut.axios || {}, e || {}), n = Le.create({ ...t });
5164
5166
  return Wa.forEach((e) => {
5165
5167
  n.interceptors.request.use(e.request.onFulfilled, e.request.onRejected), n.interceptors.response.use(e.response.onFulfilled, e.response.onRejected);
5166
5168
  }), n;
@@ -5238,6 +5240,7 @@ function no(e) {
5238
5240
  let t = { ...e };
5239
5241
  return t.path === "/" && Array.isArray(t.children) ? t : {
5240
5242
  path: "/",
5243
+ component: Zi,
5241
5244
  children: [t]
5242
5245
  };
5243
5246
  }
@@ -5249,15 +5252,15 @@ function ro(e) {
5249
5252
  }, eo.set(e, t)), t;
5250
5253
  }
5251
5254
  function io(e) {
5252
- return e ? Ga(R(Ut.axios, e)) : $a;
5255
+ return e ? Ga(z(Ut.axios, e)) : $a;
5253
5256
  }
5254
5257
  function ao(e) {
5255
- let t = R(Ut, e), n = Ra(t.router), r = i(un), a = mo(t, n), o = t.plugins || [];
5258
+ let t = z(Ut, e), n = Ra(t.router), r = i(un), a = mo(t, n), o = t.plugins || [];
5256
5259
  o.unshift(a), o.forEach((e) => {
5257
5260
  po(r, e, n);
5258
5261
  }), t?.mock && yn(), $a = Ga(t.axios), $t(r);
5259
5262
  let s = q(J), c = G(J), l = K(J);
5260
- zt($a), c.updateSettings(e?.settings || {}), s.setBaseAPI(t?.axios.baseURL), r.config.globalProperties.$http = $a, r.config.globalProperties.$router = n, za(n), window.App = r, window.OmsOptions = t, We(() => ({ "X-Token": W() })), j(() => l.token, () => {
5263
+ zt($a), c.updateSettings(e?.settings || {}), s.setBaseAPI(t?.axios.baseURL), r.config.globalProperties.$http = $a, r.config.globalProperties.$router = n, za(n), window.App = r, window.OmsOptions = t, Ye(() => ({ "X-Token": W() })), j(() => l.token, () => {
5261
5264
  so(n);
5262
5265
  }, { immediate: !0 }), n.isReady().then(() => r.mount("#app"));
5263
5266
  }
@@ -5307,10 +5310,10 @@ function po(e, t, n = Ra()) {
5307
5310
  }
5308
5311
  function mo(e, t = Ra(e.router)) {
5309
5312
  return {
5310
- components: { VIcon: Ue },
5313
+ components: { VIcon: Je },
5311
5314
  directives: Qa,
5312
5315
  use: [t, [Sn, {
5313
- locale: De,
5316
+ locale: Me,
5314
5317
  ...e.settings?.ElementPlus
5315
5318
  }]]
5316
5319
  };