halo-pc 1.0.23 → 1.0.25
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{Article-4S7jNdlM.js → Article-B85JcyzM.js} +10 -10
- package/dist/{ArticleFooter-DQs1A7g2.js → ArticleFooter-BCHVxIWa.js} +1 -1
- package/dist/{Autocomplete-B9SJNrNq.js → Autocomplete-BA0pEA9T.js} +2 -2
- package/dist/{Autocomplete-BZNDoWFj.js → Autocomplete-C1MC46ef.js} +3 -3
- package/dist/{Autocomplete-BXwtzACg.js → Autocomplete-DUmzcj_9.js} +1 -1
- package/dist/{CSharp-aXdVWxPS.js → CSharp-CLKgbbVS.js} +1 -1
- package/dist/{Calender-DSckLCh-.js → Calender-DIjZoC1-.js} +4 -4
- package/dist/{Callback-xlj8oj2-.js → Callback-DmCRycGX.js} +3 -3
- package/dist/{Cascader-Cwi5mukb.js → Cascader-CQqLPpEF.js} +10 -10
- package/dist/{Cascader-D1RbjsMs.js → Cascader-DcM0THgE.js} +1 -1
- package/dist/{Checkbox-DtNMPsX4.js → Checkbox-BJjYhPvp.js} +1 -1
- package/dist/{Checkbox-DFnVivE9.js → Checkbox-CLGuZoor.js} +1 -1
- package/dist/{Code-B2jpV8ek.js → Code-C5fE_bvq.js} +1 -1
- package/dist/{Code-CTmcyEEu.js → Code-CVyrDYHh.js} +4 -4
- package/dist/{Code-DEOvcbgy.js → Code-CfODGNBF.js} +1 -1
- package/dist/{Code-CEafFSlR.js → Code-D7kMH044.js} +1 -1
- package/dist/{Code.vue_vue_type_style_index_0_lang-Cf1QzL0C.js → Code.vue_vue_type_style_index_0_lang-CGIHkYJn.js} +5 -5
- package/dist/{Column-zAYqqGgI.js → Column-4XWgmnKg.js} +13 -12
- package/dist/{Comment-BZTVtxyP.js → Comment-CNvy-1Iq.js} +1 -1
- package/dist/{Compare-DMDVEK_Q.js → Compare-DICZHIEn.js} +1 -1
- package/dist/{Compare-Dy_YDKN2.js → Compare-wgk3D3EX.js} +13 -12
- package/dist/{Copy-KA_-9J5g.js → Copy-C_EBpWht.js} +1 -1
- package/dist/{Custom-BpQzSpoK.js → Custom-OUdFT-Z9.js} +1 -1
- package/dist/{DataExport-CU9MMI6C.js → DataExport-f8caAI4D.js} +1 -1
- package/dist/{DataExport.vue_vue_type_script_setup_true_lang-DdczhsmD.js → DataExport.vue_vue_type_script_setup_true_lang-CbiPENFw.js} +1 -1
- package/dist/{DataImport-Dzq9P4hO.js → DataImport-CZaVBfZq.js} +1 -1
- package/dist/{DataImport.vue_vue_type_script_setup_true_lang-BdDLixcQ.js → DataImport.vue_vue_type_script_setup_true_lang-DIrLf0yN.js} +6 -6
- package/dist/{Date-yqT5zILQ.js → Date-B1jUMPdx.js} +3 -3
- package/dist/{Date-BD5syhZL.js → Date-DtHzdllB.js} +1 -1
- package/dist/{DateRange-CUQsaLxD.js → DateRange-CXUIVfwU.js} +1 -1
- package/dist/{DateTime-DcerQByM.js → DateTime-6lhPVe1O.js} +1 -1
- package/dist/{DateTime-hLc--zka.js → DateTime-G4F8DiCI.js} +1 -1
- package/dist/{DateTimeRange-CSRaF4s1.js → DateTimeRange-CG9K8X5b.js} +5 -5
- package/dist/{Daterange-DY2i3jwP.js → Daterange-DbhWv06V.js} +1 -1
- package/dist/{Decimal-DY34o2Nh.js → Decimal-iKOftOtx.js} +1 -1
- package/dist/{Delete-CXnvlNw9.js → Delete-BU-TdXZR.js} +1 -1
- package/dist/{Detail-BYlDGKVP.js → Detail-syloerEZ.js} +12 -11
- package/dist/{Dictionary-DtXqTf_k.js → Dictionary-DYPWj-d0.js} +7 -7
- package/dist/{Email-ofMPw09E.js → Email-BTKIb--f.js} +1 -1
- package/dist/{File-czipSVR0.js → File-IQG0slBy.js} +15 -14
- package/dist/Image-BRH98A7N.js +9 -0
- package/dist/{Index-j9BffBys.js → Index-BJWMiDrx.js} +25 -25
- package/dist/{Index-CK25oTiA.js → Index-BqseRji6.js} +1 -1
- package/dist/Index-C8CUkTm5.js +4 -0
- package/dist/Index-CBAGTH43.js +4 -0
- package/dist/{Index-BSZ_tPMy.js → Index-CnqiNw5R.js} +1 -1
- package/dist/{Index-DIUPLGQ4.js → Index-CttpoRk-.js} +2 -2
- package/dist/Index-D3WQg1HZ.js +4 -0
- package/dist/Index-KxibedJH.js +4 -0
- package/dist/{Index.vue_vue_type_script_setup_true_lang-DtZPmPAC.js → Index.vue_vue_type_script_setup_true_lang-C0QNQ1MJ.js} +4 -3
- package/dist/{Index.vue_vue_type_script_setup_true_lang-Bp4JjtSz.js → Index.vue_vue_type_script_setup_true_lang-Cx8eXCsw.js} +7 -6
- package/dist/{Install-qFVqjd7y.js → Install-BEeQqQzM.js} +4 -3
- package/dist/{Int-BWcRpPzt.js → Int-Ae-gJbt5.js} +1 -1
- package/dist/{Int-BYyavcrM.js → Int-BqZ6sIcn.js} +3 -3
- package/dist/{List-BejoBArm.js → List-D8C_gyVz.js} +2 -2
- package/dist/{Maintaince-Dlh2ICnO.js → Maintaince-DdS89Bbv.js} +3 -3
- package/dist/{Markdown-DymmFy2X.js → Markdown-DR4rlU3-.js} +1 -1
- package/dist/{Month-DaYaF2WK.js → Month-BECDFWum.js} +3 -3
- package/dist/{Month-C5_ANmVr.js → Month-BRuj2vZ-.js} +1 -1
- package/dist/{Month-Cf8e0cin.js → Month-CnScc0mu.js} +3 -3
- package/dist/{Normal-NYkjZ2aA.js → Normal-B6h5U5-c.js} +95 -93
- package/dist/{Paging-DoQ_cXwj.js → Paging-CdUnYWJ1.js} +51 -51
- package/dist/{PagingHeader-BhwoSfFl.js → PagingHeader-BEfi7NBv.js} +1 -1
- package/dist/{PagingRow-BF6pUhoJ.js → PagingRow-C-l9v-bo.js} +1 -1
- package/dist/{QueryApi-CPQ67lb4.js → QueryApi-CwNeSXIs.js} +1 -1
- package/dist/{Racebar-BNPXg9aN.js → Racebar-BdLTF_ZH.js} +27 -27
- package/dist/{Radio-wHwEjg6V.js → Radio-DVmzOE7P.js} +1 -1
- package/dist/{Register-B4Bc8s-2.js → Register-CQSkhKvF.js} +24 -24
- package/dist/{RichText-Cj5QP79L.js → RichText-D-AaPwkx.js} +8 -8
- package/dist/{SearchFooter-zNYx9YkN.js → SearchFooter-CKOh4Fzz.js} +1 -1
- package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-CVxX9q-U.js → SearchFooter.vue_vue_type_style_index_0_lang-D6xp89r9.js} +1 -1
- package/dist/{SearchForm-CJ3ru63a.js → SearchForm-WtocjgIQ.js} +1 -1
- package/dist/{SearchForm.vue_vue_type_style_index_0_lang-DDH5N323.js → SearchForm.vue_vue_type_style_index_0_lang-DFqj7f23.js} +8 -8
- package/dist/{Select-BDaDhqW7.js → Select-CGC68XKI.js} +1 -1
- package/dist/{Select-DFLY8nGY.js → Select-DuHwIGlP.js} +1 -1
- package/dist/{Select-WXibWkE0.js → Select-RG1Hkpw4.js} +17 -17
- package/dist/{Single-CmQgQl_u.js → Single-PROE_P9A.js} +22 -23
- package/dist/{Statistic-BuU_GxqZ.js → Statistic-R1oy4jve.js} +25 -27
- package/dist/{Stock-CDJ-AVw-.js → Stock-Dzlxs_TK.js} +1 -1
- package/dist/{Stock-B7NgfM19.js → Stock-zGPixaHC.js} +1 -1
- package/dist/{Stock.vue_vue_type_style_index_0_lang-pZYnIJLp.js → Stock.vue_vue_type_style_index_0_lang-DAlvmXf0.js} +10 -10
- package/dist/{Switch-DHf-0HZD.js → Switch-y8TGQEHX.js} +1 -1
- package/dist/{Table-7P4KXMsy.js → Table-D--KFpz3.js} +107 -108
- package/dist/{Table-CN-KYO1R.js → Table-NDlPEOwH.js} +77 -77
- package/dist/{Text-Da3ROjFC.js → Text-BkKR1LPU.js} +4 -4
- package/dist/Text-DXGGbFhr.js +4 -0
- package/dist/{Text-C05EoDxO.js → Text-DXGzwZnW.js} +5 -5
- package/dist/{Text.vue_vue_type_style_index_0_lang-DKX9_aI4.js → Text.vue_vue_type_style_index_0_lang-CeWH48Pu.js} +1 -1
- package/dist/{TextLink-CQ_46bry.js → TextLink-DYisoDVn.js} +1 -1
- package/dist/{Textarea-B91EwIdj.js → Textarea-C4PlCQXP.js} +1 -1
- package/dist/{Time-DxyveGcA.js → Time-DxojKVPC.js} +3 -3
- package/dist/{Timeline-C1xOEcU4.js → Timeline-hBk2KUsH.js} +1 -1
- package/dist/{Tree-BK6p6Ake.js → Tree-Dsrpy8UN.js} +9 -9
- package/dist/{Tree-DxJKaqc6.js → Tree-DzfCEHVR.js} +19 -19
- package/dist/{TreeNode-C84IoqkK.js → TreeNode-BAZbs0jL.js} +1 -1
- package/dist/{Update-D5cXmHyf.js → Update-BzPazrMP.js} +4 -3
- package/dist/{UpdateChild-DvrF1nBA.js → UpdateChild-BvIiamkv.js} +1 -1
- package/dist/{Upload-CK-ALAKV.js → Upload-Dt2pNqjv.js} +16 -16
- package/dist/{Upload-CRpCHz3m.js → Upload-fnKNelcS.js} +14 -14
- package/dist/{UploadApi-B-7WPVHD.js → UploadApi-D_HwEoQY.js} +1 -1
- package/dist/{Year-BOL9ynRU.js → Year-BUO5CKKv.js} +4 -4
- package/dist/{Year-CwaPwkLN.js → Year-DJPzJlot.js} +1 -1
- package/dist/{main-CnPQ_RYM.js → main--j4fHmql.js} +2983 -2847
- package/dist/main.js +130 -128
- package/dist/style.css +1 -1
- package/esm/coms/controls/index.d.ts +2 -0
- package/esm/coms/headers/Index.vue.d.ts +21 -2
- package/esm/svcs/AppSvc.d.ts +4 -36
- package/esm/svcs/ControlSvc.d.ts +8 -8
- package/esm/svcs/PageSvc.d.ts +0 -12
- package/esm/svcs/StandardSvc.d.ts +13 -3
- package/esm/svcs/index.d.ts +1 -6
- package/package.json +2 -2
- package/dist/Image-BwJO-IEo.js +0 -9
- package/dist/Index-Bwy9Q7qy.js +0 -4
- package/dist/Index-Ch5_Jqsf.js +0 -4
- package/dist/Index-DnNVMYOZ.js +0 -4
- package/dist/Index-qOyfJhdG.js +0 -4
- package/dist/Index.vue_vue_type_style_index_0_lang-CTTyswoD.js +0 -122
- package/dist/Text-DqapEwUL.js +0 -4
- package/dist/assets/@intlify-BISCQg1h.js +0 -2189
- package/dist/assets/@vue-aVYGocXp.js +0 -93
- package/dist/assets/vue-i18n-CLr3brPz.js +0 -1670
@@ -1,15 +1,14 @@
|
|
1
1
|
import { defineComponent as Ue, toRefs as $e, ref as r, computed as Y, watch as Be, resolveComponent as p, openBlock as d, createElementBlock as H, normalizeClass as De, unref as e, createElementVNode as m, createVNode as h, withCtx as s, withModifiers as Le, createBlock as g, isRef as Z, Fragment as ee, renderList as le, toDisplayString as x, createCommentVNode as B, resolveDynamicComponent as Ne, normalizeStyle as Oe, createTextVNode as te, nextTick as ae } from "vue";
|
2
2
|
import "./assets/underscore-B0BCaBxV.js";
|
3
3
|
import "./assets/underscore.string-DVXD2SZo.js";
|
4
|
-
import { d as Pe, e as qe, t as oe, f as Ke, U as q, a as
|
4
|
+
import { d as Pe, e as qe, t as oe, f as Ke, g as je, U as q, a as Fe, O as He, h as Me, m as re, b as Ae, i as Ge, s as ue } from "./main--j4fHmql.js";
|
5
5
|
import "./assets/file-saver-CwlpTZSc.js";
|
6
6
|
import "./assets/moment-h96o7c8I.js";
|
7
7
|
import "./assets/liquidjs-C-LVcoaY.js";
|
8
|
-
import { _ as
|
9
|
-
import { _ as ne } from "./Index.vue_vue_type_script_setup_true_lang-DtZPmPAC.js";
|
8
|
+
import { _ as ne } from "./Index.vue_vue_type_script_setup_true_lang-C0QNQ1MJ.js";
|
10
9
|
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 = [
|
11
10
|
We
|
12
|
-
], 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__ */ Ue({
|
13
12
|
__name: "Single",
|
14
13
|
props: {
|
15
14
|
base: {},
|
@@ -19,7 +18,7 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
19
18
|
},
|
20
19
|
emits: ["navigate", "load", "succeed", "close"],
|
21
20
|
setup(se, { expose: ie, emit: de }) {
|
22
|
-
let D = de, me = se, { url: ce, base: M, route: z } = $e(me), f = r(), b = r(), c = r(), u = r(), _ = r(), L = r(), v = r({ table: null, layout: null }), w = r(), N = r([]), ve = r(), E = r(),
|
21
|
+
let D = de, me = se, { url: ce, base: M, route: z } = $e(me), f = r(), b = r(), c = r(), u = r(), _ = r(), L = r(), v = r({ table: null, layout: null }), w = r(), N = r([]), ve = r(), E = r(), R = r(), K = r(), C = r(), O = r(), i = r({ page: null, url: null, visible: !1, appendToBody: !1 }), k = r(!1), j = r(), S = r(), pe = (l) => !0, fe = (l) => {
|
23
22
|
let t = q.getPath(ce.value), a = q.getPath(l);
|
24
23
|
return t != a;
|
25
24
|
}, be = () => {
|
@@ -41,7 +40,7 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
41
40
|
}
|
42
41
|
return a;
|
43
42
|
}, we = (l, t, a) => {
|
44
|
-
(a.ctrlKey || k.value) && (j.value = l,
|
43
|
+
(a.ctrlKey || k.value) && (j.value = l, S.value = He.clone(t), k.value = !0, S.value.fields.forEach((n) => {
|
45
44
|
n.control.textualize = !1;
|
46
45
|
}));
|
47
46
|
}, G = (l) => {
|
@@ -61,13 +60,13 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
61
60
|
}, xe = (l) => {
|
62
61
|
let t = Object.keys(l)[0], a = t.substring(1, t.indexOf("]"));
|
63
62
|
u.value.find((T) => T.name == a).main || (w.value = a);
|
64
|
-
},
|
63
|
+
}, Re = (l, t = null, a = null) => {
|
65
64
|
ae(() => {
|
66
65
|
E.value.validate((n, T) => {
|
67
66
|
if (!n)
|
68
67
|
return xe(T), a && a(!1), !1;
|
69
68
|
let U = f.value.type == "Update" ? b.value.update.route : b.value.insert.route;
|
70
|
-
t && t(U, c.value),
|
69
|
+
t && t(U, c.value), Me.post(U, c.value).then(({ data: $, message: V }) => {
|
71
70
|
E.value.clearValidate(), re.success(V), G(c.value);
|
72
71
|
}).catch(({ code: $, data: V, message: X }) => {
|
73
72
|
if ($ != "ValidateError")
|
@@ -90,10 +89,10 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
90
89
|
});
|
91
90
|
}, Q = (l) => {
|
92
91
|
var a, n;
|
93
|
-
let t =
|
94
|
-
|
95
|
-
},
|
96
|
-
|
92
|
+
let t = Ae(l.module.type, l.module.name);
|
93
|
+
Ge.setTitle(t, l.module.env), f.value = l.module, b.value = l.next, c.value = ue.expandSet(l.schema, l.set), u.value = ue.expandSchema(l.schema, l.set), _.value = (a = u.value) == null ? void 0 : a[0], L.value = _.value.layouts[0], ((n = u.value) == null ? void 0 : n.length) > 1 && (w.value = u.value[1].name, v.value.table = u.value[1], v.value.layout = u.value[1].layouts[0]);
|
94
|
+
}, Se = (l) => {
|
95
|
+
R.value && R.value.resize && R.value.resize(l), C.value && C.value.resize && C.value.resize(l);
|
97
96
|
}, Te = (l, t) => {
|
98
97
|
if (l == "ctrlS") {
|
99
98
|
if (f.value.type == "Detail") {
|
@@ -123,8 +122,8 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
123
122
|
return Pe.getComponent(l, "partial", t);
|
124
123
|
}), W = Y(() => f.value.type.toLowerCase());
|
125
124
|
return Be(() => M.value, (l) => {
|
126
|
-
Q(l.data),
|
127
|
-
}), ie({ shouldLoad: pe, shouldSpin: fe, keyboard: Te, refresh: be, resize:
|
125
|
+
Q(l.data), R.value.update && R.value.update(l.data), C.value && C.value.update && C.value.update(l.data);
|
126
|
+
}), ie({ shouldLoad: pe, shouldSpin: fe, keyboard: Te, refresh: be, resize: Se }), (l, t) => {
|
128
127
|
const a = p("el-tooltip"), n = p("el-tab-pane"), T = p("el-tabs"), U = p("el-form"), $ = p("el-scrollbar"), V = p("el-popover"), X = p("el-form-item"), P = p("el-card"), y = p("el-drawer");
|
129
128
|
return d(), H("div", {
|
130
129
|
ref_key: "singleRef",
|
@@ -144,7 +143,7 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
144
143
|
default: s(() => [
|
145
144
|
h(ne, {
|
146
145
|
ref_key: "mainRef",
|
147
|
-
ref:
|
146
|
+
ref: R,
|
148
147
|
module: e(f),
|
149
148
|
schema: e(u),
|
150
149
|
table: e(_),
|
@@ -221,7 +220,7 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
221
220
|
route: e(z),
|
222
221
|
onCopy: e(_e),
|
223
222
|
onEdit: e(ye),
|
224
|
-
onSubmit: e(
|
223
|
+
onSubmit: e(Re),
|
225
224
|
onClose: e(Ce)
|
226
225
|
}, null, 40, ["schema", "table", "layout", "next", "set", "route", "onCopy", "onEdit", "onSubmit", "onClose"]))
|
227
226
|
]),
|
@@ -231,7 +230,7 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
231
230
|
}, {
|
232
231
|
header: s(() => [
|
233
232
|
m("div", Je, [
|
234
|
-
m("div", Qe, x(e(oe)("common.modify")) + " " + x(e(j)[e(
|
233
|
+
m("div", Qe, x(e(oe)("common.modify")) + " " + x(e(j)[e(S).show[0].name]), 1),
|
235
234
|
m("div", {
|
236
235
|
class: "row-close",
|
237
236
|
onClick: t[4] || (t[4] = (o) => Z(k) ? k.value = !1 : k = !1)
|
@@ -246,12 +245,12 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
246
245
|
"label-width": "80px"
|
247
246
|
}, {
|
248
247
|
default: s(() => [
|
249
|
-
(d(!0), H(ee, null, le(e(
|
248
|
+
(d(!0), H(ee, null, le(e(S).show, (o) => (d(), g(X, {
|
250
249
|
style: Oe(o.control.height ? `height: ${o.control.height}px;` : ""),
|
251
250
|
rules: o.rules
|
252
251
|
}, {
|
253
252
|
label: s(() => [
|
254
|
-
te(x(e(Ke)(e(
|
253
|
+
te(x(e(Ke)(e(S).name, o.name)) + " ", 1),
|
255
254
|
o.control.tooltip ? (d(), g(V, {
|
256
255
|
key: 0,
|
257
256
|
trigger: "hover",
|
@@ -269,9 +268,9 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
269
268
|
}, 1032, ["title"])) : B("", !0)
|
270
269
|
]),
|
271
270
|
default: s(() => [
|
272
|
-
h(
|
271
|
+
h(je, {
|
273
272
|
schema: e(u),
|
274
|
-
table: e(
|
273
|
+
table: e(S),
|
275
274
|
field: o,
|
276
275
|
set: e(c),
|
277
276
|
row: e(j)
|
@@ -306,7 +305,7 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
306
305
|
])
|
307
306
|
]),
|
308
307
|
default: s(() => [
|
309
|
-
h(e(
|
308
|
+
h(e(Fe), {
|
310
309
|
ref_key: "pageRef",
|
311
310
|
ref: O,
|
312
311
|
url: e(i).url,
|
@@ -321,5 +320,5 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
321
320
|
}
|
322
321
|
});
|
323
322
|
export {
|
324
|
-
|
323
|
+
dl as default
|
325
324
|
};
|
@@ -1,12 +1,12 @@
|
|
1
|
-
import { defineComponent as j, toRefs as q, ref as n, onMounted as G, watch as M, openBlock as O, createElementBlock as I, createVNode as J, unref as i, createElementVNode as K, normalizeStyle as P, nextTick as
|
2
|
-
import {
|
1
|
+
import { defineComponent as j, toRefs as q, ref as n, onMounted as G, watch as M, openBlock as O, createElementBlock as I, createVNode as J, unref as i, createElementVNode as K, normalizeStyle as P, nextTick as R } from "vue";
|
2
|
+
import { D as Q, s as U, n as W, A as X, m as Y, E as Z } from "./main--j4fHmql.js";
|
3
3
|
import "./assets/underscore.string-DVXD2SZo.js";
|
4
4
|
import "./assets/clone-BZn0cTAu.js";
|
5
5
|
import "./assets/file-saver-CwlpTZSc.js";
|
6
6
|
import "./assets/moment-h96o7c8I.js";
|
7
7
|
import "./assets/liquidjs-C-LVcoaY.js";
|
8
|
-
import { _ as
|
9
|
-
const
|
8
|
+
import { _ as ee } from "./SearchForm.vue_vue_type_style_index_0_lang-DFqj7f23.js";
|
9
|
+
const de = /* @__PURE__ */ j({
|
10
10
|
__name: "Statistic",
|
11
11
|
props: {
|
12
12
|
searchData: {},
|
@@ -20,17 +20,17 @@ const ue = /* @__PURE__ */ j({
|
|
20
20
|
},
|
21
21
|
emits: ["search"],
|
22
22
|
setup(A, { expose: C, emit: H }) {
|
23
|
-
let F = H, z = A, { route: D, module:
|
23
|
+
let F = H, z = A, { route: D, module: E, schema: m, table: p, layout: l, next: te, set: u, searchData: y } = q(z), s = null, x = null, g = n(), d = n(), v = n(), b = n(), { app: S } = Q.sys, B = (t) => {
|
24
24
|
T("search");
|
25
25
|
}, T = (t, e = null) => {
|
26
26
|
F(t, (r) => {
|
27
|
-
|
27
|
+
R(() => {
|
28
28
|
f(), e && e(r);
|
29
29
|
});
|
30
30
|
});
|
31
31
|
}, f = () => {
|
32
|
-
let t =
|
33
|
-
title: { text:
|
32
|
+
let t = X.distinct(u.value[l.value.table], (a) => a[l.value.date]), e = {
|
33
|
+
title: { text: E.value.title, left: "center", textStyle: { color: "#777" } },
|
34
34
|
//标题
|
35
35
|
tooltip: { trigger: "axis" },
|
36
36
|
//提示
|
@@ -63,11 +63,11 @@ const ue = /* @__PURE__ */ j({
|
|
63
63
|
//坐标
|
64
64
|
series: []
|
65
65
|
};
|
66
|
-
|
67
|
-
let r = l.value.fields.find((a) => a.group && a.name != l.value.date), _ =
|
66
|
+
S.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)");
|
67
|
+
let r = l.value.fields.find((a) => a.group && a.name != l.value.date), _ = p.value.fields.find((a) => a.name == r.name).control.data.data;
|
68
68
|
for (let a = 0; a < _.length; a++) {
|
69
69
|
let o = _[a];
|
70
|
-
o.color ||
|
70
|
+
o.color || Y.error("颜色字段不能为空");
|
71
71
|
let c = {
|
72
72
|
name: o.text,
|
73
73
|
type: "line",
|
@@ -93,7 +93,7 @@ const ue = /* @__PURE__ */ j({
|
|
93
93
|
}
|
94
94
|
}
|
95
95
|
};
|
96
|
-
|
96
|
+
S.theme == "dark" && (c.areaStyle.color = {
|
97
97
|
type: "linear",
|
98
98
|
x: 0,
|
99
99
|
y: 0,
|
@@ -116,45 +116,43 @@ const ue = /* @__PURE__ */ j({
|
|
116
116
|
e.xAxis.data.push(...t), s.setOption(e);
|
117
117
|
}, k = () => {
|
118
118
|
var r;
|
119
|
-
let t =
|
120
|
-
|
119
|
+
let t = Z.getHeight([(r = d.value) == null ? void 0 : r.$el]), e = b.value.getBoundingClientRect();
|
120
|
+
g.value = e.height - t - 10 - 1;
|
121
121
|
}, V = (t) => {
|
122
|
-
d.value.resize(t),
|
122
|
+
d.value.resize(t), R(() => {
|
123
123
|
k(), s == null || s.resize();
|
124
124
|
});
|
125
125
|
}, N = () => {
|
126
|
-
k(),
|
127
|
-
s = g.init(b.value), f();
|
128
|
-
});
|
126
|
+
k(), s = x.init(v.value), f();
|
129
127
|
};
|
130
128
|
return G(async () => {
|
131
|
-
y.value =
|
129
|
+
y.value = U.getConditionForm(m.value, D.value.query.condition), x = await W.getECharts(), N();
|
132
130
|
}), M(() => l.value, (t, e) => {
|
133
131
|
f();
|
134
132
|
}), C({ resize: V }), (t, e) => (O(), I("div", {
|
135
133
|
ref_key: "statisticRef",
|
136
|
-
ref:
|
134
|
+
ref: b,
|
137
135
|
class: "ha-statistic-layout"
|
138
136
|
}, [
|
139
|
-
J(
|
137
|
+
J(ee, {
|
140
138
|
ref_key: "searchRef",
|
141
139
|
ref: d,
|
142
|
-
schema: i(
|
143
|
-
table: i(
|
140
|
+
schema: i(m),
|
141
|
+
table: i(p),
|
144
142
|
layout: i(l),
|
145
143
|
set: i(u),
|
146
144
|
"search-data": i(y),
|
147
|
-
onChange: i(
|
145
|
+
onChange: i(B)
|
148
146
|
}, null, 8, ["schema", "table", "layout", "set", "search-data", "onChange"]),
|
149
147
|
K("div", {
|
150
148
|
ref_key: "chartRef",
|
151
|
-
ref:
|
149
|
+
ref: v,
|
152
150
|
class: "chart",
|
153
|
-
style: P({ height: i(
|
151
|
+
style: P({ height: i(g) + "px" })
|
154
152
|
}, null, 4)
|
155
153
|
], 512));
|
156
154
|
}
|
157
155
|
});
|
158
156
|
export {
|
159
|
-
|
157
|
+
de as default
|
160
158
|
};
|
@@ -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-DAlvmXf0.js";
|
3
3
|
const b = /* @__PURE__ */ c({
|
4
4
|
__name: "Stock",
|
5
5
|
props: {
|
@@ -1,13 +1,13 @@
|
|
1
1
|
import { defineComponent as F, toRefs as R, ref as T, onMounted as B, openBlock as E, createBlock as G, unref as h, withCtx as P, createElementVNode as A, createTextVNode as V, toDisplayString as b } from "vue";
|
2
|
-
import {
|
2
|
+
import { D as O, n as K, _ as N, A as j } from "./main--j4fHmql.js";
|
3
3
|
import "./assets/underscore.string-DVXD2SZo.js";
|
4
4
|
import "./assets/clone-BZn0cTAu.js";
|
5
5
|
import "./assets/file-saver-CwlpTZSc.js";
|
6
6
|
import "./assets/moment-h96o7c8I.js";
|
7
7
|
import "./assets/liquidjs-C-LVcoaY.js";
|
8
|
-
const
|
9
|
-
|
10
|
-
],
|
8
|
+
const z = /* @__PURE__ */ A("div", { class: "ha-empty" }, "暂无行情数据", -1), H = [
|
9
|
+
z
|
10
|
+
], te = /* @__PURE__ */ F({
|
11
11
|
__name: "Stock",
|
12
12
|
props: {
|
13
13
|
searchData: {},
|
@@ -20,8 +20,8 @@ const j = /* @__PURE__ */ A("div", { class: "ha-empty" }, "暂无行情数据",
|
|
20
20
|
set: {}
|
21
21
|
},
|
22
22
|
setup(k) {
|
23
|
-
let L = k, { module:
|
24
|
-
let o =
|
23
|
+
let L = k, { module: W, schema: $, table: v, layout: n, next: q, set: f } = R(L), p = null, d = null, y = "#04aa4e", x = "#ff5945", w = T(), u = { history: null, week: null, month: null }, { app: S } = O.sys, _ = (t) => {
|
24
|
+
let o = j.orderBy(t, (i) => i[n.value.time], !1), e = [], l = [], r = [];
|
25
25
|
for (let i = 0; i < o.length; i++) {
|
26
26
|
let a = o[i];
|
27
27
|
e.push(a[n.value.time]);
|
@@ -282,14 +282,14 @@ const j = /* @__PURE__ */ A("div", { class: "ha-empty" }, "暂无行情数据",
|
|
282
282
|
t.length > 0 && I(_(t));
|
283
283
|
};
|
284
284
|
return B(async () => {
|
285
|
-
d = await
|
286
|
-
}), (t, o) => (E(), G(h(
|
285
|
+
d = await K.getECharts(), Z();
|
286
|
+
}), (t, o) => (E(), G(h(N), null, {
|
287
287
|
default: P(() => [
|
288
288
|
A("div", {
|
289
289
|
ref_key: "chartRef",
|
290
290
|
ref: w,
|
291
291
|
class: "chart"
|
292
|
-
},
|
292
|
+
}, H, 512),
|
293
293
|
V(" 30日开盘振幅:" + b(h(u).month) + "% 7日开盘振幅:" + b(h(u).week) + "% 历史开盘振幅:" + b(h(u).history) + "% ", 1)
|
294
294
|
]),
|
295
295
|
_: 1
|
@@ -297,5 +297,5 @@ const j = /* @__PURE__ */ A("div", { class: "ha-empty" }, "暂无行情数据",
|
|
297
297
|
}
|
298
298
|
});
|
299
299
|
export {
|
300
|
-
|
300
|
+
te as _
|
301
301
|
};
|
@@ -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-DYPWj-d0.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),
|