halo-pc 1.0.19 → 1.0.20
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{Article-C00dDtgQ.js → Article-aps_F4Uq.js} +34 -34
- package/dist/{ArticleFooter-jAlMJJ0Z.js → ArticleFooter-CsCnjrJ1.js} +5 -5
- package/dist/{Autocomplete-DYgdzQEa.js → Autocomplete-BGkHGSX_.js} +1 -1
- package/dist/{Autocomplete-CQ-UuksH.js → Autocomplete-CGoxGIM2.js} +8 -8
- package/dist/{Autocomplete-BYlz8Q3t.js → Autocomplete-XdLV4jzi.js} +8 -8
- package/dist/{CSharp-ouau54_s.js → CSharp-NuDfWEq7.js} +1 -1
- package/dist/{Calender-iu_I3vcU.js → Calender-C2YaNTHk.js} +1 -1
- package/dist/{Callback-bRXyRBO2.js → Callback-Czdr_dVp.js} +1 -1
- package/dist/{Cascader-BJs2FXbQ.js → Cascader-D3Kr80fH.js} +10 -10
- package/dist/{Cascader-ljR17aOe.js → Cascader-DRvnD4Xc.js} +5 -5
- package/dist/{Checkbox-C2OWgiE1.js → Checkbox-5pSKww4M.js} +12 -12
- package/dist/{Checkbox-Cy5zNH7D.js → Checkbox-BAcK--1U.js} +1 -1
- package/dist/Code-BHEes80c.js +4 -0
- package/dist/{Code-Cruabofi.js → Code-BxQxsVD8.js} +10 -10
- package/dist/{Code-DTvIe3kd.js → Code-CbsVyhOv.js} +1 -1
- package/dist/{Code-B9oyIhEo.js → Code-CtDTGfBy.js} +1 -1
- package/dist/{Code.vue_vue_type_style_index_0_lang-BmQDWq2q.js → Code.vue_vue_type_style_index_0_lang-CPZKY3vQ.js} +2 -2
- package/dist/{Column-ClHvuVuz.js → Column-D3PMyaiE.js} +17 -17
- package/dist/{Comment-D292jtJC.js → Comment-B3fvVYJF.js} +12 -12
- package/dist/Compare-BXxJuIXf.js +37 -0
- package/dist/Compare-gEOPuGLB.js +57 -0
- package/dist/{Copy-CvgX-bKU.js → Copy-1znXP-dt.js} +4 -4
- package/dist/{Custom-4bEXZx8t.js → Custom-C_15ZImX.js} +11 -11
- package/dist/{DataExport-DH0oVaJf.js → DataExport-hwoZoZUN.js} +1 -1
- package/dist/{DataExport.vue_vue_type_script_setup_true_lang-BV2aSpcq.js → DataExport.vue_vue_type_script_setup_true_lang-Dkq4fSkZ.js} +18 -18
- package/dist/{DataImport-D73iWOit.js → DataImport-CQYeF50z.js} +1 -1
- package/dist/{DataImport.vue_vue_type_script_setup_true_lang-B39IZpM3.js → DataImport.vue_vue_type_script_setup_true_lang-ChWRjj2W.js} +13 -13
- package/dist/{Date-DCtZ8VpD.js → Date-0bIUTNCs.js} +6 -6
- package/dist/{Date-BJ2vBWIM.js → Date-a3T1YbHN.js} +1 -1
- package/dist/{DateRange-BWXik5I2.js → DateRange-Cxu9FXTE.js} +1 -1
- package/dist/{DateTime-D_GCbnKC.js → DateTime-BUYojCOY.js} +1 -1
- package/dist/{DateTime-BBHPa2zE.js → DateTime-IlsYZL-l.js} +6 -6
- package/dist/{DateTimeRange-C4-4mq77.js → DateTimeRange-D9K4am0p.js} +4 -4
- package/dist/{Daterange-CPVrg_r8.js → Daterange-CX0Klog4.js} +7 -7
- package/dist/{Decimal-Bv5A7-xm.js → Decimal-CNhxJUZg.js} +1 -1
- package/dist/{Delete-lSTmw_3a.js → Delete-DFl8Tr27.js} +13 -13
- package/dist/{Detail-Dfvzkkw6.js → Detail-BXkTd6Wh.js} +5 -5
- package/dist/{Dictionary-thXsHbOo.js → Dictionary-DmarNVsi.js} +10 -10
- package/dist/{Email-BDg7Qf9f.js → Email-BBjDCCOK.js} +4 -4
- package/dist/{File-TEaB_uIR.js → File-CAnAcqJX.js} +37 -37
- package/dist/{Image-BqCjtyvc.js → Image-pufFvop2.js} +1 -1
- package/dist/{Index-ld-kC6ij.js → Index-BqjKndKz.js} +7 -7
- package/dist/{Index-BQKjFLbE.js → Index-C4D5pwwu.js} +24 -24
- package/dist/Index-CD_KS2lO.js +4 -0
- package/dist/Index-CEh3KlPE.js +4 -0
- package/dist/{Index-Cn5Qex6Q.js → Index-CseSUp2Z.js} +1 -1
- package/dist/{Index-BuhrNqZE.js → Index-DJvB04cS.js} +1 -1
- package/dist/{Index-DapcfeaN.js → Index-RZT6JXBO.js} +1 -1
- package/dist/Index-XmvSiC1h.js +4 -0
- package/dist/{Index.vue_vue_type_script_setup_true_lang-zlsTcQ-k.js → Index.vue_vue_type_script_setup_true_lang-C8ZEc4nU.js} +3 -3
- package/dist/{Index.vue_vue_type_script_setup_true_lang-BKPwS2s9.js → Index.vue_vue_type_script_setup_true_lang-DtNDN8Ex.js} +1 -1
- package/dist/{Index.vue_vue_type_style_index_0_lang-CqjK1AVM.js → Index.vue_vue_type_style_index_0_lang-T12lwRy6.js} +11 -11
- package/dist/{Install-BQ_rGQFg.js → Install-DWWpscrR.js} +3 -3
- package/dist/{Int-C33TxFtW.js → Int-Bi3P8XeV.js} +6 -6
- package/dist/{Int-DRcbQElJ.js → Int-Bn2p1DqA.js} +8 -8
- package/dist/{List-CSkx_cTr.js → List-CeQRwXop.js} +17 -17
- package/dist/{Maintaince-D0JZ-9mL.js → Maintaince-CVMjhqSO.js} +1 -1
- package/dist/{Markdown-DjbgXlE6.js → Markdown-d8PCfAFf.js} +1 -1
- package/dist/{Month-C_sIkUIo.js → Month-BfUSQ3xa.js} +6 -6
- package/dist/{Month-68Hi85T_.js → Month-COEkKDL_.js} +1 -1
- package/dist/{Month-unY9f1-N.js → Month-DQKfNQzN.js} +7 -7
- package/dist/{Normal-BAoQvNjn.js → Normal-BD7sNr-b.js} +49 -49
- package/dist/{Paging-BNVKLCCy.js → Paging-d_-VefNv.js} +6 -6
- package/dist/{PagingHeader-CkESvHSg.js → PagingHeader-CznmI0kr.js} +18 -18
- package/dist/{PagingRow-DrMTqBj9.js → PagingRow-BJ-VLpfV.js} +7 -7
- package/dist/{QueryApi-D410WxrU.js → QueryApi-Cdniq3mZ.js} +1 -1
- package/dist/{Racebar-BhPT9MdU.js → Racebar-BkwhD-rw.js} +16 -16
- package/dist/{Radio-D1AcW1pn.js → Radio-CS12bajp.js} +1 -1
- package/dist/{Register-jgIuWNwI.js → Register-l_X4fDPP.js} +23 -23
- package/dist/{RichText-BgLtVFup.js → RichText-9MwwjuZi.js} +8 -8
- package/dist/{SearchFooter-CAWhmjR2.js → SearchFooter-C8N9ku25.js} +1 -1
- package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-ClaSxScx.js → SearchFooter.vue_vue_type_style_index_0_lang-6WvYHIn1.js} +1 -1
- package/dist/{SearchForm--aMZLLx4.js → SearchForm-DX0mN20A.js} +1 -1
- package/dist/{SearchForm.vue_vue_type_style_index_0_lang-_rdBTvY_.js → SearchForm.vue_vue_type_style_index_0_lang-23AxHYiw.js} +19 -19
- package/dist/{Select-DU_6d_Ob.js → Select-CQE5kY-n.js} +14 -14
- package/dist/{Select-CVnXZcZi.js → Select-DYjvtHyi.js} +1 -1
- package/dist/{Select-JFUTkpkm.js → Select-DaEqum3a.js} +17 -17
- package/dist/{Single-B0g3q0uZ.js → Single-DErvX9y_.js} +81 -81
- package/dist/{Statistic-XTBdaF7E.js → Statistic-CQxXdu-V.js} +31 -31
- package/dist/{Stock-CWU3inQY.js → Stock-CsoHCwV6.js} +1 -1
- package/dist/{Stock-nsqld-XR.js → Stock-DXLdfC3r.js} +1 -1
- package/dist/{Stock.vue_vue_type_style_index_0_lang-B7HB-me6.js → Stock.vue_vue_type_style_index_0_lang-B-b3Lj_h.js} +6 -6
- package/dist/{Switch-BqHPuFzA.js → Switch-BCgZXfWo.js} +1 -1
- package/dist/{Table-xRltYWjc.js → Table-CAVxyUTD.js} +55 -55
- package/dist/{Table-l0km2rz7.js → Table-DkJYgLFt.js} +52 -52
- package/dist/{Text-DOTMUPPm.js → Text-Cn0cOTli.js} +7 -7
- package/dist/{Text-alXcFJHa.js → Text-Dk5tNNZo.js} +6 -6
- package/dist/Text-DvVWvaMO.js +4 -0
- package/dist/{Text.vue_vue_type_style_index_0_lang-1wF_kb3u.js → Text.vue_vue_type_style_index_0_lang-I01JEYAx.js} +2 -2
- package/dist/{TextLink-BUpIHKqh.js → TextLink-D3nvnLHn.js} +3 -3
- package/dist/{Textarea-IFX_g2SZ.js → Textarea-Pc4TfoC3.js} +1 -1
- package/dist/{Time-CHadluUL.js → Time-CToG3p0T.js} +6 -6
- package/dist/{Timeline-B7xPAwXh.js → Timeline-DphvhX0U.js} +2 -2
- package/dist/{Tree-qvL1DgaM.js → Tree-01Sb-9zi.js} +54 -54
- package/dist/{Tree-DoXqyUpn.js → Tree-CH1RoUqu.js} +13 -13
- package/dist/{TreeNode-CUSAKhTp.js → TreeNode-C54d29V-.js} +1 -1
- package/dist/{Update-eETfPmHB.js → Update-Cy1lFPVv.js} +5 -5
- package/dist/{UpdateChild-DbbXDvCz.js → UpdateChild-DV_8KV9G.js} +6 -6
- package/dist/{Upload-DMfKIPRu.js → Upload-BalaO4wz.js} +48 -48
- package/dist/{Upload-CAUGBT7A.js → Upload-DQVaPUdG.js} +13 -13
- package/dist/{UploadApi-FEbSWkVM.js → UploadApi-Cfm5DM_x.js} +1 -1
- package/dist/{Year-CnHHib5-.js → Year-BFZPXXq0.js} +1 -1
- package/dist/{Year-CAxdMb2V.js → Year-Swm3VSzj.js} +7 -7
- package/dist/{main-DArl7gFs.js → main-BYJVoHlf.js} +3883 -4263
- package/dist/main.js +26 -27
- package/package.json +1 -1
- package/dist/Code-C8zrvj8s.js +0 -4
- package/dist/Compare-CGW1IWLh.js +0 -56
- package/dist/Compare-DjrTKaz2.js +0 -26
- 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
@@ -1,9 +1,9 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import {
|
3
|
-
const
|
1
|
+
import { defineComponent as E, toRefs as K, ref as d, computed as R, resolveComponent as c, openBlock as s, createBlock as f, unref as t, withKeys as S, withModifiers as L, isRef as M, withCtx as p, createElementBlock as h, Fragment as P, renderList as F, createElementVNode as U, toDisplayString as _, createCommentVNode as j } from "vue";
|
2
|
+
import { P as q, N as z, L as A } from "./main-BYJVoHlf.js";
|
3
|
+
const G = { class: "option-text" }, H = {
|
4
4
|
key: 0,
|
5
5
|
class: "option-suffix"
|
6
|
-
}, T = /* @__PURE__ */
|
6
|
+
}, T = /* @__PURE__ */ E({
|
7
7
|
__name: "Select",
|
8
8
|
props: {
|
9
9
|
schema: {},
|
@@ -14,22 +14,22 @@ const H = { class: "option-text" }, I = {
|
|
14
14
|
},
|
15
15
|
emits: ["change", "submit", "update:modelValue"],
|
16
16
|
setup(v, { emit: x }) {
|
17
|
-
let r = x, b = v, { schema:
|
17
|
+
let r = x, b = v, { schema: I, table: g, field: a, searchData: y, modelValue: V } = K(b), k = d(!1), i = d(), m = d(a.value.control.data.data), C = () => {
|
18
18
|
r("submit");
|
19
19
|
}, w = () => {
|
20
20
|
}, B = (l) => {
|
21
|
-
i.value = l,
|
22
|
-
},
|
21
|
+
i.value = l, N();
|
22
|
+
}, N = () => {
|
23
23
|
let l = { text: i.value, conditions: [] };
|
24
24
|
a.value.control.data.conditions.forEach((o) => {
|
25
25
|
let u = y.value[o.table][o.field];
|
26
26
|
l.conditions.push({ name: o.name, value: u });
|
27
|
-
}),
|
27
|
+
}), A.post(a.value.control.data.route, l).then(({ data: o }) => {
|
28
28
|
m.value = o;
|
29
29
|
}).finally(() => {
|
30
30
|
k.value = !1;
|
31
31
|
});
|
32
|
-
}, n =
|
32
|
+
}, n = R({
|
33
33
|
get() {
|
34
34
|
return V.value;
|
35
35
|
},
|
@@ -38,8 +38,8 @@ const H = { class: "option-text" }, I = {
|
|
38
38
|
}
|
39
39
|
});
|
40
40
|
return (l, o) => {
|
41
|
-
const u = c("el-option"),
|
42
|
-
return s(), f(
|
41
|
+
const u = c("el-option"), D = c("el-select");
|
42
|
+
return s(), f(D, {
|
43
43
|
ref: "selectRef",
|
44
44
|
filterable: "",
|
45
45
|
remote: "",
|
@@ -47,25 +47,25 @@ const H = { class: "option-text" }, I = {
|
|
47
47
|
clearable: "",
|
48
48
|
"default-first-option": "",
|
49
49
|
"remote-show-suffix": "",
|
50
|
-
placeholder: t(
|
50
|
+
placeholder: t(q)("common.please_choose") + t(z)(t(g).name, t(a).name),
|
51
51
|
multiple: t(a).control.multiple,
|
52
52
|
"loading-text": "加载中",
|
53
53
|
"remote-method": t(B),
|
54
54
|
disabled: t(a).control.readonly,
|
55
|
-
onKeyup:
|
55
|
+
onKeyup: S(L(t(C), ["alt"]), ["enter", "native"]),
|
56
56
|
onChange: t(w),
|
57
57
|
modelValue: t(n),
|
58
|
-
"onUpdate:modelValue": o[0] || (o[0] = (e) =>
|
58
|
+
"onUpdate:modelValue": o[0] || (o[0] = (e) => M(n) ? n.value = e : n = e)
|
59
59
|
}, {
|
60
60
|
default: p(() => [
|
61
|
-
(s(!0), h(
|
61
|
+
(s(!0), h(P, null, F(t(m), (e, J) => (s(), f(u, {
|
62
62
|
label: e.text + (e.suffix ? "(" + e.suffix + ")" : ""),
|
63
63
|
value: e.value,
|
64
64
|
key: e.value
|
65
65
|
}, {
|
66
66
|
default: p(() => [
|
67
|
-
|
68
|
-
e.suffix ? (s(), h("span",
|
67
|
+
U("span", G, _(e.text), 1),
|
68
|
+
e.suffix ? (s(), h("span", H, "(" + _(e.suffix) + ")", 1)) : j("", !0)
|
69
69
|
]),
|
70
70
|
_: 2
|
71
71
|
}, 1032, ["label", "value"]))), 128))
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import {
|
3
|
-
import { _ as
|
4
|
-
import { _ as ne } from "./Index.vue_vue_type_script_setup_true_lang-
|
5
|
-
const
|
6
|
-
|
7
|
-
], Ye = /* @__PURE__ */ m("i", { class: "fa fa-question-circle icon-question" }, null, -1), Ze = { class: "el-drawer__title" }, el = ["href"], rl = /* @__PURE__ */
|
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 Ne, normalizeStyle as Pe, createTextVNode as te, nextTick as ae } from "vue";
|
2
|
+
import { e as Ke, z as qe, P as oe, N as Fe, K as q, a as Me, t as Oe, L as je, b as ue, c as Ae, G as Ge, s as re } from "./main-BYJVoHlf.js";
|
3
|
+
import { _ as He } from "./Index.vue_vue_type_style_index_0_lang-T12lwRy6.js";
|
4
|
+
import { _ as ne } from "./Index.vue_vue_type_script_setup_true_lang-C8ZEc4nU.js";
|
5
|
+
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
|
+
We
|
7
|
+
], Ye = /* @__PURE__ */ m("i", { class: "fa fa-question-circle icon-question" }, null, -1), Ze = { class: "el-drawer__title" }, el = ["href"], rl = /* @__PURE__ */ $e({
|
8
8
|
__name: "Single",
|
9
9
|
props: {
|
10
10
|
base: {},
|
@@ -14,18 +14,18 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
|
|
14
14
|
},
|
15
15
|
emits: ["navigate", "load", "succeed", "close"],
|
16
16
|
setup(se, { expose: ie, emit: de }) {
|
17
|
-
let B = de, me = se, { url:
|
18
|
-
let t =
|
17
|
+
let B = de, me = se, { url: ce, base: A, route: V } = Ue(me), p = u(), b = u(), c = u(), r = u(), y = u(), D = u(), v = u({ table: null, layout: null }), w = u(), N = u([]), ve = u(), E = u(), R = u(), F = u(), C = u(), P = u(), i = u({ page: null, url: null, visible: !1, appendToBody: !1 }), k = u(!1), M = u(), S = u(), fe = (l) => !0, pe = (l) => {
|
18
|
+
let t = q.getPath(ce.value), a = q.getPath(l);
|
19
19
|
return t != a;
|
20
20
|
}, be = () => {
|
21
|
-
|
21
|
+
ze();
|
22
22
|
}, ye = (l, t) => {
|
23
|
-
|
23
|
+
G("copy", l, t);
|
24
24
|
}, _e = (l, t) => {
|
25
|
-
|
25
|
+
G("update", l, t);
|
26
26
|
}, he = () => {
|
27
27
|
i.value.visible = !1;
|
28
|
-
},
|
28
|
+
}, G = (l, t, a) => {
|
29
29
|
let n = ge(l, t);
|
30
30
|
a.ctrlKey ? B("navigate", n) : (i.value.appendToBody = a.altKey, i.value.page = l, i.value.url = n, i.value.visible = !0);
|
31
31
|
}, ge = (l, t = null) => {
|
@@ -39,20 +39,20 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
|
|
39
39
|
(a.ctrlKey || k.value) && (M.value = l, S.value = Oe.clone(t), k.value = !0, S.value.fields.forEach((n) => {
|
40
40
|
n.control.textualize = !1;
|
41
41
|
}));
|
42
|
-
},
|
43
|
-
i.value.visible = !1, B("succeed",
|
42
|
+
}, H = (l) => {
|
43
|
+
i.value.visible = !1, B("succeed", W.value, l);
|
44
44
|
}, Ce = () => {
|
45
45
|
B("close");
|
46
|
-
},
|
47
|
-
},
|
46
|
+
}, I = (l, t, a, n, T) => {
|
47
|
+
}, J = (l, t) => {
|
48
48
|
if (t) {
|
49
49
|
D.value = y.value.layouts.find((a) => a.type == l);
|
50
50
|
return;
|
51
51
|
}
|
52
|
-
|
52
|
+
v.value.layout = v.value.table.layouts.find((a) => a.type == l);
|
53
53
|
}, ke = (l) => {
|
54
54
|
let t = r.value.find((a) => a.name == l);
|
55
|
-
|
55
|
+
v.value.table = t, v.value.layout = t.layouts[0];
|
56
56
|
}, xe = (l) => {
|
57
57
|
let t = Object.keys(l)[0], a = t.substring(1, t.indexOf("]"));
|
58
58
|
r.value.find((T) => T.name == a).main || (w.value = a);
|
@@ -61,21 +61,21 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
|
|
61
61
|
E.value.validate((n, T) => {
|
62
62
|
if (!n)
|
63
63
|
return xe(T), a && a(!1), !1;
|
64
|
-
let
|
65
|
-
t && t(
|
66
|
-
E.value.clearValidate(), ue.success(
|
67
|
-
}).catch(({ code:
|
68
|
-
if (
|
64
|
+
let $ = p.value.type == "Update" ? b.value.update.route : b.value.insert.route;
|
65
|
+
t && t($, c.value), je.post($, c.value).then(({ data: U, message: z }) => {
|
66
|
+
E.value.clearValidate(), ue.success(z), H(c.value);
|
67
|
+
}).catch(({ code: U, data: z, message: X }) => {
|
68
|
+
if (U != "ValidateError")
|
69
69
|
return;
|
70
|
-
|
71
|
-
let
|
72
|
-
if (
|
73
|
-
let _ = r.value.find((o) => o.name ==
|
70
|
+
N.value = z;
|
71
|
+
let K = z.find((_) => _.table !== y.value.name);
|
72
|
+
if (K) {
|
73
|
+
let _ = r.value.find((o) => o.name == K.table);
|
74
74
|
_ && (w.value = _.name);
|
75
75
|
}
|
76
76
|
ae(() => {
|
77
77
|
E.value.clearValidate(), E.value.validate((_, o) => {
|
78
|
-
_ || (a && a(!1),
|
78
|
+
_ || (a && a(!1), N.value = []);
|
79
79
|
});
|
80
80
|
});
|
81
81
|
}).finally(() => {
|
@@ -83,29 +83,29 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
|
|
83
83
|
});
|
84
84
|
});
|
85
85
|
});
|
86
|
-
},
|
86
|
+
}, Q = (l) => {
|
87
87
|
var a, n;
|
88
|
-
let t =
|
89
|
-
|
88
|
+
let t = Ae(l.module.type, l.module.name);
|
89
|
+
Ge.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
90
|
}, Se = (l) => {
|
91
91
|
R.value && R.value.resize && R.value.resize(l), C.value && C.value.resize && C.value.resize(l);
|
92
92
|
}, Te = (l, t) => {
|
93
93
|
if (l == "ctrlS") {
|
94
94
|
if (p.value.type == "Detail") {
|
95
|
-
if (!
|
95
|
+
if (!P.value || !P.value.keyboard)
|
96
96
|
return !1;
|
97
|
-
|
97
|
+
P.value.keyboard(l, t);
|
98
98
|
return;
|
99
99
|
}
|
100
100
|
O(t);
|
101
101
|
}
|
102
|
-
},
|
103
|
-
let l =
|
102
|
+
}, ze = () => {
|
103
|
+
let l = q.getUrl(V.value.path, V.value.query);
|
104
104
|
B("load", l, !1, (t) => {
|
105
105
|
});
|
106
106
|
};
|
107
107
|
(() => {
|
108
|
-
|
108
|
+
Q(A.value.data);
|
109
109
|
})();
|
110
110
|
let O = (l) => {
|
111
111
|
if (!F.value.submit) {
|
@@ -113,26 +113,26 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
|
|
113
113
|
return;
|
114
114
|
}
|
115
115
|
F.value.submit(l);
|
116
|
-
},
|
116
|
+
}, Ve = Y(() => {
|
117
117
|
let l = `/${y.value.name}/update`, t = p.value.type == "Detail" ? "detail" : "update";
|
118
|
-
return
|
119
|
-
}),
|
120
|
-
return Le(() =>
|
121
|
-
|
118
|
+
return Ke.getComponent(l, "partial", t);
|
119
|
+
}), W = Y(() => p.value.type.toLowerCase());
|
120
|
+
return Le(() => A.value, (l) => {
|
121
|
+
Q(l.data), R.value.update && R.value.update(l.data), C.value && C.value.update && C.value.update(l.data);
|
122
122
|
}), 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(),
|
123
|
+
const a = f("el-tooltip"), n = f("el-tab-pane"), T = f("el-tabs"), $ = f("el-form"), U = f("el-scrollbar"), z = f("el-popover"), X = f("el-form-item"), K = f("el-card"), _ = f("el-drawer");
|
124
|
+
return d(), j("div", {
|
125
125
|
ref_key: "singleRef",
|
126
|
-
ref:
|
127
|
-
class: Be(["ha-single-page", { [e(
|
126
|
+
ref: ve,
|
127
|
+
class: Be(["ha-single-page", { [e(W) + "-page"]: !0, editing: e(k) }])
|
128
128
|
}, [
|
129
|
-
m("div",
|
130
|
-
h(
|
129
|
+
m("div", Ie, [
|
130
|
+
h(U, { class: "main-scroller" }, {
|
131
131
|
default: s(() => [
|
132
|
-
h(
|
132
|
+
h($, {
|
133
133
|
ref_key: "formRef",
|
134
134
|
ref: E,
|
135
|
-
model: e(
|
135
|
+
model: e(c),
|
136
136
|
onSubmit: t[3] || (t[3] = De(() => {
|
137
137
|
}, ["prevent"]))
|
138
138
|
}, {
|
@@ -145,11 +145,11 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
|
|
145
145
|
table: e(y),
|
146
146
|
layout: e(D),
|
147
147
|
next: e(b),
|
148
|
-
set: e(
|
149
|
-
route: e(
|
150
|
-
"validate-errors": e(
|
151
|
-
onChange: e(
|
152
|
-
onLayoutChange: t[0] || (t[0] = (o) => e(
|
148
|
+
set: e(c),
|
149
|
+
route: e(V),
|
150
|
+
"validate-errors": e(N),
|
151
|
+
onChange: e(I),
|
152
|
+
onLayoutChange: t[0] || (t[0] = (o) => e(J)(o, !0)),
|
153
153
|
onSubmit: e(O)
|
154
154
|
}, null, 8, ["module", "schema", "table", "layout", "next", "set", "route", "validate-errors", "onChange", "onSubmit"]),
|
155
155
|
e(r).length > 1 ? (d(), g(T, {
|
@@ -160,7 +160,7 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
|
|
160
160
|
"onUpdate:modelValue": t[1] || (t[1] = (o) => Z(w) ? w.value = o : w = o)
|
161
161
|
}, {
|
162
162
|
default: s(() => [
|
163
|
-
(d(!0),
|
163
|
+
(d(!0), j(ee, null, le(e(r).filter((o, Ee) => Ee > 0), (o) => (d(), g(n, {
|
164
164
|
name: o.name,
|
165
165
|
key: o.name
|
166
166
|
}, {
|
@@ -171,7 +171,7 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
|
|
171
171
|
disabled: !o.tooltip
|
172
172
|
}, {
|
173
173
|
default: s(() => [
|
174
|
-
m("div", null, x(e(
|
174
|
+
m("div", null, x(e(qe)(o.table)), 1)
|
175
175
|
]),
|
176
176
|
_: 2
|
177
177
|
}, 1032, ["content", "disabled"])
|
@@ -181,21 +181,21 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
|
|
181
181
|
]),
|
182
182
|
_: 1
|
183
183
|
}, 8, ["onTabChange", "modelValue"])) : L("", !0),
|
184
|
-
e(
|
184
|
+
e(v).table ? (d(), g(ne, {
|
185
185
|
key: 1,
|
186
186
|
ref_key: "childRef",
|
187
187
|
ref: C,
|
188
188
|
module: e(p),
|
189
189
|
schema: e(r),
|
190
|
-
table: e(
|
191
|
-
layout: e(
|
190
|
+
table: e(v).table,
|
191
|
+
layout: e(v).layout,
|
192
192
|
next: e(b),
|
193
|
-
set: e(
|
194
|
-
route: e(
|
195
|
-
"validate-errors": e(
|
193
|
+
set: e(c),
|
194
|
+
route: e(V),
|
195
|
+
"validate-errors": e(N),
|
196
196
|
onRowEdit: e(we),
|
197
|
-
onChange: e(
|
198
|
-
onLayoutChange: t[2] || (t[2] = (o) => e(
|
197
|
+
onChange: e(I),
|
198
|
+
onLayoutChange: t[2] || (t[2] = (o) => e(J)(o, !1)),
|
199
199
|
onSubmit: e(O)
|
200
200
|
}, null, 8, ["module", "schema", "table", "layout", "next", "set", "route", "validate-errors", "onRowEdit", "onChange", "onSubmit"])) : L("", !0)
|
201
201
|
]),
|
@@ -204,7 +204,7 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
|
|
204
204
|
]),
|
205
205
|
_: 1
|
206
206
|
}),
|
207
|
-
(d(), g(
|
207
|
+
(d(), g(Ne(e(Ve)), {
|
208
208
|
ref_key: "updateRef",
|
209
209
|
ref: F,
|
210
210
|
class: "main-footer",
|
@@ -212,21 +212,21 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
|
|
212
212
|
table: e(y),
|
213
213
|
layout: e(D),
|
214
214
|
next: e(b),
|
215
|
-
set: e(
|
216
|
-
route: e(
|
215
|
+
set: e(c),
|
216
|
+
route: e(V),
|
217
217
|
onCopy: e(ye),
|
218
218
|
onEdit: e(_e),
|
219
219
|
onSubmit: e(Re),
|
220
220
|
onClose: e(Ce)
|
221
221
|
}, null, 40, ["schema", "table", "layout", "next", "set", "route", "onCopy", "onEdit", "onSubmit", "onClose"]))
|
222
222
|
]),
|
223
|
-
e(k) ? (d(), g(
|
223
|
+
e(k) ? (d(), g(K, {
|
224
224
|
key: 0,
|
225
225
|
class: "side-form"
|
226
226
|
}, {
|
227
227
|
header: s(() => [
|
228
|
-
m("div",
|
229
|
-
m("div",
|
228
|
+
m("div", Je, [
|
229
|
+
m("div", Qe, x(e(oe)("common.modify")) + " " + x(e(M)[e(S).show[0].name]), 1),
|
230
230
|
m("div", {
|
231
231
|
class: "row-close",
|
232
232
|
onClick: t[4] || (t[4] = (o) => Z(k) ? k.value = !1 : k = !1)
|
@@ -234,20 +234,20 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
|
|
234
234
|
])
|
235
235
|
]),
|
236
236
|
default: s(() => [
|
237
|
-
h(
|
237
|
+
h(U, null, {
|
238
238
|
default: s(() => [
|
239
|
-
h(
|
239
|
+
h($, {
|
240
240
|
size: "small",
|
241
241
|
"label-width": "80px"
|
242
242
|
}, {
|
243
243
|
default: s(() => [
|
244
|
-
(d(!0),
|
245
|
-
style:
|
244
|
+
(d(!0), j(ee, null, le(e(S).show, (o) => (d(), g(X, {
|
245
|
+
style: Pe(o.control.height ? `height: ${o.control.height}px;` : ""),
|
246
246
|
rules: o.rules
|
247
247
|
}, {
|
248
248
|
label: s(() => [
|
249
249
|
te(x(e(Fe)(e(S).name, o.name)) + " ", 1),
|
250
|
-
o.control.tooltip ? (d(), g(
|
250
|
+
o.control.tooltip ? (d(), g(z, {
|
251
251
|
key: 0,
|
252
252
|
trigger: "hover",
|
253
253
|
placement: "top",
|
@@ -264,11 +264,11 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
|
|
264
264
|
}, 1032, ["title"])) : L("", !0)
|
265
265
|
]),
|
266
266
|
default: s(() => [
|
267
|
-
h(
|
267
|
+
h(He, {
|
268
268
|
schema: e(r),
|
269
269
|
table: e(S),
|
270
270
|
field: o,
|
271
|
-
set: e(
|
271
|
+
set: e(c),
|
272
272
|
row: e(M)
|
273
273
|
}, null, 8, ["schema", "table", "field", "set", "row"])
|
274
274
|
]),
|
@@ -296,16 +296,16 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
|
|
296
296
|
te(x(e(b)[e(i).page].title) + " ", 1),
|
297
297
|
m("a", {
|
298
298
|
class: "drawer-copy",
|
299
|
-
href: `${e(
|
299
|
+
href: `${e(q).getToUrl(e(i).url)}`
|
300
300
|
}, x(e(oe)("common.link")), 9, el)
|
301
301
|
])
|
302
302
|
]),
|
303
303
|
default: s(() => [
|
304
304
|
h(e(Me), {
|
305
305
|
ref_key: "pageRef",
|
306
|
-
ref:
|
306
|
+
ref: P,
|
307
307
|
url: e(i).url,
|
308
|
-
onSucceed: e(
|
308
|
+
onSucceed: e(H),
|
309
309
|
onClose: e(he)
|
310
310
|
}, null, 8, ["url", "onSucceed", "onClose"])
|
311
311
|
]),
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import { s as
|
3
|
-
import { _ as Z } from "./SearchForm.vue_vue_type_style_index_0_lang-
|
4
|
-
const re = /* @__PURE__ */
|
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 s, createElementVNode as J, normalizeStyle as K, nextTick as y } from "vue";
|
2
|
+
import { s as P, y as Q, n as U, Y as R, b as W, v as X } from "./main-BYJVoHlf.js";
|
3
|
+
import { _ as Z } from "./SearchForm.vue_vue_type_style_index_0_lang-23AxHYiw.js";
|
4
|
+
const re = /* @__PURE__ */ j({
|
5
5
|
__name: "Statistic",
|
6
6
|
props: {
|
7
7
|
searchData: {},
|
@@ -15,16 +15,16 @@ const re = /* @__PURE__ */ $({
|
|
15
15
|
},
|
16
16
|
emits: ["search"],
|
17
17
|
setup(C, { expose: A, emit: F }) {
|
18
|
-
let z = F, H = C, { route: B, module: E, schema:
|
18
|
+
let z = F, H = C, { route: B, module: E, schema: x, table: m, layout: l, next: ee, set: u, searchData: g } = q(H), i = null, p = null, v = n(), d = n(), b = n(), S = n(), N = (t) => {
|
19
19
|
T("search");
|
20
20
|
}, T = (t, e = null) => {
|
21
21
|
z(t, (r) => {
|
22
|
-
|
22
|
+
y(() => {
|
23
23
|
f(), e && e(r);
|
24
24
|
});
|
25
25
|
});
|
26
26
|
}, f = () => {
|
27
|
-
let t =
|
27
|
+
let t = U.distinct(u.value[l.value.table], (a) => a[l.value.date]), e = {
|
28
28
|
title: { text: E.value.title, left: "center", textStyle: { color: "#777" } },
|
29
29
|
//标题
|
30
30
|
tooltip: { trigger: "axis" },
|
@@ -59,10 +59,10 @@ const re = /* @__PURE__ */ $({
|
|
59
59
|
series: []
|
60
60
|
};
|
61
61
|
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 ||
|
62
|
+
let r = l.value.fields.find((a) => a.group && a.name != l.value.date), _ = m.value.fields.find((a) => a.name == r.name).control.data.data;
|
63
|
+
for (let a = 0; a < _.length; a++) {
|
64
|
+
let o = _[a];
|
65
|
+
o.color || W.error("颜色字段不能为空");
|
66
66
|
let c = {
|
67
67
|
name: o.text,
|
68
68
|
type: "line",
|
@@ -103,49 +103,49 @@ const re = /* @__PURE__ */ $({
|
|
103
103
|
global: !0
|
104
104
|
});
|
105
105
|
for (let h = 0; h < t.length; h++) {
|
106
|
-
let
|
107
|
-
|
106
|
+
let $ = t[h], w = u.value[l.value.table].find((L) => L[r.name] == o.value && L[l.value.date] == $);
|
107
|
+
w == null ? c.data.push(null) : c.data.push(w[l.value.value]);
|
108
108
|
}
|
109
109
|
e.series.push(c), e.legend.data.push(o.text);
|
110
110
|
}
|
111
|
-
e.xAxis.data.push(...t),
|
111
|
+
e.xAxis.data.push(...t), i.setOption(e);
|
112
112
|
}, k = () => {
|
113
113
|
var r;
|
114
|
-
let t =
|
114
|
+
let t = X.getHeight([(r = d.value) == null ? void 0 : r.$el]), e = S.value.getBoundingClientRect();
|
115
115
|
v.value = e.height - t - 10 - 1;
|
116
116
|
}, V = (t) => {
|
117
|
-
d.value.resize(t),
|
118
|
-
k(),
|
117
|
+
d.value.resize(t), y(() => {
|
118
|
+
k(), i == null || i.resize();
|
119
119
|
});
|
120
|
-
},
|
121
|
-
k(),
|
122
|
-
|
120
|
+
}, D = () => {
|
121
|
+
k(), y(() => {
|
122
|
+
i = p.init(b.value), f();
|
123
123
|
});
|
124
124
|
};
|
125
125
|
return G(async () => {
|
126
|
-
g.value =
|
126
|
+
g.value = P.getConditionForm(x.value, B.value.query.condition), p = await Q.getECharts(), D();
|
127
127
|
}), M(() => l.value, (t, e) => {
|
128
128
|
f();
|
129
|
-
}), A({ resize: V }), (t, e) => (O(),
|
129
|
+
}), A({ resize: V }), (t, e) => (O(), Y("div", {
|
130
130
|
ref_key: "statisticRef",
|
131
131
|
ref: S,
|
132
132
|
class: "ha-statistic-layout"
|
133
133
|
}, [
|
134
|
-
|
134
|
+
I(Z, {
|
135
135
|
ref_key: "searchRef",
|
136
136
|
ref: d,
|
137
|
-
schema:
|
138
|
-
table:
|
139
|
-
layout:
|
140
|
-
set:
|
141
|
-
"search-data":
|
142
|
-
onChange:
|
137
|
+
schema: s(x),
|
138
|
+
table: s(m),
|
139
|
+
layout: s(l),
|
140
|
+
set: s(u),
|
141
|
+
"search-data": s(g),
|
142
|
+
onChange: s(N)
|
143
143
|
}, null, 8, ["schema", "table", "layout", "set", "search-data", "onChange"]),
|
144
|
-
|
144
|
+
J("div", {
|
145
145
|
ref_key: "chartRef",
|
146
146
|
ref: b,
|
147
147
|
class: "chart",
|
148
|
-
style:
|
148
|
+
style: K({ height: s(v) + "px" })
|
149
149
|
}, null, 4)
|
150
150
|
], 512));
|
151
151
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as c, toRefs as m, openBlock as u, createBlock as p, unref as e } from "vue";
|
2
|
-
import { _ } from "./Stock.vue_vue_type_style_index_0_lang-
|
2
|
+
import { _ } from "./Stock.vue_vue_type_style_index_0_lang-B-b3Lj_h.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 { y as O, f as K, n as N, Y as S } from "./main-BYJVoHlf.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, p = "#04aa4e", x = "#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];
|
@@ -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-DmarNVsi.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),
|