@okiss/oms 0.0.26 → 0.0.27

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,20 +1,20 @@
1
- import { defineComponent as N, onBeforeMount as Ge, provide as vt, resolveComponent as v, openBlock as i, createBlock as m, unref as T, withCtx as r, createVNode as u, computed as j, createTextVNode as g, TransitionGroup as gt, createElementBlock as h, Fragment as k, renderList as $, toDisplayString as B, normalizeClass as H, renderSlot as Y, mergeProps as q, createCommentVNode as w, toRefs as kt, ref as R, normalizeStyle as wt, createElementVNode as b, Transition as Et, pushScopeId as Je, popScopeId as ze, resolveDynamicComponent as Ke, normalizeProps as J, guardReactiveProps as Z, withDirectives as ye, vModelText as Le, resolveDirective as St, onMounted as Ct, createApp as xt } from "vue";
2
- import { ElConfigProvider as Bt, ElBreadcrumbItem as $t, ElBreadcrumb as It, ElRow as le, ElMain as At, ElAside as Tt, ElContainer as Ft, ElDivider as We, ElButton as ae, ElOption as Se, ElSelect as Ce, ElFormItem as Ze, ElForm as Qe, ElCol as ue, ElDrawer as Xe, ElDropdownItem as Dt, ElDropdownMenu as Ot, ElDropdown as Pt, ElMenuItem as Rt, ElSubMenu as Lt, ElOptionGroup as Mt, ElMenu as jt, ElScrollbar as Nt, ElBacktop as Vt, ElMessage as qt, ElAlert as ve, ElTree as Ut, ElCard as xe } from "element-plus/es";
1
+ import { defineComponent as N, onBeforeMount as Ge, provide as vt, resolveComponent as v, openBlock as i, createBlock as m, unref as T, withCtx as r, createVNode as u, computed as j, createTextVNode as g, TransitionGroup as gt, createElementBlock as h, Fragment as k, renderList as $, toDisplayString as B, normalizeClass as H, renderSlot as Y, mergeProps as q, createCommentVNode as E, toRefs as kt, ref as R, normalizeStyle as Et, createElementVNode as b, Transition as wt, pushScopeId as Je, popScopeId as ze, resolveDynamicComponent as Ke, normalizeProps as J, guardReactiveProps as Z, withDirectives as _e, vModelText as Le, resolveDirective as St, onMounted as Ct, createApp as xt } from "vue";
2
+ import { ElConfigProvider as Bt, ElBreadcrumbItem as $t, ElBreadcrumb as It, ElRow as le, ElMain as At, ElAside as Tt, ElContainer as Ft, ElDivider as We, ElButton as se, ElOption as we, ElSelect as Se, ElFormItem as Ze, ElForm as Qe, ElCol as re, ElDrawer as Xe, ElDropdownItem as Dt, ElDropdownMenu as Ot, ElDropdown as Pt, ElMenuItem as Rt, ElSubMenu as Lt, ElOptionGroup as Mt, ElMenu as jt, ElScrollbar as Nt, ElBacktop as Vt, ElMessage as qt, ElAlert as ye, ElTree as Ut, ElCard as Ce } from "element-plus/es";
3
3
  import "element-plus/es/components/config-provider/style/css";
4
- import Be from "element-plus/lib/locale/lang/zh-cn";
5
- import { addNewStyle as Ht, addNewStyleTag as Gt, queryParams as Jt, logGroup as zt, isString as $e, compactObject as Ye, showEleByClassName as et, waterMarker as Kt, Cache as fe, isExternal as Me, getQueryParam as Wt, createIFrame as Zt, strVarReplace as K, obj2Param as Qt, isObject as Ie, effectDataTrans as Xt, isArray as Yt } from "@okiss/utils";
6
- import he from "mockjs";
4
+ import xe from "element-plus/lib/locale/lang/zh-cn";
5
+ import { addNewStyle as Ht, addNewStyleTag as Gt, queryParams as Jt, logGroup as zt, isString as Be, compactObject as Ye, showEleByClassName as et, waterMarker as Kt, Cache as me, isExternal as Me, getQueryParam as Wt, createIFrame as Zt, strVarReplace as K, obj2Param as Qt, isObject as $e, effectDataTrans as Xt, isArray as Yt } from "@okiss/utils";
6
+ import fe from "mockjs";
7
7
  import el, { cloneDeep as y, merge as O, get as ee, unset as tt } from "lodash";
8
- import ie from "axios";
8
+ import Ie from "axios";
9
9
  import L from "js-cookie";
10
10
  import { createStore as tl, useStore as lt, mapGetters as Ae } from "vuex";
11
11
  import ll, { ElMessage as ol, ElMessageBox as nl } from "element-plus";
12
12
  import "element-plus/dist/index.css";
13
13
  import "dayjs/locale/zh-cn";
14
- import { VForm as W, VBtn as Te, JsonView as Fe, VTable as re, VChart as sl, setUploadHeaderHandle as al, VIcon as il } from "@okiss/vbtf";
14
+ import { VForm as W, VBtn as Te, JsonView as Fe, VTable as ie, VChart as al, setUploadHeaderHandle as sl, VIcon as il } from "@okiss/vbtf";
15
15
  import "normalize.css/normalize.css";
16
16
  import "@okiss/vbtf/style.css";
17
- import { useRoute as ce, onBeforeRouteLeave as rl, useRouter as ul, createRouter as cl, createWebHashHistory as dl, onBeforeRouteUpdate as pl } from "vue-router";
17
+ import { useRoute as ue, onBeforeRouteLeave as rl, useRouter as ul, createRouter as cl, createWebHashHistory as dl, onBeforeRouteUpdate as pl } from "vue-router";
18
18
  import "element-plus/es/components/row/style/css";
19
19
  import "element-plus/es/components/drawer/style/css";
20
20
  import "element-plus/es/components/dropdown/style/css";
@@ -46,7 +46,7 @@ import "element-plus/es/components/card/style/css";
46
46
  import "element-plus/es/components/tree/style/css";
47
47
  import bl from "vue3-markdown-it";
48
48
  import "element-plus/es/components/message/style/css";
49
- import ge from "nprogress";
49
+ import ve from "nprogress";
50
50
  import "nprogress/nprogress.css";
