halo-pc 1.0.36 → 1.0.37
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{Article-CSL7LnKj.js → Article-DSuvpyeC.js} +58 -60
- package/dist/{ArticleFooter-_CUySAZu.js → ArticleFooter-Cx3OC7sV.js} +1 -1
- package/dist/{Autocomplete-CIRk6M3c.js → Autocomplete-1jt0wRMS.js} +1 -1
- package/dist/{Autocomplete-Buw1Hs35.js → Autocomplete-C7CYy8w6.js} +3 -3
- package/dist/{Autocomplete-BTBqlR6B.js → Autocomplete-DASTUS8d.js} +2 -2
- package/dist/{CSharp-CMmXPS2i.js → CSharp-CebNTVPd.js} +1 -1
- package/dist/{Calender-P8tmSbW2.js → Calender-BBILvX8n.js} +4 -4
- package/dist/{Callback-SEWVfpG_.js → Callback-CLA9Ab9q.js} +1 -1
- package/dist/{Cascader-DWNTommi.js → Cascader-DY2zOwsa.js} +1 -1
- package/dist/{Cascader-CeQ0jUxU.js → Cascader-DyQ312mS.js} +5 -5
- package/dist/{Checkbox-Fddc4Zgy.js → Checkbox-CHmMU0Cs.js} +1 -1
- package/dist/{Checkbox--pNX7Slb.js → Checkbox-CyC_mo50.js} +1 -1
- package/dist/{Code-CXMdFELH.js → Code-B4Z7WuUc.js} +1 -1
- package/dist/{Code-THGJ7IzI.js → Code-BOTf1uZ5.js} +1 -1
- package/dist/{Code-C6A3DOQp.js → Code-CIFJJJo3.js} +1 -1
- package/dist/Code-Da4PjT9q.js +4 -0
- package/dist/{Code.vue_vue_type_style_index_0_lang-BXOFkrGK.js → Code.vue_vue_type_style_index_0_lang-ChjwMs7I.js} +3 -3
- package/dist/{Column-CucHIBYv.js → Column-9A6-8_Y7.js} +1 -1
- package/dist/{Comment-T5XWLthu.js → Comment-D78rr4-n.js} +27 -27
- package/dist/{Compare-jjtb6UdZ.js → Compare-Cb9vYPl5.js} +9 -9
- package/dist/{Compare-KV2Q7Tb7.js → Compare-DLiL32cA.js} +6 -6
- package/dist/{Copy-Ck1HeTdy.js → Copy-CH2_hawJ.js} +1 -1
- package/dist/Custom-D9qN9bwa.js +59 -0
- package/dist/{DataExport-BY1fIwSd.js → DataExport-D8cqXPrh.js} +1 -1
- package/dist/{DataExport.vue_vue_type_script_setup_true_lang-Bv4Pc10r.js → DataExport.vue_vue_type_script_setup_true_lang-DmB5AeGR.js} +1 -1
- package/dist/{DataImport--xUxoWAq.js → DataImport-3KwXYYGw.js} +1 -1
- package/dist/{DataImport.vue_vue_type_script_setup_true_lang-BhPGLJCz.js → DataImport.vue_vue_type_script_setup_true_lang-C9xs1_ec.js} +1 -1
- package/dist/{Date-C3H04U5q.js → Date-OZxdofhB.js} +1 -1
- package/dist/{Date-DRk7BsnD.js → Date-yHlD-Lw2.js} +1 -1
- package/dist/{DateRange-CICZ9gVp.js → DateRange-BLSxDHKv.js} +1 -1
- package/dist/{DateTime-CjTCtAm4.js → DateTime-8tbpOKOK.js} +1 -1
- package/dist/{DateTime-DXHkaHtE.js → DateTime-B7GzMj8Q.js} +1 -1
- package/dist/{DateTimeRange-CuEYJBUE.js → DateTimeRange-COFWmQoO.js} +1 -1
- package/dist/{Daterange-cmpjJVxl.js → Daterange-Cy8l4CfJ.js} +1 -1
- package/dist/{Decimal-BzR8o8bv.js → Decimal-Dw6EtZOm.js} +1 -1
- package/dist/{Delete-B2VzOnk8.js → Delete-DjXSCUKp.js} +1 -1
- package/dist/{Detail-ayakHymC.js → Detail-DU8mI4u2.js} +1 -1
- package/dist/{Dictionary-BiSpx7nU.js → Dictionary-CAAvUqf-.js} +1 -1
- package/dist/{Email-BbipkOFP.js → Email-AHWpz5Ck.js} +3 -3
- package/dist/{File-B131KRit.js → File-DUxwHR5G.js} +16 -16
- package/dist/Image-BJ5q87B6.js +9 -0
- package/dist/Index-CF44rsZW.js +4 -0
- package/dist/Index-CnFjsuQV.js +4 -0
- package/dist/{Index-CymZGuJo.js → Index-D223MCYD.js} +17 -17
- package/dist/Index-DCIDLocj.js +4 -0
- package/dist/{Index-Bps1k5-m.js → Index-Jt1omrn-.js} +1 -1
- package/dist/{Index-B20QLMmF.js → Index-KTv20XtO.js} +1 -1
- package/dist/{Index-BnudlpyF.js → Index-Z8HW5XAm.js} +2 -2
- package/dist/Index-qIfIbiFH.js +4 -0
- package/dist/{Index.vue_vue_type_script_setup_true_lang-IX-mfiEH.js → Index.vue_vue_type_script_setup_true_lang-BznVrY52.js} +15 -17
- package/dist/{Index.vue_vue_type_script_setup_true_lang-C-7l_RSt.js → Index.vue_vue_type_script_setup_true_lang-_8v_4G-B.js} +4 -4
- package/dist/{Install-BnCA1XK8.js → Install-C-xxCx9D.js} +8 -8
- package/dist/{Int-BlwraOyw.js → Int-1QpMyTPB.js} +1 -1
- package/dist/{Int-BSA4Srky.js → Int-BsHpY5Gt.js} +1 -1
- package/dist/List-DW7FpMfd.js +72 -0
- package/dist/{Maintaince-CwL7tseR.js → Maintaince-CjUfJUr7.js} +3 -3
- package/dist/{Markdown-Can2d8HC.js → Markdown-BZhSwheI.js} +1 -1
- package/dist/{Month-Dyt_wc8r.js → Month-BKXtBi6i.js} +1 -1
- package/dist/{Month-ClTpaaAr.js → Month-IJnA7Kgl.js} +3 -3
- package/dist/{Month-CRmTCjQr.js → Month-m0FiTmBK.js} +1 -1
- package/dist/{Normal-DBRpkCNs.js → Normal-CettIwbU.js} +72 -72
- package/dist/{Paging-ByJhfHCh.js → Paging-J9vCBFzM.js} +33 -35
- package/dist/{PagingHeader-BQ-8s0NC.js → PagingHeader-irWrEKGQ.js} +1 -1
- package/dist/{PagingRow-CqAYVjxH.js → PagingRow-Bft1brFD.js} +1 -1
- package/dist/{Racebar-BhRmArVA.js → Racebar-D3VFwM1V.js} +7 -7
- package/dist/{Radio-DCVAYEgh.js → Radio-C-IwNXnz.js} +1 -1
- package/dist/{Register-Dr5HF0B6.js → Register-XTfqbbgr.js} +15 -15
- package/dist/{RichText-Dj93TxtW.js → RichText-D3aLlQph.js} +8 -8
- package/dist/{SearchFooter-D02JAZez.js → SearchFooter-hC7sQBez.js} +1 -1
- package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-dBZJFNo0.js → SearchFooter.vue_vue_type_style_index_0_lang-DgM6JntR.js} +1 -1
- package/dist/{SearchForm-DhrX5Akr.js → SearchForm-BTux7Adt.js} +1 -1
- package/dist/{SearchForm.vue_vue_type_style_index_0_lang-Dx26ti3G.js → SearchForm.vue_vue_type_style_index_0_lang-Ddpe-p19.js} +27 -29
- package/dist/{Select-ChwyjjbN.js → Select-ClAK8aNJ.js} +8 -8
- package/dist/{Select-CaGb3SAi.js → Select-DlM_C-60.js} +1 -1
- package/dist/{Select-DK5-x-rC.js → Select-K1dU20i2.js} +11 -11
- package/dist/{Single-DIyLnILS.js → Single-DYDwq041.js} +66 -68
- package/dist/{Statistic-ArzDDFwp.js → Statistic-CidgrAcU.js} +21 -21
- package/dist/{Stock-DapT2McI.js → Stock-BFszdaCn.js} +1 -1
- package/dist/{Stock-CsVIZtQ4.js → Stock-BiuhsKPB.js} +1 -1
- package/dist/{Stock.vue_vue_type_style_index_0_lang-JABRw23-.js → Stock.vue_vue_type_style_index_0_lang-O1UAbsov.js} +8 -8
- package/dist/{Switch-B0VJc80B.js → Switch-TI8J8-E2.js} +1 -1
- package/dist/{Table-C5kHBVpV.js → Table-DJOSPNrn.js} +79 -81
- package/dist/{Table-Cwe8QuVi.js → Table-DYELgaTY.js} +56 -56
- package/dist/Text-DAliAA9U.js +4 -0
- package/dist/{Text-CK1PT6x8.js → Text-DEv-wMFU.js} +3 -3
- package/dist/Text-Dy6uYSm3.js +49 -0
- package/dist/{Text.vue_vue_type_style_index_0_lang-epPB32IU.js → Text.vue_vue_type_style_index_0_lang-Cm-1AGNB.js} +1 -1
- package/dist/{TextLink-Bn_Z4Ajl.js → TextLink-CKPExcuj.js} +1 -1
- package/dist/{Textarea-C6Pi4p9b.js → Textarea-CEv7HYqY.js} +1 -1
- package/dist/{Time-DWG3pwjK.js → Time-BeTq6Tq3.js} +1 -1
- package/dist/{Timeline-Bqq3rFbX.js → Timeline-BI2o8Kug.js} +1 -1
- package/dist/{Tree-CU2UHknq.js → Tree-BPeNz1X4.js} +58 -60
- package/dist/{Tree-DRUGEHR3.js → Tree-DlIrY3e2.js} +33 -33
- package/dist/{TreeNode-DD-YfbgL.js → TreeNode-CzM6Npi5.js} +1 -1
- package/dist/{Update-BdbT4B2n.js → Update-Bv6Lp8LZ.js} +1 -1
- package/dist/{UpdateChild-CVgQs6_A.js → UpdateChild-mrF1t5G8.js} +1 -1
- package/dist/{Upload-BCGGzOTn.js → Upload-B0dBN1oH.js} +9 -9
- package/dist/{Upload-CKHSikDI.js → Upload-BCdzJlzR.js} +13 -13
- package/dist/{Year-CnA4ZUPj.js → Year-2hJSZcj_.js} +7 -7
- package/dist/{Year-nGY1S5_T.js → Year-DLITl-_8.js} +1 -1
- package/dist/{main-BLb5AIWJ.js → main-SNlEeN01.js} +3045 -2957
- package/dist/main.js +136 -133
- package/dist/style.css +1 -1
- package/esm/coms/business/Form.vue.d.ts +2 -1
- package/esm/coms/drivers/@types/DriverEmit.d.ts +18 -0
- package/esm/coms/drivers/@types/DriverKindEmit.d.ts +18 -0
- package/esm/coms/drivers/@types/KindFormProps.d.ts +3 -6
- package/esm/coms/drivers/@types/index.d.ts +3 -1
- package/esm/coms/drivers/Index.vue.d.ts +26 -29
- package/esm/coms/drivers/Kind.vue.d.ts +8 -8
- package/esm/coms/layouts/Index.vue.d.ts +7 -3
- package/esm/coms/layouts/Side.vue.d.ts +5 -2
- package/esm/coms/layouts/Top.vue.d.ts +4 -1
- package/esm/coms/lists/Tree.vue.d.ts +2 -1
- package/esm/coms/pages/@types/index.d.ts +1 -2
- package/esm/coms/pages/Custom.vue.d.ts +2 -1
- package/esm/coms/pages/List.vue.d.ts +1 -1
- package/esm/coms/pages/Paging.vue.d.ts +2 -1
- package/esm/coms/pages/Single.vue.d.ts +2 -1
- package/esm/coms/pagings/Article.vue.d.ts +2 -1
- package/esm/coms/pagings/Index.vue.d.ts +2 -1
- package/esm/coms/pagings/Table.vue.d.ts +2 -1
- package/esm/coms/searches/Text.vue.d.ts +5 -7
- package/esm/svcs/ModuleSvc.d.ts +40 -0
- package/esm/svcs/index.d.ts +3 -3
- package/package.json +9 -9
- package/dist/Code-CQSTwwc4.js +0 -4
- package/dist/Custom-CkyWaXAB.js +0 -61
- package/dist/Image-Cb1PzLpD.js +0 -9
- package/dist/Index-2vdi0Nq0.js +0 -4
- package/dist/Index-BOKSKn0N.js +0 -4
- package/dist/Index-Cz0Ti6rP.js +0 -4
- package/dist/Index-Dhg6Vts6.js +0 -4
- package/dist/List-BnT_8B_q.js +0 -74
- package/dist/Text-D2P-_cQT.js +0 -54
- package/dist/Text-oKVRjuSR.js +0 -4
@@ -1,8 +1,8 @@
|
|
1
|
-
import { defineComponent as Ue, toRefs as $e, ref as u, computed as Y, watch as Be, resolveComponent as p, openBlock as d, createElementBlock as
|
2
|
-
import {
|
1
|
+
import { defineComponent as Ue, toRefs as $e, ref as u, 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 g, withCtx as s, withModifiers as Ke, createBlock as h, isRef as Z, Fragment as ee, renderList as le, toDisplayString as k, createCommentVNode as B, resolveDynamicComponent as Le, normalizeStyle as Ne, createTextVNode as te, nextTick as ae } from "vue";
|
2
|
+
import { f as Pe, g as je, t as oe, j as qe, k as Fe, U as D, b as He, h as Me, m as ue, c as Oe, i as Ae, d as re, K as Ge, a as Ie } from "./main-SNlEeN01.js";
|
3
3
|
import "./assets/moment-h96o7c8I.js";
|
4
|
-
import { _ as ne } from "./Index.vue_vue_type_script_setup_true_lang-
|
5
|
-
const
|
4
|
+
import { _ as ne } from "./Index.vue_vue_type_script_setup_true_lang-_8v_4G-B.js";
|
5
|
+
const Je = { class: "ha-main-form" }, Qe = { class: "row-header" }, We = { class: "row-title" }, Xe = { class: "el-drawer__title" }, Ye = ["href"], ol = /* @__PURE__ */ Ue({
|
6
6
|
__name: "Single",
|
7
7
|
props: {
|
8
8
|
base: {},
|
@@ -12,20 +12,20 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
|
|
12
12
|
},
|
13
13
|
emits: ["navigate", "load", "succeed", "close"],
|
14
14
|
setup(se, { expose: ie, emit: de }) {
|
15
|
-
let
|
15
|
+
let K = de, me = se, { url: ve, base: M, route: z } = $e(me), c = u(), b = u(), v = u(), r = u(), y = u(), L = u(), f = u({ table: null, layout: null }), w = u(), N = u([]), fe = u(), E = u(), R = u(), j = u(), C = u(), O = u(), i = u({ page: null, url: null, visible: !1, appendToBody: !1 }), x = u(!1), q = u(), S = u(), pe = (l) => !0, ce = (l) => {
|
16
16
|
let t = D.url.getPath(ve.value), a = D.url.getPath(l);
|
17
17
|
return t != a;
|
18
18
|
}, be = () => {
|
19
19
|
Ve();
|
20
20
|
}, ye = (l, t) => {
|
21
|
-
|
21
|
+
A("copy", l, t);
|
22
22
|
}, _e = (l, t) => {
|
23
|
-
|
23
|
+
A("update", l, t);
|
24
24
|
}, ge = () => {
|
25
25
|
i.value.visible = !1;
|
26
|
-
},
|
26
|
+
}, A = (l, t, a) => {
|
27
27
|
let n = he(l, t);
|
28
|
-
a.ctrlKey ?
|
28
|
+
a.ctrlKey ? K("navigate", n) : (i.value.appendToBody = a.altKey, i.value.page = l, i.value.url = n, i.value.visible = !0);
|
29
29
|
}, he = (l, t = null) => {
|
30
30
|
let a = `${b.value[l].route}`;
|
31
31
|
if (t != null) {
|
@@ -34,46 +34,46 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
|
|
34
34
|
}
|
35
35
|
return a;
|
36
36
|
}, we = (l, t, a) => {
|
37
|
-
(a.ctrlKey ||
|
37
|
+
(a.ctrlKey || x.value) && (q.value = l, S.value = D.object.clone(t), x.value = !0, S.value.fields.forEach((n) => {
|
38
38
|
n.control.textualize = !1;
|
39
39
|
}));
|
40
|
-
},
|
41
|
-
i.value.visible = !1,
|
40
|
+
}, G = (l) => {
|
41
|
+
i.value.visible = !1, K("succeed", W.value, l);
|
42
42
|
}, Ce = () => {
|
43
|
-
|
43
|
+
K("close");
|
44
44
|
}, I = (l, t, a, n, T) => {
|
45
45
|
}, J = (l, t) => {
|
46
46
|
if (t) {
|
47
|
-
|
47
|
+
L.value = y.value.layouts.find((a) => a.type == l);
|
48
48
|
return;
|
49
49
|
}
|
50
50
|
f.value.layout = f.value.table.layouts.find((a) => a.type == l);
|
51
|
-
},
|
51
|
+
}, xe = (l) => {
|
52
52
|
let t = r.value.find((a) => a.name == l);
|
53
53
|
f.value.table = t, f.value.layout = t.layouts[0];
|
54
|
-
},
|
54
|
+
}, ke = (l) => {
|
55
55
|
let t = Object.keys(l)[0], a = t.substring(1, t.indexOf("]"));
|
56
56
|
r.value.find((T) => T.name == a).main || (w.value = a);
|
57
57
|
}, Re = (l, t = null, a = null) => {
|
58
58
|
ae(() => {
|
59
59
|
E.value.validate((n, T) => {
|
60
60
|
if (!n)
|
61
|
-
return
|
61
|
+
return ke(T), a && a(!1), !1;
|
62
62
|
let U = c.value.type == "Update" ? b.value.update.route : b.value.insert.route;
|
63
|
-
t && t(U, v.value),
|
64
|
-
E.value.clearValidate(), ue.success(V),
|
63
|
+
t && t(U, v.value), Me.post(U, v.value).then(({ data: $, message: V }) => {
|
64
|
+
E.value.clearValidate(), ue.success(V), G(v.value);
|
65
65
|
}).catch(({ code: $, data: V, message: X }) => {
|
66
66
|
if ($ != "ValidateError")
|
67
67
|
return;
|
68
|
-
|
69
|
-
let
|
70
|
-
if (
|
71
|
-
let _ = r.value.find((o) => o.name ==
|
68
|
+
N.value = V;
|
69
|
+
let P = V.find((_) => _.table !== y.value.name);
|
70
|
+
if (P) {
|
71
|
+
let _ = r.value.find((o) => o.name == P.table);
|
72
72
|
_ && (w.value = _.name);
|
73
73
|
}
|
74
74
|
ae(() => {
|
75
75
|
E.value.clearValidate(), E.value.validate((_, o) => {
|
76
|
-
_ || (a && a(!1),
|
76
|
+
_ || (a && a(!1), N.value = []);
|
77
77
|
});
|
78
78
|
});
|
79
79
|
}).finally(() => {
|
@@ -83,29 +83,27 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
|
|
83
83
|
});
|
84
84
|
}, Q = (l) => {
|
85
85
|
var a, n;
|
86
|
-
let t =
|
87
|
-
|
86
|
+
let t = Oe(l.module.type, l.module.name);
|
87
|
+
Ae.setTitle(t, l.module.env), c.value = l.module, b.value = l.next, v.value = re.expandSet(l.schema, l.set), r.value = re.expandSchema(l.schema, l.set), y.value = (a = r.value) == null ? void 0 : a[0], L.value = y.value.layouts[0], ((n = r.value) == null ? void 0 : n.length) > 1 && (w.value = r.value[1].name, f.value.table = r.value[1], f.value.layout = r.value[1].layouts[0]);
|
88
88
|
}, Se = (l) => {
|
89
89
|
R.value && R.value.resize && R.value.resize(l), C.value && C.value.resize && C.value.resize(l);
|
90
90
|
}, Te = (l, t) => {
|
91
|
-
if (l ==
|
91
|
+
if (l == Ge.ctrlS) {
|
92
92
|
if (c.value.type == "Detail") {
|
93
|
-
|
94
|
-
return !1;
|
95
|
-
q.value.keyboard(l, t);
|
93
|
+
Ie.triggerKeyboardHandler(O.value, l, t);
|
96
94
|
return;
|
97
95
|
}
|
98
|
-
|
96
|
+
F(t);
|
99
97
|
}
|
100
98
|
}, Ve = () => {
|
101
99
|
let l = D.url.getUrl(z.value.path, z.value.query);
|
102
|
-
|
100
|
+
K("load", l, !1, (t) => {
|
103
101
|
});
|
104
102
|
};
|
105
103
|
(() => {
|
106
|
-
Q(
|
104
|
+
Q(M.value.data);
|
107
105
|
})();
|
108
|
-
let
|
106
|
+
let F = (l) => {
|
109
107
|
if (!j.value.submit) {
|
110
108
|
ue.notify("提示", "请在子组件暴露submit方法来实现快捷提交", "warning");
|
111
109
|
return;
|
@@ -113,25 +111,25 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
|
|
113
111
|
j.value.submit(l);
|
114
112
|
}, ze = Y(() => {
|
115
113
|
let l = `/${y.value.name}/update`, t = c.value.type == "Detail" ? "detail" : "update";
|
116
|
-
return
|
114
|
+
return Pe.getComponent(l, "partial", t);
|
117
115
|
}), W = Y(() => c.value.type.toLowerCase());
|
118
|
-
return Be(() =>
|
116
|
+
return Be(() => M.value, (l) => {
|
119
117
|
Q(l.data), R.value.update && R.value.update(l.data), C.value && C.value.update && C.value.update(l.data);
|
120
|
-
}), ie({ shouldLoad: pe, shouldSpin: ce,
|
121
|
-
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"),
|
122
|
-
return d(),
|
118
|
+
}), ie({ shouldLoad: pe, shouldSpin: ce, keyboardHandler: Te, refresh: be, resize: Se }), (l, t) => {
|
119
|
+
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"), _ = p("el-drawer");
|
120
|
+
return d(), H("div", {
|
123
121
|
ref_key: "singleRef",
|
124
122
|
ref: fe,
|
125
|
-
class: De(["ha-single-page", { [e(W) + "-page"]: !0, editing: e(
|
123
|
+
class: De(["ha-single-page", { [e(W) + "-page"]: !0, editing: e(x) }])
|
126
124
|
}, [
|
127
|
-
m("div",
|
125
|
+
m("div", Je, [
|
128
126
|
g($, { class: "main-scroller" }, {
|
129
127
|
default: s(() => [
|
130
128
|
g(U, {
|
131
129
|
ref_key: "formRef",
|
132
130
|
ref: E,
|
133
131
|
model: e(v),
|
134
|
-
onSubmit: t[3] || (t[3] =
|
132
|
+
onSubmit: t[3] || (t[3] = Ke(() => {
|
135
133
|
}, ["prevent"]))
|
136
134
|
}, {
|
137
135
|
default: s(() => [
|
@@ -141,24 +139,24 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
|
|
141
139
|
module: e(c),
|
142
140
|
schema: e(r),
|
143
141
|
table: e(y),
|
144
|
-
layout: e(
|
142
|
+
layout: e(L),
|
145
143
|
next: e(b),
|
146
144
|
set: e(v),
|
147
145
|
route: e(z),
|
148
|
-
"validate-errors": e(
|
146
|
+
"validate-errors": e(N),
|
149
147
|
onChange: e(I),
|
150
148
|
onLayoutChange: t[0] || (t[0] = (o) => e(J)(o, !0)),
|
151
|
-
onSubmit: e(
|
149
|
+
onSubmit: e(F)
|
152
150
|
}, null, 8, ["module", "schema", "table", "layout", "next", "set", "route", "validate-errors", "onChange", "onSubmit"]),
|
153
151
|
e(r).length > 1 ? (d(), h(T, {
|
154
152
|
key: 0,
|
155
153
|
type: "border-card",
|
156
|
-
onTabChange: e(
|
154
|
+
onTabChange: e(xe),
|
157
155
|
modelValue: e(w),
|
158
156
|
"onUpdate:modelValue": t[1] || (t[1] = (o) => Z(w) ? w.value = o : w = o)
|
159
157
|
}, {
|
160
158
|
default: s(() => [
|
161
|
-
(d(!0),
|
159
|
+
(d(!0), H(ee, null, le(e(r).filter((o, Ee) => Ee > 0), (o) => (d(), h(n, {
|
162
160
|
name: o.name,
|
163
161
|
key: o.name
|
164
162
|
}, {
|
@@ -169,7 +167,7 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
|
|
169
167
|
disabled: !o.tooltip
|
170
168
|
}, {
|
171
169
|
default: s(() => [
|
172
|
-
m("div", null,
|
170
|
+
m("div", null, k(e(je)(o.table)), 1)
|
173
171
|
]),
|
174
172
|
_: 2
|
175
173
|
}, 1032, ["content", "disabled"])
|
@@ -190,11 +188,11 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
|
|
190
188
|
next: e(b),
|
191
189
|
set: e(v),
|
192
190
|
route: e(z),
|
193
|
-
"validate-errors": e(
|
191
|
+
"validate-errors": e(N),
|
194
192
|
onRowEdit: e(we),
|
195
193
|
onChange: e(I),
|
196
194
|
onLayoutChange: t[2] || (t[2] = (o) => e(J)(o, !1)),
|
197
|
-
onSubmit: e(
|
195
|
+
onSubmit: e(F)
|
198
196
|
}, null, 8, ["module", "schema", "table", "layout", "next", "set", "route", "validate-errors", "onRowEdit", "onChange", "onSubmit"])) : B("", !0)
|
199
197
|
]),
|
200
198
|
_: 1
|
@@ -202,13 +200,13 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
|
|
202
200
|
]),
|
203
201
|
_: 1
|
204
202
|
}),
|
205
|
-
(d(), h(
|
203
|
+
(d(), h(Le(e(ze)), {
|
206
204
|
ref_key: "updateRef",
|
207
205
|
ref: j,
|
208
206
|
class: "main-footer",
|
209
207
|
schema: e(r),
|
210
208
|
table: e(y),
|
211
|
-
layout: e(
|
209
|
+
layout: e(L),
|
212
210
|
next: e(b),
|
213
211
|
set: e(v),
|
214
212
|
route: e(z),
|
@@ -218,16 +216,16 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
|
|
218
216
|
onClose: e(Ce)
|
219
217
|
}, null, 40, ["schema", "table", "layout", "next", "set", "route", "onCopy", "onEdit", "onSubmit", "onClose"]))
|
220
218
|
]),
|
221
|
-
e(
|
219
|
+
e(x) ? (d(), h(P, {
|
222
220
|
key: 0,
|
223
221
|
class: "side-form"
|
224
222
|
}, {
|
225
223
|
header: s(() => [
|
226
|
-
m("div",
|
227
|
-
m("div",
|
224
|
+
m("div", Qe, [
|
225
|
+
m("div", We, k(e(oe)("common.modify")) + " " + k(e(q)[e(S).show[0].name]), 1),
|
228
226
|
m("div", {
|
229
227
|
class: "row-close",
|
230
|
-
onClick: t[4] || (t[4] = (o) => Z(
|
228
|
+
onClick: t[4] || (t[4] = (o) => Z(x) ? x.value = !1 : x = !1)
|
231
229
|
}, t[6] || (t[6] = [
|
232
230
|
m("i", { class: "fa fa-close" }, null, -1)
|
233
231
|
]))
|
@@ -241,12 +239,12 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
|
|
241
239
|
"label-width": "80px"
|
242
240
|
}, {
|
243
241
|
default: s(() => [
|
244
|
-
(d(!0),
|
245
|
-
style:
|
242
|
+
(d(!0), H(ee, null, le(e(S).show, (o) => (d(), h(X, {
|
243
|
+
style: Ne(o.control.height ? `height: ${o.control.height}px;` : ""),
|
246
244
|
rules: o.rules
|
247
245
|
}, {
|
248
246
|
label: s(() => [
|
249
|
-
te(
|
247
|
+
te(k(e(qe)(e(S).name, o.name)) + " ", 1),
|
250
248
|
o.control.tooltip ? (d(), h(V, {
|
251
249
|
key: 0,
|
252
250
|
trigger: "hover",
|
@@ -258,7 +256,7 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
|
|
258
256
|
m("i", { class: "fa fa-question-circle icon-question" }, null, -1)
|
259
257
|
])),
|
260
258
|
default: s(() => [
|
261
|
-
m("pre", null,
|
259
|
+
m("pre", null, k(o.control.tooltip.content), 1)
|
262
260
|
]),
|
263
261
|
_: 2
|
264
262
|
}, 1032, ["title"])) : B("", !0)
|
@@ -269,7 +267,7 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
|
|
269
267
|
table: e(S),
|
270
268
|
field: o,
|
271
269
|
set: e(v),
|
272
|
-
row: e(
|
270
|
+
row: e(q)
|
273
271
|
}, null, 8, ["schema", "table", "field", "set", "row"])
|
274
272
|
]),
|
275
273
|
_: 2
|
@@ -292,20 +290,20 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
|
|
292
290
|
"onUpdate:modelValue": t[5] || (t[5] = (o) => e(i).visible = o)
|
293
291
|
}, {
|
294
292
|
header: s(() => [
|
295
|
-
m("div",
|
296
|
-
te(
|
293
|
+
m("div", Xe, [
|
294
|
+
te(k(e(b)[e(i).page].title) + " ", 1),
|
297
295
|
m("a", {
|
298
296
|
class: "drawer-copy",
|
299
297
|
href: `${e(D).url.getToUrl(e(i).url)}`
|
300
|
-
},
|
298
|
+
}, k(e(oe)("common.link")), 9, Ye)
|
301
299
|
])
|
302
300
|
]),
|
303
301
|
default: s(() => [
|
304
|
-
g(e(
|
302
|
+
g(e(He), {
|
305
303
|
ref_key: "pageRef",
|
306
|
-
ref:
|
304
|
+
ref: O,
|
307
305
|
url: e(i).url,
|
308
|
-
onSucceed: e(
|
306
|
+
onSucceed: e(G),
|
309
307
|
onClose: e(ge)
|
310
308
|
}, null, 8, ["url", "onSucceed", "onClose"])
|
311
309
|
]),
|
@@ -316,5 +314,5 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
|
|
316
314
|
}
|
317
315
|
});
|
318
316
|
export {
|
319
|
-
|
317
|
+
ol as default
|
320
318
|
};
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import { defineComponent as j, toRefs as q, ref as c, onMounted as G, watch as M, openBlock as O, createElementBlock as I, createVNode as J, unref as
|
2
|
-
import {
|
1
|
+
import { defineComponent as j, toRefs as q, ref as c, onMounted as G, watch as M, openBlock as O, createElementBlock as I, createVNode as J, unref as s, createElementVNode as K, normalizeStyle as P, nextTick as R } from "vue";
|
2
|
+
import { C as Q, d as W, p as X, U as C, m as Y } from "./main-SNlEeN01.js";
|
3
3
|
import "./assets/moment-h96o7c8I.js";
|
4
|
-
import { _ as Z } from "./SearchForm.vue_vue_type_style_index_0_lang-
|
5
|
-
const
|
4
|
+
import { _ as Z } from "./SearchForm.vue_vue_type_style_index_0_lang-Ddpe-p19.js";
|
5
|
+
const se = /* @__PURE__ */ j({
|
6
6
|
__name: "Statistic",
|
7
7
|
props: {
|
8
8
|
searchData: {},
|
@@ -16,12 +16,12 @@ const re = /* @__PURE__ */ j({
|
|
16
16
|
},
|
17
17
|
emits: ["search"],
|
18
18
|
setup(A, { expose: F, emit: z }) {
|
19
|
-
let
|
19
|
+
let H = z, B = A, { route: E, module: T, schema: m, table: y, layout: l, next: ee, set: u, searchData: p } = q(B), i = null, x = null, g = c(), d = c(), v = c(), b = c(), { app: S } = Q.sys, V = (t) => {
|
20
20
|
D("search");
|
21
21
|
}, D = (t, e = null) => {
|
22
|
-
|
22
|
+
H(t, (r) => {
|
23
23
|
R(() => {
|
24
|
-
f(), e == null || e(
|
24
|
+
f(), e == null || e(r);
|
25
25
|
});
|
26
26
|
});
|
27
27
|
}, f = () => {
|
@@ -60,7 +60,7 @@ const re = /* @__PURE__ */ j({
|
|
60
60
|
series: []
|
61
61
|
};
|
62
62
|
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
|
63
|
+
let r = l.value.fields.find((a) => a.group && a.name != l.value.date), k = y.value.fields.find((a) => a.name == r.name).control.data.data;
|
64
64
|
for (let a = 0; a < k.length; a++) {
|
65
65
|
let o = k[a];
|
66
66
|
o.color || Y.error("颜色字段不能为空");
|
@@ -104,23 +104,23 @@ const re = /* @__PURE__ */ j({
|
|
104
104
|
global: !0
|
105
105
|
});
|
106
106
|
for (let h = 0; h < t.length; h++) {
|
107
|
-
let $ = t[h], _ = u.value[l.value.table].find((L) => L[
|
107
|
+
let $ = t[h], _ = u.value[l.value.table].find((L) => L[r.name] == o.value && L[l.value.date] == $);
|
108
108
|
_ == null ? n.data.push(null) : n.data.push(_[l.value.value]);
|
109
109
|
}
|
110
110
|
e.series.push(n), e.legend.data.push(o.text);
|
111
111
|
}
|
112
112
|
e.xAxis.data.push(...t), i.setOption(e);
|
113
113
|
}, w = async () => {
|
114
|
-
var
|
115
|
-
let t = C.dom.getHeight([(
|
114
|
+
var r;
|
115
|
+
let t = C.dom.getHeight([(r = d.value) == null ? void 0 : r.$el]), e = b.value.getBoundingClientRect();
|
116
116
|
g.value = e.height - t - 10 - 1, await R();
|
117
117
|
}, N = async (t) => {
|
118
118
|
d.value.resize(t), await w(), i == null || i.resize();
|
119
119
|
}, U = async () => {
|
120
|
-
await w(), i =
|
120
|
+
await w(), i = x.init(v.value), f();
|
121
121
|
};
|
122
122
|
return G(async () => {
|
123
|
-
|
123
|
+
p.value = W.getConditionForm(m.value, E.value.query.condition), x = await X.getECharts(), await U();
|
124
124
|
}), M(() => l.value, (t, e) => {
|
125
125
|
f();
|
126
126
|
}), F({ resize: N }), (t, e) => (O(), I("div", {
|
@@ -131,22 +131,22 @@ const re = /* @__PURE__ */ j({
|
|
131
131
|
J(Z, {
|
132
132
|
ref_key: "searchRef",
|
133
133
|
ref: d,
|
134
|
-
schema:
|
135
|
-
table:
|
136
|
-
layout:
|
137
|
-
set:
|
138
|
-
"search-data":
|
139
|
-
onChange:
|
134
|
+
schema: s(m),
|
135
|
+
table: s(y),
|
136
|
+
layout: s(l),
|
137
|
+
set: s(u),
|
138
|
+
"search-data": s(p),
|
139
|
+
onChange: s(V)
|
140
140
|
}, null, 8, ["schema", "table", "layout", "set", "search-data", "onChange"]),
|
141
141
|
K("div", {
|
142
142
|
ref_key: "chartRef",
|
143
143
|
ref: v,
|
144
144
|
class: "chart",
|
145
|
-
style: P({ height:
|
145
|
+
style: P({ height: s(g) + "px" })
|
146
146
|
}, null, 4)
|
147
147
|
], 512));
|
148
148
|
}
|
149
149
|
});
|
150
150
|
export {
|
151
|
-
|
151
|
+
se as default
|
152
152
|
};
|
@@ -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-O1UAbsov.js";
|
3
3
|
const b = /* @__PURE__ */ c({
|
4
4
|
__name: "Stock",
|
5
5
|
props: {
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { defineComponent as F, toRefs as
|
2
|
-
import {
|
1
|
+
import { defineComponent as F, toRefs as R, ref as T, onMounted as B, openBlock as E, createBlock as G, unref as f, withCtx as P, createElementVNode as A, createTextVNode as V, toDisplayString as b } from "vue";
|
2
|
+
import { C as O, p as K, _ as N, U } from "./main-SNlEeN01.js";
|
3
3
|
import "./assets/moment-h96o7c8I.js";
|
4
4
|
const J = /* @__PURE__ */ F({
|
5
5
|
__name: "Stock",
|
@@ -14,7 +14,7 @@ const J = /* @__PURE__ */ F({
|
|
14
14
|
set: {}
|
15
15
|
},
|
16
16
|
setup(k) {
|
17
|
-
let L = k, { module: j, schema: z, table: v, layout: n, next: W, set: h } =
|
17
|
+
let L = k, { module: j, schema: z, table: v, layout: n, next: W, set: h } = R(L), p = null, c = null, y = "#04aa4e", x = "#ff5945", w = T(), u = { history: null, week: null, month: null }, { app: S } = O.sys, M = (t) => {
|
18
18
|
let o = U.array.orderBy(t, (i) => i[n.value.time], !1), e = [], l = [], r = [];
|
19
19
|
for (let i = 0; i < o.length; i++) {
|
20
20
|
let a = o[i];
|
@@ -23,7 +23,7 @@ const J = /* @__PURE__ */ F({
|
|
23
23
|
l.push([d, s, parseFloat(a[n.value.low]), parseFloat(a[n.value.high])]);
|
24
24
|
let C = {
|
25
25
|
value: parseFloat(a[n.value.volumn]),
|
26
|
-
itemStyle: { color: s > d ?
|
26
|
+
itemStyle: { color: s > d ? y : x }
|
27
27
|
};
|
28
28
|
r.push(C);
|
29
29
|
}
|
@@ -146,9 +146,9 @@ const J = /* @__PURE__ */ F({
|
|
146
146
|
//网格索引,表示使用第2个网格的配置
|
147
147
|
data: t.values,
|
148
148
|
itemStyle: {
|
149
|
-
color:
|
149
|
+
color: y,
|
150
150
|
color0: x,
|
151
|
-
borderColor:
|
151
|
+
borderColor: y,
|
152
152
|
borderColor0: x
|
153
153
|
},
|
154
154
|
markPoint: {
|
@@ -268,14 +268,14 @@ const J = /* @__PURE__ */ F({
|
|
268
268
|
}), o / t.length * 100;
|
269
269
|
}, I = (t) => {
|
270
270
|
let o = _(t);
|
271
|
-
|
271
|
+
p || (p = c.init(w.value)), p.setOption(o);
|
272
272
|
let e = t.values, l = e.reverse();
|
273
273
|
u.history = g(e), u.week = g(l.slice(0, 7)), u.month = g(l.slice(0, 30));
|
274
274
|
}, Z = () => {
|
275
275
|
let t = h.value[v.value.name];
|
276
276
|
t.length > 0 && I(M(t));
|
277
277
|
};
|
278
|
-
return
|
278
|
+
return B(async () => {
|
279
279
|
c = await K.getECharts(), Z();
|
280
280
|
}), (t, o) => (E(), G(f(N), null, {
|
281
281
|
default: P(() => [
|
@@ -10,7 +10,7 @@ const x = /* @__PURE__ */ u({
|
|
10
10
|
modelValue: { type: [String, Number, Boolean] }
|
11
11
|
},
|
12
12
|
setup(a) {
|
13
|
-
let r = f(() => import("./Dictionary-
|
13
|
+
let r = f(() => import("./Dictionary-CAAvUqf-.js")), n = a, { schema: m, table: s, field: i, set: d, row: p, modelValue: t } = c(n);
|
14
14
|
return (h, l) => (b(), w(e(r), {
|
15
15
|
schema: e(m),
|
16
16
|
table: e(s),
|