@okiss/oms 0.0.101 → 0.0.103

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,4 +1,4 @@
1
- import { ref as C, watch as ye, computed as k, defineComponent as z, onBeforeMount as Ge, provide as _o, resolveComponent as P, createBlock as m, openBlock as i, createVNode as u, createTextVNode as T, withCtx as r, TransitionGroup as vo, createElementBlock as v, Fragment as A, renderList as V, toDisplayString as B, normalizeClass as te, renderSlot as pe, createCommentVNode as $, mergeProps as X, toRefs as go, unref as h, isRef as Ke, onMounted as Ie, normalizeStyle as ko, createElementVNode as _, withKeys as ut, withModifiers as Ne, resolveDynamicComponent as ze, Transition as xt, normalizeProps as Z, guardReactiveProps as ce, onUnmounted as So, resolveDirective as wo, withDirectives as xo, getCurrentInstance as Eo, h as Io, toRaw as Co, createApp as To } from "vue";
1
+ import { ref as C, watch as ye, computed as k, defineComponent as z, onBeforeMount as Ge, provide as _o, resolveComponent as R, createBlock as m, openBlock as i, createVNode as u, createTextVNode as T, withCtx as r, TransitionGroup as vo, createElementBlock as v, Fragment as A, renderList as V, toDisplayString as B, normalizeClass as te, renderSlot as pe, createCommentVNode as $, mergeProps as X, toRefs as go, unref as h, isRef as Ke, onMounted as Ie, normalizeStyle as ko, createElementVNode as _, withKeys as ut, withModifiers as Ne, resolveDynamicComponent as ze, Transition as xt, normalizeProps as Z, guardReactiveProps as ce, onUnmounted as So, resolveDirective as wo, withDirectives as xo, getCurrentInstance as Eo, h as Io, toRaw as Co, createApp as To } from "vue";
2
2
  import { normalizeTheme as fe, applyDocumentTheme as Oo, dispatchThemeChange as $o, addNewStyle as Bo, addNewStyleTag as Ao, queryParams as Ro, logGroup as Po, compactObject as Et, showEleByClassName as It, waterMarker as Lo, Cache as ke, isExternal as dt, getQueryParam as Ct, createIFrame as Mo, strVarReplace as ie, obj2Param as Do, isObject as re, isString as Je, effectDataTrans as jo, isArray as Tt } from "@okiss/utils";
3
3
  import { defineStore as Ce, createPinia as No } from "pinia";
4
4
  import oe from "js-cookie";
@@ -66,7 +66,7 @@ function ve() {
66
66
  return oe.get(nt) || "";
67
67
  }
68
68
  function In(e) {
69
- const t = U(L), o = new Date((/* @__PURE__ */ new Date()).getTime() + (t.tokenExpire || 1440 * 60 * 1e3));
69
+ const t = U(P), o = new Date((/* @__PURE__ */ new Date()).getTime() + (t.tokenExpire || 1440 * 60 * 1e3));
70
70
  return oe.set(nt, e, { expires: o });
71
71
  }
72
72
  function Dt() {
@@ -295,7 +295,7 @@ const Bn = {
295
295
  }), An = {
296
296
  currentCellItem: {}
297
297
  // form/sub-form 当前单元格编辑数据
298
- }, fr = Ce("builderSchema", {
298
+ }, pr = Ce("builderSchema", {
299
299
  state: () => ({ ...An }),
300
300
  actions: {
301
301
  SET_CURRENT_CELLITEM(e) {
@@ -305,9 +305,9 @@ const Bn = {
305
305
  this.SET_CURRENT_CELLITEM(e);
306
306
  }
307
307
  }
308
- }), L = No();
308
+ }), P = No();
309
309
  function Rn(e) {
310
- e.use(L);
310
+ e.use(P);
311
311
  }
312
312
  const Vt = "oms-theme", Ut = C("light");
313
313
  let ht = !1, Se = null;