51
51
  String.prototype.format || (String.prototype.format = function() {
52
52
  const e = arguments;
@@ -57,18 +57,18 @@ String.prototype.format || (String.prototype.format = function() {
57
57
  const _l = /* @__PURE__ */ N({
58
58
  __name: "App",
59
59
  setup(e) {
60
- var l, n, o, s;
60
+ var l, n, o, a;
61
61
  Ge(() => {
62
- const a = document.getElementById("preloader");
63
- a !== null && (document.body.removeChild(a), Ht("test-icon", "//at.alicdn.com/t/font_2246548_zclaqxwmzq8.css"), Gt(`.iconfont {
62
+ const s = document.getElementById("preloader");
63
+ s !== null && (document.body.removeChild(s), Ht("test-icon", "//at.alicdn.com/t/font_2246548_zclaqxwmzq8.css"), Gt(`.iconfont {
64
64
  font-size: 19px;
65
65
  font-style: normal;
66
66
  -webkit-font-smoothing: antialiased;
67
67
  font-family: iconfont !important;
68
68
  }`));
69
69
  });
70
- const t = Be;
71
- return (n = (l = window == null ? void 0 : window.OmsOptions) == null ? void 0 : l.form) != null && n.vsPath && vt("vsPath", (s = (o = window == null ? void 0 : window.OmsOptions) == null ? void 0 : o.form) == null ? void 0 : s.vsPath), (a, c) => {
70
+ const t = xe;
71
+ return (n = (l = window == null ? void 0 : window.OmsOptions) == null ? void 0 : l.form) != null && n.vsPath && vt("vsPath", (a = (o = window == null ? void 0 : window.OmsOptions) == null ? void 0 : o.form) == null ? void 0 : a.vsPath), (s, c) => {
72
72
  const d = v("router-view"), p = Bt;
73
73
  return i(), m(p, { locale: T(t) }, {
74
74
  default: r(() => [
@@ -634,7 +634,7 @@ const yl = {
634
634
  label: "span"
635
635
  }
636
636
  ]
637
- }, wl = {
637
+ }, El = {
638
638
  afterSubmit: "",
639
639
  afterReset: "",
640
640
  formItems: [
@@ -673,7 +673,7 @@ const yl = {
673
673
  label: "span"
674
674
  }
675
675
  ]
676
- }, El = { form: yl, table: vl, listMock: gl, layoutForm: kl, layoutSection: wl }, Sl = [
676
+ }, wl = { form: yl, table: vl, listMock: gl, layoutForm: kl, layoutSection: El }, Sl = [
677
677
  {
678
678
  method: Q.POST,
679
679
  url: "/login",
@@ -717,14 +717,15 @@ const yl = {
717
717
  {
718
718
  url: "/user/list",
719
719
  method: Q.GET,
720
- response: (e) => El.listMock
720
+ response: (e) => wl.listMock
721
721
  }
722
722
  ], Cl = [
723
723
  ...Sl
724
724
  ], xl = {
725
725
  baseURL: "/api",
726
726
  withCredentials: !0,
727
- timeout: 5e3
727
+ timeout: 5e3,
728
+ cacheEnable: !0
728
729
  }, ot = {
729
730
  title: "oms",
730
731
  fixedHeader: !1,
@@ -739,7 +740,7 @@ const yl = {
739
740
  ElementPlus: {
740
741
  size: "default",
741
742
  zIndex: 3e3,
742
- locale: Be
743
+ locale: xe
743
744
  },
744
745
  nav: [],
745
746
  whiteRoutes: ["/login"],
@@ -749,30 +750,30 @@ const yl = {
749
750
  uat: "gray",
750
751
  pre: "green"
751
752
  }
752
- }, de = {
753
+ }, ce = {
753
754
  axios: xl,
754
755
  settings: ot,
755
756
  plugins: [],
756
757
  mock: !1
757
- }, ke = {};
758
+ }, ge = {};
758
759
  function nt(e) {
759
760
  e.forEach((t) => {
760
- const l = st(t);
761
- ke[`${t.method}::${l}`] = t;
761
+ const l = at(t);
762
+ ge[`${t.method}::${l}`] = t;
762
763
  });
763
764
  }
764
765
  nt(Cl);
765
- function st(e) {
766
+ function at(e) {
766
767
  var n;
767
- let t = e.url, l = e.baseURL || ((n = de.axios) == null ? void 0 : n.baseURL);
768
+ let t = e.url, l = e.baseURL || ((n = ce.axios) == null ? void 0 : n.baseURL);
768
769
  return l || (l = ""), typeof t == "string" ? (t = ("/" + l + t).split("/").filter((o) => o).join("/"), t += "(|\\?.*)$", new RegExp(t)) : t;
769
770
  }
770
771
  function Bl() {
771
- Object.keys(ke).forEach((e) => {
772
- const t = ke[e], l = st(t);
773
- he.mock(l, t.method, function(n) {
774
- const { url: o, type: s, body: a } = n, c = Jt(o), d = a ? JSON.parse(a) : {}, p = t.response({ query: c, data: d }), f = he.mock(p);
775
- return zt(o, { type: s, query: c, data: d, response: f }), he.mock(f);
772
+ Object.keys(ge).forEach((e) => {
773
+ const t = ge[e], l = at(t);
774
+ fe.mock(l, t.method, function(n) {
775
+ const { url: o, type: a, body: s } = n, c = Jt(o), d = s ? JSON.parse(s) : {}, p = t.response({ query: c, data: d }), f = fe.mock(p);
776
+ return zt(o, { type: a, query: c, data: d, response: f }), fe.mock(f);
776
777
  });
777
778
  }), console.log("%c ApiMock is stared! ", "background: #606060; color: #fff; padding: 4px 5px; border-radius: 1px;");
778
779
  }
@@ -781,10 +782,10 @@ function Oe() {
781
782
  return L.get(De) || "";
782
783
  }
783
784
  function $l(e) {
784
- const t = new Date(new Date().getTime() + (E.state.settings.tokenExpire || 864e5));
785
+ const t = new Date(new Date().getTime() + (w.state.settings.tokenExpire || 864e5));
785
786
  return L.set(De, e, { expires: t });
786
787
  }
787
- function at() {
788
+ function st() {
788
789
  return L.remove(De);
789
790
  }
790
791
  const Il = {
@@ -808,7 +809,7 @@ const Il = {
808
809
  e.token = t, $l(t);
809
810
  },
810
811
  removeToken(e) {
811
- e.token = "", at();
812
+ e.token = "", st();
812
813
  },
813
814
  updateRemoteRouter(e, t) {
814
815
  e.remoteRouter = t, e.isLodeRemoteRoutes = !0;
@@ -842,17 +843,17 @@ const Il = {
842
843
  state: t,
843
844
  rootState: l
844
845
  }, n) {
845
- return new Promise((o, s) => {
846
+ return new Promise((o, a) => {
846
847
  l.http ? l.http.request({
847
848
  url: "/user/login",
848
849
  method: "POST",
849
850
  data: n
850
- }).then((a) => {
851
+ }).then((s) => {
851
852
  var c;
852
- e("updateToken", (c = a.data) == null ? void 0 : c.token), o(!0);
853
- }).catch((a) => {
854
- s(a);
855
- }) : s("http client not init");
853
+ e("updateToken", (c = s.data) == null ? void 0 : c.token), o(!0);
854
+ }).catch((s) => {
855
+ a(s);
856
+ }) : a("http client not init");
856
857
  });
857
858
  },
858
859
  logout({ commit: e }) {
@@ -864,9 +865,9 @@ const Il = {
864
865
  url: "/user/info",
865
866
  method: "GET"
866
867
  }).then((o) => {
867
- var a, c, d, p, f;
868
- const s = ((a = o.data) == null ? void 0 : a.role_ids) || [];
869
- e("updateState", { key: "name", value: (c = o.data) == null ? void 0 : c.name }), e("updateState", { key: "nickname", value: (d = o.data) == null ? void 0 : d.nickname }), e("updateState", { key: "roleIds", value: s }), e("updateState", { key: "env", value: (p = o.data) == null ? void 0 : p.env }), !L.get("username") && L.set("username", (f = o.data) == null ? void 0 : f.name), l(!0);
868
+ var s, c, d, p, f;
869
+ const a = ((s = o.data) == null ? void 0 : s.role_ids) || [];
870
+ e("updateState", { key: "name", value: (c = o.data) == null ? void 0 : c.name }), e("updateState", { key: "nickname", value: (d = o.data) == null ? void 0 : d.nickname }), e("updateState", { key: "roleIds", value: a }), e("updateState", { key: "env", value: (p = o.data) == null ? void 0 : p.env }), !L.get("username") && L.set("username", (f = o.data) == null ? void 0 : f.name), l(!0);
870
871
  }).catch((o) => {
871
872
  n(o);
872
873
  }) : n("http client not init");
@@ -878,14 +879,14 @@ const Il = {
878
879
  (o = t.http) == null || o.request({
879
880
  url: "/user/routes",
880
881
  method: "get"
881
- }).then((s) => {
882
- if (s.code === 0) {
883
- const a = s.data || [];
884
- l(a);
882
+ }).then((a) => {
883
+ if (a.code === 0) {
884
+ const s = a.data || [];
885
+ l(s);
885
886
  } else
886
887
  n("error");
887
- }).catch((s) => {
888
- console.log(s), n(s);
888
+ }).catch((a) => {
889
+ console.log(a), n(a);
889
890
  });
890
891
  });
891
892
  }
@@ -970,7 +971,7 @@ const Il = {
970
971
  e("SET_CURRENT_CELLITEM", t);
971
972
  }
972
973
  }
973
- }, E = tl({
974
+ }, w = tl({
974
975
  state: void 0,
975
976
  getters: {
976
977
  http: (e) => e.http,
@@ -1002,7 +1003,7 @@ const Il = {
1002
1003
  app: Ol,
1003
1004
  builderSchema: Rl
1004
1005
  }
1005
- }), Ne = ol, Ve = nl, Ll = ie.CancelToken, ne = {
1006
+ }), Ne = ol, Ve = nl, Ll = Ie.CancelToken, ne = {
1006
1007
  taskList: {},
1007
1008
  cacheList: /* @__PURE__ */ new Map(),
1008
1009
  uniqueId(e) {
@@ -1040,23 +1041,23 @@ const Il = {
1040
1041
  }
1041
1042
  }, Ml = {
1042
1043
  onFulfilled: function(e) {
1043
- return ne.pending(e) && ne.delTask(e), e.cancelToken = new Ll((t) => {
1044
+ return e.cacheEnable === !1 || (ne.pending(e) && ne.delTask(e), e.cancelToken = new Ll((t) => {
1044
1045
  ne.addTask(e, t);
1045
- }), e;
1046
+ })), e;
1046
1047
  },
1047
1048
  onRejected(e) {
1048
1049
  return Promise.reject(e);
1049
1050
  }
1050
1051
  }, jl = {
1051
1052
  onFulfilled: function(e) {
1052
- return e.config.method === "get" && Object.keys(e.data).length > 0 && ne.addCache(e.config, e.data), e;
1053
+ return console.log(e.config), e.config.cacheEnable === !1 || e.config.method === "get" && Object.keys(e.data).length > 0 && ne.addCache(e.config, e.data), e;
1053
1054
  },
1054
1055
  onRejected(e) {
1055
1056
  return Promise.reject(e);
1056
1057
  }
1057
1058
  };
1058
1059
  function Nl() {
1059
- return E.state.user.token;
1060
+ return w.state.user.token;
1060
1061
  }
1061
1062
  const Vl = {
1062
1063
  onFulfilled: function(e) {
@@ -1066,9 +1067,9 @@ const Vl = {
1066
1067
  }
1067
1068
  }, ql = {
1068
1069
  onFulfilled(e) {
1069
- var n, o, s, a, c, d, p;
1070
+ var n, o, a, s, c, d, p;
1070
1071
  if (!(((n = e.config) == null ? void 0 : n.notHoldApiErr) !== void 0 && ((o = e.config) == null ? void 0 : o.notHoldApiErr) === !0) && e.data.code !== 0) {
1071
- const f = e.data.message || `\u63A5\u53E3\u8BF7\u6C42\u9519\u8BEF ${e.config.method}::${(s = e.config.url) == null ? void 0 : s.split("?")[0]}`;
1072
+ const f = e.data.message || `\u63A5\u53E3\u8BF7\u6C42\u9519\u8BEF ${e.config.method}::${(a = e.config.url) == null ? void 0 : a.split("?")[0]}`;
1072
1073
  if (e.data.code === 401) {
1073
1074
  Ve.alert("\u767B\u5F55\u4FE1\u606F\u5DF2\u8FC7\u671F\u6216\u672A\u767B\u5F55, \u662F\u5426\u8DF3\u8F6C\u767B\u5F55", "\u64CD\u4F5C\u63D0\u9192", {
1074
1075
  showClose: !1,
@@ -1076,7 +1077,7 @@ const Vl = {
1076
1077
  showCancelButton: !0,
1077
1078
  cancelButtonText: "\u53D6\u6D88",
1078
1079
  callback: (_) => {
1079
- _ === "confirm" && (at(), location.href = location.origin + location.pathname + location.hash.replace("#", "#/?redirect="), location.reload());
1080
+ _ === "confirm" && (st(), location.href = location.origin + location.pathname + location.hash.replace("#", "#/?redirect="), location.reload());
1080
1081
  }
1081
1082
  });
1082
1083
  return;
@@ -1088,8 +1089,8 @@ const Vl = {
1088
1089
  });
1089
1090
  return Promise.reject(f);
1090
1091
  }
1091
- let l = (c = (a = e.data) == null ? void 0 : a.data) == null ? void 0 : c._message_box;
1092
- return l !== void 0 && ($e(l) && (l = {
1092
+ let l = (c = (s = e.data) == null ? void 0 : s.data) == null ? void 0 : c._message_box;
1093
+ return l !== void 0 && (Be(l) && (l = {
1093
1094
  message: (p = (d = e.data) == null ? void 0 : d.data) == null ? void 0 : p._message_box
1094
1095
  }), Ve({
1095
1096
  title: "\u63D0\u793A",
@@ -1099,7 +1100,7 @@ const Vl = {
1099
1100
  },
1100
1101
  onRejected(e) {
1101
1102
  var t;
1102
- return ie.isCancel(e) ? Promise.reject("") : (Ne({
1103
+ return Ie.isCancel(e) ? Promise.reject("") : (Ne({
1103
1104
  message: `${e.message} ${e.config.method}::${(t = e.config.url) == null ? void 0 : t.split("?")[0]}`,
1104
1105
  type: "error",
1105
1106
  duration: 5 * 1e3
@@ -1116,9 +1117,7 @@ const Vl = {
1116
1117
  }
1117
1118
  ];
1118
1119
  function Pe(e = {}) {
1119
- const t = de.axios || {}, l = O(t, e || {});
1120
- ie.create(l);
1121
- const n = ie.create({
1120
+ const t = ce.axios || {}, l = O(t, e || {}), n = Ie.create({
1122
1121
  ...l
1123
1122
  });
1124
1123
  return Ul.forEach((o) => {
@@ -1197,8 +1196,8 @@ const Kl = {
1197
1196
  key: 0,
1198
1197
  class: "no-redirect"
1199
1198
  }, Zl = ["onClick"];
1200
- function Ql(e, t, l, n, o, s) {
1201
- const a = $t, c = It;
1199
+ function Ql(e, t, l, n, o, a) {
1200
+ const s = $t, c = It;
1202
1201
  return i(), m(c, {
1203
1202
  class: "app-breadcrumb",
1204
1203
  separator: "/"
@@ -1206,13 +1205,13 @@ function Ql(e, t, l, n, o, s) {
1206
1205
  default: r(() => [
1207
1206
  u(gt, { name: "breadcrumb" }, {
1208
1207
  default: r(() => [
1209
- (i(!0), h(k, null, $(o.levelList, (d, p) => (i(), m(a, {
1208
+ (i(!0), h(k, null, $(o.levelList, (d, p) => (i(), m(s, {
1210
1209
  key: d.path
1211
1210
  }, {
1212
1211
  default: r(() => [
1213
1212
  d.path.indexOf("/DIR_") === 0 && d.redirect === void 0 || p === o.levelList.length - 1 ? (i(), h("span", Wl, B(d.meta.title), 1)) : (i(), h("a", {
1214
1213
  key: 1,
1215
- onClick: (f) => s.handleLink(d)
1214
+ onClick: (f) => a.handleLink(d)
1216
1215
  }, B(d.meta.title), 9, Zl))
1217
1216
  ]),
1218
1217
  _: 2
@@ -1239,13 +1238,13 @@ const Xl = /* @__PURE__ */ C(Kl, [["render", Ql], ["__scopeId", "data-v-fa74804e
1239
1238
  }
1240
1239
  }
1241
1240
  };
1242
- function eo(e, t, l, n, o, s) {
1243
- const a = v("v-icon");
1241
+ function eo(e, t, l, n, o, a) {
1242
+ const s = v("v-icon");
1244
1243
  return i(), h("div", {
1245
1244
  style: { padding: "0 15px" },
1246
- onClick: t[0] || (t[0] = (...c) => s.toggleClick && s.toggleClick(...c))
1245
+ onClick: t[0] || (t[0] = (...c) => a.toggleClick && a.toggleClick(...c))
1247
1246
  }, [
1248
- u(a, {
1247
+ u(s, {
1249
1248
  class: H({ "is-active": l.isActive }),
1250
1249
  name: "ra-leftalignment"
1251
1250
  }, null, 8, ["class"])
@@ -1254,8 +1253,8 @@ function eo(e, t, l, n, o, s) {
1254
1253
  const to = /* @__PURE__ */ C(Yl, [["render", eo]]);
1255
1254
  const lo = {};
1256
1255
  function oo(e, t) {
1257
- const l = le, n = At, o = Tt, s = Ft;
1258
- return i(), m(s, { style: { width: "100%", height: "100%" } }, {
1256
+ const l = le, n = At, o = Tt, a = Ft;
1257
+ return i(), m(a, { style: { width: "100%", height: "100%" } }, {
1259
1258
  default: r(() => [
1260
1259
  u(l, { class: "aside" }, {
1261
1260
  default: r(() => [
@@ -1354,7 +1353,7 @@ const rt = /* @__PURE__ */ C(lo, [["render", oo], ["__scopeId", "data-v-7c3d697b
1354
1353
  }
1355
1354
  }
1356
1355
  ]
1357
- }, so = {
1356
+ }, ao = {
1358
1357
  type: "number",
1359
1358
  name: "\u6570\u5B57",
1360
1359
  default: {
@@ -1396,7 +1395,7 @@ const rt = /* @__PURE__ */ C(lo, [["render", oo], ["__scopeId", "data-v-7c3d697b
1396
1395
  }
1397
1396
  }
1398
1397
  ]
1399
- }, ao = {
1398
+ }, so = {
1400
1399
  type: "number-range",
1401
1400
  name: "\u6570\u5B57\u533A\u95F4",
1402
1401
  default: {
@@ -1865,8 +1864,8 @@ function F(e) {
1865
1864
  }
1866
1865
  F(no);
1867
1866
  F(io);
1868
- F(so);
1869
1867
  F(ao);
1868
+ F(so);
1870
1869
  F(uo);
1871
1870
  F(bo);
1872
1871
  F(ro);
@@ -1876,7 +1875,7 @@ F(po);
1876
1875
  F(mo);
1877
1876
  F(ho);
1878
1877
  F(fo);
1879
- const we = ut, yo = {
1878
+ const ke = ut, yo = {
1880
1879
  options: {
1881
1880
  labelPosition: "top",
1882
1881
  submitButton: !1,
@@ -1975,13 +1974,13 @@ const we = ut, yo = {
1975
1974
  }
1976
1975
  ]
1977
1976
  };
1978
- const be = {
1977
+ const he = {
1979
1978
  labelPosition: "top",
1980
1979
  submitButton: !1,
1981
1980
  cancelButton: !1
1982
1981
  }, Re = [];
1983
- Object.keys(we).forEach((e) => {
1984
- Re.push({ value: e, label: we[e].name });
1982
+ Object.keys(ke).forEach((e) => {
1983
+ Re.push({ value: e, label: ke[e].name });
1985
1984
  });
1986
1985
  const vo = {
1987
1986
  options: {
@@ -2048,7 +2047,7 @@ const vo = {
2048
2047
  ctrlSchema: {},
2049
2048
  ctrlName: "",
2050
2049
  activeIndex: void 0,
2051
- ctrlMap: we,
2050
+ ctrlMap: ke,
2052
2051
  activeIndexReg: /(formItems)?\[(\d+)\]/,
2053
2052
  tableStruct: "",
2054
2053
  activeName: "1",
@@ -2081,8 +2080,8 @@ const vo = {
2081
2080
  const l = t ? t.type : "", n = this.ctrlMap[l], o = n.trans ? n.trans(e) : e;
2082
2081
  if (o && Object.keys(o).length > 0) {
2083
2082
  if (o.type = l, this.activeIndex.indexOf("[") > -1) {
2084
- const [s, a, c] = this.activeIndex.match(/(\w+)\[(\d+)\]/);
2085
- this.builderSchema[a][c] = { ...o };
2083
+ const [a, s, c] = this.activeIndex.match(/(\w+)\[(\d+)\]/);
2084
+ this.builderSchema[s][c] = { ...o };
2086
2085
  } else
2087
2086
  this.builderSchema[this.activeIndex] = o;
2088
2087
  this.key++;
@@ -2093,7 +2092,7 @@ const vo = {
2093
2092
  handler(e) {
2094
2093
  const t = this.ctrlMap[e];
2095
2094
  this.ctrlSchema = y({
2096
- options: y(be),
2095
+ options: y(he),
2097
2096
  formItems: y(t.builder)
2098
2097
  });
2099
2098
  const l = ee(this.builderSchema, this.activeIndex);
@@ -2118,7 +2117,7 @@ const vo = {
2118
2117
  this.ctrlOptions = {}, this.builderSchema[t] = this.builderSchema[t] || [];
2119
2118
  const l = this.ctrlMap[e];
2120
2119
  this.activeCtrl = l, this.builderSchema[t].push(y(l.default)), this.ctrlSchema = y({
2121
- options: y(be),
2120
+ options: y(he),
2122
2121
  formItems: y(l.builder)
2123
2122
  }), this.ctrlKey++, this.key++, this.activeIndex = `${t}[${this.builderSchema[t].length - 1}]`, this.activeTab = "ctrl";
2124
2123
  },
@@ -2134,7 +2133,7 @@ const vo = {
2134
2133
  return;
2135
2134
  }
2136
2135
  this.currentCtrlType = n, this.ctrlOptions = l, this.ctrlSchema = y({
2137
- options: y(be),
2136
+ options: y(he),
2138
2137
  formItems: y(o.builder)
2139
2138
  }), this.ctrlKey++;
2140
2139
  }
@@ -2149,34 +2148,34 @@ const vo = {
2149
2148
  });
2150
2149
  }
2151
2150
  }
2152
- }, ko = /* @__PURE__ */ g("\u4FDD\u5B58\u9875\u9762\u914D\u7F6E"), wo = /* @__PURE__ */ g(" \xA0\xA0 ");
2153
- function Eo(e, t, l, n, o, s) {
2154
- const a = v("v-form"), c = We, d = ae, p = v("JsonView"), f = v("VButton"), _ = Se, A = Ce, I = Ze, U = Qe, V = v("dev-layout");
2151
+ }, ko = /* @__PURE__ */ g("\u4FDD\u5B58\u9875\u9762\u914D\u7F6E"), Eo = /* @__PURE__ */ g(" \xA0\xA0 ");
2152
+ function wo(e, t, l, n, o, a) {
2153
+ const s = v("v-form"), c = We, d = se, p = v("JsonView"), f = v("VButton"), _ = we, A = Se, I = Ze, U = Qe, V = v("dev-layout");
2155
2154
  return i(), m(V, null, {
2156
2155
  main: r(() => [
2157
- o.builderSchema.formItems ? (i(), m(a, q({
2156
+ o.builderSchema.formItems ? (i(), m(s, q({
2158
2157
  key: 0,
2159
2158
  ref: "form",
2160
2159
  key: o.key,
2161
2160
  dev: !0
2162
- }, o.builderSchema), null, 16)) : w("", !0),
2161
+ }, o.builderSchema), null, 16)) : E("", !0),
2163
2162
  u(c),
2164
2163
  u(d, {
2165
2164
  type: "primary",
2166
- onClick: s.saveSchema
2165
+ onClick: a.saveSchema
2167
2166
  }, {
2168
2167
  default: r(() => [
2169
2168
  ko
2170
2169
  ]),
2171
2170
  _: 1
2172
2171
  }, 8, ["onClick"]),
2173
- wo,
2172
+ Eo,
2174
2173
  u(f, {
2175
2174
  text: "PageSchema",
2176
2175
  type: "modal"
2177
2176
  }, {
2178
2177
  default: r(() => [
2179
- u(p, { data: s.getSaveSchema }, null, 8, ["data"])
2178
+ u(p, { data: a.getSaveSchema }, null, 8, ["data"])
2180
2179
  ]),
2181
2180
  _: 1
2182
2181
  })
@@ -2204,8 +2203,8 @@ function Eo(e, t, l, n, o, s) {
2204
2203
  })
2205
2204
  ]),
2206
2205
  _: 1
2207
- })) : w("", !0),
2208
- (i(), m(a, q({
2206
+ })) : E("", !0),
2207
+ (i(), m(s, q({
2209
2208
  key: o.ctrlKey,
2210
2209
  modelValue: o.ctrlOptions,
2211
2210
  "onUpdate:modelValue": t[1] || (t[1] = (x) => o.ctrlOptions = x)
@@ -2214,7 +2213,7 @@ function Eo(e, t, l, n, o, s) {
2214
2213
  _: 1
2215
2214
  });
2216
2215
  }
2217
- const So = /* @__PURE__ */ C(go, [["render", Eo], ["__scopeId", "data-v-d89bdb06"]]), Co = {
2216
+ const So = /* @__PURE__ */ C(go, [["render", wo], ["__scopeId", "data-v-d89bdb06"]]), Co = {
2218
2217
  type: "input",
2219
2218
  name: "\u6587\u672C\u6846",
2220
2219
  default: {
@@ -2408,7 +2407,7 @@ const So = /* @__PURE__ */ C(go, [["render", Eo], ["__scopeId", "data-v-d89bdb06
2408
2407
  label: "\u5BFC\u51FA\u6309\u94AE"
2409
2408
  }
2410
2409
  ]
2411
- }, _e = {
2410
+ }, be = {
2412
2411
  labelPosition: "top",
2413
2412
  submitButton: !1,
2414
2413
  cancelButton: !1
@@ -2915,7 +2914,7 @@ const So = /* @__PURE__ */ C(go, [["render", Eo], ["__scopeId", "data-v-d89bdb06
2915
2914
  table: Vo
2916
2915
  };
2917
2916
  const Uo = {
2918
- components: { JsonView: Fe, DevLayout: rt, VTable: re, VForm: W, VButton: Te },
2917
+ components: { JsonView: Fe, DevLayout: rt, VTable: ie, VForm: W, VButton: Te },
2919
2918
  props: {
2920
2919
  schema: {
2921
2920
  type: Object,
@@ -2993,8 +2992,8 @@ const Uo = {
2993
2992
  const o = n.trans ? n.trans(e) : e;
2994
2993
  if (o && Object.keys(o).length > 0) {
2995
2994
  if (o.type = l, this.activeIndex.indexOf("[") > -1) {
2996
- const [s, a, c] = this.activeIndex.match(/(\w+)\[(\d+)\]/);
2997
- this.builderSchema[a][c] = { ...o };
2995
+ const [a, s, c] = this.activeIndex.match(/(\w+)\[(\d+)\]/);
2996
+ this.builderSchema[s][c] = { ...o };
2998
2997
  } else
2999
2998
  this.builderSchema[this.activeIndex] = o;
3000
2999
  this.key++;
@@ -3006,7 +3005,7 @@ const Uo = {
3006
3005
  handler(e) {
3007
3006
  const t = this.ctrlMap[this.activeBrick][e];
3008
3007
  this.ctrlSchema = y({
3009
- options: y(_e),
3008
+ options: y(be),
3010
3009
  formItems: y(t.builder)
3011
3010
  });
3012
3011
  const l = ee(this.builderSchema, this.activeIndex);
@@ -3053,7 +3052,7 @@ const Uo = {
3053
3052
  return;
3054
3053
  }
3055
3054
  this.activeCtrl = o[e], this.activeBrick = n, this.ctrlOptions = {}, this.builderSchema[t] = this.builderSchema[t] || [], this.builderSchema[t].push(y(o[e].default)), this.ctrlSchema = y({
3056
- options: y(_e),
3055
+ options: y(be),
3057
3056
  formItems: y(o[e].builder)
3058
3057
  }), this.key++, this.ctrlKey++, this.activeIndex = `${t}[${this.builderSchema[t].length - 1}]`, this.activeTab = "ctrl";
3059
3058
  },
@@ -3073,7 +3072,7 @@ const Uo = {
3073
3072
  return;
3074
3073
  }
3075
3074
  this.ctrlOptions = l, this.currentCtrlType = n, this.ctrlSchema = y({
3076
- options: y(_e),
3075
+ options: y(be),
3077
3076
  formItems: y(o.builder)
3078
3077
  }), this.ctrlKey++;
3079
3078
  }
@@ -3090,21 +3089,21 @@ const Uo = {
3090
3089
  normalButton: n,
3091
3090
  batchButton: o
3092
3091
  }
3093
- }).then(({ data: s }) => {
3094
- s && this.$message({ type: "success", message: "\u4FDD\u5B58\u6210\u529F, \u8BF7\u5237\u65B0\u9875\u9762\u67E5\u770B\u6548\u679C" });
3092
+ }).then(({ data: a }) => {
3093
+ a && this.$message({ type: "success", message: "\u4FDD\u5B58\u6210\u529F, \u8BF7\u5237\u65B0\u9875\u9762\u67E5\u770B\u6548\u679C" });
3095
3094
  });
3096
3095
  }
3097
3096
  }
3098
3097
  }, Ho = /* @__PURE__ */ g("\u6DFB\u52A0\u641C\u7D22\u6761\u4EF6"), Go = /* @__PURE__ */ g("\u6587\u672C\u6846"), Jo = /* @__PURE__ */ g("\u4E0B\u62C9\u6846"), zo = /* @__PURE__ */ g("\u65E5\u671F"), Ko = /* @__PURE__ */ g("\u6DFB\u52A0\u5217\u8868\u9879"), Wo = /* @__PURE__ */ g("\u6DFB\u52A0\u884C\u6309\u94AE"), Zo = /* @__PURE__ */ g("\u6DFB\u52A0\u5E38\u89C4\u6309\u94AE"), Qo = /* @__PURE__ */ g("\u6309\u94AE\u7EC4"), Xo = /* @__PURE__ */ g("\u6DFB\u52A0\u6279\u91CF\u6309\u94AE"), Yo = /* @__PURE__ */ g("\u6309\u94AE\u7EC4"), en = /* @__PURE__ */ g("\u4FDD\u5B58\u9875\u9762\u914D\u7F6E"), tn = /* @__PURE__ */ g(" \xA0\xA0 ");
3099
- function ln(e, t, l, n, o, s) {
3100
- const a = ue, c = ae, d = le, p = v("v-table"), f = We, _ = ae, A = v("JsonView"), I = v("VButton"), U = Se, V = Ce, x = Ze, z = Qe, _t = v("v-form"), yt = v("dev-layout");
3098
+ function ln(e, t, l, n, o, a) {
3099
+ const s = re, c = se, d = le, p = v("v-table"), f = We, _ = se, A = v("JsonView"), I = v("VButton"), U = we, V = Se, x = Ze, z = Qe, _t = v("v-form"), yt = v("dev-layout");
3101
3100
  return i(), m(yt, null, {
3102
3101
  "left-aside": r(() => [
3103
3102
  u(d, { style: { width: "200px" } }, {
3104
3103
  default: r(() => [
3105
3104
  u(d, null, {
3106
3105
  default: r(() => [
3107
- u(a, {
3106
+ u(s, {
3108
3107
  class: "title",
3109
3108
  "data-id": 22222
3110
3109
  }, {
@@ -3113,11 +3112,11 @@ function ln(e, t, l, n, o, s) {
3113
3112
  ]),
3114
3113
  _: 1
3115
3114
  }),
3116
- u(a, { class: "ctrl" }, {
3115
+ u(s, { class: "ctrl" }, {
3117
3116
  default: r(() => [
3118
3117
  u(c, {
3119
3118
  class: "ctrl-btn",
3120
- onClick: t[0] || (t[0] = (S) => s.pushFilter("input"))
3119
+ onClick: t[0] || (t[0] = (S) => a.pushFilter("input"))
3121
3120
  }, {
3122
3121
  default: r(() => [
3123
3122
  Go
@@ -3127,11 +3126,11 @@ function ln(e, t, l, n, o, s) {
3127
3126
  ]),
3128
3127
  _: 1
3129
3128
  }),
3130
- u(a, { class: "ctrl" }, {
3129
+ u(s, { class: "ctrl" }, {
3131
3130
  default: r(() => [
3132
3131
  u(c, {
3133
3132
  class: "ctrl-btn",
3134
- onClick: t[1] || (t[1] = (S) => s.pushFilter("select"))
3133
+ onClick: t[1] || (t[1] = (S) => a.pushFilter("select"))
3135
3134
  }, {
3136
3135
  default: r(() => [
3137
3136
  Jo
@@ -3141,11 +3140,11 @@ function ln(e, t, l, n, o, s) {
3141
3140
  ]),
3142
3141
  _: 1
3143
3142
  }),
3144
- u(a, { class: "ctrl" }, {
3143
+ u(s, { class: "ctrl" }, {
3145
3144
  default: r(() => [
3146
3145
  u(c, {
3147
3146
  class: "ctrl-btn",
3148
- onClick: t[2] || (t[2] = (S) => s.pushFilter("date"))
3147
+ onClick: t[2] || (t[2] = (S) => a.pushFilter("date"))
3149
3148
  }, {
3150
3149
  default: r(() => [
3151
3150
  zo
@@ -3160,20 +3159,20 @@ function ln(e, t, l, n, o, s) {
3160
3159
  }),
3161
3160
  u(d, null, {
3162
3161
  default: r(() => [
3163
- u(a, { class: "title" }, {
3162
+ u(s, { class: "title" }, {
3164
3163
  default: r(() => [
3165
3164
  Ko
3166
3165
  ]),
3167
3166
  _: 1
3168
3167
  }),
3169
- (i(!0), h(k, null, $(Object.keys(o.ctrlMap.headers), (S, M) => (i(), m(a, {
3168
+ (i(!0), h(k, null, $(Object.keys(o.ctrlMap.headers), (S, M) => (i(), m(s, {
3170
3169
  key: `column-${M}`,
3171
3170
  class: "ctrl"
3172
3171
  }, {
3173
3172
  default: r(() => [
3174
3173
  u(c, {
3175
3174
  class: "ctrl-btn",
3176
- onClick: (me) => s.pushHeaders(o.ctrlMap.headers[S].type)
3175
+ onClick: (pe) => a.pushHeaders(o.ctrlMap.headers[S].type)
3177
3176
  }, {
3178
3177
  default: r(() => [
3179
3178
  g(B(o.ctrlMap.headers[S].name), 1)
@@ -3188,20 +3187,20 @@ function ln(e, t, l, n, o, s) {
3188
3187
  }),
3189
3188
  u(d, null, {
3190
3189
  default: r(() => [
3191
- u(a, { class: "title" }, {
3190
+ u(s, { class: "title" }, {
3192
3191
  default: r(() => [
3193
3192
  Wo
3194
3193
  ]),
3195
3194
  _: 1
3196
3195
  }),
3197
- (i(!0), h(k, null, $(Object.keys(o.ctrlMap.buttons), (S, M) => (i(), m(a, {
3196
+ (i(!0), h(k, null, $(Object.keys(o.ctrlMap.buttons), (S, M) => (i(), m(s, {
3198
3197
  key: `column-${M}`,
3199
3198
  class: "ctrl"
3200
3199
  }, {
3201
3200
  default: r(() => [
3202
3201
  u(c, {
3203
3202
  class: "ctrl-btn",
3204
- onClick: (me) => s.pushRowButton(o.ctrlMap.buttons[S].type)
3203
+ onClick: (pe) => a.pushRowButton(o.ctrlMap.buttons[S].type)
3205
3204
  }, {
3206
3205
  default: r(() => [
3207
3206
  g(B(o.ctrlMap.buttons[S].name), 1)
@@ -3216,20 +3215,20 @@ function ln(e, t, l, n, o, s) {
3216
3215
  }),
3217
3216
  u(d, null, {
3218
3217
  default: r(() => [
3219
- u(a, { class: "title" }, {
3218
+ u(s, { class: "title" }, {
3220
3219
  default: r(() => [
3221
3220
  Zo
3222
3221
  ]),
3223
3222
  _: 1
3224
3223
  }),
3225
- (i(!0), h(k, null, $(Object.keys(o.ctrlMap.buttons), (S, M) => (i(), m(a, {
3224
+ (i(!0), h(k, null, $(Object.keys(o.ctrlMap.buttons), (S, M) => (i(), m(s, {
3226
3225
  key: `column-${M}`,
3227
3226
  class: "ctrl"
3228
3227
  }, {
3229
3228
  default: r(() => [
3230
3229
  u(c, {
3231
3230
  class: "ctrl-btn",
3232
- onClick: (me) => s.pushNormalButton(o.ctrlMap.buttons[S].type)
3231
+ onClick: (pe) => a.pushNormalButton(o.ctrlMap.buttons[S].type)
3233
3232
  }, {
3234
3233
  default: r(() => [
3235
3234
  g(B(o.ctrlMap.buttons[S].name), 1)
@@ -3239,7 +3238,7 @@ function ln(e, t, l, n, o, s) {
3239
3238
  ]),
3240
3239
  _: 2
3241
3240
  }, 1024))), 128)),
3242
- u(a, { class: "ctrl" }, {
3241
+ u(s, { class: "ctrl" }, {
3243
3242
  default: r(() => [
3244
3243
  u(c, { class: "ctrl-btn" }, {
3245
3244
  default: r(() => [
@@ -3255,20 +3254,20 @@ function ln(e, t, l, n, o, s) {
3255
3254
  }),
3256
3255
  u(d, null, {
3257
3256
  default: r(() => [
3258
- u(a, { class: "title" }, {
3257
+ u(s, { class: "title" }, {
3259
3258
  default: r(() => [
3260
3259
  Xo
3261
3260
  ]),
3262
3261
  _: 1
3263
3262
  }),
3264
- (i(!0), h(k, null, $(Object.keys(o.ctrlMap.buttons), (S, M) => (i(), m(a, {
3263
+ (i(!0), h(k, null, $(Object.keys(o.ctrlMap.buttons), (S, M) => (i(), m(s, {
3265
3264
  key: `column-${M}`,
3266
3265
  class: "ctrl"
3267
3266
  }, {
3268
3267
  default: r(() => [
3269
3268
  u(c, {
3270
3269
  class: "ctrl-btn",
3271
- onClick: (me) => s.pushBatchButton(o.ctrlMap.buttons[S].type)
3270
+ onClick: (pe) => a.pushBatchButton(o.ctrlMap.buttons[S].type)
3272
3271
  }, {
3273
3272
  default: r(() => [
3274
3273
  g(B(o.ctrlMap.buttons[S].name), 1)
@@ -3278,7 +3277,7 @@ function ln(e, t, l, n, o, s) {
3278
3277
  ]),
3279
3278
  _: 2
3280
3279
  }, 1024))), 128)),
3281
- u(a, { class: "ctrl" }, {
3280
+ u(s, { class: "ctrl" }, {
3282
3281
  default: r(() => [
3283
3282
  u(c, { class: "ctrl-btn" }, {
3284
3283
  default: r(() => [
@@ -3305,7 +3304,7 @@ function ln(e, t, l, n, o, s) {
3305
3304
  u(f),
3306
3305
  u(_, {
3307
3306
  type: "primary",
3308
- onClick: s.saveSchema
3307
+ onClick: a.saveSchema
3309
3308
  }, {
3310
3309
  default: r(() => [
3311
3310
  en
@@ -3318,7 +3317,7 @@ function ln(e, t, l, n, o, s) {
3318
3317
  type: "modal"
3319
3318
  }, {
3320
3319
  default: r(() => [
3321
- u(A, { data: s.getSaveSchema }, null, 8, ["data"])
3320
+ u(A, { data: a.getSaveSchema }, null, 8, ["data"])
3322
3321
  ]),
3323
3322
  _: 1
3324
3323
  })
@@ -3333,7 +3332,7 @@ function ln(e, t, l, n, o, s) {
3333
3332
  "onUpdate:modelValue": t[3] || (t[3] = (S) => o.currentCtrlType = S)
3334
3333
  }, {
3335
3334
  default: r(() => [
3336
- (i(!0), h(k, null, $(s.types, (S, M) => (i(), m(U, {
3335
+ (i(!0), h(k, null, $(a.types, (S, M) => (i(), m(U, {
3337
3336
  key: M,
3338
3337
  label: S.label,
3339
3338
  value: S.value
@@ -3346,7 +3345,7 @@ function ln(e, t, l, n, o, s) {
3346
3345
  })
3347
3346
  ]),
3348
3347
  _: 1
3349
- })) : w("", !0),
3348
+ })) : E("", !0),
3350
3349
  (i(), m(_t, q({
3351
3350
  key: o.ctrlKey,
3352
3351
  modelValue: o.ctrlOptions,
@@ -3360,14 +3359,14 @@ const on = /* @__PURE__ */ C(Uo, [["render", ln], ["__scopeId", "data-v-77db3a16
3360
3359
  name: "PageEditor",
3361
3360
  components: { FormBuilder: So, TableBuilder: on },
3362
3361
  setup() {
3363
- const e = R(!1), t = R(1), l = "rtl", n = ce(), o = j(() => E.state.app.pages[n.path]);
3362
+ const e = R(!1), t = R(1), l = "rtl", n = ue(), o = j(() => w.state.app.pages[n.path]);
3364
3363
  return { show: e, key: t, direction: l, pageSchema: o };
3365
3364
  }
3366
3365
  };
3367
- function sn(e, t, l, n, o, s) {
3368
- const a = v("VIcon"), c = v("form-builder"), d = v("table-builder"), p = Xe;
3366
+ function an(e, t, l, n, o, a) {
3367
+ const s = v("VIcon"), c = v("form-builder"), d = v("table-builder"), p = Xe;
3369
3368
  return i(), h(k, null, [
3370
- u(a, {
3369
+ u(s, {
3371
3370
  name: "ra-set",
3372
3371
  onClick: t[0] || (t[0] = (f) => n.show = !n.show)
3373
3372
  }),
@@ -3385,23 +3384,23 @@ function sn(e, t, l, n, o, s) {
3385
3384
  n.pageSchema.formItems !== void 0 ? (i(), m(c, {
3386
3385
  key: 0,
3387
3386
  schema: n.pageSchema
3388
- }, null, 8, ["schema"])) : w("", !0),
3387
+ }, null, 8, ["schema"])) : E("", !0),
3389
3388
  n.pageSchema.headers !== void 0 ? (i(), m(d, {
3390
3389
  key: 1,
3391
3390
  schema: n.pageSchema
3392
- }, null, 8, ["schema"])) : w("", !0)
3391
+ }, null, 8, ["schema"])) : E("", !0)
3393
3392
  ]),
3394
3393
  _: 1
3395
3394
  }, 8, ["modelValue", "direction"])
3396
3395
  ], 64);
3397
3396
  }
3398
- const an = /* @__PURE__ */ C(nn, [["render", sn]]);
3397
+ const sn = /* @__PURE__ */ C(nn, [["render", an]]);
3399
3398
  const rn = {
3400
3399
  components: {
3401
3400
  Breadcrumb: Xl,
3402
3401
  Hamburger: to,
3403
3402
  VButton: Te,
3404
- PageEditor: an
3403
+ PageEditor: sn
3405
3404
  },
3406
3405
  data() {
3407
3406
  return {
@@ -3465,11 +3464,11 @@ const rn = {
3465
3464
  },
3466
3465
  showNotice(e) {
3467
3466
  const t = "dismiss:navbar_notice";
3468
- return fe.exist(t) ? fe.get(t) !== e : !0;
3467
+ return me.exist(t) ? me.get(t) !== e : !0;
3469
3468
  },
3470
3469
  closeNotice(e) {
3471
3470
  const t = "dismiss:navbar_notice";
3472
- fe.set(t, e);
3471
+ me.set(t, e);
3473
3472
  },
3474
3473
  gotoMenuEdit() {
3475
3474
  var e, t, l, n;
@@ -3483,20 +3482,20 @@ const rn = {
3483
3482
  class: "right-item-button",
3484
3483
  style: { padding: "0" }
3485
3484
  }, mn = { class: "user-info" }, fn = ["src"], hn = /* @__PURE__ */ g(), bn = { class: "user-name" }, _n = /* @__PURE__ */ g("\u9996\u9875"), yn = /* @__PURE__ */ g("\u9000\u51FA\u767B\u5F55");
3486
- function vn(e, t, l, n, o, s) {
3487
- const a = v("hamburger"), c = v("breadcrumb"), d = ue, p = v("VIcon"), f = v("PageEditor"), _ = v("v-button"), A = Dt, I = Ot, U = Pt, V = Xe, x = le;
3485
+ function vn(e, t, l, n, o, a) {
3486
+ const s = v("hamburger"), c = v("breadcrumb"), d = re, p = v("VIcon"), f = v("PageEditor"), _ = v("v-button"), A = Dt, I = Ot, U = Pt, V = Xe, x = le;
3488
3487
  return i(), m(x, {
3489
3488
  ref: "header",
3490
3489
  class: "navbar",
3491
- style: wt({ background: s.setting.envColor[s.user.env] })
3490
+ style: Et({ background: a.setting.envColor[a.user.env] })
3492
3491
  }, {
3493
3492
  default: r(() => [
3494
3493
  u(d, { span: 16 }, {
3495
3494
  default: r(() => [
3496
- u(a, {
3495
+ u(s, {
3497
3496
  "is-active": e.sidebar.opened,
3498
3497
  class: "hamburger-container",
3499
- onToggleClick: s.toggleSideBar
3498
+ onToggleClick: a.toggleSideBar
3500
3499
  }, null, 8, ["is-active", "onToggleClick"]),
3501
3500
  u(c, { class: "breadcrumb-container" })
3502
3501
  ]),
@@ -3508,12 +3507,12 @@ function vn(e, t, l, n, o, s) {
3508
3507
  b("div", cn, [
3509
3508
  u(p, {
3510
3509
  name: "ra-code",
3511
- onClick: s.gotoMenuEdit
3510
+ onClick: a.gotoMenuEdit
3512
3511
  }, null, 8, ["onClick"])
3513
3512
  ]),
3514
- s.showPageJsonSchemaIcon ? (i(), h("div", dn, [
3513
+ a.showPageJsonSchemaIcon ? (i(), h("div", dn, [
3515
3514
  u(f)
3516
- ])) : w("", !0),
3515
+ ])) : E("", !0),
3517
3516
  b("div", pn, [
3518
3517
  u(_, { buttons: e.nav }, null, 8, ["buttons"])
3519
3518
  ]),
@@ -3536,7 +3535,7 @@ function vn(e, t, l, n, o, s) {
3536
3535
  u(A, {
3537
3536
  divided: "",
3538
3537
  icon: "el-icon-switch-button",
3539
- onClick: s.logout
3538
+ onClick: a.logout
3540
3539
  }, {
3541
3540
  default: r(() => [
3542
3541
  yn
@@ -3568,7 +3567,7 @@ function vn(e, t, l, n, o, s) {
3568
3567
  key: 0,
3569
3568
  "with-header": !1,
3570
3569
  size: "50%"
3571
- })) : w("", !0)
3570
+ })) : E("", !0)
3572
3571
  ]),
3573
3572
  _: 1
3574
3573
  }, 8, ["style"]);
@@ -3590,43 +3589,43 @@ const kn = {
3590
3589
  return this.$store.state.settings.logo;
3591
3590
  }
3592
3591
  }
3593
- }, wn = (e) => (Je("data-v-49084925"), e = e(), ze(), e), En = ["src"], Sn = {
3592
+ }, En = (e) => (Je("data-v-49084925"), e = e(), ze(), e), wn = ["src"], Sn = {
3594
3593
  key: 1,
3595
3594
  class: "sidebar-title"
3596
- }, Cn = /* @__PURE__ */ wn(() => /* @__PURE__ */ b("div", null, "\u7CFB\u7EDF", -1)), xn = ["src"], Bn = { class: "sidebar-title" };
3597
- function $n(e, t, l, n, o, s) {
3598
- const a = v("router-link");
3595
+ }, Cn = /* @__PURE__ */ En(() => /* @__PURE__ */ b("div", null, "\u7CFB\u7EDF", -1)), xn = ["src"], Bn = { class: "sidebar-title" };
3596
+ function $n(e, t, l, n, o, a) {
3597
+ const s = v("router-link");
3599
3598
  return i(), h("div", {
3600
3599
  class: H(["sidebar-logo-container", { collapse: l.collapse }])
3601
3600
  }, [
3602
- u(Et, { name: "sidebarLogoFade" }, {
3601
+ u(wt, { name: "sidebarLogoFade" }, {
3603
3602
  default: r(() => [
3604
- l.collapse ? (i(), m(a, {
3603
+ l.collapse ? (i(), m(s, {
3605
3604
  key: "collapse",
3606
3605
  class: "sidebar-logo-link",
3607
3606
  to: "/"
3608
3607
  }, {
3609
3608
  default: r(() => [
3610
- s.logo ? (i(), h("img", {
3609
+ a.logo ? (i(), h("img", {
3611
3610
  key: 0,
3612
- src: s.logo,
3611
+ src: a.logo,
3613
3612
  class: "sidebar-logo"
3614
- }, null, 8, En)) : (i(), h("h1", Sn, B(s.title), 1)),
3613
+ }, null, 8, wn)) : (i(), h("h1", Sn, B(a.title), 1)),
3615
3614
  Cn
3616
3615
  ]),
3617
3616
  _: 1
3618
- })) : (i(), m(a, {
3617
+ })) : (i(), m(s, {
3619
3618
  key: "expand",
3620
3619
  class: "sidebar-logo-link",
3621
3620
  to: "/"
3622
3621
  }, {
3623
3622
  default: r(() => [
3624
- s.logo ? (i(), h("img", {
3623
+ a.logo ? (i(), h("img", {
3625
3624
  key: 0,
3626
- src: s.logo,
3625
+ src: a.logo,
3627
3626
  class: "sidebar-logo"
3628
- }, null, 8, xn)) : w("", !0),
3629
- b("h1", Bn, B(s.title), 1)
3627
+ }, null, 8, xn)) : E("", !0),
3628
+ b("h1", Bn, B(a.title), 1)
3630
3629
  ]),
3631
3630
  _: 1
3632
3631
  }))
@@ -3674,8 +3673,8 @@ const In = /* @__PURE__ */ C(kn, [["render", $n], ["__scopeId", "data-v-49084925
3674
3673
  }
3675
3674
  }
3676
3675
  };
3677
- function Tn(e, t, l, n, o, s) {
3678
- return i(), m(Ke(s.compType(l.to)), J(Z(s.linkProps(l.to))), {
3676
+ function Tn(e, t, l, n, o, a) {
3677
+ return i(), m(Ke(a.compType(l.to)), J(Z(a.linkProps(l.to))), {
3679
3678
  default: r(() => [
3680
3679
  Y(e.$slots, "default")
3681
3680
  ]),
@@ -3758,8 +3757,8 @@ const Fn = /* @__PURE__ */ C(An, [["render", Tn]]), Dn = {
3758
3757
  key: 0,
3759
3758
  class: "menu-wrapper"
3760
3759
  };
3761
- function Mn(e, t, l, n, o, s) {
3762
- const a = v("menu-content"), c = Rt, d = v("app-link"), p = v("sidebar-item", !0), f = Lt;
3760
+ function Mn(e, t, l, n, o, a) {
3761
+ const s = v("menu-content"), c = Rt, d = v("app-link"), p = v("sidebar-item", !0), f = Lt;
3763
3762
  return l.item.hidden !== !1 ? (i(), h("div", Ln, [
3764
3763
  l.item.meta && l.item.meta.menuType === 2 ? (i(), h(k, { key: 0 }, [
3765
3764
  l.item.meta ? (i(), m(d, {
@@ -3773,7 +3772,7 @@ function Mn(e, t, l, n, o, s) {
3773
3772
  class: H({ "submenu-title-noDropdown": !l.isNest })
3774
3773
  }, {
3775
3774
  default: r(() => [
3776
- u(a, {
3775
+ u(s, {
3777
3776
  meta: l.item.meta
3778
3777
  }, null, 8, ["meta"])
3779
3778
  ]),
@@ -3781,7 +3780,7 @@ function Mn(e, t, l, n, o, s) {
3781
3780
  }, 8, ["index", "class"])
3782
3781
  ]),
3783
3782
  _: 1
3784
- }, 8, ["to", "new-tab"])) : w("", !0)
3783
+ }, 8, ["to", "new-tab"])) : E("", !0)
3785
3784
  ], 64)) : l.item.meta && l.item.meta.menuType === 1 ? (i(), m(f, {
3786
3785
  key: 1,
3787
3786
  ref: "subMenu",
@@ -3795,12 +3794,12 @@ function Mn(e, t, l, n, o, s) {
3795
3794
  to: l.to
3796
3795
  }, {
3797
3796
  default: r(() => [
3798
- u(a, {
3797
+ u(s, {
3799
3798
  meta: l.item.meta
3800
3799
  }, null, 8, ["meta"])
3801
3800
  ]),
3802
3801
  _: 1
3803
- }, 8, ["to"])) : (i(), m(a, {
3802
+ }, 8, ["to"])) : (i(), m(s, {
3804
3803
  key: 1,
3805
3804
  meta: l.item.meta
3806
3805
  }, null, 8, ["meta"]))
@@ -3810,13 +3809,13 @@ function Mn(e, t, l, n, o, s) {
3810
3809
  key: _.path,
3811
3810
  "is-nest": !0,
3812
3811
  item: _,
3813
- to: s.getTo(_),
3812
+ to: a.getTo(_),
3814
3813
  class: "nest-menu"
3815
3814
  }, null, 8, ["item", "to"]))), 128))
3816
3815
  ]),
3817
3816
  _: 1
3818
- }, 8, ["index", "class"])) : w("", !0)
3819
- ])) : w("", !0);
3817
+ }, 8, ["index", "class"])) : E("", !0)
3818
+ ])) : E("", !0);
3820
3819
  }
3821
3820
  const jn = /* @__PURE__ */ C(Rn, [["render", Mn]]);
3822
3821
  function ct(e) {
@@ -3846,18 +3845,18 @@ const Nn = {
3846
3845
  }
3847
3846
  }
3848
3847
  };
3849
- function Vn(e, t, l, n, o, s) {
3850
- const a = Se, c = Mt, d = Ce;
3848
+ function Vn(e, t, l, n, o, a) {
3849
+ const s = we, c = Mt, d = Se;
3851
3850
  return i(), m(d, {
3852
3851
  modelValue: o.selected,
3853
3852
  "onUpdate:modelValue": t[0] || (t[0] = (p) => o.selected = p),
3854
3853
  filterable: "",
3855
3854
  placeholder: "\u641C\u7D22\u83DC\u5355...",
3856
3855
  class: "search-menu",
3857
- onChange: s.onselected
3856
+ onChange: a.onselected
3858
3857
  }, {
3859
3858
  default: r(() => [
3860
- (i(!0), h(k, null, $(s.filterRoutes, (p) => (i(), h(k, {
3859
+ (i(!0), h(k, null, $(a.filterRoutes, (p) => (i(), h(k, {
3861
3860
  key: p.path
3862
3861
  }, [
3863
3862
  p.children !== void 0 ? (i(), h(k, { key: 0 }, [
@@ -3869,16 +3868,16 @@ function Vn(e, t, l, n, o, s) {
3869
3868
  (i(!0), h(k, null, $(p.children, (f, _) => (i(), h(k, {
3870
3869
  key: f.path
3871
3870
  }, [
3872
- p.meta.menuType !== 0 ? (i(), m(a, {
3871
+ p.meta.menuType !== 0 ? (i(), m(s, {
3873
3872
  key: 0,
3874
3873
  label: (_ === p.children.length - 1 ? "\u2514\u2500" : "\u251C\u2500") + f.meta.title,
3875
3874
  value: f.path
3876
- }, null, 8, ["label", "value"])) : w("", !0)
3875
+ }, null, 8, ["label", "value"])) : E("", !0)
3877
3876
  ], 64))), 128))
3878
3877
  ]),
3879
3878
  _: 2
3880
- }, 1032, ["label"])) : w("", !0)
3881
- ], 64)) : (i(), m(a, {
3879
+ }, 1032, ["label"])) : E("", !0)
3880
+ ], 64)) : (i(), m(s, {
3882
3881
  key: 1,
3883
3882
  label: "" + p.meta.title,
3884
3883
  value: p.path
@@ -3945,18 +3944,18 @@ const Un = N({
3945
3944
  }
3946
3945
  }
3947
3946
  });
3948
- function Hn(e, t, l, n, o, s) {
3949
- const a = v("logo"), c = v("search-menu"), d = v("sidebar-item"), p = jt, f = Nt;
3947
+ function Hn(e, t, l, n, o, a) {
3948
+ const s = v("logo"), c = v("search-menu"), d = v("sidebar-item"), p = jt, f = Nt;
3950
3949
  return i(), h("div", {
3951
3950
  class: H({ "has-logo": e.showLogo })
3952
3951
  }, [
3953
- e.showLogo ? (i(), m(a, {
3952
+ e.showLogo ? (i(), m(s, {
3954
3953
  key: 0,
3955
3954
  collapse: e.isCollapse
3956
- }, null, 8, ["collapse"])) : w("", !0),
3955
+ }, null, 8, ["collapse"])) : E("", !0),
3957
3956
  u(f, { "wrap-class": "scrollbar-wrapper" }, {
3958
3957
  default: r(() => [
3959
- e.isCollapse ? w("", !0) : (i(), m(c, { key: 0 })),
3958
+ e.isCollapse ? E("", !0) : (i(), m(c, { key: 0 })),
3960
3959
  u(p, {
3961
3960
  "default-active": e.activeMenu,
3962
3961
  collapse: e.isCollapse,
@@ -3989,14 +3988,14 @@ const Gn = /* @__PURE__ */ C(Un, [["render", Hn], ["__scopeId", "data-v-cf9a1835
3989
3988
  const Jn = { class: "app-main" }, zn = {
3990
3989
  __name: "AppMain",
3991
3990
  setup(e) {
3992
- const t = ce(), l = [], n = R(0);
3991
+ const t = ue(), l = [], n = R(0);
3993
3992
  return rl(() => {
3994
3993
  var o;
3995
3994
  (o = t.meta) != null && o.keepAlive && l.indexOf(t.name) && l.push(t.name), n.value++;
3996
- }), (o, s) => {
3997
- const a = v("router-view"), c = Vt;
3995
+ }), (o, a) => {
3996
+ const s = v("router-view"), c = Vt;
3998
3997
  return i(), h("section", Jn, [
3999
- (i(), m(a, {
3998
+ (i(), m(s, {
4000
3999
  key: o.$route.fullPath + n.value
4001
4000
  })),
4002
4001
  u(c, { bottom: 50 })
@@ -4007,11 +4006,11 @@ const Jn = { class: "app-main" }, zn = {
4007
4006
  const Wn = { class: "main-container" }, Zn = {
4008
4007
  __name: "index",
4009
4008
  setup(e) {
4010
- const t = lt(), { body: l } = document, n = 992, o = j(() => t.state.app.sidebar), s = j(() => t.state.app.device), a = j(() => t.state.settings.fixedHeader), c = j(() => ({
4009
+ const t = lt(), { body: l } = document, n = 992, o = j(() => t.state.app.sidebar), a = j(() => t.state.app.device), s = j(() => t.state.settings.fixedHeader), c = j(() => ({
4011
4010
  hideSidebar: !o.value.opened,
4012
4011
  openSidebar: o.value.opened,
4013
4012
  withoutAnimation: o.value.withoutAnimation,
4014
- mobile: s.value === "mobile"
4013
+ mobile: a.value === "mobile"
4015
4014
  })), d = () => l.getBoundingClientRect().width - 1 < n;
4016
4015
  hl(window, "resize", () => f());
4017
4016
  const p = () => {
@@ -4025,15 +4024,15 @@ const Wn = { class: "main-container" }, Zn = {
4025
4024
  return (_, A) => (i(), h("div", {
4026
4025
  class: H([T(c), "app-wrapper"])
4027
4026
  }, [
4028
- T(s) === "mobile" && T(o).opened ? (i(), h("div", {
4027
+ T(a) === "mobile" && T(o).opened ? (i(), h("div", {
4029
4028
  key: 0,
4030
4029
  class: "drawer-bg",
4031
4030
  onClick: p
4032
- })) : w("", !0),
4031
+ })) : E("", !0),
4033
4032
  u(T(Gn), { class: "sidebar-container" }),
4034
4033
  b("div", Wn, [
4035
4034
  b("div", {
4036
- class: H({ "fixed-header": T(a) })
4035
+ class: H({ "fixed-header": T(s) })
4037
4036
  }, [
4038
4037
  u(T(gn))
4039
4038
  ], 2),
@@ -4065,11 +4064,11 @@ class Xn extends Qn {
4065
4064
  }
4066
4065
  showQrCode() {
4067
4066
  const t = (o) => {
4068
- const s = {
4067
+ const a = {
4069
4068
  appid: this.appid,
4070
4069
  redirect_uri: encodeURIComponent(this.redirectUri)
4071
4070
  };
4072
- return K(this.reloadUrl, s) + "&" + Qt(o || {});
4071
+ return K(this.reloadUrl, a) + "&" + Qt(o || {});
4073
4072
  }, l = () => {
4074
4073
  const o = {
4075
4074
  goto: encodeURIComponent(t()),
@@ -4077,8 +4076,8 @@ class Xn extends Qn {
4077
4076
  };
4078
4077
  return K(this.qrCodeUrl, o);
4079
4078
  }, n = (o) => {
4080
- const { origin: s, data: a } = o;
4081
- s === "https://login.dingtalk.com" && (window.location.href = t({ loginTmpCode: a }));
4079
+ const { origin: a, data: s } = o;
4080
+ a === "https://login.dingtalk.com" && (window.location.href = t({ loginTmpCode: s }));
4082
4081
  };
4083
4082
  this.iframe.src = l(), Zt({ elId: this.elId, attrs: this.iframe }), typeof window.addEventListener < "u" ? window.addEventListener(
4084
4083
  "message",
@@ -4090,34 +4089,34 @@ class Xn extends Qn {
4090
4089
  const Yn = {
4091
4090
  dingtalk: (e) => new Xn(e)
4092
4091
  };
4093
- function es() {
4094
- return O(E.state.settings.sso || {}, Yn);
4092
+ function ea() {
4093
+ return O(w.state.settings.sso || {}, Yn);
4095
4094
  }
4096
- function ts(e) {
4097
- const t = es(), l = E.state.settings.activeSsoKey || "", n = t[l];
4095
+ function ta(e) {
4096
+ const t = ea(), l = w.state.settings.activeSsoKey || "", n = t[l];
4098
4097
  if (n !== void 0)
4099
4098
  return n(e);
4100
4099
  }
4101
- const ls = { id: "login" }, os = /* @__PURE__ */ b("h1", { id: "title" }, "\u767B\u5F55", -1), ns = { id: "form" }, ss = { class: "tips" }, as = { class: "sso" }, is = /* @__PURE__ */ b("div", { id: "sso-qrcode" }, null, -1), rs = /* @__PURE__ */ N({
4100
+ const la = { id: "login" }, oa = /* @__PURE__ */ b("h1", { id: "title" }, "\u767B\u5F55", -1), na = { id: "form" }, aa = { class: "tips" }, sa = { class: "sso" }, ia = /* @__PURE__ */ b("div", { id: "sso-qrcode" }, null, -1), ra = /* @__PURE__ */ N({
4102
4101
  __name: "login",
4103
4102
  setup(e) {
4104
- const t = ul(), l = ce(), n = j(() => E.state.settings.loginTips), o = R({
4103
+ const t = ul(), l = ue(), n = j(() => w.state.settings.loginTips), o = R({
4105
4104
  username: "",
4106
4105
  password: ""
4107
- }), s = () => {
4106
+ }), a = () => {
4108
4107
  if (o.value.username === "" || o.value.password === "") {
4109
4108
  qt.error("\u8BF7\u586B\u5199\u7528\u6237\u540D\u548C\u5BC6\u7801");
4110
4109
  return;
4111
4110
  }
4112
- E.dispatch("user/login", o.value).then((a) => {
4111
+ w.dispatch("user/login", o.value).then((s) => {
4113
4112
  var c;
4114
4113
  t.push({ path: ((c = l.query) == null ? void 0 : c.redirect) || "/" });
4115
4114
  });
4116
4115
  };
4117
- return R(), (a, c) => (i(), h("div", ls, [
4118
- os,
4119
- b("form", ns, [
4120
- ye(b("input", {
4116
+ return R(), (s, c) => (i(), h("div", la, [
4117
+ oa,
4118
+ b("form", na, [
4119
+ _e(b("input", {
4121
4120
  "onUpdate:modelValue": c[0] || (c[0] = (d) => o.value.username = d),
4122
4121
  type: "text",
4123
4122
  placeholder: "\u7528\u6237\u540D",
@@ -4125,7 +4124,7 @@ const ls = { id: "login" }, os = /* @__PURE__ */ b("h1", { id: "title" }, "\u767
4125
4124
  }, null, 512), [
4126
4125
  [Le, o.value.username]
4127
4126
  ]),
4128
- ye(b("input", {
4127
+ _e(b("input", {
4129
4128
  "onUpdate:modelValue": c[1] || (c[1] = (d) => o.value.password = d),
4130
4129
  type: "password",
4131
4130
  placeholder: "\u5BC6\u7801",
@@ -4135,22 +4134,22 @@ const ls = { id: "login" }, os = /* @__PURE__ */ b("h1", { id: "title" }, "\u767
4135
4134
  ]),
4136
4135
  b("div", {
4137
4136
  class: "input button",
4138
- onClick: s
4137
+ onClick: a
4139
4138
  }, "\u767B\u5F55"),
4140
- b("div", ss, [
4139
+ b("div", aa, [
4141
4140
  b("div", null, B(T(n)), 1)
4142
4141
  ]),
4143
- b("div", as, [
4144
- is,
4142
+ b("div", sa, [
4143
+ ia,
4145
4144
  (i(!0), h(k, null, $(Object.keys([]), (d) => (i(), h("div", { key: d }, B(d), 1))), 128))
4146
4145
  ])
4147
4146
  ])
4148
4147
  ]));
4149
4148
  }
4150
4149
  });
4151
- const us = {
4150
+ const ua = {
4152
4151
  name: "NotFoundPage"
4153
- }, pt = (e) => (Je("data-v-26068803"), e = e(), ze(), e), cs = { class: "not-found" }, ds = /* @__PURE__ */ pt(() => /* @__PURE__ */ b("svg", {
4152
+ }, pt = (e) => (Je("data-v-26068803"), e = e(), ze(), e), ca = { class: "not-found" }, da = /* @__PURE__ */ pt(() => /* @__PURE__ */ b("svg", {
4154
4153
  width: "380px",
4155
4154
  height: "500px",
4156
4155
  viewBox: "0 0 837 1045",
@@ -4203,7 +4202,7 @@ const us = {
4203
4202
  "sketch:type": "MSShapeGroup"
4204
4203
  })
4205
4204
  ])
4206
- ], -1)), ps = /* @__PURE__ */ pt(() => /* @__PURE__ */ b("div", { class: "message-box" }, [
4205
+ ], -1)), pa = /* @__PURE__ */ pt(() => /* @__PURE__ */ b("div", { class: "message-box" }, [
4207
4206
  /* @__PURE__ */ b("h1", null, "404"),
4208
4207
  /* @__PURE__ */ b("p", null, "Page not found"),
4209
4208
  /* @__PURE__ */ b("div", { class: "buttons-con" }, [
@@ -4214,14 +4213,14 @@ const us = {
4214
4213
  }, "Go to Home Page")
4215
4214
  ])
4216
4215
  ])
4217
- ], -1)), ms = [
4218
- ds,
4219
- ps
4216
+ ], -1)), ma = [
4217
+ da,
4218
+ pa
4220
4219
  ];
4221
- function fs(e, t, l, n, o, s) {
4222
- return i(), h("div", cs, ms);
4220
+ function fa(e, t, l, n, o, a) {
4221
+ return i(), h("div", ca, ma);
4223
4222
  }
4224
- const hs = /* @__PURE__ */ C(us, [["render", fs], ["__scopeId", "data-v-26068803"]]), bs = [
4223
+ const ha = /* @__PURE__ */ C(ua, [["render", fa], ["__scopeId", "data-v-26068803"]]), ba = [
4225
4224
  {
4226
4225
  path: "/",
4227
4226
  component: dt,
@@ -4241,71 +4240,71 @@ const hs = /* @__PURE__ */ C(us, [["render", fs], ["__scopeId", "data-v-26068803
4241
4240
  },
4242
4241
  {
4243
4242
  path: "/login",
4244
- component: rs,
4243
+ component: ra,
4245
4244
  meta: { title: "\u7528\u6237\u767B\u5F55", menuType: 0 },
4246
4245
  hidden: !0
4247
4246
  },
4248
4247
  {
4249
4248
  path: "/404",
4250
- component: hs,
4249
+ component: ha,
4251
4250
  meta: { menuType: 0 },
4252
4251
  hidden: !0
4253
4252
  }
4254
4253
  ], te = cl({
4255
4254
  history: dl(),
4256
- routes: bs
4255
+ routes: ba
4257
4256
  });
4258
- ge.configure({ showSpinner: !1 });
4259
- function _s(e) {
4257
+ ve.configure({ showSpinner: !1 });
4258
+ function _a(e) {
4260
4259
  e.beforeEach((t, l, n) => {
4261
- ge.start(), t.preHash = location.hash.replace("#", ""), n();
4260
+ ve.start(), t.preHash = location.hash.replace("#", ""), n();
4262
4261
  }), e.afterEach((t) => {
4263
- t.matched.length > 0 && E.commit("user/updateState", {
4262
+ t.matched.length > 0 && w.commit("user/updateState", {
4264
4263
  key: "path",
4265
4264
  value: t.matched[t.matched.length - 1].path.replace("(\\d+)", "")
4266
- }), ge.done();
4265
+ }), ve.done();
4267
4266
  });
4268
4267
  }
4269
- function ys() {
4270
- return E.state.user.isLodeRemoteRoutes;
4268
+ function ya() {
4269
+ return w.state.user.isLodeRemoteRoutes;
4271
4270
  }
4272
4271
  function mt() {
4273
- return E.state.settings.whiteRoutes || [];
4272
+ return w.state.settings.whiteRoutes || [];
4274
4273
  }
4275
- function vs() {
4276
- return E.state.user.token;
4274
+ function va() {
4275
+ return w.state.user.token;
4277
4276
  }
4278
- function gs(e) {
4277
+ function ga(e) {
4279
4278
  e.beforeEach(async (t, l, n) => {
4280
4279
  var d, p;
4281
4280
  if (mt().indexOf(t.path) !== -1) {
4282
4281
  n();
4283
4282
  return;
4284
4283
  }
4285
- if (vs()) {
4284
+ if (va()) {
4286
4285
  (d = t.query) != null && d.redirect ? n((p = t.query) == null ? void 0 : p.redirect) : n();
4287
4286
  return;
4288
4287
  }
4289
- const s = t.query.redirect || t.path, a = ts({});
4290
- if (!a) {
4291
- n(`/login?redirect=${s}`);
4288
+ const a = t.query.redirect || t.path, s = ta({});
4289
+ if (!s) {
4290
+ n(`/login?redirect=${a}`);
4292
4291
  return;
4293
4292
  }
4294
- const c = a.flag();
4295
- if (c && await E.dispatch("user/login", { ticket: c })) {
4293
+ const c = s.flag();
4294
+ if (c && await w.dispatch("user/login", { ticket: c })) {
4296
4295
  n();
4297
4296
  return;
4298
4297
  }
4299
- a.jumpToLoginPage(n, `/login?redirect=${s}`);
4298
+ s.jumpToLoginPage(n, `/login?redirect=${a}`);
4300
4299
  });
4301
4300
  }
4302
- const ks = {}, ws = { class: "loading preloader" }, Es = /* @__PURE__ */ b("div", { class: "preloader-inner" }, null, -1), Ss = [
4303
- Es
4301
+ const ka = {}, Ea = { class: "loading preloader" }, wa = /* @__PURE__ */ b("div", { class: "preloader-inner" }, null, -1), Sa = [
4302
+ wa
4304
4303
  ];
4305
- function Cs(e, t) {
4306
- return i(), h("div", ws, Ss);
4304
+ function Ca(e, t) {
4305
+ return i(), h("div", Ea, Sa);
4307
4306
  }
4308
- const ft = /* @__PURE__ */ C(ks, [["render", Cs]]), xs = N({
4307
+ const ft = /* @__PURE__ */ C(ka, [["render", Ca]]), xa = N({
4309
4308
  components: { VLoading: ft },
4310
4309
  props: {
4311
4310
  schemaHandler: {
@@ -4331,45 +4330,45 @@ const ft = /* @__PURE__ */ C(ks, [["render", Cs]]), xs = N({
4331
4330
  beforeCreate() {
4332
4331
  const e = this.$route.path.split("/").filter((o) => o), t = e.length > 1 ? e.slice(0, e.length - 1).join("/") : e[0], l = "/schema" + this.$route.meta.path, n = { params: this.$route.params };
4333
4332
  this.$http.get(this.$props.schemaApi || l, n).then(({ data: o }) => {
4334
- this.loading = !1, o.notice !== void 0 && (this.haveNotice = !0, $e(o.notice) ? this.notice = {
4333
+ this.loading = !1, o.notice !== void 0 && (this.haveNotice = !0, Be(o.notice) ? this.notice = {
4335
4334
  title: o.notice
4336
- } : Ie(o.notice) && (this.notice = o.notice), delete o.notice), this.owners = o.ownerNames || [], this.schema = this.$props.schemaHandler(o, t), E.commit("app/SET_PAGE_JSON_SCHEMA", { page: this.$route.path, json: this.schema });
4335
+ } : $e(o.notice) && (this.notice = o.notice), delete o.notice), this.owners = o.ownerNames || [], this.schema = this.$props.schemaHandler(o, t), w.commit("app/SET_PAGE_JSON_SCHEMA", { page: this.$route.path, json: this.schema });
4337
4336
  });
4338
4337
  }
4339
4338
  });
4340
- function Bs(e, t, l, n, o, s) {
4341
- const a = ve, c = ve, d = ft;
4339
+ function Ba(e, t, l, n, o, a) {
4340
+ const s = ye, c = ye, d = ft;
4342
4341
  return i(), h(k, null, [
4343
- e.owners.length > 0 ? (i(), m(a, {
4342
+ e.owners.length > 0 ? (i(), m(s, {
4344
4343
  key: 0,
4345
4344
  title: `\u8BE5\u9875\u9762\u529F\u80FD\u5BF9\u5E94\u5F00\u53D1: [ ${e.owners.join(", ")} ] \u6709\u95EE\u9898\u53EF\u76F4\u63A5\u4F01\u5FAE\u53CD\u9988`,
4346
4345
  type: "info",
4347
4346
  style: { margin: "0 0 20px 0" },
4348
4347
  closable: !1
4349
- }, null, 8, ["title"])) : w("", !0),
4350
- e.haveNotice ? (i(), m(c, q({ key: 1 }, e.notice, { style: { margin: "0 0 20px 0" } }), null, 16)) : w("", !0),
4348
+ }, null, 8, ["title"])) : E("", !0),
4349
+ e.haveNotice ? (i(), m(c, q({ key: 1 }, e.notice, { style: { margin: "0 0 20px 0" } }), null, 16)) : E("", !0),
4351
4350
  e.loading ? (i(), m(d, { key: 2 })) : Y(e.$slots, "default", J(q({ key: 3 }, e.schema)))
4352
4351
  ], 64);
4353
4352
  }
4354
- const pe = /* @__PURE__ */ C(xs, [["render", Bs]]), ht = {
4353
+ const de = /* @__PURE__ */ C(xa, [["render", Ba]]), ht = {
4355
4354
  __name: "table",
4356
4355
  setup(e) {
4357
4356
  const t = (l, n) => {
4358
4357
  if (l.orderBy) {
4359
- const s = {
4358
+ const a = {
4360
4359
  prop: l.orderBy.field,
4361
4360
  order: l.orderBy.mod === "desc" ? "descending" : "ascending"
4362
4361
  };
4363
- l.tableProps = O(l.tableProps, { defaultSort: s });
4362
+ l.tableProps = O(l.tableProps, { defaultSort: a });
4364
4363
  }
4365
- const o = Object.keys(re.props);
4366
- return Object.keys(l).forEach((s) => {
4367
- o.indexOf(s) === -1 && delete l[s];
4364
+ const o = Object.keys(ie.props);
4365
+ return Object.keys(l).forEach((a) => {
4366
+ o.indexOf(a) === -1 && delete l[a];
4368
4367
  }), l.listApi === void 0 && (l.listApi = `/${n}/list`), l;
4369
4368
  };
4370
- return (l, n) => (i(), m(pe, { "schema-handler": t }, {
4369
+ return (l, n) => (i(), m(de, { "schema-handler": t }, {
4371
4370
  default: r((o) => [
4372
- u(T(re), J(Z(o)), null, 16)
4371
+ u(T(ie), J(Z(o)), null, 16)
4373
4372
  ]),
4374
4373
  _: 1
4375
4374
  }));
@@ -4377,14 +4376,14 @@ const pe = /* @__PURE__ */ C(xs, [["render", Bs]]), ht = {
4377
4376
  }, Ee = {
4378
4377
  __name: "form",
4379
4378
  setup(e) {
4380
- const t = ce(), l = (n, o) => {
4381
- const s = Object.keys(W.props);
4382
- return Object.keys(n).forEach((a) => {
4383
- if (s.indexOf(a) === -1) {
4384
- delete n[a];
4379
+ const t = ue(), l = (n, o) => {
4380
+ const a = Object.keys(W.props);
4381
+ return Object.keys(n).forEach((s) => {
4382
+ if (a.indexOf(s) === -1) {
4383
+ delete n[s];
4385
4384
  return;
4386
4385
  }
4387
- /.*Api$/.test(a) && (n[a] = K(n[a], t.params));
4386
+ /.*Api$/.test(s) && (n[s] = K(n[s], t.params));
4388
4387
  }), n.saveApi === void 0 && (t.params.id !== void 0 ? (n.saveApi = `/${o}/update/${t.params.id}`, n.getApi || (n.getApi = `/${o}/get/${t.params.id}`)) : (delete n.getApi, n.saveApi = `/${o}/create`)), n = O({
4389
4388
  saveApi: o + "/save",
4390
4389
  afterSubmit: "goback",
@@ -4392,14 +4391,14 @@ const pe = /* @__PURE__ */ C(xs, [["render", Bs]]), ht = {
4392
4391
  mod: t.params.id ? "edit" : "create"
4393
4392
  }, n), n;
4394
4393
  };
4395
- return (n, o) => (i(), m(pe, { "schema-handler": l }, {
4396
- default: r((s) => [
4397
- u(T(W), J(Z(s)), null, 16)
4394
+ return (n, o) => (i(), m(de, { "schema-handler": l }, {
4395
+ default: r((a) => [
4396
+ u(T(W), J(Z(a)), null, 16)
4398
4397
  ]),
4399
4398
  _: 1
4400
4399
  }));
4401
4400
  }
4402
- }, $s = N({
4401
+ }, $a = N({
4403
4402
  name: "VTree",
4404
4403
  components: {
4405
4404
  VForm: W
@@ -4496,9 +4495,9 @@ const pe = /* @__PURE__ */ C(xs, [["render", Bs]]), ht = {
4496
4495
  this.type = 2, this.formData = e, this.formkey++;
4497
4496
  },
4498
4497
  append(e, t) {
4499
- var n, o, s;
4498
+ var n, o, a;
4500
4499
  this.type = 1;
4501
- const l = { pid: e.id, [(o = (n = this.$props.props) == null ? void 0 : n.levelKey) != null ? o : "level"]: t.level + 1, ...Xt((s = this.$props.props) == null ? void 0 : s.effectData, e) };
4500
+ const l = { pid: e.id, [(o = (n = this.$props.props) == null ? void 0 : n.levelKey) != null ? o : "level"]: t.level + 1, ...Xt((a = this.$props.props) == null ? void 0 : a.effectData, e) };
4502
4501
  console.log(111, l), e.children || (e.children = []), this.formData = l, this.formkey++, e.children.push(l), this.treeData = [...this.treeData];
4503
4502
  },
4504
4503
  canAppend(e, t) {
@@ -4535,38 +4534,38 @@ const pe = /* @__PURE__ */ C(xs, [["render", Bs]]), ht = {
4535
4534
  method: "POST",
4536
4535
  url: K(this.$props.saveApi, o),
4537
4536
  data: o
4538
- }).then(({ code: s }) => {
4539
- s !== 0 && this.$message.error("\u64CD\u4F5C\u5931\u8D25");
4537
+ }).then(({ code: a }) => {
4538
+ a !== 0 && this.$message.error("\u64CD\u4F5C\u5931\u8D25");
4540
4539
  });
4541
4540
  }
4542
4541
  }
4543
4542
  });
4544
- const Is = { class: "card-header" }, As = /* @__PURE__ */ b("span", null, "\u5217\u8868", -1), Ts = /* @__PURE__ */ g("\u6DFB\u52A0"), Fs = { class: "tree-action" }, Ds = { key: 0 }, Os = {
4543
+ const Ia = { class: "card-header" }, Aa = /* @__PURE__ */ b("span", null, "\u5217\u8868", -1), Ta = /* @__PURE__ */ g("\u6DFB\u52A0"), Fa = { class: "tree-action" }, Da = { key: 0 }, Oa = {
4545
4544
  key: 1,
4546
4545
  style: { color: "#E6A23C" }
4547
- }, Ps = /* @__PURE__ */ g("\u7F16\u8F91"), Rs = /* @__PURE__ */ g("\u6DFB\u52A0"), Ls = /* @__PURE__ */ g("\u5220\u9664"), Ms = { class: "card-header" };
4548
- function js(e, t) {
4549
- const l = ae, n = Ut, o = xe, s = ue, a = v("v-form"), c = le;
4546
+ }, Pa = /* @__PURE__ */ g("\u7F16\u8F91"), Ra = /* @__PURE__ */ g("\u6DFB\u52A0"), La = /* @__PURE__ */ g("\u5220\u9664"), Ma = { class: "card-header" };
4547
+ function ja(e, t) {
4548
+ const l = se, n = Ut, o = Ce, a = re, s = v("v-form"), c = le;
4550
4549
  return i(), m(c, {
4551
4550
  class: "tree-box",
4552
4551
  gutter: 20
4553
4552
  }, {
4554
4553
  default: r(() => [
4555
- u(s, {
4554
+ u(a, {
4556
4555
  span: 8,
4557
4556
  class: "tree-tree"
4558
4557
  }, {
4559
4558
  default: r(() => [
4560
4559
  u(o, { shadow: "never" }, {
4561
4560
  header: r(() => [
4562
- b("div", Is, [
4563
- As,
4561
+ b("div", Ia, [
4562
+ Aa,
4564
4563
  u(l, {
4565
4564
  type: "text",
4566
4565
  onClick: t[0] || (t[0] = () => e.appendNew())
4567
4566
  }, {
4568
4567
  default: r(() => [
4569
- Ts
4568
+ Ta
4570
4569
  ]),
4571
4570
  _: 1
4572
4571
  })
@@ -4585,8 +4584,8 @@ function js(e, t) {
4585
4584
  onNodeDragEnd: e.handleDragEnd
4586
4585
  }), {
4587
4586
  default: r(({ node: d, data: p }) => [
4588
- b("span", Fs, [
4589
- p[e.localTreeProps.props.label] ? (i(), h("span", Ds, B(p[e.localTreeProps.props.label]), 1)) : (i(), h("span", Os, "\u8BF7\u5728\u53F3\u4FA7\u8868\u5355\u4E2D\u4FEE\u6539 --> ")),
4587
+ b("span", Fa, [
4588
+ p[e.localTreeProps.props.label] ? (i(), h("span", Da, B(p[e.localTreeProps.props.label]), 1)) : (i(), h("span", Oa, "\u8BF7\u5728\u53F3\u4FA7\u8868\u5355\u4E2D\u4FEE\u6539 --> ")),
4590
4589
  b("span", null, [
4591
4590
  p[e.localTreeProps.props.label] ? (i(), m(l, {
4592
4591
  key: 0,
@@ -4595,10 +4594,10 @@ function js(e, t) {
4595
4594
  onClick: () => e.onclick(p)
4596
4595
  }, {
4597
4596
  default: r(() => [
4598
- Ps
4597
+ Pa
4599
4598
  ]),
4600
4599
  _: 2
4601
- }, 1032, ["onClick"])) : w("", !0),
4600
+ }, 1032, ["onClick"])) : E("", !0),
4602
4601
  e.canAppend(p, d) ? (i(), m(l, {
4603
4602
  key: 1,
4604
4603
  class: "button",
@@ -4606,10 +4605,10 @@ function js(e, t) {
4606
4605
  onClick: () => e.append(p, d)
4607
4606
  }, {
4608
4607
  default: r(() => [
4609
- Rs
4608
+ Ra
4610
4609
  ]),
4611
4610
  _: 2
4612
- }, 1032, ["onClick"])) : w("", !0),
4611
+ }, 1032, ["onClick"])) : E("", !0),
4613
4612
  p.children === void 0 || p.children.length === 0 ? (i(), m(l, {
4614
4613
  key: 2,
4615
4614
  class: "button",
@@ -4617,22 +4616,22 @@ function js(e, t) {
4617
4616
  onClick: () => e.remove(p)
4618
4617
  }, {
4619
4618
  default: r(() => [
4620
- Ls
4619
+ La
4621
4620
  ]),
4622
4621
  _: 2
4623
- }, 1032, ["onClick"])) : w("", !0)
4622
+ }, 1032, ["onClick"])) : E("", !0)
4624
4623
  ])
4625
4624
  ])
4626
4625
  ]),
4627
4626
  _: 1
4628
- }, 16, ["data", "allow-drag", "allow-drop", "onNodeDragEnd"])) : w("", !0)
4627
+ }, 16, ["data", "allow-drag", "allow-drop", "onNodeDragEnd"])) : E("", !0)
4629
4628
  ]),
4630
4629
  _: 1
4631
4630
  })
4632
4631
  ]),
4633
4632
  _: 1
4634
4633
  }),
4635
- u(s, {
4634
+ u(a, {
4636
4635
  span: 16,
4637
4636
  class: "tree-form"
4638
4637
  }, {
@@ -4642,19 +4641,19 @@ function js(e, t) {
4642
4641
  shadow: "never"
4643
4642
  }, {
4644
4643
  header: r(() => [
4645
- b("div", Ms, [
4644
+ b("div", Ma, [
4646
4645
  b("span", null, B(e.formType), 1)
4647
4646
  ])
4648
4647
  ]),
4649
4648
  default: r(() => [
4650
- (i(), m(a, q({
4649
+ (i(), m(s, q({
4651
4650
  key: e.formkey,
4652
4651
  modelValue: e.formData,
4653
4652
  "onUpdate:modelValue": t[1] || (t[1] = (d) => e.formData = d)
4654
4653
  }, e.formProps, { onSubmit: e.submit }), null, 16, ["modelValue", "onSubmit"]))
4655
4654
  ]),
4656
4655
  _: 1
4657
- })) : w("", !0)
4656
+ })) : E("", !0)
4658
4657
  ]),
4659
4658
  _: 1
4660
4659
  })
@@ -4662,16 +4661,16 @@ function js(e, t) {
4662
4661
  _: 1
4663
4662
  });
4664
4663
  }
4665
- const Ue = /* @__PURE__ */ C($s, [["render", js]]), Ns = {
4664
+ const Ue = /* @__PURE__ */ C($a, [["render", ja]]), Na = {
4666
4665
  __name: "tree",
4667
4666
  setup(e) {
4668
4667
  const t = (l, n) => {
4669
4668
  const o = Object.keys(Ue.props);
4670
- return Object.keys(l).forEach((s) => {
4671
- o.indexOf(s) === -1 && delete l[s];
4669
+ return Object.keys(l).forEach((a) => {
4670
+ o.indexOf(a) === -1 && delete l[a];
4672
4671
  }), l;
4673
4672
  };
4674
- return (l, n) => (i(), m(pe, { "schema-handler": t }, {
4673
+ return (l, n) => (i(), m(de, { "schema-handler": t }, {
4675
4674
  default: r((o) => [
4676
4675
  u(Ue, J(Z(o)), null, 16)
4677
4676
  ]),
@@ -4689,7 +4688,7 @@ const Ue = /* @__PURE__ */ C($s, [["render", js]]), Ns = {
4689
4688
  return i(), m(o);
4690
4689
  };
4691
4690
  }
4692
- }, Vs = {
4691
+ }, Va = {
4693
4692
  title: {
4694
4693
  text: ""
4695
4694
  },
@@ -4718,16 +4717,16 @@ const Ue = /* @__PURE__ */ C($s, [["render", js]]), Ns = {
4718
4717
  },
4719
4718
  series: []
4720
4719
  };
4721
- function qs(e, t, l) {
4720
+ function qa(e, t, l) {
4722
4721
  if (l.length === 0)
4723
4722
  return {};
4724
- let n = O({}, Vs);
4725
- if (n.title.text = e, $e(t)) {
4726
- const o = [], s = Object.keys(l[0]);
4727
- let a = s[0], c = s.filter((p, f) => f > 0), d = t;
4723
+ let n = O({}, Va);
4724
+ if (n.title.text = e, Be(t)) {
4725
+ const o = [], a = Object.keys(l[0]);
4726
+ let s = a[0], c = a.filter((p, f) => f > 0), d = t;
4728
4727
  if (t.indexOf(":") > -1) {
4729
4728
  const p = t.split(":"), f = p[1].split(",");
4730
- d = p[0], a = f[0], c = f.filter((_, A) => A > 0);
4729
+ d = p[0], s = f[0], c = f.filter((_, A) => A > 0);
4731
4730
  }
4732
4731
  c.forEach((p) => {
4733
4732
  const f = [];
@@ -4740,12 +4739,12 @@ function qs(e, t, l) {
4740
4739
  data: f
4741
4740
  }), n.legend.data.push(p);
4742
4741
  }), l.forEach((p) => {
4743
- o.push(p[a]);
4742
+ o.push(p[s]);
4744
4743
  }), n.xAxis.data = o;
4745
4744
  }
4746
- return Ie(t) && (n = O(n, t)), console.log(111, n), n;
4745
+ return $e(t) && (n = O(n, t)), console.log(111, n), n;
4747
4746
  }
4748
- const Us = N({
4747
+ const Ua = N({
4749
4748
  name: "NumberPanel",
4750
4749
  props: {
4751
4750
  dataList: {
@@ -4756,27 +4755,27 @@ const Us = N({
4756
4755
  data() {
4757
4756
  return {};
4758
4757
  }
4759
- }), Hs = { class: "number-panel-title" }, Gs = { class: "number" }, Js = { class: "name" };
4760
- function zs(e, t, l, n, o, s) {
4761
- return i(!0), h(k, null, $(e.dataList, (a, c) => (i(), h("span", { key: c }, [
4762
- b("div", Hs, [
4763
- (i(!0), h(k, null, $(Object.keys(a), (d, p) => (i(), h("div", {
4758
+ }), Ha = { class: "number-panel-title" }, Ga = { class: "number" }, Ja = { class: "name" };
4759
+ function za(e, t, l, n, o, a) {
4760
+ return i(!0), h(k, null, $(e.dataList, (s, c) => (i(), h("span", { key: c }, [
4761
+ b("div", Ha, [
4762
+ (i(!0), h(k, null, $(Object.keys(s), (d, p) => (i(), h("div", {
4764
4763
  key: p,
4765
4764
  class: "title-inner"
4766
4765
  }, [
4767
- b("p", Gs, B(a[d]), 1),
4768
- b("p", Js, B(d), 1)
4766
+ b("p", Ga, B(s[d]), 1),
4767
+ b("p", Ja, B(d), 1)
4769
4768
  ]))), 128))
4770
4769
  ])
4771
4770
  ]))), 128);
4772
4771
  }
4773
- const Ks = /* @__PURE__ */ C(Us, [["render", zs], ["__scopeId", "data-v-cc0d8293"]]), Ws = {
4772
+ const Ka = /* @__PURE__ */ C(Ua, [["render", za], ["__scopeId", "data-v-cc0d8293"]]), Wa = {
4774
4773
  components: {
4775
- Chart: sl,
4774
+ Chart: al,
4776
4775
  Md: bl,
4777
4776
  Json: Fe,
4778
- Table: re,
4779
- Number: Ks,
4777
+ Table: ie,
4778
+ Number: Ka,
4780
4779
  Html: ""
4781
4780
  },
4782
4781
  props: {
@@ -4797,7 +4796,7 @@ const Ks = /* @__PURE__ */ C(Us, [["render", zs], ["__scopeId", "data-v-cc0d8293
4797
4796
  };
4798
4797
  if (o === "chart")
4799
4798
  return {
4800
- options: qs(n.id, n.chart, n.data)
4799
+ options: qa(n.id, n.chart, n.data)
4801
4800
  };
4802
4801
  if (o === "md")
4803
4802
  return {
@@ -4806,11 +4805,11 @@ const Ks = /* @__PURE__ */ C(Us, [["render", zs], ["__scopeId", "data-v-cc0d8293
4806
4805
  if (o === "table") {
4807
4806
  if (!Yt(n.data))
4808
4807
  return { showPagination: !1 };
4809
- const s = [];
4810
- return n.data[0] && Object.keys(n.data[0]).forEach((a, c) => {
4811
- s.push({ field: a, label: a });
4808
+ const a = [];
4809
+ return n.data[0] && Object.keys(n.data[0]).forEach((s, c) => {
4810
+ a.push({ field: s, label: s });
4812
4811
  }), {
4813
- headers: s,
4812
+ headers: a,
4814
4813
  list: n.data,
4815
4814
  showPagination: !1
4816
4815
  };
@@ -4821,9 +4820,9 @@ const Ks = /* @__PURE__ */ C(Us, [["render", zs], ["__scopeId", "data-v-cc0d8293
4821
4820
  };
4822
4821
  }
4823
4822
  };
4824
- function Zs(e, t, l, n, o, s) {
4825
- const a = xe, c = St("resize");
4826
- return ye((i(), m(a, {
4823
+ function Za(e, t, l, n, o, a) {
4824
+ const s = Ce, c = St("resize");
4825
+ return _e((i(), m(s, {
4827
4826
  shadow: "never",
4828
4827
  class: "part"
4829
4828
  }, {
@@ -4835,7 +4834,7 @@ function Zs(e, t, l, n, o, s) {
4835
4834
  [c, !0]
4836
4835
  ]);
4837
4836
  }
4838
- const Qs = /* @__PURE__ */ C(Ws, [["render", Zs], ["__scopeId", "data-v-a5a65cc1"]]), Xs = /* @__PURE__ */ N({
4837
+ const Qa = /* @__PURE__ */ C(Wa, [["render", Za], ["__scopeId", "data-v-a5a65cc1"]]), Xa = /* @__PURE__ */ N({
4839
4838
  __name: "index",
4840
4839
  props: {
4841
4840
  filter: {
@@ -4868,7 +4867,7 @@ const Qs = /* @__PURE__ */ C(Ws, [["render", Zs], ["__scopeId", "data-v-a5a65cc1
4868
4867
  cancelButton: {
4869
4868
  text: "\u91CD\u7F6E"
4870
4869
  }
4871
- }, s = R(1), a = R(t.filter), c = R(t.dataPart), d = j(() => {
4870
+ }, a = R(1), s = R(t.filter), c = R(t.dataPart), d = j(() => {
4872
4871
  let f = l.params.id;
4873
4872
  if (!f) {
4874
4873
  const _ = l.path.split("/");
@@ -4877,14 +4876,14 @@ const Qs = /* @__PURE__ */ C(Ws, [["render", Zs], ["__scopeId", "data-v-a5a65cc1
4877
4876
  return "/focusbi_report/view/" + f;
4878
4877
  }), p = (f) => {
4879
4878
  Hl.get(d.value, { params: f }).then(({ data: _ }) => {
4880
- a.value = _.filter, c.value = _.dataPart, s.value++;
4879
+ s.value = _.filter, c.value = _.dataPart, a.value++;
4881
4880
  });
4882
4881
  };
4883
4882
  return (f, _) => {
4884
- const A = xe, I = ue, U = ve, V = le;
4883
+ const A = Ce, I = re, U = ye, V = le;
4885
4884
  return i(), m(V, null, {
4886
4885
  default: r(() => [
4887
- a.value.length > 0 ? (i(), m(I, {
4886
+ s.value.length > 0 ? (i(), m(I, {
4888
4887
  key: 0,
4889
4888
  span: 24
4890
4889
  }, {
@@ -4897,7 +4896,7 @@ const Qs = /* @__PURE__ */ C(Ws, [["render", Zs], ["__scopeId", "data-v-a5a65cc1
4897
4896
  u(T(W), {
4898
4897
  modelValue: n.value,
4899
4898
  "onUpdate:modelValue": _[0] || (_[0] = (x) => n.value = x),
4900
- "form-items": a.value,
4899
+ "form-items": s.value,
4901
4900
  options: o,
4902
4901
  onSubmit: p
4903
4902
  }, null, 8, ["modelValue", "form-items"])
@@ -4906,7 +4905,7 @@ const Qs = /* @__PURE__ */ C(Ws, [["render", Zs], ["__scopeId", "data-v-a5a65cc1
4906
4905
  })
4907
4906
  ]),
4908
4907
  _: 1
4909
- })) : w("", !0),
4908
+ })) : E("", !0),
4910
4909
  u(I, { span: 24 }, {
4911
4910
  default: r(() => [
4912
4911
  u(V, { gutter: 20 }, {
@@ -4925,8 +4924,8 @@ const Qs = /* @__PURE__ */ C(Ws, [["render", Zs], ["__scopeId", "data-v-a5a65cc1
4925
4924
  g(B(x.errMsg), 1)
4926
4925
  ]),
4927
4926
  _: 2
4928
- }, 1032, ["title"])) : (i(), m(Qs, {
4929
- key: s.value,
4927
+ }, 1032, ["title"])) : (i(), m(Qa, {
4928
+ key: a.value,
4930
4929
  option: x
4931
4930
  }, null, 8, ["option"]))
4932
4931
  ]),
@@ -4944,7 +4943,7 @@ const Qs = /* @__PURE__ */ C(Ws, [["render", Zs], ["__scopeId", "data-v-a5a65cc1
4944
4943
  };
4945
4944
  }
4946
4945
  });
4947
- const Ys = {
4946
+ const Ya = {
4948
4947
  __name: "report",
4949
4948
  setup(e) {
4950
4949
  const t = useRoute(), l = j(() => {
@@ -4955,9 +4954,9 @@ const Ys = {
4955
4954
  }
4956
4955
  return "/focusbi_report/view/" + n;
4957
4956
  });
4958
- return (n, o) => (i(), m(pe, { "schema-api": T(l) }, {
4959
- default: r((s) => [
4960
- u(Xs, J(Z(s)), null, 16)
4957
+ return (n, o) => (i(), m(de, { "schema-api": T(l) }, {
4958
+ default: r((a) => [
4959
+ u(Xa, J(Z(a)), null, 16)
4961
4960
  ]),
4962
4961
  _: 1
4963
4962
  }, 8, ["schema-api"]));
@@ -4967,7 +4966,7 @@ let X = {};
4967
4966
  function hi(e) {
4968
4967
  X = e;
4969
4968
  }
4970
- const ea = (e) => {
4969
+ const es = (e) => {
4971
4970
  const t = (l) => {
4972
4971
  const n = "./views/" + l + ".vue";
4973
4972
  return X && X[n] && X[n].default ? X[n].default : (console.error(`\u81EA\u5B9A\u4E49\u7EC4\u4EF6\u4E0D\u5B58\u5728 ${e.name} ${e.view}`), oe);
@@ -4983,26 +4982,26 @@ const ea = (e) => {
4983
4982
  case P.localComp:
4984
4983
  return t(e.view || "");
4985
4984
  case P.tree:
4986
- return Ns;
4985
+ return Na;
4987
4986
  case P.report:
4988
- return Ys;
4987
+ return Ya;
4989
4988
  case P.customSchema:
4990
4989
  return oe;
4991
4990
  }
4992
4991
  return oe;
4993
4992
  };
4994
- function ta(e) {
4993
+ function ts(e) {
4995
4994
  let t = e.path;
4996
4995
  return e.type === D.menu && e.page_type === P.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;
4997
4996
  }
4998
- function la(e) {
4997
+ function ls(e) {
4999
4998
  return (e.path + e.name).split("/").filter((t) => t).join("_");
5000
4999
  }
5001
5000
  const bt = (e) => {
5002
5001
  const t = e.type !== D.page, l = {
5003
- path: ta(e),
5004
- name: e.id + "_" + la(e) + "_" + e.path.replaceAll("/", "_"),
5005
- component: ea(e),
5002
+ path: ts(e),
5003
+ name: e.id + "_" + ls(e) + "_" + e.path.replaceAll("/", "_"),
5004
+ component: es(e),
5006
5005
  meta: {
5007
5006
  id: e.id,
5008
5007
  pageId: e.id,
@@ -5016,7 +5015,7 @@ const bt = (e) => {
5016
5015
  children: e.children ? e.children.map((n) => bt(n)) : []
5017
5016
  };
5018
5017
  if (e.page_type === P.entity) {
5019
- const n = e.path + "/list", o = e.path + "/form", s = e.path + "/:id", a = [{
5018
+ const n = e.path + "/list", o = e.path + "/form", a = e.path + "/:id", s = [{
5020
5019
  path: n,
5021
5020
  name: e.name + "\u5217\u8868" + e.id,
5022
5021
  component: ht,
@@ -5041,7 +5040,7 @@ const bt = (e) => {
5041
5040
  pageId: e.id
5042
5041
  }
5043
5042
  }, {
5044
- path: s,
5043
+ path: a,
5045
5044
  name: e.name + "\u7F16\u8F91" + e.id,
5046
5045
  component: Ee,
5047
5046
  meta: {
@@ -5053,7 +5052,7 @@ const bt = (e) => {
5053
5052
  pageId: e.id
5054
5053
  }
5055
5054
  }];
5056
- l.children = [...a, ...l.children];
5055
+ l.children = [...s, ...l.children];
5057
5056
  }
5058
5057
  if (l.children && l.children.length > 0) {
5059
5058
  let n = !0;
@@ -5062,16 +5061,16 @@ const bt = (e) => {
5062
5061
  }), l.meta && (l.meta.menuType = t ? D.dir : D.hidden), n) {
5063
5062
  l.meta && (l.meta.menuType = D.menu);
5064
5063
  let o = "/";
5065
- for (let s = 0; s < l.children.length; s++)
5066
- if (l.children[s].path.indexOf("/:") === -1) {
5067
- o = l.children[s].path;
5064
+ for (let a = 0; a < l.children.length; a++)
5065
+ if (l.children[a].path.indexOf("/:") === -1) {
5066
+ o = l.children[a].path;
5068
5067
  break;
5069
5068
  }
5070
5069
  l.redirect = o, l.path = "/" + e.id + "_DIR" + l.redirect.replaceAll("/", "_").toUpperCase();
5071
5070
  }
5072
5071
  }
5073
5072
  return l;
5074
- }, oa = (e) => {
5073
+ }, os = (e) => {
5075
5074
  const t = [];
5076
5075
  return e.forEach((l) => {
5077
5076
  const n = {
@@ -5084,47 +5083,47 @@ const bt = (e) => {
5084
5083
  }), t.push(n);
5085
5084
  }), t;
5086
5085
  };
5087
- function na(e) {
5086
+ function ns(e) {
5088
5087
  e.beforeEach(async (t, l, n) => {
5089
5088
  if (mt().indexOf(t.path) !== -1) {
5090
5089
  n();
5091
5090
  return;
5092
5091
  }
5093
- if (ys()) {
5092
+ if (ya()) {
5094
5093
  n();
5095
5094
  return;
5096
5095
  }
5097
- await E.dispatch("user/info");
5098
- const o = await E.dispatch("user/loadRemoteRoutes"), s = oa(o);
5099
- s.forEach((a) => {
5100
- a.routes.forEach((c) => {
5096
+ await w.dispatch("user/info");
5097
+ const o = await w.dispatch("user/loadRemoteRoutes"), a = os(o);
5098
+ a.forEach((s) => {
5099
+ s.routes.forEach((c) => {
5101
5100
  e.addRoute({
5102
5101
  path: "/",
5103
5102
  component: dt,
5104
5103
  children: [c]
5105
5104
  });
5106
5105
  });
5107
- }), e.addRoute({ name: "404", path: "/:pathMatch(.*)*", redirect: "/404", hidden: !0 }), E.commit("user/updateRemoteRouter", s), await e.replace(t), n();
5106
+ }), e.addRoute({ name: "404", path: "/:pathMatch(.*)*", redirect: "/404", hidden: !0 }), w.commit("user/updateRemoteRouter", a), await e.replace(t), n();
5108
5107
  });
5109
5108
  }
5110
- function sa(e) {
5109
+ function as(e) {
5111
5110
  e.beforeEach(async (t, l, n) => {
5112
5111
  var c;
5113
- const s = [E.state.settings.title || ""], a = t.matched.length;
5114
- for (let d = a; d > a - 3; d--) {
5112
+ const a = [w.state.settings.title || ""], s = t.matched.length;
5113
+ for (let d = s; d > s - 3; d--) {
5115
5114
  const p = t.matched[d - 1];
5116
- (c = p == null ? void 0 : p.meta) != null && c.title && s.push(p.meta.title + "");
5115
+ (c = p == null ? void 0 : p.meta) != null && c.title && a.push(p.meta.title + "");
5117
5116
  }
5118
- s.length > 1 && (document.title = s.reverse().join("-")), n();
5117
+ a.length > 1 && (document.title = a.reverse().join("-")), n();
5119
5118
  }), e.afterEach(async (t, l, n) => {
5120
- Object.keys(t.meta).length > 0 && await E.dispatch("app/setCurrentMeta", t.meta);
5119
+ Object.keys(t.meta).length > 0 && await w.dispatch("app/setCurrentMeta", t.meta);
5121
5120
  });
5122
5121
  }
5123
- function aa(e) {
5124
- gs(e), _s(e), na(e), sa(e);
5122
+ function ss(e) {
5123
+ ga(e), _a(e), ns(e), as(e);
5125
5124
  }
5126
- aa(te);
5127
- const ia = {
5125
+ ss(te);
5126
+ const is = {
5128
5127
  beforeMount(e, t) {
5129
5128
  e.clickOutsideEvent = function(l) {
5130
5129
  e === l.target || e.contains(l.target) || t.value(l, e);
@@ -5133,13 +5132,13 @@ const ia = {
5133
5132
  unmounted(e) {
5134
5133
  document.body.removeEventListener("click", e.clickOutsideEvent);
5135
5134
  }
5136
- }, G = fl(), ra = {
5135
+ }, G = fl(), rs = {
5137
5136
  mounted: (e, t) => {
5138
5137
  e !== null && (t.value, e.oncontextmenu = (l) => {
5139
5138
  l.preventDefault(), l.stopPropagation(), l.cancelBubble = !0, t.value && G.emit("right-click", { event: l, data: t.value });
5140
5139
  });
5141
5140
  }
5142
- }, ua = {
5141
+ }, us = {
5143
5142
  mounted(e) {
5144
5143
  }
5145
5144
  };
@@ -5149,7 +5148,7 @@ function He(e, t) {
5149
5148
  l += n[`offset${t}`], n = n.offsetParent;
5150
5149
  return l;
5151
5150
  }
5152
- const ca = {
5151
+ const cs = {
5153
5152
  mounted: (e, t) => {
5154
5153
  if (e === null || !t.value.dev)
5155
5154
  return;
@@ -5164,78 +5163,78 @@ const ca = {
5164
5163
  };
5165
5164
  const o = document.createElement("span");
5166
5165
  o.className = "dev-action-edit", o.title = "\u7F16\u8F91";
5167
- const s = document.createElement("i");
5168
- s.className = "iconfont ra-editor1", o.appendChild(s), o.onclick = (d) => {
5166
+ const a = document.createElement("i");
5167
+ a.className = "iconfont ra-editor1", o.appendChild(a), o.onclick = (d) => {
5169
5168
  G.emit("dev-action", { event: d, data: { type: "edit", devId: t.value.devId } });
5170
5169
  }, n.appendChild(o);
5171
- const a = document.createElement("span");
5172
- a.className = "dev-action-del", a.title = "\u5220\u9664";
5170
+ const s = document.createElement("span");
5171
+ s.className = "dev-action-del", s.title = "\u5220\u9664";
5173
5172
  const c = document.createElement("i");
5174
- c.className = "iconfont ra-cut", a.appendChild(c), a.onclick = (d) => {
5173
+ c.className = "iconfont ra-cut", s.appendChild(c), s.onclick = (d) => {
5175
5174
  G.emit("dev-action", { event: d, data: { type: "del", devId: t.value.devId } });
5176
- }, n.appendChild(a), l.insertBefore(n, l.firstChild);
5175
+ }, n.appendChild(s), l.insertBefore(n, l.firstChild);
5177
5176
  }
5178
- }, da = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5177
+ }, ds = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5179
5178
  __proto__: null,
5180
- outClick: ia,
5181
- rightClick: ra,
5182
- resize: ua,
5183
- devtool: ca
5179
+ outClick: is,
5180
+ rightClick: rs,
5181
+ resize: us,
5182
+ devtool: cs
5184
5183
  }, Symbol.toStringTag, { value: "Module" }));
5185
- let se;
5184
+ let ae;
5186
5185
  function bi(e) {
5187
- return e ? Pe(O(de.axios, e)) : se;
5186
+ return e ? Pe(O(ce.axios, e)) : ae;
5188
5187
  }
5189
5188
  function _i(e) {
5190
- const t = O(de, e), l = xt(_l), n = ya(t), o = t.plugins || [];
5191
- o.unshift(n), o.forEach((s) => {
5192
- _a(l, s);
5193
- }), t != null && t.mock && Bl(), se = Pe(t.axios), E.dispatch("setHttp", se).then(), E.dispatch("settings/updateSettings", e == null ? void 0 : e.settings).then(), l.config.globalProperties.$http = se, l.config.globalProperties.$router = te, window.App = l, window.OmsOptions = t, al(() => ({
5189
+ const t = O(ce, e), l = xt(_l), n = ys(t), o = t.plugins || [];
5190
+ o.unshift(n), o.forEach((a) => {
5191
+ _s(l, a);
5192
+ }), t != null && t.mock && Bl(), ae = Pe(t.axios), w.dispatch("setHttp", ae).then(), w.dispatch("settings/updateSettings", e == null ? void 0 : e.settings).then(), l.config.globalProperties.$http = ae, l.config.globalProperties.$router = te, window.App = l, window.OmsOptions = t, sl(() => ({
5194
5193
  "X-Token": Oe()
5195
5194
  })), te.isReady().then(() => l.mount("#app"));
5196
5195
  }
5197
- function pa(e, t = {}) {
5196
+ function ps(e, t = {}) {
5198
5197
  Object.keys(t).forEach((l) => {
5199
5198
  e.component(l, t[l]);
5200
5199
  });
5201
5200
  }
5202
- function ma(e = []) {
5201
+ function ms(e = []) {
5203
5202
  e.forEach((t) => {
5204
5203
  te.addRoute(t);
5205
- }), E.commit("user/setCustomRoutes", e);
5204
+ }), w.commit("user/setCustomRoutes", e);
5206
5205
  }
5207
- function fa(e, t) {
5206
+ function fs(e, t) {
5208
5207
  t.forEach((l) => {
5209
- Ie(l) && (l = [l]), e.use(...l);
5208
+ $e(l) && (l = [l]), e.use(...l);
5210
5209
  });
5211
5210
  }
5212
- function ha(e, t = {}) {
5211
+ function hs(e, t = {}) {
5213
5212
  Object.keys(t).forEach((l) => {
5214
5213
  e.directive(l, t[l]);
5215
5214
  });
5216
5215
  }
5217
- function ba(e = {}) {
5216
+ function bs(e = {}) {
5218
5217
  const t = ["app", "settings", "user"];
5219
5218
  Object.keys(e).forEach((l) => {
5220
5219
  if (t.indexOf(l) !== -1) {
5221
5220
  console.warn(`storeModule name [${l}] is use by base, please change it!`);
5222
5221
  return;
5223
5222
  }
5224
- E.registerModule(l, e[l]);
5223
+ w.registerModule(l, e[l]);
5225
5224
  });
5226
5225
  }
5227
- function _a(e, t) {
5228
- pa(e, t.components || {}), ma(t.routes || []), fa(e, t.use || []), ha(e, t.directives || {}), ba(t.storeModules || {}), nt(t.mockApis || []);
5226
+ function _s(e, t) {
5227
+ ps(e, t.components || {}), ms(t.routes || []), fs(e, t.use || []), hs(e, t.directives || {}), bs(t.storeModules || {}), nt(t.mockApis || []);
5229
5228
  }
5230
- function ya(e) {
5229
+ function ys(e) {
5231
5230
  var t;
5232
5231
  return {
5233
5232
  components: { VIcon: il },
5234
- directives: da,
5233
+ directives: ds,
5235
5234
  use: [
5236
- E,
5235
+ w,
5237
5236
  te,
5238
- [ll, { locale: Be, ...(t = e.settings) == null ? void 0 : t.ElementPlus }]
5237
+ [ll, { locale: xe, ...(t = e.settings) == null ? void 0 : t.ElementPlus }]
5239
5238
  ]
5240
5239
  };
5241
5240
  }
@@ -5248,15 +5247,15 @@ export {
5248
5247
  Ne as Message,
5249
5248
  Ve as MessageBox,
5250
5249
  P as PageType,
5251
- es as allSso,
5250
+ ea as allSso,
5252
5251
  _i as createAdmin,
5253
5252
  G as eventBus,
5254
5253
  Gl as getCmp,
5255
- se as http,
5254
+ ae as http,
5256
5255
  Pe as instance,
5257
5256
  hi as regViews,
5258
5257
  fi as setCmp,
5259
- oa as transRemoteModules,
5258
+ os as transRemoteModules,
5260
5259
  bi as useHttp
5261
5260
  };
5262
5261
  //# sourceMappingURL=index.es.js.map