@okiss/oms 0.0.97 → 0.0.99

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,30 +1,30 @@
1
- import { ref as T, watch as ue, computed as g, defineComponent as G, onBeforeMount as We, provide as xo, resolveComponent as M, createBlock as h, openBlock as r, createVNode as c, createTextVNode as I, withCtx as i, TransitionGroup as Eo, createElementBlock as v, Fragment as R, renderList as U, toDisplayString as A, normalizeClass as te, renderSlot as fe, createCommentVNode as $, mergeProps as X, toRefs as Io, unref as f, isRef as Qe, onMounted as Te, normalizeStyle as Co, createElementVNode as y, withKeys as bt, withModifiers as He, resolveDynamicComponent as Xe, Transition as Bt, normalizeProps as Z, guardReactiveProps as de, onUnmounted as To, resolveDirective as Oo, withDirectives as $o, getCurrentInstance as Bo, h as Ao, toRaw as Ro, createApp as Po } from "vue";
2
- import { normalizeTheme as he, applyDocumentTheme as Lo, dispatchThemeChange as Mo, addNewStyle as Do, addNewStyleTag as jo, queryParams as No, logGroup as Vo, compactObject as At, showEleByClassName as Rt, waterMarker as Uo, Cache as we, isExternal as yt, getQueryParam as Pt, createIFrame as qo, strVarReplace as re, obj2Param as Ho, isObject as ce, isString as Ze, effectDataTrans as Fo, isArray as Lt } from "@okiss/utils";
3
- import { defineStore as Oe, createPinia as Go } from "pinia";
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";
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
+ import { defineStore as Ce, createPinia as No } from "pinia";
4
4
  import oe from "js-cookie";
5
- import Mt from "element-plus/es/locale/lang/zh-cn";
6
- import Ko, { cloneDeep as E, merge as q, get as be, unset as Dt, isObject as zo } from "lodash";
7
- import Me from "mockjs";
8
- import Ye from "axios";
9
- import Jo, { ElMessageBox as jt, ElMessage as Nt, ElCol as Wo, ElRow as Qo, ElCard as Xo } from "element-plus";
5
+ import Ot from "element-plus/es/locale/lang/zh-cn";
6
+ import Vo, { cloneDeep as E, merge as q, get as me, unset as $t, isObject as Uo } from "lodash";
7
+ import Re from "mockjs";
8
+ import We from "axios";
9
+ import qo, { ElMessageBox as Bt, ElMessage as At, ElCol as Ho, ElRow as Fo, ElCard as Go } from "element-plus";
10
10
  import "element-plus/theme-chalk/src/index.scss";
11
11
  import "element-plus/theme-chalk/src/dark/css-vars.scss";
12
12
  import "dayjs/locale/zh-cn";
13
- import { useRoute as Q, useRouter as $e, onBeforeRouteLeave as Zo, createRouter as Yo, createWebHashHistory as en, onBeforeRouteUpdate as tn } from "vue-router";
14
- import { ElBreadcrumb as on, ElBreadcrumbItem as nn, ElContainer as ln, ElRow as ve, ElMain as sn, ElAside as an, ElForm as et, ElFormItem as tt, ElSelect as ot, ElOption as nt, ElDivider as Vt, ElButton as ye, ElCol as Be, ElDrawer as Ut, ElTooltip as qt, ElIcon as Ht, ElDropdown as rn, ElDropdownMenu as cn, ElDropdownItem as un, ElAvatar as dn, ElImage as pn, ElMenuItem as mn, ElSubMenu as fn, ElOptionGroup as hn, ElScrollbar as bn, ElMenu as yn, ElBacktop as _n, ElCard as Ae, ElInput as vn, ElAlert as lt, ElTree as gn } from "element-plus/es";
13
+ import { useRoute as Q, useRouter as Te, onBeforeRouteLeave as Ko, createRouter as zo, createWebHashHistory as Jo, onBeforeRouteUpdate as Wo } from "vue-router";
14
+ import { ElBreadcrumb as Qo, ElBreadcrumbItem as Xo, ElContainer as Zo, ElRow as _e, ElMain as Yo, ElAside as en, ElForm as Qe, ElFormItem as Xe, ElSelect as Ze, ElOption as Ye, ElDivider as Rt, ElButton as he, ElCol as Oe, ElDrawer as Pt, ElTooltip as Lt, ElIcon as Mt, ElDropdown as tn, ElAvatar as on, ElDropdownMenu as nn, ElDropdownItem as ln, ElImage as sn, ElMenuItem as an, ElSubMenu as rn, ElOptionGroup as cn, ElScrollbar as un, ElMenu as dn, ElBacktop as pn, ElCard as $e, ElInput as fn, ElAlert as et, ElTree as mn } from "element-plus/es";
15
15
  import "element-plus/es/components/base/style/css";
16
16
  import "element-plus/es/components/row/style/css";
17
17
  import "element-plus/es/components/drawer/style/css";
18
- import "element-plus/es/components/avatar/style/css";
19
18
  import "element-plus/es/components/dropdown/style/css";
20
19
  import "element-plus/es/components/dropdown-menu/style/css";
21
20
  import "element-plus/es/components/dropdown-item/style/css";
21
+ import "element-plus/es/components/avatar/style/css";
22
22
  import "element-plus/es/components/tooltip/style/css";
23
23
  import "element-plus/es/components/icon/style/css";
24
24
  import "element-plus/es/components/col/style/css";
25
25
  import "element-plus/es/components/breadcrumb/style/css";
26
26
  import "element-plus/es/components/breadcrumb-item/style/css";
27
- import * as kn from "path-to-regexp";
27
+ import * as hn from "path-to-regexp";
28
28
  import "element-plus/es/components/form/style/css";
29
29
  import "element-plus/es/components/form-item/style/css";
30
30
  import "element-plus/es/components/select/style/css";
@@ -34,11 +34,11 @@ import "element-plus/es/components/divider/style/css";
34
34
  import "element-plus/es/components/container/style/css";
35
35
  import "element-plus/es/components/aside/style/css";
36
36
  import "element-plus/es/components/main/style/css";
37
- import { JsonView as st, VBtn as at, VForm as ne, VTable as _e, VChart as wn, setUploadHeaderHandle as Sn, VIcon as xn } from "@okiss/vbtf";
37
+ import { JsonView as tt, VBtn as ot, VForm as ne, VTable as be, VChart as bn, setUploadHeaderHandle as yn, VIcon as _n } from "@okiss/vbtf";
38
38
  import "normalize.css/normalize.css";
39
39
  import "@okiss/vbtf/style.css";
40
- import En from "mitt";
41
- import { Moon as In, Sunny as Cn, Brush as Tn, InfoFilled as On } from "@element-plus/icons-vue";
40
+ import vn from "mitt";
41
+ import { Moon as gn, Sunny as kn, InfoFilled as Sn } from "@element-plus/icons-vue";
42
42
  import "element-plus/es/components/scrollbar/style/css";
43
43
  import "element-plus/es/components/menu/style/css";
44
44
  import "element-plus/es/components/image/style/css";
@@ -46,14 +46,14 @@ import "element-plus/es/components/sub-menu/style/css";
46
46
  import "element-plus/es/components/menu-item/style/css";
47
47
  import "element-plus/es/components/option-group/style/css";
48
48
  import "element-plus/es/components/backtop/style/css";
49
- import { useEventListener as $n } from "@vueuse/core";
49
+ import { useEventListener as wn } from "@vueuse/core";
50
50
  import "element-plus/es/components/alert/style/css";
51
51
  import "element-plus/es/components/card/style/css";
52
52
  import "element-plus/es/components/tree/style/css";
53
- import Bn from "vue3-markdown-it";
53
+ import xn from "vue3-markdown-it";
54
54
  import "element-plus/es/components/input/style/css";
55
- import An from "crypto-js";
56
- import Fe from "nprogress";
55
+ import En from "crypto-js";
56
+ import Ve from "nprogress";
57
57
  import "nprogress/nprogress.css";
58
58
  String.prototype.format || (String.prototype.format = function() {
59
59
  const e = arguments;
@@ -61,29 +61,29 @@ String.prototype.format || (String.prototype.format = function() {
61
61
  return typeof e[o] < "u" ? e[o] : t;
62
62
  });
63
63
  });
