halo-pc 1.0.19 → 1.0.21
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{Article-C00dDtgQ.js → Article-D3N6eVpH.js} +52 -51
- package/dist/{ArticleFooter-jAlMJJ0Z.js → ArticleFooter-CbvmQHCn.js} +5 -5
- package/dist/{Autocomplete-DYgdzQEa.js → Autocomplete-BrKsj5vx.js} +1 -1
- package/dist/{Autocomplete-BYlz8Q3t.js → Autocomplete-C1Q-qo5y.js} +9 -9
- package/dist/{Autocomplete-CQ-UuksH.js → Autocomplete-C_t_3Onz.js} +9 -9
- package/dist/{CSharp-ouau54_s.js → CSharp-DGmv2biT.js} +1 -1
- package/dist/{Calender-iu_I3vcU.js → Calender-dCiW7eIK.js} +2 -2
- package/dist/{Callback-bRXyRBO2.js → Callback-BcjLHYz6.js} +3 -3
- package/dist/{Cascader-BJs2FXbQ.js → Cascader-BMs1Kw-s.js} +10 -10
- package/dist/{Cascader-ljR17aOe.js → Cascader-BoZLMQjq.js} +5 -5
- package/dist/{Checkbox-C2OWgiE1.js → Checkbox-DeuCkQ_E.js} +12 -12
- package/dist/{Checkbox-Cy5zNH7D.js → Checkbox-DklZD5ff.js} +1 -1
- package/dist/{Code-Cruabofi.js → Code-CmB3ZGnM.js} +10 -10
- package/dist/{Code-DTvIe3kd.js → Code-DVZ9QWgE.js} +1 -1
- package/dist/{Code-B9oyIhEo.js → Code-Q9ETcIfA.js} +1 -1
- package/dist/Code-hiW76EUm.js +4 -0
- package/dist/{Code.vue_vue_type_style_index_0_lang-BmQDWq2q.js → Code.vue_vue_type_style_index_0_lang-DJO46RBx.js} +4 -4
- package/dist/{Column-ClHvuVuz.js → Column-K0p0pVuf.js} +26 -25
- package/dist/{Comment-D292jtJC.js → Comment-B_jDWUXE.js} +12 -12
- package/dist/Compare-CziDSVLD.js +37 -0
- package/dist/Compare-DFDzyQIR.js +57 -0
- package/dist/{Copy-CvgX-bKU.js → Copy-gHXEFE58.js} +5 -5
- package/dist/{Custom-4bEXZx8t.js → Custom-DS1OrDHT.js} +11 -11
- package/dist/{DataExport-DH0oVaJf.js → DataExport-DAk1d4uG.js} +1 -1
- package/dist/{DataExport.vue_vue_type_script_setup_true_lang-BV2aSpcq.js → DataExport.vue_vue_type_script_setup_true_lang-Clh4Jvxi.js} +19 -19
- package/dist/{DataImport-D73iWOit.js → DataImport-BLOSIbQ2.js} +1 -1
- package/dist/{DataImport.vue_vue_type_script_setup_true_lang-B39IZpM3.js → DataImport.vue_vue_type_script_setup_true_lang-D5J7e_59.js} +19 -19
- package/dist/{Date-DCtZ8VpD.js → Date-BOrgXdKV.js} +4 -4
- package/dist/{Date-BJ2vBWIM.js → Date-D1KihBir.js} +1 -1
- package/dist/{DateRange-BWXik5I2.js → DateRange-Clg_We_d.js} +1 -1
- package/dist/{DateTime-BBHPa2zE.js → DateTime-Ba-L9NIq.js} +4 -4
- package/dist/{DateTime-D_GCbnKC.js → DateTime-Dwg6aUf3.js} +1 -1
- package/dist/{DateTimeRange-C4-4mq77.js → DateTimeRange-Cir1-Js8.js} +1 -1
- package/dist/{Daterange-CPVrg_r8.js → Daterange-Gaj6hNOK.js} +3 -3
- package/dist/{Decimal-Bv5A7-xm.js → Decimal-tv9vqaXk.js} +1 -1
- package/dist/{Delete-lSTmw_3a.js → Delete-HzVURBlh.js} +18 -17
- package/dist/{Detail-Dfvzkkw6.js → Detail-B2rtvufA.js} +6 -5
- package/dist/{Dictionary-thXsHbOo.js → Dictionary-DKnp-UJn.js} +3 -3
- package/dist/{Email-BDg7Qf9f.js → Email-CpOxaSSw.js} +4 -4
- package/dist/{File-TEaB_uIR.js → File-C63qevce.js} +42 -41
- package/dist/Image-DRIunv3_.js +9 -0
- package/dist/{Index-DapcfeaN.js → Index-B6Ec8rbl.js} +1 -1
- package/dist/{Index-ld-kC6ij.js → Index-BD6O3A9N.js} +7 -7
- package/dist/{Index-Cn5Qex6Q.js → Index-Cc_CDbUJ.js} +1 -1
- package/dist/{Index-BuhrNqZE.js → Index-Cev7Nudv.js} +1 -1
- package/dist/Index-DSKuNKCT.js +4 -0
- package/dist/Index-QIBRYf1L.js +4 -0
- package/dist/Index-ZOfKMgat.js +4 -0
- package/dist/{Index-BQKjFLbE.js → Index-bxLda8lZ.js} +29 -28
- package/dist/{Index.vue_vue_type_script_setup_true_lang-BKPwS2s9.js → Index.vue_vue_type_script_setup_true_lang-DaoT5edv.js} +4 -3
- package/dist/{Index.vue_vue_type_script_setup_true_lang-zlsTcQ-k.js → Index.vue_vue_type_script_setup_true_lang-xNPG8cCE.js} +10 -9
- package/dist/{Index.vue_vue_type_style_index_0_lang-CqjK1AVM.js → Index.vue_vue_type_style_index_0_lang-F7HqBnCS.js} +11 -11
- package/dist/{Install-BQ_rGQFg.js → Install-CTAGNKPW.js} +13 -12
- package/dist/{Int-DRcbQElJ.js → Int-DmNjhEfK.js} +8 -8
- package/dist/{Int-C33TxFtW.js → Int-nUzbSSOv.js} +11 -11
- package/dist/{List-CSkx_cTr.js → List-gNI3y_wH.js} +14 -13
- package/dist/{Maintaince-D0JZ-9mL.js → Maintaince-pTASKuMA.js} +1 -1
- package/dist/{Markdown-DjbgXlE6.js → Markdown-BJB6rQY8.js} +1 -1
- package/dist/{Month-C_sIkUIo.js → Month-CHfaIo8p.js} +4 -4
- package/dist/{Month-unY9f1-N.js → Month-DgztqRaq.js} +5 -5
- package/dist/{Month-68Hi85T_.js → Month-ui1XorBW.js} +1 -1
- package/dist/{Normal-BAoQvNjn.js → Normal-Cf7kP6RU.js} +61 -60
- package/dist/{Paging-BNVKLCCy.js → Paging-CBgVct8q.js} +9 -8
- package/dist/{PagingHeader-CkESvHSg.js → PagingHeader-BkFBl-r_.js} +18 -18
- package/dist/{PagingRow-DrMTqBj9.js → PagingRow-eXCadgdO.js} +7 -7
- package/dist/{QueryApi-D410WxrU.js → QueryApi-Wf86Sm6m.js} +1 -1
- package/dist/{Racebar-BhPT9MdU.js → Racebar-ClXzi9hV.js} +16 -16
- package/dist/{Radio-D1AcW1pn.js → Radio-llyoK7PI.js} +1 -1
- package/dist/{Register-jgIuWNwI.js → Register-BaHhaZMu.js} +49 -48
- package/dist/{RichText-BgLtVFup.js → RichText-Cc_jptgY.js} +8 -8
- package/dist/{SearchFooter-CAWhmjR2.js → SearchFooter-BgJxQrMo.js} +1 -1
- package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-ClaSxScx.js → SearchFooter.vue_vue_type_style_index_0_lang-C6DtjpFD.js} +1 -1
- package/dist/{SearchForm--aMZLLx4.js → SearchForm-CroUQ_3K.js} +1 -1
- package/dist/{SearchForm.vue_vue_type_style_index_0_lang-_rdBTvY_.js → SearchForm.vue_vue_type_style_index_0_lang-DEu6hHys.js} +28 -27
- package/dist/{Select-DU_6d_Ob.js → Select-BYw63gZy.js} +17 -16
- package/dist/{Select-CVnXZcZi.js → Select-BtNeUq9h.js} +1 -1
- package/dist/{Select-JFUTkpkm.js → Select-wxKjwxJj.js} +17 -17
- package/dist/{Single-B0g3q0uZ.js → Single-CCVi3Pcj.js} +83 -82
- package/dist/{Statistic-XTBdaF7E.js → Statistic-g3nQvsbW.js} +30 -29
- package/dist/{Stock-nsqld-XR.js → Stock-C6Fxo31l.js} +1 -1
- package/dist/{Stock-CWU3inQY.js → Stock-CNqLeSld.js} +1 -1
- package/dist/{Stock.vue_vue_type_style_index_0_lang-B7HB-me6.js → Stock.vue_vue_type_style_index_0_lang-BqXBN6CJ.js} +11 -11
- package/dist/{Switch-BqHPuFzA.js → Switch-NMkH-rhl.js} +1 -1
- package/dist/{Table-l0km2rz7.js → Table-Cdd_tPoL.js} +57 -56
- package/dist/{Table-xRltYWjc.js → Table-DpA4dO4P.js} +51 -50
- package/dist/{Text-DOTMUPPm.js → Text-DanSgaL9.js} +7 -7
- package/dist/Text-DgZjeg-u.js +4 -0
- package/dist/{Text-alXcFJHa.js → Text-GuLK7BYX.js} +6 -6
- package/dist/{Text.vue_vue_type_style_index_0_lang-1wF_kb3u.js → Text.vue_vue_type_style_index_0_lang-CYGKr6vh.js} +8 -8
- package/dist/{TextLink-BUpIHKqh.js → TextLink-B_Ur1pg0.js} +3 -3
- package/dist/{Textarea-IFX_g2SZ.js → Textarea-HhP_VFJV.js} +1 -1
- package/dist/{Time-CHadluUL.js → Time-CmyrAm3i.js} +8 -8
- package/dist/{Timeline-B7xPAwXh.js → Timeline-B85T2wBn.js} +11 -11
- package/dist/{Tree-qvL1DgaM.js → Tree-Ck_7r3nf.js} +85 -84
- package/dist/{Tree-DoXqyUpn.js → Tree-OqvNLgYj.js} +15 -14
- package/dist/{TreeNode-CUSAKhTp.js → TreeNode-Ba2f55wK.js} +1 -1
- package/dist/{Update-eETfPmHB.js → Update-DrmLFoty.js} +9 -8
- package/dist/{UpdateChild-DbbXDvCz.js → UpdateChild-CGCn-Eh4.js} +6 -6
- package/dist/{Upload-CAUGBT7A.js → Upload-D9HeSZCg.js} +18 -17
- package/dist/{Upload-DMfKIPRu.js → Upload-DXADyB6r.js} +49 -48
- package/dist/{UploadApi-FEbSWkVM.js → UploadApi-DAT-xdsM.js} +1 -1
- package/dist/{Year-CAxdMb2V.js → Year-Dx_qNPrz.js} +5 -5
- package/dist/{Year-CnHHib5-.js → Year-RGAEzf_V.js} +1 -1
- package/dist/assets/halo-fe-idvmXC0t.js +15923 -0
- package/dist/main-COiaaxGk.js +3542 -0
- package/dist/main.js +129 -129
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/dist/Code-C8zrvj8s.js +0 -4
- package/dist/Compare-CGW1IWLh.js +0 -56
- package/dist/Compare-DjrTKaz2.js +0 -26
- package/dist/Image-BqCjtyvc.js +0 -9
- package/dist/Index-BCku46lC.js +0 -4
- package/dist/Index-BLoAow8U.js +0 -4
- package/dist/Index-C3Dtv0ze.js +0 -4
- package/dist/Text-CFZ1y9Xn.js +0 -4
- package/dist/main-DArl7gFs.js +0 -19837
@@ -1,10 +1,11 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import {
|
3
|
-
import { _ as Ge } from "./
|
4
|
-
import { _ as
|
5
|
-
|
6
|
-
|
7
|
-
|
1
|
+
import { defineComponent as $e, toRefs as Ue, ref as u, computed as Y, watch as Le, resolveComponent as f, openBlock as d, createElementBlock as j, normalizeClass as Be, unref as e, createElementVNode as m, createVNode as h, withCtx as s, withModifiers as De, createBlock as g, isRef as Z, Fragment as ee, renderList as le, toDisplayString as x, createCommentVNode as L, resolveDynamicComponent as Ke, normalizeStyle as Pe, createTextVNode as te, nextTick as ae } from "vue";
|
2
|
+
import { aO as Ne, P as oe, aK as qe, K as q, t as Oe, L as Fe, f as ue, e as Me, G as je } from "./assets/halo-fe-idvmXC0t.js";
|
3
|
+
import { c as Ae, _ as Ge, s as re } from "./main-COiaaxGk.js";
|
4
|
+
import { _ as He } from "./Index.vue_vue_type_style_index_0_lang-F7HqBnCS.js";
|
5
|
+
import { _ as ne } from "./Index.vue_vue_type_script_setup_true_lang-xNPG8cCE.js";
|
6
|
+
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 = [
|
7
|
+
We
|
8
|
+
], Ye = /* @__PURE__ */ m("i", { class: "fa fa-question-circle icon-question" }, null, -1), Ze = { class: "el-drawer__title" }, el = ["href"], nl = /* @__PURE__ */ $e({
|
8
9
|
__name: "Single",
|
9
10
|
props: {
|
10
11
|
base: {},
|
@@ -14,18 +15,18 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
|
|
14
15
|
},
|
15
16
|
emits: ["navigate", "load", "succeed", "close"],
|
16
17
|
setup(se, { expose: ie, emit: de }) {
|
17
|
-
let B = de, me = se, { url:
|
18
|
-
let t =
|
18
|
+
let B = de, me = se, { url: ce, base: A, route: z } = Ue(me), p = u(), b = u(), c = u(), r = u(), y = u(), D = u(), v = u({ table: null, layout: null }), w = u(), K = u([]), ve = u(), E = u(), R = u(), O = u(), C = u(), P = u(), i = u({ page: null, url: null, visible: !1, appendToBody: !1 }), k = u(!1), F = u(), S = u(), fe = (l) => !0, pe = (l) => {
|
19
|
+
let t = q.getPath(ce.value), a = q.getPath(l);
|
19
20
|
return t != a;
|
20
21
|
}, be = () => {
|
21
22
|
Ve();
|
22
23
|
}, ye = (l, t) => {
|
23
|
-
|
24
|
+
G("copy", l, t);
|
24
25
|
}, _e = (l, t) => {
|
25
|
-
|
26
|
+
G("update", l, t);
|
26
27
|
}, he = () => {
|
27
28
|
i.value.visible = !1;
|
28
|
-
},
|
29
|
+
}, G = (l, t, a) => {
|
29
30
|
let n = ge(l, t);
|
30
31
|
a.ctrlKey ? B("navigate", n) : (i.value.appendToBody = a.altKey, i.value.page = l, i.value.url = n, i.value.visible = !0);
|
31
32
|
}, ge = (l, t = null) => {
|
@@ -36,23 +37,23 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
|
|
36
37
|
}
|
37
38
|
return a;
|
38
39
|
}, we = (l, t, a) => {
|
39
|
-
(a.ctrlKey || k.value) && (
|
40
|
+
(a.ctrlKey || k.value) && (F.value = l, S.value = Oe.clone(t), k.value = !0, S.value.fields.forEach((n) => {
|
40
41
|
n.control.textualize = !1;
|
41
42
|
}));
|
42
|
-
},
|
43
|
-
i.value.visible = !1, B("succeed",
|
43
|
+
}, H = (l) => {
|
44
|
+
i.value.visible = !1, B("succeed", W.value, l);
|
44
45
|
}, Ce = () => {
|
45
46
|
B("close");
|
46
|
-
},
|
47
|
-
},
|
47
|
+
}, I = (l, t, a, n, T) => {
|
48
|
+
}, J = (l, t) => {
|
48
49
|
if (t) {
|
49
50
|
D.value = y.value.layouts.find((a) => a.type == l);
|
50
51
|
return;
|
51
52
|
}
|
52
|
-
|
53
|
+
v.value.layout = v.value.table.layouts.find((a) => a.type == l);
|
53
54
|
}, ke = (l) => {
|
54
55
|
let t = r.value.find((a) => a.name == l);
|
55
|
-
|
56
|
+
v.value.table = t, v.value.layout = t.layouts[0];
|
56
57
|
}, xe = (l) => {
|
57
58
|
let t = Object.keys(l)[0], a = t.substring(1, t.indexOf("]"));
|
58
59
|
r.value.find((T) => T.name == a).main || (w.value = a);
|
@@ -61,13 +62,13 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
|
|
61
62
|
E.value.validate((n, T) => {
|
62
63
|
if (!n)
|
63
64
|
return xe(T), a && a(!1), !1;
|
64
|
-
let
|
65
|
-
t && t(
|
66
|
-
E.value.clearValidate(), ue.success(V),
|
67
|
-
}).catch(({ code:
|
68
|
-
if (
|
65
|
+
let $ = p.value.type == "Update" ? b.value.update.route : b.value.insert.route;
|
66
|
+
t && t($, c.value), Fe.post($, c.value).then(({ data: U, message: V }) => {
|
67
|
+
E.value.clearValidate(), ue.success(V), H(c.value);
|
68
|
+
}).catch(({ code: U, data: V, message: X }) => {
|
69
|
+
if (U != "ValidateError")
|
69
70
|
return;
|
70
|
-
|
71
|
+
K.value = V;
|
71
72
|
let N = V.find((_) => _.table !== y.value.name);
|
72
73
|
if (N) {
|
73
74
|
let _ = r.value.find((o) => o.name == N.table);
|
@@ -75,7 +76,7 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
|
|
75
76
|
}
|
76
77
|
ae(() => {
|
77
78
|
E.value.clearValidate(), E.value.validate((_, o) => {
|
78
|
-
_ || (a && a(!1),
|
79
|
+
_ || (a && a(!1), K.value = []);
|
79
80
|
});
|
80
81
|
});
|
81
82
|
}).finally(() => {
|
@@ -83,56 +84,56 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
|
|
83
84
|
});
|
84
85
|
});
|
85
86
|
});
|
86
|
-
},
|
87
|
+
}, Q = (l) => {
|
87
88
|
var a, n;
|
88
|
-
let t =
|
89
|
-
|
89
|
+
let t = Me(l.module.type, l.module.name);
|
90
|
+
je.setTitle(t, l.module.env), p.value = l.module, b.value = l.next, c.value = re.expandSet(l.schema, l.set), r.value = re.expandSchema(l.schema), y.value = (a = r.value) == null ? void 0 : a[0], D.value = y.value.layouts[0], ((n = r.value) == null ? void 0 : n.length) > 1 && (w.value = r.value[1].name, v.value.table = r.value[1], v.value.layout = r.value[1].layouts[0]);
|
90
91
|
}, Se = (l) => {
|
91
92
|
R.value && R.value.resize && R.value.resize(l), C.value && C.value.resize && C.value.resize(l);
|
92
93
|
}, Te = (l, t) => {
|
93
94
|
if (l == "ctrlS") {
|
94
95
|
if (p.value.type == "Detail") {
|
95
|
-
if (!
|
96
|
+
if (!P.value || !P.value.keyboard)
|
96
97
|
return !1;
|
97
|
-
|
98
|
+
P.value.keyboard(l, t);
|
98
99
|
return;
|
99
100
|
}
|
100
|
-
|
101
|
+
M(t);
|
101
102
|
}
|
102
103
|
}, Ve = () => {
|
103
|
-
let l =
|
104
|
+
let l = q.getUrl(z.value.path, z.value.query);
|
104
105
|
B("load", l, !1, (t) => {
|
105
106
|
});
|
106
107
|
};
|
107
108
|
(() => {
|
108
|
-
|
109
|
+
Q(A.value.data);
|
109
110
|
})();
|
110
|
-
let
|
111
|
-
if (!
|
111
|
+
let M = (l) => {
|
112
|
+
if (!O.value.submit) {
|
112
113
|
ue.notify("提示", "请在子组件暴露submit方法来实现快捷提交", "warning");
|
113
114
|
return;
|
114
115
|
}
|
115
|
-
|
116
|
+
O.value.submit(l);
|
116
117
|
}, ze = Y(() => {
|
117
118
|
let l = `/${y.value.name}/update`, t = p.value.type == "Detail" ? "detail" : "update";
|
118
|
-
return
|
119
|
-
}),
|
120
|
-
return Le(() =>
|
121
|
-
|
119
|
+
return Ae.getComponent(l, "partial", t);
|
120
|
+
}), W = Y(() => p.value.type.toLowerCase());
|
121
|
+
return Le(() => A.value, (l) => {
|
122
|
+
Q(l.data), R.value.update && R.value.update(l.data), C.value && C.value.update && C.value.update(l.data);
|
122
123
|
}), ie({ shouldLoad: fe, shouldSpin: pe, keyboard: Te, refresh: be, resize: Se }), (l, t) => {
|
123
|
-
const a = f("el-tooltip"), n = f("el-tab-pane"), T = f("el-tabs"),
|
124
|
-
return d(),
|
124
|
+
const a = f("el-tooltip"), n = f("el-tab-pane"), T = f("el-tabs"), $ = f("el-form"), U = f("el-scrollbar"), V = f("el-popover"), X = f("el-form-item"), N = f("el-card"), _ = f("el-drawer");
|
125
|
+
return d(), j("div", {
|
125
126
|
ref_key: "singleRef",
|
126
|
-
ref:
|
127
|
-
class: Be(["ha-single-page", { [e(
|
127
|
+
ref: ve,
|
128
|
+
class: Be(["ha-single-page", { [e(W) + "-page"]: !0, editing: e(k) }])
|
128
129
|
}, [
|
129
|
-
m("div",
|
130
|
-
h(
|
130
|
+
m("div", Ie, [
|
131
|
+
h(U, { class: "main-scroller" }, {
|
131
132
|
default: s(() => [
|
132
|
-
h(
|
133
|
+
h($, {
|
133
134
|
ref_key: "formRef",
|
134
135
|
ref: E,
|
135
|
-
model: e(
|
136
|
+
model: e(c),
|
136
137
|
onSubmit: t[3] || (t[3] = De(() => {
|
137
138
|
}, ["prevent"]))
|
138
139
|
}, {
|
@@ -145,12 +146,12 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
|
|
145
146
|
table: e(y),
|
146
147
|
layout: e(D),
|
147
148
|
next: e(b),
|
148
|
-
set: e(
|
149
|
+
set: e(c),
|
149
150
|
route: e(z),
|
150
|
-
"validate-errors": e(
|
151
|
-
onChange: e(
|
152
|
-
onLayoutChange: t[0] || (t[0] = (o) => e(
|
153
|
-
onSubmit: e(
|
151
|
+
"validate-errors": e(K),
|
152
|
+
onChange: e(I),
|
153
|
+
onLayoutChange: t[0] || (t[0] = (o) => e(J)(o, !0)),
|
154
|
+
onSubmit: e(M)
|
154
155
|
}, null, 8, ["module", "schema", "table", "layout", "next", "set", "route", "validate-errors", "onChange", "onSubmit"]),
|
155
156
|
e(r).length > 1 ? (d(), g(T, {
|
156
157
|
key: 0,
|
@@ -160,7 +161,7 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
|
|
160
161
|
"onUpdate:modelValue": t[1] || (t[1] = (o) => Z(w) ? w.value = o : w = o)
|
161
162
|
}, {
|
162
163
|
default: s(() => [
|
163
|
-
(d(!0),
|
164
|
+
(d(!0), j(ee, null, le(e(r).filter((o, Ee) => Ee > 0), (o) => (d(), g(n, {
|
164
165
|
name: o.name,
|
165
166
|
key: o.name
|
166
167
|
}, {
|
@@ -171,7 +172,7 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
|
|
171
172
|
disabled: !o.tooltip
|
172
173
|
}, {
|
173
174
|
default: s(() => [
|
174
|
-
m("div", null, x(e(
|
175
|
+
m("div", null, x(e(Ne)(o.table)), 1)
|
175
176
|
]),
|
176
177
|
_: 2
|
177
178
|
}, 1032, ["content", "disabled"])
|
@@ -181,22 +182,22 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
|
|
181
182
|
]),
|
182
183
|
_: 1
|
183
184
|
}, 8, ["onTabChange", "modelValue"])) : L("", !0),
|
184
|
-
e(
|
185
|
+
e(v).table ? (d(), g(ne, {
|
185
186
|
key: 1,
|
186
187
|
ref_key: "childRef",
|
187
188
|
ref: C,
|
188
189
|
module: e(p),
|
189
190
|
schema: e(r),
|
190
|
-
table: e(
|
191
|
-
layout: e(
|
191
|
+
table: e(v).table,
|
192
|
+
layout: e(v).layout,
|
192
193
|
next: e(b),
|
193
|
-
set: e(
|
194
|
+
set: e(c),
|
194
195
|
route: e(z),
|
195
|
-
"validate-errors": e(
|
196
|
+
"validate-errors": e(K),
|
196
197
|
onRowEdit: e(we),
|
197
|
-
onChange: e(
|
198
|
-
onLayoutChange: t[2] || (t[2] = (o) => e(
|
199
|
-
onSubmit: e(
|
198
|
+
onChange: e(I),
|
199
|
+
onLayoutChange: t[2] || (t[2] = (o) => e(J)(o, !1)),
|
200
|
+
onSubmit: e(M)
|
200
201
|
}, null, 8, ["module", "schema", "table", "layout", "next", "set", "route", "validate-errors", "onRowEdit", "onChange", "onSubmit"])) : L("", !0)
|
201
202
|
]),
|
202
203
|
_: 1
|
@@ -204,15 +205,15 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
|
|
204
205
|
]),
|
205
206
|
_: 1
|
206
207
|
}),
|
207
|
-
(d(), g(
|
208
|
+
(d(), g(Ke(e(ze)), {
|
208
209
|
ref_key: "updateRef",
|
209
|
-
ref:
|
210
|
+
ref: O,
|
210
211
|
class: "main-footer",
|
211
212
|
schema: e(r),
|
212
213
|
table: e(y),
|
213
214
|
layout: e(D),
|
214
215
|
next: e(b),
|
215
|
-
set: e(
|
216
|
+
set: e(c),
|
216
217
|
route: e(z),
|
217
218
|
onCopy: e(ye),
|
218
219
|
onEdit: e(_e),
|
@@ -225,8 +226,8 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
|
|
225
226
|
class: "side-form"
|
226
227
|
}, {
|
227
228
|
header: s(() => [
|
228
|
-
m("div",
|
229
|
-
m("div",
|
229
|
+
m("div", Je, [
|
230
|
+
m("div", Qe, x(e(oe)("common.modify")) + " " + x(e(F)[e(S).show[0].name]), 1),
|
230
231
|
m("div", {
|
231
232
|
class: "row-close",
|
232
233
|
onClick: t[4] || (t[4] = (o) => Z(k) ? k.value = !1 : k = !1)
|
@@ -234,19 +235,19 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
|
|
234
235
|
])
|
235
236
|
]),
|
236
237
|
default: s(() => [
|
237
|
-
h(
|
238
|
+
h(U, null, {
|
238
239
|
default: s(() => [
|
239
|
-
h(
|
240
|
+
h($, {
|
240
241
|
size: "small",
|
241
242
|
"label-width": "80px"
|
242
243
|
}, {
|
243
244
|
default: s(() => [
|
244
|
-
(d(!0),
|
245
|
-
style:
|
245
|
+
(d(!0), j(ee, null, le(e(S).show, (o) => (d(), g(X, {
|
246
|
+
style: Pe(o.control.height ? `height: ${o.control.height}px;` : ""),
|
246
247
|
rules: o.rules
|
247
248
|
}, {
|
248
249
|
label: s(() => [
|
249
|
-
te(x(e(
|
250
|
+
te(x(e(qe)(e(S).name, o.name)) + " ", 1),
|
250
251
|
o.control.tooltip ? (d(), g(V, {
|
251
252
|
key: 0,
|
252
253
|
trigger: "hover",
|
@@ -264,12 +265,12 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
|
|
264
265
|
}, 1032, ["title"])) : L("", !0)
|
265
266
|
]),
|
266
267
|
default: s(() => [
|
267
|
-
h(
|
268
|
+
h(He, {
|
268
269
|
schema: e(r),
|
269
270
|
table: e(S),
|
270
271
|
field: o,
|
271
|
-
set: e(
|
272
|
-
row: e(
|
272
|
+
set: e(c),
|
273
|
+
row: e(F)
|
273
274
|
}, null, 8, ["schema", "table", "field", "set", "row"])
|
274
275
|
]),
|
275
276
|
_: 2
|
@@ -296,16 +297,16 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
|
|
296
297
|
te(x(e(b)[e(i).page].title) + " ", 1),
|
297
298
|
m("a", {
|
298
299
|
class: "drawer-copy",
|
299
|
-
href: `${e(
|
300
|
+
href: `${e(q).getToUrl(e(i).url)}`
|
300
301
|
}, x(e(oe)("common.link")), 9, el)
|
301
302
|
])
|
302
303
|
]),
|
303
304
|
default: s(() => [
|
304
|
-
h(e(
|
305
|
+
h(e(Ge), {
|
305
306
|
ref_key: "pageRef",
|
306
|
-
ref:
|
307
|
+
ref: P,
|
307
308
|
url: e(i).url,
|
308
|
-
onSucceed: e(
|
309
|
+
onSucceed: e(H),
|
309
310
|
onClose: e(he)
|
310
311
|
}, null, 8, ["url", "onSucceed", "onClose"])
|
311
312
|
]),
|
@@ -316,5 +317,5 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
|
|
316
317
|
}
|
317
318
|
});
|
318
319
|
export {
|
319
|
-
|
320
|
+
nl as default
|
320
321
|
};
|
@@ -1,7 +1,8 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import {
|
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 Y, createVNode as I, unref as i, createElementVNode as J, normalizeStyle as K, nextTick as m } from "vue";
|
2
|
+
import { x as P, g as Q, Y as R, f as U, N as W } from "./assets/halo-fe-idvmXC0t.js";
|
3
|
+
import { s as X } from "./main-COiaaxGk.js";
|
4
|
+
import { _ as Z } from "./SearchForm.vue_vue_type_style_index_0_lang-DEu6hHys.js";
|
5
|
+
const ie = /* @__PURE__ */ j({
|
5
6
|
__name: "Statistic",
|
6
7
|
props: {
|
7
8
|
searchData: {},
|
@@ -15,16 +16,16 @@ const re = /* @__PURE__ */ $({
|
|
15
16
|
},
|
16
17
|
emits: ["search"],
|
17
18
|
setup(C, { expose: A, emit: F }) {
|
18
|
-
let z = F, H = C, { route: B, module: E, schema:
|
19
|
+
let z = F, H = C, { route: B, module: E, schema: x, table: y, layout: l, next: ee, set: u, searchData: g } = q(H), s = null, p = null, v = n(), f = n(), b = n(), S = n(), N = (t) => {
|
19
20
|
T("search");
|
20
21
|
}, T = (t, e = null) => {
|
21
22
|
z(t, (r) => {
|
22
|
-
|
23
|
-
|
23
|
+
m(() => {
|
24
|
+
d(), e && e(r);
|
24
25
|
});
|
25
26
|
});
|
26
|
-
},
|
27
|
-
let t =
|
27
|
+
}, d = () => {
|
28
|
+
let t = Q.distinct(u.value[l.value.table], (a) => a[l.value.date]), e = {
|
28
29
|
title: { text: E.value.title, left: "center", textStyle: { color: "#777" } },
|
29
30
|
//标题
|
30
31
|
tooltip: { trigger: "axis" },
|
@@ -59,10 +60,10 @@ const re = /* @__PURE__ */ $({
|
|
59
60
|
series: []
|
60
61
|
};
|
61
62
|
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),
|
63
|
-
for (let a = 0; a <
|
64
|
-
let o =
|
65
|
-
o.color ||
|
63
|
+
let r = l.value.fields.find((a) => a.group && a.name != l.value.date), _ = y.value.fields.find((a) => a.name == r.name).control.data.data;
|
64
|
+
for (let a = 0; a < _.length; a++) {
|
65
|
+
let o = _[a];
|
66
|
+
o.color || U.error("颜色字段不能为空");
|
66
67
|
let c = {
|
67
68
|
name: o.text,
|
68
69
|
type: "line",
|
@@ -103,53 +104,53 @@ const re = /* @__PURE__ */ $({
|
|
103
104
|
global: !0
|
104
105
|
});
|
105
106
|
for (let h = 0; h < t.length; h++) {
|
106
|
-
let
|
107
|
-
|
107
|
+
let $ = t[h], w = u.value[l.value.table].find((L) => L[r.name] == o.value && L[l.value.date] == $);
|
108
|
+
w == null ? c.data.push(null) : c.data.push(w[l.value.value]);
|
108
109
|
}
|
109
110
|
e.series.push(c), e.legend.data.push(o.text);
|
110
111
|
}
|
111
112
|
e.xAxis.data.push(...t), s.setOption(e);
|
112
113
|
}, k = () => {
|
113
114
|
var r;
|
114
|
-
let t =
|
115
|
+
let t = W.getHeight([(r = f.value) == null ? void 0 : r.$el]), e = S.value.getBoundingClientRect();
|
115
116
|
v.value = e.height - t - 10 - 1;
|
116
117
|
}, V = (t) => {
|
117
|
-
|
118
|
+
f.value.resize(t), m(() => {
|
118
119
|
k(), s == null || s.resize();
|
119
120
|
});
|
120
|
-
},
|
121
|
-
k(),
|
122
|
-
s = p.init(b.value),
|
121
|
+
}, D = () => {
|
122
|
+
k(), m(() => {
|
123
|
+
s = p.init(b.value), d();
|
123
124
|
});
|
124
125
|
};
|
125
126
|
return G(async () => {
|
126
|
-
g.value =
|
127
|
+
g.value = X.getConditionForm(x.value, B.value.query.condition), p = await P.getECharts(), D();
|
127
128
|
}), M(() => l.value, (t, e) => {
|
128
|
-
|
129
|
-
}), A({ resize: V }), (t, e) => (O(),
|
129
|
+
d();
|
130
|
+
}), A({ resize: V }), (t, e) => (O(), Y("div", {
|
130
131
|
ref_key: "statisticRef",
|
131
132
|
ref: S,
|
132
133
|
class: "ha-statistic-layout"
|
133
134
|
}, [
|
134
|
-
|
135
|
+
I(Z, {
|
135
136
|
ref_key: "searchRef",
|
136
|
-
ref:
|
137
|
-
schema: i(
|
137
|
+
ref: f,
|
138
|
+
schema: i(x),
|
138
139
|
table: i(y),
|
139
140
|
layout: i(l),
|
140
141
|
set: i(u),
|
141
142
|
"search-data": i(g),
|
142
143
|
onChange: i(N)
|
143
144
|
}, null, 8, ["schema", "table", "layout", "set", "search-data", "onChange"]),
|
144
|
-
|
145
|
+
J("div", {
|
145
146
|
ref_key: "chartRef",
|
146
147
|
ref: b,
|
147
148
|
class: "chart",
|
148
|
-
style:
|
149
|
+
style: K({ height: i(v) + "px" })
|
149
150
|
}, null, 4)
|
150
151
|
], 512));
|
151
152
|
}
|
152
153
|
});
|
153
154
|
export {
|
154
|
-
|
155
|
+
ie as default
|
155
156
|
};
|
@@ -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-BqXBN6CJ.js";
|
3
3
|
const b = /* @__PURE__ */ c({
|
4
4
|
__name: "Stock",
|
5
5
|
props: {
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { defineComponent as F, toRefs as R, ref as T, onMounted as B, openBlock as E, createBlock as G, unref as m, withCtx as P, createElementVNode as A, createTextVNode as V, toDisplayString as b } from "vue";
|
2
|
-
import {
|
3
|
-
const j = /* @__PURE__ */ A("div", { class: "ha-empty" }, "暂无行情数据", -1),
|
2
|
+
import { x as O, a3 as K, g as N, Y as S } from "./assets/halo-fe-idvmXC0t.js";
|
3
|
+
const j = /* @__PURE__ */ A("div", { class: "ha-empty" }, "暂无行情数据", -1), z = [
|
4
4
|
j
|
5
|
-
],
|
5
|
+
], Q = /* @__PURE__ */ F({
|
6
6
|
__name: "Stock",
|
7
7
|
props: {
|
8
8
|
searchData: {},
|
@@ -15,7 +15,7 @@ const j = /* @__PURE__ */ A("div", { class: "ha-empty" }, "暂无行情数据",
|
|
15
15
|
set: {}
|
16
16
|
},
|
17
17
|
setup(k) {
|
18
|
-
let L = k, { module:
|
18
|
+
let L = k, { module: W, schema: Y, table: v, layout: n, next: q, set: f } = R(L), y = null, c = null, x = "#04aa4e", p = "#ff5945", w = T(), u = { history: null, week: null, month: null }, _ = (t) => {
|
19
19
|
let o = N.orderBy(t, (i) => i[n.value.time], !1), e = [], l = [], r = [];
|
20
20
|
for (let i = 0; i < o.length; i++) {
|
21
21
|
let a = o[i];
|
@@ -24,7 +24,7 @@ const j = /* @__PURE__ */ A("div", { class: "ha-empty" }, "暂无行情数据",
|
|
24
24
|
l.push([d, s, parseFloat(a[n.value.low]), parseFloat(a[n.value.high])]);
|
25
25
|
let C = {
|
26
26
|
value: parseFloat(a[n.value.volumn]),
|
27
|
-
itemStyle: { color: s > d ?
|
27
|
+
itemStyle: { color: s > d ? x : p }
|
28
28
|
};
|
29
29
|
r.push(C);
|
30
30
|
}
|
@@ -147,10 +147,10 @@ const j = /* @__PURE__ */ A("div", { class: "ha-empty" }, "暂无行情数据",
|
|
147
147
|
//网格索引,表示使用第2个网格的配置
|
148
148
|
data: t.values,
|
149
149
|
itemStyle: {
|
150
|
-
color:
|
151
|
-
color0:
|
152
|
-
borderColor:
|
153
|
-
borderColor0:
|
150
|
+
color: x,
|
151
|
+
color0: p,
|
152
|
+
borderColor: x,
|
153
|
+
borderColor0: p
|
154
154
|
},
|
155
155
|
markPoint: {
|
156
156
|
//图标标注
|
@@ -284,7 +284,7 @@ const j = /* @__PURE__ */ A("div", { class: "ha-empty" }, "暂无行情数据",
|
|
284
284
|
ref_key: "chartRef",
|
285
285
|
ref: w,
|
286
286
|
class: "chart"
|
287
|
-
},
|
287
|
+
}, z, 512),
|
288
288
|
V(" 30日开盘振幅:" + b(m(u).month) + "% 7日开盘振幅:" + b(m(u).week) + "% 历史开盘振幅:" + b(m(u).history) + "% ", 1)
|
289
289
|
]),
|
290
290
|
_: 1
|
@@ -292,5 +292,5 @@ const j = /* @__PURE__ */ A("div", { class: "ha-empty" }, "暂无行情数据",
|
|
292
292
|
}
|
293
293
|
});
|
294
294
|
export {
|
295
|
-
|
295
|
+
Q as _
|
296
296
|
};
|
@@ -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-DKnp-UJn.js")), n = a, { schema: m, table: s, field: i, set: d, row: p, modelValue: t } = c(n);
|
14
14
|
return (h, l) => (b(), w(e(r), {
|
15
15
|
schema: e(m),
|
16
16
|
table: e(s),
|