@okiss/oms 0.0.88 → 0.0.89

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,17 +1,17 @@
1
- import { ref as C, watch as Ee, computed as k, defineComponent as K, onBeforeMount as Fe, provide as bn, resolveComponent as L, createBlock as h, openBlock as i, createVNode as u, createTextVNode as $, withCtx as r, TransitionGroup as yn, createElementBlock as _, Fragment as O, renderList as U, toDisplayString as A, normalizeClass as ee, renderSlot as de, createCommentVNode as B, mergeProps as Q, toRefs as _n, unref as m, isRef as Ge, onMounted as Ie, normalizeStyle as vn, createElementVNode as g, withKeys as rt, withModifiers as ct, resolveDynamicComponent as Ke, Transition as gn, normalizeProps as X, guardReactiveProps as re, withDirectives as ve, vModelText as Re, onUnmounted as kn, resolveDirective as Sn, getCurrentInstance as wn, h as xn, toRaw as En, createApp as In } from "vue";
2
- import { normalizeTheme as pe, applyDocumentTheme as Cn, dispatchThemeChange as Tn, addNewStyle as $n, addNewStyleTag as Bn, queryParams as On, logGroup as Rn, compactObject as wt, showEleByClassName as xt, waterMarker as An, Cache as ge, isExternal as ut, getQueryParam as Et, createIFrame as Pn, strVarReplace as ae, obj2Param as Ln, isObject as ie, isString as ze, effectDataTrans as Mn, isArray as It } from "@okiss/utils";
3
- import { defineStore as Ce, createPinia as Dn } from "pinia";
1
+ import { ref as I, watch as be, computed as k, defineComponent as K, onBeforeMount as Fe, provide as yn, resolveComponent as L, createBlock as h, openBlock as i, createVNode as u, createTextVNode as C, withCtx as r, TransitionGroup as _n, createElementBlock as _, Fragment as O, renderList as U, toDisplayString as R, normalizeClass as ee, renderSlot as de, createCommentVNode as $, mergeProps as X, toRefs as vn, unref as m, isRef as Ge, onMounted as Ie, normalizeStyle as gn, createElementVNode as v, withKeys as rt, withModifiers as ct, resolveDynamicComponent as Ke, Transition as kn, normalizeProps as Z, guardReactiveProps as re, withDirectives as ge, vModelText as Ae, onUnmounted as Sn, resolveDirective as wn, getCurrentInstance as xn, h as En, toRaw as In, createApp as Cn } from "vue";
2
+ import { normalizeTheme as pe, applyDocumentTheme as Tn, dispatchThemeChange as Bn, addNewStyle as $n, addNewStyleTag as On, queryParams as An, logGroup as Rn, compactObject as wt, showEleByClassName as xt, waterMarker as Pn, Cache as ke, isExternal as ut, getQueryParam as Et, createIFrame as Ln, strVarReplace as ae, obj2Param as Mn, isObject as ie, isString as ze, effectDataTrans as Dn, isArray as It } from "@okiss/utils";
3
+ import { defineStore as Ce, createPinia as jn } from "pinia";
4
4
  import te from "js-cookie";
5
5
  import Ct from "element-plus/es/locale/lang/zh-cn";
6
- import jn, { cloneDeep as x, merge as H, get as fe, unset as Tt, isObject as Nn } from "lodash";
7
- import Ae from "mockjs";
6
+ import Nn, { cloneDeep as x, merge as H, get as fe, unset as Tt, isObject as Un } from "lodash";
7
+ import Re from "mockjs";
8
8
  import Je from "axios";
9
- import Un, { ElMessageBox as $t, ElMessage as Vn, ElCol as qn, ElRow as Hn, ElCard as Fn } from "element-plus";
9
+ import Vn, { ElMessageBox as Bt, ElMessage as qn, ElCol as Hn, ElRow as Fn, ElCard as Gn } from "element-plus";
10
10
  import "element-plus/dist/index.css";
11
11
  import "element-plus/theme-chalk/dark/css-vars.css";
12
12
  import "dayjs/locale/zh-cn";
13
- import { useRoute as Z, useRouter as Te, onBeforeRouteLeave as Gn, createRouter as Kn, createWebHashHistory as zn, onBeforeRouteUpdate as Jn } from "vue-router";
14
- import { ElBreadcrumb as Wn, ElBreadcrumbItem as Qn, ElContainer as Xn, ElRow as be, ElMain as Zn, ElAside as Yn, ElForm as Bt, ElFormItem as Ot, ElSelect as We, ElOption as Qe, ElDivider as Rt, ElButton as me, ElCol as $e, ElDrawer as At, ElTooltip as Pt, ElIcon as eo, ElDropdown as to, ElAvatar as no, ElDropdownMenu as oo, ElDropdownItem as lo, ElImage as so, ElMenuItem as ao, ElSubMenu as io, ElOptionGroup as ro, ElScrollbar as co, ElMenu as uo, ElBacktop as po, ElMessage as fo, ElAlert as Xe, ElCard as Ze, ElTree as mo } from "element-plus/es";
13
+ import { useRoute as W, useRouter as Te, onBeforeRouteLeave as Kn, createRouter as zn, createWebHashHistory as Jn, onBeforeRouteUpdate as Wn } from "vue-router";
14
+ import { ElBreadcrumb as Qn, ElBreadcrumbItem as Xn, ElContainer as Zn, ElRow as ye, ElMain as Yn, ElAside as eo, ElForm as $t, ElFormItem as Ot, ElSelect as We, ElOption as Qe, ElDivider as At, ElButton as me, ElCol as Be, ElDrawer as Rt, ElTooltip as Pt, ElIcon as to, ElDropdown as no, ElAvatar as oo, ElDropdownMenu as lo, ElDropdownItem as so, ElImage as ao, ElMenuItem as io, ElSubMenu as ro, ElOptionGroup as co, ElScrollbar as uo, ElMenu as po, ElBacktop as fo, ElMessage as mo, ElAlert as Xe, ElCard as Ze, ElTree as ho } from "element-plus/es";
15
15
  import "element-plus/es/components/base/style/css";
16
16
  import "element-plus/es/components/row/style/css";
17
17
  import "element-plus/es/components/drawer/style/css";
@@ -24,7 +24,7 @@ import "element-plus/es/components/icon/style/css";
24
24
  import "element-plus/es/components/col/style/css";
25
25
  import "element-plus/es/components/breadcrumb/style/css";
26
26
  import "element-plus/es/components/breadcrumb-item/style/css";
27
- import * as ho from "path-to-regexp";
27
+ import * as bo 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 Ye, VBtn as et, VForm as ne, VTable as he, VChart as bo, setUploadHeaderHandle as yo, VIcon as _o } from "@okiss/vbtf";
37
+ import { JsonView as Ye, VBtn as et, VForm as ne, VTable as he, VChart as yo, setUploadHeaderHandle as _o, VIcon as vo } from "@okiss/vbtf";
38
38
  import "normalize.css/normalize.css";
39
39
  import "@okiss/vbtf/style.css";
40
- import vo from "mitt";
41
- import { Moon as go, Sunny as ko } from "@element-plus/icons-vue";
40
+ import go from "mitt";
41
+ import { Moon as ko, Sunny as So } 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,12 +46,12 @@ 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 So } from "@vueuse/core";
49
+ import { useEventListener as wo } 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 wo from "vue3-markdown-it";
54
- import xo from "crypto-js";
53
+ import xo from "vue3-markdown-it";
54
+ import Eo from "crypto-js";
55
55
  import "element-plus/es/components/message/style/css";
56
56
  import Ne from "nprogress";
57
57
  import "nprogress/nprogress.css";
@@ -62,10 +62,10 @@ String.prototype.format || (String.prototype.format = function() {
62
62
  });
63
63
  });
64
64
  const tt = "oms:token";
