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.
- package/dist/{Article-CTqryR4L.js → Article-N3ZaJaLc.js} +75 -70
- package/dist/{ArticleFooter-BumGH5nC.js → ArticleFooter-sspAOJuS.js} +23 -17
- package/dist/Autocomplete-CD6CsF2X.js +54 -0
- package/dist/{Autocomplete-BNx0bErM.js → Autocomplete-DY6OaWAK.js} +1 -1
- package/dist/Autocomplete-DkkUx0lx.js +53 -0
- package/dist/{CSharp-Dt6H75E9.js → CSharp-BwNnAf8e.js} +1 -1
- package/dist/{Calender-DhKZyJri.js → Calender-VwwIDi3Q.js} +1 -1
- package/dist/Callback-BRrShVCU.js +26 -0
- package/dist/Cascader-CurlPJsQ.js +87 -0
- package/dist/Cascader-i3KkCfFF.js +47 -0
- package/dist/{Checkbox-C-iEGB0k.js → Checkbox-Bk98RtL7.js} +1 -1
- package/dist/Checkbox-CNMzO79X.js +76 -0
- package/dist/Code-BdDjNSqs.js +42 -0
- package/dist/{Code-Q_6THgGl.js → Code-C4XPPKO8.js} +1 -1
- package/dist/{Code-JtSSnUWC.js → Code-CRH4WNXz.js} +1 -1
- package/dist/Code-CqA6bVSZ.js +60 -0
- package/dist/Code.vue_vue_type_style_index_0_lang-Dkdu_fcm.js +65 -0
- package/dist/Column-BCz-Xp-3.js +75 -0
- package/dist/Comment-BoOQfrxv.js +104 -0
- package/dist/Compare-ChJu8LUo.js +44 -0
- package/dist/{Compare-DZVrBYEh.js → Compare-DxOXRPzs.js} +25 -19
- package/dist/Copy-DBUSr3OW.js +49 -0
- package/dist/Custom-CNQIPMHT.js +57 -0
- package/dist/{DataExport-DSz5371s.js → DataExport-B-0vVYMT.js} +1 -1
- package/dist/{DataExport.vue_vue_type_script_setup_true_lang-DL9q81Ti.js → DataExport.vue_vue_type_script_setup_true_lang-BvyBbSLP.js} +41 -36
- package/dist/{DataImport-CX7G70a7.js → DataImport-ApAPTQcq.js} +1 -1
- package/dist/DataImport.vue_vue_type_script_setup_true_lang-CKd0CAf_.js +176 -0
- package/dist/Date-BnRTPDSJ.js +43 -0
- package/dist/{Date-ytWe2gz8.js → Date-gMmfQ3pA.js} +1 -1
- package/dist/DateRange-BPQ2TOXk.js +63 -0
- package/dist/DateTime-CsZdXjmB.js +44 -0
- package/dist/{DateTime-p6YgmtGd.js → DateTime-Cz09I2-B.js} +1 -1
- package/dist/{DateTimeRange-DGobnXqs.js → DateTimeRange-DPjTS-A2.js} +17 -11
- package/dist/Daterange-DCyMLI8G.js +63 -0
- package/dist/{Decimal-BvyzJq1c.js → Decimal-Cpz-_Ef3.js} +1 -1
- package/dist/Delete-Di56R5Tf.js +62 -0
- package/dist/{Detail-DZJ0aUFr.js → Detail-DP1ReSaw.js} +22 -17
- package/dist/Dictionary-B8OMis9G.js +59 -0
- package/dist/Email-CCZH8SDT.js +54 -0
- package/dist/{File-BEBElTSS.js → File-BUw6o5UN.js} +32 -27
- package/dist/{Image-DDK05SW7.js → Image-DBjqi76B.js} +1 -1
- package/dist/Index-B6sevgc6.js +4 -0
- package/dist/{Index-DPwdcUO4.js → Index-BDVj7Dy2.js} +1 -1
- package/dist/Index-CZYVZtFI.js +178 -0
- package/dist/Index-Cch9emdC.js +4 -0
- package/dist/Index-CfpZf8By.js +4 -0
- package/dist/Index-Cn3HXkPm.js +4 -0
- package/dist/{Index-CuEyzMd0.js → Index-DuKtMNgH.js} +25 -20
- package/dist/{Index-BiF8qEWf.js → Index-Z8dMl0cU.js} +1 -1
- package/dist/{Index.vue_vue_type_script_setup_true_lang-Bp091zxs.js → Index.vue_vue_type_script_setup_true_lang-BJJPNo3Y.js} +20 -15
- package/dist/{Index.vue_vue_type_script_setup_true_lang-hjy21YuL.js → Index.vue_vue_type_script_setup_true_lang-DCxwPrIZ.js} +17 -12
- package/dist/{Install-CxuoWpHC.js → Install-CNE0J2Q9.js} +27 -22
- package/dist/Int-C5AxmjK0.js +46 -0
- package/dist/Int-RoCJiPje.js +44 -0
- package/dist/List-DJuE2QHL.js +79 -0
- package/dist/Maintaince-CdqWSHAZ.js +20 -0
- package/dist/{Markdown-x1hASyA-.js → Markdown-DKyCVBYy.js} +1 -1
- package/dist/{Month-Bb0tgF-k.js → Month-BfSG37wf.js} +1 -1
- package/dist/Month-OH6snasK.js +43 -0
- package/dist/Month-iU9F-vQ5.js +44 -0
- package/dist/{Normal-CYmy5sN7.js → Normal-DPJQ_Ds5.js} +70 -66
- package/dist/Paging-CYU3sSbD.js +99 -0
- package/dist/{PagingHeader-DWbFl1do.js → PagingHeader-CgWbC7R1.js} +30 -24
- package/dist/{PagingRow-CR2N1vgm.js → PagingRow-Y8lG-1cI.js} +26 -20
- package/dist/QueryApi-C3h4tWd0.js +20 -0
- package/dist/{Racebar-BsgDK6Zf.js → Racebar-CtFYJKrh.js} +42 -37
- package/dist/{Radio-B3Af-uZE.js → Radio-Bz2SE_FO.js} +1 -1
- package/dist/{Register-Cwr3iIZm.js → Register-CiK44o2W.js} +44 -40
- package/dist/RichText-BkhW8muI.js +47 -0
- package/dist/{SearchFooter-DiILcc_U.js → SearchFooter-D6O_c5DS.js} +1 -1
- 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
- package/dist/{SearchForm-BOw_kHs2.js → SearchForm-CZjHSE1s.js} +1 -1
- package/dist/{SearchForm.vue_vue_type_style_index_0_lang-GMYFgf1H.js → SearchForm.vue_vue_type_style_index_0_lang-CVeFjNjG.js} +40 -36
- package/dist/Select-BEgPZsaR.js +117 -0
- package/dist/Select-CY1CA4pv.js +86 -0
- package/dist/{Select-BdYG1KQE.js → Select-FFqI2hOh.js} +1 -1
- package/dist/{Single-DqCIZBIB.js → Single-BQRWqAOH.js} +103 -99
- package/dist/{Statistic-B9ZcUUk1.js → Statistic-CyqoTZZj.js} +37 -33
- package/dist/{Stock-BnBNtuo7.js → Stock-N57DPrDl.js} +1 -1
- package/dist/{Stock-BiSr7zAF.js → Stock-negSF4zD.js} +1 -1
- package/dist/{Stock.vue_vue_type_style_index_0_lang-CZPeF39q.js → Stock.vue_vue_type_style_index_0_lang-BuxuI7Wg.js} +31 -26
- package/dist/{Switch-BE4dQcja.js → Switch-g5K9zh4g.js} +1 -1
- package/dist/{Table-CaH_zu8W.js → Table-CHKHAajT.js} +77 -74
- package/dist/{Table-e0uLPRLG.js → Table-nB7wA6gP.js} +78 -73
- package/dist/{Text-BAw88r5O.js → Text-7oaEmWun.js} +19 -13
- package/dist/Text-BefOYKkr.js +4 -0
- package/dist/{Text-BDAob4mp.js → Text-KKwYRpSW.js} +21 -15
- package/dist/Text.vue_vue_type_style_index_0_lang-BrmC8Xhc.js +59 -0
- package/dist/TextLink-DoArgh5L.js +65 -0
- package/dist/{Textarea-CU5PjIoa.js → Textarea-DEvxrKMK.js} +1 -1
- package/dist/Time-D8Ikb-KB.js +43 -0
- package/dist/Timeline-BEt6ygzA.js +59 -0
- package/dist/{Tree-D-v632h1.js → Tree-caBJzrZQ.js} +105 -101
- package/dist/Tree-ftxBqmRQ.js +122 -0
- package/dist/TreeNode-XITOvihe.js +42 -0
- package/dist/{Update-DRAFce7_.js → Update-JgTiZCDi.js} +20 -15
- package/dist/{UpdateChild-DMC0FG4Z.js → UpdateChild-y0OPiT92.js} +23 -17
- package/dist/Upload-BlnOvJFg.js +150 -0
- package/dist/Upload-kUYBfIS2.js +72 -0
- package/dist/UploadApi-RRAsIVG7.js +20 -0
- package/dist/{Year-CpcMBvQ7.js → Year-C2_kuiZX.js} +1 -1
- package/dist/Year-Cre43mQI.js +47 -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/main-KTzfgTac.js +9105 -0
- package/dist/main.js +139 -140
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/Autocomplete-C9RS9-qw.js +0 -48
- package/dist/Autocomplete-DIucpEpj.js +0 -49
- package/dist/Callback-D6G_933H.js +0 -20
- package/dist/Cascader-C6t8Q18c.js +0 -41
- package/dist/Cascader-F_XWwXKY.js +0 -81
- package/dist/Checkbox-ipHs0O-8.js +0 -70
- package/dist/Code-DKtqow6y.js +0 -36
- package/dist/Code-LeguA9RL.js +0 -54
- package/dist/Code.vue_vue_type_style_index_0_lang-DmeXbg91.js +0 -59
- package/dist/Column-BeQwafyN.js +0 -70
- package/dist/Comment-DIcCHP9F.js +0 -98
- package/dist/Compare-Dzqm7kPE.js +0 -38
- package/dist/Copy-iLieXx22.js +0 -43
- package/dist/Custom-BGtEDHlD.js +0 -51
- package/dist/DataImport.vue_vue_type_script_setup_true_lang-BWS65Vp1.js +0 -172
- package/dist/Date-CNOCOcNz.js +0 -37
- package/dist/DateRange-CaIiObxN.js +0 -57
- package/dist/DateTime-CH6J1GoP.js +0 -38
- package/dist/Daterange-BUSKAGlK.js +0 -57
- package/dist/Delete-BeFC0gjD.js +0 -57
- package/dist/Dictionary-CsBiv-CI.js +0 -55
- package/dist/Email-Dwa6x3jW.js +0 -48
- package/dist/Index-Bpe7pY2Z.js +0 -4
- package/dist/Index-CUYQxzNd.js +0 -174
- package/dist/Index-DMnL8F7Y.js +0 -4
- package/dist/Index-DNG25ox2.js +0 -4
- package/dist/Index-DqUNI6MV.js +0 -4
- package/dist/Int-BFv18KXi.js +0 -38
- package/dist/Int-C0ijmdYS.js +0 -41
- package/dist/List-CfQzWq_5.js +0 -74
- package/dist/Maintaince-BzDEwQcU.js +0 -14
- package/dist/Month-Bp_Pfi_b.js +0 -37
- package/dist/Month-CKkjwzza.js +0 -38
- package/dist/Paging-DpoBp7x_.js +0 -95
- package/dist/QueryApi-VwISnk96.js +0 -13
- package/dist/RichText-CNahMrfb.js +0 -41
- package/dist/Select-BeNZqAP1.js +0 -112
- package/dist/Select-CqOE6uI8.js +0 -80
- package/dist/Text-5803XWI6.js +0 -4
- package/dist/Text.vue_vue_type_style_index_0_lang-D1JSHUmS.js +0 -53
- package/dist/TextLink-TYXcDAlo.js +0 -59
- package/dist/Time-Dd-Trib4.js +0 -37
- package/dist/Timeline-D6LCIkQp.js +0 -53
- package/dist/Tree-BKmFZrK3.js +0 -118
- package/dist/TreeNode-L_A5ZKy0.js +0 -37
- package/dist/Upload-DJRh4a7g.js +0 -68
- package/dist/Upload-Ozg_nOpI.js +0 -147
- package/dist/UploadApi-DVx69g-F.js +0 -13
- package/dist/Year-D7XGe2So.js +0 -41
- package/dist/assets/halo-fe-B-NiIGas.js +0 -12088
- 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
|
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 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(
|
19
|
-
let
|
20
|
-
|
21
|
-
},
|
22
|
-
|
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
|
-
|
28
|
+
f(), e && e(r);
|
25
29
|
});
|
26
30
|
});
|
27
|
-
},
|
28
|
-
let t =
|
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), _ =
|
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 ||
|
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),
|
116
|
+
e.xAxis.data.push(...t), s.setOption(e);
|
113
117
|
}, k = () => {
|
114
118
|
var r;
|
115
|
-
let t =
|
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
|
-
},
|
118
|
-
|
119
|
-
k(),
|
121
|
+
}, V = (t) => {
|
122
|
+
d.value.resize(t), R(() => {
|
123
|
+
k(), s == null || s.resize();
|
120
124
|
});
|
121
125
|
}, N = () => {
|
122
|
-
k(),
|
126
|
+
k(), s = x.init(v.value), f();
|
123
127
|
};
|
124
128
|
return G(async () => {
|
125
|
-
y.value =
|
129
|
+
y.value = U.getConditionForm(m.value, D.value.query.condition), x = await W.getECharts(), N();
|
126
130
|
}), M(() => l.value, (t, e) => {
|
127
|
-
|
128
|
-
}),
|
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:
|
136
|
-
schema:
|
137
|
-
table:
|
138
|
-
layout:
|
139
|
-
set:
|
140
|
-
"search-data":
|
141
|
-
onChange:
|
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:
|
151
|
+
style: P({ height: i(g) + "px" })
|
148
152
|
}, null, 4)
|
149
153
|
], 512));
|
150
154
|
}
|
151
155
|
});
|
152
156
|
export {
|
153
|
-
|
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-
|
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,8 +1,13 @@
|
|
1
|
-
import { defineComponent as F, toRefs 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 { 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
|
-
],
|
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:
|
19
|
-
let o = j.orderBy(t, (
|
20
|
-
for (let
|
21
|
-
let a = o[
|
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
|
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:
|
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
|
44
|
+
let i = 0;
|
40
45
|
for (let a = 0; a < o; a++)
|
41
|
-
|
42
|
-
e.push(
|
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:
|
155
|
+
color: y,
|
151
156
|
color0: x,
|
152
|
-
borderColor:
|
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
|
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
|
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
|
252
|
-
r.data.push(...
|
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
|
256
|
-
coord: [
|
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 ? (
|
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
|
-
|
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
|
280
|
-
|
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
|
-
|
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-
|
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
|
2
|
-
import {
|
3
|
-
import
|
4
|
-
|
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
|
-
},
|
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-
|
22
|
-
|
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
|
-
|
25
|
-
},
|
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
|
-
},
|
31
|
+
}, de = (t, o) => {
|
29
32
|
let n = t.target.children[0].offsetWidth, u = l.value.show[o];
|
30
33
|
u._headerWidth = n;
|
31
|
-
},
|
32
|
-
|
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
|
-
|
37
|
+
d.value = t;
|
35
38
|
}, fe = async (t, o, n, u, a) => {
|
36
|
-
await
|
39
|
+
await Te.setColumnWidth(V.value, a.name, n.property, t);
|
37
40
|
}, ve = (t) => {
|
38
|
-
|
39
|
-
|
41
|
+
P(t.contentRect.width), Y(() => {
|
42
|
+
Q(t.contentRect.height);
|
40
43
|
});
|
41
|
-
},
|
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
|
-
},
|
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(
|
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 =
|
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
|
-
|
58
|
-
let u =
|
59
|
-
await
|
60
|
-
u &&
|
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 =
|
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
|
-
|
71
|
+
W(u), t == null || t(u);
|
69
72
|
}, ye = async () => {
|
70
|
-
let t = l.value.key.name, o =
|
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(
|
73
|
-
for (let a = 0; a <
|
74
|
-
let i =
|
75
|
-
|
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
|
-
|
85
|
+
W(n);
|
83
86
|
}, _e = () => {
|
84
|
-
|
85
|
-
},
|
86
|
-
let o = qe.pageCount(t + 1,
|
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
|
-
|
94
|
-
await ue.open(
|
95
|
-
|
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 =
|
99
|
-
let t = (_.value.page - 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 =
|
102
|
-
let t = l.value.main ? `/${l.value.name}` : `/${
|
103
|
-
return
|
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
|
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) /
|
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"),
|
110
|
-
return f(),
|
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,
|
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
|
-
|
127
|
+
ze(E(e(Ie)("common.no_data")), 1)
|
125
128
|
]),
|
126
129
|
default: v(() => [
|
127
|
-
e(re) ? (f(),
|
130
|
+
e(re) ? (f(), z(n, {
|
128
131
|
key: 0,
|
129
132
|
type: "selection",
|
130
133
|
width: "40",
|
131
134
|
fixed: ""
|
132
|
-
})) :
|
133
|
-
(f(!0),
|
134
|
-
var w,
|
135
|
-
return f(),
|
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 = (
|
141
|
-
fixed: e(
|
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(),
|
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(
|
151
|
+
disabled: e(pe)(x, h)
|
149
152
|
}, {
|
150
153
|
default: v(() => [
|
151
154
|
C("span", {
|
152
|
-
onMouseenter: (B) => e(
|
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,
|
158
|
+
], 40, Ne)
|
156
159
|
]),
|
157
160
|
_: 2
|
158
161
|
}, 1032, ["content", "disabled"]),
|
159
|
-
r.control.tooltip ? (f(),
|
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"])) :
|
176
|
+
}, 1032, ["title"])) : F("", !0)
|
174
177
|
]),
|
175
178
|
default: v((x) => [
|
176
179
|
R(i, {
|
177
|
-
style:
|
178
|
-
rules: e(
|
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(
|
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(
|
191
|
+
config: e(Z).getConfig(r, e(S).type, e(p).type),
|
189
192
|
onSubmit: e(se),
|
190
|
-
onChange: (B) => e(
|
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 ?
|
205
|
+
e(l).main ? F("", !0) : (f(), $("div", {
|
203
206
|
key: 0,
|
204
207
|
ref_key: "footerRef",
|
205
|
-
ref:
|
208
|
+
ref: N,
|
206
209
|
class: "table-footer"
|
207
210
|
}, [
|
208
211
|
C("div", je, [
|
209
|
-
(f(),
|
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(
|
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(
|
226
|
+
R(X, {
|
224
227
|
background: "",
|
225
228
|
layout: e(g).layout,
|
226
229
|
"current-page": e(_).page,
|
227
|
-
"page-size": e(
|
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
|
-
|
242
|
+
Ze as default
|
240
243
|
};
|