64
- const it = "oms:token";
65
- function ge() {
66
- return oe.get(it) || "";
64
+ const nt = "oms:token";
65
+ function ve() {
66
+ return oe.get(nt) || "";
67
67
  }
68
- function Rn(e) {
69
- const t = V(D), o = new Date((/* @__PURE__ */ new Date()).getTime() + (t.tokenExpire || 1440 * 60 * 1e3));
70
- return oe.set(it, e, { expires: o });
68
+ function In(e) {
69
+ const t = U(L), o = new Date((/* @__PURE__ */ new Date()).getTime() + (t.tokenExpire || 1440 * 60 * 1e3));
70
+ return oe.set(nt, e, { expires: o });
71
71
  }
72
- function Ft() {
73
- return oe.remove(it);
72
+ function Dt() {
73
+ return oe.remove(nt);
74
74
  }
75
- let Gt = null;
76
- function Pn(e) {
77
- Gt = e;
75
+ let jt = null;
76
+ function Cn(e) {
77
+ jt = e;
78
78
  }
79
- function De() {
80
- return Gt;
79
+ function Pe() {
80
+ return jt;
81
81
  }
82
- const Ln = {
82
+ const Tn = {
83
83
  baseURL: "/api",
84
84
  withCredentials: !0,
85
85
  cacheEnable: !0
86
- }, Kt = {
86
+ }, Nt = {
87
87
  title: "oms",
88
88
  fixedHeader: !1,
89
89
  sidebarLogo: !0,
@@ -97,7 +97,7 @@ const Ln = {
97
97
  ElementPlus: {
98
98
  size: "default",
99
99
  zIndex: 3e3,
100
- locale: Mt
100
+ locale: Ot
101
101
  },
102
102
  nav: [],
103
103
  whiteRoutes: ["/login"],
@@ -110,25 +110,24 @@ const Ln = {
110
110
  serviceOffLineNotice: "当前页面功能正在维护, 请稍后再试~~~",
111
111
  formMutex: !0,
112
112
  captcha: !0,
113
- themeMode: "light",
114
- aestheticMode: "default"
115
- }, Re = {
116
- axios: Ln,
117
- settings: Kt,
113
+ themeMode: "light"
114
+ }, Be = {
115
+ axios: Tn,
116
+ settings: Nt,
118
117
  plugins: [],
119
118
  mock: !1
120
- }, Mn = E(Kt), V = Oe("settings", {
121
- state: () => ({ ...Mn }),
119
+ }, On = E(Nt), U = Ce("settings", {
120
+ state: () => ({ ...On }),
122
121
  actions: {
123
122
  updateSettings(e) {
124
123
  q(this, e);
125
124
  }
126
125
  }
127
- }), _t = {
126
+ }), pt = {
128
127
  name: "",
129
128
  nickname: "",
130
129
  avatar: "",
131
- token: ge(),
130
+ token: ve(),
132
131
  customRouter: [],
133
132
  remoteRouter: [],
134
133
  menuRoutes: [],
@@ -138,27 +137,27 @@ const Ln = {
138
137
  path: "",
139
138
  env: "",
140
139
  expired: !1
141
- }, vt = (e) => typeof e.name == "string" ? e.name : e.path, N = Oe("user", {
142
- state: () => ({ ..._t }),
140
+ }, ft = (e) => typeof e.name == "string" ? e.name : e.path, j = Ce("user", {
141
+ state: () => ({ ...pt }),
143
142
  actions: {
144
143
  updateToken(e) {
145
- this.token = e, Rn(e);
144
+ this.token = e, In(e);
146
145
  },
147
146
  removeToken() {
148
- this.token = "", Ft();
147
+ this.token = "", Dt();
149
148
  },
150
149
  updateRemoteRouter(e) {
151
150
  this.remoteRouter = e, this.isLodeRemoteRoutes = !0;
152
151
  },
153
152
  setCustomRoutes(e) {
154
- const t = new Set(this.customRouter.map((n) => vt(n))), o = e.filter((n) => !t.has(vt(n)));
153
+ const t = new Set(this.customRouter.map((n) => ft(n))), o = e.filter((n) => !t.has(ft(n)));
155
154
  o.length && (this.customRouter = this.customRouter.concat(o));
156
155
  },
157
156
  updateState({ key: e, value: t }) {
158
157
  this[e] = t;
159
158
  },
160
159
  resetUser() {
161
- const e = { ..._t, token: ge() };
160
+ const e = { ...pt, token: ve() };
162
161
  Object.assign(this, e);
163
162
  },
164
163
  SET_EXPIRED() {
@@ -167,7 +166,7 @@ const Ln = {
167
166
  // async actions
168
167
  login(e) {
169
168
  return new Promise((t, o) => {
170
- const n = De();
169
+ const n = Pe();
171
170
  if (!n) {
172
171
  o("http client not init");
173
172
  return;
@@ -186,7 +185,7 @@ const Ln = {
186
185
  },
187
186
  info() {
188
187
  return new Promise((e, t) => {
189
- const o = De();
188
+ const o = Pe();
190
189
  if (!o) {
191
190
  t("http client not init");
192
191
  return;
@@ -198,13 +197,13 @@ const Ln = {
198
197
  const l = n.data?.role_ids || [];
199
198
  this.updateState({ key: "name", value: n.data?.name }), this.updateState({ key: "nickname", value: n.data?.nickname }), this.updateState({ key: "roleIds", value: l }), this.updateState({ key: "env", value: n.data?.env });
200
199
  const s = n.data?.website || {};
201
- V().updateSettings(s), !oe.get("username") && oe.set("username", n.data?.name), e(!0);
200
+ U().updateSettings(s), !oe.get("username") && oe.set("username", n.data?.name), e(!0);
202
201
  }).catch((n) => t(n));
203
202
  });
204
203
  },
205
204
  loadRemoteRoutes() {
206
205
  return new Promise((e, t) => {
207
- De()?.request({
206
+ Pe()?.request({
208
207
  url: "/user/routes",
209
208
  method: "get"
210
209
  }).then((n) => {
@@ -222,23 +221,23 @@ const Ln = {
222
221
  this.SET_EXPIRED();
223
222
  }
224
223
  }
225
- }), Ce = "sidebarStatus";
226
- function Dn() {
224
+ }), Ee = "sidebarStatus";
225
+ function $n() {
227
226
  if (typeof window > "u")
228
227
  return;
229
- const e = window.localStorage.getItem(Ce);
228
+ const e = window.localStorage.getItem(Ee);
230
229
  if (e !== null)
231
230
  return e === "1";
232
- const t = oe.get(Ce);
231
+ const t = oe.get(Ee);
233
232
  if (t !== void 0)
234
233
  return !!t;
235
234
  }
236
- function gt(e) {
237
- typeof window < "u" && window.localStorage.setItem(Ce, e ? "1" : "0"), oe.set(Ce, e ? "1" : "0");
235
+ function mt(e) {
236
+ typeof window < "u" && window.localStorage.setItem(Ee, e ? "1" : "0"), oe.set(Ee, e ? "1" : "0");
238
237
  }
239
- const jn = {
238
+ const Bn = {
240
239
  sidebar: {
241
- opened: Dn() ?? !0,
240
+ opened: $n() ?? !0,
242
241
  withoutAnimation: !1
243
242
  },
244
243
  device: "desktop",
@@ -246,14 +245,14 @@ const jn = {
246
245
  currentRouteMeta: {},
247
246
  builderSchema: {},
248
247
  baseURL: ""
249
- }, Y = Oe("app", {
250
- state: () => ({ ...jn }),
248
+ }, Y = Ce("app", {
249
+ state: () => ({ ...Bn }),
251
250
  actions: {
252
251
  TOGGLE_SIDEBAR() {
253
- this.sidebar.opened = !this.sidebar.opened, this.sidebar.withoutAnimation = !1, gt(this.sidebar.opened);
252
+ this.sidebar.opened = !this.sidebar.opened, this.sidebar.withoutAnimation = !1, mt(this.sidebar.opened);
254
253
  },
255
254
  CLOSE_SIDEBAR(e) {
256
- this.sidebar.opened = !1, gt(this.sidebar.opened), this.sidebar.withoutAnimation = e;
255
+ this.sidebar.opened = !1, mt(this.sidebar.opened), this.sidebar.withoutAnimation = e;
257
256
  },
258
257
  TOGGLE_DEVICE(e) {
259
258
  this.device = e;
@@ -293,11 +292,11 @@ const jn = {
293
292
  this.SET_BASE_API(e);
294
293
  }
295
294
  }
296
- }), Nn = {
295
+ }), An = {
297
296
  currentCellItem: {}
298
297
  // form/sub-form 当前单元格编辑数据
299
- }, xr = Oe("builderSchema", {
300
- state: () => ({ ...Nn }),
298
+ }, fr = Ce("builderSchema", {
299
+ state: () => ({ ...An }),
301
300
  actions: {
302
301
  SET_CURRENT_CELLITEM(e) {
303
302
  this.currentCellItem = e;
@@ -306,27 +305,27 @@ const jn = {
306
305
  this.SET_CURRENT_CELLITEM(e);
307
306
  }
308
307
  }
309
- }), D = Go();
310
- function Vn(e) {
311
- e.use(D);
308
+ }), L = No();
309
+ function Rn(e) {
310
+ e.use(L);
312
311
  }
313
- const zt = "oms-theme", Jt = T("light");
314
- let kt = !1, Se = null;
315
- function Un(e) {
316
- const t = he(e ?? void 0);
312
+ const Vt = "oms-theme", Ut = C("light");
313
+ let ht = !1, Se = null;
314
+ function Pn(e) {
315
+ const t = fe(e ?? void 0);
317
316
  if (typeof window > "u")
318
317
  return t;
319
- const o = window.localStorage?.getItem(zt);
318
+ const o = window.localStorage?.getItem(Vt);
320
319
  return o === "dark" || o === "light" ? o : e === "dark" || e === "light" ? e : window.matchMedia?.("(prefers-color-scheme: dark)").matches ? "dark" : "light";
321
320
  }
322
- function qn(e) {
323
- typeof window < "u" && window.localStorage?.setItem(zt, e);
321
+ function Ln(e) {
322
+ typeof window < "u" && window.localStorage?.setItem(Vt, e);
324
323
  }
325
- function je(e) {
326
- const t = he(e);
327
- Jt.value = t, Lo(t), Mo(t), qn(t);
324
+ function Le(e) {
325
+ const t = fe(e);
326
+ Ut.value = t, Oo(t), $o(t), Ln(t);
328
327
  }
329
- function Hn(e) {
328
+ function Mn(e) {
330
329
  if (typeof window > "u" || typeof window.matchMedia != "function") {
331
330
  Se = null;
332
331
  return;
@@ -339,25 +338,25 @@ function Hn(e) {
339
338
  typeof t.removeEventListener == "function" ? t.removeEventListener("change", o) : t.removeListener(o), Se = null;
340
339
  };
341
340
  }
342
- function Wt() {
343
- const e = V(), t = (s) => {
344
- const a = he(s);
345
- e.themeMode !== a ? e.updateSettings({ themeMode: a }) : je(a);
341
+ function qt() {
342
+ const e = U(), t = (s) => {
343
+ const a = fe(s);
344
+ e.themeMode !== a ? e.updateSettings({ themeMode: a }) : Le(a);
346
345
  };
347
- if (!kt) {
348
- kt = !0;
349
- const s = Un(e.themeMode);
350
- he(e.themeMode) !== s ? e.updateSettings({ themeMode: s }) : je(s), ue(
346
+ if (!ht) {
347
+ ht = !0;
348
+ const s = Pn(e.themeMode);
349
+ fe(e.themeMode) !== s ? e.updateSettings({ themeMode: s }) : Le(s), ye(
351
350
  () => e.themeMode,
352
351
  (a) => {
353
- je(he(a));
352
+ Le(fe(a));
354
353
  },
355
354
  { immediate: !0 }
356
- ), Se?.(), Hn((a) => {
355
+ ), Se?.(), Mn((a) => {
357
356
  t(a);
358
357
  });
359
358
  }
360
- const o = g(() => Jt.value), n = g(() => o.value === "dark");
359
+ const o = k(() => Ut.value), n = k(() => o.value === "dark");
361
360
  return {
362
361
  themeMode: o,
363
362
  isDark: n,
@@ -367,25 +366,25 @@ function Wt() {
367
366
  }
368
367
  };
369
368
  }
370
- const Fn = /* @__PURE__ */ G({
369
+ const Dn = /* @__PURE__ */ z({
371
370
  __name: "App",
372
371
  setup(e) {
373
- return Wt(), We(() => {
372
+ return qt(), Ge(() => {
374
373
  const t = document.getElementById("preloader");
375
- t !== null && (document.body.removeChild(t), document.getElementById("preloader")?.remove(), Do("test-icon", "//at.alicdn.com/t/font_2246548_zclaqxwmzq8.css"), jo(`.iconfont {
374
+ t !== null && (document.body.removeChild(t), document.getElementById("preloader")?.remove(), Bo("test-icon", "//at.alicdn.com/t/font_2246548_zclaqxwmzq8.css"), Ao(`.iconfont {
376
375
  font-size: 19px;
377
376
  font-style: normal;
378
377
  -webkit-font-smoothing: antialiased;
379
378
  font-family: iconfont !important;
380
379
  }`));
381
- }), window?.OmsOptions?.form?.vsPath && xo("vsPath", window?.OmsOptions?.form?.vsPath), (t, o) => {
382
- const n = M("router-view");
383
- return r(), h(n);
380
+ }), window?.OmsOptions?.form?.vsPath && _o("vsPath", window?.OmsOptions?.form?.vsPath), (t, o) => {
381
+ const n = P("router-view");
382
+ return i(), m(n);
384
383
  };
385
384
  }
386
385
  });
387
- var pe = /* @__PURE__ */ ((e) => (e.GET = "get", e.POST = "post", e.DELETE = "delete", e.FETCH = "fetch", e.OPTION = "option", e.PUT = "put", e))(pe || {});
388
- const Gn = [
386
+ var ue = /* @__PURE__ */ ((e) => (e.GET = "get", e.POST = "post", e.DELETE = "delete", e.FETCH = "fetch", e.OPTION = "option", e.PUT = "put", e))(ue || {});
387
+ const jn = [
389
388
  {
390
389
  type: "jump",
391
390
  text: "跳转",
@@ -442,9 +441,9 @@ const Gn = [
442
441
  }
443
442
  ];
444
443
  [
445
- ...Ko.cloneDeep(Gn)
444
+ ...Vo.cloneDeep(jn)
446
445
  ];
447
- const Kn = {
446
+ const Nn = {
448
447
  code: 0,
449
448
  data: {
450
449
  "list|0-100": [
@@ -465,9 +464,9 @@ const Kn = {
465
464
  "page|1-5": 2
466
465
  }
467
466
  }
468
- }, zn = { listMock: Kn }, Jn = [
467
+ }, Vn = { listMock: Nn }, Un = [
469
468
  {
470
- method: pe.POST,
469
+ method: ue.POST,
471
470
  url: "/login",
472
471
  response(e) {
473
472
  return {
@@ -480,7 +479,7 @@ const Kn = {
480
479
  }
481
480
  },
482
481
  {
483
- method: pe.GET,
482
+ method: ue.GET,
484
483
  url: "/user/info",
485
484
  response(e) {
486
485
  return {
@@ -494,7 +493,7 @@ const Kn = {
494
493
  },
495
494
  {
496
495
  url: "/user/routes",
497
- method: pe.GET,
496
+ method: ue.GET,
498
497
  response: (e) => ({
499
498
  code: 0,
500
499
  data: [
@@ -508,33 +507,33 @@ const Kn = {
508
507
  },
509
508
  {
510
509
  url: "/user/list",
511
- method: pe.GET,
512
- response: (e) => zn.listMock
510
+ method: ue.GET,
511
+ response: (e) => Vn.listMock
513
512
  }
514
- ], Wn = [
515
- ...Jn
516
- ], Ge = {};
517
- function Qt(e) {
513
+ ], qn = [
514
+ ...Un
515
+ ], Ue = {};
516
+ function Ht(e) {
518
517
  e.forEach((t) => {
519
- const o = Xt(t);
520
- Ge[`${t.method}::${o}`] = t;
518
+ const o = Ft(t);
519
+ Ue[`${t.method}::${o}`] = t;
521
520
  });
522
521
  }
523
- Qt(Wn);
524
- function Xt(e) {
525
- let t = e.url, o = e.baseURL || Re.axios?.baseURL;
522
+ Ht(qn);
523
+ function Ft(e) {
524
+ let t = e.url, o = e.baseURL || Be.axios?.baseURL;
526
525
  return o || (o = ""), typeof t == "string" ? (t = ("/" + o + t).split("/").filter((n) => n).join("/"), t += "(|\\?.*)$", new RegExp(t)) : t;
527
526
  }
528
- function Qn() {
529
- Object.keys(Ge).forEach((e) => {
530
- const t = Ge[e], o = Xt(t);
531
- Me.mock(o, t.method, function(n) {
532
- const { url: l, type: s, body: a } = n, u = No(l), d = a ? JSON.parse(a) : {}, m = t.response({ query: u, data: d }), p = Me.mock(m);
533
- return Vo(l, { type: s, query: u, data: d, response: p }), Me.mock(p);
527
+ function Hn() {
528
+ Object.keys(Ue).forEach((e) => {
529
+ const t = Ue[e], o = Ft(t);
530
+ Re.mock(o, t.method, function(n) {
531
+ const { url: l, type: s, body: a } = n, c = Ro(l), d = a ? JSON.parse(a) : {}, f = t.response({ query: c, data: d }), p = Re.mock(f);
532
+ return Po(l, { type: s, query: c, data: d, response: p }), Re.mock(p);
534
533
  });
535
534
  });
536
535
  }
537
- const Xn = Nt, wt = jt, Zn = Ye.CancelToken, xe = {
536
+ const Fn = At, bt = Bt, Gn = We.CancelToken, we = {
538
537
  taskList: {},
539
538
  cacheList: /* @__PURE__ */ new Map(),
540
539
  uniqueId(e) {
@@ -570,48 +569,48 @@ const Xn = Nt, wt = jt, Zn = Ye.CancelToken, xe = {
570
569
  const t = this.uniqueId(e);
571
570
  return this.cacheList.delete(t);
572
571
  }
573
- }, Yn = {
572
+ }, Kn = {
574
573
  onFulfilled: function(e) {
575
- return e.cacheEnable === !1 || (xe.pending(e) && xe.delTask(e), e.cancelToken = new Zn((t) => {
576
- xe.addTask(e, t);
574
+ return e.cacheEnable === !1 || (we.pending(e) && we.delTask(e), e.cancelToken = new Gn((t) => {
575
+ we.addTask(e, t);
577
576
  })), e;
578
577
  },
579
578
  onRejected(e) {
580
579
  return Promise.reject(e);
581
580
  }
582
- }, el = {
581
+ }, zn = {
583
582
  onFulfilled: function(e) {
584
- return e.config.cacheEnable === !1 || e.config.method === "get" && Object.keys(e.data).length > 0 && xe.addCache(e.config, e.data), e;
583
+ return e.config.cacheEnable === !1 || e.config.method === "get" && Object.keys(e.data).length > 0 && we.addCache(e.config, e.data), e;
585
584
  },
586
585
  onRejected(e) {
587
586
  return Promise.reject(e);
588
587
  }
589
- }, Zt = {};
590
- function Er(e, t) {
591
- Zt[e] = t;
588
+ }, Gt = {};
589
+ function mr(e, t) {
590
+ Gt[e] = t;
592
591
  }
593
- function tl(e) {
594
- return Zt[e];
592
+ function Jn(e) {
593
+ return Gt[e];
595
594
  }
596
- const ol = /* @__PURE__ */ G({
595
+ const Wn = /* @__PURE__ */ z({
597
596
  name: "Dashboard",
598
597
  setup() {
599
- const e = tl("dashboard");
598
+ const e = Jn("dashboard");
600
599
  if (e)
601
- return () => c("span", null, [c(e, null, null)]);
602
- const t = g(() => N().name);
603
- return () => c("div", {
600
+ return () => u("span", null, [u(e, null, null)]);
601
+ const t = k(() => j().name);
602
+ return () => u("div", {
604
603
  class: "dashboard-container"
605
- }, [c("div", {
604
+ }, [u("div", {
606
605
  class: "dashboard-text"
607
- }, [I("Hi "), t.value, I(" 😄")])]);
606
+ }, [T("Hi "), t.value, T(" 😄")])]);
608
607
  }
609
- }), L = (e, t) => {
608
+ }), R = (e, t) => {
610
609
  const o = e.__vccOpts || e;
611
610
  for (const [n, l] of t)
612
611
  o[n] = l;
613
612
  return o;
614
- }, nl = /* @__PURE__ */ L(ol, [["__scopeId", "data-v-85165680"]]), ll = {
613
+ }, Qn = /* @__PURE__ */ R(Wn, [["__scopeId", "data-v-85165680"]]), Xn = {
615
614
  data() {
616
615
  return {
617
616
  levelList: null
@@ -643,7 +642,7 @@ const ol = /* @__PURE__ */ G({
643
642
  },
644
643
  pathCompile(e) {
645
644
  const { params: t } = this.$route;
646
- return kn.compile(e)(t);
645
+ return hn.compile(e)(t);
647
646
  },
648
647
  handleLink(e) {
649
648
  const { redirect: t, path: o } = e;
@@ -654,27 +653,27 @@ const ol = /* @__PURE__ */ G({
654
653
  this.$router.push(this.pathCompile(o));
655
654
  }
656
655
  }
657
- }, sl = {
656
+ }, Zn = {
658
657
  key: 0,
659
658
  class: "no-redirect"
660
- }, al = ["onClick"];
661
- function il(e, t, o, n, l, s) {
662
- const a = nn, u = on;
663
- return r(), h(u, {
659
+ }, Yn = ["onClick"];
660
+ function el(e, t, o, n, l, s) {
661
+ const a = Xo, c = Qo;
662
+ return i(), m(c, {
664
663
  class: "app-breadcrumb",
665
664
  separator: "/"
666
665
  }, {
667
- default: i(() => [
668
- c(Eo, { name: "breadcrumb" }, {
669
- default: i(() => [
670
- (r(!0), v(R, null, U(l.levelList, (d, m) => (r(), h(a, {
666
+ default: r(() => [
667
+ u(vo, { name: "breadcrumb" }, {
668
+ default: r(() => [
669
+ (i(!0), v(A, null, V(l.levelList, (d, f) => (i(), m(a, {
671
670
  key: d.path
672
671
  }, {
673
- default: i(() => [
674
- d.path.indexOf("/DIR_") === 0 && d.redirect === void 0 || m === l.levelList.length - 1 ? (r(), v("span", sl, A(d.meta.title), 1)) : (r(), v("a", {
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", {
675
674
  key: 1,
676
675
  onClick: (p) => s.handleLink(d)
677
- }, A(d.meta.title), 9, al))
676
+ }, B(d.meta.title), 9, Yn))
678
677
  ]),
679
678
  _: 2
680
679
  }, 1024))), 128))
@@ -685,7 +684,7 @@ function il(e, t, o, n, l, s) {
685
684
  _: 1
686
685
  });
687
686
  }
688
- const rl = /* @__PURE__ */ L(ll, [["render", il], ["__scopeId", "data-v-fa74804e"]]), cl = {
687
+ const tl = /* @__PURE__ */ R(Xn, [["render", el], ["__scopeId", "data-v-fa74804e"]]), ol = {
689
688
  name: "Hamburger",
690
689
  props: {
691
690
  isActive: {
@@ -700,45 +699,45 @@ const rl = /* @__PURE__ */ L(ll, [["render", il], ["__scopeId", "data-v-fa74804e
700
699
  }
701
700
  }
702
701
  };
703
- function ul(e, t, o, n, l, s) {
704
- const a = M("v-icon");
705
- return r(), v("div", {
702
+ function nl(e, t, o, n, l, s) {
703
+ const a = P("v-icon");
704
+ return i(), v("div", {
706
705
  style: { padding: "0 15px" },
707
- onClick: t[0] || (t[0] = (...u) => s.toggleClick && s.toggleClick(...u))
706
+ onClick: t[0] || (t[0] = (...c) => s.toggleClick && s.toggleClick(...c))
708
707
  }, [
709
- c(a, {
708
+ u(a, {
710
709
  class: te({ "is-active": o.isActive }),
711
710
  name: "ra-leftalignment"
712
711
  }, null, 8, ["class"])
713
712
  ]);
714
713
  }
715
- const dl = /* @__PURE__ */ L(cl, [["render", ul]]), pl = {};
716
- function ml(e, t) {
717
- const o = ve, n = sn, l = an, s = ln;
718
- return r(), h(s, { style: { width: "100%", height: "100%" } }, {
719
- default: i(() => [
720
- c(o, { class: "aside" }, {
721
- default: i(() => [
722
- fe(e.$slots, "left-aside", {}, void 0, !0)
714
+ const ll = /* @__PURE__ */ R(ol, [["render", nl]]), sl = {};
715
+ function al(e, t) {
716
+ const o = _e, n = Yo, l = en, s = Zo;
717
+ return i(), m(s, { style: { width: "100%", height: "100%" } }, {
718
+ default: r(() => [
719
+ u(o, { class: "aside" }, {
720
+ default: r(() => [
721
+ pe(e.$slots, "left-aside", {}, void 0, !0)
723
722
  ]),
724
723
  _: 3
725
724
  }),
726
- c(n, {
725
+ u(n, {
727
726
  class: "main",
728
727
  style: { margin: "0 10px" }
729
728
  }, {
730
- default: i(() => [
731
- fe(e.$slots, "main", {}, void 0, !0)
729
+ default: r(() => [
730
+ pe(e.$slots, "main", {}, void 0, !0)
732
731
  ]),
733
732
  _: 3
734
733
  }),
735
- c(l, {
734
+ u(l, {
736
735
  class: "aside",
737
736
  width: "350px",
738
737
  style: { padding: "20px" }
739
738
  }, {
740
- default: i(() => [
741
- fe(e.$slots, "right-aside", {}, void 0, !0)
739
+ default: r(() => [
740
+ pe(e.$slots, "right-aside", {}, void 0, !0)
742
741
  ]),
743
742
  _: 3
744
743
  })
@@ -746,7 +745,7 @@ function ml(e, t) {
746
745
  _: 3
747
746
  });
748
747
  }
749
- const Yt = /* @__PURE__ */ L(pl, [["render", ml], ["__scopeId", "data-v-7c3d697b"]]), fl = {
748
+ const Kt = /* @__PURE__ */ R(sl, [["render", al], ["__scopeId", "data-v-7c3d697b"]]), il = {
750
749
  type: "input",
751
750
  name: "文本框",
752
751
  default: {
@@ -814,7 +813,7 @@ const Yt = /* @__PURE__ */ L(pl, [["render", ml], ["__scopeId", "data-v-7c3d697b
814
813
  }
815
814
  }
816
815
  ]
817
- }, hl = {
816
+ }, rl = {
818
817
  type: "number",
819
818
  name: "数字",
820
819
  default: {
@@ -856,7 +855,7 @@ const Yt = /* @__PURE__ */ L(pl, [["render", ml], ["__scopeId", "data-v-7c3d697b
856
855
  }
857
856
  }
858
857
  ]
859
- }, bl = {
858
+ }, cl = {
860
859
  type: "number-range",
861
860
  name: "数字区间",
862
861
  default: {
@@ -897,7 +896,7 @@ const Yt = /* @__PURE__ */ L(pl, [["render", ml], ["__scopeId", "data-v-7c3d697b
897
896
  }
898
897
  }
899
898
  ]
900
- }, yl = {
899
+ }, ul = {
901
900
  type: "select",
902
901
  name: "下拉框",
903
902
  default: {
@@ -1003,7 +1002,7 @@ const Yt = /* @__PURE__ */ L(pl, [["render", ml], ["__scopeId", "data-v-7c3d697b
1003
1002
  const t = E(e);
1004
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;
1005
1004
  }
1006
- }, _l = {
1005
+ }, dl = {
1007
1006
  type: "radio",
1008
1007
  name: "单选框",
1009
1008
  default: {
@@ -1049,7 +1048,7 @@ const Yt = /* @__PURE__ */ L(pl, [["render", ml], ["__scopeId", "data-v-7c3d697b
1049
1048
  label: "默认值"
1050
1049
  }
1051
1050
  ]
1052
- }, vl = {
1051
+ }, pl = {
1053
1052
  type: "switch",
1054
1053
  name: "开关",
1055
1054
  default: {
@@ -1105,7 +1104,7 @@ const Yt = /* @__PURE__ */ L(pl, [["render", ml], ["__scopeId", "data-v-7c3d697b
1105
1104
  }
1106
1105
  }
1107
1106
  ]
1108
- }, gl = {
1107
+ }, fl = {
1109
1108
  type: "code",
1110
1109
  name: "Code",
1111
1110
  default: {
@@ -1125,7 +1124,7 @@ const Yt = /* @__PURE__ */ L(pl, [["render", ml], ["__scopeId", "data-v-7c3d697b
1125
1124
  label: "字段key"
1126
1125
  }
1127
1126
  ]
1128
- }, kl = {
1127
+ }, ml = {
1129
1128
  type: "json",
1130
1129
  name: "json",
1131
1130
  default: {
@@ -1145,7 +1144,7 @@ const Yt = /* @__PURE__ */ L(pl, [["render", ml], ["__scopeId", "data-v-7c3d697b
1145
1144
  label: "字段key"
1146
1145
  }
1147
1146
  ]
1148
- }, wl = {
1147
+ }, hl = {
1149
1148
  type: "upload",
1150
1149
  name: "上传",
1151
1150
  default: {
@@ -1165,7 +1164,7 @@ const Yt = /* @__PURE__ */ L(pl, [["render", ml], ["__scopeId", "data-v-7c3d697b
1165
1164
  label: "字段key"
1166
1165
  }
1167
1166
  ]
1168
- }, Sl = {
1167
+ }, bl = {
1169
1168
  type: "template",
1170
1169
  name: "自定义组件",
1171
1170
  default: {
@@ -1185,7 +1184,7 @@ const Yt = /* @__PURE__ */ L(pl, [["render", ml], ["__scopeId", "data-v-7c3d697b
1185
1184
  label: "字段key"
1186
1185
  }
1187
1186
  ]
1188
- }, xl = {
1187
+ }, yl = {
1189
1188
  type: "icon-select",
1190
1189
  name: "图标选择器",
1191
1190
  default: {
@@ -1205,7 +1204,7 @@ const Yt = /* @__PURE__ */ L(pl, [["render", ml], ["__scopeId", "data-v-7c3d697b
1205
1204
  label: "字段key"
1206
1205
  }
1207
1206
  ]
1208
- }, El = {
1207
+ }, _l = {
1209
1208
  type: "sub-form",
1210
1209
  name: "子表单",
1211
1210
  default: {
@@ -1273,7 +1272,7 @@ const Yt = /* @__PURE__ */ L(pl, [["render", ml], ["__scopeId", "data-v-7c3d697b
1273
1272
  }
1274
1273
  }
1275
1274
  ]
1276
- }, Il = {
1275
+ }, vl = {
1277
1276
  type: "checkbox",
1278
1277
  name: "复选框",
1279
1278
  default: {
@@ -1319,24 +1318,24 @@ const Yt = /* @__PURE__ */ L(pl, [["render", ml], ["__scopeId", "data-v-7c3d697b
1319
1318
  }
1320
1319
  }
1321
1320
  ]
1322
- }, eo = {};
1321
+ }, zt = {};
1323
1322
  function H(e) {
1324
- eo[e.type] = e;
1323
+ zt[e.type] = e;
1325
1324
  }
1325
+ H(il);
1326
+ H(ul);
1327
+ H(rl);
1328
+ H(cl);
1329
+ H(pl);
1330
+ H(_l);
1331
+ H(dl);
1332
+ H(vl);
1326
1333
  H(fl);
1327
- H(yl);
1334
+ H(ml);
1328
1335
  H(hl);
1336
+ H(yl);
1329
1337
  H(bl);
1330
- H(vl);
1331
- H(El);
1332
- H(_l);
1333
- H(Il);
1334
- H(gl);
1335
- H(kl);
1336
- H(wl);
1337
- H(xl);
1338
- H(Sl);
1339
- const Ke = eo, Cl = {
1338
+ const qe = zt, gl = {
1340
1339
  options: {
1341
1340
  labelPosition: "top",
1342
1341
  submitButton: !1,
@@ -1434,15 +1433,15 @@ const Ke = eo, Cl = {
1434
1433
  }
1435
1434
  }
1436
1435
  ]
1437
- }, Ne = {
1436
+ }, Me = {
1438
1437
  labelPosition: "top",
1439
1438
  submitButton: !1,
1440
1439
  cancelButton: !1
1441
- }, rt = [];
1442
- Object.keys(Ke).forEach((e) => {
1443
- rt.push({ value: e, label: Ke[e].name });
1440
+ }, lt = [];
1441
+ Object.keys(qe).forEach((e) => {
1442
+ lt.push({ value: e, label: qe[e].name });
1444
1443
  });
1445
- const Tl = {
1444
+ const kl = {
1446
1445
  options: {
1447
1446
  submitButton: !1,
1448
1447
  cancelButton: !1
@@ -1463,7 +1462,7 @@ const Tl = {
1463
1462
  type: "select",
1464
1463
  field: "type",
1465
1464
  label: "类型",
1466
- options: E(rt)
1465
+ options: E(lt)
1467
1466
  },
1468
1467
  {
1469
1468
  type: "input",
@@ -1474,8 +1473,8 @@ const Tl = {
1474
1473
  }
1475
1474
  }
1476
1475
  ]
1477
- }, Ol = {
1478
- components: { DevLayout: Yt, VForm: ne, VButton: at, JsonView: st },
1476
+ }, Sl = {
1477
+ components: { DevLayout: Kt, VForm: ne, VButton: ot, JsonView: tt },
1479
1478
  props: {
1480
1479
  schema: {
1481
1480
  type: Object,
@@ -1486,8 +1485,8 @@ const Tl = {
1486
1485
  data() {
1487
1486
  return {
1488
1487
  sqlOptions: {},
1489
- sqlSchema: Tl,
1490
- baseSchema: Cl,
1488
+ sqlSchema: kl,
1489
+ baseSchema: gl,
1491
1490
  activeTab: "base",
1492
1491
  builderSchema: Object.assign(
1493
1492
  {},
@@ -1507,12 +1506,12 @@ const Tl = {
1507
1506
  ctrlSchema: {},
1508
1507
  ctrlName: "",
1509
1508
  activeIndex: void 0,
1510
- ctrlMap: Ke,
1509
+ ctrlMap: qe,
1511
1510
  activeIndexReg: /(formItems)?\[(\d+)\]/,
1512
1511
  tableStruct: "",
1513
1512
  activeName: "1",
1514
1513
  currentCtrlType: "input",
1515
- types: E(rt)
1514
+ types: E(lt)
1516
1515
  };
1517
1516
  },
1518
1517
  computed: {
@@ -1535,14 +1534,14 @@ const Tl = {
1535
1534
  deep: !0,
1536
1535
  // immediate: true,
1537
1536
  handler(e) {
1538
- const t = be(this.builderSchema, this.activeIndex);
1537
+ const t = me(this.builderSchema, this.activeIndex);
1539
1538
  if (!t)
1540
1539
  return;
1541
1540
  const o = t ? t.type : "", n = this.ctrlMap[o], l = n.trans ? n.trans(e) : e;
1542
1541
  if (l && Object.keys(l).length > 0) {
1543
1542
  if (l.type = o, this.activeIndex.indexOf("[") > -1) {
1544
- const [s, a, u] = this.activeIndex.match(/(\w+)\[(\d+)\]/);
1545
- this.builderSchema[a][u] = { ...l };
1543
+ const [s, a, c] = this.activeIndex.match(/(\w+)\[(\d+)\]/);
1544
+ this.builderSchema[a][c] = { ...l };
1546
1545
  } else
1547
1546
  this.builderSchema[this.activeIndex] = l;
1548
1547
  this.key++;
@@ -1553,10 +1552,10 @@ const Tl = {
1553
1552
  handler(e) {
1554
1553
  const t = this.ctrlMap[e];
1555
1554
  this.ctrlSchema = E({
1556
- options: E(Ne),
1555
+ options: E(Me),
1557
1556
  formItems: E(t.builder)
1558
1557
  });
1559
- const o = be(this.builderSchema, this.activeIndex);
1558
+ const o = me(this.builderSchema, this.activeIndex);
1560
1559
  this.ctrlOptions = E(o), this.ctrlOptions.type = e, this.ctrlKey++, this.key++;
1561
1560
  }
1562
1561
  }
@@ -1578,23 +1577,23 @@ const Tl = {
1578
1577
  this.ctrlOptions = {}, this.builderSchema[t] = this.builderSchema[t] || [];
1579
1578
  const o = this.ctrlMap[e];
1580
1579
  this.activeCtrl = o, this.builderSchema[t].push(E(o.default)), this.ctrlSchema = E({
1581
- options: E(Ne),
1580
+ options: E(Me),
1582
1581
  formItems: E(o.builder)
1583
1582
  }), this.ctrlKey++, this.key++, this.activeIndex = `${t}[${this.builderSchema[t].length - 1}]`, this.activeTab = "ctrl";
1584
1583
  },
1585
1584
  removeOne() {
1586
- Dt(this.builderSchema, this.activeIndex), this.builderSchema = E(At(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
1585
+ $t(this.builderSchema, this.activeIndex), this.builderSchema = E(Et(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
1587
1586
  },
1588
1587
  clicklabel() {
1589
1588
  const e = this.activeIndex;
1590
1589
  if (e.match(this.activeIndexReg)) {
1591
- const o = E(be(this.builderSchema, e)), n = o.type, l = this.ctrlMap[n];
1590
+ const o = E(me(this.builderSchema, e)), n = o.type, l = this.ctrlMap[n];
1592
1591
  if (!l) {
1593
1592
  this.$message({ type: "warning", message: "尚未支持该组件的UI编辑" });
1594
1593
  return;
1595
1594
  }
1596
1595
  this.currentCtrlType = n, this.ctrlOptions = o, this.ctrlSchema = E({
1597
- options: E(Ne),
1596
+ options: E(Me),
1598
1597
  formItems: E(l.builder)
1599
1598
  }), this.ctrlKey++;
1600
1599
  }
@@ -1610,50 +1609,50 @@ const Tl = {
1610
1609
  }
1611
1610
  }
1612
1611
  };
1613
- function $l(e, t, o, n, l, s) {
1614
- const a = M("v-form"), u = Vt, d = ye, m = M("JsonView"), p = M("VButton"), b = nt, w = ot, C = tt, O = et, x = M("dev-layout");
1615
- return r(), h(x, null, {
1616
- main: i(() => [
1617
- l.builderSchema.formItems ? (r(), h(a, X({
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");
1614
+ return i(), m(w, null, {
1615
+ main: r(() => [
1616
+ l.builderSchema.formItems ? (i(), m(a, X({
1618
1617
  ref: "form",
1619
1618
  key: l.key,
1620
1619
  dev: !0
1621
1620
  }, l.builderSchema), null, 16)) : $("", !0),
1622
- c(u),
1623
- c(d, {
1621
+ u(c),
1622
+ u(d, {
1624
1623
  type: "primary",
1625
1624
  onClick: s.saveSchema
1626
1625
  }, {
1627
- default: i(() => [...t[2] || (t[2] = [
1628
- I("保存页面配置", -1)
1626
+ default: r(() => [...t[2] || (t[2] = [
1627
+ T("保存页面配置", -1)
1629
1628
  ])]),
1630
1629
  _: 1
1631
1630
  }, 8, ["onClick"]),
1632
- t[3] || (t[3] = I("    ", -1)),
1633
- c(p, {
1631
+ t[3] || (t[3] = T("    ", -1)),
1632
+ u(p, {
1634
1633
  text: "PageSchema",
1635
1634
  type: "modal"
1636
1635
  }, {
1637
- default: i(() => [
1638
- c(m, { data: s.getSaveSchema }, null, 8, ["data"])
1636
+ default: r(() => [
1637
+ u(f, { data: s.getSaveSchema }, null, 8, ["data"])
1639
1638
  ]),
1640
1639
  _: 1
1641
1640
  })
1642
1641
  ]),
1643
- "right-aside": i(() => [
1644
- l.activeIndex ? (r(), h(O, { key: 0 }, {
1645
- default: i(() => [
1646
- c(C, { label: "控件类型" }, {
1647
- default: i(() => [
1648
- c(w, {
1642
+ "right-aside": r(() => [
1643
+ l.activeIndex ? (i(), m(O, { key: 0 }, {
1644
+ default: r(() => [
1645
+ u(I, { label: "控件类型" }, {
1646
+ default: r(() => [
1647
+ u(S, {
1649
1648
  modelValue: l.currentCtrlType,
1650
- "onUpdate:modelValue": t[0] || (t[0] = (_) => l.currentCtrlType = _)
1649
+ "onUpdate:modelValue": t[0] || (t[0] = (y) => l.currentCtrlType = y)
1651
1650
  }, {
1652
- default: i(() => [
1653
- (r(!0), v(R, null, U(l.types, (_, S) => (r(), h(b, {
1654
- key: S,
1655
- label: _.label,
1656
- value: _.value
1651
+ default: r(() => [
1652
+ (i(!0), v(A, null, V(l.types, (y, x) => (i(), m(b, {
1653
+ key: x,
1654
+ label: y.label,
1655
+ value: y.value
1657
1656
  }, null, 8, ["label", "value"]))), 128))
1658
1657
  ]),
1659
1658
  _: 1
@@ -1664,16 +1663,16 @@ function $l(e, t, o, n, l, s) {
1664
1663
  ]),
1665
1664
  _: 1
1666
1665
  })) : $("", !0),
1667
- (r(), h(a, X({
1666
+ (i(), m(a, X({
1668
1667
  key: l.ctrlKey,
1669
1668
  modelValue: l.ctrlOptions,
1670
- "onUpdate:modelValue": t[1] || (t[1] = (_) => l.ctrlOptions = _)
1669
+ "onUpdate:modelValue": t[1] || (t[1] = (y) => l.ctrlOptions = y)
1671
1670
  }, l.ctrlSchema), null, 16, ["modelValue"]))
1672
1671
  ]),
1673
1672
  _: 1
1674
1673
  });
1675
1674
  }
1676
- const Bl = /* @__PURE__ */ L(Ol, [["render", $l], ["__scopeId", "data-v-875f0171"]]), Al = {
1675
+ const xl = /* @__PURE__ */ R(Sl, [["render", wl], ["__scopeId", "data-v-875f0171"]]), El = {
1677
1676
  type: "input",
1678
1677
  name: "文本框",
1679
1678
  default: {
@@ -1721,7 +1720,7 @@ const Bl = /* @__PURE__ */ L(Ol, [["render", $l], ["__scopeId", "data-v-875f0171
1721
1720
  }
1722
1721
  }
1723
1722
  ]
1724
- }, Rl = {
1723
+ }, Il = {
1725
1724
  type: "select",
1726
1725
  name: "下拉框",
1727
1726
  default: {
@@ -1822,7 +1821,7 @@ const Bl = /* @__PURE__ */ L(Ol, [["render", $l], ["__scopeId", "data-v-875f0171
1822
1821
  const t = E(e);
1823
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;
1824
1823
  }
1825
- }, Pl = {
1824
+ }, Cl = {
1826
1825
  type: "date",
1827
1826
  name: "日期",
1828
1827
  default: {
@@ -1842,7 +1841,7 @@ const Bl = /* @__PURE__ */ L(Ol, [["render", $l], ["__scopeId", "data-v-875f0171
1842
1841
  label: "字段key"
1843
1842
  }
1844
1843
  ]
1845
- }, St = {
1844
+ }, yt = {
1846
1845
  options: {
1847
1846
  labelPosition: "top",
1848
1847
  submitButton: !1,
@@ -1867,11 +1866,11 @@ const Bl = /* @__PURE__ */ L(Ol, [["render", $l], ["__scopeId", "data-v-875f0171
1867
1866
  label: "导出按钮"
1868
1867
  }
1869
1868
  ]
1870
- }, Ve = {
1869
+ }, De = {
1871
1870
  labelPosition: "top",
1872
1871
  submitButton: !1,
1873
1872
  cancelButton: !1
1874
- }, Ll = {
1873
+ }, Tl = {
1875
1874
  type: "span",
1876
1875
  name: "文本",
1877
1876
  default: {
@@ -1901,7 +1900,7 @@ const Bl = /* @__PURE__ */ L(Ol, [["render", $l], ["__scopeId", "data-v-875f0171
1901
1900
  label: "排序"
1902
1901
  }
1903
1902
  ]
1904
- }, Ml = {
1903
+ }, Ol = {
1905
1904
  type: "enum",
1906
1905
  name: "标签",
1907
1906
  default: {
@@ -1952,7 +1951,7 @@ const Bl = /* @__PURE__ */ L(Ol, [["render", $l], ["__scopeId", "data-v-875f0171
1952
1951
  trans(e) {
1953
1952
  return e.options = e.options || [], e.label || (e.label = "表头"), e;
1954
1953
  }
1955
- }, Dl = {
1954
+ }, $l = {
1956
1955
  type: "html",
1957
1956
  name: "HTML",
1958
1957
  default: {
@@ -1977,7 +1976,7 @@ const Bl = /* @__PURE__ */ L(Ol, [["render", $l], ["__scopeId", "data-v-875f0171
1977
1976
  label: "提示"
1978
1977
  }
1979
1978
  ]
1980
- }, jl = {
1979
+ }, Bl = {
1981
1980
  type: "icon",
1982
1981
  name: "图标",
1983
1982
  default: {
@@ -2002,7 +2001,7 @@ const Bl = /* @__PURE__ */ L(Ol, [["render", $l], ["__scopeId", "data-v-875f0171
2002
2001
  label: "提示"
2003
2002
  }
2004
2003
  ]
2005
- }, Nl = {
2004
+ }, Al = {
2006
2005
  type: "image",
2007
2006
  name: "图片",
2008
2007
  default: {
@@ -2027,7 +2026,7 @@ const Bl = /* @__PURE__ */ L(Ol, [["render", $l], ["__scopeId", "data-v-875f0171
2027
2026
  label: "提示"
2028
2027
  }
2029
2028
  ]
2030
- }, Vl = {
2029
+ }, Rl = {
2031
2030
  type: "json",
2032
2031
  name: "JSON",
2033
2032
  default: {
@@ -2052,7 +2051,7 @@ const Bl = /* @__PURE__ */ L(Ol, [["render", $l], ["__scopeId", "data-v-875f0171
2052
2051
  label: "提示"
2053
2052
  }
2054
2053
  ]
2055
- }, Ul = {
2054
+ }, Pl = {
2056
2055
  type: "link",
2057
2056
  name: "链接",
2058
2057
  default: {
@@ -2077,7 +2076,7 @@ const Bl = /* @__PURE__ */ L(Ol, [["render", $l], ["__scopeId", "data-v-875f0171
2077
2076
  label: "提示"
2078
2077
  }
2079
2078
  ]
2080
- }, ql = {
2079
+ }, Ll = {
2081
2080
  type: "rich",
2082
2081
  name: "富文本",
2083
2082
  default: {
@@ -2102,7 +2101,7 @@ const Bl = /* @__PURE__ */ L(Ol, [["render", $l], ["__scopeId", "data-v-875f0171
2102
2101
  label: "提示"
2103
2102
  }
2104
2103
  ]
2105
- }, Hl = {
2104
+ }, Ml = {
2106
2105
  type: "tpl",
2107
2106
  name: "模板",
2108
2107
  default: {
@@ -2133,17 +2132,17 @@ const Bl = /* @__PURE__ */ L(Ol, [["render", $l], ["__scopeId", "data-v-875f0171
2133
2132
  info: "例如 <code>姓名: {name} 年龄:{age}</code>"
2134
2133
  }
2135
2134
  ]
2136
- }, Fl = {
2137
- span: Ll,
2138
- enum: Ml,
2139
- html: Dl,
2140
- icon: jl,
2141
- image: Nl,
2142
- json: Vl,
2143
- link: Ul,
2144
- rich: ql,
2145
- tpl: Hl
2146
- }, Gl = {
2135
+ }, 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 = {
2147
2146
  type: "jump",
2148
2147
  name: "跳转",
2149
2148
  default: {
@@ -2190,7 +2189,7 @@ const Bl = /* @__PURE__ */ L(Ol, [["render", $l], ["__scopeId", "data-v-875f0171
2190
2189
  }
2191
2190
  }
2192
2191
  ]
2193
- }, Kl = {
2192
+ }, Nl = {
2194
2193
  type: "api",
2195
2194
  name: "接口请求",
2196
2195
  default: {
@@ -2259,7 +2258,7 @@ const Bl = /* @__PURE__ */ L(Ol, [["render", $l], ["__scopeId", "data-v-875f0171
2259
2258
  }
2260
2259
  }
2261
2260
  ]
2262
- }, zl = {
2261
+ }, Vl = {
2263
2262
  type: "form",
2264
2263
  name: "弹框表单",
2265
2264
  default: {
@@ -2313,7 +2312,7 @@ const Bl = /* @__PURE__ */ L(Ol, [["render", $l], ["__scopeId", "data-v-875f0171
2313
2312
  label: "保存接口"
2314
2313
  }
2315
2314
  ]
2316
- }, Jl = {
2315
+ }, Ul = {
2317
2316
  type: "table",
2318
2317
  name: "弹框列表",
2319
2318
  default: {
@@ -2367,13 +2366,13 @@ const Bl = /* @__PURE__ */ L(Ol, [["render", $l], ["__scopeId", "data-v-875f0171
2367
2366
  label: "保存接口"
2368
2367
  }
2369
2368
  ]
2370
- }, Wl = {
2371
- jump: Gl,
2372
- api: Kl,
2373
- form: zl,
2374
- table: Jl
2375
- }, Ql = {
2376
- components: { JsonView: st, DevLayout: Yt, VTable: _e, VForm: ne, VButton: at },
2369
+ }, ql = {
2370
+ jump: jl,
2371
+ api: Nl,
2372
+ form: Vl,
2373
+ table: Ul
2374
+ }, Hl = {
2375
+ components: { JsonView: tt, DevLayout: Kt, VTable: be, VForm: ne, VButton: ot },
2377
2376
  props: {
2378
2377
  schema: {
2379
2378
  type: Object,
@@ -2382,13 +2381,13 @@ const Bl = /* @__PURE__ */ L(Ol, [["render", $l], ["__scopeId", "data-v-875f0171
2382
2381
  }
2383
2382
  },
2384
2383
  data() {
2385
- const e = Io(this.$props.schema);
2384
+ const e = go(this.$props.schema);
2386
2385
  return delete e.listApi, e.list = [{}], {
2387
- baseSchema: St,
2386
+ baseSchema: yt,
2388
2387
  activeTab: "base",
2389
2388
  builderSchema: Object.assign(
2390
2389
  {},
2391
- St,
2390
+ yt,
2392
2391
  e
2393
2392
  ),
2394
2393
  baseOptions: {},
@@ -2401,9 +2400,9 @@ const Bl = /* @__PURE__ */ L(Ol, [["render", $l], ["__scopeId", "data-v-875f0171
2401
2400
  ctrlName: "",
2402
2401
  activeIndex: void 0,
2403
2402
  ctrlMap: {
2404
- filter: { input: Al, select: Rl, date: Pl },
2405
- headers: Fl,
2406
- buttons: Wl
2403
+ filter: { input: El, select: Il, date: Cl },
2404
+ headers: Dl,
2405
+ buttons: ql
2407
2406
  },
2408
2407
  activeIndexReg: /(filter|headers|normalButton|batchButton|rowButton)?\[(\d+)\]/,
2409
2408
  currentCtrlType: "input"
@@ -2452,8 +2451,8 @@ const Bl = /* @__PURE__ */ L(Ol, [["render", $l], ["__scopeId", "data-v-875f0171
2452
2451
  const l = n.trans ? n.trans(e) : e;
2453
2452
  if (l && Object.keys(l).length > 0) {
2454
2453
  if (l.type = o, this.activeIndex.indexOf("[") > -1) {
2455
- const [s, a, u] = this.activeIndex.match(/(\w+)\[(\d+)\]/);
2456
- this.builderSchema[a][u] = { ...l };
2454
+ const [s, a, c] = this.activeIndex.match(/(\w+)\[(\d+)\]/);
2455
+ this.builderSchema[a][c] = { ...l };
2457
2456
  } else
2458
2457
  this.builderSchema[this.activeIndex] = l;
2459
2458
  this.key++;
@@ -2465,10 +2464,10 @@ const Bl = /* @__PURE__ */ L(Ol, [["render", $l], ["__scopeId", "data-v-875f0171
2465
2464
  handler(e) {
2466
2465
  const t = this.ctrlMap[this.activeBrick][e];
2467
2466
  this.ctrlSchema = E({
2468
- options: E(Ve),
2467
+ options: E(De),
2469
2468
  formItems: E(t.builder)
2470
2469
  });
2471
- const o = be(this.builderSchema, this.activeIndex);
2470
+ const o = me(this.builderSchema, this.activeIndex);
2472
2471
  o.type = e;
2473
2472
  const n = E(o);
2474
2473
  this.ctrlOptions = n, n.text && (this.ctrlOptions.text = n.text, this.ctrlOptions.props = n.props || {}), this.ctrlKey++, this.key++, this.updateBuilderSchema();
@@ -2513,17 +2512,17 @@ const Bl = /* @__PURE__ */ L(Ol, [["render", $l], ["__scopeId", "data-v-875f0171
2513
2512
  return;
2514
2513
  }
2515
2514
  this.activeCtrl = l[e], this.activeBrick = n, this.ctrlOptions = {}, this.builderSchema[t] = this.builderSchema[t] || [], this.builderSchema[t].push(E(l[e].default)), this.ctrlSchema = E({
2516
- options: E(Ve),
2515
+ options: E(De),
2517
2516
  formItems: E(l[e].builder)
2518
2517
  }), this.key++, this.ctrlKey++, this.activeIndex = `${t}[${this.builderSchema[t].length - 1}]`, this.activeTab = "ctrl";
2519
2518
  },
2520
2519
  removeOne() {
2521
- Dt(this.builderSchema, this.activeIndex), this.builderSchema = E(At(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
2520
+ $t(this.builderSchema, this.activeIndex), this.builderSchema = E(Et(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
2522
2521
  },
2523
2522
  clicklabel() {
2524
2523
  const e = this.activeIndex, t = e.match(this.activeIndexReg);
2525
2524
  if (t) {
2526
- const o = E(be(this.builderSchema, e));
2525
+ const o = E(me(this.builderSchema, e));
2527
2526
  this.activeBrick = t[1], ["normalButton", "batchButton", "rowButton"].indexOf(t[1]) > -1 && (this.activeBrick = "buttons");
2528
2527
  let n = this.builderSchema[t[1]][parseInt(t[2])].type;
2529
2528
  t[1] === "headers" && n === void 0 && (n = "span");
@@ -2533,7 +2532,7 @@ const Bl = /* @__PURE__ */ L(Ol, [["render", $l], ["__scopeId", "data-v-875f0171
2533
2532
  return;
2534
2533
  }
2535
2534
  this.ctrlOptions = o, this.currentCtrlType = n, this.ctrlSchema = E({
2536
- options: E(Ve),
2535
+ options: E(De),
2537
2536
  formItems: E(l.builder)
2538
2537
  }), this.ctrlKey++;
2539
2538
  }
@@ -2556,59 +2555,59 @@ const Bl = /* @__PURE__ */ L(Ol, [["render", $l], ["__scopeId", "data-v-875f0171
2556
2555
  }
2557
2556
  }
2558
2557
  };
2559
- function Xl(e, t, o, n, l, s) {
2560
- const a = Be, u = ye, d = ve, m = M("v-table"), p = Vt, b = ye, w = M("JsonView"), C = M("VButton"), O = nt, x = ot, _ = tt, S = et, K = M("v-form"), z = M("dev-layout");
2561
- return r(), h(z, null, {
2562
- "left-aside": i(() => [
2563
- c(d, { style: { width: "200px" } }, {
2564
- default: i(() => [
2565
- c(d, null, {
2566
- default: i(() => [
2567
- c(a, {
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");
2560
+ return i(), m(G, null, {
2561
+ "left-aside": r(() => [
2562
+ u(d, { style: { width: "200px" } }, {
2563
+ default: r(() => [
2564
+ u(d, null, {
2565
+ default: r(() => [
2566
+ u(a, {
2568
2567
  class: "title",
2569
2568
  "data-id": 22222
2570
2569
  }, {
2571
- default: i(() => [...t[5] || (t[5] = [
2572
- I("添加搜索条件", -1)
2570
+ default: r(() => [...t[5] || (t[5] = [
2571
+ T("添加搜索条件", -1)
2573
2572
  ])]),
2574
2573
  _: 1
2575
2574
  }),
2576
- c(a, { class: "ctrl" }, {
2577
- default: i(() => [
2578
- c(u, {
2575
+ u(a, { class: "ctrl" }, {
2576
+ default: r(() => [
2577
+ u(c, {
2579
2578
  class: "ctrl-btn",
2580
- onClick: t[0] || (t[0] = (k) => s.pushFilter("input"))
2579
+ onClick: t[0] || (t[0] = (g) => s.pushFilter("input"))
2581
2580
  }, {
2582
- default: i(() => [...t[6] || (t[6] = [
2583
- I("文本框", -1)
2581
+ default: r(() => [...t[6] || (t[6] = [
2582
+ T("文本框", -1)
2584
2583
  ])]),
2585
2584
  _: 1
2586
2585
  })
2587
2586
  ]),
2588
2587
  _: 1
2589
2588
  }),
2590
- c(a, { class: "ctrl" }, {
2591
- default: i(() => [
2592
- c(u, {
2589
+ u(a, { class: "ctrl" }, {
2590
+ default: r(() => [
2591
+ u(c, {
2593
2592
  class: "ctrl-btn",
2594
- onClick: t[1] || (t[1] = (k) => s.pushFilter("select"))
2593
+ onClick: t[1] || (t[1] = (g) => s.pushFilter("select"))
2595
2594
  }, {
2596
- default: i(() => [...t[7] || (t[7] = [
2597
- I("下拉框", -1)
2595
+ default: r(() => [...t[7] || (t[7] = [
2596
+ T("下拉框", -1)
2598
2597
  ])]),
2599
2598
  _: 1
2600
2599
  })
2601
2600
  ]),
2602
2601
  _: 1
2603
2602
  }),
2604
- c(a, { class: "ctrl" }, {
2605
- default: i(() => [
2606
- c(u, {
2603
+ u(a, { class: "ctrl" }, {
2604
+ default: r(() => [
2605
+ u(c, {
2607
2606
  class: "ctrl-btn",
2608
- onClick: t[2] || (t[2] = (k) => s.pushFilter("date"))
2607
+ onClick: t[2] || (t[2] = (g) => s.pushFilter("date"))
2609
2608
  }, {
2610
- default: i(() => [...t[8] || (t[8] = [
2611
- I("日期", -1)
2609
+ default: r(() => [...t[8] || (t[8] = [
2610
+ T("日期", -1)
2612
2611
  ])]),
2613
2612
  _: 1
2614
2613
  })
@@ -2618,25 +2617,25 @@ function Xl(e, t, o, n, l, s) {
2618
2617
  ]),
2619
2618
  _: 1
2620
2619
  }),
2621
- c(d, null, {
2622
- default: i(() => [
2623
- c(a, { class: "title" }, {
2624
- default: i(() => [...t[9] || (t[9] = [
2625
- I("添加列表项", -1)
2620
+ u(d, null, {
2621
+ default: r(() => [
2622
+ u(a, { class: "title" }, {
2623
+ default: r(() => [...t[9] || (t[9] = [
2624
+ T("添加列表项", -1)
2626
2625
  ])]),
2627
2626
  _: 1
2628
2627
  }),
2629
- (r(!0), v(R, null, U(Object.keys(l.ctrlMap.headers), (k, P) => (r(), h(a, {
2630
- key: `column-${P}`,
2628
+ (i(!0), v(A, null, V(Object.keys(l.ctrlMap.headers), (g, M) => (i(), m(a, {
2629
+ key: `column-${M}`,
2631
2630
  class: "ctrl"
2632
2631
  }, {
2633
- default: i(() => [
2634
- c(u, {
2632
+ default: r(() => [
2633
+ u(c, {
2635
2634
  class: "ctrl-btn",
2636
- onClick: (W) => s.pushHeaders(l.ctrlMap.headers[k].type)
2635
+ onClick: (ee) => s.pushHeaders(l.ctrlMap.headers[g].type)
2637
2636
  }, {
2638
- default: i(() => [
2639
- I(A(l.ctrlMap.headers[k].name), 1)
2637
+ default: r(() => [
2638
+ T(B(l.ctrlMap.headers[g].name), 1)
2640
2639
  ]),
2641
2640
  _: 2
2642
2641
  }, 1032, ["onClick"])
@@ -2646,25 +2645,25 @@ function Xl(e, t, o, n, l, s) {
2646
2645
  ]),
2647
2646
  _: 1
2648
2647
  }),
2649
- c(d, null, {
2650
- default: i(() => [
2651
- c(a, { class: "title" }, {
2652
- default: i(() => [...t[10] || (t[10] = [
2653
- I("添加行按钮", -1)
2648
+ u(d, null, {
2649
+ default: r(() => [
2650
+ u(a, { class: "title" }, {
2651
+ default: r(() => [...t[10] || (t[10] = [
2652
+ T("添加行按钮", -1)
2654
2653
  ])]),
2655
2654
  _: 1
2656
2655
  }),
2657
- (r(!0), v(R, null, U(Object.keys(l.ctrlMap.buttons), (k, P) => (r(), h(a, {
2658
- key: `column-${P}`,
2656
+ (i(!0), v(A, null, V(Object.keys(l.ctrlMap.buttons), (g, M) => (i(), m(a, {
2657
+ key: `column-${M}`,
2659
2658
  class: "ctrl"
2660
2659
  }, {
2661
- default: i(() => [
2662
- c(u, {
2660
+ default: r(() => [
2661
+ u(c, {
2663
2662
  class: "ctrl-btn",
2664
- onClick: (W) => s.pushRowButton(l.ctrlMap.buttons[k].type)
2663
+ onClick: (ee) => s.pushRowButton(l.ctrlMap.buttons[g].type)
2665
2664
  }, {
2666
- default: i(() => [
2667
- I(A(l.ctrlMap.buttons[k].name), 1)
2665
+ default: r(() => [
2666
+ T(B(l.ctrlMap.buttons[g].name), 1)
2668
2667
  ]),
2669
2668
  _: 2
2670
2669
  }, 1032, ["onClick"])
@@ -2674,36 +2673,36 @@ function Xl(e, t, o, n, l, s) {
2674
2673
  ]),
2675
2674
  _: 1
2676
2675
  }),
2677
- c(d, null, {
2678
- default: i(() => [
2679
- c(a, { class: "title" }, {
2680
- default: i(() => [...t[11] || (t[11] = [
2681
- I("添加常规按钮", -1)
2676
+ u(d, null, {
2677
+ default: r(() => [
2678
+ u(a, { class: "title" }, {
2679
+ default: r(() => [...t[11] || (t[11] = [
2680
+ T("添加常规按钮", -1)
2682
2681
  ])]),
2683
2682
  _: 1
2684
2683
  }),
2685
- (r(!0), v(R, null, U(Object.keys(l.ctrlMap.buttons), (k, P) => (r(), h(a, {
2686
- key: `column-${P}`,
2684
+ (i(!0), v(A, null, V(Object.keys(l.ctrlMap.buttons), (g, M) => (i(), m(a, {
2685
+ key: `column-${M}`,
2687
2686
  class: "ctrl"
2688
2687
  }, {
2689
- default: i(() => [
2690
- c(u, {
2688
+ default: r(() => [
2689
+ u(c, {
2691
2690
  class: "ctrl-btn",
2692
- onClick: (W) => s.pushNormalButton(l.ctrlMap.buttons[k].type)
2691
+ onClick: (ee) => s.pushNormalButton(l.ctrlMap.buttons[g].type)
2693
2692
  }, {
2694
- default: i(() => [
2695
- I(A(l.ctrlMap.buttons[k].name), 1)
2693
+ default: r(() => [
2694
+ T(B(l.ctrlMap.buttons[g].name), 1)
2696
2695
  ]),
2697
2696
  _: 2
2698
2697
  }, 1032, ["onClick"])
2699
2698
  ]),
2700
2699
  _: 2
2701
2700
  }, 1024))), 128)),
2702
- c(a, { class: "ctrl" }, {
2703
- default: i(() => [
2704
- c(u, { class: "ctrl-btn" }, {
2705
- default: i(() => [...t[12] || (t[12] = [
2706
- I("按钮组", -1)
2701
+ u(a, { class: "ctrl" }, {
2702
+ default: r(() => [
2703
+ u(c, { class: "ctrl-btn" }, {
2704
+ default: r(() => [...t[12] || (t[12] = [
2705
+ T("按钮组", -1)
2707
2706
  ])]),
2708
2707
  _: 1
2709
2708
  })
@@ -2713,36 +2712,36 @@ function Xl(e, t, o, n, l, s) {
2713
2712
  ]),
2714
2713
  _: 1
2715
2714
  }),
2716
- c(d, null, {
2717
- default: i(() => [
2718
- c(a, { class: "title" }, {
2719
- default: i(() => [...t[13] || (t[13] = [
2720
- I("添加批量按钮", -1)
2715
+ u(d, null, {
2716
+ default: r(() => [
2717
+ u(a, { class: "title" }, {
2718
+ default: r(() => [...t[13] || (t[13] = [
2719
+ T("添加批量按钮", -1)
2721
2720
  ])]),
2722
2721
  _: 1
2723
2722
  }),
2724
- (r(!0), v(R, null, U(Object.keys(l.ctrlMap.buttons), (k, P) => (r(), h(a, {
2725
- key: `column-${P}`,
2723
+ (i(!0), v(A, null, V(Object.keys(l.ctrlMap.buttons), (g, M) => (i(), m(a, {
2724
+ key: `column-${M}`,
2726
2725
  class: "ctrl"
2727
2726
  }, {
2728
- default: i(() => [
2729
- c(u, {
2727
+ default: r(() => [
2728
+ u(c, {
2730
2729
  class: "ctrl-btn",
2731
- onClick: (W) => s.pushBatchButton(l.ctrlMap.buttons[k].type)
2730
+ onClick: (ee) => s.pushBatchButton(l.ctrlMap.buttons[g].type)
2732
2731
  }, {
2733
- default: i(() => [
2734
- I(A(l.ctrlMap.buttons[k].name), 1)
2732
+ default: r(() => [
2733
+ T(B(l.ctrlMap.buttons[g].name), 1)
2735
2734
  ]),
2736
2735
  _: 2
2737
2736
  }, 1032, ["onClick"])
2738
2737
  ]),
2739
2738
  _: 2
2740
2739
  }, 1024))), 128)),
2741
- c(a, { class: "ctrl" }, {
2742
- default: i(() => [
2743
- c(u, { class: "ctrl-btn" }, {
2744
- default: i(() => [...t[14] || (t[14] = [
2745
- I("按钮组", -1)
2740
+ u(a, { class: "ctrl" }, {
2741
+ default: r(() => [
2742
+ u(c, { class: "ctrl-btn" }, {
2743
+ default: r(() => [...t[14] || (t[14] = [
2744
+ T("按钮组", -1)
2746
2745
  ])]),
2747
2746
  _: 1
2748
2747
  })
@@ -2756,47 +2755,47 @@ function Xl(e, t, o, n, l, s) {
2756
2755
  _: 1
2757
2756
  })
2758
2757
  ]),
2759
- main: i(() => [
2760
- (r(), h(m, X({
2758
+ main: r(() => [
2759
+ (i(), m(f, X({
2761
2760
  ref: "table",
2762
2761
  key: l.key,
2763
2762
  dev: !0
2764
2763
  }, l.builderSchema), null, 16)),
2765
- c(p),
2766
- c(b, {
2764
+ u(p),
2765
+ u(b, {
2767
2766
  type: "primary",
2768
2767
  onClick: s.saveSchema
2769
2768
  }, {
2770
- default: i(() => [...t[15] || (t[15] = [
2771
- I("保存页面配置", -1)
2769
+ default: r(() => [...t[15] || (t[15] = [
2770
+ T("保存页面配置", -1)
2772
2771
  ])]),
2773
2772
  _: 1
2774
2773
  }, 8, ["onClick"]),
2775
- t[16] || (t[16] = I("    ", -1)),
2776
- c(C, {
2774
+ t[16] || (t[16] = T("    ", -1)),
2775
+ u(I, {
2777
2776
  text: "PageSchema",
2778
2777
  type: "modal"
2779
2778
  }, {
2780
- default: i(() => [
2781
- c(w, { data: s.getSaveSchema }, null, 8, ["data"])
2779
+ default: r(() => [
2780
+ u(S, { data: s.getSaveSchema }, null, 8, ["data"])
2782
2781
  ]),
2783
2782
  _: 1
2784
2783
  })
2785
2784
  ]),
2786
- "right-aside": i(() => [
2787
- l.activeIndex ? (r(), h(S, { key: 0 }, {
2788
- default: i(() => [
2789
- c(_, { label: "控件类型" }, {
2790
- default: i(() => [
2791
- c(x, {
2785
+ "right-aside": r(() => [
2786
+ l.activeIndex ? (i(), m(x, { key: 0 }, {
2787
+ default: r(() => [
2788
+ u(y, { label: "控件类型" }, {
2789
+ default: r(() => [
2790
+ u(w, {
2792
2791
  modelValue: l.currentCtrlType,
2793
- "onUpdate:modelValue": t[3] || (t[3] = (k) => l.currentCtrlType = k)
2792
+ "onUpdate:modelValue": t[3] || (t[3] = (g) => l.currentCtrlType = g)
2794
2793
  }, {
2795
- default: i(() => [
2796
- (r(!0), v(R, null, U(s.types, (k, P) => (r(), h(O, {
2797
- key: P,
2798
- label: k.label,
2799
- value: k.value
2794
+ default: r(() => [
2795
+ (i(!0), v(A, null, V(s.types, (g, M) => (i(), m(O, {
2796
+ key: M,
2797
+ label: g.label,
2798
+ value: g.value
2800
2799
  }, null, 8, ["label", "value"]))), 128))
2801
2800
  ]),
2802
2801
  _: 1
@@ -2807,46 +2806,46 @@ function Xl(e, t, o, n, l, s) {
2807
2806
  ]),
2808
2807
  _: 1
2809
2808
  })) : $("", !0),
2810
- (r(), h(K, X({
2809
+ (i(), m(F, X({
2811
2810
  key: l.ctrlKey,
2812
2811
  modelValue: l.ctrlOptions,
2813
- "onUpdate:modelValue": t[4] || (t[4] = (k) => l.ctrlOptions = k)
2812
+ "onUpdate:modelValue": t[4] || (t[4] = (g) => l.ctrlOptions = g)
2814
2813
  }, l.ctrlSchema), null, 16, ["modelValue"]))
2815
2814
  ]),
2816
2815
  _: 1
2817
2816
  });
2818
2817
  }
2819
- const Zl = /* @__PURE__ */ L(Ql, [["render", Xl], ["__scopeId", "data-v-cd18f87f"]]), Yl = "rtl", es = {
2818
+ const Gl = /* @__PURE__ */ R(Hl, [["render", Fl], ["__scopeId", "data-v-cd18f87f"]]), Kl = "rtl", zl = {
2820
2819
  __name: "PageEditor",
2821
2820
  setup(e) {
2822
- const t = T(!1);
2823
- T(1);
2824
- const o = Q(), n = Y(), l = g(() => n.pages[o.path]);
2821
+ const t = C(!1);
2822
+ C(1);
2823
+ const o = Q(), n = Y(), l = k(() => n.pages[o.path]);
2825
2824
  return (s, a) => {
2826
- const u = M("VIcon"), d = Ut;
2827
- return r(), v(R, null, [
2828
- c(u, {
2825
+ const c = P("VIcon"), d = Pt;
2826
+ return i(), v(A, null, [
2827
+ u(c, {
2829
2828
  name: "ra-set",
2830
- onClick: a[0] || (a[0] = (m) => t.value = !f(t))
2829
+ onClick: a[0] || (a[0] = (f) => t.value = !h(t))
2831
2830
  }),
2832
- c(d, {
2833
- modelValue: f(t),
2834
- "onUpdate:modelValue": a[1] || (a[1] = (m) => Qe(t) ? t.value = m : null),
2831
+ u(d, {
2832
+ modelValue: h(t),
2833
+ "onUpdate:modelValue": a[1] || (a[1] = (f) => Ke(t) ? t.value = f : null),
2835
2834
  title: "页面设计",
2836
2835
  class: "my-drawer",
2837
- direction: Yl,
2836
+ direction: Kl,
2838
2837
  size: "90%",
2839
2838
  "destroy-on-close": "",
2840
2839
  "append-to-body": ""
2841
2840
  }, {
2842
- default: i(() => [
2843
- f(l).formItems !== void 0 ? (r(), h(Bl, {
2841
+ default: r(() => [
2842
+ h(l).formItems !== void 0 ? (i(), m(xl, {
2844
2843
  key: 0,
2845
- schema: f(l)
2844
+ schema: h(l)
2846
2845
  }, null, 8, ["schema"])) : $("", !0),
2847
- f(l).headers !== void 0 ? (r(), h(Zl, {
2846
+ h(l).headers !== void 0 ? (i(), m(Gl, {
2848
2847
  key: 1,
2849
- schema: f(l)
2848
+ schema: h(l)
2850
2849
  }, null, 8, ["schema"])) : $("", !0)
2851
2850
  ]),
2852
2851
  _: 1
@@ -2854,77 +2853,28 @@ const Zl = /* @__PURE__ */ L(Ql, [["render", Xl], ["__scopeId", "data-v-cd18f87f
2854
2853
  ], 64);
2855
2854
  };
2856
2855
  }
2857
- }, to = "oms-aesthetic-mode", Ee = T("theme1");
2858
- let xt = !1;
2859
- function ts(e) {
2860
- if (e === "default" || e === "theme1" || e === "theme2" || e === "theme3")
2861
- return e;
2862
- if (typeof window > "u")
2863
- return "theme1";
2864
- const t = window.localStorage?.getItem(to);
2865
- return t === "default" || t === "theme1" || t === "theme2" || t === "theme3" ? t : "theme1";
2866
- }
2867
- function os(e) {
2868
- typeof window < "u" && window.localStorage?.setItem(to, e);
2869
- }
2870
- function Ue(e) {
2871
- if (Ee.value = e, typeof document < "u") {
2872
- const t = document.documentElement;
2873
- t.classList.remove("aesthetic-default", "aesthetic-theme2", "aesthetic-theme3"), e === "default" ? t.classList.add("aesthetic-default") : e === "theme2" ? t.classList.add("aesthetic-theme2") : e === "theme3" && t.classList.add("aesthetic-theme3"), `${e}`, t.className;
2874
- }
2875
- os(e);
2876
- }
2877
- function ns() {
2878
- const e = V(), t = (o) => {
2879
- e.aestheticMode !== o ? e.updateSettings({ aestheticMode: o }) : Ue(o);
2880
- };
2881
- if (!xt) {
2882
- xt = !0;
2883
- const o = ts(e.aestheticMode);
2884
- Ue(o), ue(
2885
- () => e.aestheticMode,
2886
- (n) => {
2887
- (n === "default" || n === "theme1" || n === "theme2" || n === "theme3") && Ue(n);
2888
- },
2889
- { immediate: !0 }
2890
- );
2891
- }
2892
- return {
2893
- aestheticMode: g(() => Ee.value),
2894
- isTheme1: g(() => Ee.value === "theme1"),
2895
- setAestheticMode: t,
2896
- toggleAestheticMode: () => {
2897
- const o = ["default", "theme1", "theme2", "theme3"], l = (o.indexOf(Ee.value) + 1) % o.length;
2898
- t(o[l]);
2899
- }
2900
- };
2901
- }
2902
- const ls = { class: "right-content" }, ss = {
2856
+ }, Jl = { class: "right-content" }, Wl = {
2903
2857
  key: 0,
2904
2858
  class: "right-item"
2905
- }, as = {
2859
+ }, Ql = {
2906
2860
  class: "right-item-button",
2907
2861
  style: { padding: "0" }
2908
- }, is = {
2909
- class: "aesthetic-picker",
2910
- role: "button",
2911
- tabindex: "0"
2912
- }, rs = { class: "user-info" }, cs = { class: "user-name" }, us = /* @__PURE__ */ G({
2862
+ }, Xl = { class: "user-info" }, Zl = { class: "user-name" }, Yl = /* @__PURE__ */ z({
2913
2863
  __name: "Navbar",
2914
2864
  setup(e) {
2915
- const t = Y(), o = V(), n = N();
2916
- T(!1);
2917
- const l = T(!1);
2918
- T(""), T(0);
2919
- const s = g(() => o.defaultAvatar), a = g(() => t.sidebar), u = g(() => t.device), d = g(() => n.avatar), m = g(() => n.name), p = g(() => n.nickname), b = g(() => o.nav), w = g(() => o), C = g(() => n), O = g(() => o.showPageJsonSchema || !1), { isDark: x, toggleTheme: _ } = Wt(), { aestheticMode: S, setAestheticMode: K } = ns(), z = g(() => {
2920
- const j = w.value.envColor?.[C.value.env];
2921
- return x.value ? {
2865
+ const t = Y(), o = U(), n = j();
2866
+ C(!1);
2867
+ const l = C(!1);
2868
+ C(""), C(0);
2869
+ const s = k(() => o.defaultAvatar), a = k(() => t.sidebar), c = k(() => t.device), d = k(() => n.avatar), f = k(() => n.name), p = k(() => n.nickname), b = k(() => o.nav), S = k(() => o), I = k(() => n), O = k(() => o.showPageJsonSchema || !1), { isDark: w, toggleTheme: y } = qt(), x = k(() => {
2870
+ const D = S.value.envColor?.[I.value.env];
2871
+ return w.value ? {
2922
2872
  background: "linear-gradient(135deg, rgba(var(--el-color-primary-rgb, 0, 176, 116), 0.15) 0%, rgba(2, 6, 23, 0.95) 100%)",
2923
2873
  borderBottom: "1px solid var(--border-color)",
2924
2874
  boxShadow: "0 4px 12px rgba(0, 0, 0, 0.3)",
2925
2875
  color: "var(--sidebar-text-color)"
2926
- } : j ? {
2927
- background: `linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(243, 244, 248, 0.9) 60%, ${j} 100%)`,
2876
+ } : D ? {
2877
+ background: `linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(243, 244, 248, 0.9) 60%, ${D} 100%)`,
2928
2878
  borderBottom: "1px solid var(--border-color)",
2929
2879
  boxShadow: "0 1px 4px rgba(0, 0, 0, 0.05)",
2930
2880
  color: "var(--sidebar-text-color)"
@@ -2935,113 +2885,113 @@ const ls = { class: "right-content" }, ss = {
2935
2885
  color: "var(--sidebar-text-color)"
2936
2886
  };
2937
2887
  });
2938
- Te(() => {
2939
- Rt("el-submenu is-active");
2940
- const j = Le("navBarNotice") || "";
2941
- j.length > 0 && !Le("closeNavNotice") && yo(j) && window?.App?.config?.globalProperties?.$notify({
2888
+ Ie(() => {
2889
+ It("el-submenu is-active");
2890
+ const D = W("navBarNotice") || "";
2891
+ D.length > 0 && !W("closeNavNotice") && io(D) && window?.App?.config?.globalProperties?.$notify({
2942
2892
  title: "提示",
2943
- message: j,
2893
+ message: D,
2944
2894
  dangerouslyUseHTMLString: !0,
2945
2895
  duration: 0,
2946
- onClose: bo
2947
- }), w.value.envColor?.[C.value.env] && Uo({
2948
- elRef: k.value.$el,
2949
- waterMark: C.value.env,
2896
+ onClose: ao
2897
+ }), S.value.envColor?.[I.value.env] && Lo({
2898
+ elRef: F.value.$el,
2899
+ waterMark: I.value.env,
2950
2900
  color: "skyblue",
2951
2901
  size: "20"
2952
2902
  });
2953
2903
  });
2954
- const k = T(), P = T(""), W = T(!1);
2955
- ue([d, s], () => {
2956
- W.value = !1, P.value = d.value || s.value || "";
2904
+ const F = C(), G = C(""), g = C(!1);
2905
+ ye([d, s], () => {
2906
+ g.value = !1, G.value = d.value || s.value || "";
2957
2907
  }, { immediate: !0 });
2958
- const Pe = g(() => {
2959
- const j = p.value || m.value || o.title || "用户";
2960
- return j ? j.toString().trim().charAt(0).toUpperCase() : "用";
2908
+ const M = k(() => {
2909
+ const D = p.value || f.value || o.title || "用户";
2910
+ return D ? D.toString().trim().charAt(0).toUpperCase() : "用";
2961
2911
  });
2962
2912
  function ee() {
2963
2913
  t.toggleSideBar();
2964
2914
  }
2965
- async function ho() {
2915
+ async function Ae() {
2966
2916
  await n.logout();
2967
- const j = window?.App?.config?.globalProperties?.$router?.currentRoute?.value;
2968
- location.reload(`${location.origin}/#/login?redirect=${j?.fullPath || "/"}`);
2917
+ const D = window?.App?.config?.globalProperties?.$router?.currentRoute?.value;
2918
+ location.reload(`${location.origin}/#/login?redirect=${D?.fullPath || "/"}`);
2969
2919
  }
2970
- function Le(j) {
2971
- return o[j];
2920
+ function W(D) {
2921
+ return o[D];
2972
2922
  }
2973
- async function bo() {
2974
- o.updateSettings({ closeNavNotice: !0 }), _o(Le("navBarNotice"));
2923
+ async function ao() {
2924
+ o.updateSettings({ closeNavNotice: !0 }), ro(W("navBarNotice"));
2975
2925
  }
2976
- function yo(j) {
2977
- const B = "dismiss:navbar_notice";
2978
- return we.exist(B) ? we.get(B) !== j : !0;
2926
+ function io(D) {
2927
+ const N = "dismiss:navbar_notice";
2928
+ return ke.exist(N) ? ke.get(N) !== D : !0;
2979
2929
  }
2980
- function _o(j) {
2981
- we.set("dismiss:navbar_notice", j);
2930
+ function ro(D) {
2931
+ ke.set("dismiss:navbar_notice", D);
2982
2932
  }
2983
- function vo() {
2984
- W.value || (W.value = !0, P.value = "");
2933
+ function co() {
2934
+ g.value || (g.value = !0, G.value = "");
2985
2935
  }
2986
- return (j, B) => {
2987
- const pt = Be, mt = Ht, go = qt, ae = un, ft = cn, ht = rn, ko = dn, wo = Ut, So = ve;
2988
- return r(), h(So, {
2936
+ return (D, N) => {
2937
+ const rt = Oe, uo = Mt, po = Lt, fo = on, ct = ln, mo = nn, ho = tn, bo = Pt, yo = _e;
2938
+ return i(), m(yo, {
2989
2939
  ref_key: "header",
2990
- ref: k,
2940
+ ref: F,
2991
2941
  class: "navbar",
2992
- style: Co(z.value)
2942
+ style: ko(x.value)
2993
2943
  }, {
2994
- default: i(() => [
2995
- c(pt, { span: 16 }, {
2996
- default: i(() => [
2997
- c(dl, {
2944
+ default: r(() => [
2945
+ u(rt, { span: 16 }, {
2946
+ default: r(() => [
2947
+ u(ll, {
2998
2948
  "is-active": a.value.opened,
2999
2949
  class: "hamburger-container",
3000
2950
  onToggleClick: ee
3001
2951
  }, null, 8, ["is-active"]),
3002
- u.value !== "mobile" ? (r(), h(rl, {
2952
+ c.value !== "mobile" ? (i(), m(tl, {
3003
2953
  key: 0,
3004
2954
  class: "breadcrumb-container"
3005
2955
  })) : $("", !0)
3006
2956
  ]),
3007
2957
  _: 1
3008
2958
  }),
3009
- c(pt, { span: 8 }, {
3010
- default: i(() => [
3011
- y("div", ls, [
3012
- O.value ? (r(), v("div", ss, [
3013
- c(es)
2959
+ u(rt, { span: 8 }, {
2960
+ default: r(() => [
2961
+ _("div", Jl, [
2962
+ O.value ? (i(), v("div", Wl, [
2963
+ u(zl)
3014
2964
  ])) : $("", !0),
3015
- y("div", as, [
3016
- c(f(at), { buttons: b.value }, null, 8, ["buttons"])
2965
+ _("div", Ql, [
2966
+ u(h(ot), { buttons: b.value }, null, 8, ["buttons"])
3017
2967
  ]),
3018
- c(go, {
2968
+ u(po, {
3019
2969
  placement: "bottom",
3020
- content: f(x) ? "切换为明亮模式" : "切换为暗黑模式"
2970
+ content: h(w) ? "切换为明亮模式" : "切换为暗黑模式"
3021
2971
  }, {
3022
- default: i(() => [
3023
- y("div", {
2972
+ default: r(() => [
2973
+ _("div", {
3024
2974
  class: "right-item theme-toggle",
3025
2975
  role: "button",
3026
2976
  tabindex: "0",
3027
- onClick: B[0] || (B[0] = //@ts-ignore
3028
- (...ie) => f(_) && f(_)(...ie)),
2977
+ onClick: N[0] || (N[0] = //@ts-ignore
2978
+ (...ae) => h(y) && h(y)(...ae)),
3029
2979
  onKeydown: [
3030
- B[1] || (B[1] = bt(He(
2980
+ N[1] || (N[1] = ut(Ne(
3031
2981
  //@ts-ignore
3032
- (...ie) => f(_) && f(_)(...ie),
2982
+ (...ae) => h(y) && h(y)(...ae),
3033
2983
  ["prevent"]
3034
2984
  ), ["enter"])),
3035
- B[2] || (B[2] = bt(He(
2985
+ N[2] || (N[2] = ut(Ne(
3036
2986
  //@ts-ignore
3037
- (...ie) => f(_) && f(_)(...ie),
2987
+ (...ae) => h(y) && h(y)(...ae),
3038
2988
  ["prevent"]
3039
2989
  ), ["space"]))
3040
2990
  ]
3041
2991
  }, [
3042
- c(mt, null, {
3043
- default: i(() => [
3044
- (r(), h(Xe(f(x) ? f(In) : f(Cn))))
2992
+ u(uo, null, {
2993
+ default: r(() => [
2994
+ (i(), m(ze(h(w) ? h(gn) : h(kn))))
3045
2995
  ]),
3046
2996
  _: 1
3047
2997
  })
@@ -3049,90 +2999,29 @@ const ls = { class: "right-content" }, ss = {
3049
2999
  ]),
3050
3000
  _: 1
3051
3001
  }, 8, ["content"]),
3052
- c(ht, {
3053
- class: "right-item",
3054
- trigger: "click",
3055
- onCommand: f(K)
3056
- }, {
3057
- dropdown: i(() => [
3058
- c(ft, null, {
3059
- default: i(() => [
3060
- c(ae, {
3061
- command: "theme1",
3062
- disabled: f(S) === "theme1"
3063
- }, {
3064
- default: i(() => [...B[4] || (B[4] = [
3065
- I("薄荷绿 (Mint)", -1)
3066
- ])]),
3067
- _: 1
3068
- }, 8, ["disabled"]),
3069
- c(ae, {
3070
- command: "theme2",
3071
- disabled: f(S) === "theme2"
3072
- }, {
3073
- default: i(() => [...B[5] || (B[5] = [
3074
- I("皇家紫 (Purple)", -1)
3075
- ])]),
3076
- _: 1
3077
- }, 8, ["disabled"]),
3078
- c(ae, {
3079
- command: "theme3",
3080
- disabled: f(S) === "theme3"
3081
- }, {
3082
- default: i(() => [...B[6] || (B[6] = [
3083
- I("海洋蓝 (Blue)", -1)
3084
- ])]),
3085
- _: 1
3086
- }, 8, ["disabled"]),
3087
- c(ae, {
3088
- command: "default",
3089
- disabled: f(S) === "default",
3090
- divided: ""
3091
- }, {
3092
- default: i(() => [...B[7] || (B[7] = [
3093
- I("原生样式 (Native)", -1)
3094
- ])]),
3095
- _: 1
3096
- }, 8, ["disabled"])
3097
- ]),
3098
- _: 1
3099
- })
3100
- ]),
3101
- default: i(() => [
3102
- y("div", is, [
3103
- c(mt, null, {
3104
- default: i(() => [
3105
- c(f(Tn))
3106
- ]),
3107
- _: 1
3108
- })
3109
- ])
3110
- ]),
3111
- _: 1
3112
- }, 8, ["onCommand"]),
3113
- c(ht, {
3002
+ u(ho, {
3114
3003
  class: "right-item",
3115
3004
  trigger: "click"
3116
3005
  }, {
3117
- dropdown: i(() => [
3118
- c(ft, { class: "user-dropdown" }, {
3119
- default: i(() => [
3120
- c(ae, {
3006
+ dropdown: r(() => [
3007
+ u(mo, { class: "user-dropdown" }, {
3008
+ default: r(() => [
3009
+ u(ct, {
3121
3010
  icon: "oms-icon-index",
3122
- onClick: B[3] || (B[3] = (ie) => j.$router.push("/"))
3011
+ onClick: N[3] || (N[3] = (ae) => D.$router.push("/"))
3123
3012
  }, {
3124
- default: i(() => [...B[8] || (B[8] = [
3125
- I("首页", -1)
3013
+ default: r(() => [...N[4] || (N[4] = [
3014
+ T("首页", -1)
3126
3015
  ])]),
3127
3016
  _: 1
3128
3017
  }),
3129
- c(ae, {
3018
+ u(ct, {
3130
3019
  divided: "",
3131
3020
  icon: "el-icon-switch-button",
3132
- onClick: ho
3021
+ onClick: Ae
3133
3022
  }, {
3134
- default: i(() => [...B[9] || (B[9] = [
3135
- I("退出登录", -1)
3023
+ default: r(() => [...N[5] || (N[5] = [
3024
+ T("退出登录", -1)
3136
3025
  ])]),
3137
3026
  _: 1
3138
3027
  })
@@ -3140,20 +3029,20 @@ const ls = { class: "right-content" }, ss = {
3140
3029
  _: 1
3141
3030
  })
3142
3031
  ]),
3143
- default: i(() => [
3144
- y("div", rs, [
3145
- c(ko, {
3032
+ default: r(() => [
3033
+ _("div", Xl, [
3034
+ u(fo, {
3146
3035
  class: "user-avatar",
3147
3036
  size: 32,
3148
- src: P.value || void 0,
3149
- onError: vo
3037
+ src: G.value || void 0,
3038
+ onError: co
3150
3039
  }, {
3151
- default: i(() => [
3152
- I(A(Pe.value), 1)
3040
+ default: r(() => [
3041
+ T(B(M.value), 1)
3153
3042
  ]),
3154
3043
  _: 1
3155
3044
  }, 8, ["src"]),
3156
- y("span", cs, A(p.value || m.value), 1)
3045
+ _("span", Zl, B(p.value || f.value), 1)
3157
3046
  ])
3158
3047
  ]),
3159
3048
  _: 1
@@ -3162,7 +3051,7 @@ const ls = { class: "right-content" }, ss = {
3162
3051
  ]),
3163
3052
  _: 1
3164
3053
  }),
3165
- l.value ? (r(), h(wo, {
3054
+ l.value ? (i(), m(bo, {
3166
3055
  key: 0,
3167
3056
  "with-header": !1,
3168
3057
  size: "50%"
@@ -3172,75 +3061,75 @@ const ls = { class: "right-content" }, ss = {
3172
3061
  }, 8, ["style"]);
3173
3062
  };
3174
3063
  }
3175
- }), ds = /* @__PURE__ */ L(us, [["__scopeId", "data-v-b5895dca"]]), ps = { class: "sidebar-logo-fallback" }, ms = {
3064
+ }), es = /* @__PURE__ */ R(Yl, [["__scopeId", "data-v-b90728f0"]]), ts = { class: "sidebar-logo-fallback" }, os = {
3176
3065
  key: 1,
3177
3066
  class: "sidebar-logo-fallback"
3178
- }, fs = { class: "sidebar-logo-fallback" }, hs = {
3067
+ }, ns = { class: "sidebar-logo-fallback" }, ls = {
3179
3068
  key: 1,
3180
3069
  class: "sidebar-logo-fallback"
3181
- }, bs = { class: "sidebar-title" }, ys = /* @__PURE__ */ G({
3070
+ }, ss = { class: "sidebar-title" }, as = /* @__PURE__ */ z({
3182
3071
  __name: "Logo",
3183
3072
  props: {
3184
3073
  collapse: { type: Boolean }
3185
3074
  },
3186
3075
  setup(e) {
3187
- const t = V(), o = g(() => t.title), n = g(() => t.logo), l = T(!1), s = g(() => !!n.value && !l.value), a = g(() => {
3076
+ const t = U(), o = k(() => t.title), n = k(() => t.logo), l = C(!1), s = k(() => !!n.value && !l.value), a = k(() => {
3188
3077
  const d = o.value || "OMS";
3189
3078
  return d ? d.toString().trim().charAt(0).toUpperCase() : "O";
3190
3079
  });
3191
- ue(n, () => {
3080
+ ye(n, () => {
3192
3081
  l.value = !1;
3193
3082
  }, { immediate: !0 });
3194
- function u() {
3083
+ function c() {
3195
3084
  l.value = !0;
3196
3085
  }
3197
- return (d, m) => {
3198
- const p = pn, b = M("router-link");
3199
- return r(), v("div", {
3086
+ return (d, f) => {
3087
+ const p = sn, b = P("router-link");
3088
+ return i(), v("div", {
3200
3089
  class: te(["sidebar-logo-container", { collapse: e.collapse }])
3201
3090
  }, [
3202
- c(Bt, { name: "sidebarLogoFade" }, {
3203
- default: i(() => [
3204
- e.collapse ? (r(), h(b, {
3091
+ u(xt, { name: "sidebarLogoFade" }, {
3092
+ default: r(() => [
3093
+ e.collapse ? (i(), m(b, {
3205
3094
  key: "collapse",
3206
3095
  class: "sidebar-logo-link",
3207
3096
  to: "/"
3208
3097
  }, {
3209
- default: i(() => [
3210
- s.value ? (r(), h(p, {
3098
+ default: r(() => [
3099
+ s.value ? (i(), m(p, {
3211
3100
  key: 0,
3212
3101
  src: n.value || "",
3213
3102
  fit: "contain",
3214
3103
  class: "sidebar-logo",
3215
- onError: u
3104
+ onError: c
3216
3105
  }, {
3217
- error: i(() => [
3218
- y("div", ps, A(a.value), 1)
3106
+ error: r(() => [
3107
+ _("div", ts, B(a.value), 1)
3219
3108
  ]),
3220
3109
  _: 1
3221
- }, 8, ["src"])) : (r(), v("div", ms, A(a.value), 1)),
3222
- m[0] || (m[0] = y("div", { class: "sidebar-subtitle" }, "系统", -1))
3110
+ }, 8, ["src"])) : (i(), v("div", os, B(a.value), 1)),
3111
+ f[0] || (f[0] = _("div", { class: "sidebar-subtitle" }, "系统", -1))
3223
3112
  ]),
3224
3113
  _: 1
3225
- })) : (r(), h(b, {
3114
+ })) : (i(), m(b, {
3226
3115
  key: "expand",
3227
3116
  class: "sidebar-logo-link",
3228
3117
  to: "/"
3229
3118
  }, {
3230
- default: i(() => [
3231
- s.value ? (r(), h(p, {
3119
+ default: r(() => [
3120
+ s.value ? (i(), m(p, {
3232
3121
  key: 0,
3233
3122
  src: n.value || "",
3234
3123
  fit: "contain",
3235
3124
  class: "sidebar-logo",
3236
- onError: u
3125
+ onError: c
3237
3126
  }, {
3238
- error: i(() => [
3239
- y("div", fs, A(a.value), 1)
3127
+ error: r(() => [
3128
+ _("div", ns, B(a.value), 1)
3240
3129
  ]),
3241
3130
  _: 1
3242
- }, 8, ["src"])) : (r(), v("div", hs, A(a.value), 1)),
3243
- y("h1", bs, A(o.value), 1)
3131
+ }, 8, ["src"])) : (i(), v("div", ls, B(a.value), 1)),
3132
+ _("h1", ss, B(o.value), 1)
3244
3133
  ]),
3245
3134
  _: 1
3246
3135
  }))
@@ -3250,7 +3139,7 @@ const ls = { class: "right-content" }, ss = {
3250
3139
  ], 2);
3251
3140
  };
3252
3141
  }
3253
- }), _s = /* @__PURE__ */ L(ys, [["__scopeId", "data-v-737655f0"]]), vs = {
3142
+ }), is = /* @__PURE__ */ R(as, [["__scopeId", "data-v-737655f0"]]), rs = {
3254
3143
  props: {
3255
3144
  to: {
3256
3145
  type: String,
@@ -3263,10 +3152,10 @@ const ls = { class: "right-content" }, ss = {
3263
3152
  },
3264
3153
  methods: {
3265
3154
  compType(e) {
3266
- return yt(e) || this.newTab ? "a" : "router-link";
3155
+ return dt(e) || this.newTab ? "a" : "router-link";
3267
3156
  },
3268
3157
  linkProps(e) {
3269
- return yt(e) ? {
3158
+ return dt(e) ? {
3270
3159
  is: "a",
3271
3160
  href: e,
3272
3161
  target: "_blank",
@@ -3283,15 +3172,15 @@ const ls = { class: "right-content" }, ss = {
3283
3172
  }
3284
3173
  }
3285
3174
  };
3286
- function gs(e, t, o, n, l, s) {
3287
- return r(), h(Xe(s.compType(o.to)), Z(de(s.linkProps(o.to))), {
3288
- default: i(() => [
3289
- fe(e.$slots, "default")
3175
+ function cs(e, t, o, n, l, s) {
3176
+ return i(), m(ze(s.compType(o.to)), Z(ce(s.linkProps(o.to))), {
3177
+ default: r(() => [
3178
+ pe(e.$slots, "default")
3290
3179
  ]),
3291
3180
  _: 3
3292
3181
  }, 16);
3293
3182
  }
3294
- const ks = /* @__PURE__ */ L(vs, [["render", gs]]), ws = {
3183
+ const us = /* @__PURE__ */ R(rs, [["render", cs]]), ds = {
3295
3184
  computed: {
3296
3185
  // @ts-ignore
3297
3186
  device() {
@@ -3312,7 +3201,7 @@ const ks = /* @__PURE__ */ L(vs, [["render", gs]]), ws = {
3312
3201
  }
3313
3202
  }
3314
3203
  }
3315
- }, Ss = { class: "menu-content" }, xs = /* @__PURE__ */ G({
3204
+ }, ps = { class: "menu-content" }, fs = /* @__PURE__ */ z({
3316
3205
  __name: "MenuContent",
3317
3206
  props: {
3318
3207
  meta: {
@@ -3325,22 +3214,22 @@ const ks = /* @__PURE__ */ L(vs, [["render", gs]]), ws = {
3325
3214
  },
3326
3215
  setup(e) {
3327
3216
  return (t, o) => {
3328
- const n = M("VIcon");
3329
- return r(), v(R, null, [
3330
- c(n, {
3217
+ const n = P("VIcon");
3218
+ return i(), v(A, null, [
3219
+ u(n, {
3331
3220
  name: e.meta.icon || "ra-all"
3332
3221
  }, null, 8, ["name"]),
3333
- y("span", Ss, A(e.meta.title), 1)
3222
+ _("span", ps, B(e.meta.title), 1)
3334
3223
  ], 64);
3335
3224
  };
3336
3225
  }
3337
- }), Es = {
3226
+ }), ms = {
3338
3227
  name: "SidebarItem",
3339
3228
  components: {
3340
- AppLink: ks,
3341
- MenuContent: xs
3229
+ AppLink: us,
3230
+ MenuContent: fs
3342
3231
  },
3343
- mixins: [ws],
3232
+ mixins: [ds],
3344
3233
  props: {
3345
3234
  // route object
3346
3235
  item: {
@@ -3362,7 +3251,7 @@ const ks = /* @__PURE__ */ L(vs, [["render", gs]]), ws = {
3362
3251
  },
3363
3252
  methods: {
3364
3253
  itemClick() {
3365
- we.remove("table_filter:" + this.$props.to);
3254
+ ke.remove("table_filter:" + this.$props.to);
3366
3255
  },
3367
3256
  getTo(e) {
3368
3257
  try {
@@ -3372,34 +3261,34 @@ const ks = /* @__PURE__ */ L(vs, [["render", gs]]), ws = {
3372
3261
  }
3373
3262
  }
3374
3263
  }
3375
- }, Is = {
3264
+ }, hs = {
3376
3265
  key: 0,
3377
3266
  class: "menu-wrapper"
3378
3267
  };
3379
- function Cs(e, t, o, n, l, s) {
3380
- const a = M("menu-content"), u = mn, d = M("app-link"), m = qt, p = M("sidebar-item", !0), b = fn;
3381
- return o.item.hidden !== !1 ? (r(), v("div", Is, [
3382
- o.item.meta && o.item.meta.menuType === 2 ? (r(), h(m, {
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, [
3271
+ o.item.meta && o.item.meta.menuType === 2 ? (i(), m(f, {
3383
3272
  key: 0,
3384
3273
  disabled: !o.isCollapse,
3385
3274
  effect: "dark",
3386
3275
  placement: "right",
3387
3276
  content: o.item.meta?.title
3388
3277
  }, {
3389
- default: i(() => [
3390
- o.item.meta ? (r(), h(d, {
3278
+ default: r(() => [
3279
+ o.item.meta ? (i(), m(d, {
3391
3280
  key: 0,
3392
3281
  to: o.to,
3393
3282
  "new-tab": o.item.meta.newTab
3394
3283
  }, {
3395
- default: i(() => [
3396
- c(u, {
3284
+ default: r(() => [
3285
+ u(c, {
3397
3286
  index: o.to,
3398
3287
  class: te({ "submenu-title-noDropdown": !o.isNest }),
3399
3288
  onClick: s.itemClick
3400
3289
  }, {
3401
- default: i(() => [
3402
- c(a, {
3290
+ default: r(() => [
3291
+ u(a, {
3403
3292
  meta: o.item.meta
3404
3293
  }, null, 8, ["meta"])
3405
3294
  ]),
@@ -3410,41 +3299,41 @@ function Cs(e, t, o, n, l, s) {
3410
3299
  }, 8, ["to", "new-tab"])) : $("", !0)
3411
3300
  ]),
3412
3301
  _: 1
3413
- }, 8, ["disabled", "content"])) : o.item.meta && o.item.meta.menuType === 1 ? (r(), h(m, {
3302
+ }, 8, ["disabled", "content"])) : o.item.meta && o.item.meta.menuType === 1 ? (i(), m(f, {
3414
3303
  key: 1,
3415
3304
  disabled: !o.isCollapse,
3416
3305
  effect: "dark",
3417
3306
  placement: "right",
3418
3307
  content: o.item.meta?.title
3419
3308
  }, {
3420
- default: i(() => [
3421
- c(b, {
3309
+ default: r(() => [
3310
+ u(b, {
3422
3311
  ref: "subMenu",
3423
3312
  index: o.to,
3424
3313
  class: te({ "submenu-title-noDropdown": !o.isNest })
3425
3314
  }, {
3426
- title: i(() => [
3427
- o.item.redirect && o.item.redirect !== "#" ? (r(), h(d, {
3315
+ title: r(() => [
3316
+ o.item.redirect && o.item.redirect !== "#" ? (i(), m(d, {
3428
3317
  key: 0,
3429
3318
  to: o.to
3430
3319
  }, {
3431
- default: i(() => [
3432
- c(a, {
3320
+ default: r(() => [
3321
+ u(a, {
3433
3322
  meta: o.item.meta
3434
3323
  }, null, 8, ["meta"])
3435
3324
  ]),
3436
3325
  _: 1
3437
- }, 8, ["to"])) : (r(), h(a, {
3326
+ }, 8, ["to"])) : (i(), m(a, {
3438
3327
  key: 1,
3439
3328
  meta: o.item.meta
3440
3329
  }, null, 8, ["meta"]))
3441
3330
  ]),
3442
- default: i(() => [
3443
- (r(!0), v(R, null, U(o.item.children, (w) => (r(), h(p, {
3444
- key: w.path,
3331
+ default: r(() => [
3332
+ (i(!0), v(A, null, V(o.item.children, (S) => (i(), m(p, {
3333
+ key: S.path,
3445
3334
  "is-nest": !0,
3446
- item: w,
3447
- to: s.getTo(w),
3335
+ item: S,
3336
+ to: s.getTo(S),
3448
3337
  class: "nest-menu"
3449
3338
  }, null, 8, ["item", "to"]))), 128))
3450
3339
  ]),
@@ -3455,69 +3344,69 @@ function Cs(e, t, o, n, l, s) {
3455
3344
  }, 8, ["disabled", "content"])) : $("", !0)
3456
3345
  ])) : $("", !0);
3457
3346
  }
3458
- const Ts = /* @__PURE__ */ L(Es, [["render", Cs]]), Os = /* @__PURE__ */ G({
3347
+ const ys = /* @__PURE__ */ R(ms, [["render", bs]]), _s = /* @__PURE__ */ z({
3459
3348
  __name: "SearchMenu",
3460
3349
  setup(e) {
3461
- const t = N();
3462
- function o(m) {
3463
- return m.filter((p) => p.meta?.menuType === 0 ? !1 : (p.children && (p.children = o(p.children), p.children.length === 0 && delete p.children), !0));
3350
+ const t = j();
3351
+ function o(f) {
3352
+ return f.filter((p) => p.meta?.menuType === 0 ? !1 : (p.children && (p.children = o(p.children), p.children.length === 0 && delete p.children), !0));
3464
3353
  }
3465
- const n = T(""), l = g(() => t.remoteRouter), s = $e(), a = g(() => {
3466
- let m = [];
3354
+ const n = C(""), l = k(() => t.remoteRouter), s = Te(), a = k(() => {
3355
+ let f = [];
3467
3356
  return l.value.forEach((p) => {
3468
- m = m.concat(E(p.routes));
3469
- }), o(m);
3357
+ f = f.concat(E(p.routes));
3358
+ }), o(f);
3470
3359
  });
3471
- function u(m) {
3472
- let p = m;
3473
- if (m.meta.menuType === 1 && m.children && m.children.length > 0) {
3474
- for (let b = 0; b < m.children.length; b++)
3475
- if (m.children[b].path.indexOf("/:") === -1) {
3476
- p = m.children[b];
3360
+ function c(f) {
3361
+ let p = f;
3362
+ if (f.meta.menuType === 1 && f.children && f.children.length > 0) {
3363
+ for (let b = 0; b < f.children.length; b++)
3364
+ if (f.children[b].path.indexOf("/:") === -1) {
3365
+ p = f.children[b];
3477
3366
  break;
3478
3367
  }
3479
3368
  }
3480
3369
  return s.resolve(p.redirect ? p.redirect : p).fullPath;
3481
3370
  }
3482
- function d(m) {
3483
- s.push(m), n.value = "";
3371
+ function d(f) {
3372
+ s.push(f), n.value = "";
3484
3373
  }
3485
- return (m, p) => {
3486
- const b = nt, w = hn, C = ot;
3487
- return r(), h(C, {
3488
- modelValue: f(n),
3489
- "onUpdate:modelValue": p[0] || (p[0] = (O) => Qe(n) ? n.value = O : null),
3374
+ return (f, p) => {
3375
+ const b = Ye, S = cn, I = Ze;
3376
+ return i(), m(I, {
3377
+ modelValue: h(n),
3378
+ "onUpdate:modelValue": p[0] || (p[0] = (O) => Ke(n) ? n.value = O : null),
3490
3379
  filterable: "",
3491
3380
  placeholder: "搜索菜单...",
3492
3381
  class: "search-menu",
3493
3382
  onChange: d
3494
3383
  }, {
3495
- default: i(() => [
3496
- (r(!0), v(R, null, U(f(a), (O) => (r(), v(R, {
3384
+ default: r(() => [
3385
+ (i(!0), v(A, null, V(h(a), (O) => (i(), v(A, {
3497
3386
  key: O.path
3498
3387
  }, [
3499
- O.children !== void 0 ? (r(), v(R, { key: 0 }, [
3500
- O.meta.menuType !== 0 ? (r(), h(w, {
3388
+ O.children !== void 0 ? (i(), v(A, { key: 0 }, [
3389
+ O.meta.menuType !== 0 ? (i(), m(S, {
3501
3390
  key: O.path + "-",
3502
3391
  label: O.meta.title
3503
3392
  }, {
3504
- default: i(() => [
3505
- (r(!0), v(R, null, U(O.children, (x, _) => (r(), v(R, {
3506
- key: x.path
3393
+ default: r(() => [
3394
+ (i(!0), v(A, null, V(O.children, (w, y) => (i(), v(A, {
3395
+ key: w.path
3507
3396
  }, [
3508
- O.meta.menuType !== 0 ? (r(), h(b, {
3397
+ O.meta.menuType !== 0 ? (i(), m(b, {
3509
3398
  key: 0,
3510
- label: (_ === O.children.length - 1 ? "└─" : "├─") + x.meta.title,
3511
- value: u(x)
3399
+ label: (y === O.children.length - 1 ? "└─" : "├─") + w.meta.title,
3400
+ value: c(w)
3512
3401
  }, null, 8, ["label", "value"])) : $("", !0)
3513
3402
  ], 64))), 128))
3514
3403
  ]),
3515
3404
  _: 2
3516
3405
  }, 1032, ["label"])) : $("", !0)
3517
- ], 64)) : (r(), h(b, {
3406
+ ], 64)) : (i(), m(b, {
3518
3407
  key: 1,
3519
3408
  label: "" + O.meta.title,
3520
- value: u(O)
3409
+ value: c(O)
3521
3410
  }, null, 8, ["label", "value"]))
3522
3411
  ], 64))), 128))
3523
3412
  ]),
@@ -3525,63 +3414,63 @@ const Ts = /* @__PURE__ */ L(Es, [["render", Cs]]), Os = /* @__PURE__ */ G({
3525
3414
  }, 8, ["modelValue"]);
3526
3415
  };
3527
3416
  }
3528
- }), $s = /* @__PURE__ */ L(Os, [["__scopeId", "data-v-02f2e7b9"]]);
3529
- 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 || {}), F = /* @__PURE__ */ ((e) => (e[e.hidden = 0] = "hidden", e[e.dir = 1] = "dir", e[e.menu = 2] = "menu", e[e.page = 3] = "page", e))(F || {});
3530
- const Bs = /* @__PURE__ */ G({
3417
+ }), vs = /* @__PURE__ */ R(_s, [["__scopeId", "data-v-02f2e7b9"]]);
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({
3531
3420
  __name: "index",
3532
3421
  setup(e) {
3533
- const t = Y(), o = N(), n = V(), l = g(() => t.sidebar), s = g(() => o.remoteRouter), a = g(() => o.customRouter), u = $e(), d = Q(), m = g(() => {
3534
- let x = [];
3535
- return u.options.routes.concat(a.value || []).forEach((_) => {
3536
- _.path === "/" ? x = x.concat(_.children || []) : x.push(_);
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(() => {
3423
+ let w = [];
3424
+ return c.options.routes.concat(a.value || []).forEach((y) => {
3425
+ y.path === "/" ? w = w.concat(y.children || []) : w.push(y);
3537
3426
  }), E([
3538
- { label: "", routes: x },
3427
+ { label: "", routes: w },
3539
3428
  ...s.value
3540
3429
  ]);
3541
- }), p = g(() => {
3542
- const x = d.matched;
3543
- for (let _ = x.length - 1; _ >= 0; _--) {
3544
- const S = x[_];
3545
- if (S.meta.menuType === F.menu)
3546
- return C(), u.resolve(S.redirect ? S.redirect : S).fullPath;
3430
+ }), p = k(() => {
3431
+ const w = d.matched;
3432
+ for (let y = w.length - 1; y >= 0; y--) {
3433
+ const x = w[y];
3434
+ if (x.meta.menuType === K.menu)
3435
+ return I(), c.resolve(x.redirect ? x.redirect : x).fullPath;
3547
3436
  }
3548
3437
  return "";
3549
- }), b = g(() => n.sidebarLogo), w = g(() => !l.value.opened);
3550
- Te(() => C());
3551
- function C() {
3552
- Rt("is-active", 200);
3438
+ }), b = k(() => n.sidebarLogo), S = k(() => !l.value.opened);
3439
+ Ie(() => I());
3440
+ function I() {
3441
+ It("is-active", 200);
3553
3442
  }
3554
- function O(x) {
3555
- return x.filter((_) => [F.dir, F.menu].indexOf(_.meta.menuType) !== -1).map((_) => (_ = Object.assign({}, _), _.children && (_.children = O(_.children)), _));
3443
+ function O(w) {
3444
+ return w.filter((y) => [K.dir, K.menu].indexOf(y.meta.menuType) !== -1).map((y) => (y = Object.assign({}, y), y.children && (y.children = O(y.children)), y));
3556
3445
  }
3557
- return (x, _) => {
3558
- const S = yn, K = bn;
3559
- return r(), v("div", {
3560
- class: te({ "has-logo": f(b) })
3446
+ return (w, y) => {
3447
+ const x = dn, F = un;
3448
+ return i(), v("div", {
3449
+ class: te({ "has-logo": h(b) })
3561
3450
  }, [
3562
- f(b) ? (r(), h(_s, {
3451
+ h(b) ? (i(), m(is, {
3563
3452
  key: 0,
3564
- collapse: f(w)
3453
+ collapse: h(S)
3565
3454
  }, null, 8, ["collapse"])) : $("", !0),
3566
- c(K, { "wrap-class": "scrollbar-wrapper" }, {
3567
- default: i(() => [
3568
- f(w) ? $("", !0) : (r(), h($s, { key: 0 })),
3569
- c(S, {
3570
- "default-active": f(p),
3571
- collapse: f(w),
3455
+ u(F, { "wrap-class": "scrollbar-wrapper" }, {
3456
+ default: r(() => [
3457
+ h(S) ? $("", !0) : (i(), m(vs, { key: 0 })),
3458
+ u(x, {
3459
+ "default-active": h(p),
3460
+ collapse: h(S),
3572
3461
  "unique-opened": !1,
3573
3462
  "collapse-transition": !1,
3574
3463
  mode: "vertical"
3575
3464
  }, {
3576
- default: i(() => [
3577
- (r(!0), v(R, null, U(f(m), (z, k) => (r(), v(R, {
3578
- key: k + "-module"
3465
+ default: r(() => [
3466
+ (i(!0), v(A, null, V(h(f), (G, g) => (i(), v(A, {
3467
+ key: g + "-module"
3579
3468
  }, [
3580
- (r(!0), v(R, null, U(O(z.routes), (P) => (r(), h(Ts, {
3581
- key: P.path,
3582
- item: P,
3583
- to: x.$router.resolve(P.redirect ? P.redirect : P).fullPath,
3584
- "is-collapse": f(w)
3469
+ (i(!0), v(A, null, V(O(G.routes), (M) => (i(), m(ys, {
3470
+ key: M.path,
3471
+ item: M,
3472
+ to: w.$router.resolve(M.redirect ? M.redirect : M).fullPath,
3473
+ "is-collapse": h(S)
3585
3474
  }, null, 8, ["item", "to", "is-collapse"]))), 128))
3586
3475
  ], 64))), 128))
3587
3476
  ]),
@@ -3593,140 +3482,140 @@ const Bs = /* @__PURE__ */ G({
3593
3482
  ], 2);
3594
3483
  };
3595
3484
  }
3596
- }), As = /* @__PURE__ */ L(Bs, [["__scopeId", "data-v-ed591c64"]]), Rs = { class: "app-main" }, Ps = {
3485
+ }), ks = /* @__PURE__ */ R(gs, [["__scopeId", "data-v-ed591c64"]]), Ss = { class: "app-main" }, ws = {
3597
3486
  __name: "AppMain",
3598
3487
  setup(e) {
3599
- const t = Q(), o = [], n = T(0);
3600
- return Zo(() => {
3488
+ const t = Q(), o = [], n = C(0);
3489
+ return Ko(() => {
3601
3490
  t.meta?.keepAlive && o.indexOf(t.name) && o.push(t.name), n.value++;
3602
3491
  }), (l, s) => {
3603
- const a = M("router-view"), u = _n;
3604
- return r(), v("section", Rs, [
3605
- (r(), h(a, {
3606
- key: l.$route.fullPath + f(n)
3492
+ const a = P("router-view"), c = pn;
3493
+ return i(), v("section", Ss, [
3494
+ (i(), m(a, {
3495
+ key: l.$route.fullPath + h(n)
3607
3496
  })),
3608
- c(u, { bottom: 50 })
3497
+ u(c, { bottom: 50 })
3609
3498
  ]);
3610
3499
  };
3611
3500
  }
3612
- }, Ls = /* @__PURE__ */ L(Ps, [["__scopeId", "data-v-ca0f0d98"]]), Ms = { class: "main-container" }, Ds = 992, js = {
3501
+ }, xs = /* @__PURE__ */ R(ws, [["__scopeId", "data-v-ca0f0d98"]]), Es = { class: "main-container" }, Is = 992, Cs = {
3613
3502
  __name: "index",
3614
3503
  setup(e) {
3615
- const { body: t } = document, o = Y(), n = V(), l = Q(), s = g(() => o.sidebar), a = g(() => o.device), u = g(() => n.fixedHeader), d = g(() => ({
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(() => ({
3616
3505
  hideSidebar: !s.value.opened,
3617
3506
  openSidebar: s.value.opened,
3618
3507
  withoutAnimation: s.value.withoutAnimation,
3619
3508
  mobile: a.value === "mobile"
3620
- })), m = () => t.getBoundingClientRect().width - 1 < Ds, p = () => {
3509
+ })), f = () => t.getBoundingClientRect().width - 1 < Is, p = () => {
3621
3510
  if (!document.hidden) {
3622
- const w = m();
3623
- o.toggleDevice(w ? "mobile" : "desktop"), w && o.closeSideBar({ withoutAnimation: !0 });
3511
+ const S = f();
3512
+ o.toggleDevice(S ? "mobile" : "desktop"), S && o.closeSideBar({ withoutAnimation: !0 });
3624
3513
  }
3625
3514
  };
3626
- p(), $n(window, "resize", () => p()), ue(l, () => {
3515
+ p(), wn(window, "resize", () => p()), ye(l, () => {
3627
3516
  a.value === "mobile" && s.value.opened && o.closeSideBar({ withoutAnimation: !1 });
3628
3517
  });
3629
3518
  const b = () => o.closeSideBar({ withoutAnimation: !1 });
3630
- return (w, C) => (r(), v("div", {
3631
- class: te([f(d), "app-wrapper"])
3519
+ return (S, I) => (i(), v("div", {
3520
+ class: te([h(d), "app-wrapper"])
3632
3521
  }, [
3633
- f(a) === "mobile" && f(s).opened ? (r(), v("div", {
3522
+ h(a) === "mobile" && h(s).opened ? (i(), v("div", {
3634
3523
  key: 0,
3635
3524
  class: "drawer-bg",
3636
3525
  onClick: b
3637
3526
  })) : $("", !0),
3638
- c(f(As), { class: "sidebar-container" }),
3639
- y("div", Ms, [
3640
- y("div", {
3641
- class: te({ "fixed-header": f(u) })
3527
+ u(h(ks), { class: "sidebar-container" }),
3528
+ _("div", Es, [
3529
+ _("div", {
3530
+ class: te({ "fixed-header": h(c) })
3642
3531
  }, [
3643
- c(f(ds))
3532
+ u(h(es))
3644
3533
  ], 2),
3645
- c(f(Ls))
3534
+ u(h(xs))
3646
3535
  ])
3647
3536
  ], 2));
3648
3537
  }
3649
- }, oo = /* @__PURE__ */ L(js, [["__scopeId", "data-v-9a7540c6"]]), Ns = { class: "login-container" }, Vs = { class: "login-card-wrapper" }, Us = { class: "login-header" }, qs = { class: "logo-wrapper" }, Hs = ["src"], Fs = {
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 = {
3650
3539
  key: 1,
3651
3540
  class: "logo-fallback"
3652
- }, Gs = { class: "login-title" }, Ks = { class: "captcha-wrapper" }, zs = ["src"], Js = {
3541
+ }, Ps = { class: "login-title" }, Ls = { class: "captcha-wrapper" }, Ms = ["src"], Ds = {
3653
3542
  key: 1,
3654
3543
  class: "login-tips"
3655
- }, Ws = {
3544
+ }, js = {
3656
3545
  key: 2,
3657
3546
  class: "sso-divider"
3658
- }, Qs = { class: "login-footer" }, Xs = /* @__PURE__ */ G({
3547
+ }, Ns = { class: "login-footer" }, Vs = /* @__PURE__ */ z({
3659
3548
  __name: "login",
3660
3549
  setup(e) {
3661
- const t = $e(), o = Q(), n = V(), l = Y(), s = N(), a = g(() => n.loginTips), u = g(() => n.captcha), d = g(() => l.baseURL), m = T(0), p = T(!1), b = T({
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({
3662
3551
  username: "",
3663
3552
  password: "",
3664
3553
  captcha: "",
3665
3554
  sing: ""
3666
- }), w = g(() => {
3667
- const _ = n.title || "OMS";
3668
- return _ ? _.toString().trim().charAt(0).toUpperCase() : "O";
3669
- }), C = () => {
3670
- m.value++;
3671
- }, O = g(() => b.value.username.length > 0 && b.value.password.length >= 4 && (u.value ? b.value.captcha.length === 4 : !0)), x = () => {
3555
+ }), S = k(() => {
3556
+ const y = n.title || "OMS";
3557
+ return y ? y.toString().trim().charAt(0).toUpperCase() : "O";
3558
+ }), I = () => {
3559
+ f.value++;
3560
+ }, O = k(() => b.value.username.length > 0 && b.value.password.length >= 4 && (c.value ? b.value.captcha.length === 4 : !0)), w = () => {
3672
3561
  if (!p.value) {
3673
3562
  if (!O.value) {
3674
- Nt.error("请填写完整的登录信息");
3563
+ At.error("请填写完整的登录信息");
3675
3564
  return;
3676
3565
  }
3677
- u.value && (b.value.sing = An.MD5(`${b.value.username}${b.value.password}${b.value.captcha}`).toString()), p.value = !0, s.login(b.value).then((_) => {
3566
+ c.value && (b.value.sing = En.MD5(`${b.value.username}${b.value.password}${b.value.captcha}`).toString()), p.value = !0, s.login(b.value).then((y) => {
3678
3567
  t.push({ path: o.query?.redirect || "/" });
3679
- }).catch((_) => {
3680
- m.value++;
3568
+ }).catch((y) => {
3569
+ f.value++;
3681
3570
  }).finally(() => {
3682
3571
  p.value = !1;
3683
3572
  });
3684
3573
  }
3685
3574
  };
3686
- return (_, S) => {
3687
- const K = vn, z = tt, k = Ht, P = ye, W = et, Pe = Ae;
3688
- return r(), v("div", Ns, [
3689
- S[7] || (S[7] = y("div", { class: "login-background" }, [
3690
- y("div", { class: "shape shape-1" }),
3691
- y("div", { class: "shape shape-2" }),
3692
- y("div", { class: "shape shape-3" })
3575
+ return (y, x) => {
3576
+ const F = fn, G = Xe, g = Mt, M = he, ee = Qe, Ae = $e;
3577
+ return i(), v("div", Ts, [
3578
+ x[7] || (x[7] = _("div", { class: "login-background" }, [
3579
+ _("div", { class: "shape shape-1" }),
3580
+ _("div", { class: "shape shape-2" }),
3581
+ _("div", { class: "shape shape-3" })
3693
3582
  ], -1)),
3694
- c(Bt, {
3583
+ u(xt, {
3695
3584
  name: "fade-scale",
3696
3585
  appear: ""
3697
3586
  }, {
3698
- default: i(() => [
3699
- y("div", Vs, [
3700
- c(Pe, {
3587
+ default: r(() => [
3588
+ _("div", Os, [
3589
+ u(Ae, {
3701
3590
  class: "login-card",
3702
3591
  shadow: "never"
3703
3592
  }, {
3704
- default: i(() => [
3705
- y("div", Us, [
3706
- y("div", qs, [
3707
- f(n).logo ? (r(), v("img", {
3593
+ default: r(() => [
3594
+ _("div", $s, [
3595
+ _("div", Bs, [
3596
+ h(n).logo ? (i(), v("img", {
3708
3597
  key: 0,
3709
- src: f(n).logo,
3598
+ src: h(n).logo,
3710
3599
  alt: "Logo",
3711
3600
  class: "logo-img"
3712
- }, null, 8, Hs)) : (r(), v("div", Fs, A(w.value), 1))
3601
+ }, null, 8, As)) : (i(), v("div", Rs, B(S.value), 1))
3713
3602
  ]),
3714
- y("h1", Gs, A(f(n).title || "OMS"), 1),
3715
- S[3] || (S[3] = y("p", { class: "login-subtitle" }, "欢迎回来,请登录您的账户", -1))
3603
+ _("h1", Ps, B(h(n).title || "OMS"), 1),
3604
+ x[3] || (x[3] = _("p", { class: "login-subtitle" }, "欢迎回来,请登录您的账户", -1))
3716
3605
  ]),
3717
- c(W, {
3606
+ u(ee, {
3718
3607
  ref: "loginForm",
3719
3608
  model: b.value,
3720
3609
  class: "login-form",
3721
3610
  size: "large",
3722
- onSubmit: He(x, ["prevent"])
3611
+ onSubmit: Ne(w, ["prevent"])
3723
3612
  }, {
3724
- default: i(() => [
3725
- c(z, { prop: "username" }, {
3726
- default: i(() => [
3727
- c(K, {
3613
+ default: r(() => [
3614
+ u(G, { prop: "username" }, {
3615
+ default: r(() => [
3616
+ u(F, {
3728
3617
  modelValue: b.value.username,
3729
- "onUpdate:modelValue": S[0] || (S[0] = (ee) => b.value.username = ee),
3618
+ "onUpdate:modelValue": x[0] || (x[0] = (W) => b.value.username = W),
3730
3619
  placeholder: "用户名",
3731
3620
  "prefix-icon": "User",
3732
3621
  class: "custom-input"
@@ -3734,11 +3623,11 @@ const Bs = /* @__PURE__ */ G({
3734
3623
  ]),
3735
3624
  _: 1
3736
3625
  }),
3737
- c(z, { prop: "password" }, {
3738
- default: i(() => [
3739
- c(K, {
3626
+ u(G, { prop: "password" }, {
3627
+ default: r(() => [
3628
+ u(F, {
3740
3629
  modelValue: b.value.password,
3741
- "onUpdate:modelValue": S[1] || (S[1] = (ee) => b.value.password = ee),
3630
+ "onUpdate:modelValue": x[1] || (x[1] = (W) => b.value.password = W),
3742
3631
  type: "password",
3743
3632
  placeholder: "密码",
3744
3633
  "show-password": "",
@@ -3748,60 +3637,60 @@ const Bs = /* @__PURE__ */ G({
3748
3637
  ]),
3749
3638
  _: 1
3750
3639
  }),
3751
- u.value ? (r(), h(z, {
3640
+ c.value ? (i(), m(G, {
3752
3641
  key: 0,
3753
3642
  prop: "captcha"
3754
3643
  }, {
3755
- default: i(() => [
3756
- y("div", Ks, [
3757
- c(K, {
3644
+ default: r(() => [
3645
+ _("div", Ls, [
3646
+ u(F, {
3758
3647
  modelValue: b.value.captcha,
3759
- "onUpdate:modelValue": S[2] || (S[2] = (ee) => b.value.captcha = ee),
3648
+ "onUpdate:modelValue": x[2] || (x[2] = (W) => b.value.captcha = W),
3760
3649
  placeholder: "验证码",
3761
3650
  "prefix-icon": "Key",
3762
3651
  class: "custom-input captcha-input"
3763
3652
  }, null, 8, ["modelValue"]),
3764
- y("div", {
3653
+ _("div", {
3765
3654
  class: "captcha-img-box",
3766
- onClick: C
3655
+ onClick: I
3767
3656
  }, [
3768
- y("img", {
3769
- src: d.value + "/user/captcha?ts=" + m.value,
3657
+ _("img", {
3658
+ src: d.value + "/user/captcha?ts=" + f.value,
3770
3659
  title: "点击刷新",
3771
3660
  class: "captcha-img"
3772
- }, null, 8, zs)
3661
+ }, null, 8, Ms)
3773
3662
  ])
3774
3663
  ])
3775
3664
  ]),
3776
3665
  _: 1
3777
3666
  })) : $("", !0),
3778
- a.value ? (r(), v("div", Js, [
3779
- c(k, null, {
3780
- default: i(() => [
3781
- c(f(On))
3667
+ a.value ? (i(), v("div", Ds, [
3668
+ u(g, null, {
3669
+ default: r(() => [
3670
+ u(h(Sn))
3782
3671
  ]),
3783
3672
  _: 1
3784
3673
  }),
3785
- y("span", null, A(a.value), 1)
3674
+ _("span", null, B(a.value), 1)
3786
3675
  ])) : $("", !0),
3787
- c(P, {
3676
+ u(M, {
3788
3677
  class: "submit-button",
3789
3678
  type: "primary",
3790
3679
  loading: p.value,
3791
3680
  disabled: !O.value,
3792
3681
  "native-type": "submit",
3793
- onClick: x
3682
+ onClick: w
3794
3683
  }, {
3795
- default: i(() => [...S[4] || (S[4] = [
3796
- I(" 登 录 ", -1)
3684
+ default: r(() => [...x[4] || (x[4] = [
3685
+ T(" 登 录 ", -1)
3797
3686
  ])]),
3798
3687
  _: 1
3799
3688
  }, 8, ["loading", "disabled"]),
3800
- Object.keys(f(n).sso || {}).length > 0 ? (r(), v("div", Ws, [...S[5] || (S[5] = [
3801
- y("span", null, "其他登录方式", -1)
3689
+ Object.keys(h(n).sso || {}).length > 0 ? (i(), v("div", js, [...x[5] || (x[5] = [
3690
+ _("span", null, "其他登录方式", -1)
3802
3691
  ])])) : $("", !0),
3803
- S[6] || (S[6] = y("div", { class: "sso-container" }, [
3804
- y("div", { id: "sso-qrcode" })
3692
+ x[6] || (x[6] = _("div", { class: "sso-container" }, [
3693
+ _("div", { id: "sso-qrcode" })
3805
3694
  ], -1))
3806
3695
  ]),
3807
3696
  _: 1
@@ -3809,7 +3698,7 @@ const Bs = /* @__PURE__ */ G({
3809
3698
  ]),
3810
3699
  _: 1
3811
3700
  }),
3812
- y("div", Qs, " © " + A((/* @__PURE__ */ new Date()).getFullYear()) + " " + A(f(n).title || "OMS") + ". All rights reserved. ", 1)
3701
+ _("div", Ns, " © " + B((/* @__PURE__ */ new Date()).getFullYear()) + " " + B(h(n).title || "OMS") + ". All rights reserved. ", 1)
3813
3702
  ])
3814
3703
  ]),
3815
3704
  _: 1
@@ -3817,12 +3706,12 @@ const Bs = /* @__PURE__ */ G({
3817
3706
  ]);
3818
3707
  };
3819
3708
  }
3820
- }), Zs = {
3709
+ }), Us = {
3821
3710
  name: "NotFoundPage"
3822
- }, Ys = { class: "not-found" };
3823
- function ea(e, t, o, n, l, s) {
3824
- return r(), v("div", Ys, [...t[0] || (t[0] = [
3825
- y("svg", {
3711
+ }, qs = { class: "not-found" };
3712
+ function Hs(e, t, o, n, l, s) {
3713
+ return i(), v("div", qs, [...t[0] || (t[0] = [
3714
+ _("svg", {
3826
3715
  width: "380px",
3827
3716
  height: "500px",
3828
3717
  viewBox: "0 0 837 1045",
@@ -3831,7 +3720,7 @@ function ea(e, t, o, n, l, s) {
3831
3720
  "xmlns:xlink": "http://www.w3.org/1999/xlink",
3832
3721
  "xmlns:sketch": "http://www.bohemiancoding.com/sketch/ns"
3833
3722
  }, [
3834
- y("g", {
3723
+ _("g", {
3835
3724
  id: "Page-1",
3836
3725
  stroke: "none",
3837
3726
  "stroke-width": "1",
@@ -3839,35 +3728,35 @@ function ea(e, t, o, n, l, s) {
3839
3728
  "fill-rule": "evenodd",
3840
3729
  "sketch:type": "MSPage"
3841
3730
  }, [
3842
- y("path", {
3731
+ _("path", {
3843
3732
  id: "Polygon-1",
3844
3733
  d: "M353,9 L626.664028,170 L626.664028,487 L353,642 L79.3359724,487 L79.3359724,170 L353,9 Z",
3845
3734
  stroke: "#007FB2",
3846
3735
  "stroke-width": "6",
3847
3736
  "sketch:type": "MSShapeGroup"
3848
3737
  }),
3849
- y("path", {
3738
+ _("path", {
3850
3739
  id: "Polygon-2",
3851
3740
  d: "M78.5,529 L147,569.186414 L147,648.311216 L78.5,687 L10,648.311216 L10,569.186414 L78.5,529 Z",
3852
3741
  stroke: "#EF4A5B",
3853
3742
  "stroke-width": "6",
3854
3743
  "sketch:type": "MSShapeGroup"
3855
3744
  }),
3856
- y("path", {
3745
+ _("path", {
3857
3746
  id: "Polygon-3",
3858
3747
  d: "M773,186 L827,217.538705 L827,279.636651 L773,310 L719,279.636651 L719,217.538705 L773,186 Z",
3859
3748
  stroke: "#795D9C",
3860
3749
  "stroke-width": "6",
3861
3750
  "sketch:type": "MSShapeGroup"
3862
3751
  }),
3863
- y("path", {
3752
+ _("path", {
3864
3753
  id: "Polygon-4",
3865
3754
  d: "M639,529 L773,607.846761 L773,763.091627 L639,839 L505,763.091627 L505,607.846761 L639,529 Z",
3866
3755
  stroke: "#F2773F",
3867
3756
  "stroke-width": "6",
3868
3757
  "sketch:type": "MSShapeGroup"
3869
3758
  }),
3870
- y("path", {
3759
+ _("path", {
3871
3760
  id: "Polygon-5",
3872
3761
  d: "M281,801 L383,861.025276 L383,979.21169 L281,1037 L179,979.21169 L179,861.025276 L281,801 Z",
3873
3762
  stroke: "#36B455",
@@ -3876,12 +3765,12 @@ function ea(e, t, o, n, l, s) {
3876
3765
  })
3877
3766
  ])
3878
3767
  ], -1),
3879
- y("div", { class: "message-box" }, [
3880
- y("h1", null, "404"),
3881
- y("p", null, "Page not found"),
3882
- y("div", { class: "buttons-con" }, [
3883
- y("div", { class: "action-link-wrap" }, [
3884
- y("a", {
3768
+ _("div", { class: "message-box" }, [
3769
+ _("h1", null, "404"),
3770
+ _("p", null, "Page not found"),
3771
+ _("div", { class: "buttons-con" }, [
3772
+ _("div", { class: "action-link-wrap" }, [
3773
+ _("a", {
3885
3774
  href: "",
3886
3775
  class: "link-button"
3887
3776
  }, "Go to Home Page")
@@ -3890,10 +3779,10 @@ function ea(e, t, o, n, l, s) {
3890
3779
  ], -1)
3891
3780
  ])]);
3892
3781
  }
3893
- const ta = /* @__PURE__ */ L(Zs, [["render", ea], ["__scopeId", "data-v-26068803"]]), oa = [
3782
+ const Fs = /* @__PURE__ */ R(Us, [["render", Hs], ["__scopeId", "data-v-26068803"]]), Gs = [
3894
3783
  {
3895
3784
  path: "/",
3896
- component: oo,
3785
+ component: Jt,
3897
3786
  redirect: "/dashboard",
3898
3787
  name: "Root",
3899
3788
  meta: {
@@ -3903,49 +3792,49 @@ const ta = /* @__PURE__ */ L(Zs, [["render", ea], ["__scopeId", "data-v-26068803
3903
3792
  {
3904
3793
  path: "dashboard",
3905
3794
  name: "Dashboard",
3906
- component: nl,
3795
+ component: Qn,
3907
3796
  meta: { title: "Dashboard", icon: "el-icon-help", menuType: 2, keepAlive: !0 }
3908
3797
  }
3909
3798
  ]
3910
3799
  },
3911
3800
  {
3912
3801
  path: "/login",
3913
- component: Xs,
3802
+ component: Vs,
3914
3803
  meta: { title: "用户登录", menuType: 0 },
3915
3804
  hidden: !0
3916
3805
  },
3917
3806
  {
3918
3807
  path: "/404",
3919
- component: ta,
3808
+ component: Fs,
3920
3809
  meta: { menuType: 0 },
3921
3810
  hidden: !0
3922
3811
  }
3923
- ], le = Yo({
3924
- history: en(),
3925
- routes: oa
3812
+ ], le = zo({
3813
+ history: Jo(),
3814
+ routes: Gs
3926
3815
  });
3927
- Fe.configure({ showSpinner: !1 });
3928
- function na(e) {
3816
+ Ve.configure({ showSpinner: !1 });
3817
+ function Ks(e) {
3929
3818
  e.beforeEach((t, o, n) => {
3930
- Fe.start(), t.preHash = location.hash.replace("#", ""), n();
3819
+ Ve.start(), t.preHash = location.hash.replace("#", ""), n();
3931
3820
  }), e.afterEach((t) => {
3932
- const o = N(D);
3821
+ const o = j(L);
3933
3822
  t.matched.length > 0 && o.updateState({
3934
3823
  key: "path",
3935
3824
  value: t.matched[t.matched.length - 1].path.replace("(\\d+)", "")
3936
- }), Fe.done();
3825
+ }), Ve.done();
3937
3826
  });
3938
3827
  }
3939
- function la() {
3940
- return N(D).isLodeRemoteRoutes;
3828
+ function zs() {
3829
+ return j(L).isLodeRemoteRoutes;
3941
3830
  }
3942
- function no() {
3943
- return V(D).whiteRoutes || [];
3831
+ function Wt() {
3832
+ return U(L).whiteRoutes || [];
3944
3833
  }
3945
- function sa() {
3946
- return N(D).token;
3834
+ function Js() {
3835
+ return j(L).token;
3947
3836
  }
3948
- class lo {
3837
+ class Qt {
3949
3838
  type = "qrcode";
3950
3839
  flag() {
3951
3840
  }
@@ -3955,14 +3844,14 @@ class lo {
3955
3844
  showQrCode() {
3956
3845
  }
3957
3846
  }
3958
- class Ir extends lo {
3847
+ class hr extends Qt {
3959
3848
  type = "jump";
3960
3849
  client_id = "";
3961
3850
  constructor(t) {
3962
3851
  super(), this.client_id = t.client_id;
3963
3852
  }
3964
3853
  flag() {
3965
- const t = Pt("code");
3854
+ const t = Ct("code");
3966
3855
  if (t)
3967
3856
  return {
3968
3857
  ticket: t,
@@ -3974,7 +3863,7 @@ class Ir extends lo {
3974
3863
  location.replace(`https://github.com/login/oauth/authorize?client_id=${this.client_id}&redirect_uri${n}`);
3975
3864
  }
3976
3865
  }
3977
- class Cr extends lo {
3866
+ class br extends Qt {
3978
3867
  type = "qrcode";
3979
3868
  qrCodeUrl = "https://login.dingtalk.com/login/qrcode.htm?goto={goto}&style={style}";
3980
3869
  reloadUrl = "https://oapi.dingtalk.com/connect/oauth2/sns_authorize?response_type=code&scope=snsapi_login&state=&appid={appid}&redirect_uri={redirect_uri}";
@@ -3987,7 +3876,7 @@ class Cr extends lo {
3987
3876
  super();
3988
3877
  }
3989
3878
  flag() {
3990
- const t = Pt("code");
3879
+ const t = Ct("code");
3991
3880
  if (t)
3992
3881
  return {
3993
3882
  ticket: t,
@@ -4000,63 +3889,63 @@ class Cr extends lo {
4000
3889
  appid: this.appid,
4001
3890
  redirect_uri: encodeURIComponent(this.redirectUri)
4002
3891
  };
4003
- return re(this.reloadUrl, s) + "&" + Ho(l || {});
3892
+ return ie(this.reloadUrl, s) + "&" + Do(l || {});
4004
3893
  }, o = () => {
4005
3894
  const l = {
4006
3895
  goto: encodeURIComponent(t()),
4007
3896
  style: encodeURIComponent(this.style)
4008
3897
  };
4009
- return re(this.qrCodeUrl, l);
3898
+ return ie(this.qrCodeUrl, l);
4010
3899
  }, n = (l) => {
4011
3900
  const { origin: s, data: a } = l;
4012
3901
  s === "https://login.dingtalk.com" && (window.location.href = t({ loginTmpCode: a }));
4013
3902
  };
4014
- this.iframe.src = o(), qo({ elId: this.elId, attrs: this.iframe }), typeof window.addEventListener < "u" ? window.addEventListener(
3903
+ this.iframe.src = o(), Mo({ elId: this.elId, attrs: this.iframe }), typeof window.addEventListener < "u" ? window.addEventListener(
4015
3904
  "message",
4016
3905
  (l) => n(l),
4017
3906
  !1
4018
3907
  ) : typeof window.attachEvent < "u" && window.attachEvent("onmessage", (l) => this.onScanSuccess(l));
4019
3908
  }
4020
3909
  }
4021
- const aa = {};
4022
- function ia() {
4023
- return q(V(D).sso || {}, aa);
3910
+ const Ws = {};
3911
+ function Qs() {
3912
+ return q(U(L).sso || {}, Ws);
4024
3913
  }
4025
- function ra() {
4026
- const e = ia(), t = V(D).activeSsoKey || "", o = e[t];
3914
+ function Xs() {
3915
+ const e = Qs(), t = U(L).activeSsoKey || "", o = e[t];
4027
3916
  if (o !== void 0)
4028
3917
  return o();
4029
3918
  }
4030
- function ca(e) {
3919
+ function Zs(e) {
4031
3920
  e.beforeEach(async (t, o, n) => {
4032
- if (no().indexOf(t.path) !== -1) {
3921
+ if (Wt().indexOf(t.path) !== -1) {
4033
3922
  n();
4034
3923
  return;
4035
3924
  }
4036
- if (sa()) {
3925
+ if (Js()) {
4037
3926
  t.query?.redirect ? n(t.query?.redirect) : n();
4038
3927
  return;
4039
3928
  }
4040
- const s = t.query.redirect || t.path, a = ra();
3929
+ const s = t.query.redirect || t.path, a = Xs();
4041
3930
  if (!a) {
4042
3931
  n(`/login?redirect=${s}`);
4043
3932
  return;
4044
3933
  }
4045
- const u = a.flag(), d = N(D);
4046
- if (u && await d.login(zo(u) ? u : { ticket: u })) {
3934
+ const c = a.flag(), d = j(L);
3935
+ if (c && await d.login(Uo(c) ? c : { ticket: c })) {
4047
3936
  n();
4048
3937
  return;
4049
3938
  }
4050
3939
  a.jumpToLoginPage(n, `/login?redirect=${s}`);
4051
3940
  });
4052
3941
  }
4053
- const ua = {}, da = { class: "loading preloader" };
4054
- function pa(e, t) {
4055
- return r(), v("div", da, [...t[0] || (t[0] = [
4056
- y("div", { class: "preloader-inner" }, null, -1)
3942
+ const Ys = {}, ea = { class: "loading preloader" };
3943
+ function ta(e, t) {
3944
+ return i(), v("div", ea, [...t[0] || (t[0] = [
3945
+ _("div", { class: "preloader-inner" }, null, -1)
4057
3946
  ])]);
4058
3947
  }
4059
- const ma = /* @__PURE__ */ L(ua, [["render", pa]]), fa = {
3948
+ const oa = /* @__PURE__ */ R(Ys, [["render", ta]]), na = {
4060
3949
  name: "VNotice",
4061
3950
  props: {
4062
3951
  dataApi: {
@@ -4085,52 +3974,52 @@ const ma = /* @__PURE__ */ L(ua, [["render", pa]]), fa = {
4085
3974
  this.hasNotice = Object.keys(this.$props.notice).length > 0, this.noticeProps = this.$props.notice;
4086
3975
  }
4087
3976
  };
4088
- function ha(e, t, o, n, l, s) {
4089
- const a = lt;
4090
- return r(), v("div", null, [
4091
- l.hasNotice ? (r(), h(a, Z(X({ key: 0 }, l.noticeProps)), null, 16)) : $("", !0)
3977
+ function la(e, t, o, n, l, s) {
3978
+ const a = et;
3979
+ return i(), v("div", null, [
3980
+ l.hasNotice ? (i(), m(a, Z(X({ key: 0 }, l.noticeProps)), null, 16)) : $("", !0)
4092
3981
  ]);
4093
3982
  }
4094
- const ba = /* @__PURE__ */ L(fa, [["render", ha]]), ya = ["innerHTML"], _a = /* @__PURE__ */ G({
3983
+ const sa = /* @__PURE__ */ R(na, [["render", la]]), aa = ["innerHTML"], ia = /* @__PURE__ */ z({
4095
3984
  __name: "PageLoad",
4096
3985
  props: {
4097
3986
  schemaHandler: { type: Function, default: (e) => e },
4098
3987
  schemaApi: { default: "" }
4099
3988
  },
4100
3989
  setup(e) {
4101
- const t = e, o = Y(), n = V(), l = N(), s = Q(), a = T(!0), u = T(!1), d = T({}), m = T(""), p = T({}), b = T([]), w = T(!1), C = g(() => l.env), O = g(() => n);
4102
- return We(() => {
4103
- const x = s.path.split("/").filter((k) => k), _ = x.length > 1 ? x.slice(0, x.length - 1).join("/") : x[0], S = "/schema" + s.meta.path, K = { params: s.params };
4104
- (window?.App?.config?.globalProperties?.$http).get(t.schemaApi || S, K).then(({ data: k }) => {
4105
- a.value = !1, ce(k) && (k.notice !== void 0 && (u.value = !0, Ze(k.notice) ? d.value = { title: k.notice } : ce(k.notice) && (d.value = k.notice, m.value = k.notice.noticeApi), delete k.notice), b.value = k.ownerNames || [], w.value = k.serviceOffLine || !1), p.value = t.schemaHandler(k, _), o.SET_PAGE_JSON_SCHEMA({ page: s.path, json: p.value });
3990
+ const t = e, o = Y(), n = U(), l = j(), s = Q(), a = C(!0), c = C(!1), d = C({}), f = C(""), p = C({}), b = C([]), S = C(!1), I = k(() => l.env), O = k(() => n);
3991
+ return Ge(() => {
3992
+ const w = s.path.split("/").filter((g) => g), y = w.length > 1 ? w.slice(0, w.length - 1).join("/") : w[0], x = "/schema" + s.meta.path, F = { params: s.params };
3993
+ (window?.App?.config?.globalProperties?.$http).get(t.schemaApi || x, F).then(({ data: g }) => {
3994
+ a.value = !1, re(g) && (g.notice !== void 0 && (c.value = !0, Je(g.notice) ? d.value = { title: g.notice } : re(g.notice) && (d.value = g.notice, f.value = g.notice.noticeApi), delete g.notice), b.value = g.ownerNames || [], S.value = g.serviceOffLine || !1), p.value = t.schemaHandler(g, y), o.SET_PAGE_JSON_SCHEMA({ page: s.path, json: p.value });
4106
3995
  });
4107
- }), (x, _) => {
4108
- const S = lt;
4109
- return r(), v(R, null, [
4110
- f(b).length > 0 ? (r(), h(S, {
3996
+ }), (w, y) => {
3997
+ const x = et;
3998
+ return i(), v(A, null, [
3999
+ h(b).length > 0 ? (i(), m(x, {
4111
4000
  key: 0,
4112
- title: `该页面功能对应开发: [ ${f(b).join(", ")} ] 有问题可直接企微反馈`,
4001
+ title: `该页面功能对应开发: [ ${h(b).join(", ")} ] 有问题可直接企微反馈`,
4113
4002
  type: "info",
4114
4003
  style: { margin: "0 0 20px 0" },
4115
4004
  closable: !1
4116
4005
  }, null, 8, ["title"])) : $("", !0),
4117
- f(C) === "prod" && f(w) ? (r(), v("div", {
4006
+ h(I) === "prod" && h(S) ? (i(), v("div", {
4118
4007
  key: 1,
4119
4008
  class: "offline-notice",
4120
- innerHTML: f(w) === !0 ? f(O).serviceOffLineNotice : f(w)
4121
- }, null, 8, ya)) : (r(), v(R, { key: 2 }, [
4122
- f(u) ? (r(), h(ba, {
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, {
4123
4012
  key: 0,
4124
- notice: f(d),
4013
+ notice: h(d),
4125
4014
  style: { margin: "0 0 20px 0" },
4126
- "data-api": f(m)
4015
+ "data-api": h(f)
4127
4016
  }, null, 8, ["notice", "data-api"])) : $("", !0),
4128
- f(a) ? (r(), h(ma, { key: 1 })) : fe(x.$slots, "default", Z(X({ key: 2 }, f(p))), void 0, !0)
4017
+ h(a) ? (i(), m(oa, { key: 1 })) : pe(w.$slots, "default", Z(X({ key: 2 }, h(p))), void 0, !0)
4129
4018
  ], 64))
4130
4019
  ], 64);
4131
4020
  };
4132
4021
  }
4133
- }), ke = /* @__PURE__ */ L(_a, [["__scopeId", "data-v-e330fdc7"]]), so = {
4022
+ }), ge = /* @__PURE__ */ R(ia, [["__scopeId", "data-v-e330fdc7"]]), Xt = {
4134
4023
  __name: "table",
4135
4024
  setup(e) {
4136
4025
  const t = (o, n) => {
@@ -4141,44 +4030,44 @@ const ba = /* @__PURE__ */ L(fa, [["render", ha]]), ya = ["innerHTML"], _a = /*
4141
4030
  };
4142
4031
  o.tableProps = q(o.tableProps, { defaultSort: s });
4143
4032
  }
4144
- const l = Object.keys(_e.props);
4033
+ const l = Object.keys(be.props);
4145
4034
  return Object.keys(o).forEach((s) => {
4146
4035
  l.indexOf(s) === -1 && delete o[s];
4147
4036
  }), o.listApi === void 0 && (o.listApi = `/${n}/list`), o;
4148
4037
  };
4149
- return (o, n) => (r(), h(ke, { "schema-handler": t }, {
4150
- default: i((l) => [
4151
- c(f(_e), Z(de(l)), null, 16)
4038
+ return (o, n) => (i(), m(ge, { "schema-handler": t }, {
4039
+ default: r((l) => [
4040
+ u(h(be), Z(ce(l)), null, 16)
4152
4041
  ]),
4153
4042
  _: 1
4154
4043
  }));
4155
4044
  }
4156
- }, ze = {
4045
+ }, He = {
4157
4046
  __name: "form",
4158
4047
  setup(e) {
4159
- const t = Q(), o = $e(), n = (u, d) => {
4160
- const m = Object.keys(ne.props);
4161
- return Object.keys(u).forEach((p) => {
4162
- if (m.indexOf(p) === -1) {
4163
- delete u[p];
4048
+ const t = Q(), o = Te(), n = (c, d) => {
4049
+ const f = Object.keys(ne.props);
4050
+ return Object.keys(c).forEach((p) => {
4051
+ if (f.indexOf(p) === -1) {
4052
+ delete c[p];
4164
4053
  return;
4165
4054
  }
4166
- /.*Api$/.test(p) && (u[p] = re(u[p], t.params));
4167
- }), u.saveApi === void 0 && (t.params.id !== void 0 ? (u.saveApi = `/${d}/update/${t.params.id}`, u.getApi || (u.getApi = `/${d}/get/${t.params.id}`)) : (delete u.getApi, u.saveApi = `/${d}/create`)), u = q({
4055
+ /.*Api$/.test(p) && (c[p] = ie(c[p], t.params));
4056
+ }), c.saveApi === void 0 && (t.params.id !== void 0 ? (c.saveApi = `/${d}/update/${t.params.id}`, c.getApi || (c.getApi = `/${d}/get/${t.params.id}`)) : (delete c.getApi, c.saveApi = `/${d}/create`)), c = q({
4168
4057
  saveApi: d + "/save",
4169
4058
  afterSubmit: "goback",
4170
4059
  afterReset: "goback",
4171
4060
  mod: t.params.id ? "edit" : "create"
4172
- }, u), u;
4173
- }, l = T(0), s = () => {
4174
- po.request({
4061
+ }, c), c;
4062
+ }, l = C(0), s = () => {
4063
+ no.request({
4175
4064
  url: "/form_mutex",
4176
4065
  method: "get",
4177
4066
  params: {
4178
4067
  path: t.fullPath
4179
4068
  }
4180
- }).then((u) => {
4181
- u.data && (clearInterval(l.value), jt.alert(`${u.data}`, "操作提醒", {
4069
+ }).then((c) => {
4070
+ c.data && (clearInterval(l.value), Bt.alert(`${c.data}`, "操作提醒", {
4182
4071
  showClose: !1,
4183
4072
  showCancelButton: !0,
4184
4073
  confirmButtonText: "返回",
@@ -4189,23 +4078,23 @@ const ba = /* @__PURE__ */ L(fa, [["render", ha]]), ya = ["innerHTML"], _a = /*
4189
4078
  }));
4190
4079
  });
4191
4080
  };
4192
- Te(() => {
4193
- const u = V();
4194
- t.params.id !== void 0 && u.formMutex && (s(), l.value = setInterval(s, 2e3));
4195
- }), To(() => {
4081
+ Ie(() => {
4082
+ const c = U();
4083
+ t.params.id !== void 0 && c.formMutex && (s(), l.value = setInterval(s, 2e3));
4084
+ }), So(() => {
4196
4085
  clearInterval(l.value);
4197
4086
  });
4198
4087
  function a() {
4199
4088
  t.query?.goback ? o.push(t.query?.goback) : history.state.back && history.back();
4200
4089
  }
4201
- return (u, d) => (r(), h(ke, { "schema-handler": n }, {
4202
- default: i((m) => [
4203
- c(f(ne), Z(de(m)), null, 16)
4090
+ return (c, d) => (i(), m(ge, { "schema-handler": n }, {
4091
+ default: r((f) => [
4092
+ u(h(ne), Z(ce(f)), null, 16)
4204
4093
  ]),
4205
4094
  _: 1
4206
4095
  }));
4207
4096
  }
4208
- }, va = G({
4097
+ }, ra = z({
4209
4098
  name: "VTree",
4210
4099
  components: {
4211
4100
  VForm: ne
@@ -4279,7 +4168,7 @@ const ba = /* @__PURE__ */ L(fa, [["render", ha]]), ya = ["innerHTML"], _a = /*
4279
4168
  return ["", "新建", "编辑"][this.type];
4280
4169
  },
4281
4170
  formProps() {
4282
- let e = re(this.$props.saveApi, this.formData);
4171
+ let e = ie(this.$props.saveApi, this.formData);
4283
4172
  return this.type === 1 && (e = this.$props.createApi), {
4284
4173
  saveApi: e,
4285
4174
  getApi: this.$props.getApi,
@@ -4304,7 +4193,7 @@ const ba = /* @__PURE__ */ L(fa, [["render", ha]]), ya = ["innerHTML"], _a = /*
4304
4193
  },
4305
4194
  append(e, t) {
4306
4195
  this.type = 1;
4307
- const o = { pid: e.id, [this.$props.props?.levelKey ?? "level"]: t.level + 1, ...Fo(this.$props.props?.effectData, e) };
4196
+ const o = { pid: e.id, [this.$props.props?.levelKey ?? "level"]: t.level + 1, ...jo(this.$props.props?.effectData, e) };
4308
4197
  e.children || (e.children = []), this.formData = o, this.formkey++, e.children.push(o), this.treeData = [...this.treeData];
4309
4198
  },
4310
4199
  canAppend(e, t) {
@@ -4318,7 +4207,7 @@ const ba = /* @__PURE__ */ L(fa, [["render", ha]]), ya = ["innerHTML"], _a = /*
4318
4207
  remove(e) {
4319
4208
  this.$http.request({
4320
4209
  method: "DELETE",
4321
- url: re(this.$props.deleteApi, e)
4210
+ url: ie(this.$props.deleteApi, e)
4322
4211
  }).then(({ code: t }) => {
4323
4212
  t !== 0 ? this.$message.error("操作失败") : this.loadTree();
4324
4213
  });
@@ -4338,46 +4227,46 @@ const ba = /* @__PURE__ */ L(fa, [["render", ha]]), ya = ["innerHTML"], _a = /*
4338
4227
  const l = e.data;
4339
4228
  l.pid = t.data.id, this.$http.request({
4340
4229
  method: "POST",
4341
- url: re(this.$props.saveApi, l),
4230
+ url: ie(this.$props.saveApi, l),
4342
4231
  data: l
4343
4232
  }).then(({ code: s }) => {
4344
4233
  s !== 0 && this.$message.error("操作失败");
4345
4234
  });
4346
4235
  }
4347
4236
  }
4348
- }), ga = { class: "card-header" }, ka = { class: "tree-action" }, wa = { key: 0 }, Sa = {
4237
+ }), ca = { class: "card-header" }, ua = { class: "tree-action" }, da = { key: 0 }, pa = {
4349
4238
  key: 1,
4350
4239
  style: { color: "#E6A23C" }
4351
- }, xa = { class: "card-header" };
4352
- function Ea(e, t, o, n, l, s) {
4353
- const a = ye, u = gn, d = Ae, m = Be, p = M("v-form"), b = ve;
4354
- return r(), h(b, {
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;
4243
+ return i(), m(b, {
4355
4244
  class: "tree-box",
4356
4245
  gutter: 20
4357
4246
  }, {
4358
- default: i(() => [
4359
- c(m, {
4247
+ default: r(() => [
4248
+ u(f, {
4360
4249
  span: 8,
4361
4250
  class: "tree-tree"
4362
4251
  }, {
4363
- default: i(() => [
4364
- c(d, { shadow: "never" }, {
4365
- header: i(() => [
4366
- y("div", ga, [
4367
- t[3] || (t[3] = y("span", null, "列表", -1)),
4368
- c(a, {
4252
+ default: r(() => [
4253
+ u(d, { shadow: "never" }, {
4254
+ header: r(() => [
4255
+ _("div", ca, [
4256
+ t[3] || (t[3] = _("span", null, "列表", -1)),
4257
+ u(a, {
4369
4258
  type: "text",
4370
4259
  onClick: t[0] || (t[0] = () => e.appendNew())
4371
4260
  }, {
4372
- default: i(() => [...t[2] || (t[2] = [
4373
- I("添加", -1)
4261
+ default: r(() => [...t[2] || (t[2] = [
4262
+ T("添加", -1)
4374
4263
  ])]),
4375
4264
  _: 1
4376
4265
  })
4377
4266
  ])
4378
4267
  ]),
4379
- default: i(() => [
4380
- (e.treeData || []).length > 0 ? (r(), h(u, X({
4268
+ default: r(() => [
4269
+ (e.treeData || []).length > 0 ? (i(), m(c, X({
4381
4270
  key: 0,
4382
4271
  style: { height: "100vh" },
4383
4272
  data: e.treeData,
@@ -4388,40 +4277,40 @@ function Ea(e, t, o, n, l, s) {
4388
4277
  "allow-drop": e.allowDrop,
4389
4278
  onNodeDragEnd: e.handleDragEnd
4390
4279
  }), {
4391
- default: i(({ node: w, data: C }) => [
4392
- y("span", ka, [
4393
- C[e.localTreeProps.props.label] ? (r(), v("span", wa, A(C[e.localTreeProps.props.label]), 1)) : (r(), v("span", Sa, "请在右侧表单中修改 --> ")),
4394
- y("span", null, [
4395
- C[e.localTreeProps.props.label] ? (r(), h(a, {
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, "请在右侧表单中修改 --> ")),
4283
+ _("span", null, [
4284
+ I[e.localTreeProps.props.label] ? (i(), m(a, {
4396
4285
  key: 0,
4397
4286
  class: "button",
4398
4287
  type: "text",
4399
- onClick: () => e.onclick(C)
4288
+ onClick: () => e.onclick(I)
4400
4289
  }, {
4401
- default: i(() => [...t[4] || (t[4] = [
4402
- I("编辑", -1)
4290
+ default: r(() => [...t[4] || (t[4] = [
4291
+ T("编辑", -1)
4403
4292
  ])]),
4404
4293
  _: 1
4405
4294
  }, 8, ["onClick"])) : $("", !0),
4406
- e.canAppend(C, w) ? (r(), h(a, {
4295
+ e.canAppend(I, S) ? (i(), m(a, {
4407
4296
  key: 1,
4408
4297
  class: "button",
4409
4298
  type: "text",
4410
- onClick: () => e.append(C, w)
4299
+ onClick: () => e.append(I, S)
4411
4300
  }, {
4412
- default: i(() => [...t[5] || (t[5] = [
4413
- I("添加", -1)
4301
+ default: r(() => [...t[5] || (t[5] = [
4302
+ T("添加", -1)
4414
4303
  ])]),
4415
4304
  _: 1
4416
4305
  }, 8, ["onClick"])) : $("", !0),
4417
- C.children === void 0 || C.children.length === 0 ? (r(), h(a, {
4306
+ I.children === void 0 || I.children.length === 0 ? (i(), m(a, {
4418
4307
  key: 2,
4419
4308
  class: "button",
4420
4309
  type: "text",
4421
- onClick: () => e.remove(C)
4310
+ onClick: () => e.remove(I)
4422
4311
  }, {
4423
- default: i(() => [...t[6] || (t[6] = [
4424
- I("删除", -1)
4312
+ default: r(() => [...t[6] || (t[6] = [
4313
+ T("删除", -1)
4425
4314
  ])]),
4426
4315
  _: 1
4427
4316
  }, 8, ["onClick"])) : $("", !0)
@@ -4436,25 +4325,25 @@ function Ea(e, t, o, n, l, s) {
4436
4325
  ]),
4437
4326
  _: 1
4438
4327
  }),
4439
- c(m, {
4328
+ u(f, {
4440
4329
  span: 16,
4441
4330
  class: "tree-form"
4442
4331
  }, {
4443
- default: i(() => [
4444
- e.type ? (r(), h(d, {
4332
+ default: r(() => [
4333
+ e.type ? (i(), m(d, {
4445
4334
  key: 0,
4446
4335
  shadow: "never"
4447
4336
  }, {
4448
- header: i(() => [
4449
- y("div", xa, [
4450
- y("span", null, A(e.formType), 1)
4337
+ header: r(() => [
4338
+ _("div", fa, [
4339
+ _("span", null, B(e.formType), 1)
4451
4340
  ])
4452
4341
  ]),
4453
- default: i(() => [
4454
- (r(), h(p, X({
4342
+ default: r(() => [
4343
+ (i(), m(p, X({
4455
4344
  key: e.formkey,
4456
4345
  modelValue: e.formData,
4457
- "onUpdate:modelValue": t[1] || (t[1] = (w) => e.formData = w)
4346
+ "onUpdate:modelValue": t[1] || (t[1] = (S) => e.formData = S)
4458
4347
  }, e.formProps, { onSubmit: e.submit }), null, 16, ["modelValue", "onSubmit"]))
4459
4348
  ]),
4460
4349
  _: 1
@@ -4466,34 +4355,34 @@ function Ea(e, t, o, n, l, s) {
4466
4355
  _: 1
4467
4356
  });
4468
4357
  }
4469
- const Et = /* @__PURE__ */ L(va, [["render", Ea]]), Ia = {
4358
+ const _t = /* @__PURE__ */ R(ra, [["render", ma]]), ha = {
4470
4359
  __name: "tree",
4471
4360
  setup(e) {
4472
4361
  const t = (o, n) => {
4473
- const l = Object.keys(Et.props);
4362
+ const l = Object.keys(_t.props);
4474
4363
  return Object.keys(o).forEach((s) => {
4475
4364
  l.indexOf(s) === -1 && delete o[s];
4476
4365
  }), o;
4477
4366
  };
4478
- return (o, n) => (r(), h(ke, { "schema-handler": t }, {
4479
- default: i((l) => [
4480
- c(Et, Z(de(l)), null, 16)
4367
+ return (o, n) => (i(), m(ge, { "schema-handler": t }, {
4368
+ default: r((l) => [
4369
+ u(_t, Z(ce(l)), null, 16)
4481
4370
  ]),
4482
4371
  _: 1
4483
4372
  }));
4484
4373
  }
4485
- }, qe = {
4374
+ }, je = {
4486
4375
  __name: "container",
4487
4376
  setup(e) {
4488
- const t = T(0);
4489
- return tn(() => {
4377
+ const t = C(0);
4378
+ return Wo(() => {
4490
4379
  t.value++;
4491
4380
  }), (o, n) => {
4492
- const l = M("router-view");
4493
- return r(), h(l);
4381
+ const l = P("router-view");
4382
+ return i(), m(l);
4494
4383
  };
4495
4384
  }
4496
- }, Ca = {
4385
+ }, ba = {
4497
4386
  title: {
4498
4387
  text: ""
4499
4388
  },
@@ -4522,34 +4411,34 @@ const Et = /* @__PURE__ */ L(va, [["render", Ea]]), Ia = {
4522
4411
  },
4523
4412
  series: []
4524
4413
  };
4525
- function Ta(e, t, o) {
4414
+ function ya(e, t, o) {
4526
4415
  if (o.length === 0)
4527
4416
  return {};
4528
- let n = q({}, Ca);
4529
- if (n.title.text = e, Ze(t)) {
4417
+ let n = q({}, ba);
4418
+ if (n.title.text = e, Je(t)) {
4530
4419
  const l = [], s = Object.keys(o[0]);
4531
- let a = s[0], u = s.filter((m, p) => p > 0), d = t;
4420
+ let a = s[0], c = s.filter((f, p) => p > 0), d = t;
4532
4421
  if (t.indexOf(":") > -1) {
4533
- const m = t.split(":"), p = m[1].split(",");
4534
- d = m[0], a = p[0], u = p.filter((b, w) => w > 0);
4422
+ const f = t.split(":"), p = f[1].split(",");
4423
+ d = f[0], a = p[0], c = p.filter((b, S) => S > 0);
4535
4424
  }
4536
- u.forEach((m) => {
4425
+ c.forEach((f) => {
4537
4426
  const p = [];
4538
4427
  o.forEach((b) => {
4539
- p.push(b[m]);
4428
+ p.push(b[f]);
4540
4429
  }), n.series.push({
4541
- name: m,
4430
+ name: f,
4542
4431
  type: d,
4543
4432
  smooth: !0,
4544
4433
  data: p
4545
- }), n.legend.data.push(m);
4546
- }), o.forEach((m) => {
4547
- l.push(m[a]);
4434
+ }), n.legend.data.push(f);
4435
+ }), o.forEach((f) => {
4436
+ l.push(f[a]);
4548
4437
  }), n.xAxis.data = l;
4549
4438
  }
4550
- return ce(t) && (n = q(n, t)), n;
4439
+ return re(t) && (n = q(n, t)), n;
4551
4440
  }
4552
- const Oa = G({
4441
+ const _a = z({
4553
4442
  name: "NumberPanel",
4554
4443
  props: {
4555
4444
  dataList: {
@@ -4560,27 +4449,27 @@ const Oa = G({
4560
4449
  data() {
4561
4450
  return {};
4562
4451
  }
4563
- }), $a = { class: "number-panel-title" }, Ba = { class: "number" }, Aa = { class: "name" };
4564
- function Ra(e, t, o, n, l, s) {
4565
- return r(!0), v(R, null, U(e.dataList, (a, u) => (r(), v("span", { key: u }, [
4566
- y("div", $a, [
4567
- (r(!0), v(R, null, U(Object.keys(a), (d, m) => (r(), v("div", {
4568
- key: m,
4452
+ }), va = { class: "number-panel-title" }, ga = { class: "number" }, ka = { class: "name" };
4453
+ function Sa(e, t, o, n, l, s) {
4454
+ return i(!0), v(A, null, V(e.dataList, (a, c) => (i(), v("span", { key: c }, [
4455
+ _("div", va, [
4456
+ (i(!0), v(A, null, V(Object.keys(a), (d, f) => (i(), v("div", {
4457
+ key: f,
4569
4458
  class: "title-inner"
4570
4459
  }, [
4571
- y("p", Ba, A(a[d]), 1),
4572
- y("p", Aa, A(d), 1)
4460
+ _("p", ga, B(a[d]), 1),
4461
+ _("p", ka, B(d), 1)
4573
4462
  ]))), 128))
4574
4463
  ])
4575
4464
  ]))), 128);
4576
4465
  }
4577
- const Pa = /* @__PURE__ */ L(Oa, [["render", Ra], ["__scopeId", "data-v-cc0d8293"]]), La = {
4466
+ const wa = /* @__PURE__ */ R(_a, [["render", Sa], ["__scopeId", "data-v-cc0d8293"]]), xa = {
4578
4467
  components: {
4579
- Chart: wn,
4580
- Md: Bn,
4581
- Json: st,
4582
- Table: _e,
4583
- Number: Pa,
4468
+ Chart: bn,
4469
+ Md: xn,
4470
+ Json: tt,
4471
+ Table: be,
4472
+ Number: wa,
4584
4473
  Html: ""
4585
4474
  },
4586
4475
  props: {
@@ -4601,17 +4490,17 @@ const Pa = /* @__PURE__ */ L(Oa, [["render", Ra], ["__scopeId", "data-v-cc0d8293
4601
4490
  };
4602
4491
  if (l === "chart")
4603
4492
  return {
4604
- options: Ta(n.id, n.chart, n.data)
4493
+ options: ya(n.id, n.chart, n.data)
4605
4494
  };
4606
4495
  if (l === "md")
4607
4496
  return {
4608
4497
  source: n.data
4609
4498
  };
4610
4499
  if (l === "table") {
4611
- if (!Lt(n.data))
4500
+ if (!Tt(n.data))
4612
4501
  return { showPagination: !1 };
4613
4502
  const s = [];
4614
- return n.data[0] && Object.keys(n.data[0]).forEach((a, u) => {
4503
+ return n.data[0] && Object.keys(n.data[0]).forEach((a, c) => {
4615
4504
  s.push({ field: a, label: a });
4616
4505
  }), {
4617
4506
  headers: s,
@@ -4625,21 +4514,21 @@ const Pa = /* @__PURE__ */ L(Oa, [["render", Ra], ["__scopeId", "data-v-cc0d8293
4625
4514
  };
4626
4515
  }
4627
4516
  };
4628
- function Ma(e, t, o, n, l, s) {
4629
- const a = Ae, u = Oo("resize");
4630
- return $o((r(), h(a, {
4517
+ function Ea(e, t, o, n, l, s) {
4518
+ const a = $e, c = wo("resize");
4519
+ return xo((i(), m(a, {
4631
4520
  shadow: "never",
4632
4521
  class: "part"
4633
4522
  }, {
4634
- default: i(() => [
4635
- (r(), h(Xe(n.comptype()), Z(de(n.compprops(o.option))), null, 16))
4523
+ default: r(() => [
4524
+ (i(), m(ze(n.comptype()), Z(ce(n.compprops(o.option))), null, 16))
4636
4525
  ]),
4637
4526
  _: 1
4638
4527
  })), [
4639
- [u, !0]
4528
+ [c, !0]
4640
4529
  ]);
4641
4530
  }
4642
- const Da = /* @__PURE__ */ L(La, [["render", Ma], ["__scopeId", "data-v-a5a65cc1"]]), ja = /* @__PURE__ */ G({
4531
+ const Ia = /* @__PURE__ */ R(xa, [["render", Ea], ["__scopeId", "data-v-a5a65cc1"]]), Ca = /* @__PURE__ */ z({
4643
4532
  __name: "index",
4644
4533
  props: {
4645
4534
  filter: {
@@ -4653,10 +4542,10 @@ const Da = /* @__PURE__ */ L(La, [["render", Ma], ["__scopeId", "data-v-a5a65cc1
4653
4542
  },
4654
4543
  setup(e) {
4655
4544
  const t = Q();
4656
- Te(() => {
4545
+ Ie(() => {
4657
4546
  });
4658
- const o = e, n = T({});
4659
- We(() => {
4547
+ const o = e, n = C({});
4548
+ Ge(() => {
4660
4549
  o.filter?.forEach((p) => {
4661
4550
  p.default !== null && (n.value[p.field] = p.default);
4662
4551
  });
@@ -4671,38 +4560,38 @@ const Da = /* @__PURE__ */ L(La, [["render", Ma], ["__scopeId", "data-v-a5a65cc1
4671
4560
  cancelButton: {
4672
4561
  text: "重置"
4673
4562
  }
4674
- }, s = T(1), a = T(o.filter), u = T(o.dataPart), d = g(() => {
4563
+ }, s = C(1), a = C(o.filter), c = C(o.dataPart), d = k(() => {
4675
4564
  let p = t.params.id;
4676
4565
  if (!p) {
4677
4566
  const b = t.path.split("/");
4678
4567
  p = b[b.length - 1];
4679
4568
  }
4680
4569
  return "/focusbi_report/view/" + p;
4681
- }), m = (p) => {
4682
- po.get(d.value, { params: p }).then(({ data: b }) => {
4683
- a.value = b.filter, u.value = b.dataPart, s.value++;
4570
+ }), f = (p) => {
4571
+ no.get(d.value, { params: p }).then(({ data: b }) => {
4572
+ a.value = b.filter, c.value = b.dataPart, s.value++;
4684
4573
  });
4685
4574
  };
4686
4575
  return (p, b) => {
4687
- const w = Ae, C = Be, O = lt, x = ve;
4688
- return r(), h(x, null, {
4689
- default: i(() => [
4690
- f(a).length > 0 ? (r(), h(C, {
4576
+ const S = $e, I = Oe, O = et, w = _e;
4577
+ return i(), m(w, null, {
4578
+ default: r(() => [
4579
+ h(a).length > 0 ? (i(), m(I, {
4691
4580
  key: 0,
4692
4581
  span: 24
4693
4582
  }, {
4694
- default: i(() => [
4695
- c(w, {
4583
+ default: r(() => [
4584
+ u(S, {
4696
4585
  shadow: "never",
4697
4586
  class: "part-filter"
4698
4587
  }, {
4699
- default: i(() => [
4700
- c(f(ne), {
4701
- modelValue: f(n),
4702
- "onUpdate:modelValue": b[0] || (b[0] = (_) => Qe(n) ? n.value = _ : null),
4703
- "form-items": f(a),
4588
+ default: r(() => [
4589
+ u(h(ne), {
4590
+ modelValue: h(n),
4591
+ "onUpdate:modelValue": b[0] || (b[0] = (y) => Ke(n) ? n.value = y : null),
4592
+ "form-items": h(a),
4704
4593
  options: l,
4705
- onSubmit: m
4594
+ onSubmit: f
4706
4595
  }, null, 8, ["modelValue", "form-items"])
4707
4596
  ]),
4708
4597
  _: 1
@@ -4710,27 +4599,27 @@ const Da = /* @__PURE__ */ L(La, [["render", Ma], ["__scopeId", "data-v-a5a65cc1
4710
4599
  ]),
4711
4600
  _: 1
4712
4601
  })) : $("", !0),
4713
- c(C, { span: 24 }, {
4714
- default: i(() => [
4715
- c(x, { gutter: 20 }, {
4716
- default: i(() => [
4717
- (r(!0), v(R, null, U(f(u), (_, S) => (r(), h(C, {
4718
- key: S,
4719
- span: _.col || 24
4602
+ u(I, { span: 24 }, {
4603
+ default: r(() => [
4604
+ u(w, { gutter: 20 }, {
4605
+ default: r(() => [
4606
+ (i(!0), v(A, null, V(h(c), (y, x) => (i(), m(I, {
4607
+ key: x,
4608
+ span: y.col || 24
4720
4609
  }, {
4721
- default: i(() => [
4722
- _.errMsg ? (r(), h(O, {
4610
+ default: r(() => [
4611
+ y.errMsg ? (i(), m(O, {
4723
4612
  key: 1,
4724
- title: _.id + " 片段执行出错",
4613
+ title: y.id + " 片段执行出错",
4725
4614
  type: "error"
4726
4615
  }, {
4727
- default: i(() => [
4728
- I(A(_.errMsg), 1)
4616
+ default: r(() => [
4617
+ T(B(y.errMsg), 1)
4729
4618
  ]),
4730
4619
  _: 2
4731
- }, 1032, ["title"])) : (r(), h(Da, {
4732
- key: f(s),
4733
- option: _
4620
+ }, 1032, ["title"])) : (i(), m(Ia, {
4621
+ key: h(s),
4622
+ option: y
4734
4623
  }, null, 8, ["option"]))
4735
4624
  ]),
4736
4625
  _: 2
@@ -4746,10 +4635,10 @@ const Da = /* @__PURE__ */ L(La, [["render", Ma], ["__scopeId", "data-v-a5a65cc1
4746
4635
  });
4747
4636
  };
4748
4637
  }
4749
- }), Na = {
4638
+ }), Ta = {
4750
4639
  __name: "report",
4751
4640
  setup(e) {
4752
- const t = Q(), o = g(() => {
4641
+ const t = Q(), o = k(() => {
4753
4642
  let n = t.params.id;
4754
4643
  if (!n) {
4755
4644
  const l = t.path.split("/");
@@ -4757,21 +4646,21 @@ const Da = /* @__PURE__ */ L(La, [["render", Ma], ["__scopeId", "data-v-a5a65cc1
4757
4646
  }
4758
4647
  return "/focusbi_report/view/" + n;
4759
4648
  });
4760
- return (n, l) => (r(), h(ke, { "schema-api": f(o) }, {
4761
- default: i((s) => [
4762
- c(ja, Z(de(s)), null, 16)
4649
+ return (n, l) => (i(), m(ge, { "schema-api": h(o) }, {
4650
+ default: r((s) => [
4651
+ u(Ca, Z(ce(s)), null, 16)
4763
4652
  ]),
4764
4653
  _: 1
4765
4654
  }, 8, ["schema-api"]));
4766
4655
  }
4767
- }, Va = (e) => c("div", null, [e.test]), Ua = {
4768
- card: Xo,
4656
+ }, Oa = (e) => u("div", null, [e.test]), $a = {
4657
+ card: Go,
4769
4658
  form: ne,
4770
- table: _e,
4771
- test: Va,
4772
- row: Qo,
4773
- col: Wo
4774
- }, qa = {
4659
+ table: be,
4660
+ test: Oa,
4661
+ row: Fo,
4662
+ col: Ho
4663
+ }, Ba = {
4775
4664
  card: {
4776
4665
  type: "card",
4777
4666
  props: {
@@ -4792,7 +4681,7 @@ const Da = /* @__PURE__ */ L(La, [["render", Ma], ["__scopeId", "data-v-a5a65cc1
4792
4681
  }
4793
4682
  }
4794
4683
  };
4795
- function Ha(e) {
4684
+ function Aa(e) {
4796
4685
  const t = Object.assign({}, e), o = t.type.split(".").reverse(), n = t.span || 24;
4797
4686
  delete t.span;
4798
4687
  let l = {
@@ -4804,9 +4693,9 @@ function Ha(e) {
4804
4693
  type: o[s],
4805
4694
  children: [l]
4806
4695
  };
4807
- return l.span = n, ct([l]);
4696
+ return l.span = n, st([l]);
4808
4697
  }
4809
- function ct(e) {
4698
+ function st(e) {
4810
4699
  const t = {
4811
4700
  type: "row",
4812
4701
  props: {
@@ -4817,10 +4706,10 @@ function ct(e) {
4817
4706
  };
4818
4707
  return e.forEach((o) => {
4819
4708
  let n = Object.assign({}, o);
4820
- if (ce(n.props?.style)) {
4709
+ if (re(n.props?.style)) {
4821
4710
  let a = "";
4822
- Object.keys(n.props?.style).forEach((u) => {
4823
- a += u + ":" + n.props?.style[u] + ";";
4711
+ Object.keys(n.props?.style).forEach((c) => {
4712
+ a += c + ":" + n.props?.style[c] + ";";
4824
4713
  }), n.props.style = a;
4825
4714
  }
4826
4715
  const l = {
@@ -4831,82 +4720,82 @@ function ct(e) {
4831
4720
  t.children.push({
4832
4721
  type: "col",
4833
4722
  props: l,
4834
- children: Ha(n)
4723
+ children: Aa(n)
4835
4724
  });
4836
4725
  return;
4837
4726
  }
4838
4727
  n = q({
4839
4728
  props: {}
4840
- }, qa[n.type] || {}, n);
4841
- const s = ao(n.children);
4842
- s.length && (n.children = ct(s)), t.children.push({
4729
+ }, Ba[n.type] || {}, n);
4730
+ const s = Zt(n.children);
4731
+ s.length && (n.children = st(s)), t.children.push({
4843
4732
  type: "col",
4844
4733
  props: l,
4845
4734
  children: [n]
4846
4735
  });
4847
4736
  }), [t];
4848
4737
  }
4849
- function ao(e) {
4850
- return Lt(e) ? e : ce(e) ? [e] : [];
4738
+ function Zt(e) {
4739
+ return Tt(e) ? e : re(e) ? [e] : [];
4851
4740
  }
4852
- let Je = {};
4853
- const io = (e) => {
4854
- const t = Ua[e.type] || Je[e.type] || e.type;
4855
- return Ao(t, e.props, {
4856
- default: () => ao(e.children).map((o) => io(o))
4741
+ let Fe = {};
4742
+ const Yt = (e) => {
4743
+ const t = $a[e.type] || Fe[e.type] || e.type;
4744
+ return Io(t, e.props, {
4745
+ default: () => Zt(e.children).map((o) => Yt(o))
4857
4746
  });
4858
- }, Fa = (e) => (Object.keys(Je).length === 0 && (Je = Bo().appContext.components), ct(Object.values(e.schema)).map((o) => io(o))), Ga = {
4747
+ }, Ra = (e) => (Object.keys(Fe).length === 0 && (Fe = Eo().appContext.components), st(Object.values(e.schema)).map((o) => Yt(o))), Pa = {
4859
4748
  __name: "custom",
4860
4749
  setup(e) {
4861
- const t = T([]), o = (n, l) => (t.value = Ro(n), n);
4862
- return (n, l) => (r(), h(ke, { "schema-handler": o }, {
4863
- default: i(() => [
4864
- c(f(Fa), { schema: f(t) }, null, 8, ["schema"])
4750
+ const t = C([]), o = (n, l) => (t.value = Co(n), n);
4751
+ return (n, l) => (i(), m(ge, { "schema-handler": o }, {
4752
+ default: r(() => [
4753
+ u(h(Ra), { schema: h(t) }, null, 8, ["schema"])
4865
4754
  ]),
4866
4755
  _: 1
4867
4756
  }));
4868
4757
  }
4869
4758
  };
4870
- let me = {};
4871
- function Tr(e) {
4872
- me = e;
4759
+ let de = {};
4760
+ function yr(e) {
4761
+ de = e;
4873
4762
  }
4874
- const Ka = (e) => {
4763
+ const La = (e) => {
4875
4764
  const t = (o) => {
4876
4765
  const n = "./views/" + o + ".vue";
4877
- return me && me[n] && me[n].default ? me[n].default : (console.error(`自定义组件不存在 ${e.name} ${e.view}`), qe);
4766
+ return de && de[n] && de[n].default ? de[n].default : (console.error(`自定义组件不存在 ${e.name} ${e.view}`), je);
4878
4767
  };
4879
4768
  if (e.path === "#")
4880
- return qe;
4769
+ return je;
4881
4770
  switch (e.page_type) {
4882
4771
  case J.list:
4883
- return so;
4772
+ return Xt;
4884
4773
  case J.form:
4885
- return ze;
4774
+ return He;
4886
4775
  case J.custom:
4887
4776
  case J.localComp:
4888
4777
  return t(e.view || "");
4889
4778
  case J.tree:
4890
- return Ia;
4779
+ return ha;
4891
4780
  case J.report:
4892
- return Na;
4781
+ return Ta;
4893
4782
  case J.customSchema:
4894
- return Ga;
4783
+ return Pa;
4895
4784
  }
4896
- return qe;
4785
+ return je;
4897
4786
  };
4898
- function za(e) {
4787
+ function Ma(e) {
4899
4788
  let t = e.path;
4900
- return e.type === F.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;
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;
4901
4790
  }
4902
- function Ja(e) {
4791
+ function Da(e) {
4903
4792
  return (e.path + e.name).split("/").filter((t) => t).join("_");
4904
4793
  }
4905
- const ro = (e) => {
4906
- const t = e.type !== F.page, o = {
4907
- path: za(e),
4908
- name: e.id + "_" + Ja(e) + "_" + e.path.replaceAll("/", "_"),
4909
- component: Ka(e),
4794
+ const eo = (e) => {
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),
4910
4799
  meta: {
4911
4800
  id: e.id,
4912
4801
  pageId: e.id,
@@ -4918,18 +4807,18 @@ const ro = (e) => {
4918
4807
  keepAlive: !1,
4919
4808
  role: e.role
4920
4809
  },
4921
- children: e.children ? e.children.map((n) => ro(n)) : []
4810
+ children: e.children ? e.children.map((n) => eo(n)) : []
4922
4811
  };
4923
4812
  if (e.page_type === J.entity) {
4924
4813
  const n = e.path + "/list", l = e.path + "/form", s = e.path + "/:id", a = [{
4925
4814
  path: n,
4926
4815
  name: e.name + "列表" + e.id,
4927
- component: so,
4816
+ component: Xt,
4928
4817
  meta: {
4929
4818
  id: e.id + 99999,
4930
4819
  title: "列表",
4931
4820
  hidden: !0,
4932
- menuType: F.hidden,
4821
+ menuType: K.hidden,
4933
4822
  keepAlive: !1,
4934
4823
  pageId: e.id,
4935
4824
  path: e.path
@@ -4937,12 +4826,12 @@ const ro = (e) => {
4937
4826
  }, {
4938
4827
  path: l,
4939
4828
  name: e.name + "新建" + e.id,
4940
- component: ze,
4829
+ component: He,
4941
4830
  meta: {
4942
4831
  id: e.id + 99999 + 1,
4943
4832
  title: "新建",
4944
4833
  hidden: !0,
4945
- menuType: F.hidden,
4834
+ menuType: K.hidden,
4946
4835
  keepAlive: !1,
4947
4836
  pageId: e.id,
4948
4837
  path: e.path
@@ -4950,12 +4839,12 @@ const ro = (e) => {
4950
4839
  }, {
4951
4840
  path: s,
4952
4841
  name: e.name + "编辑" + e.id,
4953
- component: ze,
4842
+ component: He,
4954
4843
  meta: {
4955
4844
  id: e.id + 99999 + 2,
4956
4845
  title: "编辑",
4957
4846
  hidden: !0,
4958
- menuType: F.hidden,
4847
+ menuType: K.hidden,
4959
4848
  keepAlive: !1,
4960
4849
  pageId: e.id,
4961
4850
  path: e.path
@@ -4967,8 +4856,8 @@ const ro = (e) => {
4967
4856
  let n = !0;
4968
4857
  if (o.children.forEach((l) => {
4969
4858
  l.meta && !l.meta.hidden && (n = !1);
4970
- }), o.meta && (o.meta.menuType = t ? F.dir : F.hidden), n) {
4971
- o.meta && (o.meta.menuType = F.menu);
4859
+ }), o.meta && (o.meta.menuType = t ? K.dir : K.hidden), n) {
4860
+ o.meta && (o.meta.menuType = K.menu);
4972
4861
  let l = "/";
4973
4862
  for (let s = 0; s < o.children.length; s++)
4974
4863
  if (o.children[s].path.indexOf("/:") === -1) {
@@ -4979,7 +4868,7 @@ const ro = (e) => {
4979
4868
  }
4980
4869
  }
4981
4870
  return o;
4982
- }, Wa = (e) => {
4871
+ }, ja = (e) => {
4983
4872
  const t = [];
4984
4873
  return e.forEach((o) => {
4985
4874
  const n = {
@@ -4988,28 +4877,28 @@ const ro = (e) => {
4988
4877
  routes: []
4989
4878
  };
4990
4879
  o.routes.forEach((l) => {
4991
- n.routes.push(ro(l));
4880
+ n.routes.push(eo(l));
4992
4881
  }), t.push(n);
4993
4882
  }), t;
4994
- }, Qa = "root", It = (e) => e ? e.split(",").map((t) => t.trim()).filter((t) => !!t) : [], Xa = (e) => {
4995
- const t = typeof e.role == "string" ? e.role : "", o = e.meta && typeof e.meta.role == "string" ? e.meta.role : "", n = [...It(t), ...It(o)];
4883
+ }, Na = "root", vt = (e) => e ? e.split(",").map((t) => t.trim()).filter((t) => !!t) : [], Va = (e) => {
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)];
4996
4885
  return !n.length && e.children && e.children.length ? [] : Array.from(new Set(n));
4997
- }, co = (e) => {
4886
+ }, to = (e) => {
4998
4887
  const t = { ...e };
4999
- return e.meta && (t.meta = { ...e.meta }), e.children && e.children.length && (t.children = e.children.map((o) => co(o))), t;
5000
- }, Za = (e, t) => e.length ? t.length ? e.some((o) => t.includes(o)) : !1 : !0, ut = (e = [], t) => t.includes(Qa) ? e.map((o) => co(o)) : e.reduce((o, n) => {
5001
- const l = Xa(n);
5002
- if (!Za(l, t))
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))
5003
4892
  return o;
5004
4893
  const s = { ...n };
5005
4894
  if (n.meta && (s.meta = { ...n.meta }), n.children && n.children.length) {
5006
- const a = ut(n.children, t);
4895
+ const a = at(n.children, t);
5007
4896
  if (!a.length)
5008
4897
  return o;
5009
4898
  s.children = a;
5010
4899
  }
5011
4900
  return o.push(s), o;
5012
- }, []), Ya = (e) => {
4901
+ }, []), qa = (e) => {
5013
4902
  const t = globalThis.atob(e);
5014
4903
  let o = "";
5015
4904
  for (let n = 0; n < t.length; n++) {
@@ -5021,117 +4910,117 @@ const ro = (e) => {
5021
4910
  } catch {
5022
4911
  return decodeURIComponent(encodeURIComponent(t));
5023
4912
  }
5024
- }, ei = (e) => {
4913
+ }, Ha = (e) => {
5025
4914
  const t = e.replace(/-/g, "+").replace(/_/g, "/"), o = 4 - t.length % 4, n = t + (o < 4 ? "=".repeat(o) : "");
5026
- return typeof globalThis.atob == "function" ? Ya(n) : typeof Buffer < "u" ? Buffer.from(n, "base64").toString("utf-8") : "";
5027
- }, ti = (e) => {
4915
+ return typeof globalThis.atob == "function" ? qa(n) : typeof Buffer < "u" ? Buffer.from(n, "base64").toString("utf-8") : "";
4916
+ }, Fa = (e) => {
5028
4917
  if (!e)
5029
4918
  return null;
5030
4919
  const t = e.split(".");
5031
4920
  if (t.length < 2)
5032
4921
  return null;
5033
4922
  try {
5034
- const o = ei(t[1]);
4923
+ const o = Ha(t[1]);
5035
4924
  return o ? JSON.parse(o) : null;
5036
4925
  } catch {
5037
4926
  return null;
5038
4927
  }
5039
- }, uo = (e) => {
5040
- const t = ti(e);
4928
+ }, oo = (e) => {
4929
+ const t = Fa(e);
5041
4930
  return (t && typeof t.role == "string" ? t.role : "").split(",").map((n) => n.trim()).filter((n) => !!n);
5042
4931
  };
5043
- function oi(e) {
4932
+ function Ga(e) {
5044
4933
  e.beforeEach(async (t, o, n) => {
5045
- if (no().indexOf(t.path) !== -1) {
4934
+ if (Wt().indexOf(t.path) !== -1) {
5046
4935
  n();
5047
4936
  return;
5048
4937
  }
5049
- if (la()) {
4938
+ if (zs()) {
5050
4939
  n();
5051
4940
  return;
5052
4941
  }
5053
- const l = N(D);
4942
+ const l = j(L);
5054
4943
  await l.info();
5055
- const s = await l.loadRemoteRoutes(), a = Wa(s), u = uo(ge()), d = a.map((m) => {
5056
- const p = ut(m.routes, u);
4944
+ const s = await l.loadRemoteRoutes(), a = ja(s), c = oo(ve()), d = a.map((f) => {
4945
+ const p = at(f.routes, c);
5057
4946
  return {
5058
- ...m,
4947
+ ...f,
5059
4948
  routes: p
5060
4949
  };
5061
- }).filter((m) => m.routes.length > 0);
5062
- d.forEach((m) => {
5063
- m.routes.forEach((p) => {
4950
+ }).filter((f) => f.routes.length > 0);
4951
+ d.forEach((f) => {
4952
+ f.routes.forEach((p) => {
5064
4953
  e.addRoute({
5065
4954
  path: "/",
5066
- component: oo,
4955
+ component: Jt,
5067
4956
  children: [p]
5068
4957
  });
5069
4958
  });
5070
4959
  }), e.addRoute({ name: "404", path: "/:pathMatch(.*)*", redirect: "/404", hidden: !0 }), l.updateRemoteRouter(d), await e.replace(t), n();
5071
4960
  });
5072
4961
  }
5073
- function ni(e) {
4962
+ function Ka(e) {
5074
4963
  e.beforeEach(async (t, o, n) => {
5075
- const s = [V(D).title || ""], a = t.matched.length;
5076
- for (let u = a; u > a - 3; u--) {
5077
- const d = t.matched[u - 1];
4964
+ const s = [U(L).title || ""], a = t.matched.length;
4965
+ for (let c = a; c > a - 3; c--) {
4966
+ const d = t.matched[c - 1];
5078
4967
  d?.meta?.title && s.push(d.meta.title + "");
5079
4968
  }
5080
4969
  s.length > 1 && (document.title = s.reverse().join("-")), n();
5081
4970
  }), e.afterEach(async (t, o, n) => {
5082
- const l = Y(D);
4971
+ const l = Y(L);
5083
4972
  Object.keys(t.meta).length > 0 && await l.setCurrentMeta(t.meta);
5084
4973
  });
5085
4974
  }
5086
- function li(e) {
5087
- ca(e), na(e), oi(e), ni(e);
4975
+ function za(e) {
4976
+ Zs(e), Ks(e), Ga(e), Ka(e);
5088
4977
  }
5089
- li(le);
5090
- function si() {
5091
- return N(D).token;
4978
+ za(le);
4979
+ function Ja() {
4980
+ return j(L).token;
5092
4981
  }
5093
- function ai() {
5094
- return N(D).expired;
4982
+ function Wa() {
4983
+ return j(L).expired;
5095
4984
  }
5096
- function Ct(e) {
5097
- Xn({
4985
+ function gt(e) {
4986
+ Fn({
5098
4987
  message: e,
5099
4988
  type: "error",
5100
4989
  duration: 5 * 1e3,
5101
4990
  grouping: !0
5102
4991
  });
5103
4992
  }
5104
- const ii = {
4993
+ const Qa = {
5105
4994
  onFulfilled: function(e) {
5106
4995
  e.headers = e.headers || {};
5107
- const t = si();
4996
+ const t = Ja();
5108
4997
  return t && (e.headers["X-Token"] = t), le.currentRoute.value.meta?.path && (e.headers["X-Path"] = le.currentRoute.value.meta.path), e;
5109
4998
  }
5110
- }, ri = {
4999
+ }, Xa = {
5111
5000
  onFulfilled(e) {
5112
5001
  if (!(e.config?.notHoldApiErr !== void 0 && e.config?.notHoldApiErr === !0) && e.data.code !== 0) {
5113
5002
  const n = e.data.message || `接口请求错误 ${e.config.method}::${e.config.url?.split("?")[0]}`;
5114
5003
  if (e.data.code === 401) {
5115
- if (ai())
5004
+ if (Wa())
5116
5005
  return;
5117
- N(D).SetExpired(), wt.alert("登录信息已过期或未登录, 是否跳转登录", "操作提醒", {
5006
+ j(L).SetExpired(), bt.alert("登录信息已过期或未登录, 是否跳转登录", "操作提醒", {
5118
5007
  showClose: !1,
5119
5008
  confirmButtonText: "重新登录",
5120
5009
  showCancelButton: !0,
5121
5010
  cancelButtonText: "取消",
5122
5011
  callback: (l) => {
5123
- l === "confirm" && (Ft(), location.href = location.origin + location.pathname + location.hash.replace("#", "#/?redirect="), location.reload()), N(D).SetExpired();
5012
+ l === "confirm" && (Dt(), location.href = location.origin + location.pathname + location.hash.replace("#", "#/?redirect="), location.reload()), j(L).SetExpired();
5124
5013
  }
5125
5014
  });
5126
5015
  return;
5127
5016
  } else
5128
- Ct(n);
5017
+ gt(n);
5129
5018
  return Promise.reject(n);
5130
5019
  }
5131
5020
  let o = e.data?.data?._message_box;
5132
- return o !== void 0 && (Ze(o) && (o = {
5021
+ return o !== void 0 && (Je(o) && (o = {
5133
5022
  message: e.data?.data?._message_box
5134
- }), wt({
5023
+ }), bt({
5135
5024
  title: "提示",
5136
5025
  type: "success",
5137
5026
  grouping: !0,
@@ -5139,28 +5028,28 @@ const ii = {
5139
5028
  })), e.data;
5140
5029
  },
5141
5030
  onRejected(e) {
5142
- return Ye.isCancel(e) ? Promise.reject("") : (Ct(`${e.message} ${e.config.method}::${e.config.url?.split("?")[0]}`), Promise.reject(e));
5031
+ return We.isCancel(e) ? Promise.reject("") : (gt(`${e.message} ${e.config.method}::${e.config.url?.split("?")[0]}`), Promise.reject(e));
5143
5032
  }
5144
- }, ci = [
5033
+ }, Za = [
5145
5034
  {
5146
- request: Yn,
5147
- response: el
5035
+ request: Kn,
5036
+ response: zn
5148
5037
  },
5149
5038
  {
5150
- request: ii,
5151
- response: ri
5039
+ request: Qa,
5040
+ response: Xa
5152
5041
  }
5153
5042
  ];
5154
- function dt(e = {}) {
5155
- const t = Re.axios || {}, o = q(t, e || {}), n = Ye.create({
5043
+ function it(e = {}) {
5044
+ const t = Be.axios || {}, o = q(t, e || {}), n = We.create({
5156
5045
  ...o
5157
5046
  // adapter: (c) => cacheAdapter(c, defaultAxios)
5158
5047
  });
5159
- return ci.forEach((l) => {
5048
+ return Za.forEach((l) => {
5160
5049
  n.interceptors.request.use(l.request.onFulfilled, l.request.onRejected), n.interceptors.response.use(l.response.onFulfilled, l.response.onRejected);
5161
5050
  }), n;
5162
5051
  }
5163
- const po = dt(), ui = {
5052
+ const no = it(), Ya = {
5164
5053
  beforeMount(e, t) {
5165
5054
  e.clickOutsideEvent = function(o) {
5166
5055
  e === o.target || e.contains(o.target) || t.value(o, e);
@@ -5169,23 +5058,23 @@ const po = dt(), ui = {
5169
5058
  unmounted(e) {
5170
5059
  document.body.removeEventListener("click", e.clickOutsideEvent);
5171
5060
  }
5172
- }, se = En(), di = {
5061
+ }, se = vn(), ei = {
5173
5062
  mounted: (e, t) => {
5174
5063
  e !== null && (t.value, e.oncontextmenu = (o) => {
5175
5064
  o.preventDefault(), o.stopPropagation(), o.cancelBubble = !0, t.value && se.emit("right-click", { event: o, data: t.value });
5176
5065
  });
5177
5066
  }
5178
- }, pi = {
5067
+ }, ti = {
5179
5068
  mounted(e) {
5180
5069
  }
5181
5070
  };
5182
- function Tt(e, t) {
5071
+ function kt(e, t) {
5183
5072
  let o = e[`offset${t}`], n = e.offsetParent;
5184
5073
  for (; n; )
5185
5074
  o += n[`offset${t}`], n = n.offsetParent;
5186
5075
  return o;
5187
5076
  }
5188
- const mi = {
5077
+ const oi = {
5189
5078
  mounted: (e, t) => {
5190
5079
  if (e === null || !t.value.dev)
5191
5080
  return;
@@ -5196,7 +5085,7 @@ const mi = {
5196
5085
  o.classList.add("devtool-hover");
5197
5086
  const n = document.createElement("i");
5198
5087
  n.className = "devtool-item-wrapper", o.onmouseover = () => {
5199
- n.style.height = o.offsetHeight + 30 + "px", n.style.width = o.offsetWidth + 30 + "px", n.style.top = Tt(o, "Top") - 15 + "px", n.style.left = Tt(o, "Left") - 15 + "px";
5088
+ n.style.height = o.offsetHeight + 30 + "px", n.style.width = o.offsetWidth + 30 + "px", n.style.top = kt(o, "Top") - 15 + "px", n.style.left = kt(o, "Left") - 15 + "px";
5200
5089
  };
5201
5090
  const l = document.createElement("span");
5202
5091
  l.className = "dev-action-edit", l.title = "编辑";
@@ -5206,63 +5095,63 @@ const mi = {
5206
5095
  }, n.appendChild(l);
5207
5096
  const a = document.createElement("span");
5208
5097
  a.className = "dev-action-del", a.title = "删除";
5209
- const u = document.createElement("i");
5210
- u.className = "iconfont ra-cut", a.appendChild(u), a.onclick = (d) => {
5098
+ const c = document.createElement("i");
5099
+ c.className = "iconfont ra-cut", a.appendChild(c), a.onclick = (d) => {
5211
5100
  se.emit("dev-action", { event: d, data: { type: "del", devId: t.value.devId } });
5212
5101
  }, n.appendChild(a), o.insertBefore(n, o.firstChild);
5213
5102
  }
5214
- }, fi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5103
+ }, ni = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5215
5104
  __proto__: null,
5216
- devtool: mi,
5217
- outClick: ui,
5218
- resize: pi,
5219
- rightClick: di
5105
+ devtool: oi,
5106
+ outClick: Ya,
5107
+ resize: ti,
5108
+ rightClick: ei
5220
5109
  }, Symbol.toStringTag, { value: "Module" }));
5221
- let Ie;
5222
- const mo = [], Ot = /* @__PURE__ */ new Set(), $t = (e) => typeof e.name == "string" ? e.name : e.path;
5223
- function Or(e) {
5224
- return e ? dt(q(Re.axios, e)) : Ie;
5110
+ let xe;
5111
+ const lo = [], St = /* @__PURE__ */ new Set(), wt = (e) => typeof e.name == "string" ? e.name : e.path;
5112
+ function _r(e) {
5113
+ return e ? it(q(Be.axios, e)) : xe;
5225
5114
  }
5226
- function $r(e) {
5227
- const t = q(Re, e), o = Po(Fn), n = ki(t), l = t.plugins || [];
5115
+ function vr(e) {
5116
+ const t = q(Be, e), o = To(Dn), n = ui(t), l = t.plugins || [];
5228
5117
  l.unshift(n), l.forEach((d) => {
5229
- gi(o, d);
5230
- }), t?.mock && Qn(), Ie = dt(t.axios), Vn(o);
5231
- const s = Y(D), a = V(D), u = N(D);
5232
- Pn(Ie), a.updateSettings(e?.settings || {}), s.setBaseAPI(t?.axios.baseURL), o.config.globalProperties.$http = Ie, o.config.globalProperties.$router = le, window.App = o, window.OmsOptions = t, Sn(() => ({
5233
- "X-Token": ge()
5234
- })), ue(() => u.token, () => {
5235
- fo();
5118
+ ci(o, d);
5119
+ }), t?.mock && Hn(), xe = it(t.axios), Rn(o);
5120
+ const s = Y(L), a = U(L), c = j(L);
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
+ "X-Token": ve()
5123
+ })), ye(() => c.token, () => {
5124
+ so();
5236
5125
  }, { immediate: !0 }), le.isReady().then(() => o.mount("#app"));
5237
5126
  }
5238
- function hi(e, t = {}) {
5127
+ function li(e, t = {}) {
5239
5128
  Object.keys(t).forEach((o) => {
5240
5129
  e.component(o, t[o]);
5241
5130
  });
5242
5131
  }
5243
- function fo() {
5244
- const e = uo(ge()), t = ut(mo, e), o = N(D), n = new Set(o.customRouter.map((s) => $t(s))), l = t.filter((s) => {
5245
- const a = $t(s);
5246
- return Ot.has(a) || n.has(a) ? !1 : (Ot.add(a), !0);
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) => {
5134
+ const a = wt(s);
5135
+ return St.has(a) || n.has(a) ? !1 : (St.add(a), !0);
5247
5136
  });
5248
5137
  l.forEach((s) => {
5249
5138
  le.addRoute(s);
5250
5139
  }), l.length && o.setCustomRoutes(l);
5251
5140
  }
5252
- function bi(e = []) {
5253
- mo.push(...e), fo();
5141
+ function si(e = []) {
5142
+ lo.push(...e), so();
5254
5143
  }
5255
- function yi(e, t) {
5144
+ function ai(e, t) {
5256
5145
  t.forEach((o) => {
5257
- ce(o) && (o = [o]), e.use(...o);
5146
+ re(o) && (o = [o]), e.use(...o);
5258
5147
  });
5259
5148
  }
5260
- function _i(e, t = {}) {
5149
+ function ii(e, t = {}) {
5261
5150
  Object.keys(t).forEach((o) => {
5262
5151
  e.directive(o, t[o]);
5263
5152
  });
5264
5153
  }
5265
- function vi(e = {}) {
5154
+ function ri(e = {}) {
5266
5155
  const t = ["app", "settings", "user"];
5267
5156
  Object.keys(e).forEach((o) => {
5268
5157
  if (t.indexOf(o) !== -1) {
@@ -5272,51 +5161,50 @@ function vi(e = {}) {
5272
5161
  console.warn("[store] plugin storeModules are not supported under Pinia. Ignored:", o);
5273
5162
  });
5274
5163
  }
5275
- function gi(e, t) {
5276
- hi(e, t.components || {}), bi(t.routes || []), yi(e, t.use || []), _i(e, t.directives || {}), vi(t.storeModules || {}), Qt(t.mockApis || []);
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 || []);
5277
5166
  }
5278
- function ki(e) {
5167
+ function ui(e) {
5279
5168
  return {
5280
- components: { VIcon: xn },
5281
- directives: fi,
5169
+ components: { VIcon: _n },
5170
+ directives: ni,
5282
5171
  use: [
5283
5172
  le,
5284
- [Jo, { locale: Mt, ...e.settings?.ElementPlus }]
5173
+ [qo, { locale: Ot, ...e.settings?.ElementPlus }]
5285
5174
  ]
5286
5175
  };
5287
5176
  }
5288
5177
  export {
5289
- lo as BaseSso,
5290
- qe as Container,
5291
- Cr as DingTalk,
5292
- Ir as Github,
5293
- oo as Layout,
5294
- F as MenuType,
5295
- Xn as Message,
5296
- wt as MessageBox,
5178
+ Qt as BaseSso,
5179
+ je as Container,
5180
+ br as DingTalk,
5181
+ hr as Github,
5182
+ Jt as Layout,
5183
+ K as MenuType,
5184
+ Fn as Message,
5185
+ bt as MessageBox,
5297
5186
  J as PageType,
5298
- ia as allSso,
5299
- jn as appState,
5300
- Nn as builderSchemaState,
5301
- $r as createAdmin,
5187
+ Qs as allSso,
5188
+ Bn as appState,
5189
+ An as builderSchemaState,
5190
+ vr as createAdmin,
5302
5191
  se as eventBus,
5303
- tl as getCmp,
5304
- De as getHttp,
5305
- Ie as http,
5306
- dt as instance,
5307
- D as pinia,
5308
- Tr as regViews,
5309
- Er as setCmp,
5310
- Pn as setHttp,
5311
- Mn as settings,
5312
- Vn as setupStore,
5313
- Wa as transRemoteModules,
5314
- ns as useAestheticMode,
5192
+ Jn as getCmp,
5193
+ Pe as getHttp,
5194
+ xe as http,
5195
+ it as instance,
5196
+ L as pinia,
5197
+ yr as regViews,
5198
+ mr as setCmp,
5199
+ Cn as setHttp,
5200
+ On as settings,
5201
+ Rn as setupStore,
5202
+ ja as transRemoteModules,
5315
5203
  Y as useAppStore,
5316
- xr as useBuilderSchemaStore,
5317
- Or as useHttp,
5318
- V as useSettingsStore,
5319
- N as useUserStore,
5320
- _t as userState
5204
+ fr as useBuilderSchemaStore,
5205
+ _r as useHttp,
5206
+ U as useSettingsStore,
5207
+ j as useUserStore,
5208
+ pt as userState
5321
5209
  };
5322
5210
  //# sourceMappingURL=index.es.js.map