halo-pc 1.0.21 → 1.0.23

Sign up to get free protection for your applications and to get access to all the features.
Files changed (171) hide show
  1. package/dist/Article-4S7jNdlM.js +200 -0
  2. package/dist/{ArticleFooter-CbvmQHCn.js → ArticleFooter-DQs1A7g2.js} +24 -18
  3. package/dist/Autocomplete-B9SJNrNq.js +53 -0
  4. package/dist/{Autocomplete-BrKsj5vx.js → Autocomplete-BXwtzACg.js} +1 -1
  5. package/dist/Autocomplete-BZNDoWFj.js +54 -0
  6. package/dist/{CSharp-DGmv2biT.js → CSharp-aXdVWxPS.js} +1 -1
  7. package/dist/{Calender-dCiW7eIK.js → Calender-DSckLCh-.js} +4 -4
  8. package/dist/Callback-xlj8oj2-.js +26 -0
  9. package/dist/Cascader-Cwi5mukb.js +87 -0
  10. package/dist/Cascader-D1RbjsMs.js +47 -0
  11. package/dist/Checkbox-DFnVivE9.js +76 -0
  12. package/dist/{Checkbox-DklZD5ff.js → Checkbox-DtNMPsX4.js} +1 -1
  13. package/dist/{Code-DVZ9QWgE.js → Code-B2jpV8ek.js} +1 -1
  14. package/dist/Code-CEafFSlR.js +4 -0
  15. package/dist/Code-CTmcyEEu.js +60 -0
  16. package/dist/Code-DEOvcbgy.js +42 -0
  17. package/dist/Code.vue_vue_type_style_index_0_lang-Cf1QzL0C.js +65 -0
  18. package/dist/Column-zAYqqGgI.js +74 -0
  19. package/dist/Comment-BZTVtxyP.js +104 -0
  20. package/dist/Compare-DMDVEK_Q.js +63 -0
  21. package/dist/Compare-Dy_YDKN2.js +43 -0
  22. package/dist/Copy-KA_-9J5g.js +49 -0
  23. package/dist/Custom-BpQzSpoK.js +57 -0
  24. package/dist/{DataExport-DAk1d4uG.js → DataExport-CU9MMI6C.js} +1 -1
  25. package/dist/{DataExport.vue_vue_type_script_setup_true_lang-Clh4Jvxi.js → DataExport.vue_vue_type_script_setup_true_lang-DdczhsmD.js} +42 -37
  26. package/dist/{DataImport-BLOSIbQ2.js → DataImport-Dzq9P4hO.js} +1 -1
  27. package/dist/{DataImport.vue_vue_type_script_setup_true_lang-D5J7e_59.js → DataImport.vue_vue_type_script_setup_true_lang-BdDLixcQ.js} +64 -60
  28. package/dist/{Date-D1KihBir.js → Date-BD5syhZL.js} +1 -1
  29. package/dist/Date-yqT5zILQ.js +43 -0
  30. package/dist/DateRange-CUQsaLxD.js +63 -0
  31. package/dist/DateTime-DcerQByM.js +44 -0
  32. package/dist/{DateTime-Dwg6aUf3.js → DateTime-hLc--zka.js} +1 -1
  33. package/dist/{DateTimeRange-Cir1-Js8.js → DateTimeRange-CSRaF4s1.js} +19 -13
  34. package/dist/Daterange-DY2i3jwP.js +63 -0
  35. package/dist/{Decimal-tv9vqaXk.js → Decimal-DY34o2Nh.js} +1 -1
  36. package/dist/Delete-CXnvlNw9.js +62 -0
  37. package/dist/{Detail-B2rtvufA.js → Detail-BYlDGKVP.js} +22 -17
  38. package/dist/Dictionary-DtXqTf_k.js +59 -0
  39. package/dist/Email-ofMPw09E.js +54 -0
  40. package/dist/{File-C63qevce.js → File-czipSVR0.js} +33 -28
  41. package/dist/Image-BwJO-IEo.js +9 -0
  42. package/dist/{Index-Cc_CDbUJ.js → Index-BSZ_tPMy.js} +1 -1
  43. package/dist/Index-Bwy9Q7qy.js +4 -0
  44. package/dist/{Index-Cev7Nudv.js → Index-CK25oTiA.js} +1 -1
  45. package/dist/Index-Ch5_Jqsf.js +4 -0
  46. package/dist/{Index-BD6O3A9N.js → Index-DIUPLGQ4.js} +25 -20
  47. package/dist/Index-DnNVMYOZ.js +4 -0
  48. package/dist/Index-j9BffBys.js +178 -0
  49. package/dist/{Index-B6Ec8rbl.js → Index-qOyfJhdG.js} +1 -1
  50. package/dist/{Index.vue_vue_type_script_setup_true_lang-DaoT5edv.js → Index.vue_vue_type_script_setup_true_lang-Bp4JjtSz.js} +21 -16
  51. package/dist/{Index.vue_vue_type_script_setup_true_lang-xNPG8cCE.js → Index.vue_vue_type_script_setup_true_lang-DtZPmPAC.js} +21 -16
  52. package/dist/{Index.vue_vue_type_style_index_0_lang-F7HqBnCS.js → Index.vue_vue_type_style_index_0_lang-CTTyswoD.js} +40 -35
  53. package/dist/{Install-CTAGNKPW.js → Install-qFVqjd7y.js} +29 -24
  54. package/dist/Int-BWcRpPzt.js +44 -0
  55. package/dist/Int-BYyavcrM.js +46 -0
  56. package/dist/List-BejoBArm.js +79 -0
  57. package/dist/Maintaince-Dlh2ICnO.js +20 -0
  58. package/dist/{Markdown-BJB6rQY8.js → Markdown-DymmFy2X.js} +1 -1
  59. package/dist/{Month-ui1XorBW.js → Month-C5_ANmVr.js} +1 -1
  60. package/dist/Month-Cf8e0cin.js +43 -0
  61. package/dist/Month-DaYaF2WK.js +44 -0
  62. package/dist/{Normal-Cf7kP6RU.js → Normal-NYkjZ2aA.js} +49 -45
  63. package/dist/Paging-DoQ_cXwj.js +99 -0
  64. package/dist/{PagingHeader-BkFBl-r_.js → PagingHeader-BhwoSfFl.js} +31 -25
  65. package/dist/{PagingRow-eXCadgdO.js → PagingRow-BF6pUhoJ.js} +28 -22
  66. package/dist/QueryApi-CPQ67lb4.js +20 -0
  67. package/dist/{Racebar-ClXzi9hV.js → Racebar-BNPXg9aN.js} +42 -37
  68. package/dist/{Radio-llyoK7PI.js → Radio-wHwEjg6V.js} +1 -1
  69. package/dist/{Register-BaHhaZMu.js → Register-B4Bc8s-2.js} +70 -66
  70. package/dist/RichText-Cj5QP79L.js +47 -0
  71. package/dist/{SearchFooter-BgJxQrMo.js → SearchFooter-zNYx9YkN.js} +1 -1
  72. package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-C6DtjpFD.js → SearchFooter.vue_vue_type_style_index_0_lang-CVxX9q-U.js} +1 -1
  73. package/dist/{SearchForm-CroUQ_3K.js → SearchForm-CJ3ru63a.js} +1 -1
  74. package/dist/{SearchForm.vue_vue_type_style_index_0_lang-DEu6hHys.js → SearchForm.vue_vue_type_style_index_0_lang-DDH5N323.js} +37 -33
  75. package/dist/{Select-BtNeUq9h.js → Select-BDaDhqW7.js} +1 -1
  76. package/dist/Select-DFLY8nGY.js +86 -0
  77. package/dist/{Select-BYw63gZy.js → Select-WXibWkE0.js} +35 -30
  78. package/dist/{Single-CCVi3Pcj.js → Single-CmQgQl_u.js} +106 -102
  79. package/dist/{Statistic-g3nQvsbW.js → Statistic-BuU_GxqZ.js} +34 -30
  80. package/dist/{Stock-C6Fxo31l.js → Stock-B7NgfM19.js} +1 -1
  81. package/dist/{Stock-CNqLeSld.js → Stock-CDJ-AVw-.js} +1 -1
  82. package/dist/{Stock.vue_vue_type_style_index_0_lang-BqXBN6CJ.js → Stock.vue_vue_type_style_index_0_lang-pZYnIJLp.js} +30 -25
  83. package/dist/{Switch-NMkH-rhl.js → Switch-DHf-0HZD.js} +1 -1
  84. package/dist/{Table-DpA4dO4P.js → Table-7P4KXMsy.js} +66 -61
  85. package/dist/{Table-Cdd_tPoL.js → Table-CN-KYO1R.js} +69 -66
  86. package/dist/Text-C05EoDxO.js +59 -0
  87. package/dist/{Text-DanSgaL9.js → Text-Da3ROjFC.js} +18 -12
  88. package/dist/Text-DqapEwUL.js +4 -0
  89. package/dist/Text.vue_vue_type_style_index_0_lang-DKX9_aI4.js +59 -0
  90. package/dist/TextLink-CQ_46bry.js +65 -0
  91. package/dist/{Textarea-HhP_VFJV.js → Textarea-B91EwIdj.js} +1 -1
  92. package/dist/Time-DxyveGcA.js +43 -0
  93. package/dist/Timeline-C1xOEcU4.js +59 -0
  94. package/dist/Tree-BK6p6Ake.js +122 -0
  95. package/dist/{Tree-Ck_7r3nf.js → Tree-DxJKaqc6.js} +101 -97
  96. package/dist/TreeNode-C84IoqkK.js +42 -0
  97. package/dist/{Update-DrmLFoty.js → Update-D5cXmHyf.js} +20 -15
  98. package/dist/{UpdateChild-CGCn-Eh4.js → UpdateChild-DvrF1nBA.js} +23 -17
  99. package/dist/Upload-CK-ALAKV.js +72 -0
  100. package/dist/Upload-CRpCHz3m.js +150 -0
  101. package/dist/UploadApi-B-7WPVHD.js +20 -0
  102. package/dist/Year-BOL9ynRU.js +47 -0
  103. package/dist/{Year-RGAEzf_V.js → Year-CwaPwkLN.js} +1 -1
  104. package/dist/assets/@intlify-BISCQg1h.js +2189 -0
  105. package/dist/assets/@vue-aVYGocXp.js +93 -0
  106. package/dist/assets/clone-BZn0cTAu.js +134 -0
  107. package/dist/assets/file-saver-CwlpTZSc.js +74 -0
  108. package/dist/assets/liquidjs-C-LVcoaY.js +2893 -0
  109. package/dist/assets/moment-h96o7c8I.js +2578 -0
  110. package/dist/assets/sprintf-js-BPTdvBYM.js +148 -0
  111. package/dist/assets/underscore-B0BCaBxV.js +1070 -0
  112. package/dist/assets/underscore.string-DVXD2SZo.js +425 -0
  113. package/dist/assets/util-deprecate-Dzun97re.js +28 -0
  114. package/dist/assets/vue-i18n-CLr3brPz.js +1670 -0
  115. package/dist/main-CnPQ_RYM.js +8948 -0
  116. package/dist/main.js +130 -130
  117. package/dist/style.css +1 -1
  118. package/package.json +1 -1
  119. package/dist/Article-D3N6eVpH.js +0 -195
  120. package/dist/Autocomplete-C1Q-qo5y.js +0 -49
  121. package/dist/Autocomplete-C_t_3Onz.js +0 -48
  122. package/dist/Callback-BcjLHYz6.js +0 -20
  123. package/dist/Cascader-BMs1Kw-s.js +0 -81
  124. package/dist/Cascader-BoZLMQjq.js +0 -41
  125. package/dist/Checkbox-DeuCkQ_E.js +0 -70
  126. package/dist/Code-CmB3ZGnM.js +0 -54
  127. package/dist/Code-Q9ETcIfA.js +0 -36
  128. package/dist/Code-hiW76EUm.js +0 -4
  129. package/dist/Code.vue_vue_type_style_index_0_lang-DJO46RBx.js +0 -59
  130. package/dist/Column-K0p0pVuf.js +0 -69
  131. package/dist/Comment-B_jDWUXE.js +0 -98
  132. package/dist/Compare-CziDSVLD.js +0 -37
  133. package/dist/Compare-DFDzyQIR.js +0 -57
  134. package/dist/Copy-gHXEFE58.js +0 -43
  135. package/dist/Custom-DS1OrDHT.js +0 -51
  136. package/dist/Date-BOrgXdKV.js +0 -37
  137. package/dist/DateRange-Clg_We_d.js +0 -57
  138. package/dist/DateTime-Ba-L9NIq.js +0 -38
  139. package/dist/Daterange-Gaj6hNOK.js +0 -57
  140. package/dist/Delete-HzVURBlh.js +0 -57
  141. package/dist/Dictionary-DKnp-UJn.js +0 -55
  142. package/dist/Email-CpOxaSSw.js +0 -48
  143. package/dist/Image-DRIunv3_.js +0 -9
  144. package/dist/Index-DSKuNKCT.js +0 -4
  145. package/dist/Index-QIBRYf1L.js +0 -4
  146. package/dist/Index-ZOfKMgat.js +0 -4
  147. package/dist/Index-bxLda8lZ.js +0 -174
  148. package/dist/Int-DmNjhEfK.js +0 -38
  149. package/dist/Int-nUzbSSOv.js +0 -41
  150. package/dist/List-gNI3y_wH.js +0 -74
  151. package/dist/Maintaince-pTASKuMA.js +0 -14
  152. package/dist/Month-CHfaIo8p.js +0 -38
  153. package/dist/Month-DgztqRaq.js +0 -37
  154. package/dist/Paging-CBgVct8q.js +0 -95
  155. package/dist/QueryApi-Wf86Sm6m.js +0 -13
  156. package/dist/RichText-Cc_jptgY.js +0 -41
  157. package/dist/Select-wxKjwxJj.js +0 -80
  158. package/dist/Text-DgZjeg-u.js +0 -4
  159. package/dist/Text-GuLK7BYX.js +0 -53
  160. package/dist/Text.vue_vue_type_style_index_0_lang-CYGKr6vh.js +0 -53
  161. package/dist/TextLink-B_Ur1pg0.js +0 -59
  162. package/dist/Time-CmyrAm3i.js +0 -37
  163. package/dist/Timeline-B85T2wBn.js +0 -53
  164. package/dist/Tree-OqvNLgYj.js +0 -118
  165. package/dist/TreeNode-Ba2f55wK.js +0 -37
  166. package/dist/Upload-D9HeSZCg.js +0 -68
  167. package/dist/Upload-DXADyB6r.js +0 -147
  168. package/dist/UploadApi-DAT-xdsM.js +0 -13
  169. package/dist/Year-Dx_qNPrz.js +0 -41
  170. package/dist/assets/halo-fe-idvmXC0t.js +0 -15923
  171. package/dist/main-COiaaxGk.js +0 -3542
