halo-pc 1.0.38 → 1.0.40
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{Article-H_clf90b.js → Article-CqtkXVmQ.js} +29 -27
- package/dist/{ArticleFooter-BLi4TNA7.js → ArticleFooter-DeJdTtZD.js} +10 -10
- package/dist/{Autocomplete-DMm6oI1g.js → Autocomplete-0fxB2_FC.js} +1 -1
- package/dist/{Autocomplete-BF9x0F4f.js → Autocomplete-BfhYwZ5G.js} +7 -7
- package/dist/{Autocomplete-CcIzTPSr.js → Autocomplete-LQiKcvz1.js} +6 -6
- package/dist/{CSharp-CZOchOE-.js → CSharp-BIFRQLaK.js} +1 -1
- package/dist/{Calender-BoQV7bhA.js → Calender-DPNTn-S4.js} +4 -4
- package/dist/{Callback-79Bw4RwY.js → Callback-Ci5KrWOC.js} +6 -6
- package/dist/{Cascader-D1Ou5OSg.js → Cascader-CnOEgPDf.js} +1 -1
- package/dist/{Cascader-DMhl98vw.js → Cascader-Vhc81TDV.js} +14 -14
- package/dist/{Checkbox-C6t6S7ii.js → Checkbox-CIim5NiB.js} +1 -1
- package/dist/{Checkbox-DtrXMDBR.js → Checkbox-D9Sp6ZGQ.js} +7 -7
- package/dist/{Code-B8ISTTYK.js → Code-BEjqqeFZ.js} +3 -3
- package/dist/Code-BSrEPuXk.js +4 -0
- package/dist/{Code-DIGn8Raz.js → Code-Dp1-k8sW.js} +1 -1
- package/dist/{Code-DDacfgvl.js → Code-yDKaH1uF.js} +10 -8
- package/dist/Code.vue_vue_type_style_index_0_lang-CmkomJXY.js +59 -0
- package/dist/{Column-DjA11efs.js → Column-B0ViSver.js} +20 -20
- package/dist/{Comment-Ixu0gPk3.js → Comment-tU2wBvGO.js} +4 -2
- package/dist/{Compare-NN40QJWm.js → Compare-D7Gz-lE9.js} +1 -1
- package/dist/{Compare-C1uq4lgK.js → Compare-DqvGyQWA.js} +5 -5
- package/dist/{Copy-BcfSvyWG.js → Copy-Dm1LH9qB.js} +3 -3
- package/dist/Custom-CLKAPWEo.js +49 -0
- package/dist/{DataExport-DNGgWqsx.js → DataExport-BDftKI0U.js} +1 -1
- package/dist/{DataExport.vue_vue_type_script_setup_true_lang-tTTDFXQV.js → DataExport.vue_vue_type_script_setup_true_lang-Dzy9UC11.js} +8 -8
- package/dist/{DataImport-CI9eM5T1.js → DataImport-CRYaaQfA.js} +1 -1
- package/dist/{DataImport.vue_vue_type_script_setup_true_lang-BCMd1s45.js → DataImport.vue_vue_type_script_setup_true_lang-D7UdCnBM.js} +37 -37
- package/dist/{Date-CZGbZKjB.js → Date-DPPiYLWw.js} +4 -4
- package/dist/{Date-CGyzi8yX.js → Date-Dlh1_S7p.js} +1 -1
- package/dist/{DateRange-MbbkmZ_Y.js → DateRange-BgF_T3ls.js} +7 -7
- package/dist/{DateTime-DHrHmRLL.js → DateTime-CNjPeK9t.js} +1 -1
- package/dist/{DateTime-DqUOXGWH.js → DateTime-DP-VfmtN.js} +6 -6
- package/dist/{DateTimeRange-DgXQkZLx.js → DateTimeRange-DbEpW4nB.js} +5 -5
- package/dist/{Daterange-DLHJuRur.js → Daterange-DHVjhrK9.js} +5 -5
- package/dist/{Decimal-BUJuuvfr.js → Decimal-BDEWVSsK.js} +1 -1
- package/dist/{Delete-BGMk0orl.js → Delete-Bl0GmthL.js} +1 -1
- package/dist/{Detail-D4KzWdHQ.js → Detail-BozyhOTt.js} +12 -12
- package/dist/{Dictionary-Esd3ERAq.js → Dictionary-CJwZPQz6.js} +1 -1
- package/dist/{Email-C9K09hwC.js → Email-D5X1SzuJ.js} +8 -8
- package/dist/{File-ai1eYO7v.js → File-DixK0K7p.js} +34 -32
- package/dist/Image-BrelhCGo.js +9 -0
- package/dist/Index-BeM6hKX9.js +4 -0
- package/dist/{Index-DsZPtDYE.js → Index-BkfLyqpm.js} +34 -34
- package/dist/{Index-DYHrSEZ5.js → Index-D2FOeoNQ.js} +1 -1
- package/dist/Index-D8UVsXwf.js +4 -0
- package/dist/{Index-B5o7uf36.js → Index-DbXgnBz6.js} +2 -2
- package/dist/Index-FL-dxfFB.js +4 -0
- package/dist/Index-fWOqfFkG.js +4 -0
- package/dist/{Index-S1btGSGD.js → Index-j15c7lwJ.js} +1 -1
- package/dist/Index.vue_vue_type_script_setup_true_lang-ByxBNAdg.js +80 -0
- package/dist/{Index.vue_vue_type_script_setup_true_lang-BjE0VeTO.js → Index.vue_vue_type_script_setup_true_lang-DT7eOyjs.js} +23 -23
- package/dist/{Install-D-MgafyF.js → Install-WR3b4IfI.js} +1 -1
- package/dist/{Int-CnvfCxgn.js → Int-CWsDtoxE.js} +7 -7
- package/dist/{Int-D3RqVcmN.js → Int-GGWiUqO2.js} +4 -4
- package/dist/List-kRCsHp6d.js +71 -0
- package/dist/{Maintaince-BIgEbjrq.js → Maintaince-BG8MUi3A.js} +1 -1
- package/dist/{Markdown-hax8By5O.js → Markdown-nVfQs7kc.js} +1 -1
- package/dist/{Month-5lTUiWin.js → Month-B1icZmL4.js} +4 -4
- package/dist/{Month-CnVTSnyK.js → Month-CxKMP4kO.js} +1 -1
- package/dist/{Month-BDkwv-vc.js → Month-DnYlAi7k.js} +4 -4
- package/dist/{Normal-DoE9t7d7.js → Normal-RcqEyIFN.js} +23 -21
- package/dist/Paging-DrdGzxeP.js +94 -0
- package/dist/{PagingHeader-BFtE6jSy.js → PagingHeader-C8UpM9Kj.js} +27 -25
- package/dist/{PagingRow-CSB-kwMz.js → PagingRow-oQWCofO4.js} +8 -8
- package/dist/{Racebar-Bc-dDRss.js → Racebar-CvoF2ySW.js} +24 -22
- package/dist/{Radio-CMGOtMnx.js → Radio-DhjfkC14.js} +1 -1
- package/dist/{Register-8wi0uixs.js → Register-B0Vx60wY.js} +33 -33
- package/dist/{RichText-BR4Kvx0J.js → RichText-4wrLw9cy.js} +7 -7
- package/dist/{SearchForm-BMTSPce_.js → SearchForm-BHVnQaSL.js} +1 -1
- package/dist/{SearchForm.vue_vue_type_style_index_0_lang-wiTxKu-H.js → SearchForm.vue_vue_type_style_index_0_lang-ByICIL6w.js} +35 -35
- package/dist/SearchHeader-C9yovXli.js +4 -0
- package/dist/SearchHeader.vue_vue_type_style_index_0_lang-CHAg97-Y.js +60 -0
- package/dist/{Select-DAxdpZlO.js → Select-BDoCqD3I.js} +10 -10
- package/dist/{Select-MBD4Simw.js → Select-CX4i5KPQ.js} +1 -1
- package/dist/{Select-DnFyey0n.js → Select-vgwpegBi.js} +12 -12
- package/dist/Single-C3629BdC.js +317 -0
- package/dist/{Statistic-CTxHNeof.js → Statistic-Dxa-CZ8G.js} +10 -8
- package/dist/{Statistic-BS_DA72m.js → Statistic-WPezAlUn.js} +32 -30
- package/dist/{Stock-CtmevqBK.js → Stock-BD5Acf8y.js} +8 -6
- package/dist/{Stock-CbucObTu.js → Stock-EPM3j2f_.js} +1 -1
- package/dist/{Stock.vue_vue_type_style_index_0_lang-LfsWg1Ps.js → Stock.vue_vue_type_style_index_0_lang-D5RR2MRP.js} +14 -12
- package/dist/{Switch-BlXAy9qH.js → Switch-B0XN4K-9.js} +1 -1
- package/dist/Table-BklK1hSh.js +317 -0
- package/dist/{Table-Da9gan1Y.js → Table-JFdOXuME.js} +42 -40
- package/dist/Text-CNtHdodK.js +4 -0
- package/dist/{Text-CbZlEVTJ.js → Text-DrJkdxZF.js} +6 -6
- package/dist/{Text-C72NLZMt.js → Text-KAuEjP7I.js} +3 -3
- package/dist/{Text.vue_vue_type_style_index_0_lang-aMaBccpg.js → Text.vue_vue_type_style_index_0_lang-BJIbv4kF.js} +1 -1
- package/dist/{TextLink-SAnZ7BfX.js → TextLink-BnijIoEJ.js} +7 -7
- package/dist/{Textarea-DphCUpXp.js → Textarea-3SWLqQvO.js} +1 -1
- package/dist/{Time-DjE8yYdK.js → Time-C3qlNZkJ.js} +7 -7
- package/dist/{Timeline-D11vjkpZ.js → Timeline-B6hUIYhL.js} +12 -10
- package/dist/{Tree-kich05vY.js → Tree-DBvFF4Rj.js} +77 -75
- package/dist/{Tree-DK73Ou_F.js → Tree-JexLPBXX.js} +5 -3
- package/dist/{TreeNode-Dx6cZ31Z.js → TreeNode-BOWB2WN9.js} +4 -4
- package/dist/{Update-D2Plm_AG.js → Update-CDLYYwgj.js} +10 -10
- package/dist/{UpdateChild-BXV7QqaP.js → UpdateChild-DUG7pAuO.js} +11 -11
- package/dist/{Upload-B87EDynn.js → Upload-B2hbxDsT.js} +49 -49
- package/dist/{Upload-CHPjMGFZ.js → Upload-mlk6Y4Po.js} +13 -13
- package/dist/{Year-BPFmIiPX.js → Year-BRsJ7b1J.js} +1 -1
- package/dist/{Year-C93IJgc8.js → Year-BUF60NmB.js} +4 -4
- package/dist/{main-nvsTmKXH.js → main-DymfKjqO.js} +4363 -4204
- package/dist/main.js +144 -141
- package/esm/coms/commons/Table.vue.d.ts +1 -1
- package/esm/coms/drivers/Index.vue.d.ts +2 -2
- package/esm/coms/globals/Menu.vue.d.ts +1 -1
- package/esm/coms/globals/MenuItem.vue.d.ts +1 -1
- package/esm/coms/headers/@types/HeaderProps.d.ts +1 -1
- package/esm/coms/headers/Index.vue.d.ts +1 -1
- package/esm/coms/layouts/Index.vue.d.ts +3 -3
- package/esm/coms/layouts/Side.vue.d.ts +2 -2
- package/esm/coms/layouts/Top.vue.d.ts +1 -1
- package/esm/coms/lists/Racebar.vue.d.ts +1 -1
- package/esm/coms/lists/Statistic.vue.d.ts +1 -1
- package/esm/coms/lists/Tree.vue.d.ts +3 -3
- package/esm/coms/pages/@types/SchemaProps.d.ts +2 -1
- package/esm/coms/pages/Column.vue.d.ts +1 -1
- package/esm/coms/pages/Custom.vue.d.ts +6 -6
- package/esm/coms/pages/List.vue.d.ts +5 -3
- package/esm/coms/pages/Paging.vue.d.ts +5 -3
- package/esm/coms/pages/Single.vue.d.ts +3 -3
- package/esm/coms/pagings/@types/SearchHeaderProps.d.ts +9 -0
- package/esm/coms/pagings/@types/index.d.ts +2 -2
- package/esm/coms/pagings/Article.vue.d.ts +2 -2
- package/esm/coms/pagings/Index.vue.d.ts +4 -2
- package/esm/coms/pagings/SearchForm.vue.d.ts +1 -1
- package/esm/coms/pagings/SearchHeader.vue.d.ts +19 -0
- package/esm/coms/pagings/Table.vue.d.ts +4 -2
- package/esm/coms/partials/@types/PagingHeaderProps.d.ts +2 -1
- package/esm/coms/singles/Index.vue.d.ts +1 -1
- package/esm/coms/singles/Normal.vue.d.ts +1 -1
- package/esm/coms/singles/Table.vue.d.ts +1 -1
- package/esm/coms/singles/Tree.vue.d.ts +1 -1
- package/package.json +6 -6
- package/dist/Code-BMlBvnqa.js +0 -4
- package/dist/Code.vue_vue_type_style_index_0_lang-hHYTH50F.js +0 -57
- package/dist/Custom-Dn9_vPuD.js +0 -58
- package/dist/Image-CfY4G1Yn.js +0 -9
- package/dist/Index-CH3nwnPZ.js +0 -4
- package/dist/Index-CTjDkp7e.js +0 -4
- package/dist/Index-DSZ8wa7U.js +0 -4
- package/dist/Index-DVdiF3gr.js +0 -4
- package/dist/Index.vue_vue_type_script_setup_true_lang-H8ogKL2I.js +0 -76
- package/dist/List-DA4SO_le.js +0 -71
- package/dist/Paging-5qsCTRWy.js +0 -92
- package/dist/SearchFooter-DOC21dmS.js +0 -4
- package/dist/SearchFooter.vue_vue_type_style_index_0_lang-CoJZtP84.js +0 -55
- package/dist/Single-D6x6VV_B.js +0 -317
- package/dist/Table-CqsfAMh7.js +0 -310
- package/dist/Text-CHvsKR9H.js +0 -4
@@ -9,7 +9,9 @@ const b = { class: "ha-statistic-layout" }, k = /* @__PURE__ */ h({
|
|
9
9
|
table: {},
|
10
10
|
layout: {},
|
11
11
|
next: {},
|
12
|
-
set: {}
|
12
|
+
set: {},
|
13
|
+
url: {},
|
14
|
+
win: {}
|
13
15
|
},
|
14
16
|
setup(p) {
|
15
17
|
let c = p, { schema: E, table: a, layout: l, set: n } = f(c), t = {
|
@@ -40,27 +42,27 @@ const b = { class: "ha-statistic-layout" }, k = /* @__PURE__ */ h({
|
|
40
42
|
}, m = () => {
|
41
43
|
let s = l.value.fields.find((e) => e.group);
|
42
44
|
t.xAxis.name = s.name, t.xAxis.categories = n.value[a.value.name].map((e) => e[s.name]);
|
43
|
-
let
|
45
|
+
let i = [];
|
44
46
|
l.value.fields.forEach((e) => {
|
45
47
|
if (!e.group) {
|
46
|
-
let r = a.value.fields.find((
|
48
|
+
let r = a.value.fields.find((o) => o.name == e.name), u = {
|
47
49
|
name: r.label,
|
48
50
|
tooltip: {
|
49
51
|
valueSuffix: " ms"
|
50
52
|
},
|
51
53
|
data: []
|
52
54
|
};
|
53
|
-
n.value[a.value.name].forEach((
|
54
|
-
u.data.push(parseFloat(
|
55
|
-
}),
|
55
|
+
n.value[a.value.name].forEach((o) => {
|
56
|
+
u.data.push(parseFloat(o[r.name]));
|
57
|
+
}), i.push(u);
|
56
58
|
}
|
57
|
-
}), t.series =
|
59
|
+
}), t.series = i, t.yAxis.title.text = l.value.value;
|
58
60
|
}, d = () => {
|
59
61
|
m();
|
60
62
|
};
|
61
63
|
return x(() => {
|
62
64
|
d();
|
63
|
-
}), (s,
|
65
|
+
}), (s, i) => {
|
64
66
|
const e = v("Highcharts");
|
65
67
|
return _(), g("div", b, [
|
66
68
|
y(e, {
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { defineComponent as q, toRefs as G, ref as c, onMounted as M, watch as O, openBlock as
|
2
|
-
import {
|
3
|
-
import { _ as
|
1
|
+
import { defineComponent as q, toRefs as G, ref as c, onMounted as M, watch as O, openBlock as I, createElementBlock as J, createVNode as K, unref as i, createElementVNode as P, normalizeStyle as Q, nextTick as L } from "vue";
|
2
|
+
import { n as U, m as W, e as X, d as C, l as Y, S as Z } from "./main-DymfKjqO.js";
|
3
|
+
import { _ as ee } from "./SearchForm.vue_vue_type_style_index_0_lang-ByICIL6w.js";
|
4
4
|
const ie = /* @__PURE__ */ q({
|
5
5
|
__name: "Statistic",
|
6
6
|
props: {
|
@@ -11,16 +11,18 @@ const ie = /* @__PURE__ */ q({
|
|
11
11
|
table: {},
|
12
12
|
layout: {},
|
13
13
|
next: {},
|
14
|
-
set: {}
|
14
|
+
set: {},
|
15
|
+
url: {},
|
16
|
+
win: {}
|
15
17
|
},
|
16
18
|
emits: ["search"],
|
17
19
|
setup(A, { expose: F, emit: z }) {
|
18
|
-
let H = z, B = A, { route: E, module: T, schema: y, table: m, layout: l, next:
|
20
|
+
let H = z, B = A, { route: E, module: T, schema: y, table: m, layout: l, next: te, set: u, searchData: x } = G(B), s = null, g = null, p = c(), d = c(), v = c(), S = c(), { app: b } = U.sys, V = (t) => {
|
19
21
|
D("search");
|
20
22
|
}, D = (t, e = null) => {
|
21
|
-
H(t, (
|
22
|
-
|
23
|
-
f(), e == null || e(
|
23
|
+
H(t, (r) => {
|
24
|
+
L(() => {
|
25
|
+
f(), e == null || e(r);
|
24
26
|
});
|
25
27
|
});
|
26
28
|
}, f = () => {
|
@@ -58,11 +60,11 @@ const ie = /* @__PURE__ */ q({
|
|
58
60
|
//坐标
|
59
61
|
series: []
|
60
62
|
};
|
61
|
-
|
62
|
-
let
|
63
|
+
b.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)");
|
64
|
+
let r = l.value.fields.find((a) => a.group && a.name != l.value.date), k = m.value.fields.find((a) => a.name == r.name).control.data.data;
|
63
65
|
for (let a = 0; a < k.length; a++) {
|
64
66
|
let o = k[a];
|
65
|
-
o.color ||
|
67
|
+
o.color || Y.error("颜色字段不能为空");
|
66
68
|
let n = {
|
67
69
|
name: o.text,
|
68
70
|
type: "line",
|
@@ -88,7 +90,7 @@ const ie = /* @__PURE__ */ q({
|
|
88
90
|
}
|
89
91
|
}
|
90
92
|
};
|
91
|
-
|
93
|
+
b.theme == "dark" && (n.areaStyle.color = {
|
92
94
|
type: "linear",
|
93
95
|
x: 0,
|
94
96
|
y: 0,
|
@@ -103,45 +105,45 @@ const ie = /* @__PURE__ */ q({
|
|
103
105
|
global: !0
|
104
106
|
});
|
105
107
|
for (let h = 0; h < t.length; h++) {
|
106
|
-
let j = t[h], _ = u.value[l.value.table].find((
|
108
|
+
let j = t[h], _ = u.value[l.value.table].find((R) => R[r.name] == o.value && R[l.value.date] == j);
|
107
109
|
_ == null ? n.data.push(null) : n.data.push(_[l.value.value]);
|
108
110
|
}
|
109
111
|
e.series.push(n), e.legend.data.push(o.text);
|
110
112
|
}
|
111
113
|
e.xAxis.data.push(...t), s.setOption(e);
|
112
114
|
}, w = async () => {
|
113
|
-
var
|
114
|
-
let t = C.dom.getHeight([(
|
115
|
-
|
115
|
+
var r;
|
116
|
+
let t = C.dom.getHeight([(r = d.value) == null ? void 0 : r.$el]), e = S.value.getBoundingClientRect();
|
117
|
+
p.value = e.height - t - 10 - 1, await L();
|
116
118
|
}, N = async (t) => {
|
117
|
-
d.value
|
119
|
+
Z.triggerResize(d.value, t), await w(), s == null || s.resize();
|
118
120
|
}, $ = async () => {
|
119
|
-
await w(), s =
|
121
|
+
await w(), s = g.init(v.value), f();
|
120
122
|
};
|
121
123
|
return M(async () => {
|
122
|
-
x.value =
|
124
|
+
x.value = W.getConditionForm(y.value, E.value.query.condition), g = await X.getECharts(), await $();
|
123
125
|
}), O(() => l.value, (t, e) => {
|
124
126
|
f();
|
125
|
-
}), F({
|
127
|
+
}), F({ onResize: N }), (t, e) => (I(), J("div", {
|
126
128
|
ref_key: "statisticRef",
|
127
|
-
ref:
|
129
|
+
ref: S,
|
128
130
|
class: "ha-statistic-layout"
|
129
131
|
}, [
|
130
|
-
|
132
|
+
K(ee, {
|
131
133
|
ref_key: "searchRef",
|
132
134
|
ref: d,
|
133
|
-
schema:
|
134
|
-
table:
|
135
|
-
layout:
|
136
|
-
set:
|
137
|
-
"search-data":
|
138
|
-
onChange:
|
135
|
+
schema: i(y),
|
136
|
+
table: i(m),
|
137
|
+
layout: i(l),
|
138
|
+
set: i(u),
|
139
|
+
"search-data": i(x),
|
140
|
+
onChange: i(V)
|
139
141
|
}, null, 8, ["schema", "table", "layout", "set", "search-data", "onChange"]),
|
140
|
-
|
142
|
+
P("div", {
|
141
143
|
ref_key: "chartRef",
|
142
144
|
ref: v,
|
143
145
|
class: "chart",
|
144
|
-
style:
|
146
|
+
style: Q({ height: i(p) + "px" })
|
145
147
|
}, null, 4)
|
146
148
|
], 512));
|
147
149
|
}
|
@@ -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-D5RR2MRP.js";
|
3
3
|
const b = /* @__PURE__ */ c({
|
4
4
|
__name: "Stock",
|
5
5
|
props: {
|
@@ -10,15 +10,17 @@ const b = /* @__PURE__ */ c({
|
|
10
10
|
table: {},
|
11
11
|
layout: {},
|
12
12
|
next: {},
|
13
|
-
set: {}
|
13
|
+
set: {},
|
14
|
+
url: {},
|
15
|
+
win: {}
|
14
16
|
},
|
15
17
|
setup(t) {
|
16
|
-
let a = t, { schema: o, table:
|
18
|
+
let a = t, { schema: o, table: l, layout: r, next: s, set: n } = m(a);
|
17
19
|
return (f, i) => (u(), p(_, {
|
18
20
|
schema: e(o),
|
19
|
-
table: e(
|
20
|
-
layout: e(
|
21
|
-
next: e(
|
21
|
+
table: e(l),
|
22
|
+
layout: e(r),
|
23
|
+
next: e(s),
|
22
24
|
set: e(n)
|
23
25
|
}, null, 8, ["schema", "table", "layout", "next", "set"]));
|
24
26
|
}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { defineComponent as _, toRefs as
|
2
|
-
import {
|
1
|
+
import { defineComponent as _, toRefs as R, ref as T, onMounted as B, openBlock as E, createBlock as G, unref as f, withCtx as P, createElementVNode as A, createTextVNode as V, toDisplayString as b } from "vue";
|
2
|
+
import { n as z, e as O, z as K, d as N } from "./main-DymfKjqO.js";
|
3
3
|
const Q = /* @__PURE__ */ _({
|
4
4
|
__name: "Stock",
|
5
5
|
props: {
|
@@ -10,11 +10,13 @@ const Q = /* @__PURE__ */ _({
|
|
10
10
|
table: {},
|
11
11
|
layout: {},
|
12
12
|
next: {},
|
13
|
-
set: {}
|
13
|
+
set: {},
|
14
|
+
url: {},
|
15
|
+
win: {}
|
14
16
|
},
|
15
17
|
setup(k) {
|
16
|
-
let L = k, { module:
|
17
|
-
let o =
|
18
|
+
let L = k, { module: j, schema: W, table: v, layout: n, next: q, set: h } = R(L), y = null, c = null, p = "#04aa4e", x = "#ff5945", w = T(), u = { history: null, week: null, month: null }, { app: S } = z.sys, M = (t) => {
|
19
|
+
let o = N.array.orderBy(t, (i) => i[n.value.time], !1), e = [], l = [], r = [];
|
18
20
|
for (let i = 0; i < o.length; i++) {
|
19
21
|
let a = o[i];
|
20
22
|
e.push(a[n.value.time]);
|
@@ -40,7 +42,7 @@ const Q = /* @__PURE__ */ _({
|
|
40
42
|
e.push(i / o);
|
41
43
|
}
|
42
44
|
return e;
|
43
|
-
},
|
45
|
+
}, I = (t) => {
|
44
46
|
let o = n.value.trade, e = {
|
45
47
|
animation: !1,
|
46
48
|
//关闭动画,提升性能
|
@@ -265,18 +267,18 @@ const Q = /* @__PURE__ */ _({
|
|
265
267
|
let r = Math.max(e[0] - e[2], e[3] - e[0]) / e[0];
|
266
268
|
o += r;
|
267
269
|
}), o / t.length * 100;
|
268
|
-
},
|
269
|
-
let o =
|
270
|
+
}, Z = (t) => {
|
271
|
+
let o = I(t);
|
270
272
|
y || (y = c.init(w.value)), y.setOption(o);
|
271
273
|
let e = t.values, l = e.reverse();
|
272
274
|
u.history = g(e), u.week = g(l.slice(0, 7)), u.month = g(l.slice(0, 30));
|
273
275
|
}, C = () => {
|
274
276
|
let t = h.value[v.value.name];
|
275
|
-
t.length > 0 &&
|
277
|
+
t.length > 0 && Z(M(t));
|
276
278
|
};
|
277
|
-
return
|
278
|
-
c = await
|
279
|
-
}), (t, o) => (E(), G(f(
|
279
|
+
return B(async () => {
|
280
|
+
c = await O.getECharts(), C();
|
281
|
+
}), (t, o) => (E(), G(f(K), null, {
|
280
282
|
default: P(() => [
|
281
283
|
A("div", {
|
282
284
|
ref_key: "chartRef",
|
@@ -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-CJwZPQz6.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),
|
@@ -0,0 +1,317 @@
|
|
1
|
+
import { defineComponent as Ue, toRefs as Ee, ref as u, onMounted as Ne, nextTick as A, computed as oe, resolveComponent as k, openBlock as h, createElementBlock as D, createVNode as v, unref as e, isRef as x, normalizeClass as Ke, withCtx as f, createTextVNode as ne, toDisplayString as S, Fragment as Le, renderList as Me, createBlock as z, createCommentVNode as $, createElementVNode as T, resolveDynamicComponent as Ae } from "vue";
|
2
|
+
import { x as Pe, d as b, c as je, y as qe, p as P, C as Oe, b as Fe, h as Ge, D as Ie, G as re, a as Je, _ as Qe, l as Xe, $ as Ye, S as j } from "./main-DymfKjqO.js";
|
3
|
+
import { _ as Ze } from "./SearchForm.vue_vue_type_style_index_0_lang-ByICIL6w.js";
|
4
|
+
import { _ as et } from "./DataImport.vue_vue_type_script_setup_true_lang-D7UdCnBM.js";
|
5
|
+
import { _ as tt } from "./DataExport.vue_vue_type_script_setup_true_lang-Dzy9UC11.js";
|
6
|
+
import "vue-router";
|
7
|
+
import "./assets/intro.js-Cg1adLK7.js";
|
8
|
+
import { _ as at } from "./SearchHeader.vue_vue_type_style_index_0_lang-CHAg97-Y.js";
|
9
|
+
const lt = {
|
10
|
+
key: 0,
|
11
|
+
class: "required"
|
12
|
+
}, ot = ["onMouseenter"], nt = { class: "el-drawer__title" }, rt = { key: 0 }, st = ["href"], ft = /* @__PURE__ */ Ue({
|
13
|
+
__name: "Table",
|
14
|
+
props: {
|
15
|
+
searchData: {},
|
16
|
+
module: {},
|
17
|
+
schema: {},
|
18
|
+
table: {},
|
19
|
+
layout: {},
|
20
|
+
next: {},
|
21
|
+
set: {},
|
22
|
+
url: {},
|
23
|
+
win: {}
|
24
|
+
},
|
25
|
+
emits: ["search", "navigate", "sort", "page-change", "size-change", "succeed", "close"],
|
26
|
+
setup(se, { expose: ue, emit: ie }) {
|
27
|
+
let w = ie, de = se, { url: pe, win: me, module: q, schema: H, table: r, layout: i, next: p, set: C, searchData: O } = Ee(de), U = u([]), V = u(), E = u(), N = u(), K = u(), F = u(), G = u(), m = u(!1), g = u(!1), I = u(), J = u("120px"), Q = u({}), y = u({ layout: "prev, pager, next", count: 5, sizes: [20, 50, 200, 500, 2e3] }), W = u(), n = u({ title: null, env: null, page: null, url: null, row: null, visible: !1, appendToBody: !1 }), ge = new Pe(), ce = (t) => {
|
28
|
+
R("insert", null, t);
|
29
|
+
}, ve = (t, a) => {
|
30
|
+
R("detail", t, a);
|
31
|
+
}, he = (t, a) => {
|
32
|
+
R("update", t, a);
|
33
|
+
}, fe = (t, a) => {
|
34
|
+
R("copy", t, a);
|
35
|
+
}, ye = (t, a) => {
|
36
|
+
R("delete", t, a);
|
37
|
+
}, X = async (t) => {
|
38
|
+
let a = t.map((o) => o[r.value.key.name]);
|
39
|
+
await Qe.post(p.value.delete.route, a).then((o) => {
|
40
|
+
Xe.success(o.message), L();
|
41
|
+
});
|
42
|
+
}, R = (t, a, o) => {
|
43
|
+
let s = we(t, a);
|
44
|
+
o.ctrlKey ? (n.value.row = null, w("navigate", s)) : (n.value.appendToBody = o.altKey, n.value.page = t, n.value.url = s, n.value.row = a, n.value.visible = !0);
|
45
|
+
}, we = (t, a = null) => {
|
46
|
+
let o = `${p.value[t].route}`;
|
47
|
+
if (a != null) {
|
48
|
+
let s = a[r.value.key.name];
|
49
|
+
o += `?id=${s}`;
|
50
|
+
}
|
51
|
+
return o;
|
52
|
+
}, be = () => {
|
53
|
+
n.value.visible = !1, w("close");
|
54
|
+
}, _e = (t) => {
|
55
|
+
n.value.title = Ye(t.module.type, t.module.name), n.value.env = t.module.env;
|
56
|
+
}, L = () => {
|
57
|
+
n.value.visible = !1;
|
58
|
+
let t = U.value;
|
59
|
+
w("succeed", async (a) => {
|
60
|
+
let o = a.data.set[r.value.name];
|
61
|
+
if (!o.length)
|
62
|
+
return;
|
63
|
+
await A();
|
64
|
+
let s = r.value.key, c = n.value.row;
|
65
|
+
if (c != null) {
|
66
|
+
let d = o.find((_) => _[s.name] == c[s.name]);
|
67
|
+
d && E.value.setCurrentRow(d);
|
68
|
+
}
|
69
|
+
if (t.length > 0)
|
70
|
+
for (let d of t) {
|
71
|
+
let _ = o.find((l) => l[s.name] == d[s.name]);
|
72
|
+
_ != null && E.value.toggleRowSelection(_, !0);
|
73
|
+
}
|
74
|
+
});
|
75
|
+
}, Y = (t) => {
|
76
|
+
w("search", t);
|
77
|
+
}, xe = (t) => {
|
78
|
+
w("page-change", t);
|
79
|
+
}, Ce = (t) => {
|
80
|
+
w("size-change", t);
|
81
|
+
}, Re = (t, a) => {
|
82
|
+
let o = { [a.name]: { [t.prop]: t.order != "descending" ? "asc" : "desc" } };
|
83
|
+
w("sort", o);
|
84
|
+
}, ke = (t, a, o, s, c) => {
|
85
|
+
}, Se = (t) => {
|
86
|
+
J.value = t;
|
87
|
+
}, ze = (t, a) => {
|
88
|
+
U.value = t;
|
89
|
+
}, $e = (t, a, o) => {
|
90
|
+
let s = t.target.children[0], c = b.dom.getWidth(s) + 16 + 14, d = a.realWidth || a.width;
|
91
|
+
o._headerTooltip = c > d;
|
92
|
+
}, Ve = async (t, a, o, s) => {
|
93
|
+
await re.setColumnWidth(p.value.paging.route, r.value.name, o.property, t);
|
94
|
+
}, Z = () => {
|
95
|
+
var s, c, d;
|
96
|
+
let t = b.dom.getHeight(V.value), a = b.dom.getHeight([(s = N.value) == null ? void 0 : s.$el, (c = K.value) == null ? void 0 : c.$el, (d = F.value) == null ? void 0 : d.$el]), o = t - a;
|
97
|
+
I.value = `${o}px`;
|
98
|
+
}, ee = () => {
|
99
|
+
let t = W.value;
|
100
|
+
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";
|
101
|
+
}, We = (t, a) => {
|
102
|
+
j.triggerKeyboard(G.value, t, a);
|
103
|
+
}, Be = (t) => {
|
104
|
+
j.triggerSocket(K.value, t);
|
105
|
+
}, De = (t) => {
|
106
|
+
j.triggerResize(N.value, t), W.value = b.dom.getWidth(V.value), ee(), A(() => {
|
107
|
+
Z();
|
108
|
+
});
|
109
|
+
};
|
110
|
+
Ne(async () => {
|
111
|
+
await ge.openAsync("sys", "page", Q.value), W.value = b.dom.getWidth(V.value), ee(), await A(), Z();
|
112
|
+
});
|
113
|
+
let Te = oe(() => {
|
114
|
+
let a = Object.keys(i.value.orderBys)[0], o = i.value.orderBys[a];
|
115
|
+
return { prop: a, order: o ? "ascending" : "descending" };
|
116
|
+
}), He = oe(() => {
|
117
|
+
let t = `/${r.value.name}/paging-row`;
|
118
|
+
return je.getComponent(t, "partial", "paging-row");
|
119
|
+
});
|
120
|
+
return ue({ onKeyboard: We, onSocket: Be, onResize: De }), (t, a) => {
|
121
|
+
const o = k("el-table-column"), s = k("el-tooltip"), c = k("el-table"), d = k("el-pagination"), _ = k("el-drawer");
|
122
|
+
return h(), D("div", {
|
123
|
+
ref_key: "pagingRef",
|
124
|
+
ref: V,
|
125
|
+
class: "paging-table"
|
126
|
+
}, [
|
127
|
+
v(Ze, {
|
128
|
+
ref_key: "searchRef",
|
129
|
+
ref: N,
|
130
|
+
schema: e(H),
|
131
|
+
table: e(r),
|
132
|
+
layout: e(i),
|
133
|
+
"search-data": e(O),
|
134
|
+
onSubmit: e(Y)
|
135
|
+
}, null, 8, ["schema", "table", "layout", "search-data", "onSubmit"]),
|
136
|
+
v(at, {
|
137
|
+
ref_key: "headerRef",
|
138
|
+
ref: K,
|
139
|
+
url: e(pe),
|
140
|
+
win: e(me),
|
141
|
+
module: e(q),
|
142
|
+
schema: e(H),
|
143
|
+
table: e(r),
|
144
|
+
layout: e(i),
|
145
|
+
set: e(C),
|
146
|
+
next: e(p),
|
147
|
+
selection: e(U),
|
148
|
+
"search-data": e(O),
|
149
|
+
onAdd: e(ce),
|
150
|
+
onRemove: e(X),
|
151
|
+
onShowImport: a[0] || (a[0] = (l) => x(m) ? m.value = !0 : m = !0),
|
152
|
+
onShowExport: a[1] || (a[1] = (l) => x(g) ? g.value = !0 : g = !0),
|
153
|
+
onSearch: e(Y)
|
154
|
+
}, null, 8, ["url", "win", "module", "schema", "table", "layout", "set", "next", "selection", "search-data", "onAdd", "onRemove", "onSearch"]),
|
155
|
+
v(c, {
|
156
|
+
ref_key: "tableRef",
|
157
|
+
ref: E,
|
158
|
+
class: Ke([{ "hide-nav": e(qe).hideNav }, "table-default table-paging"]),
|
159
|
+
size: "small",
|
160
|
+
border: "",
|
161
|
+
"highlight-current-row": "",
|
162
|
+
"max-height": e(I),
|
163
|
+
data: e(C)[e(r).name],
|
164
|
+
"default-sort": e(Te),
|
165
|
+
onSelectionChange: a[2] || (a[2] = (l) => e(ze)(l, e(r))),
|
166
|
+
onSortChange: a[3] || (a[3] = (l) => e(Re)(l, e(r))),
|
167
|
+
onHeaderDragend: e(Ve)
|
168
|
+
}, {
|
169
|
+
empty: f(() => [
|
170
|
+
ne(S(e(P)("common.no_data")), 1)
|
171
|
+
]),
|
172
|
+
default: f(() => [
|
173
|
+
v(o, {
|
174
|
+
type: "selection",
|
175
|
+
width: "30"
|
176
|
+
}),
|
177
|
+
(h(!0), D(Le, null, Me(e(r).show, (l, ut) => {
|
178
|
+
var te, ae, le;
|
179
|
+
return h(), z(o, {
|
180
|
+
sortable: e(r) ? "custom" : !1,
|
181
|
+
prop: l.name,
|
182
|
+
"sort-orders": ["descending", "ascending"],
|
183
|
+
fixed: e(i).fixed.indexOf(l.name) > -1,
|
184
|
+
"min-width": ((le = (ae = (te = e(Q)) == null ? void 0 : te[e(p).paging.route]) == null ? void 0 : ae[e(r).name]) == null ? void 0 : le[l.name]) ?? l.control.width,
|
185
|
+
label: `${l.label}${l.control.prefix || l.suffix ? "(" + (l.control.prefix || l.suffix) + ")" : ""}`,
|
186
|
+
key: `${e(r).name}.${l.name}`
|
187
|
+
}, {
|
188
|
+
header: f((B) => [
|
189
|
+
l.control.required && l.control.editable ? (h(), D("i", lt)) : $("", !0),
|
190
|
+
v(s, {
|
191
|
+
placement: "top",
|
192
|
+
content: l.label,
|
193
|
+
disabled: !l._headerTooltip
|
194
|
+
}, {
|
195
|
+
default: f(() => [
|
196
|
+
T("span", {
|
197
|
+
onMouseenter: (M) => e($e)(M, B.column, l)
|
198
|
+
}, [
|
199
|
+
T("span", null, S(e(Oe)(e(r).name, l.name)), 1)
|
200
|
+
], 40, ot)
|
201
|
+
]),
|
202
|
+
_: 2
|
203
|
+
}, 1032, ["content", "disabled"])
|
204
|
+
]),
|
205
|
+
default: f((B) => [
|
206
|
+
v(Fe, {
|
207
|
+
schema: e(H),
|
208
|
+
table: e(r),
|
209
|
+
field: l,
|
210
|
+
set: e(C),
|
211
|
+
row: B.row,
|
212
|
+
config: e(Ge).getConfig(l, e(q).type, e(i).type),
|
213
|
+
onChange: (M) => e(ke)(M, e(r), l, e(C), B.row)
|
214
|
+
}, null, 8, ["schema", "table", "field", "set", "row", "config", "onChange"])
|
215
|
+
]),
|
216
|
+
_: 2
|
217
|
+
}, 1032, ["sortable", "prop", "fixed", "min-width", "label"]);
|
218
|
+
}), 128)),
|
219
|
+
v(o, {
|
220
|
+
label: e(P)("common.operation"),
|
221
|
+
fixed: "right",
|
222
|
+
"show-overflow-tooltip": "",
|
223
|
+
"min-width": e(J)
|
224
|
+
}, {
|
225
|
+
default: f((l) => [
|
226
|
+
(h(), z(Ae(e(He)), {
|
227
|
+
table: e(r),
|
228
|
+
next: e(p),
|
229
|
+
set: e(C),
|
230
|
+
row: l.row,
|
231
|
+
onPreview: e(ve),
|
232
|
+
onEdit: e(he),
|
233
|
+
onCopy: e(fe),
|
234
|
+
onBeforeRemove: e(ye),
|
235
|
+
onRemove: e(X),
|
236
|
+
onChangeWidth: e(Se)
|
237
|
+
}, null, 40, ["table", "next", "set", "row", "onPreview", "onEdit", "onCopy", "onBeforeRemove", "onRemove", "onChangeWidth"]))
|
238
|
+
]),
|
239
|
+
_: 1
|
240
|
+
}, 8, ["label", "min-width"])
|
241
|
+
]),
|
242
|
+
_: 1
|
243
|
+
}, 8, ["class", "max-height", "data", "default-sort", "onHeaderDragend"]),
|
244
|
+
v(e(Ie), {
|
245
|
+
ref_key: "footerRef",
|
246
|
+
ref: F,
|
247
|
+
class: "list-toolbar"
|
248
|
+
}, {
|
249
|
+
default: f(() => [
|
250
|
+
v(d, {
|
251
|
+
background: "",
|
252
|
+
layout: e(y).layout,
|
253
|
+
"current-page": e(i).page,
|
254
|
+
"pager-count": e(y).count,
|
255
|
+
total: e(i).count,
|
256
|
+
"page-sizes": e(y).sizes,
|
257
|
+
onCurrentChange: e(xe),
|
258
|
+
onSizeChange: e(Ce),
|
259
|
+
"page-size": e(i).size,
|
260
|
+
"onUpdate:pageSize": a[4] || (a[4] = (l) => e(i).size = l)
|
261
|
+
}, null, 8, ["layout", "current-page", "pager-count", "total", "page-sizes", "onCurrentChange", "onSizeChange", "page-size"])
|
262
|
+
]),
|
263
|
+
_: 1
|
264
|
+
}, 512),
|
265
|
+
e(p).import ? (h(), z(et, {
|
266
|
+
key: 0,
|
267
|
+
next: e(p),
|
268
|
+
onClose: a[5] || (a[5] = (l) => x(m) ? m.value = !1 : m = !1),
|
269
|
+
onSucceed: e(L),
|
270
|
+
modelValue: e(m),
|
271
|
+
"onUpdate:modelValue": a[6] || (a[6] = (l) => x(m) ? m.value = l : m = l)
|
272
|
+
}, null, 8, ["next", "onSucceed", "modelValue"])) : $("", !0),
|
273
|
+
e(p).export ? (h(), z(tt, {
|
274
|
+
key: 1,
|
275
|
+
route: e(p).export.route,
|
276
|
+
"page-count": e(b).math.pageCount(e(i).count, e(i).size),
|
277
|
+
onClose: a[7] || (a[7] = (l) => x(g) ? g.value = !1 : g = !1),
|
278
|
+
modelValue: e(g),
|
279
|
+
"onUpdate:modelValue": a[8] || (a[8] = (l) => x(g) ? g.value = l : g = l)
|
280
|
+
}, null, 8, ["route", "page-count", "modelValue"])) : $("", !0),
|
281
|
+
e(n).page ? (h(), z(_, {
|
282
|
+
key: 2,
|
283
|
+
"destroy-on-close": "",
|
284
|
+
"append-to-body": e(n).appendToBody,
|
285
|
+
size: e(re).getDrawerWidth(e(W)),
|
286
|
+
modelValue: e(n).visible,
|
287
|
+
"onUpdate:modelValue": a[9] || (a[9] = (l) => e(n).visible = l)
|
288
|
+
}, {
|
289
|
+
header: f(() => [
|
290
|
+
T("div", nt, [
|
291
|
+
ne(S(e(n).title) + " ", 1),
|
292
|
+
e(n).env ? (h(), D("span", rt, "[" + S(e(n).env) + "]", 1)) : $("", !0),
|
293
|
+
T("a", {
|
294
|
+
class: "drawer-copy",
|
295
|
+
href: e(b).url.getToUrl(e(n).url)
|
296
|
+
}, S(e(P)("common.link")), 9, st)
|
297
|
+
])
|
298
|
+
]),
|
299
|
+
default: f(() => [
|
300
|
+
v(e(Je), {
|
301
|
+
ref_key: "pageRef",
|
302
|
+
ref: G,
|
303
|
+
url: e(n).url,
|
304
|
+
onLoaded: e(_e),
|
305
|
+
onSucceed: e(L),
|
306
|
+
onClose: e(be)
|
307
|
+
}, null, 8, ["url", "onLoaded", "onSucceed", "onClose"])
|
308
|
+
]),
|
309
|
+
_: 1
|
310
|
+
}, 8, ["append-to-body", "size", "modelValue"])) : $("", !0)
|
311
|
+
], 512);
|
312
|
+
};
|
313
|
+
}
|
314
|
+
});
|
315
|
+
export {
|
316
|
+
ft as default
|
317
|
+
};
|