halo-pc 1.0.27 → 1.0.28
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{Article-CTqryR4L.js → Article-CTzPZjf8.js} +75 -70
- package/dist/{ArticleFooter-BumGH5nC.js → ArticleFooter-jyfzfZHH.js} +23 -17
- package/dist/{Autocomplete-BNx0bErM.js → Autocomplete-D8ytFwqa.js} +1 -1
- package/dist/Autocomplete-DoUE3T0L.js +53 -0
- package/dist/Autocomplete-FGRT-2ru.js +54 -0
- package/dist/{CSharp-Dt6H75E9.js → CSharp-qh_kEfGr.js} +1 -1
- package/dist/{Calender-DhKZyJri.js → Calender-DOuq9uAK.js} +1 -1
- package/dist/Callback-DuaBaO1q.js +26 -0
- package/dist/Cascader-DgKBpjUK.js +47 -0
- package/dist/Cascader-s8VT55_K.js +87 -0
- package/dist/{Checkbox-C-iEGB0k.js → Checkbox-D9NUw4jZ.js} +1 -1
- package/dist/Checkbox-REcdbTXR.js +76 -0
- package/dist/Code-CBVRms_j.js +4 -0
- package/dist/Code-DZ-bK9UT.js +60 -0
- package/dist/Code-DfnLveft.js +42 -0
- package/dist/{Code-JtSSnUWC.js → Code-loaJtKGd.js} +1 -1
- package/dist/Code.vue_vue_type_style_index_0_lang-BVLhtr1Y.js +65 -0
- package/dist/Column-B96LbQFW.js +75 -0
- package/dist/Comment-bPWbEkgq.js +104 -0
- package/dist/Compare-D4O0qmYv.js +44 -0
- package/dist/{Compare-DZVrBYEh.js → Compare-dimRoHFX.js} +25 -19
- package/dist/Copy-CKLxfWd4.js +49 -0
- package/dist/Custom-Bwyy4_tA.js +57 -0
- package/dist/{DataExport-DSz5371s.js → DataExport-Bp50K0_6.js} +1 -1
- package/dist/{DataExport.vue_vue_type_script_setup_true_lang-DL9q81Ti.js → DataExport.vue_vue_type_script_setup_true_lang-8nDL-PI_.js} +41 -36
- package/dist/{DataImport-CX7G70a7.js → DataImport-BWI4eCxA.js} +1 -1
- package/dist/DataImport.vue_vue_type_script_setup_true_lang-DCS1SfNf.js +176 -0
- package/dist/Date-Cf64NT4R.js +43 -0
- package/dist/{Date-ytWe2gz8.js → Date-FBemqmex.js} +1 -1
- package/dist/DateRange-D5kvmDIo.js +63 -0
- package/dist/DateTime-CTGuyJ4w.js +44 -0
- package/dist/{DateTime-p6YgmtGd.js → DateTime-Cvnnthwx.js} +1 -1
- package/dist/{DateTimeRange-DGobnXqs.js → DateTimeRange-Gb33uiRV.js} +17 -11
- package/dist/Daterange-CfAdeV7J.js +63 -0
- package/dist/{Decimal-BvyzJq1c.js → Decimal-B-fyPiuP.js} +1 -1
- package/dist/Delete-DhbWFnzt.js +62 -0
- package/dist/{Detail-DZJ0aUFr.js → Detail-DV-JRRLT.js} +22 -17
- package/dist/Dictionary-b_mbt-WU.js +59 -0
- package/dist/Email-C2Yl7bMF.js +54 -0
- package/dist/{File-BEBElTSS.js → File-D57qYYt1.js} +32 -27
- package/dist/{Image-DDK05SW7.js → Image-BKNUY356.js} +1 -1
- package/dist/{Index-CuEyzMd0.js → Index-BPfkpoVf.js} +25 -20
- package/dist/Index-BUCyMvJX.js +4 -0
- package/dist/Index-BtxNIZsx.js +4 -0
- package/dist/Index-C5WYmq9P.js +4 -0
- package/dist/{Index-DPwdcUO4.js → Index-CSzgmzRG.js} +1 -1
- package/dist/Index-ChWD2gJt.js +4 -0
- package/dist/{Index-BiF8qEWf.js → Index-P3uHTgX-.js} +1 -1
- package/dist/Index-PB-VnCO7.js +178 -0
- package/dist/{Index.vue_vue_type_script_setup_true_lang-Bp091zxs.js → Index.vue_vue_type_script_setup_true_lang-BkjFEuPH.js} +20 -15
- package/dist/{Index.vue_vue_type_script_setup_true_lang-hjy21YuL.js → Index.vue_vue_type_script_setup_true_lang-CJV5JBz9.js} +17 -12
- package/dist/{Install-CxuoWpHC.js → Install-o0VJz9Rl.js} +27 -22
- package/dist/Int-BNwPsWfI.js +44 -0
- package/dist/Int-DN3vf18e.js +46 -0
- package/dist/List-DRAtVlgE.js +79 -0
- package/dist/Maintaince-CdVk7qiu.js +20 -0
- package/dist/{Markdown-x1hASyA-.js → Markdown-CFwOeXFg.js} +1 -1
- package/dist/Month-CrvLoEQy.js +43 -0
- package/dist/Month-CyB2owvQ.js +44 -0
- package/dist/{Month-Bb0tgF-k.js → Month-DsKmd425.js} +1 -1
- package/dist/{Normal-CYmy5sN7.js → Normal-B_SPQW9Z.js} +70 -66
- package/dist/Paging-CzCgExDM.js +99 -0
- package/dist/{PagingHeader-DWbFl1do.js → PagingHeader-Bfnnsv6m.js} +30 -24
- package/dist/{PagingRow-CR2N1vgm.js → PagingRow-BXaakA5y.js} +26 -20
- package/dist/QueryApi-Cah37Kwx.js +20 -0
- package/dist/{Racebar-BsgDK6Zf.js → Racebar-6FTe1C4G.js} +42 -37
- package/dist/{Radio-B3Af-uZE.js → Radio-rym8cXJN.js} +1 -1
- package/dist/{Register-Cwr3iIZm.js → Register-v__-wpY2.js} +44 -40
- package/dist/RichText-BDP5KDin.js +47 -0
- package/dist/{SearchFooter-DiILcc_U.js → SearchFooter-0mHMD0Xf.js} +1 -1
- package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-BsIg4tbY.js → SearchFooter.vue_vue_type_style_index_0_lang-CXTYGXIa.js} +1 -1
- package/dist/{SearchForm-BOw_kHs2.js → SearchForm-jSIiiv2r.js} +1 -1
- package/dist/{SearchForm.vue_vue_type_style_index_0_lang-GMYFgf1H.js → SearchForm.vue_vue_type_style_index_0_lang-CFxxTJiB.js} +40 -36
- package/dist/Select-Cpj86Kaw.js +86 -0
- package/dist/Select-DKjXN6Ag.js +117 -0
- package/dist/{Select-BdYG1KQE.js → Select-R0EsEK0_.js} +1 -1
- package/dist/{Single-DqCIZBIB.js → Single-fIhSt1dN.js} +103 -99
- package/dist/{Statistic-B9ZcUUk1.js → Statistic-DM3Fr6sO.js} +37 -33
- package/dist/{Stock-BnBNtuo7.js → Stock-BemUvyqK.js} +1 -1
- package/dist/{Stock-BiSr7zAF.js → Stock-DUrxld5G.js} +1 -1
- package/dist/{Stock.vue_vue_type_style_index_0_lang-CZPeF39q.js → Stock.vue_vue_type_style_index_0_lang-Cv9Jvd6d.js} +31 -26
- package/dist/{Switch-BE4dQcja.js → Switch-QdLS7c3q.js} +1 -1
- package/dist/{Table-CaH_zu8W.js → Table-BcVHufy3.js} +77 -74
- package/dist/{Table-e0uLPRLG.js → Table-C4dGV7IQ.js} +78 -73
- package/dist/{Text-BDAob4mp.js → Text-BJNnrW9U.js} +21 -15
- package/dist/{Text-BAw88r5O.js → Text-BNAKwCCe.js} +19 -13
- package/dist/Text-D3DqixJp.js +4 -0
- package/dist/Text.vue_vue_type_style_index_0_lang-B253xD5Z.js +59 -0
- package/dist/TextLink-D-9pICMh.js +65 -0
- package/dist/{Textarea-CU5PjIoa.js → Textarea-Cr5zt_LK.js} +1 -1
- package/dist/Time-DQJPtNWo.js +43 -0
- package/dist/Timeline-Dy37Cou2.js +59 -0
- package/dist/Tree-3zBuSLBv.js +122 -0
- package/dist/{Tree-D-v632h1.js → Tree-4v2brZjr.js} +105 -101
- package/dist/TreeNode-CvS8mLCJ.js +42 -0
- package/dist/{Update-DRAFce7_.js → Update-Cp50LcVx.js} +20 -15
- package/dist/{UpdateChild-DMC0FG4Z.js → UpdateChild-CFi_DjLv.js} +23 -17
- package/dist/Upload-Bqp-5cFa.js +72 -0
- package/dist/Upload-D-hvecbh.js +150 -0
- package/dist/UploadApi-CC5hZcM_.js +20 -0
- package/dist/Year-CYSncKVk.js +47 -0
- package/dist/{Year-CpcMBvQ7.js → Year-q0tWWwkv.js} +1 -1
- package/dist/assets/clone-BZn0cTAu.js +134 -0
- package/dist/assets/file-saver-CwlpTZSc.js +74 -0
- package/dist/assets/liquidjs-C-LVcoaY.js +2893 -0
- package/dist/assets/moment-h96o7c8I.js +2578 -0
- package/dist/assets/sprintf-js-BPTdvBYM.js +148 -0
- package/dist/assets/underscore-B0BCaBxV.js +1070 -0
- package/dist/assets/underscore.string-DVXD2SZo.js +425 -0
- package/dist/assets/util-deprecate-Dzun97re.js +28 -0
- package/dist/main-D-QTCahZ.js +9107 -0
- package/dist/main.js +140 -140
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/Autocomplete-C9RS9-qw.js +0 -48
- package/dist/Autocomplete-DIucpEpj.js +0 -49
- package/dist/Callback-D6G_933H.js +0 -20
- package/dist/Cascader-C6t8Q18c.js +0 -41
- package/dist/Cascader-F_XWwXKY.js +0 -81
- package/dist/Checkbox-ipHs0O-8.js +0 -70
- package/dist/Code-DKtqow6y.js +0 -36
- package/dist/Code-LeguA9RL.js +0 -54
- package/dist/Code-Q_6THgGl.js +0 -4
- package/dist/Code.vue_vue_type_style_index_0_lang-DmeXbg91.js +0 -59
- package/dist/Column-BeQwafyN.js +0 -70
- package/dist/Comment-DIcCHP9F.js +0 -98
- package/dist/Compare-Dzqm7kPE.js +0 -38
- package/dist/Copy-iLieXx22.js +0 -43
- package/dist/Custom-BGtEDHlD.js +0 -51
- package/dist/DataImport.vue_vue_type_script_setup_true_lang-BWS65Vp1.js +0 -172
- package/dist/Date-CNOCOcNz.js +0 -37
- package/dist/DateRange-CaIiObxN.js +0 -57
- package/dist/DateTime-CH6J1GoP.js +0 -38
- package/dist/Daterange-BUSKAGlK.js +0 -57
- package/dist/Delete-BeFC0gjD.js +0 -57
- package/dist/Dictionary-CsBiv-CI.js +0 -55
- package/dist/Email-Dwa6x3jW.js +0 -48
- package/dist/Index-Bpe7pY2Z.js +0 -4
- package/dist/Index-CUYQxzNd.js +0 -174
- package/dist/Index-DMnL8F7Y.js +0 -4
- package/dist/Index-DNG25ox2.js +0 -4
- package/dist/Index-DqUNI6MV.js +0 -4
- package/dist/Int-BFv18KXi.js +0 -38
- package/dist/Int-C0ijmdYS.js +0 -41
- package/dist/List-CfQzWq_5.js +0 -74
- package/dist/Maintaince-BzDEwQcU.js +0 -14
- package/dist/Month-Bp_Pfi_b.js +0 -37
- package/dist/Month-CKkjwzza.js +0 -38
- package/dist/Paging-DpoBp7x_.js +0 -95
- package/dist/QueryApi-VwISnk96.js +0 -13
- package/dist/RichText-CNahMrfb.js +0 -41
- package/dist/Select-BeNZqAP1.js +0 -112
- package/dist/Select-CqOE6uI8.js +0 -80
- package/dist/Text-5803XWI6.js +0 -4
- package/dist/Text.vue_vue_type_style_index_0_lang-D1JSHUmS.js +0 -53
- package/dist/TextLink-TYXcDAlo.js +0 -59
- package/dist/Time-Dd-Trib4.js +0 -37
- package/dist/Timeline-D6LCIkQp.js +0 -53
- package/dist/Tree-BKmFZrK3.js +0 -118
- package/dist/TreeNode-L_A5ZKy0.js +0 -37
- package/dist/Upload-DJRh4a7g.js +0 -68
- package/dist/Upload-Ozg_nOpI.js +0 -147
- package/dist/UploadApi-DVx69g-F.js +0 -13
- package/dist/Year-D7XGe2So.js +0 -41
- package/dist/assets/halo-fe-B-NiIGas.js +0 -12088
- package/dist/main-DB_sVyZe.js +0 -3620
@@ -0,0 +1,43 @@
|
|
1
|
+
import { defineComponent as c, toRefs as f, computed as _, resolveComponent as h, openBlock as V, createBlock as b, unref as e, isRef as k } from "vue";
|
2
|
+
import "./assets/underscore-B0BCaBxV.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 { k as Y } from "./main-D-QTCahZ.js";
|
8
|
+
import "./assets/liquidjs-C-LVcoaY.js";
|
9
|
+
const U = /* @__PURE__ */ c({
|
10
|
+
__name: "Month",
|
11
|
+
props: {
|
12
|
+
schema: {},
|
13
|
+
table: {},
|
14
|
+
field: {},
|
15
|
+
searchData: {},
|
16
|
+
modelValue: {}
|
17
|
+
},
|
18
|
+
emits: ["submit", "change", "update:modelValue"],
|
19
|
+
setup(p, { emit: d }) {
|
20
|
+
let l = d, n = p, { table: i, field: a, searchData: g, modelValue: u } = f(n), o = _({
|
21
|
+
get() {
|
22
|
+
return u.value;
|
23
|
+
},
|
24
|
+
set(t) {
|
25
|
+
l("update:modelValue", t), l("change", t);
|
26
|
+
}
|
27
|
+
});
|
28
|
+
return (t, m) => {
|
29
|
+
const s = h("el-date-picker");
|
30
|
+
return V(), b(s, {
|
31
|
+
type: "month",
|
32
|
+
placeholder: e(Y)(e(i).name, e(a).name),
|
33
|
+
"value-format": "YYYY-MM",
|
34
|
+
disabled: e(a).control.readonly,
|
35
|
+
modelValue: e(o),
|
36
|
+
"onUpdate:modelValue": m[0] || (m[0] = (r) => k(o) ? o.value = r : o = r)
|
37
|
+
}, null, 8, ["placeholder", "disabled", "modelValue"]);
|
38
|
+
};
|
39
|
+
}
|
40
|
+
});
|
41
|
+
export {
|
42
|
+
U as default
|
43
|
+
};
|
@@ -0,0 +1,44 @@
|
|
1
|
+
import { defineComponent as c, toRefs as f, computed as _, resolveComponent as h, openBlock as V, createBlock as b, unref as e, isRef as k } from "vue";
|
2
|
+
import "./assets/underscore-B0BCaBxV.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 { k as Y } from "./main-D-QTCahZ.js";
|
8
|
+
import "./assets/liquidjs-C-LVcoaY.js";
|
9
|
+
const U = /* @__PURE__ */ c({
|
10
|
+
__name: "Month",
|
11
|
+
props: {
|
12
|
+
schema: {},
|
13
|
+
table: {},
|
14
|
+
field: {},
|
15
|
+
set: {},
|
16
|
+
row: {},
|
17
|
+
modelValue: {}
|
18
|
+
},
|
19
|
+
emits: ["submit", "change", "update:modelValue"],
|
20
|
+
setup(p, { emit: d }) {
|
21
|
+
let l = d, n = p, { table: i, field: a, set: g, modelValue: u } = f(n), o = _({
|
22
|
+
get() {
|
23
|
+
return u.value;
|
24
|
+
},
|
25
|
+
set(t) {
|
26
|
+
l("update:modelValue", t), l("change", t);
|
27
|
+
}
|
28
|
+
});
|
29
|
+
return (t, m) => {
|
30
|
+
const s = h("el-date-picker");
|
31
|
+
return V(), b(s, {
|
32
|
+
type: "month",
|
33
|
+
placeholder: e(Y)(e(i).name, e(a).name),
|
34
|
+
"value-format": "YYYY-MM",
|
35
|
+
disabled: e(a).control.readonly,
|
36
|
+
modelValue: e(o),
|
37
|
+
"onUpdate:modelValue": m[0] || (m[0] = (r) => k(o) ? o.value = r : o = r)
|
38
|
+
}, null, 8, ["placeholder", "disabled", "modelValue"]);
|
39
|
+
};
|
40
|
+
}
|
41
|
+
});
|
42
|
+
export {
|
43
|
+
U as default
|
44
|
+
};
|
@@ -10,7 +10,7 @@ const _ = /* @__PURE__ */ u({
|
|
10
10
|
modelValue: {}
|
11
11
|
},
|
12
12
|
setup(a) {
|
13
|
-
let s = i(() => import("./Text-
|
13
|
+
let s = i(() => import("./Text-D3DqixJp.js")), m = a, { schema: n, table: r, field: d, set: f, row: p, modelValue: l } = c(m);
|
14
14
|
return (w, t) => (V(), b(e(s), {
|
15
15
|
schema: e(n),
|
16
16
|
table: e(r),
|
@@ -1,6 +1,10 @@
|
|
1
|
-
import { defineComponent as de, toRefs as he, ref as S, onMounted as fe, computed as E, watch as
|
2
|
-
import {
|
3
|
-
import
|
1
|
+
import { defineComponent as de, toRefs as he, ref as S, onMounted as fe, computed as E, watch as M, resolveComponent as _, openBlock as n, createElementBlock as d, normalizeClass as J, unref as e, createBlock as g, withCtx as m, Fragment as w, renderList as R, createVNode as C, createCommentVNode as V, toDisplayString as q, createElementVNode as B, normalizeStyle as ge, createTextVNode as _e, resolveDynamicComponent as be } from "vue";
|
2
|
+
import { x as K, s as N, d as ye, P as Ce, g as Q, t as ke, f as xe, N as Se, A as we } from "./main-D-QTCahZ.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";
|
4
8
|
import "vue-router";
|
5
9
|
import "./assets/intro.js-DxWjEdp_.js";
|
6
10
|
const Re = {
|
@@ -13,7 +17,7 @@ const Re = {
|
|
13
17
|
}, ze = {
|
14
18
|
key: 0,
|
15
19
|
class: "normal-selection"
|
16
|
-
}, Ee = { class: "normal-content" }, Ve = /* @__PURE__ */
|
20
|
+
}, Ee = { class: "normal-content" }, Ve = /* @__PURE__ */ B("i", { class: "fa fa-question-circle icon-question" }, null, -1), Oe = /* @__PURE__ */ de({
|
17
21
|
__name: "Normal",
|
18
22
|
props: {
|
19
23
|
route: {},
|
@@ -27,57 +31,57 @@ const Re = {
|
|
27
31
|
},
|
28
32
|
emits: ["change", "submit"],
|
29
33
|
setup(U, { expose: X, emit: Y }) {
|
30
|
-
let
|
31
|
-
|
34
|
+
let I = Y, Z = U, { module: L, set: c, schema: A, table: t, layout: i, validateErrors: O } = he(Z), p = S({ page: 1, count: c.value[t.value.name].length }), k = S([]), b = S(), H = S([]), T = S(), ee = (l) => {
|
35
|
+
H.value.push(l);
|
32
36
|
}, le = () => {
|
33
37
|
p.value.page = 1;
|
34
38
|
}, te = () => {
|
35
|
-
b.value =
|
39
|
+
b.value = P(t.value);
|
36
40
|
let l = N.getDefaultRow(t.value);
|
37
41
|
c.value[t.value.name].push(l);
|
38
42
|
}, ae = () => {
|
39
43
|
let l = c.value[t.value.name];
|
40
44
|
k.value.forEach((a) => {
|
41
45
|
l.splice(l.indexOf(a), 1);
|
42
|
-
}), k.value = [],
|
46
|
+
}), k.value = [], H.value.forEach((a) => {
|
43
47
|
a.model && (a.model = !1);
|
44
48
|
});
|
45
|
-
},
|
46
|
-
N.updateTooltip(o,
|
49
|
+
}, j = (l) => c.value[t.value.name].indexOf(l), ne = (l, a, o, r, v) => {
|
50
|
+
N.updateTooltip(o, r, v), I("change", l, a, o, r, v);
|
47
51
|
}, oe = (l, a) => {
|
48
|
-
l ? k.value.push(a) :
|
49
|
-
},
|
50
|
-
|
51
|
-
},
|
52
|
+
l ? k.value.push(a) : we.remove(k.value, a);
|
53
|
+
}, re = (l) => {
|
54
|
+
I("submit", l);
|
55
|
+
}, ue = (l, a = null) => {
|
52
56
|
p.value.page = l;
|
53
|
-
},
|
57
|
+
}, P = (l) => {
|
54
58
|
if (l.main || l.search.length == 0)
|
55
59
|
return null;
|
56
60
|
let a = {};
|
57
|
-
l.search.forEach((
|
58
|
-
a[
|
61
|
+
l.search.forEach((r) => {
|
62
|
+
a[r.name] || (a[r.name] = null);
|
59
63
|
});
|
60
64
|
let o = {};
|
61
65
|
return o[l.name] = a, o;
|
62
|
-
},
|
63
|
-
b.value =
|
66
|
+
}, W = (l) => {
|
67
|
+
b.value = P(l);
|
64
68
|
}, se = () => {
|
65
|
-
|
69
|
+
D();
|
66
70
|
}, me = (l) => {
|
67
|
-
|
68
|
-
},
|
71
|
+
W(l.schema[0]);
|
72
|
+
}, D = () => {
|
69
73
|
let l = T.value.clientWidth;
|
70
74
|
i.value.column = Math.ceil(l / 500);
|
71
75
|
}, ce = () => {
|
72
|
-
|
76
|
+
D(), W(t.value);
|
73
77
|
};
|
74
78
|
fe(() => {
|
75
79
|
ce();
|
76
80
|
});
|
77
|
-
let ie = E(() =>
|
81
|
+
let ie = E(() => K.splitRows(t.value.search, i.value.column)), G = E(() => {
|
78
82
|
if (!b.value)
|
79
83
|
return c.value[t.value.name];
|
80
|
-
let l = b.value[t.value.name], a = (p.value.page - 1) * i.value.pageSize, o = p.value.page * i.value.pageSize - 1,
|
84
|
+
let l = b.value[t.value.name], a = (p.value.page - 1) * i.value.pageSize, o = p.value.page * i.value.pageSize - 1, r = c.value[t.value.name].filter(($) => {
|
81
85
|
let f = !0;
|
82
86
|
for (let x = 0; x < t.value.search.length; x++) {
|
83
87
|
let y = t.value.search[x], s = $[y.name], h = l[y.name];
|
@@ -95,25 +99,25 @@ const Re = {
|
|
95
99
|
}
|
96
100
|
return f;
|
97
101
|
});
|
98
|
-
return p.value.count =
|
102
|
+
return p.value.count = r.length, r.filter(($, f) => f >= a && f <= o);
|
99
103
|
}), pe = E(() => N.getLines(t.value.show, i.value.column, (a) => a, (a) => a.colspan)), ve = E(() => {
|
100
|
-
let l = t.value.main ? `/${t.value.name}` : `/${
|
101
|
-
return
|
104
|
+
let l = t.value.main ? `/${t.value.name}` : `/${A.value[0].name}/${t.value.name}`;
|
105
|
+
return ye.getComponent(`${l}/update-child`, "partial", "update-child");
|
102
106
|
});
|
103
|
-
return
|
104
|
-
let o = l.length,
|
105
|
-
(o >
|
106
|
-
}, { deep: !0 }),
|
107
|
-
let o = l.find((
|
107
|
+
return M(() => c.value[t.value.name], (l, a) => {
|
108
|
+
let o = l.length, r = a.length, v = Ce.pageCount(c.value[t.value.name].length, i.value.pageSize);
|
109
|
+
(o > r || o < r && p.value.page > v) && (p.value.page = v);
|
110
|
+
}, { deep: !0 }), M(O, (l, a) => {
|
111
|
+
let o = l.find((r) => r.table == t.value.name);
|
108
112
|
o != null && (p.value.page = Math.ceil((o.index + 1) / i.value.pageSize));
|
109
|
-
}),
|
110
|
-
|
113
|
+
}), M(t, (l, a) => {
|
114
|
+
D();
|
111
115
|
}), X({ resize: se, update: me }), (l, a) => {
|
112
|
-
const o = _("el-form-item"),
|
116
|
+
const o = _("el-form-item"), r = _("el-col"), v = _("el-row"), $ = _("el-form"), f = _("el-checkbox"), x = _("el-popover"), y = _("el-pagination");
|
113
117
|
return n(), d("div", {
|
114
118
|
ref_key: "normalRef",
|
115
119
|
ref: T,
|
116
|
-
class:
|
120
|
+
class: J(["ha-normal-layout", { draggable: e(i).sort }])
|
117
121
|
}, [
|
118
122
|
e(b) ? (n(), g($, {
|
119
123
|
key: 0,
|
@@ -125,19 +129,19 @@ const Re = {
|
|
125
129
|
key: h
|
126
130
|
}, {
|
127
131
|
default: m(() => [
|
128
|
-
(n(!0), d(w, null, R(s, (
|
132
|
+
(n(!0), d(w, null, R(s, (u, F) => (n(), g(r, {
|
129
133
|
span: 24 / e(i).column,
|
130
|
-
key:
|
134
|
+
key: F
|
131
135
|
}, {
|
132
136
|
default: m(() => [
|
133
137
|
C(o, {
|
134
|
-
label:
|
138
|
+
label: u.label
|
135
139
|
}, {
|
136
140
|
default: m(() => [
|
137
141
|
C(e(Q), {
|
138
|
-
schema: e(
|
142
|
+
schema: e(A),
|
139
143
|
table: e(t),
|
140
|
-
field:
|
144
|
+
field: u,
|
141
145
|
set: e(b),
|
142
146
|
onSubmit: e(le)
|
143
147
|
}, null, 8, ["schema", "table", "field", "set", "onSubmit"])
|
@@ -153,9 +157,9 @@ const Re = {
|
|
153
157
|
]),
|
154
158
|
_: 1
|
155
159
|
})) : V("", !0),
|
156
|
-
e(
|
157
|
-
(n(!0), d(w, null, R(e(
|
158
|
-
class:
|
160
|
+
e(G).length ? (n(), d("div", $e, [
|
161
|
+
(n(!0), d(w, null, R(e(G), (s) => (n(), d("div", {
|
162
|
+
class: J(["normal-row", { main: e(t).main }])
|
159
163
|
}, [
|
160
164
|
e(t).main ? V("", !0) : (n(), d("div", ze, [
|
161
165
|
C(f, {
|
@@ -166,36 +170,36 @@ const Re = {
|
|
166
170
|
onChange: (h) => e(oe)(h, s)
|
167
171
|
}, null, 8, ["row", "onChange"])
|
168
172
|
])),
|
169
|
-
|
173
|
+
B("div", Ee, [
|
170
174
|
(n(!0), d(w, null, R(e(pe), (h) => (n(), g(v, null, {
|
171
175
|
default: m(() => [
|
172
|
-
(n(!0), d(w, null, R(h, ({ data:
|
173
|
-
span:
|
174
|
-
key: `${e(t).name}.${
|
176
|
+
(n(!0), d(w, null, R(h, ({ data: u, span: F }) => (n(), g(r, {
|
177
|
+
span: F,
|
178
|
+
key: `${e(t).name}.${u.name}`
|
175
179
|
}, {
|
176
180
|
default: m(() => [
|
177
181
|
C(o, {
|
178
|
-
style: ge(e(
|
179
|
-
label:
|
180
|
-
rules: e(N).getRules(e(
|
181
|
-
prop: `[${e(t).name}][${e(
|
182
|
+
style: ge(e(K).getStyle(u, e(L).type, e(i).type)),
|
183
|
+
label: u.label,
|
184
|
+
rules: e(N).getRules(e(O), e(t), u, e(j)(s)),
|
185
|
+
prop: `[${e(t).name}][${e(j)(s)}][${u.name}]`
|
182
186
|
}, {
|
183
187
|
label: m(() => {
|
184
188
|
var z;
|
185
189
|
return [
|
186
|
-
_e(
|
187
|
-
(z =
|
190
|
+
_e(q(e(xe)(e(t).name, u.name)) + " ", 1),
|
191
|
+
(z = u.control.tooltip) != null && z.content ? (n(), g(x, {
|
188
192
|
key: 0,
|
189
193
|
trigger: "hover",
|
190
194
|
placement: "top",
|
191
195
|
width: "auto",
|
192
|
-
title:
|
196
|
+
title: u.control.tooltip.title
|
193
197
|
}, {
|
194
198
|
reference: m(() => [
|
195
199
|
Ve
|
196
200
|
]),
|
197
201
|
default: m(() => [
|
198
|
-
|
202
|
+
B("pre", null, q(u.control.tooltip.content), 1)
|
199
203
|
]),
|
200
204
|
_: 2
|
201
205
|
}, 1032, ["title"])) : V("", !0)
|
@@ -203,13 +207,13 @@ const Re = {
|
|
203
207
|
}),
|
204
208
|
default: m(() => [
|
205
209
|
C(e(Q), {
|
206
|
-
schema: e(
|
210
|
+
schema: e(A),
|
207
211
|
set: e(c),
|
208
212
|
table: e(t),
|
209
213
|
row: s,
|
210
|
-
field:
|
211
|
-
onSubmit: e(
|
212
|
-
onChange: (z) => e(ne)(z, e(c), e(t), s,
|
214
|
+
field: u,
|
215
|
+
onSubmit: e(re),
|
216
|
+
onChange: (z) => e(ne)(z, e(c), e(t), s, u)
|
213
217
|
}, null, 8, ["schema", "set", "table", "row", "field", "onSubmit", "onChange"])
|
214
218
|
]),
|
215
219
|
_: 2
|
@@ -222,11 +226,11 @@ const Re = {
|
|
222
226
|
}, 1024))), 256))
|
223
227
|
])
|
224
228
|
], 2))), 256))
|
225
|
-
], 512)) : (n(), d("div", Re,
|
226
|
-
e(t).main ? V("", !0) : (n(), g(e(
|
229
|
+
], 512)) : (n(), d("div", Re, q(e(ke)("common.no_data")), 1)),
|
230
|
+
e(t).main ? V("", !0) : (n(), g(e(Se), { key: 3 }, {
|
227
231
|
left: m(() => [
|
228
232
|
(n(), g(be(e(ve)), {
|
229
|
-
module: e(
|
233
|
+
module: e(L),
|
230
234
|
set: e(c),
|
231
235
|
table: e(t),
|
232
236
|
selection: e(k),
|
@@ -241,7 +245,7 @@ const Re = {
|
|
241
245
|
"current-page": e(p).page,
|
242
246
|
"page-size": e(i).pageSize,
|
243
247
|
total: e(p).count,
|
244
|
-
onCurrentChange: a[0] || (a[0] = (s) => e(
|
248
|
+
onCurrentChange: a[0] || (a[0] = (s) => e(ue)(s, e(t)))
|
245
249
|
}, null, 8, ["current-page", "page-size", "total"])
|
246
250
|
]),
|
247
251
|
_: 1
|
@@ -251,5 +255,5 @@ const Re = {
|
|
251
255
|
}
|
252
256
|
});
|
253
257
|
export {
|
254
|
-
|
258
|
+
Oe as default
|
255
259
|
};
|
@@ -0,0 +1,99 @@
|
|
1
|
+
import { defineComponent as V, toRefs as $, ref as r, onMounted as A, watch as E, unref as a, openBlock as G, createBlock as I, createCommentVNode as K } from "vue";
|
2
|
+
import "./assets/underscore-B0BCaBxV.js";
|
3
|
+
import "./assets/underscore.string-DVXD2SZo.js";
|
4
|
+
import { U as s, b as Q, i as W, s as h, O as X, c as b } from "./main-D-QTCahZ.js";
|
5
|
+
import "./assets/file-saver-CwlpTZSc.js";
|
6
|
+
import "./assets/moment-h96o7c8I.js";
|
7
|
+
import "./assets/liquidjs-C-LVcoaY.js";
|
8
|
+
import { _ as Y } from "./Index.vue_vue_type_script_setup_true_lang-CJV5JBz9.js";
|
9
|
+
const oe = /* @__PURE__ */ V({
|
10
|
+
__name: "Paging",
|
11
|
+
props: {
|
12
|
+
base: {},
|
13
|
+
route: {},
|
14
|
+
url: {},
|
15
|
+
win: {}
|
16
|
+
},
|
17
|
+
emits: ["navigate", "load"],
|
18
|
+
setup(q, { expose: k, emit: z }) {
|
19
|
+
let g = z, P = q, { url: d, base: y, route: u } = $(P), f = r(), v = r(), c = r(), m = r(), x = r(), C = r(), p = r(), o = r(), N = (e) => !0, L = (e) => {
|
20
|
+
let l = s.getPath(d.value), t = s.getPath(e);
|
21
|
+
return l != t;
|
22
|
+
}, O = (e = null) => {
|
23
|
+
_(e);
|
24
|
+
}, R = () => {
|
25
|
+
}, S = (e) => {
|
26
|
+
var t;
|
27
|
+
let l = Q(e.module.type, e.module.name);
|
28
|
+
W.setTitle(l, e.module.env), f.value = e.module, x.value = e.next, C.value = h.expandSet(e.schema, e.set), v.value = h.expandSchema(e.schema, e.set), c.value = (t = v.value) == null ? void 0 : t[0], m.value = c.value.layouts[0], p.value = h.getConditionForm(v.value, u.value.query.condition);
|
29
|
+
}, U = (e = null, l = null) => {
|
30
|
+
let t = e ?? u.value.query, n = s.getUrl(u.value.path, t);
|
31
|
+
g("load", n, !1, (T) => {
|
32
|
+
l && l(T);
|
33
|
+
});
|
34
|
+
}, i = (e, l) => {
|
35
|
+
g("navigate", e, l);
|
36
|
+
}, w = async (e) => {
|
37
|
+
let l = u.value.query;
|
38
|
+
l.page = 1;
|
39
|
+
let t = X.pure(p.value);
|
40
|
+
l.condition = b.encode(t);
|
41
|
+
let n = s.getUrl(u.value.path, l);
|
42
|
+
n == d.value ? U(l, e) : i(n, e);
|
43
|
+
}, B = (e, l) => {
|
44
|
+
let t = u.value.query;
|
45
|
+
t.order_by = b.encode(JSON.stringify(e));
|
46
|
+
let n = s.getUrl(u.value.path, t);
|
47
|
+
i(n, l);
|
48
|
+
}, D = (e, l = null) => {
|
49
|
+
let t = u.value.query;
|
50
|
+
t.page = e;
|
51
|
+
let n = s.getUrl(u.value.path, t);
|
52
|
+
i(n, l);
|
53
|
+
}, H = (e, l = null) => {
|
54
|
+
let t = u.value.query;
|
55
|
+
t.size = e;
|
56
|
+
let n = s.getUrl(u.value.path, t);
|
57
|
+
i(n, l);
|
58
|
+
}, j = (e) => {
|
59
|
+
m.value = c.value.layouts.find((l) => l.type == e);
|
60
|
+
}, F = () => {
|
61
|
+
S(y.value.data);
|
62
|
+
}, _ = (e = null) => U(null, e), J = (e) => {
|
63
|
+
if (!o.value || !o.value.resize)
|
64
|
+
return !1;
|
65
|
+
o.value.resize(e);
|
66
|
+
}, M = (e, l) => {
|
67
|
+
if (!o.value || !o.value.keyboard)
|
68
|
+
return !1;
|
69
|
+
o.value.keyboard(e, l);
|
70
|
+
};
|
71
|
+
return A(async () => {
|
72
|
+
F();
|
73
|
+
}), E(() => y.value, (e) => {
|
74
|
+
S(e.data);
|
75
|
+
}), k({ shouldLoad: N, shouldSpin: L, refresh: _, keyboard: M, resize: J }), (e, l) => a(m) ? (G(), I(Y, {
|
76
|
+
key: 0,
|
77
|
+
ref_key: "pagingRef",
|
78
|
+
ref: o,
|
79
|
+
module: a(f),
|
80
|
+
next: a(x),
|
81
|
+
set: a(C),
|
82
|
+
schema: a(v),
|
83
|
+
table: a(c),
|
84
|
+
layout: a(m),
|
85
|
+
"search-data": a(p),
|
86
|
+
onNavigate: a(i),
|
87
|
+
onSort: a(B),
|
88
|
+
onSearch: a(w),
|
89
|
+
onPageChange: a(D),
|
90
|
+
onSizeChange: a(H),
|
91
|
+
onLayoutChange: a(j),
|
92
|
+
onSucceed: a(O),
|
93
|
+
onClose: a(R)
|
94
|
+
}, null, 8, ["module", "next", "set", "schema", "table", "layout", "search-data", "onNavigate", "onSort", "onSearch", "onPageChange", "onSizeChange", "onLayoutChange", "onSucceed", "onClose"])) : K("", !0);
|
95
|
+
}
|
96
|
+
});
|
97
|
+
export {
|
98
|
+
oe as default
|
99
|
+
};
|
@@ -1,6 +1,12 @@
|
|
1
|
-
import { defineComponent as D, toRefs as F, ref as H, resolveComponent as g, openBlock as s, createElementBlock as I, Fragment as P, createElementVNode as l, unref as e, createBlock as
|
2
|
-
import
|
3
|
-
|
1
|
+
import { defineComponent as D, toRefs as F, ref as H, resolveComponent as g, openBlock as s, createElementBlock as I, Fragment as P, createElementVNode as l, unref as e, createBlock as p, withCtx as t, createTextVNode as r, toDisplayString as n, createCommentVNode as d, createVNode as y, createSlots as R } from "vue";
|
2
|
+
import "./assets/underscore-B0BCaBxV.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 { t as o } from "./main-D-QTCahZ.js";
|
8
|
+
import "./assets/liquidjs-C-LVcoaY.js";
|
9
|
+
const T = { class: "search-title" }, $ = /* @__PURE__ */ l("i", { class: "fa fa-plus" }, null, -1), j = /* @__PURE__ */ l("i", { class: "fa fa-copy" }, null, -1), z = /* @__PURE__ */ l("i", { class: "fa fa-trash-alt" }, null, -1), A = { class: "search-operation" }, G = /* @__PURE__ */ l("i", { class: "fa fa-search" }, null, -1), J = /* @__PURE__ */ l("i", { class: "fa fa-file-upload" }, null, -1), K = /* @__PURE__ */ l("i", { class: "fa fa-share-square" }, null, -1), oe = /* @__PURE__ */ D({
|
4
10
|
__name: "PagingHeader",
|
5
11
|
props: {
|
6
12
|
schema: {},
|
@@ -12,27 +18,27 @@ const T = { class: "search-title" }, $ = /* @__PURE__ */ l("i", { class: "fa fa-
|
|
12
18
|
},
|
13
19
|
emits: ["add", "remove", "copy", "show-import", "show-export", "succeed", "submit"],
|
14
20
|
setup(b, { emit: k }) {
|
15
|
-
let
|
16
|
-
u.value = !0,
|
21
|
+
let i = k, x = b, { schema: L, table: C, layout: M, next: m, set: v, selection: a } = F(x), u = H(!1), w = () => {
|
22
|
+
u.value = !0, i("submit", () => {
|
17
23
|
u.value = !1;
|
18
24
|
});
|
19
25
|
}, N = (f) => {
|
20
|
-
|
26
|
+
i("add", f);
|
21
27
|
}, V = () => {
|
22
|
-
|
28
|
+
i("show-import");
|
23
29
|
}, B = () => {
|
24
|
-
|
30
|
+
i("show-export");
|
25
31
|
}, E = (f) => {
|
26
|
-
|
32
|
+
i("copy", f);
|
27
33
|
}, S = () => {
|
28
|
-
|
34
|
+
i("remove", a.value);
|
29
35
|
};
|
30
36
|
return (f, _) => {
|
31
37
|
var h;
|
32
|
-
const
|
38
|
+
const c = g("el-button"), q = g("el-popconfirm");
|
33
39
|
return s(), I(P, null, [
|
34
40
|
l("div", T, [
|
35
|
-
e(
|
41
|
+
e(m).insert ? (s(), p(c, {
|
36
42
|
key: 0,
|
37
43
|
type: "primary",
|
38
44
|
class: "btn-insert",
|
@@ -45,8 +51,8 @@ const T = { class: "search-title" }, $ = /* @__PURE__ */ l("i", { class: "fa fa-
|
|
45
51
|
r(" " + n(e(o)("paging.add")), 1)
|
46
52
|
]),
|
47
53
|
_: 1
|
48
|
-
}, 8, ["onClick"])) :
|
49
|
-
e(
|
54
|
+
}, 8, ["onClick"])) : d("", !0),
|
55
|
+
e(m).copy ? (s(), p(c, {
|
50
56
|
key: 1,
|
51
57
|
type: "primary",
|
52
58
|
disabled: !e(a).length,
|
@@ -59,8 +65,8 @@ const T = { class: "search-title" }, $ = /* @__PURE__ */ l("i", { class: "fa fa-
|
|
59
65
|
r(" " + n(e(o)("common.copy")) + n(e(a).length ? "(" + e(a).length + ")" : ""), 1)
|
60
66
|
]),
|
61
67
|
_: 1
|
62
|
-
}, 8, ["disabled"])) :
|
63
|
-
e(
|
68
|
+
}, 8, ["disabled"])) : d("", !0),
|
69
|
+
e(m).delete ? (s(), p(q, {
|
64
70
|
key: 2,
|
65
71
|
width: 180,
|
66
72
|
title: e(o)("common.confirm_delete"),
|
@@ -69,7 +75,7 @@ const T = { class: "search-title" }, $ = /* @__PURE__ */ l("i", { class: "fa fa-
|
|
69
75
|
onConfirm: e(S)
|
70
76
|
}, {
|
71
77
|
reference: t(() => [
|
72
|
-
y(
|
78
|
+
y(c, {
|
73
79
|
type: "danger",
|
74
80
|
class: "btn-delete",
|
75
81
|
plain: "",
|
@@ -85,10 +91,10 @@ const T = { class: "search-title" }, $ = /* @__PURE__ */ l("i", { class: "fa fa-
|
|
85
91
|
}, 8, ["disabled"])
|
86
92
|
]),
|
87
93
|
_: 1
|
88
|
-
}, 8, ["title", "confirm-button-text", "cancel-button-text", "onConfirm"])) :
|
94
|
+
}, 8, ["title", "confirm-button-text", "cancel-button-text", "onConfirm"])) : d("", !0)
|
89
95
|
]),
|
90
96
|
l("div", A, [
|
91
|
-
y(
|
97
|
+
y(c, {
|
92
98
|
type: "primary",
|
93
99
|
loading: e(u),
|
94
100
|
onClick: e(w)
|
@@ -106,7 +112,7 @@ const T = { class: "search-title" }, $ = /* @__PURE__ */ l("i", { class: "fa fa-
|
|
106
112
|
key: "0"
|
107
113
|
}
|
108
114
|
]), 1032, ["loading", "onClick"]),
|
109
|
-
e(
|
115
|
+
e(m).import ? (s(), p(c, {
|
110
116
|
key: 0,
|
111
117
|
onClick: e(V)
|
112
118
|
}, {
|
@@ -117,8 +123,8 @@ const T = { class: "search-title" }, $ = /* @__PURE__ */ l("i", { class: "fa fa-
|
|
117
123
|
r(" " + n(e(o)("paging.import")), 1)
|
118
124
|
]),
|
119
125
|
_: 1
|
120
|
-
}, 8, ["onClick"])) :
|
121
|
-
e(
|
126
|
+
}, 8, ["onClick"])) : d("", !0),
|
127
|
+
e(m).export ? (s(), p(c, {
|
122
128
|
key: 1,
|
123
129
|
disabled: ((h = e(v)[e(C).name]) == null ? void 0 : h.length) == 0,
|
124
130
|
onClick: e(B)
|
@@ -130,12 +136,12 @@ const T = { class: "search-title" }, $ = /* @__PURE__ */ l("i", { class: "fa fa-
|
|
130
136
|
r(" " + n(e(o)("paging.export")), 1)
|
131
137
|
]),
|
132
138
|
_: 1
|
133
|
-
}, 8, ["disabled", "onClick"])) :
|
139
|
+
}, 8, ["disabled", "onClick"])) : d("", !0)
|
134
140
|
])
|
135
141
|
], 64);
|
136
142
|
};
|
137
143
|
}
|
138
144
|
});
|
139
145
|
export {
|
140
|
-
|
146
|
+
oe as default
|
141
147
|
};
|