halo-pc 1.0.18 → 1.0.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (113) hide show
  1. package/dist/{Article-C00dDtgQ.js → Article-aps_F4Uq.js} +34 -34
  2. package/dist/{ArticleFooter-jAlMJJ0Z.js → ArticleFooter-CsCnjrJ1.js} +5 -5
  3. package/dist/{Autocomplete-DYgdzQEa.js → Autocomplete-BGkHGSX_.js} +1 -1
  4. package/dist/{Autocomplete-CQ-UuksH.js → Autocomplete-CGoxGIM2.js} +8 -8
  5. package/dist/{Autocomplete-BYlz8Q3t.js → Autocomplete-XdLV4jzi.js} +8 -8
  6. package/dist/{CSharp-ouau54_s.js → CSharp-NuDfWEq7.js} +1 -1
  7. package/dist/{Calender-iu_I3vcU.js → Calender-C2YaNTHk.js} +1 -1
  8. package/dist/{Callback-bRXyRBO2.js → Callback-Czdr_dVp.js} +1 -1
  9. package/dist/{Cascader-BJs2FXbQ.js → Cascader-D3Kr80fH.js} +10 -10
  10. package/dist/{Cascader-ljR17aOe.js → Cascader-DRvnD4Xc.js} +5 -5
  11. package/dist/{Checkbox-C2OWgiE1.js → Checkbox-5pSKww4M.js} +12 -12
  12. package/dist/{Checkbox-Cy5zNH7D.js → Checkbox-BAcK--1U.js} +1 -1
  13. package/dist/Code-BHEes80c.js +4 -0
  14. package/dist/{Code-Cruabofi.js → Code-BxQxsVD8.js} +10 -10
  15. package/dist/{Code-DTvIe3kd.js → Code-CbsVyhOv.js} +1 -1
  16. package/dist/{Code-B9oyIhEo.js → Code-CtDTGfBy.js} +1 -1
  17. package/dist/{Code.vue_vue_type_style_index_0_lang-BmQDWq2q.js → Code.vue_vue_type_style_index_0_lang-CPZKY3vQ.js} +2 -2
  18. package/dist/{Column-ClHvuVuz.js → Column-D3PMyaiE.js} +17 -17
  19. package/dist/{Comment-D292jtJC.js → Comment-B3fvVYJF.js} +12 -12
  20. package/dist/Compare-BXxJuIXf.js +37 -0
  21. package/dist/Compare-gEOPuGLB.js +57 -0
  22. package/dist/{Copy-CvgX-bKU.js → Copy-1znXP-dt.js} +4 -4
  23. package/dist/{Custom-4bEXZx8t.js → Custom-C_15ZImX.js} +11 -11
  24. package/dist/{DataExport-DH0oVaJf.js → DataExport-hwoZoZUN.js} +1 -1
  25. package/dist/{DataExport.vue_vue_type_script_setup_true_lang-BV2aSpcq.js → DataExport.vue_vue_type_script_setup_true_lang-Dkq4fSkZ.js} +18 -18
  26. package/dist/{DataImport-D73iWOit.js → DataImport-CQYeF50z.js} +1 -1
  27. package/dist/{DataImport.vue_vue_type_script_setup_true_lang-B39IZpM3.js → DataImport.vue_vue_type_script_setup_true_lang-ChWRjj2W.js} +13 -13
  28. package/dist/{Date-DCtZ8VpD.js → Date-0bIUTNCs.js} +6 -6
  29. package/dist/{Date-BJ2vBWIM.js → Date-a3T1YbHN.js} +1 -1
  30. package/dist/{DateRange-BWXik5I2.js → DateRange-Cxu9FXTE.js} +1 -1
  31. package/dist/{DateTime-D_GCbnKC.js → DateTime-BUYojCOY.js} +1 -1
  32. package/dist/{DateTime-BBHPa2zE.js → DateTime-IlsYZL-l.js} +6 -6
  33. package/dist/{DateTimeRange-C4-4mq77.js → DateTimeRange-D9K4am0p.js} +4 -4
  34. package/dist/{Daterange-CPVrg_r8.js → Daterange-CX0Klog4.js} +7 -7
  35. package/dist/{Decimal-Bv5A7-xm.js → Decimal-CNhxJUZg.js} +1 -1
  36. package/dist/{Delete-lSTmw_3a.js → Delete-DFl8Tr27.js} +13 -13
  37. package/dist/{Detail-Dfvzkkw6.js → Detail-BXkTd6Wh.js} +5 -5
  38. package/dist/{Dictionary-thXsHbOo.js → Dictionary-DmarNVsi.js} +10 -10
  39. package/dist/{Email-BDg7Qf9f.js → Email-BBjDCCOK.js} +4 -4
  40. package/dist/{File-TEaB_uIR.js → File-CAnAcqJX.js} +37 -37
  41. package/dist/{Image-BqCjtyvc.js → Image-pufFvop2.js} +1 -1
  42. package/dist/{Index-ld-kC6ij.js → Index-BqjKndKz.js} +7 -7
  43. package/dist/{Index-BQKjFLbE.js → Index-C4D5pwwu.js} +24 -24
  44. package/dist/Index-CD_KS2lO.js +4 -0
  45. package/dist/Index-CEh3KlPE.js +4 -0
  46. package/dist/{Index-Cn5Qex6Q.js → Index-CseSUp2Z.js} +1 -1
  47. package/dist/{Index-BuhrNqZE.js → Index-DJvB04cS.js} +1 -1
  48. package/dist/{Index-DapcfeaN.js → Index-RZT6JXBO.js} +1 -1
  49. package/dist/Index-XmvSiC1h.js +4 -0
  50. package/dist/{Index.vue_vue_type_script_setup_true_lang-zlsTcQ-k.js → Index.vue_vue_type_script_setup_true_lang-C8ZEc4nU.js} +3 -3
  51. package/dist/{Index.vue_vue_type_script_setup_true_lang-BKPwS2s9.js → Index.vue_vue_type_script_setup_true_lang-DtNDN8Ex.js} +1 -1
  52. package/dist/{Index.vue_vue_type_style_index_0_lang-CqjK1AVM.js → Index.vue_vue_type_style_index_0_lang-T12lwRy6.js} +11 -11
  53. package/dist/{Install-BQ_rGQFg.js → Install-DWWpscrR.js} +3 -3
  54. package/dist/{Int-C33TxFtW.js → Int-Bi3P8XeV.js} +6 -6
  55. package/dist/{Int-DRcbQElJ.js → Int-Bn2p1DqA.js} +8 -8
  56. package/dist/{List-CSkx_cTr.js → List-CeQRwXop.js} +17 -17
  57. package/dist/{Maintaince-D0JZ-9mL.js → Maintaince-CVMjhqSO.js} +1 -1
  58. package/dist/{Markdown-DjbgXlE6.js → Markdown-d8PCfAFf.js} +1 -1
  59. package/dist/{Month-C_sIkUIo.js → Month-BfUSQ3xa.js} +6 -6
  60. package/dist/{Month-68Hi85T_.js → Month-COEkKDL_.js} +1 -1
  61. package/dist/{Month-unY9f1-N.js → Month-DQKfNQzN.js} +7 -7
  62. package/dist/{Normal-BAoQvNjn.js → Normal-BD7sNr-b.js} +49 -49
  63. package/dist/{Paging-BNVKLCCy.js → Paging-d_-VefNv.js} +6 -6
  64. package/dist/{PagingHeader-CkESvHSg.js → PagingHeader-CznmI0kr.js} +18 -18
  65. package/dist/{PagingRow-DrMTqBj9.js → PagingRow-BJ-VLpfV.js} +7 -7
  66. package/dist/{QueryApi-D410WxrU.js → QueryApi-Cdniq3mZ.js} +1 -1
  67. package/dist/{Racebar-BhPT9MdU.js → Racebar-BkwhD-rw.js} +16 -16
  68. package/dist/{Radio-D1AcW1pn.js → Radio-CS12bajp.js} +1 -1
  69. package/dist/{Register-jgIuWNwI.js → Register-l_X4fDPP.js} +23 -23
  70. package/dist/{RichText-BgLtVFup.js → RichText-9MwwjuZi.js} +8 -8
  71. package/dist/{SearchFooter-CAWhmjR2.js → SearchFooter-C8N9ku25.js} +1 -1
  72. package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-ClaSxScx.js → SearchFooter.vue_vue_type_style_index_0_lang-6WvYHIn1.js} +1 -1
  73. package/dist/{SearchForm--aMZLLx4.js → SearchForm-DX0mN20A.js} +1 -1
  74. package/dist/{SearchForm.vue_vue_type_style_index_0_lang-_rdBTvY_.js → SearchForm.vue_vue_type_style_index_0_lang-23AxHYiw.js} +19 -19
  75. package/dist/{Select-DU_6d_Ob.js → Select-CQE5kY-n.js} +14 -14
  76. package/dist/{Select-CVnXZcZi.js → Select-DYjvtHyi.js} +1 -1
  77. package/dist/{Select-JFUTkpkm.js → Select-DaEqum3a.js} +17 -17
  78. package/dist/{Single-B0g3q0uZ.js → Single-DErvX9y_.js} +81 -81
  79. package/dist/{Statistic-XTBdaF7E.js → Statistic-CQxXdu-V.js} +31 -31
  80. package/dist/{Stock-CWU3inQY.js → Stock-CsoHCwV6.js} +1 -1
  81. package/dist/{Stock-nsqld-XR.js → Stock-DXLdfC3r.js} +1 -1
  82. package/dist/{Stock.vue_vue_type_style_index_0_lang-B7HB-me6.js → Stock.vue_vue_type_style_index_0_lang-B-b3Lj_h.js} +6 -6
  83. package/dist/{Switch-BqHPuFzA.js → Switch-BCgZXfWo.js} +1 -1
  84. package/dist/{Table-xRltYWjc.js → Table-CAVxyUTD.js} +55 -55
  85. package/dist/{Table-l0km2rz7.js → Table-DkJYgLFt.js} +52 -52
  86. package/dist/{Text-DOTMUPPm.js → Text-Cn0cOTli.js} +7 -7
  87. package/dist/{Text-alXcFJHa.js → Text-Dk5tNNZo.js} +6 -6
  88. package/dist/Text-DvVWvaMO.js +4 -0
  89. package/dist/{Text.vue_vue_type_style_index_0_lang-1wF_kb3u.js → Text.vue_vue_type_style_index_0_lang-I01JEYAx.js} +2 -2
  90. package/dist/{TextLink-BUpIHKqh.js → TextLink-D3nvnLHn.js} +3 -3
  91. package/dist/{Textarea-IFX_g2SZ.js → Textarea-Pc4TfoC3.js} +1 -1
  92. package/dist/{Time-CHadluUL.js → Time-CToG3p0T.js} +6 -6
  93. package/dist/{Timeline-B7xPAwXh.js → Timeline-DphvhX0U.js} +2 -2
  94. package/dist/{Tree-qvL1DgaM.js → Tree-01Sb-9zi.js} +54 -54
  95. package/dist/{Tree-DoXqyUpn.js → Tree-CH1RoUqu.js} +13 -13
  96. package/dist/{TreeNode-CUSAKhTp.js → TreeNode-C54d29V-.js} +1 -1
  97. package/dist/{Update-eETfPmHB.js → Update-Cy1lFPVv.js} +5 -5
  98. package/dist/{UpdateChild-DbbXDvCz.js → UpdateChild-DV_8KV9G.js} +6 -6
  99. package/dist/{Upload-DMfKIPRu.js → Upload-BalaO4wz.js} +48 -48
  100. package/dist/{Upload-CAUGBT7A.js → Upload-DQVaPUdG.js} +13 -13
  101. package/dist/{UploadApi-FEbSWkVM.js → UploadApi-Cfm5DM_x.js} +1 -1
  102. package/dist/{Year-CnHHib5-.js → Year-BFZPXXq0.js} +1 -1
  103. package/dist/{Year-CAxdMb2V.js → Year-Swm3VSzj.js} +7 -7
  104. package/dist/{main-DArl7gFs.js → main-BYJVoHlf.js} +3883 -4263
  105. package/dist/main.js +26 -27
  106. package/package.json +2 -2
  107. package/dist/Code-C8zrvj8s.js +0 -4
  108. package/dist/Compare-CGW1IWLh.js +0 -56
  109. package/dist/Compare-DjrTKaz2.js +0 -26
  110. package/dist/Index-BCku46lC.js +0 -4
  111. package/dist/Index-BLoAow8U.js +0 -4
  112. package/dist/Index-C3Dtv0ze.js +0 -4
  113. package/dist/Text-CFZ1y9Xn.js +0 -4
