halo-pc 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{Article-7pMF1N-k.js → Article-BbJTCOkX.js} +66 -62
- package/dist/{Autocomplete-CEjjKXwo.js → Autocomplete-A0m1RW7z.js} +1 -1
- package/dist/Autocomplete-C3d_yunJ.js +52 -0
- package/dist/Autocomplete-H0_xgWsN.js +53 -0
- package/dist/{CSharp-DatSqpip.js → CSharp-Bwl97exE.js} +1 -1
- package/dist/{Calender-B1HoFiQg.js → Calender-C3vbVYIN.js} +1 -1
- package/dist/Callback-oU2ap8v9.js +24 -0
- package/dist/Cascader-ClSabtOx.js +45 -0
- package/dist/Cascader-DRErYyH6.js +84 -0
- package/dist/{Checkbox-B6IkMrWB.js → Checkbox-BJS0a1NT.js} +1 -1
- package/dist/{Code-SZuIImtp.js → Code-9I77CMRV.js} +1 -1
- package/dist/Code-B2DrYXDa.js +58 -0
- package/dist/Code-BgqGTky1.js +40 -0
- package/dist/Code-Cv1pm18C.js +4 -0
- package/dist/Code.vue_vue_type_style_index_0_lang-IHZepbsi.js +63 -0
- package/dist/Column-Dgs0SdWX.js +71 -0
- package/dist/Comment-Cy6lpmqk.js +102 -0
- package/dist/Compare-5cTiHEdo.js +30 -0
- package/dist/Compare-CWeuLw9n.js +60 -0
- package/dist/Copy-C6WEtRhC.js +47 -0
- package/dist/Custom-QDHQJoxC.js +53 -0
- package/dist/{DataExport-I9iG4oEo.js → DataExport-BHh7NvbT.js} +1 -1
- package/dist/{DataExport.vue_vue_type_script_setup_true_lang-BgKetUGv.js → DataExport.vue_vue_type_script_setup_true_lang-C9t5j7Gi.js} +37 -33
- package/dist/{DataImport-2KtOy-of.js → DataImport-CtBsCyNb.js} +1 -1
- package/dist/{DataImport.vue_vue_type_script_setup_true_lang-DgzKdC2g.js → DataImport.vue_vue_type_script_setup_true_lang-bI0HP38b.js} +59 -55
- package/dist/{Date-PERpDDy_.js → Date-IV1FwqTW.js} +1 -1
- package/dist/{DateRange-BaxHMjcx.js → DateRange-IWmDLSuy.js} +11 -7
- package/dist/{DateTime-B7gHENiu.js → DateTime-Di6sr-tq.js} +1 -1
- package/dist/{DateTimeRange-yI9Y2qgC.js → DateTimeRange-BNUGYgWf.js} +14 -10
- package/dist/{Daterange-DqvBvK-B.js → Daterange-rrlMT4tD.js} +17 -13
- package/dist/{Decimal-AXwMeqBW.js → Decimal-D9TVQqyS.js} +1 -1
- package/dist/Delete-B-k4PTWk.js +59 -0
- package/dist/{Detail-aWACqVnM.js → Detail-HAblGKTY.js} +20 -16
- package/dist/Dictionary-BUmany6B.js +59 -0
- package/dist/{File--NsXL6XX.js → File-MF1QgEQX.js} +45 -41
- package/dist/{Image-CuwfJLKW.js → Image-Dps_vfcZ.js} +1 -1
- package/dist/{Index-BNOFdDjW.js → Index-7cTFT9Xb.js} +19 -15
- package/dist/{Index-CQ9S2R9b.js → Index-C_mfWEwr.js} +1 -1
- package/dist/Index-Cgets8DK.js +4 -0
- package/dist/Index-DGnHsBz4.js +4 -0
- package/dist/{Index-Cewv4-Ik.js → Index-DupYRMRj.js} +45 -41
- package/dist/{Index-DA2wAurY.js → Index-XBFHPLbK.js} +1 -1
- package/dist/{Index-Cj79dCuO.js → Index-hgpg_5ma.js} +1 -1
- package/dist/{Index.vue_vue_type_script_setup_true_lang-D6_VOLX-.js → Index.vue_vue_type_script_setup_true_lang-C1Bw7evJ.js} +15 -11
- package/dist/{Index.vue_vue_type_script_setup_true_lang-DjiARPz7.js → Index.vue_vue_type_script_setup_true_lang-yOf2ubuo.js} +16 -12
- package/dist/{Index.vue_vue_type_style_index_0_lang-DApNHvNX.js → Index.vue_vue_type_style_index_0_lang-DBERwM_v.js} +31 -27
- package/dist/{Install-BWdNbtVx.js → Install-A9qs4Vg-.js} +20 -16
- package/dist/{Int-nmVkFRqG.js → Int-B3L54Gcc.js} +16 -12
- package/dist/List-Om6OdbbR.js +76 -0
- package/dist/Maintaince-CrfEX-5B.js +19 -0
- package/dist/{Markdown-DD6ufwhM.js → Markdown-wcGRlabe.js} +1 -1
- package/dist/{Month-BqbTFGgo.js → Month-C1tCQKvO.js} +1 -1
- package/dist/{Normal-f4HN1ciI.js → Normal-HoU_elKy.js} +51 -47
- package/dist/Paging-C_StoYuZ.js +94 -0
- package/dist/QueryApi-BrYyIwqV.js +18 -0
- package/dist/{Racebar-Bou-XNCm.js → Racebar-BXuP1N9F.js} +27 -23
- package/dist/{Radio-BmikzeCv.js → Radio-D6W9guyM.js} +1 -1
- package/dist/{Register-CgbRZH9W.js → Register-DGhIjRDD.js} +79 -75
- package/dist/{RichText-BeK3zZam.js → RichText-B3Br1uzj.js} +22 -18
- package/dist/{SearchFooter-C4PeAkaR.js → SearchFooter-D3-9GTr1.js} +1 -1
- package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-BaO7vJ-n.js → SearchFooter.vue_vue_type_style_index_0_lang-DP32ZjvQ.js} +1 -1
- package/dist/{SearchForm-C7fZiQaW.js → SearchForm-rWozLa4B.js} +1 -1
- package/dist/{SearchForm.vue_vue_type_style_index_0_lang-BumSLQVy.js → SearchForm.vue_vue_type_style_index_0_lang-F2we6KP-.js} +30 -26
- package/dist/{Select-C1-NVZdG.js → Select-64nQiHNA.js} +21 -17
- package/dist/{Select-DR5fQH0d.js → Select-CAmBUDp3.js} +40 -36
- package/dist/{Select-DlbQvxQu.js → Select-qCdhL7vC.js} +1 -1
- package/dist/{Single-BLRyJKB-.js → Single-Bnrt5Hxb.js} +81 -77
- package/dist/{Statistic-BOtmYiRA.js → Statistic-BTbwlH9l.js} +35 -31
- package/dist/{Stock-Dnwof0R1.js → Stock-Br_02hsI.js} +1 -1
- package/dist/{Stock-BqQ6lM5B.js → Stock-DbExd680.js} +1 -1
- package/dist/{Stock.vue_vue_type_style_index_0_lang-Az2jx3JN.js → Stock.vue_vue_type_style_index_0_lang-MTvhmHlz.js} +26 -22
- package/dist/{Switch-DuMBV0AX.js → Switch-J2GIv4Wa.js} +1 -1
- package/dist/{Table-Be-rPXr_.js → Table-DjBx2UGm.js} +68 -64
- package/dist/{Table-RMVT0hlE.js → Table-X4vTHlpm.js} +52 -48
- package/dist/{Text-DSXRKFPa.js → Text-BFZc81F2.js} +1 -1
- package/dist/Text.vue_vue_type_style_index_0_lang-Cw7QQbFk.js +56 -0
- package/dist/TextLink-C_lFWaZv.js +66 -0
- package/dist/{Textarea-3ypOGE1S.js → Textarea-Dw_qLc3Y.js} +1 -1
- package/dist/{Timeline-CLezCcgQ.js → Timeline-DaaRGmGd.js} +21 -17
- package/dist/Tree-CDD2Nd6q.js +121 -0
- package/dist/{Tree-B6RBRT1y.js → Tree-Cmp10DWw.js} +85 -81
- package/dist/TreeNode-BM8-GyIc.js +38 -0
- package/dist/{Update-Dc3Tdkn0.js → Update-PffbXMXH.js} +17 -13
- package/dist/Upload-F6HXe76H.js +71 -0
- package/dist/Upload-kwwpaDe6.js +147 -0
- package/dist/{UploadApi-Bs507D0w.js → UploadApi-D2W_aGKA.js} +8 -3
- package/dist/{Year-DKxOQNyS.js → Year-Dr5ST0Pk.js} +1 -1
- package/dist/main-B8RC13GR.js +6528 -0
- package/dist/main.js +113 -113
- package/dist/style.css +1 -1
- package/dist/vendor-@monaco-editor-DKC4UNw_.js +258 -0
- package/dist/{vendor-clipboard-DjQPoCBJ.js → vendor-clipboard-BqjesuiY.js} +130 -110
- package/dist/vendor-clone-BPtCWdXG.js +134 -0
- package/dist/vendor-crypto-js-ftX_aBC-.js +4995 -0
- package/dist/vendor-file-saver-CytTIJ-3.js +74 -0
- package/dist/{vendor-intro.js-DwWqhM1v.js → vendor-intro.js-CZkClzQO.js} +1 -1
- package/dist/vendor-moment-h96o7c8I.js +2578 -0
- package/dist/vendor-sprintf-js-BPTdvBYM.js +148 -0
- package/dist/vendor-state-local-CEworIRt.js +131 -0
- package/dist/vendor-underscore-DVTek3G4.js +1070 -0
- package/dist/vendor-underscore.string-BEHfJwHl.js +425 -0
- package/dist/vendor-util-deprecate-DzpNkCzj.js +28 -0
- package/esm/coms/controls/Text.vue.d.ts +1 -1
- package/esm/coms/globals/HaMenu.vue.d.ts +1 -1
- package/esm/coms/globals/HaWindow.vue.d.ts +1 -1
- package/esm/coms/pages/Delete.vue.d.ts +2 -2
- package/esm/coms/pages/Single.vue.d.ts +2 -2
- package/esm/coms/pagings/Article.vue.d.ts +2 -2
- package/esm/coms/pagings/DataExport.vue.d.ts +2 -2
- package/esm/coms/pagings/DataImport.vue.d.ts +2 -2
- package/esm/coms/pagings/Index.vue.d.ts +2 -2
- package/esm/coms/pagings/SearchFooter.vue.d.ts +1 -1
- package/esm/coms/pagings/Table.vue.d.ts +2 -2
- package/esm/main.d.ts +4 -3
- package/esm/services/ServiceFactory.d.ts +3 -0
- package/esm/types/PcOptions.d.ts +18 -0
- package/esm/types/index.d.ts +2 -0
- package/package.json +2 -2
- package/dist/Autocomplete-DqKo5NiJ.js +0 -49
- package/dist/Autocomplete-K5ipzchR.js +0 -48
- package/dist/Callback-PyCjejiv.js +0 -20
- package/dist/Cascader-B9lLRKjA.js +0 -80
- package/dist/Cascader-BNvlqc5t.js +0 -41
- package/dist/Code-BdK547kD.js +0 -4
- package/dist/Code-DfFF-84i.js +0 -36
- package/dist/Code-LFQVJotC.js +0 -54
- package/dist/Code.vue_vue_type_style_index_0_lang-nX113anq.js +0 -59
- package/dist/Column-DVjYrrr7.js +0 -67
- package/dist/Comment-Do7Mjpjr.js +0 -98
- package/dist/Compare-C_iDn27Q.js +0 -56
- package/dist/Compare-CrX3yfD4.js +0 -26
- package/dist/Copy-_sbdQvHJ.js +0 -43
- package/dist/Custom-DarpQFG8.js +0 -49
- package/dist/Delete-BY3vAVWa.js +0 -55
- package/dist/Dictionary-DpQuFYQ5.js +0 -55
- package/dist/Index-B_a_HzsB.js +0 -4
- package/dist/Index-Cx2J_P37.js +0 -4
- package/dist/List-BjdY1rMk.js +0 -72
- package/dist/Maintaince-DzYzyrAc.js +0 -15
- package/dist/Paging-BMPtLi8P.js +0 -90
- package/dist/QueryApi-CbP5cCyH.js +0 -13
- package/dist/Text.vue_vue_type_style_index_0_lang-CeDusQl6.js +0 -52
- package/dist/TextLink-BZW-y_FS.js +0 -62
- package/dist/Tree-CLpCeirT.js +0 -117
- package/dist/TreeNode-C16N8jqm.js +0 -34
- package/dist/Upload-DvWyjK3a.js +0 -143
- package/dist/Upload-SEu1V1yX.js +0 -67
- package/dist/main-QtNG6p7a.js +0 -16673
- package/dist/vendor-pinia-yrN6kSxh.js +0 -861
- package/dist/vendor-vue-demi-CIhrFbpB.js +0 -17
@@ -1,10 +1,14 @@
|
|
1
|
-
import { defineComponent as Be, toRefs as De, ref as
|
2
|
-
import
|
3
|
-
import
|
4
|
-
import {
|
5
|
-
|
1
|
+
import { defineComponent as Be, toRefs as De, ref as r, computed as Y, watch as Le, resolveComponent as c, openBlock as d, createElementBlock as H, normalizeClass as Pe, unref as e, createElementVNode as m, createVNode as h, withCtx as s, withModifiers as Ne, createBlock as g, isRef as Z, Fragment as ee, renderList as le, toDisplayString as S, createCommentVNode as B, resolveDynamicComponent as Oe, normalizeStyle as je, createTextVNode as te, nextTick as ae } from "vue";
|
2
|
+
import "./vendor-@monaco-editor-DKC4UNw_.js";
|
3
|
+
import "./vendor-moment-h96o7c8I.js";
|
4
|
+
import { u as qe, l as Ke, g as j, p as Fe, O as He, h as Me, m as oe, P as Ae, j as re } from "./main-B8RC13GR.js";
|
5
|
+
import "xlsx-js-style";
|
6
|
+
import "./vendor-crypto-js-ftX_aBC-.js";
|
7
|
+
import { _ as Ie } from "./Index.vue_vue_type_style_index_0_lang-DBERwM_v.js";
|
8
|
+
import { _ as ue } from "./Index.vue_vue_type_script_setup_true_lang-C1Bw7evJ.js";
|
9
|
+
const Ge = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class: "row-title" }, We = /* @__PURE__ */ m("i", { class: "fa fa-close" }, null, -1), Xe = [
|
6
10
|
We
|
7
|
-
], Ye = /* @__PURE__ */ m("i", { class: "fa fa-question-circle icon-question" }, null, -1), Ze = { class: "el-drawer__title" }, el = ["href"],
|
11
|
+
], Ye = /* @__PURE__ */ m("i", { class: "fa fa-question-circle icon-question" }, null, -1), Ze = { class: "el-drawer__title" }, el = ["href"], dl = /* @__PURE__ */ Be({
|
8
12
|
__name: "Single",
|
9
13
|
props: {
|
10
14
|
base: {},
|
@@ -13,8 +17,8 @@ const He = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
13
17
|
},
|
14
18
|
emits: ["navigate", "load", "succeed", "close"],
|
15
19
|
setup(ne, { expose: se, emit: ie }) {
|
16
|
-
let D = ie, de = ne, { url: me, base:
|
17
|
-
let t =
|
20
|
+
let D = ie, de = ne, { url: me, base: M, route: z } = De(de), f = r(), b = r(), p = r(), u = r(), y = r(), L = r(), v = r({ table: null, layout: null }), w = r(), P = r([]), pe = r(), E = r(), x = r(), q = r(), C = r(), N = r(), { t_module: ve, $t_table: ce } = qe(), fe = Ke(), i = r({ page: null, url: null, visible: !1, appendToBody: !1 }), k = r(!1), K = r(), R = r(), be = (l) => !0, ye = (l) => {
|
21
|
+
let t = j.getPath(me.value), a = j.getPath(l);
|
18
22
|
return t != a;
|
19
23
|
}, _e = () => {
|
20
24
|
Ee();
|
@@ -35,41 +39,41 @@ const He = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
35
39
|
}
|
36
40
|
return a;
|
37
41
|
}, ke = (l, t, a) => {
|
38
|
-
(a.ctrlKey || k.value) && (
|
42
|
+
(a.ctrlKey || k.value) && (K.value = l, R.value = He.clone(t), k.value = !0, R.value.fields.forEach((n) => {
|
39
43
|
n.control.textualize = !1;
|
40
44
|
}));
|
41
|
-
},
|
45
|
+
}, I = (l) => {
|
42
46
|
i.value.visible = !1, D("succeed", W.value, l);
|
43
47
|
}, Se = () => {
|
44
48
|
D("close");
|
45
|
-
},
|
49
|
+
}, G = (l, t, a, n, T) => {
|
46
50
|
}, J = (l, t) => {
|
47
51
|
if (t) {
|
48
52
|
L.value = y.value.layouts.find((a) => a.type == l);
|
49
53
|
return;
|
50
54
|
}
|
51
|
-
|
55
|
+
v.value.layout = v.value.table.layouts.find((a) => a.type == l);
|
52
56
|
}, xe = (l) => {
|
53
|
-
let t =
|
54
|
-
|
57
|
+
let t = u.value.find((a) => a.name == l);
|
58
|
+
v.value.table = t, v.value.layout = t.layouts[0];
|
55
59
|
}, Re = (l) => {
|
56
60
|
let t = Object.keys(l)[0], a = t.substring(1, t.indexOf("]"));
|
57
|
-
|
61
|
+
u.value.find((T) => T.name == a).main || (w.value = a);
|
58
62
|
}, Te = (l, t = null, a = null) => {
|
59
63
|
ae(() => {
|
60
64
|
E.value.validate((n, T) => {
|
61
65
|
if (!n)
|
62
66
|
return Re(T), a && a(!1), !1;
|
63
|
-
let $ =
|
64
|
-
t && t($,
|
65
|
-
E.value.clearValidate(), oe.success(V),
|
67
|
+
let $ = f.value.type == "Update" ? b.value.update.route : b.value.insert.route;
|
68
|
+
t && t($, p.value), Me.post($, p.value).then(({ data: U, message: V }) => {
|
69
|
+
E.value.clearValidate(), oe.success(V), I(p.value);
|
66
70
|
}).catch(({ code: U, data: V, message: X }) => {
|
67
71
|
if (U != "ValidateError")
|
68
72
|
return;
|
69
73
|
P.value = V;
|
70
|
-
let
|
71
|
-
if (
|
72
|
-
let _ =
|
74
|
+
let O = V.find((_) => _.table !== y.value.name);
|
75
|
+
if (O) {
|
76
|
+
let _ = u.value.find((o) => o.name == O.table);
|
73
77
|
_ && (w.value = _.name);
|
74
78
|
}
|
75
79
|
ae(() => {
|
@@ -84,74 +88,74 @@ const He = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
84
88
|
});
|
85
89
|
}, Q = (l) => {
|
86
90
|
var a, n;
|
87
|
-
let t =
|
88
|
-
Ae.setTitle(t, l.module.env),
|
91
|
+
let t = ve(l.module.type, l.module.name);
|
92
|
+
Ae.setTitle(t, l.module.env), f.value = l.module, b.value = l.next, p.value = re.expandSet(l.schema, l.set), u.value = re.expandSchema(l.schema), y.value = (a = u.value) == null ? void 0 : a[0], L.value = y.value.layouts[0], ((n = u.value) == null ? void 0 : n.length) > 1 && (w.value = u.value[1].name, v.value.table = u.value[1], v.value.layout = u.value[1].layouts[0]);
|
89
93
|
}, Ve = (l) => {
|
90
94
|
x.value && x.value.resize && x.value.resize(l), C.value && C.value.resize && C.value.resize(l);
|
91
95
|
}, ze = (l, t) => {
|
92
96
|
if (l == "ctrlS") {
|
93
|
-
if (
|
94
|
-
if (!
|
97
|
+
if (f.value.type == "Detail") {
|
98
|
+
if (!N.value || !N.value.keyboard)
|
95
99
|
return !1;
|
96
|
-
|
100
|
+
N.value.keyboard(l, t);
|
97
101
|
return;
|
98
102
|
}
|
99
|
-
|
103
|
+
F(t);
|
100
104
|
}
|
101
105
|
}, Ee = () => {
|
102
|
-
let l =
|
106
|
+
let l = j.getUrl(z.value.path, z.value.query);
|
103
107
|
D("load", l, !1, (t) => {
|
104
108
|
});
|
105
109
|
};
|
106
110
|
(() => {
|
107
|
-
Q(
|
111
|
+
Q(M.value.data);
|
108
112
|
})();
|
109
|
-
let
|
110
|
-
if (!
|
113
|
+
let F = (l) => {
|
114
|
+
if (!q.value.submit) {
|
111
115
|
oe.notify("提示", "请在子组件暴露submit方法来实现快捷提交", "warning");
|
112
116
|
return;
|
113
117
|
}
|
114
|
-
|
118
|
+
q.value.submit(l);
|
115
119
|
}, $e = Y(() => {
|
116
|
-
let l = `/${y.value.name}/update`, t =
|
117
|
-
return
|
118
|
-
}), W = Y(() =>
|
119
|
-
return Le(() =>
|
120
|
+
let l = `/${y.value.name}/update`, t = f.value.type == "Detail" ? "detail" : "update";
|
121
|
+
return fe.getComponent(l, "partial", t);
|
122
|
+
}), W = Y(() => f.value.type.toLowerCase());
|
123
|
+
return Le(() => M.value, (l) => {
|
120
124
|
Q(l.data), x.value.update && x.value.update(l.data), C.value && C.value.update && C.value.update(l.data);
|
121
125
|
}), se({ shouldLoad: be, shouldSpin: ye, keyboard: ze, refresh: _e, resize: Ve }), (l, t) => {
|
122
|
-
const a =
|
123
|
-
return d(),
|
126
|
+
const a = c("el-tooltip"), n = c("el-tab-pane"), T = c("el-tabs"), $ = c("el-form"), U = c("el-scrollbar"), V = c("el-popover"), X = c("el-form-item"), O = c("el-card"), _ = c("el-drawer");
|
127
|
+
return d(), H("div", {
|
124
128
|
ref_key: "singleRef",
|
125
|
-
ref:
|
129
|
+
ref: pe,
|
126
130
|
class: Pe(["ha-single-page", { [e(W) + "-page"]: !0, editing: e(k) }])
|
127
131
|
}, [
|
128
|
-
m("div",
|
132
|
+
m("div", Ge, [
|
129
133
|
h(U, { class: "main-scroller" }, {
|
130
134
|
default: s(() => [
|
131
135
|
h($, {
|
132
136
|
ref_key: "formRef",
|
133
137
|
ref: E,
|
134
|
-
model: e(
|
135
|
-
onSubmit: t[3] || (t[3] =
|
138
|
+
model: e(p),
|
139
|
+
onSubmit: t[3] || (t[3] = Ne(() => {
|
136
140
|
}, ["prevent"]))
|
137
141
|
}, {
|
138
142
|
default: s(() => [
|
139
|
-
h(
|
143
|
+
h(ue, {
|
140
144
|
ref_key: "mainRef",
|
141
145
|
ref: x,
|
142
|
-
module: e(
|
143
|
-
schema: e(
|
146
|
+
module: e(f),
|
147
|
+
schema: e(u),
|
144
148
|
table: e(y),
|
145
149
|
layout: e(L),
|
146
150
|
next: e(b),
|
147
|
-
set: e(
|
151
|
+
set: e(p),
|
148
152
|
route: e(z),
|
149
153
|
"validate-errors": e(P),
|
150
|
-
onChange: e(
|
154
|
+
onChange: e(G),
|
151
155
|
onLayoutChange: t[0] || (t[0] = (o) => e(J)(o, !0)),
|
152
|
-
onSubmit: e(
|
156
|
+
onSubmit: e(F)
|
153
157
|
}, null, 8, ["module", "schema", "table", "layout", "next", "set", "route", "validate-errors", "onChange", "onSubmit"]),
|
154
|
-
e(
|
158
|
+
e(u).length > 1 ? (d(), g(T, {
|
155
159
|
key: 0,
|
156
160
|
type: "border-card",
|
157
161
|
onTabChange: e(xe),
|
@@ -159,7 +163,7 @@ const He = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
159
163
|
"onUpdate:modelValue": t[1] || (t[1] = (o) => Z(w) ? w.value = o : w = o)
|
160
164
|
}, {
|
161
165
|
default: s(() => [
|
162
|
-
(d(!0),
|
166
|
+
(d(!0), H(ee, null, le(e(u).filter((o, Ue) => Ue > 0), (o) => (d(), g(n, {
|
163
167
|
name: o.name,
|
164
168
|
key: o.name
|
165
169
|
}, {
|
@@ -170,7 +174,7 @@ const He = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
170
174
|
disabled: !o.tooltip
|
171
175
|
}, {
|
172
176
|
default: s(() => [
|
173
|
-
m("div", null, S(e(
|
177
|
+
m("div", null, S(e(ce)(o.table)), 1)
|
174
178
|
]),
|
175
179
|
_: 2
|
176
180
|
}, 1032, ["content", "disabled"])
|
@@ -180,22 +184,22 @@ const He = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
180
184
|
]),
|
181
185
|
_: 1
|
182
186
|
}, 8, ["onTabChange", "modelValue"])) : B("", !0),
|
183
|
-
e(
|
187
|
+
e(v).table ? (d(), g(ue, {
|
184
188
|
key: 1,
|
185
189
|
ref_key: "childRef",
|
186
190
|
ref: C,
|
187
|
-
module: e(
|
188
|
-
schema: e(
|
189
|
-
table: e(
|
190
|
-
layout: e(
|
191
|
+
module: e(f),
|
192
|
+
schema: e(u),
|
193
|
+
table: e(v).table,
|
194
|
+
layout: e(v).layout,
|
191
195
|
next: e(b),
|
192
|
-
set: e(
|
196
|
+
set: e(p),
|
193
197
|
route: e(z),
|
194
198
|
"validate-errors": e(P),
|
195
199
|
onRowEdit: e(ke),
|
196
|
-
onChange: e(
|
200
|
+
onChange: e(G),
|
197
201
|
onLayoutChange: t[2] || (t[2] = (o) => e(J)(o, !1)),
|
198
|
-
onSubmit: e(
|
202
|
+
onSubmit: e(F)
|
199
203
|
}, null, 8, ["module", "schema", "table", "layout", "next", "set", "route", "validate-errors", "onRowEdit", "onChange", "onSubmit"])) : B("", !0)
|
200
204
|
]),
|
201
205
|
_: 1
|
@@ -203,15 +207,15 @@ const He = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
203
207
|
]),
|
204
208
|
_: 1
|
205
209
|
}),
|
206
|
-
(d(), g(
|
210
|
+
(d(), g(Oe(e($e)), {
|
207
211
|
ref_key: "updateRef",
|
208
|
-
ref:
|
212
|
+
ref: q,
|
209
213
|
class: "main-footer",
|
210
|
-
schema: e(
|
214
|
+
schema: e(u),
|
211
215
|
table: e(y),
|
212
216
|
layout: e(L),
|
213
217
|
next: e(b),
|
214
|
-
set: e(
|
218
|
+
set: e(p),
|
215
219
|
route: e(z),
|
216
220
|
onCopy: e(he),
|
217
221
|
onEdit: e(ge),
|
@@ -219,13 +223,13 @@ const He = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
219
223
|
onClose: e(Se)
|
220
224
|
}, null, 40, ["schema", "table", "layout", "next", "set", "route", "onCopy", "onEdit", "onSubmit", "onClose"]))
|
221
225
|
]),
|
222
|
-
e(k) ? (d(), g(
|
226
|
+
e(k) ? (d(), g(O, {
|
223
227
|
key: 0,
|
224
228
|
class: "side-form"
|
225
229
|
}, {
|
226
230
|
header: s(() => [
|
227
231
|
m("div", Je, [
|
228
|
-
m("div", Qe, S(l.t("common.modify")) + " " + S(e(
|
232
|
+
m("div", Qe, S(l.t("common.modify")) + " " + S(e(K)[e(R).show[0].name]), 1),
|
229
233
|
m("div", {
|
230
234
|
class: "row-close",
|
231
235
|
onClick: t[4] || (t[4] = (o) => Z(k) ? k.value = !1 : k = !1)
|
@@ -240,8 +244,8 @@ const He = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
240
244
|
"label-width": "80px"
|
241
245
|
}, {
|
242
246
|
default: s(() => [
|
243
|
-
(d(!0),
|
244
|
-
style:
|
247
|
+
(d(!0), H(ee, null, le(e(R).show, (o) => (d(), g(X, {
|
248
|
+
style: je(o.control.height ? `height: ${o.control.height}px;` : ""),
|
245
249
|
rules: o.rules
|
246
250
|
}, {
|
247
251
|
label: s(() => [
|
@@ -263,12 +267,12 @@ const He = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
263
267
|
}, 1032, ["title"])) : B("", !0)
|
264
268
|
]),
|
265
269
|
default: s(() => [
|
266
|
-
h(
|
267
|
-
schema: e(
|
270
|
+
h(Ie, {
|
271
|
+
schema: e(u),
|
268
272
|
table: e(R),
|
269
273
|
field: o,
|
270
|
-
set: e(
|
271
|
-
row: e(
|
274
|
+
set: e(p),
|
275
|
+
row: e(K)
|
272
276
|
}, null, 8, ["schema", "table", "field", "set", "row"])
|
273
277
|
]),
|
274
278
|
_: 2
|
@@ -286,7 +290,7 @@ const He = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
286
290
|
key: 1,
|
287
291
|
"destroy-on-close": "",
|
288
292
|
"append-to-body": e(i).appendToBody,
|
289
|
-
size: `${e(
|
293
|
+
size: `${e(f).width ?? "60%"}`,
|
290
294
|
modelValue: e(i).visible,
|
291
295
|
"onUpdate:modelValue": t[5] || (t[5] = (o) => e(i).visible = o)
|
292
296
|
}, {
|
@@ -295,16 +299,16 @@ const He = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
295
299
|
te(S(e(b)[e(i).page].title) + " ", 1),
|
296
300
|
m("a", {
|
297
301
|
class: "drawer-copy",
|
298
|
-
href: `${e(
|
302
|
+
href: `${e(j).getToUrl(e(i).url)}`
|
299
303
|
}, S(l.t("common.link")), 9, el)
|
300
304
|
])
|
301
305
|
]),
|
302
306
|
default: s(() => [
|
303
|
-
h(e(
|
307
|
+
h(e(Fe), {
|
304
308
|
ref_key: "pageRef",
|
305
|
-
ref:
|
309
|
+
ref: N,
|
306
310
|
url: e(i).url,
|
307
|
-
onSucceed: e(
|
311
|
+
onSucceed: e(I),
|
308
312
|
onClose: e(we)
|
309
313
|
}, null, 8, ["url", "onSucceed", "onClose"])
|
310
314
|
]),
|
@@ -315,5 +319,5 @@ const He = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
315
319
|
}
|
316
320
|
});
|
317
321
|
export {
|
318
|
-
|
322
|
+
dl as default
|
319
323
|
};
|
@@ -1,7 +1,11 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import
|
3
|
-
import
|
4
|
-
|
1
|
+
import { defineComponent as $, toRefs as q, ref as c, onMounted as G, watch as M, openBlock as O, createElementBlock as I, createVNode as J, unref as i, createElementVNode as K, normalizeStyle as P, nextTick as m } from "vue";
|
2
|
+
import "./vendor-@monaco-editor-DKC4UNw_.js";
|
3
|
+
import "./vendor-moment-h96o7c8I.js";
|
4
|
+
import { i as Q, j as U, A as W, m as X, D as Y } from "./main-B8RC13GR.js";
|
5
|
+
import "xlsx-js-style";
|
6
|
+
import "./vendor-crypto-js-ftX_aBC-.js";
|
7
|
+
import { _ as Z } from "./SearchForm.vue_vue_type_style_index_0_lang-F2we6KP-.js";
|
8
|
+
const ce = /* @__PURE__ */ $({
|
5
9
|
__name: "Statistic",
|
6
10
|
props: {
|
7
11
|
searchData: {},
|
@@ -14,16 +18,16 @@ const re = /* @__PURE__ */ j({
|
|
14
18
|
set: {}
|
15
19
|
},
|
16
20
|
emits: ["search"],
|
17
|
-
setup(A, { expose: C, emit:
|
18
|
-
let
|
19
|
-
|
20
|
-
},
|
21
|
-
|
21
|
+
setup(A, { expose: C, emit: H }) {
|
22
|
+
let F = H, z = A, { route: D, module: B, schema: p, table: x, layout: a, next: ee, set: u, searchData: y } = q(z), g = Q(), s = null, v = null, b = c(), f = c(), S = c(), k = c(), T = (t) => {
|
23
|
+
V("search");
|
24
|
+
}, V = (t, e = null) => {
|
25
|
+
F(t, (r) => {
|
22
26
|
m(() => {
|
23
|
-
|
27
|
+
d(), e && e(r);
|
24
28
|
});
|
25
29
|
});
|
26
|
-
},
|
30
|
+
}, d = () => {
|
27
31
|
let t = W.distinct(u.value[a.value.table], (l) => l[a.value.date]), e = {
|
28
32
|
title: { text: B.value.title, left: "center", textStyle: { color: "#777" } },
|
29
33
|
//标题
|
@@ -59,11 +63,11 @@ const re = /* @__PURE__ */ j({
|
|
59
63
|
series: []
|
60
64
|
};
|
61
65
|
g.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 = a.value.fields.find((l) => l.group && l.name != a.value.date), L =
|
66
|
+
let r = a.value.fields.find((l) => l.group && l.name != a.value.date), L = x.value.fields.find((l) => l.name == r.name).control.data.data;
|
63
67
|
for (let l = 0; l < L.length; l++) {
|
64
68
|
let o = L[l];
|
65
69
|
o.color || X.error("颜色字段不能为空");
|
66
|
-
let
|
70
|
+
let n = {
|
67
71
|
name: o.text,
|
68
72
|
type: "line",
|
69
73
|
lineStyle: { color: o.color, width: 1 },
|
@@ -88,7 +92,7 @@ const re = /* @__PURE__ */ j({
|
|
88
92
|
}
|
89
93
|
}
|
90
94
|
};
|
91
|
-
g.theme == "dark" && (
|
95
|
+
g.theme == "dark" && (n.areaStyle.color = {
|
92
96
|
type: "linear",
|
93
97
|
x: 0,
|
94
98
|
y: 0,
|
@@ -103,44 +107,44 @@ const re = /* @__PURE__ */ j({
|
|
103
107
|
global: !0
|
104
108
|
});
|
105
109
|
for (let h = 0; h < t.length; h++) {
|
106
|
-
let
|
107
|
-
w == null ?
|
110
|
+
let N = t[h], w = u.value[a.value.table].find((R) => R[r.name] == o.value && R[a.value.date] == N);
|
111
|
+
w == null ? n.data.push(null) : n.data.push(w[a.value.value]);
|
108
112
|
}
|
109
|
-
e.series.push(
|
113
|
+
e.series.push(n), e.legend.data.push(o.text);
|
110
114
|
}
|
111
115
|
e.xAxis.data.push(...t), s.setOption(e);
|
112
116
|
}, _ = () => {
|
113
117
|
var r;
|
114
|
-
let t = Y.getHeight([(r =
|
118
|
+
let t = Y.getHeight([(r = f.value) == null ? void 0 : r.$el]), e = k.value.getBoundingClientRect();
|
115
119
|
b.value = e.height - t - 10 - 1;
|
116
|
-
},
|
117
|
-
|
120
|
+
}, j = (t) => {
|
121
|
+
f.value.resize(t), m(() => {
|
118
122
|
_(), s == null || s.resize();
|
119
123
|
});
|
120
|
-
},
|
124
|
+
}, E = () => {
|
121
125
|
_(), m(() => {
|
122
|
-
s = v.init(S.value),
|
126
|
+
s = v.init(S.value), d();
|
123
127
|
});
|
124
128
|
};
|
125
129
|
return G(() => {
|
126
|
-
|
127
|
-
v = t,
|
130
|
+
y.value = U.getConditionForm(p.value, D.value.query.condition), import("echarts").then((t) => {
|
131
|
+
v = t, E();
|
128
132
|
});
|
129
133
|
}), M(() => a.value, (t, e) => {
|
130
|
-
|
131
|
-
}), C({ resize:
|
134
|
+
d();
|
135
|
+
}), C({ resize: j }), (t, e) => (O(), I("div", {
|
132
136
|
ref_key: "statisticRef",
|
133
137
|
ref: k,
|
134
138
|
class: "ha-statistic-layout"
|
135
139
|
}, [
|
136
140
|
J(Z, {
|
137
141
|
ref_key: "searchRef",
|
138
|
-
ref:
|
139
|
-
schema: i(
|
140
|
-
table: i(
|
142
|
+
ref: f,
|
143
|
+
schema: i(p),
|
144
|
+
table: i(x),
|
141
145
|
layout: i(a),
|
142
146
|
set: i(u),
|
143
|
-
"search-data": i(
|
147
|
+
"search-data": i(y),
|
144
148
|
onChange: i(T)
|
145
149
|
}, null, 8, ["schema", "table", "layout", "set", "search-data", "onChange"]),
|
146
150
|
K("div", {
|
@@ -153,5 +157,5 @@ const re = /* @__PURE__ */ j({
|
|
153
157
|
}
|
154
158
|
});
|
155
159
|
export {
|
156
|
-
|
160
|
+
ce as default
|
157
161
|
};
|
@@ -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-MTvhmHlz.js";
|
3
3
|
const b = /* @__PURE__ */ c({
|
4
4
|
__name: "Stock",
|
5
5
|
props: {
|
@@ -1,8 +1,12 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
import { defineComponent as F, toRefs as R, ref as T, onMounted as B, openBlock as G, createBlock as P, unref as h, withCtx as V, createElementVNode as A, createTextVNode as E, toDisplayString as b } from "vue";
|
2
|
+
import "./vendor-@monaco-editor-DKC4UNw_.js";
|
3
|
+
import "./vendor-moment-h96o7c8I.js";
|
4
|
+
import "xlsx-js-style";
|
5
|
+
import { i as O, k as K, A as N } from "./main-B8RC13GR.js";
|
6
|
+
import "./vendor-crypto-js-ftX_aBC-.js";
|
7
|
+
const j = /* @__PURE__ */ A("div", { class: "ha-empty" }, "暂无行情数据", -1), z = [
|
8
|
+
j
|
9
|
+
], D = /* @__PURE__ */ F({
|
6
10
|
__name: "Stock",
|
7
11
|
props: {
|
8
12
|
searchData: {},
|
@@ -15,18 +19,18 @@ const N = /* @__PURE__ */ A("div", { class: "ha-empty" }, "暂无行情数据",
|
|
15
19
|
set: {}
|
16
20
|
},
|
17
21
|
setup(k) {
|
18
|
-
let L = k, { module: H, schema: W, table: v, layout: n, next:
|
19
|
-
let o =
|
22
|
+
let L = k, { module: H, schema: W, table: v, layout: n, next: $, set: f } = R(L), p = null, d = null, w = O(), y = "#04aa4e", x = "#ff5945", S = T(), u = { history: null, week: null, month: null }, _ = (t) => {
|
23
|
+
let o = N.orderBy(t, (i) => i[n.value.time], !1), e = [], l = [], r = [];
|
20
24
|
for (let i = 0; i < o.length; i++) {
|
21
25
|
let a = o[i];
|
22
26
|
e.push(a[n.value.time]);
|
23
|
-
let
|
24
|
-
l.push([
|
25
|
-
let
|
27
|
+
let c = parseFloat(a[n.value.open]), s = parseFloat(a[n.value.close]);
|
28
|
+
l.push([c, s, parseFloat(a[n.value.low]), parseFloat(a[n.value.high])]);
|
29
|
+
let C = {
|
26
30
|
value: parseFloat(a[n.value.volumn]),
|
27
|
-
itemStyle: { color: s >
|
31
|
+
itemStyle: { color: s > c ? y : x }
|
28
32
|
};
|
29
|
-
r.push(
|
33
|
+
r.push(C);
|
30
34
|
}
|
31
35
|
return { times: e, values: l, volumes: r };
|
32
36
|
}, m = (t, o) => {
|
@@ -229,7 +233,7 @@ const N = /* @__PURE__ */ A("div", { class: "ha-empty" }, "暂无行情数据",
|
|
229
233
|
smooth: !0,
|
230
234
|
data: [],
|
231
235
|
areaStyle: {
|
232
|
-
color: new
|
236
|
+
color: new d.graphic.LinearGradient(0, 0, 0, 1, [{
|
233
237
|
offset: 0,
|
234
238
|
color: l
|
235
239
|
}, {
|
@@ -238,7 +242,7 @@ const N = /* @__PURE__ */ A("div", { class: "ha-empty" }, "暂无行情数据",
|
|
238
242
|
}])
|
239
243
|
}
|
240
244
|
};
|
241
|
-
w.theme == "dark" && (r.areaStyle.color = new
|
245
|
+
w.theme == "dark" && (r.areaStyle.color = new d.graphic.LinearGradient(
|
242
246
|
0,
|
243
247
|
0,
|
244
248
|
0,
|
@@ -252,14 +256,14 @@ const N = /* @__PURE__ */ A("div", { class: "ha-empty" }, "暂无行情数据",
|
|
252
256
|
r.data.push(...i), e.series.push(r);
|
253
257
|
}
|
254
258
|
return o && f.value[o.table].forEach((r) => {
|
255
|
-
let i = r[o.time], a = t.times.indexOf(i),
|
259
|
+
let i = r[o.time], a = t.times.indexOf(i), c = t.values[a], s = {
|
256
260
|
coord: [i],
|
257
261
|
itemStyle: { color: null },
|
258
262
|
label: { position: null, offset: null },
|
259
263
|
value: null,
|
260
264
|
symbolRotate: null
|
261
265
|
};
|
262
|
-
r[o.direction] == 1 ? (s.coord.push(
|
266
|
+
r[o.direction] == 1 ? (s.coord.push(c[2] * 0.99), s.value = "买", s.itemStyle.color = "#00c805", s.symbolRotate = 180, s.label.position = "insideBottom", s.label.offset = [0, -5]) : (s.coord.push(c[3] * 1.01), s.value = "卖", s.itemStyle.color = "#ff5000"), e.series[0].markPoint.data.push(s);
|
263
267
|
}), e;
|
264
268
|
}, g = (t) => {
|
265
269
|
let o = 0;
|
@@ -269,7 +273,7 @@ const N = /* @__PURE__ */ A("div", { class: "ha-empty" }, "暂无行情数据",
|
|
269
273
|
}), o / t.length * 100;
|
270
274
|
}, I = (t) => {
|
271
275
|
let o = M(t);
|
272
|
-
p || (p =
|
276
|
+
p || (p = d.init(S.value)), p.setOption(o);
|
273
277
|
let e = t.values, l = e.reverse();
|
274
278
|
u.history = g(e), u.week = g(l.slice(0, 7)), u.month = g(l.slice(0, 30));
|
275
279
|
}, Z = () => {
|
@@ -278,21 +282,21 @@ const N = /* @__PURE__ */ A("div", { class: "ha-empty" }, "暂无行情数据",
|
|
278
282
|
};
|
279
283
|
return B(() => {
|
280
284
|
import("echarts").then((t) => {
|
281
|
-
|
285
|
+
d = t, Z();
|
282
286
|
});
|
283
|
-
}), (t, o) => (G(), P(h(
|
287
|
+
}), (t, o) => (G(), P(h(K), null, {
|
284
288
|
default: V(() => [
|
285
289
|
A("div", {
|
286
290
|
ref_key: "chartRef",
|
287
291
|
ref: S,
|
288
292
|
class: "chart"
|
289
|
-
},
|
290
|
-
|
293
|
+
}, z, 512),
|
294
|
+
E(" 30日开盘振幅:" + b(h(u).month) + "% 7日开盘振幅:" + b(h(u).week) + "% 历史开盘振幅:" + b(h(u).history) + "% ", 1)
|
291
295
|
]),
|
292
296
|
_: 1
|
293
297
|
}));
|
294
298
|
}
|
295
299
|
});
|
296
300
|
export {
|
297
|
-
|
301
|
+
D as _
|
298
302
|
};
|
@@ -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-BUmany6B.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),
|