halo-pc 1.0.21 → 1.0.23
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Article-4S7jNdlM.js +200 -0
- package/dist/{ArticleFooter-CbvmQHCn.js → ArticleFooter-DQs1A7g2.js} +24 -18
- package/dist/Autocomplete-B9SJNrNq.js +53 -0
- package/dist/{Autocomplete-BrKsj5vx.js → Autocomplete-BXwtzACg.js} +1 -1
- package/dist/Autocomplete-BZNDoWFj.js +54 -0
- package/dist/{CSharp-DGmv2biT.js → CSharp-aXdVWxPS.js} +1 -1
- package/dist/{Calender-dCiW7eIK.js → Calender-DSckLCh-.js} +4 -4
- package/dist/Callback-xlj8oj2-.js +26 -0
- package/dist/Cascader-Cwi5mukb.js +87 -0
- package/dist/Cascader-D1RbjsMs.js +47 -0
- package/dist/Checkbox-DFnVivE9.js +76 -0
- package/dist/{Checkbox-DklZD5ff.js → Checkbox-DtNMPsX4.js} +1 -1
- package/dist/{Code-DVZ9QWgE.js → Code-B2jpV8ek.js} +1 -1
- package/dist/Code-CEafFSlR.js +4 -0
- package/dist/Code-CTmcyEEu.js +60 -0
- package/dist/Code-DEOvcbgy.js +42 -0
- package/dist/Code.vue_vue_type_style_index_0_lang-Cf1QzL0C.js +65 -0
- package/dist/Column-zAYqqGgI.js +74 -0
- package/dist/Comment-BZTVtxyP.js +104 -0
- package/dist/Compare-DMDVEK_Q.js +63 -0
- package/dist/Compare-Dy_YDKN2.js +43 -0
- package/dist/Copy-KA_-9J5g.js +49 -0
- package/dist/Custom-BpQzSpoK.js +57 -0
- package/dist/{DataExport-DAk1d4uG.js → DataExport-CU9MMI6C.js} +1 -1
- package/dist/{DataExport.vue_vue_type_script_setup_true_lang-Clh4Jvxi.js → DataExport.vue_vue_type_script_setup_true_lang-DdczhsmD.js} +42 -37
- package/dist/{DataImport-BLOSIbQ2.js → DataImport-Dzq9P4hO.js} +1 -1
- package/dist/{DataImport.vue_vue_type_script_setup_true_lang-D5J7e_59.js → DataImport.vue_vue_type_script_setup_true_lang-BdDLixcQ.js} +64 -60
- package/dist/{Date-D1KihBir.js → Date-BD5syhZL.js} +1 -1
- package/dist/Date-yqT5zILQ.js +43 -0
- package/dist/DateRange-CUQsaLxD.js +63 -0
- package/dist/DateTime-DcerQByM.js +44 -0
- package/dist/{DateTime-Dwg6aUf3.js → DateTime-hLc--zka.js} +1 -1
- package/dist/{DateTimeRange-Cir1-Js8.js → DateTimeRange-CSRaF4s1.js} +19 -13
- package/dist/Daterange-DY2i3jwP.js +63 -0
- package/dist/{Decimal-tv9vqaXk.js → Decimal-DY34o2Nh.js} +1 -1
- package/dist/Delete-CXnvlNw9.js +62 -0
- package/dist/{Detail-B2rtvufA.js → Detail-BYlDGKVP.js} +22 -17
- package/dist/Dictionary-DtXqTf_k.js +59 -0
- package/dist/Email-ofMPw09E.js +54 -0
- package/dist/{File-C63qevce.js → File-czipSVR0.js} +33 -28
- package/dist/Image-BwJO-IEo.js +9 -0
- package/dist/{Index-Cc_CDbUJ.js → Index-BSZ_tPMy.js} +1 -1
- package/dist/Index-Bwy9Q7qy.js +4 -0
- package/dist/{Index-Cev7Nudv.js → Index-CK25oTiA.js} +1 -1
- package/dist/Index-Ch5_Jqsf.js +4 -0
- package/dist/{Index-BD6O3A9N.js → Index-DIUPLGQ4.js} +25 -20
- package/dist/Index-DnNVMYOZ.js +4 -0
- package/dist/Index-j9BffBys.js +178 -0
- package/dist/{Index-B6Ec8rbl.js → Index-qOyfJhdG.js} +1 -1
- package/dist/{Index.vue_vue_type_script_setup_true_lang-DaoT5edv.js → Index.vue_vue_type_script_setup_true_lang-Bp4JjtSz.js} +21 -16
- package/dist/{Index.vue_vue_type_script_setup_true_lang-xNPG8cCE.js → Index.vue_vue_type_script_setup_true_lang-DtZPmPAC.js} +21 -16
- package/dist/{Index.vue_vue_type_style_index_0_lang-F7HqBnCS.js → Index.vue_vue_type_style_index_0_lang-CTTyswoD.js} +40 -35
- package/dist/{Install-CTAGNKPW.js → Install-qFVqjd7y.js} +29 -24
- package/dist/Int-BWcRpPzt.js +44 -0
- package/dist/Int-BYyavcrM.js +46 -0
- package/dist/List-BejoBArm.js +79 -0
- package/dist/Maintaince-Dlh2ICnO.js +20 -0
- package/dist/{Markdown-BJB6rQY8.js → Markdown-DymmFy2X.js} +1 -1
- package/dist/{Month-ui1XorBW.js → Month-C5_ANmVr.js} +1 -1
- package/dist/Month-Cf8e0cin.js +43 -0
- package/dist/Month-DaYaF2WK.js +44 -0
- package/dist/{Normal-Cf7kP6RU.js → Normal-NYkjZ2aA.js} +49 -45
- package/dist/Paging-DoQ_cXwj.js +99 -0
- package/dist/{PagingHeader-BkFBl-r_.js → PagingHeader-BhwoSfFl.js} +31 -25
- package/dist/{PagingRow-eXCadgdO.js → PagingRow-BF6pUhoJ.js} +28 -22
- package/dist/QueryApi-CPQ67lb4.js +20 -0
- package/dist/{Racebar-ClXzi9hV.js → Racebar-BNPXg9aN.js} +42 -37
- package/dist/{Radio-llyoK7PI.js → Radio-wHwEjg6V.js} +1 -1
- package/dist/{Register-BaHhaZMu.js → Register-B4Bc8s-2.js} +70 -66
- package/dist/RichText-Cj5QP79L.js +47 -0
- package/dist/{SearchFooter-BgJxQrMo.js → SearchFooter-zNYx9YkN.js} +1 -1
- package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-C6DtjpFD.js → SearchFooter.vue_vue_type_style_index_0_lang-CVxX9q-U.js} +1 -1
- package/dist/{SearchForm-CroUQ_3K.js → SearchForm-CJ3ru63a.js} +1 -1
- package/dist/{SearchForm.vue_vue_type_style_index_0_lang-DEu6hHys.js → SearchForm.vue_vue_type_style_index_0_lang-DDH5N323.js} +37 -33
- package/dist/{Select-BtNeUq9h.js → Select-BDaDhqW7.js} +1 -1
- package/dist/Select-DFLY8nGY.js +86 -0
- package/dist/{Select-BYw63gZy.js → Select-WXibWkE0.js} +35 -30
- package/dist/{Single-CCVi3Pcj.js → Single-CmQgQl_u.js} +106 -102
- package/dist/{Statistic-g3nQvsbW.js → Statistic-BuU_GxqZ.js} +34 -30
- package/dist/{Stock-C6Fxo31l.js → Stock-B7NgfM19.js} +1 -1
- package/dist/{Stock-CNqLeSld.js → Stock-CDJ-AVw-.js} +1 -1
- package/dist/{Stock.vue_vue_type_style_index_0_lang-BqXBN6CJ.js → Stock.vue_vue_type_style_index_0_lang-pZYnIJLp.js} +30 -25
- package/dist/{Switch-NMkH-rhl.js → Switch-DHf-0HZD.js} +1 -1
- package/dist/{Table-DpA4dO4P.js → Table-7P4KXMsy.js} +66 -61
- package/dist/{Table-Cdd_tPoL.js → Table-CN-KYO1R.js} +69 -66
- package/dist/Text-C05EoDxO.js +59 -0
- package/dist/{Text-DanSgaL9.js → Text-Da3ROjFC.js} +18 -12
- package/dist/Text-DqapEwUL.js +4 -0
- package/dist/Text.vue_vue_type_style_index_0_lang-DKX9_aI4.js +59 -0
- package/dist/TextLink-CQ_46bry.js +65 -0
- package/dist/{Textarea-HhP_VFJV.js → Textarea-B91EwIdj.js} +1 -1
- package/dist/Time-DxyveGcA.js +43 -0
- package/dist/Timeline-C1xOEcU4.js +59 -0
- package/dist/Tree-BK6p6Ake.js +122 -0
- package/dist/{Tree-Ck_7r3nf.js → Tree-DxJKaqc6.js} +101 -97
- package/dist/TreeNode-C84IoqkK.js +42 -0
- package/dist/{Update-DrmLFoty.js → Update-D5cXmHyf.js} +20 -15
- package/dist/{UpdateChild-CGCn-Eh4.js → UpdateChild-DvrF1nBA.js} +23 -17
- package/dist/Upload-CK-ALAKV.js +72 -0
- package/dist/Upload-CRpCHz3m.js +150 -0
- package/dist/UploadApi-B-7WPVHD.js +20 -0
- package/dist/Year-BOL9ynRU.js +47 -0
- package/dist/{Year-RGAEzf_V.js → Year-CwaPwkLN.js} +1 -1
- package/dist/assets/@intlify-BISCQg1h.js +2189 -0
- package/dist/assets/@vue-aVYGocXp.js +93 -0
- package/dist/assets/clone-BZn0cTAu.js +134 -0
- package/dist/assets/file-saver-CwlpTZSc.js +74 -0
- package/dist/assets/liquidjs-C-LVcoaY.js +2893 -0
- package/dist/assets/moment-h96o7c8I.js +2578 -0
- package/dist/assets/sprintf-js-BPTdvBYM.js +148 -0
- package/dist/assets/underscore-B0BCaBxV.js +1070 -0
- package/dist/assets/underscore.string-DVXD2SZo.js +425 -0
- package/dist/assets/util-deprecate-Dzun97re.js +28 -0
- package/dist/assets/vue-i18n-CLr3brPz.js +1670 -0
- package/dist/main-CnPQ_RYM.js +8948 -0
- package/dist/main.js +130 -130
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/Article-D3N6eVpH.js +0 -195
- package/dist/Autocomplete-C1Q-qo5y.js +0 -49
- package/dist/Autocomplete-C_t_3Onz.js +0 -48
- package/dist/Callback-BcjLHYz6.js +0 -20
- package/dist/Cascader-BMs1Kw-s.js +0 -81
- package/dist/Cascader-BoZLMQjq.js +0 -41
- package/dist/Checkbox-DeuCkQ_E.js +0 -70
- package/dist/Code-CmB3ZGnM.js +0 -54
- package/dist/Code-Q9ETcIfA.js +0 -36
- package/dist/Code-hiW76EUm.js +0 -4
- package/dist/Code.vue_vue_type_style_index_0_lang-DJO46RBx.js +0 -59
- package/dist/Column-K0p0pVuf.js +0 -69
- package/dist/Comment-B_jDWUXE.js +0 -98
- package/dist/Compare-CziDSVLD.js +0 -37
- package/dist/Compare-DFDzyQIR.js +0 -57
- package/dist/Copy-gHXEFE58.js +0 -43
- package/dist/Custom-DS1OrDHT.js +0 -51
- package/dist/Date-BOrgXdKV.js +0 -37
- package/dist/DateRange-Clg_We_d.js +0 -57
- package/dist/DateTime-Ba-L9NIq.js +0 -38
- package/dist/Daterange-Gaj6hNOK.js +0 -57
- package/dist/Delete-HzVURBlh.js +0 -57
- package/dist/Dictionary-DKnp-UJn.js +0 -55
- package/dist/Email-CpOxaSSw.js +0 -48
- package/dist/Image-DRIunv3_.js +0 -9
- package/dist/Index-DSKuNKCT.js +0 -4
- package/dist/Index-QIBRYf1L.js +0 -4
- package/dist/Index-ZOfKMgat.js +0 -4
- package/dist/Index-bxLda8lZ.js +0 -174
- package/dist/Int-DmNjhEfK.js +0 -38
- package/dist/Int-nUzbSSOv.js +0 -41
- package/dist/List-gNI3y_wH.js +0 -74
- package/dist/Maintaince-pTASKuMA.js +0 -14
- package/dist/Month-CHfaIo8p.js +0 -38
- package/dist/Month-DgztqRaq.js +0 -37
- package/dist/Paging-CBgVct8q.js +0 -95
- package/dist/QueryApi-Wf86Sm6m.js +0 -13
- package/dist/RichText-Cc_jptgY.js +0 -41
- package/dist/Select-wxKjwxJj.js +0 -80
- package/dist/Text-DgZjeg-u.js +0 -4
- package/dist/Text-GuLK7BYX.js +0 -53
- package/dist/Text.vue_vue_type_style_index_0_lang-CYGKr6vh.js +0 -53
- package/dist/TextLink-B_Ur1pg0.js +0 -59
- package/dist/Time-CmyrAm3i.js +0 -37
- package/dist/Timeline-B85T2wBn.js +0 -53
- package/dist/Tree-OqvNLgYj.js +0 -118
- package/dist/TreeNode-Ba2f55wK.js +0 -37
- package/dist/Upload-D9HeSZCg.js +0 -68
- package/dist/Upload-DXADyB6r.js +0 -147
- package/dist/UploadApi-DAT-xdsM.js +0 -13
- package/dist/Year-Dx_qNPrz.js +0 -41
- package/dist/assets/halo-fe-idvmXC0t.js +0 -15923
- package/dist/main-COiaaxGk.js +0 -3542
@@ -1,11 +1,15 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import
|
3
|
-
import
|
4
|
-
import {
|
5
|
-
import
|
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, U as q, a as je, O as Fe, h as He, m as re, b as Me, i as Ae, s as ue } from "./main-CnPQ_RYM.js";
|
5
|
+
import "./assets/file-saver-CwlpTZSc.js";
|
6
|
+
import "./assets/moment-h96o7c8I.js";
|
7
|
+
import "./assets/liquidjs-C-LVcoaY.js";
|
8
|
+
import { _ as Ge } from "./Index.vue_vue_type_style_index_0_lang-CTTyswoD.js";
|
9
|
+
import { _ as ne } from "./Index.vue_vue_type_script_setup_true_lang-DtZPmPAC.js";
|
6
10
|
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 = [
|
7
11
|
We
|
8
|
-
], Ye = /* @__PURE__ */ m("i", { class: "fa fa-question-circle icon-question" }, null, -1), Ze = { class: "el-drawer__title" }, el = ["href"],
|
12
|
+
], Ye = /* @__PURE__ */ m("i", { class: "fa fa-question-circle icon-question" }, null, -1), Ze = { class: "el-drawer__title" }, el = ["href"], ml = /* @__PURE__ */ Ue({
|
9
13
|
__name: "Single",
|
10
14
|
props: {
|
11
15
|
base: {},
|
@@ -15,68 +19,68 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
15
19
|
},
|
16
20
|
emits: ["navigate", "load", "succeed", "close"],
|
17
21
|
setup(se, { expose: ie, emit: de }) {
|
18
|
-
let
|
22
|
+
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(), S = r(), K = r(), C = r(), O = r(), i = r({ page: null, url: null, visible: !1, appendToBody: !1 }), k = r(!1), j = r(), R = r(), pe = (l) => !0, fe = (l) => {
|
19
23
|
let t = q.getPath(ce.value), a = q.getPath(l);
|
20
24
|
return t != a;
|
21
25
|
}, be = () => {
|
22
26
|
Ve();
|
23
|
-
}, ye = (l, t) => {
|
24
|
-
G("copy", l, t);
|
25
27
|
}, _e = (l, t) => {
|
26
|
-
|
28
|
+
A("copy", l, t);
|
29
|
+
}, ye = (l, t) => {
|
30
|
+
A("update", l, t);
|
27
31
|
}, he = () => {
|
28
32
|
i.value.visible = !1;
|
29
|
-
},
|
33
|
+
}, A = (l, t, a) => {
|
30
34
|
let n = ge(l, t);
|
31
|
-
a.ctrlKey ?
|
35
|
+
a.ctrlKey ? D("navigate", n) : (i.value.appendToBody = a.altKey, i.value.page = l, i.value.url = n, i.value.visible = !0);
|
32
36
|
}, ge = (l, t = null) => {
|
33
37
|
let a = `${b.value[l].route}`;
|
34
38
|
if (t != null) {
|
35
|
-
let n = t[
|
39
|
+
let n = t[_.value.key.name];
|
36
40
|
a += `?id=${n}`;
|
37
41
|
}
|
38
42
|
return a;
|
39
43
|
}, we = (l, t, a) => {
|
40
|
-
(a.ctrlKey || k.value) && (
|
44
|
+
(a.ctrlKey || k.value) && (j.value = l, R.value = Fe.clone(t), k.value = !0, R.value.fields.forEach((n) => {
|
41
45
|
n.control.textualize = !1;
|
42
46
|
}));
|
43
|
-
},
|
44
|
-
i.value.visible = !1,
|
47
|
+
}, G = (l) => {
|
48
|
+
i.value.visible = !1, D("succeed", W.value, l);
|
45
49
|
}, Ce = () => {
|
46
|
-
|
50
|
+
D("close");
|
47
51
|
}, I = (l, t, a, n, T) => {
|
48
52
|
}, J = (l, t) => {
|
49
53
|
if (t) {
|
50
|
-
|
54
|
+
L.value = _.value.layouts.find((a) => a.type == l);
|
51
55
|
return;
|
52
56
|
}
|
53
57
|
v.value.layout = v.value.table.layouts.find((a) => a.type == l);
|
54
58
|
}, ke = (l) => {
|
55
|
-
let t =
|
59
|
+
let t = u.value.find((a) => a.name == l);
|
56
60
|
v.value.table = t, v.value.layout = t.layouts[0];
|
57
61
|
}, xe = (l) => {
|
58
62
|
let t = Object.keys(l)[0], a = t.substring(1, t.indexOf("]"));
|
59
|
-
|
60
|
-
},
|
63
|
+
u.value.find((T) => T.name == a).main || (w.value = a);
|
64
|
+
}, Se = (l, t = null, a = null) => {
|
61
65
|
ae(() => {
|
62
66
|
E.value.validate((n, T) => {
|
63
67
|
if (!n)
|
64
68
|
return xe(T), a && a(!1), !1;
|
65
|
-
let
|
66
|
-
t && t(
|
67
|
-
E.value.clearValidate(),
|
68
|
-
}).catch(({ code:
|
69
|
-
if (
|
69
|
+
let U = f.value.type == "Update" ? b.value.update.route : b.value.insert.route;
|
70
|
+
t && t(U, c.value), He.post(U, c.value).then(({ data: $, message: V }) => {
|
71
|
+
E.value.clearValidate(), re.success(V), G(c.value);
|
72
|
+
}).catch(({ code: $, data: V, message: X }) => {
|
73
|
+
if ($ != "ValidateError")
|
70
74
|
return;
|
71
|
-
|
72
|
-
let
|
73
|
-
if (
|
74
|
-
let
|
75
|
-
|
75
|
+
N.value = V;
|
76
|
+
let P = V.find((y) => y.table !== _.value.name);
|
77
|
+
if (P) {
|
78
|
+
let y = u.value.find((o) => o.name == P.table);
|
79
|
+
y && (w.value = y.name);
|
76
80
|
}
|
77
81
|
ae(() => {
|
78
|
-
E.value.clearValidate(), E.value.validate((
|
79
|
-
|
82
|
+
E.value.clearValidate(), E.value.validate((y, o) => {
|
83
|
+
y || (a && a(!1), N.value = []);
|
80
84
|
});
|
81
85
|
});
|
82
86
|
}).finally(() => {
|
@@ -87,73 +91,73 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
87
91
|
}, Q = (l) => {
|
88
92
|
var a, n;
|
89
93
|
let t = Me(l.module.type, l.module.name);
|
90
|
-
|
91
|
-
},
|
92
|
-
|
94
|
+
Ae.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), _.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]);
|
95
|
+
}, Re = (l) => {
|
96
|
+
S.value && S.value.resize && S.value.resize(l), C.value && C.value.resize && C.value.resize(l);
|
93
97
|
}, Te = (l, t) => {
|
94
98
|
if (l == "ctrlS") {
|
95
|
-
if (
|
96
|
-
if (!
|
99
|
+
if (f.value.type == "Detail") {
|
100
|
+
if (!O.value || !O.value.keyboard)
|
97
101
|
return !1;
|
98
|
-
|
102
|
+
O.value.keyboard(l, t);
|
99
103
|
return;
|
100
104
|
}
|
101
|
-
|
105
|
+
F(t);
|
102
106
|
}
|
103
107
|
}, Ve = () => {
|
104
108
|
let l = q.getUrl(z.value.path, z.value.query);
|
105
|
-
|
109
|
+
D("load", l, !1, (t) => {
|
106
110
|
});
|
107
111
|
};
|
108
112
|
(() => {
|
109
|
-
Q(
|
113
|
+
Q(M.value.data);
|
110
114
|
})();
|
111
|
-
let
|
112
|
-
if (!
|
113
|
-
|
115
|
+
let F = (l) => {
|
116
|
+
if (!K.value.submit) {
|
117
|
+
re.notify("提示", "请在子组件暴露submit方法来实现快捷提交", "warning");
|
114
118
|
return;
|
115
119
|
}
|
116
|
-
|
120
|
+
K.value.submit(l);
|
117
121
|
}, ze = Y(() => {
|
118
|
-
let l = `/${
|
119
|
-
return
|
120
|
-
}), W = Y(() =>
|
121
|
-
return
|
122
|
-
Q(l.data),
|
123
|
-
}), ie({ shouldLoad:
|
124
|
-
const a =
|
125
|
-
return d(),
|
122
|
+
let l = `/${_.value.name}/update`, t = f.value.type == "Detail" ? "detail" : "update";
|
123
|
+
return Pe.getComponent(l, "partial", t);
|
124
|
+
}), W = Y(() => f.value.type.toLowerCase());
|
125
|
+
return Be(() => M.value, (l) => {
|
126
|
+
Q(l.data), S.value.update && S.value.update(l.data), C.value && C.value.update && C.value.update(l.data);
|
127
|
+
}), ie({ shouldLoad: pe, shouldSpin: fe, keyboard: Te, refresh: be, resize: Re }), (l, t) => {
|
128
|
+
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");
|
129
|
+
return d(), H("div", {
|
126
130
|
ref_key: "singleRef",
|
127
131
|
ref: ve,
|
128
|
-
class:
|
132
|
+
class: De(["ha-single-page", { [e(W) + "-page"]: !0, editing: e(k) }])
|
129
133
|
}, [
|
130
134
|
m("div", Ie, [
|
131
|
-
h(
|
135
|
+
h($, { class: "main-scroller" }, {
|
132
136
|
default: s(() => [
|
133
|
-
h(
|
137
|
+
h(U, {
|
134
138
|
ref_key: "formRef",
|
135
139
|
ref: E,
|
136
140
|
model: e(c),
|
137
|
-
onSubmit: t[3] || (t[3] =
|
141
|
+
onSubmit: t[3] || (t[3] = Le(() => {
|
138
142
|
}, ["prevent"]))
|
139
143
|
}, {
|
140
144
|
default: s(() => [
|
141
145
|
h(ne, {
|
142
146
|
ref_key: "mainRef",
|
143
|
-
ref:
|
144
|
-
module: e(
|
145
|
-
schema: e(
|
146
|
-
table: e(
|
147
|
-
layout: e(
|
147
|
+
ref: S,
|
148
|
+
module: e(f),
|
149
|
+
schema: e(u),
|
150
|
+
table: e(_),
|
151
|
+
layout: e(L),
|
148
152
|
next: e(b),
|
149
153
|
set: e(c),
|
150
154
|
route: e(z),
|
151
|
-
"validate-errors": e(
|
155
|
+
"validate-errors": e(N),
|
152
156
|
onChange: e(I),
|
153
157
|
onLayoutChange: t[0] || (t[0] = (o) => e(J)(o, !0)),
|
154
|
-
onSubmit: e(
|
158
|
+
onSubmit: e(F)
|
155
159
|
}, null, 8, ["module", "schema", "table", "layout", "next", "set", "route", "validate-errors", "onChange", "onSubmit"]),
|
156
|
-
e(
|
160
|
+
e(u).length > 1 ? (d(), g(T, {
|
157
161
|
key: 0,
|
158
162
|
type: "border-card",
|
159
163
|
onTabChange: e(ke),
|
@@ -161,7 +165,7 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
161
165
|
"onUpdate:modelValue": t[1] || (t[1] = (o) => Z(w) ? w.value = o : w = o)
|
162
166
|
}, {
|
163
167
|
default: s(() => [
|
164
|
-
(d(!0),
|
168
|
+
(d(!0), H(ee, null, le(e(u).filter((o, Ee) => Ee > 0), (o) => (d(), g(n, {
|
165
169
|
name: o.name,
|
166
170
|
key: o.name
|
167
171
|
}, {
|
@@ -172,7 +176,7 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
172
176
|
disabled: !o.tooltip
|
173
177
|
}, {
|
174
178
|
default: s(() => [
|
175
|
-
m("div", null, x(e(
|
179
|
+
m("div", null, x(e(qe)(o.table)), 1)
|
176
180
|
]),
|
177
181
|
_: 2
|
178
182
|
}, 1032, ["content", "disabled"])
|
@@ -181,53 +185,53 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
181
185
|
}, 1032, ["name"]))), 128))
|
182
186
|
]),
|
183
187
|
_: 1
|
184
|
-
}, 8, ["onTabChange", "modelValue"])) :
|
188
|
+
}, 8, ["onTabChange", "modelValue"])) : B("", !0),
|
185
189
|
e(v).table ? (d(), g(ne, {
|
186
190
|
key: 1,
|
187
191
|
ref_key: "childRef",
|
188
192
|
ref: C,
|
189
|
-
module: e(
|
190
|
-
schema: e(
|
193
|
+
module: e(f),
|
194
|
+
schema: e(u),
|
191
195
|
table: e(v).table,
|
192
196
|
layout: e(v).layout,
|
193
197
|
next: e(b),
|
194
198
|
set: e(c),
|
195
199
|
route: e(z),
|
196
|
-
"validate-errors": e(
|
200
|
+
"validate-errors": e(N),
|
197
201
|
onRowEdit: e(we),
|
198
202
|
onChange: e(I),
|
199
203
|
onLayoutChange: t[2] || (t[2] = (o) => e(J)(o, !1)),
|
200
|
-
onSubmit: e(
|
201
|
-
}, null, 8, ["module", "schema", "table", "layout", "next", "set", "route", "validate-errors", "onRowEdit", "onChange", "onSubmit"])) :
|
204
|
+
onSubmit: e(F)
|
205
|
+
}, null, 8, ["module", "schema", "table", "layout", "next", "set", "route", "validate-errors", "onRowEdit", "onChange", "onSubmit"])) : B("", !0)
|
202
206
|
]),
|
203
207
|
_: 1
|
204
208
|
}, 8, ["model"])
|
205
209
|
]),
|
206
210
|
_: 1
|
207
211
|
}),
|
208
|
-
(d(), g(
|
212
|
+
(d(), g(Ne(e(ze)), {
|
209
213
|
ref_key: "updateRef",
|
210
|
-
ref:
|
214
|
+
ref: K,
|
211
215
|
class: "main-footer",
|
212
|
-
schema: e(
|
213
|
-
table: e(
|
214
|
-
layout: e(
|
216
|
+
schema: e(u),
|
217
|
+
table: e(_),
|
218
|
+
layout: e(L),
|
215
219
|
next: e(b),
|
216
220
|
set: e(c),
|
217
221
|
route: e(z),
|
218
|
-
onCopy: e(
|
219
|
-
onEdit: e(
|
220
|
-
onSubmit: e(
|
222
|
+
onCopy: e(_e),
|
223
|
+
onEdit: e(ye),
|
224
|
+
onSubmit: e(Se),
|
221
225
|
onClose: e(Ce)
|
222
226
|
}, null, 40, ["schema", "table", "layout", "next", "set", "route", "onCopy", "onEdit", "onSubmit", "onClose"]))
|
223
227
|
]),
|
224
|
-
e(k) ? (d(), g(
|
228
|
+
e(k) ? (d(), g(P, {
|
225
229
|
key: 0,
|
226
230
|
class: "side-form"
|
227
231
|
}, {
|
228
232
|
header: s(() => [
|
229
233
|
m("div", Je, [
|
230
|
-
m("div", Qe, x(e(oe)("common.modify")) + " " + x(e(
|
234
|
+
m("div", Qe, x(e(oe)("common.modify")) + " " + x(e(j)[e(R).show[0].name]), 1),
|
231
235
|
m("div", {
|
232
236
|
class: "row-close",
|
233
237
|
onClick: t[4] || (t[4] = (o) => Z(k) ? k.value = !1 : k = !1)
|
@@ -235,19 +239,19 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
235
239
|
])
|
236
240
|
]),
|
237
241
|
default: s(() => [
|
238
|
-
h(
|
242
|
+
h($, null, {
|
239
243
|
default: s(() => [
|
240
|
-
h(
|
244
|
+
h(U, {
|
241
245
|
size: "small",
|
242
246
|
"label-width": "80px"
|
243
247
|
}, {
|
244
248
|
default: s(() => [
|
245
|
-
(d(!0),
|
246
|
-
style:
|
249
|
+
(d(!0), H(ee, null, le(e(R).show, (o) => (d(), g(X, {
|
250
|
+
style: Oe(o.control.height ? `height: ${o.control.height}px;` : ""),
|
247
251
|
rules: o.rules
|
248
252
|
}, {
|
249
253
|
label: s(() => [
|
250
|
-
te(x(e(
|
254
|
+
te(x(e(Ke)(e(R).name, o.name)) + " ", 1),
|
251
255
|
o.control.tooltip ? (d(), g(V, {
|
252
256
|
key: 0,
|
253
257
|
trigger: "hover",
|
@@ -262,15 +266,15 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
262
266
|
m("pre", null, x(o.control.tooltip.content), 1)
|
263
267
|
]),
|
264
268
|
_: 2
|
265
|
-
}, 1032, ["title"])) :
|
269
|
+
}, 1032, ["title"])) : B("", !0)
|
266
270
|
]),
|
267
271
|
default: s(() => [
|
268
|
-
h(
|
269
|
-
schema: e(
|
270
|
-
table: e(
|
272
|
+
h(Ge, {
|
273
|
+
schema: e(u),
|
274
|
+
table: e(R),
|
271
275
|
field: o,
|
272
276
|
set: e(c),
|
273
|
-
row: e(
|
277
|
+
row: e(j)
|
274
278
|
}, null, 8, ["schema", "table", "field", "set", "row"])
|
275
279
|
]),
|
276
280
|
_: 2
|
@@ -283,12 +287,12 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
283
287
|
})
|
284
288
|
]),
|
285
289
|
_: 1
|
286
|
-
})) :
|
287
|
-
e(i).page ? (d(), g(
|
290
|
+
})) : B("", !0),
|
291
|
+
e(i).page ? (d(), g(y, {
|
288
292
|
key: 1,
|
289
293
|
"destroy-on-close": "",
|
290
294
|
"append-to-body": e(i).appendToBody,
|
291
|
-
size: `${e(
|
295
|
+
size: `${e(f).width ?? "60%"}`,
|
292
296
|
modelValue: e(i).visible,
|
293
297
|
"onUpdate:modelValue": t[5] || (t[5] = (o) => e(i).visible = o)
|
294
298
|
}, {
|
@@ -302,20 +306,20 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
302
306
|
])
|
303
307
|
]),
|
304
308
|
default: s(() => [
|
305
|
-
h(e(
|
309
|
+
h(e(je), {
|
306
310
|
ref_key: "pageRef",
|
307
|
-
ref:
|
311
|
+
ref: O,
|
308
312
|
url: e(i).url,
|
309
|
-
onSucceed: e(
|
313
|
+
onSucceed: e(G),
|
310
314
|
onClose: e(he)
|
311
315
|
}, null, 8, ["url", "onSucceed", "onClose"])
|
312
316
|
]),
|
313
317
|
_: 1
|
314
|
-
}, 8, ["append-to-body", "size", "modelValue"])) :
|
318
|
+
}, 8, ["append-to-body", "size", "modelValue"])) : B("", !0)
|
315
319
|
], 2);
|
316
320
|
};
|
317
321
|
}
|
318
322
|
});
|
319
323
|
export {
|
320
|
-
|
324
|
+
ml as default
|
321
325
|
};
|
@@ -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
|
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 m } from "vue";
|
2
|
+
import { s as Q, l as U, A as W, C as R, m as X, D as Y } from "./main-CnPQ_RYM.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 Z } from "./SearchForm.vue_vue_type_style_index_0_lang-DDH5N323.js";
|
9
|
+
const ue = /* @__PURE__ */ j({
|
6
10
|
__name: "Statistic",
|
7
11
|
props: {
|
8
12
|
searchData: {},
|
@@ -15,18 +19,18 @@ const ie = /* @__PURE__ */ j({
|
|
15
19
|
set: {}
|
16
20
|
},
|
17
21
|
emits: ["search"],
|
18
|
-
setup(
|
19
|
-
let
|
22
|
+
setup(A, { expose: C, emit: H }) {
|
23
|
+
let F = H, z = A, { route: D, module: B, schema: p, table: x, layout: l, next: ee, set: u, searchData: y } = q(z), s = null, g = null, v = n(), d = n(), b = n(), S = n(), E = (t) => {
|
20
24
|
T("search");
|
21
25
|
}, T = (t, e = null) => {
|
22
|
-
|
26
|
+
F(t, (r) => {
|
23
27
|
m(() => {
|
24
|
-
|
28
|
+
f(), e && e(r);
|
25
29
|
});
|
26
30
|
});
|
27
|
-
},
|
28
|
-
let t =
|
29
|
-
title: { text:
|
31
|
+
}, f = () => {
|
32
|
+
let t = W.distinct(u.value[l.value.table], (a) => a[l.value.date]), e = {
|
33
|
+
title: { text: B.value.title, left: "center", textStyle: { color: "#777" } },
|
30
34
|
//标题
|
31
35
|
tooltip: { trigger: "axis" },
|
32
36
|
//提示
|
@@ -60,10 +64,10 @@ const ie = /* @__PURE__ */ j({
|
|
60
64
|
series: []
|
61
65
|
};
|
62
66
|
R.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), _ = x.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 || X.error("颜色字段不能为空");
|
67
71
|
let c = {
|
68
72
|
name: o.text,
|
69
73
|
type: "line",
|
@@ -112,45 +116,45 @@ const ie = /* @__PURE__ */ j({
|
|
112
116
|
e.xAxis.data.push(...t), s.setOption(e);
|
113
117
|
}, k = () => {
|
114
118
|
var r;
|
115
|
-
let t =
|
119
|
+
let t = Y.getHeight([(r = d.value) == null ? void 0 : r.$el]), e = S.value.getBoundingClientRect();
|
116
120
|
v.value = e.height - t - 10 - 1;
|
117
121
|
}, V = (t) => {
|
118
|
-
|
122
|
+
d.value.resize(t), m(() => {
|
119
123
|
k(), s == null || s.resize();
|
120
124
|
});
|
121
|
-
},
|
125
|
+
}, N = () => {
|
122
126
|
k(), m(() => {
|
123
|
-
s =
|
127
|
+
s = g.init(b.value), f();
|
124
128
|
});
|
125
129
|
};
|
126
130
|
return G(async () => {
|
127
|
-
|
131
|
+
y.value = Q.getConditionForm(p.value, D.value.query.condition), g = await U.getECharts(), N();
|
128
132
|
}), M(() => l.value, (t, e) => {
|
129
|
-
|
130
|
-
}),
|
133
|
+
f();
|
134
|
+
}), C({ resize: V }), (t, e) => (O(), I("div", {
|
131
135
|
ref_key: "statisticRef",
|
132
136
|
ref: S,
|
133
137
|
class: "ha-statistic-layout"
|
134
138
|
}, [
|
135
|
-
|
139
|
+
J(Z, {
|
136
140
|
ref_key: "searchRef",
|
137
|
-
ref:
|
138
|
-
schema: i(
|
139
|
-
table: i(
|
141
|
+
ref: d,
|
142
|
+
schema: i(p),
|
143
|
+
table: i(x),
|
140
144
|
layout: i(l),
|
141
145
|
set: i(u),
|
142
|
-
"search-data": i(
|
143
|
-
onChange: i(
|
146
|
+
"search-data": i(y),
|
147
|
+
onChange: i(E)
|
144
148
|
}, null, 8, ["schema", "table", "layout", "set", "search-data", "onChange"]),
|
145
|
-
|
149
|
+
K("div", {
|
146
150
|
ref_key: "chartRef",
|
147
151
|
ref: b,
|
148
152
|
class: "chart",
|
149
|
-
style:
|
153
|
+
style: P({ height: i(v) + "px" })
|
150
154
|
}, null, 4)
|
151
155
|
], 512));
|
152
156
|
}
|
153
157
|
});
|
154
158
|
export {
|
155
|
-
|
159
|
+
ue as default
|
156
160
|
};
|
@@ -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-pZYnIJLp.js";
|
3
3
|
const b = /* @__PURE__ */ c({
|
4
4
|
__name: "Stock",
|
5
5
|
props: {
|