@@ -1,11 +1,15 @@
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 Ke, normalizeStyle as Pe, createTextVNode as te, nextTick as ae } from "vue";
2
- import { aO as Ne, P as oe, aK as qe, K as q, t as Oe, L as Fe, f as ue, e as Me, G as je } from "./assets/halo-fe-idvmXC0t.js";
3
- import { c as Ae, _ as Ge, s as re } from "./main-COiaaxGk.js";
4
- import { _ as He } from "./Index.vue_vue_type_style_index_0_lang-F7HqBnCS.js";
5
- import { _ as ne } from "./Index.vue_vue_type_script_setup_true_lang-xNPG8cCE.js";
1
+ import { defineComponent as Ue, toRefs as $e, ref as r, computed as Y, watch as Be, resolveComponent as p, openBlock as d, createElementBlock as H, normalizeClass as De, unref as e, createElementVNode as m, createVNode as h, withCtx as s, withModifiers as Le, createBlock as g, isRef as Z, Fragment as ee, renderList as le, toDisplayString as x, createCommentVNode as B, resolveDynamicComponent as Ne, normalizeStyle as Oe, createTextVNode as te, nextTick as ae } from "vue";
2
+ import "./assets/underscore-B0BCaBxV.js";
3
+ import "./assets/underscore.string-DVXD2SZo.js";
4
+ import { d as Pe, e as qe, t as oe, f as Ke, U as q, a as je, O as Fe, h as He, m as re, b as Me, i as Ae, s as ue } from "./main-CnPQ_RYM.js";
5
+ import "./assets/file-saver-CwlpTZSc.js";
6
+ import "./assets/moment-h96o7c8I.js";
7
+ import "./assets/liquidjs-C-LVcoaY.js";
8
+ import { _ as Ge } from "./Index.vue_vue_type_style_index_0_lang-CTTyswoD.js";
9
+ import { _ as ne } from "./Index.vue_vue_type_script_setup_true_lang-DtZPmPAC.js";
6
10
  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 = [
7
11
  We
8
- ], Ye = /* @__PURE__ */ m("i", { class: "fa fa-question-circle icon-question" }, null, -1), Ze = { class: "el-drawer__title" }, el = ["href"], nl = /* @__PURE__ */ $e({
12
+ ], Ye = /* @__PURE__ */ m("i", { class: "fa fa-question-circle icon-question" }, null, -1), Ze = { class: "el-drawer__title" }, el = ["href"], ml = /* @__PURE__ */ Ue({
9
13
  __name: "Single",
10
14
  props: {
11
15
  base: {},
@@ -15,68 +19,68 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
15
19
  },
16
20
  emits: ["navigate", "load", "succeed", "close"],
17
21
  setup(se, { expose: ie, emit: de }) {
18
- let B = de, me = se, { url: ce, base: A, route: z } = Ue(me), p = u(), b = u(), c = u(), r = u(), y = u(), D = u(), v = u({ table: null, layout: null }), w = u(), K = u([]), ve = u(), E = u(), R = u(), O = u(), C = u(), P = u(), i = u({ page: null, url: null, visible: !1, appendToBody: !1 }), k = u(!1), F = u(), S = u(), fe = (l) => !0, pe = (l) => {
22
+ let D = de, me = se, { url: ce, base: M, route: z } = $e(me), f = r(), b = r(), c = r(), u = r(), _ = r(), L = r(), v = r({ table: null, layout: null }), w = r(), N = r([]), ve = r(), E = r(), S = r(), K = r(), C = r(), O = r(), i = r({ page: null, url: null, visible: !1, appendToBody: !1 }), k = r(!1), j = r(), R = r(), pe = (l) => !0, fe = (l) => {
19
23
  let t = q.getPath(ce.value), a = q.getPath(l);
20
24
  return t != a;
21
25
  }, be = () => {
22
26
  Ve();
23
- }, ye = (l, t) => {
24
- G("copy", l, t);
25
27
  }, _e = (l, t) => {
26
- G("update", l, t);
28
+ A("copy", l, t);
29
+ }, ye = (l, t) => {
30
+ A("update", l, t);
27
31
  }, he = () => {
28
32
  i.value.visible = !1;
29
- }, G = (l, t, a) => {
33
+ }, A = (l, t, a) => {
30
34
  let n = ge(l, t);
31
- a.ctrlKey ? B("navigate", n) : (i.value.appendToBody = a.altKey, i.value.page = l, i.value.url = n, i.value.visible = !0);
35
+ a.ctrlKey ? D("navigate", n) : (i.value.appendToBody = a.altKey, i.value.page = l, i.value.url = n, i.value.visible = !0);
32
36
  }, ge = (l, t = null) => {
33
37
  let a = `${b.value[l].route}`;
34
38
  if (t != null) {
35
- let n = t[y.value.key.name];
39
+ let n = t[_.value.key.name];
36
40
  a += `?id=${n}`;
37
41
  }
38
42
  return a;
39
43
  }, we = (l, t, a) => {
40
- (a.ctrlKey || k.value) && (F.value = l, S.value = Oe.clone(t), k.value = !0, S.value.fields.forEach((n) => {
44
+ (a.ctrlKey || k.value) && (j.value = l, R.value = Fe.clone(t), k.value = !0, R.value.fields.forEach((n) => {
41
45
  n.control.textualize = !1;
42
46
  }));
43
- }, H = (l) => {
44
- i.value.visible = !1, B("succeed", W.value, l);
47
+ }, G = (l) => {
48
+ i.value.visible = !1, D("succeed", W.value, l);
45
49
  }, Ce = () => {
46
- B("close");
50
+ D("close");
47
51
  }, I = (l, t, a, n, T) => {
48
52
  }, J = (l, t) => {
49
53
  if (t) {
50
- D.value = y.value.layouts.find((a) => a.type == l);
54
+ L.value = _.value.layouts.find((a) => a.type == l);
51
55
  return;
52
56
  }
53
57
  v.value.layout = v.value.table.layouts.find((a) => a.type == l);
54
58
  }, ke = (l) => {
55
- let t = r.value.find((a) => a.name == l);
59
+ let t = u.value.find((a) => a.name == l);
56
60
  v.value.table = t, v.value.layout = t.layouts[0];
57
61
  }, xe = (l) => {
58
62
  let t = Object.keys(l)[0], a = t.substring(1, t.indexOf("]"));
59
- r.value.find((T) => T.name == a).main || (w.value = a);
60
- }, Re = (l, t = null, a = null) => {
63
+ u.value.find((T) => T.name == a).main || (w.value = a);
64
+ }, Se = (l, t = null, a = null) => {
61
65
  ae(() => {
62
66
  E.value.validate((n, T) => {
63
67
  if (!n)
64
68
  return xe(T), a && a(!1), !1;
65
- let $ = p.value.type == "Update" ? b.value.update.route : b.value.insert.route;
66
- t && t($, c.value), Fe.post($, c.value).then(({ data: U, message: V }) => {
67
- E.value.clearValidate(), ue.success(V), H(c.value);
68
- }).catch(({ code: U, data: V, message: X }) => {
69
- if (U != "ValidateError")
69
+ let U = f.value.type == "Update" ? b.value.update.route : b.value.insert.route;
70
+ t && t(U, c.value), He.post(U, c.value).then(({ data: $, message: V }) => {
71
+ E.value.clearValidate(), re.success(V), G(c.value);
72
+ }).catch(({ code: $, data: V, message: X }) => {
73
+ if ($ != "ValidateError")
70
74
  return;
71
- K.value = V;
72
- let N = V.find((_) => _.table !== y.value.name);
73
- if (N) {
74
- let _ = r.value.find((o) => o.name == N.table);
75
- _ && (w.value = _.name);
75
+ N.value = V;
76
+ let P = V.find((y) => y.table !== _.value.name);
77
+ if (P) {
78
+ let y = u.value.find((o) => o.name == P.table);
79
+ y && (w.value = y.name);
76
80
  }
77
81
  ae(() => {
78
- E.value.clearValidate(), E.value.validate((_, o) => {
79
- _ || (a && a(!1), K.value = []);
82
+ E.value.clearValidate(), E.value.validate((y, o) => {
83
+ y || (a && a(!1), N.value = []);
80
84
  });
81
85
  });
82
86
  }).finally(() => {
@@ -87,73 +91,73 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
87
91
  }, Q = (l) => {
88
92
  var a, n;
89
93
  let t = Me(l.module.type, l.module.name);
90
- je.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]);
91
- }, Se = (l) => {
92
- R.value && R.value.resize && R.value.resize(l), C.value && C.value.resize && C.value.resize(l);
94
+ Ae.setTitle(t, l.module.env), f.value = l.module, b.value = l.next, c.value = ue.expandSet(l.schema, l.set), u.value = ue.expandSchema(l.schema), _.value = (a = u.value) == null ? void 0 : a[0], L.value = _.value.layouts[0], ((n = u.value) == null ? void 0 : n.length) > 1 && (w.value = u.value[1].name, v.value.table = u.value[1], v.value.layout = u.value[1].layouts[0]);
95
+ }, Re = (l) => {
96
+ S.value && S.value.resize && S.value.resize(l), C.value && C.value.resize && C.value.resize(l);
93
97
  }, Te = (l, t) => {
94
98
  if (l == "ctrlS") {
95
- if (p.value.type == "Detail") {
96
- if (!P.value || !P.value.keyboard)
99
+ if (f.value.type == "Detail") {
100
+ if (!O.value || !O.value.keyboard)
97
101
  return !1;
98
- P.value.keyboard(l, t);
102
+ O.value.keyboard(l, t);
99
103
  return;
100
104
  }
101
- M(t);
105
+ F(t);
102
106
  }
103
107
  }, Ve = () => {
104
108
  let l = q.getUrl(z.value.path, z.value.query);
105
- B("load", l, !1, (t) => {
109
+ D("load", l, !1, (t) => {
106
110
  });
107
111
  };
108
112
  (() => {
109
- Q(A.value.data);
113
+ Q(M.value.data);
110
114
  })();
111
- let M = (l) => {
112
- if (!O.value.submit) {
113
- ue.notify("提示", "请在子组件暴露submit方法来实现快捷提交", "warning");
115
+ let F = (l) => {
116
+ if (!K.value.submit) {
117
+ re.notify("提示", "请在子组件暴露submit方法来实现快捷提交", "warning");
114
118
  return;
115
119
  }
116
- O.value.submit(l);
120
+ K.value.submit(l);
117
121
  }, ze = Y(() => {
118
- let l = `/${y.value.name}/update`, t = p.value.type == "Detail" ? "detail" : "update";
119
- return Ae.getComponent(l, "partial", t);
120
- }), W = Y(() => p.value.type.toLowerCase());
121
- return Le(() => A.value, (l) => {
122
- Q(l.data), R.value.update && R.value.update(l.data), C.value && C.value.update && C.value.update(l.data);
123
- }), ie({ shouldLoad: fe, shouldSpin: pe, keyboard: Te, refresh: be, resize: Se }), (l, t) => {
124
- const a = f("el-tooltip"), n = f("el-tab-pane"), T = f("el-tabs"), $ = f("el-form"), U = f("el-scrollbar"), V = f("el-popover"), X = f("el-form-item"), N = f("el-card"), _ = f("el-drawer");
125
- return d(), j("div", {
122
+ let l = `/${_.value.name}/update`, t = f.value.type == "Detail" ? "detail" : "update";
123
+ return Pe.getComponent(l, "partial", t);
124
+ }), W = Y(() => f.value.type.toLowerCase());
125
+ return Be(() => M.value, (l) => {
126
+ Q(l.data), S.value.update && S.value.update(l.data), C.value && C.value.update && C.value.update(l.data);
127
+ }), ie({ shouldLoad: pe, shouldSpin: fe, keyboard: Te, refresh: be, resize: Re }), (l, t) => {
128
+ const a = p("el-tooltip"), n = p("el-tab-pane"), T = p("el-tabs"), U = p("el-form"), $ = p("el-scrollbar"), V = p("el-popover"), X = p("el-form-item"), P = p("el-card"), y = p("el-drawer");
129
+ return d(), H("div", {
126
130
  ref_key: "singleRef",
127
131
  ref: ve,
128
- class: Be(["ha-single-page", { [e(W) + "-page"]: !0, editing: e(k) }])
132
+ class: De(["ha-single-page", { [e(W) + "-page"]: !0, editing: e(k) }])
129
133
  }, [
130
134
  m("div", Ie, [
131
- h(U, { class: "main-scroller" }, {
135
+ h($, { class: "main-scroller" }, {
132
136
  default: s(() => [
133
- h($, {
137
+ h(U, {
134
138
  ref_key: "formRef",
135
139
  ref: E,
136
140
  model: e(c),
137
- onSubmit: t[3] || (t[3] = De(() => {
141
+ onSubmit: t[3] || (t[3] = Le(() => {
138
142
  }, ["prevent"]))
139
143
  }, {
140
144
  default: s(() => [
141
145
  h(ne, {
142
146
  ref_key: "mainRef",
143
- ref: R,
144
- module: e(p),
145
- schema: e(r),
146
- table: e(y),
147
- layout: e(D),
147
+ ref: S,
148
+ module: e(f),
149
+ schema: e(u),
150
+ table: e(_),
151
+ layout: e(L),
148
152
  next: e(b),
149
153
  set: e(c),
150
154
  route: e(z),
151
- "validate-errors": e(K),
155
+ "validate-errors": e(N),
152
156
  onChange: e(I),
153
157
  onLayoutChange: t[0] || (t[0] = (o) => e(J)(o, !0)),
154
- onSubmit: e(M)
158
+ onSubmit: e(F)
155
159
  }, null, 8, ["module", "schema", "table", "layout", "next", "set", "route", "validate-errors", "onChange", "onSubmit"]),
156
- e(r).length > 1 ? (d(), g(T, {
160
+ e(u).length > 1 ? (d(), g(T, {
157
161
  key: 0,
158
162
  type: "border-card",
159
163
  onTabChange: e(ke),
@@ -161,7 +165,7 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
161
165
  "onUpdate:modelValue": t[1] || (t[1] = (o) => Z(w) ? w.value = o : w = o)
162
166
  }, {
163
167
  default: s(() => [
164
- (d(!0), j(ee, null, le(e(r).filter((o, Ee) => Ee > 0), (o) => (d(), g(n, {
168
+ (d(!0), H(ee, null, le(e(u).filter((o, Ee) => Ee > 0), (o) => (d(), g(n, {
165
169
  name: o.name,
166
170
  key: o.name
167
171
  }, {
@@ -172,7 +176,7 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
172
176
  disabled: !o.tooltip
173
177
  }, {
174
178
  default: s(() => [
175
- m("div", null, x(e(Ne)(o.table)), 1)
179
+ m("div", null, x(e(qe)(o.table)), 1)
176
180
  ]),
177
181
  _: 2
178
182
  }, 1032, ["content", "disabled"])
@@ -181,53 +185,53 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
181
185
  }, 1032, ["name"]))), 128))
182
186
  ]),
183
187
  _: 1
184
- }, 8, ["onTabChange", "modelValue"])) : L("", !0),
188
+ }, 8, ["onTabChange", "modelValue"])) : B("", !0),
185
189
  e(v).table ? (d(), g(ne, {
186
190
  key: 1,
187
191
  ref_key: "childRef",
188
192
  ref: C,
189
- module: e(p),
190
- schema: e(r),
193
+ module: e(f),
194
+ schema: e(u),
191
195
  table: e(v).table,
192
196
  layout: e(v).layout,
193
197
  next: e(b),
194
198
  set: e(c),
195
199
  route: e(z),
196
- "validate-errors": e(K),
200
+ "validate-errors": e(N),
197
201
  onRowEdit: e(we),
198
202
  onChange: e(I),
199
203
  onLayoutChange: t[2] || (t[2] = (o) => e(J)(o, !1)),
200
- onSubmit: e(M)
201
- }, null, 8, ["module", "schema", "table", "layout", "next", "set", "route", "validate-errors", "onRowEdit", "onChange", "onSubmit"])) : L("", !0)
204
+ onSubmit: e(F)
205
+ }, null, 8, ["module", "schema", "table", "layout", "next", "set", "route", "validate-errors", "onRowEdit", "onChange", "onSubmit"])) : B("", !0)
202
206
  ]),
203
207
  _: 1
204
208
  }, 8, ["model"])
205
209
  ]),
206
210
  _: 1
207
211
  }),
208
- (d(), g(Ke(e(ze)), {
212
+ (d(), g(Ne(e(ze)), {
209
213
  ref_key: "updateRef",
210
- ref: O,
214
+ ref: K,
211
215
  class: "main-footer",
212
- schema: e(r),
213
- table: e(y),
214
- layout: e(D),
216
+ schema: e(u),
217
+ table: e(_),
218
+ layout: e(L),
215
219
  next: e(b),
216
220
  set: e(c),
217
221
  route: e(z),
218
- onCopy: e(ye),
219
- onEdit: e(_e),
220
- onSubmit: e(Re),
222
+ onCopy: e(_e),
223
+ onEdit: e(ye),
224
+ onSubmit: e(Se),
221
225
  onClose: e(Ce)
222
226
  }, null, 40, ["schema", "table", "layout", "next", "set", "route", "onCopy", "onEdit", "onSubmit", "onClose"]))
223
227
  ]),
224
- e(k) ? (d(), g(N, {
228
+ e(k) ? (d(), g(P, {
225
229
  key: 0,
226
230
  class: "side-form"
227
231
  }, {
228
232
  header: s(() => [
229
233
  m("div", Je, [
230
- m("div", Qe, x(e(oe)("common.modify")) + " " + x(e(F)[e(S).show[0].name]), 1),
234
+ m("div", Qe, x(e(oe)("common.modify")) + " " + x(e(j)[e(R).show[0].name]), 1),
231
235
  m("div", {
232
236
  class: "row-close",
233
237
  onClick: t[4] || (t[4] = (o) => Z(k) ? k.value = !1 : k = !1)
@@ -235,19 +239,19 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
235
239
  ])
236
240
  ]),
237
241
  default: s(() => [
238
- h(U, null, {
242
+ h($, null, {
239
243
  default: s(() => [
240
- h($, {
244
+ h(U, {
241
245
  size: "small",
242
246
  "label-width": "80px"
243
247
  }, {
244
248
  default: s(() => [
245
- (d(!0), j(ee, null, le(e(S).show, (o) => (d(), g(X, {
246
- style: Pe(o.control.height ? `height: ${o.control.height}px;` : ""),
249
+ (d(!0), H(ee, null, le(e(R).show, (o) => (d(), g(X, {
250
+ style: Oe(o.control.height ? `height: ${o.control.height}px;` : ""),
247
251
  rules: o.rules
248
252
  }, {
249
253
  label: s(() => [
250
- te(x(e(qe)(e(S).name, o.name)) + " ", 1),
254
+ te(x(e(Ke)(e(R).name, o.name)) + " ", 1),
251
255
  o.control.tooltip ? (d(), g(V, {
252
256
  key: 0,
253
257
  trigger: "hover",
@@ -262,15 +266,15 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
262
266
  m("pre", null, x(o.control.tooltip.content), 1)
263
267
  ]),
264
268
  _: 2
265
- }, 1032, ["title"])) : L("", !0)
269
+ }, 1032, ["title"])) : B("", !0)
266
270
  ]),
267
271
  default: s(() => [
268
- h(He, {
269
- schema: e(r),
270
- table: e(S),
272
+ h(Ge, {
273
+ schema: e(u),
274
+ table: e(R),
271
275
  field: o,
272
276
  set: e(c),
273
- row: e(F)
277
+ row: e(j)
274
278
  }, null, 8, ["schema", "table", "field", "set", "row"])
275
279
  ]),
276
280
  _: 2
@@ -283,12 +287,12 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
283
287
  })
284
288
  ]),
285
289
  _: 1
286
- })) : L("", !0),
287
- e(i).page ? (d(), g(_, {
290
+ })) : B("", !0),
291
+ e(i).page ? (d(), g(y, {
288
292
  key: 1,
289
293
  "destroy-on-close": "",
290
294
  "append-to-body": e(i).appendToBody,
291
- size: `${e(p).width ?? "60%"}`,
295
+ size: `${e(f).width ?? "60%"}`,
292
296
  modelValue: e(i).visible,
293
297
  "onUpdate:modelValue": t[5] || (t[5] = (o) => e(i).visible = o)
294
298
  }, {
@@ -302,20 +306,20 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
302
306
  ])
303
307
  ]),
304
308
  default: s(() => [
305
- h(e(Ge), {
309
+ h(e(je), {
306
310
  ref_key: "pageRef",
307
- ref: P,
311
+ ref: O,
308
312
  url: e(i).url,
309
- onSucceed: e(H),
313
+ onSucceed: e(G),
310
314
  onClose: e(he)
311
315
  }, null, 8, ["url", "onSucceed", "onClose"])
312
316
  ]),
313
317
  _: 1
314
- }, 8, ["append-to-body", "size", "modelValue"])) : L("", !0)
318
+ }, 8, ["append-to-body", "size", "modelValue"])) : B("", !0)
315
319
  ], 2);
316
320
  };
317
321
  }
318
322
  });
319
323
  export {
320
- nl as default
324
+ ml as default
321
325
  };
@@ -1,8 +1,12 @@
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 i, createElementVNode as J, normalizeStyle as K, nextTick as m } from "vue";
2
- import { x as P, g as Q, Y as R, f as U, N as W } from "./assets/halo-fe-idvmXC0t.js";
3
- import { s as X } from "./main-COiaaxGk.js";
4
- import { _ as Z } from "./SearchForm.vue_vue_type_style_index_0_lang-DEu6hHys.js";
5
- const ie = /* @__PURE__ */ j({
1
+ import { defineComponent as j, toRefs as q, 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 m } from "vue";
2
+ import { s as Q, l as U, A as W, C as R, m as X, D as Y } from "./main-CnPQ_RYM.js";
3
+ import "./assets/underscore.string-DVXD2SZo.js";
4
+ import "./assets/clone-BZn0cTAu.js";
5
+ import "./assets/file-saver-CwlpTZSc.js";
6
+ import "./assets/moment-h96o7c8I.js";
7
+ import "./assets/liquidjs-C-LVcoaY.js";
8
+ import { _ as Z } from "./SearchForm.vue_vue_type_style_index_0_lang-DDH5N323.js";
9
+ const ue = /* @__PURE__ */ j({
6
10
  __name: "Statistic",
7
11
  props: {
8
12
  searchData: {},
@@ -15,18 +19,18 @@ const ie = /* @__PURE__ */ j({
15
19
  set: {}
16
20
  },
17
21
  emits: ["search"],
18
- setup(C, { expose: A, emit: F }) {
19
- let z = F, H = C, { route: B, module: E, schema: x, table: y, layout: l, next: ee, set: u, searchData: g } = q(H), s = null, p = null, v = n(), f = n(), b = n(), S = n(), N = (t) => {
22
+ setup(A, { expose: C, emit: H }) {
23
+ let F = H, z = A, { route: D, module: B, schema: p, table: x, layout: l, next: ee, set: u, searchData: y } = q(z), s = null, g = null, v = n(), d = n(), b = n(), S = n(), E = (t) => {
20
24
  T("search");
21
25
  }, T = (t, e = null) => {
22
- z(t, (r) => {
26
+ F(t, (r) => {
23
27
  m(() => {
24
- d(), e && e(r);
28
+ f(), e && e(r);
25
29
  });
26
30
  });
27
- }, d = () => {
28
- let t = Q.distinct(u.value[l.value.table], (a) => a[l.value.date]), e = {
29
- title: { text: E.value.title, left: "center", textStyle: { color: "#777" } },
31
+ }, f = () => {
32
+ let t = W.distinct(u.value[l.value.table], (a) => a[l.value.date]), e = {
33
+ title: { text: B.value.title, left: "center", textStyle: { color: "#777" } },
30
34
  //标题
31
35
  tooltip: { trigger: "axis" },
32
36
  //提示
@@ -60,10 +64,10 @@ const ie = /* @__PURE__ */ j({
60
64
  series: []
61
65
  };
62
66
  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)");
63
- let r = l.value.fields.find((a) => a.group && a.name != l.value.date), _ = y.value.fields.find((a) => a.name == r.name).control.data.data;
67
+ let r = l.value.fields.find((a) => a.group && a.name != l.value.date), _ = x.value.fields.find((a) => a.name == r.name).control.data.data;
64
68
  for (let a = 0; a < _.length; a++) {
65
69
  let o = _[a];
66
- o.color || U.error("颜色字段不能为空");
70
+ o.color || X.error("颜色字段不能为空");
67
71
  let c = {
68
72
  name: o.text,
69
73
  type: "line",
@@ -112,45 +116,45 @@ const ie = /* @__PURE__ */ j({
112
116
  e.xAxis.data.push(...t), s.setOption(e);
113
117
  }, k = () => {
114
118
  var r;
115
- let t = W.getHeight([(r = f.value) == null ? void 0 : r.$el]), e = S.value.getBoundingClientRect();
119
+ let t = Y.getHeight([(r = d.value) == null ? void 0 : r.$el]), e = S.value.getBoundingClientRect();
116
120
  v.value = e.height - t - 10 - 1;
117
121
  }, V = (t) => {
118
- f.value.resize(t), m(() => {
122
+ d.value.resize(t), m(() => {
119
123
  k(), s == null || s.resize();
120
124
  });
121
- }, D = () => {
125
+ }, N = () => {
122
126
  k(), m(() => {
123
- s = p.init(b.value), d();
127
+ s = g.init(b.value), f();
124
128
  });
125
129
  };
126
130
  return G(async () => {
127
- g.value = X.getConditionForm(x.value, B.value.query.condition), p = await P.getECharts(), D();
131
+ y.value = Q.getConditionForm(p.value, D.value.query.condition), g = await U.getECharts(), N();
128
132
  }), M(() => l.value, (t, e) => {
129
- d();
130
- }), A({ resize: V }), (t, e) => (O(), Y("div", {
133
+ f();
134
+ }), C({ resize: V }), (t, e) => (O(), I("div", {
131
135
  ref_key: "statisticRef",
132
136
  ref: S,
133
137
  class: "ha-statistic-layout"
134
138
  }, [
135
- I(Z, {
139
+ J(Z, {
136
140
  ref_key: "searchRef",
137
- ref: f,
138
- schema: i(x),
139
- table: i(y),
141
+ ref: d,
142
+ schema: i(p),
143
+ table: i(x),
140
144
  layout: i(l),
141
145
  set: i(u),
142
- "search-data": i(g),
143
- onChange: i(N)
146
+ "search-data": i(y),
147
+ onChange: i(E)
144
148
  }, null, 8, ["schema", "table", "layout", "set", "search-data", "onChange"]),
145
- J("div", {
149
+ K("div", {
146
150
  ref_key: "chartRef",
147
151
  ref: b,
148
152
  class: "chart",
149
- style: K({ height: i(v) + "px" })
153
+ style: P({ height: i(v) + "px" })
150
154
  }, null, 4)
151
155
  ], 512));
152
156
  }
153
157
  });
154
158
  export {
155
- ie as default
159
+ ue as default
156
160
  };
@@ -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-BqXBN6CJ.js";
2
+ import { _ } from "./Stock.vue_vue_type_style_index_0_lang-pZYnIJLp.js";
3
3
  const b = /* @__PURE__ */ c({
4
4
  __name: "Stock",
5
5
  props: {
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./Stock.vue_vue_type_style_index_0_lang-BqXBN6CJ.js";
1
+ import { _ as f } from "./Stock.vue_vue_type_style_index_0_lang-pZYnIJLp.js";
2
2
  export {
3
3
  f as default
4
4
  };