@@ -1,9 +1,9 @@
1
- import { defineComponent as K, toRefs as R, ref as d, computed as S, resolveComponent as c, openBlock as s, createBlock as f, unref as t, withKeys as U, withModifiers as q, isRef as L, withCtx as p, createElementBlock as h, Fragment as M, renderList as N, createElementVNode as F, toDisplayString as _, createCommentVNode as j } from "vue";
2
- import { U as z, q as A, L as G } from "./main-DArl7gFs.js";
3
- const H = { class: "option-text" }, I = {
1
+ import { defineComponent as E, toRefs as K, ref as d, computed as R, resolveComponent as c, openBlock as s, createBlock as f, unref as t, withKeys as S, withModifiers as L, isRef as M, withCtx as p, createElementBlock as h, Fragment as P, renderList as F, createElementVNode as U, toDisplayString as _, createCommentVNode as j } from "vue";
2
+ import { P as q, N as z, L as A } from "./main-BYJVoHlf.js";
3
+ const G = { class: "option-text" }, H = {
4
4
  key: 0,
5
5
  class: "option-suffix"
6
- }, T = /* @__PURE__ */ K({
6
+ }, T = /* @__PURE__ */ E({
7
7
  __name: "Select",
8
8
  props: {
9
9
  schema: {},
@@ -14,22 +14,22 @@ const H = { class: "option-text" }, I = {
14
14
  },
15
15
  emits: ["change", "submit", "update:modelValue"],
16
16
  setup(v, { emit: x }) {
17
- let r = x, b = v, { schema: J, table: g, field: a, searchData: y, modelValue: V } = R(b), k = d(!1), i = d(), m = d(a.value.control.data.data), C = () => {
17
+ let r = x, b = v, { schema: I, table: g, field: a, searchData: y, modelValue: V } = K(b), k = d(!1), i = d(), m = d(a.value.control.data.data), C = () => {
18
18
  r("submit");
19
19
  }, w = () => {
20
20
  }, B = (l) => {
21
- i.value = l, D();
22
- }, D = () => {
21
+ i.value = l, N();
22
+ }, N = () => {
23
23
  let l = { text: i.value, conditions: [] };
24
24
  a.value.control.data.conditions.forEach((o) => {
25
25
  let u = y.value[o.table][o.field];
26
26
  l.conditions.push({ name: o.name, value: u });
27
- }), G.post(a.value.control.data.route, l).then(({ data: o }) => {
27
+ }), A.post(a.value.control.data.route, l).then(({ data: o }) => {
28
28
  m.value = o;
29
29
  }).finally(() => {
30
30
  k.value = !1;
31
31
  });
32
- }, n = S({
32
+ }, n = R({
33
33
  get() {
34
34
  return V.value;
35
35
  },
@@ -38,8 +38,8 @@ const H = { class: "option-text" }, I = {
38
38
  }
39
39
  });
40
40
  return (l, o) => {
41
- const u = c("el-option"), E = c("el-select");
42
- return s(), f(E, {
41
+ const u = c("el-option"), D = c("el-select");
42
+ return s(), f(D, {
43
43
  ref: "selectRef",
44
44
  filterable: "",
45
45
  remote: "",
@@ -47,25 +47,25 @@ const H = { class: "option-text" }, I = {
47
47
  clearable: "",
48
48
  "default-first-option": "",
49
49
  "remote-show-suffix": "",
50
- placeholder: t(z)("common.please_choose") + t(A)(t(g).name, t(a).name),
50
+ placeholder: t(q)("common.please_choose") + t(z)(t(g).name, t(a).name),
51
51
  multiple: t(a).control.multiple,
52
52
  "loading-text": "加载中",
53
53
  "remote-method": t(B),
54
54
  disabled: t(a).control.readonly,
55
- onKeyup: U(q(t(C), ["alt"]), ["enter", "native"]),
55
+ onKeyup: S(L(t(C), ["alt"]), ["enter", "native"]),
56
56
  onChange: t(w),
57
57
  modelValue: t(n),
58
- "onUpdate:modelValue": o[0] || (o[0] = (e) => L(n) ? n.value = e : n = e)
58
+ "onUpdate:modelValue": o[0] || (o[0] = (e) => M(n) ? n.value = e : n = e)
59
59
  }, {
60
60
  default: p(() => [
61
- (s(!0), h(M, null, N(t(m), (e, O) => (s(), f(u, {
61
+ (s(!0), h(P, null, F(t(m), (e, J) => (s(), f(u, {
62
62
  label: e.text + (e.suffix ? "(" + e.suffix + ")" : ""),
63
63
  value: e.value,
64
64
  key: e.value
65
65
  }, {
66
66
  default: p(() => [
67
- F("span", H, _(e.text), 1),
68
- e.suffix ? (s(), h("span", I, "(" + _(e.suffix) + ")", 1)) : j("", !0)
67
+ U("span", G, _(e.text), 1),
68
+ e.suffix ? (s(), h("span", H, "(" + _(e.suffix) + ")", 1)) : j("", !0)
69
69
  ]),
70
70
  _: 2
71
71
  }, 1032, ["label", "value"]))), 128))
@@ -1,10 +1,10 @@
1
- import { defineComponent as Ue, toRefs as $e, ref as u, computed as Y, watch as Le, resolveComponent as f, openBlock as d, createElementBlock as W, normalizeClass as Be, unref as e, createElementVNode as m, createVNode as h, withCtx as s, withModifiers as De, createBlock as g, isRef as Z, Fragment as ee, renderList as le, toDisplayString as x, createCommentVNode as L, resolveDynamicComponent as qe, normalizeStyle as Ke, createTextVNode as te, nextTick as ae } from "vue";
2
- import { c as Ne, K as Pe, U as oe, q as Fe, W as P, _ as Me, t as Oe, L as We, v as ue, a as je, G as Ae, s as re } from "./main-DArl7gFs.js";
3
- import { _ as Ge } from "./Index.vue_vue_type_style_index_0_lang-CqjK1AVM.js";
4
- import { _ as ne } from "./Index.vue_vue_type_script_setup_true_lang-zlsTcQ-k.js";
5
- const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class: "row-title" }, Qe = /* @__PURE__ */ m("i", { class: "fa fa-close" }, null, -1), Xe = [
6
- Qe
7
- ], Ye = /* @__PURE__ */ m("i", { class: "fa fa-question-circle icon-question" }, null, -1), Ze = { class: "el-drawer__title" }, el = ["href"], rl = /* @__PURE__ */ Ue({
1
+ import { defineComponent as $e, toRefs as Ue, ref as u, computed as Y, watch as Le, resolveComponent as f, openBlock as d, createElementBlock as j, normalizeClass as Be, unref as e, createElementVNode as m, createVNode as h, withCtx as s, withModifiers as De, createBlock as g, isRef as Z, Fragment as ee, renderList as le, toDisplayString as x, createCommentVNode as L, resolveDynamicComponent as Ne, normalizeStyle as Pe, createTextVNode as te, nextTick as ae } from "vue";
2
+ import { e as Ke, z as qe, P as oe, N as Fe, K as q, a as Me, t as Oe, L as je, b as ue, c as Ae, G as Ge, s as re } from "./main-BYJVoHlf.js";
3
+ import { _ as He } from "./Index.vue_vue_type_style_index_0_lang-T12lwRy6.js";
4
+ import { _ as ne } from "./Index.vue_vue_type_script_setup_true_lang-C8ZEc4nU.js";
5
+ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class: "row-title" }, We = /* @__PURE__ */ m("i", { class: "fa fa-close" }, null, -1), Xe = [
6
+ We
7
+ ], Ye = /* @__PURE__ */ m("i", { class: "fa fa-question-circle icon-question" }, null, -1), Ze = { class: "el-drawer__title" }, el = ["href"], rl = /* @__PURE__ */ $e({
8
8
  __name: "Single",
9
9
  props: {
10
10
  base: {},
@@ -14,18 +14,18 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
14
14
  },
15
15
  emits: ["navigate", "load", "succeed", "close"],
16
16
  setup(se, { expose: ie, emit: de }) {
17
- let B = de, me = se, { url: ve, base: j, route: z } = $e(me), p = u(), b = u(), v = u(), r = u(), y = u(), D = u(), c = u({ table: null, layout: null }), w = u(), q = u([]), ce = u(), E = u(), R = u(), F = u(), C = u(), K = u(), i = u({ page: null, url: null, visible: !1, appendToBody: !1 }), k = u(!1), M = u(), S = u(), fe = (l) => !0, pe = (l) => {
18
- let t = P.getPath(ve.value), a = P.getPath(l);
17
+ let B = de, me = se, { url: ce, base: A, route: V } = Ue(me), p = u(), b = u(), c = u(), r = u(), y = u(), D = u(), v = u({ table: null, layout: null }), w = u(), N = u([]), ve = u(), E = u(), R = u(), F = u(), C = u(), P = u(), i = u({ page: null, url: null, visible: !1, appendToBody: !1 }), k = u(!1), M = u(), S = u(), fe = (l) => !0, pe = (l) => {
18
+ let t = q.getPath(ce.value), a = q.getPath(l);
19
19
  return t != a;
20
20
  }, be = () => {
21
- Ve();
21
+ ze();
22
22
  }, ye = (l, t) => {
23
- A("copy", l, t);
23
+ G("copy", l, t);
24
24
  }, _e = (l, t) => {
25
- A("update", l, t);
25
+ G("update", l, t);
26
26
  }, he = () => {
27
27
  i.value.visible = !1;
28
- }, A = (l, t, a) => {
28
+ }, G = (l, t, a) => {
29
29
  let n = ge(l, t);
30
30
  a.ctrlKey ? B("navigate", n) : (i.value.appendToBody = a.altKey, i.value.page = l, i.value.url = n, i.value.visible = !0);
31
31
  }, ge = (l, t = null) => {
@@ -39,20 +39,20 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
39
39
  (a.ctrlKey || k.value) && (M.value = l, S.value = Oe.clone(t), k.value = !0, S.value.fields.forEach((n) => {
40
40
  n.control.textualize = !1;
41
41
  }));
42
- }, G = (l) => {
43
- i.value.visible = !1, B("succeed", Q.value, l);
42
+ }, H = (l) => {
43
+ i.value.visible = !1, B("succeed", W.value, l);
44
44
  }, Ce = () => {
45
45
  B("close");
46
- }, H = (l, t, a, n, T) => {
47
- }, I = (l, t) => {
46
+ }, I = (l, t, a, n, T) => {
47
+ }, J = (l, t) => {
48
48
  if (t) {
49
49
  D.value = y.value.layouts.find((a) => a.type == l);
50
50
  return;
51
51
  }
52
- c.value.layout = c.value.table.layouts.find((a) => a.type == l);
52
+ v.value.layout = v.value.table.layouts.find((a) => a.type == l);
53
53
  }, ke = (l) => {
54
54
  let t = r.value.find((a) => a.name == l);
55
- c.value.table = t, c.value.layout = t.layouts[0];
55
+ v.value.table = t, v.value.layout = t.layouts[0];
56
56
  }, xe = (l) => {
57
57
  let t = Object.keys(l)[0], a = t.substring(1, t.indexOf("]"));
58
58
  r.value.find((T) => T.name == a).main || (w.value = a);
@@ -61,21 +61,21 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
61
61
  E.value.validate((n, T) => {
62
62
  if (!n)
63
63
  return xe(T), a && a(!1), !1;
64
- let U = p.value.type == "Update" ? b.value.update.route : b.value.insert.route;
65
- t && t(U, v.value), We.post(U, v.value).then(({ data: $, message: V }) => {
66
- E.value.clearValidate(), ue.success(V), G(v.value);
67
- }).catch(({ code: $, data: V, message: X }) => {
68
- if ($ != "ValidateError")
64
+ let $ = p.value.type == "Update" ? b.value.update.route : b.value.insert.route;
65
+ t && t($, c.value), je.post($, c.value).then(({ data: U, message: z }) => {
66
+ E.value.clearValidate(), ue.success(z), H(c.value);
67
+ }).catch(({ code: U, data: z, message: X }) => {
68
+ if (U != "ValidateError")
69
69
  return;
70
- q.value = V;
71
- let N = V.find((_) => _.table !== y.value.name);
72
- if (N) {
73
- let _ = r.value.find((o) => o.name == N.table);
70
+ N.value = z;
71
+ let K = z.find((_) => _.table !== y.value.name);
72
+ if (K) {
73
+ let _ = r.value.find((o) => o.name == K.table);
74
74
  _ && (w.value = _.name);
75
75
  }
76
76
  ae(() => {
77
77
  E.value.clearValidate(), E.value.validate((_, o) => {
78
- _ || (a && a(!1), q.value = []);
78
+ _ || (a && a(!1), N.value = []);
79
79
  });
80
80
  });
81
81
  }).finally(() => {
@@ -83,29 +83,29 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
83
83
  });
84
84
  });
85
85
  });
86
- }, J = (l) => {
86
+ }, Q = (l) => {
87
87
  var a, n;
88
- let t = je(l.module.type, l.module.name);
89
- Ae.setTitle(t, l.module.env), p.value = l.module, b.value = l.next, v.value = re.expandSet(l.schema, l.set), r.value = re.expandSchema(l.schema), y.value = (a = r.value) == null ? void 0 : a[0], D.value = y.value.layouts[0], ((n = r.value) == null ? void 0 : n.length) > 1 && (w.value = r.value[1].name, c.value.table = r.value[1], c.value.layout = r.value[1].layouts[0]);
88
+ let t = Ae(l.module.type, l.module.name);
89
+ Ge.setTitle(t, l.module.env), p.value = l.module, b.value = l.next, c.value = re.expandSet(l.schema, l.set), r.value = re.expandSchema(l.schema), y.value = (a = r.value) == null ? void 0 : a[0], D.value = y.value.layouts[0], ((n = r.value) == null ? void 0 : n.length) > 1 && (w.value = r.value[1].name, v.value.table = r.value[1], v.value.layout = r.value[1].layouts[0]);
90
90
  }, Se = (l) => {
91
91
  R.value && R.value.resize && R.value.resize(l), C.value && C.value.resize && C.value.resize(l);
92
92
  }, Te = (l, t) => {
93
93
  if (l == "ctrlS") {
94
94
  if (p.value.type == "Detail") {
95
- if (!K.value || !K.value.keyboard)
95
+ if (!P.value || !P.value.keyboard)
96
96
  return !1;
97
- K.value.keyboard(l, t);
97
+ P.value.keyboard(l, t);
98
98
  return;
99
99
  }
100
100
  O(t);
101
101
  }
102
- }, Ve = () => {
103
- let l = P.getUrl(z.value.path, z.value.query);
102
+ }, ze = () => {
103
+ let l = q.getUrl(V.value.path, V.value.query);
104
104
  B("load", l, !1, (t) => {
105
105
  });
106
106
  };
107
107
  (() => {
108
- J(j.value.data);
108
+ Q(A.value.data);
109
109
  })();
110
110
  let O = (l) => {
111
111
  if (!F.value.submit) {
@@ -113,26 +113,26 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
113
113
  return;
114
114
  }
115
115
  F.value.submit(l);
116
- }, ze = Y(() => {
116
+ }, Ve = Y(() => {
117
117
  let l = `/${y.value.name}/update`, t = p.value.type == "Detail" ? "detail" : "update";
118
- return Ne.getComponent(l, "partial", t);
119
- }), Q = Y(() => p.value.type.toLowerCase());
120
- return Le(() => j.value, (l) => {
121
- J(l.data), R.value.update && R.value.update(l.data), C.value && C.value.update && C.value.update(l.data);
118
+ return Ke.getComponent(l, "partial", t);
119
+ }), W = Y(() => p.value.type.toLowerCase());
120
+ return Le(() => A.value, (l) => {
121
+ Q(l.data), R.value.update && R.value.update(l.data), C.value && C.value.update && C.value.update(l.data);
122
122
  }), ie({ shouldLoad: fe, shouldSpin: pe, keyboard: Te, refresh: be, resize: Se }), (l, t) => {
123
- const a = f("el-tooltip"), n = f("el-tab-pane"), T = f("el-tabs"), U = f("el-form"), $ = f("el-scrollbar"), V = f("el-popover"), X = f("el-form-item"), N = f("el-card"), _ = f("el-drawer");
124
- return d(), W("div", {
123
+ const a = f("el-tooltip"), n = f("el-tab-pane"), T = f("el-tabs"), $ = f("el-form"), U = f("el-scrollbar"), z = f("el-popover"), X = f("el-form-item"), K = f("el-card"), _ = f("el-drawer");
124
+ return d(), j("div", {
125
125
  ref_key: "singleRef",
126
- ref: ce,
127
- class: Be(["ha-single-page", { [e(Q) + "-page"]: !0, editing: e(k) }])
126
+ ref: ve,
127
+ class: Be(["ha-single-page", { [e(W) + "-page"]: !0, editing: e(k) }])
128
128
  }, [
129
- m("div", He, [
130
- h($, { class: "main-scroller" }, {
129
+ m("div", Ie, [
130
+ h(U, { class: "main-scroller" }, {
131
131
  default: s(() => [
132
- h(U, {
132
+ h($, {
133
133
  ref_key: "formRef",
134
134
  ref: E,
135
- model: e(v),
135
+ model: e(c),
136
136
  onSubmit: t[3] || (t[3] = De(() => {
137
137
  }, ["prevent"]))
138
138
  }, {
@@ -145,11 +145,11 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
145
145
  table: e(y),
146
146
  layout: e(D),
147
147
  next: e(b),
148
- set: e(v),
149
- route: e(z),
150
- "validate-errors": e(q),
151
- onChange: e(H),
152
- onLayoutChange: t[0] || (t[0] = (o) => e(I)(o, !0)),
148
+ set: e(c),
149
+ route: e(V),
150
+ "validate-errors": e(N),
151
+ onChange: e(I),
152
+ onLayoutChange: t[0] || (t[0] = (o) => e(J)(o, !0)),
153
153
  onSubmit: e(O)
154
154
  }, null, 8, ["module", "schema", "table", "layout", "next", "set", "route", "validate-errors", "onChange", "onSubmit"]),
155
155
  e(r).length > 1 ? (d(), g(T, {
@@ -160,7 +160,7 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
160
160
  "onUpdate:modelValue": t[1] || (t[1] = (o) => Z(w) ? w.value = o : w = o)
161
161
  }, {
162
162
  default: s(() => [
163
- (d(!0), W(ee, null, le(e(r).filter((o, Ee) => Ee > 0), (o) => (d(), g(n, {
163
+ (d(!0), j(ee, null, le(e(r).filter((o, Ee) => Ee > 0), (o) => (d(), g(n, {
164
164
  name: o.name,
165
165
  key: o.name
166
166
  }, {
@@ -171,7 +171,7 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
171
171
  disabled: !o.tooltip
172
172
  }, {
173
173
  default: s(() => [
174
- m("div", null, x(e(Pe)(o.table)), 1)
174
+ m("div", null, x(e(qe)(o.table)), 1)
175
175
  ]),
176
176
  _: 2
177
177
  }, 1032, ["content", "disabled"])
@@ -181,21 +181,21 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
181
181
  ]),
182
182
  _: 1
183
183
  }, 8, ["onTabChange", "modelValue"])) : L("", !0),
184
- e(c).table ? (d(), g(ne, {
184
+ e(v).table ? (d(), g(ne, {
185
185
  key: 1,
186
186
  ref_key: "childRef",
187
187
  ref: C,
188
188
  module: e(p),
189
189
  schema: e(r),
190
- table: e(c).table,
191
- layout: e(c).layout,
190
+ table: e(v).table,
191
+ layout: e(v).layout,
192
192
  next: e(b),
193
- set: e(v),
194
- route: e(z),
195
- "validate-errors": e(q),
193
+ set: e(c),
194
+ route: e(V),
195
+ "validate-errors": e(N),
196
196
  onRowEdit: e(we),
197
- onChange: e(H),
198
- onLayoutChange: t[2] || (t[2] = (o) => e(I)(o, !1)),
197
+ onChange: e(I),
198
+ onLayoutChange: t[2] || (t[2] = (o) => e(J)(o, !1)),
199
199
  onSubmit: e(O)
200
200
  }, null, 8, ["module", "schema", "table", "layout", "next", "set", "route", "validate-errors", "onRowEdit", "onChange", "onSubmit"])) : L("", !0)
201
201
  ]),
@@ -204,7 +204,7 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
204
204
  ]),
205
205
  _: 1
206
206
  }),
207
- (d(), g(qe(e(ze)), {
207
+ (d(), g(Ne(e(Ve)), {
208
208
  ref_key: "updateRef",
209
209
  ref: F,
210
210
  class: "main-footer",
@@ -212,21 +212,21 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
212
212
  table: e(y),
213
213
  layout: e(D),
214
214
  next: e(b),
215
- set: e(v),
216
- route: e(z),
215
+ set: e(c),
216
+ route: e(V),
217
217
  onCopy: e(ye),
218
218
  onEdit: e(_e),
219
219
  onSubmit: e(Re),
220
220
  onClose: e(Ce)
221
221
  }, null, 40, ["schema", "table", "layout", "next", "set", "route", "onCopy", "onEdit", "onSubmit", "onClose"]))
222
222
  ]),
223
- e(k) ? (d(), g(N, {
223
+ e(k) ? (d(), g(K, {
224
224
  key: 0,
225
225
  class: "side-form"
226
226
  }, {
227
227
  header: s(() => [
228
- m("div", Ie, [
229
- m("div", Je, x(e(oe)("common.modify")) + " " + x(e(M)[e(S).show[0].name]), 1),
228
+ m("div", Je, [
229
+ m("div", Qe, x(e(oe)("common.modify")) + " " + x(e(M)[e(S).show[0].name]), 1),
230
230
  m("div", {
231
231
  class: "row-close",
232
232
  onClick: t[4] || (t[4] = (o) => Z(k) ? k.value = !1 : k = !1)
@@ -234,20 +234,20 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
234
234
  ])
235
235
  ]),
236
236
  default: s(() => [
237
- h($, null, {
237
+ h(U, null, {
238
238
  default: s(() => [
239
- h(U, {
239
+ h($, {
240
240
  size: "small",
241
241
  "label-width": "80px"
242
242
  }, {
243
243
  default: s(() => [
244
- (d(!0), W(ee, null, le(e(S).show, (o) => (d(), g(X, {
245
- style: Ke(o.control.height ? `height: ${o.control.height}px;` : ""),
244
+ (d(!0), j(ee, null, le(e(S).show, (o) => (d(), g(X, {
245
+ style: Pe(o.control.height ? `height: ${o.control.height}px;` : ""),
246
246
  rules: o.rules
247
247
  }, {
248
248
  label: s(() => [
249
249
  te(x(e(Fe)(e(S).name, o.name)) + " ", 1),
250
- o.control.tooltip ? (d(), g(V, {
250
+ o.control.tooltip ? (d(), g(z, {
251
251
  key: 0,
252
252
  trigger: "hover",
253
253
  placement: "top",
@@ -264,11 +264,11 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
264
264
  }, 1032, ["title"])) : L("", !0)
265
265
  ]),
266
266
  default: s(() => [
267
- h(Ge, {
267
+ h(He, {
268
268
  schema: e(r),
269
269
  table: e(S),
270
270
  field: o,
271
- set: e(v),
271
+ set: e(c),
272
272
  row: e(M)
273
273
  }, null, 8, ["schema", "table", "field", "set", "row"])
274
274
  ]),
@@ -296,16 +296,16 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
296
296
  te(x(e(b)[e(i).page].title) + " ", 1),
297
297
  m("a", {
298
298
  class: "drawer-copy",
299
- href: `${e(P).getToUrl(e(i).url)}`
299
+ href: `${e(q).getToUrl(e(i).url)}`
300
300
  }, x(e(oe)("common.link")), 9, el)
301
301
  ])
302
302
  ]),
303
303
  default: s(() => [
304
304
  h(e(Me), {
305
305
  ref_key: "pageRef",
306
- ref: K,
306
+ ref: P,
307
307
  url: e(i).url,
308
- onSucceed: e(G),
308
+ onSucceed: e(H),
309
309
  onClose: e(he)
310
310
  }, null, 8, ["url", "onSucceed", "onClose"])
311
311
  ]),
@@ -1,7 +1,7 @@
1
- import { defineComponent as $, toRefs as j, ref as n, onMounted as G, watch as M, openBlock as O, createElementBlock as I, createVNode as J, unref as i, createElementVNode as K, normalizeStyle as P, nextTick as x } from "vue";
2
- import { s as Q, w as U, i as W, k as R, v as X, N as Y } from "./main-DArl7gFs.js";
3
- import { _ as Z } from "./SearchForm.vue_vue_type_style_index_0_lang-_rdBTvY_.js";
4
- const re = /* @__PURE__ */ $({
1
+ import { defineComponent as j, toRefs as q, ref as n, onMounted as G, watch as M, openBlock as O, createElementBlock as Y, createVNode as I, unref as s, createElementVNode as J, normalizeStyle as K, nextTick as y } from "vue";
2
+ import { s as P, y as Q, n as U, Y as R, b as W, v as X } from "./main-BYJVoHlf.js";
3
+ import { _ as Z } from "./SearchForm.vue_vue_type_style_index_0_lang-23AxHYiw.js";
4
+ const re = /* @__PURE__ */ j({
5
5
  __name: "Statistic",
6
6
  props: {
7
7
  searchData: {},
@@ -15,16 +15,16 @@ const re = /* @__PURE__ */ $({
15
15
  },
16
16
  emits: ["search"],
17
17
  setup(C, { expose: A, emit: F }) {
18
- let z = F, H = C, { route: B, module: E, schema: m, table: y, layout: l, next: ee, set: u, searchData: g } = j(H), s = null, p = null, v = n(), d = n(), b = n(), S = n(), N = (t) => {
18
+ let z = F, H = C, { route: B, module: E, schema: x, table: m, layout: l, next: ee, set: u, searchData: g } = q(H), i = null, p = null, v = n(), d = n(), b = n(), S = n(), N = (t) => {
19
19
  T("search");
20
20
  }, T = (t, e = null) => {
21
21
  z(t, (r) => {
22
- x(() => {
22
+ y(() => {
23
23
  f(), e && e(r);
24
24
  });
25
25
  });
26
26
  }, f = () => {
27
- let t = W.distinct(u.value[l.value.table], (a) => a[l.value.date]), e = {
27
+ let t = U.distinct(u.value[l.value.table], (a) => a[l.value.date]), e = {
28
28
  title: { text: E.value.title, left: "center", textStyle: { color: "#777" } },
29
29
  //标题
30
30
  tooltip: { trigger: "axis" },
@@ -59,10 +59,10 @@ const re = /* @__PURE__ */ $({
59
59
  series: []
60
60
  };
61
61
  R.theme == "dark" && (e.title.textStyle.color = "rgba(255,255,255,0.8)", e.legend.textStyle.color = "rgba(255,255,255,.72)", e.xAxis.axisLabel.color = "rgba(255,255,255,.72)", e.yAxis.splitLine.lineStyle.color = "rgba(110,117,130,0.2)", e.yAxis.axisLabel.color = "rgba(255,255,255,.72)");
62
- let r = l.value.fields.find((a) => a.group && a.name != l.value.date), w = y.value.fields.find((a) => a.name == r.name).control.data.data;
63
- for (let a = 0; a < w.length; a++) {
64
- let o = w[a];
65
- o.color || X.error("颜色字段不能为空");
62
+ let r = l.value.fields.find((a) => a.group && a.name != l.value.date), _ = m.value.fields.find((a) => a.name == r.name).control.data.data;
63
+ for (let a = 0; a < _.length; a++) {
64
+ let o = _[a];
65
+ o.color || W.error("颜色字段不能为空");
66
66
  let c = {
67
67
  name: o.text,
68
68
  type: "line",
@@ -103,49 +103,49 @@ const re = /* @__PURE__ */ $({
103
103
  global: !0
104
104
  });
105
105
  for (let h = 0; h < t.length; h++) {
106
- let D = t[h], _ = u.value[l.value.table].find((L) => L[r.name] == o.value && L[l.value.date] == D);
107
- _ == null ? c.data.push(null) : c.data.push(_[l.value.value]);
106
+ let $ = t[h], w = u.value[l.value.table].find((L) => L[r.name] == o.value && L[l.value.date] == $);
107
+ w == null ? c.data.push(null) : c.data.push(w[l.value.value]);
108
108
  }
109
109
  e.series.push(c), e.legend.data.push(o.text);
110
110
  }
111
- e.xAxis.data.push(...t), s.setOption(e);
111
+ e.xAxis.data.push(...t), i.setOption(e);
112
112
  }, k = () => {
113
113
  var r;
114
- let t = Y.getHeight([(r = d.value) == null ? void 0 : r.$el]), e = S.value.getBoundingClientRect();
114
+ let t = X.getHeight([(r = d.value) == null ? void 0 : r.$el]), e = S.value.getBoundingClientRect();
115
115
  v.value = e.height - t - 10 - 1;
116
116
  }, V = (t) => {
117
- d.value.resize(t), x(() => {
118
- k(), s == null || s.resize();
117
+ d.value.resize(t), y(() => {
118
+ k(), i == null || i.resize();
119
119
  });
120
- }, q = () => {
121
- k(), x(() => {
122
- s = p.init(b.value), f();
120
+ }, D = () => {
121
+ k(), y(() => {
122
+ i = p.init(b.value), f();
123
123
  });
124
124
  };
125
125
  return G(async () => {
126
- g.value = Q.getConditionForm(m.value, B.value.query.condition), p = await U.getECharts(), q();
126
+ g.value = P.getConditionForm(x.value, B.value.query.condition), p = await Q.getECharts(), D();
127
127
  }), M(() => l.value, (t, e) => {
128
128
  f();
129
- }), A({ resize: V }), (t, e) => (O(), I("div", {
129
+ }), A({ resize: V }), (t, e) => (O(), Y("div", {
130
130
  ref_key: "statisticRef",
131
131
  ref: S,
132
132
  class: "ha-statistic-layout"
133
133
  }, [
134
- J(Z, {
134
+ I(Z, {
135
135
  ref_key: "searchRef",
136
136
  ref: d,
137
- schema: i(m),
138
- table: i(y),
139
- layout: i(l),
140
- set: i(u),
141
- "search-data": i(g),
142
- onChange: i(N)
137
+ schema: s(x),
138
+ table: s(m),
139
+ layout: s(l),
140
+ set: s(u),
141
+ "search-data": s(g),
142
+ onChange: s(N)
143
143
  }, null, 8, ["schema", "table", "layout", "set", "search-data", "onChange"]),
144
- K("div", {
144
+ J("div", {
145
145
  ref_key: "chartRef",
146
146
  ref: b,
147
147
  class: "chart",
148
- style: P({ height: i(v) + "px" })
148
+ style: K({ height: s(v) + "px" })
149
149
  }, null, 4)
150
150
  ], 512));
151
151
  }
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./Stock.vue_vue_type_style_index_0_lang-B7HB-me6.js";
1
+ import { _ as f } from "./Stock.vue_vue_type_style_index_0_lang-B-b3Lj_h.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as c, toRefs as m, openBlock as u, createBlock as p, unref as e } from "vue";
2
- import { _ } from "./Stock.vue_vue_type_style_index_0_lang-B7HB-me6.js";
2
+ import { _ } from "./Stock.vue_vue_type_style_index_0_lang-B-b3Lj_h.js";
3
3
  const b = /* @__PURE__ */ c({
4
4
  __name: "Stock",
5
5
  props: {
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as F, toRefs as R, ref as T, onMounted as B, openBlock as E, createBlock as G, unref as m, withCtx as P, createElementVNode as A, createTextVNode as V, toDisplayString as b } from "vue";
2
- import { w as O, y as K, i as N, k as S } from "./main-DArl7gFs.js";
3
- const j = /* @__PURE__ */ A("div", { class: "ha-empty" }, "暂无行情数据", -1), q = [
2
+ import { y as O, f as K, n as N, Y as S } from "./main-BYJVoHlf.js";
3
+ const j = /* @__PURE__ */ A("div", { class: "ha-empty" }, "暂无行情数据", -1), z = [
4
4
  j
5
- ], U = /* @__PURE__ */ F({
5
+ ], Q = /* @__PURE__ */ F({
6
6
  __name: "Stock",
7
7
  props: {
8
8
  searchData: {},
@@ -15,7 +15,7 @@ const j = /* @__PURE__ */ A("div", { class: "ha-empty" }, "暂无行情数据",
15
15
  set: {}
16
16
  },
17
17
  setup(k) {
18
- let L = k, { module: z, schema: W, table: v, layout: n, next: H, set: f } = R(L), y = null, c = null, p = "#04aa4e", x = "#ff5945", w = T(), u = { history: null, week: null, month: null }, _ = (t) => {
18
+ let L = k, { module: W, schema: Y, table: v, layout: n, next: q, set: f } = R(L), y = null, c = null, p = "#04aa4e", x = "#ff5945", w = T(), u = { history: null, week: null, month: null }, _ = (t) => {
19
19
  let o = N.orderBy(t, (i) => i[n.value.time], !1), e = [], l = [], r = [];
20
20
  for (let i = 0; i < o.length; i++) {
21
21
  let a = o[i];
@@ -284,7 +284,7 @@ const j = /* @__PURE__ */ A("div", { class: "ha-empty" }, "暂无行情数据",
284
284
  ref_key: "chartRef",
285
285
  ref: w,
286
286
  class: "chart"
287
- }, q, 512),
287
+ }, z, 512),
288
288
  V(" 30日开盘振幅:" + b(m(u).month) + "% 7日开盘振幅:" + b(m(u).week) + "% 历史开盘振幅:" + b(m(u).history) + "% ", 1)
289
289
  ]),
290
290
  _: 1
@@ -292,5 +292,5 @@ const j = /* @__PURE__ */ A("div", { class: "ha-empty" }, "暂无行情数据",
292
292
  }
293
293
  });
294
294
  export {
295
- U as _
295
+ Q as _
296
296
  };
@@ -10,7 +10,7 @@ const x = /* @__PURE__ */ u({
10
10
  modelValue: { type: [String, Number, Boolean] }
11
11
  },
12
12
  setup(a) {
13
- let r = f(() => import("./Dictionary-thXsHbOo.js")), n = a, { schema: m, table: s, field: i, set: d, row: p, modelValue: t } = c(n);
13
+ let r = f(() => import("./Dictionary-DmarNVsi.js")), n = a, { schema: m, table: s, field: i, set: d, row: p, modelValue: t } = c(n);
14
14
  return (h, l) => (b(), w(e(r), {
15
15
  schema: e(m),
16
16
  table: e(s),