halo-pc 1.0.39 → 1.0.40
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{Article-DZlstqWL.js → Article-CqtkXVmQ.js} +37 -36
- package/dist/{ArticleFooter-BkduiKh8.js → ArticleFooter-DeJdTtZD.js} +12 -13
- package/dist/{Autocomplete-DMKnFezN.js → Autocomplete-0fxB2_FC.js} +1 -1
- package/dist/Autocomplete-BfhYwZ5G.js +49 -0
- package/dist/{Autocomplete-0Yf6lJQ7.js → Autocomplete-LQiKcvz1.js} +10 -11
- package/dist/{CSharp-q8eOBm4y.js → CSharp-BIFRQLaK.js} +1 -1
- package/dist/{Calender-CseGNCuW.js → Calender-DPNTn-S4.js} +2 -2
- package/dist/Callback-Ci5KrWOC.js +20 -0
- package/dist/Cascader-CnOEgPDf.js +41 -0
- package/dist/{Cascader-BG5ev35M.js → Cascader-Vhc81TDV.js} +17 -18
- package/dist/{Checkbox-CsCA6iQb.js → Checkbox-CIim5NiB.js} +1 -1
- package/dist/{Checkbox-dw8RNAGt.js → Checkbox-D9Sp6ZGQ.js} +11 -12
- package/dist/Code-BEjqqeFZ.js +54 -0
- package/dist/Code-BSrEPuXk.js +4 -0
- package/dist/Code-Dp1-k8sW.js +36 -0
- package/dist/{Code-BE8YLGaE.js → Code-yDKaH1uF.js} +10 -8
- package/dist/Code.vue_vue_type_style_index_0_lang-CmkomJXY.js +59 -0
- package/dist/Column-B0ViSver.js +69 -0
- package/dist/{Comment-kTmfTlbF.js → Comment-tU2wBvGO.js} +22 -26
- package/dist/{Compare-DlyQBCat.js → Compare-D7Gz-lE9.js} +10 -11
- package/dist/{Compare-DVWaiCUC.js → Compare-DqvGyQWA.js} +8 -9
- package/dist/Copy-Dm1LH9qB.js +43 -0
- package/dist/Custom-CLKAPWEo.js +49 -0
- package/dist/{DataExport-Um1wXyRe.js → DataExport-BDftKI0U.js} +1 -1
- package/dist/{DataExport.vue_vue_type_script_setup_true_lang-2YoqwEmA.js → DataExport.vue_vue_type_script_setup_true_lang-Dzy9UC11.js} +27 -28
- package/dist/{DataImport-CPMLup4P.js → DataImport-CRYaaQfA.js} +1 -1
- package/dist/{DataImport.vue_vue_type_script_setup_true_lang-DsCp0vWo.js → DataImport.vue_vue_type_script_setup_true_lang-D7UdCnBM.js} +30 -31
- package/dist/{Date-BhZ8ltgp.js → Date-DPPiYLWw.js} +7 -8
- package/dist/{Date-Cj9lCW_Y.js → Date-Dlh1_S7p.js} +1 -1
- package/dist/{DateRange-Bw_Oyawz.js → DateRange-BgF_T3ls.js} +5 -6
- package/dist/{DateTime-Cv-SRE88.js → DateTime-CNjPeK9t.js} +1 -1
- package/dist/{DateTime-BU6JaBPk.js → DateTime-DP-VfmtN.js} +7 -8
- package/dist/{DateTimeRange-B4Ah6LQY.js → DateTimeRange-DbEpW4nB.js} +9 -10
- package/dist/{Daterange-CSZe4XGO.js → Daterange-DHVjhrK9.js} +4 -5
- package/dist/{Decimal-DSDuwW9Z.js → Decimal-BDEWVSsK.js} +1 -1
- package/dist/{Delete-CjPgg-5G.js → Delete-Bl0GmthL.js} +19 -20
- package/dist/{Detail-gj--ICe8.js → Detail-BozyhOTt.js} +10 -11
- package/dist/{Dictionary-Ck_02mWa.js → Dictionary-CJwZPQz6.js} +9 -15
- package/dist/{Email-BSQbDvh1.js → Email-D5X1SzuJ.js} +11 -12
- package/dist/{File-FW4usX43.js → File-DixK0K7p.js} +44 -43
- package/dist/Image-BrelhCGo.js +9 -0
- package/dist/Index-BeM6hKX9.js +4 -0
- package/dist/Index-BkfLyqpm.js +173 -0
- package/dist/{Index-MUgqP8jJ.js → Index-D2FOeoNQ.js} +1 -1
- package/dist/Index-D8UVsXwf.js +4 -0
- package/dist/{Index-Dq5Vp-ts.js → Index-DbXgnBz6.js} +15 -16
- package/dist/Index-FL-dxfFB.js +4 -0
- package/dist/Index-fWOqfFkG.js +4 -0
- package/dist/{Index-BibWDRoP.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-CiBvC9Cu.js → Index.vue_vue_type_script_setup_true_lang-DT7eOyjs.js} +21 -22
- package/dist/{Install-Cpp3BDCS.js → Install-WR3b4IfI.js} +13 -14
- package/dist/{Int-Ck1SvK7R.js → Int-CWsDtoxE.js} +9 -10
- package/dist/{Int-DcQsipaO.js → Int-GGWiUqO2.js} +13 -14
- package/dist/List-kRCsHp6d.js +71 -0
- package/dist/Maintaince-BG8MUi3A.js +14 -0
- package/dist/{Markdown-BEUz4VZ7.js → Markdown-nVfQs7kc.js} +1 -1
- package/dist/Month-B1icZmL4.js +37 -0
- package/dist/{Month-DmUiyF1G.js → Month-CxKMP4kO.js} +1 -1
- package/dist/{Month-DJGGGrZr.js → Month-DnYlAi7k.js} +10 -11
- package/dist/{Normal-ACcTHsXb.js → Normal-RcqEyIFN.js} +47 -46
- package/dist/Paging-DrdGzxeP.js +94 -0
- package/dist/{PagingHeader-DDkmqv98.js → PagingHeader-C8UpM9Kj.js} +18 -17
- package/dist/{PagingRow-B4Nfa2Vk.js → PagingRow-oQWCofO4.js} +13 -14
- package/dist/{Racebar-LfnPLNOY.js → Racebar-CvoF2ySW.js} +32 -36
- package/dist/{Radio-DcEZI4m7.js → Radio-DhjfkC14.js} +1 -1
- package/dist/{Register-B4x_zgyH.js → Register-B0Vx60wY.js} +55 -56
- package/dist/RichText-4wrLw9cy.js +41 -0
- package/dist/{SearchForm-DU5QLTbe.js → SearchForm-BHVnQaSL.js} +1 -1
- package/dist/{SearchForm.vue_vue_type_style_index_0_lang-BHZrYG6_.js → SearchForm.vue_vue_type_style_index_0_lang-ByICIL6w.js} +50 -51
- 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-C3gUeHmu.js → Select-BDoCqD3I.js} +10 -11
- package/dist/{Select-CMxubJIV.js → Select-CX4i5KPQ.js} +1 -1
- package/dist/{Select-DrDDVJtz.js → Select-vgwpegBi.js} +20 -21
- package/dist/{Single-De-YyuVk.js → Single-C3629BdC.js} +127 -128
- package/dist/{Statistic-CTxHNeof.js → Statistic-Dxa-CZ8G.js} +10 -8
- package/dist/{Statistic-SvjQ7uGI.js → Statistic-WPezAlUn.js} +34 -33
- package/dist/{Stock-C2b9p3-N.js → Stock-BD5Acf8y.js} +8 -6
- package/dist/{Stock-XZkBSQw1.js → Stock-EPM3j2f_.js} +1 -1
- package/dist/{Stock.vue_vue_type_style_index_0_lang-DwxyyM7p.js → Stock.vue_vue_type_style_index_0_lang-D5RR2MRP.js} +22 -21
- package/dist/{Switch-PJT-5dDt.js → Switch-B0XN4K-9.js} +1 -1
- package/dist/{Table-Dy1H2IHN.js → Table-BklK1hSh.js} +142 -136
- package/dist/{Table-CkoZ8OjZ.js → Table-JFdOXuME.js} +61 -60
- package/dist/Text-CNtHdodK.js +4 -0
- package/dist/{Text-CytgR_l_.js → Text-DrJkdxZF.js} +12 -13
- package/dist/Text-KAuEjP7I.js +48 -0
- package/dist/Text.vue_vue_type_style_index_0_lang-BJIbv4kF.js +53 -0
- package/dist/{TextLink-DINdFWzs.js → TextLink-BnijIoEJ.js} +8 -9
- package/dist/{Textarea-DakZXfN6.js → Textarea-3SWLqQvO.js} +1 -1
- package/dist/{Time-Bn1Av2wo.js → Time-C3qlNZkJ.js} +9 -10
- package/dist/{Timeline-B32cUvwI.js → Timeline-B6hUIYhL.js} +11 -15
- package/dist/{Tree-BGfHm4k_.js → Tree-DBvFF4Rj.js} +77 -76
- package/dist/{Tree-BItAXuSC.js → Tree-JexLPBXX.js} +38 -42
- package/dist/{TreeNode-DmiM_a2n.js → TreeNode-BOWB2WN9.js} +9 -10
- package/dist/{Update-DSTmaeT8.js → Update-CDLYYwgj.js} +5 -6
- package/dist/{UpdateChild-BgBJJwT3.js → UpdateChild-DUG7pAuO.js} +19 -20
- package/dist/{Upload-DMqlcxCt.js → Upload-B2hbxDsT.js} +46 -47
- package/dist/Upload-mlk6Y4Po.js +65 -0
- package/dist/{Year-DckBNPK_.js → Year-BRsJ7b1J.js} +1 -1
- package/dist/{Year-Cv92J5pF.js → Year-BUF60NmB.js} +7 -8
- package/dist/assets/{clipboard-DjQPoCBJ.js → clipboard-ClN4QccS.js} +1 -3
- package/dist/main-DymfKjqO.js +16480 -0
- package/dist/main.js +144 -142
- package/dist/style.css +1 -1
- 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/Autocomplete-bc-9LfGa.js +0 -50
- package/dist/Callback-D_dFJlfv.js +0 -21
- package/dist/Cascader-Dzeoz7ss.js +0 -47
- package/dist/Code-BRe68AIa.js +0 -42
- package/dist/Code-C5QfTMNw.js +0 -60
- package/dist/Code-_XoN6vQE.js +0 -4
- package/dist/Code.vue_vue_type_style_index_0_lang-D2hJ7lYF.js +0 -63
- package/dist/Column-C-NHhT2v.js +0 -75
- package/dist/Copy-DQFJy3uX.js +0 -44
- package/dist/Custom-D5HoD0nQ.js +0 -59
- package/dist/Image-DiAw_6jM.js +0 -9
- package/dist/Index-B_5hshjJ.js +0 -4
- package/dist/Index-BtlD6ocN.js +0 -4
- package/dist/Index-C3f38zw0.js +0 -4
- package/dist/Index-CB_TnEaw.js +0 -4
- package/dist/Index-hgTZyQps.js +0 -174
- package/dist/Index.vue_vue_type_script_setup_true_lang-BzPCaYCg.js +0 -82
- package/dist/List-hWB41wF_.js +0 -72
- package/dist/Maintaince-l-Tdveur.js +0 -20
- package/dist/Month-DkafiRHq.js +0 -38
- package/dist/Paging-Vfz2RDBo.js +0 -93
- package/dist/RichText-B1Iogpgr.js +0 -47
- package/dist/SearchFooter-CmM8qnxP.js +0 -4
- package/dist/SearchFooter.vue_vue_type_style_index_0_lang-fRS96yRX.js +0 -55
- package/dist/Text-Bt5jL_KV.js +0 -49
- package/dist/Text-vHouxGHU.js +0 -4
- package/dist/Text.vue_vue_type_style_index_0_lang-CgxtY5ch.js +0 -59
- package/dist/Upload-DpQu3z1T.js +0 -71
- package/dist/assets/clone-BZn0cTAu.js +0 -134
- package/dist/assets/file-saver-CwlpTZSc.js +0 -74
- package/dist/assets/liquidjs-C2HVw1Ra.js +0 -2901
- package/dist/assets/moment-h96o7c8I.js +0 -2578
- package/dist/assets/sprintf-js-BPTdvBYM.js +0 -148
- package/dist/assets/underscore-B0BCaBxV.js +0 -1070
- package/dist/assets/underscore.string-DVXD2SZo.js +0 -425
- package/dist/assets/util-deprecate-Dzun97re.js +0 -28
- package/dist/main-KNkwb0pq.js +0 -10515
@@ -1,7 +1,6 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import {
|
3
|
-
|
4
|
-
const J = /* @__PURE__ */ F({
|
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
|
+
const Q = /* @__PURE__ */ _({
|
5
4
|
__name: "Stock",
|
6
5
|
props: {
|
7
6
|
searchData: {},
|
@@ -11,21 +10,23 @@ const J = /* @__PURE__ */ F({
|
|
11
10
|
table: {},
|
12
11
|
layout: {},
|
13
12
|
next: {},
|
14
|
-
set: {}
|
13
|
+
set: {},
|
14
|
+
url: {},
|
15
|
+
win: {}
|
15
16
|
},
|
16
17
|
setup(k) {
|
17
|
-
let L = k, { module: j, schema:
|
18
|
-
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 = [];
|
19
20
|
for (let i = 0; i < o.length; i++) {
|
20
21
|
let a = o[i];
|
21
22
|
e.push(a[n.value.time]);
|
22
23
|
let d = parseFloat(a[n.value.open]), s = parseFloat(a[n.value.close]);
|
23
24
|
l.push([d, s, parseFloat(a[n.value.low]), parseFloat(a[n.value.high])]);
|
24
|
-
let
|
25
|
+
let F = {
|
25
26
|
value: parseFloat(a[n.value.volumn]),
|
26
|
-
itemStyle: { color: s > d ?
|
27
|
+
itemStyle: { color: s > d ? p : x }
|
27
28
|
};
|
28
|
-
r.push(
|
29
|
+
r.push(F);
|
29
30
|
}
|
30
31
|
return { times: e, values: l, volumes: r };
|
31
32
|
}, m = (t, o) => {
|
@@ -41,7 +42,7 @@ const J = /* @__PURE__ */ F({
|
|
41
42
|
e.push(i / o);
|
42
43
|
}
|
43
44
|
return e;
|
44
|
-
},
|
45
|
+
}, I = (t) => {
|
45
46
|
let o = n.value.trade, e = {
|
46
47
|
animation: !1,
|
47
48
|
//关闭动画,提升性能
|
@@ -146,9 +147,9 @@ const J = /* @__PURE__ */ F({
|
|
146
147
|
//网格索引,表示使用第2个网格的配置
|
147
148
|
data: t.values,
|
148
149
|
itemStyle: {
|
149
|
-
color:
|
150
|
+
color: p,
|
150
151
|
color0: x,
|
151
|
-
borderColor:
|
152
|
+
borderColor: p,
|
152
153
|
borderColor0: x
|
153
154
|
},
|
154
155
|
markPoint: {
|
@@ -266,18 +267,18 @@ const J = /* @__PURE__ */ F({
|
|
266
267
|
let r = Math.max(e[0] - e[2], e[3] - e[0]) / e[0];
|
267
268
|
o += r;
|
268
269
|
}), o / t.length * 100;
|
269
|
-
},
|
270
|
-
let o =
|
271
|
-
|
270
|
+
}, Z = (t) => {
|
271
|
+
let o = I(t);
|
272
|
+
y || (y = c.init(w.value)), y.setOption(o);
|
272
273
|
let e = t.values, l = e.reverse();
|
273
274
|
u.history = g(e), u.week = g(l.slice(0, 7)), u.month = g(l.slice(0, 30));
|
274
|
-
},
|
275
|
+
}, C = () => {
|
275
276
|
let t = h.value[v.value.name];
|
276
|
-
t.length > 0 &&
|
277
|
+
t.length > 0 && Z(M(t));
|
277
278
|
};
|
278
279
|
return B(async () => {
|
279
|
-
c = await
|
280
|
-
}), (t, o) => (E(), G(f(
|
280
|
+
c = await O.getECharts(), C();
|
281
|
+
}), (t, o) => (E(), G(f(K), null, {
|
281
282
|
default: P(() => [
|
282
283
|
A("div", {
|
283
284
|
ref_key: "chartRef",
|
@@ -293,5 +294,5 @@ const J = /* @__PURE__ */ F({
|
|
293
294
|
}
|
294
295
|
});
|
295
296
|
export {
|
296
|
-
|
297
|
+
Q as _
|
297
298
|
};
|
@@ -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),
|
@@ -1,16 +1,15 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import {
|
3
|
-
import "./
|
4
|
-
import { _ as
|
5
|
-
import { _ as
|
6
|
-
import { _ as Ye } from "./DataExport.vue_vue_type_script_setup_true_lang-2YoqwEmA.js";
|
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";
|
7
6
|
import "vue-router";
|
8
7
|
import "./assets/intro.js-Cg1adLK7.js";
|
9
|
-
import { _ as
|
10
|
-
const
|
8
|
+
import { _ as at } from "./SearchHeader.vue_vue_type_style_index_0_lang-CHAg97-Y.js";
|
9
|
+
const lt = {
|
11
10
|
key: 0,
|
12
11
|
class: "required"
|
13
|
-
},
|
12
|
+
}, ot = ["onMouseenter"], nt = { class: "el-drawer__title" }, rt = { key: 0 }, st = ["href"], ft = /* @__PURE__ */ Ue({
|
14
13
|
__name: "Table",
|
15
14
|
props: {
|
16
15
|
searchData: {},
|
@@ -19,47 +18,49 @@ const et = {
|
|
19
18
|
table: {},
|
20
19
|
layout: {},
|
21
20
|
next: {},
|
22
|
-
set: {}
|
21
|
+
set: {},
|
22
|
+
url: {},
|
23
|
+
win: {}
|
23
24
|
},
|
24
25
|
emits: ["search", "navigate", "sort", "page-change", "size-change", "succeed", "close"],
|
25
|
-
setup(
|
26
|
-
let w =
|
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) => {
|
27
28
|
R("insert", null, t);
|
28
|
-
},
|
29
|
+
}, ve = (t, a) => {
|
29
30
|
R("detail", t, a);
|
30
|
-
},
|
31
|
+
}, he = (t, a) => {
|
31
32
|
R("update", t, a);
|
32
|
-
},
|
33
|
+
}, fe = (t, a) => {
|
33
34
|
R("copy", t, a);
|
34
|
-
},
|
35
|
+
}, ye = (t, a) => {
|
35
36
|
R("delete", t, a);
|
36
|
-
},
|
37
|
+
}, X = async (t) => {
|
37
38
|
let a = t.map((o) => o[r.value.key.name]);
|
38
|
-
await
|
39
|
-
|
39
|
+
await Qe.post(p.value.delete.route, a).then((o) => {
|
40
|
+
Xe.success(o.message), L();
|
40
41
|
});
|
41
42
|
}, R = (t, a, o) => {
|
42
|
-
let s =
|
43
|
+
let s = we(t, a);
|
43
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);
|
44
|
-
},
|
45
|
+
}, we = (t, a = null) => {
|
45
46
|
let o = `${p.value[t].route}`;
|
46
47
|
if (a != null) {
|
47
48
|
let s = a[r.value.key.name];
|
48
49
|
o += `?id=${s}`;
|
49
50
|
}
|
50
51
|
return o;
|
51
|
-
},
|
52
|
+
}, be = () => {
|
52
53
|
n.value.visible = !1, w("close");
|
53
|
-
},
|
54
|
-
n.value.title =
|
55
|
-
},
|
54
|
+
}, _e = (t) => {
|
55
|
+
n.value.title = Ye(t.module.type, t.module.name), n.value.env = t.module.env;
|
56
|
+
}, L = () => {
|
56
57
|
n.value.visible = !1;
|
57
|
-
let t =
|
58
|
+
let t = U.value;
|
58
59
|
w("succeed", async (a) => {
|
59
60
|
let o = a.data.set[r.value.name];
|
60
61
|
if (!o.length)
|
61
62
|
return;
|
62
|
-
await
|
63
|
+
await A();
|
63
64
|
let s = r.value.key, c = n.value.row;
|
64
65
|
if (c != null) {
|
65
66
|
let d = o.find((_) => _[s.name] == c[s.name]);
|
@@ -71,163 +72,168 @@ const et = {
|
|
71
72
|
_ != null && E.value.toggleRowSelection(_, !0);
|
72
73
|
}
|
73
74
|
});
|
74
|
-
},
|
75
|
+
}, Y = (t) => {
|
75
76
|
w("search", t);
|
76
|
-
},
|
77
|
+
}, xe = (t) => {
|
77
78
|
w("page-change", t);
|
78
|
-
},
|
79
|
+
}, Ce = (t) => {
|
79
80
|
w("size-change", t);
|
80
|
-
},
|
81
|
+
}, Re = (t, a) => {
|
81
82
|
let o = { [a.name]: { [t.prop]: t.order != "descending" ? "asc" : "desc" } };
|
82
83
|
w("sort", o);
|
83
|
-
},
|
84
|
-
},
|
85
|
-
|
86
|
-
},
|
87
|
-
|
88
|
-
},
|
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) => {
|
89
90
|
let s = t.target.children[0], c = b.dom.getWidth(s) + 16 + 14, d = a.realWidth || a.width;
|
90
91
|
o._headerTooltip = c > d;
|
91
|
-
},
|
92
|
-
await
|
93
|
-
},
|
92
|
+
}, Ve = async (t, a, o, s) => {
|
93
|
+
await re.setColumnWidth(p.value.paging.route, r.value.name, o.property, t);
|
94
|
+
}, Z = () => {
|
94
95
|
var s, c, d;
|
95
|
-
let t = b.dom.getHeight(V.value), a = b.dom.getHeight([(s =
|
96
|
-
|
97
|
-
},
|
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 = () => {
|
98
99
|
let t = W.value;
|
99
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";
|
100
|
-
},
|
101
|
-
|
102
|
-
},
|
103
|
-
|
104
|
-
|
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();
|
105
108
|
});
|
106
109
|
};
|
107
|
-
|
108
|
-
await
|
110
|
+
Ne(async () => {
|
111
|
+
await ge.openAsync("sys", "page", Q.value), W.value = b.dom.getWidth(V.value), ee(), await A(), Z();
|
109
112
|
});
|
110
|
-
let
|
111
|
-
let a = Object.keys(
|
113
|
+
let Te = oe(() => {
|
114
|
+
let a = Object.keys(i.value.orderBys)[0], o = i.value.orderBys[a];
|
112
115
|
return { prop: a, order: o ? "ascending" : "descending" };
|
113
|
-
}),
|
116
|
+
}), He = oe(() => {
|
114
117
|
let t = `/${r.value.name}/paging-row`;
|
115
|
-
return
|
118
|
+
return je.getComponent(t, "partial", "paging-row");
|
116
119
|
});
|
117
|
-
return
|
120
|
+
return ue({ onKeyboard: We, onSocket: Be, onResize: De }), (t, a) => {
|
118
121
|
const o = k("el-table-column"), s = k("el-tooltip"), c = k("el-table"), d = k("el-pagination"), _ = k("el-drawer");
|
119
|
-
return
|
122
|
+
return h(), D("div", {
|
120
123
|
ref_key: "pagingRef",
|
121
124
|
ref: V,
|
122
125
|
class: "paging-table"
|
123
126
|
}, [
|
124
|
-
v(
|
127
|
+
v(Ze, {
|
125
128
|
ref_key: "searchRef",
|
126
|
-
ref:
|
127
|
-
schema: e(
|
129
|
+
ref: N,
|
130
|
+
schema: e(H),
|
128
131
|
table: e(r),
|
129
|
-
layout: e(
|
130
|
-
"search-data": e(
|
131
|
-
onSubmit: e(
|
132
|
+
layout: e(i),
|
133
|
+
"search-data": e(O),
|
134
|
+
onSubmit: e(Y)
|
132
135
|
}, null, 8, ["schema", "table", "layout", "search-data", "onSubmit"]),
|
133
|
-
v(
|
136
|
+
v(at, {
|
134
137
|
ref_key: "headerRef",
|
135
|
-
ref:
|
136
|
-
|
138
|
+
ref: K,
|
139
|
+
url: e(pe),
|
140
|
+
win: e(me),
|
141
|
+
module: e(q),
|
142
|
+
schema: e(H),
|
137
143
|
table: e(r),
|
138
|
-
layout: e(
|
144
|
+
layout: e(i),
|
139
145
|
set: e(C),
|
140
146
|
next: e(p),
|
141
|
-
selection: e(
|
142
|
-
"search-data": e(
|
143
|
-
onAdd: e(
|
144
|
-
onRemove: e(
|
147
|
+
selection: e(U),
|
148
|
+
"search-data": e(O),
|
149
|
+
onAdd: e(ce),
|
150
|
+
onRemove: e(X),
|
145
151
|
onShowImport: a[0] || (a[0] = (l) => x(m) ? m.value = !0 : m = !0),
|
146
152
|
onShowExport: a[1] || (a[1] = (l) => x(g) ? g.value = !0 : g = !0),
|
147
|
-
onSearch: e(
|
148
|
-
}, null, 8, ["schema", "table", "layout", "set", "next", "selection", "search-data", "onAdd", "onRemove", "onSearch"]),
|
153
|
+
onSearch: e(Y)
|
154
|
+
}, null, 8, ["url", "win", "module", "schema", "table", "layout", "set", "next", "selection", "search-data", "onAdd", "onRemove", "onSearch"]),
|
149
155
|
v(c, {
|
150
156
|
ref_key: "tableRef",
|
151
157
|
ref: E,
|
152
|
-
class:
|
158
|
+
class: Ke([{ "hide-nav": e(qe).hideNav }, "table-default table-paging"]),
|
153
159
|
size: "small",
|
154
160
|
border: "",
|
155
161
|
"highlight-current-row": "",
|
156
|
-
"max-height": e(
|
162
|
+
"max-height": e(I),
|
157
163
|
data: e(C)[e(r).name],
|
158
|
-
"default-sort": e(
|
159
|
-
onSelectionChange: a[2] || (a[2] = (l) => e(
|
160
|
-
onSortChange: a[3] || (a[3] = (l) => e(
|
161
|
-
onHeaderDragend: e(
|
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)
|
162
168
|
}, {
|
163
|
-
empty:
|
164
|
-
|
169
|
+
empty: f(() => [
|
170
|
+
ne(S(e(P)("common.no_data")), 1)
|
165
171
|
]),
|
166
|
-
default:
|
172
|
+
default: f(() => [
|
167
173
|
v(o, {
|
168
174
|
type: "selection",
|
169
175
|
width: "30"
|
170
176
|
}),
|
171
|
-
(
|
172
|
-
var
|
173
|
-
return
|
177
|
+
(h(!0), D(Le, null, Me(e(r).show, (l, ut) => {
|
178
|
+
var te, ae, le;
|
179
|
+
return h(), z(o, {
|
174
180
|
sortable: e(r) ? "custom" : !1,
|
175
181
|
prop: l.name,
|
176
182
|
"sort-orders": ["descending", "ascending"],
|
177
|
-
fixed: e(
|
178
|
-
"min-width": ((
|
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,
|
179
185
|
label: `${l.label}${l.control.prefix || l.suffix ? "(" + (l.control.prefix || l.suffix) + ")" : ""}`,
|
180
186
|
key: `${e(r).name}.${l.name}`
|
181
187
|
}, {
|
182
|
-
header:
|
183
|
-
l.control.required && l.control.editable ? (
|
188
|
+
header: f((B) => [
|
189
|
+
l.control.required && l.control.editable ? (h(), D("i", lt)) : $("", !0),
|
184
190
|
v(s, {
|
185
191
|
placement: "top",
|
186
192
|
content: l.label,
|
187
193
|
disabled: !l._headerTooltip
|
188
194
|
}, {
|
189
|
-
default:
|
190
|
-
|
191
|
-
onMouseenter: (M) => e(
|
195
|
+
default: f(() => [
|
196
|
+
T("span", {
|
197
|
+
onMouseenter: (M) => e($e)(M, B.column, l)
|
192
198
|
}, [
|
193
|
-
|
194
|
-
], 40,
|
199
|
+
T("span", null, S(e(Oe)(e(r).name, l.name)), 1)
|
200
|
+
], 40, ot)
|
195
201
|
]),
|
196
202
|
_: 2
|
197
203
|
}, 1032, ["content", "disabled"])
|
198
204
|
]),
|
199
|
-
default:
|
200
|
-
v(
|
201
|
-
schema: e(
|
205
|
+
default: f((B) => [
|
206
|
+
v(Fe, {
|
207
|
+
schema: e(H),
|
202
208
|
table: e(r),
|
203
209
|
field: l,
|
204
210
|
set: e(C),
|
205
211
|
row: B.row,
|
206
|
-
config: e(
|
207
|
-
onChange: (M) => e(
|
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)
|
208
214
|
}, null, 8, ["schema", "table", "field", "set", "row", "config", "onChange"])
|
209
215
|
]),
|
210
216
|
_: 2
|
211
217
|
}, 1032, ["sortable", "prop", "fixed", "min-width", "label"]);
|
212
218
|
}), 128)),
|
213
219
|
v(o, {
|
214
|
-
label: e(
|
220
|
+
label: e(P)("common.operation"),
|
215
221
|
fixed: "right",
|
216
222
|
"show-overflow-tooltip": "",
|
217
|
-
"min-width": e(
|
223
|
+
"min-width": e(J)
|
218
224
|
}, {
|
219
|
-
default:
|
220
|
-
(
|
225
|
+
default: f((l) => [
|
226
|
+
(h(), z(Ae(e(He)), {
|
221
227
|
table: e(r),
|
222
228
|
next: e(p),
|
223
229
|
set: e(C),
|
224
230
|
row: l.row,
|
225
|
-
onPreview: e(
|
226
|
-
onEdit: e(
|
227
|
-
onCopy: e(
|
228
|
-
onBeforeRemove: e(
|
229
|
-
onRemove: e(
|
230
|
-
onChangeWidth: e(
|
231
|
+
onPreview: e(ve),
|
232
|
+
onEdit: e(he),
|
233
|
+
onCopy: e(fe),
|
234
|
+
onBeforeRemove: e(ye),
|
235
|
+
onRemove: e(X),
|
236
|
+
onChangeWidth: e(Se)
|
231
237
|
}, null, 40, ["table", "next", "set", "row", "onPreview", "onEdit", "onCopy", "onBeforeRemove", "onRemove", "onChangeWidth"]))
|
232
238
|
]),
|
233
239
|
_: 1
|
@@ -235,69 +241,69 @@ const et = {
|
|
235
241
|
]),
|
236
242
|
_: 1
|
237
243
|
}, 8, ["class", "max-height", "data", "default-sort", "onHeaderDragend"]),
|
238
|
-
v(e(
|
244
|
+
v(e(Ie), {
|
239
245
|
ref_key: "footerRef",
|
240
|
-
ref:
|
246
|
+
ref: F,
|
241
247
|
class: "list-toolbar"
|
242
248
|
}, {
|
243
|
-
default:
|
249
|
+
default: f(() => [
|
244
250
|
v(d, {
|
245
251
|
background: "",
|
246
252
|
layout: e(y).layout,
|
247
|
-
"current-page": e(
|
253
|
+
"current-page": e(i).page,
|
248
254
|
"pager-count": e(y).count,
|
249
|
-
total: e(
|
255
|
+
total: e(i).count,
|
250
256
|
"page-sizes": e(y).sizes,
|
251
|
-
onCurrentChange: e(
|
252
|
-
onSizeChange: e(
|
253
|
-
"page-size": e(
|
254
|
-
"onUpdate:pageSize": a[4] || (a[4] = (l) => e(
|
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)
|
255
261
|
}, null, 8, ["layout", "current-page", "pager-count", "total", "page-sizes", "onCurrentChange", "onSizeChange", "page-size"])
|
256
262
|
]),
|
257
263
|
_: 1
|
258
264
|
}, 512),
|
259
|
-
e(p).import ? (
|
265
|
+
e(p).import ? (h(), z(et, {
|
260
266
|
key: 0,
|
261
267
|
next: e(p),
|
262
268
|
onClose: a[5] || (a[5] = (l) => x(m) ? m.value = !1 : m = !1),
|
263
|
-
onSucceed: e(
|
269
|
+
onSucceed: e(L),
|
264
270
|
modelValue: e(m),
|
265
271
|
"onUpdate:modelValue": a[6] || (a[6] = (l) => x(m) ? m.value = l : m = l)
|
266
272
|
}, null, 8, ["next", "onSucceed", "modelValue"])) : $("", !0),
|
267
|
-
e(p).export ? (
|
273
|
+
e(p).export ? (h(), z(tt, {
|
268
274
|
key: 1,
|
269
275
|
route: e(p).export.route,
|
270
|
-
"page-count": e(b).math.pageCount(e(
|
276
|
+
"page-count": e(b).math.pageCount(e(i).count, e(i).size),
|
271
277
|
onClose: a[7] || (a[7] = (l) => x(g) ? g.value = !1 : g = !1),
|
272
278
|
modelValue: e(g),
|
273
279
|
"onUpdate:modelValue": a[8] || (a[8] = (l) => x(g) ? g.value = l : g = l)
|
274
280
|
}, null, 8, ["route", "page-count", "modelValue"])) : $("", !0),
|
275
|
-
e(n).page ? (
|
281
|
+
e(n).page ? (h(), z(_, {
|
276
282
|
key: 2,
|
277
283
|
"destroy-on-close": "",
|
278
284
|
"append-to-body": e(n).appendToBody,
|
279
|
-
size: e(
|
285
|
+
size: e(re).getDrawerWidth(e(W)),
|
280
286
|
modelValue: e(n).visible,
|
281
287
|
"onUpdate:modelValue": a[9] || (a[9] = (l) => e(n).visible = l)
|
282
288
|
}, {
|
283
|
-
header:
|
284
|
-
|
285
|
-
|
286
|
-
e(n).env ? (
|
287
|
-
|
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", {
|
288
294
|
class: "drawer-copy",
|
289
295
|
href: e(b).url.getToUrl(e(n).url)
|
290
|
-
}, S(e(
|
296
|
+
}, S(e(P)("common.link")), 9, st)
|
291
297
|
])
|
292
298
|
]),
|
293
|
-
default:
|
294
|
-
v(e(
|
299
|
+
default: f(() => [
|
300
|
+
v(e(Je), {
|
295
301
|
ref_key: "pageRef",
|
296
|
-
ref:
|
302
|
+
ref: G,
|
297
303
|
url: e(n).url,
|
298
|
-
onLoaded: e(
|
299
|
-
onSucceed: e(
|
300
|
-
onClose: e(
|
304
|
+
onLoaded: e(_e),
|
305
|
+
onSucceed: e(L),
|
306
|
+
onClose: e(be)
|
301
307
|
}, null, 8, ["url", "onLoaded", "onSucceed", "onClose"])
|
302
308
|
]),
|
303
309
|
_: 1
|
@@ -307,5 +313,5 @@ const et = {
|
|
307
313
|
}
|
308
314
|
});
|
309
315
|
export {
|
310
|
-
|
316
|
+
ft as default
|
311
317
|
};
|