halo-pc 1.0.20 → 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-CsCnjrJ1.js → ArticleFooter-Do6I1mma.js} +24 -18
- package/dist/{Autocomplete-BGkHGSX_.js → Autocomplete-BLOOqTTn.js} +1 -1
- package/dist/Autocomplete-BLrbt1wN.js +53 -0
- package/dist/Autocomplete-C27XN8Sp.js +54 -0
- package/dist/{CSharp-NuDfWEq7.js → CSharp-BGn9jf2B.js} +1 -1
- package/dist/{Calender-C2YaNTHk.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-BAcK--1U.js → Checkbox-DnTLeLjt.js} +1 -1
- package/dist/Checkbox-dDfYBhhc.js +76 -0
- package/dist/{Code-CbsVyhOv.js → Code-Af5URLnL.js} +1 -1
- package/dist/Code-Bi9Y45vV.js +42 -0
- package/dist/Code-CWsSgkJq.js +60 -0
- package/dist/{Code-BHEes80c.js → Code-QYs-sjcG.js} +1 -1
- 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-gEOPuGLB.js → Compare-Cj_CPjIV.js} +25 -19
- package/dist/Copy-BNt-Dwoo.js +49 -0
- package/dist/Custom-CYPkAqpf.js +57 -0
- package/dist/{DataExport-hwoZoZUN.js → DataExport-CHQtRKzA.js} +1 -1
- package/dist/{DataExport.vue_vue_type_script_setup_true_lang-Dkq4fSkZ.js → DataExport.vue_vue_type_script_setup_true_lang-Dt2BAaAO.js} +41 -36
- package/dist/{DataImport-CQYeF50z.js → DataImport-CDcmH3Du.js} +1 -1
- package/dist/DataImport.vue_vue_type_script_setup_true_lang-dULXjbl_.js +176 -0
- package/dist/{Date-a3T1YbHN.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-BUYojCOY.js → DateTime-CmJw1-WA.js} +1 -1
- package/dist/{DateTimeRange-D9K4am0p.js → DateTimeRange-aDw57sTG.js} +17 -11
- package/dist/Daterange-C48t6usd.js +63 -0
- package/dist/{Decimal-CNhxJUZg.js → Decimal-Ca0K6NoZ.js} +1 -1
- package/dist/Delete-FhIvONUV.js +62 -0
- package/dist/{Detail-BXkTd6Wh.js → Detail-qqW0J946.js} +21 -15
- package/dist/Dictionary-CaXytFmK.js +59 -0
- package/dist/Email-H2DHJhMe.js +54 -0
- package/dist/{File-CAnAcqJX.js → File-CjXewuui.js} +33 -27
- 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-DJvB04cS.js → Index-BrI9x7i7.js} +1 -1
- package/dist/Index-CXR5RC6-.js +4 -0
- package/dist/{Index-RZT6JXBO.js → Index-CpGonJ_m.js} +1 -1
- package/dist/{Index-CseSUp2Z.js → Index-DUgprnVp.js} +1 -1
- package/dist/{Index-BqjKndKz.js → Index-icEhc88J.js} +25 -20
- package/dist/{Index.vue_vue_type_script_setup_true_lang-DtNDN8Ex.js → Index.vue_vue_type_script_setup_true_lang-Beb5UD_S.js} +21 -15
- package/dist/{Index.vue_vue_type_script_setup_true_lang-C8ZEc4nU.js → Index.vue_vue_type_script_setup_true_lang-DJ8ZzZ2K.js} +22 -16
- package/dist/{Index.vue_vue_type_style_index_0_lang-T12lwRy6.js → Index.vue_vue_type_style_index_0_lang-D7LuD-a2.js} +40 -35
- package/dist/{Install-DWWpscrR.js → Install-FwXpJIWk.js} +26 -20
- 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-d8PCfAFf.js → Markdown-BhwqDlwa.js} +1 -1
- package/dist/{Month-COEkKDL_.js → Month-BEmnA7zU.js} +1 -1
- package/dist/Month-DXQBHoJU.js +43 -0
- package/dist/Month-bgEd_K7_.js +44 -0
- package/dist/{Normal-BD7sNr-b.js → Normal-Dya4aqc7.js} +56 -51
- package/dist/Paging-JXDzxoM0.js +99 -0
- package/dist/{PagingHeader-CznmI0kr.js → PagingHeader-BETGBySb.js} +31 -25
- package/dist/{PagingRow-BJ-VLpfV.js → PagingRow-BLqp1c9E.js} +28 -22
- package/dist/QueryApi-B5jI3sBl.js +20 -0
- package/dist/{Racebar-BkwhD-rw.js → Racebar-CozeXwLJ.js} +42 -37
- package/dist/{Radio-CS12bajp.js → Radio-CuAxYw7j.js} +1 -1
- package/dist/{Register-l_X4fDPP.js → Register-B11jE2Ox.js} +78 -73
- package/dist/RichText-CxBE_cVg.js +47 -0
- package/dist/{SearchFooter-C8N9ku25.js → SearchFooter-agTqPUGE.js} +1 -1
- package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-6WvYHIn1.js → SearchFooter.vue_vue_type_style_index_0_lang-C-1Yr5_9.js} +1 -1
- package/dist/{SearchForm-DX0mN20A.js → SearchForm-DNKmE8W0.js} +1 -1
- package/dist/{SearchForm.vue_vue_type_style_index_0_lang-23AxHYiw.js → SearchForm.vue_vue_type_style_index_0_lang-BzrMV0Wr.js} +40 -35
- package/dist/Select-BPa5rx_H.js +86 -0
- package/dist/Select-CRfEAtba.js +117 -0
- package/dist/{Select-DYjvtHyi.js → Select-MqDjnB-C.js} +1 -1
- package/dist/{Single-DErvX9y_.js → Single-C5Kkr9SY.js} +112 -107
- package/dist/{Statistic-CQxXdu-V.js → Statistic-Ce_FMw5O.js} +36 -31
- package/dist/{Stock-CsoHCwV6.js → Stock-BTjhpaxv.js} +1 -1
- package/dist/{Stock-DXLdfC3r.js → Stock-D8AJmsvb.js} +1 -1
- package/dist/{Stock.vue_vue_type_style_index_0_lang-B-b3Lj_h.js → Stock.vue_vue_type_style_index_0_lang-DTj2ITJ6.js} +28 -23
- package/dist/{Switch-BCgZXfWo.js → Switch-gwGbi34o.js} +1 -1
- package/dist/{Table-CAVxyUTD.js → Table-C03eUBYm.js} +69 -63
- package/dist/{Table-DkJYgLFt.js → Table-DA8aGGEH.js} +74 -70
- package/dist/{Text-Cn0cOTli.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-Pc4TfoC3.js → Textarea-gtXLL6Qe.js} +1 -1
- package/dist/Time-DYOIZ2Rv.js +43 -0
- package/dist/Timeline-B4AYezYA.js +59 -0
- package/dist/{Tree-01Sb-9zi.js → Tree-CRDb0vS5.js} +67 -62
- package/dist/Tree-CTmXjN1O.js +122 -0
- package/dist/TreeNode-HFcGpAOb.js +42 -0
- package/dist/{Update-Cy1lFPVv.js → Update-EHyhYK5k.js} +18 -12
- package/dist/{UpdateChild-DV_8KV9G.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-BFZPXXq0.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 +42 -41
- package/package.json +2 -2
- package/dist/Article-aps_F4Uq.js +0 -194
- package/dist/Autocomplete-CGoxGIM2.js +0 -48
- package/dist/Autocomplete-XdLV4jzi.js +0 -49
- package/dist/Callback-Czdr_dVp.js +0 -20
- package/dist/Cascader-D3Kr80fH.js +0 -81
- package/dist/Cascader-DRvnD4Xc.js +0 -41
- package/dist/Checkbox-5pSKww4M.js +0 -70
- package/dist/Code-BxQxsVD8.js +0 -54
- package/dist/Code-CtDTGfBy.js +0 -36
- package/dist/Code.vue_vue_type_style_index_0_lang-CPZKY3vQ.js +0 -59
- package/dist/Column-D3PMyaiE.js +0 -68
- package/dist/Comment-B3fvVYJF.js +0 -98
- package/dist/Compare-BXxJuIXf.js +0 -37
- package/dist/Copy-1znXP-dt.js +0 -43
- package/dist/Custom-C_15ZImX.js +0 -51
- package/dist/DataImport.vue_vue_type_script_setup_true_lang-ChWRjj2W.js +0 -172
- package/dist/Date-0bIUTNCs.js +0 -37
- package/dist/DateRange-Cxu9FXTE.js +0 -57
- package/dist/DateTime-IlsYZL-l.js +0 -38
- package/dist/Daterange-CX0Klog4.js +0 -57
- package/dist/Delete-DFl8Tr27.js +0 -56
- package/dist/Dictionary-DmarNVsi.js +0 -55
- package/dist/Email-BBjDCCOK.js +0 -48
- package/dist/Image-pufFvop2.js +0 -9
- package/dist/Index-C4D5pwwu.js +0 -173
- package/dist/Index-CD_KS2lO.js +0 -4
- package/dist/Index-CEh3KlPE.js +0 -4
- package/dist/Index-XmvSiC1h.js +0 -4
- package/dist/Int-Bi3P8XeV.js +0 -41
- package/dist/Int-Bn2p1DqA.js +0 -38
- package/dist/List-CeQRwXop.js +0 -73
- package/dist/Maintaince-CVMjhqSO.js +0 -14
- package/dist/Month-BfUSQ3xa.js +0 -38
- package/dist/Month-DQKfNQzN.js +0 -37
- package/dist/Paging-d_-VefNv.js +0 -94
- package/dist/QueryApi-Cdniq3mZ.js +0 -13
- package/dist/RichText-9MwwjuZi.js +0 -41
- package/dist/Select-CQE5kY-n.js +0 -111
- package/dist/Select-DaEqum3a.js +0 -80
- package/dist/Text-Dk5tNNZo.js +0 -53
- package/dist/Text-DvVWvaMO.js +0 -4
- package/dist/Text.vue_vue_type_style_index_0_lang-I01JEYAx.js +0 -53
- package/dist/TextLink-D3nvnLHn.js +0 -59
- package/dist/Time-CToG3p0T.js +0 -37
- package/dist/Timeline-DphvhX0U.js +0 -53
- package/dist/Tree-CH1RoUqu.js +0 -117
- package/dist/TreeNode-C54d29V-.js +0 -37
- package/dist/Upload-BalaO4wz.js +0 -146
- package/dist/Upload-DQVaPUdG.js +0 -67
- package/dist/UploadApi-Cfm5DM_x.js +0 -13
- package/dist/Year-Swm3VSzj.js +0 -41
- package/dist/main-BYJVoHlf.js +0 -19457
@@ -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,9 +152,9 @@ const j = /* @__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: {
|
@@ -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,16 +1,22 @@
|
|
1
|
-
import { defineComponent as We, toRefs as
|
2
|
-
import
|
3
|
-
import {
|
4
|
-
import
|
5
|
-
import
|
6
|
-
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";
|
7
13
|
import "vue-router";
|
8
14
|
import "./assets/intro.js-DxWjEdp_.js";
|
9
|
-
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";
|
10
16
|
const Ze = {
|
11
17
|
key: 0,
|
12
18
|
class: "required"
|
13
|
-
}, 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({
|
14
20
|
__name: "Table",
|
15
21
|
props: {
|
16
22
|
searchData: {},
|
@@ -23,7 +29,7 @@ const Ze = {
|
|
23
29
|
},
|
24
30
|
emits: ["search", "navigate", "sort", "page-change", "size-change", "succeed", "close"],
|
25
31
|
setup(ne, { expose: re, emit: se }) {
|
26
|
-
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) => {
|
27
33
|
x("insert", null, t);
|
28
34
|
}, pe = (t, a) => {
|
29
35
|
x("detail", t, a);
|
@@ -35,8 +41,8 @@ const Ze = {
|
|
35
41
|
x("delete", t, a);
|
36
42
|
}, Q = (t) => {
|
37
43
|
let a = t.map((o) => o[r.value.key.name]);
|
38
|
-
|
39
|
-
Oe.success(o.message),
|
44
|
+
Fe.post(p.value.delete.route, a).then((o) => {
|
45
|
+
Oe.success(o.message), M();
|
40
46
|
});
|
41
47
|
}, x = (t, a, o) => {
|
42
48
|
let s = ve(t, a);
|
@@ -52,15 +58,15 @@ const Ze = {
|
|
52
58
|
n.value.visible = !1, b("close");
|
53
59
|
}, he = (t) => {
|
54
60
|
n.value.title = Ie(t.module.type, t.module.name), n.value.env = t.module.env;
|
55
|
-
},
|
61
|
+
}, M = () => {
|
56
62
|
n.value.visible = !1;
|
57
|
-
let t =
|
63
|
+
let t = N.value;
|
58
64
|
b("succeed", (a) => {
|
59
65
|
let o = a.data.set[r.value.name];
|
60
66
|
if (!o.length)
|
61
67
|
return;
|
62
68
|
let s = r.value.key;
|
63
|
-
|
69
|
+
K(() => {
|
64
70
|
let c = n.value.row;
|
65
71
|
if (c) {
|
66
72
|
let d = o.find((C) => C[s.name] == c[s.name]);
|
@@ -86,35 +92,35 @@ const Ze = {
|
|
86
92
|
}, xe = (t) => {
|
87
93
|
G.value = t;
|
88
94
|
}, Ce = (t, a) => {
|
89
|
-
|
95
|
+
N.value = t;
|
90
96
|
}, ke = (t, a, o) => {
|
91
97
|
let s = t.target.children[0], c = $.getWidth(s) + 16 + 14, d = a.realWidth || a.width;
|
92
98
|
o._headerTooltip = c > d;
|
93
99
|
}, Re = async (t, a, o, s) => {
|
94
|
-
await
|
100
|
+
await j.setColumnWidth(p.value.paging.route, r.value.name, o.property, t);
|
95
101
|
}, Y = () => {
|
96
102
|
var s, c, d;
|
97
|
-
let t = $.getHeight(V.value), a = $.getHeight([(s = L.value) == null ? void 0 : s.$el, (c =
|
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;
|
98
104
|
I.value = `${o}px`;
|
99
105
|
}, Z = () => {
|
100
|
-
let t =
|
106
|
+
let t = H.value;
|
101
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";
|
102
108
|
}, Se = (t, a) => {
|
103
109
|
if (!W.value || !W.value.keyboard)
|
104
110
|
return !1;
|
105
111
|
W.value.keyboard(t, a);
|
106
112
|
}, ze = (t) => {
|
107
|
-
L.value.resize(t),
|
113
|
+
L.value.resize(t), H.value = $.getWidth(V.value), Z(), K(() => {
|
108
114
|
Y();
|
109
115
|
});
|
110
116
|
};
|
111
|
-
|
112
|
-
J.value = await
|
117
|
+
Be(async () => {
|
118
|
+
J.value = await j.getFieldConfigs(), H.value = $.getWidth(V.value), Z(), K(() => {
|
113
119
|
Y();
|
114
120
|
});
|
115
121
|
});
|
116
122
|
let $e = le(() => {
|
117
|
-
let a = Object.keys(
|
123
|
+
let a = Object.keys(u.value.orderBys)[0], o = u.value.orderBys[a];
|
118
124
|
return { prop: a, order: o ? "ascending" : "descending" };
|
119
125
|
}), Ve = le(() => {
|
120
126
|
let t = `/${r.value.name}/paging-row`;
|
@@ -122,7 +128,7 @@ const Ze = {
|
|
122
128
|
});
|
123
129
|
return re({ keyboard: Se, resize: ze }), (t, a) => {
|
124
130
|
const o = k("el-table-column"), s = k("el-tooltip"), c = k("el-table"), d = k("el-pagination"), C = k("el-drawer");
|
125
|
-
return f(),
|
131
|
+
return f(), D("div", {
|
126
132
|
ref_key: "pagingRef",
|
127
133
|
ref: V,
|
128
134
|
class: "paging-table"
|
@@ -130,22 +136,22 @@ const Ze = {
|
|
130
136
|
v(Ge, {
|
131
137
|
ref_key: "searchRef",
|
132
138
|
ref: L,
|
133
|
-
schema: e(
|
139
|
+
schema: e(U),
|
134
140
|
table: e(r),
|
135
|
-
layout: e(
|
136
|
-
"search-data": e(
|
141
|
+
layout: e(u),
|
142
|
+
"search-data": e(A),
|
137
143
|
onSubmit: e(X)
|
138
144
|
}, null, 8, ["schema", "table", "layout", "search-data", "onSubmit"]),
|
139
145
|
v(Ye, {
|
140
146
|
ref_key: "headerRef",
|
141
|
-
ref:
|
142
|
-
schema: e(
|
147
|
+
ref: F,
|
148
|
+
schema: e(U),
|
143
149
|
table: e(r),
|
144
|
-
layout: e(
|
150
|
+
layout: e(u),
|
145
151
|
set: e(_),
|
146
152
|
next: e(p),
|
147
|
-
selection: e(
|
148
|
-
"search-data": e(
|
153
|
+
selection: e(N),
|
154
|
+
"search-data": e(A),
|
149
155
|
onAdd: e(de),
|
150
156
|
onRemove: e(Q),
|
151
157
|
onShowImport: a[0] || (a[0] = (l) => w(m) ? m.value = !0 : m = !0),
|
@@ -155,7 +161,7 @@ const Ze = {
|
|
155
161
|
v(c, {
|
156
162
|
ref_key: "tableRef",
|
157
163
|
ref: E,
|
158
|
-
class:
|
164
|
+
class: De([{ "hide-nav": e(Le).hideNav }, "table-default table-paging"]),
|
159
165
|
size: "small",
|
160
166
|
border: "",
|
161
167
|
"highlight-current-row": "",
|
@@ -167,63 +173,63 @@ const Ze = {
|
|
167
173
|
onHeaderDragend: e(Re)
|
168
174
|
}, {
|
169
175
|
empty: h(() => [
|
170
|
-
oe(R(e(
|
176
|
+
oe(R(e(q)("common.no_data")), 1)
|
171
177
|
]),
|
172
178
|
default: h(() => [
|
173
179
|
v(o, {
|
174
180
|
type: "selection",
|
175
181
|
width: "30"
|
176
182
|
}),
|
177
|
-
(f(!0),
|
183
|
+
(f(!0), D(Te, null, Ue(e(r).show, (l, ot) => {
|
178
184
|
var ee, te, ae;
|
179
185
|
return f(), S(o, {
|
180
186
|
sortable: e(r) ? "custom" : !1,
|
181
187
|
prop: l.name,
|
182
188
|
"sort-orders": ["descending", "ascending"],
|
183
|
-
fixed: e(
|
189
|
+
fixed: e(u).fixed.indexOf(l.name) > -1,
|
184
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,
|
185
191
|
label: `${l.label}${l.control.prefix || l.suffix ? "(" + (l.control.prefix || l.suffix) + ")" : ""}`,
|
186
192
|
key: `${e(r).name}.${l.name}`
|
187
193
|
}, {
|
188
|
-
header: h((
|
189
|
-
l.control.required && l.control.editable ? (f(),
|
194
|
+
header: h((B) => [
|
195
|
+
l.control.required && l.control.editable ? (f(), D("i", Ze)) : z("", !0),
|
190
196
|
v(s, {
|
191
197
|
placement: "top",
|
192
198
|
content: l.label,
|
193
199
|
disabled: !l._headerTooltip
|
194
200
|
}, {
|
195
201
|
default: h(() => [
|
196
|
-
|
197
|
-
onMouseenter: (
|
202
|
+
T("span", {
|
203
|
+
onMouseenter: (P) => e(ke)(P, B.column, l)
|
198
204
|
}, [
|
199
|
-
|
205
|
+
T("span", null, R(e(Me)(e(r).name, l.name)), 1)
|
200
206
|
], 40, et)
|
201
207
|
]),
|
202
208
|
_: 2
|
203
209
|
}, 1032, ["content", "disabled"])
|
204
210
|
]),
|
205
|
-
default: h((
|
211
|
+
default: h((B) => [
|
206
212
|
v(Xe, {
|
207
|
-
schema: e(
|
213
|
+
schema: e(U),
|
208
214
|
table: e(r),
|
209
215
|
field: l,
|
210
216
|
set: e(_),
|
211
|
-
row:
|
212
|
-
config: e(
|
213
|
-
onChange: (
|
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)
|
214
220
|
}, null, 8, ["schema", "table", "field", "set", "row", "config", "onChange"])
|
215
221
|
]),
|
216
222
|
_: 2
|
217
223
|
}, 1032, ["sortable", "prop", "fixed", "min-width", "label"]);
|
218
224
|
}), 128)),
|
219
225
|
v(o, {
|
220
|
-
label: e(
|
226
|
+
label: e(q)("common.operation"),
|
221
227
|
fixed: "right",
|
222
228
|
"show-overflow-tooltip": "",
|
223
229
|
"min-width": e(G)
|
224
230
|
}, {
|
225
231
|
default: h((l) => [
|
226
|
-
(f(), S(
|
232
|
+
(f(), S(Ne(e(Ve)), {
|
227
233
|
table: e(r),
|
228
234
|
next: e(p),
|
229
235
|
set: e(_),
|
@@ -241,7 +247,7 @@ const Ze = {
|
|
241
247
|
]),
|
242
248
|
_: 1
|
243
249
|
}, 8, ["class", "max-height", "data", "default-sort", "onHeaderDragend"]),
|
244
|
-
v(e(
|
250
|
+
v(e(Ke), {
|
245
251
|
ref_key: "footerRef",
|
246
252
|
ref: O,
|
247
253
|
class: "list-toolbar"
|
@@ -250,14 +256,14 @@ const Ze = {
|
|
250
256
|
v(d, {
|
251
257
|
background: "",
|
252
258
|
layout: e(y).layout,
|
253
|
-
"current-page": e(
|
259
|
+
"current-page": e(u).page,
|
254
260
|
"pager-count": e(y).count,
|
255
|
-
total: e(
|
261
|
+
total: e(u).count,
|
256
262
|
"page-sizes": e(y).sizes,
|
257
263
|
onCurrentChange: e(ye),
|
258
264
|
onSizeChange: e(be),
|
259
|
-
"page-size": e(
|
260
|
-
"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)
|
261
267
|
}, null, 8, ["layout", "current-page", "pager-count", "total", "page-sizes", "onCurrentChange", "onSizeChange", "page-size"])
|
262
268
|
]),
|
263
269
|
_: 1
|
@@ -266,14 +272,14 @@ const Ze = {
|
|
266
272
|
key: 0,
|
267
273
|
next: e(p),
|
268
274
|
onClose: a[5] || (a[5] = (l) => w(m) ? m.value = !1 : m = !1),
|
269
|
-
onSucceed: e(
|
275
|
+
onSucceed: e(M),
|
270
276
|
modelValue: e(m),
|
271
277
|
"onUpdate:modelValue": a[6] || (a[6] = (l) => w(m) ? m.value = l : m = l)
|
272
278
|
}, null, 8, ["next", "onSucceed", "modelValue"])) : z("", !0),
|
273
279
|
e(p).export ? (f(), S(Qe, {
|
274
280
|
key: 1,
|
275
281
|
route: e(p).export.route,
|
276
|
-
"page-count": e(
|
282
|
+
"page-count": e(je).pageCount(e(u).count, e(u).pageSize),
|
277
283
|
onClose: a[7] || (a[7] = (l) => w(g) ? g.value = !1 : g = !1),
|
278
284
|
modelValue: e(g),
|
279
285
|
"onUpdate:modelValue": a[8] || (a[8] = (l) => w(g) ? g.value = l : g = l)
|
@@ -282,27 +288,27 @@ const Ze = {
|
|
282
288
|
key: 2,
|
283
289
|
"destroy-on-close": "",
|
284
290
|
"append-to-body": e(n).appendToBody,
|
285
|
-
size: e(
|
291
|
+
size: e(j).getDrawerWidth(e(H)),
|
286
292
|
modelValue: e(n).visible,
|
287
293
|
"onUpdate:modelValue": a[9] || (a[9] = (l) => e(n).visible = l)
|
288
294
|
}, {
|
289
295
|
header: h(() => [
|
290
|
-
|
296
|
+
T("div", tt, [
|
291
297
|
oe(R(e(n).title) + " ", 1),
|
292
|
-
e(n).env ? (f(),
|
293
|
-
|
298
|
+
e(n).env ? (f(), D("span", at, "[" + R(e(n).env) + "]", 1)) : z("", !0),
|
299
|
+
T("a", {
|
294
300
|
class: "drawer-copy",
|
295
|
-
href: e(
|
296
|
-
}, R(e(
|
301
|
+
href: e(qe).getToUrl(e(n).url)
|
302
|
+
}, R(e(q)("common.link")), 9, lt)
|
297
303
|
])
|
298
304
|
]),
|
299
305
|
default: h(() => [
|
300
|
-
v(e(
|
306
|
+
v(e(Ae), {
|
301
307
|
ref_key: "pageRef",
|
302
308
|
ref: W,
|
303
309
|
url: e(n).url,
|
304
310
|
onLoaded: e(he),
|
305
|
-
onSucceed: e(
|
311
|
+
onSucceed: e(M),
|
306
312
|
onClose: e(fe)
|
307
313
|
}, null, 8, ["url", "onLoaded", "onSucceed", "onClose"])
|
308
314
|
]),
|
@@ -313,5 +319,5 @@ const Ze = {
|
|
313
319
|
}
|
314
320
|
});
|
315
321
|
export {
|
316
|
-
|
322
|
+
wt as default
|
317
323
|
};
|