@vancone/console-component 0.1.1-beta.56 → 0.1.1-beta.57

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,13 +1,13 @@
1
1
  var wo = Object.defineProperty, So = Object.defineProperties;
2
2
  var Co = Object.getOwnPropertyDescriptors;
3
- var Ot = Object.getOwnPropertySymbols;
3
+ var $t = Object.getOwnPropertySymbols;
4
4
  var ko = Object.prototype.hasOwnProperty, xo = Object.prototype.propertyIsEnumerable;
5
- var $t = (e, t, o) => t in e ? wo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o, ot = (e, t) => {
5
+ var Ot = (e, t, o) => t in e ? wo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o, ot = (e, t) => {
6
6
  for (var o in t || (t = {}))
7
- ko.call(t, o) && $t(e, o, t[o]);
8
- if (Ot)
9
- for (var o of Ot(t))
10
- xo.call(t, o) && $t(e, o, t[o]);
7
+ ko.call(t, o) && Ot(e, o, t[o]);
8
+ if ($t)
9
+ for (var o of $t(t))
10
+ xo.call(t, o) && Ot(e, o, t[o]);
11
11
  return e;
12
12
  }, Et = (e, t) => So(e, Co(t));
13
13
  var xe = (e, t, o) => new Promise((n, s) => {
@@ -26,7 +26,7 @@ var xe = (e, t, o) => new Promise((n, s) => {
26
26
  }, a = (i) => i.done ? n(i.value) : Promise.resolve(i.value).then(r, l);
27
27
  a((o = o.apply(e, t)).next());
28
28
  });
29
- import { openBlock as f, createElementBlock as V, createElementVNode as w, defineComponent as Ce, reactive as me, resolveComponent as k, createVNode as g, withCtx as m, unref as C, Fragment as ce, renderList as ge, toDisplayString as G, normalizeStyle as je, ref as T, onMounted as Gt, createBlock as E, createTextVNode as Q, createCommentVNode as L, nextTick as Ye, resolveDynamicComponent as it, effectScope as jt, markRaw as Te, toRaw as Je, hasInjectionContext as Oo, inject as $o, getCurrentInstance as Eo, watch as $e, isRef as Ke, isReactive as yt, toRef as ft, computed as Ie, getCurrentScope as Po, onScopeDispose as Io, toRefs as Pt, createStaticVNode as Vo, normalizeClass as zt, resolveDirective as qt, withDirectives as Bt } from "vue";
29
+ import { openBlock as f, createElementBlock as V, createElementVNode as w, defineComponent as Ce, reactive as me, resolveComponent as k, createVNode as g, withCtx as m, unref as C, Fragment as ce, renderList as ge, toDisplayString as G, normalizeStyle as je, ref as T, onMounted as Gt, createBlock as E, createTextVNode as Q, createCommentVNode as L, nextTick as Ye, resolveDynamicComponent as it, effectScope as jt, markRaw as Te, toRaw as Je, hasInjectionContext as $o, inject as Oo, getCurrentInstance as Eo, watch as Oe, isRef as Ke, isReactive as yt, toRef as ft, computed as Ie, getCurrentScope as Po, onScopeDispose as Io, toRefs as Pt, createStaticVNode as Vo, normalizeClass as zt, resolveDirective as qt, withDirectives as Bt } from "vue";
30
30
  import { useRoute as Xe, useRouter as pt } from "vue-router";
31
31
  import No from "axios";
32
32
  import { ElMessage as mt, ElMessageBox as It } from "element-plus";
@@ -340,20 +340,20 @@ function kn(e, t) {
340
340
  w("path", { d: "M358.4 871.2H45.152C19.936 871.2 0 843.904 0 819.2s19.936-50.624 45.152-50.624h56.64l-1.088-283.168c0-204.608 164.032-374.56 337.056-412.576v-1.28C437.76 32.032 470.496 0 510.848 0s73.088 32.032 73.088 71.552v1.28C756.96 110.848 922.08 280.8 922.08 485.408v283.168h55.008c25.216 0 46.944 25.92 46.944 50.624s-21.696 52-46.944 52H665.632c-.416 84.48-69.024 152.8-153.6 152.8s-153.184-68.352-153.6-152.8zm102.4 0c.416 27.904 23.168 50.4 51.2 50.4s50.784-22.496 51.2-50.4zm357.216-103.328v-282.56c0-179.808-149.536-329.984-307.104-329.984S204.544 305.472 204.544 485.312v282.56z" }, null, -1)
341
341
  ]));
342
342
  }