@@ -378,7 +378,7 @@ const Dn = /* @__PURE__ */ z({
378
378
  font-family: iconfont !important;
379
379
  }`));
380
380
  }), window?.OmsOptions?.form?.vsPath && _o("vsPath", window?.OmsOptions?.form?.vsPath), (t, o) => {
381
- const n = P("router-view");
381
+ const n = R("router-view");
382
382
  return i(), m(n);
383
383
  };
384
384
  }
@@ -586,7 +586,7 @@ const Fn = At, bt = Bt, Gn = We.CancelToken, we = {
586
586
  return Promise.reject(e);
587
587
  }
588
588
  }, Gt = {};
589
- function mr(e, t) {
589
+ function fr(e, t) {
590
590
  Gt[e] = t;
591
591
  }
592
592
  function Jn(e) {
@@ -605,12 +605,12 @@ const Wn = /* @__PURE__ */ z({
605
605
  class: "dashboard-text"
606
606
  }, [T("Hi "), t.value, T(" 😄")])]);
607
607
  }
608
- }), R = (e, t) => {
608
+ }), L = (e, t) => {
609
609
  const o = e.__vccOpts || e;
610
610
  for (const [n, l] of t)
611
611
  o[n] = l;
612
612
  return o;
613
- }, Qn = /* @__PURE__ */ R(Wn, [["__scopeId", "data-v-85165680"]]), Xn = {
613
+ }, Qn = {
614
614
  data() {
615
615
  return {
616
616
  levelList: null
@@ -653,11 +653,11 @@ const Wn = /* @__PURE__ */ z({
653
653
  this.$router.push(this.pathCompile(o));
654
654
  }
655
655
  }
656
- }, Zn = {
656
+ }, Xn = {
657
657
  key: 0,
658
658
  class: "no-redirect"
659
- }, Yn = ["onClick"];
660
- function el(e, t, o, n, l, s) {
659
+ }, Zn = ["onClick"];
660
+ function Yn(e, t, o, n, l, s) {
661
661
  const a = Xo, c = Qo;
662
662
  return i(), m(c, {
663
663
  class: "app-breadcrumb",
@@ -670,10 +670,10 @@ function el(e, t, o, n, l, s) {
670
670
  key: d.path
671
671
  }, {
672
672
  default: r(() => [
673
- d.path.indexOf("/DIR_") === 0 && d.redirect === void 0 || f === l.levelList.length - 1 ? (i(), v("span", Zn, B(d.meta.title), 1)) : (i(), v("a", {
673
+ d.path.indexOf("/DIR_") === 0 && d.redirect === void 0 || f === l.levelList.length - 1 ? (i(), v("span", Xn, B(d.meta.title), 1)) : (i(), v("a", {
674
674
  key: 1,
675
675
  onClick: (p) => s.handleLink(d)
676
- }, B(d.meta.title), 9, Yn))
676
+ }, B(d.meta.title), 9, Zn))
677
677
  ]),
678
678
  _: 2
679
679
  }, 1024))), 128))
@@ -684,7 +684,7 @@ function el(e, t, o, n, l, s) {
684
684
  _: 1
685
685
  });
686
686
  }
687
- const tl = /* @__PURE__ */ R(Xn, [["render", el], ["__scopeId", "data-v-fa74804e"]]), ol = {
687
+ const el = /* @__PURE__ */ L(Qn, [["render", Yn], ["__scopeId", "data-v-fa74804e"]]), tl = {
688
688
  name: "Hamburger",
689
689
  props: {
690
690
  isActive: {
@@ -699,8 +699,8 @@ const tl = /* @__PURE__ */ R(Xn, [["render", el], ["__scopeId", "data-v-fa74804e
699
699
  }
700
700
  }
701
701
  };
702
- function nl(e, t, o, n, l, s) {
703
- const a = P("v-icon");
702
+ function ol(e, t, o, n, l, s) {
703
+ const a = R("v-icon");
704
704
  return i(), v("div", {
705
705
  style: { padding: "0 15px" },
706
706
  onClick: t[0] || (t[0] = (...c) => s.toggleClick && s.toggleClick(...c))
@@ -711,8 +711,8 @@ function nl(e, t, o, n, l, s) {
711
711
  }, null, 8, ["class"])
712
712
  ]);
713
713
  }
714
- const ll = /* @__PURE__ */ R(ol, [["render", nl]]), sl = {};
715
- function al(e, t) {
714
+ const nl = /* @__PURE__ */ L(tl, [["render", ol]]), ll = {};
715
+ function sl(e, t) {
716
716
  const o = _e, n = Yo, l = en, s = Zo;
717
717
  return i(), m(s, { style: { width: "100%", height: "100%" } }, {
718
718
  default: r(() => [
@@ -745,7 +745,7 @@ function al(e, t) {
745
745
  _: 3
746
746
  });
747
747
  }
748
- const Kt = /* @__PURE__ */ R(sl, [["render", al], ["__scopeId", "data-v-7c3d697b"]]), il = {
748
+ const Kt = /* @__PURE__ */ L(ll, [["render", sl], ["__scopeId", "data-v-7c3d697b"]]), al = {
749
749
  type: "input",
750
750
  name: "文本框",
751
751
  default: {
@@ -813,7 +813,7 @@ const Kt = /* @__PURE__ */ R(sl, [["render", al], ["__scopeId", "data-v-7c3d697b
813
813
  }
814
814
  }
815
815
  ]
816
- }, rl = {
816
+ }, il = {
817
817
  type: "number",
818
818
  name: "数字",
819
819
  default: {
@@ -855,7 +855,7 @@ const Kt = /* @__PURE__ */ R(sl, [["render", al], ["__scopeId", "data-v-7c3d697b
855
855
  }
856
856
  }
857
857
  ]
858
- }, cl = {
858
+ }, rl = {
859
859
  type: "number-range",
860
860
  name: "数字区间",
861
861
  default: {
@@ -896,7 +896,7 @@ const Kt = /* @__PURE__ */ R(sl, [["render", al], ["__scopeId", "data-v-7c3d697b
896
896
  }
897
897
  }
898
898
  ]
899
- }, ul = {
899
+ }, cl = {
900
900
  type: "select",
901
901
  name: "下拉框",
902
902
  default: {
@@ -1002,7 +1002,7 @@ const Kt = /* @__PURE__ */ R(sl, [["render", al], ["__scopeId", "data-v-7c3d697b
1002
1002
  const t = E(e);
1003
1003
  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;
1004
1004
  }
1005
- }, dl = {
1005
+ }, ul = {
1006
1006
  type: "radio",
1007
1007
  name: "单选框",
1008
1008
  default: {
@@ -1048,7 +1048,7 @@ const Kt = /* @__PURE__ */ R(sl, [["render", al], ["__scopeId", "data-v-7c3d697b
1048
1048
  label: "默认值"
1049
1049
  }
1050
1050
  ]
1051
- }, pl = {
1051
+ }, dl = {
1052
1052
  type: "switch",
1053
1053
  name: "开关",
1054
1054
  default: {
@@ -1104,7 +1104,7 @@ const Kt = /* @__PURE__ */ R(sl, [["render", al], ["__scopeId", "data-v-7c3d697b
1104
1104
  }
1105
1105
  }
1106
1106
  ]
1107
- }, fl = {
1107
+ }, pl = {
1108
1108
  type: "code",
1109
1109
  name: "Code",
1110
1110
  default: {
@@ -1124,7 +1124,7 @@ const Kt = /* @__PURE__ */ R(sl, [["render", al], ["__scopeId", "data-v-7c3d697b
1124
1124
  label: "字段key"
1125
1125
  }
1126
1126
  ]
1127
- }, ml = {
1127
+ }, fl = {
1128
1128
  type: "json",
1129
1129
  name: "json",
1130
1130
  default: {
@@ -1144,7 +1144,7 @@ const Kt = /* @__PURE__ */ R(sl, [["render", al], ["__scopeId", "data-v-7c3d697b
1144
1144
  label: "字段key"
1145
1145
  }
1146
1146
  ]
1147
- }, hl = {
1147
+ }, ml = {
1148
1148
  type: "upload",
1149
1149
  name: "上传",
1150
1150
  default: {
@@ -1164,7 +1164,7 @@ const Kt = /* @__PURE__ */ R(sl, [["render", al], ["__scopeId", "data-v-7c3d697b
1164
1164
  label: "字段key"
1165
1165
  }
1166
1166
  ]
1167
- }, bl = {
1167
+ }, hl = {
1168
1168
  type: "template",
1169
1169
  name: "自定义组件",
1170
1170
  default: {
@@ -1184,7 +1184,7 @@ const Kt = /* @__PURE__ */ R(sl, [["render", al], ["__scopeId", "data-v-7c3d697b
1184
1184
  label: "字段key"
1185
1185
  }
1186
1186
  ]
1187
- }, yl = {
1187
+ }, bl = {
1188
1188
  type: "icon-select",
1189
1189
  name: "图标选择器",
1190
1190
  default: {
@@ -1204,7 +1204,7 @@ const Kt = /* @__PURE__ */ R(sl, [["render", al], ["__scopeId", "data-v-7c3d697b
1204
1204
  label: "字段key"
1205
1205
  }
1206
1206
  ]
1207
- }, _l = {
1207
+ }, yl = {
1208
1208
  type: "sub-form",
1209
1209
  name: "子表单",
1210
1210
  default: {
@@ -1272,7 +1272,7 @@ const Kt = /* @__PURE__ */ R(sl, [["render", al], ["__scopeId", "data-v-7c3d697b
1272
1272
  }
1273
1273
  }
1274
1274
  ]
1275
- }, vl = {
1275
+ }, _l = {
1276
1276
  type: "checkbox",
1277
1277
  name: "复选框",
1278
1278
  default: {
@@ -1322,20 +1322,20 @@ const Kt = /* @__PURE__ */ R(sl, [["render", al], ["__scopeId", "data-v-7c3d697b
1322
1322
  function H(e) {
1323
1323
  zt[e.type] = e;
1324
1324
  }
1325
+ H(al);
1326
+ H(cl);
1325
1327
  H(il);
1326
- H(ul);
1327
1328
  H(rl);
1328
- H(cl);
1329
- H(pl);
1330
- H(_l);
1331
1329
  H(dl);
1332
- H(vl);
1330
+ H(yl);
1331
+ H(ul);
1332
+ H(_l);
1333
+ H(pl);
1333
1334
  H(fl);
1334
1335
  H(ml);
1335
- H(hl);
1336
- H(yl);
1337
1336
  H(bl);
1338
- const qe = zt, gl = {
1337
+ H(hl);
1338
+ const qe = zt, vl = {
1339
1339
  options: {
1340
1340
  labelPosition: "top",
1341
1341
  submitButton: !1,
@@ -1441,7 +1441,7 @@ const qe = zt, gl = {
1441
1441
  Object.keys(qe).forEach((e) => {
1442
1442
  lt.push({ value: e, label: qe[e].name });
1443
1443
  });
1444
- const kl = {
1444
+ const gl = {
1445
1445
  options: {
1446
1446
  submitButton: !1,
1447
1447
  cancelButton: !1
@@ -1473,7 +1473,7 @@ const kl = {
1473
1473
  }
1474
1474
  }
1475
1475
  ]
1476
- }, Sl = {
1476
+ }, kl = {
1477
1477
  components: { DevLayout: Kt, VForm: ne, VButton: ot, JsonView: tt },
1478
1478
  props: {
1479
1479
  schema: {
@@ -1485,8 +1485,8 @@ const kl = {
1485
1485
  data() {
1486
1486
  return {
1487
1487
  sqlOptions: {},
1488
- sqlSchema: kl,
1489
- baseSchema: gl,
1488
+ sqlSchema: gl,
1489
+ baseSchema: vl,
1490
1490
  activeTab: "base",
1491
1491
  builderSchema: Object.assign(
1492
1492
  {},
@@ -1609,8 +1609,8 @@ const kl = {
1609
1609
  }
1610
1610
  }
1611
1611
  };
1612
- function wl(e, t, o, n, l, s) {
1613
- const a = P("v-form"), c = Rt, d = he, f = P("JsonView"), p = P("VButton"), b = Ye, S = Ze, I = Xe, O = Qe, w = P("dev-layout");
1612
+ function Sl(e, t, o, n, l, s) {
1613
+ const a = R("v-form"), c = Rt, d = he, f = R("JsonView"), p = R("VButton"), b = Ye, S = Ze, I = Xe, O = Qe, w = R("dev-layout");
1614
1614
  return i(), m(w, null, {
1615
1615
  main: r(() => [
1616
1616
  l.builderSchema.formItems ? (i(), m(a, X({
@@ -1672,7 +1672,7 @@ function wl(e, t, o, n, l, s) {
1672
1672
  _: 1
1673
1673
  });
1674
1674
  }
1675
- const xl = /* @__PURE__ */ R(Sl, [["render", wl], ["__scopeId", "data-v-875f0171"]]), El = {
1675
+ const wl = /* @__PURE__ */ L(kl, [["render", Sl], ["__scopeId", "data-v-875f0171"]]), xl = {
1676
1676
  type: "input",
1677
1677
  name: "文本框",
1678
1678
  default: {
@@ -1720,7 +1720,7 @@ const xl = /* @__PURE__ */ R(Sl, [["render", wl], ["__scopeId", "data-v-875f0171
1720
1720
  }
1721
1721
  }
1722
1722
  ]
1723
- }, Il = {
1723
+ }, El = {
1724
1724
  type: "select",
1725
1725
  name: "下拉框",
1726
1726
  default: {
@@ -1821,7 +1821,7 @@ const xl = /* @__PURE__ */ R(Sl, [["render", wl], ["__scopeId", "data-v-875f0171
1821
1821
  const t = E(e);
1822
1822
  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;
1823
1823
  }
1824
- }, Cl = {
1824
+ }, Il = {
1825
1825
  type: "date",
1826
1826
  name: "日期",
1827
1827
  default: {
@@ -1870,7 +1870,7 @@ const xl = /* @__PURE__ */ R(Sl, [["render", wl], ["__scopeId", "data-v-875f0171
1870
1870
  labelPosition: "top",
1871
1871
  submitButton: !1,
1872
1872
  cancelButton: !1
1873
- }, Tl = {
1873
+ }, Cl = {
1874
1874
  type: "span",
1875
1875
  name: "文本",
1876
1876
  default: {
@@ -1900,7 +1900,7 @@ const xl = /* @__PURE__ */ R(Sl, [["render", wl], ["__scopeId", "data-v-875f0171
1900
1900
  label: "排序"
1901
1901
  }
1902
1902
  ]
1903
- }, Ol = {
1903
+ }, Tl = {
1904
1904
  type: "enum",
1905
1905
  name: "标签",
1906
1906
  default: {
@@ -1951,7 +1951,7 @@ const xl = /* @__PURE__ */ R(Sl, [["render", wl], ["__scopeId", "data-v-875f0171
1951
1951
  trans(e) {
1952
1952
  return e.options = e.options || [], e.label || (e.label = "表头"), e;
1953
1953
  }
1954
- }, $l = {
1954
+ }, Ol = {
1955
1955
  type: "html",
1956
1956
  name: "HTML",
1957
1957
  default: {
@@ -1976,7 +1976,7 @@ const xl = /* @__PURE__ */ R(Sl, [["render", wl], ["__scopeId", "data-v-875f0171
1976
1976
  label: "提示"
1977
1977
  }
1978
1978
  ]
1979
- }, Bl = {
1979
+ }, $l = {
1980
1980
  type: "icon",
1981
1981
  name: "图标",
1982
1982
  default: {
@@ -2001,7 +2001,7 @@ const xl = /* @__PURE__ */ R(Sl, [["render", wl], ["__scopeId", "data-v-875f0171
2001
2001
  label: "提示"
2002
2002
  }
2003
2003
  ]
2004
- }, Al = {
2004
+ }, Bl = {
2005
2005
  type: "image",
2006
2006
  name: "图片",
2007
2007
  default: {
@@ -2026,7 +2026,7 @@ const xl = /* @__PURE__ */ R(Sl, [["render", wl], ["__scopeId", "data-v-875f0171
2026
2026
  label: "提示"
2027
2027
  }
2028
2028
  ]
2029
- }, Rl = {
2029
+ }, Al = {
2030
2030
  type: "json",
2031
2031
  name: "JSON",
2032
2032
  default: {
@@ -2051,7 +2051,7 @@ const xl = /* @__PURE__ */ R(Sl, [["render", wl], ["__scopeId", "data-v-875f0171
2051
2051
  label: "提示"
2052
2052
  }
2053
2053
  ]
2054
- }, Pl = {
2054
+ }, Rl = {
2055
2055
  type: "link",
2056
2056
  name: "链接",
2057
2057
  default: {
@@ -2076,7 +2076,7 @@ const xl = /* @__PURE__ */ R(Sl, [["render", wl], ["__scopeId", "data-v-875f0171
2076
2076
  label: "提示"
2077
2077
  }
2078
2078
  ]
2079
- }, Ll = {
2079
+ }, Pl = {
2080
2080
  type: "rich",
2081
2081
  name: "富文本",
2082
2082
  default: {
@@ -2101,7 +2101,7 @@ const xl = /* @__PURE__ */ R(Sl, [["render", wl], ["__scopeId", "data-v-875f0171
2101
2101
  label: "提示"
2102
2102
  }
2103
2103
  ]
2104
- }, Ml = {
2104
+ }, Ll = {
2105
2105
  type: "tpl",
2106
2106
  name: "模板",
2107
2107
  default: {
@@ -2132,17 +2132,17 @@ const xl = /* @__PURE__ */ R(Sl, [["render", wl], ["__scopeId", "data-v-875f0171
2132
2132
  info: "例如 <code>姓名: {name} 年龄:{age}</code>"
2133
2133
  }
2134
2134
  ]
2135
+ }, Ml = {
2136
+ span: Cl,
2137
+ enum: Tl,
2138
+ html: Ol,
2139
+ icon: $l,
2140
+ image: Bl,
2141
+ json: Al,
2142
+ link: Rl,
2143
+ rich: Pl,
2144
+ tpl: Ll
2135
2145
  }, Dl = {
2136
- span: Tl,
2137
- enum: Ol,
2138
- html: $l,
2139
- icon: Bl,
2140
- image: Al,
2141
- json: Rl,
2142
- link: Pl,
2143
- rich: Ll,
2144
- tpl: Ml
2145
- }, jl = {
2146
2146
  type: "jump",
2147
2147
  name: "跳转",
2148
2148
  default: {
@@ -2189,7 +2189,7 @@ const xl = /* @__PURE__ */ R(Sl, [["render", wl], ["__scopeId", "data-v-875f0171
2189
2189
  }
2190
2190
  }
2191
2191
  ]
2192
- }, Nl = {
2192
+ }, jl = {
2193
2193
  type: "api",
2194
2194
  name: "接口请求",
2195
2195
  default: {
@@ -2258,7 +2258,7 @@ const xl = /* @__PURE__ */ R(Sl, [["render", wl], ["__scopeId", "data-v-875f0171
2258
2258
  }
2259
2259
  }
2260
2260
  ]
2261
- }, Vl = {
2261
+ }, Nl = {
2262
2262
  type: "form",
2263
2263
  name: "弹框表单",
2264
2264
  default: {
@@ -2312,7 +2312,7 @@ const xl = /* @__PURE__ */ R(Sl, [["render", wl], ["__scopeId", "data-v-875f0171
2312
2312
  label: "保存接口"
2313
2313
  }
2314
2314
  ]
2315
- }, Ul = {
2315
+ }, Vl = {
2316
2316
  type: "table",
2317
2317
  name: "弹框列表",
2318
2318
  default: {
@@ -2366,12 +2366,12 @@ const xl = /* @__PURE__ */ R(Sl, [["render", wl], ["__scopeId", "data-v-875f0171
2366
2366
  label: "保存接口"
2367
2367
  }
2368
2368
  ]
2369
+ }, Ul = {
2370
+ jump: Dl,
2371
+ api: jl,
2372
+ form: Nl,
2373
+ table: Vl
2369
2374
  }, ql = {
2370
- jump: jl,
2371
- api: Nl,
2372
- form: Vl,
2373
- table: Ul
2374
- }, Hl = {
2375
2375
  components: { JsonView: tt, DevLayout: Kt, VTable: be, VForm: ne, VButton: ot },
2376
2376
  props: {
2377
2377
  schema: {
@@ -2400,9 +2400,9 @@ const xl = /* @__PURE__ */ R(Sl, [["render", wl], ["__scopeId", "data-v-875f0171
2400
2400
  ctrlName: "",
2401
2401
  activeIndex: void 0,
2402
2402
  ctrlMap: {
2403
- filter: { input: El, select: Il, date: Cl },
2404
- headers: Dl,
2405
- buttons: ql
2403
+ filter: { input: xl, select: El, date: Il },
2404
+ headers: Ml,
2405
+ buttons: Ul
2406
2406
  },
2407
2407
  activeIndexReg: /(filter|headers|normalButton|batchButton|rowButton)?\[(\d+)\]/,
2408
2408
  currentCtrlType: "input"
@@ -2555,8 +2555,8 @@ const xl = /* @__PURE__ */ R(Sl, [["render", wl], ["__scopeId", "data-v-875f0171
2555
2555
  }
2556
2556
  }
2557
2557
  };
2558
- function Fl(e, t, o, n, l, s) {
2559
- const a = Oe, c = he, d = _e, f = P("v-table"), p = Rt, b = he, S = P("JsonView"), I = P("VButton"), O = Ye, w = Ze, y = Xe, x = Qe, F = P("v-form"), G = P("dev-layout");
2558
+ function Hl(e, t, o, n, l, s) {
2559
+ const a = Oe, c = he, d = _e, f = R("v-table"), p = Rt, b = he, S = R("JsonView"), I = R("VButton"), O = Ye, w = Ze, y = Xe, x = Qe, F = R("v-form"), G = R("dev-layout");
2560
2560
  return i(), m(G, null, {
2561
2561
  "left-aside": r(() => [
2562
2562
  u(d, { style: { width: "200px" } }, {
@@ -2815,14 +2815,14 @@ function Fl(e, t, o, n, l, s) {
2815
2815
  _: 1
2816
2816
  });
2817
2817
  }
2818
- const Gl = /* @__PURE__ */ R(Hl, [["render", Fl], ["__scopeId", "data-v-cd18f87f"]]), Kl = "rtl", zl = {
2818
+ const Fl = /* @__PURE__ */ L(ql, [["render", Hl], ["__scopeId", "data-v-cd18f87f"]]), Gl = "rtl", Kl = {
2819
2819
  __name: "PageEditor",
2820
2820
  setup(e) {
2821
2821
  const t = C(!1);
2822
2822
  C(1);
2823
2823
  const o = Q(), n = Y(), l = k(() => n.pages[o.path]);
2824
2824
  return (s, a) => {
2825
- const c = P("VIcon"), d = Pt;
2825
+ const c = R("VIcon"), d = Pt;
2826
2826
  return i(), v(A, null, [
2827
2827
  u(c, {
2828
2828
  name: "ra-set",
@@ -2833,17 +2833,17 @@ const Gl = /* @__PURE__ */ R(Hl, [["render", Fl], ["__scopeId", "data-v-cd18f87f
2833
2833
  "onUpdate:modelValue": a[1] || (a[1] = (f) => Ke(t) ? t.value = f : null),
2834
2834
  title: "页面设计",
2835
2835
  class: "my-drawer",
2836
- direction: Kl,
2836
+ direction: Gl,
2837
2837
  size: "90%",
2838
2838
  "destroy-on-close": "",
2839
2839
  "append-to-body": ""
2840
2840
  }, {
2841
2841
  default: r(() => [
2842
- h(l).formItems !== void 0 ? (i(), m(xl, {
2842
+ h(l).formItems !== void 0 ? (i(), m(wl, {
2843
2843
  key: 0,
2844
2844
  schema: h(l)
2845
2845
  }, null, 8, ["schema"])) : $("", !0),
2846
- h(l).headers !== void 0 ? (i(), m(Gl, {
2846
+ h(l).headers !== void 0 ? (i(), m(Fl, {
2847
2847
  key: 1,
2848
2848
  schema: h(l)
2849
2849
  }, null, 8, ["schema"])) : $("", !0)
@@ -2853,13 +2853,13 @@ const Gl = /* @__PURE__ */ R(Hl, [["render", Fl], ["__scopeId", "data-v-cd18f87f
2853
2853
  ], 64);
2854
2854
  };
2855
2855
  }
2856
- }, Jl = { class: "right-content" }, Wl = {
2856
+ }, zl = { class: "right-content" }, Jl = {
2857
2857
  key: 0,
2858
2858
  class: "right-item"
2859
- }, Ql = {
2859
+ }, Wl = {
2860
2860
  class: "right-item-button",
2861
2861
  style: { padding: "0" }
2862
- }, Xl = { class: "user-info" }, Zl = { class: "user-name" }, Yl = /* @__PURE__ */ z({
2862
+ }, Ql = { class: "user-info" }, Xl = { class: "user-name" }, Zl = /* @__PURE__ */ z({
2863
2863
  __name: "Navbar",
2864
2864
  setup(e) {
2865
2865
  const t = Y(), o = U(), n = j();
@@ -2944,12 +2944,12 @@ const Gl = /* @__PURE__ */ R(Hl, [["render", Fl], ["__scopeId", "data-v-cd18f87f
2944
2944
  default: r(() => [
2945
2945
  u(rt, { span: 16 }, {
2946
2946
  default: r(() => [
2947
- u(ll, {
2947
+ u(nl, {
2948
2948
  "is-active": a.value.opened,
2949
2949
  class: "hamburger-container",
2950
2950
  onToggleClick: ee
2951
2951
  }, null, 8, ["is-active"]),
2952
- c.value !== "mobile" ? (i(), m(tl, {
2952
+ c.value !== "mobile" ? (i(), m(el, {
2953
2953
  key: 0,
2954
2954
  class: "breadcrumb-container"
2955
2955
  })) : $("", !0)
@@ -2958,11 +2958,11 @@ const Gl = /* @__PURE__ */ R(Hl, [["render", Fl], ["__scopeId", "data-v-cd18f87f
2958
2958
  }),
2959
2959
  u(rt, { span: 8 }, {
2960
2960
  default: r(() => [
2961
- _("div", Jl, [
2962
- O.value ? (i(), v("div", Wl, [
2963
- u(zl)
2961
+ _("div", zl, [
2962
+ O.value ? (i(), v("div", Jl, [
2963
+ u(Kl)
2964
2964
  ])) : $("", !0),
2965
- _("div", Ql, [
2965
+ _("div", Wl, [
2966
2966
  u(h(ot), { buttons: b.value }, null, 8, ["buttons"])
2967
2967
  ]),
2968
2968
  u(po, {
@@ -3030,7 +3030,7 @@ const Gl = /* @__PURE__ */ R(Hl, [["render", Fl], ["__scopeId", "data-v-cd18f87f
3030
3030
  })
3031
3031
  ]),
3032
3032
  default: r(() => [
3033
- _("div", Xl, [
3033
+ _("div", Ql, [
3034
3034
  u(fo, {
3035
3035
  class: "user-avatar",
3036
3036
  size: 32,
@@ -3042,7 +3042,7 @@ const Gl = /* @__PURE__ */ R(Hl, [["render", Fl], ["__scopeId", "data-v-cd18f87f
3042
3042
  ]),
3043
3043
  _: 1
3044
3044
  }, 8, ["src"]),
3045
- _("span", Zl, B(p.value || f.value), 1)
3045
+ _("span", Xl, B(p.value || f.value), 1)
3046
3046
  ])
3047
3047
  ]),
3048
3048
  _: 1
@@ -3061,13 +3061,13 @@ const Gl = /* @__PURE__ */ R(Hl, [["render", Fl], ["__scopeId", "data-v-cd18f87f
3061
3061
  }, 8, ["style"]);
3062
3062
  };
3063
3063
  }
3064
- }), es = /* @__PURE__ */ R(Yl, [["__scopeId", "data-v-b90728f0"]]), ts = { class: "sidebar-logo-fallback" }, os = {
3064
+ }), Yl = /* @__PURE__ */ L(Zl, [["__scopeId", "data-v-b90728f0"]]), es = { class: "sidebar-logo-fallback" }, ts = {
3065
3065
  key: 1,
3066
3066
  class: "sidebar-logo-fallback"
3067
- }, ns = { class: "sidebar-logo-fallback" }, ls = {
3067
+ }, os = { class: "sidebar-logo-fallback" }, ns = {
3068
3068
  key: 1,
3069
3069
  class: "sidebar-logo-fallback"
3070
- }, ss = { class: "sidebar-title" }, as = /* @__PURE__ */ z({
3070
+ }, ls = { class: "sidebar-title" }, ss = /* @__PURE__ */ z({
3071
3071
  __name: "Logo",
3072
3072
  props: {
3073
3073
  collapse: { type: Boolean }
@@ -3084,7 +3084,7 @@ const Gl = /* @__PURE__ */ R(Hl, [["render", Fl], ["__scopeId", "data-v-cd18f87f
3084
3084
  l.value = !0;
3085
3085
  }
3086
3086
  return (d, f) => {
3087
- const p = sn, b = P("router-link");
3087
+ const p = sn, b = R("router-link");
3088
3088
  return i(), v("div", {
3089
3089
  class: te(["sidebar-logo-container", { collapse: e.collapse }])
3090
3090
  }, [
@@ -3104,10 +3104,10 @@ const Gl = /* @__PURE__ */ R(Hl, [["render", Fl], ["__scopeId", "data-v-cd18f87f
3104
3104
  onError: c
3105
3105
  }, {
3106
3106
  error: r(() => [
3107
- _("div", ts, B(a.value), 1)
3107
+ _("div", es, B(a.value), 1)
3108
3108
  ]),
3109
3109
  _: 1
3110
- }, 8, ["src"])) : (i(), v("div", os, B(a.value), 1)),
3110
+ }, 8, ["src"])) : (i(), v("div", ts, B(a.value), 1)),
3111
3111
  f[0] || (f[0] = _("div", { class: "sidebar-subtitle" }, "系统", -1))
3112
3112
  ]),
3113
3113
  _: 1
@@ -3125,11 +3125,11 @@ const Gl = /* @__PURE__ */ R(Hl, [["render", Fl], ["__scopeId", "data-v-cd18f87f
3125
3125
  onError: c
3126
3126
  }, {
3127
3127
  error: r(() => [
3128
- _("div", ns, B(a.value), 1)
3128
+ _("div", os, B(a.value), 1)
3129
3129
  ]),
3130
3130
  _: 1
3131
- }, 8, ["src"])) : (i(), v("div", ls, B(a.value), 1)),
3132
- _("h1", ss, B(o.value), 1)
3131
+ }, 8, ["src"])) : (i(), v("div", ns, B(a.value), 1)),
3132
+ _("h1", ls, B(o.value), 1)
3133
3133
  ]),
3134
3134
  _: 1
3135
3135
  }))
@@ -3139,7 +3139,7 @@ const Gl = /* @__PURE__ */ R(Hl, [["render", Fl], ["__scopeId", "data-v-cd18f87f
3139
3139
  ], 2);
3140
3140
  };
3141
3141
  }
3142
- }), is = /* @__PURE__ */ R(as, [["__scopeId", "data-v-737655f0"]]), rs = {
3142
+ }), as = /* @__PURE__ */ L(ss, [["__scopeId", "data-v-737655f0"]]), is = {
3143
3143
  props: {
3144
3144
  to: {
3145
3145
  type: String,
@@ -3172,7 +3172,7 @@ const Gl = /* @__PURE__ */ R(Hl, [["render", Fl], ["__scopeId", "data-v-cd18f87f
3172
3172
  }
3173
3173
  }
3174
3174
  };
3175
- function cs(e, t, o, n, l, s) {
3175
+ function rs(e, t, o, n, l, s) {
3176
3176
  return i(), m(ze(s.compType(o.to)), Z(ce(s.linkProps(o.to))), {
3177
3177
  default: r(() => [
3178
3178
  pe(e.$slots, "default")
@@ -3180,7 +3180,7 @@ function cs(e, t, o, n, l, s) {
3180
3180
  _: 3
3181
3181
  }, 16);
3182
3182
  }
3183
- const us = /* @__PURE__ */ R(rs, [["render", cs]]), ds = {
3183
+ const cs = /* @__PURE__ */ L(is, [["render", rs]]), us = {
3184
3184
  computed: {
3185
3185
  // @ts-ignore
3186
3186
  device() {
@@ -3201,7 +3201,7 @@ const us = /* @__PURE__ */ R(rs, [["render", cs]]), ds = {
3201
3201
  }
3202
3202
  }
3203
3203
  }
3204
- }, ps = { class: "menu-content" }, fs = /* @__PURE__ */ z({
3204
+ }, ds = { class: "menu-content" }, ps = /* @__PURE__ */ z({
3205
3205
  __name: "MenuContent",
3206
3206
  props: {
3207
3207
  meta: {
@@ -3214,22 +3214,22 @@ const us = /* @__PURE__ */ R(rs, [["render", cs]]), ds = {
3214
3214
  },
3215
3215
  setup(e) {
3216
3216
  return (t, o) => {
3217
- const n = P("VIcon");
3217
+ const n = R("VIcon");
3218
3218
  return i(), v(A, null, [
3219
3219
  u(n, {
3220
3220
  name: e.meta.icon || "ra-all"
3221
3221
  }, null, 8, ["name"]),
3222
- _("span", ps, B(e.meta.title), 1)
3222
+ _("span", ds, B(e.meta.title), 1)
3223
3223
  ], 64);
3224
3224
  };
3225
3225
  }
3226
- }), ms = {
3226
+ }), fs = {
3227
3227
  name: "SidebarItem",
3228
3228
  components: {
3229
- AppLink: us,
3230
- MenuContent: fs
3229
+ AppLink: cs,
3230
+ MenuContent: ps
3231
3231
  },
3232
- mixins: [ds],
3232
+ mixins: [us],
3233
3233
  props: {
3234
3234
  // route object
3235
3235
  item: {
@@ -3261,13 +3261,13 @@ const us = /* @__PURE__ */ R(rs, [["render", cs]]), ds = {
3261
3261
  }
3262
3262
  }
3263
3263
  }
3264
- }, hs = {
3264
+ }, ms = {
3265
3265
  key: 0,
3266
3266
  class: "menu-wrapper"
3267
3267
  };
3268
- function bs(e, t, o, n, l, s) {
3269
- const a = P("menu-content"), c = an, d = P("app-link"), f = Lt, p = P("sidebar-item", !0), b = rn;
3270
- return o.item.hidden !== !1 ? (i(), v("div", hs, [
3268
+ function hs(e, t, o, n, l, s) {
3269
+ const a = R("menu-content"), c = an, d = R("app-link"), f = Lt, p = R("sidebar-item", !0), b = rn;
3270
+ return o.item.hidden !== !1 ? (i(), v("div", ms, [
3271
3271
  o.item.meta && o.item.meta.menuType === 2 ? (i(), m(f, {
3272
3272
  key: 0,
3273
3273
  disabled: !o.isCollapse,
@@ -3344,7 +3344,7 @@ function bs(e, t, o, n, l, s) {
3344
3344
  }, 8, ["disabled", "content"])) : $("", !0)
3345
3345
  ])) : $("", !0);
3346
3346
  }
3347
- const ys = /* @__PURE__ */ R(ms, [["render", bs]]), _s = /* @__PURE__ */ z({
3347
+ const bs = /* @__PURE__ */ L(fs, [["render", hs]]), ys = /* @__PURE__ */ z({
3348
3348
  __name: "SearchMenu",
3349
3349
  setup(e) {
3350
3350
  const t = j();
@@ -3414,9 +3414,9 @@ const ys = /* @__PURE__ */ R(ms, [["render", bs]]), _s = /* @__PURE__ */ z({
3414
3414
  }, 8, ["modelValue"]);
3415
3415
  };
3416
3416
  }
3417
- }), vs = /* @__PURE__ */ R(_s, [["__scopeId", "data-v-02f2e7b9"]]);
3417
+ }), _s = /* @__PURE__ */ L(ys, [["__scopeId", "data-v-02f2e7b9"]]);
3418
3418
  var J = /* @__PURE__ */ ((e) => (e[e.custom = 0] = "custom", e[e.list = 1] = "list", e[e.form = 2] = "form", e[e.customSchema = 3] = "customSchema", e[e.localComp = 4] = "localComp", e[e.tree = 5] = "tree", e[e.report = 6] = "report", e[e.entity = 7] = "entity", e))(J || {}), K = /* @__PURE__ */ ((e) => (e[e.hidden = 0] = "hidden", e[e.dir = 1] = "dir", e[e.menu = 2] = "menu", e[e.page = 3] = "page", e))(K || {});
3419
- const gs = /* @__PURE__ */ z({
3419
+ const vs = /* @__PURE__ */ z({
3420
3420
  __name: "index",
3421
3421
  setup(e) {
3422
3422
  const t = Y(), o = j(), n = U(), l = k(() => t.sidebar), s = k(() => o.remoteRouter), a = k(() => o.customRouter), c = Te(), d = Q(), f = k(() => {
@@ -3448,13 +3448,13 @@ const gs = /* @__PURE__ */ z({
3448
3448
  return i(), v("div", {
3449
3449
  class: te({ "has-logo": h(b) })
3450
3450
  }, [
3451
- h(b) ? (i(), m(is, {
3451
+ h(b) ? (i(), m(as, {
3452
3452
  key: 0,
3453
3453
  collapse: h(S)
3454
3454
  }, null, 8, ["collapse"])) : $("", !0),
3455
3455
  u(F, { "wrap-class": "scrollbar-wrapper" }, {
3456
3456
  default: r(() => [
3457
- h(S) ? $("", !0) : (i(), m(vs, { key: 0 })),
3457
+ h(S) ? $("", !0) : (i(), m(_s, { key: 0 })),
3458
3458
  u(x, {
3459
3459
  "default-active": h(p),
3460
3460
  collapse: h(S),
@@ -3466,7 +3466,7 @@ const gs = /* @__PURE__ */ z({
3466
3466
  (i(!0), v(A, null, V(h(f), (G, g) => (i(), v(A, {
3467
3467
  key: g + "-module"
3468
3468
  }, [
3469
- (i(!0), v(A, null, V(O(G.routes), (M) => (i(), m(ys, {
3469
+ (i(!0), v(A, null, V(O(G.routes), (M) => (i(), m(bs, {
3470
3470
  key: M.path,
3471
3471
  item: M,
3472
3472
  to: w.$router.resolve(M.redirect ? M.redirect : M).fullPath,
@@ -3482,15 +3482,15 @@ const gs = /* @__PURE__ */ z({
3482
3482
  ], 2);
3483
3483
  };
3484
3484
  }
3485
- }), ks = /* @__PURE__ */ R(gs, [["__scopeId", "data-v-ed591c64"]]), Ss = { class: "app-main" }, ws = {
3485
+ }), gs = /* @__PURE__ */ L(vs, [["__scopeId", "data-v-ed591c64"]]), ks = { class: "app-main" }, Ss = {
3486
3486
  __name: "AppMain",
3487
3487
  setup(e) {
3488
3488
  const t = Q(), o = [], n = C(0);
3489
3489
  return Ko(() => {
3490
3490
  t.meta?.keepAlive && o.indexOf(t.name) && o.push(t.name), n.value++;
3491
3491
  }), (l, s) => {
3492
- const a = P("router-view"), c = pn;
3493
- return i(), v("section", Ss, [
3492
+ const a = R("router-view"), c = pn;
3493
+ return i(), v("section", ks, [
3494
3494
  (i(), m(a, {
3495
3495
  key: l.$route.fullPath + h(n)
3496
3496
  })),
@@ -3498,7 +3498,7 @@ const gs = /* @__PURE__ */ z({
3498
3498
  ]);
3499
3499
  };
3500
3500
  }
3501
- }, xs = /* @__PURE__ */ R(ws, [["__scopeId", "data-v-ca0f0d98"]]), Es = { class: "main-container" }, Is = 992, Cs = {
3501
+ }, ws = /* @__PURE__ */ L(Ss, [["__scopeId", "data-v-ca0f0d98"]]), xs = { class: "main-container" }, Es = 992, Is = {
3502
3502
  __name: "index",
3503
3503
  setup(e) {
3504
3504
  const { body: t } = document, o = Y(), n = U(), l = Q(), s = k(() => o.sidebar), a = k(() => o.device), c = k(() => n.fixedHeader), d = k(() => ({
@@ -3506,7 +3506,7 @@ const gs = /* @__PURE__ */ z({
3506
3506
  openSidebar: s.value.opened,
3507
3507
  withoutAnimation: s.value.withoutAnimation,
3508
3508
  mobile: a.value === "mobile"
3509
- })), f = () => t.getBoundingClientRect().width - 1 < Is, p = () => {
3509
+ })), f = () => t.getBoundingClientRect().width - 1 < Es, p = () => {
3510
3510
  if (!document.hidden) {
3511
3511
  const S = f();
3512
3512
  o.toggleDevice(S ? "mobile" : "desktop"), S && o.closeSideBar({ withoutAnimation: !0 });
@@ -3524,27 +3524,27 @@ const gs = /* @__PURE__ */ z({
3524
3524
  class: "drawer-bg",
3525
3525
  onClick: b
3526
3526
  })) : $("", !0),
3527
- u(h(ks), { class: "sidebar-container" }),
3528
- _("div", Es, [
3527
+ u(h(gs), { class: "sidebar-container" }),
3528
+ _("div", xs, [
3529
3529
  _("div", {
3530
3530
  class: te({ "fixed-header": h(c) })
3531
3531
  }, [
3532
- u(h(es))
3532
+ u(h(Yl))
3533
3533
  ], 2),
3534
- u(h(xs))
3534
+ u(h(ws))
3535
3535
  ])
3536
3536
  ], 2));
3537
3537
  }
3538
- }, Jt = /* @__PURE__ */ R(Cs, [["__scopeId", "data-v-9a5dd368"]]), Ts = { class: "login-container" }, Os = { class: "login-card-wrapper" }, $s = { class: "login-header" }, Bs = { class: "logo-wrapper" }, As = ["src"], Rs = {
3538
+ }, Jt = /* @__PURE__ */ L(Is, [["__scopeId", "data-v-9a5dd368"]]), Cs = { class: "login-container" }, Ts = { class: "login-card-wrapper" }, Os = { class: "login-header" }, $s = { class: "logo-wrapper" }, Bs = ["src"], As = {
3539
3539
  key: 1,
3540
3540
  class: "logo-fallback"
3541
- }, Ps = { class: "login-title" }, Ls = { class: "captcha-wrapper" }, Ms = ["src"], Ds = {
3541
+ }, Rs = { class: "login-title" }, Ps = { class: "captcha-wrapper" }, Ls = ["src"], Ms = {
3542
3542
  key: 1,
3543
3543
  class: "login-tips"
3544
- }, js = {
3544
+ }, Ds = {
3545
3545
  key: 2,
3546
3546
  class: "sso-divider"
3547
- }, Ns = { class: "login-footer" }, Vs = /* @__PURE__ */ z({
3547
+ }, js = { class: "login-footer" }, Ns = /* @__PURE__ */ z({
3548
3548
  __name: "login",
3549
3549
  setup(e) {
3550
3550
  const t = Te(), o = Q(), n = U(), l = Y(), s = j(), a = k(() => n.loginTips), c = k(() => n.captcha), d = k(() => l.baseURL), f = C(0), p = C(!1), b = C({
@@ -3574,7 +3574,7 @@ const gs = /* @__PURE__ */ z({
3574
3574
  };
3575
3575
  return (y, x) => {
3576
3576
  const F = fn, G = Xe, g = Mt, M = he, ee = Qe, Ae = $e;
3577
- return i(), v("div", Ts, [
3577
+ return i(), v("div", Cs, [
3578
3578
  x[7] || (x[7] = _("div", { class: "login-background" }, [
3579
3579
  _("div", { class: "shape shape-1" }),
3580
3580
  _("div", { class: "shape shape-2" }),
@@ -3585,22 +3585,22 @@ const gs = /* @__PURE__ */ z({
3585
3585
  appear: ""
3586
3586
  }, {
3587
3587
  default: r(() => [
3588
- _("div", Os, [
3588
+ _("div", Ts, [
3589
3589
  u(Ae, {
3590
3590
  class: "login-card",
3591
3591
  shadow: "never"
3592
3592
  }, {
3593
3593
  default: r(() => [
3594
- _("div", $s, [
3595
- _("div", Bs, [
3594
+ _("div", Os, [
3595
+ _("div", $s, [
3596
3596
  h(n).logo ? (i(), v("img", {
3597
3597
  key: 0,
3598
3598
  src: h(n).logo,
3599
3599
  alt: "Logo",
3600
3600
  class: "logo-img"
3601
- }, null, 8, As)) : (i(), v("div", Rs, B(S.value), 1))
3601
+ }, null, 8, Bs)) : (i(), v("div", As, B(S.value), 1))
3602
3602
  ]),
3603
- _("h1", Ps, B(h(n).title || "OMS"), 1),
3603
+ _("h1", Rs, B(h(n).title || "OMS"), 1),
3604
3604
  x[3] || (x[3] = _("p", { class: "login-subtitle" }, "欢迎回来,请登录您的账户", -1))
3605
3605
  ]),
3606
3606
  u(ee, {
@@ -3642,7 +3642,7 @@ const gs = /* @__PURE__ */ z({
3642
3642
  prop: "captcha"
3643
3643
  }, {
3644
3644
  default: r(() => [
3645
- _("div", Ls, [
3645
+ _("div", Ps, [
3646
3646
  u(F, {
3647
3647
  modelValue: b.value.captcha,
3648
3648
  "onUpdate:modelValue": x[2] || (x[2] = (W) => b.value.captcha = W),
@@ -3658,13 +3658,13 @@ const gs = /* @__PURE__ */ z({
3658
3658
  src: d.value + "/user/captcha?ts=" + f.value,
3659
3659
  title: "点击刷新",
3660
3660
  class: "captcha-img"
3661
- }, null, 8, Ms)
3661
+ }, null, 8, Ls)
3662
3662
  ])
3663
3663
  ])
3664
3664
  ]),
3665
3665
  _: 1
3666
3666
  })) : $("", !0),
3667
- a.value ? (i(), v("div", Ds, [
3667
+ a.value ? (i(), v("div", Ms, [
3668
3668
  u(g, null, {
3669
3669
  default: r(() => [
3670
3670
  u(h(Sn))
@@ -3686,7 +3686,7 @@ const gs = /* @__PURE__ */ z({
3686
3686
  ])]),
3687
3687
  _: 1
3688
3688
  }, 8, ["loading", "disabled"]),
3689
- Object.keys(h(n).sso || {}).length > 0 ? (i(), v("div", js, [...x[5] || (x[5] = [
3689
+ Object.keys(h(n).sso || {}).length > 0 ? (i(), v("div", Ds, [...x[5] || (x[5] = [
3690
3690
  _("span", null, "其他登录方式", -1)
3691
3691
  ])])) : $("", !0),
3692
3692
  x[6] || (x[6] = _("div", { class: "sso-container" }, [
@@ -3698,7 +3698,7 @@ const gs = /* @__PURE__ */ z({
3698
3698
  ]),
3699
3699
  _: 1
3700
3700
  }),
3701
- _("div", Ns, " © " + B((/* @__PURE__ */ new Date()).getFullYear()) + " " + B(h(n).title || "OMS") + ". All rights reserved. ", 1)
3701
+ _("div", js, " © " + B((/* @__PURE__ */ new Date()).getFullYear()) + " " + B(h(n).title || "OMS") + ". All rights reserved. ", 1)
3702
3702
  ])
3703
3703
  ]),
3704
3704
  _: 1
@@ -3706,11 +3706,11 @@ const gs = /* @__PURE__ */ z({
3706
3706
  ]);
3707
3707
  };
3708
3708
  }
3709
- }), Us = {
3709
+ }), Vs = {
3710
3710
  name: "NotFoundPage"
3711
- }, qs = { class: "not-found" };
3712
- function Hs(e, t, o, n, l, s) {
3713
- return i(), v("div", qs, [...t[0] || (t[0] = [
3711
+ }, Us = { class: "not-found" };
3712
+ function qs(e, t, o, n, l, s) {
3713
+ return i(), v("div", Us, [...t[0] || (t[0] = [
3714
3714
  _("svg", {
3715
3715
  width: "380px",
3716
3716
  height: "500px",
@@ -3779,7 +3779,7 @@ function Hs(e, t, o, n, l, s) {
3779
3779
  ], -1)
3780
3780
  ])]);
3781
3781
  }
3782
- const Fs = /* @__PURE__ */ R(Us, [["render", Hs], ["__scopeId", "data-v-26068803"]]), Gs = [
3782
+ const Hs = /* @__PURE__ */ L(Vs, [["render", qs], ["__scopeId", "data-v-26068803"]]), Fs = [
3783
3783
  {
3784
3784
  path: "/",
3785
3785
  component: Jt,
@@ -3792,47 +3792,47 @@ const Fs = /* @__PURE__ */ R(Us, [["render", Hs], ["__scopeId", "data-v-26068803
3792
3792
  {
3793
3793
  path: "dashboard",
3794
3794
  name: "Dashboard",
3795
- component: Qn,
3795
+ component: Wn,
3796
3796
  meta: { title: "Dashboard", icon: "el-icon-help", menuType: 2, keepAlive: !0 }
3797
3797
  }
3798
3798
  ]
3799
3799
  },
3800
3800
  {
3801
3801
  path: "/login",
3802
- component: Vs,
3802
+ component: Ns,
3803
3803
  meta: { title: "用户登录", menuType: 0 },
3804
3804
  hidden: !0
3805
3805
  },
3806
3806
  {
3807
3807
  path: "/404",
3808
- component: Fs,
3808
+ component: Hs,
3809
3809
  meta: { menuType: 0 },
3810
3810
  hidden: !0
3811
3811
  }
3812
3812
  ], le = zo({
3813
3813
  history: Jo(),
3814
- routes: Gs
3814
+ routes: Fs
3815
3815
  });
3816
3816
  Ve.configure({ showSpinner: !1 });
3817
- function Ks(e) {
3817
+ function Gs(e) {
3818
3818
  e.beforeEach((t, o, n) => {
3819
3819
  Ve.start(), t.preHash = location.hash.replace("#", ""), n();
3820
3820
  }), e.afterEach((t) => {
3821
- const o = j(L);
3821
+ const o = j(P);
3822
3822
  t.matched.length > 0 && o.updateState({
3823
3823
  key: "path",
3824
3824
  value: t.matched[t.matched.length - 1].path.replace("(\\d+)", "")
3825
3825
  }), Ve.done();
3826
3826
  });
3827
3827
  }
3828
- function zs() {
3829
- return j(L).isLodeRemoteRoutes;
3828
+ function Ks() {
3829
+ return j(P).isLodeRemoteRoutes;
3830
3830
  }
3831
3831
  function Wt() {
3832
- return U(L).whiteRoutes || [];
3832
+ return U(P).whiteRoutes || [];
3833
3833
  }
3834
- function Js() {
3835
- return j(L).token;
3834
+ function zs() {
3835
+ return j(P).token;
3836
3836
  }
3837
3837
  class Qt {
3838
3838
  type = "qrcode";
@@ -3844,7 +3844,7 @@ class Qt {
3844
3844
  showQrCode() {
3845
3845
  }
3846
3846
  }
3847
- class hr extends Qt {
3847
+ class mr extends Qt {
3848
3848
  type = "jump";
3849
3849
  client_id = "";
3850
3850
  constructor(t) {
@@ -3863,7 +3863,7 @@ class hr extends Qt {
3863
3863
  location.replace(`https://github.com/login/oauth/authorize?client_id=${this.client_id}&redirect_uri${n}`);
3864
3864
  }
