halo-pc 1.0.27 → 1.0.29

Sign up to get free protection for your applications and to get access to all the features.
Files changed (165) hide show
  1. package/dist/{Article-CTqryR4L.js → Article-N3ZaJaLc.js} +75 -70
  2. package/dist/{ArticleFooter-BumGH5nC.js → ArticleFooter-sspAOJuS.js} +23 -17
  3. package/dist/Autocomplete-CD6CsF2X.js +54 -0
  4. package/dist/{Autocomplete-BNx0bErM.js → Autocomplete-DY6OaWAK.js} +1 -1
  5. package/dist/Autocomplete-DkkUx0lx.js +53 -0
  6. package/dist/{CSharp-Dt6H75E9.js → CSharp-BwNnAf8e.js} +1 -1
  7. package/dist/{Calender-DhKZyJri.js → Calender-VwwIDi3Q.js} +1 -1
  8. package/dist/Callback-BRrShVCU.js +26 -0
  9. package/dist/Cascader-CurlPJsQ.js +87 -0
  10. package/dist/Cascader-i3KkCfFF.js +47 -0
  11. package/dist/{Checkbox-C-iEGB0k.js → Checkbox-Bk98RtL7.js} +1 -1
  12. package/dist/Checkbox-CNMzO79X.js +76 -0
  13. package/dist/Code-BdDjNSqs.js +42 -0
  14. package/dist/{Code-Q_6THgGl.js → Code-C4XPPKO8.js} +1 -1
  15. package/dist/{Code-JtSSnUWC.js → Code-CRH4WNXz.js} +1 -1
  16. package/dist/Code-CqA6bVSZ.js +60 -0
  17. package/dist/Code.vue_vue_type_style_index_0_lang-Dkdu_fcm.js +65 -0
  18. package/dist/Column-BCz-Xp-3.js +75 -0
  19. package/dist/Comment-BoOQfrxv.js +104 -0
  20. package/dist/Compare-ChJu8LUo.js +44 -0
  21. package/dist/{Compare-DZVrBYEh.js → Compare-DxOXRPzs.js} +25 -19
  22. package/dist/Copy-DBUSr3OW.js +49 -0
  23. package/dist/Custom-CNQIPMHT.js +57 -0
  24. package/dist/{DataExport-DSz5371s.js → DataExport-B-0vVYMT.js} +1 -1
  25. package/dist/{DataExport.vue_vue_type_script_setup_true_lang-DL9q81Ti.js → DataExport.vue_vue_type_script_setup_true_lang-BvyBbSLP.js} +41 -36
  26. package/dist/{DataImport-CX7G70a7.js → DataImport-ApAPTQcq.js} +1 -1
  27. package/dist/DataImport.vue_vue_type_script_setup_true_lang-CKd0CAf_.js +176 -0
  28. package/dist/Date-BnRTPDSJ.js +43 -0
  29. package/dist/{Date-ytWe2gz8.js → Date-gMmfQ3pA.js} +1 -1
  30. package/dist/DateRange-BPQ2TOXk.js +63 -0
  31. package/dist/DateTime-CsZdXjmB.js +44 -0
  32. package/dist/{DateTime-p6YgmtGd.js → DateTime-Cz09I2-B.js} +1 -1
  33. package/dist/{DateTimeRange-DGobnXqs.js → DateTimeRange-DPjTS-A2.js} +17 -11
  34. package/dist/Daterange-DCyMLI8G.js +63 -0
  35. package/dist/{Decimal-BvyzJq1c.js → Decimal-Cpz-_Ef3.js} +1 -1
  36. package/dist/Delete-Di56R5Tf.js +62 -0
  37. package/dist/{Detail-DZJ0aUFr.js → Detail-DP1ReSaw.js} +22 -17
  38. package/dist/Dictionary-B8OMis9G.js +59 -0
  39. package/dist/Email-CCZH8SDT.js +54 -0
  40. package/dist/{File-BEBElTSS.js → File-BUw6o5UN.js} +32 -27
  41. package/dist/{Image-DDK05SW7.js → Image-DBjqi76B.js} +1 -1
  42. package/dist/Index-B6sevgc6.js +4 -0
  43. package/dist/{Index-DPwdcUO4.js → Index-BDVj7Dy2.js} +1 -1
  44. package/dist/Index-CZYVZtFI.js +178 -0
  45. package/dist/Index-Cch9emdC.js +4 -0
  46. package/dist/Index-CfpZf8By.js +4 -0
  47. package/dist/Index-Cn3HXkPm.js +4 -0
  48. package/dist/{Index-CuEyzMd0.js → Index-DuKtMNgH.js} +25 -20
  49. package/dist/{Index-BiF8qEWf.js → Index-Z8dMl0cU.js} +1 -1
  50. package/dist/{Index.vue_vue_type_script_setup_true_lang-Bp091zxs.js → Index.vue_vue_type_script_setup_true_lang-BJJPNo3Y.js} +20 -15
  51. package/dist/{Index.vue_vue_type_script_setup_true_lang-hjy21YuL.js → Index.vue_vue_type_script_setup_true_lang-DCxwPrIZ.js} +17 -12
  52. package/dist/{Install-CxuoWpHC.js → Install-CNE0J2Q9.js} +27 -22
  53. package/dist/Int-C5AxmjK0.js +46 -0
  54. package/dist/Int-RoCJiPje.js +44 -0
  55. package/dist/List-DJuE2QHL.js +79 -0
  56. package/dist/Maintaince-CdqWSHAZ.js +20 -0
  57. package/dist/{Markdown-x1hASyA-.js → Markdown-DKyCVBYy.js} +1 -1
  58. package/dist/{Month-Bb0tgF-k.js → Month-BfSG37wf.js} +1 -1
  59. package/dist/Month-OH6snasK.js +43 -0
  60. package/dist/Month-iU9F-vQ5.js +44 -0
  61. package/dist/{Normal-CYmy5sN7.js → Normal-DPJQ_Ds5.js} +70 -66
  62. package/dist/Paging-CYU3sSbD.js +99 -0
  63. package/dist/{PagingHeader-DWbFl1do.js → PagingHeader-CgWbC7R1.js} +30 -24
  64. package/dist/{PagingRow-CR2N1vgm.js → PagingRow-Y8lG-1cI.js} +26 -20
  65. package/dist/QueryApi-C3h4tWd0.js +20 -0
  66. package/dist/{Racebar-BsgDK6Zf.js → Racebar-CtFYJKrh.js} +42 -37
  67. package/dist/{Radio-B3Af-uZE.js → Radio-Bz2SE_FO.js} +1 -1
  68. package/dist/{Register-Cwr3iIZm.js → Register-CiK44o2W.js} +44 -40
  69. package/dist/RichText-BkhW8muI.js +47 -0
  70. package/dist/{SearchFooter-DiILcc_U.js → SearchFooter-D6O_c5DS.js} +1 -1
  71. package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-BsIg4tbY.js → SearchFooter.vue_vue_type_style_index_0_lang-BDe_uXW2.js} +1 -1
  72. package/dist/{SearchForm-BOw_kHs2.js → SearchForm-CZjHSE1s.js} +1 -1
  73. package/dist/{SearchForm.vue_vue_type_style_index_0_lang-GMYFgf1H.js → SearchForm.vue_vue_type_style_index_0_lang-CVeFjNjG.js} +40 -36
  74. package/dist/Select-BEgPZsaR.js +117 -0
  75. package/dist/Select-CY1CA4pv.js +86 -0
  76. package/dist/{Select-BdYG1KQE.js → Select-FFqI2hOh.js} +1 -1
  77. package/dist/{Single-DqCIZBIB.js → Single-BQRWqAOH.js} +103 -99
  78. package/dist/{Statistic-B9ZcUUk1.js → Statistic-CyqoTZZj.js} +37 -33
  79. package/dist/{Stock-BnBNtuo7.js → Stock-N57DPrDl.js} +1 -1
  80. package/dist/{Stock-BiSr7zAF.js → Stock-negSF4zD.js} +1 -1
  81. package/dist/{Stock.vue_vue_type_style_index_0_lang-CZPeF39q.js → Stock.vue_vue_type_style_index_0_lang-BuxuI7Wg.js} +31 -26
  82. package/dist/{Switch-BE4dQcja.js → Switch-g5K9zh4g.js} +1 -1
  83. package/dist/{Table-CaH_zu8W.js → Table-CHKHAajT.js} +77 -74
  84. package/dist/{Table-e0uLPRLG.js → Table-nB7wA6gP.js} +78 -73
  85. package/dist/{Text-BAw88r5O.js → Text-7oaEmWun.js} +19 -13
  86. package/dist/Text-BefOYKkr.js +4 -0
  87. package/dist/{Text-BDAob4mp.js → Text-KKwYRpSW.js} +21 -15
  88. package/dist/Text.vue_vue_type_style_index_0_lang-BrmC8Xhc.js +59 -0
  89. package/dist/TextLink-DoArgh5L.js +65 -0
  90. package/dist/{Textarea-CU5PjIoa.js → Textarea-DEvxrKMK.js} +1 -1
  91. package/dist/Time-D8Ikb-KB.js +43 -0
  92. package/dist/Timeline-BEt6ygzA.js +59 -0
  93. package/dist/{Tree-D-v632h1.js → Tree-caBJzrZQ.js} +105 -101
  94. package/dist/Tree-ftxBqmRQ.js +122 -0
  95. package/dist/TreeNode-XITOvihe.js +42 -0
  96. package/dist/{Update-DRAFce7_.js → Update-JgTiZCDi.js} +20 -15
  97. package/dist/{UpdateChild-DMC0FG4Z.js → UpdateChild-y0OPiT92.js} +23 -17
  98. package/dist/Upload-BlnOvJFg.js +150 -0
  99. package/dist/Upload-kUYBfIS2.js +72 -0
  100. package/dist/UploadApi-RRAsIVG7.js +20 -0
  101. package/dist/{Year-CpcMBvQ7.js → Year-C2_kuiZX.js} +1 -1
  102. package/dist/Year-Cre43mQI.js +47 -0
  103. package/dist/assets/clone-BZn0cTAu.js +134 -0
  104. package/dist/assets/file-saver-CwlpTZSc.js +74 -0
  105. package/dist/assets/liquidjs-C-LVcoaY.js +2893 -0
  106. package/dist/assets/moment-h96o7c8I.js +2578 -0
  107. package/dist/assets/sprintf-js-BPTdvBYM.js +148 -0
  108. package/dist/assets/underscore-B0BCaBxV.js +1070 -0
  109. package/dist/assets/underscore.string-DVXD2SZo.js +425 -0
  110. package/dist/assets/util-deprecate-Dzun97re.js +28 -0
  111. package/dist/main-KTzfgTac.js +9105 -0
  112. package/dist/main.js +139 -140
  113. package/dist/style.css +1 -1
  114. package/package.json +1 -1
  115. package/dist/Autocomplete-C9RS9-qw.js +0 -48
  116. package/dist/Autocomplete-DIucpEpj.js +0 -49
  117. package/dist/Callback-D6G_933H.js +0 -20
  118. package/dist/Cascader-C6t8Q18c.js +0 -41
  119. package/dist/Cascader-F_XWwXKY.js +0 -81
  120. package/dist/Checkbox-ipHs0O-8.js +0 -70
  121. package/dist/Code-DKtqow6y.js +0 -36
  122. package/dist/Code-LeguA9RL.js +0 -54
  123. package/dist/Code.vue_vue_type_style_index_0_lang-DmeXbg91.js +0 -59
  124. package/dist/Column-BeQwafyN.js +0 -70
  125. package/dist/Comment-DIcCHP9F.js +0 -98
  126. package/dist/Compare-Dzqm7kPE.js +0 -38
  127. package/dist/Copy-iLieXx22.js +0 -43
  128. package/dist/Custom-BGtEDHlD.js +0 -51
  129. package/dist/DataImport.vue_vue_type_script_setup_true_lang-BWS65Vp1.js +0 -172
  130. package/dist/Date-CNOCOcNz.js +0 -37
  131. package/dist/DateRange-CaIiObxN.js +0 -57
  132. package/dist/DateTime-CH6J1GoP.js +0 -38
  133. package/dist/Daterange-BUSKAGlK.js +0 -57
  134. package/dist/Delete-BeFC0gjD.js +0 -57
  135. package/dist/Dictionary-CsBiv-CI.js +0 -55
  136. package/dist/Email-Dwa6x3jW.js +0 -48
  137. package/dist/Index-Bpe7pY2Z.js +0 -4
  138. package/dist/Index-CUYQxzNd.js +0 -174
  139. package/dist/Index-DMnL8F7Y.js +0 -4
  140. package/dist/Index-DNG25ox2.js +0 -4
  141. package/dist/Index-DqUNI6MV.js +0 -4
  142. package/dist/Int-BFv18KXi.js +0 -38
  143. package/dist/Int-C0ijmdYS.js +0 -41
  144. package/dist/List-CfQzWq_5.js +0 -74
  145. package/dist/Maintaince-BzDEwQcU.js +0 -14
  146. package/dist/Month-Bp_Pfi_b.js +0 -37
  147. package/dist/Month-CKkjwzza.js +0 -38
  148. package/dist/Paging-DpoBp7x_.js +0 -95
  149. package/dist/QueryApi-VwISnk96.js +0 -13
  150. package/dist/RichText-CNahMrfb.js +0 -41
  151. package/dist/Select-BeNZqAP1.js +0 -112
  152. package/dist/Select-CqOE6uI8.js +0 -80
  153. package/dist/Text-5803XWI6.js +0 -4
  154. package/dist/Text.vue_vue_type_style_index_0_lang-D1JSHUmS.js +0 -53
  155. package/dist/TextLink-TYXcDAlo.js +0 -59
  156. package/dist/Time-Dd-Trib4.js +0 -37
  157. package/dist/Timeline-D6LCIkQp.js +0 -53
  158. package/dist/Tree-BKmFZrK3.js +0 -118
  159. package/dist/TreeNode-L_A5ZKy0.js +0 -37
  160. package/dist/Upload-DJRh4a7g.js +0 -68
  161. package/dist/Upload-Ozg_nOpI.js +0 -147
  162. package/dist/UploadApi-DVx69g-F.js +0 -13
  163. package/dist/Year-D7XGe2So.js +0 -41
  164. package/dist/assets/halo-fe-B-NiIGas.js +0 -12088
  165. package/dist/main-DB_sVyZe.js +0 -3620