343
- const xn = { render: kn }, On = {
343
+ const xn = { render: kn }, $n = {
344
344
  xmlns: "http://www.w3.org/2000/svg",
345
345
  "xml:space": "preserve",
346
346
  viewBox: "0 0 32 32"
347
347
  };
348
- function $n(e, t) {
349
- return f(), V("svg", On, t[0] || (t[0] = [
348
+ function On(e, t) {
349
+ return f(), V("svg", $n, t[0] || (t[0] = [
350
350
  w("path", {
351
351
  d: "M23.8 22.1H8.2c-2.5 0-4.5-2.1-4.5-4.5V7.9c0-2.5 2.1-4.5 4.5-4.5h15.6c2.5 0 4.5 2.1 4.5 4.5v9.7c0 2.4-2.1 4.5-4.5 4.5M16 23.2v5M8.3 28.9h15.4",
352
352
  style: { fill: "none", "stroke-width": "3", "stroke-miterlimit": "10" }
353
353
  }, null, -1)
354
354
  ]));
355
355
  }
356
- const En = { render: $n };
356
+ const En = { render: On };
357
357
  function Se(e, t, o) {
358
358
  switch (t) {
359
359
  case "POST":
@@ -432,7 +432,7 @@ const Pn = { class: "header" }, In = { class: "title" }, Vn = { class: "right" }
432
432
  }
433
433
  }
434
434
  return (P, K) => {
435
- const _ = k("el-icon"), I = k("el-dropdown-item"), u = k("el-dropdown-menu"), $ = k("el-dropdown"), j = k("el-popover"), d = k("el-tooltip"), c = k("el-avatar"), S = k("el-menu-item"), O = k("el-menu"), D = k("el-drawer");
435
+ const _ = k("el-icon"), I = k("el-dropdown-item"), u = k("el-dropdown-menu"), O = k("el-dropdown"), j = k("el-popover"), d = k("el-tooltip"), c = k("el-avatar"), S = k("el-menu-item"), $ = k("el-menu"), D = k("el-drawer");
436
436
  return f(), V(ce, null, [
437
437
  w("div", Pn, [
438
438
  w("div", In, [
@@ -445,7 +445,7 @@ const Pn = { class: "header" }, In = { class: "title" }, Vn = { class: "right" }
445
445
  g(C(bn))
446
446
  ], 512),
447
447
  w("h1", null, G(P.title), 1),
448
- a.headerProjectConfig ? (f(), E($, {
448
+ a.headerProjectConfig ? (f(), E(O, {
449
449
  key: 0,
450
450
  placement: "bottom-start",
451
451
  onCommand: oe
@@ -579,7 +579,7 @@ const Pn = { class: "header" }, In = { class: "title" }, Vn = { class: "right" }
579
579
  }),
580
580
  w("span", null, G(y.value), 1)
581
581
  ]),
582
- g(O, { class: "user-menu" }, {
582
+ g($, { class: "user-menu" }, {
583
583
  default: m(() => [
584
584
  g(S, { onClick: ee }, {
585
585
  default: m(() => [
@@ -979,18 +979,18 @@ function rs(e) {
979
979
  }
980
980
  });
981
981
  }
982
- let Oe;
982
+ let $e;
983
983
  function as() {
984
- Oe || (Oe = document.createElement("input"), Oe.type = "file", Oe.accept = ".json");
984
+ $e || ($e = document.createElement("input"), $e.type = "file", $e.accept = ".json");
985
985
  function e() {
986
986
  return new Promise((t, o) => {
987
- Oe.onchange = () => xe(this, null, function* () {
988
- const n = Oe.files;
987
+ $e.onchange = () => xe(this, null, function* () {
988
+ const n = $e.files;
989
989
  if (!n)
990
990
  return t(null);
991
991
  const s = n.item(0);
992
992
  return t(s ? { text: yield s.text(), file: s } : null);
993
- }), Oe.oncancel = () => t(null), Oe.onerror = o, Oe.click();
993
+ }), $e.oncancel = () => t(null), $e.onerror = o, $e.click();
994
994
  });
995
995
  }
996
996
  return e;
@@ -1300,7 +1300,7 @@ function ms(e, t) {
1300
1300
  });
1301
1301
  });
1302
1302
  }, !0), t._customProperties.forEach((l) => {
1303
- $e(() => C(t[l]), (a, i) => {
1303
+ Oe(() => C(t[l]), (a, i) => {
1304
1304
  o.notifyComponentUpdate(), o.sendInspectorState(pe), Le && o.addTimelineEvent({
1305
1305
  layerId: Ue,
1306
1306
  event: {
@@ -1508,8 +1508,8 @@ function bt(e, t, o = {}, n, s, r) {
1508
1508
  }
1509
1509
  const oe = r ? function() {
1510
1510
  const { state: c } = o, S = c ? c() : {};
1511
- this.$patch((O) => {
1512
- _e(O, S);
1511
+ this.$patch(($) => {
1512
+ _e($, S);
1513
1513
  });
1514
1514
  } : (
1515
1515
  /* istanbul ignore next */
@@ -1525,7 +1525,7 @@ function bt(e, t, o = {}, n, s, r) {
1525
1525
  return d[gt] = c, d;
1526
1526
  const S = function() {
1527
1527
  Qe(n);
1528
- const O = Array.from(arguments), D = [], q = [];
1528
+ const $ = Array.from(arguments), D = [], q = [];
1529
1529
  function A(W) {
1530
1530
  D.push(W);
1531
1531
  }
@@ -1533,7 +1533,7 @@ function bt(e, t, o = {}, n, s, r) {
1533
1533
  q.push(W);
1534
1534
  }
1535
1535
  Re(M, {
1536
- args: O,
1536
+ args: $,
1537
1537
  name: S[gt],
1538
1538
  store: u,
1539
1539
  after: A,
@@ -1541,7 +1541,7 @@ function bt(e, t, o = {}, n, s, r) {
1541
1541
  });
1542
1542
  let B;
1543
1543
  try {
1544
- B = d.apply(this && this.$id === e ? this : u, O);
1544
+ B = d.apply(this && this.$id === e ? this : u, $);
1545
1545
  } catch (W) {
1546
1546
  throw Re(q, W), W;
1547
1547
  }
@@ -1561,7 +1561,7 @@ function bt(e, t, o = {}, n, s, r) {
1561
1561
  $patch: H,
1562
1562
  $reset: oe,
1563
1563
  $subscribe(d, c = {}) {
1564
- const S = Tt(x, d, c.detached, () => O()), O = l.run(() => $e(() => n.state.value[e], (D) => {
1564
+ const S = Tt(x, d, c.detached, () => $()), $ = l.run(() => Oe(() => n.state.value[e], (D) => {
1565
1565
  (c.flush === "sync" ? y : h) && d({
1566
1566
  storeId: e,
1567
1567
  type: ke.direct,
@@ -1608,8 +1608,8 @@ function bt(e, t, o = {}, n, s, r) {
1608
1608
  }), process.env.NODE_ENV !== "production" && (u._hotUpdate = Te((d) => {
1609
1609
  u._hotUpdating = !0, d._hmrPayload.state.forEach((c) => {
1610
1610
  if (c in u.$state) {
1611
- const S = d.$state[c], O = u.$state[c];
1612
- typeof S == "object" && Ae(S) && Ae(O) ? uo(S, O) : d.$state[c] = O;
1611
+ const S = d.$state[c], $ = u.$state[c];
1612
+ typeof S == "object" && Ae(S) && Ae($) ? uo(S, $) : d.$state[c] = $;
1613
1613
  }
1614
1614
  nt(u, c, ft(d.$state, c));
1615
1615
  }), Object.keys(u.$state).forEach((c) => {
@@ -1622,11 +1622,11 @@ function bt(e, t, o = {}, n, s, r) {
1622
1622
  nt(u, c, K(S, c));
1623
1623
  }
1624
1624
  for (const c in d._hmrPayload.getters) {
1625
- const S = d._hmrPayload.getters[c], O = r ? (
1625
+ const S = d._hmrPayload.getters[c], $ = r ? (
1626
1626
  // special handling of options api
1627
1627
  Ie(() => (Qe(n), S.call(u, u)))
1628
1628
  ) : S;
1629
- nt(u, c, O);
1629
+ nt(u, c, $);
1630
1630
  }
1631
1631
  Object.keys(u._hmrPayload.getters).forEach((c) => {
1632
1632
  c in d._hmrPayload.getters || ht(u, c);
@@ -1671,10 +1671,10 @@ function ys(e, t, o) {
1671
1671
  const r = typeof t == "function";
1672
1672
  n = e, s = r ? o : t;
1673
1673
  function l(a, i) {
1674
- const h = Oo();
1674
+ const h = $o();
1675
1675
  if (a = // in test mode, ignore the argument provided as we can always retrieve a
1676
1676
  // pinia instance with getActivePinia()
1677
- (process.env.NODE_ENV === "test" && We && We._testing ? null : a) || (h ? $o(to, null) : null), a && Qe(a), process.env.NODE_ENV !== "production" && !We)
1677
+ (process.env.NODE_ENV === "test" && We && We._testing ? null : a) || (h ? Oo(to, null) : null), a && Qe(a), process.env.NODE_ENV !== "production" && !We)
1678
1678
  throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
1679
1679
  See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
1680
1680
  This will fail in production.`);
@@ -1707,7 +1707,7 @@ function ks(e, t) {
1707
1707
  function xs(e) {
1708
1708
  console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`);
1709
1709
  }
1710
- function Os(e, t = {}) {
1710
+ function $s(e, t = {}) {
1711
1711
  if (typeof e != "string")
1712
1712
  return e;
1713
1713
  const o = e.trim();
@@ -1751,7 +1751,7 @@ function Os(e, t = {}) {
1751
1751
  return e;
1752
1752
  }
1753
1753
  }
1754
- function $s(e, t) {
1754
+ function Os(e, t) {
1755
1755
  if (e == null)
1756
1756
  return;
1757
1757
  let o = e;
@@ -1803,7 +1803,7 @@ function fo(e, t) {
1803
1803
  );
1804
1804
  }
1805
1805
  function mo(e, t) {
1806
- return t.map((o) => o.split(".")).map((o) => [o, $s(e, o)]).filter((o) => o[1] !== void 0).reduce((o, n) => Ct(o, n[1], n[0]), {});
1806
+ return t.map((o) => o.split(".")).map((o) => [o, Os(e, o)]).filter((o) => o[1] !== void 0).reduce((o, n) => Ct(o, n[1], n[0]), {});
1807
1807
  }
1808
1808
  function ho(e, t) {
1809
1809
  return t.map((o) => o.split(".")).reduce((o, n) => fo(o, n), e);
@@ -1882,7 +1882,7 @@ function Ps(e = {}) {
1882
1882
  debug: (l = (r = n.debug) != null ? r : e.debug) != null ? l : !1,
1883
1883
  serializer: (i = (a = n.serializer) != null ? a : e.serializer) != null ? i : {
1884
1884
  serialize: (x) => JSON.stringify(x),
1885
- deserialize: (x) => Os(x)
1885
+ deserialize: (x) => $s(x)
1886
1886
  },
1887
1887
  storage: (y = (h = n.storage) != null ? h : e.storage) != null ? y : window.localStorage,
1888
1888
  beforeHydrate: n.beforeHydrate,
@@ -2053,7 +2053,7 @@ const Bs = /* @__PURE__ */ ye(zs, [["render", qs]]), Hs = { class: "card-wrapper
2053
2053
  Ye(() => {
2054
2054
  s.tableRef && s.cards && s.cards.length > 0 && s.tableRef.updateConfigAndRefresh((a != null ? a : s.cards[0]).model);
2055
2055
  });
2056
- }), $e(
2056
+ }), Oe(
2057
2057
  () => s.cards,
2058
2058
  (a) => {
2059
2059
  if (o.query.tab !== void 0) {
@@ -2116,8 +2116,8 @@ const Bs = /* @__PURE__ */ ye(zs, [["render", qs]]), Hs = { class: "card-wrapper
2116
2116
  T(!0);
2117
2117
  const h = (_) => s.mode === "view" && (P(_, void 0) || P(_, "input") || P(_, "select") || P(_, "password") || P(_, "input-number") || P(_, "date") || P(_, "time") || P(_, "datetime")), y = Ie(() => s.model.fields ? s.model.fields.filter(
2118
2118
  (_) => {
2119
- var $, j, d, c;
2120
- let I = _.visible !== !1 && (($ = _.formItem) == null ? void 0 : $.visible) !== !1;
2119
+ var O, j, d, c;
2120
+ let I = _.visible !== !1 && ((O = _.formItem) == null ? void 0 : O.visible) !== !1;
2121
2121
  if (s.mode !== "view" && ((j = _.formItem) == null ? void 0 : j.editable) === !1 || s.mode === "view" && ((d = _.formItem) == null ? void 0 : d.type) === "password")
2122
2122
  return !1;
2123
2123
  let u = (c = _.formItem) == null ? void 0 : c.showCondition;
@@ -2134,7 +2134,7 @@ const Bs = /* @__PURE__ */ ye(zs, [["render", qs]]), Hs = { class: "card-wrapper
2134
2134
  return I;
2135
2135
  }
2136
2136
  ) : []);
2137
- $e([() => s.id, () => s.sessionId], () => {
2137
+ Oe([() => s.id, () => s.sessionId], () => {
2138
2138
  console.log(`FormView.watch: id = ${s.id}, sessionId = ${s.sessionId}`), M();
2139
2139
  }, {
2140
2140
  immediate: !0
@@ -2144,13 +2144,13 @@ const Bs = /* @__PURE__ */ ye(zs, [["render", qs]]), Hs = { class: "card-wrapper
2144
2144
  const _ = s.model.fields;
2145
2145
  let I = {};
2146
2146
  _ == null || _.forEach((u) => {
2147
- var $, j, d, c, S, O, D, q, A, v, B, W, b;
2148
- if (r[u.prop] = null, u.visible !== !1 && (($ = u.formItem) == null ? void 0 : $.visible) !== !1) {
2147
+ var O, j, d, c, S, $, D, q, A, v, B, W, b;
2148
+ if (r[u.prop] = null, u.visible !== !1 && ((O = u.formItem) == null ? void 0 : O.visible) !== !1) {
2149
2149
  if (((j = u.formItem) == null ? void 0 : j.defaultValue) !== void 0 ? r[u.prop] = (d = u.formItem) == null ? void 0 : d.defaultValue : r[u.prop] = void 0, s.mode !== "view") {
2150
2150
  let J = (c = u.formItem) == null ? void 0 : c.validationRule;
2151
2151
  J !== void 0 && (I[u.prop] = J), ze(i), Object.assign(i, I);
2152
2152
  }
2153
- const p = u.formItem, N = p == null ? void 0 : p.type, F = (S = p == null ? void 0 : p.select) == null ? void 0 : S.useDatableDict, R = (O = p == null ? void 0 : p.select) == null ? void 0 : O.dictId, te = (D = p == null ? void 0 : p.select) == null ? void 0 : D.api, re = (q = p == null ? void 0 : p.select) == null ? void 0 : q.valueMappingField, ue = (A = p == null ? void 0 : p.select) == null ? void 0 : A.labelMappingField;
2153
+ const p = u.formItem, N = p == null ? void 0 : p.type, F = (S = p == null ? void 0 : p.select) == null ? void 0 : S.useDatableDict, R = ($ = p == null ? void 0 : p.select) == null ? void 0 : $.dictId, te = (D = p == null ? void 0 : p.select) == null ? void 0 : D.api, re = (q = p == null ? void 0 : p.select) == null ? void 0 : q.valueMappingField, ue = (A = p == null ? void 0 : p.select) == null ? void 0 : A.labelMappingField;
2154
2154
  if (N === "select") {
2155
2155
  if (F) {
2156
2156
  let Y = `${Ie(() => window.location.href.indexOf("localhost") > 0 ? "http://localhost.vancone.com:8080" : "https://datable.vancone.com/agent/public/0001").value}/api/datable/agent/metadata/dict?dictId=${R}`;
@@ -2192,12 +2192,12 @@ const Bs = /* @__PURE__ */ ye(zs, [["render", qs]]), Hs = { class: "card-wrapper
2192
2192
  }
2193
2193
  function U() {
2194
2194
  return new Promise((_, I) => {
2195
- var $, j, d, c;
2196
- ((j = ($ = s.model.formConfig) == null ? void 0 : $.functions) == null ? void 0 : j.beforeSubmit) !== void 0 && Object.assign(r, (c = (d = s.model.formConfig) == null ? void 0 : d.functions) == null ? void 0 : c.beforeSubmit(r));
2195
+ var O, j, d, c;
2196
+ ((j = (O = s.model.formConfig) == null ? void 0 : O.functions) == null ? void 0 : j.beforeSubmit) !== void 0 && Object.assign(r, (c = (d = s.model.formConfig) == null ? void 0 : d.functions) == null ? void 0 : c.beforeSubmit(r));
2197
2197
  let u = s.mode === "create" ? "POST" : "PUT";
2198
2198
  s.model.api && Se(s.model.api, u, r).then(({ data: S }) => {
2199
- var O, D, q, A;
2200
- S.code === 0 && (s.closeDialogFunc && s.closeDialogFunc(), ((D = (O = s.model.formConfig) == null ? void 0 : O.functions) == null ? void 0 : D.afterSubmit) !== void 0 && ((A = (q = s.model.formConfig) == null ? void 0 : q.functions) == null || A.afterSubmit(S.data)), s.afterSubmitFunc && s.afterSubmitFunc(), _());
2199
+ var $, D, q, A;
2200
+ S.code === 0 && (s.closeDialogFunc && s.closeDialogFunc(), ((D = ($ = s.model.formConfig) == null ? void 0 : $.functions) == null ? void 0 : D.afterSubmit) !== void 0 && ((A = (q = s.model.formConfig) == null ? void 0 : q.functions) == null || A.afterSubmit(S.data)), s.afterSubmitFunc && s.afterSubmitFunc(), _());
2201
2201
  });
2202
2202
  });
2203
2203
  }
@@ -2206,19 +2206,19 @@ const Bs = /* @__PURE__ */ ye(zs, [["render", qs]]), Hs = { class: "card-wrapper
2206
2206
  console.log("FormView.reset: begin"), (_ = a.value) == null || _.resetFields();
2207
2207
  }
2208
2208
  function z(_) {
2209
- const I = "i18n(", u = ")", $ = _.label;
2210
- return $ ? $.startsWith(I) && $.endsWith(u) ? n($.slice(I.length, -u.length)) : $ : _.prop.slice(0, 1).toUpperCase() + _.prop.slice(1).toLowerCase();
2209
+ const I = "i18n(", u = ")", O = _.label;
2210
+ return O ? O.startsWith(I) && O.endsWith(u) ? n(O.slice(I.length, -u.length)) : O : _.prop.slice(0, 1).toUpperCase() + _.prop.slice(1).toLowerCase();
2211
2211
  }
2212
2212
  function ee(_) {
2213
- var I, u, $, j, d, c;
2213
+ var I, u, O, j, d, c;
2214
2214
  if (_) {
2215
2215
  if (P(_, "select")) {
2216
2216
  const S = (u = (I = _.tableColumn) == null ? void 0 : I.functions) == null ? void 0 : u.transformValue;
2217
2217
  if (S)
2218
2218
  return S(r[_.prop]);
2219
- const O = (j = ($ = _.formItem) == null ? void 0 : $.select) == null ? void 0 : j.viewModeLabelField;
2220
- if (O)
2221
- return r[O];
2219
+ const $ = (j = (O = _.formItem) == null ? void 0 : O.select) == null ? void 0 : j.viewModeLabelField;
2220
+ if ($)
2221
+ return r[$];
2222
2222
  const D = (c = (d = _.formItem) == null ? void 0 : d.select) == null ? void 0 : c.options;
2223
2223
  if (D) {
2224
2224
  for (let q of D)
@@ -2234,8 +2234,8 @@ const Bs = /* @__PURE__ */ ye(zs, [["render", qs]]), Hs = { class: "card-wrapper
2234
2234
  return ((I = _.formItem) == null ? void 0 : I.updatable) === !1 && s.mode === "update";
2235
2235
  }
2236
2236
  function oe(_, I) {
2237
- var $, j;
2238
- const u = (j = ($ = I.formItem) == null ? void 0 : $.type) != null ? j : "input";
2237
+ var O, j;
2238
+ const u = (j = (O = I.formItem) == null ? void 0 : O.type) != null ? j : "input";
2239
2239
  switch (_) {
2240
2240
  case "input":
2241
2241
  return s.mode === "view" ? !1 : u === "input" || u === "password";
@@ -2252,18 +2252,18 @@ const Bs = /* @__PURE__ */ ye(zs, [["render", qs]]), Hs = { class: "card-wrapper
2252
2252
  function K(_) {
2253
2253
  var I;
2254
2254
  for (let u of s.model.fields) {
2255
- const $ = (I = u.formItem) == null ? void 0 : I.select;
2256
- if (!(!u.formItem || u.formItem.type !== "select" || !$ || !$.queryParamValueField) && $.queryParamValueField === _.prop) {
2257
- const j = $.api;
2255
+ const O = (I = u.formItem) == null ? void 0 : I.select;
2256
+ if (!(!u.formItem || u.formItem.type !== "select" || !O || !O.queryParamValueField) && O.queryParamValueField === _.prop) {
2257
+ const j = O.api;
2258
2258
  if (j) {
2259
2259
  let d = j;
2260
- const c = $.queryParamName;
2261
- c && (d = `${d}?${c}=${r[$.queryParamValueField]}`), Se(d, "GET", {}).then(({ data: S }) => {
2262
- if ($) {
2263
- let O = [];
2264
- Array.isArray(S.data) ? O = S.data : S.data.list && Array.isArray(S.data.list) && (O = S.data.list), $.options = O.map((D) => ({
2265
- value: $.valueMappingField ? D[$.valueMappingField] : D.value,
2266
- label: $.labelMappingField ? D[$.labelMappingField] : D.label
2260
+ const c = O.queryParamName;
2261
+ c && (d = `${d}?${c}=${r[O.queryParamValueField]}`), Se(d, "GET", {}).then(({ data: S }) => {
2262
+ if (O) {
2263
+ let $ = [];
2264
+ Array.isArray(S.data) ? $ = S.data : S.data.list && Array.isArray(S.data.list) && ($ = S.data.list), O.options = $.map((D) => ({
2265
+ value: O.valueMappingField ? D[O.valueMappingField] : D.value,
2266
+ label: O.labelMappingField ? D[O.labelMappingField] : D.label
2267
2267
  }));
2268
2268
  }
2269
2269
  });
@@ -2277,7 +2277,7 @@ const Bs = /* @__PURE__ */ ye(zs, [["render", qs]]), Hs = { class: "card-wrapper
2277
2277
  submit: U,
2278
2278
  formData: r
2279
2279
  }), (_, I) => {
2280
- const u = k("el-input"), $ = k("el-switch"), j = k("el-date-picker"), d = k("el-time-picker"), c = k("el-option"), S = k("el-select"), O = k("el-input-number"), D = k("el-form-item"), q = k("el-form"), A = qt("loading");
2280
+ const u = k("el-input"), O = k("el-switch"), j = k("el-date-picker"), d = k("el-time-picker"), c = k("el-option"), S = k("el-select"), $ = k("el-input-number"), D = k("el-form-item"), q = k("el-form"), A = qt("loading");
2281
2281
  return Bt((f(), E(q, {
2282
2282
  ref_key: "formRef",
2283
2283
  ref: a,
@@ -2308,7 +2308,7 @@ const Bs = /* @__PURE__ */ ye(zs, [["render", qs]]), Hs = { class: "card-wrapper
2308
2308
  disabled: H(v)
2309
2309
  }, null, 8, ["type", "modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : L("", !0),
2310
2310
  h(v) ? (f(), V("span", Xs, G(ee(v)), 1)) : L("", !0),
2311
- P(v, "switch") ? (f(), E($, {
2311
+ P(v, "switch") ? (f(), E(O, {
2312
2312
  key: 2,
2313
2313
  modelValue: r[v.prop],
2314
2314
  "onUpdate:modelValue": (le) => r[v.prop] = le,
@@ -2362,7 +2362,7 @@ const Bs = /* @__PURE__ */ ye(zs, [["render", qs]]), Hs = { class: "card-wrapper
2362
2362
  }),
2363
2363
  _: 2
2364
2364
  }, 1032, ["multiple", "collapse-tags", "filterable", "allow-create", "default-first-option", "modelValue", "onUpdate:modelValue", "disabled", "onChange"])) : L("", !0),
2365
- P(v, "input-number") && _.mode !== "view" ? (f(), E(O, {
2365
+ P(v, "input-number") && _.mode !== "view" ? (f(), E($, {
2366
2366
  key: 7,
2367
2367
  style: { width: "100%" },
2368
2368
  modelValue: r[v.prop],
@@ -2399,7 +2399,7 @@ const Bs = /* @__PURE__ */ ye(zs, [["render", qs]]), Hs = { class: "card-wrapper
2399
2399
  emits: ["update:visible", "update:id"],
2400
2400
  setup(e, { expose: t, emit: o }) {
2401
2401
  const { t: n } = Ze(), s = e, r = T(0), l = o, a = T();
2402
- $e(() => s.visible, () => {
2402
+ Oe(() => s.visible, () => {
2403
2403
  s.visible && r.value++;
2404
2404
  });
2405
2405
  function i() {
@@ -2582,7 +2582,7 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
2582
2582
  function u(b) {
2583
2583
  ze(n.model), Object.assign(n.model, b);
2584
2584
  }
2585
- function $() {
2585
+ function O() {
2586
2586
  var p, N, F;
2587
2587
  if (z.value = !0, !n.model || !n.model.api)
2588
2588
  return;
@@ -2605,7 +2605,7 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
2605
2605
  R !== void 0 && R(p);
2606
2606
  }
2607
2607
  Se(n.model.api, "DELETE", p.id).then(({ data: R }) => {
2608
- R.code === 0 && (a.value = !1, $());
2608
+ R.code === 0 && (a.value = !1, O());
2609
2609
  });
2610
2610
  }
2611
2611
  }
@@ -2625,7 +2625,7 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
2625
2625
  else {
2626
2626
  const N = U.value.map((F) => F.id);
2627
2627
  be.delete(`${n.model.api}/${N.join(",")}`).then(({ data: F }) => {
2628
- F.code === 0 && (a.value = !1, $());
2628
+ F.code === 0 && (a.value = !1, O());
2629
2629
  });
2630
2630
  }
2631
2631
  M.value.clearSelection();
@@ -2634,10 +2634,10 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
2634
2634
  });
2635
2635
  }
2636
2636
  function S(b) {
2637
- oe.pageSize = b, $();
2637
+ oe.pageSize = b, O();
2638
2638
  }
2639
- function O(b) {
2640
- oe.pageNo = b, $();
2639
+ function $(b) {
2640
+ oe.pageNo = b, O();
2641
2641
  }
2642
2642
  function D(b, p) {
2643
2643
  r.editPageRoutePath !== void 0 ? i.push({
@@ -2738,14 +2738,14 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
2738
2738
  </html>
2739
2739
  `), R == null || R.close();
2740
2740
  }
2741
- return $e(() => n.model, () => {
2742
- $();
2741
+ return Oe(() => n.model, () => {
2742
+ O();
2743
2743
  }, {
2744
2744
  deep: !0,
2745
2745
  immediate: !0
2746
2746
  }), t({
2747
2747
  multipleSelection: U,
2748
- refresh: $,
2748
+ refresh: O,
2749
2749
  updateConfigAndRefresh: u
2750
2750
  }), (b, p) => {
2751
2751
  var le, qe, Be;
@@ -2802,7 +2802,7 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
2802
2802
  g(R, {
2803
2803
  icon: C(Yt),
2804
2804
  style: { width: "28px" },
2805
- onClick: $
2805
+ onClick: O
2806
2806
  }, null, 8, ["icon"]),
2807
2807
  (qe = r.display) != null && qe.fileTaskButton ? (f(), E(ue, {
2808
2808
  key: 3,
@@ -2928,7 +2928,7 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
2928
2928
  g(R, {
2929
2929
  style: { "margin-left": "-20px" },
2930
2930
  icon: C(Ht),
2931
- onClick: $
2931
+ onClick: O
2932
2932
  }, null, 8, ["icon"])
2933
2933
  ]),
2934
2934
  _: 1
@@ -3054,7 +3054,7 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
3054
3054
  key: Ee.label,
3055
3055
  onClick: (Ne) => {
3056
3056
  var Me, He;
3057
- return ((He = (Me = Ee.functions) == null ? void 0 : Me.click) == null ? void 0 : He.call(Me, Z.$index, Z.row)) && $();
3057
+ return ((He = (Me = Ee.functions) == null ? void 0 : Me.click) == null ? void 0 : He.call(Me, Z.$index, Z.row)) && O();
3058
3058
  }
3059
3059
  }, {
3060
3060
  default: m(() => [
@@ -3076,7 +3076,7 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
3076
3076
  size: "small",
3077
3077
  background: "",
3078
3078
  onSizeChange: S,
3079
- onCurrentChange: O,
3079
+ onCurrentChange: $,
3080
3080
  currentPage: oe.pageNo,
3081
3081
  "onUpdate:currentPage": p[1] || (p[1] = (he) => oe.pageNo = he),
3082
3082
  "page-sizes": [10, 20, 50, 100],
@@ -3088,7 +3088,7 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
3088
3088
  model: b.model,
3089
3089
  mode: X.value,
3090
3090
  id: H.value,
3091
- afterSubmitFunc: $,
3091
+ afterSubmitFunc: O,
3092
3092
  visible: a.value,
3093
3093
  "onUpdate:visible": p[2] || (p[2] = (he) => a.value = he)
3094
3094
  }, null, 8, ["model", "mode", "id", "visible"])
@@ -3106,7 +3106,7 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
3106
3106
  fields: []
3107
3107
  }), oe = me([]);
3108
3108
  let P = [];
3109
- $e([
3109
+ Oe([
3110
3110
  () => n.currentRoute.value,
3111
3111
  ve
3112
3112
  ], () => {
@@ -3119,8 +3119,8 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
3119
3119
  h.value = parseInt(d.index) - 1;
3120
3120
  }
3121
3121
  function _() {
3122
- var O;
3123
- let d = (O = P[h.value].api) == null ? void 0 : O.replace("/select", "");
3122
+ var $;
3123
+ let d = ($ = P[h.value].api) == null ? void 0 : $.replace("/select", "");
3124
3124
  d = d == null ? void 0 : d.substring(d.lastIndexOf("/"));
3125
3125
  const c = H.api + "/" + s.value + d, S = x.value.multipleSelection.map((D) => D.id);
3126
3126
  Se(c, "POST", S).then(() => {
@@ -3132,11 +3132,11 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
3132
3132
  S.functions || (S.functions = {}), S.functions.create = () => {
3133
3133
  l.value = !0, x.value && x.value.refresh();
3134
3134
  };
3135
- let O = Ge(c);
3136
- O.tableConfig || (O.tableConfig = {}), O.tableConfig.selectMode = !0, O.tableConfig.queryParams = {}, d.queryParamName && (O.tableConfig.queryParams[d.queryParamName] = s.value);
3137
- for (var D in O.fields)
3138
- O.fields[D].tableColumn && (q = O.fields[D].tableColumn) != null && q.link && (O.fields[D].tableColumn.link = !1);
3139
- P.push(O), S.labels = {
3135
+ let $ = Ge(c);
3136
+ $.tableConfig || ($.tableConfig = {}), $.tableConfig.selectMode = !0, $.tableConfig.queryParams = {}, d.queryParamName && ($.tableConfig.queryParams[d.queryParamName] = s.value);
3137
+ for (var D in $.fields)
3138
+ $.fields[D].tableColumn && (q = $.fields[D].tableColumn) != null && q.link && ($.fields[D].tableColumn.link = !1);
3139
+ P.push($), S.labels = {
3140
3140
  create: "common.table.add",
3141
3141
  delete: "common.table.remove"
3142
3142
  }, S.functions.batchDelete = (A) => {
@@ -3162,10 +3162,10 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
3162
3162
  }
3163
3163
  }
3164
3164
  }
3165
- ], O.api += "/select";
3165
+ ], $.api += "/select";
3166
3166
  }
3167
3167
  function u() {
3168
- var O, D, q;
3168
+ var $, D, q;
3169
3169
  oe.splice(0);
3170
3170
  const d = o.params.model;
3171
3171
  if (ve.value[d] === void 0) {
@@ -3176,7 +3176,7 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
3176
3176
  ze(H);
3177
3177
  const c = Ge(ve.value[d]);
3178
3178
  Object.assign(H, c), console.log("DetailPage model", H), ee.value++, h.value = -1, M.value = "summary";
3179
- const S = (D = (O = H.pageConfig) == null ? void 0 : O.detailPage) == null ? void 0 : D.tabs;
3179
+ const S = (D = ($ = H.pageConfig) == null ? void 0 : $.detailPage) == null ? void 0 : D.tabs;
3180
3180
  if (S)
3181
3181
  for (let A of S) {
3182
3182
  const v = Ge(ve.value[A.modelKey]);
@@ -3196,7 +3196,7 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
3196
3196
  b[A.queryParamName] = s.value, W !== void 0 && W(b);
3197
3197
  });
3198
3198
  }
3199
- B.queryParams || (B.queryParams = {}), A.queryParamName && (B.queryParams[A.queryParamName] = s.value), A.queryParams && Object.assign(B.queryParams, A.queryParams), B.readOnly = (q = A.readOnly) != null ? q : !1, alert(B.readOnly), A.includeFields && (v.fields = v.fields.filter((W) => {
3199
+ B.queryParams || (B.queryParams = {}), A.queryParamName && (B.queryParams[A.queryParamName] = s.value), A.queryParams && Object.assign(B.queryParams, A.queryParams), B.readOnly = (q = A.readOnly) != null ? q : !1, A.includeFields && (v.fields = v.fields.filter((W) => {
3200
3200
  var b;
3201
3201
  return (b = A.includeFields) == null ? void 0 : b.includes(W.prop);
3202
3202
  })), A.excludeFields && (v.fields = v.fields.filter((W) => {
@@ -3206,7 +3206,7 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
3206
3206
  }
3207
3207
  }
3208
3208
  }
3209
- $e(
3209
+ Oe(
3210
3210
  [
3211
3211
  () => {
3212
3212
  var d, c;
@@ -3219,8 +3219,8 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
3219
3219
  ],
3220
3220
  (d) => {
3221
3221
  Ye(() => {
3222
- var S, O, D;
3223
- const c = (O = (S = H.pageConfig) == null ? void 0 : S.detailPage) == null ? void 0 : O.infoCard;
3222
+ var S, $, D;
3223
+ const c = ($ = (S = H.pageConfig) == null ? void 0 : S.detailPage) == null ? void 0 : $.infoCard;
3224
3224
  c && (U.value = c.titleFieldProp ? i.value.formData[c.titleFieldProp] : "", X.value = c.subtitleFieldProp ? i.value.formData[c.subtitleFieldProp] : "", z.value = c.tagFieldProp ? i.value.formData[c.tagFieldProp] : "", (D = H.fields) == null || D.forEach((q) => {
3225
3225
  var A, v;
3226
3226
  if (q.prop === c.tagFieldProp) {
@@ -3235,7 +3235,7 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
3235
3235
  deep: !0
3236
3236
  }
3237
3237
  );
3238
- function $() {
3238
+ function O() {
3239
3239
  r.value = !0;
3240
3240
  }
3241
3241
  function j() {
@@ -3243,7 +3243,7 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
3243
3243
  }
3244
3244
  return (d, c) => {
3245
3245
  var N, F, R, te, re, ue;
3246
- const S = k("el-page-header"), O = k("el-button"), D = k("el-icon"), q = k("el-dropdown-item"), A = k("el-dropdown-menu"), v = k("el-dropdown"), B = k("el-tag"), W = k("el-tab-pane"), b = k("el-tabs"), p = k("el-dialog");
3246
+ const S = k("el-page-header"), $ = k("el-button"), D = k("el-icon"), q = k("el-dropdown-item"), A = k("el-dropdown-menu"), v = k("el-dropdown"), B = k("el-tag"), W = k("el-tab-pane"), b = k("el-tabs"), p = k("el-dialog");
3247
3247
  return f(), V(ce, null, [
3248
3248
  w("div", dr, [
3249
3249
  g(S, {
@@ -3261,9 +3261,9 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
3261
3261
  _: 1
3262
3262
  }),
3263
3263
  w("div", null, [
3264
- g(O, {
3264
+ g($, {
3265
3265
  type: "primary",
3266
- onClick: $
3266
+ onClick: O
3267
3267
  }, {
3268
3268
  default: m(() => [
3269
3269
  Q(G(C(t)("common.table.edit")), 1)
@@ -3290,7 +3290,7 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
3290
3290
  })
3291
3291
  ]),
3292
3292
  default: m(() => [
3293
- g(O, { style: { margin: "0 10px" } }, {
3293
+ g($, { style: { margin: "0 10px" } }, {
3294
3294
  default: m(() => [
3295
3295
  Q(G(C(t)("common.basic.more")), 1),
3296
3296
  g(D, { class: "el-icon--right" }, {
@@ -3305,7 +3305,7 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
3305
3305
  ]),
3306
3306
  _: 1
3307
3307
  })) : L("", !0),
3308
- g(O, {
3308
+ g($, {
3309
3309
  onClick: j,
3310
3310
  style: { "border-color": "#bbb", width: "30px" }
3311
3311
  }, {
@@ -3390,7 +3390,7 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
3390
3390
  }, {
3391
3391
  footer: m(() => [
3392
3392
  w("span", vr, [
3393
- g(O, {
3393
+ g($, {
3394
3394
  onClick: c[2] || (c[2] = (J) => l.value = !1)
3395
3395
  }, {
3396
3396
  default: m(() => [
@@ -3398,7 +3398,7 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
3398
3398
  ]),
3399
3399
  _: 1
3400
3400
  }),
3401
- g(O, {
3401
+ g($, {
3402
3402
  type: "primary",
3403
3403
  onClick: _
3404
3404
  }, {
@@ -3431,7 +3431,7 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
3431
3431
  ], 64);
3432
3432
  };
3433
3433
  }
3434
- }), yr = /* @__PURE__ */ ye(br, [["__scopeId", "data-v-e6f51415"]]), wr = { class: "page-title" }, Sr = /* @__PURE__ */ Ce({
3434
+ }), yr = /* @__PURE__ */ ye(br, [["__scopeId", "data-v-654772a5"]]), wr = { class: "page-title" }, Sr = /* @__PURE__ */ Ce({
3435
3435
  __name: "TablePage",
3436
3436
  setup(e) {
3437
3437
  const { t } = Ze(), o = Xe(), n = pt(), s = T(), r = T([]), l = me({
@@ -3463,7 +3463,7 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
3463
3463
  const x = Ge(ve.value[y]);
3464
3464
  Object.assign(l, x), (U = (M = l.pageConfig) == null ? void 0 : M.tablePage) != null && U.tabViewAttributes || Object.assign(a, l), i();
3465
3465
  }
3466
- return $e([
3466
+ return Oe([
3467
3467
  () => n.currentRoute.value,
3468
3468
  ve
3469
3469
  ], () => {