3865
3865
  }
3866
- class br extends Qt {
3866
+ class hr extends Qt {
3867
3867
  type = "qrcode";
3868
3868
  qrCodeUrl = "https://login.dingtalk.com/login/qrcode.htm?goto={goto}&style={style}";
3869
3869
  reloadUrl = "https://oapi.dingtalk.com/connect/oauth2/sns_authorize?response_type=code&scope=snsapi_login&state=&appid={appid}&redirect_uri={redirect_uri}";
@@ -3907,31 +3907,31 @@ class br extends Qt {
3907
3907
  ) : typeof window.attachEvent < "u" && window.attachEvent("onmessage", (l) => this.onScanSuccess(l));
3908
3908
  }
3909
3909
  }
3910
- const Ws = {};
3911
- function Qs() {
3912
- return q(U(L).sso || {}, Ws);
3910
+ const Js = {};
3911
+ function Ws() {
3912
+ return q(U(P).sso || {}, Js);
3913
3913
  }
3914
- function Xs() {
3915
- const e = Qs(), t = U(L).activeSsoKey || "", o = e[t];
3914
+ function Qs() {
3915
+ const e = Ws(), t = U(P).activeSsoKey || "", o = e[t];
3916
3916
  if (o !== void 0)
3917
3917
  return o();
3918
3918
  }
3919
- function Zs(e) {
3919
+ function Xs(e) {
3920
3920
  e.beforeEach(async (t, o, n) => {
3921
3921
  if (Wt().indexOf(t.path) !== -1) {
3922
3922
  n();
3923
3923
  return;
3924
3924
  }
3925
- if (Js()) {
3925
+ if (zs()) {
3926
3926
  t.query?.redirect ? n(t.query?.redirect) : n();
3927
3927
  return;
3928
3928
  }
3929
- const s = t.query.redirect || t.path, a = Xs();
3929
+ const s = t.query.redirect || t.path, a = Qs();
3930
3930
  if (!a) {
3931
3931
  n(`/login?redirect=${s}`);
3932
3932
  return;
3933
3933
  }
3934
- const c = a.flag(), d = j(L);
3934
+ const c = a.flag(), d = j(P);
3935
3935
  if (c && await d.login(Uo(c) ? c : { ticket: c })) {
3936
3936
  n();
3937
3937
  return;
@@ -3939,13 +3939,13 @@ function Zs(e) {
3939
3939
  a.jumpToLoginPage(n, `/login?redirect=${s}`);
3940
3940
  });
3941
3941
  }
3942
- const Ys = {}, ea = { class: "loading preloader" };
3943
- function ta(e, t) {
3944
- return i(), v("div", ea, [...t[0] || (t[0] = [
3942
+ const Zs = {}, Ys = { class: "loading preloader" };
3943
+ function ea(e, t) {
3944
+ return i(), v("div", Ys, [...t[0] || (t[0] = [
3945
3945
  _("div", { class: "preloader-inner" }, null, -1)
3946
3946
  ])]);
3947
3947
  }
3948
- const oa = /* @__PURE__ */ R(Ys, [["render", ta]]), na = {
3948
+ const ta = /* @__PURE__ */ L(Zs, [["render", ea]]), oa = {
3949
3949
  name: "VNotice",
3950
3950
  props: {
3951
3951
  dataApi: {
@@ -3974,13 +3974,13 @@ const oa = /* @__PURE__ */ R(Ys, [["render", ta]]), na = {
3974
3974
  this.hasNotice = Object.keys(this.$props.notice).length > 0, this.noticeProps = this.$props.notice;
3975
3975
  }
3976
3976
  };
3977
- function la(e, t, o, n, l, s) {
3977
+ function na(e, t, o, n, l, s) {
3978
3978
  const a = et;
3979
3979
  return i(), v("div", null, [
3980
3980
  l.hasNotice ? (i(), m(a, Z(X({ key: 0 }, l.noticeProps)), null, 16)) : $("", !0)
3981
3981
  ]);
3982
3982
  }
3983
- const sa = /* @__PURE__ */ R(na, [["render", la]]), aa = ["innerHTML"], ia = /* @__PURE__ */ z({
3983
+ const la = /* @__PURE__ */ L(oa, [["render", na]]), sa = ["innerHTML"], aa = /* @__PURE__ */ z({
3984
3984
  __name: "PageLoad",
3985
3985
  props: {
3986
3986
  schemaHandler: { type: Function, default: (e) => e },
@@ -4007,19 +4007,19 @@ const sa = /* @__PURE__ */ R(na, [["render", la]]), aa = ["innerHTML"], ia = /*
4007
4007
  key: 1,
4008
4008
  class: "offline-notice",
4009
4009
  innerHTML: h(S) === !0 ? h(O).serviceOffLineNotice : h(S)
4010
- }, null, 8, aa)) : (i(), v(A, { key: 2 }, [
4011
- h(c) ? (i(), m(sa, {
4010
+ }, null, 8, sa)) : (i(), v(A, { key: 2 }, [
4011
+ h(c) ? (i(), m(la, {
4012
4012
  key: 0,
4013
4013
  notice: h(d),
4014
4014
  style: { margin: "0 0 20px 0" },
4015
4015
  "data-api": h(f)
4016
4016
  }, null, 8, ["notice", "data-api"])) : $("", !0),
4017
- h(a) ? (i(), m(oa, { key: 1 })) : pe(w.$slots, "default", Z(X({ key: 2 }, h(p))), void 0, !0)
4017
+ h(a) ? (i(), m(ta, { key: 1 })) : pe(w.$slots, "default", Z(X({ key: 2 }, h(p))), void 0, !0)
4018
4018
  ], 64))
4019
4019
  ], 64);
4020
4020
  };
4021
4021
  }
4022
- }), ge = /* @__PURE__ */ R(ia, [["__scopeId", "data-v-e330fdc7"]]), Xt = {
4022
+ }), ge = /* @__PURE__ */ L(aa, [["__scopeId", "data-v-e330fdc7"]]), Xt = {
4023
4023
  __name: "table",
4024
4024
  setup(e) {
4025
4025
  const t = (o, n) => {
@@ -4094,7 +4094,7 @@ const sa = /* @__PURE__ */ R(na, [["render", la]]), aa = ["innerHTML"], ia = /*
4094
4094
  _: 1
4095
4095
  }));
4096
4096
  }
4097
- }, ra = z({
4097
+ }, ia = z({
4098
4098
  name: "VTree",
4099
4099
  components: {
4100
4100
  VForm: ne
@@ -4234,12 +4234,12 @@ const sa = /* @__PURE__ */ R(na, [["render", la]]), aa = ["innerHTML"], ia = /*
4234
4234
  });
4235
4235
  }
4236
4236
  }
4237
- }), ca = { class: "card-header" }, ua = { class: "tree-action" }, da = { key: 0 }, pa = {
4237
+ }), ra = { class: "card-header" }, ca = { class: "tree-action" }, ua = { key: 0 }, da = {
4238
4238
  key: 1,
4239
4239
  style: { color: "#E6A23C" }
4240
- }, fa = { class: "card-header" };
4241
- function ma(e, t, o, n, l, s) {
4242
- const a = he, c = mn, d = $e, f = Oe, p = P("v-form"), b = _e;
4240
+ }, pa = { class: "card-header" };
4241
+ function fa(e, t, o, n, l, s) {
4242
+ const a = he, c = mn, d = $e, f = Oe, p = R("v-form"), b = _e;
4243
4243
  return i(), m(b, {
4244
4244
  class: "tree-box",
4245
4245
  gutter: 20
@@ -4252,7 +4252,7 @@ function ma(e, t, o, n, l, s) {
4252
4252
  default: r(() => [
4253
4253
  u(d, { shadow: "never" }, {
4254
4254
  header: r(() => [
4255
- _("div", ca, [
4255
+ _("div", ra, [
4256
4256
  t[3] || (t[3] = _("span", null, "列表", -1)),
4257
4257
  u(a, {
4258
4258
  type: "text",
@@ -4278,8 +4278,8 @@ function ma(e, t, o, n, l, s) {
4278
4278
  onNodeDragEnd: e.handleDragEnd
4279
4279
  }), {
4280
4280
  default: r(({ node: S, data: I }) => [
4281
- _("span", ua, [
4282
- I[e.localTreeProps.props.label] ? (i(), v("span", da, B(I[e.localTreeProps.props.label]), 1)) : (i(), v("span", pa, "请在右侧表单中修改 --> ")),
4281
+ _("span", ca, [
4282
+ I[e.localTreeProps.props.label] ? (i(), v("span", ua, B(I[e.localTreeProps.props.label]), 1)) : (i(), v("span", da, "请在右侧表单中修改 --> ")),
4283
4283
  _("span", null, [
4284
4284
  I[e.localTreeProps.props.label] ? (i(), m(a, {
4285
4285
  key: 0,
@@ -4335,7 +4335,7 @@ function ma(e, t, o, n, l, s) {
4335
4335
  shadow: "never"
4336
4336
  }, {
4337
4337
  header: r(() => [
4338
- _("div", fa, [
4338
+ _("div", pa, [
4339
4339
  _("span", null, B(e.formType), 1)
4340
4340
  ])
4341
4341
  ]),
@@ -4355,7 +4355,7 @@ function ma(e, t, o, n, l, s) {
4355
4355
  _: 1
4356
4356
  });
4357
4357
  }
4358
- const _t = /* @__PURE__ */ R(ra, [["render", ma]]), ha = {
4358
+ const _t = /* @__PURE__ */ L(ia, [["render", fa]]), ma = {
4359
4359
  __name: "tree",
4360
4360
  setup(e) {
4361
4361
  const t = (o, n) => {
@@ -4378,11 +4378,11 @@ const _t = /* @__PURE__ */ R(ra, [["render", ma]]), ha = {
4378
4378
  return Wo(() => {
4379
4379
  t.value++;
4380
4380
  }), (o, n) => {
4381
- const l = P("router-view");
4381
+ const l = R("router-view");
4382
4382
  return i(), m(l);
4383
4383
  };
4384
4384
  }
4385
- }, ba = {
4385
+ }, ha = {
4386
4386
  title: {
4387
4387
  text: ""
4388
4388
  },
@@ -4411,10 +4411,10 @@ const _t = /* @__PURE__ */ R(ra, [["render", ma]]), ha = {
4411
4411
  },
4412
4412
  series: []
4413
4413
  };
4414
- function ya(e, t, o) {
4414
+ function ba(e, t, o) {
4415
4415
  if (o.length === 0)
4416
4416
  return {};
4417
- let n = q({}, ba);
4417
+ let n = q({}, ha);
4418
4418
  if (n.title.text = e, Je(t)) {
4419
4419
  const l = [], s = Object.keys(o[0]);
4420
4420
  let a = s[0], c = s.filter((f, p) => p > 0), d = t;
@@ -4438,7 +4438,7 @@ function ya(e, t, o) {
4438
4438
  }
4439
4439
  return re(t) && (n = q(n, t)), n;
4440
4440
  }
4441
- const _a = z({
4441
+ const ya = z({
4442
4442
  name: "NumberPanel",
4443
4443
  props: {
4444
4444
  dataList: {
@@ -4449,27 +4449,27 @@ const _a = z({
4449
4449
  data() {
4450
4450
  return {};
4451
4451
  }
4452
- }), va = { class: "number-panel-title" }, ga = { class: "number" }, ka = { class: "name" };
4453
- function Sa(e, t, o, n, l, s) {
4452
+ }), _a = { class: "number-panel-title" }, va = { class: "number" }, ga = { class: "name" };
4453
+ function ka(e, t, o, n, l, s) {
4454
4454
  return i(!0), v(A, null, V(e.dataList, (a, c) => (i(), v("span", { key: c }, [
4455
- _("div", va, [
4455
+ _("div", _a, [
4456
4456
  (i(!0), v(A, null, V(Object.keys(a), (d, f) => (i(), v("div", {
4457
4457
  key: f,
4458
4458
  class: "title-inner"
4459
4459
  }, [
4460
- _("p", ga, B(a[d]), 1),
4461
- _("p", ka, B(d), 1)
4460
+ _("p", va, B(a[d]), 1),
4461
+ _("p", ga, B(d), 1)
4462
4462
  ]))), 128))
4463
4463
  ])
4464
4464
  ]))), 128);
4465
4465
  }
4466
- const wa = /* @__PURE__ */ R(_a, [["render", Sa], ["__scopeId", "data-v-cc0d8293"]]), xa = {
4466
+ const Sa = /* @__PURE__ */ L(ya, [["render", ka], ["__scopeId", "data-v-cc0d8293"]]), wa = {
4467
4467
  components: {
4468
4468
  Chart: bn,
4469
4469
  Md: xn,
4470
4470
  Json: tt,
4471
4471
  Table: be,
4472
- Number: wa,
4472
+ Number: Sa,
4473
4473
  Html: ""
4474
4474
  },
4475
4475
  props: {
@@ -4490,7 +4490,7 @@ const wa = /* @__PURE__ */ R(_a, [["render", Sa], ["__scopeId", "data-v-cc0d8293
4490
4490
  };
4491
4491
  if (l === "chart")
4492
4492
  return {
4493
- options: ya(n.id, n.chart, n.data)
4493
+ options: ba(n.id, n.chart, n.data)
4494
4494
  };
4495
4495
  if (l === "md")
4496
4496
  return {
@@ -4514,7 +4514,7 @@ const wa = /* @__PURE__ */ R(_a, [["render", Sa], ["__scopeId", "data-v-cc0d8293
4514
4514
  };
4515
4515
  }
4516
4516
  };
4517
- function Ea(e, t, o, n, l, s) {
4517
+ function xa(e, t, o, n, l, s) {
4518
4518
  const a = $e, c = wo("resize");
4519
4519
  return xo((i(), m(a, {
4520
4520
  shadow: "never",
@@ -4528,7 +4528,7 @@ function Ea(e, t, o, n, l, s) {
4528
4528
  [c, !0]
4529
4529
  ]);
4530
4530
  }
4531
- const Ia = /* @__PURE__ */ R(xa, [["render", Ea], ["__scopeId", "data-v-a5a65cc1"]]), Ca = /* @__PURE__ */ z({
4531
+ const Ea = /* @__PURE__ */ L(wa, [["render", xa], ["__scopeId", "data-v-a5a65cc1"]]), Ia = /* @__PURE__ */ z({
4532
4532
  __name: "index",
4533
4533
  props: {
4534
4534
  filter: {
@@ -4617,7 +4617,7 @@ const Ia = /* @__PURE__ */ R(xa, [["render", Ea], ["__scopeId", "data-v-a5a65cc1
4617
4617
  T(B(y.errMsg), 1)
4618
4618
  ]),
4619
4619
  _: 2
4620
- }, 1032, ["title"])) : (i(), m(Ia, {
4620
+ }, 1032, ["title"])) : (i(), m(Ea, {
4621
4621
  key: h(s),
4622
4622
  option: y
4623
4623
  }, null, 8, ["option"]))
@@ -4635,7 +4635,7 @@ const Ia = /* @__PURE__ */ R(xa, [["render", Ea], ["__scopeId", "data-v-a5a65cc1
4635
4635
  });
4636
4636
  };
4637
4637
  }
4638
- }), Ta = {
4638
+ }), Ca = {
4639
4639
  __name: "report",
4640
4640
  setup(e) {
4641
4641
  const t = Q(), o = k(() => {
@@ -4648,19 +4648,19 @@ const Ia = /* @__PURE__ */ R(xa, [["render", Ea], ["__scopeId", "data-v-a5a65cc1
4648
4648
  });
4649
4649
  return (n, l) => (i(), m(ge, { "schema-api": h(o) }, {
4650
4650
  default: r((s) => [
4651
- u(Ca, Z(ce(s)), null, 16)
4651
+ u(Ia, Z(ce(s)), null, 16)
4652
4652
  ]),
4653
4653
  _: 1
4654
4654
  }, 8, ["schema-api"]));
4655
4655
  }
4656
- }, Oa = (e) => u("div", null, [e.test]), $a = {
4656
+ }, Ta = (e) => u("div", null, [e.test]), Oa = {
4657
4657
  card: Go,
4658
4658
  form: ne,
4659
4659
  table: be,
4660
- test: Oa,
4660
+ test: Ta,
4661
4661
  row: Fo,
4662
4662
  col: Ho
4663
- }, Ba = {
4663
+ }, $a = {
4664
4664
  card: {
4665
4665
  type: "card",
4666
4666
  props: {
@@ -4681,7 +4681,7 @@ const Ia = /* @__PURE__ */ R(xa, [["render", Ea], ["__scopeId", "data-v-a5a65cc1
4681
4681
  }
4682
4682
  }
4683
4683
  };
4684
- function Aa(e) {
4684
+ function Ba(e) {
4685
4685
  const t = Object.assign({}, e), o = t.type.split(".").reverse(), n = t.span || 24;
4686
4686
  delete t.span;
4687
4687
  let l = {
@@ -4720,13 +4720,13 @@ function st(e) {
4720
4720
  t.children.push({
4721
4721
  type: "col",
4722
4722
  props: l,
4723
- children: Aa(n)
4723
+ children: Ba(n)
4724
4724
  });
4725
4725
  return;
4726
4726
  }
4727
4727
  n = q({
4728
4728
  props: {}
4729
- }, Ba[n.type] || {}, n);
4729
+ }, $a[n.type] || {}, n);
4730
4730
  const s = Zt(n.children);
4731
4731
  s.length && (n.children = st(s)), t.children.push({
4732
4732
  type: "col",
@@ -4740,27 +4740,27 @@ function Zt(e) {
4740
4740
  }
4741
4741
  let Fe = {};
4742
4742
  const Yt = (e) => {
4743
- const t = $a[e.type] || Fe[e.type] || e.type;
4743
+ const t = Oa[e.type] || Fe[e.type] || e.type;
4744
4744
  return Io(t, e.props, {
4745
4745
  default: () => Zt(e.children).map((o) => Yt(o))
4746
4746
  });
4747
- }, Ra = (e) => (Object.keys(Fe).length === 0 && (Fe = Eo().appContext.components), st(Object.values(e.schema)).map((o) => Yt(o))), Pa = {
4747
+ }, Aa = (e) => (Object.keys(Fe).length === 0 && (Fe = Eo().appContext.components), st(Object.values(e.schema)).map((o) => Yt(o))), Ra = {
4748
4748
  __name: "custom",
4749
4749
  setup(e) {
4750
4750
  const t = C([]), o = (n, l) => (t.value = Co(n), n);
4751
4751
  return (n, l) => (i(), m(ge, { "schema-handler": o }, {
4752
4752
  default: r(() => [
4753
- u(h(Ra), { schema: h(t) }, null, 8, ["schema"])
4753
+ u(h(Aa), { schema: h(t) }, null, 8, ["schema"])
4754
4754
  ]),
4755
4755
  _: 1
4756
4756
  }));
4757
4757
  }
4758
4758
  };
4759
4759
  let de = {};
4760
- function yr(e) {
4760
+ function br(e) {
4761
4761
  de = e;
4762
4762
  }
4763
- const La = (e) => {
4763
+ const Pa = (e) => {
4764
4764
  const t = (o) => {
4765
4765
  const n = "./views/" + o + ".vue";
4766
4766
  return de && de[n] && de[n].default ? de[n].default : (console.error(`自定义组件不存在 ${e.name} ${e.view}`), je);
@@ -4776,26 +4776,26 @@ const La = (e) => {
4776
4776
  case J.localComp:
4777
4777
  return t(e.view || "");
4778
4778
  case J.tree:
4779
- return ha;
4779
+ return ma;
4780
4780
  case J.report:
4781
- return Ta;
4781
+ return Ca;
4782
4782
  case J.customSchema:
4783
- return Pa;
4783
+ return Ra;
4784
4784
  }
4785
4785
  return je;
4786
4786
  };
4787
- function Ma(e) {
4787
+ function La(e) {
4788
4788
  let t = e.path;
4789
4789
  return e.type === K.menu && e.page_type === J.entity && (t = "#"), t.indexOf(":id") > -1 && t.indexOf(":id") + 3 === t.length && (t = t.replace(":id", ":id(\\d+)")), t === "#" ? "/" + e.id + "_DIR_" + e.name : t[0] !== "/" ? "/" + t : t;
4790
4790
  }
4791
- function Da(e) {
4791
+ function Ma(e) {
4792
4792
  return (e.path + e.name).split("/").filter((t) => t).join("_");
4793
4793
  }
4794
4794
  const eo = (e) => {
4795
4795
  const t = e.type !== K.page, o = {
4796
- path: Ma(e),
4797
- name: e.id + "_" + Da(e) + "_" + e.path.replaceAll("/", "_"),
4798
- component: La(e),
4796
+ path: La(e),
4797
+ name: e.id + "_" + Ma(e) + "_" + e.path.replaceAll("/", "_"),
4798
+ component: Pa(e),
4799
4799
  meta: {
4800
4800
  id: e.id,
4801
4801
  pageId: e.id,
@@ -4868,7 +4868,7 @@ const eo = (e) => {
4868
4868
  }
4869
4869
  }
4870
4870
  return o;
4871
- }, ja = (e) => {
4871
+ }, Da = (e) => {
4872
4872
  const t = [];
4873
4873
  return e.forEach((o) => {
4874
4874
  const n = {
@@ -4880,15 +4880,15 @@ const eo = (e) => {
4880
4880
  n.routes.push(eo(l));
4881
4881
  }), t.push(n);
4882
4882
  }), t;
4883
- }, Na = "root", vt = (e) => e ? e.split(",").map((t) => t.trim()).filter((t) => !!t) : [], Va = (e) => {
4883
+ }, ja = "root", vt = (e) => e ? e.split(",").map((t) => t.trim()).filter((t) => !!t) : [], Na = (e) => {
4884
4884
  const t = typeof e.role == "string" ? e.role : "", o = e.meta && typeof e.meta.role == "string" ? e.meta.role : "", n = [...vt(t), ...vt(o)];
4885
4885
  return !n.length && e.children && e.children.length ? [] : Array.from(new Set(n));
4886
4886
  }, to = (e) => {
4887
4887
  const t = { ...e };
4888
4888
  return e.meta && (t.meta = { ...e.meta }), e.children && e.children.length && (t.children = e.children.map((o) => to(o))), t;
4889
- }, Ua = (e, t) => e.length ? t.length ? e.some((o) => t.includes(o)) : !1 : !0, at = (e = [], t) => t.includes(Na) ? e.map((o) => to(o)) : e.reduce((o, n) => {
4890
- const l = Va(n);
4891
- if (!Ua(l, t))
4889
+ }, Va = (e, t) => e.length ? t.length ? e.some((o) => t.includes(o)) : !1 : !0, at = (e = [], t) => t.includes(ja) ? e.map((o) => to(o)) : e.reduce((o, n) => {
4890
+ const l = Na(n);
4891
+ if (!Va(l, t))
4892
4892
  return o;
4893
4893
  const s = { ...n };
4894
4894
  if (n.meta && (s.meta = { ...n.meta }), n.children && n.children.length) {
@@ -4898,7 +4898,7 @@ const eo = (e) => {
4898
4898
  s.children = a;
4899
4899
  }
4900
4900
  return o.push(s), o;
4901
- }, []), qa = (e) => {
4901
+ }, []), Ua = (e) => {
4902
4902
  const t = globalThis.atob(e);
4903
4903
  let o = "";
4904
4904
  for (let n = 0; n < t.length; n++) {
@@ -4910,38 +4910,38 @@ const eo = (e) => {
4910
4910
  } catch {
4911
4911
  return decodeURIComponent(encodeURIComponent(t));
4912
4912
  }
4913
- }, Ha = (e) => {
4913
+ }, qa = (e) => {
4914
4914
  const t = e.replace(/-/g, "+").replace(/_/g, "/"), o = 4 - t.length % 4, n = t + (o < 4 ? "=".repeat(o) : "");
4915
- return typeof globalThis.atob == "function" ? qa(n) : typeof Buffer < "u" ? Buffer.from(n, "base64").toString("utf-8") : "";
4916
- }, Fa = (e) => {
4915
+ return typeof globalThis.atob == "function" ? Ua(n) : typeof Buffer < "u" ? Buffer.from(n, "base64").toString("utf-8") : "";
4916
+ }, Ha = (e) => {
4917
4917
  if (!e)
4918
4918
  return null;
4919
4919
  const t = e.split(".");
4920
4920
  if (t.length < 2)
4921
4921
  return null;
4922
4922
  try {
4923
- const o = Ha(t[1]);
4923
+ const o = qa(t[1]);
4924
4924
  return o ? JSON.parse(o) : null;
4925
4925
  } catch {
4926
4926
  return null;
4927
4927
  }
4928
4928
  }, oo = (e) => {
4929
- const t = Fa(e);
4929
+ const t = Ha(e);
4930
4930
  return (t && typeof t.role == "string" ? t.role : "").split(",").map((n) => n.trim()).filter((n) => !!n);
4931
4931
  };
4932
- function Ga(e) {
4932
+ function Fa(e) {
4933
4933
  e.beforeEach(async (t, o, n) => {
4934
4934
  if (Wt().indexOf(t.path) !== -1) {
4935
4935
  n();
4936
4936
  return;
4937
4937
  }
4938
- if (zs()) {
4938
+ if (Ks()) {
4939
4939
  n();
4940
4940
  return;
4941
4941
  }
4942
- const l = j(L);
4942
+ const l = j(P);
4943
4943
  await l.info();
4944
- const s = await l.loadRemoteRoutes(), a = ja(s), c = oo(ve()), d = a.map((f) => {
4944
+ const s = await l.loadRemoteRoutes(), a = Da(s), c = oo(ve()), d = a.map((f) => {
4945
4945
  const p = at(f.routes, c);
4946
4946
  return {
4947
4947
  ...f,
@@ -4959,28 +4959,28 @@ function Ga(e) {
4959
4959
  }), e.addRoute({ name: "404", path: "/:pathMatch(.*)*", redirect: "/404", hidden: !0 }), l.updateRemoteRouter(d), await e.replace(t), n();
4960
4960
  });
4961
4961
  }
4962
- function Ka(e) {
4962
+ function Ga(e) {
4963
4963
  e.beforeEach(async (t, o, n) => {
4964
- const s = [U(L).title || ""], a = t.matched.length;
4964
+ const s = [U(P).title || ""], a = t.matched.length;
4965
4965
  for (let c = a; c > a - 3; c--) {
4966
4966
  const d = t.matched[c - 1];
4967
4967
  d?.meta?.title && s.push(d.meta.title + "");
4968
4968
  }
4969
4969
  s.length > 1 && (document.title = s.reverse().join("-")), n();
4970
4970
  }), e.afterEach(async (t, o, n) => {
4971
- const l = Y(L);
4971
+ const l = Y(P);
4972
4972
  Object.keys(t.meta).length > 0 && await l.setCurrentMeta(t.meta);
4973
4973
  });
4974
4974
  }
4975
- function za(e) {
4976
- Zs(e), Ks(e), Ga(e), Ka(e);
4975
+ function Ka(e) {
4976
+ Xs(e), Gs(e), Fa(e), Ga(e);
4977
+ }
4978
+ Ka(le);
4979
+ function za() {
4980
+ return j(P).token;
4977
4981
  }
4978
- za(le);
4979
4982
  function Ja() {
4980
- return j(L).token;
4981
- }
4982
- function Wa() {
4983
- return j(L).expired;
4983
+ return j(P).expired;
4984
4984
  }
4985
4985
  function gt(e) {
4986
4986
  Fn({
@@ -4990,26 +4990,26 @@ function gt(e) {
4990
4990
  grouping: !0
4991
4991
  });
4992
4992
  }
4993
- const Qa = {
4993
+ const Wa = {
4994
4994
  onFulfilled: function(e) {
4995
4995
  e.headers = e.headers || {};
4996
- const t = Ja();
4996
+ const t = za();
4997
4997
  return t && (e.headers["X-Token"] = t), le.currentRoute.value.meta?.path && (e.headers["X-Path"] = le.currentRoute.value.meta.path), e;
4998
4998
  }
4999
- }, Xa = {
4999
+ }, Qa = {
5000
5000
  onFulfilled(e) {
5001
5001
  if (!(e.config?.notHoldApiErr !== void 0 && e.config?.notHoldApiErr === !0) && e.data.code !== 0) {
5002
5002
  const n = e.data.message || `接口请求错误 ${e.config.method}::${e.config.url?.split("?")[0]}`;
5003
5003
  if (e.data.code === 401) {
5004
- if (Wa())
5004
+ if (Ja())
5005
5005
  return;
5006
- j(L).SetExpired(), bt.alert("登录信息已过期或未登录, 是否跳转登录", "操作提醒", {
5006
+ j(P).SetExpired(), bt.alert("登录信息已过期或未登录, 是否跳转登录", "操作提醒", {
5007
5007
  showClose: !1,
5008
5008
  confirmButtonText: "重新登录",
5009
5009
  showCancelButton: !0,
5010
5010
  cancelButtonText: "取消",
5011
5011
  callback: (l) => {
5012
- l === "confirm" && (Dt(), location.href = location.origin + location.pathname + location.hash.replace("#", "#/?redirect="), location.reload()), j(L).SetExpired();
5012
+ l === "confirm" && (Dt(), location.href = location.origin + location.pathname + location.hash.replace("#", "#/?redirect="), location.reload()), j(P).SetExpired();
5013
5013
  }
5014
5014
  });
5015
5015
  return;
@@ -5030,14 +5030,14 @@ const Qa = {
5030
5030
  onRejected(e) {
5031
5031
  return We.isCancel(e) ? Promise.reject("") : (gt(`${e.message} ${e.config.method}::${e.config.url?.split("?")[0]}`), Promise.reject(e));
5032
5032
  }
5033
- }, Za = [
5033
+ }, Xa = [
5034
5034
  {
5035
5035
  request: Kn,
5036
5036
  response: zn
5037
5037
  },
5038
5038
  {
5039
- request: Qa,
5040
- response: Xa
5039
+ request: Wa,
5040
+ response: Qa
5041
5041
  }
5042
5042
  ];
5043
5043
  function it(e = {}) {
@@ -5045,11 +5045,11 @@ function it(e = {}) {
5045
5045
  ...o
5046
5046
  // adapter: (c) => cacheAdapter(c, defaultAxios)
5047
5047
  });
5048
- return Za.forEach((l) => {
5048
+ return Xa.forEach((l) => {
5049
5049
  n.interceptors.request.use(l.request.onFulfilled, l.request.onRejected), n.interceptors.response.use(l.response.onFulfilled, l.response.onRejected);
5050
5050
  }), n;
5051
5051
  }
5052
- const no = it(), Ya = {
5052
+ const no = it(), Za = {
5053
5053
  beforeMount(e, t) {
5054
5054
  e.clickOutsideEvent = function(o) {
5055
5055
  e === o.target || e.contains(o.target) || t.value(o, e);
@@ -5058,13 +5058,13 @@ const no = it(), Ya = {
5058
5058
  unmounted(e) {
5059
5059
  document.body.removeEventListener("click", e.clickOutsideEvent);
5060
5060
  }
5061
- }, se = vn(), ei = {
5061
+ }, se = vn(), Ya = {
5062
5062
  mounted: (e, t) => {
5063
5063
  e !== null && (t.value, e.oncontextmenu = (o) => {
5064
5064
  o.preventDefault(), o.stopPropagation(), o.cancelBubble = !0, t.value && se.emit("right-click", { event: o, data: t.value });
5065
5065
  });
5066
5066
  }
5067
- }, ti = {
5067
+ }, ei = {
5068
5068
  mounted(e) {
5069
5069
  }
5070
5070
  };
@@ -5074,7 +5074,7 @@ function kt(e, t) {
5074
5074
  o += n[`offset${t}`], n = n.offsetParent;
5075
5075
  return o;
5076
5076
  }
5077
- const oi = {
5077
+ const ti = {
5078
5078
  mounted: (e, t) => {
5079
5079
  if (e === null || !t.value.dev)
5080
5080
  return;
@@ -5100,37 +5100,37 @@ const oi = {
5100
5100
  se.emit("dev-action", { event: d, data: { type: "del", devId: t.value.devId } });
5101
5101
  }, n.appendChild(a), o.insertBefore(n, o.firstChild);
5102
5102
  }
5103
- }, ni = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5103
+ }, oi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5104
5104
  __proto__: null,
5105
- devtool: oi,
5106
- outClick: Ya,
5107
- resize: ti,
5108
- rightClick: ei
5105
+ devtool: ti,
5106
+ outClick: Za,
5107
+ resize: ei,
5108
+ rightClick: Ya
5109
5109
  }, Symbol.toStringTag, { value: "Module" }));
5110
5110
  let xe;
5111
5111
  const lo = [], St = /* @__PURE__ */ new Set(), wt = (e) => typeof e.name == "string" ? e.name : e.path;
5112
- function _r(e) {
5112
+ function yr(e) {
5113
5113
  return e ? it(q(Be.axios, e)) : xe;
5114
5114
  }
5115
- function vr(e) {
5116
- const t = q(Be, e), o = To(Dn), n = ui(t), l = t.plugins || [];
5115
+ function _r(e) {
5116
+ const t = q(Be, e), o = To(Dn), n = ci(t), l = t.plugins || [];
5117
5117
  l.unshift(n), l.forEach((d) => {
5118
- ci(o, d);
5118
+ ri(o, d);
5119
5119
  }), t?.mock && Hn(), xe = it(t.axios), Rn(o);
5120
- const s = Y(L), a = U(L), c = j(L);
5120
+ const s = Y(P), a = U(P), c = j(P);
5121
5121
  Cn(xe), a.updateSettings(e?.settings || {}), s.setBaseAPI(t?.axios.baseURL), o.config.globalProperties.$http = xe, o.config.globalProperties.$router = le, window.App = o, window.OmsOptions = t, yn(() => ({
5122
5122
  "X-Token": ve()
5123
5123
  })), ye(() => c.token, () => {
5124
5124
  so();
5125
5125
  }, { immediate: !0 }), le.isReady().then(() => o.mount("#app"));
5126
5126
  }
5127
- function li(e, t = {}) {
5127
+ function ni(e, t = {}) {
5128
5128
  Object.keys(t).forEach((o) => {
5129
5129
  e.component(o, t[o]);
5130
5130
  });
5131
5131
  }
5132
5132
  function so() {
5133
- const e = oo(ve()), t = at(lo, e), o = j(L), n = new Set(o.customRouter.map((s) => wt(s))), l = t.filter((s) => {
5133
+ const e = oo(ve()), t = at(lo, e), o = j(P), n = new Set(o.customRouter.map((s) => wt(s))), l = t.filter((s) => {
5134
5134
  const a = wt(s);
5135
5135
  return St.has(a) || n.has(a) ? !1 : (St.add(a), !0);
5136
5136
  });
@@ -5138,20 +5138,20 @@ function so() {
5138
5138
  le.addRoute(s);
5139
5139
  }), l.length && o.setCustomRoutes(l);
5140
5140
  }
5141
- function si(e = []) {
5141
+ function li(e = []) {
5142
5142
  lo.push(...e), so();
5143
5143
  }
5144
- function ai(e, t) {
5144
+ function si(e, t) {
5145
5145
  t.forEach((o) => {
5146
5146
  re(o) && (o = [o]), e.use(...o);
5147
5147
  });
5148
5148
  }
5149
- function ii(e, t = {}) {
5149
+ function ai(e, t = {}) {
5150
5150
  Object.keys(t).forEach((o) => {
5151
5151
  e.directive(o, t[o]);
5152
5152
  });
5153
5153
  }
5154
- function ri(e = {}) {
5154
+ function ii(e = {}) {
5155
5155
  const t = ["app", "settings", "user"];
5156
5156
  Object.keys(e).forEach((o) => {
5157
5157
  if (t.indexOf(o) !== -1) {
@@ -5161,13 +5161,13 @@ function ri(e = {}) {
5161
5161
  console.warn("[store] plugin storeModules are not supported under Pinia. Ignored:", o);
5162
5162
  });
5163
5163
  }
5164
- function ci(e, t) {
5165
- li(e, t.components || {}), si(t.routes || []), ai(e, t.use || []), ii(e, t.directives || {}), ri(t.storeModules || {}), Ht(t.mockApis || []);
5164
+ function ri(e, t) {
5165
+ ni(e, t.components || {}), li(t.routes || []), si(e, t.use || []), ai(e, t.directives || {}), ii(t.storeModules || {}), Ht(t.mockApis || []);
5166
5166
  }
5167
- function ui(e) {
5167
+ function ci(e) {
5168
5168
  return {
5169
5169
  components: { VIcon: _n },
5170
- directives: ni,
5170
+ directives: oi,
5171
5171
  use: [
5172
5172
  le,
5173
5173
  [qo, { locale: Ot, ...e.settings?.ElementPlus }]
@@ -5177,32 +5177,32 @@ function ui(e) {
5177
5177
  export {
5178
5178
  Qt as BaseSso,
5179
5179
  je as Container,
5180
- br as DingTalk,
5181
- hr as Github,
5180
+ hr as DingTalk,
5181
+ mr as Github,
5182
5182
  Jt as Layout,
5183
5183
  K as MenuType,
5184
5184
  Fn as Message,
5185
5185
  bt as MessageBox,
5186
5186
  J as PageType,
5187
- Qs as allSso,
5187
+ Ws as allSso,
5188
5188
  Bn as appState,
5189
5189
  An as builderSchemaState,
5190
- vr as createAdmin,
5190
+ _r as createAdmin,
5191
5191
  se as eventBus,
5192
5192
  Jn as getCmp,
5193
5193
  Pe as getHttp,
5194
5194
  xe as http,
5195
5195
  it as instance,
5196
- L as pinia,
5197
- yr as regViews,
5198
- mr as setCmp,
5196
+ P as pinia,
5197
+ br as regViews,
5198
+ fr as setCmp,
5199
5199
  Cn as setHttp,
5200
5200
  On as settings,
5201
5201
  Rn as setupStore,
5202
- ja as transRemoteModules,
5202
+ Da as transRemoteModules,
5203
5203
  Y as useAppStore,
5204
- fr as useBuilderSchemaStore,
5205
- _r as useHttp,
5204
+ pr as useBuilderSchemaStore,
5205
+ yr as useHttp,
5206
5206
  U as useSettingsStore,
5207
5207
  j as useUserStore,
5208
5208
  pt as userState