halo-pc 1.0.21 → 1.0.22
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Article-C_3LULzy.js +200 -0
- package/dist/{ArticleFooter-CbvmQHCn.js → ArticleFooter-Do6I1mma.js} +24 -18
- package/dist/{Autocomplete-BrKsj5vx.js → Autocomplete-BLOOqTTn.js} +1 -1
- package/dist/Autocomplete-BLrbt1wN.js +53 -0
- package/dist/Autocomplete-C27XN8Sp.js +54 -0
- package/dist/{CSharp-DGmv2biT.js → CSharp-BGn9jf2B.js} +1 -1
- package/dist/{Calender-dCiW7eIK.js → Calender-4bSMqUzx.js} +4 -4
- package/dist/Callback-BHYDtogL.js +26 -0
- package/dist/Cascader-D3y3WjFF.js +87 -0
- package/dist/Cascader-D9Y8L7X2.js +47 -0
- package/dist/{Checkbox-DklZD5ff.js → Checkbox-DnTLeLjt.js} +1 -1
- package/dist/Checkbox-dDfYBhhc.js +76 -0
- package/dist/{Code-DVZ9QWgE.js → Code-Af5URLnL.js} +1 -1
- package/dist/Code-Bi9Y45vV.js +42 -0
- package/dist/Code-CWsSgkJq.js +60 -0
- package/dist/Code-QYs-sjcG.js +4 -0
- package/dist/Code.vue_vue_type_style_index_0_lang-CI6sLXKy.js +65 -0
- package/dist/Column-wzxM_-Vp.js +74 -0
- package/dist/Comment-BF8L1umD.js +104 -0
- package/dist/Compare-CjSQcnd3.js +43 -0
- package/dist/Compare-Cj_CPjIV.js +63 -0
- package/dist/Copy-BNt-Dwoo.js +49 -0
- package/dist/Custom-CYPkAqpf.js +57 -0
- package/dist/{DataExport-DAk1d4uG.js → DataExport-CHQtRKzA.js} +1 -1
- package/dist/{DataExport.vue_vue_type_script_setup_true_lang-Clh4Jvxi.js → DataExport.vue_vue_type_script_setup_true_lang-Dt2BAaAO.js} +42 -37
- package/dist/{DataImport-BLOSIbQ2.js → DataImport-CDcmH3Du.js} +1 -1
- package/dist/{DataImport.vue_vue_type_script_setup_true_lang-D5J7e_59.js → DataImport.vue_vue_type_script_setup_true_lang-dULXjbl_.js} +64 -60
- package/dist/{Date-D1KihBir.js → Date-BStpsA7n.js} +1 -1
- package/dist/Date-U1py5NaK.js +43 -0
- package/dist/DateRange-DxAx2gxI.js +63 -0
- package/dist/DateTime-B3609Ct6.js +44 -0
- package/dist/{DateTime-Dwg6aUf3.js → DateTime-CmJw1-WA.js} +1 -1
- package/dist/{DateTimeRange-Cir1-Js8.js → DateTimeRange-aDw57sTG.js} +19 -13
- package/dist/Daterange-C48t6usd.js +63 -0
- package/dist/{Decimal-tv9vqaXk.js → Decimal-Ca0K6NoZ.js} +1 -1
- package/dist/Delete-FhIvONUV.js +62 -0
- package/dist/{Detail-B2rtvufA.js → Detail-qqW0J946.js} +22 -17
- package/dist/Dictionary-CaXytFmK.js +59 -0
- package/dist/Email-H2DHJhMe.js +54 -0
- package/dist/{File-C63qevce.js → File-CjXewuui.js} +33 -28
- package/dist/Image-BSuCHshD.js +9 -0
- package/dist/Index-9KImKLrj.js +4 -0
- package/dist/Index-BIbR8SAU.js +178 -0
- package/dist/Index-BaoxkF9F.js +4 -0
- package/dist/{Index-Cc_CDbUJ.js → Index-BrI9x7i7.js} +1 -1
- package/dist/Index-CXR5RC6-.js +4 -0
- package/dist/{Index-B6Ec8rbl.js → Index-CpGonJ_m.js} +1 -1
- package/dist/{Index-Cev7Nudv.js → Index-DUgprnVp.js} +1 -1
- package/dist/{Index-BD6O3A9N.js → Index-icEhc88J.js} +25 -20
- package/dist/{Index.vue_vue_type_script_setup_true_lang-DaoT5edv.js → Index.vue_vue_type_script_setup_true_lang-Beb5UD_S.js} +21 -16
- package/dist/{Index.vue_vue_type_script_setup_true_lang-xNPG8cCE.js → Index.vue_vue_type_script_setup_true_lang-DJ8ZzZ2K.js} +21 -16
- package/dist/{Index.vue_vue_type_style_index_0_lang-F7HqBnCS.js → Index.vue_vue_type_style_index_0_lang-D7LuD-a2.js} +40 -35
- package/dist/{Install-CTAGNKPW.js → Install-FwXpJIWk.js} +29 -24
- package/dist/Int-CXl1QpEL.js +44 -0
- package/dist/Int-DAxz3ETu.js +46 -0
- package/dist/List-CV9bkdrq.js +79 -0
- package/dist/Maintaince-DZNq9aHX.js +20 -0
- package/dist/{Markdown-BJB6rQY8.js → Markdown-BhwqDlwa.js} +1 -1
- package/dist/{Month-ui1XorBW.js → Month-BEmnA7zU.js} +1 -1
- package/dist/Month-DXQBHoJU.js +43 -0
- package/dist/Month-bgEd_K7_.js +44 -0
- package/dist/{Normal-Cf7kP6RU.js → Normal-Dya4aqc7.js} +49 -45
- package/dist/Paging-JXDzxoM0.js +99 -0
- package/dist/{PagingHeader-BkFBl-r_.js → PagingHeader-BETGBySb.js} +31 -25
- package/dist/{PagingRow-eXCadgdO.js → PagingRow-BLqp1c9E.js} +28 -22
- package/dist/QueryApi-B5jI3sBl.js +20 -0
- package/dist/{Racebar-ClXzi9hV.js → Racebar-CozeXwLJ.js} +42 -37
- package/dist/{Radio-llyoK7PI.js → Radio-CuAxYw7j.js} +1 -1
- package/dist/{Register-BaHhaZMu.js → Register-B11jE2Ox.js} +70 -66
- package/dist/RichText-CxBE_cVg.js +47 -0
- package/dist/{SearchFooter-BgJxQrMo.js → SearchFooter-agTqPUGE.js} +1 -1
- package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-C6DtjpFD.js → SearchFooter.vue_vue_type_style_index_0_lang-C-1Yr5_9.js} +1 -1
- package/dist/{SearchForm-CroUQ_3K.js → SearchForm-DNKmE8W0.js} +1 -1
- package/dist/{SearchForm.vue_vue_type_style_index_0_lang-DEu6hHys.js → SearchForm.vue_vue_type_style_index_0_lang-BzrMV0Wr.js} +37 -33
- package/dist/Select-BPa5rx_H.js +86 -0
- package/dist/{Select-BYw63gZy.js → Select-CRfEAtba.js} +35 -30
- package/dist/{Select-BtNeUq9h.js → Select-MqDjnB-C.js} +1 -1
- package/dist/{Single-CCVi3Pcj.js → Single-C5Kkr9SY.js} +106 -102
- package/dist/{Statistic-g3nQvsbW.js → Statistic-Ce_FMw5O.js} +34 -30
- package/dist/{Stock-CNqLeSld.js → Stock-BTjhpaxv.js} +1 -1
- package/dist/{Stock-C6Fxo31l.js → Stock-D8AJmsvb.js} +1 -1
- package/dist/{Stock.vue_vue_type_style_index_0_lang-BqXBN6CJ.js → Stock.vue_vue_type_style_index_0_lang-DTj2ITJ6.js} +30 -25
- package/dist/{Switch-NMkH-rhl.js → Switch-gwGbi34o.js} +1 -1
- package/dist/{Table-DpA4dO4P.js → Table-C03eUBYm.js} +66 -61
- package/dist/{Table-Cdd_tPoL.js → Table-DA8aGGEH.js} +69 -66
- package/dist/{Text-DanSgaL9.js → Text-B5uPrGof.js} +18 -12
- package/dist/Text-D-VS-lCk.js +59 -0
- package/dist/Text-NRww74M3.js +4 -0
- package/dist/Text.vue_vue_type_style_index_0_lang-Fsbur1tJ.js +59 -0
- package/dist/TextLink-B_Qg6CnF.js +65 -0
- package/dist/{Textarea-HhP_VFJV.js → Textarea-gtXLL6Qe.js} +1 -1
- package/dist/Time-DYOIZ2Rv.js +43 -0
- package/dist/Timeline-B4AYezYA.js +59 -0
- package/dist/{Tree-Ck_7r3nf.js → Tree-CRDb0vS5.js} +101 -97
- package/dist/Tree-CTmXjN1O.js +122 -0
- package/dist/TreeNode-HFcGpAOb.js +42 -0
- package/dist/{Update-DrmLFoty.js → Update-EHyhYK5k.js} +20 -15
- package/dist/{UpdateChild-CGCn-Eh4.js → UpdateChild-CC3b9evd.js} +23 -17
- package/dist/Upload-CkQ-5tVg.js +72 -0
- package/dist/Upload-um4BYzwO.js +150 -0
- package/dist/UploadApi-BmdGJGjh.js +20 -0
- package/dist/Year-DKBG5ihv.js +47 -0
- package/dist/{Year-RGAEzf_V.js → Year-Lhvyb9Vk.js} +1 -1
- package/dist/assets/@intlify-BISCQg1h.js +2189 -0
- package/dist/assets/@vue-aVYGocXp.js +93 -0
- package/dist/assets/clone-BZn0cTAu.js +134 -0
- package/dist/assets/file-saver-CwlpTZSc.js +74 -0
- package/dist/assets/liquidjs-C-LVcoaY.js +2893 -0
- package/dist/assets/moment-h96o7c8I.js +2578 -0
- package/dist/assets/sprintf-js-BPTdvBYM.js +148 -0
- package/dist/assets/underscore-B0BCaBxV.js +1070 -0
- package/dist/assets/underscore.string-DVXD2SZo.js +425 -0
- package/dist/assets/util-deprecate-Dzun97re.js +28 -0
- package/dist/assets/vue-i18n-CLr3brPz.js +1670 -0
- package/dist/main-C1iALE1f.js +8947 -0
- package/dist/main.js +130 -130
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/Article-D3N6eVpH.js +0 -195
- package/dist/Autocomplete-C1Q-qo5y.js +0 -49
- package/dist/Autocomplete-C_t_3Onz.js +0 -48
- package/dist/Callback-BcjLHYz6.js +0 -20
- package/dist/Cascader-BMs1Kw-s.js +0 -81
- package/dist/Cascader-BoZLMQjq.js +0 -41
- package/dist/Checkbox-DeuCkQ_E.js +0 -70
- package/dist/Code-CmB3ZGnM.js +0 -54
- package/dist/Code-Q9ETcIfA.js +0 -36
- package/dist/Code-hiW76EUm.js +0 -4
- package/dist/Code.vue_vue_type_style_index_0_lang-DJO46RBx.js +0 -59
- package/dist/Column-K0p0pVuf.js +0 -69
- package/dist/Comment-B_jDWUXE.js +0 -98
- package/dist/Compare-CziDSVLD.js +0 -37
- package/dist/Compare-DFDzyQIR.js +0 -57
- package/dist/Copy-gHXEFE58.js +0 -43
- package/dist/Custom-DS1OrDHT.js +0 -51
- package/dist/Date-BOrgXdKV.js +0 -37
- package/dist/DateRange-Clg_We_d.js +0 -57
- package/dist/DateTime-Ba-L9NIq.js +0 -38
- package/dist/Daterange-Gaj6hNOK.js +0 -57
- package/dist/Delete-HzVURBlh.js +0 -57
- package/dist/Dictionary-DKnp-UJn.js +0 -55
- package/dist/Email-CpOxaSSw.js +0 -48
- package/dist/Image-DRIunv3_.js +0 -9
- package/dist/Index-DSKuNKCT.js +0 -4
- package/dist/Index-QIBRYf1L.js +0 -4
- package/dist/Index-ZOfKMgat.js +0 -4
- package/dist/Index-bxLda8lZ.js +0 -174
- package/dist/Int-DmNjhEfK.js +0 -38
- package/dist/Int-nUzbSSOv.js +0 -41
- package/dist/List-gNI3y_wH.js +0 -74
- package/dist/Maintaince-pTASKuMA.js +0 -14
- package/dist/Month-CHfaIo8p.js +0 -38
- package/dist/Month-DgztqRaq.js +0 -37
- package/dist/Paging-CBgVct8q.js +0 -95
- package/dist/QueryApi-Wf86Sm6m.js +0 -13
- package/dist/RichText-Cc_jptgY.js +0 -41
- package/dist/Select-wxKjwxJj.js +0 -80
- package/dist/Text-DgZjeg-u.js +0 -4
- package/dist/Text-GuLK7BYX.js +0 -53
- package/dist/Text.vue_vue_type_style_index_0_lang-CYGKr6vh.js +0 -53
- package/dist/TextLink-B_Ur1pg0.js +0 -59
- package/dist/Time-CmyrAm3i.js +0 -37
- package/dist/Timeline-B85T2wBn.js +0 -53
- package/dist/Tree-OqvNLgYj.js +0 -118
- package/dist/TreeNode-Ba2f55wK.js +0 -37
- package/dist/Upload-D9HeSZCg.js +0 -68
- package/dist/Upload-DXADyB6r.js +0 -147
- package/dist/UploadApi-DAT-xdsM.js +0 -13
- package/dist/Year-Dx_qNPrz.js +0 -41
- package/dist/assets/halo-fe-idvmXC0t.js +0 -15923
- package/dist/main-COiaaxGk.js +0 -3542
@@ -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
|
2
|
-
import {
|
3
|
-
import
|
4
|
-
import
|
5
|
-
|
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-C1iALE1f.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-BzrMV0Wr.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(
|
19
|
-
let
|
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
|
-
|
26
|
+
F(t, (r) => {
|
23
27
|
m(() => {
|
24
|
-
|
28
|
+
f(), e && e(r);
|
25
29
|
});
|
26
30
|
});
|
27
|
-
},
|
28
|
-
let t =
|
29
|
-
title: { text:
|
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), _ =
|
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 ||
|
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 =
|
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
|
-
|
122
|
+
d.value.resize(t), m(() => {
|
119
123
|
k(), s == null || s.resize();
|
120
124
|
});
|
121
|
-
},
|
125
|
+
}, N = () => {
|
122
126
|
k(), m(() => {
|
123
|
-
s =
|
127
|
+
s = g.init(b.value), f();
|
124
128
|
});
|
125
129
|
};
|
126
130
|
return G(async () => {
|
127
|
-
|
131
|
+
y.value = Q.getConditionForm(p.value, D.value.query.condition), g = await U.getECharts(), N();
|
128
132
|
}), M(() => l.value, (t, e) => {
|
129
|
-
|
130
|
-
}),
|
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
|
-
|
139
|
+
J(Z, {
|
136
140
|
ref_key: "searchRef",
|
137
|
-
ref:
|
138
|
-
schema: i(
|
139
|
-
table: i(
|
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(
|
143
|
-
onChange: i(
|
146
|
+
"search-data": i(y),
|
147
|
+
onChange: i(E)
|
144
148
|
}, null, 8, ["schema", "table", "layout", "set", "search-data", "onChange"]),
|
145
|
-
|
149
|
+
K("div", {
|
146
150
|
ref_key: "chartRef",
|
147
151
|
ref: b,
|
148
152
|
class: "chart",
|
149
|
-
style:
|
153
|
+
style: P({ height: i(v) + "px" })
|
150
154
|
}, null, 4)
|
151
155
|
], 512));
|
152
156
|
}
|
153
157
|
});
|
154
158
|
export {
|
155
|
-
|
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-
|
2
|
+
import { _ } from "./Stock.vue_vue_type_style_index_0_lang-DTj2ITJ6.js";
|
3
3
|
const b = /* @__PURE__ */ c({
|
4
4
|
__name: "Stock",
|
5
5
|
props: {
|
@@ -1,8 +1,13 @@
|
|
1
|
-
import { defineComponent as F, toRefs as R, ref as T, onMounted as B, openBlock as E, createBlock as G, unref as
|
2
|
-
import {
|
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 { l as O, _ as K, A as N, C as S } from "./main-C1iALE1f.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 j = /* @__PURE__ */ A("div", { class: "ha-empty" }, "暂无行情数据", -1), z = [
|
4
9
|
j
|
5
|
-
],
|
10
|
+
], ee = /* @__PURE__ */ F({
|
6
11
|
__name: "Stock",
|
7
12
|
props: {
|
8
13
|
searchData: {},
|
@@ -15,21 +20,21 @@ const j = /* @__PURE__ */ A("div", { class: "ha-empty" }, "暂无行情数据",
|
|
15
20
|
set: {}
|
16
21
|
},
|
17
22
|
setup(k) {
|
18
|
-
let L = k, { module:
|
23
|
+
let L = k, { module: H, schema: W, table: v, layout: n, next: $, set: f } = R(L), p = null, d = null, y = "#04aa4e", x = "#ff5945", w = T(), u = { history: null, week: null, month: null }, _ = (t) => {
|
19
24
|
let o = N.orderBy(t, (i) => i[n.value.time], !1), e = [], l = [], r = [];
|
20
25
|
for (let i = 0; i < o.length; i++) {
|
21
26
|
let a = o[i];
|
22
27
|
e.push(a[n.value.time]);
|
23
|
-
let
|
24
|
-
l.push([
|
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: s >
|
32
|
+
itemStyle: { color: s > c ? y : x }
|
28
33
|
};
|
29
34
|
r.push(C);
|
30
35
|
}
|
31
36
|
return { times: e, values: l, volumes: r };
|
32
|
-
},
|
37
|
+
}, m = (t, o) => {
|
33
38
|
let e = [];
|
34
39
|
for (let l = 0, r = t.values.length; l < r; l++) {
|
35
40
|
if (l < o) {
|
@@ -147,10 +152,10 @@ const j = /* @__PURE__ */ A("div", { class: "ha-empty" }, "暂无行情数据",
|
|
147
152
|
//网格索引,表示使用第2个网格的配置
|
148
153
|
data: t.values,
|
149
154
|
itemStyle: {
|
150
|
-
color:
|
151
|
-
color0:
|
152
|
-
borderColor:
|
153
|
-
borderColor0:
|
155
|
+
color: y,
|
156
|
+
color0: x,
|
157
|
+
borderColor: y,
|
158
|
+
borderColor0: x
|
154
159
|
},
|
155
160
|
markPoint: {
|
156
161
|
//图标标注
|
@@ -184,7 +189,7 @@ const j = /* @__PURE__ */ A("div", { class: "ha-empty" }, "暂无行情数据",
|
|
184
189
|
{
|
185
190
|
name: "MA5",
|
186
191
|
type: "line",
|
187
|
-
data:
|
192
|
+
data: m(t, 5),
|
188
193
|
smooth: !0,
|
189
194
|
lineStyle: { width: 1 },
|
190
195
|
itemStyle: { opacity: 0 }
|
@@ -193,7 +198,7 @@ const j = /* @__PURE__ */ A("div", { class: "ha-empty" }, "暂无行情数据",
|
|
193
198
|
{
|
194
199
|
name: "MA10",
|
195
200
|
type: "line",
|
196
|
-
data:
|
201
|
+
data: m(t, 10),
|
197
202
|
smooth: !0,
|
198
203
|
lineStyle: { width: 1 },
|
199
204
|
itemStyle: { opacity: 0 }
|
@@ -202,7 +207,7 @@ const j = /* @__PURE__ */ A("div", { class: "ha-empty" }, "暂无行情数据",
|
|
202
207
|
{
|
203
208
|
name: "MA20",
|
204
209
|
type: "line",
|
205
|
-
data:
|
210
|
+
data: m(t, 20),
|
206
211
|
smooth: !0,
|
207
212
|
lineStyle: { width: 1 },
|
208
213
|
itemStyle: { opacity: 0 }
|
@@ -211,7 +216,7 @@ const j = /* @__PURE__ */ A("div", { class: "ha-empty" }, "暂无行情数据",
|
|
211
216
|
{
|
212
217
|
name: "MA30",
|
213
218
|
type: "line",
|
214
|
-
data:
|
219
|
+
data: m(t, 30),
|
215
220
|
smooth: !0,
|
216
221
|
lineStyle: { width: 1 },
|
217
222
|
itemStyle: { opacity: 0 }
|
@@ -229,7 +234,7 @@ const j = /* @__PURE__ */ A("div", { class: "ha-empty" }, "暂无行情数据",
|
|
229
234
|
smooth: !0,
|
230
235
|
data: [],
|
231
236
|
areaStyle: {
|
232
|
-
color: new
|
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 j = /* @__PURE__ */ A("div", { class: "ha-empty" }, "暂无行情数据",
|
|
238
243
|
}])
|
239
244
|
}
|
240
245
|
};
|
241
|
-
S.theme == "dark" && (r.areaStyle.color = new
|
246
|
+
S.theme == "dark" && (r.areaStyle.color = new d.graphic.LinearGradient(
|
242
247
|
0,
|
243
248
|
0,
|
244
249
|
0,
|
@@ -252,14 +257,14 @@ const j = /* @__PURE__ */ A("div", { class: "ha-empty" }, "暂无行情数据",
|
|
252
257
|
r.data.push(...i), e.series.push(r);
|
253
258
|
}
|
254
259
|
return o && f.value[o.table].forEach((r) => {
|
255
|
-
let i = r[o.time], a = t.times.indexOf(i),
|
260
|
+
let i = r[o.time], a = t.times.indexOf(i), c = t.values[a], s = {
|
256
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 ? (s.coord.push(
|
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,7 +274,7 @@ const j = /* @__PURE__ */ A("div", { class: "ha-empty" }, "暂无行情数据",
|
|
269
274
|
}), o / t.length * 100;
|
270
275
|
}, I = (t) => {
|
271
276
|
let o = M(t);
|
272
|
-
|
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 = () => {
|
@@ -277,20 +282,20 @@ const j = /* @__PURE__ */ A("div", { class: "ha-empty" }, "暂无行情数据",
|
|
277
282
|
t.length > 0 && I(_(t));
|
278
283
|
};
|
279
284
|
return B(async () => {
|
280
|
-
|
281
|
-
}), (t, o) => (E(), G(
|
285
|
+
d = await O.getECharts(), Z();
|
286
|
+
}), (t, o) => (E(), G(h(K), null, {
|
282
287
|
default: P(() => [
|
283
288
|
A("div", {
|
284
289
|
ref_key: "chartRef",
|
285
290
|
ref: w,
|
286
291
|
class: "chart"
|
287
292
|
}, z, 512),
|
288
|
-
V(" 30日开盘振幅:" + b(
|
293
|
+
V(" 30日开盘振幅:" + b(h(u).month) + "% 7日开盘振幅:" + b(h(u).week) + "% 历史开盘振幅:" + b(h(u).history) + "% ", 1)
|
289
294
|
]),
|
290
295
|
_: 1
|
291
296
|
}));
|
292
297
|
}
|
293
298
|
});
|
294
299
|
export {
|
295
|
-
|
300
|
+
ee 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-
|
13
|
+
let r = f(() => import("./Dictionary-CaXytFmK.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,17 +1,22 @@
|
|
1
|
-
import { defineComponent as We, toRefs as
|
2
|
-
import
|
3
|
-
import {
|
4
|
-
import
|
5
|
-
import
|
6
|
-
import
|
7
|
-
import
|
1
|
+
import { defineComponent as We, toRefs as He, ref as i, onMounted as Be, nextTick as K, computed as le, resolveComponent as k, openBlock as f, createElementBlock as D, createVNode as v, unref as e, isRef as w, normalizeClass as De, withCtx as h, createTextVNode as oe, toDisplayString as R, Fragment as Te, renderList as Ue, createBlock as S, createCommentVNode as z, createElementVNode as T, resolveDynamicComponent as Ne } from "vue";
|
2
|
+
import "./assets/underscore-B0BCaBxV.js";
|
3
|
+
import { K as j, D as $, d as Ee, L as Le, t as q, f as Me, w as Pe, N as Ke, P as je, U as qe, a as Ae, h as Fe, m as Oe, b as Ie } from "./main-C1iALE1f.js";
|
4
|
+
import "./assets/underscore.string-DVXD2SZo.js";
|
5
|
+
import "./assets/file-saver-CwlpTZSc.js";
|
6
|
+
import "./assets/clone-BZn0cTAu.js";
|
7
|
+
import "./assets/moment-h96o7c8I.js";
|
8
|
+
import "./assets/liquidjs-C-LVcoaY.js";
|
9
|
+
import { _ as Ge } from "./SearchForm.vue_vue_type_style_index_0_lang-BzrMV0Wr.js";
|
10
|
+
import { _ as Je } from "./DataImport.vue_vue_type_script_setup_true_lang-dULXjbl_.js";
|
11
|
+
import { _ as Qe } from "./DataExport.vue_vue_type_script_setup_true_lang-Dt2BAaAO.js";
|
12
|
+
import { _ as Xe } from "./Index.vue_vue_type_style_index_0_lang-D7LuD-a2.js";
|
8
13
|
import "vue-router";
|
9
14
|
import "./assets/intro.js-DxWjEdp_.js";
|
10
|
-
import { _ as Ye } from "./SearchFooter.vue_vue_type_style_index_0_lang-
|
15
|
+
import { _ as Ye } from "./SearchFooter.vue_vue_type_style_index_0_lang-C-1Yr5_9.js";
|
11
16
|
const Ze = {
|
12
17
|
key: 0,
|
13
18
|
class: "required"
|
14
|
-
}, et = ["onMouseenter"], tt = { class: "el-drawer__title" }, at = { key: 0 }, lt = ["href"],
|
19
|
+
}, et = ["onMouseenter"], tt = { class: "el-drawer__title" }, at = { key: 0 }, lt = ["href"], wt = /* @__PURE__ */ We({
|
15
20
|
__name: "Table",
|
16
21
|
props: {
|
17
22
|
searchData: {},
|
@@ -24,7 +29,7 @@ const Ze = {
|
|
24
29
|
},
|
25
30
|
emits: ["search", "navigate", "sort", "page-change", "size-change", "succeed", "close"],
|
26
31
|
setup(ne, { expose: re, emit: se }) {
|
27
|
-
let b = se,
|
32
|
+
let b = se, ie = ne, { module: ue, schema: U, table: r, layout: u, next: p, set: _, searchData: A } = He(ie), N = i([]), V = i(), E = i(), L = i(), F = i(), O = i(), W = i(), m = i(!1), g = i(!1), I = i(), G = i("120px"), J = i(), y = i({ layout: "prev, pager, next", count: 5, sizes: [20, 50, 200, 500, 2e3] }), H = i(), n = i({ title: null, env: null, page: null, url: null, row: null, visible: !1, appendToBody: !1 }), de = (t) => {
|
28
33
|
x("insert", null, t);
|
29
34
|
}, pe = (t, a) => {
|
30
35
|
x("detail", t, a);
|
@@ -36,8 +41,8 @@ const Ze = {
|
|
36
41
|
x("delete", t, a);
|
37
42
|
}, Q = (t) => {
|
38
43
|
let a = t.map((o) => o[r.value.key.name]);
|
39
|
-
|
40
|
-
|
44
|
+
Fe.post(p.value.delete.route, a).then((o) => {
|
45
|
+
Oe.success(o.message), M();
|
41
46
|
});
|
42
47
|
}, x = (t, a, o) => {
|
43
48
|
let s = ve(t, a);
|
@@ -52,16 +57,16 @@ const Ze = {
|
|
52
57
|
}, fe = () => {
|
53
58
|
n.value.visible = !1, b("close");
|
54
59
|
}, he = (t) => {
|
55
|
-
n.value.title =
|
56
|
-
},
|
60
|
+
n.value.title = Ie(t.module.type, t.module.name), n.value.env = t.module.env;
|
61
|
+
}, M = () => {
|
57
62
|
n.value.visible = !1;
|
58
|
-
let t =
|
63
|
+
let t = N.value;
|
59
64
|
b("succeed", (a) => {
|
60
65
|
let o = a.data.set[r.value.name];
|
61
66
|
if (!o.length)
|
62
67
|
return;
|
63
68
|
let s = r.value.key;
|
64
|
-
|
69
|
+
K(() => {
|
65
70
|
let c = n.value.row;
|
66
71
|
if (c) {
|
67
72
|
let d = o.find((C) => C[s.name] == c[s.name]);
|
@@ -87,39 +92,39 @@ const Ze = {
|
|
87
92
|
}, xe = (t) => {
|
88
93
|
G.value = t;
|
89
94
|
}, Ce = (t, a) => {
|
90
|
-
|
95
|
+
N.value = t;
|
91
96
|
}, ke = (t, a, o) => {
|
92
97
|
let s = t.target.children[0], c = $.getWidth(s) + 16 + 14, d = a.realWidth || a.width;
|
93
98
|
o._headerTooltip = c > d;
|
94
99
|
}, Re = async (t, a, o, s) => {
|
95
|
-
await
|
100
|
+
await j.setColumnWidth(p.value.paging.route, r.value.name, o.property, t);
|
96
101
|
}, Y = () => {
|
97
102
|
var s, c, d;
|
98
|
-
let t = $.getHeight(V.value), a = $.getHeight([(s =
|
103
|
+
let t = $.getHeight(V.value), a = $.getHeight([(s = L.value) == null ? void 0 : s.$el, (c = F.value) == null ? void 0 : c.$el, (d = O.value) == null ? void 0 : d.$el]), o = t - a;
|
99
104
|
I.value = `${o}px`;
|
100
105
|
}, Z = () => {
|
101
|
-
let t =
|
106
|
+
let t = H.value;
|
102
107
|
t <= 690 ? y.value.count = 5 : y.value.count = 7, t <= 300 ? y.value.layout = "pager" : t <= 620 ? y.value.layout = "prev, pager, next" : y.value.layout = "sizes, total, prev, pager, next, jumper";
|
103
108
|
}, Se = (t, a) => {
|
104
109
|
if (!W.value || !W.value.keyboard)
|
105
110
|
return !1;
|
106
111
|
W.value.keyboard(t, a);
|
107
112
|
}, ze = (t) => {
|
108
|
-
|
113
|
+
L.value.resize(t), H.value = $.getWidth(V.value), Z(), K(() => {
|
109
114
|
Y();
|
110
115
|
});
|
111
116
|
};
|
112
|
-
|
113
|
-
J.value = await
|
117
|
+
Be(async () => {
|
118
|
+
J.value = await j.getFieldConfigs(), H.value = $.getWidth(V.value), Z(), K(() => {
|
114
119
|
Y();
|
115
120
|
});
|
116
121
|
});
|
117
122
|
let $e = le(() => {
|
118
|
-
let a = Object.keys(
|
123
|
+
let a = Object.keys(u.value.orderBys)[0], o = u.value.orderBys[a];
|
119
124
|
return { prop: a, order: o ? "ascending" : "descending" };
|
120
125
|
}), Ve = le(() => {
|
121
126
|
let t = `/${r.value.name}/paging-row`;
|
122
|
-
return
|
127
|
+
return Ee.getComponent(t, "partial", "paging-row");
|
123
128
|
});
|
124
129
|
return re({ keyboard: Se, resize: ze }), (t, a) => {
|
125
130
|
const o = k("el-table-column"), s = k("el-tooltip"), c = k("el-table"), d = k("el-pagination"), C = k("el-drawer");
|
@@ -130,22 +135,22 @@ const Ze = {
|
|
130
135
|
}, [
|
131
136
|
v(Ge, {
|
132
137
|
ref_key: "searchRef",
|
133
|
-
ref:
|
134
|
-
schema: e(
|
138
|
+
ref: L,
|
139
|
+
schema: e(U),
|
135
140
|
table: e(r),
|
136
|
-
layout: e(
|
141
|
+
layout: e(u),
|
137
142
|
"search-data": e(A),
|
138
143
|
onSubmit: e(X)
|
139
144
|
}, null, 8, ["schema", "table", "layout", "search-data", "onSubmit"]),
|
140
145
|
v(Ye, {
|
141
146
|
ref_key: "headerRef",
|
142
147
|
ref: F,
|
143
|
-
schema: e(
|
148
|
+
schema: e(U),
|
144
149
|
table: e(r),
|
145
|
-
layout: e(
|
150
|
+
layout: e(u),
|
146
151
|
set: e(_),
|
147
152
|
next: e(p),
|
148
|
-
selection: e(
|
153
|
+
selection: e(N),
|
149
154
|
"search-data": e(A),
|
150
155
|
onAdd: e(de),
|
151
156
|
onRemove: e(Q),
|
@@ -156,7 +161,7 @@ const Ze = {
|
|
156
161
|
v(c, {
|
157
162
|
ref_key: "tableRef",
|
158
163
|
ref: E,
|
159
|
-
class: De([{ "hide-nav": e(
|
164
|
+
class: De([{ "hide-nav": e(Le).hideNav }, "table-default table-paging"]),
|
160
165
|
size: "small",
|
161
166
|
border: "",
|
162
167
|
"highlight-current-row": "",
|
@@ -168,25 +173,25 @@ const Ze = {
|
|
168
173
|
onHeaderDragend: e(Re)
|
169
174
|
}, {
|
170
175
|
empty: h(() => [
|
171
|
-
oe(R(e(
|
176
|
+
oe(R(e(q)("common.no_data")), 1)
|
172
177
|
]),
|
173
178
|
default: h(() => [
|
174
179
|
v(o, {
|
175
180
|
type: "selection",
|
176
181
|
width: "30"
|
177
182
|
}),
|
178
|
-
(f(!0), D(
|
183
|
+
(f(!0), D(Te, null, Ue(e(r).show, (l, ot) => {
|
179
184
|
var ee, te, ae;
|
180
185
|
return f(), S(o, {
|
181
186
|
sortable: e(r) ? "custom" : !1,
|
182
187
|
prop: l.name,
|
183
188
|
"sort-orders": ["descending", "ascending"],
|
184
|
-
fixed: e(
|
189
|
+
fixed: e(u).fixed.indexOf(l.name) > -1,
|
185
190
|
"min-width": ((ae = (te = (ee = e(J)) == null ? void 0 : ee[e(p).paging.route]) == null ? void 0 : te[e(r).name]) == null ? void 0 : ae[l.name]) ?? l.control.width,
|
186
191
|
label: `${l.label}${l.control.prefix || l.suffix ? "(" + (l.control.prefix || l.suffix) + ")" : ""}`,
|
187
192
|
key: `${e(r).name}.${l.name}`
|
188
193
|
}, {
|
189
|
-
header: h((
|
194
|
+
header: h((B) => [
|
190
195
|
l.control.required && l.control.editable ? (f(), D("i", Ze)) : z("", !0),
|
191
196
|
v(s, {
|
192
197
|
placement: "top",
|
@@ -194,37 +199,37 @@ const Ze = {
|
|
194
199
|
disabled: !l._headerTooltip
|
195
200
|
}, {
|
196
201
|
default: h(() => [
|
197
|
-
|
198
|
-
onMouseenter: (P) => e(ke)(P,
|
202
|
+
T("span", {
|
203
|
+
onMouseenter: (P) => e(ke)(P, B.column, l)
|
199
204
|
}, [
|
200
|
-
|
205
|
+
T("span", null, R(e(Me)(e(r).name, l.name)), 1)
|
201
206
|
], 40, et)
|
202
207
|
]),
|
203
208
|
_: 2
|
204
209
|
}, 1032, ["content", "disabled"])
|
205
210
|
]),
|
206
|
-
default: h((
|
211
|
+
default: h((B) => [
|
207
212
|
v(Xe, {
|
208
|
-
schema: e(
|
213
|
+
schema: e(U),
|
209
214
|
table: e(r),
|
210
215
|
field: l,
|
211
216
|
set: e(_),
|
212
|
-
row:
|
213
|
-
config: e(
|
214
|
-
onChange: (P) => e(_e)(P, e(r), l, e(_),
|
217
|
+
row: B.row,
|
218
|
+
config: e(Pe).getConfig(l, e(ue).type, e(u).type),
|
219
|
+
onChange: (P) => e(_e)(P, e(r), l, e(_), B.row)
|
215
220
|
}, null, 8, ["schema", "table", "field", "set", "row", "config", "onChange"])
|
216
221
|
]),
|
217
222
|
_: 2
|
218
223
|
}, 1032, ["sortable", "prop", "fixed", "min-width", "label"]);
|
219
224
|
}), 128)),
|
220
225
|
v(o, {
|
221
|
-
label: e(
|
226
|
+
label: e(q)("common.operation"),
|
222
227
|
fixed: "right",
|
223
228
|
"show-overflow-tooltip": "",
|
224
229
|
"min-width": e(G)
|
225
230
|
}, {
|
226
231
|
default: h((l) => [
|
227
|
-
(f(), S(
|
232
|
+
(f(), S(Ne(e(Ve)), {
|
228
233
|
table: e(r),
|
229
234
|
next: e(p),
|
230
235
|
set: e(_),
|
@@ -242,7 +247,7 @@ const Ze = {
|
|
242
247
|
]),
|
243
248
|
_: 1
|
244
249
|
}, 8, ["class", "max-height", "data", "default-sort", "onHeaderDragend"]),
|
245
|
-
v(e(
|
250
|
+
v(e(Ke), {
|
246
251
|
ref_key: "footerRef",
|
247
252
|
ref: O,
|
248
253
|
class: "list-toolbar"
|
@@ -251,14 +256,14 @@ const Ze = {
|
|
251
256
|
v(d, {
|
252
257
|
background: "",
|
253
258
|
layout: e(y).layout,
|
254
|
-
"current-page": e(
|
259
|
+
"current-page": e(u).page,
|
255
260
|
"pager-count": e(y).count,
|
256
|
-
total: e(
|
261
|
+
total: e(u).count,
|
257
262
|
"page-sizes": e(y).sizes,
|
258
263
|
onCurrentChange: e(ye),
|
259
264
|
onSizeChange: e(be),
|
260
|
-
"page-size": e(
|
261
|
-
"onUpdate:pageSize": a[4] || (a[4] = (l) => e(
|
265
|
+
"page-size": e(u).pageSize,
|
266
|
+
"onUpdate:pageSize": a[4] || (a[4] = (l) => e(u).pageSize = l)
|
262
267
|
}, null, 8, ["layout", "current-page", "pager-count", "total", "page-sizes", "onCurrentChange", "onSizeChange", "page-size"])
|
263
268
|
]),
|
264
269
|
_: 1
|
@@ -267,14 +272,14 @@ const Ze = {
|
|
267
272
|
key: 0,
|
268
273
|
next: e(p),
|
269
274
|
onClose: a[5] || (a[5] = (l) => w(m) ? m.value = !1 : m = !1),
|
270
|
-
onSucceed: e(
|
275
|
+
onSucceed: e(M),
|
271
276
|
modelValue: e(m),
|
272
277
|
"onUpdate:modelValue": a[6] || (a[6] = (l) => w(m) ? m.value = l : m = l)
|
273
278
|
}, null, 8, ["next", "onSucceed", "modelValue"])) : z("", !0),
|
274
279
|
e(p).export ? (f(), S(Qe, {
|
275
280
|
key: 1,
|
276
281
|
route: e(p).export.route,
|
277
|
-
"page-count": e(
|
282
|
+
"page-count": e(je).pageCount(e(u).count, e(u).pageSize),
|
278
283
|
onClose: a[7] || (a[7] = (l) => w(g) ? g.value = !1 : g = !1),
|
279
284
|
modelValue: e(g),
|
280
285
|
"onUpdate:modelValue": a[8] || (a[8] = (l) => w(g) ? g.value = l : g = l)
|
@@ -283,27 +288,27 @@ const Ze = {
|
|
283
288
|
key: 2,
|
284
289
|
"destroy-on-close": "",
|
285
290
|
"append-to-body": e(n).appendToBody,
|
286
|
-
size: e(
|
291
|
+
size: e(j).getDrawerWidth(e(H)),
|
287
292
|
modelValue: e(n).visible,
|
288
293
|
"onUpdate:modelValue": a[9] || (a[9] = (l) => e(n).visible = l)
|
289
294
|
}, {
|
290
295
|
header: h(() => [
|
291
|
-
|
296
|
+
T("div", tt, [
|
292
297
|
oe(R(e(n).title) + " ", 1),
|
293
298
|
e(n).env ? (f(), D("span", at, "[" + R(e(n).env) + "]", 1)) : z("", !0),
|
294
|
-
|
299
|
+
T("a", {
|
295
300
|
class: "drawer-copy",
|
296
|
-
href: e(
|
297
|
-
}, R(e(
|
301
|
+
href: e(qe).getToUrl(e(n).url)
|
302
|
+
}, R(e(q)("common.link")), 9, lt)
|
298
303
|
])
|
299
304
|
]),
|
300
305
|
default: h(() => [
|
301
|
-
v(e(
|
306
|
+
v(e(Ae), {
|
302
307
|
ref_key: "pageRef",
|
303
308
|
ref: W,
|
304
309
|
url: e(n).url,
|
305
310
|
onLoaded: e(he),
|
306
|
-
onSucceed: e(
|
311
|
+
onSucceed: e(M),
|
307
312
|
onClose: e(fe)
|
308
313
|
}, null, 8, ["url", "onLoaded", "onSucceed", "onClose"])
|
309
314
|
]),
|
@@ -314,5 +319,5 @@ const Ze = {
|
|
314
319
|
}
|
315
320
|
});
|
316
321
|
export {
|
317
|
-
|
322
|
+
wt as default
|
318
323
|
};
|