@@ -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 I, createVNode as J, unref as s, createElementVNode as K, normalizeStyle as P, nextTick as R } from "vue";
2
- import { H as Q, B as U, u as W, v as X, R as Y } from "./assets/halo-fe-B-NiIGas.js";
3
- import { s as Z } from "./main-DB_sVyZe.js";
4
- import { _ as ee } from "./SearchForm.vue_vue_type_style_index_0_lang-GMYFgf1H.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 R } from "vue";
2
+ import { D as Q, s as U, n as W, A as X, m as Y, E as Z } from "./main-KTzfgTac.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 ee } from "./SearchForm.vue_vue_type_style_index_0_lang-CVeFjNjG.js";
9
+ const de = /* @__PURE__ */ j({
6
10
  __name: "Statistic",
7
11
  props: {
8
12
  searchData: {},
@@ -15,17 +19,17 @@ const ie = /* @__PURE__ */ j({
15
19
  set: {}
16
20
  },
17
21
  emits: ["search"],
18
- setup(C, { expose: A, emit: F }) {
19
- let H = F, z = C, { route: B, module: E, schema: m, table: x, layout: l, next: te, set: u, searchData: y } = q(z), i = null, p = null, g = n(), f = n(), v = n(), b = n(), { app: S } = Q.sys, T = (t) => {
20
- V("search");
21
- }, V = (t, e = null) => {
22
- H(t, (r) => {
22
+ setup(A, { expose: C, emit: H }) {
23
+ let F = H, z = A, { route: D, module: E, schema: m, table: p, layout: l, next: te, set: u, searchData: y } = q(z), s = null, x = null, g = n(), d = n(), v = n(), b = n(), { app: S } = Q.sys, B = (t) => {
24
+ T("search");
25
+ }, T = (t, e = null) => {
26
+ F(t, (r) => {
23
27
  R(() => {
24
- d(), e && e(r);
28
+ f(), e && e(r);
25
29
  });
26
30
  });
27
- }, d = () => {
28
- let t = W.distinct(u.value[l.value.table], (a) => a[l.value.date]), e = {
31
+ }, f = () => {
32
+ let t = X.distinct(u.value[l.value.table], (a) => a[l.value.date]), e = {
29
33
  title: { text: E.value.title, left: "center", textStyle: { color: "#777" } },
30
34
  //标题
31
35
  tooltip: { trigger: "axis" },
@@ -60,10 +64,10 @@ const ie = /* @__PURE__ */ j({
60
64
  series: []
61
65
  };
62
66
  S.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), _ = x.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), _ = p.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 || X.error("颜色字段不能为空");
70
+ o.color || Y.error("颜色字段不能为空");
67
71
  let c = {
68
72
  name: o.text,
69
73
  type: "line",
@@ -109,46 +113,46 @@ const ie = /* @__PURE__ */ j({
109
113
  }
110
114
  e.series.push(c), e.legend.data.push(o.text);
111
115
  }
112
- e.xAxis.data.push(...t), i.setOption(e);
116
+ e.xAxis.data.push(...t), s.setOption(e);
113
117
  }, k = () => {
114
118
  var r;
115
- let t = Y.getHeight([(r = f.value) == null ? void 0 : r.$el]), e = b.value.getBoundingClientRect();
119
+ let t = Z.getHeight([(r = d.value) == null ? void 0 : r.$el]), e = b.value.getBoundingClientRect();
116
120
  g.value = e.height - t - 10 - 1;
117
- }, D = (t) => {
118
- f.value.resize(t), R(() => {
119
- k(), i == null || i.resize();
121
+ }, V = (t) => {
122
+ d.value.resize(t), R(() => {
123
+ k(), s == null || s.resize();
120
124
  });
121
125
  }, N = () => {
122
- k(), i = p.init(v.value), d();
126
+ k(), s = x.init(v.value), f();
123
127
  };
124
128
  return G(async () => {
125
- y.value = Z.getConditionForm(m.value, B.value.query.condition), p = await U.getECharts(), N();
129
+ y.value = U.getConditionForm(m.value, D.value.query.condition), x = await W.getECharts(), N();
126
130
  }), M(() => l.value, (t, e) => {
127
- d();
128
- }), A({ resize: D }), (t, e) => (O(), I("div", {
131
+ f();
132
+ }), C({ resize: V }), (t, e) => (O(), I("div", {
129
133
  ref_key: "statisticRef",
130
134
  ref: b,
131
135
  class: "ha-statistic-layout"
132
136
  }, [
133
137
  J(ee, {
134
138
  ref_key: "searchRef",
135
- ref: f,
136
- schema: s(m),
137
- table: s(x),
138
- layout: s(l),
139
- set: s(u),
140
- "search-data": s(y),
141
- onChange: s(T)
139
+ ref: d,
140
+ schema: i(m),
141
+ table: i(p),
142
+ layout: i(l),
143
+ set: i(u),
144
+ "search-data": i(y),
145
+ onChange: i(B)
142
146
  }, null, 8, ["schema", "table", "layout", "set", "search-data", "onChange"]),
143
147
  K("div", {
144
148
  ref_key: "chartRef",
145
149
  ref: v,
146
150
  class: "chart",
147
- style: P({ height: s(g) + "px" })
151
+ style: P({ height: i(g) + "px" })
148
152
  }, null, 4)
149
153
  ], 512));
150
154
  }
151
155
  });
152
156
  export {
153
- ie as default
157
+ de as default
154
158
  };
@@ -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-CZPeF39q.js";
2
+ import { _ } from "./Stock.vue_vue_type_style_index_0_lang-BuxuI7Wg.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-CZPeF39q.js";
1
+ import { _ as f } from "./Stock.vue_vue_type_style_index_0_lang-BuxuI7Wg.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,8 +1,13 @@
1
- import { defineComponent as F, toRefs as B, ref as R, onMounted as T, openBlock as E, createBlock as G, unref as h, withCtx as P, createElementVNode as A, createTextVNode as V, toDisplayString as b } from "vue";
2
- import { H as O, B as K, a3 as N, u as j } from "./assets/halo-fe-B-NiIGas.js";
1
+ import { defineComponent as F, toRefs as R, ref as T, onMounted as B, openBlock as E, createBlock as G, unref as h, withCtx as P, createElementVNode as A, createTextVNode as V, toDisplayString as b } from "vue";
2
+ import { D as O, n as K, _ as N, A as j } from "./main-KTzfgTac.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";
3
8
  const z = /* @__PURE__ */ A("div", { class: "ha-empty" }, "暂无行情数据", -1), H = [
4
9
  z
5
- ], X = /* @__PURE__ */ F({
10
+ ], te = /* @__PURE__ */ F({
6
11
  __name: "Stock",
7
12
  props: {
8
13
  searchData: {},
@@ -15,16 +20,16 @@ const z = /* @__PURE__ */ A("div", { class: "ha-empty" }, "暂无行情数据",
15
20
  set: {}
16
21
  },
17
22
  setup(k) {
18
- let L = k, { module: W, schema: q, table: v, layout: n, next: J, set: f } = B(L), y = null, c = null, p = "#04aa4e", x = "#ff5945", w = R(), u = { history: null, week: null, month: null }, { app: S } = O.sys, _ = (t) => {
19
- let o = j.orderBy(t, (s) => s[n.value.time], !1), e = [], l = [], r = [];
20
- for (let s = 0; s < o.length; s++) {
21
- let a = o[s];
23
+ let L = k, { module: W, schema: $, table: v, layout: n, next: q, set: f } = R(L), p = null, d = null, y = "#04aa4e", x = "#ff5945", w = T(), u = { history: null, week: null, month: null }, { app: S } = O.sys, _ = (t) => {
24
+ let o = j.orderBy(t, (i) => i[n.value.time], !1), e = [], l = [], r = [];
25
+ for (let i = 0; i < o.length; i++) {
26
+ let a = o[i];
22
27
  e.push(a[n.value.time]);
23
- let d = parseFloat(a[n.value.open]), i = parseFloat(a[n.value.close]);
24
- l.push([d, i, parseFloat(a[n.value.low]), parseFloat(a[n.value.high])]);
28
+ let c = parseFloat(a[n.value.open]), s = parseFloat(a[n.value.close]);
29
+ l.push([c, s, parseFloat(a[n.value.low]), parseFloat(a[n.value.high])]);
25
30
  let C = {
26
31
  value: parseFloat(a[n.value.volumn]),
27
- itemStyle: { color: i > d ? p : x }
32
+ itemStyle: { color: s > c ? y : x }
28
33
  };
29
34
  r.push(C);
30
35
  }
@@ -36,10 +41,10 @@ const z = /* @__PURE__ */ A("div", { class: "ha-empty" }, "暂无行情数据",
36
41
  e.push("-");
37
42
  continue;
38
43
  }
39
- let s = 0;
44
+ let i = 0;
40
45
  for (let a = 0; a < o; a++)
41
- s += t.values[l - a][1];
42
- e.push(s / o);
46
+ i += t.values[l - a][1];
47
+ e.push(i / o);
43
48
  }
44
49
  return e;
45
50
  }, M = (t) => {
@@ -147,9 +152,9 @@ const z = /* @__PURE__ */ A("div", { class: "ha-empty" }, "暂无行情数据",
147
152
  //网格索引,表示使用第2个网格的配置
148
153
  data: t.values,
149
154
  itemStyle: {
150
- color: p,
155
+ color: y,
151
156
  color0: x,
152
- borderColor: p,
157
+ borderColor: y,
153
158
  borderColor0: x
154
159
  },
155
160
  markPoint: {
@@ -229,7 +234,7 @@ const z = /* @__PURE__ */ A("div", { class: "ha-empty" }, "暂无行情数据",
229
234
  smooth: !0,
230
235
  data: [],
231
236
  areaStyle: {
232
- color: new c.graphic.LinearGradient(0, 0, 0, 1, [{
237
+ color: new d.graphic.LinearGradient(0, 0, 0, 1, [{
233
238
  offset: 0,
234
239
  color: l
235
240
  }, {
@@ -238,7 +243,7 @@ const z = /* @__PURE__ */ A("div", { class: "ha-empty" }, "暂无行情数据",
238
243
  }])
239
244
  }
240
245
  };
241
- S.theme == "dark" && (r.areaStyle.color = new c.graphic.LinearGradient(
246
+ S.theme == "dark" && (r.areaStyle.color = new d.graphic.LinearGradient(
242
247
  0,
243
248
  0,
244
249
  0,
@@ -248,18 +253,18 @@ const z = /* @__PURE__ */ A("div", { class: "ha-empty" }, "暂无行情数据",
248
253
  { offset: 1, color: "#354052" }
249
254
  ]
250
255
  )), e.xAxis[0].data.push(...t.times);
251
- let s = t.values.map((a) => a[1]);
252
- r.data.push(...s), e.series.push(r);
256
+ let i = t.values.map((a) => a[1]);
257
+ r.data.push(...i), e.series.push(r);
253
258
  }
254
259
  return o && f.value[o.table].forEach((r) => {
255
- let s = r[o.time], a = t.times.indexOf(s), d = t.values[a], i = {
256
- coord: [s],
260
+ let i = r[o.time], a = t.times.indexOf(i), c = t.values[a], s = {
261
+ coord: [i],
257
262
  itemStyle: { color: null },
258
263
  label: { position: null, offset: null },
259
264
  value: null,
260
265
  symbolRotate: null
261
266
  };
262
- r[o.direction] == 1 ? (i.coord.push(d[2] * 0.99), i.value = "买", i.itemStyle.color = "#00c805", i.symbolRotate = 180, i.label.position = "insideBottom", i.label.offset = [0, -5]) : (i.coord.push(d[3] * 1.01), i.value = "卖", i.itemStyle.color = "#ff5000"), e.series[0].markPoint.data.push(i);
267
+ r[o.direction] == 1 ? (s.coord.push(c[2] * 0.99), s.value = "买", s.itemStyle.color = "#00c805", s.symbolRotate = 180, s.label.position = "insideBottom", s.label.offset = [0, -5]) : (s.coord.push(c[3] * 1.01), s.value = "卖", s.itemStyle.color = "#ff5000"), e.series[0].markPoint.data.push(s);
263
268
  }), e;
264
269
  }, g = (t) => {
265
270
  let o = 0;
@@ -269,15 +274,15 @@ const z = /* @__PURE__ */ A("div", { class: "ha-empty" }, "暂无行情数据",
269
274
  }), o / t.length * 100;
270
275
  }, I = (t) => {
271
276
  let o = M(t);
272
- y || (y = c.init(w.value)), y.setOption(o);
277
+ p || (p = d.init(w.value)), p.setOption(o);
273
278
  let e = t.values, l = e.reverse();
274
279
  u.history = g(e), u.week = g(l.slice(0, 7)), u.month = g(l.slice(0, 30));
275
280
  }, Z = () => {
276
281
  let t = f.value[v.value.name];
277
282
  t.length > 0 && I(_(t));
278
283
  };
279
- return T(async () => {
280
- c = await K.getECharts(), Z();
284
+ return B(async () => {
285
+ d = await K.getECharts(), Z();
281
286
  }), (t, o) => (E(), G(h(N), null, {
282
287
  default: P(() => [
283
288
  A("div", {
@@ -292,5 +297,5 @@ const z = /* @__PURE__ */ A("div", { class: "ha-empty" }, "暂无行情数据",
292
297
  }
293
298
  });
294
299
  export {
295
- X as _
300
+ te as _
296
301
  };
@@ -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-CsBiv-CI.js")), n = a, { schema: m, table: s, field: i, set: d, row: p, modelValue: t } = c(n);
13
+ let r = f(() => import("./Dictionary-B8OMis9G.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),
@@ -1,10 +1,13 @@
1
- import { defineComponent as Re, defineAsyncComponent as Se, toRefs as ke, ref as p, onMounted as $e, computed as K, watch as ze, resolveComponent as b, openBlock as f, createElementBlock as z, Fragment as Q, createVNode as R, unref as e, withCtx as v, createTextVNode as Fe, toDisplayString as E, createBlock as F, createCommentVNode as D, renderList as De, createElementVNode as C, normalizeStyle as He, resolveDynamicComponent as Ie, nextTick as X } from "vue";
2
- import { I as Be, e as Ee, aM as Me, h as Te, R as y, E as M, av as Z, u as T, c as We, n as qe } from "./assets/halo-fe-B-NiIGas.js";
3
- import { c as Ne, e as ee, s as W, p as Ve } from "./main-DB_sVyZe.js";
4
- const Oe = {
1
+ import { defineComponent as Re, defineAsyncComponent as Se, toRefs as ke, ref as m, onMounted as He, computed as J, watch as $e, resolveComponent as b, openBlock as f, createElementBlock as $, Fragment as K, createVNode as R, unref as e, withCtx as v, createTextVNode as ze, toDisplayString as E, createBlock as z, createCommentVNode as F, renderList as Fe, createElementVNode as C, normalizeStyle as De, resolveDynamicComponent as We, nextTick as Y } from "vue";
2
+ import { V as Be, d as Ee, t as Ie, f as Me, x as Z, s as I, R as Oe, Q as Te, E as y, W as M, X as ee, A as O, O as Ve, P as qe } from "./main-KTzfgTac.js";
3
+ import "./assets/file-saver-CwlpTZSc.js";
4
+ import "./assets/underscore.string-DVXD2SZo.js";
5
+ import "./assets/moment-h96o7c8I.js";
6
+ import "./assets/liquidjs-C-LVcoaY.js";
7
+ const Ae = {
5
8
  key: 0,
6
9
  class: "required"
7
- }, Ae = ["onMouseenter"], Ue = /* @__PURE__ */ C("i", { class: "fa fa-question-circle icon-question" }, null, -1), je = { class: "footer-left" }, Le = { class: "footer-right" }, Ke = /* @__PURE__ */ Re({
10
+ }, Ne = ["onMouseenter"], Ue = /* @__PURE__ */ C("i", { class: "fa fa-question-circle icon-question" }, null, -1), je = { class: "footer-left" }, Le = { class: "footer-right" }, Ze = /* @__PURE__ */ Re({
8
11
  __name: "Table",
9
12
  props: {
10
13
  route: {},
@@ -18,96 +21,96 @@ const Oe = {
18
21
  },
19
22
  emits: ["submit", "change", "row-edit"],
20
23
  setup(te, { expose: le, emit: ae }) {
21
- let oe = Se(() => import("./Index-Bpe7pY2Z.js")), H = ae, ne = te, { schema: q, table: l, layout: d, set: s, next: Je, route: N, module: S, validateErrors: V } = ke(ne), _ = p({ page: 1 }), O = p({}), m = p([]), re = p(!0), k = p(), A = p(), U = p(), j = p(), g = p({ layout: "prev, pager, next", count: 5 }), ue = new Te(), ie = (t, o, n) => {
22
- H("row-edit", t, l.value, n);
24
+ let oe = Se(() => import("./Index-CfpZf8By.js")), D = ae, ne = te, { schema: T, table: l, layout: p, set: s, next: Pe, route: V, module: S, validateErrors: q } = ke(ne), _ = m({ page: 1 }), A = m({}), d = m([]), re = m(!0), k = m(), N = m(), U = m(), j = m(), g = m({ layout: "prev, pager, next", count: 5 }), ue = new Oe(), ie = (t, o, n) => {
25
+ D("row-edit", t, l.value, n);
23
26
  }, se = (t) => {
24
- H("submit", t);
25
- }, de = (t, o) => {
27
+ D("submit", t);
28
+ }, pe = (t, o) => {
26
29
  let n = l.value.show[o];
27
30
  return n._headerWidth ? (t.column.realWidth || t.column.width) > n._headerWidth + 20 : !0;
28
- }, me = (t, o) => {
31
+ }, de = (t, o) => {
29
32
  let n = t.target.children[0].offsetWidth, u = l.value.show[o];
30
33
  u._headerWidth = n;
31
- }, pe = (t, o, n, u, a) => {
32
- H("change", t, o, n, u, a);
34
+ }, me = (t, o, n, u, a) => {
35
+ D("change", t, o, n, u, a);
33
36
  }, L = (t) => s.value[l.value.name].indexOf(t), ce = (t) => {
34
- m.value = t;
37
+ d.value = t;
35
38
  }, fe = async (t, o, n, u, a) => {
36
- await Ve.setColumnWidth(N.value, a.name, n.property, t);
39
+ await Te.setColumnWidth(V.value, a.name, n.property, t);
37
40
  }, ve = (t) => {
38
- J(t.contentRect.width), X(() => {
39
- P(t.contentRect.height);
41
+ P(t.contentRect.width), Y(() => {
42
+ Q(t.contentRect.height);
40
43
  });
41
- }, J = (t = null) => {
44
+ }, P = (t = null) => {
42
45
  let o = y.parentUntil(k.value.$el, ".ha-main-form");
43
46
  t == null && (t = y.getWidth(o)), t <= 690 ? g.value.count = 5 : g.value.count = 7, t <= 300 ? g.value.layout = "pager" : t <= 620 ? g.value.layout = "prev, pager, next" : g.value.layout = "total, prev, pager, next, jumper";
44
- }, P = (t = null) => {
47
+ }, Q = (t = null) => {
45
48
  let o = y.parentUntil(k.value.$el, ".ha-main-form");
46
49
  t || (t = y.getHeight(o));
47
- let n = y.getHeight(A.value), u = y.find(o, ".main-footer"), a = y.getHeight(u), i = t - n - a;
50
+ let n = y.getHeight(N.value), u = y.find(o, ".main-footer"), a = y.getHeight(u), i = t - n - a;
48
51
  j.value = `${i}px`;
49
52
  }, ge = async () => {
50
- let t = s.value[l.value.name].length, o = W.getDefaultRow(l.value);
53
+ let t = s.value[l.value.name].length, o = I.getDefaultRow(l.value);
51
54
  s.value[l.value.name].push(o);
52
55
  let n = l.value.fields.filter((a) => a.feature != null);
53
56
  for (let a = 0; a < n.length; a++) {
54
57
  let i = n[a];
55
58
  (await M.feature.create(i.feature.type)).add(l.value, i, s.value, o);
56
59
  }
57
- I(t);
58
- let u = Z.isBottom(".tree-detail");
59
- await X(() => {
60
- u && Z.scrollToBottom(".tree-detail");
60
+ W(t);
61
+ let u = ee.isBottom(".tree-detail");
62
+ await Y(() => {
63
+ u && ee.scrollToBottom(".tree-detail");
61
64
  });
62
65
  }, he = async (t = null) => {
63
- let o = m.value[0], n = W.getDefaultRow(l.value), u = T.insert(s.value[l.value.name], o, n), a = l.value.fields.filter((i) => i.feature != null);
66
+ let o = d.value[0], n = I.getDefaultRow(l.value), u = O.insert(s.value[l.value.name], o, n), a = l.value.fields.filter((i) => i.feature != null);
64
67
  for (let i = 0; i < a.length; i++) {
65
68
  let c = a[i];
66
69
  (await M.feature.create(c.feature.type)).insert(l.value, c, s.value, o, n);
67
70
  }
68
- I(u), t == null || t(u);
71
+ W(u), t == null || t(u);
69
72
  }, ye = async () => {
70
- let t = l.value.key.name, o = We.clone(m.value, (a) => {
73
+ let t = l.value.key.name, o = Ve.clone(d.value, (a) => {
71
74
  a[t] = null, a[`Old_${t}`] = null;
72
- }), n = s.value[l.value.name].indexOf(m.value[0]);
73
- for (let a = 0; a < m.value.length; a++) {
74
- let i = m.value[a], c = o[a];
75
- T.append(s.value[l.value.name], i, c);
75
+ }), n = s.value[l.value.name].indexOf(d.value[0]);
76
+ for (let a = 0; a < d.value.length; a++) {
77
+ let i = d.value[a], c = o[a];
78
+ O.append(s.value[l.value.name], i, c);
76
79
  }
77
80
  let u = l.value.fields.filter((a) => a.feature != null);
78
81
  for (let a = 0; a < u.length; a++) {
79
82
  let i = u[a];
80
83
  (await M.feature.create(i.feature.type)).copy(l.value, i, s.value);
81
84
  }
82
- I(n);
85
+ W(n);
83
86
  }, _e = () => {
84
- T.remove(s.value[l.value.name], m.value), m.value = [];
85
- }, I = (t) => {
86
- let o = qe.pageCount(t + 1, d.value.pageSize);
87
+ O.remove(s.value[l.value.name], d.value), d.value = [];
88
+ }, W = (t) => {
89
+ let o = qe.pageCount(t + 1, p.value.pageSize);
87
90
  _.value.page = o;
88
91
  }, we = (t) => {
89
92
  _.value.page = t;
90
93
  }, xe = () => {
91
94
  k.value.$el.querySelector("tbody");
92
95
  };
93
- $e(async () => {
94
- await ue.open(O.value, "sys", "page"), xe(), J(), Be.detectLoaded(U, () => {
95
- P();
96
+ He(async () => {
97
+ await ue.open(A.value, "sys", "page"), xe(), P(), Be.detectLoaded(U, () => {
98
+ Q();
96
99
  });
97
100
  });
98
- let be = K(() => {
99
- let t = (_.value.page - 1) * d.value.pageSize, o = _.value.page * d.value.pageSize - 1;
101
+ let be = J(() => {
102
+ let t = (_.value.page - 1) * p.value.pageSize, o = _.value.page * p.value.pageSize - 1;
100
103
  return s.value[l.value.name].filter((u, a) => a >= t && a <= o);
101
- }), Ce = K(() => {
102
- let t = l.value.main ? `/${l.value.name}` : `/${q.value[0].name}/${l.value.name}`;
103
- return Ne.getComponent(`${t}/update-child`, "partial", "update-child");
104
+ }), Ce = J(() => {
105
+ let t = l.value.main ? `/${l.value.name}` : `/${T.value[0].name}/${l.value.name}`;
106
+ return Ee.getComponent(`${t}/update-child`, "partial", "update-child");
104
107
  });
105
- return ze(V, (t, o) => {
108
+ return $e(q, (t, o) => {
106
109
  let n = t.find((u) => u.table == l.value.name);
107
- n != null && (_.value.page = Math.ceil((n.index + 1) / d.value.pageSize));
110
+ n != null && (_.value.page = Math.ceil((n.index + 1) / p.value.pageSize));
108
111
  }), le({ resize: ve }), (t, o) => {
109
- const n = b("el-table-column"), u = b("el-tooltip"), a = b("el-popover"), i = b("el-form-item"), c = b("el-table"), Y = b("el-pagination");
110
- return f(), z(Q, null, [
112
+ const n = b("el-table-column"), u = b("el-tooltip"), a = b("el-popover"), i = b("el-form-item"), c = b("el-table"), X = b("el-pagination");
113
+ return f(), $(K, null, [
111
114
  R(c, {
112
115
  ref_key: "tableRef",
113
116
  ref: k,
@@ -118,45 +121,45 @@ const Oe = {
118
121
  data: e(be),
119
122
  onRowClick: o[0] || (o[0] = (r, h, w) => e(ie)(r, h, w)),
120
123
  onSelectionChange: e(ce),
121
- onHeaderDragend: o[1] || (o[1] = (r, h, w, $) => e(fe)(r, h, w, $, e(l)))
124
+ onHeaderDragend: o[1] || (o[1] = (r, h, w, H) => e(fe)(r, h, w, H, e(l)))
122
125
  }, {
123
126
  empty: v(() => [
124
- Fe(E(e(Ee)("common.no_data")), 1)
127
+ ze(E(e(Ie)("common.no_data")), 1)
125
128
  ]),
126
129
  default: v(() => [
127
- e(re) ? (f(), F(n, {
130
+ e(re) ? (f(), z(n, {
128
131
  key: 0,
129
132
  type: "selection",
130
133
  width: "40",
131
134
  fixed: ""
132
- })) : D("", !0),
133
- (f(!0), z(Q, null, De(e(l).show, (r, h) => {
134
- var w, $, G;
135
- return f(), F(n, {
135
+ })) : F("", !0),
136
+ (f(!0), $(K, null, Fe(e(l).show, (r, h) => {
137
+ var w, H, G;
138
+ return f(), z(n, {
136
139
  key: r.name,
137
140
  "show-overflow-tooltip": "",
138
141
  prop: r.name,
139
142
  label: r.label,
140
- "min-width": ((G = ($ = (w = e(O)) == null ? void 0 : w[e(N)]) == null ? void 0 : $[e(l).name]) == null ? void 0 : G[r.name]) ?? r.control.width,
141
- fixed: e(d).fixed.length > 0 ? e(d).fixed.indexOf(r.name) > -1 : h == 0
143
+ "min-width": ((G = (H = (w = e(A)) == null ? void 0 : w[e(V)]) == null ? void 0 : H[e(l).name]) == null ? void 0 : G[r.name]) ?? r.control.width,
144
+ fixed: e(p).fixed.length > 0 ? e(p).fixed.indexOf(r.name) > -1 : h == 0
142
145
  }, {
143
146
  header: v((x) => [
144
- e(S).type != "Detail" && r.control.required ? (f(), z("i", Oe, "*")) : D("", !0),
147
+ e(S).type != "Detail" && r.control.required ? (f(), $("i", Ae, "*")) : F("", !0),
145
148
  R(u, {
146
149
  placement: "top",
147
150
  content: r.label,
148
- disabled: e(de)(x, h)
151
+ disabled: e(pe)(x, h)
149
152
  }, {
150
153
  default: v(() => [
151
154
  C("span", {
152
- onMouseenter: (B) => e(me)(B, h)
155
+ onMouseenter: (B) => e(de)(B, h)
153
156
  }, [
154
157
  C("span", null, E(e(Me)(e(l).table, r.name)), 1)
155
- ], 40, Ae)
158
+ ], 40, Ne)
156
159
  ]),
157
160
  _: 2
158
161
  }, 1032, ["content", "disabled"]),
159
- r.control.tooltip ? (f(), F(a, {
162
+ r.control.tooltip ? (f(), z(a, {
160
163
  key: 1,
161
164
  trigger: "hover",
162
165
  placement: "top",
@@ -170,24 +173,24 @@ const Oe = {
170
173
  C("pre", null, E(r.control.tooltip.content), 1)
171
174
  ]),
172
175
  _: 2
173
- }, 1032, ["title"])) : D("", !0)
176
+ }, 1032, ["title"])) : F("", !0)
174
177
  ]),
175
178
  default: v((x) => [
176
179
  R(i, {
177
- style: He(e(ee).getStyle(r, e(S).type, e(d).type)),
178
- rules: e(W).getRules(e(V), e(l), r, x.$index),
180
+ style: De(e(Z).getStyle(r, e(S).type, e(p).type)),
181
+ rules: e(I).getRules(e(q), e(l), r, x.$index),
179
182
  prop: `[${e(l).name}][${e(L)(x.row)}][${r.name}]`
180
183
  }, {
181
184
  default: v(() => [
182
185
  R(e(oe), {
183
- schema: e(q),
186
+ schema: e(T),
184
187
  table: e(l),
185
188
  field: r,
186
189
  set: e(s),
187
190
  row: x.row,
188
- config: e(ee).getConfig(r, e(S).type, e(d).type),
191
+ config: e(Z).getConfig(r, e(S).type, e(p).type),
189
192
  onSubmit: e(se),
190
- onChange: (B) => e(pe)(B, e(s), e(l), r, e(L)(x.row))
193
+ onChange: (B) => e(me)(B, e(s), e(l), r, e(L)(x.row))
191
194
  }, null, 8, ["schema", "table", "field", "set", "row", "config", "onSubmit", "onChange"])
192
195
  ]),
193
196
  _: 2
@@ -199,20 +202,20 @@ const Oe = {
199
202
  ]),
200
203
  _: 1
201
204
  }, 8, ["max-height", "data", "onSelectionChange"]),
202
- e(l).main ? D("", !0) : (f(), z("div", {
205
+ e(l).main ? F("", !0) : (f(), $("div", {
203
206
  key: 0,
204
207
  ref_key: "footerRef",
205
- ref: A,
208
+ ref: N,
206
209
  class: "table-footer"
207
210
  }, [
208
211
  C("div", je, [
209
- (f(), F(Ie(e(Ce)), {
212
+ (f(), z(We(e(Ce)), {
210
213
  ref_key: "operationRef",
211
214
  ref: U,
212
215
  module: e(S),
213
216
  table: e(l),
214
217
  set: e(s),
215
- selection: e(m),
218
+ selection: e(d),
216
219
  onAdd: e(ge),
217
220
  onInsert: e(he),
218
221
  onCopy: e(ye),
@@ -220,11 +223,11 @@ const Oe = {
220
223
  }, null, 40, ["module", "table", "set", "selection", "onAdd", "onInsert", "onCopy", "onRemove"]))
221
224
  ]),
222
225
  C("div", Le, [
223
- R(Y, {
226
+ R(X, {
224
227
  background: "",
225
228
  layout: e(g).layout,
226
229
  "current-page": e(_).page,
227
- "page-size": e(d).pageSize,
230
+ "page-size": e(p).pageSize,
228
231
  "pager-count": e(g).count,
229
232
  total: e(s)[e(l).name].length,
230
233
  onCurrentChange: e(we)
@@ -236,5 +239,5 @@ const Oe = {
236
239
  }
237
240
  });
238
241
  export {
239
- Ke as default
242
+ Ze as default
240
243
  };