halo-pc 1.0.39 → 1.0.41
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{Article-DZlstqWL.js → Article-BMW_FzdK.js} +23 -21
- package/dist/{ArticleFooter-BkduiKh8.js → ArticleFooter-7iPkMQaX.js} +1 -1
- package/dist/{Autocomplete-bc-9LfGa.js → Autocomplete-B6Mwp9rT.js} +1 -1
- package/dist/{Autocomplete-DMKnFezN.js → Autocomplete-C-El55Lz.js} +1 -1
- package/dist/{Autocomplete-0Yf6lJQ7.js → Autocomplete-PZTjEBIx.js} +1 -1
- package/dist/{CSharp-q8eOBm4y.js → CSharp-BQUrQwua.js} +1 -1
- package/dist/{Calender-CseGNCuW.js → Calender-CJXR7uhM.js} +1 -1
- package/dist/{Callback-D_dFJlfv.js → Callback-CyDW9WU2.js} +1 -1
- package/dist/{Cascader-BG5ev35M.js → Cascader-CFc_8QSm.js} +1 -1
- package/dist/{Cascader-Dzeoz7ss.js → Cascader-DMQjalNv.js} +2 -2
- package/dist/{Checkbox-dw8RNAGt.js → Checkbox-aU8e779g.js} +1 -1
- package/dist/{Checkbox-CsCA6iQb.js → Checkbox-pV01os-T.js} +1 -1
- package/dist/Code-C0Kxulod.js +4 -0
- package/dist/{Code-C5QfTMNw.js → Code-C4pIa8BE.js} +2 -2
- package/dist/{Code-BRe68AIa.js → Code-CCJx9RSm.js} +2 -2
- package/dist/{Code-BE8YLGaE.js → Code-kDBbVC1W.js} +10 -8
- package/dist/{Code.vue_vue_type_style_index_0_lang-D2hJ7lYF.js → Code.vue_vue_type_style_index_0_lang-36NN7tgP.js} +12 -10
- package/dist/{Column-C-NHhT2v.js → Column-BebDf5Z9.js} +9 -9
- package/dist/{Comment-kTmfTlbF.js → Comment-BgfD9WtL.js} +5 -3
- package/dist/{Compare-DVWaiCUC.js → Compare-BZucuvFP.js} +1 -1
- package/dist/{Compare-DlyQBCat.js → Compare-D-Byn_Gq.js} +1 -1
- package/dist/{Copy-DQFJy3uX.js → Copy-DW4jSNQi.js} +1 -1
- package/dist/Custom-DIF-RYi3.js +55 -0
- package/dist/{DataExport-Um1wXyRe.js → DataExport-CyQy2xjO.js} +1 -1
- package/dist/{DataExport.vue_vue_type_script_setup_true_lang-2YoqwEmA.js → DataExport.vue_vue_type_script_setup_true_lang-C4n6xWcP.js} +1 -1
- package/dist/{DataImport-CPMLup4P.js → DataImport-BVF83UsQ.js} +1 -1
- package/dist/{DataImport.vue_vue_type_script_setup_true_lang-DsCp0vWo.js → DataImport.vue_vue_type_script_setup_true_lang-BZhFLOqB.js} +1 -1
- package/dist/{Date-Cj9lCW_Y.js → Date-CqpFvbYZ.js} +1 -1
- package/dist/{Date-BhZ8ltgp.js → Date-g1XKWU4b.js} +1 -1
- package/dist/{DateRange-Bw_Oyawz.js → DateRange-B2afkdbT.js} +1 -1
- package/dist/{DateTime-BU6JaBPk.js → DateTime-D_x_wBZR.js} +1 -1
- package/dist/{DateTime-Cv-SRE88.js → DateTime-Zi3vtH77.js} +1 -1
- package/dist/{DateTimeRange-B4Ah6LQY.js → DateTimeRange-BFWM_U7H.js} +1 -1
- package/dist/{Daterange-CSZe4XGO.js → Daterange-tXA0b0Ak.js} +1 -1
- package/dist/{Decimal-DSDuwW9Z.js → Decimal-DKQ38XS_.js} +1 -1
- package/dist/{Delete-CjPgg-5G.js → Delete-BOkBpAGN.js} +1 -1
- package/dist/{Detail-gj--ICe8.js → Detail-SWgERqKG.js} +1 -1
- package/dist/{Dictionary-Ck_02mWa.js → Dictionary-Xsj_Qorw.js} +2 -2
- package/dist/{Email-BSQbDvh1.js → Email-DILPnLkb.js} +1 -1
- package/dist/{File-FW4usX43.js → File-BDUTK7hV.js} +12 -10
- package/dist/{Image-DiAw_6jM.js → Image-Yx3ZHHJK.js} +1 -1
- package/dist/{Index-hgTZyQps.js → Index-BTa4YIN9.js} +1 -1
- package/dist/Index-BWukqxQl.js +4 -0
- package/dist/Index-BahY1OIJ.js +4 -0
- package/dist/Index-C9ffFYsl.js +4 -0
- package/dist/{Index-MUgqP8jJ.js → Index-CiQQmYeA.js} +1 -1
- package/dist/Index-DG7Hovsx.js +4 -0
- package/dist/{Index-BibWDRoP.js → Index-DeYqTT9Q.js} +1 -1
- package/dist/{Index-Dq5Vp-ts.js → Index-WVLyjyqt.js} +2 -2
- package/dist/{Index.vue_vue_type_script_setup_true_lang-CiBvC9Cu.js → Index.vue_vue_type_script_setup_true_lang-42C0EEto.js} +21 -21
- package/dist/Index.vue_vue_type_script_setup_true_lang-DWMiv0dC.js +86 -0
- package/dist/{Install-Cpp3BDCS.js → Install-DW5uDsXF.js} +1 -1
- package/dist/{Int-DcQsipaO.js → Int-BM4sbZvh.js} +1 -1
- package/dist/{Int-Ck1SvK7R.js → Int-BrFE_Hmm.js} +1 -1
- package/dist/List-DWjTqrJR.js +72 -0
- package/dist/{Maintaince-l-Tdveur.js → Maintaince-DF3nu9Jd.js} +2 -2
- package/dist/{Markdown-BEUz4VZ7.js → Markdown-BC8l7O_U.js} +1 -1
- package/dist/{Month-DmUiyF1G.js → Month-DRa9o-WC.js} +1 -1
- package/dist/{Month-DJGGGrZr.js → Month-QG6OiiLU.js} +1 -1
- package/dist/{Month-DkafiRHq.js → Month-Y0kLXgV7.js} +1 -1
- package/dist/{Normal-ACcTHsXb.js → Normal-CSy3DFPH.js} +13 -11
- package/dist/Paging-BYccIXmC.js +95 -0
- package/dist/{PagingHeader-DDkmqv98.js → PagingHeader-U-oJ1TQE.js} +4 -2
- package/dist/{PagingRow-B4Nfa2Vk.js → PagingRow-BmokRXX3.js} +1 -1
- package/dist/{Racebar-LfnPLNOY.js → Racebar-BvFHNGb8.js} +24 -22
- package/dist/{Radio-DcEZI4m7.js → Radio-CjfXrTOE.js} +1 -1
- package/dist/{Register-B4x_zgyH.js → Register-BG-3_Q2E.js} +6 -6
- package/dist/{RichText-B1Iogpgr.js → RichText-C88f59ao.js} +2 -2
- package/dist/{SearchForm-DU5QLTbe.js → SearchForm-C0zqD7UP.js} +1 -1
- package/dist/{SearchForm.vue_vue_type_style_index_0_lang-BHZrYG6_.js → SearchForm.vue_vue_type_style_index_0_lang-Bv1_VqSl.js} +8 -8
- package/dist/SearchHeader-e2LOidgU.js +4 -0
- package/dist/SearchHeader.vue_vue_type_style_index_0_lang-DebuWiG6.js +60 -0
- package/dist/{Select-DrDDVJtz.js → Select-CfIvGDPS.js} +1 -1
- package/dist/{Select-CMxubJIV.js → Select-CvP_zGxM.js} +1 -1
- package/dist/{Select-C3gUeHmu.js → Select-Cz6MPDCC.js} +1 -1
- package/dist/Single-p-8OfzhQ.js +318 -0
- package/dist/{Statistic-SvjQ7uGI.js → Statistic-BIKfbZCI.js} +29 -27
- package/dist/{Statistic-CTxHNeof.js → Statistic-Dxa-CZ8G.js} +10 -8
- package/dist/{Stock-XZkBSQw1.js → Stock-B7RP-SuF.js} +1 -1
- package/dist/{Stock-C2b9p3-N.js → Stock-BhOP8J0c.js} +8 -6
- package/dist/{Stock.vue_vue_type_style_index_0_lang-DwxyyM7p.js → Stock.vue_vue_type_style_index_0_lang-Dpw8BlLu.js} +4 -2
- package/dist/{Switch-PJT-5dDt.js → Switch-BcDhe4_E.js} +1 -1
- package/dist/{Table-Dy1H2IHN.js → Table-Cy7FarYr.js} +128 -121
- package/dist/{Table-CkoZ8OjZ.js → Table-DK-TaejU.js} +6 -4
- package/dist/{Text-Bt5jL_KV.js → Text-B580p9od.js} +1 -1
- package/dist/Text-D89aQLxL.js +4 -0
- package/dist/{Text-CytgR_l_.js → Text-YNB0It4-.js} +1 -1
- package/dist/{Text.vue_vue_type_style_index_0_lang-CgxtY5ch.js → Text.vue_vue_type_style_index_0_lang-Dokzd_qM.js} +2 -2
- package/dist/{TextLink-DINdFWzs.js → TextLink-CI-AIgdm.js} +1 -1
- package/dist/{Textarea-DakZXfN6.js → Textarea-86C9lCtg.js} +1 -1
- package/dist/{Time-Bn1Av2wo.js → Time-BgArfSc6.js} +1 -1
- package/dist/{Timeline-B32cUvwI.js → Timeline-O_jWjdxT.js} +17 -15
- package/dist/{Tree-BItAXuSC.js → Tree-BfFRW-xZ.js} +6 -4
- package/dist/{Tree-BGfHm4k_.js → Tree-DayADkaC.js} +21 -19
- package/dist/{TreeNode-DmiM_a2n.js → TreeNode-BZp8w6M5.js} +1 -1
- package/dist/{Update-DSTmaeT8.js → Update-Bcdz87R4.js} +1 -1
- package/dist/{UpdateChild-BgBJJwT3.js → UpdateChild-YzPMnj_r.js} +1 -1
- package/dist/{Upload-DMqlcxCt.js → Upload-DU5VOqXj.js} +1 -1
- package/dist/{Upload-DpQu3z1T.js → Upload-Dj5nSsug.js} +2 -2
- package/dist/{Year-Cv92J5pF.js → Year-B3E0kOiA.js} +1 -1
- package/dist/{Year-DckBNPK_.js → Year-CcbzIuwy.js} +1 -1
- package/dist/assets/{liquidjs-C2HVw1Ra.js → liquidjs-BfOWWjtJ.js} +119 -113
- package/dist/{main-KNkwb0pq.js → main-DxH9UW19.js} +3580 -3372
- package/dist/main.js +155 -152
- package/dist/style.css +1 -1
- package/esm/coms/commons/Table.vue.d.ts +1 -1
- package/esm/coms/drivers/@types/CrudProps.d.ts +2 -2
- 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-_XoN6vQE.js +0 -4
- package/dist/Custom-D5HoD0nQ.js +0 -59
- 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.vue_vue_type_script_setup_true_lang-BzPCaYCg.js +0 -82
- package/dist/List-hWB41wF_.js +0 -72
- package/dist/Paging-Vfz2RDBo.js +0 -93
- package/dist/SearchFooter-CmM8qnxP.js +0 -4
- package/dist/SearchFooter.vue_vue_type_style_index_0_lang-fRS96yRX.js +0 -55
- package/dist/Single-De-YyuVk.js +0 -318
- package/dist/Text-vHouxGHU.js +0 -4
@@ -1,7 +1,7 @@
|
|
1
|
-
import { defineComponent as j, toRefs as q, ref as c, onMounted as G, watch as M, openBlock as O, createElementBlock as I, createVNode as J, unref as
|
2
|
-
import { C as Q, d as W, p as X, U as C,
|
1
|
+
import { defineComponent as j, toRefs as q, ref as c, onMounted as G, watch as M, openBlock as O, createElementBlock as I, createVNode as J, unref as r, createElementVNode as K, normalizeStyle as P, nextTick as L } from "vue";
|
2
|
+
import { C as Q, d as W, p as X, U as C, a as Y, m as Z } from "./main-DxH9UW19.js";
|
3
3
|
import "./assets/moment-h96o7c8I.js";
|
4
|
-
import { _ as
|
4
|
+
import { _ as ee } from "./SearchForm.vue_vue_type_style_index_0_lang-Bv1_VqSl.js";
|
5
5
|
const se = /* @__PURE__ */ j({
|
6
6
|
__name: "Statistic",
|
7
7
|
props: {
|
@@ -12,16 +12,18 @@ const se = /* @__PURE__ */ j({
|
|
12
12
|
table: {},
|
13
13
|
layout: {},
|
14
14
|
next: {},
|
15
|
-
set: {}
|
15
|
+
set: {},
|
16
|
+
url: {},
|
17
|
+
win: {}
|
16
18
|
},
|
17
19
|
emits: ["search"],
|
18
20
|
setup(A, { expose: F, emit: z }) {
|
19
|
-
let H = z, B = A, { route: E, module: T, schema: m, table: y, layout: l, next:
|
21
|
+
let H = z, B = A, { route: E, module: T, schema: m, table: y, layout: l, next: te, set: u, searchData: p } = q(B), s = null, g = null, x = c(), d = c(), v = c(), b = c(), { app: S } = Q.sys, V = (t) => {
|
20
22
|
D("search");
|
21
23
|
}, D = (t, e = null) => {
|
22
|
-
H(t, (
|
23
|
-
|
24
|
-
f(), e == null || e(
|
24
|
+
H(t, (i) => {
|
25
|
+
L(() => {
|
26
|
+
f(), e == null || e(i);
|
25
27
|
});
|
26
28
|
});
|
27
29
|
}, f = () => {
|
@@ -60,7 +62,7 @@ const se = /* @__PURE__ */ j({
|
|
60
62
|
series: []
|
61
63
|
};
|
62
64
|
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
|
65
|
+
let i = l.value.fields.find((a) => a.group && a.name != l.value.date), k = y.value.fields.find((a) => a.name == i.name).control.data.data;
|
64
66
|
for (let a = 0; a < k.length; a++) {
|
65
67
|
let o = k[a];
|
66
68
|
o.color || Y.error("颜色字段不能为空");
|
@@ -104,45 +106,45 @@ const se = /* @__PURE__ */ j({
|
|
104
106
|
global: !0
|
105
107
|
});
|
106
108
|
for (let h = 0; h < t.length; h++) {
|
107
|
-
let $ = t[h],
|
108
|
-
|
109
|
+
let $ = t[h], R = u.value[l.value.table].find((_) => _[i.name] == o.value && _[l.value.date] == $);
|
110
|
+
R == null ? n.data.push(null) : n.data.push(R[l.value.value]);
|
109
111
|
}
|
110
112
|
e.series.push(n), e.legend.data.push(o.text);
|
111
113
|
}
|
112
|
-
e.xAxis.data.push(...t),
|
114
|
+
e.xAxis.data.push(...t), s.setOption(e);
|
113
115
|
}, w = async () => {
|
114
|
-
var
|
115
|
-
let t = C.dom.getHeight([(
|
116
|
-
|
116
|
+
var i;
|
117
|
+
let t = C.dom.getHeight([(i = d.value) == null ? void 0 : i.$el]), e = b.value.getBoundingClientRect();
|
118
|
+
x.value = e.height - t - 10 - 1, await L();
|
117
119
|
}, N = async (t) => {
|
118
|
-
d.value
|
120
|
+
Z.triggerResize(d.value, t), await w(), s == null || s.resize();
|
119
121
|
}, U = async () => {
|
120
|
-
await w(),
|
122
|
+
await w(), s = g.init(v.value), f();
|
121
123
|
};
|
122
124
|
return G(async () => {
|
123
|
-
p.value = W.getConditionForm(m.value, E.value.query.condition),
|
125
|
+
p.value = W.getConditionForm(m.value, E.value.query.condition), g = await X.getECharts(), await U();
|
124
126
|
}), M(() => l.value, (t, e) => {
|
125
127
|
f();
|
126
|
-
}), F({
|
128
|
+
}), F({ onResize: N }), (t, e) => (O(), I("div", {
|
127
129
|
ref_key: "statisticRef",
|
128
130
|
ref: b,
|
129
131
|
class: "ha-statistic-layout"
|
130
132
|
}, [
|
131
|
-
J(
|
133
|
+
J(ee, {
|
132
134
|
ref_key: "searchRef",
|
133
135
|
ref: d,
|
134
|
-
schema:
|
135
|
-
table:
|
136
|
-
layout:
|
137
|
-
set:
|
138
|
-
"search-data":
|
139
|
-
onChange:
|
136
|
+
schema: r(m),
|
137
|
+
table: r(y),
|
138
|
+
layout: r(l),
|
139
|
+
set: r(u),
|
140
|
+
"search-data": r(p),
|
141
|
+
onChange: r(V)
|
140
142
|
}, null, 8, ["schema", "table", "layout", "set", "search-data", "onChange"]),
|
141
143
|
K("div", {
|
142
144
|
ref_key: "chartRef",
|
143
145
|
ref: v,
|
144
146
|
class: "chart",
|
145
|
-
style: P({ height:
|
147
|
+
style: P({ height: r(x) + "px" })
|
146
148
|
}, null, 4)
|
147
149
|
], 512));
|
148
150
|
}
|
@@ -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,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-Dpw8BlLu.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
1
|
import { defineComponent as F, 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 { C as O, p as K, _ as N, U } from "./main-
|
2
|
+
import { C as O, p as K, _ as N, U } from "./main-DxH9UW19.js";
|
3
3
|
import "./assets/moment-h96o7c8I.js";
|
4
4
|
const J = /* @__PURE__ */ F({
|
5
5
|
__name: "Stock",
|
@@ -11,7 +11,9 @@ const J = /* @__PURE__ */ F({
|
|
11
11
|
table: {},
|
12
12
|
layout: {},
|
13
13
|
next: {},
|
14
|
-
set: {}
|
14
|
+
set: {},
|
15
|
+
url: {},
|
16
|
+
win: {}
|
15
17
|
},
|
16
18
|
setup(k) {
|
17
19
|
let L = k, { module: j, schema: z, table: v, layout: n, next: W, set: h } = R(L), p = null, c = null, y = "#04aa4e", x = "#ff5945", w = T(), u = { history: null, week: null, month: null }, { app: S } = O.sys, M = (t) => {
|
@@ -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-Xsj_Qorw.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,16 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import { U as b, f as
|
1
|
+
import { defineComponent as He, toRefs as Ee, ref as u, onMounted as Le, nextTick as j, computed as oe, resolveComponent as k, openBlock as f, createElementBlock as U, createVNode as v, unref as e, isRef as x, normalizeClass as Ne, withCtx as h, createTextVNode as ne, toDisplayString as S, Fragment as Ke, renderList as Me, createBlock as z, createCommentVNode as $, createElementVNode as T, resolveDynamicComponent as je } from "vue";
|
2
|
+
import { U as b, f as Ae, I as Pe, t as A, j as qe, k as Ie, w as Oe, J as Fe, L as re, b as Je, S as Ge, h as Qe, a as Xe, c as Ye, m as P } from "./main-DxH9UW19.js";
|
3
3
|
import "./assets/moment-h96o7c8I.js";
|
4
|
-
import { _ as
|
5
|
-
import { _ as
|
6
|
-
import { _ as
|
4
|
+
import { _ as Ze } from "./SearchForm.vue_vue_type_style_index_0_lang-Bv1_VqSl.js";
|
5
|
+
import { _ as et } from "./DataImport.vue_vue_type_script_setup_true_lang-BZhFLOqB.js";
|
6
|
+
import { _ as tt } from "./DataExport.vue_vue_type_script_setup_true_lang-C4n6xWcP.js";
|
7
7
|
import "vue-router";
|
8
8
|
import "./assets/intro.js-Cg1adLK7.js";
|
9
|
-
import { _ as
|
10
|
-
const
|
9
|
+
import { _ as at } from "./SearchHeader.vue_vue_type_style_index_0_lang-DebuWiG6.js";
|
10
|
+
const lt = {
|
11
11
|
key: 0,
|
12
12
|
class: "required"
|
13
|
-
},
|
13
|
+
}, ot = ["onMouseenter"], nt = { class: "el-drawer__title" }, rt = { key: 0 }, st = ["href"], yt = /* @__PURE__ */ He({
|
14
14
|
__name: "Table",
|
15
15
|
props: {
|
16
16
|
searchData: {},
|
@@ -19,42 +19,44 @@ const et = {
|
|
19
19
|
table: {},
|
20
20
|
layout: {},
|
21
21
|
next: {},
|
22
|
-
set: {}
|
22
|
+
set: {},
|
23
|
+
url: {},
|
24
|
+
win: {}
|
23
25
|
},
|
24
26
|
emits: ["search", "navigate", "sort", "page-change", "size-change", "succeed", "close"],
|
25
|
-
setup(
|
26
|
-
let w =
|
27
|
+
setup(se, { expose: ue, emit: ie }) {
|
28
|
+
let w = ie, de = se, { url: pe, win: me, module: q, schema: D, table: r, layout: i, next: p, set: C, searchData: I } = Ee(de), H = u([]), V = u(), E = u(), L = u(), N = u(), O = u(), F = u(), m = u(!1), g = u(!1), J = u(), G = 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 Ge(), ce = (t) => {
|
27
29
|
R("insert", null, t);
|
28
|
-
},
|
30
|
+
}, ve = (t, a) => {
|
29
31
|
R("detail", t, a);
|
30
|
-
},
|
32
|
+
}, fe = (t, a) => {
|
31
33
|
R("update", t, a);
|
32
|
-
},
|
34
|
+
}, he = (t, a) => {
|
33
35
|
R("copy", t, a);
|
34
|
-
},
|
36
|
+
}, ye = (t, a) => {
|
35
37
|
R("delete", t, a);
|
36
|
-
},
|
38
|
+
}, X = async (t) => {
|
37
39
|
let a = t.map((o) => o[r.value.key.name]);
|
38
|
-
await
|
39
|
-
|
40
|
+
await Qe.post(p.value.delete.route, a).then((o) => {
|
41
|
+
Xe.success(o.message), K();
|
40
42
|
});
|
41
43
|
}, R = (t, a, o) => {
|
42
|
-
let s =
|
44
|
+
let s = we(t, a);
|
43
45
|
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
|
-
},
|
46
|
+
}, we = (t, a = null) => {
|
45
47
|
let o = `${p.value[t].route}`;
|
46
48
|
if (a != null) {
|
47
49
|
let s = a[r.value.key.name];
|
48
50
|
o += `?id=${s}`;
|
49
51
|
}
|
50
52
|
return o;
|
51
|
-
},
|
53
|
+
}, be = () => {
|
52
54
|
n.value.visible = !1, w("close");
|
53
|
-
},
|
54
|
-
n.value.title =
|
55
|
-
},
|
55
|
+
}, _e = (t) => {
|
56
|
+
n.value.title = Ye(t.module.type, t.module.name), n.value.env = t.module.env;
|
57
|
+
}, K = () => {
|
56
58
|
n.value.visible = !1;
|
57
|
-
let t =
|
59
|
+
let t = H.value;
|
58
60
|
w("succeed", async (a) => {
|
59
61
|
let o = a.data.set[r.value.name];
|
60
62
|
if (!o.length)
|
@@ -71,140 +73,145 @@ const et = {
|
|
71
73
|
_ != null && E.value.toggleRowSelection(_, !0);
|
72
74
|
}
|
73
75
|
});
|
74
|
-
},
|
76
|
+
}, Y = (t) => {
|
75
77
|
w("search", t);
|
76
|
-
},
|
78
|
+
}, xe = (t) => {
|
77
79
|
w("page-change", t);
|
78
|
-
},
|
80
|
+
}, Ce = (t) => {
|
79
81
|
w("size-change", t);
|
80
|
-
},
|
82
|
+
}, Re = (t, a) => {
|
81
83
|
let o = { [a.name]: { [t.prop]: t.order != "descending" ? "asc" : "desc" } };
|
82
84
|
w("sort", o);
|
83
|
-
},
|
84
|
-
},
|
85
|
-
|
86
|
-
},
|
87
|
-
|
88
|
-
},
|
85
|
+
}, ke = (t, a, o, s, c) => {
|
86
|
+
}, Se = (t) => {
|
87
|
+
G.value = t;
|
88
|
+
}, ze = (t, a) => {
|
89
|
+
H.value = t;
|
90
|
+
}, $e = (t, a, o) => {
|
89
91
|
let s = t.target.children[0], c = b.dom.getWidth(s) + 16 + 14, d = a.realWidth || a.width;
|
90
92
|
o._headerTooltip = c > d;
|
91
|
-
},
|
92
|
-
await
|
93
|
-
},
|
93
|
+
}, Ve = async (t, a, o, s) => {
|
94
|
+
await re.setColumnWidth(p.value.paging.route, r.value.name, o.property, t);
|
95
|
+
}, Z = () => {
|
94
96
|
var s, c, d;
|
95
|
-
let t = b.dom.getHeight(V.value), a = b.dom.getHeight([(s = L.value) == null ? void 0 : s.$el, (c =
|
96
|
-
|
97
|
-
},
|
97
|
+
let t = b.dom.getHeight(V.value), a = b.dom.getHeight([(s = L.value) == null ? void 0 : s.$el, (c = N.value) == null ? void 0 : c.$el, (d = O.value) == null ? void 0 : d.$el]), o = t - a;
|
98
|
+
J.value = `${o}px`;
|
99
|
+
}, ee = () => {
|
98
100
|
let t = W.value;
|
99
101
|
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
|
-
|
102
|
+
}, We = (t, a) => {
|
103
|
+
P.triggerKeyboard(F.value, t, a);
|
104
|
+
}, Be = (t) => {
|
105
|
+
P.triggerSocket(N.value, t);
|
106
|
+
}, Ue = (t) => {
|
107
|
+
P.triggerResize(L.value, t), W.value = b.dom.getWidth(V.value), ee(), j(() => {
|
108
|
+
Z();
|
105
109
|
});
|
106
110
|
};
|
107
|
-
|
108
|
-
await
|
111
|
+
Le(async () => {
|
112
|
+
await ge.openAsync("sys", "page", Q.value), W.value = b.dom.getWidth(V.value), ee(), await j(), Z();
|
109
113
|
});
|
110
|
-
let
|
111
|
-
let a = Object.keys(
|
114
|
+
let Te = oe(() => {
|
115
|
+
let a = Object.keys(i.value.orderBys)[0], o = i.value.orderBys[a];
|
112
116
|
return { prop: a, order: o ? "ascending" : "descending" };
|
113
|
-
}),
|
117
|
+
}), De = oe(() => {
|
114
118
|
let t = `/${r.value.name}/paging-row`;
|
115
|
-
return
|
119
|
+
return Ae.getComponent(t, "partial", "paging-row");
|
116
120
|
});
|
117
|
-
return
|
121
|
+
return ue({ onKeyboard: We, onSocket: Be, onResize: Ue }), (t, a) => {
|
118
122
|
const o = k("el-table-column"), s = k("el-tooltip"), c = k("el-table"), d = k("el-pagination"), _ = k("el-drawer");
|
119
|
-
return f(),
|
123
|
+
return f(), U("div", {
|
120
124
|
ref_key: "pagingRef",
|
121
125
|
ref: V,
|
122
126
|
class: "paging-table"
|
123
127
|
}, [
|
124
|
-
v(
|
128
|
+
v(Ze, {
|
125
129
|
ref_key: "searchRef",
|
126
130
|
ref: L,
|
127
|
-
schema: e(
|
131
|
+
schema: e(D),
|
128
132
|
table: e(r),
|
129
|
-
layout: e(
|
130
|
-
"search-data": e(
|
131
|
-
onSubmit: e(
|
133
|
+
layout: e(i),
|
134
|
+
"search-data": e(I),
|
135
|
+
onSubmit: e(Y)
|
132
136
|
}, null, 8, ["schema", "table", "layout", "search-data", "onSubmit"]),
|
133
|
-
v(
|
137
|
+
v(at, {
|
134
138
|
ref_key: "headerRef",
|
135
|
-
ref:
|
136
|
-
|
139
|
+
ref: N,
|
140
|
+
url: e(pe),
|
141
|
+
win: e(me),
|
142
|
+
module: e(q),
|
143
|
+
schema: e(D),
|
137
144
|
table: e(r),
|
138
|
-
layout: e(
|
145
|
+
layout: e(i),
|
139
146
|
set: e(C),
|
140
147
|
next: e(p),
|
141
|
-
selection: e(
|
142
|
-
"search-data": e(
|
143
|
-
onAdd: e(
|
144
|
-
onRemove: e(
|
148
|
+
selection: e(H),
|
149
|
+
"search-data": e(I),
|
150
|
+
onAdd: e(ce),
|
151
|
+
onRemove: e(X),
|
145
152
|
onShowImport: a[0] || (a[0] = (l) => x(m) ? m.value = !0 : m = !0),
|
146
153
|
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"]),
|
154
|
+
onSearch: e(Y)
|
155
|
+
}, null, 8, ["url", "win", "module", "schema", "table", "layout", "set", "next", "selection", "search-data", "onAdd", "onRemove", "onSearch"]),
|
149
156
|
v(c, {
|
150
157
|
ref_key: "tableRef",
|
151
158
|
ref: E,
|
152
|
-
class:
|
159
|
+
class: Ne([{ "hide-nav": e(Pe).hideNav }, "table-default table-paging"]),
|
153
160
|
size: "small",
|
154
161
|
border: "",
|
155
162
|
"highlight-current-row": "",
|
156
|
-
"max-height": e(
|
163
|
+
"max-height": e(J),
|
157
164
|
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(
|
165
|
+
"default-sort": e(Te),
|
166
|
+
onSelectionChange: a[2] || (a[2] = (l) => e(ze)(l, e(r))),
|
167
|
+
onSortChange: a[3] || (a[3] = (l) => e(Re)(l, e(r))),
|
168
|
+
onHeaderDragend: e(Ve)
|
162
169
|
}, {
|
163
170
|
empty: h(() => [
|
164
|
-
|
171
|
+
ne(S(e(A)("common.no_data")), 1)
|
165
172
|
]),
|
166
173
|
default: h(() => [
|
167
174
|
v(o, {
|
168
175
|
type: "selection",
|
169
176
|
width: "30"
|
170
177
|
}),
|
171
|
-
(f(!0),
|
172
|
-
var
|
178
|
+
(f(!0), U(Ke, null, Me(e(r).show, (l, ut) => {
|
179
|
+
var te, ae, le;
|
173
180
|
return f(), z(o, {
|
174
181
|
sortable: e(r) ? "custom" : !1,
|
175
182
|
prop: l.name,
|
176
183
|
"sort-orders": ["descending", "ascending"],
|
177
|
-
fixed: e(
|
178
|
-
"min-width": ((
|
184
|
+
fixed: e(i).fixed.indexOf(l.name) > -1,
|
185
|
+
"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
186
|
label: `${l.label}${l.control.prefix || l.suffix ? "(" + (l.control.prefix || l.suffix) + ")" : ""}`,
|
180
187
|
key: `${e(r).name}.${l.name}`
|
181
188
|
}, {
|
182
189
|
header: h((B) => [
|
183
|
-
l.control.required && l.control.editable ? (f(),
|
190
|
+
l.control.required && l.control.editable ? (f(), U("i", lt)) : $("", !0),
|
184
191
|
v(s, {
|
185
192
|
placement: "top",
|
186
193
|
content: l.label,
|
187
194
|
disabled: !l._headerTooltip
|
188
195
|
}, {
|
189
196
|
default: h(() => [
|
190
|
-
|
191
|
-
onMouseenter: (M) => e(
|
197
|
+
T("span", {
|
198
|
+
onMouseenter: (M) => e($e)(M, B.column, l)
|
192
199
|
}, [
|
193
|
-
|
194
|
-
], 40,
|
200
|
+
T("span", null, S(e(qe)(e(r).name, l.name)), 1)
|
201
|
+
], 40, ot)
|
195
202
|
]),
|
196
203
|
_: 2
|
197
204
|
}, 1032, ["content", "disabled"])
|
198
205
|
]),
|
199
206
|
default: h((B) => [
|
200
|
-
v(
|
201
|
-
schema: e(
|
207
|
+
v(Ie, {
|
208
|
+
schema: e(D),
|
202
209
|
table: e(r),
|
203
210
|
field: l,
|
204
211
|
set: e(C),
|
205
212
|
row: B.row,
|
206
|
-
config: e(
|
207
|
-
onChange: (M) => e(
|
213
|
+
config: e(Oe).getConfig(l, e(q).type, e(i).type),
|
214
|
+
onChange: (M) => e(ke)(M, e(r), l, e(C), B.row)
|
208
215
|
}, null, 8, ["schema", "table", "field", "set", "row", "config", "onChange"])
|
209
216
|
]),
|
210
217
|
_: 2
|
@@ -214,20 +221,20 @@ const et = {
|
|
214
221
|
label: e(A)("common.operation"),
|
215
222
|
fixed: "right",
|
216
223
|
"show-overflow-tooltip": "",
|
217
|
-
"min-width": e(
|
224
|
+
"min-width": e(G)
|
218
225
|
}, {
|
219
226
|
default: h((l) => [
|
220
|
-
(f(), z(
|
227
|
+
(f(), z(je(e(De)), {
|
221
228
|
table: e(r),
|
222
229
|
next: e(p),
|
223
230
|
set: e(C),
|
224
231
|
row: l.row,
|
225
|
-
onPreview: e(
|
226
|
-
onEdit: e(
|
227
|
-
onCopy: e(
|
228
|
-
onBeforeRemove: e(
|
229
|
-
onRemove: e(
|
230
|
-
onChangeWidth: e(
|
232
|
+
onPreview: e(ve),
|
233
|
+
onEdit: e(fe),
|
234
|
+
onCopy: e(he),
|
235
|
+
onBeforeRemove: e(ye),
|
236
|
+
onRemove: e(X),
|
237
|
+
onChangeWidth: e(Se)
|
231
238
|
}, null, 40, ["table", "next", "set", "row", "onPreview", "onEdit", "onCopy", "onBeforeRemove", "onRemove", "onChangeWidth"]))
|
232
239
|
]),
|
233
240
|
_: 1
|
@@ -235,39 +242,39 @@ const et = {
|
|
235
242
|
]),
|
236
243
|
_: 1
|
237
244
|
}, 8, ["class", "max-height", "data", "default-sort", "onHeaderDragend"]),
|
238
|
-
v(e(
|
245
|
+
v(e(Fe), {
|
239
246
|
ref_key: "footerRef",
|
240
|
-
ref:
|
247
|
+
ref: O,
|
241
248
|
class: "list-toolbar"
|
242
249
|
}, {
|
243
250
|
default: h(() => [
|
244
251
|
v(d, {
|
245
252
|
background: "",
|
246
253
|
layout: e(y).layout,
|
247
|
-
"current-page": e(
|
254
|
+
"current-page": e(i).page,
|
248
255
|
"pager-count": e(y).count,
|
249
|
-
total: e(
|
256
|
+
total: e(i).count,
|
250
257
|
"page-sizes": e(y).sizes,
|
251
|
-
onCurrentChange: e(
|
252
|
-
onSizeChange: e(
|
253
|
-
"page-size": e(
|
254
|
-
"onUpdate:pageSize": a[4] || (a[4] = (l) => e(
|
258
|
+
onCurrentChange: e(xe),
|
259
|
+
onSizeChange: e(Ce),
|
260
|
+
"page-size": e(i).size,
|
261
|
+
"onUpdate:pageSize": a[4] || (a[4] = (l) => e(i).size = l)
|
255
262
|
}, null, 8, ["layout", "current-page", "pager-count", "total", "page-sizes", "onCurrentChange", "onSizeChange", "page-size"])
|
256
263
|
]),
|
257
264
|
_: 1
|
258
265
|
}, 512),
|
259
|
-
e(p).import ? (f(), z(
|
266
|
+
e(p).import ? (f(), z(et, {
|
260
267
|
key: 0,
|
261
268
|
next: e(p),
|
262
269
|
onClose: a[5] || (a[5] = (l) => x(m) ? m.value = !1 : m = !1),
|
263
|
-
onSucceed: e(
|
270
|
+
onSucceed: e(K),
|
264
271
|
modelValue: e(m),
|
265
272
|
"onUpdate:modelValue": a[6] || (a[6] = (l) => x(m) ? m.value = l : m = l)
|
266
273
|
}, null, 8, ["next", "onSucceed", "modelValue"])) : $("", !0),
|
267
|
-
e(p).export ? (f(), z(
|
274
|
+
e(p).export ? (f(), z(tt, {
|
268
275
|
key: 1,
|
269
276
|
route: e(p).export.route,
|
270
|
-
"page-count": e(b).math.pageCount(e(
|
277
|
+
"page-count": e(b).math.pageCount(e(i).count, e(i).size),
|
271
278
|
onClose: a[7] || (a[7] = (l) => x(g) ? g.value = !1 : g = !1),
|
272
279
|
modelValue: e(g),
|
273
280
|
"onUpdate:modelValue": a[8] || (a[8] = (l) => x(g) ? g.value = l : g = l)
|
@@ -276,28 +283,28 @@ const et = {
|
|
276
283
|
key: 2,
|
277
284
|
"destroy-on-close": "",
|
278
285
|
"append-to-body": e(n).appendToBody,
|
279
|
-
size: e(
|
286
|
+
size: e(re).getDrawerWidth(e(W)),
|
280
287
|
modelValue: e(n).visible,
|
281
288
|
"onUpdate:modelValue": a[9] || (a[9] = (l) => e(n).visible = l)
|
282
289
|
}, {
|
283
290
|
header: h(() => [
|
284
|
-
|
285
|
-
|
286
|
-
e(n).env ? (f(),
|
287
|
-
|
291
|
+
T("div", nt, [
|
292
|
+
ne(S(e(n).title) + " ", 1),
|
293
|
+
e(n).env ? (f(), U("span", rt, "[" + S(e(n).env) + "]", 1)) : $("", !0),
|
294
|
+
T("a", {
|
288
295
|
class: "drawer-copy",
|
289
296
|
href: e(b).url.getToUrl(e(n).url)
|
290
|
-
}, S(e(A)("common.link")), 9,
|
297
|
+
}, S(e(A)("common.link")), 9, st)
|
291
298
|
])
|
292
299
|
]),
|
293
300
|
default: h(() => [
|
294
|
-
v(e(
|
301
|
+
v(e(Je), {
|
295
302
|
ref_key: "pageRef",
|
296
|
-
ref:
|
303
|
+
ref: F,
|
297
304
|
url: e(n).url,
|
298
|
-
onLoaded: e(
|
299
|
-
onSucceed: e(
|
300
|
-
onClose: e(
|
305
|
+
onLoaded: e(_e),
|
306
|
+
onSucceed: e(K),
|
307
|
+
onClose: e(be)
|
301
308
|
}, null, 8, ["url", "onLoaded", "onSucceed", "onClose"])
|
302
309
|
]),
|
303
310
|
_: 1
|
@@ -307,5 +314,5 @@ const et = {
|
|
307
314
|
}
|
308
315
|
});
|
309
316
|
export {
|
310
|
-
|
317
|
+
yt as default
|
311
318
|
};
|