halo-pc 1.0.37 → 1.0.38
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{Article-DSuvpyeC.js → Article-H_clf90b.js} +31 -32
- package/dist/{ArticleFooter-Cx3OC7sV.js → ArticleFooter-BLi4TNA7.js} +3 -4
- package/dist/Autocomplete-BF9x0F4f.js +49 -0
- package/dist/{Autocomplete-DASTUS8d.js → Autocomplete-CcIzTPSr.js} +11 -12
- package/dist/{Autocomplete-1jt0wRMS.js → Autocomplete-DMm6oI1g.js} +1 -1
- package/dist/{CSharp-CebNTVPd.js → CSharp-CZOchOE-.js} +1 -1
- package/dist/{Calender-BBILvX8n.js → Calender-BoQV7bhA.js} +4 -4
- package/dist/Callback-79Bw4RwY.js +20 -0
- package/dist/Cascader-D1Ou5OSg.js +41 -0
- package/dist/{Cascader-DyQ312mS.js → Cascader-DMhl98vw.js} +27 -28
- package/dist/{Checkbox-CHmMU0Cs.js → Checkbox-C6t6S7ii.js} +1 -1
- package/dist/{Checkbox-CyC_mo50.js → Checkbox-DtrXMDBR.js} +13 -14
- package/dist/Code-B8ISTTYK.js +54 -0
- package/dist/Code-BMlBvnqa.js +4 -0
- package/dist/{Code-CIFJJJo3.js → Code-DDacfgvl.js} +1 -1
- package/dist/Code-DIGn8Raz.js +36 -0
- package/dist/Code.vue_vue_type_style_index_0_lang-hHYTH50F.js +57 -0
- package/dist/Column-DjA11efs.js +69 -0
- package/dist/{Comment-D78rr4-n.js → Comment-Ixu0gPk3.js} +19 -25
- package/dist/{Compare-DLiL32cA.js → Compare-C1uq4lgK.js} +9 -10
- package/dist/{Compare-Cb9vYPl5.js → Compare-NN40QJWm.js} +10 -11
- package/dist/{Copy-CH2_hawJ.js → Copy-BcfSvyWG.js} +11 -12
- package/dist/{Custom-D9qN9bwa.js → Custom-Dn9_vPuD.js} +21 -22
- package/dist/{DataExport-D8cqXPrh.js → DataExport-DNGgWqsx.js} +1 -1
- package/dist/{DataExport.vue_vue_type_script_setup_true_lang-DmB5AeGR.js → DataExport.vue_vue_type_script_setup_true_lang-tTTDFXQV.js} +24 -25
- package/dist/{DataImport-3KwXYYGw.js → DataImport-CI9eM5T1.js} +1 -1
- package/dist/{DataImport.vue_vue_type_script_setup_true_lang-C9xs1_ec.js → DataImport.vue_vue_type_script_setup_true_lang-BCMd1s45.js} +39 -40
- package/dist/{Date-OZxdofhB.js → Date-CGyzi8yX.js} +1 -1
- package/dist/{Date-yHlD-Lw2.js → Date-CZGbZKjB.js} +8 -9
- package/dist/{DateRange-BLSxDHKv.js → DateRange-MbbkmZ_Y.js} +9 -10
- package/dist/{DateTime-B7GzMj8Q.js → DateTime-DHrHmRLL.js} +1 -1
- package/dist/{DateTime-8tbpOKOK.js → DateTime-DqUOXGWH.js} +8 -9
- package/dist/{DateTimeRange-COFWmQoO.js → DateTimeRange-DgXQkZLx.js} +11 -12
- package/dist/{Daterange-Cy8l4CfJ.js → Daterange-DLHJuRur.js} +8 -9
- package/dist/{Decimal-Dw6EtZOm.js → Decimal-BUJuuvfr.js} +1 -1
- package/dist/{Delete-DjXSCUKp.js → Delete-BGMk0orl.js} +19 -20
- package/dist/{Detail-DU8mI4u2.js → Detail-D4KzWdHQ.js} +7 -8
- package/dist/Dictionary-Esd3ERAq.js +55 -0
- package/dist/{Email-AHWpz5Ck.js → Email-C9K09hwC.js} +11 -12
- package/dist/{File-DUxwHR5G.js → File-ai1eYO7v.js} +43 -44
- package/dist/{Image-BJ5q87B6.js → Image-CfY4G1Yn.js} +1 -1
- package/dist/{Index-Z8HW5XAm.js → Index-B5o7uf36.js} +15 -16
- package/dist/Index-CH3nwnPZ.js +4 -0
- package/dist/Index-CTjDkp7e.js +4 -0
- package/dist/Index-DSZ8wa7U.js +4 -0
- package/dist/Index-DVdiF3gr.js +4 -0
- package/dist/{Index-Jt1omrn-.js → Index-DYHrSEZ5.js} +1 -1
- package/dist/Index-DsZPtDYE.js +173 -0
- package/dist/{Index-KTv20XtO.js → Index-S1btGSGD.js} +1 -1
- package/dist/{Index.vue_vue_type_script_setup_true_lang-_8v_4G-B.js → Index.vue_vue_type_script_setup_true_lang-BjE0VeTO.js} +6 -7
- package/dist/{Index.vue_vue_type_script_setup_true_lang-BznVrY52.js → Index.vue_vue_type_script_setup_true_lang-H8ogKL2I.js} +14 -20
- package/dist/{Install-C-xxCx9D.js → Install-D-MgafyF.js} +13 -14
- package/dist/{Int-BsHpY5Gt.js → Int-CnvfCxgn.js} +9 -10
- package/dist/{Int-1QpMyTPB.js → Int-D3RqVcmN.js} +13 -14
- package/dist/{List-DW7FpMfd.js → List-DA4SO_le.js} +18 -19
- package/dist/Maintaince-BIgEbjrq.js +14 -0
- package/dist/{Markdown-BZhSwheI.js → Markdown-hax8By5O.js} +1 -1
- package/dist/Month-5lTUiWin.js +37 -0
- package/dist/{Month-IJnA7Kgl.js → Month-BDkwv-vc.js} +11 -12
- package/dist/{Month-BKXtBi6i.js → Month-CnVTSnyK.js} +1 -1
- package/dist/{Normal-CettIwbU.js → Normal-DoE9t7d7.js} +52 -53
- package/dist/Paging-5qsCTRWy.js +92 -0
- package/dist/{PagingHeader-irWrEKGQ.js → PagingHeader-BFtE6jSy.js} +35 -36
- package/dist/{PagingRow-Bft1brFD.js → PagingRow-CSB-kwMz.js} +19 -20
- package/dist/{Racebar-D3VFwM1V.js → Racebar-Bc-dDRss.js} +25 -31
- package/dist/{Radio-C-IwNXnz.js → Radio-CMGOtMnx.js} +1 -1
- package/dist/{Register-XTfqbbgr.js → Register-8wi0uixs.js} +60 -61
- package/dist/RichText-BR4Kvx0J.js +41 -0
- package/dist/{SearchFooter-hC7sQBez.js → SearchFooter-DOC21dmS.js} +1 -1
- package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-DgM6JntR.js → SearchFooter.vue_vue_type_style_index_0_lang-CoJZtP84.js} +3 -3
- package/dist/{SearchForm-BTux7Adt.js → SearchForm-BMTSPce_.js} +1 -1
- package/dist/{SearchForm.vue_vue_type_style_index_0_lang-Ddpe-p19.js → SearchForm.vue_vue_type_style_index_0_lang-wiTxKu-H.js} +31 -32
- package/dist/{Select-ClAK8aNJ.js → Select-DAxdpZlO.js} +15 -16
- package/dist/{Select-K1dU20i2.js → Select-DnFyey0n.js} +30 -31
- package/dist/{Select-DlM_C-60.js → Select-MBD4Simw.js} +1 -1
- package/dist/{Single-DYDwq041.js → Single-D6x6VV_B.js} +74 -75
- package/dist/{Statistic-CidgrAcU.js → Statistic-BS_DA72m.js} +29 -30
- package/dist/{Stock-BFszdaCn.js → Stock-CbucObTu.js} +1 -1
- package/dist/{Stock-BiuhsKPB.js → Stock-CtmevqBK.js} +1 -1
- package/dist/{Stock.vue_vue_type_style_index_0_lang-O1UAbsov.js → Stock.vue_vue_type_style_index_0_lang-LfsWg1Ps.js} +17 -18
- package/dist/{Switch-TI8J8-E2.js → Switch-BlXAy9qH.js} +1 -1
- package/dist/{Table-DJOSPNrn.js → Table-CqsfAMh7.js} +73 -74
- package/dist/{Table-DYELgaTY.js → Table-Da9gan1Y.js} +61 -62
- package/dist/Text-C72NLZMt.js +48 -0
- package/dist/Text-CHvsKR9H.js +4 -0
- package/dist/{Text-DEv-wMFU.js → Text-CbZlEVTJ.js} +11 -12
- package/dist/Text.vue_vue_type_style_index_0_lang-aMaBccpg.js +53 -0
- package/dist/{TextLink-CKPExcuj.js → TextLink-SAnZ7BfX.js} +10 -11
- package/dist/{Textarea-CEv7HYqY.js → Textarea-DphCUpXp.js} +1 -1
- package/dist/{Time-BeTq6Tq3.js → Time-DjE8yYdK.js} +10 -11
- package/dist/{Timeline-BI2o8Kug.js → Timeline-D11vjkpZ.js} +13 -19
- package/dist/{Tree-DlIrY3e2.js → Tree-DK73Ou_F.js} +35 -41
- package/dist/{Tree-BPeNz1X4.js → Tree-kich05vY.js} +79 -80
- package/dist/{TreeNode-CzM6Npi5.js → TreeNode-Dx6cZ31Z.js} +10 -11
- package/dist/{Update-Bv6Lp8LZ.js → Update-D2Plm_AG.js} +14 -15
- package/dist/{UpdateChild-mrF1t5G8.js → UpdateChild-BXV7QqaP.js} +20 -21
- package/dist/{Upload-BCdzJlzR.js → Upload-B87EDynn.js} +46 -47
- package/dist/Upload-CHPjMGFZ.js +65 -0
- package/dist/{Year-DLITl-_8.js → Year-BPFmIiPX.js} +1 -1
- package/dist/{Year-2hJSZcj_.js → Year-C93IJgc8.js} +8 -9
- package/dist/assets/{clipboard-DjQPoCBJ.js → clipboard-ClN4QccS.js} +1 -3
- package/dist/main-nvsTmKXH.js +16321 -0
- package/dist/main.js +43 -45
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/dist/Autocomplete-C7CYy8w6.js +0 -50
- package/dist/Callback-CLA9Ab9q.js +0 -21
- package/dist/Cascader-DY2zOwsa.js +0 -47
- package/dist/Code-B4Z7WuUc.js +0 -42
- package/dist/Code-BOTf1uZ5.js +0 -60
- package/dist/Code-Da4PjT9q.js +0 -4
- package/dist/Code.vue_vue_type_style_index_0_lang-ChjwMs7I.js +0 -63
- package/dist/Column-9A6-8_Y7.js +0 -75
- package/dist/Dictionary-CAAvUqf-.js +0 -61
- package/dist/Index-CF44rsZW.js +0 -4
- package/dist/Index-CnFjsuQV.js +0 -4
- package/dist/Index-D223MCYD.js +0 -174
- package/dist/Index-DCIDLocj.js +0 -4
- package/dist/Index-qIfIbiFH.js +0 -4
- package/dist/Maintaince-CjUfJUr7.js +0 -20
- package/dist/Month-m0FiTmBK.js +0 -38
- package/dist/Paging-J9vCBFzM.js +0 -93
- package/dist/RichText-D3aLlQph.js +0 -47
- package/dist/Text-DAliAA9U.js +0 -4
- package/dist/Text-Dy6uYSm3.js +0 -49
- package/dist/Text.vue_vue_type_style_index_0_lang-Cm-1AGNB.js +0 -59
- package/dist/Upload-B0dBN1oH.js +0 -71
- package/dist/assets/clone-BZn0cTAu.js +0 -134
- package/dist/assets/file-saver-CwlpTZSc.js +0 -74
- package/dist/assets/liquidjs-C2HVw1Ra.js +0 -2901
- package/dist/assets/moment-h96o7c8I.js +0 -2578
- package/dist/assets/sprintf-js-BPTdvBYM.js +0 -148
- 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/main-SNlEeN01.js +0 -10337
@@ -1,10 +1,9 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import {
|
3
|
-
import "./assets/moment-h96o7c8I.js";
|
1
|
+
import { defineComponent as A, toRefs as D, ref as f, computed as L, resolveComponent as _, openBlock as c, createBlock as y, unref as n, withKeys as O, withModifiers as U, isRef as $, withCtx as V, createElementBlock as k, Fragment as q, renderList as z, createElementVNode as G, toDisplayString as w, createCommentVNode as H, nextTick as I } from "vue";
|
2
|
+
import { k as J, d as P, o as Q, _ as W } from "./main-nvsTmKXH.js";
|
4
3
|
const X = { class: "option-text" }, Y = {
|
5
4
|
key: 0,
|
6
5
|
class: "option-suffix"
|
7
|
-
},
|
6
|
+
}, le = /* @__PURE__ */ A({
|
8
7
|
__name: "Select",
|
9
8
|
props: {
|
10
9
|
schema: {},
|
@@ -16,36 +15,36 @@ const X = { class: "option-text" }, Y = {
|
|
16
15
|
},
|
17
16
|
emits: ["submit", "change", "update:modelValue"],
|
18
17
|
setup(C, { emit: E }) {
|
19
|
-
let s = E, B = C, { schema: S, field: u, table: m, set:
|
18
|
+
let s = E, B = C, { schema: S, field: u, table: m, set: h, row: R, modelValue: p } = D(B), x = f(), b = f(), v = f(!1), d = f(u.value.control.data.data), j = (t) => {
|
20
19
|
t == "" && (t = null);
|
21
20
|
let e;
|
22
|
-
if (P.
|
21
|
+
if (P.object.isString(t) && u.value.control.multiple ? e = t.join(",") : e = t, r.value = e, u.value.control.text) {
|
23
22
|
let a = m.value.fields.find((l) => l.name == u.value.control.text), o;
|
24
23
|
e && (o = d.value.find((i) => i.value == e).text);
|
25
24
|
debugger;
|
26
25
|
R.value[a.name] = o;
|
27
26
|
}
|
28
|
-
|
29
|
-
},
|
27
|
+
g(m.value, u.value), s("change", t);
|
28
|
+
}, K = () => {
|
30
29
|
s("submit");
|
31
|
-
},
|
32
|
-
},
|
33
|
-
|
34
|
-
let t = { text:
|
30
|
+
}, N = () => {
|
31
|
+
}, F = () => {
|
32
|
+
v.value = !0;
|
33
|
+
let t = { text: b.value, conditions: [] };
|
35
34
|
u.value.control.data.conditions.forEach((e) => {
|
36
|
-
let a =
|
35
|
+
let a = h.value[e.table].filter((l) => l[e.field] != null).map((l) => l[e.field]), o = a.length == 0 ? null : a.join(",");
|
37
36
|
t.conditions.push({ name: e.name, value: o });
|
38
37
|
}), W.post(u.value.control.data.route, t).then(({ data: e }) => {
|
39
38
|
d.value = e;
|
40
39
|
}).finally(() => {
|
41
|
-
|
40
|
+
v.value = !1, I(() => {
|
42
41
|
let e = d.value.find((a) => a.value == r.value);
|
43
42
|
x.value.scrollToOption(e);
|
44
43
|
});
|
45
44
|
});
|
46
|
-
},
|
47
|
-
|
48
|
-
},
|
45
|
+
}, M = (t) => {
|
46
|
+
b.value = t, F();
|
47
|
+
}, T = (t, e) => {
|
49
48
|
let a = [];
|
50
49
|
return S.value.forEach((o) => {
|
51
50
|
o.fields.forEach((l) => {
|
@@ -54,11 +53,11 @@ const X = { class: "option-text" }, Y = {
|
|
54
53
|
});
|
55
54
|
});
|
56
55
|
}), a;
|
57
|
-
},
|
58
|
-
|
59
|
-
Q.setRowsValue(null,
|
56
|
+
}, g = (t, e) => {
|
57
|
+
T(t, e).forEach((o) => {
|
58
|
+
Q.setRowsValue(null, h.value, o.table, o.field), g(o.table, o.field);
|
60
59
|
});
|
61
|
-
}, r =
|
60
|
+
}, r = L({
|
62
61
|
get() {
|
63
62
|
return u.value.control.multiple ? p.value == null ? [] : p.value.toString().split(",") : p.value;
|
64
63
|
},
|
@@ -67,7 +66,7 @@ const X = { class: "option-text" }, Y = {
|
|
67
66
|
}
|
68
67
|
});
|
69
68
|
return (t, e) => {
|
70
|
-
const a =
|
69
|
+
const a = _("el-option"), o = _("el-select");
|
71
70
|
return c(), y(o, {
|
72
71
|
ref_key: "selectRef",
|
73
72
|
ref: x,
|
@@ -80,24 +79,24 @@ const X = { class: "option-text" }, Y = {
|
|
80
79
|
clearable: "",
|
81
80
|
placeholder: n(J)(n(m).name, n(u).name),
|
82
81
|
multiple: n(u).control.multiple,
|
83
|
-
"remote-method": n(
|
84
|
-
loading: n(
|
82
|
+
"remote-method": n(M),
|
83
|
+
loading: n(v),
|
85
84
|
disabled: n(u).control.readonly,
|
86
|
-
onKeyup:
|
87
|
-
onBlur: n(
|
88
|
-
onChange: n(
|
85
|
+
onKeyup: O(U(n(K), ["alt"]), ["enter", "native"]),
|
86
|
+
onBlur: n(N),
|
87
|
+
onChange: n(j),
|
89
88
|
modelValue: n(r),
|
90
89
|
"onUpdate:modelValue": e[0] || (e[0] = (l) => $(r) ? r.value = l : r = l)
|
91
90
|
}, {
|
92
91
|
default: V(() => [
|
93
|
-
(c(!0),
|
92
|
+
(c(!0), k(q, null, z(n(d), (l, i) => (c(), y(a, {
|
94
93
|
label: `${l.text}${l.suffix ? "(" + l.suffix + ")" : ""}`,
|
95
94
|
value: l.value,
|
96
95
|
key: l.value
|
97
96
|
}, {
|
98
97
|
default: V(() => [
|
99
|
-
G("span", X,
|
100
|
-
l.suffix ? (c(),
|
98
|
+
G("span", X, w(l.text), 1),
|
99
|
+
l.suffix ? (c(), k("span", Y, "(" + w(l.suffix) + ")", 1)) : H("", !0)
|
101
100
|
]),
|
102
101
|
_: 2
|
103
102
|
}, 1032, ["label", "value"]))), 128))
|
@@ -108,5 +107,5 @@ const X = { class: "option-text" }, Y = {
|
|
108
107
|
}
|
109
108
|
});
|
110
109
|
export {
|
111
|
-
|
110
|
+
le as default
|
112
111
|
};
|
@@ -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-Esd3ERAq.js")), n = a, { schema: m, table: s, field: d, set: i, row: p, modelValue: l } = c(n);
|
14
14
|
return (_, t) => (b(), V(e(r), {
|
15
15
|
schema: e(m),
|
16
16
|
table: e(s),
|
@@ -1,8 +1,7 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import {
|
3
|
-
import "./
|
4
|
-
|
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({
|
1
|
+
import { defineComponent as $e, toRefs as Ue, ref as u, computed as Y, watch as Be, resolveComponent as c, openBlock as d, createElementBlock as j, normalizeClass as De, unref as e, createElementVNode as m, createVNode as g, withCtx as s, withModifiers as Le, createBlock as h, isRef as Z, Fragment as ee, renderList as le, toDisplayString as k, createCommentVNode as B, resolveDynamicComponent as Ae, normalizeStyle as Ke, createTextVNode as te, nextTick as ae } from "vue";
|
2
|
+
import { c as Me, b as Ne, f as oe, w as Pe, e as qe, d as D, a as je, _ as Fe, i as ue, S as He, M as Oe, m as re, x as Ge, A as Ie } from "./main-nvsTmKXH.js";
|
3
|
+
import { _ as ne } from "./Index.vue_vue_type_script_setup_true_lang-BjE0VeTO.js";
|
4
|
+
const Je = { class: "ha-main-form" }, Qe = { class: "row-header" }, We = { class: "row-title" }, Xe = { class: "el-drawer__title" }, Ye = ["href"], al = /* @__PURE__ */ $e({
|
6
5
|
__name: "Single",
|
7
6
|
props: {
|
8
7
|
base: {},
|
@@ -12,20 +11,20 @@ const Je = { class: "ha-main-form" }, Qe = { class: "row-header" }, We = { class
|
|
12
11
|
},
|
13
12
|
emits: ["navigate", "load", "succeed", "close"],
|
14
13
|
setup(se, { expose: ie, emit: de }) {
|
15
|
-
let
|
14
|
+
let L = de, me = se, { url: ve, base: F, route: z } = Ue(me), p = u(), b = u(), v = u(), r = u(), y = u(), A = u(), f = u({ table: null, layout: null }), w = u(), K = u([]), fe = u(), E = u(), S = u(), N = u(), C = u(), H = u(), i = u({ page: null, url: null, visible: !1, appendToBody: !1 }), x = u(!1), P = u(), R = u(), ce = (l) => !0, pe = (l) => {
|
16
15
|
let t = D.url.getPath(ve.value), a = D.url.getPath(l);
|
17
16
|
return t != a;
|
18
17
|
}, be = () => {
|
19
18
|
Ve();
|
20
19
|
}, ye = (l, t) => {
|
21
|
-
|
20
|
+
O("copy", l, t);
|
22
21
|
}, _e = (l, t) => {
|
23
|
-
|
22
|
+
O("update", l, t);
|
24
23
|
}, ge = () => {
|
25
24
|
i.value.visible = !1;
|
26
|
-
},
|
25
|
+
}, O = (l, t, a) => {
|
27
26
|
let n = he(l, t);
|
28
|
-
a.ctrlKey ?
|
27
|
+
a.ctrlKey ? L("navigate", n) : (i.value.appendToBody = a.altKey, i.value.page = l, i.value.url = n, i.value.visible = !0);
|
29
28
|
}, he = (l, t = null) => {
|
30
29
|
let a = `${b.value[l].route}`;
|
31
30
|
if (t != null) {
|
@@ -34,17 +33,17 @@ const Je = { class: "ha-main-form" }, Qe = { class: "row-header" }, We = { class
|
|
34
33
|
}
|
35
34
|
return a;
|
36
35
|
}, we = (l, t, a) => {
|
37
|
-
(a.ctrlKey || x.value) && (
|
36
|
+
(a.ctrlKey || x.value) && (P.value = l, R.value = D.object.clone(t), x.value = !0, R.value.fields.forEach((n) => {
|
38
37
|
n.control.textualize = !1;
|
39
38
|
}));
|
40
39
|
}, G = (l) => {
|
41
|
-
i.value.visible = !1,
|
40
|
+
i.value.visible = !1, L("succeed", W.value, l);
|
42
41
|
}, Ce = () => {
|
43
|
-
|
42
|
+
L("close");
|
44
43
|
}, I = (l, t, a, n, T) => {
|
45
44
|
}, J = (l, t) => {
|
46
45
|
if (t) {
|
47
|
-
|
46
|
+
A.value = y.value.layouts.find((a) => a.type == l);
|
48
47
|
return;
|
49
48
|
}
|
50
49
|
f.value.layout = f.value.table.layouts.find((a) => a.type == l);
|
@@ -54,26 +53,26 @@ const Je = { class: "ha-main-form" }, Qe = { class: "row-header" }, We = { class
|
|
54
53
|
}, ke = (l) => {
|
55
54
|
let t = Object.keys(l)[0], a = t.substring(1, t.indexOf("]"));
|
56
55
|
r.value.find((T) => T.name == a).main || (w.value = a);
|
57
|
-
},
|
56
|
+
}, Se = (l, t = null, a = null) => {
|
58
57
|
ae(() => {
|
59
58
|
E.value.validate((n, T) => {
|
60
59
|
if (!n)
|
61
60
|
return ke(T), a && a(!1), !1;
|
62
|
-
let
|
63
|
-
t && t(
|
61
|
+
let $ = p.value.type == "Update" ? b.value.update.route : b.value.insert.route;
|
62
|
+
t && t($, v.value), Fe.post($, v.value).then(({ data: U, message: V }) => {
|
64
63
|
E.value.clearValidate(), ue.success(V), G(v.value);
|
65
|
-
}).catch(({ code:
|
66
|
-
if (
|
64
|
+
}).catch(({ code: U, data: V, message: X }) => {
|
65
|
+
if (U != "ValidateError")
|
67
66
|
return;
|
68
|
-
|
69
|
-
let
|
70
|
-
if (
|
71
|
-
let _ = r.value.find((o) => o.name ==
|
67
|
+
K.value = V;
|
68
|
+
let M = V.find((_) => _.table !== y.value.name);
|
69
|
+
if (M) {
|
70
|
+
let _ = r.value.find((o) => o.name == M.table);
|
72
71
|
_ && (w.value = _.name);
|
73
72
|
}
|
74
73
|
ae(() => {
|
75
74
|
E.value.clearValidate(), E.value.validate((_, o) => {
|
76
|
-
_ || (a && a(!1),
|
75
|
+
_ || (a && a(!1), K.value = []);
|
77
76
|
});
|
78
77
|
});
|
79
78
|
}).finally(() => {
|
@@ -83,70 +82,70 @@ const Je = { class: "ha-main-form" }, Qe = { class: "row-header" }, We = { class
|
|
83
82
|
});
|
84
83
|
}, Q = (l) => {
|
85
84
|
var a, n;
|
86
|
-
let t =
|
87
|
-
|
88
|
-
},
|
89
|
-
|
85
|
+
let t = He(l.module.type, l.module.name);
|
86
|
+
Oe.setTitle(t, l.module.env), p.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], A.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]);
|
87
|
+
}, Re = (l) => {
|
88
|
+
S.value && S.value.resize && S.value.resize(l), C.value && C.value.resize && C.value.resize(l);
|
90
89
|
}, Te = (l, t) => {
|
91
90
|
if (l == Ge.ctrlS) {
|
92
|
-
if (
|
93
|
-
Ie.triggerKeyboardHandler(
|
91
|
+
if (p.value.type == "Detail") {
|
92
|
+
Ie.triggerKeyboardHandler(H.value, l, t);
|
94
93
|
return;
|
95
94
|
}
|
96
|
-
|
95
|
+
q(t);
|
97
96
|
}
|
98
97
|
}, Ve = () => {
|
99
98
|
let l = D.url.getUrl(z.value.path, z.value.query);
|
100
|
-
|
99
|
+
L("load", l, !1, (t) => {
|
101
100
|
});
|
102
101
|
};
|
103
102
|
(() => {
|
104
|
-
Q(
|
103
|
+
Q(F.value.data);
|
105
104
|
})();
|
106
|
-
let
|
107
|
-
if (!
|
105
|
+
let q = (l) => {
|
106
|
+
if (!N.value.submit) {
|
108
107
|
ue.notify("提示", "请在子组件暴露submit方法来实现快捷提交", "warning");
|
109
108
|
return;
|
110
109
|
}
|
111
|
-
|
110
|
+
N.value.submit(l);
|
112
111
|
}, ze = Y(() => {
|
113
|
-
let l = `/${y.value.name}/update`, t =
|
114
|
-
return
|
115
|
-
}), W = Y(() =>
|
116
|
-
return Be(() =>
|
117
|
-
Q(l.data),
|
118
|
-
}), ie({ shouldLoad:
|
119
|
-
const a =
|
120
|
-
return d(),
|
112
|
+
let l = `/${y.value.name}/update`, t = p.value.type == "Detail" ? "detail" : "update";
|
113
|
+
return Me.getComponent(l, "partial", t);
|
114
|
+
}), W = Y(() => p.value.type.toLowerCase());
|
115
|
+
return Be(() => F.value, (l) => {
|
116
|
+
Q(l.data), S.value.update && S.value.update(l.data), C.value && C.value.update && C.value.update(l.data);
|
117
|
+
}), ie({ shouldLoad: ce, shouldSpin: pe, keyboardHandler: Te, refresh: be, resize: Re }), (l, t) => {
|
118
|
+
const a = c("el-tooltip"), n = c("el-tab-pane"), T = c("el-tabs"), $ = c("el-form"), U = c("el-scrollbar"), V = c("el-popover"), X = c("el-form-item"), M = c("el-card"), _ = c("el-drawer");
|
119
|
+
return d(), j("div", {
|
121
120
|
ref_key: "singleRef",
|
122
121
|
ref: fe,
|
123
122
|
class: De(["ha-single-page", { [e(W) + "-page"]: !0, editing: e(x) }])
|
124
123
|
}, [
|
125
124
|
m("div", Je, [
|
126
|
-
g(
|
125
|
+
g(U, { class: "main-scroller" }, {
|
127
126
|
default: s(() => [
|
128
|
-
g(
|
127
|
+
g($, {
|
129
128
|
ref_key: "formRef",
|
130
129
|
ref: E,
|
131
130
|
model: e(v),
|
132
|
-
onSubmit: t[3] || (t[3] =
|
131
|
+
onSubmit: t[3] || (t[3] = Le(() => {
|
133
132
|
}, ["prevent"]))
|
134
133
|
}, {
|
135
134
|
default: s(() => [
|
136
135
|
g(ne, {
|
137
136
|
ref_key: "mainRef",
|
138
|
-
ref:
|
139
|
-
module: e(
|
137
|
+
ref: S,
|
138
|
+
module: e(p),
|
140
139
|
schema: e(r),
|
141
140
|
table: e(y),
|
142
|
-
layout: e(
|
141
|
+
layout: e(A),
|
143
142
|
next: e(b),
|
144
143
|
set: e(v),
|
145
144
|
route: e(z),
|
146
|
-
"validate-errors": e(
|
145
|
+
"validate-errors": e(K),
|
147
146
|
onChange: e(I),
|
148
147
|
onLayoutChange: t[0] || (t[0] = (o) => e(J)(o, !0)),
|
149
|
-
onSubmit: e(
|
148
|
+
onSubmit: e(q)
|
150
149
|
}, null, 8, ["module", "schema", "table", "layout", "next", "set", "route", "validate-errors", "onChange", "onSubmit"]),
|
151
150
|
e(r).length > 1 ? (d(), h(T, {
|
152
151
|
key: 0,
|
@@ -156,7 +155,7 @@ const Je = { class: "ha-main-form" }, Qe = { class: "row-header" }, We = { class
|
|
156
155
|
"onUpdate:modelValue": t[1] || (t[1] = (o) => Z(w) ? w.value = o : w = o)
|
157
156
|
}, {
|
158
157
|
default: s(() => [
|
159
|
-
(d(!0),
|
158
|
+
(d(!0), j(ee, null, le(e(r).filter((o, Ee) => Ee > 0), (o) => (d(), h(n, {
|
160
159
|
name: o.name,
|
161
160
|
key: o.name
|
162
161
|
}, {
|
@@ -167,7 +166,7 @@ const Je = { class: "ha-main-form" }, Qe = { class: "row-header" }, We = { class
|
|
167
166
|
disabled: !o.tooltip
|
168
167
|
}, {
|
169
168
|
default: s(() => [
|
170
|
-
m("div", null, k(e(
|
169
|
+
m("div", null, k(e(Ne)(o.table)), 1)
|
171
170
|
]),
|
172
171
|
_: 2
|
173
172
|
}, 1032, ["content", "disabled"])
|
@@ -181,18 +180,18 @@ const Je = { class: "ha-main-form" }, Qe = { class: "row-header" }, We = { class
|
|
181
180
|
key: 1,
|
182
181
|
ref_key: "childRef",
|
183
182
|
ref: C,
|
184
|
-
module: e(
|
183
|
+
module: e(p),
|
185
184
|
schema: e(r),
|
186
185
|
table: e(f).table,
|
187
186
|
layout: e(f).layout,
|
188
187
|
next: e(b),
|
189
188
|
set: e(v),
|
190
189
|
route: e(z),
|
191
|
-
"validate-errors": e(
|
190
|
+
"validate-errors": e(K),
|
192
191
|
onRowEdit: e(we),
|
193
192
|
onChange: e(I),
|
194
193
|
onLayoutChange: t[2] || (t[2] = (o) => e(J)(o, !1)),
|
195
|
-
onSubmit: e(
|
194
|
+
onSubmit: e(q)
|
196
195
|
}, null, 8, ["module", "schema", "table", "layout", "next", "set", "route", "validate-errors", "onRowEdit", "onChange", "onSubmit"])) : B("", !0)
|
197
196
|
]),
|
198
197
|
_: 1
|
@@ -200,29 +199,29 @@ const Je = { class: "ha-main-form" }, Qe = { class: "row-header" }, We = { class
|
|
200
199
|
]),
|
201
200
|
_: 1
|
202
201
|
}),
|
203
|
-
(d(), h(
|
202
|
+
(d(), h(Ae(e(ze)), {
|
204
203
|
ref_key: "updateRef",
|
205
|
-
ref:
|
204
|
+
ref: N,
|
206
205
|
class: "main-footer",
|
207
206
|
schema: e(r),
|
208
207
|
table: e(y),
|
209
|
-
layout: e(
|
208
|
+
layout: e(A),
|
210
209
|
next: e(b),
|
211
210
|
set: e(v),
|
212
211
|
route: e(z),
|
213
212
|
onCopy: e(ye),
|
214
213
|
onEdit: e(_e),
|
215
|
-
onSubmit: e(
|
214
|
+
onSubmit: e(Se),
|
216
215
|
onClose: e(Ce)
|
217
216
|
}, null, 40, ["schema", "table", "layout", "next", "set", "route", "onCopy", "onEdit", "onSubmit", "onClose"]))
|
218
217
|
]),
|
219
|
-
e(x) ? (d(), h(
|
218
|
+
e(x) ? (d(), h(M, {
|
220
219
|
key: 0,
|
221
220
|
class: "side-form"
|
222
221
|
}, {
|
223
222
|
header: s(() => [
|
224
223
|
m("div", Qe, [
|
225
|
-
m("div", We, k(e(oe)("common.modify")) + " " + k(e(
|
224
|
+
m("div", We, k(e(oe)("common.modify")) + " " + k(e(P)[e(R).show[0].name]), 1),
|
226
225
|
m("div", {
|
227
226
|
class: "row-close",
|
228
227
|
onClick: t[4] || (t[4] = (o) => Z(x) ? x.value = !1 : x = !1)
|
@@ -232,19 +231,19 @@ const Je = { class: "ha-main-form" }, Qe = { class: "row-header" }, We = { class
|
|
232
231
|
])
|
233
232
|
]),
|
234
233
|
default: s(() => [
|
235
|
-
g(
|
234
|
+
g(U, null, {
|
236
235
|
default: s(() => [
|
237
|
-
g(
|
236
|
+
g($, {
|
238
237
|
size: "small",
|
239
238
|
"label-width": "80px"
|
240
239
|
}, {
|
241
240
|
default: s(() => [
|
242
|
-
(d(!0),
|
243
|
-
style:
|
241
|
+
(d(!0), j(ee, null, le(e(R).show, (o) => (d(), h(X, {
|
242
|
+
style: Ke(o.control.height ? `height: ${o.control.height}px;` : ""),
|
244
243
|
rules: o.rules
|
245
244
|
}, {
|
246
245
|
label: s(() => [
|
247
|
-
te(k(e(
|
246
|
+
te(k(e(Pe)(e(R).name, o.name)) + " ", 1),
|
248
247
|
o.control.tooltip ? (d(), h(V, {
|
249
248
|
key: 0,
|
250
249
|
trigger: "hover",
|
@@ -262,12 +261,12 @@ const Je = { class: "ha-main-form" }, Qe = { class: "row-header" }, We = { class
|
|
262
261
|
}, 1032, ["title"])) : B("", !0)
|
263
262
|
]),
|
264
263
|
default: s(() => [
|
265
|
-
g(
|
264
|
+
g(qe, {
|
266
265
|
schema: e(r),
|
267
|
-
table: e(
|
266
|
+
table: e(R),
|
268
267
|
field: o,
|
269
268
|
set: e(v),
|
270
|
-
row: e(
|
269
|
+
row: e(P)
|
271
270
|
}, null, 8, ["schema", "table", "field", "set", "row"])
|
272
271
|
]),
|
273
272
|
_: 2
|
@@ -285,7 +284,7 @@ const Je = { class: "ha-main-form" }, Qe = { class: "row-header" }, We = { class
|
|
285
284
|
key: 1,
|
286
285
|
"destroy-on-close": "",
|
287
286
|
"append-to-body": e(i).appendToBody,
|
288
|
-
size: `${e(
|
287
|
+
size: `${e(p).width ?? "60%"}`,
|
289
288
|
modelValue: e(i).visible,
|
290
289
|
"onUpdate:modelValue": t[5] || (t[5] = (o) => e(i).visible = o)
|
291
290
|
}, {
|
@@ -299,9 +298,9 @@ const Je = { class: "ha-main-form" }, Qe = { class: "row-header" }, We = { class
|
|
299
298
|
])
|
300
299
|
]),
|
301
300
|
default: s(() => [
|
302
|
-
g(e(
|
301
|
+
g(e(je), {
|
303
302
|
ref_key: "pageRef",
|
304
|
-
ref:
|
303
|
+
ref: H,
|
305
304
|
url: e(i).url,
|
306
305
|
onSucceed: e(G),
|
307
306
|
onClose: e(ge)
|
@@ -314,5 +313,5 @@ const Je = { class: "ha-main-form" }, Qe = { class: "row-header" }, We = { class
|
|
314
313
|
}
|
315
314
|
});
|
316
315
|
export {
|
317
|
-
|
316
|
+
al as default
|
318
317
|
};
|
@@ -1,8 +1,7 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import {
|
3
|
-
import "./
|
4
|
-
|
5
|
-
const se = /* @__PURE__ */ j({
|
1
|
+
import { defineComponent as q, toRefs as G, ref as c, onMounted as M, watch as O, openBlock as Z, createElementBlock as I, createVNode as J, unref as r, createElementVNode as K, normalizeStyle as P, nextTick as R } from "vue";
|
2
|
+
import { Z as Q, m as U, s as W, d as C, i as X } from "./main-nvsTmKXH.js";
|
3
|
+
import { _ as Y } from "./SearchForm.vue_vue_type_style_index_0_lang-wiTxKu-H.js";
|
4
|
+
const ie = /* @__PURE__ */ q({
|
6
5
|
__name: "Statistic",
|
7
6
|
props: {
|
8
7
|
searchData: {},
|
@@ -16,12 +15,12 @@ const se = /* @__PURE__ */ j({
|
|
16
15
|
},
|
17
16
|
emits: ["search"],
|
18
17
|
setup(A, { expose: F, emit: z }) {
|
19
|
-
let H = z, B = A, { route: E, module: T, schema:
|
18
|
+
let H = z, B = A, { route: E, module: T, schema: y, table: m, layout: l, next: ee, set: u, searchData: x } = G(B), s = null, p = null, g = c(), d = c(), v = c(), b = c(), { app: S } = Q.sys, V = (t) => {
|
20
19
|
D("search");
|
21
20
|
}, D = (t, e = null) => {
|
22
|
-
H(t, (
|
21
|
+
H(t, (i) => {
|
23
22
|
R(() => {
|
24
|
-
f(), e == null || e(
|
23
|
+
f(), e == null || e(i);
|
25
24
|
});
|
26
25
|
});
|
27
26
|
}, f = () => {
|
@@ -60,10 +59,10 @@ const se = /* @__PURE__ */ j({
|
|
60
59
|
series: []
|
61
60
|
};
|
62
61
|
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
|
62
|
+
let i = l.value.fields.find((a) => a.group && a.name != l.value.date), k = m.value.fields.find((a) => a.name == i.name).control.data.data;
|
64
63
|
for (let a = 0; a < k.length; a++) {
|
65
64
|
let o = k[a];
|
66
|
-
o.color ||
|
65
|
+
o.color || X.error("颜色字段不能为空");
|
67
66
|
let n = {
|
68
67
|
name: o.text,
|
69
68
|
type: "line",
|
@@ -104,49 +103,49 @@ const se = /* @__PURE__ */ j({
|
|
104
103
|
global: !0
|
105
104
|
});
|
106
105
|
for (let h = 0; h < t.length; h++) {
|
107
|
-
let
|
106
|
+
let j = t[h], _ = u.value[l.value.table].find((L) => L[i.name] == o.value && L[l.value.date] == j);
|
108
107
|
_ == null ? n.data.push(null) : n.data.push(_[l.value.value]);
|
109
108
|
}
|
110
109
|
e.series.push(n), e.legend.data.push(o.text);
|
111
110
|
}
|
112
|
-
e.xAxis.data.push(...t),
|
111
|
+
e.xAxis.data.push(...t), s.setOption(e);
|
113
112
|
}, w = async () => {
|
114
|
-
var
|
115
|
-
let t = C.dom.getHeight([(
|
113
|
+
var i;
|
114
|
+
let t = C.dom.getHeight([(i = d.value) == null ? void 0 : i.$el]), e = b.value.getBoundingClientRect();
|
116
115
|
g.value = e.height - t - 10 - 1, await R();
|
117
116
|
}, N = async (t) => {
|
118
|
-
d.value.resize(t), await w(),
|
119
|
-
},
|
120
|
-
await w(),
|
117
|
+
d.value.resize(t), await w(), s == null || s.resize();
|
118
|
+
}, $ = async () => {
|
119
|
+
await w(), s = p.init(v.value), f();
|
121
120
|
};
|
122
|
-
return
|
123
|
-
|
124
|
-
}),
|
121
|
+
return M(async () => {
|
122
|
+
x.value = U.getConditionForm(y.value, E.value.query.condition), p = await W.getECharts(), await $();
|
123
|
+
}), O(() => l.value, (t, e) => {
|
125
124
|
f();
|
126
|
-
}), F({ resize: N }), (t, e) => (
|
125
|
+
}), F({ resize: N }), (t, e) => (Z(), I("div", {
|
127
126
|
ref_key: "statisticRef",
|
128
127
|
ref: b,
|
129
128
|
class: "ha-statistic-layout"
|
130
129
|
}, [
|
131
|
-
J(
|
130
|
+
J(Y, {
|
132
131
|
ref_key: "searchRef",
|
133
132
|
ref: d,
|
134
|
-
schema:
|
135
|
-
table:
|
136
|
-
layout:
|
137
|
-
set:
|
138
|
-
"search-data":
|
139
|
-
onChange:
|
133
|
+
schema: r(y),
|
134
|
+
table: r(m),
|
135
|
+
layout: r(l),
|
136
|
+
set: r(u),
|
137
|
+
"search-data": r(x),
|
138
|
+
onChange: r(V)
|
140
139
|
}, null, 8, ["schema", "table", "layout", "set", "search-data", "onChange"]),
|
141
140
|
K("div", {
|
142
141
|
ref_key: "chartRef",
|
143
142
|
ref: v,
|
144
143
|
class: "chart",
|
145
|
-
style: P({ height:
|
144
|
+
style: P({ height: r(g) + "px" })
|
146
145
|
}, null, 4)
|
147
146
|
], 512));
|
148
147
|
}
|
149
148
|
});
|
150
149
|
export {
|
151
|
-
|
150
|
+
ie as default
|
152
151
|
};
|
@@ -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-LfsWg1Ps.js";
|
3
3
|
const b = /* @__PURE__ */ c({
|
4
4
|
__name: "Stock",
|
5
5
|
props: {
|