halo-pc 1.0.20 → 1.0.22
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Article-C_3LULzy.js +200 -0
- package/dist/{ArticleFooter-CsCnjrJ1.js → ArticleFooter-Do6I1mma.js} +24 -18
- package/dist/{Autocomplete-BGkHGSX_.js → Autocomplete-BLOOqTTn.js} +1 -1
- package/dist/Autocomplete-BLrbt1wN.js +53 -0
- package/dist/Autocomplete-C27XN8Sp.js +54 -0
- package/dist/{CSharp-NuDfWEq7.js → CSharp-BGn9jf2B.js} +1 -1
- package/dist/{Calender-C2YaNTHk.js → Calender-4bSMqUzx.js} +4 -4
- package/dist/Callback-BHYDtogL.js +26 -0
- package/dist/Cascader-D3y3WjFF.js +87 -0
- package/dist/Cascader-D9Y8L7X2.js +47 -0
- package/dist/{Checkbox-BAcK--1U.js → Checkbox-DnTLeLjt.js} +1 -1
- package/dist/Checkbox-dDfYBhhc.js +76 -0
- package/dist/{Code-CbsVyhOv.js → Code-Af5URLnL.js} +1 -1
- package/dist/Code-Bi9Y45vV.js +42 -0
- package/dist/Code-CWsSgkJq.js +60 -0
- package/dist/{Code-BHEes80c.js → Code-QYs-sjcG.js} +1 -1
- package/dist/Code.vue_vue_type_style_index_0_lang-CI6sLXKy.js +65 -0
- package/dist/Column-wzxM_-Vp.js +74 -0
- package/dist/Comment-BF8L1umD.js +104 -0
- package/dist/Compare-CjSQcnd3.js +43 -0
- package/dist/{Compare-gEOPuGLB.js → Compare-Cj_CPjIV.js} +25 -19
- package/dist/Copy-BNt-Dwoo.js +49 -0
- package/dist/Custom-CYPkAqpf.js +57 -0
- package/dist/{DataExport-hwoZoZUN.js → DataExport-CHQtRKzA.js} +1 -1
- package/dist/{DataExport.vue_vue_type_script_setup_true_lang-Dkq4fSkZ.js → DataExport.vue_vue_type_script_setup_true_lang-Dt2BAaAO.js} +41 -36
- package/dist/{DataImport-CQYeF50z.js → DataImport-CDcmH3Du.js} +1 -1
- package/dist/DataImport.vue_vue_type_script_setup_true_lang-dULXjbl_.js +176 -0
- package/dist/{Date-a3T1YbHN.js → Date-BStpsA7n.js} +1 -1
- package/dist/Date-U1py5NaK.js +43 -0
- package/dist/DateRange-DxAx2gxI.js +63 -0
- package/dist/DateTime-B3609Ct6.js +44 -0
- package/dist/{DateTime-BUYojCOY.js → DateTime-CmJw1-WA.js} +1 -1
- package/dist/{DateTimeRange-D9K4am0p.js → DateTimeRange-aDw57sTG.js} +17 -11
- package/dist/Daterange-C48t6usd.js +63 -0
- package/dist/{Decimal-CNhxJUZg.js → Decimal-Ca0K6NoZ.js} +1 -1
- package/dist/Delete-FhIvONUV.js +62 -0
- package/dist/{Detail-BXkTd6Wh.js → Detail-qqW0J946.js} +21 -15
- package/dist/Dictionary-CaXytFmK.js +59 -0
- package/dist/Email-H2DHJhMe.js +54 -0
- package/dist/{File-CAnAcqJX.js → File-CjXewuui.js} +33 -27
- package/dist/Image-BSuCHshD.js +9 -0
- package/dist/Index-9KImKLrj.js +4 -0
- package/dist/Index-BIbR8SAU.js +178 -0
- package/dist/Index-BaoxkF9F.js +4 -0
- package/dist/{Index-DJvB04cS.js → Index-BrI9x7i7.js} +1 -1
- package/dist/Index-CXR5RC6-.js +4 -0
- package/dist/{Index-RZT6JXBO.js → Index-CpGonJ_m.js} +1 -1
- package/dist/{Index-CseSUp2Z.js → Index-DUgprnVp.js} +1 -1
- package/dist/{Index-BqjKndKz.js → Index-icEhc88J.js} +25 -20
- package/dist/{Index.vue_vue_type_script_setup_true_lang-DtNDN8Ex.js → Index.vue_vue_type_script_setup_true_lang-Beb5UD_S.js} +21 -15
- package/dist/{Index.vue_vue_type_script_setup_true_lang-C8ZEc4nU.js → Index.vue_vue_type_script_setup_true_lang-DJ8ZzZ2K.js} +22 -16
- package/dist/{Index.vue_vue_type_style_index_0_lang-T12lwRy6.js → Index.vue_vue_type_style_index_0_lang-D7LuD-a2.js} +40 -35
- package/dist/{Install-DWWpscrR.js → Install-FwXpJIWk.js} +26 -20
- package/dist/Int-CXl1QpEL.js +44 -0
- package/dist/Int-DAxz3ETu.js +46 -0
- package/dist/List-CV9bkdrq.js +79 -0
- package/dist/Maintaince-DZNq9aHX.js +20 -0
- package/dist/{Markdown-d8PCfAFf.js → Markdown-BhwqDlwa.js} +1 -1
- package/dist/{Month-COEkKDL_.js → Month-BEmnA7zU.js} +1 -1
- package/dist/Month-DXQBHoJU.js +43 -0
- package/dist/Month-bgEd_K7_.js +44 -0
- package/dist/{Normal-BD7sNr-b.js → Normal-Dya4aqc7.js} +56 -51
- package/dist/Paging-JXDzxoM0.js +99 -0
- package/dist/{PagingHeader-CznmI0kr.js → PagingHeader-BETGBySb.js} +31 -25
- package/dist/{PagingRow-BJ-VLpfV.js → PagingRow-BLqp1c9E.js} +28 -22
- package/dist/QueryApi-B5jI3sBl.js +20 -0
- package/dist/{Racebar-BkwhD-rw.js → Racebar-CozeXwLJ.js} +42 -37
- package/dist/{Radio-CS12bajp.js → Radio-CuAxYw7j.js} +1 -1
- package/dist/{Register-l_X4fDPP.js → Register-B11jE2Ox.js} +78 -73
- package/dist/RichText-CxBE_cVg.js +47 -0
- package/dist/{SearchFooter-C8N9ku25.js → SearchFooter-agTqPUGE.js} +1 -1
- package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-6WvYHIn1.js → SearchFooter.vue_vue_type_style_index_0_lang-C-1Yr5_9.js} +1 -1
- package/dist/{SearchForm-DX0mN20A.js → SearchForm-DNKmE8W0.js} +1 -1
- package/dist/{SearchForm.vue_vue_type_style_index_0_lang-23AxHYiw.js → SearchForm.vue_vue_type_style_index_0_lang-BzrMV0Wr.js} +40 -35
- package/dist/Select-BPa5rx_H.js +86 -0
- package/dist/Select-CRfEAtba.js +117 -0
- package/dist/{Select-DYjvtHyi.js → Select-MqDjnB-C.js} +1 -1
- package/dist/{Single-DErvX9y_.js → Single-C5Kkr9SY.js} +112 -107
- package/dist/{Statistic-CQxXdu-V.js → Statistic-Ce_FMw5O.js} +36 -31
- package/dist/{Stock-CsoHCwV6.js → Stock-BTjhpaxv.js} +1 -1
- package/dist/{Stock-DXLdfC3r.js → Stock-D8AJmsvb.js} +1 -1
- package/dist/{Stock.vue_vue_type_style_index_0_lang-B-b3Lj_h.js → Stock.vue_vue_type_style_index_0_lang-DTj2ITJ6.js} +28 -23
- package/dist/{Switch-BCgZXfWo.js → Switch-gwGbi34o.js} +1 -1
- package/dist/{Table-CAVxyUTD.js → Table-C03eUBYm.js} +69 -63
- package/dist/{Table-DkJYgLFt.js → Table-DA8aGGEH.js} +74 -70
- package/dist/{Text-Cn0cOTli.js → Text-B5uPrGof.js} +18 -12
- package/dist/Text-D-VS-lCk.js +59 -0
- package/dist/Text-NRww74M3.js +4 -0
- package/dist/Text.vue_vue_type_style_index_0_lang-Fsbur1tJ.js +59 -0
- package/dist/TextLink-B_Qg6CnF.js +65 -0
- package/dist/{Textarea-Pc4TfoC3.js → Textarea-gtXLL6Qe.js} +1 -1
- package/dist/Time-DYOIZ2Rv.js +43 -0
- package/dist/Timeline-B4AYezYA.js +59 -0
- package/dist/{Tree-01Sb-9zi.js → Tree-CRDb0vS5.js} +67 -62
- package/dist/Tree-CTmXjN1O.js +122 -0
- package/dist/TreeNode-HFcGpAOb.js +42 -0
- package/dist/{Update-Cy1lFPVv.js → Update-EHyhYK5k.js} +18 -12
- package/dist/{UpdateChild-DV_8KV9G.js → UpdateChild-CC3b9evd.js} +23 -17
- package/dist/Upload-CkQ-5tVg.js +72 -0
- package/dist/Upload-um4BYzwO.js +150 -0
- package/dist/UploadApi-BmdGJGjh.js +20 -0
- package/dist/Year-DKBG5ihv.js +47 -0
- package/dist/{Year-BFZPXXq0.js → Year-Lhvyb9Vk.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-C1iALE1f.js +8947 -0
- package/dist/main.js +42 -41
- package/package.json +2 -2
- package/dist/Article-aps_F4Uq.js +0 -194
- package/dist/Autocomplete-CGoxGIM2.js +0 -48
- package/dist/Autocomplete-XdLV4jzi.js +0 -49
- package/dist/Callback-Czdr_dVp.js +0 -20
- package/dist/Cascader-D3Kr80fH.js +0 -81
- package/dist/Cascader-DRvnD4Xc.js +0 -41
- package/dist/Checkbox-5pSKww4M.js +0 -70
- package/dist/Code-BxQxsVD8.js +0 -54
- package/dist/Code-CtDTGfBy.js +0 -36
- package/dist/Code.vue_vue_type_style_index_0_lang-CPZKY3vQ.js +0 -59
- package/dist/Column-D3PMyaiE.js +0 -68
- package/dist/Comment-B3fvVYJF.js +0 -98
- package/dist/Compare-BXxJuIXf.js +0 -37
- package/dist/Copy-1znXP-dt.js +0 -43
- package/dist/Custom-C_15ZImX.js +0 -51
- package/dist/DataImport.vue_vue_type_script_setup_true_lang-ChWRjj2W.js +0 -172
- package/dist/Date-0bIUTNCs.js +0 -37
- package/dist/DateRange-Cxu9FXTE.js +0 -57
- package/dist/DateTime-IlsYZL-l.js +0 -38
- package/dist/Daterange-CX0Klog4.js +0 -57
- package/dist/Delete-DFl8Tr27.js +0 -56
- package/dist/Dictionary-DmarNVsi.js +0 -55
- package/dist/Email-BBjDCCOK.js +0 -48
- package/dist/Image-pufFvop2.js +0 -9
- package/dist/Index-C4D5pwwu.js +0 -173
- package/dist/Index-CD_KS2lO.js +0 -4
- package/dist/Index-CEh3KlPE.js +0 -4
- package/dist/Index-XmvSiC1h.js +0 -4
- package/dist/Int-Bi3P8XeV.js +0 -41
- package/dist/Int-Bn2p1DqA.js +0 -38
- package/dist/List-CeQRwXop.js +0 -73
- package/dist/Maintaince-CVMjhqSO.js +0 -14
- package/dist/Month-BfUSQ3xa.js +0 -38
- package/dist/Month-DQKfNQzN.js +0 -37
- package/dist/Paging-d_-VefNv.js +0 -94
- package/dist/QueryApi-Cdniq3mZ.js +0 -13
- package/dist/RichText-9MwwjuZi.js +0 -41
- package/dist/Select-CQE5kY-n.js +0 -111
- package/dist/Select-DaEqum3a.js +0 -80
- package/dist/Text-Dk5tNNZo.js +0 -53
- package/dist/Text-DvVWvaMO.js +0 -4
- package/dist/Text.vue_vue_type_style_index_0_lang-I01JEYAx.js +0 -53
- package/dist/TextLink-D3nvnLHn.js +0 -59
- package/dist/Time-CToG3p0T.js +0 -37
- package/dist/Timeline-DphvhX0U.js +0 -53
- package/dist/Tree-CH1RoUqu.js +0 -117
- package/dist/TreeNode-C54d29V-.js +0 -37
- package/dist/Upload-BalaO4wz.js +0 -146
- package/dist/Upload-DQVaPUdG.js +0 -67
- package/dist/UploadApi-Cfm5DM_x.js +0 -13
- package/dist/Year-Swm3VSzj.js +0 -41
- package/dist/main-BYJVoHlf.js +0 -19457
@@ -0,0 +1,117 @@
|
|
1
|
+
import { defineComponent as A, toRefs as D, ref as f, computed as H, resolveComponent as b, openBlock as c, createBlock as y, unref as n, withKeys as L, withModifiers as O, isRef as U, withCtx as V, createElementBlock as w, Fragment as $, renderList as q, createElementVNode as z, toDisplayString as k, createCommentVNode as G, nextTick as I } from "vue";
|
2
|
+
import "./assets/underscore-B0BCaBxV.js";
|
3
|
+
import { j as J, v as P, w as Q, h as W } from "./main-C1iALE1f.js";
|
4
|
+
import "./assets/underscore.string-DVXD2SZo.js";
|
5
|
+
import "./assets/clone-BZn0cTAu.js";
|
6
|
+
import "./assets/file-saver-CwlpTZSc.js";
|
7
|
+
import "./assets/moment-h96o7c8I.js";
|
8
|
+
import "./assets/liquidjs-C-LVcoaY.js";
|
9
|
+
const X = { class: "option-text" }, Y = {
|
10
|
+
key: 0,
|
11
|
+
class: "option-suffix"
|
12
|
+
}, ue = /* @__PURE__ */ A({
|
13
|
+
__name: "Select",
|
14
|
+
props: {
|
15
|
+
schema: {},
|
16
|
+
table: {},
|
17
|
+
field: {},
|
18
|
+
set: {},
|
19
|
+
row: {},
|
20
|
+
modelValue: { type: [String, Number, Boolean, Array] }
|
21
|
+
},
|
22
|
+
emits: ["submit", "change", "update:modelValue"],
|
23
|
+
setup(C, { emit: E }) {
|
24
|
+
let s = E, B = C, { schema: S, field: r, table: p, set: h, row: R, modelValue: m } = D(B), x = f(), g = f(), v = f(!1), d = f(r.value.control.data.data), j = (t) => {
|
25
|
+
t == "" && (t = null);
|
26
|
+
let e;
|
27
|
+
if (P.isString(t) && r.value.control.multiple ? e = t.join(",") : e = t, u.value = e, r.value.control.text) {
|
28
|
+
let a = p.value.fields.find((l) => l.name == r.value.control.text), o;
|
29
|
+
e && (o = d.value.find((i) => i.value == e).text);
|
30
|
+
debugger;
|
31
|
+
R.value[a.name] = o;
|
32
|
+
}
|
33
|
+
_(p.value, r.value), s("change", t);
|
34
|
+
}, K = () => {
|
35
|
+
s("submit");
|
36
|
+
}, N = () => {
|
37
|
+
}, T = () => {
|
38
|
+
v.value = !0;
|
39
|
+
let t = { text: g.value, conditions: [] };
|
40
|
+
r.value.control.data.conditions.forEach((e) => {
|
41
|
+
let a = h.value[e.table].filter((l) => l[e.field] != null).map((l) => l[e.field]), o = a.length == 0 ? null : a.join(",");
|
42
|
+
t.conditions.push({ name: e.name, value: o });
|
43
|
+
}), W.post(r.value.control.data.route, t).then(({ data: e }) => {
|
44
|
+
d.value = e;
|
45
|
+
}).finally(() => {
|
46
|
+
v.value = !1, I(() => {
|
47
|
+
let e = d.value.find((a) => a.value == u.value);
|
48
|
+
x.value.scrollToOption(e);
|
49
|
+
});
|
50
|
+
});
|
51
|
+
}, F = (t) => {
|
52
|
+
g.value = t, T();
|
53
|
+
}, M = (t, e) => {
|
54
|
+
let a = [];
|
55
|
+
return S.value.forEach((o) => {
|
56
|
+
o.fields.forEach((l) => {
|
57
|
+
l.dictionary && l.dictionary.conditions.forEach((i) => {
|
58
|
+
i.table == t.name && i.field == e.name && a.push({ table: o, field: l });
|
59
|
+
});
|
60
|
+
});
|
61
|
+
}), a;
|
62
|
+
}, _ = (t, e) => {
|
63
|
+
M(t, e).forEach((o) => {
|
64
|
+
Q.setRowsValue(null, h.value, o.table, o.field), _(o.table, o.field);
|
65
|
+
});
|
66
|
+
}, u = H({
|
67
|
+
get() {
|
68
|
+
return r.value.control.multiple ? m.value == null ? [] : m.value.toString().split(",") : m.value;
|
69
|
+
},
|
70
|
+
set(t) {
|
71
|
+
s("update:modelValue", t), s("change", t);
|
72
|
+
}
|
73
|
+
});
|
74
|
+
return (t, e) => {
|
75
|
+
const a = b("el-option"), o = b("el-select");
|
76
|
+
return c(), y(o, {
|
77
|
+
ref_key: "selectRef",
|
78
|
+
ref: x,
|
79
|
+
filterable: "",
|
80
|
+
remote: "",
|
81
|
+
"reserve-keyword": "",
|
82
|
+
"default-first-option": "",
|
83
|
+
"remote-show-suffix": "",
|
84
|
+
"loading-text": "加载中",
|
85
|
+
clearable: "",
|
86
|
+
placeholder: n(J)(n(p).name, n(r).name),
|
87
|
+
multiple: n(r).control.multiple,
|
88
|
+
"remote-method": n(F),
|
89
|
+
loading: n(v),
|
90
|
+
disabled: n(r).control.readonly,
|
91
|
+
onKeyup: L(O(n(K), ["alt"]), ["enter", "native"]),
|
92
|
+
onBlur: n(N),
|
93
|
+
onChange: n(j),
|
94
|
+
modelValue: n(u),
|
95
|
+
"onUpdate:modelValue": e[0] || (e[0] = (l) => U(u) ? u.value = l : u = l)
|
96
|
+
}, {
|
97
|
+
default: V(() => [
|
98
|
+
(c(!0), w($, null, q(n(d), (l, i) => (c(), y(a, {
|
99
|
+
label: `${l.text}${l.suffix ? "(" + l.suffix + ")" : ""}`,
|
100
|
+
value: l.value,
|
101
|
+
key: l.value
|
102
|
+
}, {
|
103
|
+
default: V(() => [
|
104
|
+
z("span", X, k(l.text), 1),
|
105
|
+
l.suffix ? (c(), w("span", Y, "(" + k(l.suffix) + ")", 1)) : G("", !0)
|
106
|
+
]),
|
107
|
+
_: 2
|
108
|
+
}, 1032, ["label", "value"]))), 128))
|
109
|
+
]),
|
110
|
+
_: 1
|
111
|
+
}, 8, ["placeholder", "multiple", "remote-method", "loading", "disabled", "onKeyup", "onBlur", "onChange", "modelValue"]);
|
112
|
+
};
|
113
|
+
}
|
114
|
+
});
|
115
|
+
export {
|
116
|
+
ue as default
|
117
|
+
};
|
@@ -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-CaXytFmK.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,10 +1,15 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import
|
3
|
-
import
|
4
|
-
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-C1iALE1f.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-D7LuD-a2.js";
|
9
|
+
import { _ as ne } from "./Index.vue_vue_type_script_setup_true_lang-DJ8ZzZ2K.js";
|
5
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 = [
|
6
11
|
We
|
7
|
-
], 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({
|
8
13
|
__name: "Single",
|
9
14
|
props: {
|
10
15
|
base: {},
|
@@ -14,68 +19,68 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
14
19
|
},
|
15
20
|
emits: ["navigate", "load", "succeed", "close"],
|
16
21
|
setup(se, { expose: ie, emit: de }) {
|
17
|
-
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) => {
|
18
23
|
let t = q.getPath(ce.value), a = q.getPath(l);
|
19
24
|
return t != a;
|
20
25
|
}, be = () => {
|
21
|
-
|
22
|
-
}, ye = (l, t) => {
|
23
|
-
G("copy", l, t);
|
26
|
+
Ve();
|
24
27
|
}, _e = (l, t) => {
|
25
|
-
|
28
|
+
A("copy", l, t);
|
29
|
+
}, ye = (l, t) => {
|
30
|
+
A("update", l, t);
|
26
31
|
}, he = () => {
|
27
32
|
i.value.visible = !1;
|
28
|
-
},
|
33
|
+
}, A = (l, t, a) => {
|
29
34
|
let n = ge(l, t);
|
30
|
-
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);
|
31
36
|
}, ge = (l, t = null) => {
|
32
37
|
let a = `${b.value[l].route}`;
|
33
38
|
if (t != null) {
|
34
|
-
let n = t[
|
39
|
+
let n = t[_.value.key.name];
|
35
40
|
a += `?id=${n}`;
|
36
41
|
}
|
37
42
|
return a;
|
38
43
|
}, we = (l, t, a) => {
|
39
|
-
(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) => {
|
40
45
|
n.control.textualize = !1;
|
41
46
|
}));
|
42
|
-
},
|
43
|
-
i.value.visible = !1,
|
47
|
+
}, G = (l) => {
|
48
|
+
i.value.visible = !1, D("succeed", W.value, l);
|
44
49
|
}, Ce = () => {
|
45
|
-
|
50
|
+
D("close");
|
46
51
|
}, I = (l, t, a, n, T) => {
|
47
52
|
}, J = (l, t) => {
|
48
53
|
if (t) {
|
49
|
-
|
54
|
+
L.value = _.value.layouts.find((a) => a.type == l);
|
50
55
|
return;
|
51
56
|
}
|
52
57
|
v.value.layout = v.value.table.layouts.find((a) => a.type == l);
|
53
58
|
}, ke = (l) => {
|
54
|
-
let t =
|
59
|
+
let t = u.value.find((a) => a.name == l);
|
55
60
|
v.value.table = t, v.value.layout = t.layouts[0];
|
56
61
|
}, xe = (l) => {
|
57
62
|
let t = Object.keys(l)[0], a = t.substring(1, t.indexOf("]"));
|
58
|
-
|
59
|
-
},
|
63
|
+
u.value.find((T) => T.name == a).main || (w.value = a);
|
64
|
+
}, Se = (l, t = null, a = null) => {
|
60
65
|
ae(() => {
|
61
66
|
E.value.validate((n, T) => {
|
62
67
|
if (!n)
|
63
68
|
return xe(T), a && a(!1), !1;
|
64
|
-
let
|
65
|
-
t && t(
|
66
|
-
E.value.clearValidate(),
|
67
|
-
}).catch(({ code:
|
68
|
-
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")
|
69
74
|
return;
|
70
|
-
N.value =
|
71
|
-
let
|
72
|
-
if (
|
73
|
-
let
|
74
|
-
|
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);
|
75
80
|
}
|
76
81
|
ae(() => {
|
77
|
-
E.value.clearValidate(), E.value.validate((
|
78
|
-
|
82
|
+
E.value.clearValidate(), E.value.validate((y, o) => {
|
83
|
+
y || (a && a(!1), N.value = []);
|
79
84
|
});
|
80
85
|
});
|
81
86
|
}).finally(() => {
|
@@ -85,74 +90,74 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
85
90
|
});
|
86
91
|
}, Q = (l) => {
|
87
92
|
var a, n;
|
88
|
-
let t =
|
89
|
-
|
90
|
-
},
|
91
|
-
|
93
|
+
let t = Me(l.module.type, l.module.name);
|
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);
|
92
97
|
}, Te = (l, t) => {
|
93
98
|
if (l == "ctrlS") {
|
94
|
-
if (
|
95
|
-
if (!
|
99
|
+
if (f.value.type == "Detail") {
|
100
|
+
if (!O.value || !O.value.keyboard)
|
96
101
|
return !1;
|
97
|
-
|
102
|
+
O.value.keyboard(l, t);
|
98
103
|
return;
|
99
104
|
}
|
100
|
-
|
105
|
+
F(t);
|
101
106
|
}
|
102
|
-
},
|
103
|
-
let l = q.getUrl(
|
104
|
-
|
107
|
+
}, Ve = () => {
|
108
|
+
let l = q.getUrl(z.value.path, z.value.query);
|
109
|
+
D("load", l, !1, (t) => {
|
105
110
|
});
|
106
111
|
};
|
107
112
|
(() => {
|
108
|
-
Q(
|
113
|
+
Q(M.value.data);
|
109
114
|
})();
|
110
|
-
let
|
111
|
-
if (!
|
112
|
-
|
115
|
+
let F = (l) => {
|
116
|
+
if (!K.value.submit) {
|
117
|
+
re.notify("提示", "请在子组件暴露submit方法来实现快捷提交", "warning");
|
113
118
|
return;
|
114
119
|
}
|
115
|
-
|
116
|
-
},
|
117
|
-
let l = `/${
|
118
|
-
return
|
119
|
-
}), W = Y(() =>
|
120
|
-
return
|
121
|
-
Q(l.data),
|
122
|
-
}), ie({ shouldLoad:
|
123
|
-
const a =
|
124
|
-
return d(),
|
120
|
+
K.value.submit(l);
|
121
|
+
}, ze = Y(() => {
|
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", {
|
125
130
|
ref_key: "singleRef",
|
126
131
|
ref: ve,
|
127
|
-
class:
|
132
|
+
class: De(["ha-single-page", { [e(W) + "-page"]: !0, editing: e(k) }])
|
128
133
|
}, [
|
129
134
|
m("div", Ie, [
|
130
|
-
h(
|
135
|
+
h($, { class: "main-scroller" }, {
|
131
136
|
default: s(() => [
|
132
|
-
h(
|
137
|
+
h(U, {
|
133
138
|
ref_key: "formRef",
|
134
139
|
ref: E,
|
135
140
|
model: e(c),
|
136
|
-
onSubmit: t[3] || (t[3] =
|
141
|
+
onSubmit: t[3] || (t[3] = Le(() => {
|
137
142
|
}, ["prevent"]))
|
138
143
|
}, {
|
139
144
|
default: s(() => [
|
140
145
|
h(ne, {
|
141
146
|
ref_key: "mainRef",
|
142
|
-
ref:
|
143
|
-
module: e(
|
144
|
-
schema: e(
|
145
|
-
table: e(
|
146
|
-
layout: e(
|
147
|
+
ref: S,
|
148
|
+
module: e(f),
|
149
|
+
schema: e(u),
|
150
|
+
table: e(_),
|
151
|
+
layout: e(L),
|
147
152
|
next: e(b),
|
148
153
|
set: e(c),
|
149
|
-
route: e(
|
154
|
+
route: e(z),
|
150
155
|
"validate-errors": e(N),
|
151
156
|
onChange: e(I),
|
152
157
|
onLayoutChange: t[0] || (t[0] = (o) => e(J)(o, !0)),
|
153
|
-
onSubmit: e(
|
158
|
+
onSubmit: e(F)
|
154
159
|
}, null, 8, ["module", "schema", "table", "layout", "next", "set", "route", "validate-errors", "onChange", "onSubmit"]),
|
155
|
-
e(
|
160
|
+
e(u).length > 1 ? (d(), g(T, {
|
156
161
|
key: 0,
|
157
162
|
type: "border-card",
|
158
163
|
onTabChange: e(ke),
|
@@ -160,7 +165,7 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
160
165
|
"onUpdate:modelValue": t[1] || (t[1] = (o) => Z(w) ? w.value = o : w = o)
|
161
166
|
}, {
|
162
167
|
default: s(() => [
|
163
|
-
(d(!0),
|
168
|
+
(d(!0), H(ee, null, le(e(u).filter((o, Ee) => Ee > 0), (o) => (d(), g(n, {
|
164
169
|
name: o.name,
|
165
170
|
key: o.name
|
166
171
|
}, {
|
@@ -180,53 +185,53 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
180
185
|
}, 1032, ["name"]))), 128))
|
181
186
|
]),
|
182
187
|
_: 1
|
183
|
-
}, 8, ["onTabChange", "modelValue"])) :
|
188
|
+
}, 8, ["onTabChange", "modelValue"])) : B("", !0),
|
184
189
|
e(v).table ? (d(), g(ne, {
|
185
190
|
key: 1,
|
186
191
|
ref_key: "childRef",
|
187
192
|
ref: C,
|
188
|
-
module: e(
|
189
|
-
schema: e(
|
193
|
+
module: e(f),
|
194
|
+
schema: e(u),
|
190
195
|
table: e(v).table,
|
191
196
|
layout: e(v).layout,
|
192
197
|
next: e(b),
|
193
198
|
set: e(c),
|
194
|
-
route: e(
|
199
|
+
route: e(z),
|
195
200
|
"validate-errors": e(N),
|
196
201
|
onRowEdit: e(we),
|
197
202
|
onChange: e(I),
|
198
203
|
onLayoutChange: t[2] || (t[2] = (o) => e(J)(o, !1)),
|
199
|
-
onSubmit: e(
|
200
|
-
}, 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)
|
201
206
|
]),
|
202
207
|
_: 1
|
203
208
|
}, 8, ["model"])
|
204
209
|
]),
|
205
210
|
_: 1
|
206
211
|
}),
|
207
|
-
(d(), g(Ne(e(
|
212
|
+
(d(), g(Ne(e(ze)), {
|
208
213
|
ref_key: "updateRef",
|
209
|
-
ref:
|
214
|
+
ref: K,
|
210
215
|
class: "main-footer",
|
211
|
-
schema: e(
|
212
|
-
table: e(
|
213
|
-
layout: e(
|
216
|
+
schema: e(u),
|
217
|
+
table: e(_),
|
218
|
+
layout: e(L),
|
214
219
|
next: e(b),
|
215
220
|
set: e(c),
|
216
|
-
route: e(
|
217
|
-
onCopy: e(
|
218
|
-
onEdit: e(
|
219
|
-
onSubmit: e(
|
221
|
+
route: e(z),
|
222
|
+
onCopy: e(_e),
|
223
|
+
onEdit: e(ye),
|
224
|
+
onSubmit: e(Se),
|
220
225
|
onClose: e(Ce)
|
221
226
|
}, null, 40, ["schema", "table", "layout", "next", "set", "route", "onCopy", "onEdit", "onSubmit", "onClose"]))
|
222
227
|
]),
|
223
|
-
e(k) ? (d(), g(
|
228
|
+
e(k) ? (d(), g(P, {
|
224
229
|
key: 0,
|
225
230
|
class: "side-form"
|
226
231
|
}, {
|
227
232
|
header: s(() => [
|
228
233
|
m("div", Je, [
|
229
|
-
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),
|
230
235
|
m("div", {
|
231
236
|
class: "row-close",
|
232
237
|
onClick: t[4] || (t[4] = (o) => Z(k) ? k.value = !1 : k = !1)
|
@@ -234,20 +239,20 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
234
239
|
])
|
235
240
|
]),
|
236
241
|
default: s(() => [
|
237
|
-
h(
|
242
|
+
h($, null, {
|
238
243
|
default: s(() => [
|
239
|
-
h(
|
244
|
+
h(U, {
|
240
245
|
size: "small",
|
241
246
|
"label-width": "80px"
|
242
247
|
}, {
|
243
248
|
default: s(() => [
|
244
|
-
(d(!0),
|
245
|
-
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;` : ""),
|
246
251
|
rules: o.rules
|
247
252
|
}, {
|
248
253
|
label: s(() => [
|
249
|
-
te(x(e(
|
250
|
-
o.control.tooltip ? (d(), g(
|
254
|
+
te(x(e(Ke)(e(R).name, o.name)) + " ", 1),
|
255
|
+
o.control.tooltip ? (d(), g(V, {
|
251
256
|
key: 0,
|
252
257
|
trigger: "hover",
|
253
258
|
placement: "top",
|
@@ -261,15 +266,15 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
261
266
|
m("pre", null, x(o.control.tooltip.content), 1)
|
262
267
|
]),
|
263
268
|
_: 2
|
264
|
-
}, 1032, ["title"])) :
|
269
|
+
}, 1032, ["title"])) : B("", !0)
|
265
270
|
]),
|
266
271
|
default: s(() => [
|
267
|
-
h(
|
268
|
-
schema: e(
|
269
|
-
table: e(
|
272
|
+
h(Ge, {
|
273
|
+
schema: e(u),
|
274
|
+
table: e(R),
|
270
275
|
field: o,
|
271
276
|
set: e(c),
|
272
|
-
row: e(
|
277
|
+
row: e(j)
|
273
278
|
}, null, 8, ["schema", "table", "field", "set", "row"])
|
274
279
|
]),
|
275
280
|
_: 2
|
@@ -282,12 +287,12 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
282
287
|
})
|
283
288
|
]),
|
284
289
|
_: 1
|
285
|
-
})) :
|
286
|
-
e(i).page ? (d(), g(
|
290
|
+
})) : B("", !0),
|
291
|
+
e(i).page ? (d(), g(y, {
|
287
292
|
key: 1,
|
288
293
|
"destroy-on-close": "",
|
289
294
|
"append-to-body": e(i).appendToBody,
|
290
|
-
size: `${e(
|
295
|
+
size: `${e(f).width ?? "60%"}`,
|
291
296
|
modelValue: e(i).visible,
|
292
297
|
"onUpdate:modelValue": t[5] || (t[5] = (o) => e(i).visible = o)
|
293
298
|
}, {
|
@@ -301,20 +306,20 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
301
306
|
])
|
302
307
|
]),
|
303
308
|
default: s(() => [
|
304
|
-
h(e(
|
309
|
+
h(e(je), {
|
305
310
|
ref_key: "pageRef",
|
306
|
-
ref:
|
311
|
+
ref: O,
|
307
312
|
url: e(i).url,
|
308
|
-
onSucceed: e(
|
313
|
+
onSucceed: e(G),
|
309
314
|
onClose: e(he)
|
310
315
|
}, null, 8, ["url", "onSucceed", "onClose"])
|
311
316
|
]),
|
312
317
|
_: 1
|
313
|
-
}, 8, ["append-to-body", "size", "modelValue"])) :
|
318
|
+
}, 8, ["append-to-body", "size", "modelValue"])) : B("", !0)
|
314
319
|
], 2);
|
315
320
|
};
|
316
321
|
}
|
317
322
|
});
|
318
323
|
export {
|
319
|
-
|
324
|
+
ml as default
|
320
325
|
};
|
@@ -1,7 +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 { s as
|
3
|
-
import
|
4
|
-
|
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-C1iALE1f.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-BzrMV0Wr.js";
|
9
|
+
const ue = /* @__PURE__ */ j({
|
5
10
|
__name: "Statistic",
|
6
11
|
props: {
|
7
12
|
searchData: {},
|
@@ -14,18 +19,18 @@ const re = /* @__PURE__ */ j({
|
|
14
19
|
set: {}
|
15
20
|
},
|
16
21
|
emits: ["search"],
|
17
|
-
setup(
|
18
|
-
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) => {
|
19
24
|
T("search");
|
20
25
|
}, T = (t, e = null) => {
|
21
|
-
|
22
|
-
|
26
|
+
F(t, (r) => {
|
27
|
+
m(() => {
|
23
28
|
f(), e && e(r);
|
24
29
|
});
|
25
30
|
});
|
26
31
|
}, f = () => {
|
27
|
-
let t =
|
28
|
-
title: { text:
|
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" } },
|
29
34
|
//标题
|
30
35
|
tooltip: { trigger: "axis" },
|
31
36
|
//提示
|
@@ -59,10 +64,10 @@ const re = /* @__PURE__ */ j({
|
|
59
64
|
series: []
|
60
65
|
};
|
61
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)");
|
62
|
-
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;
|
63
68
|
for (let a = 0; a < _.length; a++) {
|
64
69
|
let o = _[a];
|
65
|
-
o.color ||
|
70
|
+
o.color || X.error("颜色字段不能为空");
|
66
71
|
let c = {
|
67
72
|
name: o.text,
|
68
73
|
type: "line",
|
@@ -108,48 +113,48 @@ const re = /* @__PURE__ */ j({
|
|
108
113
|
}
|
109
114
|
e.series.push(c), e.legend.data.push(o.text);
|
110
115
|
}
|
111
|
-
e.xAxis.data.push(...t),
|
116
|
+
e.xAxis.data.push(...t), s.setOption(e);
|
112
117
|
}, k = () => {
|
113
118
|
var r;
|
114
|
-
let t =
|
119
|
+
let t = Y.getHeight([(r = d.value) == null ? void 0 : r.$el]), e = S.value.getBoundingClientRect();
|
115
120
|
v.value = e.height - t - 10 - 1;
|
116
121
|
}, V = (t) => {
|
117
|
-
d.value.resize(t),
|
118
|
-
k(),
|
122
|
+
d.value.resize(t), m(() => {
|
123
|
+
k(), s == null || s.resize();
|
119
124
|
});
|
120
|
-
},
|
121
|
-
k(),
|
122
|
-
|
125
|
+
}, N = () => {
|
126
|
+
k(), m(() => {
|
127
|
+
s = g.init(b.value), f();
|
123
128
|
});
|
124
129
|
};
|
125
130
|
return G(async () => {
|
126
|
-
|
131
|
+
y.value = Q.getConditionForm(p.value, D.value.query.condition), g = await U.getECharts(), N();
|
127
132
|
}), M(() => l.value, (t, e) => {
|
128
133
|
f();
|
129
|
-
}),
|
134
|
+
}), C({ resize: V }), (t, e) => (O(), I("div", {
|
130
135
|
ref_key: "statisticRef",
|
131
136
|
ref: S,
|
132
137
|
class: "ha-statistic-layout"
|
133
138
|
}, [
|
134
|
-
|
139
|
+
J(Z, {
|
135
140
|
ref_key: "searchRef",
|
136
141
|
ref: d,
|
137
|
-
schema:
|
138
|
-
table:
|
139
|
-
layout:
|
140
|
-
set:
|
141
|
-
"search-data":
|
142
|
-
onChange:
|
142
|
+
schema: i(p),
|
143
|
+
table: i(x),
|
144
|
+
layout: i(l),
|
145
|
+
set: i(u),
|
146
|
+
"search-data": i(y),
|
147
|
+
onChange: i(E)
|
143
148
|
}, null, 8, ["schema", "table", "layout", "set", "search-data", "onChange"]),
|
144
|
-
|
149
|
+
K("div", {
|
145
150
|
ref_key: "chartRef",
|
146
151
|
ref: b,
|
147
152
|
class: "chart",
|
148
|
-
style:
|
153
|
+
style: P({ height: i(v) + "px" })
|
149
154
|
}, null, 4)
|
150
155
|
], 512));
|
151
156
|
}
|
152
157
|
});
|
153
158
|
export {
|
154
|
-
|
159
|
+
ue as default
|
155
160
|
};
|