halo-pc 1.0.39 → 1.0.40
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{Article-DZlstqWL.js → Article-CqtkXVmQ.js} +37 -36
- package/dist/{ArticleFooter-BkduiKh8.js → ArticleFooter-DeJdTtZD.js} +12 -13
- package/dist/{Autocomplete-DMKnFezN.js → Autocomplete-0fxB2_FC.js} +1 -1
- package/dist/Autocomplete-BfhYwZ5G.js +49 -0
- package/dist/{Autocomplete-0Yf6lJQ7.js → Autocomplete-LQiKcvz1.js} +10 -11
- package/dist/{CSharp-q8eOBm4y.js → CSharp-BIFRQLaK.js} +1 -1
- package/dist/{Calender-CseGNCuW.js → Calender-DPNTn-S4.js} +2 -2
- package/dist/Callback-Ci5KrWOC.js +20 -0
- package/dist/Cascader-CnOEgPDf.js +41 -0
- package/dist/{Cascader-BG5ev35M.js → Cascader-Vhc81TDV.js} +17 -18
- package/dist/{Checkbox-CsCA6iQb.js → Checkbox-CIim5NiB.js} +1 -1
- package/dist/{Checkbox-dw8RNAGt.js → Checkbox-D9Sp6ZGQ.js} +11 -12
- package/dist/Code-BEjqqeFZ.js +54 -0
- package/dist/Code-BSrEPuXk.js +4 -0
- package/dist/Code-Dp1-k8sW.js +36 -0
- package/dist/{Code-BE8YLGaE.js → Code-yDKaH1uF.js} +10 -8
- package/dist/Code.vue_vue_type_style_index_0_lang-CmkomJXY.js +59 -0
- package/dist/Column-B0ViSver.js +69 -0
- package/dist/{Comment-kTmfTlbF.js → Comment-tU2wBvGO.js} +22 -26
- package/dist/{Compare-DlyQBCat.js → Compare-D7Gz-lE9.js} +10 -11
- package/dist/{Compare-DVWaiCUC.js → Compare-DqvGyQWA.js} +8 -9
- package/dist/Copy-Dm1LH9qB.js +43 -0
- package/dist/Custom-CLKAPWEo.js +49 -0
- package/dist/{DataExport-Um1wXyRe.js → DataExport-BDftKI0U.js} +1 -1
- package/dist/{DataExport.vue_vue_type_script_setup_true_lang-2YoqwEmA.js → DataExport.vue_vue_type_script_setup_true_lang-Dzy9UC11.js} +27 -28
- package/dist/{DataImport-CPMLup4P.js → DataImport-CRYaaQfA.js} +1 -1
- package/dist/{DataImport.vue_vue_type_script_setup_true_lang-DsCp0vWo.js → DataImport.vue_vue_type_script_setup_true_lang-D7UdCnBM.js} +30 -31
- package/dist/{Date-BhZ8ltgp.js → Date-DPPiYLWw.js} +7 -8
- package/dist/{Date-Cj9lCW_Y.js → Date-Dlh1_S7p.js} +1 -1
- package/dist/{DateRange-Bw_Oyawz.js → DateRange-BgF_T3ls.js} +5 -6
- package/dist/{DateTime-Cv-SRE88.js → DateTime-CNjPeK9t.js} +1 -1
- package/dist/{DateTime-BU6JaBPk.js → DateTime-DP-VfmtN.js} +7 -8
- package/dist/{DateTimeRange-B4Ah6LQY.js → DateTimeRange-DbEpW4nB.js} +9 -10
- package/dist/{Daterange-CSZe4XGO.js → Daterange-DHVjhrK9.js} +4 -5
- package/dist/{Decimal-DSDuwW9Z.js → Decimal-BDEWVSsK.js} +1 -1
- package/dist/{Delete-CjPgg-5G.js → Delete-Bl0GmthL.js} +19 -20
- package/dist/{Detail-gj--ICe8.js → Detail-BozyhOTt.js} +10 -11
- package/dist/{Dictionary-Ck_02mWa.js → Dictionary-CJwZPQz6.js} +9 -15
- package/dist/{Email-BSQbDvh1.js → Email-D5X1SzuJ.js} +11 -12
- package/dist/{File-FW4usX43.js → File-DixK0K7p.js} +44 -43
- package/dist/Image-BrelhCGo.js +9 -0
- package/dist/Index-BeM6hKX9.js +4 -0
- package/dist/Index-BkfLyqpm.js +173 -0
- package/dist/{Index-MUgqP8jJ.js → Index-D2FOeoNQ.js} +1 -1
- package/dist/Index-D8UVsXwf.js +4 -0
- package/dist/{Index-Dq5Vp-ts.js → Index-DbXgnBz6.js} +15 -16
- package/dist/Index-FL-dxfFB.js +4 -0
- package/dist/Index-fWOqfFkG.js +4 -0
- package/dist/{Index-BibWDRoP.js → Index-j15c7lwJ.js} +1 -1
- package/dist/Index.vue_vue_type_script_setup_true_lang-ByxBNAdg.js +80 -0
- package/dist/{Index.vue_vue_type_script_setup_true_lang-CiBvC9Cu.js → Index.vue_vue_type_script_setup_true_lang-DT7eOyjs.js} +21 -22
- package/dist/{Install-Cpp3BDCS.js → Install-WR3b4IfI.js} +13 -14
- package/dist/{Int-Ck1SvK7R.js → Int-CWsDtoxE.js} +9 -10
- package/dist/{Int-DcQsipaO.js → Int-GGWiUqO2.js} +13 -14
- package/dist/List-kRCsHp6d.js +71 -0
- package/dist/Maintaince-BG8MUi3A.js +14 -0
- package/dist/{Markdown-BEUz4VZ7.js → Markdown-nVfQs7kc.js} +1 -1
- package/dist/Month-B1icZmL4.js +37 -0
- package/dist/{Month-DmUiyF1G.js → Month-CxKMP4kO.js} +1 -1
- package/dist/{Month-DJGGGrZr.js → Month-DnYlAi7k.js} +10 -11
- package/dist/{Normal-ACcTHsXb.js → Normal-RcqEyIFN.js} +47 -46
- package/dist/Paging-DrdGzxeP.js +94 -0
- package/dist/{PagingHeader-DDkmqv98.js → PagingHeader-C8UpM9Kj.js} +18 -17
- package/dist/{PagingRow-B4Nfa2Vk.js → PagingRow-oQWCofO4.js} +13 -14
- package/dist/{Racebar-LfnPLNOY.js → Racebar-CvoF2ySW.js} +32 -36
- package/dist/{Radio-DcEZI4m7.js → Radio-DhjfkC14.js} +1 -1
- package/dist/{Register-B4x_zgyH.js → Register-B0Vx60wY.js} +55 -56
- package/dist/RichText-4wrLw9cy.js +41 -0
- package/dist/{SearchForm-DU5QLTbe.js → SearchForm-BHVnQaSL.js} +1 -1
- package/dist/{SearchForm.vue_vue_type_style_index_0_lang-BHZrYG6_.js → SearchForm.vue_vue_type_style_index_0_lang-ByICIL6w.js} +50 -51
- package/dist/SearchHeader-C9yovXli.js +4 -0
- package/dist/SearchHeader.vue_vue_type_style_index_0_lang-CHAg97-Y.js +60 -0
- package/dist/{Select-C3gUeHmu.js → Select-BDoCqD3I.js} +10 -11
- package/dist/{Select-CMxubJIV.js → Select-CX4i5KPQ.js} +1 -1
- package/dist/{Select-DrDDVJtz.js → Select-vgwpegBi.js} +20 -21
- package/dist/{Single-De-YyuVk.js → Single-C3629BdC.js} +127 -128
- package/dist/{Statistic-CTxHNeof.js → Statistic-Dxa-CZ8G.js} +10 -8
- package/dist/{Statistic-SvjQ7uGI.js → Statistic-WPezAlUn.js} +34 -33
- package/dist/{Stock-C2b9p3-N.js → Stock-BD5Acf8y.js} +8 -6
- package/dist/{Stock-XZkBSQw1.js → Stock-EPM3j2f_.js} +1 -1
- package/dist/{Stock.vue_vue_type_style_index_0_lang-DwxyyM7p.js → Stock.vue_vue_type_style_index_0_lang-D5RR2MRP.js} +22 -21
- package/dist/{Switch-PJT-5dDt.js → Switch-B0XN4K-9.js} +1 -1
- package/dist/{Table-Dy1H2IHN.js → Table-BklK1hSh.js} +142 -136
- package/dist/{Table-CkoZ8OjZ.js → Table-JFdOXuME.js} +61 -60
- package/dist/Text-CNtHdodK.js +4 -0
- package/dist/{Text-CytgR_l_.js → Text-DrJkdxZF.js} +12 -13
- package/dist/Text-KAuEjP7I.js +48 -0
- package/dist/Text.vue_vue_type_style_index_0_lang-BJIbv4kF.js +53 -0
- package/dist/{TextLink-DINdFWzs.js → TextLink-BnijIoEJ.js} +8 -9
- package/dist/{Textarea-DakZXfN6.js → Textarea-3SWLqQvO.js} +1 -1
- package/dist/{Time-Bn1Av2wo.js → Time-C3qlNZkJ.js} +9 -10
- package/dist/{Timeline-B32cUvwI.js → Timeline-B6hUIYhL.js} +11 -15
- package/dist/{Tree-BGfHm4k_.js → Tree-DBvFF4Rj.js} +77 -76
- package/dist/{Tree-BItAXuSC.js → Tree-JexLPBXX.js} +38 -42
- package/dist/{TreeNode-DmiM_a2n.js → TreeNode-BOWB2WN9.js} +9 -10
- package/dist/{Update-DSTmaeT8.js → Update-CDLYYwgj.js} +5 -6
- package/dist/{UpdateChild-BgBJJwT3.js → UpdateChild-DUG7pAuO.js} +19 -20
- package/dist/{Upload-DMqlcxCt.js → Upload-B2hbxDsT.js} +46 -47
- package/dist/Upload-mlk6Y4Po.js +65 -0
- package/dist/{Year-DckBNPK_.js → Year-BRsJ7b1J.js} +1 -1
- package/dist/{Year-Cv92J5pF.js → Year-BUF60NmB.js} +7 -8
- package/dist/assets/{clipboard-DjQPoCBJ.js → clipboard-ClN4QccS.js} +1 -3
- package/dist/main-DymfKjqO.js +16480 -0
- package/dist/main.js +144 -142
- package/dist/style.css +1 -1
- package/esm/coms/commons/Table.vue.d.ts +1 -1
- package/esm/coms/drivers/Index.vue.d.ts +2 -2
- package/esm/coms/globals/Menu.vue.d.ts +1 -1
- package/esm/coms/globals/MenuItem.vue.d.ts +1 -1
- package/esm/coms/headers/@types/HeaderProps.d.ts +1 -1
- package/esm/coms/headers/Index.vue.d.ts +1 -1
- package/esm/coms/layouts/Index.vue.d.ts +3 -3
- package/esm/coms/layouts/Side.vue.d.ts +2 -2
- package/esm/coms/layouts/Top.vue.d.ts +1 -1
- package/esm/coms/lists/Racebar.vue.d.ts +1 -1
- package/esm/coms/lists/Statistic.vue.d.ts +1 -1
- package/esm/coms/lists/Tree.vue.d.ts +3 -3
- package/esm/coms/pages/@types/SchemaProps.d.ts +2 -1
- package/esm/coms/pages/Column.vue.d.ts +1 -1
- package/esm/coms/pages/Custom.vue.d.ts +6 -6
- package/esm/coms/pages/List.vue.d.ts +5 -3
- package/esm/coms/pages/Paging.vue.d.ts +5 -3
- package/esm/coms/pages/Single.vue.d.ts +3 -3
- package/esm/coms/pagings/@types/SearchHeaderProps.d.ts +9 -0
- package/esm/coms/pagings/@types/index.d.ts +2 -2
- package/esm/coms/pagings/Article.vue.d.ts +2 -2
- package/esm/coms/pagings/Index.vue.d.ts +4 -2
- package/esm/coms/pagings/SearchForm.vue.d.ts +1 -1
- package/esm/coms/pagings/SearchHeader.vue.d.ts +19 -0
- package/esm/coms/pagings/Table.vue.d.ts +4 -2
- package/esm/coms/partials/@types/PagingHeaderProps.d.ts +2 -1
- package/esm/coms/singles/Index.vue.d.ts +1 -1
- package/esm/coms/singles/Normal.vue.d.ts +1 -1
- package/esm/coms/singles/Table.vue.d.ts +1 -1
- package/esm/coms/singles/Tree.vue.d.ts +1 -1
- package/package.json +6 -6
- package/dist/Autocomplete-bc-9LfGa.js +0 -50
- package/dist/Callback-D_dFJlfv.js +0 -21
- package/dist/Cascader-Dzeoz7ss.js +0 -47
- package/dist/Code-BRe68AIa.js +0 -42
- package/dist/Code-C5QfTMNw.js +0 -60
- package/dist/Code-_XoN6vQE.js +0 -4
- package/dist/Code.vue_vue_type_style_index_0_lang-D2hJ7lYF.js +0 -63
- package/dist/Column-C-NHhT2v.js +0 -75
- package/dist/Copy-DQFJy3uX.js +0 -44
- package/dist/Custom-D5HoD0nQ.js +0 -59
- package/dist/Image-DiAw_6jM.js +0 -9
- package/dist/Index-B_5hshjJ.js +0 -4
- package/dist/Index-BtlD6ocN.js +0 -4
- package/dist/Index-C3f38zw0.js +0 -4
- package/dist/Index-CB_TnEaw.js +0 -4
- package/dist/Index-hgTZyQps.js +0 -174
- package/dist/Index.vue_vue_type_script_setup_true_lang-BzPCaYCg.js +0 -82
- package/dist/List-hWB41wF_.js +0 -72
- package/dist/Maintaince-l-Tdveur.js +0 -20
- package/dist/Month-DkafiRHq.js +0 -38
- package/dist/Paging-Vfz2RDBo.js +0 -93
- package/dist/RichText-B1Iogpgr.js +0 -47
- package/dist/SearchFooter-CmM8qnxP.js +0 -4
- package/dist/SearchFooter.vue_vue_type_style_index_0_lang-fRS96yRX.js +0 -55
- package/dist/Text-Bt5jL_KV.js +0 -49
- package/dist/Text-vHouxGHU.js +0 -4
- package/dist/Text.vue_vue_type_style_index_0_lang-CgxtY5ch.js +0 -59
- package/dist/Upload-DpQu3z1T.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-KNkwb0pq.js +0 -10515
@@ -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 Be, toRefs as Ue, ref as u, computed as Z, watch as De, resolveComponent as c, openBlock as d, createElementBlock as F, normalizeClass as Le, unref as e, createElementVNode as m, createVNode as g, withCtx as s, withModifiers as Ke, createBlock as h, isRef as ee, Fragment as le, renderList as te, toDisplayString as x, createCommentVNode as B, resolveDynamicComponent as je, normalizeStyle as Ne, createTextVNode as ae, nextTick as oe } from "vue";
|
2
|
+
import { c as Pe, j as qe, p as ue, C as Ae, b as Fe, d as U, a as Me, _ as Oe, l as re, $ as Ge, B as He, m as ne, S as M, A as Ie } from "./main-DymfKjqO.js";
|
3
|
+
import { _ as se } from "./Index.vue_vue_type_script_setup_true_lang-DT7eOyjs.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__ */ Be({
|
6
5
|
__name: "Single",
|
7
6
|
props: {
|
8
7
|
base: {},
|
@@ -11,69 +10,69 @@ const Je = { class: "ha-main-form" }, Qe = { class: "row-header" }, We = { class
|
|
11
10
|
win: {}
|
12
11
|
},
|
13
12
|
emits: ["navigate", "load", "succeed", "close"],
|
14
|
-
setup(
|
15
|
-
let
|
16
|
-
let t =
|
13
|
+
setup(ie, { expose: de, emit: me }) {
|
14
|
+
let D = me, ve = ie, { url: pe, base: O, route: T } = Ue(ve), f = u(), b = u(), v = u(), r = u(), y = u(), L = u(), p = u({ table: null, layout: null }), w = u(), K = u([]), ce = u(), V = u(), j = u(), P = u(), E = u(), G = u(), i = u({ page: null, url: null, visible: !1, appendToBody: !1 }), C = u(!1), q = u(), R = u(), fe = (l) => !0, be = (l) => {
|
15
|
+
let t = U.url.getPath(pe.value), a = U.url.getPath(l);
|
17
16
|
return t != a;
|
18
|
-
},
|
19
|
-
|
20
|
-
}, ye = (l, t) => {
|
21
|
-
A("copy", l, t);
|
17
|
+
}, ye = () => {
|
18
|
+
Ee();
|
22
19
|
}, _e = (l, t) => {
|
23
|
-
|
24
|
-
}, ge = () => {
|
20
|
+
H("copy", l, t);
|
21
|
+
}, ge = (l, t) => {
|
22
|
+
H("update", l, t);
|
23
|
+
}, he = () => {
|
25
24
|
i.value.visible = !1;
|
26
|
-
},
|
27
|
-
let n =
|
28
|
-
a.ctrlKey ?
|
29
|
-
},
|
25
|
+
}, H = (l, t, a) => {
|
26
|
+
let n = we(l, t);
|
27
|
+
a.ctrlKey ? D("navigate", n) : (i.value.appendToBody = a.altKey, i.value.page = l, i.value.url = n, i.value.visible = !0);
|
28
|
+
}, we = (l, t = null) => {
|
30
29
|
let a = `${b.value[l].route}`;
|
31
30
|
if (t != null) {
|
32
31
|
let n = t[y.value.key.name];
|
33
32
|
a += `?id=${n}`;
|
34
33
|
}
|
35
34
|
return a;
|
36
|
-
},
|
37
|
-
(a.ctrlKey ||
|
35
|
+
}, Ce = (l, t, a) => {
|
36
|
+
(a.ctrlKey || C.value) && (q.value = l, R.value = U.object.clone(t), C.value = !0, R.value.fields.forEach((n) => {
|
38
37
|
n.control.textualize = !1;
|
39
38
|
}));
|
40
|
-
},
|
41
|
-
i.value.visible = !1,
|
42
|
-
},
|
43
|
-
|
44
|
-
},
|
45
|
-
},
|
39
|
+
}, I = (l) => {
|
40
|
+
i.value.visible = !1, D("succeed", X.value, l);
|
41
|
+
}, xe = () => {
|
42
|
+
D("close");
|
43
|
+
}, J = (l, t, a, n, S) => {
|
44
|
+
}, Q = (l, t) => {
|
46
45
|
if (t) {
|
47
46
|
L.value = y.value.layouts.find((a) => a.type == l);
|
48
47
|
return;
|
49
48
|
}
|
50
|
-
|
51
|
-
},
|
49
|
+
p.value.layout = p.value.table.layouts.find((a) => a.type == l);
|
50
|
+
}, Re = (l) => {
|
52
51
|
let t = r.value.find((a) => a.name == l);
|
53
|
-
|
54
|
-
},
|
52
|
+
p.value.table = t, p.value.layout = t.layouts[0];
|
53
|
+
}, Se = (l) => {
|
55
54
|
let t = Object.keys(l)[0], a = t.substring(1, t.indexOf("]"));
|
56
|
-
r.value.find((
|
57
|
-
},
|
58
|
-
|
59
|
-
|
55
|
+
r.value.find((S) => S.name == a).main || (w.value = a);
|
56
|
+
}, ke = (l, t = null, a = null) => {
|
57
|
+
oe(() => {
|
58
|
+
V.value.validate((n, S) => {
|
60
59
|
if (!n)
|
61
|
-
return
|
62
|
-
let
|
63
|
-
t && t(
|
64
|
-
|
65
|
-
}).catch(({ code:
|
66
|
-
if (
|
60
|
+
return Se(S), a && a(!1), !1;
|
61
|
+
let $ = f.value.type == "Update" ? b.value.update.route : b.value.insert.route;
|
62
|
+
t && t($, v.value), Oe.post($, v.value).then(({ data: z, message: k }) => {
|
63
|
+
V.value.clearValidate(), re.success(k), I(v.value);
|
64
|
+
}).catch(({ code: z, data: k, message: Y }) => {
|
65
|
+
if (z != "ValidateError")
|
67
66
|
return;
|
68
|
-
|
69
|
-
let
|
70
|
-
if (
|
71
|
-
let _ = r.value.find((o) => o.name ==
|
67
|
+
K.value = k;
|
68
|
+
let N = k.find((_) => _.table !== y.value.name);
|
69
|
+
if (N) {
|
70
|
+
let _ = r.value.find((o) => o.name == N.table);
|
72
71
|
_ && (w.value = _.name);
|
73
72
|
}
|
74
|
-
|
75
|
-
|
76
|
-
_ || (a && a(!1),
|
73
|
+
oe(() => {
|
74
|
+
V.value.clearValidate(), V.value.validate((_, o) => {
|
75
|
+
_ || (a && a(!1), K.value = []);
|
77
76
|
});
|
78
77
|
});
|
79
78
|
}).finally(() => {
|
@@ -81,82 +80,82 @@ const Je = { class: "ha-main-form" }, Qe = { class: "row-header" }, We = { class
|
|
81
80
|
});
|
82
81
|
});
|
83
82
|
});
|
84
|
-
},
|
83
|
+
}, W = (l) => {
|
85
84
|
var a, n;
|
86
|
-
let t =
|
87
|
-
|
88
|
-
},
|
89
|
-
|
90
|
-
},
|
91
|
-
if (l ==
|
92
|
-
if (
|
93
|
-
|
85
|
+
let t = Ge(l.module.type, l.module.name);
|
86
|
+
He.setTitle(t, l.module.env), f.value = l.module, b.value = l.next, v.value = ne.expandSet(l.schema, l.set), r.value = ne.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, p.value.table = r.value[1], p.value.layout = r.value[1].layouts[0]);
|
87
|
+
}, Te = (l) => {
|
88
|
+
M.triggerResize(j.value, l), M.triggerResize(E.value, l);
|
89
|
+
}, Ve = (l, t) => {
|
90
|
+
if (l == Ie.ctrlS) {
|
91
|
+
if (f.value.type == "Detail") {
|
92
|
+
M.triggerKeyboard(G.value, l, t);
|
94
93
|
return;
|
95
94
|
}
|
96
|
-
|
95
|
+
A(t);
|
97
96
|
}
|
98
|
-
},
|
99
|
-
let l =
|
100
|
-
|
97
|
+
}, Ee = () => {
|
98
|
+
let l = U.url.getUrl(T.value.path, T.value.query);
|
99
|
+
D("load", l, !1, (t) => {
|
101
100
|
});
|
102
101
|
};
|
103
102
|
(() => {
|
104
|
-
|
103
|
+
W(O.value.data);
|
105
104
|
})();
|
106
|
-
let
|
107
|
-
if (!
|
108
|
-
|
105
|
+
let A = (l) => {
|
106
|
+
if (!P.value.submit) {
|
107
|
+
re.notify("提示", "请在子组件暴露submit方法来实现快捷提交", "warning");
|
109
108
|
return;
|
110
109
|
}
|
111
|
-
|
112
|
-
},
|
113
|
-
let l = `/${y.value.name}/update`, t =
|
110
|
+
P.value.submit(l);
|
111
|
+
}, $e = Z(() => {
|
112
|
+
let l = `/${y.value.name}/update`, t = f.value.type == "Detail" ? "detail" : "update";
|
114
113
|
return Pe.getComponent(l, "partial", t);
|
115
|
-
}),
|
116
|
-
return
|
117
|
-
|
118
|
-
}),
|
119
|
-
const a =
|
120
|
-
return d(),
|
114
|
+
}), X = Z(() => f.value.type.toLowerCase());
|
115
|
+
return De(() => O.value, (l) => {
|
116
|
+
W(l.data), j.value.update && j.value.update(l.data), E.value && E.value.update && E.value.update(l.data);
|
117
|
+
}), de({ shouldLoad: fe, shouldSpin: be, onKeyboard: Ve, onRefresh: ye, onResize: Te }), (l, t) => {
|
118
|
+
const a = c("el-tooltip"), n = c("el-tab-pane"), S = c("el-tabs"), $ = c("el-form"), z = c("el-scrollbar"), k = c("el-popover"), Y = c("el-form-item"), N = c("el-card"), _ = c("el-drawer");
|
119
|
+
return d(), F("div", {
|
121
120
|
ref_key: "singleRef",
|
122
|
-
ref:
|
123
|
-
class:
|
121
|
+
ref: ce,
|
122
|
+
class: Le(["ha-single-page", { [e(X) + "-page"]: !0, editing: e(C) }])
|
124
123
|
}, [
|
125
124
|
m("div", Je, [
|
126
|
-
g(
|
125
|
+
g(z, { class: "main-scroller" }, {
|
127
126
|
default: s(() => [
|
128
|
-
g(
|
127
|
+
g($, {
|
129
128
|
ref_key: "formRef",
|
130
|
-
ref:
|
129
|
+
ref: V,
|
131
130
|
model: e(v),
|
132
131
|
onSubmit: t[3] || (t[3] = Ke(() => {
|
133
132
|
}, ["prevent"]))
|
134
133
|
}, {
|
135
134
|
default: s(() => [
|
136
|
-
g(
|
135
|
+
g(se, {
|
137
136
|
ref_key: "mainRef",
|
138
|
-
ref:
|
139
|
-
module: e(
|
137
|
+
ref: j,
|
138
|
+
module: e(f),
|
140
139
|
schema: e(r),
|
141
140
|
table: e(y),
|
142
141
|
layout: e(L),
|
143
142
|
next: e(b),
|
144
143
|
set: e(v),
|
145
|
-
route: e(
|
146
|
-
"validate-errors": e(
|
147
|
-
onChange: e(
|
148
|
-
onLayoutChange: t[0] || (t[0] = (o) => e(
|
149
|
-
onSubmit: e(
|
144
|
+
route: e(T),
|
145
|
+
"validate-errors": e(K),
|
146
|
+
onChange: e(J),
|
147
|
+
onLayoutChange: t[0] || (t[0] = (o) => e(Q)(o, !0)),
|
148
|
+
onSubmit: e(A)
|
150
149
|
}, null, 8, ["module", "schema", "table", "layout", "next", "set", "route", "validate-errors", "onChange", "onSubmit"]),
|
151
|
-
e(r).length > 1 ? (d(), h(
|
150
|
+
e(r).length > 1 ? (d(), h(S, {
|
152
151
|
key: 0,
|
153
152
|
type: "border-card",
|
154
|
-
onTabChange: e(
|
153
|
+
onTabChange: e(Re),
|
155
154
|
modelValue: e(w),
|
156
|
-
"onUpdate:modelValue": t[1] || (t[1] = (o) =>
|
155
|
+
"onUpdate:modelValue": t[1] || (t[1] = (o) => ee(w) ? w.value = o : w = o)
|
157
156
|
}, {
|
158
157
|
default: s(() => [
|
159
|
-
(d(!0),
|
158
|
+
(d(!0), F(le, null, te(e(r).filter((o, ze) => ze > 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,
|
169
|
+
m("div", null, x(e(qe)(o.table)), 1)
|
171
170
|
]),
|
172
171
|
_: 2
|
173
172
|
}, 1032, ["content", "disabled"])
|
@@ -177,22 +176,22 @@ const Je = { class: "ha-main-form" }, Qe = { class: "row-header" }, We = { class
|
|
177
176
|
]),
|
178
177
|
_: 1
|
179
178
|
}, 8, ["onTabChange", "modelValue"])) : B("", !0),
|
180
|
-
e(
|
179
|
+
e(p).table ? (d(), h(se, {
|
181
180
|
key: 1,
|
182
181
|
ref_key: "childRef",
|
183
|
-
ref:
|
184
|
-
module: e(
|
182
|
+
ref: E,
|
183
|
+
module: e(f),
|
185
184
|
schema: e(r),
|
186
|
-
table: e(
|
187
|
-
layout: e(
|
185
|
+
table: e(p).table,
|
186
|
+
layout: e(p).layout,
|
188
187
|
next: e(b),
|
189
188
|
set: e(v),
|
190
|
-
route: e(
|
191
|
-
"validate-errors": e(
|
192
|
-
onRowEdit: e(
|
193
|
-
onChange: e(
|
194
|
-
onLayoutChange: t[2] || (t[2] = (o) => e(
|
195
|
-
onSubmit: e(
|
189
|
+
route: e(T),
|
190
|
+
"validate-errors": e(K),
|
191
|
+
onRowEdit: e(Ce),
|
192
|
+
onChange: e(J),
|
193
|
+
onLayoutChange: t[2] || (t[2] = (o) => e(Q)(o, !1)),
|
194
|
+
onSubmit: e(A)
|
196
195
|
}, null, 8, ["module", "schema", "table", "layout", "next", "set", "route", "validate-errors", "onRowEdit", "onChange", "onSubmit"])) : B("", !0)
|
197
196
|
]),
|
198
197
|
_: 1
|
@@ -200,52 +199,52 @@ 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(je(e($e)), {
|
204
203
|
ref_key: "updateRef",
|
205
|
-
ref:
|
204
|
+
ref: P,
|
206
205
|
class: "main-footer",
|
207
206
|
schema: e(r),
|
208
207
|
table: e(y),
|
209
208
|
layout: e(L),
|
210
209
|
next: e(b),
|
211
210
|
set: e(v),
|
212
|
-
route: e(
|
213
|
-
onCopy: e(
|
214
|
-
onEdit: e(
|
215
|
-
onSubmit: e(
|
216
|
-
onClose: e(
|
211
|
+
route: e(T),
|
212
|
+
onCopy: e(_e),
|
213
|
+
onEdit: e(ge),
|
214
|
+
onSubmit: e(ke),
|
215
|
+
onClose: e(xe)
|
217
216
|
}, null, 40, ["schema", "table", "layout", "next", "set", "route", "onCopy", "onEdit", "onSubmit", "onClose"]))
|
218
217
|
]),
|
219
|
-
e(
|
218
|
+
e(C) ? (d(), h(N, {
|
220
219
|
key: 0,
|
221
220
|
class: "side-form"
|
222
221
|
}, {
|
223
222
|
header: s(() => [
|
224
223
|
m("div", Qe, [
|
225
|
-
m("div", We,
|
224
|
+
m("div", We, x(e(ue)("common.modify")) + " " + x(e(q)[e(R).show[0].name]), 1),
|
226
225
|
m("div", {
|
227
226
|
class: "row-close",
|
228
|
-
onClick: t[4] || (t[4] = (o) =>
|
227
|
+
onClick: t[4] || (t[4] = (o) => ee(C) ? C.value = !1 : C = !1)
|
229
228
|
}, t[6] || (t[6] = [
|
230
229
|
m("i", { class: "fa fa-close" }, null, -1)
|
231
230
|
]))
|
232
231
|
])
|
233
232
|
]),
|
234
233
|
default: s(() => [
|
235
|
-
g(
|
234
|
+
g(z, 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),
|
241
|
+
(d(!0), F(le, null, te(e(R).show, (o) => (d(), h(Y, {
|
243
242
|
style: Ne(o.control.height ? `height: ${o.control.height}px;` : ""),
|
244
243
|
rules: o.rules
|
245
244
|
}, {
|
246
245
|
label: s(() => [
|
247
|
-
|
248
|
-
o.control.tooltip ? (d(), h(
|
246
|
+
ae(x(e(Ae)(e(R).name, o.name)) + " ", 1),
|
247
|
+
o.control.tooltip ? (d(), h(k, {
|
249
248
|
key: 0,
|
250
249
|
trigger: "hover",
|
251
250
|
placement: "top",
|
@@ -256,7 +255,7 @@ const Je = { class: "ha-main-form" }, Qe = { class: "row-header" }, We = { class
|
|
256
255
|
m("i", { class: "fa fa-question-circle icon-question" }, null, -1)
|
257
256
|
])),
|
258
257
|
default: s(() => [
|
259
|
-
m("pre", null,
|
258
|
+
m("pre", null, x(o.control.tooltip.content), 1)
|
260
259
|
]),
|
261
260
|
_: 2
|
262
261
|
}, 1032, ["title"])) : B("", !0)
|
@@ -264,7 +263,7 @@ const Je = { class: "ha-main-form" }, Qe = { class: "row-header" }, We = { class
|
|
264
263
|
default: s(() => [
|
265
264
|
g(Fe, {
|
266
265
|
schema: e(r),
|
267
|
-
table: e(
|
266
|
+
table: e(R),
|
268
267
|
field: o,
|
269
268
|
set: e(v),
|
270
269
|
row: e(q)
|
@@ -285,26 +284,26 @@ 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(f).width ?? "60%"}`,
|
289
288
|
modelValue: e(i).visible,
|
290
289
|
"onUpdate:modelValue": t[5] || (t[5] = (o) => e(i).visible = o)
|
291
290
|
}, {
|
292
291
|
header: s(() => [
|
293
292
|
m("div", Xe, [
|
294
|
-
|
293
|
+
ae(x(e(b)[e(i).page].title) + " ", 1),
|
295
294
|
m("a", {
|
296
295
|
class: "drawer-copy",
|
297
|
-
href: `${e(
|
298
|
-
},
|
296
|
+
href: `${e(U).url.getToUrl(e(i).url)}`
|
297
|
+
}, x(e(ue)("common.link")), 9, Ye)
|
299
298
|
])
|
300
299
|
]),
|
301
300
|
default: s(() => [
|
302
|
-
g(e(
|
301
|
+
g(e(Me), {
|
303
302
|
ref_key: "pageRef",
|
304
|
-
ref:
|
303
|
+
ref: G,
|
305
304
|
url: e(i).url,
|
306
|
-
onSucceed: e(
|
307
|
-
onClose: e(
|
305
|
+
onSucceed: e(I),
|
306
|
+
onClose: e(he)
|
308
307
|
}, null, 8, ["url", "onSucceed", "onClose"])
|
309
308
|
]),
|
310
309
|
_: 1
|
@@ -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
|
};
|
@@ -9,7 +9,9 @@ const b = { class: "ha-statistic-layout" }, k = /* @__PURE__ */ h({
|
|
9
9
|
table: {},
|
10
10
|
layout: {},
|
11
11
|
next: {},
|
12
|
-
set: {}
|
12
|
+
set: {},
|
13
|
+
url: {},
|
14
|
+
win: {}
|
13
15
|
},
|
14
16
|
setup(p) {
|
15
17
|
let c = p, { schema: E, table: a, layout: l, set: n } = f(c), t = {
|
@@ -40,27 +42,27 @@ const b = { class: "ha-statistic-layout" }, k = /* @__PURE__ */ h({
|
|
40
42
|
}, m = () => {
|
41
43
|
let s = l.value.fields.find((e) => e.group);
|
42
44
|
t.xAxis.name = s.name, t.xAxis.categories = n.value[a.value.name].map((e) => e[s.name]);
|
43
|
-
let
|
45
|
+
let i = [];
|
44
46
|
l.value.fields.forEach((e) => {
|
45
47
|
if (!e.group) {
|
46
|
-
let r = a.value.fields.find((
|
48
|
+
let r = a.value.fields.find((o) => o.name == e.name), u = {
|
47
49
|
name: r.label,
|
48
50
|
tooltip: {
|
49
51
|
valueSuffix: " ms"
|
50
52
|
},
|
51
53
|
data: []
|
52
54
|
};
|
53
|
-
n.value[a.value.name].forEach((
|
54
|
-
u.data.push(parseFloat(
|
55
|
-
}),
|
55
|
+
n.value[a.value.name].forEach((o) => {
|
56
|
+
u.data.push(parseFloat(o[r.name]));
|
57
|
+
}), i.push(u);
|
56
58
|
}
|
57
|
-
}), t.series =
|
59
|
+
}), t.series = i, t.yAxis.title.text = l.value.value;
|
58
60
|
}, d = () => {
|
59
61
|
m();
|
60
62
|
};
|
61
63
|
return x(() => {
|
62
64
|
d();
|
63
|
-
}), (s,
|
65
|
+
}), (s, i) => {
|
64
66
|
const e = v("Highcharts");
|
65
67
|
return _(), g("div", b, [
|
66
68
|
y(e, {
|
@@ -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 I, createElementBlock as J, createVNode as K, unref as i, createElementVNode as P, normalizeStyle as Q, nextTick as L } from "vue";
|
2
|
+
import { n as U, m as W, e as X, d as C, l as Y, S as Z } from "./main-DymfKjqO.js";
|
3
|
+
import { _ as ee } from "./SearchForm.vue_vue_type_style_index_0_lang-ByICIL6w.js";
|
4
|
+
const ie = /* @__PURE__ */ q({
|
6
5
|
__name: "Statistic",
|
7
6
|
props: {
|
8
7
|
searchData: {},
|
@@ -12,15 +11,17 @@ const se = /* @__PURE__ */ j({
|
|
12
11
|
table: {},
|
13
12
|
layout: {},
|
14
13
|
next: {},
|
15
|
-
set: {}
|
14
|
+
set: {},
|
15
|
+
url: {},
|
16
|
+
win: {}
|
16
17
|
},
|
17
18
|
emits: ["search"],
|
18
19
|
setup(A, { expose: F, emit: z }) {
|
19
|
-
let H = z, B = A, { route: E, module: T, schema:
|
20
|
+
let H = z, B = A, { route: E, module: T, schema: y, table: m, layout: l, next: te, set: u, searchData: x } = G(B), s = null, g = null, p = c(), d = c(), v = c(), S = c(), { app: b } = U.sys, V = (t) => {
|
20
21
|
D("search");
|
21
22
|
}, D = (t, e = null) => {
|
22
23
|
H(t, (r) => {
|
23
|
-
|
24
|
+
L(() => {
|
24
25
|
f(), e == null || e(r);
|
25
26
|
});
|
26
27
|
});
|
@@ -59,8 +60,8 @@ const se = /* @__PURE__ */ j({
|
|
59
60
|
//坐标
|
60
61
|
series: []
|
61
62
|
};
|
62
|
-
|
63
|
-
let r = l.value.fields.find((a) => a.group && a.name != l.value.date), k =
|
63
|
+
b.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)");
|
64
|
+
let r = l.value.fields.find((a) => a.group && a.name != l.value.date), k = m.value.fields.find((a) => a.name == r.name).control.data.data;
|
64
65
|
for (let a = 0; a < k.length; a++) {
|
65
66
|
let o = k[a];
|
66
67
|
o.color || Y.error("颜色字段不能为空");
|
@@ -89,7 +90,7 @@ const se = /* @__PURE__ */ j({
|
|
89
90
|
}
|
90
91
|
}
|
91
92
|
};
|
92
|
-
|
93
|
+
b.theme == "dark" && (n.areaStyle.color = {
|
93
94
|
type: "linear",
|
94
95
|
x: 0,
|
95
96
|
y: 0,
|
@@ -104,49 +105,49 @@ const se = /* @__PURE__ */ j({
|
|
104
105
|
global: !0
|
105
106
|
});
|
106
107
|
for (let h = 0; h < t.length; h++) {
|
107
|
-
let
|
108
|
+
let j = t[h], _ = u.value[l.value.table].find((R) => R[r.name] == o.value && R[l.value.date] == j);
|
108
109
|
_ == null ? n.data.push(null) : n.data.push(_[l.value.value]);
|
109
110
|
}
|
110
111
|
e.series.push(n), e.legend.data.push(o.text);
|
111
112
|
}
|
112
|
-
e.xAxis.data.push(...t),
|
113
|
+
e.xAxis.data.push(...t), s.setOption(e);
|
113
114
|
}, w = async () => {
|
114
115
|
var r;
|
115
|
-
let t = C.dom.getHeight([(r = d.value) == null ? void 0 : r.$el]), e =
|
116
|
-
|
116
|
+
let t = C.dom.getHeight([(r = d.value) == null ? void 0 : r.$el]), e = S.value.getBoundingClientRect();
|
117
|
+
p.value = e.height - t - 10 - 1, await L();
|
117
118
|
}, N = async (t) => {
|
118
|
-
d.value
|
119
|
-
},
|
120
|
-
await w(),
|
119
|
+
Z.triggerResize(d.value, t), await w(), s == null || s.resize();
|
120
|
+
}, $ = async () => {
|
121
|
+
await w(), s = g.init(v.value), f();
|
121
122
|
};
|
122
|
-
return
|
123
|
-
|
124
|
-
}),
|
123
|
+
return M(async () => {
|
124
|
+
x.value = W.getConditionForm(y.value, E.value.query.condition), g = await X.getECharts(), await $();
|
125
|
+
}), O(() => l.value, (t, e) => {
|
125
126
|
f();
|
126
|
-
}), F({
|
127
|
+
}), F({ onResize: N }), (t, e) => (I(), J("div", {
|
127
128
|
ref_key: "statisticRef",
|
128
|
-
ref:
|
129
|
+
ref: S,
|
129
130
|
class: "ha-statistic-layout"
|
130
131
|
}, [
|
131
|
-
|
132
|
+
K(ee, {
|
132
133
|
ref_key: "searchRef",
|
133
134
|
ref: d,
|
134
|
-
schema:
|
135
|
-
table:
|
136
|
-
layout:
|
137
|
-
set:
|
138
|
-
"search-data":
|
139
|
-
onChange:
|
135
|
+
schema: i(y),
|
136
|
+
table: i(m),
|
137
|
+
layout: i(l),
|
138
|
+
set: i(u),
|
139
|
+
"search-data": i(x),
|
140
|
+
onChange: i(V)
|
140
141
|
}, null, 8, ["schema", "table", "layout", "set", "search-data", "onChange"]),
|
141
|
-
|
142
|
+
P("div", {
|
142
143
|
ref_key: "chartRef",
|
143
144
|
ref: v,
|
144
145
|
class: "chart",
|
145
|
-
style:
|
146
|
+
style: Q({ height: i(p) + "px" })
|
146
147
|
}, null, 4)
|
147
148
|
], 512));
|
148
149
|
}
|
149
150
|
});
|
150
151
|
export {
|
151
|
-
|
152
|
+
ie as default
|
152
153
|
};
|
@@ -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-D5RR2MRP.js";
|
3
3
|
const b = /* @__PURE__ */ c({
|
4
4
|
__name: "Stock",
|
5
5
|
props: {
|
@@ -10,15 +10,17 @@ const b = /* @__PURE__ */ c({
|
|
10
10
|
table: {},
|
11
11
|
layout: {},
|
12
12
|
next: {},
|
13
|
-
set: {}
|
13
|
+
set: {},
|
14
|
+
url: {},
|
15
|
+
win: {}
|
14
16
|
},
|
15
17
|
setup(t) {
|
16
|
-
let a = t, { schema: o, table:
|
18
|
+
let a = t, { schema: o, table: l, layout: r, next: s, set: n } = m(a);
|
17
19
|
return (f, i) => (u(), p(_, {
|
18
20
|
schema: e(o),
|
19
|
-
table: e(
|
20
|
-
layout: e(
|
21
|
-
next: e(
|
21
|
+
table: e(l),
|
22
|
+
layout: e(r),
|
23
|
+
next: e(s),
|
22
24
|
set: e(n)
|
23
25
|
}, null, 8, ["schema", "table", "layout", "next", "set"]));
|
24
26
|
}
|