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
@@ -1,10 +1,14 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import
|
3
|
-
import
|
4
|
-
import {
|
5
|
-
|
6
|
-
|
7
|
-
|
1
|
+
import { defineComponent as Ue, toRefs as $e, ref as r, computed as Y, watch as Be, resolveComponent as p, openBlock as d, createElementBlock as H, normalizeClass as De, unref as e, createElementVNode as m, createVNode as h, withCtx as s, withModifiers as Le, createBlock as g, isRef as Z, Fragment as ee, renderList as le, toDisplayString as x, createCommentVNode as B, resolveDynamicComponent as Ne, normalizeStyle as Oe, createTextVNode as te, nextTick as ae } from "vue";
|
2
|
+
import "./assets/underscore-B0BCaBxV.js";
|
3
|
+
import "./assets/underscore.string-DVXD2SZo.js";
|
4
|
+
import { d as Pe, e as qe, t as oe, f as Ke, g as je, U as q, a as Fe, O as He, h as Me, m as re, b as Ae, i as Ge, s as ue } 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 ne } from "./Index.vue_vue_type_script_setup_true_lang-BkjFEuPH.js";
|
9
|
+
const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class: "row-title" }, We = /* @__PURE__ */ m("i", { class: "fa fa-close" }, null, -1), Xe = [
|
10
|
+
We
|
11
|
+
], Ye = /* @__PURE__ */ m("i", { class: "fa fa-question-circle icon-question" }, null, -1), Ze = { class: "el-drawer__title" }, el = ["href"], dl = /* @__PURE__ */ Ue({
|
8
12
|
__name: "Single",
|
9
13
|
props: {
|
10
14
|
base: {},
|
@@ -14,68 +18,68 @@ const Ge = { class: "ha-main-form" }, He = { class: "row-header" }, Ie = { class
|
|
14
18
|
},
|
15
19
|
emits: ["navigate", "load", "succeed", "close"],
|
16
20
|
setup(se, { expose: ie, emit: de }) {
|
17
|
-
let D = de, me = se, { url: ce, base:
|
21
|
+
let D = de, me = se, { url: ce, base: M, route: z } = $e(me), f = r(), b = r(), c = r(), u = r(), _ = r(), L = r(), v = r({ table: null, layout: null }), w = r(), N = r([]), ve = r(), E = r(), R = r(), K = r(), C = r(), O = r(), i = r({ page: null, url: null, visible: !1, appendToBody: !1 }), k = r(!1), j = r(), S = r(), pe = (l) => !0, fe = (l) => {
|
18
22
|
let t = q.getPath(ce.value), a = q.getPath(l);
|
19
23
|
return t != a;
|
20
24
|
}, be = () => {
|
21
25
|
Ve();
|
22
|
-
}, ye = (l, t) => {
|
23
|
-
J("copy", l, t);
|
24
26
|
}, _e = (l, t) => {
|
25
|
-
|
27
|
+
A("copy", l, t);
|
28
|
+
}, ye = (l, t) => {
|
29
|
+
A("update", l, t);
|
26
30
|
}, he = () => {
|
27
31
|
i.value.visible = !1;
|
28
|
-
},
|
32
|
+
}, A = (l, t, a) => {
|
29
33
|
let n = ge(l, t);
|
30
34
|
a.ctrlKey ? D("navigate", n) : (i.value.appendToBody = a.altKey, i.value.page = l, i.value.url = n, i.value.visible = !0);
|
31
35
|
}, ge = (l, t = null) => {
|
32
36
|
let a = `${b.value[l].route}`;
|
33
37
|
if (t != null) {
|
34
|
-
let n = t[
|
38
|
+
let n = t[_.value.key.name];
|
35
39
|
a += `?id=${n}`;
|
36
40
|
}
|
37
41
|
return a;
|
38
42
|
}, we = (l, t, a) => {
|
39
|
-
(a.ctrlKey || k.value) && (
|
43
|
+
(a.ctrlKey || k.value) && (j.value = l, S.value = He.clone(t), k.value = !0, S.value.fields.forEach((n) => {
|
40
44
|
n.control.textualize = !1;
|
41
45
|
}));
|
42
|
-
},
|
43
|
-
i.value.visible = !1, D("succeed",
|
46
|
+
}, G = (l) => {
|
47
|
+
i.value.visible = !1, D("succeed", W.value, l);
|
44
48
|
}, Ce = () => {
|
45
49
|
D("close");
|
46
|
-
},
|
47
|
-
},
|
50
|
+
}, I = (l, t, a, n, T) => {
|
51
|
+
}, J = (l, t) => {
|
48
52
|
if (t) {
|
49
|
-
L.value =
|
53
|
+
L.value = _.value.layouts.find((a) => a.type == l);
|
50
54
|
return;
|
51
55
|
}
|
52
56
|
v.value.layout = v.value.table.layouts.find((a) => a.type == l);
|
53
57
|
}, ke = (l) => {
|
54
|
-
let t =
|
58
|
+
let t = u.value.find((a) => a.name == l);
|
55
59
|
v.value.table = t, v.value.layout = t.layouts[0];
|
56
60
|
}, xe = (l) => {
|
57
61
|
let t = Object.keys(l)[0], a = t.substring(1, t.indexOf("]"));
|
58
|
-
|
62
|
+
u.value.find((T) => T.name == a).main || (w.value = a);
|
59
63
|
}, Re = (l, t = null, a = null) => {
|
60
64
|
ae(() => {
|
61
65
|
E.value.validate((n, T) => {
|
62
66
|
if (!n)
|
63
67
|
return xe(T), a && a(!1), !1;
|
64
|
-
let
|
65
|
-
t && t(
|
66
|
-
E.value.clearValidate(),
|
67
|
-
}).catch(({ code:
|
68
|
-
if (
|
68
|
+
let U = f.value.type == "Update" ? b.value.update.route : b.value.insert.route;
|
69
|
+
t && t(U, c.value), Me.post(U, c.value).then(({ data: $, message: V }) => {
|
70
|
+
E.value.clearValidate(), re.success(V), G(c.value);
|
71
|
+
}).catch(({ code: $, data: V, message: X }) => {
|
72
|
+
if ($ != "ValidateError")
|
69
73
|
return;
|
70
|
-
|
71
|
-
let
|
72
|
-
if (
|
73
|
-
let
|
74
|
-
|
74
|
+
N.value = V;
|
75
|
+
let P = V.find((y) => y.table !== _.value.name);
|
76
|
+
if (P) {
|
77
|
+
let y = u.value.find((o) => o.name == P.table);
|
78
|
+
y && (w.value = y.name);
|
75
79
|
}
|
76
80
|
ae(() => {
|
77
|
-
E.value.clearValidate(), E.value.validate((
|
78
|
-
|
81
|
+
E.value.clearValidate(), E.value.validate((y, o) => {
|
82
|
+
y || (a && a(!1), N.value = []);
|
79
83
|
});
|
80
84
|
});
|
81
85
|
}).finally(() => {
|
@@ -83,21 +87,21 @@ const Ge = { class: "ha-main-form" }, He = { class: "row-header" }, Ie = { class
|
|
83
87
|
});
|
84
88
|
});
|
85
89
|
});
|
86
|
-
},
|
90
|
+
}, Q = (l) => {
|
87
91
|
var a, n;
|
88
|
-
let t =
|
89
|
-
|
92
|
+
let t = Ae(l.module.type, l.module.name);
|
93
|
+
Ge.setTitle(t, l.module.env), f.value = l.module, b.value = l.next, c.value = ue.expandSet(l.schema, l.set), u.value = ue.expandSchema(l.schema, l.set), _.value = (a = u.value) == null ? void 0 : a[0], L.value = _.value.layouts[0], ((n = u.value) == null ? void 0 : n.length) > 1 && (w.value = u.value[1].name, v.value.table = u.value[1], v.value.layout = u.value[1].layouts[0]);
|
90
94
|
}, Se = (l) => {
|
91
95
|
R.value && R.value.resize && R.value.resize(l), C.value && C.value.resize && C.value.resize(l);
|
92
96
|
}, Te = (l, t) => {
|
93
97
|
if (l == "ctrlS") {
|
94
|
-
if (
|
95
|
-
if (!
|
98
|
+
if (f.value.type == "Detail") {
|
99
|
+
if (!O.value || !O.value.keyboard)
|
96
100
|
return !1;
|
97
|
-
|
101
|
+
O.value.keyboard(l, t);
|
98
102
|
return;
|
99
103
|
}
|
100
|
-
|
104
|
+
F(t);
|
101
105
|
}
|
102
106
|
}, Ve = () => {
|
103
107
|
let l = q.getUrl(z.value.path, z.value.query);
|
@@ -105,31 +109,31 @@ const Ge = { class: "ha-main-form" }, He = { class: "row-header" }, Ie = { class
|
|
105
109
|
});
|
106
110
|
};
|
107
111
|
(() => {
|
108
|
-
|
112
|
+
Q(M.value.data);
|
109
113
|
})();
|
110
|
-
let
|
111
|
-
if (!
|
112
|
-
|
114
|
+
let F = (l) => {
|
115
|
+
if (!K.value.submit) {
|
116
|
+
re.notify("提示", "请在子组件暴露submit方法来实现快捷提交", "warning");
|
113
117
|
return;
|
114
118
|
}
|
115
|
-
|
116
|
-
}, ze =
|
117
|
-
let l = `/${
|
118
|
-
return
|
119
|
-
}),
|
120
|
-
return Be(() =>
|
121
|
-
|
122
|
-
}), ie({ shouldLoad:
|
123
|
-
const a =
|
124
|
-
return d(),
|
119
|
+
K.value.submit(l);
|
120
|
+
}, ze = Y(() => {
|
121
|
+
let l = `/${_.value.name}/update`, t = f.value.type == "Detail" ? "detail" : "update";
|
122
|
+
return Pe.getComponent(l, "partial", t);
|
123
|
+
}), W = Y(() => f.value.type.toLowerCase());
|
124
|
+
return Be(() => M.value, (l) => {
|
125
|
+
Q(l.data), R.value.update && R.value.update(l.data), C.value && C.value.update && C.value.update(l.data);
|
126
|
+
}), ie({ shouldLoad: pe, shouldSpin: fe, keyboard: Te, refresh: be, resize: Se }), (l, t) => {
|
127
|
+
const a = p("el-tooltip"), n = p("el-tab-pane"), T = p("el-tabs"), U = p("el-form"), $ = p("el-scrollbar"), V = p("el-popover"), X = p("el-form-item"), P = p("el-card"), y = p("el-drawer");
|
128
|
+
return d(), H("div", {
|
125
129
|
ref_key: "singleRef",
|
126
130
|
ref: ve,
|
127
|
-
class: De(["ha-single-page", { [e(
|
131
|
+
class: De(["ha-single-page", { [e(W) + "-page"]: !0, editing: e(k) }])
|
128
132
|
}, [
|
129
|
-
m("div",
|
130
|
-
h(
|
133
|
+
m("div", Ie, [
|
134
|
+
h($, { class: "main-scroller" }, {
|
131
135
|
default: s(() => [
|
132
|
-
h(
|
136
|
+
h(U, {
|
133
137
|
ref_key: "formRef",
|
134
138
|
ref: E,
|
135
139
|
model: e(c),
|
@@ -140,19 +144,19 @@ const Ge = { class: "ha-main-form" }, He = { class: "row-header" }, Ie = { class
|
|
140
144
|
h(ne, {
|
141
145
|
ref_key: "mainRef",
|
142
146
|
ref: R,
|
143
|
-
module: e(
|
144
|
-
schema: e(
|
145
|
-
table: e(
|
147
|
+
module: e(f),
|
148
|
+
schema: e(u),
|
149
|
+
table: e(_),
|
146
150
|
layout: e(L),
|
147
151
|
next: e(b),
|
148
152
|
set: e(c),
|
149
153
|
route: e(z),
|
150
|
-
"validate-errors": e(
|
151
|
-
onChange: e(
|
152
|
-
onLayoutChange: t[0] || (t[0] = (o) => e(
|
153
|
-
onSubmit: e(
|
154
|
+
"validate-errors": e(N),
|
155
|
+
onChange: e(I),
|
156
|
+
onLayoutChange: t[0] || (t[0] = (o) => e(J)(o, !0)),
|
157
|
+
onSubmit: e(F)
|
154
158
|
}, null, 8, ["module", "schema", "table", "layout", "next", "set", "route", "validate-errors", "onChange", "onSubmit"]),
|
155
|
-
e(
|
159
|
+
e(u).length > 1 ? (d(), g(T, {
|
156
160
|
key: 0,
|
157
161
|
type: "border-card",
|
158
162
|
onTabChange: e(ke),
|
@@ -160,7 +164,7 @@ const Ge = { class: "ha-main-form" }, He = { class: "row-header" }, Ie = { class
|
|
160
164
|
"onUpdate:modelValue": t[1] || (t[1] = (o) => Z(w) ? w.value = o : w = o)
|
161
165
|
}, {
|
162
166
|
default: s(() => [
|
163
|
-
(d(!0),
|
167
|
+
(d(!0), H(ee, null, le(e(u).filter((o, Ee) => Ee > 0), (o) => (d(), g(n, {
|
164
168
|
name: o.name,
|
165
169
|
key: o.name
|
166
170
|
}, {
|
@@ -171,7 +175,7 @@ const Ge = { class: "ha-main-form" }, He = { class: "row-header" }, Ie = { class
|
|
171
175
|
disabled: !o.tooltip
|
172
176
|
}, {
|
173
177
|
default: s(() => [
|
174
|
-
m("div", null, x(e(
|
178
|
+
m("div", null, x(e(qe)(o.table)), 1)
|
175
179
|
]),
|
176
180
|
_: 2
|
177
181
|
}, 1032, ["content", "disabled"])
|
@@ -185,18 +189,18 @@ const Ge = { class: "ha-main-form" }, He = { class: "row-header" }, Ie = { class
|
|
185
189
|
key: 1,
|
186
190
|
ref_key: "childRef",
|
187
191
|
ref: C,
|
188
|
-
module: e(
|
189
|
-
schema: e(
|
192
|
+
module: e(f),
|
193
|
+
schema: e(u),
|
190
194
|
table: e(v).table,
|
191
195
|
layout: e(v).layout,
|
192
196
|
next: e(b),
|
193
197
|
set: e(c),
|
194
198
|
route: e(z),
|
195
|
-
"validate-errors": e(
|
199
|
+
"validate-errors": e(N),
|
196
200
|
onRowEdit: e(we),
|
197
|
-
onChange: e(
|
198
|
-
onLayoutChange: t[2] || (t[2] = (o) => e(
|
199
|
-
onSubmit: e(
|
201
|
+
onChange: e(I),
|
202
|
+
onLayoutChange: t[2] || (t[2] = (o) => e(J)(o, !1)),
|
203
|
+
onSubmit: e(F)
|
200
204
|
}, null, 8, ["module", "schema", "table", "layout", "next", "set", "route", "validate-errors", "onRowEdit", "onChange", "onSubmit"])) : B("", !0)
|
201
205
|
]),
|
202
206
|
_: 1
|
@@ -204,49 +208,49 @@ const Ge = { class: "ha-main-form" }, He = { class: "row-header" }, Ie = { class
|
|
204
208
|
]),
|
205
209
|
_: 1
|
206
210
|
}),
|
207
|
-
(d(), g(
|
211
|
+
(d(), g(Ne(e(ze)), {
|
208
212
|
ref_key: "updateRef",
|
209
|
-
ref:
|
213
|
+
ref: K,
|
210
214
|
class: "main-footer",
|
211
|
-
schema: e(
|
212
|
-
table: e(
|
215
|
+
schema: e(u),
|
216
|
+
table: e(_),
|
213
217
|
layout: e(L),
|
214
218
|
next: e(b),
|
215
219
|
set: e(c),
|
216
220
|
route: e(z),
|
217
|
-
onCopy: e(
|
218
|
-
onEdit: e(
|
221
|
+
onCopy: e(_e),
|
222
|
+
onEdit: e(ye),
|
219
223
|
onSubmit: e(Re),
|
220
224
|
onClose: e(Ce)
|
221
225
|
}, null, 40, ["schema", "table", "layout", "next", "set", "route", "onCopy", "onEdit", "onSubmit", "onClose"]))
|
222
226
|
]),
|
223
|
-
e(k) ? (d(), g(
|
227
|
+
e(k) ? (d(), g(P, {
|
224
228
|
key: 0,
|
225
229
|
class: "side-form"
|
226
230
|
}, {
|
227
231
|
header: s(() => [
|
228
|
-
m("div",
|
229
|
-
m("div",
|
232
|
+
m("div", Je, [
|
233
|
+
m("div", Qe, x(e(oe)("common.modify")) + " " + x(e(j)[e(S).show[0].name]), 1),
|
230
234
|
m("div", {
|
231
235
|
class: "row-close",
|
232
236
|
onClick: t[4] || (t[4] = (o) => Z(k) ? k.value = !1 : k = !1)
|
233
|
-
},
|
237
|
+
}, Xe)
|
234
238
|
])
|
235
239
|
]),
|
236
240
|
default: s(() => [
|
237
|
-
h(
|
241
|
+
h($, null, {
|
238
242
|
default: s(() => [
|
239
|
-
h(
|
243
|
+
h(U, {
|
240
244
|
size: "small",
|
241
245
|
"label-width": "80px"
|
242
246
|
}, {
|
243
247
|
default: s(() => [
|
244
|
-
(d(!0),
|
245
|
-
style:
|
248
|
+
(d(!0), H(ee, null, le(e(S).show, (o) => (d(), g(X, {
|
249
|
+
style: Oe(o.control.height ? `height: ${o.control.height}px;` : ""),
|
246
250
|
rules: o.rules
|
247
251
|
}, {
|
248
252
|
label: s(() => [
|
249
|
-
te(x(e(
|
253
|
+
te(x(e(Ke)(e(S).name, o.name)) + " ", 1),
|
250
254
|
o.control.tooltip ? (d(), g(V, {
|
251
255
|
key: 0,
|
252
256
|
trigger: "hover",
|
@@ -255,7 +259,7 @@ const Ge = { class: "ha-main-form" }, He = { class: "row-header" }, Ie = { class
|
|
255
259
|
title: o.control.tooltip.title
|
256
260
|
}, {
|
257
261
|
reference: s(() => [
|
258
|
-
|
262
|
+
Ye
|
259
263
|
]),
|
260
264
|
default: s(() => [
|
261
265
|
m("pre", null, x(o.control.tooltip.content), 1)
|
@@ -264,12 +268,12 @@ const Ge = { class: "ha-main-form" }, He = { class: "row-header" }, Ie = { class
|
|
264
268
|
}, 1032, ["title"])) : B("", !0)
|
265
269
|
]),
|
266
270
|
default: s(() => [
|
267
|
-
h(
|
268
|
-
schema: e(
|
271
|
+
h(je, {
|
272
|
+
schema: e(u),
|
269
273
|
table: e(S),
|
270
274
|
field: o,
|
271
275
|
set: e(c),
|
272
|
-
row: e(
|
276
|
+
row: e(j)
|
273
277
|
}, null, 8, ["schema", "table", "field", "set", "row"])
|
274
278
|
]),
|
275
279
|
_: 2
|
@@ -283,11 +287,11 @@ const Ge = { class: "ha-main-form" }, He = { class: "row-header" }, Ie = { class
|
|
283
287
|
]),
|
284
288
|
_: 1
|
285
289
|
})) : B("", !0),
|
286
|
-
e(i).page ? (d(), g(
|
290
|
+
e(i).page ? (d(), g(y, {
|
287
291
|
key: 1,
|
288
292
|
"destroy-on-close": "",
|
289
293
|
"append-to-body": e(i).appendToBody,
|
290
|
-
size: `${e(
|
294
|
+
size: `${e(f).width ?? "60%"}`,
|
291
295
|
modelValue: e(i).visible,
|
292
296
|
"onUpdate:modelValue": t[5] || (t[5] = (o) => e(i).visible = o)
|
293
297
|
}, {
|
@@ -301,11 +305,11 @@ const Ge = { class: "ha-main-form" }, He = { class: "row-header" }, Ie = { class
|
|
301
305
|
])
|
302
306
|
]),
|
303
307
|
default: s(() => [
|
304
|
-
h(e(
|
308
|
+
h(e(Fe), {
|
305
309
|
ref_key: "pageRef",
|
306
|
-
ref:
|
310
|
+
ref: O,
|
307
311
|
url: e(i).url,
|
308
|
-
onSucceed: e(
|
312
|
+
onSucceed: e(G),
|
309
313
|
onClose: e(he)
|
310
314
|
}, null, 8, ["url", "onSucceed", "onClose"])
|
311
315
|
]),
|
@@ -316,5 +320,5 @@ const Ge = { class: "ha-main-form" }, He = { class: "row-header" }, Ie = { class
|
|
316
320
|
}
|
317
321
|
});
|
318
322
|
export {
|
319
|
-
|
323
|
+
dl as default
|
320
324
|
};
|
@@ -1,8 +1,12 @@
|
|
1
|
-
import { defineComponent as j, toRefs as q, ref as n, onMounted as G, watch as M, openBlock as O, createElementBlock as I, createVNode as J, unref as
|
2
|
-
import {
|
3
|
-
import
|
4
|
-
import
|
5
|
-
|
1
|
+
import { defineComponent as j, toRefs as q, ref as n, onMounted as G, watch as M, openBlock as O, createElementBlock as I, createVNode as J, unref as i, createElementVNode as K, normalizeStyle as P, nextTick as R } from "vue";
|
2
|
+
import { D as Q, s as U, n as W, A as X, m as Y, E as Z } 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";
|
8
|
+
import { _ as ee } from "./SearchForm.vue_vue_type_style_index_0_lang-CFxxTJiB.js";
|
9
|
+
const de = /* @__PURE__ */ j({
|
6
10
|
__name: "Statistic",
|
7
11
|
props: {
|
8
12
|
searchData: {},
|
@@ -15,17 +19,17 @@ const ie = /* @__PURE__ */ j({
|
|
15
19
|
set: {}
|
16
20
|
},
|
17
21
|
emits: ["search"],
|
18
|
-
setup(
|
19
|
-
let
|
20
|
-
|
21
|
-
},
|
22
|
-
|
22
|
+
setup(A, { expose: C, emit: H }) {
|
23
|
+
let F = H, z = A, { route: D, module: E, schema: m, table: p, layout: l, next: te, set: u, searchData: y } = q(z), s = null, x = null, g = n(), d = n(), v = n(), b = n(), { app: S } = Q.sys, B = (t) => {
|
24
|
+
T("search");
|
25
|
+
}, T = (t, e = null) => {
|
26
|
+
F(t, (r) => {
|
23
27
|
R(() => {
|
24
|
-
|
28
|
+
f(), e && e(r);
|
25
29
|
});
|
26
30
|
});
|
27
|
-
},
|
28
|
-
let t =
|
31
|
+
}, f = () => {
|
32
|
+
let t = X.distinct(u.value[l.value.table], (a) => a[l.value.date]), e = {
|
29
33
|
title: { text: E.value.title, left: "center", textStyle: { color: "#777" } },
|
30
34
|
//标题
|
31
35
|
tooltip: { trigger: "axis" },
|
@@ -60,10 +64,10 @@ const ie = /* @__PURE__ */ j({
|
|
60
64
|
series: []
|
61
65
|
};
|
62
66
|
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 r = l.value.fields.find((a) => a.group && a.name != l.value.date), _ =
|
67
|
+
let r = l.value.fields.find((a) => a.group && a.name != l.value.date), _ = p.value.fields.find((a) => a.name == r.name).control.data.data;
|
64
68
|
for (let a = 0; a < _.length; a++) {
|
65
69
|
let o = _[a];
|
66
|
-
o.color ||
|
70
|
+
o.color || Y.error("颜色字段不能为空");
|
67
71
|
let c = {
|
68
72
|
name: o.text,
|
69
73
|
type: "line",
|
@@ -109,46 +113,46 @@ const ie = /* @__PURE__ */ j({
|
|
109
113
|
}
|
110
114
|
e.series.push(c), e.legend.data.push(o.text);
|
111
115
|
}
|
112
|
-
e.xAxis.data.push(...t),
|
116
|
+
e.xAxis.data.push(...t), s.setOption(e);
|
113
117
|
}, k = () => {
|
114
118
|
var r;
|
115
|
-
let t =
|
119
|
+
let t = Z.getHeight([(r = d.value) == null ? void 0 : r.$el]), e = b.value.getBoundingClientRect();
|
116
120
|
g.value = e.height - t - 10 - 1;
|
117
|
-
},
|
118
|
-
|
119
|
-
k(),
|
121
|
+
}, V = (t) => {
|
122
|
+
d.value.resize(t), R(() => {
|
123
|
+
k(), s == null || s.resize();
|
120
124
|
});
|
121
125
|
}, N = () => {
|
122
|
-
k(),
|
126
|
+
k(), s = x.init(v.value), f();
|
123
127
|
};
|
124
128
|
return G(async () => {
|
125
|
-
y.value =
|
129
|
+
y.value = U.getConditionForm(m.value, D.value.query.condition), x = await W.getECharts(), N();
|
126
130
|
}), M(() => l.value, (t, e) => {
|
127
|
-
|
128
|
-
}),
|
131
|
+
f();
|
132
|
+
}), C({ resize: V }), (t, e) => (O(), I("div", {
|
129
133
|
ref_key: "statisticRef",
|
130
134
|
ref: b,
|
131
135
|
class: "ha-statistic-layout"
|
132
136
|
}, [
|
133
137
|
J(ee, {
|
134
138
|
ref_key: "searchRef",
|
135
|
-
ref:
|
136
|
-
schema:
|
137
|
-
table:
|
138
|
-
layout:
|
139
|
-
set:
|
140
|
-
"search-data":
|
141
|
-
onChange:
|
139
|
+
ref: d,
|
140
|
+
schema: i(m),
|
141
|
+
table: i(p),
|
142
|
+
layout: i(l),
|
143
|
+
set: i(u),
|
144
|
+
"search-data": i(y),
|
145
|
+
onChange: i(B)
|
142
146
|
}, null, 8, ["schema", "table", "layout", "set", "search-data", "onChange"]),
|
143
147
|
K("div", {
|
144
148
|
ref_key: "chartRef",
|
145
149
|
ref: v,
|
146
150
|
class: "chart",
|
147
|
-
style: P({ height:
|
151
|
+
style: P({ height: i(g) + "px" })
|
148
152
|
}, null, 4)
|
149
153
|
], 512));
|
150
154
|
}
|
151
155
|
});
|
152
156
|
export {
|
153
|
-
|
157
|
+
de as default
|
154
158
|
};
|
@@ -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-Cv9Jvd6d.js";
|
3
3
|
const b = /* @__PURE__ */ c({
|
4
4
|
__name: "Stock",
|
5
5
|
props: {
|