@skyfox2000/webui 1.3.9 → 1.3.11

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.
@@ -1,20 +1,20 @@
1
- var ha = Object.defineProperty;
2
- var ma = (e, t, a) => t in e ? ha(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
3
- var $ = (e, t, a) => ma(e, typeof t != "symbol" ? t + "" : t, a);
4
- import { inject as te, ref as f, provide as ke, watch as I, toRaw as Xe, h as D, nextTick as va, shallowRef as K, defineComponent as X, reactive as ga, onMounted as Ie, onUnmounted as ie, createBlock as xe, createCommentVNode as C, openBlock as O, unref as b, mergeProps as le, useAttrs as Ae, createElementBlock as L, createVNode as z, withCtx as V, createTextVNode as Ee, toDisplayString as W, Fragment as ne, renderList as Ue, normalizeClass as Ze, createElementVNode as ya } from "vue";
5
- import { Switch as ba, AutoComplete as Sa, Input as Ia, CheckboxGroup as xa, Checkbox as Aa, RadioGroup as Ea, Radio as Oa, Select as Ra, SelectOption as Ta } from "ant-design-vue";
6
- import { createPinia as wa, defineStore as ue } from "pinia";
7
- import Pa from "pinia-plugin-persistedstate";
8
- import { combineParams as Oe, EnvConfig as ge, AppAction as Be, AppSource as Ce, isMicroApp as ye, mainAppApis as _, isBaseMicroApp as ka } from "@skyfox2000/microbase";
9
- import { ResStatus as T, httpPost as G, setToken as he, fieldMapping as La, parseFieldTemplate as be, API_HOST as Le, SERVER_HOST as $a } from "@skyfox2000/fapi";
1
+ var ma = Object.defineProperty;
2
+ var va = (e, t, a) => t in e ? ma(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
3
+ var $ = (e, t, a) => va(e, typeof t != "symbol" ? t + "" : t, a);
4
+ import { inject as te, ref as f, provide as Le, watch as I, toRaw as Ze, h as U, nextTick as ga, shallowRef as K, defineComponent as X, reactive as ya, onMounted as Ie, onUnmounted as ie, createBlock as xe, createCommentVNode as C, openBlock as O, unref as b, mergeProps as le, useAttrs as Ae, createElementBlock as L, createVNode as z, withCtx as V, createTextVNode as Ee, toDisplayString as W, Fragment as ne, renderList as Ue, normalizeClass as ea, createElementVNode as ba } from "vue";
5
+ import { Switch as Sa, AutoComplete as Ia, Input as xa, CheckboxGroup as Aa, Checkbox as Ea, RadioGroup as Oa, Radio as Ra, Select as Ta, SelectOption as wa } from "ant-design-vue";
6
+ import { createPinia as Pa, defineStore as ue } from "pinia";
7
+ import ka from "pinia-plugin-persistedstate";
8
+ import { combineParams as Oe, EnvConfig as ge, AppAction as Ce, AppSource as ze, isMicroApp as ye, mainAppApis as _, isBaseMicroApp as La } from "@skyfox2000/microbase";
9
+ import { ResStatus as T, httpPost as G, setToken as he, fieldMapping as $a, parseFieldTemplate as be, API_HOST as $e, SERVER_HOST as Fa } from "@skyfox2000/fapi";
10
10
  import x from "vue-m-message";
11
- import De from "async-validator";
12
- import { createRouter as Fa, createWebHashHistory as Ma } from "vue-router";
11
+ import He from "async-validator";
12
+ import { createRouter as Ma, createWebHashHistory as Na } from "vue-router";
13
13
  import "dayjs";
14
14
  import "vue-draggable-next";
15
- const Na = wa();
16
- Na.use(Pa);
17
- var U = /* @__PURE__ */ ((e) => (e.PageControl = "Page.PageControl", e.EditorControl = "Page.EditorControl", e.GridControl = "Page.GridControl", e.LabelText = "FormItem.LabelText", e.LabelWidth = "FormItem.LabelWidth", e.RuleKey = "FormItem.RuleKey", e.ErrInfo = "FormItem.ErrInfo", e))(U || {});
15
+ const _a = Pa();
16
+ _a.use(ka);
17
+ var D = /* @__PURE__ */ ((e) => (e.PageControl = "Page.PageControl", e.EditorControl = "Page.EditorControl", e.GridControl = "Page.GridControl", e.LabelText = "FormItem.LabelText", e.LabelWidth = "FormItem.LabelWidth", e.RuleKey = "FormItem.RuleKey", e.ErrInfo = "FormItem.ErrInfo", e))(D || {});
18
18
  const w = class w {
19
19
  };
20
20
  $(w, "dict", {}), $(w, "Keys", {
@@ -192,11 +192,11 @@ const ce = {
192
192
  s.api || (s.api = a.api), s.authorize === void 0 && (s.authorize = a.authorize);
193
193
  let n = JSON.parse(JSON.stringify(t.params));
194
194
  return t.processParams && (n = t.processParams(n)), t.loadingState && (t.loadingState.value = !0), t.hideErrorToast && (s.hideErrorToast = !0), G(s, n).then((o) => (t.loadingState && (t.loadingState.value = !1), o)).catch((o) => (t.loadingState && (t.loadingState.value = !1), null));
195
- }, He = (e, t) => {
195
+ }, Ve = (e, t) => {
196
196
  t.params || (t.params = {}), t.params.Query || (t.params.Query = {});
197
197
  const a = Re(e, t);
198
198
  return t.url = a, Te(e, t);
199
- }, Lt = (e, t) => (t.params || (t.params = {}), t.params.Query || (t.params.Query = {}), t.loadingText = t.loadingText === !1 ? !1 : t.loadingText || "开始执行...", t.url = Re(e, t), Te(e, t).then((a) => ((a == null ? void 0 : a.status) === T.SUCCESS && (t.hideErrorToast || x.success("执行成功!")), a))), ea = (e, t = {}) => {
199
+ }, $t = (e, t) => (t.params || (t.params = {}), t.params.Query || (t.params.Query = {}), t.loadingText = t.loadingText === !1 ? !1 : t.loadingText || "开始执行...", t.url = Re(e, t), Te(e, t).then((a) => ((a == null ? void 0 : a.status) === T.SUCCESS && (t.hideErrorToast || x.success("执行成功!")), a))), aa = (e, t = {}) => {
200
200
  const a = t.primaryKey || "Id";
201
201
  if (t.params || (t.params = {}), t.params.Query || (t.params.Query = {}), !t.params.Data)
202
202
  return x.error("错误!无保存数据!"), Promise.resolve(null);
@@ -208,7 +208,7 @@ const ce = {
208
208
  s.params.Query[a] = s.params.Data[a];
209
209
  const n = Re(e, s);
210
210
  return s.url = n, Te(e, s).then((o) => ((o == null ? void 0 : o.status) === T.SUCCESS && (t.hideErrorToast || x.success("保存成功!")), o));
211
- }, _a = (e, t, a = {}) => {
211
+ }, Da = (e, t, a = {}) => {
212
212
  const s = a.primaryKey || "Id";
213
213
  a.params || (a.params = {}), a.params.Query || (a.params.Query = {});
214
214
  const n = {
@@ -220,7 +220,7 @@ const ce = {
220
220
  return x.error("错误!禁止无条件删除数据!"), Promise.resolve(null);
221
221
  const o = Re(e, n);
222
222
  return n.url = o, Te(e, n).then((r) => ((r == null ? void 0 : r.status) === T.SUCCESS && (a.hideErrorToast || x.success("删除成功!")), r));
223
- }, Ua = (e, t) => He(e, {
223
+ }, Ua = (e, t) => Ve(e, {
224
224
  urlKey: "tree",
225
225
  params: {},
226
226
  loadingState: e.isTreeLoading,
@@ -228,8 +228,8 @@ const ce = {
228
228
  processParams: () => Oe(e.treeQuery, t)
229
229
  }).then((a) => (a == null ? void 0 : a.status) === T.SUCCESS ? (e.data.value = a.data, e.data.value) : []);
230
230
  let re;
231
- const $t = (e) => {
232
- re = new De({}), re.messages({
231
+ const Ft = (e) => {
232
+ re = new He({}), re.messages({
233
233
  required: "${label}不能为空",
234
234
  types: {
235
235
  number: "${label}必须是数字"
@@ -255,7 +255,7 @@ const $t = (e) => {
255
255
  },
256
256
  ...e
257
257
  });
258
- }, Ft = (e) => {
258
+ }, Mt = (e) => {
259
259
  if (!e || P(e))
260
260
  return [];
261
261
  const t = [], a = re.messages(), s = (o, r, l) => {
@@ -311,20 +311,20 @@ const $t = (e) => {
311
311
  }), t;
312
312
  }, fe = async (e) => {
313
313
  const t = e.formData.value, a = e.formRules.value;
314
- P(a) || (Ve(e), e.ruleValidator || (e.ruleValidator = new De({}), e.ruleValidator.messages(re.messages()), e.ruleValidator.define(a)), e.ruleResults.value = await e.ruleValidator.validate(t).then(() => {
314
+ P(a) || (Ke(e), e.ruleValidator || (e.ruleValidator = new He({}), e.ruleValidator.messages(re.messages()), e.ruleValidator.define(a)), e.ruleResults.value = await e.ruleValidator.validate(t).then(() => {
315
315
  }).catch(({ fields: s }) => s));
316
- }, Mt = async (e, t, a) => (a || (a = new De({}), a.messages(re.messages()), a.define(t)), a.validate(e).then(() => {
317
- }).catch(({ fields: s }) => s)), Ve = (e) => {
316
+ }, Nt = async (e, t, a) => (a || (a = new He({}), a.messages(re.messages()), a.define(t)), a.validate(e).then(() => {
317
+ }).catch(({ fields: s }) => s)), Ke = (e) => {
318
318
  e.ruleResults.value = void 0;
319
319
  }, Y = () => {
320
- const e = te(U.EditorControl, void 0), t = f(te(U.LabelText, "")), a = f(te(U.RuleKey, "")), s = te(U.ErrInfo, void 0);
320
+ const e = te(D.EditorControl, void 0), t = f(te(D.LabelText, "")), a = f(te(D.RuleKey, "")), s = te(D.ErrInfo, void 0);
321
321
  return {
322
322
  editorCtrl: e,
323
323
  labelText: t,
324
324
  ruleKey: a,
325
325
  errInfo: s
326
326
  };
327
- }, Da = (e, t) => {
327
+ }, Ha = (e, t) => {
328
328
  let a = f({
329
329
  msg: "",
330
330
  errClass: ""
@@ -336,20 +336,20 @@ const $t = (e) => {
336
336
  () => s == null ? void 0 : s.value,
337
337
  (n) => {
338
338
  if (a.value.errClass = "", a.value.msg = "", !P(n)) {
339
- const o = Ha(
339
+ const o = Va(
340
340
  {
341
341
  label: e.label,
342
342
  rule: e.rule
343
343
  },
344
344
  t == null ? void 0 : t.formRules.value,
345
- Xe(n)
345
+ Ze(n)
346
346
  );
347
347
  a.value.errClass = o.errClass.value, a.value.msg = o.msg.value;
348
348
  }
349
349
  },
350
350
  { deep: !0 }
351
351
  ), a;
352
- }, Ha = (e, t, a) => {
352
+ }, Va = (e, t, a) => {
353
353
  const s = f([]), n = f(""), o = f("");
354
354
  if (!e.rule || !t || !a)
355
355
  return { msg: n, ruleErrors: s, errClass: o };
@@ -376,26 +376,26 @@ const $t = (e) => {
376
376
  });
377
377
  }
378
378
  }), s.value.length > 0 && (o.value = "error"), { msg: n, ruleErrors: s, errClass: o };
379
- }, Nt = (e, t) => {
380
- ke(U.LabelText, e.label || ""), ke(U.RuleKey, e.rule || "");
381
- const a = Da(e, t);
382
- return ke(U.ErrInfo, a), a;
383
- }, _t = (e) => {
384
- aa(e);
379
+ }, _t = (e, t) => {
380
+ Le(D.LabelText, e.label || ""), Le(D.RuleKey, e.rule || "");
381
+ const a = Ha(e, t);
382
+ return Le(D.ErrInfo, a), a;
383
+ }, Dt = (e) => {
384
+ ta(e);
385
385
  }, Ut = (e) => {
386
386
  const t = e.page, a = e.formData.value;
387
- a[e.primaryKey ?? t.primaryKey] = null, aa(e);
388
- }, Dt = (e) => {
389
- Ke(e), e.visible.value = !1;
390
- }, aa = async (e) => {
387
+ a[e.primaryKey ?? t.primaryKey] = null, ta(e);
388
+ }, Ht = (e) => {
389
+ Qe(e), e.visible.value = !1;
390
+ }, ta = async (e) => {
391
391
  var s;
392
392
  const t = e.page;
393
- if (e.isFormSaving.value = !0, Ve(e), e.beforeSave && e.beforeSave() === !1)
393
+ if (e.isFormSaving.value = !0, Ke(e), e.beforeSave && e.beforeSave() === !1)
394
394
  return e.isFormSaving.value = !1, Promise.resolve();
395
395
  if (e.formRules.value && await fe(e), e.ruleResults.value)
396
396
  return x.error("提交表单时,验证失败!"), console.error("表单验证失败!", e.ruleResults.value), e.isFormSaving.value = !1, Promise.resolve();
397
397
  const a = e.formData.value;
398
- return ea(
398
+ return aa(
399
399
  {
400
400
  page: t,
401
401
  // 转换为AnyControl接口
@@ -437,36 +437,36 @@ const $t = (e) => {
437
437
  } else
438
438
  x.error((n == null ? void 0 : n.msg) ?? "保存失败!");
439
439
  });
440
- }, Ht = async (e) => {
440
+ }, Vt = async (e) => {
441
441
  const t = e.page, a = e.grid;
442
442
  e.isFormLoading.value = !0;
443
443
  const s = e.formData.value, n = e.primaryKey ?? t.primaryKey;
444
- return la(a, { [n]: s[n] }, e.detailUrl).then((o) => {
445
- e.isFormLoading.value = !1, o && ta(e, o);
444
+ return ua(a, { [n]: s[n] }, e.detailUrl).then((o) => {
445
+ e.isFormLoading.value = !1, o && sa(e, o);
446
446
  });
447
- }, Vt = (e) => {
447
+ }, Kt = (e) => {
448
448
  const t = e.grid;
449
- t && (t.rowData.value = void 0), e && (Ke(e), e.visible && (e.visible.value = !1), setTimeout(() => {
449
+ t && (t.rowData.value = void 0), e && (Qe(e), e.visible && (e.visible.value = !1), setTimeout(() => {
450
450
  e.visible.value = !0;
451
451
  }, 1));
452
- }, ta = (e, t) => {
453
- Ke(e);
452
+ }, sa = (e, t) => {
453
+ Qe(e);
454
454
  const a = { ...e.formData.value, ...t };
455
455
  e.formData.value = JSON.parse(JSON.stringify(a));
456
- }, Ke = (e) => {
457
- e.formData.value = e.default ? JSON.parse(JSON.stringify(e.default)) : {}, Ve(e);
458
- }, Se = "/login/", ve = [], Va = (e) => {
456
+ }, Qe = (e) => {
457
+ e.formData.value = e.default ? JSON.parse(JSON.stringify(e.default)) : {}, Ke(e);
458
+ }, Se = "/login/", ve = [], Ka = (e) => {
459
459
  for (const t of e) {
460
460
  const a = ve.findIndex((s) => s.path === t.path);
461
461
  a !== -1 && ve.splice(a, 1), ve.push(t), oe.addRoute(t);
462
462
  }
463
- }, sa = (e, t, a, s = "") => {
463
+ }, na = (e, t, a, s = "") => {
464
464
  const n = s + (s ? "/" : "") + e.path;
465
- t[n] = { ...e, parent: a }, e.children && e.children.forEach((o) => sa(o, t, e, n));
466
- }, oe = Fa({
467
- history: Ma("/"),
465
+ t[n] = { ...e, parent: a }, e.children && e.children.forEach((o) => na(o, t, e, n));
466
+ }, oe = Ma({
467
+ history: Na("/"),
468
468
  routes: ve
469
- }), Ka = (e, t) => {
469
+ }), Qa = (e, t) => {
470
470
  var n, o;
471
471
  const a = ((n = e.meta) == null ? void 0 : n.roles) ?? [], s = (o = e.meta) == null ? void 0 : o.permission;
472
472
  if (!t)
@@ -518,24 +518,24 @@ oe.beforeEach((e, t, a) => {
518
518
  };
519
519
  return;
520
520
  }
521
- const c = Ka(s, i.isLogin);
521
+ const c = Qa(s, i.isLogin);
522
522
  a();
523
523
  }
524
524
  }
525
525
  });
526
- const Qa = (e) => {
526
+ const Ja = (e) => {
527
527
  if (se.value) {
528
528
  const { to: t, next: a } = se.value;
529
529
  se.value = null, t.path === "/" ? a(e) : a(t.path);
530
530
  }
531
- }, Ja = (e) => {
532
- const t = Qe();
531
+ }, ja = (e) => {
532
+ const t = Je();
533
533
  if (t.TabEnabled) {
534
- if (ja(e.key, t.TabPanes))
534
+ if (Ga(e.key, t.TabPanes))
535
535
  return;
536
536
  t.TabPanes.push(e);
537
537
  }
538
- }, ja = (e, t) => t.find((a) => a.key === e), Qe = ue("pageInfo", {
538
+ }, Ga = (e, t) => t.find((a) => a.key === e), Je = ue("pageInfo", {
539
539
  state: () => ({
540
540
  TabActive: "",
541
541
  TabPanes: [],
@@ -580,18 +580,18 @@ const Qa = (e) => {
580
580
  // 默认为true
581
581
  keepAlive: !(a.meta && !a.meta.keepAlive)
582
582
  };
583
- Ja(s), this.TabActive = e;
583
+ ja(s), this.TabActive = e;
584
584
  }
585
585
  },
586
586
  persist: !1
587
- }), Ga = {
587
+ }), qa = {
588
588
  appList: {
589
589
  api: "PLATFORM_API",
590
590
  authorize: !0,
591
591
  url: "/api/RCTenanetOpSrv/getApps",
592
592
  loadingText: !1
593
593
  }
594
- }, $e = /* @__PURE__ */ new Map(), qa = (e) => {
594
+ }, Fe = /* @__PURE__ */ new Map(), Ba = (e) => {
595
595
  const t = j(), { roles: a, permission: s } = e.meta || {};
596
596
  if (P(a) && P(s))
597
597
  return !0;
@@ -602,17 +602,17 @@ const Qa = (e) => {
602
602
  return P(a) || (n = t.hasRole(a)), t.isAdmin() ? n : (P(s) || (o = t.hasPermit(e.path, s)), n || o);
603
603
  }
604
604
  return !1;
605
- }, na = (e) => e.map((t) => {
605
+ }, ra = (e) => e.map((t) => {
606
606
  const a = { ...t };
607
- return qa(a) ? (a.children && (a.children = na(a.children)), a) : null;
608
- }).filter(Boolean), ra = (e, t = "") => {
607
+ return Ba(a) ? (a.children && (a.children = ra(a.children)), a) : null;
608
+ }).filter(Boolean), oa = (e, t = "") => {
609
609
  for (const a of e) {
610
610
  if (!a.children && !a.redirect) {
611
611
  let s = t + a.path;
612
612
  return s.startsWith("/") || (s = "/" + s), s;
613
613
  }
614
614
  if (a.children && a.children.length > 0 && a.path !== "/error" && a.path !== "/login" && a.path !== "/:page(.*)") {
615
- const s = ra(a.children, t + a.path + "/");
615
+ const s = oa(a.children, t + a.path + "/");
616
616
  if (s)
617
617
  return s;
618
618
  }
@@ -625,8 +625,8 @@ const Qa = (e) => {
625
625
  AppCode: "",
626
626
  Version: "",
627
627
  Host: "",
628
- Source: Ce.Manual,
629
- Action: Be.App,
628
+ Source: ze.Manual,
629
+ Action: Ce.App,
630
630
  Path: "",
631
631
  Icon: "",
632
632
  Routes: [],
@@ -651,7 +651,7 @@ const Qa = (e) => {
651
651
  });
652
652
  },
653
653
  async getRemoteAppList() {
654
- return G(Ga.appList, {
654
+ return G(qa.appList, {
655
655
  Query: {
656
656
  AppCode: this.appInfo.AppCode,
657
657
  Enabled: 1
@@ -690,7 +690,7 @@ const Qa = (e) => {
690
690
  flattenRoutes: {},
691
691
  Routes: t ?? [],
692
692
  defaultPage: ""
693
- }), (!ye() || !ka()) && (await j().getRolePermits(a.Id), this.appInfo.Routes.length && this.setAppRoutes(this.appInfo.Routes)));
693
+ }), (!ye() || !La()) && (await j().getRolePermits(a.Id), this.appInfo.Routes.length && this.setAppRoutes(this.appInfo.Routes)));
694
694
  },
695
695
  /**
696
696
  * 设置当前应用路由信息
@@ -705,18 +705,18 @@ const Qa = (e) => {
705
705
  };
706
706
  const t = this.appInfo.flattenRoutes;
707
707
  for (const a of e)
708
- sa(a, t, void 0);
708
+ na(a, t, void 0);
709
709
  if (Object.keys(t).forEach((a) => {
710
710
  const s = t[a];
711
711
  s.children || !s.component || (s.meta && s.meta.keepAlive === !1 ? this.ExcludeComponents.push(a) : this.CachedComponents.push(a));
712
712
  }), j().isLogin) {
713
- const a = na(this.appInfo.Routes);
714
- if (Va(a), this.appInfo.defaultPage = ra(a) || "", this.appInfo.defaultPage) {
713
+ const a = ra(this.appInfo.Routes);
714
+ if (Ka(a), this.appInfo.defaultPage = oa(a) || "", this.appInfo.defaultPage) {
715
715
  if (this.menuLoaded = !0, _.value && _.value.mainAppPush) {
716
716
  const s = this.formatRoute(this.appInfo.defaultPage);
717
717
  _.value.mainAppPush(s);
718
718
  }
719
- Qa(this.appInfo.defaultPage);
719
+ Ja(this.appInfo.defaultPage);
720
720
  }
721
721
  }
722
722
  },
@@ -734,7 +734,7 @@ const Qa = (e) => {
734
734
  * @param path 路由地址
735
735
  */
736
736
  push(e) {
737
- this.findRoute(e) && Qe().setTabActive(e), va(() => {
737
+ this.findRoute(e) && Je().setTabActive(e), ga(() => {
738
738
  if (oe.push({ path: e }), _.value && _.value.mainAppPush) {
739
739
  const a = this.formatRoute(e);
740
740
  _.value.mainAppPush(a);
@@ -756,16 +756,16 @@ const Qa = (e) => {
756
756
  * @returns 组件实例
757
757
  */
758
758
  cacheComponent(e, t) {
759
- let a = $e.get(t.path);
759
+ let a = Fe.get(t.path);
760
760
  if (!a)
761
761
  if (this.CachedComponents.includes(t.path))
762
762
  a = {
763
763
  // 设置组件包装器的名称为路由路径
764
764
  name: t.path,
765
765
  render() {
766
- return D(e);
766
+ return U(e);
767
767
  }
768
- }, $e.set(t.path, a);
768
+ }, Fe.set(t.path, a);
769
769
  else return e;
770
770
  return a;
771
771
  },
@@ -774,7 +774,7 @@ const Qa = (e) => {
774
774
  * @param path 路由地址
775
775
  */
776
776
  excludeComponent(e) {
777
- this.ExcludeComponents.includes(e) || this.ExcludeComponents.push(e), this.CachedComponents.splice(this.CachedComponents.indexOf(e), 1), $e.delete(e);
777
+ this.ExcludeComponents.includes(e) || this.ExcludeComponents.push(e), this.CachedComponents.splice(this.CachedComponents.indexOf(e), 1), Fe.delete(e);
778
778
  },
779
779
  /**
780
780
  * 路由路径层级查询,返回面包屑
@@ -794,8 +794,8 @@ const Qa = (e) => {
794
794
  AppCode: "",
795
795
  Version: "",
796
796
  Host: "",
797
- Source: Ce.Manual,
798
- Action: Be.App,
797
+ Source: ze.Manual,
798
+ Action: Ce.App,
799
799
  Path: "",
800
800
  Icon: "",
801
801
  Routes: [],
@@ -809,7 +809,7 @@ const Qa = (e) => {
809
809
  }
810
810
  },
811
811
  persist: !1
812
- }), oa = "Token解析失败", ze = "登录过期,请重新登录", Je = {
812
+ }), ia = "Token解析失败", We = "登录过期,请重新登录", je = {
813
813
  login: {
814
814
  api: "PLATFORM_API",
815
815
  url: "/openapi/LoginSrv/login",
@@ -827,46 +827,46 @@ const Qa = (e) => {
827
827
  url: "/api/LoginSrv/logout",
828
828
  loadingText: "正在退出..."
829
829
  }
830
- }, Ba = (e) => {
830
+ }, Ca = (e) => {
831
831
  let t = {
832
832
  Option: {
833
833
  Mode: "MicroApp"
834
834
  },
835
835
  Query: e
836
836
  };
837
- return G(Je.login, t).then((a) => (a == null ? void 0 : a.status) === T.SUCCESS ? a : null);
838
- }, Ca = (e) => {
837
+ return G(je.login, t).then((a) => (a == null ? void 0 : a.status) === T.SUCCESS ? a : null);
838
+ }, za = (e) => {
839
839
  let t = {
840
840
  Query: {
841
841
  AppId: e
842
842
  }
843
843
  };
844
- return G(Je.auth, t).then((a) => (a == null ? void 0 : a.status) === T.SUCCESS ? a.data : (x.error("获取授权信息失败," + (a == null ? void 0 : a.msg)), null));
845
- }, za = () => {
844
+ return G(je.auth, t).then((a) => (a == null ? void 0 : a.status) === T.SUCCESS ? a.data : (x.error("获取授权信息失败," + (a == null ? void 0 : a.msg)), null));
845
+ }, Wa = () => {
846
846
  let e = {
847
847
  Option: {},
848
848
  Query: {}
849
849
  };
850
- return G(Je.logout, e).then((t) => (t == null ? void 0 : t.status) === T.SUCCESS ? t.data : null);
851
- }, Wa = (e) => {
850
+ return G(je.logout, e).then((t) => (t == null ? void 0 : t.status) === T.SUCCESS ? t.data : null);
851
+ }, Ya = (e) => {
852
852
  try {
853
853
  const a = JSON.parse(atob(e.split(".")[1])).exp;
854
854
  return Date.now() / 1e3 > a;
855
855
  } catch (t) {
856
- return console.error(oa, t), !0;
856
+ return console.error(ia, t), !0;
857
857
  }
858
- }, Fe = (e, t) => e == "" ? (x.error(ze, {
858
+ }, Me = (e, t) => e == "" ? (x.error(We, {
859
859
  duration: 3e3,
860
860
  onClose: t
861
- }), !1) : Wa(e) ? (x.error(ze, {
861
+ }), !1) : Ya(e) ? (x.error(We, {
862
862
  duration: 3e3,
863
863
  onClose: t
864
- }), !1) : !0, Ya = (e) => {
864
+ }), !1) : !0, Xa = (e) => {
865
865
  try {
866
866
  const t = JSON.parse(atob(e.token.split(".")[1]));
867
867
  return t.user = JSON.parse(t.user), e.UserInfo = t.user, !0;
868
868
  } catch (t) {
869
- return console.error(oa, t), !1;
869
+ return console.error(ia, t), !1;
870
870
  }
871
871
  }, k = f(""), ee = f(null), j = ue("userInfo", {
872
872
  state: () => ({
@@ -886,7 +886,7 @@ const Qa = (e) => {
886
886
  * 启动时初始化用户信息
887
887
  */
888
888
  init() {
889
- ye() || (this.token ? (Fe(this.token, () => this.clean()), he(this.token), k.value = this.userInfo.UserLevel, this.isLogin = !0) : this.clean());
889
+ ye() || (this.token ? (Me(this.token, () => this.clean()), he(this.token), k.value = this.userInfo.UserLevel, this.isLogin = !0) : this.clean());
890
890
  },
891
891
  /**
892
892
  * 登录操作
@@ -894,14 +894,14 @@ const Qa = (e) => {
894
894
  * @returns
895
895
  */
896
896
  async login(e, t) {
897
- const a = await Ba(e);
897
+ const a = await Ca(e);
898
898
  if (a) {
899
899
  const s = a;
900
900
  if (s.errno)
901
901
  return s;
902
902
  {
903
903
  const n = a.data;
904
- if (this.token = n.token, he(this.token), this.isLogin = !0, Ya(n))
904
+ if (this.token = n.token, he(this.token), this.isLogin = !0, Xa(n))
905
905
  this.userInfo = {
906
906
  ...this.userInfo,
907
907
  ...n.UserInfo
@@ -925,7 +925,7 @@ const Qa = (e) => {
925
925
  if (ee.value && ee.value.appId === e)
926
926
  return !0;
927
927
  try {
928
- const t = await Ca(e);
928
+ const t = await za(e);
929
929
  return t ? (ee.value = {
930
930
  appId: e,
931
931
  permits: t.permits || [],
@@ -968,7 +968,7 @@ const Qa = (e) => {
968
968
  * @param token 用户Token
969
969
  */
970
970
  setUserInfo(e, t) {
971
- if (!Fe(t)) {
971
+ if (!Me(t)) {
972
972
  this.clean();
973
973
  return;
974
974
  }
@@ -982,7 +982,7 @@ const Qa = (e) => {
982
982
  * @returns 用户Token
983
983
  */
984
984
  getToken() {
985
- return Fe(this.token, () => {
985
+ return Me(this.token, () => {
986
986
  this.clean(), this.logout();
987
987
  }) ? this.token : "";
988
988
  },
@@ -1023,7 +1023,7 @@ const Qa = (e) => {
1023
1023
  */
1024
1024
  async logout() {
1025
1025
  try {
1026
- await za();
1026
+ await Wa();
1027
1027
  } catch (e) {
1028
1028
  console.error("调用登出接口失败", e);
1029
1029
  } finally {
@@ -1045,7 +1045,7 @@ const Qa = (e) => {
1045
1045
  e.store.init();
1046
1046
  }
1047
1047
  }
1048
- }), Kt = (e, t) => {
1048
+ }), Qt = (e, t) => {
1049
1049
  const a = j();
1050
1050
  return e.filter((n) => n.role && !a.hasRole(n.role) || n.permit && !a.hasPermit(oe.currentRoute.value.path, n.permit) || n.enabled === !1 ? !1 : typeof n.enabled == "function" ? n.enabled() : !0).filter((n) => {
1051
1051
  if (!t) {
@@ -1056,7 +1056,7 @@ const Qa = (e) => {
1056
1056
  }
1057
1057
  return !0;
1058
1058
  });
1059
- }, Qt = (e, t) => {
1059
+ }, Jt = (e, t) => {
1060
1060
  const a = t == null ? void 0 : t.filter((s) => {
1061
1061
  const n = e.find(
1062
1062
  (o) => o.dataIndex === s.dataIndex || o.key === s.key || o.title === s.title
@@ -1064,10 +1064,10 @@ const Qa = (e) => {
1064
1064
  return n ? { ...s, ...n } : !1;
1065
1065
  });
1066
1066
  return [...a || [], ...e.filter((s) => !(a != null && a.includes(s)))];
1067
- }, Xa = (e) => (e.remotePage = !1, ia(e).then((t) => t.rows)), ia = (e) => {
1067
+ }, Za = (e) => (e.remotePage = !1, la(e).then((t) => t.rows)), la = (e) => {
1068
1068
  e.gridQuery || (e.gridQuery = {});
1069
1069
  const t = e.remotePage ? "find" : "list";
1070
- return He(e, {
1070
+ return Ve(e, {
1071
1071
  urlKey: t,
1072
1072
  url: e.gridUrl,
1073
1073
  params: e.gridQuery,
@@ -1089,7 +1089,7 @@ const Qa = (e) => {
1089
1089
  rows: []
1090
1090
  };
1091
1091
  });
1092
- }, Za = (e, t, a = {}) => ea(e, {
1092
+ }, et = (e, t, a = {}) => aa(e, {
1093
1093
  urlKey: "update",
1094
1094
  url: e.updateUrl,
1095
1095
  params: {
@@ -1100,37 +1100,37 @@ const Qa = (e) => {
1100
1100
  ...a
1101
1101
  }).then((s) => ((s == null ? void 0 : s.status) === T.SUCCESS && setTimeout(() => {
1102
1102
  e.reload.value = !0, e.afterUpdate && e.afterUpdate(t);
1103
- }, 50), s)), Jt = (e, t) => {
1103
+ }, 50), s)), jt = (e, t) => {
1104
1104
  const a = {};
1105
- return a[e.primaryKey] = t[e.primaryKey], a[e.statusKey] = t[e.statusKey], Za(e, a, {
1105
+ return a[e.primaryKey] = t[e.primaryKey], a[e.statusKey] = t[e.statusKey], et(e, a, {
1106
1106
  loadingText: !1,
1107
1107
  hideErrorToast: !0
1108
1108
  });
1109
- }, la = async (e, t, a) => await He(e, {
1109
+ }, ua = async (e, t, a) => await Ve(e, {
1110
1110
  urlKey: "detail",
1111
1111
  url: a,
1112
1112
  params: t,
1113
1113
  loadingState: e.isGridLoading
1114
- }), jt = (e, t) => {
1114
+ }), Gt = (e, t) => {
1115
1115
  const a = t;
1116
- return la(e, { [e.primaryKey]: a[e.primaryKey] }).then((s) => ((s == null ? void 0 : s.status) === T.SUCCESS && s.data && (e.expandRows.value[a[e.primaryKey]] = s), s));
1117
- }, Gt = (e, t) => {
1116
+ return ua(e, { [e.primaryKey]: a[e.primaryKey] }).then((s) => ((s == null ? void 0 : s.status) === T.SUCCESS && s.data && (e.expandRows.value[a[e.primaryKey]] = s), s));
1117
+ }, qt = (e, t) => {
1118
1118
  let a = e.editor;
1119
- e.rowData.value = t, a && (ta(a, t), a.visible.value = !0);
1120
- }, qt = (e, t) => _a(e, t, {
1119
+ e.rowData.value = t, a && (sa(a, t), a.visible.value = !0);
1120
+ }, Bt = (e, t) => Da(e, t, {
1121
1121
  url: e.deleteUrl,
1122
1122
  primaryKey: e.primaryKey
1123
1123
  }).then((a) => ((a == null ? void 0 : a.status) === T.SUCCESS && setTimeout(() => {
1124
1124
  e.reload.value = !0, e.afterDelete && !Array.isArray(t) && e.afterDelete(t);
1125
1125
  }, 50), a));
1126
- var Ne = /* @__PURE__ */ ((e) => (e.SelectReload = "Select.Reload", e.RadioReload = "Radio.Reload", e.CheckboxReload = "Checkbox.Reload", e.TreeSelectReload = "TreeSelect.Reload", e.TreeCheckReload = "TreeCheck.Reload", e))(Ne || {});
1127
- class et {
1126
+ var _e = /* @__PURE__ */ ((e) => (e.SelectReload = "Select.Reload", e.RadioReload = "Radio.Reload", e.CheckboxReload = "Checkbox.Reload", e.TreeSelectReload = "TreeSelect.Reload", e.TreeCheckReload = "TreeCheck.Reload", e))(_e || {});
1127
+ class at {
1128
1128
  constructor() {
1129
1129
  $(this, "listeners", {});
1130
1130
  }
1131
1131
  // 检查事件名是否符合前缀
1132
1132
  isValidPrefix(t) {
1133
- return Object.values(Ne).some((a) => t.startsWith(a + "."));
1133
+ return Object.values(_e).some((a) => t.startsWith(a + "."));
1134
1134
  }
1135
1135
  /**
1136
1136
  * 事件订阅
@@ -1139,7 +1139,7 @@ class et {
1139
1139
  */
1140
1140
  on(t, a) {
1141
1141
  if (!this.isValidPrefix(t)) {
1142
- console.error(`事件前缀不正确: ${t}, 事件名必须以 ${Object.values(Ne).join(", ")} 开头`);
1142
+ console.error(`事件前缀不正确: ${t}, 事件名必须以 ${Object.values(_e).join(", ")} 开头`);
1143
1143
  return;
1144
1144
  }
1145
1145
  this.listeners[t] || (this.listeners[t] = []), this.listeners[t].push(a);
@@ -1170,51 +1170,51 @@ class et {
1170
1170
  this.listeners[t] && this.listeners[t].forEach((s) => s(t, ...a));
1171
1171
  }
1172
1172
  }
1173
- const B = new et(), Z = (e, t, a) => {
1173
+ const B = new at(), Z = (e, t, a) => {
1174
1174
  if (t.inputFactory && (a != null && a.reloadEvent)) {
1175
1175
  const s = t.inputFactory.value;
1176
1176
  s.reloadHandler = (n, o) => {
1177
- at(t.url, t, o);
1177
+ tt(t.url, t, o);
1178
1178
  }, B.on(a.reloadEvent, s.reloadHandler);
1179
1179
  }
1180
1180
  if (a != null && a.data)
1181
1181
  I(
1182
1182
  () => a.data,
1183
1183
  () => {
1184
- je(t, a.data, !0);
1184
+ Ge(t, a.data, !0);
1185
1185
  },
1186
1186
  { deep: !0, immediate: !0 }
1187
1187
  );
1188
1188
  else if (t.url && t.url.url)
1189
- e && ua(t.url, t, t.params ?? {});
1189
+ e && ca(t.url, t, t.params ?? {});
1190
1190
  else {
1191
- const s = f(te(U.LabelText, ""));
1191
+ const s = f(te(D.LabelText, ""));
1192
1192
  x.error("`" + s.value + "` 未配置选项数据!", {
1193
1193
  duration: 5e3
1194
1194
  });
1195
1195
  }
1196
- }, je = (e, t, a) => {
1196
+ }, Ge = (e, t, a) => {
1197
1197
  if (a) {
1198
1198
  const s = {
1199
1199
  ...e.fieldMap
1200
1200
  };
1201
- t = La(s, t);
1201
+ t = $a(s, t);
1202
1202
  }
1203
1203
  t = JSON.parse(JSON.stringify(t ?? [])), e.all && t.unshift({
1204
1204
  label: "全部",
1205
1205
  value: e.allValue ?? void 0
1206
1206
  }), e.options.value = t;
1207
- }, at = (e, t, a) => {
1208
- Array.isArray(a) ? je(t, a, !0) : ua(e, t, a);
1207
+ }, tt = (e, t, a) => {
1208
+ Array.isArray(a) ? Ge(t, a, !0) : ca(e, t, a);
1209
1209
  }, pe = (e, t) => {
1210
1210
  var a;
1211
1211
  (a = e.inputFactory) != null && a.value && t.reloadEvent && e.inputFactory.value.reloadHandler && B.off(t.reloadEvent, e.inputFactory.value.reloadHandler);
1212
- }, ua = (e, t, a) => {
1212
+ }, ca = (e, t, a) => {
1213
1213
  const s = JSON.parse(JSON.stringify(e.params ?? {})), n = JSON.parse(JSON.stringify(t.params ?? {})), o = Oe(s, n, a);
1214
- tt(e, t, t.fieldMap, o).then((r) => {
1215
- je(t, r, !1);
1214
+ st(e, t, t.fieldMap, o).then((r) => {
1215
+ Ge(t, r, !1);
1216
1216
  });
1217
- }, tt = (e, t, a, s) => {
1217
+ }, st = (e, t, a, s) => {
1218
1218
  const { fieldMap: n, ...o } = e, l = {
1219
1219
  ...{
1220
1220
  url: "",
@@ -1229,7 +1229,7 @@ const B = new et(), Z = (e, t, a) => {
1229
1229
  return l.loadingText = !1, s || (s = {}), s.Query || (s.Query = {}), t.optionQuery = s, t.isOptionLoading.value = !0, G(l, s).then((i) => (i == null ? void 0 : i.status) === T.SUCCESS && i.data ? i.data : []).finally(() => {
1230
1230
  t.isOptionLoading.value = !1;
1231
1231
  });
1232
- }, st = (e, t, a) => {
1232
+ }, nt = (e, t, a) => {
1233
1233
  if (e === void 0) return;
1234
1234
  const s = (o) => {
1235
1235
  const r = { ...o };
@@ -1257,7 +1257,7 @@ const B = new et(), Z = (e, t, a) => {
1257
1257
  n[r] || (n[r] = {}), n = n[r];
1258
1258
  }
1259
1259
  n[s[s.length - 1]] = a;
1260
- }, ca = (e, t, a) => {
1260
+ }, fa = (e, t, a) => {
1261
1261
  if (a == null) {
1262
1262
  Object.entries(t).forEach(([s]) => {
1263
1263
  ae(e, s, a);
@@ -1290,8 +1290,8 @@ const B = new et(), Z = (e, t, a) => {
1290
1290
  var o, r;
1291
1291
  const s = (o = e.inputFactory) == null ? void 0 : o.value;
1292
1292
  s != null && s.editorCtrl && ((r = s.errInfo) != null && r.value.errClass) && fe(s.editorCtrl), e.selected.value = a;
1293
- const n = st(a, e.options.value);
1294
- if (e.selectedOptions.value = n, t.formData && t.outFields && ca(t.formData, t.outFields, n), t.changeEvent) {
1293
+ const n = nt(a, e.options.value);
1294
+ if (e.selectedOptions.value = n, t.formData && t.outFields && fa(t.formData, t.outFields, n), t.changeEvent) {
1295
1295
  const [l, i] = t.changeEvent;
1296
1296
  if (i)
1297
1297
  if (Array.isArray(l))
@@ -1357,7 +1357,7 @@ const B = new et(), Z = (e, t, a) => {
1357
1357
  value: "Id"
1358
1358
  }
1359
1359
  }
1360
- }, Bt = (e) => {
1360
+ }, Ct = (e) => {
1361
1361
  y.PageOption = {
1362
1362
  ...y.PageOption,
1363
1363
  ...e.pageOption
@@ -1371,7 +1371,10 @@ const B = new et(), Z = (e, t, a) => {
1371
1371
  ...y.TreeOption,
1372
1372
  ...e.treeOption
1373
1373
  };
1374
- }, nt = (e, t, a, s) => ({
1374
+ }, ke = (e) => {
1375
+ for (let t in e.urls)
1376
+ e.urls[t].api || (e.urls[t].api = e.api), e.urls[t].authorize || (e.urls[t].authorize = e.authorize);
1377
+ }, rt = (e, t, a, s) => (ke(e), {
1375
1378
  editorCtrl: {
1376
1379
  ...y.EditorOption,
1377
1380
  name: "",
@@ -1387,7 +1390,8 @@ const B = new et(), Z = (e, t, a) => {
1387
1390
  isFormSaving: f(!1),
1388
1391
  isFormLoading: f(!1)
1389
1392
  }
1390
- }), rt = (e, t, a) => {
1393
+ }), ot = (e, t, a) => {
1394
+ ke(e);
1391
1395
  const s = {
1392
1396
  ...y.GridOption,
1393
1397
  tableSize: f(y.GridOption.tableSize.value),
@@ -1420,12 +1424,13 @@ const B = new et(), Z = (e, t, a) => {
1420
1424
  (n) => {
1421
1425
  n && (setTimeout(() => {
1422
1426
  s.reload.value = !1;
1423
- }, 1), s.remotePage ? ia(s) : Xa(s));
1427
+ }, 1), s.remotePage ? la(s) : Za(s));
1424
1428
  }
1425
1429
  ), {
1426
1430
  gridCtrl: s
1427
1431
  };
1428
- }, Ct = (e, t) => {
1432
+ }, zt = (e, t) => {
1433
+ ke(e);
1429
1434
  const a = {
1430
1435
  ...y.TreeOption,
1431
1436
  reload: f(!1),
@@ -1467,25 +1472,24 @@ const B = new et(), Z = (e, t, a) => {
1467
1472
  ), {
1468
1473
  optionCtrl: a
1469
1474
  };
1470
- }, zt = (e, t, a) => {
1471
- for (const r in e.urls)
1472
- e.urls[r] && (e.urls[r].api || (e.urls[r].api = e.api), e.urls[r].authorize === void 0 && (e.urls[r].authorize = e.authorize));
1475
+ }, Wt = (e, t, a) => {
1476
+ ke(e);
1473
1477
  const s = {
1474
1478
  ...y.PageOption,
1475
1479
  ...e
1476
- }, { editorCtrl: n } = nt(e, s, t, a), { gridCtrl: o } = rt(e, s);
1480
+ }, { editorCtrl: n } = rt(e, s, t, a), { gridCtrl: o } = ot(e, s);
1477
1481
  return s.editor = n, s.grid = o, o.editor = n, o.tools = ["Reload", "RowHeight", "TableHeadset", "Fullscreen"], n.grid = o, {
1478
1482
  pageCtrl: s,
1479
1483
  editorCtrl: n,
1480
1484
  gridCtrl: o
1481
1485
  };
1482
- }, ot = 7 * 24 * 60 * 60 * 1e3, Me = /* @__PURE__ */ new Map(), We = /* @__PURE__ */ new Set(), J = f({}), Wt = J, Yt = (e) => {
1486
+ }, it = 7 * 24 * 60 * 60 * 1e3, Ne = /* @__PURE__ */ new Map(), Ye = /* @__PURE__ */ new Set(), J = f({}), Yt = J, Xt = (e) => {
1483
1487
  var n;
1484
- if (!e.iconUrl) return _e;
1488
+ if (!e.iconUrl) return De;
1485
1489
  const t = f(!0), a = f("");
1486
1490
  let s = !0;
1487
- return (n = e.icons) != null && n.length && (s = e.icons.every((o) => J.value[o] !== void 0)), (e.icon && !J.value[e.icon] || !s) && it(e, t).then(() => {
1488
- ct(e.iconUrl, e.monoColor || !1), t.value = !0;
1491
+ return (n = e.icons) != null && n.length && (s = e.icons.every((o) => J.value[o] !== void 0)), (e.icon && !J.value[e.icon] || !s) && lt(e, t).then(() => {
1492
+ ft(e.iconUrl, e.monoColor || !1), t.value = !0;
1489
1493
  }), X({
1490
1494
  props: {
1491
1495
  icon: {
@@ -1543,36 +1547,36 @@ const B = new et(), Z = (e, t, a) => {
1543
1547
  },
1544
1548
  render() {
1545
1549
  if (!t.value)
1546
- return _e;
1550
+ return De;
1547
1551
  let o = this.class, r = "";
1548
1552
  Array.isArray(o) ? r = o.join(" ") : typeof o == "string" && (r = o);
1549
1553
  let l = [r];
1550
- return !/\bw-/.test(r) && !/$w-/.test(r) && l.push("w-4"), !/\bh-/.test(r) && !/$h-/.test(r) && l.push("h-4"), a.value ? D(Xe(a.value), {
1554
+ return !/\bw-/.test(r) && !/$w-/.test(r) && l.push("w-4"), !/\bh-/.test(r) && !/$h-/.test(r) && l.push("h-4"), a.value ? U(Ze(a.value), {
1551
1555
  onClick: this.$props.clickable ? this.handleClick : void 0,
1552
1556
  class: `${l.join(" ")}`,
1553
1557
  style: {
1554
1558
  fill: "currentColor",
1555
1559
  cursor: this.$props.clickable ? "pointer" : "default",
1556
- transform: pt(this.angle, this.flip)
1560
+ transform: dt(this.angle, this.flip)
1557
1561
  }
1558
- }) : D("div", { class: "w-[14px] h-[14px]" });
1562
+ }) : U("div", { class: "w-[14px] h-[14px]" });
1559
1563
  }
1560
1564
  });
1561
- }, it = (e, t) => {
1565
+ }, lt = (e, t) => {
1562
1566
  let a = e.iconUrl;
1563
1567
  if (!a)
1564
1568
  return console.error("图标库地址不能为空"), Promise.resolve();
1565
- if (Me.has(a))
1569
+ if (Ne.has(a))
1566
1570
  return Promise.resolve();
1567
- const s = pa(a);
1571
+ const s = da(a);
1568
1572
  if (s)
1569
- return new Promise(async (o) => (fa(s.scriptContent), o()));
1573
+ return new Promise(async (o) => (pa(s.scriptContent), o()));
1570
1574
  t.value = !1;
1571
1575
  const n = new Promise(async (o) => {
1572
- await lt(a, e.monoColor || !1), o(), Me.delete(a);
1576
+ await ut(a, e.monoColor || !1), o(), Ne.delete(a);
1573
1577
  });
1574
- return Me.set(a, n), n;
1575
- }, lt = async (e, t) => {
1578
+ return Ne.set(a, n), n;
1579
+ }, ut = async (e, t) => {
1576
1580
  try {
1577
1581
  const a = await fetch(e);
1578
1582
  if (!a.ok) {
@@ -1585,27 +1589,27 @@ const B = new et(), Z = (e, t, a) => {
1585
1589
  const o = s.match(n);
1586
1590
  if (o && o.length > 1) {
1587
1591
  let r = o[1];
1588
- ut(e, r, t, s);
1592
+ ct(e, r, t, s);
1589
1593
  }
1590
- fa(s);
1594
+ pa(s);
1591
1595
  return;
1592
1596
  } catch (a) {
1593
1597
  return console.error("网络异常,无法加载图标库:", a), null;
1594
1598
  }
1595
- }, fa = (e) => {
1599
+ }, pa = (e) => {
1596
1600
  const t = document.createElement("script");
1597
1601
  t.textContent = e, document.head.appendChild(t);
1598
- }, ut = (e, t, a, s) => {
1602
+ }, ct = (e, t, a, s) => {
1599
1603
  let n = `icon_cache:${e}`;
1600
1604
  const o = {
1601
1605
  windowKey: t,
1602
1606
  monoColor: a,
1603
1607
  scriptContent: s,
1604
- expireTime: Date.now() + ot
1608
+ expireTime: Date.now() + it
1605
1609
  // 缓存时间:7天
1606
1610
  };
1607
1611
  localStorage.setItem(n, JSON.stringify(o));
1608
- }, pa = (e) => {
1612
+ }, da = (e) => {
1609
1613
  let t = `icon_cache:${e}`;
1610
1614
  const a = localStorage.getItem(t);
1611
1615
  if (!a) return null;
@@ -1616,7 +1620,7 @@ const B = new et(), Z = (e, t, a) => {
1616
1620
  return console.error("解析缓存失败:", n), null;
1617
1621
  }
1618
1622
  return s.expireTime < Date.now() ? (localStorage.removeItem(e), null) : s;
1619
- }, Xt = () => {
1623
+ }, Zt = () => {
1620
1624
  const e = Date.now();
1621
1625
  for (const t in localStorage)
1622
1626
  if (t.startsWith("icon_cache:")) {
@@ -1627,11 +1631,11 @@ const B = new et(), Z = (e, t, a) => {
1627
1631
  setTimeout(() => {
1628
1632
  t.value = a, t.value && (e.value = J.value[t.value]);
1629
1633
  }, 1);
1630
- }, _e = D(
1634
+ }, De = U(
1631
1635
  "svg",
1632
1636
  { class: "w-4 h-4", viewBox: "0 0 50 50", style: { animation: "rotate 2s linear infinite" } },
1633
1637
  [
1634
- D("circle", {
1638
+ U("circle", {
1635
1639
  cx: "25",
1636
1640
  cy: "25",
1637
1641
  r: "20",
@@ -1640,32 +1644,32 @@ const B = new et(), Z = (e, t, a) => {
1640
1644
  style: { strokeWidth: "3 !important" }
1641
1645
  // 强制应用线宽
1642
1646
  }),
1643
- D("circle", {
1647
+ U("circle", {
1644
1648
  cx: "25",
1645
1649
  cy: "6",
1646
1650
  r: "6",
1647
1651
  fill: "currentColor"
1648
1652
  })
1649
1653
  ]
1650
- ), ct = (e, t) => {
1651
- const a = pa(e);
1654
+ ), ft = (e, t) => {
1655
+ const a = da(e);
1652
1656
  Object.keys(window).forEach((s) => {
1653
- s.startsWith("_iconfont_svg_string_") && (a == null ? void 0 : a.windowKey) === s && !We.has(s) && (We.add(s), ft(s, t));
1657
+ s.startsWith("_iconfont_svg_string_") && (a == null ? void 0 : a.windowKey) === s && !Ye.has(s) && (Ye.add(s), pt(s, t));
1654
1658
  });
1655
- }, ft = (e, t) => {
1659
+ }, pt = (e, t) => {
1656
1660
  const a = window[e], o = new DOMParser().parseFromString(a, "image/svg+xml").getElementsByTagName("symbol"), r = document.querySelectorAll("symbol");
1657
1661
  for (const l of o) {
1658
1662
  const i = l.id, u = Array.from(r).find((c) => c.id === i);
1659
1663
  u && t && (u.innerHTML = l.innerHTML, u.querySelectorAll("*").forEach((c) => {
1660
1664
  c.hasAttribute("fill") && c.removeAttribute("fill");
1661
- })), J.value[i] || (J.value[i] = D("svg", { fill: "currentColor" }, [D("use", { "xlink:href": `#${i}` })]));
1665
+ })), J.value[i] || (J.value[i] = U("svg", { fill: "currentColor" }, [U("use", { "xlink:href": `#${i}` })]));
1662
1666
  }
1663
- }, pt = (e, t) => {
1667
+ }, dt = (e, t) => {
1664
1668
  let a = "";
1665
1669
  return e && (a += `rotate(${e}deg)`), t && (a += " scaleX(-1)"), a;
1666
- }, Zt = (e, t, a, s) => {
1667
- da(e, [], a, s).forEach((o) => t.push(o));
1668
- }, da = (e, t, a, s) => {
1670
+ }, es = (e, t, a, s) => {
1671
+ ha(e, [], a, s).forEach((o) => t.push(o));
1672
+ }, ha = (e, t, a, s) => {
1669
1673
  var r, l, i, u, c;
1670
1674
  const n = [], o = j();
1671
1675
  for (const p of e) {
@@ -1673,20 +1677,20 @@ const B = new et(), Z = (e, t, a) => {
1673
1677
  continue;
1674
1678
  const m = p.path.split("/");
1675
1679
  m.unshift(...t);
1676
- const d = da(p.children || [], m, a, s), A = {
1680
+ const d = ha(p.children || [], m, a, s), A = {
1677
1681
  key: m.join("/"),
1678
1682
  label: ((u = p.name) == null ? void 0 : u.toString()) ?? "",
1679
1683
  title: ((c = p.name) == null ? void 0 : c.toString()) ?? "",
1680
- icon: p.icon ? D(a, { ...s, icon: p.icon }) : void 0,
1684
+ icon: p.icon ? U(a, { ...s, icon: p.icon }) : void 0,
1681
1685
  children: d.length > 0 ? d : void 0
1682
1686
  };
1683
1687
  (d.length > 0 || !p.children) && n.push(A);
1684
1688
  }
1685
1689
  return n;
1686
- }, Ye = ga([]), es = () => {
1687
- Ye.length = 0;
1690
+ }, Xe = ya([]), as = () => {
1691
+ Xe.length = 0;
1688
1692
  const e = H();
1689
- let a = Qe().TabActive;
1693
+ let a = Je().TabActive;
1690
1694
  e.matchedRoutes(a).forEach((n, o) => {
1691
1695
  var l;
1692
1696
  const r = {
@@ -1694,9 +1698,9 @@ const B = new et(), Z = (e, t, a) => {
1694
1698
  path: n.path,
1695
1699
  breadcrumbName: ((l = n.name) == null ? void 0 : l.toString()) ?? ""
1696
1700
  };
1697
- Ye.push(r);
1701
+ Xe.push(r);
1698
1702
  });
1699
- }, dt = {
1703
+ }, ht = {
1700
1704
  host: {
1701
1705
  api: "SITEHOST_API",
1702
1706
  url: "/openapi/RCSiteHostSrv/get",
@@ -1708,7 +1712,7 @@ const B = new et(), Z = (e, t, a) => {
1708
1712
  // 不显示错误
1709
1713
  hideErrorToast: !0
1710
1714
  }
1711
- }, as = ue("hostInfo", {
1715
+ }, ts = ue("hostInfo", {
1712
1716
  state: () => ({
1713
1717
  hostInfo: {
1714
1718
  Host: "",
@@ -1732,9 +1736,9 @@ const B = new et(), Z = (e, t, a) => {
1732
1736
  return;
1733
1737
  }
1734
1738
  return new Promise((s) => {
1735
- Le.SITEHOST_API || (Le.SITEHOST_API = e);
1739
+ $e.SITEHOST_API || ($e.SITEHOST_API = e);
1736
1740
  const n = t || window.location.origin;
1737
- G(dt.host, {
1741
+ G(ht.host, {
1738
1742
  Query: {
1739
1743
  Host: n
1740
1744
  }
@@ -1755,9 +1759,9 @@ const B = new et(), Z = (e, t, a) => {
1755
1759
  ...this.hostInfo,
1756
1760
  ...e
1757
1761
  }, this.hostInfo.API_HOST)
1758
- for (const t in this.hostInfo.API_HOST) Le[t] = this.hostInfo.API_HOST[t];
1762
+ for (const t in this.hostInfo.API_HOST) $e[t] = this.hostInfo.API_HOST[t];
1759
1763
  if (this.hostInfo.SERVER_HOST)
1760
- for (const t in this.hostInfo.SERVER_HOST) $a[t] = this.hostInfo.SERVER_HOST[t];
1764
+ for (const t in this.hostInfo.SERVER_HOST) Fa[t] = this.hostInfo.SERVER_HOST[t];
1761
1765
  },
1762
1766
  getHostInfo() {
1763
1767
  return this.hostInfo;
@@ -1770,7 +1774,7 @@ const B = new et(), Z = (e, t, a) => {
1770
1774
  // storage: localStorage,
1771
1775
  // pick: ['hostInfo'],
1772
1776
  // },
1773
- }), ts = ue("settingInfo", {
1777
+ }), ss = ue("settingInfo", {
1774
1778
  state: () => ({
1775
1779
  fullscreen: !1,
1776
1780
  menuCollapse: !1,
@@ -1812,7 +1816,7 @@ const B = new et(), Z = (e, t, a) => {
1812
1816
  }
1813
1817
  },
1814
1818
  persist: !1
1815
- }), ss = /* @__PURE__ */ X({
1819
+ }), ns = /* @__PURE__ */ X({
1816
1820
  __name: "index",
1817
1821
  props: {
1818
1822
  ...ce,
@@ -1849,7 +1853,7 @@ const B = new et(), Z = (e, t, a) => {
1849
1853
  o && pe(o, a);
1850
1854
  }), (p, m) => {
1851
1855
  var d;
1852
- return r.value.length === 2 ? (O(), xe(b(ba), le({
1856
+ return r.value.length === 2 ? (O(), xe(b(Sa), le({
1853
1857
  key: 0,
1854
1858
  class: [
1855
1859
  ((d = b(u)) == null ? void 0 : d.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : "",
@@ -1864,7 +1868,7 @@ const B = new et(), Z = (e, t, a) => {
1864
1868
  }, p.$attrs), null, 16, ["class", "checkedChildren", "checkedValue", "unCheckedChildren", "unCheckedValue"])) : C("", !0);
1865
1869
  };
1866
1870
  }
1867
- }), ns = /* @__PURE__ */ X({
1871
+ }), rs = /* @__PURE__ */ X({
1868
1872
  inheritAttrs: !1,
1869
1873
  __name: "index",
1870
1874
  props: {
@@ -1901,7 +1905,7 @@ const B = new et(), Z = (e, t, a) => {
1901
1905
  ), I(
1902
1906
  () => l.value,
1903
1907
  (g) => {
1904
- a.autoClean && a.formData && a.outFields && g !== a.value && ca(a.formData, a.outFields, null);
1908
+ a.autoClean && a.formData && a.outFields && g !== a.value && fa(a.formData, a.outFields, null);
1905
1909
  }
1906
1910
  );
1907
1911
  const { editorCtrl: i, errInfo: u, labelText: c } = n, p = t;
@@ -1933,7 +1937,7 @@ const B = new et(), Z = (e, t, a) => {
1933
1937
  }), (g, E) => {
1934
1938
  var h;
1935
1939
  return O(), L("div", null, [
1936
- z(b(Sa), le({
1940
+ z(b(Ia), le({
1937
1941
  value: l.value,
1938
1942
  "onUpdate:value": E[0] || (E[0] = (S) => l.value = S),
1939
1943
  class: ["w-full", (h = b(u)) == null ? void 0 : h.errClass],
@@ -1945,7 +1949,7 @@ const B = new et(), Z = (e, t, a) => {
1945
1949
  Ee(W(S), 1)
1946
1950
  ]),
1947
1951
  default: V(() => [
1948
- z(b(Ia), {
1952
+ z(b(xa), {
1949
1953
  "allow-clear": "",
1950
1954
  placeholder: "请输入并选择" + b(c)
1951
1955
  }, null, 8, ["placeholder"])
@@ -1955,10 +1959,10 @@ const B = new et(), Z = (e, t, a) => {
1955
1959
  ]);
1956
1960
  };
1957
1961
  }
1958
- }), ht = { class: "min-h-[32px] pt-[5px]" }, mt = {
1962
+ }), mt = { class: "min-h-[32px] pt-[5px]" }, vt = {
1959
1963
  key: 1,
1960
1964
  class: "text-center text-gray-500"
1961
- }, rs = /* @__PURE__ */ X({
1965
+ }, os = /* @__PURE__ */ X({
1962
1966
  inheritAttrs: !1,
1963
1967
  __name: "index",
1964
1968
  props: {
@@ -2011,19 +2015,19 @@ const B = new et(), Z = (e, t, a) => {
2011
2015
  }), r && Z(r.autoload, r, a);
2012
2016
  }), ie(() => {
2013
2017
  r && pe(r, a);
2014
- }), (g, E) => (O(), L("div", ht, [
2015
- z(b(xa), le({
2018
+ }), (g, E) => (O(), L("div", mt, [
2019
+ z(b(Aa), le({
2016
2020
  onChange: p,
2017
2021
  class: "w-full mb-[-3px]"
2018
2022
  }, b(s)), {
2019
2023
  default: V(() => [
2020
2024
  c.value.length > 0 ? (O(!0), L(ne, { key: 0 }, Ue(c.value, (h) => {
2021
2025
  var S;
2022
- return O(), xe(b(Aa), {
2026
+ return O(), xe(b(Ea), {
2023
2027
  key: h.value,
2024
2028
  value: h.value,
2025
2029
  disabled: h.disabled || h.value && e.disabledItems && e.disabledItems.indexOf(h.value.toString()) > -1,
2026
- class: Ze([
2030
+ class: ea([
2027
2031
  ((S = b(i)) == null ? void 0 : S.errClass) === "error" ? "error !text-red-400" : "",
2028
2032
  "text-nowrap",
2029
2033
  "pb-1",
@@ -2035,16 +2039,16 @@ const B = new et(), Z = (e, t, a) => {
2035
2039
  ]),
2036
2040
  _: 2
2037
2041
  }, 1032, ["value", "disabled", "class"]);
2038
- }), 128)) : e.nodata ? (O(), L("div", mt, W(e.nodata), 1)) : C("", !0)
2042
+ }), 128)) : e.nodata ? (O(), L("div", vt, W(e.nodata), 1)) : C("", !0)
2039
2043
  ]),
2040
2044
  _: 1
2041
2045
  }, 16)
2042
2046
  ]));
2043
2047
  }
2044
- }), vt = { class: "min-h-[32px] pt-1" }, gt = {
2048
+ }), gt = { class: "min-h-[32px] pt-1" }, yt = {
2045
2049
  key: 1,
2046
2050
  class: "text-center text-gray-500"
2047
- }, os = /* @__PURE__ */ X({
2051
+ }, is = /* @__PURE__ */ X({
2048
2052
  inheritAttrs: !1,
2049
2053
  __name: "index",
2050
2054
  props: {
@@ -2106,8 +2110,8 @@ const B = new et(), Z = (e, t, a) => {
2106
2110
  }), r && Z(r.autoload, r, a);
2107
2111
  }), ie(() => {
2108
2112
  r && pe(r, a);
2109
- }), (h, S) => (O(), L("div", vt, [
2110
- z(b(Ea), le({
2113
+ }), (h, S) => (O(), L("div", gt, [
2114
+ z(b(Oa), le({
2111
2115
  value: i.value,
2112
2116
  "onUpdate:value": S[0] || (S[0] = (R) => i.value = R),
2113
2117
  autocheck: !1,
@@ -2120,11 +2124,11 @@ const B = new et(), Z = (e, t, a) => {
2120
2124
  return O(), L(ne, {
2121
2125
  key: R.value
2122
2126
  }, [
2123
- R.visible !== !1 ? (O(), xe(b(Oa), {
2127
+ R.visible !== !1 ? (O(), xe(b(Ra), {
2124
2128
  key: 0,
2125
2129
  checked: m(R.value, a.value),
2126
2130
  value: R.value,
2127
- class: Ze([
2131
+ class: ea([
2128
2132
  ((Q = b(u)) == null ? void 0 : Q.errClass) === "error" ? "error !text-red-400" : "",
2129
2133
  "text-nowrap",
2130
2134
  "pb-1",
@@ -2137,16 +2141,16 @@ const B = new et(), Z = (e, t, a) => {
2137
2141
  _: 2
2138
2142
  }, 1032, ["checked", "value", "class"])) : C("", !0)
2139
2143
  ], 64);
2140
- }), 128)) : e.nodata ? (O(), L("div", gt, W(e.nodata), 1)) : C("", !0)
2144
+ }), 128)) : e.nodata ? (O(), L("div", yt, W(e.nodata), 1)) : C("", !0)
2141
2145
  ]),
2142
2146
  _: 1
2143
2147
  }, 16, ["value"])
2144
2148
  ]));
2145
2149
  }
2146
- }), yt = {
2150
+ }), bt = {
2147
2151
  key: 0,
2148
2152
  class: "absolute z-10 mt-[5px] mr-[10px] text-[#999] flex items-center"
2149
- }, is = /* @__PURE__ */ X({
2153
+ }, ls = /* @__PURE__ */ X({
2150
2154
  inheritAttrs: !1,
2151
2155
  __name: "index",
2152
2156
  props: {
@@ -2239,14 +2243,14 @@ const B = new et(), Z = (e, t, a) => {
2239
2243
  }), ie(() => {
2240
2244
  i && pe(i, a);
2241
2245
  }), (v, M) => {
2242
- var N, Ge, qe;
2246
+ var N, qe, Be;
2243
2247
  return O(), L("div", null, [
2244
- (Ge = (N = b(i)) == null ? void 0 : N.url) != null && Ge.loading ? (O(), L("div", yt, [
2245
- z(b(_e), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
2246
- M[1] || (M[1] = ya("span", null, "数据加载中...", -1))
2248
+ (qe = (N = b(i)) == null ? void 0 : N.url) != null && qe.loading ? (O(), L("div", bt, [
2249
+ z(b(De), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
2250
+ M[1] || (M[1] = ba("span", null, "数据加载中...", -1))
2247
2251
  ])) : C("", !0),
2248
- z(b(Ra), le({
2249
- class: [(qe = b(o)) == null ? void 0 : qe.errClass, "w-full"],
2252
+ z(b(Ta), le({
2253
+ class: [(Be = b(o)) == null ? void 0 : Be.errClass, "w-full"],
2250
2254
  value: d.value,
2251
2255
  "onUpdate:value": M[0] || (M[0] = (q) => d.value = q),
2252
2256
  "allow-clear": !0,
@@ -2258,7 +2262,7 @@ const B = new et(), Z = (e, t, a) => {
2258
2262
  (O(!0), L(ne, null, Ue(E.value, (q) => (O(), L(ne, {
2259
2263
  key: q.value
2260
2264
  }, [
2261
- q.visible !== !1 ? (O(), xe(b(Ta), {
2265
+ q.visible !== !1 ? (O(), xe(b(wa), {
2262
2266
  key: 0,
2263
2267
  value: q.value
2264
2268
  }, {
@@ -2276,66 +2280,66 @@ const B = new et(), Z = (e, t, a) => {
2276
2280
  }
2277
2281
  });
2278
2282
  export {
2279
- Mt as $,
2283
+ Nt as $,
2280
2284
  fe as A,
2281
- rs as B,
2282
- os as C,
2283
- is as D,
2284
- He as E,
2285
- Na as F,
2286
- Bt as G,
2287
- nt as H,
2288
- rt as I,
2289
- Ct as J,
2290
- zt as K,
2291
- st as L,
2292
- ca as M,
2293
- Wt as N,
2285
+ os as B,
2286
+ is as C,
2287
+ ls as D,
2288
+ Ve as E,
2289
+ _a as F,
2290
+ Ct as G,
2291
+ rt as H,
2292
+ ot as I,
2293
+ zt as J,
2294
+ Wt as K,
2295
+ nt as L,
2296
+ fa as M,
2297
+ Yt as N,
2294
2298
  F as O,
2295
- U as P,
2296
- Xt as Q,
2297
- ft as R,
2298
- pt as S,
2299
- Zt as T,
2300
- Ye as U,
2301
- es as V,
2302
- aa as W,
2303
- Ht as X,
2304
- ta as Y,
2305
- $t as Z,
2306
- ss as _,
2307
- ts as a,
2308
- Ve as a0,
2309
- Ft as a1,
2310
- Qt as a2,
2311
- Za as a3,
2312
- la as a4,
2313
- jt as a5,
2314
- Lt as a6,
2315
- ea as a7,
2316
- _a as a8,
2317
- Ne as a9,
2299
+ D as P,
2300
+ Zt as Q,
2301
+ pt as R,
2302
+ dt as S,
2303
+ es as T,
2304
+ Xe as U,
2305
+ as as V,
2306
+ ta as W,
2307
+ Vt as X,
2308
+ sa as Y,
2309
+ Ft as Z,
2310
+ ns as _,
2311
+ ss as a,
2312
+ Ke as a0,
2313
+ Mt as a1,
2314
+ Jt as a2,
2315
+ et as a3,
2316
+ ua as a4,
2317
+ Gt as a5,
2318
+ $t as a6,
2319
+ aa as a7,
2320
+ Da as a8,
2321
+ _e as a9,
2318
2322
  B as aa,
2319
2323
  se as ab,
2320
2324
  ve as ac,
2321
2325
  H as ad,
2322
- as as ae,
2323
- Qe as af,
2326
+ ts as ae,
2327
+ Je as af,
2324
2328
  re as ag,
2325
2329
  Ut as b,
2326
- Yt as c,
2327
- Dt as d,
2328
- Nt as e,
2329
- Gt as f,
2330
- qt as g,
2331
- Kt as h,
2330
+ Xt as c,
2331
+ Ht as d,
2332
+ _t as e,
2333
+ qt as f,
2334
+ Bt as g,
2335
+ Qt as h,
2332
2336
  P as i,
2333
- Vt as j,
2334
- ia as k,
2335
- Xa as l,
2336
- Jt as m,
2337
- ns as n,
2338
- _t as o,
2337
+ Kt as j,
2338
+ la as k,
2339
+ Za as l,
2340
+ jt as m,
2341
+ rs as n,
2342
+ Dt as o,
2339
2343
  ce as p,
2340
2344
  Ua as q,
2341
2345
  oe as r,
@@ -2344,7 +2348,7 @@ export {
2344
2348
  j as u,
2345
2349
  Z as v,
2346
2350
  pe as w,
2347
- _e as x,
2351
+ De as x,
2348
2352
  Pe as y,
2349
2353
  we as z
2350
2354
  };