65
- function ye() {
65
+ function _e() {
66
66
  return te.get(tt) || "";
67
67
  }
68
- function Eo(e) {
68
+ function Io(e) {
69
69
  const t = V(M), n = new Date((/* @__PURE__ */ new Date()).getTime() + (t.tokenExpire || 1440 * 60 * 1e3));
70
70
  return te.set(tt, e, { expires: n });
71
71
  }
@@ -73,13 +73,13 @@ function Lt() {
73
73
  return te.remove(tt);
74
74
  }
75
75
  let Mt = null;
76
- function Io(e) {
76
+ function Co(e) {
77
77
  Mt = e;
78
78
  }
79
79
  function Pe() {
80
80
  return Mt;
81
81
  }
82
- const Co = {
82
+ const To = {
83
83
  baseURL: "/api",
84
84
  withCredentials: !0,
85
85
  cacheEnable: !0
@@ -111,13 +111,13 @@ const Co = {
111
111
  formMutex: !0,
112
112
  captcha: !0,
113
113
  themeMode: "light"
114
- }, Be = {
115
- axios: Co,
114
+ }, $e = {
115
+ axios: To,
116
116
  settings: Dt,
117
117
  plugins: [],
118
118
  mock: !1
119
- }, To = x(Dt), V = Ce("settings", {
120
- state: () => ({ ...To }),
119
+ }, Bo = x(Dt), V = Ce("settings", {
120
+ state: () => ({ ...Bo }),
121
121
  actions: {
122
122
  updateSettings(e) {
123
123
  H(this, e);
@@ -127,7 +127,7 @@ const Co = {
127
127
  name: "",
128
128
  nickname: "",
129
129
  avatar: "",
130
- token: ye(),
130
+ token: _e(),
131
131
  customRouter: [],
132
132
  remoteRouter: [],
133
133
  menuRoutes: [],
@@ -141,7 +141,7 @@ const Co = {
141
141
  state: () => ({ ...dt }),
142
142
  actions: {
143
143
  updateToken(e) {
144
- this.token = e, Eo(e);
144
+ this.token = e, Io(e);
145
145
  },
146
146
  removeToken() {
147
147
  this.token = "", Lt();
@@ -157,7 +157,7 @@ const Co = {
157
157
  this[e] = t;
158
158
  },
159
159
  resetUser() {
160
- const e = { ...dt, token: ye() };
160
+ const e = { ...dt, token: _e() };
161
161
  Object.assign(this, e);
162
162
  },
163
163
  SET_EXPIRED() {
@@ -221,21 +221,21 @@ const Co = {
221
221
  this.SET_EXPIRED();
222
222
  }
223
223
  }
224
- }), xe = "sidebarStatus";
224
+ }), Ee = "sidebarStatus";
225
225
  function $o() {
226
226
  if (typeof window > "u")
227
227
  return;
228
- const e = window.localStorage.getItem(xe);
228
+ const e = window.localStorage.getItem(Ee);
229
229
  if (e !== null)
230
230
  return e === "1";
231
- const t = te.get(xe);
231
+ const t = te.get(Ee);
232
232
  if (t !== void 0)
233
233
  return !!t;
234
234
  }
235
235
  function ft(e) {
236
- typeof window < "u" && window.localStorage.setItem(xe, e ? "1" : "0"), te.set(xe, e ? "1" : "0");
236
+ typeof window < "u" && window.localStorage.setItem(Ee, e ? "1" : "0"), te.set(Ee, e ? "1" : "0");
237
237
  }
238
- const Bo = {
238
+ const Oo = {
239
239
  sidebar: {
240
240
  opened: $o() ?? !0,
241
241
  withoutAnimation: !1
@@ -246,7 +246,7 @@ const Bo = {
246
246
  builderSchema: {},
247
247
  baseURL: ""
248
248
  }, Y = Ce("app", {
249
- state: () => ({ ...Bo }),
249
+ state: () => ({ ...Oo }),
250
250
  actions: {
251
251
  TOGGLE_SIDEBAR() {
252
252
  this.sidebar.opened = !this.sidebar.opened, this.sidebar.withoutAnimation = !1, ft(this.sidebar.opened);
@@ -292,11 +292,11 @@ const Bo = {
292
292
  this.SET_BASE_API(e);
293
293
  }
294
294
  }
295
- }), Oo = {
295
+ }), Ao = {
296
296
  currentCellItem: {}
297
297
  // form/sub-form 当前单元格编辑数据
298
- }, ar = Ce("builderSchema", {
299
- state: () => ({ ...Oo }),
298
+ }, ir = Ce("builderSchema", {
299
+ state: () => ({ ...Ao }),
300
300
  actions: {
301
301
  SET_CURRENT_CELLITEM(e) {
302
302
  this.currentCellItem = e;
@@ -305,37 +305,37 @@ const Bo = {
305
305
  this.SET_CURRENT_CELLITEM(e);
306
306
  }
307
307
  }
308
- }), M = Dn();
308
+ }), M = jn();
309
309
  function Ro(e) {
310
310
  e.use(M);
311
311
  }
312
- const jt = "oms-theme", Nt = C("light");
313
- let mt = !1, ke = null;
314
- function Ao(e) {
312
+ const jt = "oms-theme", Nt = I("light");
313
+ let mt = !1, Se = null;
314
+ function Po(e) {
315
315
  const t = pe(e ?? void 0);
316
316
  if (typeof window > "u")
317
317
  return t;
318
318
  const n = window.localStorage?.getItem(jt);
319
319
  return n === "dark" || n === "light" ? n : e === "dark" || e === "light" ? e : window.matchMedia?.("(prefers-color-scheme: dark)").matches ? "dark" : "light";
320
320
  }
321
- function Po(e) {
321
+ function Lo(e) {
322
322
  typeof window < "u" && window.localStorage?.setItem(jt, e);
323
323
  }
324
324
  function Le(e) {
325
325
  const t = pe(e);
326
- Nt.value = t, Cn(t), Tn(t), Po(t);
326
+ Nt.value = t, Tn(t), Bn(t), Lo(t);
327
327
  }
328
- function Lo(e) {
328
+ function Mo(e) {
329
329
  if (typeof window > "u" || typeof window.matchMedia != "function") {
330
- ke = null;
330
+ Se = null;
331
331
  return;
332
332
  }
333
333
  const t = window.matchMedia("(prefers-color-scheme: dark)"), n = (o) => {
334
334
  const l = o.matches ?? t.matches;
335
335
  e(l ? "dark" : "light");
336
336
  };
337
- typeof t.addEventListener == "function" ? t.addEventListener("change", n) : t.addListener(n), ke = () => {
338
- typeof t.removeEventListener == "function" ? t.removeEventListener("change", n) : t.removeListener(n), ke = null;
337
+ typeof t.addEventListener == "function" ? t.addEventListener("change", n) : t.addListener(n), Se = () => {
338
+ typeof t.removeEventListener == "function" ? t.removeEventListener("change", n) : t.removeListener(n), Se = null;
339
339
  };
340
340
  }
341
341
  function Ut() {
@@ -345,14 +345,14 @@ function Ut() {
345
345
  };
346
346
  if (!mt) {
347
347
  mt = !0;
348
- const s = Ao(e.themeMode);
349
- pe(e.themeMode) !== s ? e.updateSettings({ themeMode: s }) : Le(s), Ee(
348
+ const s = Po(e.themeMode);
349
+ pe(e.themeMode) !== s ? e.updateSettings({ themeMode: s }) : Le(s), be(
350
350
  () => e.themeMode,
351
351
  (a) => {
352
352
  Le(pe(a));
353
353
  },
354
354
  { immediate: !0 }
355
- ), ke?.(), Lo((a) => {
355
+ ), Se?.(), Mo((a) => {
356
356
  t(a);
357
357
  });
358
358
  }
@@ -366,25 +366,25 @@ function Ut() {
366
366
  }
367
367
  };
368
368
  }
369
- const Mo = /* @__PURE__ */ K({
369
+ const Do = /* @__PURE__ */ K({
370
370
  __name: "App",
371
371
  setup(e) {
372
372
  return Ut(), Fe(() => {
373
373
  const t = document.getElementById("preloader");
374
- t !== null && (document.body.removeChild(t), document.getElementById("preloader")?.remove(), $n("test-icon", "//at.alicdn.com/t/font_2246548_zclaqxwmzq8.css"), Bn(`.iconfont {
374
+ t !== null && (document.body.removeChild(t), document.getElementById("preloader")?.remove(), $n("test-icon", "//at.alicdn.com/t/font_2246548_zclaqxwmzq8.css"), On(`.iconfont {
375
375
  font-size: 19px;
376
376
  font-style: normal;
377
377
  -webkit-font-smoothing: antialiased;
378
378
  font-family: iconfont !important;
379
379
  }`));
380
- }), window?.OmsOptions?.form?.vsPath && bn("vsPath", window?.OmsOptions?.form?.vsPath), (t, n) => {
380
+ }), window?.OmsOptions?.form?.vsPath && yn("vsPath", window?.OmsOptions?.form?.vsPath), (t, n) => {
381
381
  const o = L("router-view");
382
382
  return i(), h(o);
383
383
  };
384
384
  }
385
385
  });
386
386
  var ce = /* @__PURE__ */ ((e) => (e.GET = "get", e.POST = "post", e.DELETE = "delete", e.FETCH = "fetch", e.OPTION = "option", e.PUT = "put", e))(ce || {});
387
- const Do = [
387
+ const jo = [
388
388
  {
389
389
  type: "jump",
390
390
  text: "跳转",
@@ -441,9 +441,9 @@ const Do = [
441
441
  }
442
442
  ];
443
443
  [
444
- ...jn.cloneDeep(Do)
444
+ ...Nn.cloneDeep(jo)
445
445
  ];
446
- const jo = {
446
+ const No = {
447
447
  code: 0,
448
448
  data: {
449
449
  "list|0-100": [
@@ -464,7 +464,7 @@ const jo = {
464
464
  "page|1-5": 2
465
465
  }
466
466
  }
467
- }, No = { listMock: jo }, Uo = [
467
+ }, Uo = { listMock: No }, Vo = [
468
468
  {
469
469
  method: ce.POST,
470
470
  url: "/login",
@@ -508,10 +508,10 @@ const jo = {
508
508
  {
509
509
  url: "/user/list",
510
510
  method: ce.GET,
511
- response: (e) => No.listMock
511
+ response: (e) => Uo.listMock
512
512
  }
513
- ], Vo = [
514
- ...Uo
513
+ ], qo = [
514
+ ...Vo
515
515
  ], Ue = {};
516
516
  function Vt(e) {
517
517
  e.forEach((t) => {
@@ -519,21 +519,21 @@ function Vt(e) {
519
519
  Ue[`${t.method}::${n}`] = t;
520
520
  });
521
521
  }
522
- Vt(Vo);
522
+ Vt(qo);
523
523
  function qt(e) {
524
- let t = e.url, n = e.baseURL || Be.axios?.baseURL;
524
+ let t = e.url, n = e.baseURL || $e.axios?.baseURL;
525
525
  return n || (n = ""), typeof t == "string" ? (t = ("/" + n + t).split("/").filter((o) => o).join("/"), t += "(|\\?.*)$", new RegExp(t)) : t;
526
526
  }
527
- function qo() {
527
+ function Ho() {
528
528
  Object.keys(Ue).forEach((e) => {
529
529
  const t = Ue[e], n = qt(t);
530
- Ae.mock(n, t.method, function(o) {
531
- const { url: l, type: s, body: a } = o, c = On(l), d = a ? JSON.parse(a) : {}, p = t.response({ query: c, data: d }), f = Ae.mock(p);
532
- return Rn(l, { type: s, query: c, data: d, response: f }), Ae.mock(f);
530
+ Re.mock(n, t.method, function(o) {
531
+ const { url: l, type: s, body: a } = o, c = An(l), d = a ? JSON.parse(a) : {}, f = t.response({ query: c, data: d }), p = Re.mock(f);
532
+ return Rn(l, { type: s, query: c, data: d, response: p }), Re.mock(p);
533
533
  });
534
534
  });
535
535
  }
536
- const Ho = Vn, ht = $t, Fo = Je.CancelToken, Se = {
536
+ const Fo = qn, ht = Bt, Go = Je.CancelToken, we = {
537
537
  taskList: {},
538
538
  cacheList: /* @__PURE__ */ new Map(),
539
539
  uniqueId(e) {
@@ -569,33 +569,33 @@ const Ho = Vn, ht = $t, Fo = Je.CancelToken, Se = {
569
569
  const t = this.uniqueId(e);
570
570
  return this.cacheList.delete(t);
571
571
  }
572
- }, Go = {
572
+ }, Ko = {
573
573
  onFulfilled: function(e) {
574
- return e.cacheEnable === !1 || (Se.pending(e) && Se.delTask(e), e.cancelToken = new Fo((t) => {
575
- Se.addTask(e, t);
574
+ return e.cacheEnable === !1 || (we.pending(e) && we.delTask(e), e.cancelToken = new Go((t) => {
575
+ we.addTask(e, t);
576
576
  })), e;
577
577
  },
578
578
  onRejected(e) {
579
579
  return Promise.reject(e);
580
580
  }
581
- }, Ko = {
581
+ }, zo = {
582
582
  onFulfilled: function(e) {
583
- return e.config.cacheEnable === !1 || e.config.method === "get" && Object.keys(e.data).length > 0 && Se.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;
584
584
  },
585
585
  onRejected(e) {
586
586
  return Promise.reject(e);
587
587
  }
588
588
  }, Ht = {};
589
- function ir(e, t) {
589
+ function rr(e, t) {
590
590
  Ht[e] = t;
591
591
  }
592
- function zo(e) {
592
+ function Jo(e) {
593
593
  return Ht[e];
594
594
  }
595
- const Jo = /* @__PURE__ */ K({
595
+ const Wo = /* @__PURE__ */ K({
596
596
  name: "Dashboard",
597
597
  setup() {
598
- const e = zo("dashboard");
598
+ const e = Jo("dashboard");
599
599
  if (e)
600
600
  return () => u("span", null, [u(e, null, null)]);
601
601
  const t = k(() => j().name);
@@ -603,14 +603,14 @@ const Jo = /* @__PURE__ */ K({
603
603
  class: "dashboard-container"
604
604
  }, [u("div", {
605
605
  class: "dashboard-text"
606
- }, [$("Hi "), t.value, $(" 😄")])]);
606
+ }, [C("Hi "), t.value, C(" 😄")])]);
607
607
  }
608
608
  }), P = (e, t) => {
609
609
  const n = e.__vccOpts || e;
610
610
  for (const [o, l] of t)
611
611
  n[o] = l;
612
612
  return n;
613
- }, Wo = /* @__PURE__ */ P(Jo, [["__scopeId", "data-v-85165680"]]), Qo = {
613
+ }, Qo = /* @__PURE__ */ P(Wo, [["__scopeId", "data-v-85165680"]]), Xo = {
614
614
  data() {
615
615
  return {
616
616
  levelList: null
@@ -642,7 +642,7 @@ const Jo = /* @__PURE__ */ K({
642
642
  },
643
643
  pathCompile(e) {
644
644
  const { params: t } = this.$route;
645
- return ho.compile(e)(t);
645
+ return bo.compile(e)(t);
646
646
  },
647
647
  handleLink(e) {
648
648
  const { redirect: t, path: n } = e;
@@ -653,27 +653,27 @@ const Jo = /* @__PURE__ */ K({
653
653
  this.$router.push(this.pathCompile(n));
654
654
  }
655
655
  }
656
- }, Xo = {
656
+ }, Zo = {
657
657
  key: 0,
658
658
  class: "no-redirect"
659
- }, Zo = ["onClick"];
660
- function Yo(e, t, n, o, l, s) {
661
- const a = Qn, c = Wn;
659
+ }, Yo = ["onClick"];
660
+ function el(e, t, n, o, l, s) {
661
+ const a = Xn, c = Qn;
662
662
  return i(), h(c, {
663
663
  class: "app-breadcrumb",
664
664
  separator: "/"
665
665
  }, {
666
666
  default: r(() => [
667
- u(yn, { name: "breadcrumb" }, {
667
+ u(_n, { name: "breadcrumb" }, {
668
668
  default: r(() => [
669
- (i(!0), _(O, null, U(l.levelList, (d, p) => (i(), h(a, {
669
+ (i(!0), _(O, null, U(l.levelList, (d, f) => (i(), h(a, {
670
670
  key: d.path
671
671
  }, {
672
672
  default: r(() => [
673
- d.path.indexOf("/DIR_") === 0 && d.redirect === void 0 || p === l.levelList.length - 1 ? (i(), _("span", Xo, A(d.meta.title), 1)) : (i(), _("a", {
673
+ d.path.indexOf("/DIR_") === 0 && d.redirect === void 0 || f === l.levelList.length - 1 ? (i(), _("span", Zo, R(d.meta.title), 1)) : (i(), _("a", {
674
674
  key: 1,
675
- onClick: (f) => s.handleLink(d)
676
- }, A(d.meta.title), 9, Zo))
675
+ onClick: (p) => s.handleLink(d)
676
+ }, R(d.meta.title), 9, Yo))
677
677
  ]),
678
678
  _: 2
679
679
  }, 1024))), 128))
@@ -684,7 +684,7 @@ function Yo(e, t, n, o, l, s) {
684
684
  _: 1
685
685
  });
686
686
  }
687
- const el = /* @__PURE__ */ P(Qo, [["render", Yo], ["__scopeId", "data-v-fa74804e"]]), tl = {
687
+ const tl = /* @__PURE__ */ P(Xo, [["render", el], ["__scopeId", "data-v-fa74804e"]]), nl = {
688
688
  name: "Hamburger",
689
689
  props: {
690
690
  isActive: {
@@ -699,7 +699,7 @@ const el = /* @__PURE__ */ P(Qo, [["render", Yo], ["__scopeId", "data-v-fa74804e
699
699
  }
700
700
  }
701
701
  };
702
- function nl(e, t, n, o, l, s) {
702
+ function ol(e, t, n, o, l, s) {
703
703
  const a = L("v-icon");
704
704
  return i(), _("div", {
705
705
  style: { padding: "0 15px" },
@@ -711,9 +711,9 @@ function nl(e, t, n, o, l, s) {
711
711
  }, null, 8, ["class"])
712
712
  ]);
713
713
  }
714
- const ol = /* @__PURE__ */ P(tl, [["render", nl]]), ll = {};
715
- function sl(e, t) {
716
- const n = be, o = Zn, l = Yn, s = Xn;
714
+ const ll = /* @__PURE__ */ P(nl, [["render", ol]]), sl = {};
715
+ function al(e, t) {
716
+ const n = ye, o = Yn, l = eo, s = Zn;
717
717
  return i(), h(s, { style: { width: "100%", height: "100%" } }, {
718
718
  default: r(() => [
719
719
  u(n, { class: "aside" }, {
@@ -745,7 +745,7 @@ function sl(e, t) {
745
745
  _: 3
746
746
  });
747
747
  }
748
- const Ft = /* @__PURE__ */ P(ll, [["render", sl], ["__scopeId", "data-v-7c3d697b"]]), al = {
748
+ const Ft = /* @__PURE__ */ P(sl, [["render", al], ["__scopeId", "data-v-7c3d697b"]]), il = {
749
749
  type: "input",
750
750
  name: "文本框",
751
751
  default: {
@@ -813,7 +813,7 @@ const Ft = /* @__PURE__ */ P(ll, [["render", sl], ["__scopeId", "data-v-7c3d697b
813
813
  }
814
814
  }
815
815
  ]
816
- }, il = {
816
+ }, rl = {
817
817
  type: "number",
818
818
  name: "数字",
819
819
  default: {
@@ -855,7 +855,7 @@ const Ft = /* @__PURE__ */ P(ll, [["render", sl], ["__scopeId", "data-v-7c3d697b
855
855
  }
856
856
  }
857
857
  ]
858
- }, rl = {
858
+ }, cl = {
859
859
  type: "number-range",
860
860
  name: "数字区间",
861
861
  default: {
@@ -896,7 +896,7 @@ const Ft = /* @__PURE__ */ P(ll, [["render", sl], ["__scopeId", "data-v-7c3d697b
896
896
  }
897
897
  }
898
898
  ]
899
- }, cl = {
899
+ }, ul = {
900
900
  type: "select",
901
901
  name: "下拉框",
902
902
  default: {
@@ -1002,7 +1002,7 @@ const Ft = /* @__PURE__ */ P(ll, [["render", sl], ["__scopeId", "data-v-7c3d697b
1002
1002
  const t = x(e);
1003
1003
  return e.optionType === 0 ? t.props && t.props.selectApi !== void 0 && delete t.props.selectApi : e.optionType === 1 && t.options && delete t.options, delete t.optionType, t;
1004
1004
  }
1005
- }, ul = {
1005
+ }, dl = {
1006
1006
  type: "radio",
1007
1007
  name: "单选框",
1008
1008
  default: {
@@ -1048,7 +1048,7 @@ const Ft = /* @__PURE__ */ P(ll, [["render", sl], ["__scopeId", "data-v-7c3d697b
1048
1048
  label: "默认值"
1049
1049
  }
1050
1050
  ]
1051
- }, dl = {
1051
+ }, pl = {
1052
1052
  type: "switch",
1053
1053
  name: "开关",
1054
1054
  default: {
@@ -1104,7 +1104,7 @@ const Ft = /* @__PURE__ */ P(ll, [["render", sl], ["__scopeId", "data-v-7c3d697b
1104
1104
  }
1105
1105
  }
1106
1106
  ]
1107
- }, pl = {
1107
+ }, fl = {
1108
1108
  type: "code",
1109
1109
  name: "Code",
1110
1110
  default: {
@@ -1124,7 +1124,7 @@ const Ft = /* @__PURE__ */ P(ll, [["render", sl], ["__scopeId", "data-v-7c3d697b
1124
1124
  label: "字段key"
1125
1125
  }
1126
1126
  ]
1127
- }, fl = {
1127
+ }, ml = {
1128
1128
  type: "json",
1129
1129
  name: "json",
1130
1130
  default: {
@@ -1144,7 +1144,7 @@ const Ft = /* @__PURE__ */ P(ll, [["render", sl], ["__scopeId", "data-v-7c3d697b
1144
1144
  label: "字段key"
1145
1145
  }
1146
1146
  ]
1147
- }, ml = {
1147
+ }, hl = {
1148
1148
  type: "upload",
1149
1149
  name: "上传",
1150
1150
  default: {
@@ -1164,7 +1164,7 @@ const Ft = /* @__PURE__ */ P(ll, [["render", sl], ["__scopeId", "data-v-7c3d697b
1164
1164
  label: "字段key"
1165
1165
  }
1166
1166
  ]
1167
- }, hl = {
1167
+ }, bl = {
1168
1168
  type: "template",
1169
1169
  name: "自定义组件",
1170
1170
  default: {
@@ -1184,7 +1184,7 @@ const Ft = /* @__PURE__ */ P(ll, [["render", sl], ["__scopeId", "data-v-7c3d697b
1184
1184
  label: "字段key"
1185
1185
  }
1186
1186
  ]
1187
- }, bl = {
1187
+ }, yl = {
1188
1188
  type: "icon-select",
1189
1189
  name: "图标选择器",
1190
1190
  default: {
@@ -1204,7 +1204,7 @@ const Ft = /* @__PURE__ */ P(ll, [["render", sl], ["__scopeId", "data-v-7c3d697b
1204
1204
  label: "字段key"
1205
1205
  }
1206
1206
  ]
1207
- }, yl = {
1207
+ }, _l = {
1208
1208
  type: "sub-form",
1209
1209
  name: "子表单",
1210
1210
  default: {
@@ -1272,7 +1272,7 @@ const Ft = /* @__PURE__ */ P(ll, [["render", sl], ["__scopeId", "data-v-7c3d697b
1272
1272
  }
1273
1273
  }
1274
1274
  ]
1275
- }, _l = {
1275
+ }, vl = {
1276
1276
  type: "checkbox",
1277
1277
  name: "复选框",
1278
1278
  default: {
@@ -1322,20 +1322,20 @@ const Ft = /* @__PURE__ */ P(ll, [["render", sl], ["__scopeId", "data-v-7c3d697b
1322
1322
  function F(e) {
1323
1323
  Gt[e.type] = e;
1324
1324
  }
1325
- F(al);
1326
- F(cl);
1327
1325
  F(il);
1328
- F(rl);
1329
- F(dl);
1330
- F(yl);
1331
1326
  F(ul);
1332
- F(_l);
1327
+ F(rl);
1328
+ F(cl);
1333
1329
  F(pl);
1330
+ F(_l);
1331
+ F(dl);
1332
+ F(vl);
1334
1333
  F(fl);
1335
1334
  F(ml);
1336
- F(bl);
1337
1335
  F(hl);
1338
- const Ve = Gt, vl = {
1336
+ F(yl);
1337
+ F(bl);
1338
+ const Ve = Gt, gl = {
1339
1339
  options: {
1340
1340
  labelPosition: "top",
1341
1341
  submitButton: !1,
@@ -1441,7 +1441,7 @@ const Ve = Gt, vl = {
1441
1441
  Object.keys(Ve).forEach((e) => {
1442
1442
  nt.push({ value: e, label: Ve[e].name });
1443
1443
  });
1444
- const gl = {
1444
+ const kl = {
1445
1445
  options: {
1446
1446
  submitButton: !1,
1447
1447
  cancelButton: !1
@@ -1473,7 +1473,7 @@ const gl = {
1473
1473
  }
1474
1474
  }
1475
1475
  ]
1476
- }, kl = {
1476
+ }, Sl = {
1477
1477
  components: { DevLayout: Ft, VForm: ne, VButton: et, JsonView: Ye },
1478
1478
  props: {
1479
1479
  schema: {
@@ -1485,8 +1485,8 @@ const gl = {
1485
1485
  data() {
1486
1486
  return {
1487
1487
  sqlOptions: {},
1488
- sqlSchema: gl,
1489
- baseSchema: vl,
1488
+ sqlSchema: kl,
1489
+ baseSchema: gl,
1490
1490
  activeTab: "base",
1491
1491
  builderSchema: Object.assign(
1492
1492
  {},
@@ -1609,32 +1609,32 @@ const gl = {
1609
1609
  }
1610
1610
  }
1611
1611
  };
1612
- function Sl(e, t, n, o, l, s) {
1613
- const a = L("v-form"), c = Rt, d = me, p = L("JsonView"), f = L("VButton"), y = Qe, w = We, v = Ot, T = Bt, I = L("dev-layout");
1614
- return i(), h(I, null, {
1612
+ function wl(e, t, n, o, l, s) {
1613
+ const a = L("v-form"), c = At, d = me, f = L("JsonView"), p = L("VButton"), g = Qe, w = We, y = Ot, T = $t, B = L("dev-layout");
1614
+ return i(), h(B, null, {
1615
1615
  main: r(() => [
1616
- l.builderSchema.formItems ? (i(), h(a, Q({
1616
+ l.builderSchema.formItems ? (i(), h(a, X({
1617
1617
  ref: "form",
1618
1618
  key: l.key,
1619
1619
  dev: !0
1620
- }, l.builderSchema), null, 16)) : B("", !0),
1620
+ }, l.builderSchema), null, 16)) : $("", !0),
1621
1621
  u(c),
1622
1622
  u(d, {
1623
1623
  type: "primary",
1624
1624
  onClick: s.saveSchema
1625
1625
  }, {
1626
1626
  default: r(() => [...t[2] || (t[2] = [
1627
- $("保存页面配置", -1)
1627
+ C("保存页面配置", -1)
1628
1628
  ])]),
1629
1629
  _: 1
1630
1630
  }, 8, ["onClick"]),
1631
- t[3] || (t[3] = $("    ", -1)),
1632
- u(f, {
1631
+ t[3] || (t[3] = C("    ", -1)),
1632
+ u(p, {
1633
1633
  text: "PageSchema",
1634
1634
  type: "modal"
1635
1635
  }, {
1636
1636
  default: r(() => [
1637
- u(p, { data: s.getSaveSchema }, null, 8, ["data"])
1637
+ u(f, { data: s.getSaveSchema }, null, 8, ["data"])
1638
1638
  ]),
1639
1639
  _: 1
1640
1640
  })
@@ -1642,14 +1642,14 @@ function Sl(e, t, n, o, l, s) {
1642
1642
  "right-aside": r(() => [
1643
1643
  l.activeIndex ? (i(), h(T, { key: 0 }, {
1644
1644
  default: r(() => [
1645
- u(v, { label: "控件类型" }, {
1645
+ u(y, { label: "控件类型" }, {
1646
1646
  default: r(() => [
1647
1647
  u(w, {
1648
1648
  modelValue: l.currentCtrlType,
1649
1649
  "onUpdate:modelValue": t[0] || (t[0] = (b) => l.currentCtrlType = b)
1650
1650
  }, {
1651
1651
  default: r(() => [
1652
- (i(!0), _(O, null, U(l.types, (b, E) => (i(), h(y, {
1652
+ (i(!0), _(O, null, U(l.types, (b, E) => (i(), h(g, {
1653
1653
  key: E,
1654
1654
  label: b.label,
1655
1655
  value: b.value
@@ -1662,8 +1662,8 @@ function Sl(e, t, n, o, l, s) {
1662
1662
  })
1663
1663
  ]),
1664
1664
  _: 1
1665
- })) : B("", !0),
1666
- (i(), h(a, Q({
1665
+ })) : $("", !0),
1666
+ (i(), h(a, X({
1667
1667
  key: l.ctrlKey,
1668
1668
  modelValue: l.ctrlOptions,
1669
1669
  "onUpdate:modelValue": t[1] || (t[1] = (b) => l.ctrlOptions = b)
@@ -1672,7 +1672,7 @@ function Sl(e, t, n, o, l, s) {
1672
1672
  _: 1
1673
1673
  });
1674
1674
  }
1675
- const wl = /* @__PURE__ */ P(kl, [["render", Sl], ["__scopeId", "data-v-875f0171"]]), xl = {
1675
+ const xl = /* @__PURE__ */ P(Sl, [["render", wl], ["__scopeId", "data-v-875f0171"]]), El = {
1676
1676
  type: "input",
1677
1677
  name: "文本框",
1678
1678
  default: {
@@ -1720,7 +1720,7 @@ const wl = /* @__PURE__ */ P(kl, [["render", Sl], ["__scopeId", "data-v-875f0171
1720
1720
  }
1721
1721
  }
1722
1722
  ]
1723
- }, El = {
1723
+ }, Il = {
1724
1724
  type: "select",
1725
1725
  name: "下拉框",
1726
1726
  default: {
@@ -1821,7 +1821,7 @@ const wl = /* @__PURE__ */ P(kl, [["render", Sl], ["__scopeId", "data-v-875f0171
1821
1821
  const t = x(e);
1822
1822
  return e.optionType === 0 ? t.props && t.props.selectApi !== void 0 && delete t.props.selectApi : e.optionType === 1 && t.options && delete t.options, delete t.optionType, t;
1823
1823
  }
1824
- }, Il = {
1824
+ }, Cl = {
1825
1825
  type: "date",
1826
1826
  name: "日期",
1827
1827
  default: {
@@ -1870,7 +1870,7 @@ const wl = /* @__PURE__ */ P(kl, [["render", Sl], ["__scopeId", "data-v-875f0171
1870
1870
  labelPosition: "top",
1871
1871
  submitButton: !1,
1872
1872
  cancelButton: !1
1873
- }, Cl = {
1873
+ }, Tl = {
1874
1874
  type: "span",
1875
1875
  name: "文本",
1876
1876
  default: {
@@ -1900,7 +1900,7 @@ const wl = /* @__PURE__ */ P(kl, [["render", Sl], ["__scopeId", "data-v-875f0171
1900
1900
  label: "排序"
1901
1901
  }
1902
1902
  ]
1903
- }, Tl = {
1903
+ }, Bl = {
1904
1904
  type: "enum",
1905
1905
  name: "标签",
1906
1906
  default: {
@@ -1976,7 +1976,7 @@ const wl = /* @__PURE__ */ P(kl, [["render", Sl], ["__scopeId", "data-v-875f0171
1976
1976
  label: "提示"
1977
1977
  }
1978
1978
  ]
1979
- }, Bl = {
1979
+ }, Ol = {
1980
1980
  type: "icon",
1981
1981
  name: "图标",
1982
1982
  default: {
@@ -2001,7 +2001,7 @@ const wl = /* @__PURE__ */ P(kl, [["render", Sl], ["__scopeId", "data-v-875f0171
2001
2001
  label: "提示"
2002
2002
  }
2003
2003
  ]
2004
- }, Ol = {
2004
+ }, Al = {
2005
2005
  type: "image",
2006
2006
  name: "图片",
2007
2007
  default: {
@@ -2051,7 +2051,7 @@ const wl = /* @__PURE__ */ P(kl, [["render", Sl], ["__scopeId", "data-v-875f0171
2051
2051
  label: "提示"
2052
2052
  }
2053
2053
  ]
2054
- }, Al = {
2054
+ }, Pl = {
2055
2055
  type: "link",
2056
2056
  name: "链接",
2057
2057
  default: {
@@ -2076,7 +2076,7 @@ const wl = /* @__PURE__ */ P(kl, [["render", Sl], ["__scopeId", "data-v-875f0171
2076
2076
  label: "提示"
2077
2077
  }
2078
2078
  ]
2079
- }, Pl = {
2079
+ }, Ll = {
2080
2080
  type: "rich",
2081
2081
  name: "富文本",
2082
2082
  default: {
@@ -2101,7 +2101,7 @@ const wl = /* @__PURE__ */ P(kl, [["render", Sl], ["__scopeId", "data-v-875f0171
2101
2101
  label: "提示"
2102
2102
  }
2103
2103
  ]
2104
- }, Ll = {
2104
+ }, Ml = {
2105
2105
  type: "tpl",
2106
2106
  name: "模板",
2107
2107
  default: {
@@ -2132,17 +2132,17 @@ const wl = /* @__PURE__ */ P(kl, [["render", Sl], ["__scopeId", "data-v-875f0171
2132
2132
  info: "例如 <code>姓名: {name} 年龄:{age}</code>"
2133
2133
  }
2134
2134
  ]
2135
- }, Ml = {
2136
- span: Cl,
2137
- enum: Tl,
2135
+ }, Dl = {
2136
+ span: Tl,
2137
+ enum: Bl,
2138
2138
  html: $l,
2139
- icon: Bl,
2140
- image: Ol,
2139
+ icon: Ol,
2140
+ image: Al,
2141
2141
  json: Rl,
2142
- link: Al,
2143
- rich: Pl,
2144
- tpl: Ll
2145
- }, Dl = {
2142
+ link: Pl,
2143
+ rich: Ll,
2144
+ tpl: Ml
2145
+ }, jl = {
2146
2146
  type: "jump",
2147
2147
  name: "跳转",
2148
2148
  default: {
@@ -2189,7 +2189,7 @@ const wl = /* @__PURE__ */ P(kl, [["render", Sl], ["__scopeId", "data-v-875f0171
2189
2189
  }
2190
2190
  }
2191
2191
  ]
2192
- }, jl = {
2192
+ }, Nl = {
2193
2193
  type: "api",
2194
2194
  name: "接口请求",
2195
2195
  default: {
@@ -2258,7 +2258,7 @@ const wl = /* @__PURE__ */ P(kl, [["render", Sl], ["__scopeId", "data-v-875f0171
2258
2258
  }
2259
2259
  }
2260
2260
  ]
2261
- }, Nl = {
2261
+ }, Ul = {
2262
2262
  type: "form",
2263
2263
  name: "弹框表单",
2264
2264
  default: {
@@ -2312,7 +2312,7 @@ const wl = /* @__PURE__ */ P(kl, [["render", Sl], ["__scopeId", "data-v-875f0171
2312
2312
  label: "保存接口"
2313
2313
  }
2314
2314
  ]
2315
- }, Ul = {
2315
+ }, Vl = {
2316
2316
  type: "table",
2317
2317
  name: "弹框列表",
2318
2318
  default: {
@@ -2366,12 +2366,12 @@ const wl = /* @__PURE__ */ P(kl, [["render", Sl], ["__scopeId", "data-v-875f0171
2366
2366
  label: "保存接口"
2367
2367
  }
2368
2368
  ]
2369
- }, Vl = {
2370
- jump: Dl,
2371
- api: jl,
2372
- form: Nl,
2373
- table: Ul
2374
2369
  }, ql = {
2370
+ jump: jl,
2371
+ api: Nl,
2372
+ form: Ul,
2373
+ table: Vl
2374
+ }, Hl = {
2375
2375
  components: { JsonView: Ye, DevLayout: Ft, VTable: he, VForm: ne, VButton: et },
2376
2376
  props: {
2377
2377
  schema: {
@@ -2381,7 +2381,7 @@ const wl = /* @__PURE__ */ P(kl, [["render", Sl], ["__scopeId", "data-v-875f0171
2381
2381
  }
2382
2382
  },
2383
2383
  data() {
2384
- const e = _n(this.$props.schema);
2384
+ const e = vn(this.$props.schema);
2385
2385
  return delete e.listApi, e.list = [{}], {
2386
2386
  baseSchema: bt,
2387
2387
  activeTab: "base",
@@ -2400,9 +2400,9 @@ const wl = /* @__PURE__ */ P(kl, [["render", Sl], ["__scopeId", "data-v-875f0171
2400
2400
  ctrlName: "",
2401
2401
  activeIndex: void 0,
2402
2402
  ctrlMap: {
2403
- filter: { input: xl, select: El, date: Il },
2404
- headers: Ml,
2405
- buttons: Vl
2403
+ filter: { input: El, select: Il, date: Cl },
2404
+ headers: Dl,
2405
+ buttons: ql
2406
2406
  },
2407
2407
  activeIndexReg: /(filter|headers|normalButton|batchButton|rowButton)?\[(\d+)\]/,
2408
2408
  currentCtrlType: "input"
@@ -2555,9 +2555,9 @@ const wl = /* @__PURE__ */ P(kl, [["render", Sl], ["__scopeId", "data-v-875f0171
2555
2555
  }
2556
2556
  }
2557
2557
  };
2558
- function Hl(e, t, n, o, l, s) {
2559
- const a = $e, c = me, d = be, p = L("v-table"), f = Rt, y = me, w = L("JsonView"), v = L("VButton"), T = Qe, I = We, b = Ot, E = Bt, R = L("v-form"), W = L("dev-layout");
2560
- return i(), h(W, null, {
2558
+ function Fl(e, t, n, o, l, s) {
2559
+ const a = Be, c = me, d = ye, f = L("v-table"), p = At, g = me, w = L("JsonView"), y = L("VButton"), T = Qe, B = We, b = Ot, E = $t, A = L("v-form"), Q = L("dev-layout");
2560
+ return i(), h(Q, null, {
2561
2561
  "left-aside": r(() => [
2562
2562
  u(d, { style: { width: "200px" } }, {
2563
2563
  default: r(() => [
@@ -2568,7 +2568,7 @@ function Hl(e, t, n, o, l, s) {
2568
2568
  "data-id": 22222
2569
2569
  }, {
2570
2570
  default: r(() => [...t[5] || (t[5] = [
2571
- $("添加搜索条件", -1)
2571
+ C("添加搜索条件", -1)
2572
2572
  ])]),
2573
2573
  _: 1
2574
2574
  }),
@@ -2579,7 +2579,7 @@ function Hl(e, t, n, o, l, s) {
2579
2579
  onClick: t[0] || (t[0] = (S) => s.pushFilter("input"))
2580
2580
  }, {
2581
2581
  default: r(() => [...t[6] || (t[6] = [
2582
- $("文本框", -1)
2582
+ C("文本框", -1)
2583
2583
  ])]),
2584
2584
  _: 1
2585
2585
  })
@@ -2593,7 +2593,7 @@ function Hl(e, t, n, o, l, s) {
2593
2593
  onClick: t[1] || (t[1] = (S) => s.pushFilter("select"))
2594
2594
  }, {
2595
2595
  default: r(() => [...t[7] || (t[7] = [
2596
- $("下拉框", -1)
2596
+ C("下拉框", -1)
2597
2597
  ])]),
2598
2598
  _: 1
2599
2599
  })
@@ -2607,7 +2607,7 @@ function Hl(e, t, n, o, l, s) {
2607
2607
  onClick: t[2] || (t[2] = (S) => s.pushFilter("date"))
2608
2608
  }, {
2609
2609
  default: r(() => [...t[8] || (t[8] = [
2610
- $("日期", -1)
2610
+ C("日期", -1)
2611
2611
  ])]),
2612
2612
  _: 1
2613
2613
  })
@@ -2621,7 +2621,7 @@ function Hl(e, t, n, o, l, s) {
2621
2621
  default: r(() => [
2622
2622
  u(a, { class: "title" }, {
2623
2623
  default: r(() => [...t[9] || (t[9] = [
2624
- $("添加列表项", -1)
2624
+ C("添加列表项", -1)
2625
2625
  ])]),
2626
2626
  _: 1
2627
2627
  }),
@@ -2635,7 +2635,7 @@ function Hl(e, t, n, o, l, s) {
2635
2635
  onClick: (z) => s.pushHeaders(l.ctrlMap.headers[S].type)
2636
2636
  }, {
2637
2637
  default: r(() => [
2638
- $(A(l.ctrlMap.headers[S].name), 1)
2638
+ C(R(l.ctrlMap.headers[S].name), 1)
2639
2639
  ]),
2640
2640
  _: 2
2641
2641
  }, 1032, ["onClick"])
@@ -2649,7 +2649,7 @@ function Hl(e, t, n, o, l, s) {
2649
2649
  default: r(() => [
2650
2650
  u(a, { class: "title" }, {
2651
2651
  default: r(() => [...t[10] || (t[10] = [
2652
- $("添加行按钮", -1)
2652
+ C("添加行按钮", -1)
2653
2653
  ])]),
2654
2654
  _: 1
2655
2655
  }),
@@ -2663,7 +2663,7 @@ function Hl(e, t, n, o, l, s) {
2663
2663
  onClick: (z) => s.pushRowButton(l.ctrlMap.buttons[S].type)
2664
2664
  }, {
2665
2665
  default: r(() => [
2666
- $(A(l.ctrlMap.buttons[S].name), 1)
2666
+ C(R(l.ctrlMap.buttons[S].name), 1)
2667
2667
  ]),
2668
2668
  _: 2
2669
2669
  }, 1032, ["onClick"])
@@ -2677,7 +2677,7 @@ function Hl(e, t, n, o, l, s) {
2677
2677
  default: r(() => [
2678
2678
  u(a, { class: "title" }, {
2679
2679
  default: r(() => [...t[11] || (t[11] = [
2680
- $("添加常规按钮", -1)
2680
+ C("添加常规按钮", -1)
2681
2681
  ])]),
2682
2682
  _: 1
2683
2683
  }),
@@ -2691,7 +2691,7 @@ function Hl(e, t, n, o, l, s) {
2691
2691
  onClick: (z) => s.pushNormalButton(l.ctrlMap.buttons[S].type)
2692
2692
  }, {
2693
2693
  default: r(() => [
2694
- $(A(l.ctrlMap.buttons[S].name), 1)
2694
+ C(R(l.ctrlMap.buttons[S].name), 1)
2695
2695
  ]),
2696
2696
  _: 2
2697
2697
  }, 1032, ["onClick"])
@@ -2702,7 +2702,7 @@ function Hl(e, t, n, o, l, s) {
2702
2702
  default: r(() => [
2703
2703
  u(c, { class: "ctrl-btn" }, {
2704
2704
  default: r(() => [...t[12] || (t[12] = [
2705
- $("按钮组", -1)
2705
+ C("按钮组", -1)
2706
2706
  ])]),
2707
2707
  _: 1
2708
2708
  })
@@ -2716,7 +2716,7 @@ function Hl(e, t, n, o, l, s) {
2716
2716
  default: r(() => [
2717
2717
  u(a, { class: "title" }, {
2718
2718
  default: r(() => [...t[13] || (t[13] = [
2719
- $("添加批量按钮", -1)
2719
+ C("添加批量按钮", -1)
2720
2720
  ])]),
2721
2721
  _: 1
2722
2722
  }),
@@ -2730,7 +2730,7 @@ function Hl(e, t, n, o, l, s) {
2730
2730
  onClick: (z) => s.pushBatchButton(l.ctrlMap.buttons[S].type)
2731
2731
  }, {
2732
2732
  default: r(() => [
2733
- $(A(l.ctrlMap.buttons[S].name), 1)
2733
+ C(R(l.ctrlMap.buttons[S].name), 1)
2734
2734
  ]),
2735
2735
  _: 2
2736
2736
  }, 1032, ["onClick"])
@@ -2741,7 +2741,7 @@ function Hl(e, t, n, o, l, s) {
2741
2741
  default: r(() => [
2742
2742
  u(c, { class: "ctrl-btn" }, {
2743
2743
  default: r(() => [...t[14] || (t[14] = [
2744
- $("按钮组", -1)
2744
+ C("按钮组", -1)
2745
2745
  ])]),
2746
2746
  _: 1
2747
2747
  })
@@ -2756,23 +2756,23 @@ function Hl(e, t, n, o, l, s) {
2756
2756
  })
2757
2757
  ]),
2758
2758
  main: r(() => [
2759
- (i(), h(p, Q({
2759
+ (i(), h(f, X({
2760
2760
  ref: "table",
2761
2761
  key: l.key,
2762
2762
  dev: !0
2763
2763
  }, l.builderSchema), null, 16)),
2764
- u(f),
2765
- u(y, {
2764
+ u(p),
2765
+ u(g, {
2766
2766
  type: "primary",
2767
2767
  onClick: s.saveSchema
2768
2768
  }, {
2769
2769
  default: r(() => [...t[15] || (t[15] = [
2770
- $("保存页面配置", -1)
2770
+ C("保存页面配置", -1)
2771
2771
  ])]),
2772
2772
  _: 1
2773
2773
  }, 8, ["onClick"]),
2774
- t[16] || (t[16] = $("    ", -1)),
2775
- u(v, {
2774
+ t[16] || (t[16] = C("    ", -1)),
2775
+ u(y, {
2776
2776
  text: "PageSchema",
2777
2777
  type: "modal"
2778
2778
  }, {
@@ -2787,7 +2787,7 @@ function Hl(e, t, n, o, l, s) {
2787
2787
  default: r(() => [
2788
2788
  u(b, { label: "控件类型" }, {
2789
2789
  default: r(() => [
2790
- u(I, {
2790
+ u(B, {
2791
2791
  modelValue: l.currentCtrlType,
2792
2792
  "onUpdate:modelValue": t[3] || (t[3] = (S) => l.currentCtrlType = S)
2793
2793
  }, {
@@ -2805,8 +2805,8 @@ function Hl(e, t, n, o, l, s) {
2805
2805
  })
2806
2806
  ]),
2807
2807
  _: 1
2808
- })) : B("", !0),
2809
- (i(), h(R, Q({
2808
+ })) : $("", !0),
2809
+ (i(), h(A, X({
2810
2810
  key: l.ctrlKey,
2811
2811
  modelValue: l.ctrlOptions,
2812
2812
  "onUpdate:modelValue": t[4] || (t[4] = (S) => l.ctrlOptions = S)
@@ -2815,60 +2815,60 @@ function Hl(e, t, n, o, l, s) {
2815
2815
  _: 1
2816
2816
  });
2817
2817
  }
2818
- const Fl = /* @__PURE__ */ P(ql, [["render", Hl], ["__scopeId", "data-v-cd18f87f"]]), Gl = "rtl", Kl = {
2818
+ const Gl = /* @__PURE__ */ P(Hl, [["render", Fl], ["__scopeId", "data-v-cd18f87f"]]), Kl = "rtl", zl = {
2819
2819
  __name: "PageEditor",
2820
2820
  setup(e) {
2821
- const t = C(!1);
2822
- C(1);
2823
- const n = Z(), o = Y(), l = k(() => o.pages[n.path]);
2821
+ const t = I(!1);
2822
+ I(1);
2823
+ const n = W(), o = Y(), l = k(() => o.pages[n.path]);
2824
2824
  return (s, a) => {
2825
- const c = L("VIcon"), d = At;
2825
+ const c = L("VIcon"), d = Rt;
2826
2826
  return i(), _(O, null, [
2827
2827
  u(c, {
2828
2828
  name: "ra-set",
2829
- onClick: a[0] || (a[0] = (p) => t.value = !m(t))
2829
+ onClick: a[0] || (a[0] = (f) => t.value = !m(t))
2830
2830
  }),
2831
2831
  u(d, {
2832
2832
  modelValue: m(t),
2833
- "onUpdate:modelValue": a[1] || (a[1] = (p) => Ge(t) ? t.value = p : null),
2833
+ "onUpdate:modelValue": a[1] || (a[1] = (f) => Ge(t) ? t.value = f : null),
2834
2834
  title: "页面设计",
2835
2835
  class: "my-drawer",
2836
- direction: Gl,
2836
+ direction: Kl,
2837
2837
  size: "90%",
2838
2838
  "destroy-on-close": "",
2839
2839
  "append-to-body": ""
2840
2840
  }, {
2841
2841
  default: r(() => [
2842
- m(l).formItems !== void 0 ? (i(), h(wl, {
2842
+ m(l).formItems !== void 0 ? (i(), h(xl, {
2843
2843
  key: 0,
2844
2844
  schema: m(l)
2845
- }, null, 8, ["schema"])) : B("", !0),
2846
- m(l).headers !== void 0 ? (i(), h(Fl, {
2845
+ }, null, 8, ["schema"])) : $("", !0),
2846
+ m(l).headers !== void 0 ? (i(), h(Gl, {
2847
2847
  key: 1,
2848
2848
  schema: m(l)
2849
- }, null, 8, ["schema"])) : B("", !0)
2849
+ }, null, 8, ["schema"])) : $("", !0)
2850
2850
  ]),
2851
2851
  _: 1
2852
2852
  }, 8, ["modelValue"])
2853
2853
  ], 64);
2854
2854
  };
2855
2855
  }
2856
- }, zl = { class: "right-content" }, Jl = {
2856
+ }, Jl = { class: "right-content" }, Wl = {
2857
2857
  key: 0,
2858
2858
  class: "right-item"
2859
- }, Wl = {
2859
+ }, Ql = {
2860
2860
  class: "right-item-button",
2861
2861
  style: { padding: "0" }
2862
- }, Ql = { class: "user-info" }, Xl = { class: "user-name" }, Zl = /* @__PURE__ */ K({
2862
+ }, Xl = { class: "user-info" }, Zl = { class: "user-name" }, Yl = /* @__PURE__ */ K({
2863
2863
  __name: "Navbar",
2864
2864
  setup(e) {
2865
2865
  const t = Y(), n = V(), o = j();
2866
- C(!1);
2867
- const l = C(!1);
2868
- C(""), C(0);
2869
- const s = k(() => n.defaultAvatar), a = k(() => t.sidebar), c = k(() => o.avatar), d = k(() => o.name), p = k(() => o.nickname), f = k(() => n.nav), y = k(() => n), w = k(() => o), v = k(() => n.showPageJsonSchema || !1), { isDark: T, toggleTheme: I } = Ut(), b = k(() => {
2870
- const D = y.value.envColor?.[w.value.env];
2871
- return T.value ? {
2866
+ I(!1);
2867
+ const l = I(!1);
2868
+ I(""), I(0);
2869
+ const s = k(() => n.defaultAvatar), a = k(() => t.sidebar), c = k(() => t.device), d = k(() => o.avatar), f = k(() => o.name), p = k(() => o.nickname), g = k(() => n.nav), w = k(() => n), y = k(() => o), T = k(() => n.showPageJsonSchema || !1), { isDark: B, toggleTheme: b } = Ut(), E = k(() => {
2870
+ const D = w.value.envColor?.[y.value.env];
2871
+ return B.value ? {
2872
2872
  background: "linear-gradient(135deg, rgba(59, 130, 246, 0.55) 0%, rgba(37, 99, 235, 0.45) 45%, rgba(15, 23, 42, 0.92) 100%)",
2873
2873
  borderBottom: "1px solid rgba(148, 163, 184, 0.35)",
2874
2874
  boxShadow: "0 1px 8px rgba(15, 23, 42, 0.7)"
@@ -2885,31 +2885,31 @@ const Fl = /* @__PURE__ */ P(ql, [["render", Hl], ["__scopeId", "data-v-cd18f87f
2885
2885
  Ie(() => {
2886
2886
  xt("el-submenu is-active");
2887
2887
  const D = Oe("navBarNotice") || "";
2888
- D.length > 0 && !Oe("closeNavNotice") && sn(D) && window?.App?.config?.globalProperties?.$notify({
2888
+ D.length > 0 && !Oe("closeNavNotice") && an(D) && window?.App?.config?.globalProperties?.$notify({
2889
2889
  title: "提示",
2890
2890
  message: D,
2891
2891
  dangerouslyUseHTMLString: !0,
2892
2892
  duration: 0,
2893
- onClose: ln
2894
- }), y.value.envColor?.[w.value.env] && An({
2895
- elRef: E.value.$el,
2896
- waterMark: w.value.env,
2893
+ onClose: sn
2894
+ }), w.value.envColor?.[y.value.env] && Pn({
2895
+ elRef: A.value.$el,
2896
+ waterMark: y.value.env,
2897
2897
  color: "skyblue",
2898
2898
  size: "20"
2899
2899
  });
2900
2900
  });
2901
- const E = C(), R = C(""), W = C(!1);
2902
- Ee([c, s], () => {
2903
- W.value = !1, R.value = c.value || s.value || "";
2901
+ const A = I(), Q = I(""), S = I(!1);
2902
+ be([d, s], () => {
2903
+ S.value = !1, Q.value = d.value || s.value || "";
2904
2904
  }, { immediate: !0 });
2905
- const S = k(() => {
2906
- const D = p.value || d.value || n.title || "用户";
2905
+ const q = k(() => {
2906
+ const D = p.value || f.value || n.title || "用户";
2907
2907
  return D ? D.toString().trim().charAt(0).toUpperCase() : "用";
2908
2908
  });
2909
- function q() {
2909
+ function z() {
2910
2910
  t.toggleSideBar();
2911
2911
  }
2912
- async function z() {
2912
+ async function ln() {
2913
2913
  await o.logout();
2914
2914
  const D = window?.App?.config?.globalProperties?.$router?.currentRoute?.value;
2915
2915
  location.reload(`${location.origin}/#/login?redirect=${D?.fullPath || "/"}`);
@@ -2917,75 +2917,78 @@ const Fl = /* @__PURE__ */ P(ql, [["render", Hl], ["__scopeId", "data-v-cd18f87f
2917
2917
  function Oe(D) {
2918
2918
  return n[D];
2919
2919
  }
2920
- async function ln() {
2921
- n.updateSettings({ closeNavNotice: !0 }), an(Oe("navBarNotice"));
2920
+ async function sn() {
2921
+ n.updateSettings({ closeNavNotice: !0 }), rn(Oe("navBarNotice"));
2922
2922
  }
2923
- function sn(D) {
2923
+ function an(D) {
2924
2924
  const N = "dismiss:navbar_notice";
2925
- return ge.exist(N) ? ge.get(N) !== D : !0;
2925
+ return ke.exist(N) ? ke.get(N) !== D : !0;
2926
2926
  }
2927
- function an(D) {
2928
- ge.set("dismiss:navbar_notice", D);
2927
+ function rn(D) {
2928
+ ke.set("dismiss:navbar_notice", D);
2929
2929
  }
2930
- function rn() {
2931
- W.value || (W.value = !0, R.value = "");
2930
+ function cn() {
2931
+ S.value || (S.value = !0, Q.value = "");
2932
2932
  }
2933
2933
  return (D, N) => {
2934
- const at = $e, cn = eo, un = Pt, dn = no, it = lo, pn = oo, fn = to, mn = At, hn = be;
2935
- return i(), h(hn, {
2934
+ const at = Be, un = to, dn = Pt, pn = oo, it = so, fn = lo, mn = no, hn = Rt, bn = ye;
2935
+ return i(), h(bn, {
2936
2936
  ref_key: "header",
2937
- ref: E,
2937
+ ref: A,
2938
2938
  class: "navbar",
2939
- style: vn(b.value)
2939
+ style: gn(E.value)
2940
2940
  }, {
2941
2941
  default: r(() => [
2942
2942
  u(at, { span: 16 }, {
2943
2943
  default: r(() => [
2944
- u(ol, {
2944
+ u(ll, {
2945
2945
  "is-active": a.value.opened,
2946
2946
  class: "hamburger-container",
2947
- onToggleClick: q
2947
+ onToggleClick: z
2948
2948
  }, null, 8, ["is-active"]),
2949
- u(el, { class: "breadcrumb-container" })
2949
+ c.value !== "mobile" ? (i(), h(tl, {
2950
+ key: 0,
2951
+ class: "breadcrumb-container"
2952
+ })) : $("", !0)
2950
2953
  ]),
2951
2954
  _: 1
2952
2955
  }),
2953
2956
  u(at, { span: 8 }, {
2954
2957
  default: r(() => [
2955
- g("div", zl, [
2956
- v.value ? (i(), _("div", Jl, [
2957
- u(Kl)
2958
- ])) : B("", !0),
2959
- g("div", Wl, [
2960
- u(m(et), { buttons: f.value }, null, 8, ["buttons"])
2958
+ v("div", Jl, [
2959
+ T.value ? (i(), _("div", Wl, [
2960
+ u(zl)
2961
+ ])) : $("", !0),
2962
+ v("div", Ql, [
2963
+ u(m(et), { buttons: g.value }, null, 8, ["buttons"])
2961
2964
  ]),
2962
- u(un, {
2965
+ u(dn, {
2963
2966
  placement: "bottom",
2964
- content: m(T) ? "切换为明亮模式" : "切换为暗黑模式"
2967
+ content: m(B) ? "切换为明亮模式" : "切换为暗黑模式"
2965
2968
  }, {
2966
2969
  default: r(() => [
2967
- g("div", {
2970
+ v("div", {
2968
2971
  class: "right-item theme-toggle",
2969
2972
  role: "button",
2970
2973
  tabindex: "0",
2971
2974
  onClick: N[0] || (N[0] = //@ts-ignore
2972
- (...se) => m(I) && m(I)(...se)),
2975
+ (...se) => m(b) && m(b)(...se)),
2973
2976
  onKeydown: [
2974
2977
  N[1] || (N[1] = rt(ct(
2975
2978
  //@ts-ignore
2976
- (...se) => m(I) && m(I)(...se),
2979
+ (...se) => m(b) && m(b)(...se),
2977
2980
  ["prevent"]
2978
2981
  ), ["enter"])),
2979
2982
  N[2] || (N[2] = rt(ct(
2980
2983
  //@ts-ignore
2981
- (...se) => m(I) && m(I)(...se),
2984
+ (...se) => m(b) && m(b)(...se),
2982
2985
  ["prevent"]
2983
2986
  ), ["space"]))
2984
2987
  ]
2985
2988
  }, [
2986
- u(cn, null, {
2989
+ u(un, null, {
2987
2990
  default: r(() => [
2988
- (i(), h(Ke(m(T) ? m(go) : m(ko))))
2991
+ (i(), h(Ke(m(B) ? m(ko) : m(So))))
2989
2992
  ]),
2990
2993
  _: 1
2991
2994
  })
@@ -2993,29 +2996,29 @@ const Fl = /* @__PURE__ */ P(ql, [["render", Hl], ["__scopeId", "data-v-cd18f87f
2993
2996
  ]),
2994
2997
  _: 1
2995
2998
  }, 8, ["content"]),
2996
- u(fn, {
2999
+ u(mn, {
2997
3000
  class: "right-item",
2998
3001
  trigger: "click"
2999
3002
  }, {
3000
3003
  dropdown: r(() => [
3001
- u(pn, { class: "user-dropdown" }, {
3004
+ u(fn, { class: "user-dropdown" }, {
3002
3005
  default: r(() => [
3003
3006
  u(it, {
3004
3007
  icon: "oms-icon-index",
3005
3008
  onClick: N[3] || (N[3] = (se) => D.$router.push("/"))
3006
3009
  }, {
3007
3010
  default: r(() => [...N[4] || (N[4] = [
3008
- $("首页", -1)
3011
+ C("首页", -1)
3009
3012
  ])]),
3010
3013
  _: 1
3011
3014
  }),
3012
3015
  u(it, {
3013
3016
  divided: "",
3014
3017
  icon: "el-icon-switch-button",
3015
- onClick: z
3018
+ onClick: ln
3016
3019
  }, {
3017
3020
  default: r(() => [...N[5] || (N[5] = [
3018
- $("退出登录", -1)
3021
+ C("退出登录", -1)
3019
3022
  ])]),
3020
3023
  _: 1
3021
3024
  })
@@ -3024,19 +3027,19 @@ const Fl = /* @__PURE__ */ P(ql, [["render", Hl], ["__scopeId", "data-v-cd18f87f
3024
3027
  })
3025
3028
  ]),
3026
3029
  default: r(() => [
3027
- g("div", Ql, [
3028
- u(dn, {
3030
+ v("div", Xl, [
3031
+ u(pn, {
3029
3032
  class: "user-avatar",
3030
3033
  size: 32,
3031
- src: R.value || void 0,
3032
- onError: rn
3034
+ src: Q.value || void 0,
3035
+ onError: cn
3033
3036
  }, {
3034
3037
  default: r(() => [
3035
- $(A(S.value), 1)
3038
+ C(R(q.value), 1)
3036
3039
  ]),
3037
3040
  _: 1
3038
3041
  }, 8, ["src"]),
3039
- g("span", Xl, A(p.value || d.value), 1)
3042
+ v("span", Zl, R(p.value || f.value), 1)
3040
3043
  ])
3041
3044
  ]),
3042
3045
  _: 1
@@ -3045,52 +3048,52 @@ const Fl = /* @__PURE__ */ P(ql, [["render", Hl], ["__scopeId", "data-v-cd18f87f
3045
3048
  ]),
3046
3049
  _: 1
3047
3050
  }),
3048
- l.value ? (i(), h(mn, {
3051
+ l.value ? (i(), h(hn, {
3049
3052
  key: 0,
3050
3053
  "with-header": !1,
3051
3054
  size: "50%"
3052
- })) : B("", !0)
3055
+ })) : $("", !0)
3053
3056
  ]),
3054
3057
  _: 1
3055
3058
  }, 8, ["style"]);
3056
3059
  };
3057
3060
  }
3058
- }), Yl = /* @__PURE__ */ P(Zl, [["__scopeId", "data-v-946dd90a"]]), es = { class: "sidebar-logo-fallback" }, ts = {
3061
+ }), es = /* @__PURE__ */ P(Yl, [["__scopeId", "data-v-c2dc5c82"]]), ts = { class: "sidebar-logo-fallback" }, ns = {
3059
3062
  key: 1,
3060
3063
  class: "sidebar-logo-fallback"
3061
- }, ns = { class: "sidebar-logo-fallback" }, os = {
3064
+ }, os = { class: "sidebar-logo-fallback" }, ls = {
3062
3065
  key: 1,
3063
3066
  class: "sidebar-logo-fallback"
3064
- }, ls = { class: "sidebar-title" }, ss = /* @__PURE__ */ K({
3067
+ }, ss = { class: "sidebar-title" }, as = /* @__PURE__ */ K({
3065
3068
  __name: "Logo",
3066
3069
  props: {
3067
3070
  collapse: { type: Boolean }
3068
3071
  },
3069
3072
  setup(e) {
3070
- const t = V(), n = k(() => t.title), o = k(() => t.logo), l = C(!1), s = k(() => !!o.value && !l.value), a = k(() => {
3073
+ const t = V(), n = k(() => t.title), o = k(() => t.logo), l = I(!1), s = k(() => !!o.value && !l.value), a = k(() => {
3071
3074
  const d = n.value || "OMS";
3072
3075
  return d ? d.toString().trim().charAt(0).toUpperCase() : "O";
3073
3076
  });
3074
- Ee(o, () => {
3077
+ be(o, () => {
3075
3078
  l.value = !1;
3076
3079
  }, { immediate: !0 });
3077
3080
  function c() {
3078
3081
  l.value = !0;
3079
3082
  }
3080
- return (d, p) => {
3081
- const f = so, y = L("router-link");
3083
+ return (d, f) => {
3084
+ const p = ao, g = L("router-link");
3082
3085
  return i(), _("div", {
3083
- class: ee(["sidebar-logo-container", { collapse: d.collapse }])
3086
+ class: ee(["sidebar-logo-container", { collapse: e.collapse }])
3084
3087
  }, [
3085
- u(gn, { name: "sidebarLogoFade" }, {
3088
+ u(kn, { name: "sidebarLogoFade" }, {
3086
3089
  default: r(() => [
3087
- d.collapse ? (i(), h(y, {
3090
+ e.collapse ? (i(), h(g, {
3088
3091
  key: "collapse",
3089
3092
  class: "sidebar-logo-link",
3090
3093
  to: "/"
3091
3094
  }, {
3092
3095
  default: r(() => [
3093
- s.value ? (i(), h(f, {
3096
+ s.value ? (i(), h(p, {
3094
3097
  key: 0,
3095
3098
  src: o.value || "",
3096
3099
  fit: "contain",
@@ -3098,20 +3101,20 @@ const Fl = /* @__PURE__ */ P(ql, [["render", Hl], ["__scopeId", "data-v-cd18f87f
3098
3101
  onError: c
3099
3102
  }, {
3100
3103
  error: r(() => [
3101
- g("div", es, A(a.value), 1)
3104
+ v("div", ts, R(a.value), 1)
3102
3105
  ]),
3103
3106
  _: 1
3104
- }, 8, ["src"])) : (i(), _("div", ts, A(a.value), 1)),
3105
- p[0] || (p[0] = g("div", { class: "sidebar-subtitle" }, "系统", -1))
3107
+ }, 8, ["src"])) : (i(), _("div", ns, R(a.value), 1)),
3108
+ f[0] || (f[0] = v("div", { class: "sidebar-subtitle" }, "系统", -1))
3106
3109
  ]),
3107
3110
  _: 1
3108
- })) : (i(), h(y, {
3111
+ })) : (i(), h(g, {
3109
3112
  key: "expand",
3110
3113
  class: "sidebar-logo-link",
3111
3114
  to: "/"
3112
3115
  }, {
3113
3116
  default: r(() => [
3114
- s.value ? (i(), h(f, {
3117
+ s.value ? (i(), h(p, {
3115
3118
  key: 0,
3116
3119
  src: o.value || "",
3117
3120
  fit: "contain",
@@ -3119,11 +3122,11 @@ const Fl = /* @__PURE__ */ P(ql, [["render", Hl], ["__scopeId", "data-v-cd18f87f
3119
3122
  onError: c
3120
3123
  }, {
3121
3124
  error: r(() => [
3122
- g("div", ns, A(a.value), 1)
3125
+ v("div", os, R(a.value), 1)
3123
3126
  ]),
3124
3127
  _: 1
3125
- }, 8, ["src"])) : (i(), _("div", os, A(a.value), 1)),
3126
- g("h1", ls, A(n.value), 1)
3128
+ }, 8, ["src"])) : (i(), _("div", ls, R(a.value), 1)),
3129
+ v("h1", ss, R(n.value), 1)
3127
3130
  ]),
3128
3131
  _: 1
3129
3132
  }))
@@ -3133,7 +3136,7 @@ const Fl = /* @__PURE__ */ P(ql, [["render", Hl], ["__scopeId", "data-v-cd18f87f
3133
3136
  ], 2);
3134
3137
  };
3135
3138
  }
3136
- }), as = /* @__PURE__ */ P(ss, [["__scopeId", "data-v-d170b6a7"]]), is = {
3139
+ }), is = /* @__PURE__ */ P(as, [["__scopeId", "data-v-d170b6a7"]]), rs = {
3137
3140
  props: {
3138
3141
  to: {
3139
3142
  type: String,
@@ -3166,15 +3169,15 @@ const Fl = /* @__PURE__ */ P(ql, [["render", Hl], ["__scopeId", "data-v-cd18f87f
3166
3169
  }
3167
3170
  }
3168
3171
  };
3169
- function rs(e, t, n, o, l, s) {
3170
- return i(), h(Ke(s.compType(n.to)), X(re(s.linkProps(n.to))), {
3172
+ function cs(e, t, n, o, l, s) {
3173
+ return i(), h(Ke(s.compType(n.to)), Z(re(s.linkProps(n.to))), {
3171
3174
  default: r(() => [
3172
3175
  de(e.$slots, "default")
3173
3176
  ]),
3174
3177
  _: 3
3175
3178
  }, 16);
3176
3179
  }
3177
- const cs = /* @__PURE__ */ P(is, [["render", rs]]), us = {
3180
+ const us = /* @__PURE__ */ P(rs, [["render", cs]]), ds = {
3178
3181
  computed: {
3179
3182
  // @ts-ignore
3180
3183
  device() {
@@ -3195,7 +3198,7 @@ const cs = /* @__PURE__ */ P(is, [["render", rs]]), us = {
3195
3198
  }
3196
3199
  }
3197
3200
  }
3198
- }, ds = { class: "menu-content" }, ps = /* @__PURE__ */ K({
3201
+ }, ps = { class: "menu-content" }, fs = /* @__PURE__ */ K({
3199
3202
  __name: "MenuContent",
3200
3203
  props: {
3201
3204
  meta: {
@@ -3213,17 +3216,17 @@ const cs = /* @__PURE__ */ P(is, [["render", rs]]), us = {
3213
3216
  u(o, {
3214
3217
  name: e.meta.icon || "ra-all"
3215
3218
  }, null, 8, ["name"]),
3216
- g("span", ds, A(e.meta.title), 1)
3219
+ v("span", ps, R(e.meta.title), 1)
3217
3220
  ], 64);
3218
3221
  };
3219
3222
  }
3220
- }), fs = {
3223
+ }), ms = {
3221
3224
  name: "SidebarItem",
3222
3225
  components: {
3223
- AppLink: cs,
3224
- MenuContent: ps
3226
+ AppLink: us,
3227
+ MenuContent: fs
3225
3228
  },
3226
- mixins: [us],
3229
+ mixins: [ds],
3227
3230
  props: {
3228
3231
  // route object
3229
3232
  item: {
@@ -3245,7 +3248,7 @@ const cs = /* @__PURE__ */ P(is, [["render", rs]]), us = {
3245
3248
  },
3246
3249
  methods: {
3247
3250
  itemClick() {
3248
- ge.remove("table_filter:" + this.$props.to);
3251
+ ke.remove("table_filter:" + this.$props.to);
3249
3252
  },
3250
3253
  getTo(e) {
3251
3254
  try {
@@ -3255,14 +3258,14 @@ const cs = /* @__PURE__ */ P(is, [["render", rs]]), us = {
3255
3258
  }
3256
3259
  }
3257
3260
  }
3258
- }, ms = {
3261
+ }, hs = {
3259
3262
  key: 0,
3260
3263
  class: "menu-wrapper"
3261
3264
  };
3262
- function hs(e, t, n, o, l, s) {
3263
- const a = L("menu-content"), c = ao, d = L("app-link"), p = Pt, f = L("sidebar-item", !0), y = io;
3264
- return n.item.hidden !== !1 ? (i(), _("div", ms, [
3265
- n.item.meta && n.item.meta.menuType === 2 ? (i(), h(p, {
3265
+ function bs(e, t, n, o, l, s) {
3266
+ const a = L("menu-content"), c = io, d = L("app-link"), f = Pt, p = L("sidebar-item", !0), g = ro;
3267
+ return n.item.hidden !== !1 ? (i(), _("div", hs, [
3268
+ n.item.meta && n.item.meta.menuType === 2 ? (i(), h(f, {
3266
3269
  key: 0,
3267
3270
  disabled: !n.isCollapse,
3268
3271
  effect: "dark",
@@ -3290,10 +3293,10 @@ function hs(e, t, n, o, l, s) {
3290
3293
  }, 8, ["index", "class", "onClick"])
3291
3294
  ]),
3292
3295
  _: 1
3293
- }, 8, ["to", "new-tab"])) : B("", !0)
3296
+ }, 8, ["to", "new-tab"])) : $("", !0)
3294
3297
  ]),
3295
3298
  _: 1
3296
- }, 8, ["disabled", "content"])) : n.item.meta && n.item.meta.menuType === 1 ? (i(), h(p, {
3299
+ }, 8, ["disabled", "content"])) : n.item.meta && n.item.meta.menuType === 1 ? (i(), h(f, {
3297
3300
  key: 1,
3298
3301
  disabled: !n.isCollapse,
3299
3302
  effect: "dark",
@@ -3301,7 +3304,7 @@ function hs(e, t, n, o, l, s) {
3301
3304
  content: n.item.meta?.title
3302
3305
  }, {
3303
3306
  default: r(() => [
3304
- u(y, {
3307
+ u(g, {
3305
3308
  ref: "subMenu",
3306
3309
  index: n.to,
3307
3310
  class: ee({ "submenu-title-noDropdown": !n.isNest })
@@ -3323,7 +3326,7 @@ function hs(e, t, n, o, l, s) {
3323
3326
  }, null, 8, ["meta"]))
3324
3327
  ]),
3325
3328
  default: r(() => [
3326
- (i(!0), _(O, null, U(n.item.children, (w) => (i(), h(f, {
3329
+ (i(!0), _(O, null, U(n.item.children, (w) => (i(), h(p, {
3327
3330
  key: w.path,
3328
3331
  "is-nest": !0,
3329
3332
  item: w,
@@ -3335,41 +3338,41 @@ function hs(e, t, n, o, l, s) {
3335
3338
  }, 8, ["index", "class"])
3336
3339
  ]),
3337
3340
  _: 1
3338
- }, 8, ["disabled", "content"])) : B("", !0)
3339
- ])) : B("", !0);
3341
+ }, 8, ["disabled", "content"])) : $("", !0)
3342
+ ])) : $("", !0);
3340
3343
  }
3341
- const bs = /* @__PURE__ */ P(fs, [["render", hs]]), ys = /* @__PURE__ */ K({
3344
+ const ys = /* @__PURE__ */ P(ms, [["render", bs]]), _s = /* @__PURE__ */ K({
3342
3345
  __name: "SearchMenu",
3343
3346
  setup(e) {
3344
3347
  const t = j();
3345
- function n(p) {
3346
- return p.filter((f) => f.meta?.menuType === 0 ? !1 : (f.children && (f.children = n(f.children), f.children.length === 0 && delete f.children), !0));
3348
+ function n(f) {
3349
+ return f.filter((p) => p.meta?.menuType === 0 ? !1 : (p.children && (p.children = n(p.children), p.children.length === 0 && delete p.children), !0));
3347
3350
  }
3348
- const o = C(""), l = k(() => t.remoteRouter), s = Te(), a = k(() => {
3349
- let p = [];
3350
- return l.value.forEach((f) => {
3351
- p = p.concat(x(f.routes));
3352
- }), n(p);
3351
+ const o = I(""), l = k(() => t.remoteRouter), s = Te(), a = k(() => {
3352
+ let f = [];
3353
+ return l.value.forEach((p) => {
3354
+ f = f.concat(x(p.routes));
3355
+ }), n(f);
3353
3356
  });
3354
- function c(p) {
3355
- let f = p;
3356
- if (p.meta.menuType === 1 && p.children && p.children.length > 0) {
3357
- for (let y = 0; y < p.children.length; y++)
3358
- if (p.children[y].path.indexOf("/:") === -1) {
3359
- f = p.children[y];
3357
+ function c(f) {
3358
+ let p = f;
3359
+ if (f.meta.menuType === 1 && f.children && f.children.length > 0) {
3360
+ for (let g = 0; g < f.children.length; g++)
3361
+ if (f.children[g].path.indexOf("/:") === -1) {
3362
+ p = f.children[g];
3360
3363
  break;
3361
3364
  }
3362
3365
  }
3363
- return s.resolve(f.redirect ? f.redirect : f).fullPath;
3366
+ return s.resolve(p.redirect ? p.redirect : p).fullPath;
3364
3367
  }
3365
- function d(p) {
3366
- s.push(p), o.value = "";
3368
+ function d(f) {
3369
+ s.push(f), o.value = "";
3367
3370
  }
3368
- return (p, f) => {
3369
- const y = Qe, w = ro, v = We;
3370
- return i(), h(v, {
3371
+ return (f, p) => {
3372
+ const g = Qe, w = co, y = We;
3373
+ return i(), h(y, {
3371
3374
  modelValue: m(o),
3372
- "onUpdate:modelValue": f[0] || (f[0] = (T) => Ge(o) ? o.value = T : null),
3375
+ "onUpdate:modelValue": p[0] || (p[0] = (T) => Ge(o) ? o.value = T : null),
3373
3376
  filterable: "",
3374
3377
  placeholder: "搜索菜单...",
3375
3378
  class: "search-menu",
@@ -3385,19 +3388,19 @@ const bs = /* @__PURE__ */ P(fs, [["render", hs]]), ys = /* @__PURE__ */ K({
3385
3388
  label: T.meta.title
3386
3389
  }, {
3387
3390
  default: r(() => [
3388
- (i(!0), _(O, null, U(T.children, (I, b) => (i(), _(O, {
3389
- key: I.path
3391
+ (i(!0), _(O, null, U(T.children, (B, b) => (i(), _(O, {
3392
+ key: B.path
3390
3393
  }, [
3391
- T.meta.menuType !== 0 ? (i(), h(y, {
3394
+ T.meta.menuType !== 0 ? (i(), h(g, {
3392
3395
  key: 0,
3393
- label: (b === T.children.length - 1 ? "└─" : "├─") + I.meta.title,
3394
- value: c(I)
3395
- }, null, 8, ["label", "value"])) : B("", !0)
3396
+ label: (b === T.children.length - 1 ? "└─" : "├─") + B.meta.title,
3397
+ value: c(B)
3398
+ }, null, 8, ["label", "value"])) : $("", !0)
3396
3399
  ], 64))), 128))
3397
3400
  ]),
3398
3401
  _: 2
3399
- }, 1032, ["label"])) : B("", !0)
3400
- ], 64)) : (i(), h(y, {
3402
+ }, 1032, ["label"])) : $("", !0)
3403
+ ], 64)) : (i(), h(g, {
3401
3404
  key: 1,
3402
3405
  label: "" + T.meta.title,
3403
3406
  value: c(T)
@@ -3408,12 +3411,12 @@ const bs = /* @__PURE__ */ P(fs, [["render", hs]]), ys = /* @__PURE__ */ K({
3408
3411
  }, 8, ["modelValue"]);
3409
3412
  };
3410
3413
  }
3411
- }), _s = /* @__PURE__ */ P(ys, [["__scopeId", "data-v-1821c9c2"]]);
3414
+ }), vs = /* @__PURE__ */ P(_s, [["__scopeId", "data-v-1821c9c2"]]);
3412
3415
  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 || {}), G = /* @__PURE__ */ ((e) => (e[e.hidden = 0] = "hidden", e[e.dir = 1] = "dir", e[e.menu = 2] = "menu", e[e.page = 3] = "page", e))(G || {});
3413
- const vs = /* @__PURE__ */ K({
3416
+ const gs = /* @__PURE__ */ K({
3414
3417
  __name: "index",
3415
3418
  setup(e) {
3416
- const t = Y(), n = j(), o = V(), l = k(() => t.sidebar), s = k(() => n.remoteRouter), a = k(() => n.customRouter), c = Te(), d = Z(), p = k(() => {
3419
+ const t = Y(), n = j(), o = V(), l = k(() => t.sidebar), s = k(() => n.remoteRouter), a = k(() => n.customRouter), c = Te(), d = W(), f = k(() => {
3417
3420
  let b = [];
3418
3421
  return c.options.routes.concat(a.value || []).forEach((E) => {
3419
3422
  E.path === "/" ? b = b.concat(E.children || []) : b.push(E);
@@ -3421,41 +3424,41 @@ const vs = /* @__PURE__ */ K({
3421
3424
  { label: "", routes: b },
3422
3425
  ...s.value
3423
3426
  ]);
3424
- }), f = k(() => {
3427
+ }), p = k(() => {
3425
3428
  const b = d.matched;
3426
3429
  for (let E = b.length - 1; E >= 0; E--) {
3427
- const R = b[E];
3428
- if (R.meta.menuType === G.menu)
3429
- return T(), c.resolve(R.redirect ? R.redirect : R).fullPath;
3430
+ const A = b[E];
3431
+ if (A.meta.menuType === G.menu)
3432
+ return T(), c.resolve(A.redirect ? A.redirect : A).fullPath;
3430
3433
  }
3431
3434
  return "";
3432
- }), y = k(() => o.sidebarLogo), w = k(() => ({
3435
+ }), g = k(() => o.sidebarLogo), w = k(() => ({
3433
3436
  menuBg: "#304156",
3434
3437
  menuText: "#bfcbd9",
3435
3438
  menuActiveText: "#409EFF"
3436
- })), v = k(() => !l.value.opened);
3439
+ })), y = k(() => !l.value.opened);
3437
3440
  Ie(() => T());
3438
3441
  function T() {
3439
3442
  xt("is-active", 200);
3440
3443
  }
3441
- function I(b) {
3442
- return b.filter((E) => [G.dir, G.menu].indexOf(E.meta.menuType) !== -1).map((E) => (E = Object.assign({}, E), E.children && (E.children = I(E.children)), E));
3444
+ function B(b) {
3445
+ return b.filter((E) => [G.dir, G.menu].indexOf(E.meta.menuType) !== -1).map((E) => (E = Object.assign({}, E), E.children && (E.children = B(E.children)), E));
3443
3446
  }
3444
3447
  return (b, E) => {
3445
- const R = uo, W = co;
3448
+ const A = po, Q = uo;
3446
3449
  return i(), _("div", {
3447
- class: ee({ "has-logo": m(y) })
3450
+ class: ee({ "has-logo": m(g) })
3448
3451
  }, [
3449
- m(y) ? (i(), h(as, {
3452
+ m(g) ? (i(), h(is, {
3450
3453
  key: 0,
3451
- collapse: m(v)
3452
- }, null, 8, ["collapse"])) : B("", !0),
3453
- u(W, { "wrap-class": "scrollbar-wrapper" }, {
3454
+ collapse: m(y)
3455
+ }, null, 8, ["collapse"])) : $("", !0),
3456
+ u(Q, { "wrap-class": "scrollbar-wrapper" }, {
3454
3457
  default: r(() => [
3455
- m(v) ? B("", !0) : (i(), h(_s, { key: 0 })),
3456
- u(R, {
3457
- "default-active": m(f),
3458
- collapse: m(v),
3458
+ m(y) ? $("", !0) : (i(), h(vs, { key: 0 })),
3459
+ u(A, {
3460
+ "default-active": m(p),
3461
+ collapse: m(y),
3459
3462
  "background-color": m(w).menuBg,
3460
3463
  "text-color": m(w).menuText,
3461
3464
  "unique-opened": !1,
@@ -3464,14 +3467,14 @@ const vs = /* @__PURE__ */ K({
3464
3467
  mode: "vertical"
3465
3468
  }, {
3466
3469
  default: r(() => [
3467
- (i(!0), _(O, null, U(m(p), (S, q) => (i(), _(O, {
3470
+ (i(!0), _(O, null, U(m(f), (S, q) => (i(), _(O, {
3468
3471
  key: q + "-module"
3469
3472
  }, [
3470
- (i(!0), _(O, null, U(I(S.routes), (z) => (i(), h(bs, {
3473
+ (i(!0), _(O, null, U(B(S.routes), (z) => (i(), h(ys, {
3471
3474
  key: z.path,
3472
3475
  item: z,
3473
3476
  to: b.$router.resolve(z.redirect ? z.redirect : z).fullPath,
3474
- "is-collapse": m(v)
3477
+ "is-collapse": m(y)
3475
3478
  }, null, 8, ["item", "to", "is-collapse"]))), 128))
3476
3479
  ], 64))), 128))
3477
3480
  ]),
@@ -3483,15 +3486,15 @@ const vs = /* @__PURE__ */ K({
3483
3486
  ], 2);
3484
3487
  };
3485
3488
  }
3486
- }), gs = /* @__PURE__ */ P(vs, [["__scopeId", "data-v-3be8fe55"]]), ks = { class: "app-main" }, Ss = {
3489
+ }), ks = /* @__PURE__ */ P(gs, [["__scopeId", "data-v-3be8fe55"]]), Ss = { class: "app-main" }, ws = {
3487
3490
  __name: "AppMain",
3488
3491
  setup(e) {
3489
- const t = Z(), n = [], o = C(0);
3490
- return Gn(() => {
3492
+ const t = W(), n = [], o = I(0);
3493
+ return Kn(() => {
3491
3494
  t.meta?.keepAlive && n.indexOf(t.name) && n.push(t.name), o.value++;
3492
3495
  }), (l, s) => {
3493
- const a = L("router-view"), c = po;
3494
- return i(), _("section", ks, [
3496
+ const a = L("router-view"), c = fo;
3497
+ return i(), _("section", Ss, [
3495
3498
  (i(), h(a, {
3496
3499
  key: l.$route.fullPath + m(o)
3497
3500
  })),
@@ -3499,133 +3502,135 @@ const vs = /* @__PURE__ */ K({
3499
3502
  ]);
3500
3503
  };
3501
3504
  }
3502
- }, ws = /* @__PURE__ */ P(Ss, [["__scopeId", "data-v-ca0f0d98"]]), xs = { class: "main-container" }, Es = 992, Is = {
3505
+ }, xs = /* @__PURE__ */ P(ws, [["__scopeId", "data-v-ca0f0d98"]]), Es = { class: "main-container" }, Is = 992, Cs = {
3503
3506
  __name: "index",
3504
3507
  setup(e) {
3505
- const { body: t } = document, n = Y(), o = V(), l = k(() => n.sidebar), s = k(() => n.device), a = k(() => o.fixedHeader), c = k(() => ({
3506
- hideSidebar: !l.value.opened,
3507
- openSidebar: l.value.opened,
3508
- withoutAnimation: l.value.withoutAnimation,
3509
- mobile: s.value === "mobile"
3510
- })), d = () => t.getBoundingClientRect().width - 1 < Es;
3511
- So(window, "resize", () => f());
3512
- const p = () => n.closeSideBar({ withoutAnimation: !1 }), f = () => {
3508
+ const { body: t } = document, n = Y(), o = V(), l = W(), s = k(() => n.sidebar), a = k(() => n.device), c = k(() => o.fixedHeader), d = k(() => ({
3509
+ hideSidebar: !s.value.opened,
3510
+ openSidebar: s.value.opened,
3511
+ withoutAnimation: s.value.withoutAnimation,
3512
+ mobile: a.value === "mobile"
3513
+ })), f = () => t.getBoundingClientRect().width - 1 < Is, p = () => {
3513
3514
  if (!document.hidden) {
3514
- const y = d();
3515
- n.toggleDevice(y ? "mobile" : "desktop"), y && n.closeSideBar({ withoutAnimation: !0 });
3515
+ const w = f();
3516
+ n.toggleDevice(w ? "mobile" : "desktop"), w && n.closeSideBar({ withoutAnimation: !0 });
3516
3517
  }
3517
3518
  };
3518
- return (y, w) => (i(), _("div", {
3519
- class: ee([m(c), "app-wrapper"])
3519
+ p(), wo(window, "resize", () => p()), be(l, () => {
3520
+ a.value === "mobile" && s.value.opened && n.closeSideBar({ withoutAnimation: !1 });
3521
+ });
3522
+ const g = () => n.closeSideBar({ withoutAnimation: !1 });
3523
+ return (w, y) => (i(), _("div", {
3524
+ class: ee([m(d), "app-wrapper"])
3520
3525
  }, [
3521
- m(s) === "mobile" && m(l).opened ? (i(), _("div", {
3526
+ m(a) === "mobile" && m(s).opened ? (i(), _("div", {
3522
3527
  key: 0,
3523
3528
  class: "drawer-bg",
3524
- onClick: p
3525
- })) : B("", !0),
3526
- u(m(gs), { class: "sidebar-container" }),
3527
- g("div", xs, [
3528
- g("div", {
3529
- class: ee({ "fixed-header": m(a) })
3529
+ onClick: g
3530
+ })) : $("", !0),
3531
+ u(m(ks), { class: "sidebar-container" }),
3532
+ v("div", Es, [
3533
+ v("div", {
3534
+ class: ee({ "fixed-header": m(c) })
3530
3535
  }, [
3531
- u(m(Yl))
3536
+ u(m(es))
3532
3537
  ], 2),
3533
- u(m(ws))
3538
+ u(m(xs))
3534
3539
  ])
3535
3540
  ], 2));
3536
3541
  }
3537
- }, Kt = /* @__PURE__ */ P(Is, [["__scopeId", "data-v-b7ab74f0"]]), Cs = { id: "login" }, Ts = { id: "form" }, $s = {
3542
+ }, Kt = /* @__PURE__ */ P(Cs, [["__scopeId", "data-v-6bf05d7c"]]), Ts = { id: "login" }, Bs = { id: "form" }, $s = {
3538
3543
  key: 0,
3539
3544
  class: "captcha"
3540
- }, Bs = ["src"], Os = { class: "tips" }, Rs = { class: "sso" }, As = /* @__PURE__ */ K({
3545
+ }, Os = ["src"], As = { class: "tips" }, Rs = { class: "sso" }, Ps = /* @__PURE__ */ K({
3541
3546
  __name: "login",
3542
3547
  setup(e) {
3543
- const t = Te(), n = Z(), o = V(), l = Y(), s = j(), a = k(() => o.loginTips), c = k(() => o.captcha), d = k(() => l.baseURL), p = C(0), f = C(!1), y = () => p.value++, w = k(() => v.value.username.length > 0 && v.value.password.length >= 4 && (c.value ? v.value.captcha.length === 4 : !0)), v = C({
3548
+ const t = Te(), n = W(), o = V(), l = Y(), s = j(), a = k(() => o.loginTips), c = k(() => o.captcha), d = k(() => l.baseURL), f = I(0), p = I(!1), g = () => f.value++, w = k(() => y.value.username.length > 0 && y.value.password.length >= 4 && (c.value ? y.value.captcha.length === 4 : !0)), y = I({
3544
3549
  username: "",
3545
3550
  password: "",
3546
3551
  captcha: "",
3547
3552
  sing: ""
3548
3553
  }), T = () => {
3549
- if (!f.value) {
3550
- if (v.value.username === "" || v.value.password === "" || c.value && v.value.captcha === "") {
3551
- fo.error("用户名, 密码, 验证码是必须的");
3554
+ if (!p.value) {
3555
+ if (y.value.username === "" || y.value.password === "" || c.value && y.value.captcha === "") {
3556
+ mo.error("用户名, 密码, 验证码是必须的");
3552
3557
  return;
3553
3558
  }
3554
- c.value && (v.value.sing = xo.MD5(`${v.value.username}${v.value.password}${v.value.captcha}`).toString()), f.value = !0, s.login(v.value).then((I) => {
3559
+ c.value && (y.value.sing = Eo.MD5(`${y.value.username}${y.value.password}${y.value.captcha}`).toString()), p.value = !0, s.login(y.value).then((B) => {
3555
3560
  t.push({ path: n.query?.redirect || "/" });
3556
- }).catch((I) => {
3557
- p.value++;
3561
+ }).catch((B) => {
3562
+ f.value++;
3558
3563
  }).finally(() => {
3559
- f.value = !1;
3564
+ p.value = !1;
3560
3565
  });
3561
3566
  }
3562
3567
  };
3563
- return (I, b) => {
3568
+ return (B, b) => {
3564
3569
  const E = me;
3565
- return i(), _("div", Cs, [
3566
- b[5] || (b[5] = g("h1", { id: "title" }, "登录", -1)),
3567
- g("form", Ts, [
3568
- ve(g("input", {
3569
- "onUpdate:modelValue": b[0] || (b[0] = (R) => m(v).username = R),
3570
+ return i(), _("div", Ts, [
3571
+ b[5] || (b[5] = v("h1", { id: "title" }, "登录", -1)),
3572
+ v("form", Bs, [
3573
+ ge(v("input", {
3574
+ "onUpdate:modelValue": b[0] || (b[0] = (A) => m(y).username = A),
3570
3575
  type: "text",
3571
3576
  placeholder: "用户名",
3572
3577
  class: "input"
3573
3578
  }, null, 512), [
3574
- [Re, m(v).username]
3579
+ [Ae, m(y).username]
3575
3580
  ]),
3576
- ve(g("input", {
3577
- "onUpdate:modelValue": b[1] || (b[1] = (R) => m(v).password = R),
3581
+ ge(v("input", {
3582
+ "onUpdate:modelValue": b[1] || (b[1] = (A) => m(y).password = A),
3578
3583
  type: "password",
3579
3584
  placeholder: "密码",
3580
3585
  class: "input"
3581
3586
  }, null, 512), [
3582
- [Re, m(v).password]
3587
+ [Ae, m(y).password]
3583
3588
  ]),
3584
3589
  c.value ? (i(), _("div", $s, [
3585
- ve(g("input", {
3586
- "onUpdate:modelValue": b[2] || (b[2] = (R) => m(v).captcha = R),
3590
+ ge(v("input", {
3591
+ "onUpdate:modelValue": b[2] || (b[2] = (A) => m(y).captcha = A),
3587
3592
  type: "text",
3588
3593
  placeholder: "验证码",
3589
3594
  class: "input-captcha"
3590
3595
  }, null, 512), [
3591
- [Re, m(v).captcha]
3596
+ [Ae, m(y).captcha]
3592
3597
  ]),
3593
- g("img", {
3598
+ v("img", {
3594
3599
  class: "captcha-img",
3595
- src: d.value + "/user/captcha?ts=" + m(p),
3600
+ src: d.value + "/user/captcha?ts=" + m(f),
3596
3601
  title: "点击刷新",
3597
- onClick: y
3598
- }, null, 8, Bs)
3599
- ])) : B("", !0),
3602
+ onClick: g
3603
+ }, null, 8, Os)
3604
+ ])) : $("", !0),
3600
3605
  u(E, {
3601
3606
  class: "login-button",
3602
3607
  type: "primary",
3603
- loading: m(f),
3608
+ loading: m(p),
3604
3609
  disabled: !w.value,
3605
3610
  onClick: T
3606
3611
  }, {
3607
3612
  default: r(() => [...b[3] || (b[3] = [
3608
- $("登录", -1)
3613
+ C("登录", -1)
3609
3614
  ])]),
3610
3615
  _: 1
3611
3616
  }, 8, ["loading", "disabled"]),
3612
- g("div", Os, [
3613
- g("div", null, A(a.value), 1)
3617
+ v("div", As, [
3618
+ v("div", null, R(a.value), 1)
3614
3619
  ]),
3615
- g("div", Rs, [
3616
- b[4] || (b[4] = g("div", { id: "sso-qrcode" }, null, -1)),
3617
- (i(!0), _(O, null, U(Object.keys([]), (R) => (i(), _("div", { key: R }, A(R), 1))), 128))
3620
+ v("div", Rs, [
3621
+ b[4] || (b[4] = v("div", { id: "sso-qrcode" }, null, -1)),
3622
+ (i(!0), _(O, null, U(Object.keys([]), (A) => (i(), _("div", { key: A }, R(A), 1))), 128))
3618
3623
  ])
3619
3624
  ])
3620
3625
  ]);
3621
3626
  };
3622
3627
  }
3623
- }), Ps = {
3628
+ }), Ls = {
3624
3629
  name: "NotFoundPage"
3625
- }, Ls = { class: "not-found" };
3626
- function Ms(e, t, n, o, l, s) {
3627
- return i(), _("div", Ls, [...t[0] || (t[0] = [
3628
- g("svg", {
3630
+ }, Ms = { class: "not-found" };
3631
+ function Ds(e, t, n, o, l, s) {
3632
+ return i(), _("div", Ms, [...t[0] || (t[0] = [
3633
+ v("svg", {
3629
3634
  width: "380px",
3630
3635
  height: "500px",
3631
3636
  viewBox: "0 0 837 1045",
@@ -3634,7 +3639,7 @@ function Ms(e, t, n, o, l, s) {
3634
3639
  "xmlns:xlink": "http://www.w3.org/1999/xlink",
3635
3640
  "xmlns:sketch": "http://www.bohemiancoding.com/sketch/ns"
3636
3641
  }, [
3637
- g("g", {
3642
+ v("g", {
3638
3643
  id: "Page-1",
3639
3644
  stroke: "none",
3640
3645
  "stroke-width": "1",
@@ -3642,35 +3647,35 @@ function Ms(e, t, n, o, l, s) {
3642
3647
  "fill-rule": "evenodd",
3643
3648
  "sketch:type": "MSPage"
3644
3649
  }, [
3645
- g("path", {
3650
+ v("path", {
3646
3651
  id: "Polygon-1",
3647
3652
  d: "M353,9 L626.664028,170 L626.664028,487 L353,642 L79.3359724,487 L79.3359724,170 L353,9 Z",
3648
3653
  stroke: "#007FB2",
3649
3654
  "stroke-width": "6",
3650
3655
  "sketch:type": "MSShapeGroup"
3651
3656
  }),
3652
- g("path", {
3657
+ v("path", {
3653
3658
  id: "Polygon-2",
3654
3659
  d: "M78.5,529 L147,569.186414 L147,648.311216 L78.5,687 L10,648.311216 L10,569.186414 L78.5,529 Z",
3655
3660
  stroke: "#EF4A5B",
3656
3661
  "stroke-width": "6",
3657
3662
  "sketch:type": "MSShapeGroup"
3658
3663
  }),
3659
- g("path", {
3664
+ v("path", {
3660
3665
  id: "Polygon-3",
3661
3666
  d: "M773,186 L827,217.538705 L827,279.636651 L773,310 L719,279.636651 L719,217.538705 L773,186 Z",
3662
3667
  stroke: "#795D9C",
3663
3668
  "stroke-width": "6",
3664
3669
  "sketch:type": "MSShapeGroup"
3665
3670
  }),
3666
- g("path", {
3671
+ v("path", {
3667
3672
  id: "Polygon-4",
3668
3673
  d: "M639,529 L773,607.846761 L773,763.091627 L639,839 L505,763.091627 L505,607.846761 L639,529 Z",
3669
3674
  stroke: "#F2773F",
3670
3675
  "stroke-width": "6",
3671
3676
  "sketch:type": "MSShapeGroup"
3672
3677
  }),
3673
- g("path", {
3678
+ v("path", {
3674
3679
  id: "Polygon-5",
3675
3680
  d: "M281,801 L383,861.025276 L383,979.21169 L281,1037 L179,979.21169 L179,861.025276 L281,801 Z",
3676
3681
  stroke: "#36B455",
@@ -3679,12 +3684,12 @@ function Ms(e, t, n, o, l, s) {
3679
3684
  })
3680
3685
  ])
3681
3686
  ], -1),
3682
- g("div", { class: "message-box" }, [
3683
- g("h1", null, "404"),
3684
- g("p", null, "Page not found"),
3685
- g("div", { class: "buttons-con" }, [
3686
- g("div", { class: "action-link-wrap" }, [
3687
- g("a", {
3687
+ v("div", { class: "message-box" }, [
3688
+ v("h1", null, "404"),
3689
+ v("p", null, "Page not found"),
3690
+ v("div", { class: "buttons-con" }, [
3691
+ v("div", { class: "action-link-wrap" }, [
3692
+ v("a", {
3688
3693
  href: "",
3689
3694
  class: "link-button"
3690
3695
  }, "Go to Home Page")
@@ -3693,7 +3698,7 @@ function Ms(e, t, n, o, l, s) {
3693
3698
  ], -1)
3694
3699
  ])]);
3695
3700
  }
3696
- const Ds = /* @__PURE__ */ P(Ps, [["render", Ms], ["__scopeId", "data-v-26068803"]]), js = [
3701
+ const js = /* @__PURE__ */ P(Ls, [["render", Ds], ["__scopeId", "data-v-26068803"]]), Ns = [
3697
3702
  {
3698
3703
  path: "/",
3699
3704
  component: Kt,
@@ -3706,29 +3711,29 @@ const Ds = /* @__PURE__ */ P(Ps, [["render", Ms], ["__scopeId", "data-v-26068803
3706
3711
  {
3707
3712
  path: "dashboard",
3708
3713
  name: "Dashboard",
3709
- component: Wo,
3714
+ component: Qo,
3710
3715
  meta: { title: "Dashboard", icon: "el-icon-help", menuType: 2, keepAlive: !0 }
3711
3716
  }
3712
3717
  ]
3713
3718
  },
3714
3719
  {
3715
3720
  path: "/login",
3716
- component: As,
3721
+ component: Ps,
3717
3722
  meta: { title: "用户登录", menuType: 0 },
3718
3723
  hidden: !0
3719
3724
  },
3720
3725
  {
3721
3726
  path: "/404",
3722
- component: Ds,
3727
+ component: js,
3723
3728
  meta: { menuType: 0 },
3724
3729
  hidden: !0
3725
3730
  }
3726
- ], oe = Kn({
3727
- history: zn(),
3728
- routes: js
3731
+ ], oe = zn({
3732
+ history: Jn(),
3733
+ routes: Ns
3729
3734
  });
3730
3735
  Ne.configure({ showSpinner: !1 });
3731
- function Ns(e) {
3736
+ function Us(e) {
3732
3737
  e.beforeEach((t, n, o) => {
3733
3738
  Ne.start(), t.preHash = location.hash.replace("#", ""), o();
3734
3739
  }), e.afterEach((t) => {
@@ -3739,13 +3744,13 @@ function Ns(e) {
3739
3744
  }), Ne.done();
3740
3745
  });
3741
3746
  }
3742
- function Us() {
3747
+ function Vs() {
3743
3748
  return j(M).isLodeRemoteRoutes;
3744
3749
  }
3745
3750
  function zt() {
3746
3751
  return V(M).whiteRoutes || [];
3747
3752
  }
3748
- function Vs() {
3753
+ function qs() {
3749
3754
  return j(M).token;
3750
3755
  }
3751
3756
  class Jt {
@@ -3758,7 +3763,7 @@ class Jt {
3758
3763
  showQrCode() {
3759
3764
  }
3760
3765
  }
3761
- class rr extends Jt {
3766
+ class cr extends Jt {
3762
3767
  type = "jump";
3763
3768
  client_id = "";
3764
3769
  constructor(t) {
@@ -3777,7 +3782,7 @@ class rr extends Jt {
3777
3782
  location.replace(`https://github.com/login/oauth/authorize?client_id=${this.client_id}&redirect_uri${o}`);
3778
3783
  }
3779
3784
  }
3780
- class cr extends Jt {
3785
+ class ur extends Jt {
3781
3786
  type = "qrcode";
3782
3787
  qrCodeUrl = "https://login.dingtalk.com/login/qrcode.htm?goto={goto}&style={style}";
3783
3788
  reloadUrl = "https://oapi.dingtalk.com/connect/oauth2/sns_authorize?response_type=code&scope=snsapi_login&state=&appid={appid}&redirect_uri={redirect_uri}";
@@ -3803,7 +3808,7 @@ class cr extends Jt {
3803
3808
  appid: this.appid,
3804
3809
  redirect_uri: encodeURIComponent(this.redirectUri)
3805
3810
  };
3806
- return ae(this.reloadUrl, s) + "&" + Ln(l || {});
3811
+ return ae(this.reloadUrl, s) + "&" + Mn(l || {});
3807
3812
  }, n = () => {
3808
3813
  const l = {
3809
3814
  goto: encodeURIComponent(t()),
@@ -3814,52 +3819,52 @@ class cr extends Jt {
3814
3819
  const { origin: s, data: a } = l;
3815
3820
  s === "https://login.dingtalk.com" && (window.location.href = t({ loginTmpCode: a }));
3816
3821
  };
3817
- this.iframe.src = n(), Pn({ elId: this.elId, attrs: this.iframe }), typeof window.addEventListener < "u" ? window.addEventListener(
3822
+ this.iframe.src = n(), Ln({ elId: this.elId, attrs: this.iframe }), typeof window.addEventListener < "u" ? window.addEventListener(
3818
3823
  "message",
3819
3824
  (l) => o(l),
3820
3825
  !1
3821
3826
  ) : typeof window.attachEvent < "u" && window.attachEvent("onmessage", (l) => this.onScanSuccess(l));
3822
3827
  }
3823
3828
  }
3824
- const qs = {};
3825
- function Hs() {
3826
- return H(V(M).sso || {}, qs);
3827
- }
3829
+ const Hs = {};
3828
3830
  function Fs() {
3829
- const e = Hs(), t = V(M).activeSsoKey || "", n = e[t];
3831
+ return H(V(M).sso || {}, Hs);
3832
+ }
3833
+ function Gs() {
3834
+ const e = Fs(), t = V(M).activeSsoKey || "", n = e[t];
3830
3835
  if (n !== void 0)
3831
3836
  return n();
3832
3837
  }
3833
- function Gs(e) {
3838
+ function Ks(e) {
3834
3839
  e.beforeEach(async (t, n, o) => {
3835
3840
  if (zt().indexOf(t.path) !== -1) {
3836
3841
  o();
3837
3842
  return;
3838
3843
  }
3839
- if (Vs()) {
3844
+ if (qs()) {
3840
3845
  t.query?.redirect ? o(t.query?.redirect) : o();
3841
3846
  return;
3842
3847
  }
3843
- const s = t.query.redirect || t.path, a = Fs();
3848
+ const s = t.query.redirect || t.path, a = Gs();
3844
3849
  if (!a) {
3845
3850
  o(`/login?redirect=${s}`);
3846
3851
  return;
3847
3852
  }
3848
3853
  const c = a.flag(), d = j(M);
3849
- if (c && await d.login(Nn(c) ? c : { ticket: c })) {
3854
+ if (c && await d.login(Un(c) ? c : { ticket: c })) {
3850
3855
  o();
3851
3856
  return;
3852
3857
  }
3853
3858
  a.jumpToLoginPage(o, `/login?redirect=${s}`);
3854
3859
  });
3855
3860
  }
3856
- const Ks = {}, zs = { class: "loading preloader" };
3857
- function Js(e, t) {
3858
- return i(), _("div", zs, [...t[0] || (t[0] = [
3859
- g("div", { class: "preloader-inner" }, null, -1)
3861
+ const zs = {}, Js = { class: "loading preloader" };
3862
+ function Ws(e, t) {
3863
+ return i(), _("div", Js, [...t[0] || (t[0] = [
3864
+ v("div", { class: "preloader-inner" }, null, -1)
3860
3865
  ])]);
3861
3866
  }
3862
- const Ws = /* @__PURE__ */ P(Ks, [["render", Js]]), Qs = {
3867
+ const Qs = /* @__PURE__ */ P(zs, [["render", Ws]]), Xs = {
3863
3868
  name: "VNotice",
3864
3869
  props: {
3865
3870
  dataApi: {
@@ -3888,52 +3893,52 @@ const Ws = /* @__PURE__ */ P(Ks, [["render", Js]]), Qs = {
3888
3893
  this.hasNotice = Object.keys(this.$props.notice).length > 0, this.noticeProps = this.$props.notice;
3889
3894
  }
3890
3895
  };
3891
- function Xs(e, t, n, o, l, s) {
3896
+ function Zs(e, t, n, o, l, s) {
3892
3897
  const a = Xe;
3893
3898
  return i(), _("div", null, [
3894
- l.hasNotice ? (i(), h(a, X(Q({ key: 0 }, l.noticeProps)), null, 16)) : B("", !0)
3899
+ l.hasNotice ? (i(), h(a, Z(X({ key: 0 }, l.noticeProps)), null, 16)) : $("", !0)
3895
3900
  ]);
3896
3901
  }
3897
- const Zs = /* @__PURE__ */ P(Qs, [["render", Xs]]), Ys = ["innerHTML"], ea = /* @__PURE__ */ K({
3902
+ const Ys = /* @__PURE__ */ P(Xs, [["render", Zs]]), ea = ["innerHTML"], ta = /* @__PURE__ */ K({
3898
3903
  __name: "PageLoad",
3899
3904
  props: {
3900
3905
  schemaHandler: { type: Function, default: (e) => e },
3901
3906
  schemaApi: { default: "" }
3902
3907
  },
3903
3908
  setup(e) {
3904
- const t = e, n = Y(), o = V(), l = j(), s = Z(), a = C(!0), c = C(!1), d = C({}), p = C(""), f = C({}), y = C([]), w = C(!1), v = k(() => l.env), T = k(() => o);
3909
+ const t = e, n = Y(), o = V(), l = j(), s = W(), a = I(!0), c = I(!1), d = I({}), f = I(""), p = I({}), g = I([]), w = I(!1), y = k(() => l.env), T = k(() => o);
3905
3910
  return Fe(() => {
3906
- const I = s.path.split("/").filter((S) => S), b = I.length > 1 ? I.slice(0, I.length - 1).join("/") : I[0], E = "/schema" + s.meta.path, R = { params: s.params };
3907
- (window?.App?.config?.globalProperties?.$http).get(t.schemaApi || E, R).then(({ data: S }) => {
3908
- a.value = !1, ie(S) && (S.notice !== void 0 && (c.value = !0, ze(S.notice) ? d.value = { title: S.notice } : ie(S.notice) && (d.value = S.notice, p.value = S.notice.noticeApi), delete S.notice), y.value = S.ownerNames || [], w.value = S.serviceOffLine || !1), f.value = t.schemaHandler(S, b), n.SET_PAGE_JSON_SCHEMA({ page: s.path, json: f.value });
3911
+ const B = s.path.split("/").filter((S) => S), b = B.length > 1 ? B.slice(0, B.length - 1).join("/") : B[0], E = "/schema" + s.meta.path, A = { params: s.params };
3912
+ (window?.App?.config?.globalProperties?.$http).get(t.schemaApi || E, A).then(({ data: S }) => {
3913
+ a.value = !1, ie(S) && (S.notice !== void 0 && (c.value = !0, ze(S.notice) ? d.value = { title: S.notice } : ie(S.notice) && (d.value = S.notice, f.value = S.notice.noticeApi), delete S.notice), g.value = S.ownerNames || [], w.value = S.serviceOffLine || !1), p.value = t.schemaHandler(S, b), n.SET_PAGE_JSON_SCHEMA({ page: s.path, json: p.value });
3909
3914
  });
3910
- }), (I, b) => {
3915
+ }), (B, b) => {
3911
3916
  const E = Xe;
3912
3917
  return i(), _(O, null, [
3913
- m(y).length > 0 ? (i(), h(E, {
3918
+ m(g).length > 0 ? (i(), h(E, {
3914
3919
  key: 0,
3915
- title: `该页面功能对应开发: [ ${m(y).join(", ")} ] 有问题可直接企微反馈`,
3920
+ title: `该页面功能对应开发: [ ${m(g).join(", ")} ] 有问题可直接企微反馈`,
3916
3921
  type: "info",
3917
3922
  style: { margin: "0 0 20px 0" },
3918
3923
  closable: !1
3919
- }, null, 8, ["title"])) : B("", !0),
3920
- m(v) === "prod" && m(w) ? (i(), _("div", {
3924
+ }, null, 8, ["title"])) : $("", !0),
3925
+ m(y) === "prod" && m(w) ? (i(), _("div", {
3921
3926
  key: 1,
3922
3927
  class: "offline-notice",
3923
3928
  innerHTML: m(w) === !0 ? m(T).serviceOffLineNotice : m(w)
3924
- }, null, 8, Ys)) : (i(), _(O, { key: 2 }, [
3925
- m(c) ? (i(), h(Zs, {
3929
+ }, null, 8, ea)) : (i(), _(O, { key: 2 }, [
3930
+ m(c) ? (i(), h(Ys, {
3926
3931
  key: 0,
3927
3932
  notice: m(d),
3928
3933
  style: { margin: "0 0 20px 0" },
3929
- "data-api": m(p)
3930
- }, null, 8, ["notice", "data-api"])) : B("", !0),
3931
- m(a) ? (i(), h(Ws, { key: 1 })) : de(I.$slots, "default", X(Q({ key: 2 }, m(f))), void 0, !0)
3934
+ "data-api": m(f)
3935
+ }, null, 8, ["notice", "data-api"])) : $("", !0),
3936
+ m(a) ? (i(), h(Qs, { key: 1 })) : de(B.$slots, "default", Z(X({ key: 2 }, m(p))), void 0, !0)
3932
3937
  ], 64))
3933
3938
  ], 64);
3934
3939
  };
3935
3940
  }
3936
- }), _e = /* @__PURE__ */ P(ea, [["__scopeId", "data-v-e330fdc7"]]), Wt = {
3941
+ }), ve = /* @__PURE__ */ P(ta, [["__scopeId", "data-v-e330fdc7"]]), Wt = {
3937
3942
  __name: "table",
3938
3943
  setup(e) {
3939
3944
  const t = (n, o) => {
@@ -3949,9 +3954,9 @@ const Zs = /* @__PURE__ */ P(Qs, [["render", Xs]]), Ys = ["innerHTML"], ea = /*
3949
3954
  l.indexOf(s) === -1 && delete n[s];
3950
3955
  }), n.listApi === void 0 && (n.listApi = `/${o}/list`), n;
3951
3956
  };
3952
- return (n, o) => (i(), h(_e, { "schema-handler": t }, {
3957
+ return (n, o) => (i(), h(ve, { "schema-handler": t }, {
3953
3958
  default: r((l) => [
3954
- u(m(he), X(re(l)), null, 16)
3959
+ u(m(he), Z(re(l)), null, 16)
3955
3960
  ]),
3956
3961
  _: 1
3957
3962
  }));
@@ -3959,21 +3964,21 @@ const Zs = /* @__PURE__ */ P(Qs, [["render", Xs]]), Ys = ["innerHTML"], ea = /*
3959
3964
  }, qe = {
3960
3965
  __name: "form",
3961
3966
  setup(e) {
3962
- const t = Z(), n = Te(), o = (c, d) => {
3963
- const p = Object.keys(ne.props);
3964
- return Object.keys(c).forEach((f) => {
3965
- if (p.indexOf(f) === -1) {
3966
- delete c[f];
3967
+ const t = W(), n = Te(), o = (c, d) => {
3968
+ const f = Object.keys(ne.props);
3969
+ return Object.keys(c).forEach((p) => {
3970
+ if (f.indexOf(p) === -1) {
3971
+ delete c[p];
3967
3972
  return;
3968
3973
  }
3969
- /.*Api$/.test(f) && (c[f] = ae(c[f], t.params));
3974
+ /.*Api$/.test(p) && (c[p] = ae(c[p], t.params));
3970
3975
  }), 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 = H({
3971
3976
  saveApi: d + "/save",
3972
3977
  afterSubmit: "goback",
3973
3978
  afterReset: "goback",
3974
3979
  mod: t.params.id ? "edit" : "create"
3975
3980
  }, c), c;
3976
- }, l = C(0), s = () => {
3981
+ }, l = I(0), s = () => {
3977
3982
  tn.request({
3978
3983
  url: "/form_mutex",
3979
3984
  method: "get",
@@ -3981,7 +3986,7 @@ const Zs = /* @__PURE__ */ P(Qs, [["render", Xs]]), Ys = ["innerHTML"], ea = /*
3981
3986
  path: t.fullPath
3982
3987
  }
3983
3988
  }).then((c) => {
3984
- c.data && (clearInterval(l.value), $t.alert(`${c.data}`, "操作提醒", {
3989
+ c.data && (clearInterval(l.value), Bt.alert(`${c.data}`, "操作提醒", {
3985
3990
  showClose: !1,
3986
3991
  showCancelButton: !0,
3987
3992
  confirmButtonText: "返回",
@@ -3995,20 +4000,20 @@ const Zs = /* @__PURE__ */ P(Qs, [["render", Xs]]), Ys = ["innerHTML"], ea = /*
3995
4000
  Ie(() => {
3996
4001
  const c = V();
3997
4002
  t.params.id !== void 0 && c.formMutex && (s(), l.value = setInterval(s, 2e3));
3998
- }), kn(() => {
4003
+ }), Sn(() => {
3999
4004
  clearInterval(l.value);
4000
4005
  });
4001
4006
  function a() {
4002
4007
  t.query?.goback ? n.push(t.query?.goback) : history.state.back && history.back();
4003
4008
  }
4004
- return (c, d) => (i(), h(_e, { "schema-handler": o }, {
4005
- default: r((p) => [
4006
- u(m(ne), X(re(p)), null, 16)
4009
+ return (c, d) => (i(), h(ve, { "schema-handler": o }, {
4010
+ default: r((f) => [
4011
+ u(m(ne), Z(re(f)), null, 16)
4007
4012
  ]),
4008
4013
  _: 1
4009
4014
  }));
4010
4015
  }
4011
- }, ta = K({
4016
+ }, na = K({
4012
4017
  name: "VTree",
4013
4018
  components: {
4014
4019
  VForm: ne
@@ -4107,7 +4112,7 @@ const Zs = /* @__PURE__ */ P(Qs, [["render", Xs]]), Ys = ["innerHTML"], ea = /*
4107
4112
  },
4108
4113
  append(e, t) {
4109
4114
  this.type = 1;
4110
- const n = { pid: e.id, [this.$props.props?.levelKey ?? "level"]: t.level + 1, ...Mn(this.$props.props?.effectData, e) };
4115
+ const n = { pid: e.id, [this.$props.props?.levelKey ?? "level"]: t.level + 1, ...Dn(this.$props.props?.effectData, e) };
4111
4116
  e.children || (e.children = []), this.formData = n, this.formkey++, e.children.push(n), this.treeData = [...this.treeData];
4112
4117
  },
4113
4118
  canAppend(e, t) {
@@ -4148,39 +4153,39 @@ const Zs = /* @__PURE__ */ P(Qs, [["render", Xs]]), Ys = ["innerHTML"], ea = /*
4148
4153
  });
4149
4154
  }
4150
4155
  }
4151
- }), na = { class: "card-header" }, oa = { class: "tree-action" }, la = { key: 0 }, sa = {
4156
+ }), oa = { class: "card-header" }, la = { class: "tree-action" }, sa = { key: 0 }, aa = {
4152
4157
  key: 1,
4153
4158
  style: { color: "#E6A23C" }
4154
- }, aa = { class: "card-header" };
4155
- function ia(e, t, n, o, l, s) {
4156
- const a = me, c = mo, d = Ze, p = $e, f = L("v-form"), y = be;
4157
- return i(), h(y, {
4159
+ }, ia = { class: "card-header" };
4160
+ function ra(e, t, n, o, l, s) {
4161
+ const a = me, c = ho, d = Ze, f = Be, p = L("v-form"), g = ye;
4162
+ return i(), h(g, {
4158
4163
  class: "tree-box",
4159
4164
  gutter: 20
4160
4165
  }, {
4161
4166
  default: r(() => [
4162
- u(p, {
4167
+ u(f, {
4163
4168
  span: 8,
4164
4169
  class: "tree-tree"
4165
4170
  }, {
4166
4171
  default: r(() => [
4167
4172
  u(d, { shadow: "never" }, {
4168
4173
  header: r(() => [
4169
- g("div", na, [
4170
- t[3] || (t[3] = g("span", null, "列表", -1)),
4174
+ v("div", oa, [
4175
+ t[3] || (t[3] = v("span", null, "列表", -1)),
4171
4176
  u(a, {
4172
4177
  type: "text",
4173
4178
  onClick: t[0] || (t[0] = () => e.appendNew())
4174
4179
  }, {
4175
4180
  default: r(() => [...t[2] || (t[2] = [
4176
- $("添加", -1)
4181
+ C("添加", -1)
4177
4182
  ])]),
4178
4183
  _: 1
4179
4184
  })
4180
4185
  ])
4181
4186
  ]),
4182
4187
  default: r(() => [
4183
- (e.treeData || []).length > 0 ? (i(), h(c, Q({
4188
+ (e.treeData || []).length > 0 ? (i(), h(c, X({
4184
4189
  key: 0,
4185
4190
  style: { height: "100vh" },
4186
4191
  data: e.treeData,
@@ -4191,55 +4196,55 @@ function ia(e, t, n, o, l, s) {
4191
4196
  "allow-drop": e.allowDrop,
4192
4197
  onNodeDragEnd: e.handleDragEnd
4193
4198
  }), {
4194
- default: r(({ node: w, data: v }) => [
4195
- g("span", oa, [
4196
- v[e.localTreeProps.props.label] ? (i(), _("span", la, A(v[e.localTreeProps.props.label]), 1)) : (i(), _("span", sa, "请在右侧表单中修改 --> ")),
4197
- g("span", null, [
4198
- v[e.localTreeProps.props.label] ? (i(), h(a, {
4199
+ default: r(({ node: w, data: y }) => [
4200
+ v("span", la, [
4201
+ y[e.localTreeProps.props.label] ? (i(), _("span", sa, R(y[e.localTreeProps.props.label]), 1)) : (i(), _("span", aa, "请在右侧表单中修改 --> ")),
4202
+ v("span", null, [
4203
+ y[e.localTreeProps.props.label] ? (i(), h(a, {
4199
4204
  key: 0,
4200
4205
  class: "button",
4201
4206
  type: "text",
4202
- onClick: () => e.onclick(v)
4207
+ onClick: () => e.onclick(y)
4203
4208
  }, {
4204
4209
  default: r(() => [...t[4] || (t[4] = [
4205
- $("编辑", -1)
4210
+ C("编辑", -1)
4206
4211
  ])]),
4207
4212
  _: 1
4208
- }, 8, ["onClick"])) : B("", !0),
4209
- e.canAppend(v, w) ? (i(), h(a, {
4213
+ }, 8, ["onClick"])) : $("", !0),
4214
+ e.canAppend(y, w) ? (i(), h(a, {
4210
4215
  key: 1,
4211
4216
  class: "button",
4212
4217
  type: "text",
4213
- onClick: () => e.append(v, w)
4218
+ onClick: () => e.append(y, w)
4214
4219
  }, {
4215
4220
  default: r(() => [...t[5] || (t[5] = [
4216
- $("添加", -1)
4221
+ C("添加", -1)
4217
4222
  ])]),
4218
4223
  _: 1
4219
- }, 8, ["onClick"])) : B("", !0),
4220
- v.children === void 0 || v.children.length === 0 ? (i(), h(a, {
4224
+ }, 8, ["onClick"])) : $("", !0),
4225
+ y.children === void 0 || y.children.length === 0 ? (i(), h(a, {
4221
4226
  key: 2,
4222
4227
  class: "button",
4223
4228
  type: "text",
4224
- onClick: () => e.remove(v)
4229
+ onClick: () => e.remove(y)
4225
4230
  }, {
4226
4231
  default: r(() => [...t[6] || (t[6] = [
4227
- $("删除", -1)
4232
+ C("删除", -1)
4228
4233
  ])]),
4229
4234
  _: 1
4230
- }, 8, ["onClick"])) : B("", !0)
4235
+ }, 8, ["onClick"])) : $("", !0)
4231
4236
  ])
4232
4237
  ])
4233
4238
  ]),
4234
4239
  _: 1
4235
- }, 16, ["data", "allow-drag", "allow-drop", "onNodeDragEnd"])) : B("", !0)
4240
+ }, 16, ["data", "allow-drag", "allow-drop", "onNodeDragEnd"])) : $("", !0)
4236
4241
  ]),
4237
4242
  _: 1
4238
4243
  })
4239
4244
  ]),
4240
4245
  _: 1
4241
4246
  }),
4242
- u(p, {
4247
+ u(f, {
4243
4248
  span: 16,
4244
4249
  class: "tree-form"
4245
4250
  }, {
@@ -4249,19 +4254,19 @@ function ia(e, t, n, o, l, s) {
4249
4254
  shadow: "never"
4250
4255
  }, {
4251
4256
  header: r(() => [
4252
- g("div", aa, [
4253
- g("span", null, A(e.formType), 1)
4257
+ v("div", ia, [
4258
+ v("span", null, R(e.formType), 1)
4254
4259
  ])
4255
4260
  ]),
4256
4261
  default: r(() => [
4257
- (i(), h(f, Q({
4262
+ (i(), h(p, X({
4258
4263
  key: e.formkey,
4259
4264
  modelValue: e.formData,
4260
4265
  "onUpdate:modelValue": t[1] || (t[1] = (w) => e.formData = w)
4261
4266
  }, e.formProps, { onSubmit: e.submit }), null, 16, ["modelValue", "onSubmit"]))
4262
4267
  ]),
4263
4268
  _: 1
4264
- })) : B("", !0)
4269
+ })) : $("", !0)
4265
4270
  ]),
4266
4271
  _: 1
4267
4272
  })
@@ -4269,7 +4274,7 @@ function ia(e, t, n, o, l, s) {
4269
4274
  _: 1
4270
4275
  });
4271
4276
  }
4272
- const yt = /* @__PURE__ */ P(ta, [["render", ia]]), ra = {
4277
+ const yt = /* @__PURE__ */ P(na, [["render", ra]]), ca = {
4273
4278
  __name: "tree",
4274
4279
  setup(e) {
4275
4280
  const t = (n, o) => {
@@ -4278,9 +4283,9 @@ const yt = /* @__PURE__ */ P(ta, [["render", ia]]), ra = {
4278
4283
  l.indexOf(s) === -1 && delete n[s];
4279
4284
  }), n;
4280
4285
  };
4281
- return (n, o) => (i(), h(_e, { "schema-handler": t }, {
4286
+ return (n, o) => (i(), h(ve, { "schema-handler": t }, {
4282
4287
  default: r((l) => [
4283
- u(yt, X(re(l)), null, 16)
4288
+ u(yt, Z(re(l)), null, 16)
4284
4289
  ]),
4285
4290
  _: 1
4286
4291
  }));
@@ -4288,15 +4293,15 @@ const yt = /* @__PURE__ */ P(ta, [["render", ia]]), ra = {
4288
4293
  }, je = {
4289
4294
  __name: "container",
4290
4295
  setup(e) {
4291
- const t = C(0);
4292
- return Jn(() => {
4296
+ const t = I(0);
4297
+ return Wn(() => {
4293
4298
  t.value++;
4294
4299
  }), (n, o) => {
4295
4300
  const l = L("router-view");
4296
4301
  return i(), h(l);
4297
4302
  };
4298
4303
  }
4299
- }, ca = {
4304
+ }, ua = {
4300
4305
  title: {
4301
4306
  text: ""
4302
4307
  },
@@ -4325,34 +4330,34 @@ const yt = /* @__PURE__ */ P(ta, [["render", ia]]), ra = {
4325
4330
  },
4326
4331
  series: []
4327
4332
  };
4328
- function ua(e, t, n) {
4333
+ function da(e, t, n) {
4329
4334
  if (n.length === 0)
4330
4335
  return {};
4331
- let o = H({}, ca);
4336
+ let o = H({}, ua);
4332
4337
  if (o.title.text = e, ze(t)) {
4333
4338
  const l = [], s = Object.keys(n[0]);
4334
- let a = s[0], c = s.filter((p, f) => f > 0), d = t;
4339
+ let a = s[0], c = s.filter((f, p) => p > 0), d = t;
4335
4340
  if (t.indexOf(":") > -1) {
4336
- const p = t.split(":"), f = p[1].split(",");
4337
- d = p[0], a = f[0], c = f.filter((y, w) => w > 0);
4341
+ const f = t.split(":"), p = f[1].split(",");
4342
+ d = f[0], a = p[0], c = p.filter((g, w) => w > 0);
4338
4343
  }
4339
- c.forEach((p) => {
4340
- const f = [];
4341
- n.forEach((y) => {
4342
- f.push(y[p]);
4344
+ c.forEach((f) => {
4345
+ const p = [];
4346
+ n.forEach((g) => {
4347
+ p.push(g[f]);
4343
4348
  }), o.series.push({
4344
- name: p,
4349
+ name: f,
4345
4350
  type: d,
4346
4351
  smooth: !0,
4347
- data: f
4348
- }), o.legend.data.push(p);
4349
- }), n.forEach((p) => {
4350
- l.push(p[a]);
4352
+ data: p
4353
+ }), o.legend.data.push(f);
4354
+ }), n.forEach((f) => {
4355
+ l.push(f[a]);
4351
4356
  }), o.xAxis.data = l;
4352
4357
  }
4353
4358
  return ie(t) && (o = H(o, t)), o;
4354
4359
  }
4355
- const da = K({
4360
+ const pa = K({
4356
4361
  name: "NumberPanel",
4357
4362
  props: {
4358
4363
  dataList: {
@@ -4363,27 +4368,27 @@ const da = K({
4363
4368
  data() {
4364
4369
  return {};
4365
4370
  }
4366
- }), pa = { class: "number-panel-title" }, fa = { class: "number" }, ma = { class: "name" };
4367
- function ha(e, t, n, o, l, s) {
4371
+ }), fa = { class: "number-panel-title" }, ma = { class: "number" }, ha = { class: "name" };
4372
+ function ba(e, t, n, o, l, s) {
4368
4373
  return i(!0), _(O, null, U(e.dataList, (a, c) => (i(), _("span", { key: c }, [
4369
- g("div", pa, [
4370
- (i(!0), _(O, null, U(Object.keys(a), (d, p) => (i(), _("div", {
4371
- key: p,
4374
+ v("div", fa, [
4375
+ (i(!0), _(O, null, U(Object.keys(a), (d, f) => (i(), _("div", {
4376
+ key: f,
4372
4377
  class: "title-inner"
4373
4378
  }, [
4374
- g("p", fa, A(a[d]), 1),
4375
- g("p", ma, A(d), 1)
4379
+ v("p", ma, R(a[d]), 1),
4380
+ v("p", ha, R(d), 1)
4376
4381
  ]))), 128))
4377
4382
  ])
4378
4383
  ]))), 128);
4379
4384
  }
4380
- const ba = /* @__PURE__ */ P(da, [["render", ha], ["__scopeId", "data-v-cc0d8293"]]), ya = {
4385
+ const ya = /* @__PURE__ */ P(pa, [["render", ba], ["__scopeId", "data-v-cc0d8293"]]), _a = {
4381
4386
  components: {
4382
- Chart: bo,
4383
- Md: wo,
4387
+ Chart: yo,
4388
+ Md: xo,
4384
4389
  Json: Ye,
4385
4390
  Table: he,
4386
- Number: ba,
4391
+ Number: ya,
4387
4392
  Html: ""
4388
4393
  },
4389
4394
  props: {
@@ -4404,7 +4409,7 @@ const ba = /* @__PURE__ */ P(da, [["render", ha], ["__scopeId", "data-v-cc0d8293
4404
4409
  };
4405
4410
  if (l === "chart")
4406
4411
  return {
4407
- options: ua(o.id, o.chart, o.data)
4412
+ options: da(o.id, o.chart, o.data)
4408
4413
  };
4409
4414
  if (l === "md")
4410
4415
  return {
@@ -4428,21 +4433,21 @@ const ba = /* @__PURE__ */ P(da, [["render", ha], ["__scopeId", "data-v-cc0d8293
4428
4433
  };
4429
4434
  }
4430
4435
  };
4431
- function _a(e, t, n, o, l, s) {
4432
- const a = Ze, c = Sn("resize");
4433
- return ve((i(), h(a, {
4436
+ function va(e, t, n, o, l, s) {
4437
+ const a = Ze, c = wn("resize");
4438
+ return ge((i(), h(a, {
4434
4439
  shadow: "never",
4435
4440
  class: "part"
4436
4441
  }, {
4437
4442
  default: r(() => [
4438
- (i(), h(Ke(o.comptype()), X(re(o.compprops(n.option))), null, 16))
4443
+ (i(), h(Ke(o.comptype()), Z(re(o.compprops(n.option))), null, 16))
4439
4444
  ]),
4440
4445
  _: 1
4441
4446
  })), [
4442
4447
  [c, !0]
4443
4448
  ]);
4444
4449
  }
4445
- const va = /* @__PURE__ */ P(ya, [["render", _a], ["__scopeId", "data-v-a5a65cc1"]]), ga = /* @__PURE__ */ K({
4450
+ const ga = /* @__PURE__ */ P(_a, [["render", va], ["__scopeId", "data-v-a5a65cc1"]]), ka = /* @__PURE__ */ K({
4446
4451
  __name: "index",
4447
4452
  props: {
4448
4453
  filter: {
@@ -4455,13 +4460,13 @@ const va = /* @__PURE__ */ P(ya, [["render", _a], ["__scopeId", "data-v-a5a65cc1
4455
4460
  }
4456
4461
  },
4457
4462
  setup(e) {
4458
- const t = Z();
4463
+ const t = W();
4459
4464
  Ie(() => {
4460
4465
  });
4461
- const n = e, o = C({});
4466
+ const n = e, o = I({});
4462
4467
  Fe(() => {
4463
- n.filter?.forEach((f) => {
4464
- f.default !== null && (o.value[f.field] = f.default);
4468
+ n.filter?.forEach((p) => {
4469
+ p.default !== null && (o.value[p.field] = p.default);
4465
4470
  });
4466
4471
  });
4467
4472
  const l = {
@@ -4474,23 +4479,23 @@ const va = /* @__PURE__ */ P(ya, [["render", _a], ["__scopeId", "data-v-a5a65cc1
4474
4479
  cancelButton: {
4475
4480
  text: "重置"
4476
4481
  }
4477
- }, s = C(1), a = C(n.filter), c = C(n.dataPart), d = k(() => {
4478
- let f = t.params.id;
4479
- if (!f) {
4480
- const y = t.path.split("/");
4481
- f = y[y.length - 1];
4482
+ }, s = I(1), a = I(n.filter), c = I(n.dataPart), d = k(() => {
4483
+ let p = t.params.id;
4484
+ if (!p) {
4485
+ const g = t.path.split("/");
4486
+ p = g[g.length - 1];
4482
4487
  }
4483
- return "/focusbi_report/view/" + f;
4484
- }), p = (f) => {
4485
- tn.get(d.value, { params: f }).then(({ data: y }) => {
4486
- a.value = y.filter, c.value = y.dataPart, s.value++;
4488
+ return "/focusbi_report/view/" + p;
4489
+ }), f = (p) => {
4490
+ tn.get(d.value, { params: p }).then(({ data: g }) => {
4491
+ a.value = g.filter, c.value = g.dataPart, s.value++;
4487
4492
  });
4488
4493
  };
4489
- return (f, y) => {
4490
- const w = Ze, v = $e, T = Xe, I = be;
4491
- return i(), h(I, null, {
4494
+ return (p, g) => {
4495
+ const w = Ze, y = Be, T = Xe, B = ye;
4496
+ return i(), h(B, null, {
4492
4497
  default: r(() => [
4493
- m(a).length > 0 ? (i(), h(v, {
4498
+ m(a).length > 0 ? (i(), h(y, {
4494
4499
  key: 0,
4495
4500
  span: 24
4496
4501
  }, {
@@ -4502,22 +4507,22 @@ const va = /* @__PURE__ */ P(ya, [["render", _a], ["__scopeId", "data-v-a5a65cc1
4502
4507
  default: r(() => [
4503
4508
  u(m(ne), {
4504
4509
  modelValue: m(o),
4505
- "onUpdate:modelValue": y[0] || (y[0] = (b) => Ge(o) ? o.value = b : null),
4510
+ "onUpdate:modelValue": g[0] || (g[0] = (b) => Ge(o) ? o.value = b : null),
4506
4511
  "form-items": m(a),
4507
4512
  options: l,
4508
- onSubmit: p
4513
+ onSubmit: f
4509
4514
  }, null, 8, ["modelValue", "form-items"])
4510
4515
  ]),
4511
4516
  _: 1
4512
4517
  })
4513
4518
  ]),
4514
4519
  _: 1
4515
- })) : B("", !0),
4516
- u(v, { span: 24 }, {
4520
+ })) : $("", !0),
4521
+ u(y, { span: 24 }, {
4517
4522
  default: r(() => [
4518
- u(I, { gutter: 20 }, {
4523
+ u(B, { gutter: 20 }, {
4519
4524
  default: r(() => [
4520
- (i(!0), _(O, null, U(m(c), (b, E) => (i(), h(v, {
4525
+ (i(!0), _(O, null, U(m(c), (b, E) => (i(), h(y, {
4521
4526
  key: E,
4522
4527
  span: b.col || 24
4523
4528
  }, {
@@ -4528,10 +4533,10 @@ const va = /* @__PURE__ */ P(ya, [["render", _a], ["__scopeId", "data-v-a5a65cc1
4528
4533
  type: "error"
4529
4534
  }, {
4530
4535
  default: r(() => [
4531
- $(A(b.errMsg), 1)
4536
+ C(R(b.errMsg), 1)
4532
4537
  ]),
4533
4538
  _: 2
4534
- }, 1032, ["title"])) : (i(), h(va, {
4539
+ }, 1032, ["title"])) : (i(), h(ga, {
4535
4540
  key: m(s),
4536
4541
  option: b
4537
4542
  }, null, 8, ["option"]))
@@ -4549,10 +4554,10 @@ const va = /* @__PURE__ */ P(ya, [["render", _a], ["__scopeId", "data-v-a5a65cc1
4549
4554
  });
4550
4555
  };
4551
4556
  }
4552
- }), ka = {
4557
+ }), Sa = {
4553
4558
  __name: "report",
4554
4559
  setup(e) {
4555
- const t = Z(), n = k(() => {
4560
+ const t = W(), n = k(() => {
4556
4561
  let o = t.params.id;
4557
4562
  if (!o) {
4558
4563
  const l = t.path.split("/");
@@ -4560,21 +4565,21 @@ const va = /* @__PURE__ */ P(ya, [["render", _a], ["__scopeId", "data-v-a5a65cc1
4560
4565
  }
4561
4566
  return "/focusbi_report/view/" + o;
4562
4567
  });
4563
- return (o, l) => (i(), h(_e, { "schema-api": m(n) }, {
4568
+ return (o, l) => (i(), h(ve, { "schema-api": m(n) }, {
4564
4569
  default: r((s) => [
4565
- u(ga, X(re(s)), null, 16)
4570
+ u(ka, Z(re(s)), null, 16)
4566
4571
  ]),
4567
4572
  _: 1
4568
4573
  }, 8, ["schema-api"]));
4569
4574
  }
4570
- }, Sa = (e) => u("div", null, [e.test]), wa = {
4571
- card: Fn,
4575
+ }, wa = (e) => u("div", null, [e.test]), xa = {
4576
+ card: Gn,
4572
4577
  form: ne,
4573
4578
  table: he,
4574
- test: Sa,
4575
- row: Hn,
4576
- col: qn
4577
- }, xa = {
4579
+ test: wa,
4580
+ row: Fn,
4581
+ col: Hn
4582
+ }, Ea = {
4578
4583
  card: {
4579
4584
  type: "card",
4580
4585
  props: {
@@ -4595,7 +4600,7 @@ const va = /* @__PURE__ */ P(ya, [["render", _a], ["__scopeId", "data-v-a5a65cc1
4595
4600
  }
4596
4601
  }
4597
4602
  };
4598
- function Ea(e) {
4603
+ function Ia(e) {
4599
4604
  const t = Object.assign({}, e), n = t.type.split(".").reverse(), o = t.span || 24;
4600
4605
  delete t.span;
4601
4606
  let l = {
@@ -4634,13 +4639,13 @@ function ot(e) {
4634
4639
  t.children.push({
4635
4640
  type: "col",
4636
4641
  props: l,
4637
- children: Ea(o)
4642
+ children: Ia(o)
4638
4643
  });
4639
4644
  return;
4640
4645
  }
4641
4646
  o = H({
4642
4647
  props: {}
4643
- }, xa[o.type] || {}, o);
4648
+ }, Ea[o.type] || {}, o);
4644
4649
  const s = Qt(o.children);
4645
4650
  s.length && (o.children = ot(s)), t.children.push({
4646
4651
  type: "col",
@@ -4654,27 +4659,27 @@ function Qt(e) {
4654
4659
  }
4655
4660
  let He = {};
4656
4661
  const Xt = (e) => {
4657
- const t = wa[e.type] || He[e.type] || e.type;
4658
- return xn(t, e.props, {
4662
+ const t = xa[e.type] || He[e.type] || e.type;
4663
+ return En(t, e.props, {
4659
4664
  default: () => Qt(e.children).map((n) => Xt(n))
4660
4665
  });
4661
- }, Ia = (e) => (Object.keys(He).length === 0 && (He = wn().appContext.components), ot(Object.values(e.schema)).map((n) => Xt(n))), Ca = {
4666
+ }, Ca = (e) => (Object.keys(He).length === 0 && (He = xn().appContext.components), ot(Object.values(e.schema)).map((n) => Xt(n))), Ta = {
4662
4667
  __name: "custom",
4663
4668
  setup(e) {
4664
- const t = C([]), n = (o, l) => (t.value = En(o), o);
4665
- return (o, l) => (i(), h(_e, { "schema-handler": n }, {
4669
+ const t = I([]), n = (o, l) => (t.value = In(o), o);
4670
+ return (o, l) => (i(), h(ve, { "schema-handler": n }, {
4666
4671
  default: r(() => [
4667
- u(m(Ia), { schema: m(t) }, null, 8, ["schema"])
4672
+ u(m(Ca), { schema: m(t) }, null, 8, ["schema"])
4668
4673
  ]),
4669
4674
  _: 1
4670
4675
  }));
4671
4676
  }
4672
4677
  };
4673
4678
  let ue = {};
4674
- function ur(e) {
4679
+ function dr(e) {
4675
4680
  ue = e;
4676
4681
  }
4677
- const Ta = (e) => {
4682
+ const Ba = (e) => {
4678
4683
  const t = (n) => {
4679
4684
  const o = "./views/" + n + ".vue";
4680
4685
  return ue && ue[o] && ue[o].default ? ue[o].default : (console.error(`自定义组件不存在 ${e.name} ${e.view}`), je);
@@ -4690,11 +4695,11 @@ const Ta = (e) => {
4690
4695
  case J.localComp:
4691
4696
  return t(e.view || "");
4692
4697
  case J.tree:
4693
- return ra;
4698
+ return ca;
4694
4699
  case J.report:
4695
- return ka;
4700
+ return Sa;
4696
4701
  case J.customSchema:
4697
- return Ca;
4702
+ return Ta;
4698
4703
  }
4699
4704
  return je;
4700
4705
  };
@@ -4702,14 +4707,14 @@ function $a(e) {
4702
4707
  let t = e.path;
4703
4708
  return e.type === G.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;
4704
4709
  }
4705
- function Ba(e) {
4710
+ function Oa(e) {
4706
4711
  return (e.path + e.name).split("/").filter((t) => t).join("_");
4707
4712
  }
4708
4713
  const Zt = (e) => {
4709
4714
  const t = e.type !== G.page, n = {
4710
4715
  path: $a(e),
4711
- name: e.id + "_" + Ba(e) + "_" + e.path.replaceAll("/", "_"),
4712
- component: Ta(e),
4716
+ name: e.id + "_" + Oa(e) + "_" + e.path.replaceAll("/", "_"),
4717
+ component: Ba(e),
4713
4718
  meta: {
4714
4719
  id: e.id,
4715
4720
  pageId: e.id,
@@ -4782,7 +4787,7 @@ const Zt = (e) => {
4782
4787
  }
4783
4788
  }
4784
4789
  return n;
4785
- }, Oa = (e) => {
4790
+ }, Aa = (e) => {
4786
4791
  const t = [];
4787
4792
  return e.forEach((n) => {
4788
4793
  const o = {
@@ -4794,15 +4799,15 @@ const Zt = (e) => {
4794
4799
  o.routes.push(Zt(l));
4795
4800
  }), t.push(o);
4796
4801
  }), t;
4797
- }, Ra = "root", _t = (e) => e ? e.split(",").map((t) => t.trim()).filter((t) => !!t) : [], Aa = (e) => {
4802
+ }, Ra = "root", _t = (e) => e ? e.split(",").map((t) => t.trim()).filter((t) => !!t) : [], Pa = (e) => {
4798
4803
  const t = typeof e.role == "string" ? e.role : "", n = e.meta && typeof e.meta.role == "string" ? e.meta.role : "", o = [..._t(t), ..._t(n)];
4799
4804
  return !o.length && e.children && e.children.length ? [] : Array.from(new Set(o));
4800
4805
  }, Yt = (e) => {
4801
4806
  const t = { ...e };
4802
4807
  return e.meta && (t.meta = { ...e.meta }), e.children && e.children.length && (t.children = e.children.map((n) => Yt(n))), t;
4803
- }, Pa = (e, t) => e.length ? t.length ? e.some((n) => t.includes(n)) : !1 : !0, lt = (e = [], t) => t.includes(Ra) ? e.map((n) => Yt(n)) : e.reduce((n, o) => {
4804
- const l = Aa(o);
4805
- if (!Pa(l, t))
4808
+ }, La = (e, t) => e.length ? t.length ? e.some((n) => t.includes(n)) : !1 : !0, lt = (e = [], t) => t.includes(Ra) ? e.map((n) => Yt(n)) : e.reduce((n, o) => {
4809
+ const l = Pa(o);
4810
+ if (!La(l, t))
4806
4811
  return n;
4807
4812
  const s = { ...o };
4808
4813
  if (o.meta && (s.meta = { ...o.meta }), o.children && o.children.length) {
@@ -4810,7 +4815,7 @@ const Zt = (e) => {
4810
4815
  a.length ? s.children = a : delete s.children;
4811
4816
  }
4812
4817
  return n.push(s), n;
4813
- }, []), La = (e) => {
4818
+ }, []), Ma = (e) => {
4814
4819
  const t = globalThis.atob(e);
4815
4820
  let n = "";
4816
4821
  for (let o = 0; o < t.length; o++) {
@@ -4822,56 +4827,56 @@ const Zt = (e) => {
4822
4827
  } catch {
4823
4828
  return decodeURIComponent(encodeURIComponent(t));
4824
4829
  }
4825
- }, Ma = (e) => {
4826
- const t = e.replace(/-/g, "+").replace(/_/g, "/"), n = 4 - t.length % 4, o = t + (n < 4 ? "=".repeat(n) : "");
4827
- return typeof globalThis.atob == "function" ? La(o) : typeof Buffer < "u" ? Buffer.from(o, "base64").toString("utf-8") : "";
4828
4830
  }, Da = (e) => {
4831
+ const t = e.replace(/-/g, "+").replace(/_/g, "/"), n = 4 - t.length % 4, o = t + (n < 4 ? "=".repeat(n) : "");
4832
+ return typeof globalThis.atob == "function" ? Ma(o) : typeof Buffer < "u" ? Buffer.from(o, "base64").toString("utf-8") : "";
4833
+ }, ja = (e) => {
4829
4834
  if (!e)
4830
4835
  return null;
4831
4836
  const t = e.split(".");
4832
4837
  if (t.length < 2)
4833
4838
  return null;
4834
4839
  try {
4835
- const n = Ma(t[1]);
4840
+ const n = Da(t[1]);
4836
4841
  return n ? JSON.parse(n) : null;
4837
4842
  } catch {
4838
4843
  return null;
4839
4844
  }
4840
4845
  }, en = (e) => {
4841
- const t = Da(e);
4846
+ const t = ja(e);
4842
4847
  return (t && typeof t.role == "string" ? t.role : "").split(",").map((o) => o.trim()).filter((o) => !!o);
4843
4848
  };
4844
- function ja(e) {
4849
+ function Na(e) {
4845
4850
  e.beforeEach(async (t, n, o) => {
4846
4851
  if (zt().indexOf(t.path) !== -1) {
4847
4852
  o();
4848
4853
  return;
4849
4854
  }
4850
- if (Us()) {
4855
+ if (Vs()) {
4851
4856
  o();
4852
4857
  return;
4853
4858
  }
4854
4859
  const l = j(M);
4855
4860
  await l.info();
4856
- const s = await l.loadRemoteRoutes(), a = Oa(s), c = en(ye()), d = a.map((p) => {
4857
- const f = lt(p.routes, c);
4861
+ const s = await l.loadRemoteRoutes(), a = Aa(s), c = en(_e()), d = a.map((f) => {
4862
+ const p = lt(f.routes, c);
4858
4863
  return {
4859
- ...p,
4860
- routes: f
4864
+ ...f,
4865
+ routes: p
4861
4866
  };
4862
- }).filter((p) => p.routes.length > 0);
4863
- d.forEach((p) => {
4864
- p.routes.forEach((f) => {
4867
+ }).filter((f) => f.routes.length > 0);
4868
+ d.forEach((f) => {
4869
+ f.routes.forEach((p) => {
4865
4870
  e.addRoute({
4866
4871
  path: "/",
4867
4872
  component: Kt,
4868
- children: [f]
4873
+ children: [p]
4869
4874
  });
4870
4875
  });
4871
4876
  }), e.addRoute({ name: "404", path: "/:pathMatch(.*)*", redirect: "/404", hidden: !0 }), l.updateRemoteRouter(d), await e.replace(t), o();
4872
4877
  });
4873
4878
  }
4874
- function Na(e) {
4879
+ function Ua(e) {
4875
4880
  e.beforeEach(async (t, n, o) => {
4876
4881
  const s = [V(M).title || ""], a = t.matched.length;
4877
4882
  for (let c = a; c > a - 3; c--) {
@@ -4884,36 +4889,36 @@ function Na(e) {
4884
4889
  Object.keys(t.meta).length > 0 && await l.setCurrentMeta(t.meta);
4885
4890
  });
4886
4891
  }
4887
- function Ua(e) {
4888
- Gs(e), Ns(e), ja(e), Na(e);
4892
+ function Va(e) {
4893
+ Ks(e), Us(e), Na(e), Ua(e);
4889
4894
  }
4890
- Ua(oe);
4891
- function Va() {
4895
+ Va(oe);
4896
+ function qa() {
4892
4897
  return j(M).token;
4893
4898
  }
4894
- function qa() {
4899
+ function Ha() {
4895
4900
  return j(M).expired;
4896
4901
  }
4897
4902
  function vt(e) {
4898
- Ho({
4903
+ Fo({
4899
4904
  message: e,
4900
4905
  type: "error",
4901
4906
  duration: 5 * 1e3,
4902
4907
  grouping: !0
4903
4908
  });
4904
4909
  }
4905
- const Ha = {
4910
+ const Fa = {
4906
4911
  onFulfilled: function(e) {
4907
4912
  e.headers = e.headers || {};
4908
- const t = Va();
4913
+ const t = qa();
4909
4914
  return t && (e.headers["X-Token"] = t), oe.currentRoute.value.meta?.path && (e.headers["X-Path"] = oe.currentRoute.value.meta.path), e;
4910
4915
  }
4911
- }, Fa = {
4916
+ }, Ga = {
4912
4917
  onFulfilled(e) {
4913
4918
  if (!(e.config?.notHoldApiErr !== void 0 && e.config?.notHoldApiErr === !0) && e.data.code !== 0) {
4914
4919
  const o = e.data.message || `接口请求错误 ${e.config.method}::${e.config.url?.split("?")[0]}`;
4915
4920
  if (e.data.code === 401) {
4916
- if (qa())
4921
+ if (Ha())
4917
4922
  return;
4918
4923
  j(M).SetExpired(), ht.alert("登录信息已过期或未登录, 是否跳转登录", "操作提醒", {
4919
4924
  showClose: !1,
@@ -4942,26 +4947,26 @@ const Ha = {
4942
4947
  onRejected(e) {
4943
4948
  return Je.isCancel(e) ? Promise.reject("") : (vt(`${e.message} ${e.config.method}::${e.config.url?.split("?")[0]}`), Promise.reject(e));
4944
4949
  }
4945
- }, Ga = [
4950
+ }, Ka = [
4946
4951
  {
4947
- request: Go,
4948
- response: Ko
4952
+ request: Ko,
4953
+ response: zo
4949
4954
  },
4950
4955
  {
4951
- request: Ha,
4952
- response: Fa
4956
+ request: Fa,
4957
+ response: Ga
4953
4958
  }
4954
4959
  ];
4955
4960
  function st(e = {}) {
4956
- const t = Be.axios || {}, n = H(t, e || {}), o = Je.create({
4961
+ const t = $e.axios || {}, n = H(t, e || {}), o = Je.create({
4957
4962
  ...n
4958
4963
  // adapter: (c) => cacheAdapter(c, defaultAxios)
4959
4964
  });
4960
- return Ga.forEach((l) => {
4965
+ return Ka.forEach((l) => {
4961
4966
  o.interceptors.request.use(l.request.onFulfilled, l.request.onRejected), o.interceptors.response.use(l.response.onFulfilled, l.response.onRejected);
4962
4967
  }), o;
4963
4968
  }
4964
- const tn = st(), Ka = {
4969
+ const tn = st(), za = {
4965
4970
  beforeMount(e, t) {
4966
4971
  e.clickOutsideEvent = function(n) {
4967
4972
  e === n.target || e.contains(n.target) || t.value(n, e);
@@ -4970,13 +4975,13 @@ const tn = st(), Ka = {
4970
4975
  unmounted(e) {
4971
4976
  document.body.removeEventListener("click", e.clickOutsideEvent);
4972
4977
  }
4973
- }, le = vo(), za = {
4978
+ }, le = go(), Ja = {
4974
4979
  mounted: (e, t) => {
4975
4980
  e !== null && (t.value, e.oncontextmenu = (n) => {
4976
4981
  n.preventDefault(), n.stopPropagation(), n.cancelBubble = !0, t.value && le.emit("right-click", { event: n, data: t.value });
4977
4982
  });
4978
4983
  }
4979
- }, Ja = {
4984
+ }, Wa = {
4980
4985
  mounted(e) {
4981
4986
  }
4982
4987
  };
@@ -4986,7 +4991,7 @@ function gt(e, t) {
4986
4991
  n += o[`offset${t}`], o = o.offsetParent;
4987
4992
  return n;
4988
4993
  }
4989
- const Wa = {
4994
+ const Qa = {
4990
4995
  mounted: (e, t) => {
4991
4996
  if (e === null || !t.value.dev)
4992
4997
  return;
@@ -5012,40 +5017,37 @@ const Wa = {
5012
5017
  le.emit("dev-action", { event: d, data: { type: "del", devId: t.value.devId } });
5013
5018
  }, o.appendChild(a), n.insertBefore(o, n.firstChild);
5014
5019
  }
5015
- }, Qa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5020
+ }, Xa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5016
5021
  __proto__: null,
5017
- devtool: Wa,
5018
- outClick: Ka,
5019
- resize: Ja,
5020
- rightClick: za
5022
+ devtool: Qa,
5023
+ outClick: za,
5024
+ resize: Wa,
5025
+ rightClick: Ja
5021
5026
  }, Symbol.toStringTag, { value: "Module" }));
5022
- let we;
5027
+ let xe;
5023
5028
  const nn = [], kt = /* @__PURE__ */ new Set(), St = (e) => typeof e.name == "string" ? e.name : e.path;
5024
- function dr(e) {
5025
- return e ? st(H(Be.axios, e)) : we;
5026
- }
5027
5029
  function pr(e) {
5028
- const t = H(Be, e), n = In(Mo), o = oi(t), l = t.plugins || [];
5030
+ return e ? st(H($e.axios, e)) : xe;
5031
+ }
5032
+ function fr(e) {
5033
+ const t = H($e, e), n = Cn(Do), o = li(t), l = t.plugins || [];
5029
5034
  l.unshift(o), l.forEach((d) => {
5030
- ni(n, d);
5031
- }), t?.mock && qo(), we = st(t.axios), Ro(n);
5035
+ oi(n, d);
5036
+ }), t?.mock && Ho(), xe = st(t.axios), Ro(n);
5032
5037
  const s = Y(M), a = V(M), c = j(M);
5033
- Io(we), a.updateSettings(e?.settings || {}), s.setBaseAPI(t?.axios.baseURL), n.config.globalProperties.$http = we, n.config.globalProperties.$router = oe, window.App = n, window.OmsOptions = t, yo(() => ({
5034
- "X-Token": ye()
5035
- })), Ee(() => c.token, () => {
5038
+ Co(xe), a.updateSettings(e?.settings || {}), s.setBaseAPI(t?.axios.baseURL), n.config.globalProperties.$http = xe, n.config.globalProperties.$router = oe, window.App = n, window.OmsOptions = t, _o(() => ({
5039
+ "X-Token": _e()
5040
+ })), be(() => c.token, () => {
5036
5041
  on();
5037
5042
  }, { immediate: !0 }), oe.isReady().then(() => n.mount("#app"));
5038
5043
  }
5039
- function Xa(e, t = {}) {
5044
+ function Za(e, t = {}) {
5040
5045
  Object.keys(t).forEach((n) => {
5041
5046
  e.component(n, t[n]);
5042
5047
  });
5043
5048
  }
5044
5049
  function on() {
5045
- const e = en(ye());
5046
- if (!e.length)
5047
- return;
5048
- const t = lt(nn, e), n = j(M), o = new Set(n.customRouter.map((s) => St(s))), l = t.filter((s) => {
5050
+ const e = en(_e()), t = lt(nn, e), n = j(M), o = new Set(n.customRouter.map((s) => St(s))), l = t.filter((s) => {
5049
5051
  const a = St(s);
5050
5052
  return kt.has(a) || o.has(a) ? !1 : (kt.add(a), !0);
5051
5053
  });
@@ -5053,20 +5055,20 @@ function on() {
5053
5055
  oe.addRoute(s);
5054
5056
  }), l.length && n.setCustomRoutes(l);
5055
5057
  }
5056
- function Za(e = []) {
5058
+ function Ya(e = []) {
5057
5059
  nn.push(...e), on();
5058
5060
  }
5059
- function Ya(e, t) {
5061
+ function ei(e, t) {
5060
5062
  t.forEach((n) => {
5061
5063
  ie(n) && (n = [n]), e.use(...n);
5062
5064
  });
5063
5065
  }
5064
- function ei(e, t = {}) {
5066
+ function ti(e, t = {}) {
5065
5067
  Object.keys(t).forEach((n) => {
5066
5068
  e.directive(n, t[n]);
5067
5069
  });
5068
5070
  }
5069
- function ti(e = {}) {
5071
+ function ni(e = {}) {
5070
5072
  const t = ["app", "settings", "user"];
5071
5073
  Object.keys(e).forEach((n) => {
5072
5074
  if (t.indexOf(n) !== -1) {
@@ -5076,48 +5078,48 @@ function ti(e = {}) {
5076
5078
  console.warn("[store] plugin storeModules are not supported under Pinia. Ignored:", n);
5077
5079
  });
5078
5080
  }
5079
- function ni(e, t) {
5080
- Xa(e, t.components || {}), Za(t.routes || []), Ya(e, t.use || []), ei(e, t.directives || {}), ti(t.storeModules || {}), Vt(t.mockApis || []);
5081
+ function oi(e, t) {
5082
+ Za(e, t.components || {}), Ya(t.routes || []), ei(e, t.use || []), ti(e, t.directives || {}), ni(t.storeModules || {}), Vt(t.mockApis || []);
5081
5083
  }
5082
- function oi(e) {
5084
+ function li(e) {
5083
5085
  return {
5084
- components: { VIcon: _o },
5085
- directives: Qa,
5086
+ components: { VIcon: vo },
5087
+ directives: Xa,
5086
5088
  use: [
5087
5089
  oe,
5088
- [Un, { locale: Ct, ...e.settings?.ElementPlus }]
5090
+ [Vn, { locale: Ct, ...e.settings?.ElementPlus }]
5089
5091
  ]
5090
5092
  };
5091
5093
  }
5092
5094
  export {
5093
5095
  Jt as BaseSso,
5094
5096
  je as Container,
5095
- cr as DingTalk,
5096
- rr as Github,
5097
+ ur as DingTalk,
5098
+ cr as Github,
5097
5099
  Kt as Layout,
5098
5100
  G as MenuType,
5099
- Ho as Message,
5101
+ Fo as Message,
5100
5102
  ht as MessageBox,
5101
5103
  J as PageType,
5102
- Hs as allSso,
5103
- Bo as appState,
5104
- Oo as builderSchemaState,
5105
- pr as createAdmin,
5104
+ Fs as allSso,
5105
+ Oo as appState,
5106
+ Ao as builderSchemaState,
5107
+ fr as createAdmin,
5106
5108
  le as eventBus,
5107
- zo as getCmp,
5109
+ Jo as getCmp,
5108
5110
  Pe as getHttp,
5109
- we as http,
5111
+ xe as http,
5110
5112
  st as instance,
5111
5113
  M as pinia,
5112
- ur as regViews,
5113
- ir as setCmp,
5114
- Io as setHttp,
5115
- To as settings,
5114
+ dr as regViews,
5115
+ rr as setCmp,
5116
+ Co as setHttp,
5117
+ Bo as settings,
5116
5118
  Ro as setupStore,
5117
- Oa as transRemoteModules,
5119
+ Aa as transRemoteModules,
5118
5120
  Y as useAppStore,
5119
- ar as useBuilderSchemaStore,
5120
- dr as useHttp,
5121
+ ir as useBuilderSchemaStore,
5122
+ pr as useHttp,
5121
5123
  V as useSettingsStore,
5122
5124
  j as useUserStore,
5123
5125
  dt as userState