@okiss/oms 0.0.81 → 0.0.86

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