halo-pc 1.0.15 → 1.0.16
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Article-DASEvkfO.js +194 -0
- package/dist/{ArticleFooter-BFYDplbW.js → ArticleFooter-BSesl8iy.js} +17 -24
- package/dist/{Autocomplete-CIXGPZaG.js → Autocomplete-ClAQY5V5.js} +1 -1
- package/dist/Autocomplete-CzfOoMve.js +48 -0
- package/dist/Autocomplete-DToic2Cg.js +49 -0
- package/dist/{CSharp-BGzxI5QJ.js → CSharp-23QccebX.js} +1 -1
- package/dist/{Calender-DkBPl9bM.js → Calender-DZkQaIeV.js} +3 -3
- package/dist/Callback-CWBDUe_C.js +20 -0
- package/dist/Cascader-BDfFyqiv.js +41 -0
- package/dist/Cascader-CpD_hbhQ.js +81 -0
- package/dist/Checkbox--gCBkIuI.js +70 -0
- package/dist/{Checkbox-CuRjXSPc.js → Checkbox-SLi7MK1r.js} +1 -1
- package/dist/Code-BVTjF5rW.js +54 -0
- package/dist/{Code-BlwPnx9J.js → Code-C4hdU4t4.js} +1 -1
- package/dist/Code-CO4WPAe_.js +4 -0
- package/dist/Code-nrn4wOhB.js +36 -0
- package/dist/Code.vue_vue_type_style_index_0_lang-BgAnkZ3j.js +59 -0
- package/dist/Column-DcMAu4JL.js +68 -0
- package/dist/Comment-CPxVIapg.js +98 -0
- package/dist/Compare-C2oFy0EZ.js +56 -0
- package/dist/Compare-P9zOBC1v.js +26 -0
- package/dist/Copy-B5vrho98.js +43 -0
- package/dist/Custom-BETJLilj.js +51 -0
- package/dist/{DataExport-C0jItlVY.js → DataExport-YTc4EX6l.js} +1 -1
- package/dist/{DataExport.vue_vue_type_script_setup_true_lang-Dx7mLyuz.js → DataExport.vue_vue_type_script_setup_true_lang-amvVzv4A.js} +34 -40
- package/dist/{DataImport-BfBkneEy.js → DataImport-ByV8MQkV.js} +1 -1
- package/dist/{DataImport.vue_vue_type_script_setup_true_lang-C9qjFakZ.js → DataImport.vue_vue_type_script_setup_true_lang-CYwCKg5Z.js} +61 -66
- package/dist/{Date-B8b9JXpP.js → Date-DbTzQla9.js} +1 -1
- package/dist/Date-DpiWNuFs.js +37 -0
- package/dist/DateRange-Su0Q2cwY.js +57 -0
- package/dist/{DateTime-DjhuyxFC.js → DateTime-C3NrioJi.js} +1 -1
- package/dist/DateTime-QyKfqaVG.js +38 -0
- package/dist/{DateTimeRange-D01wtitk.js → DateTimeRange-lytkhCjC.js} +11 -18
- package/dist/Daterange-D7ZHkOmo.js +57 -0
- package/dist/{Decimal-DqMMTfvl.js → Decimal-CTTT98BQ.js} +1 -1
- package/dist/Delete-MfXy7gUi.js +56 -0
- package/dist/{Detail-C-OFWPso.js → Detail-CUiSzyT7.js} +16 -23
- package/dist/Dictionary-Dd_IU-Hn.js +55 -0
- package/dist/Email-BzN4JpJv.js +48 -0
- package/dist/{File-C2fLmTcj.js → File-Ckh37Ne2.js} +42 -49
- package/dist/Image-Dkd69DoD.js +9 -0
- package/dist/Index-CGJLRExG.js +4 -0
- package/dist/Index-CLzHDG05.js +4 -0
- package/dist/Index-DJJcNPgN.js +173 -0
- package/dist/{Index-B90giDWQ.js → Index-DlrpDUD3.js} +1 -1
- package/dist/Index-DxvVjg9S.js +70 -0
- package/dist/{Index-CQURvmzd.js → Index-G36KYPCK.js} +1 -1
- package/dist/Index-dTIwhIau.js +4 -0
- package/dist/{Index-D7DerkIw.js → Index-x4c71OJZ.js} +1 -1
- package/dist/{Index.vue_vue_type_script_setup_true_lang-DZdvfweh.js → Index.vue_vue_type_script_setup_true_lang-8g0L1e0O.js} +16 -23
- package/dist/{Index.vue_vue_type_script_setup_true_lang-B93cecQQ.js → Index.vue_vue_type_script_setup_true_lang-oQyBcgPa.js} +16 -23
- package/dist/{Index.vue_vue_type_style_index_0_lang-DYwz3Eu2.js → Index.vue_vue_type_style_index_0_lang-DVYceMeD.js} +30 -36
- package/dist/{Install-Cqj44p9F.js → Install-BW_ulT9I.js} +20 -27
- package/dist/Int-BRqYiJo7.js +41 -0
- package/dist/{Int-Bj3Gagp5.js → Int-BYSjwPG_.js} +9 -16
- package/dist/List-DAFqVlam.js +73 -0
- package/dist/Maintaince-B8mM4PEp.js +14 -0
- package/dist/{Markdown-COY9enBf.js → Markdown-BXKlgSON.js} +1 -1
- package/dist/Month-BHvq72xE.js +37 -0
- package/dist/Month-BiW1DL44.js +38 -0
- package/dist/{Month-B7jIGlKI.js → Month-DKeTzNrD.js} +1 -1
- package/dist/{Normal-B8YL2DeI.js → Normal-CgSREifM.js} +52 -58
- package/dist/Paging-D02YApLL.js +94 -0
- package/dist/{PagingHeader-c1vaXeWH.js → PagingHeader-DJ7MmfGl.js} +37 -44
- package/dist/{PagingRow-CHDlm8UI.js → PagingRow-BM1GMtrr.js} +21 -28
- package/dist/QueryApi-ChpV_S8J.js +13 -0
- package/dist/{Racebar-ClsuYbRj.js → Racebar-CZlaC5Gm.js} +43 -49
- package/dist/{Radio-C6j5nvI9.js → Radio-BPq3WJa4.js} +1 -1
- package/dist/{Register-BnwfjjXP.js → Register-ByxrZyWq.js} +74 -80
- package/dist/RichText-BtQDAhn9.js +41 -0
- package/dist/{SearchFooter-D10vYX7H.js → SearchFooter-B61gsy3w.js} +1 -1
- package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-B3AD4sx-.js → SearchFooter.vue_vue_type_style_index_0_lang-CZv7EteY.js} +1 -1
- package/dist/{SearchForm-BRKHMJRS.js → SearchForm-CLvZoPGQ.js} +1 -1
- package/dist/{SearchForm.vue_vue_type_style_index_0_lang-B-YCROWC.js → SearchForm.vue_vue_type_style_index_0_lang-DnjtHyTb.js} +34 -40
- package/dist/Select-C_afSAvf.js +111 -0
- package/dist/{Select-Z8b2t5QQ.js → Select-DGXJMnE9.js} +19 -26
- package/dist/{Select-BiFIpc5-.js → Select-Nb9K2FMY.js} +1 -1
- package/dist/{Single-DdcVVH9V.js → Single-C-2qA2MU.js} +111 -117
- package/dist/{Statistic-B7niMPBf.js → Statistic-B1K-qIZb.js} +30 -36
- package/dist/{Stock-CRsu1vcy.js → Stock-C560McFR.js} +1 -1
- package/dist/{Stock-xm8v4vDf.js → Stock-_rnn0B8I.js} +1 -1
- package/dist/{Stock.vue_vue_type_style_index_0_lang-Cb3jPDk8.js → Stock.vue_vue_type_style_index_0_lang-BEwvRtU6.js} +26 -32
- package/dist/{Switch-BaER4xWy.js → Switch-BadvkLSw.js} +1 -1
- package/dist/{Table-a5uj25Nj.js → Table-B46N43V3.js} +69 -74
- package/dist/{Table-C2dYPoGi.js → Table-Dk48tQ1r.js} +59 -66
- package/dist/Text-CNF204mx.js +53 -0
- package/dist/Text-DblKaz4m.js +52 -0
- package/dist/Text-y-q7UXlg.js +4 -0
- package/dist/Text.vue_vue_type_style_index_0_lang-DtnGWes5.js +53 -0
- package/dist/TextLink-B4Q0zX1K.js +59 -0
- package/dist/{Textarea-DAICkidp.js → Textarea-D1BOQFgK.js} +1 -1
- package/dist/Time-DZQxglEi.js +37 -0
- package/dist/Timeline-8QaD9H_I.js +53 -0
- package/dist/Tree-BUcyK0i_.js +117 -0
- package/dist/{Tree-BwQkDP2T.js → Tree-DVeTdmmL.js} +66 -72
- package/dist/TreeNode-BScAFHPZ.js +37 -0
- package/dist/{Update-BZe92EwV.js → Update-BbU5H_Qf.js} +14 -21
- package/dist/{UpdateChild-DN6pwrUK.js → UpdateChild-BbXuXfOR.js} +19 -26
- package/dist/Upload-C1obfZui.js +146 -0
- package/dist/Upload-CmtHETKR.js +67 -0
- package/dist/UploadApi-2sfpKCMa.js +13 -0
- package/dist/Year-CRd3PkNx.js +41 -0
- package/dist/{Year-2tcz8PDF.js → Year-CTo-9KjE.js} +1 -1
- package/dist/main-65efBfek.js +19835 -0
- package/dist/main.js +53 -54
- package/dist/style.css +1 -1
- package/esm/coms/partials/ArticleFooter.vue.d.ts +1 -1
- package/esm/coms/partials/PagingRow.vue.d.ts +1 -1
- package/esm/vite.config.d.ts +6 -0
- package/package.json +1 -1
- package/dist/Article-BH4dl6Bf.js +0 -201
- package/dist/Autocomplete-DYxWYClO.js +0 -55
- package/dist/Autocomplete-SOenNkH4.js +0 -54
- package/dist/Callback-B57W83N1.js +0 -27
- package/dist/Cascader-BI6T7N-q.js +0 -88
- package/dist/Cascader-BoN_F8v4.js +0 -48
- package/dist/Checkbox-DdolP6wO.js +0 -77
- package/dist/Code--y8oCkjX.js +0 -43
- package/dist/Code-C48Gf7gU.js +0 -61
- package/dist/Code-DiOQvIZv.js +0 -4
- package/dist/Code.vue_vue_type_style_index_0_lang-DlLh3JlB.js +0 -66
- package/dist/Column-BNGw36Iq.js +0 -75
- package/dist/Comment-D37SdQb6.js +0 -105
- package/dist/Compare-C09T8aaU.js +0 -33
- package/dist/Compare-CnnCTG12.js +0 -63
- package/dist/Copy-DNrXXJRQ.js +0 -50
- package/dist/Custom--I04Jyzr.js +0 -58
- package/dist/Date-TKW4HbCJ.js +0 -44
- package/dist/DateRange-JCP1Eokf.js +0 -64
- package/dist/DateTime-DVOVXS_f.js +0 -45
- package/dist/Daterange-CqHXC9JN.js +0 -64
- package/dist/Delete-PcTE_3Cp.js +0 -63
- package/dist/Dictionary-Cfhmc2OQ.js +0 -60
- package/dist/Email-Rj-ZvdfJ.js +0 -55
- package/dist/Image-zgBgvAup.js +0 -9
- package/dist/Index-9fyKz8TT.js +0 -4
- package/dist/Index-CAlWNb2l.js +0 -179
- package/dist/Index-CjFLlnmH.js +0 -4
- package/dist/Index-Cr2WAY6Z.js +0 -76
- package/dist/Index-Izl4chSJ.js +0 -4
- package/dist/Int-dlbcQ6_t.js +0 -47
- package/dist/List-BsAOvgmQ.js +0 -80
- package/dist/Maintaince-DjSvIfbu.js +0 -21
- package/dist/Month-BhNUuzcc.js +0 -44
- package/dist/Month-KDuTRSA0.js +0 -45
- package/dist/Paging-BlFnu-w0.js +0 -100
- package/dist/QueryApi-Bc_kmvgs.js +0 -21
- package/dist/RichText-BImFNkHQ.js +0 -48
- package/dist/Select-f15Y0Ko-.js +0 -118
- package/dist/Text-CMEzogZ8.js +0 -4
- package/dist/Text-CqKE2xDo.js +0 -59
- package/dist/Text-DfqLW_KH.js +0 -60
- package/dist/Text.vue_vue_type_style_index_0_lang-BNpeGb1c.js +0 -60
- package/dist/TextLink-XJurKE8Q.js +0 -66
- package/dist/Time-BmdIHgOY.js +0 -44
- package/dist/Timeline-BOPAiaK-.js +0 -60
- package/dist/Tree-BR8gmBBa.js +0 -123
- package/dist/TreeNode-CdBVgaRW.js +0 -43
- package/dist/Upload-BtErvzEO.js +0 -151
- package/dist/Upload-vPTA8ndw.js +0 -73
- package/dist/UploadApi-CpwS4Kf1.js +0 -21
- package/dist/Year-CVqwpSLR.js +0 -48
- package/dist/assets/@intlify-BISCQg1h.js +0 -2189
- package/dist/assets/@monaco-editor-BCDRi0Ti.js +0 -258
- package/dist/assets/@vue-aVYGocXp.js +0 -93
- package/dist/assets/clone-BZn0cTAu.js +0 -134
- package/dist/assets/file-saver-CwlpTZSc.js +0 -74
- package/dist/assets/liquidjs-C-LVcoaY.js +0 -2893
- package/dist/assets/moment-h96o7c8I.js +0 -2578
- package/dist/assets/sprintf-js-BPTdvBYM.js +0 -148
- package/dist/assets/state-local-CEworIRt.js +0 -131
- package/dist/assets/underscore-B0BCaBxV.js +0 -1070
- package/dist/assets/underscore.string-DVXD2SZo.js +0 -425
- package/dist/assets/util-deprecate-Dzun97re.js +0 -28
- package/dist/assets/vue-i18n-CLr3brPz.js +0 -1670
- package/dist/main-BS_9gx1M.js +0 -8937
@@ -1,16 +1,10 @@
|
|
1
|
-
import { defineComponent as Ue, toRefs as $e, ref as
|
2
|
-
import "./
|
3
|
-
import "./
|
4
|
-
import {
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
import "./assets/liquidjs-C-LVcoaY.js";
|
9
|
-
import { _ as Ge } from "./Index.vue_vue_type_style_index_0_lang-DYwz3Eu2.js";
|
10
|
-
import { _ as ne } from "./Index.vue_vue_type_script_setup_true_lang-B93cecQQ.js";
|
11
|
-
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 = [
|
12
|
-
We
|
13
|
-
], Ye = /* @__PURE__ */ m("i", { class: "fa fa-question-circle icon-question" }, null, -1), Ze = { class: "el-drawer__title" }, el = ["href"], cl = /* @__PURE__ */ Ue({
|
1
|
+
import { defineComponent as Ue, toRefs as $e, ref as u, computed as Y, watch as Le, resolveComponent as f, openBlock as d, createElementBlock as W, normalizeClass as Be, unref as e, createElementVNode as m, createVNode as h, withCtx as s, withModifiers as De, createBlock as g, isRef as Z, Fragment as ee, renderList as le, toDisplayString as x, createCommentVNode as L, resolveDynamicComponent as qe, normalizeStyle as Ke, createTextVNode as te, nextTick as ae } from "vue";
|
2
|
+
import { c as Ne, K as Pe, U as oe, q as Fe, W as P, _ as Me, t as Oe, L as We, a as ue, b as je, G as Ae, s as re } from "./main-65efBfek.js";
|
3
|
+
import { _ as Ge } from "./Index.vue_vue_type_style_index_0_lang-DVYceMeD.js";
|
4
|
+
import { _ as ne } from "./Index.vue_vue_type_script_setup_true_lang-oQyBcgPa.js";
|
5
|
+
const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class: "row-title" }, Qe = /* @__PURE__ */ m("i", { class: "fa fa-close" }, null, -1), Xe = [
|
6
|
+
Qe
|
7
|
+
], Ye = /* @__PURE__ */ m("i", { class: "fa fa-question-circle icon-question" }, null, -1), Ze = { class: "el-drawer__title" }, el = ["href"], rl = /* @__PURE__ */ Ue({
|
14
8
|
__name: "Single",
|
15
9
|
props: {
|
16
10
|
base: {},
|
@@ -20,68 +14,68 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
20
14
|
},
|
21
15
|
emits: ["navigate", "load", "succeed", "close"],
|
22
16
|
setup(se, { expose: ie, emit: de }) {
|
23
|
-
let
|
24
|
-
let t =
|
17
|
+
let B = de, me = se, { url: ce, base: j, route: z } = $e(me), p = u(), b = u(), c = u(), r = u(), y = u(), D = u(), v = u({ table: null, layout: null }), w = u(), q = u([]), ve = u(), E = u(), R = u(), F = u(), C = u(), K = u(), i = u({ page: null, url: null, visible: !1, appendToBody: !1 }), k = u(!1), M = u(), S = u(), fe = (l) => !0, pe = (l) => {
|
18
|
+
let t = P.getPath(ce.value), a = P.getPath(l);
|
25
19
|
return t != a;
|
26
20
|
}, be = () => {
|
27
21
|
Ve();
|
28
|
-
}, _e = (l, t) => {
|
29
|
-
A("copy", l, t);
|
30
22
|
}, ye = (l, t) => {
|
23
|
+
A("copy", l, t);
|
24
|
+
}, _e = (l, t) => {
|
31
25
|
A("update", l, t);
|
32
26
|
}, he = () => {
|
33
27
|
i.value.visible = !1;
|
34
28
|
}, A = (l, t, a) => {
|
35
29
|
let n = ge(l, t);
|
36
|
-
a.ctrlKey ?
|
30
|
+
a.ctrlKey ? B("navigate", n) : (i.value.appendToBody = a.altKey, i.value.page = l, i.value.url = n, i.value.visible = !0);
|
37
31
|
}, ge = (l, t = null) => {
|
38
32
|
let a = `${b.value[l].route}`;
|
39
33
|
if (t != null) {
|
40
|
-
let n = t[
|
34
|
+
let n = t[y.value.key.name];
|
41
35
|
a += `?id=${n}`;
|
42
36
|
}
|
43
37
|
return a;
|
44
38
|
}, we = (l, t, a) => {
|
45
|
-
(a.ctrlKey || k.value) && (
|
39
|
+
(a.ctrlKey || k.value) && (M.value = l, S.value = Oe.clone(t), k.value = !0, S.value.fields.forEach((n) => {
|
46
40
|
n.control.textualize = !1;
|
47
41
|
}));
|
48
42
|
}, G = (l) => {
|
49
|
-
i.value.visible = !1,
|
43
|
+
i.value.visible = !1, B("succeed", Q.value, l);
|
50
44
|
}, Ce = () => {
|
51
|
-
|
52
|
-
},
|
53
|
-
},
|
45
|
+
B("close");
|
46
|
+
}, H = (l, t, a, n, T) => {
|
47
|
+
}, I = (l, t) => {
|
54
48
|
if (t) {
|
55
|
-
|
49
|
+
D.value = y.value.layouts.find((a) => a.type == l);
|
56
50
|
return;
|
57
51
|
}
|
58
|
-
|
52
|
+
v.value.layout = v.value.table.layouts.find((a) => a.type == l);
|
59
53
|
}, ke = (l) => {
|
60
|
-
let t =
|
61
|
-
|
54
|
+
let t = r.value.find((a) => a.name == l);
|
55
|
+
v.value.table = t, v.value.layout = t.layouts[0];
|
62
56
|
}, xe = (l) => {
|
63
57
|
let t = Object.keys(l)[0], a = t.substring(1, t.indexOf("]"));
|
64
|
-
|
65
|
-
},
|
58
|
+
r.value.find((T) => T.name == a).main || (w.value = a);
|
59
|
+
}, Re = (l, t = null, a = null) => {
|
66
60
|
ae(() => {
|
67
61
|
E.value.validate((n, T) => {
|
68
62
|
if (!n)
|
69
63
|
return xe(T), a && a(!1), !1;
|
70
|
-
let U =
|
71
|
-
t && t(U, c.value),
|
72
|
-
E.value.clearValidate(),
|
64
|
+
let U = p.value.type == "Update" ? b.value.update.route : b.value.insert.route;
|
65
|
+
t && t(U, c.value), We.post(U, c.value).then(({ data: $, message: V }) => {
|
66
|
+
E.value.clearValidate(), ue.success(V), G(c.value);
|
73
67
|
}).catch(({ code: $, data: V, message: X }) => {
|
74
68
|
if ($ != "ValidateError")
|
75
69
|
return;
|
76
|
-
|
77
|
-
let
|
78
|
-
if (
|
79
|
-
let
|
80
|
-
|
70
|
+
q.value = V;
|
71
|
+
let N = V.find((_) => _.table !== y.value.name);
|
72
|
+
if (N) {
|
73
|
+
let _ = r.value.find((o) => o.name == N.table);
|
74
|
+
_ && (w.value = _.name);
|
81
75
|
}
|
82
76
|
ae(() => {
|
83
|
-
E.value.clearValidate(), E.value.validate((
|
84
|
-
|
77
|
+
E.value.clearValidate(), E.value.validate((_, o) => {
|
78
|
+
_ || (a && a(!1), q.value = []);
|
85
79
|
});
|
86
80
|
});
|
87
81
|
}).finally(() => {
|
@@ -89,76 +83,76 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
89
83
|
});
|
90
84
|
});
|
91
85
|
});
|
92
|
-
},
|
86
|
+
}, J = (l) => {
|
93
87
|
var a, n;
|
94
|
-
let t =
|
95
|
-
Ae.setTitle(t, l.module.env),
|
96
|
-
},
|
97
|
-
|
88
|
+
let t = je(l.module.type, l.module.name);
|
89
|
+
Ae.setTitle(t, l.module.env), p.value = l.module, b.value = l.next, c.value = re.expandSet(l.schema, l.set), r.value = re.expandSchema(l.schema), y.value = (a = r.value) == null ? void 0 : a[0], D.value = y.value.layouts[0], ((n = r.value) == null ? void 0 : n.length) > 1 && (w.value = r.value[1].name, v.value.table = r.value[1], v.value.layout = r.value[1].layouts[0]);
|
90
|
+
}, Se = (l) => {
|
91
|
+
R.value && R.value.resize && R.value.resize(l), C.value && C.value.resize && C.value.resize(l);
|
98
92
|
}, Te = (l, t) => {
|
99
93
|
if (l == "ctrlS") {
|
100
|
-
if (
|
101
|
-
if (!
|
94
|
+
if (p.value.type == "Detail") {
|
95
|
+
if (!K.value || !K.value.keyboard)
|
102
96
|
return !1;
|
103
|
-
|
97
|
+
K.value.keyboard(l, t);
|
104
98
|
return;
|
105
99
|
}
|
106
|
-
|
100
|
+
O(t);
|
107
101
|
}
|
108
102
|
}, Ve = () => {
|
109
|
-
let l =
|
110
|
-
|
103
|
+
let l = P.getUrl(z.value.path, z.value.query);
|
104
|
+
B("load", l, !1, (t) => {
|
111
105
|
});
|
112
106
|
};
|
113
107
|
(() => {
|
114
|
-
|
108
|
+
J(j.value.data);
|
115
109
|
})();
|
116
|
-
let
|
117
|
-
if (!
|
118
|
-
|
110
|
+
let O = (l) => {
|
111
|
+
if (!F.value.submit) {
|
112
|
+
ue.notify("提示", "请在子组件暴露submit方法来实现快捷提交", "warning");
|
119
113
|
return;
|
120
114
|
}
|
121
|
-
|
115
|
+
F.value.submit(l);
|
122
116
|
}, ze = Y(() => {
|
123
|
-
let l = `/${
|
124
|
-
return
|
125
|
-
}),
|
126
|
-
return
|
127
|
-
|
128
|
-
}), ie({ shouldLoad:
|
129
|
-
const a =
|
130
|
-
return d(),
|
117
|
+
let l = `/${y.value.name}/update`, t = p.value.type == "Detail" ? "detail" : "update";
|
118
|
+
return Ne.getComponent(l, "partial", t);
|
119
|
+
}), Q = Y(() => p.value.type.toLowerCase());
|
120
|
+
return Le(() => j.value, (l) => {
|
121
|
+
J(l.data), R.value.update && R.value.update(l.data), C.value && C.value.update && C.value.update(l.data);
|
122
|
+
}), ie({ shouldLoad: fe, shouldSpin: pe, keyboard: Te, refresh: be, resize: Se }), (l, t) => {
|
123
|
+
const a = f("el-tooltip"), n = f("el-tab-pane"), T = f("el-tabs"), U = f("el-form"), $ = f("el-scrollbar"), V = f("el-popover"), X = f("el-form-item"), N = f("el-card"), _ = f("el-drawer");
|
124
|
+
return d(), W("div", {
|
131
125
|
ref_key: "singleRef",
|
132
|
-
ref:
|
133
|
-
class:
|
126
|
+
ref: ve,
|
127
|
+
class: Be(["ha-single-page", { [e(Q) + "-page"]: !0, editing: e(k) }])
|
134
128
|
}, [
|
135
|
-
m("div",
|
129
|
+
m("div", He, [
|
136
130
|
h($, { class: "main-scroller" }, {
|
137
131
|
default: s(() => [
|
138
132
|
h(U, {
|
139
133
|
ref_key: "formRef",
|
140
134
|
ref: E,
|
141
135
|
model: e(c),
|
142
|
-
onSubmit: t[3] || (t[3] =
|
136
|
+
onSubmit: t[3] || (t[3] = De(() => {
|
143
137
|
}, ["prevent"]))
|
144
138
|
}, {
|
145
139
|
default: s(() => [
|
146
140
|
h(ne, {
|
147
141
|
ref_key: "mainRef",
|
148
|
-
ref:
|
149
|
-
module: e(
|
150
|
-
schema: e(
|
151
|
-
table: e(
|
152
|
-
layout: e(
|
142
|
+
ref: R,
|
143
|
+
module: e(p),
|
144
|
+
schema: e(r),
|
145
|
+
table: e(y),
|
146
|
+
layout: e(D),
|
153
147
|
next: e(b),
|
154
148
|
set: e(c),
|
155
149
|
route: e(z),
|
156
|
-
"validate-errors": e(
|
157
|
-
onChange: e(
|
158
|
-
onLayoutChange: t[0] || (t[0] = (o) => e(
|
159
|
-
onSubmit: e(
|
150
|
+
"validate-errors": e(q),
|
151
|
+
onChange: e(H),
|
152
|
+
onLayoutChange: t[0] || (t[0] = (o) => e(I)(o, !0)),
|
153
|
+
onSubmit: e(O)
|
160
154
|
}, null, 8, ["module", "schema", "table", "layout", "next", "set", "route", "validate-errors", "onChange", "onSubmit"]),
|
161
|
-
e(
|
155
|
+
e(r).length > 1 ? (d(), g(T, {
|
162
156
|
key: 0,
|
163
157
|
type: "border-card",
|
164
158
|
onTabChange: e(ke),
|
@@ -166,7 +160,7 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
166
160
|
"onUpdate:modelValue": t[1] || (t[1] = (o) => Z(w) ? w.value = o : w = o)
|
167
161
|
}, {
|
168
162
|
default: s(() => [
|
169
|
-
(d(!0),
|
163
|
+
(d(!0), W(ee, null, le(e(r).filter((o, Ee) => Ee > 0), (o) => (d(), g(n, {
|
170
164
|
name: o.name,
|
171
165
|
key: o.name
|
172
166
|
}, {
|
@@ -177,7 +171,7 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
177
171
|
disabled: !o.tooltip
|
178
172
|
}, {
|
179
173
|
default: s(() => [
|
180
|
-
m("div", null, x(e(
|
174
|
+
m("div", null, x(e(Pe)(o.table)), 1)
|
181
175
|
]),
|
182
176
|
_: 2
|
183
177
|
}, 1032, ["content", "disabled"])
|
@@ -186,53 +180,53 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
186
180
|
}, 1032, ["name"]))), 128))
|
187
181
|
]),
|
188
182
|
_: 1
|
189
|
-
}, 8, ["onTabChange", "modelValue"])) :
|
190
|
-
e(
|
183
|
+
}, 8, ["onTabChange", "modelValue"])) : L("", !0),
|
184
|
+
e(v).table ? (d(), g(ne, {
|
191
185
|
key: 1,
|
192
186
|
ref_key: "childRef",
|
193
187
|
ref: C,
|
194
|
-
module: e(
|
195
|
-
schema: e(
|
196
|
-
table: e(
|
197
|
-
layout: e(
|
188
|
+
module: e(p),
|
189
|
+
schema: e(r),
|
190
|
+
table: e(v).table,
|
191
|
+
layout: e(v).layout,
|
198
192
|
next: e(b),
|
199
193
|
set: e(c),
|
200
194
|
route: e(z),
|
201
|
-
"validate-errors": e(
|
195
|
+
"validate-errors": e(q),
|
202
196
|
onRowEdit: e(we),
|
203
|
-
onChange: e(
|
204
|
-
onLayoutChange: t[2] || (t[2] = (o) => e(
|
205
|
-
onSubmit: e(
|
206
|
-
}, null, 8, ["module", "schema", "table", "layout", "next", "set", "route", "validate-errors", "onRowEdit", "onChange", "onSubmit"])) :
|
197
|
+
onChange: e(H),
|
198
|
+
onLayoutChange: t[2] || (t[2] = (o) => e(I)(o, !1)),
|
199
|
+
onSubmit: e(O)
|
200
|
+
}, null, 8, ["module", "schema", "table", "layout", "next", "set", "route", "validate-errors", "onRowEdit", "onChange", "onSubmit"])) : L("", !0)
|
207
201
|
]),
|
208
202
|
_: 1
|
209
203
|
}, 8, ["model"])
|
210
204
|
]),
|
211
205
|
_: 1
|
212
206
|
}),
|
213
|
-
(d(), g(
|
207
|
+
(d(), g(qe(e(ze)), {
|
214
208
|
ref_key: "updateRef",
|
215
|
-
ref:
|
209
|
+
ref: F,
|
216
210
|
class: "main-footer",
|
217
|
-
schema: e(
|
218
|
-
table: e(
|
219
|
-
layout: e(
|
211
|
+
schema: e(r),
|
212
|
+
table: e(y),
|
213
|
+
layout: e(D),
|
220
214
|
next: e(b),
|
221
215
|
set: e(c),
|
222
216
|
route: e(z),
|
223
|
-
onCopy: e(
|
224
|
-
onEdit: e(
|
225
|
-
onSubmit: e(
|
217
|
+
onCopy: e(ye),
|
218
|
+
onEdit: e(_e),
|
219
|
+
onSubmit: e(Re),
|
226
220
|
onClose: e(Ce)
|
227
221
|
}, null, 40, ["schema", "table", "layout", "next", "set", "route", "onCopy", "onEdit", "onSubmit", "onClose"]))
|
228
222
|
]),
|
229
|
-
e(k) ? (d(), g(
|
223
|
+
e(k) ? (d(), g(N, {
|
230
224
|
key: 0,
|
231
225
|
class: "side-form"
|
232
226
|
}, {
|
233
227
|
header: s(() => [
|
234
|
-
m("div",
|
235
|
-
m("div",
|
228
|
+
m("div", Ie, [
|
229
|
+
m("div", Je, x(e(oe)("common.modify")) + " " + x(e(M)[e(S).show[0].name]), 1),
|
236
230
|
m("div", {
|
237
231
|
class: "row-close",
|
238
232
|
onClick: t[4] || (t[4] = (o) => Z(k) ? k.value = !1 : k = !1)
|
@@ -247,12 +241,12 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
247
241
|
"label-width": "80px"
|
248
242
|
}, {
|
249
243
|
default: s(() => [
|
250
|
-
(d(!0),
|
251
|
-
style:
|
244
|
+
(d(!0), W(ee, null, le(e(S).show, (o) => (d(), g(X, {
|
245
|
+
style: Ke(o.control.height ? `height: ${o.control.height}px;` : ""),
|
252
246
|
rules: o.rules
|
253
247
|
}, {
|
254
248
|
label: s(() => [
|
255
|
-
te(x(e(
|
249
|
+
te(x(e(Fe)(e(S).name, o.name)) + " ", 1),
|
256
250
|
o.control.tooltip ? (d(), g(V, {
|
257
251
|
key: 0,
|
258
252
|
trigger: "hover",
|
@@ -267,15 +261,15 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
267
261
|
m("pre", null, x(o.control.tooltip.content), 1)
|
268
262
|
]),
|
269
263
|
_: 2
|
270
|
-
}, 1032, ["title"])) :
|
264
|
+
}, 1032, ["title"])) : L("", !0)
|
271
265
|
]),
|
272
266
|
default: s(() => [
|
273
267
|
h(Ge, {
|
274
|
-
schema: e(
|
275
|
-
table: e(
|
268
|
+
schema: e(r),
|
269
|
+
table: e(S),
|
276
270
|
field: o,
|
277
271
|
set: e(c),
|
278
|
-
row: e(
|
272
|
+
row: e(M)
|
279
273
|
}, null, 8, ["schema", "table", "field", "set", "row"])
|
280
274
|
]),
|
281
275
|
_: 2
|
@@ -288,12 +282,12 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
288
282
|
})
|
289
283
|
]),
|
290
284
|
_: 1
|
291
|
-
})) :
|
292
|
-
e(i).page ? (d(), g(
|
285
|
+
})) : L("", !0),
|
286
|
+
e(i).page ? (d(), g(_, {
|
293
287
|
key: 1,
|
294
288
|
"destroy-on-close": "",
|
295
289
|
"append-to-body": e(i).appendToBody,
|
296
|
-
size: `${e(
|
290
|
+
size: `${e(p).width ?? "60%"}`,
|
297
291
|
modelValue: e(i).visible,
|
298
292
|
"onUpdate:modelValue": t[5] || (t[5] = (o) => e(i).visible = o)
|
299
293
|
}, {
|
@@ -302,25 +296,25 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
302
296
|
te(x(e(b)[e(i).page].title) + " ", 1),
|
303
297
|
m("a", {
|
304
298
|
class: "drawer-copy",
|
305
|
-
href: `${e(
|
299
|
+
href: `${e(P).getToUrl(e(i).url)}`
|
306
300
|
}, x(e(oe)("common.link")), 9, el)
|
307
301
|
])
|
308
302
|
]),
|
309
303
|
default: s(() => [
|
310
|
-
h(e(
|
304
|
+
h(e(Me), {
|
311
305
|
ref_key: "pageRef",
|
312
|
-
ref:
|
306
|
+
ref: K,
|
313
307
|
url: e(i).url,
|
314
308
|
onSucceed: e(G),
|
315
309
|
onClose: e(he)
|
316
310
|
}, null, 8, ["url", "onSucceed", "onClose"])
|
317
311
|
]),
|
318
312
|
_: 1
|
319
|
-
}, 8, ["append-to-body", "size", "modelValue"])) :
|
313
|
+
}, 8, ["append-to-body", "size", "modelValue"])) : L("", !0)
|
320
314
|
], 2);
|
321
315
|
};
|
322
316
|
}
|
323
317
|
});
|
324
318
|
export {
|
325
|
-
|
319
|
+
rl as default
|
326
320
|
};
|
@@ -1,13 +1,7 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import { s as Q,
|
3
|
-
import "./
|
4
|
-
|
5
|
-
import "./assets/file-saver-CwlpTZSc.js";
|
6
|
-
import "./assets/@monaco-editor-BCDRi0Ti.js";
|
7
|
-
import "./assets/moment-h96o7c8I.js";
|
8
|
-
import "./assets/liquidjs-C-LVcoaY.js";
|
9
|
-
import { _ as Z } from "./SearchForm.vue_vue_type_style_index_0_lang-B-YCROWC.js";
|
10
|
-
const de = /* @__PURE__ */ j({
|
1
|
+
import { defineComponent as $, toRefs as j, ref as n, onMounted as G, watch as M, openBlock as O, createElementBlock as I, createVNode as J, unref as s, createElementVNode as K, normalizeStyle as P, nextTick as x } from "vue";
|
2
|
+
import { s as Q, w as U, k as W, n as R, a as X, N as Y } from "./main-65efBfek.js";
|
3
|
+
import { _ as Z } from "./SearchForm.vue_vue_type_style_index_0_lang-DnjtHyTb.js";
|
4
|
+
const re = /* @__PURE__ */ $({
|
11
5
|
__name: "Statistic",
|
12
6
|
props: {
|
13
7
|
searchData: {},
|
@@ -20,18 +14,18 @@ const de = /* @__PURE__ */ j({
|
|
20
14
|
set: {}
|
21
15
|
},
|
22
16
|
emits: ["search"],
|
23
|
-
setup(
|
24
|
-
let
|
17
|
+
setup(C, { expose: A, emit: F }) {
|
18
|
+
let z = F, H = C, { route: B, module: E, schema: m, table: y, layout: l, next: ee, set: u, searchData: g } = j(H), i = null, p = null, v = n(), d = n(), b = n(), S = n(), N = (t) => {
|
25
19
|
T("search");
|
26
20
|
}, T = (t, e = null) => {
|
27
|
-
|
28
|
-
|
21
|
+
z(t, (r) => {
|
22
|
+
x(() => {
|
29
23
|
f(), e && e(r);
|
30
24
|
});
|
31
25
|
});
|
32
26
|
}, f = () => {
|
33
27
|
let t = W.distinct(u.value[l.value.table], (a) => a[l.value.date]), e = {
|
34
|
-
title: { text:
|
28
|
+
title: { text: E.value.title, left: "center", textStyle: { color: "#777" } },
|
35
29
|
//标题
|
36
30
|
tooltip: { trigger: "axis" },
|
37
31
|
//提示
|
@@ -65,9 +59,9 @@ const de = /* @__PURE__ */ j({
|
|
65
59
|
series: []
|
66
60
|
};
|
67
61
|
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)");
|
68
|
-
let r = l.value.fields.find((a) => a.group && a.name != l.value.date),
|
69
|
-
for (let a = 0; a <
|
70
|
-
let o =
|
62
|
+
let r = l.value.fields.find((a) => a.group && a.name != l.value.date), w = y.value.fields.find((a) => a.name == r.name).control.data.data;
|
63
|
+
for (let a = 0; a < w.length; a++) {
|
64
|
+
let o = w[a];
|
71
65
|
o.color || X.error("颜色字段不能为空");
|
72
66
|
let c = {
|
73
67
|
name: o.text,
|
@@ -109,30 +103,30 @@ const de = /* @__PURE__ */ j({
|
|
109
103
|
global: !0
|
110
104
|
});
|
111
105
|
for (let h = 0; h < t.length; h++) {
|
112
|
-
let
|
113
|
-
|
106
|
+
let D = t[h], _ = u.value[l.value.table].find((L) => L[r.name] == o.value && L[l.value.date] == D);
|
107
|
+
_ == null ? c.data.push(null) : c.data.push(_[l.value.value]);
|
114
108
|
}
|
115
109
|
e.series.push(c), e.legend.data.push(o.text);
|
116
110
|
}
|
117
|
-
e.xAxis.data.push(...t),
|
111
|
+
e.xAxis.data.push(...t), i.setOption(e);
|
118
112
|
}, k = () => {
|
119
113
|
var r;
|
120
114
|
let t = Y.getHeight([(r = d.value) == null ? void 0 : r.$el]), e = S.value.getBoundingClientRect();
|
121
115
|
v.value = e.height - t - 10 - 1;
|
122
116
|
}, V = (t) => {
|
123
|
-
d.value.resize(t),
|
124
|
-
k(),
|
117
|
+
d.value.resize(t), x(() => {
|
118
|
+
k(), i == null || i.resize();
|
125
119
|
});
|
126
|
-
},
|
127
|
-
k(),
|
128
|
-
|
120
|
+
}, q = () => {
|
121
|
+
k(), x(() => {
|
122
|
+
i = p.init(b.value), f();
|
129
123
|
});
|
130
124
|
};
|
131
125
|
return G(async () => {
|
132
|
-
|
126
|
+
g.value = Q.getConditionForm(m.value, B.value.query.condition), p = await U.getECharts(), q();
|
133
127
|
}), M(() => l.value, (t, e) => {
|
134
128
|
f();
|
135
|
-
}),
|
129
|
+
}), A({ resize: V }), (t, e) => (O(), I("div", {
|
136
130
|
ref_key: "statisticRef",
|
137
131
|
ref: S,
|
138
132
|
class: "ha-statistic-layout"
|
@@ -140,22 +134,22 @@ const de = /* @__PURE__ */ j({
|
|
140
134
|
J(Z, {
|
141
135
|
ref_key: "searchRef",
|
142
136
|
ref: d,
|
143
|
-
schema:
|
144
|
-
table:
|
145
|
-
layout:
|
146
|
-
set:
|
147
|
-
"search-data":
|
148
|
-
onChange:
|
137
|
+
schema: s(m),
|
138
|
+
table: s(y),
|
139
|
+
layout: s(l),
|
140
|
+
set: s(u),
|
141
|
+
"search-data": s(g),
|
142
|
+
onChange: s(N)
|
149
143
|
}, null, 8, ["schema", "table", "layout", "set", "search-data", "onChange"]),
|
150
144
|
K("div", {
|
151
145
|
ref_key: "chartRef",
|
152
146
|
ref: b,
|
153
147
|
class: "chart",
|
154
|
-
style: P({ height:
|
148
|
+
style: P({ height: s(v) + "px" })
|
155
149
|
}, null, 4)
|
156
150
|
], 512));
|
157
151
|
}
|
158
152
|
});
|
159
153
|
export {
|
160
|
-
|
154
|
+
re as default
|
161
155
|
};
|
@@ -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-BEwvRtU6.js";
|
3
3
|
const b = /* @__PURE__ */ c({
|
4
4
|
__name: "Stock",
|
5
5
|
props: {
|