@okiss/oms 0.0.86 → 0.0.87

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