halo-pc 1.0.21 → 1.0.22
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Article-C_3LULzy.js +200 -0
- package/dist/{ArticleFooter-CbvmQHCn.js → ArticleFooter-Do6I1mma.js} +24 -18
- package/dist/{Autocomplete-BrKsj5vx.js → Autocomplete-BLOOqTTn.js} +1 -1
- package/dist/Autocomplete-BLrbt1wN.js +53 -0
- package/dist/Autocomplete-C27XN8Sp.js +54 -0
- package/dist/{CSharp-DGmv2biT.js → CSharp-BGn9jf2B.js} +1 -1
- package/dist/{Calender-dCiW7eIK.js → Calender-4bSMqUzx.js} +4 -4
- package/dist/Callback-BHYDtogL.js +26 -0
- package/dist/Cascader-D3y3WjFF.js +87 -0
- package/dist/Cascader-D9Y8L7X2.js +47 -0
- package/dist/{Checkbox-DklZD5ff.js → Checkbox-DnTLeLjt.js} +1 -1
- package/dist/Checkbox-dDfYBhhc.js +76 -0
- package/dist/{Code-DVZ9QWgE.js → Code-Af5URLnL.js} +1 -1
- package/dist/Code-Bi9Y45vV.js +42 -0
- package/dist/Code-CWsSgkJq.js +60 -0
- package/dist/Code-QYs-sjcG.js +4 -0
- package/dist/Code.vue_vue_type_style_index_0_lang-CI6sLXKy.js +65 -0
- package/dist/Column-wzxM_-Vp.js +74 -0
- package/dist/Comment-BF8L1umD.js +104 -0
- package/dist/Compare-CjSQcnd3.js +43 -0
- package/dist/Compare-Cj_CPjIV.js +63 -0
- package/dist/Copy-BNt-Dwoo.js +49 -0
- package/dist/Custom-CYPkAqpf.js +57 -0
- package/dist/{DataExport-DAk1d4uG.js → DataExport-CHQtRKzA.js} +1 -1
- package/dist/{DataExport.vue_vue_type_script_setup_true_lang-Clh4Jvxi.js → DataExport.vue_vue_type_script_setup_true_lang-Dt2BAaAO.js} +42 -37
- package/dist/{DataImport-BLOSIbQ2.js → DataImport-CDcmH3Du.js} +1 -1
- package/dist/{DataImport.vue_vue_type_script_setup_true_lang-D5J7e_59.js → DataImport.vue_vue_type_script_setup_true_lang-dULXjbl_.js} +64 -60
- package/dist/{Date-D1KihBir.js → Date-BStpsA7n.js} +1 -1
- package/dist/Date-U1py5NaK.js +43 -0
- package/dist/DateRange-DxAx2gxI.js +63 -0
- package/dist/DateTime-B3609Ct6.js +44 -0
- package/dist/{DateTime-Dwg6aUf3.js → DateTime-CmJw1-WA.js} +1 -1
- package/dist/{DateTimeRange-Cir1-Js8.js → DateTimeRange-aDw57sTG.js} +19 -13
- package/dist/Daterange-C48t6usd.js +63 -0
- package/dist/{Decimal-tv9vqaXk.js → Decimal-Ca0K6NoZ.js} +1 -1
- package/dist/Delete-FhIvONUV.js +62 -0
- package/dist/{Detail-B2rtvufA.js → Detail-qqW0J946.js} +22 -17
- package/dist/Dictionary-CaXytFmK.js +59 -0
- package/dist/Email-H2DHJhMe.js +54 -0
- package/dist/{File-C63qevce.js → File-CjXewuui.js} +33 -28
- package/dist/Image-BSuCHshD.js +9 -0
- package/dist/Index-9KImKLrj.js +4 -0
- package/dist/Index-BIbR8SAU.js +178 -0
- package/dist/Index-BaoxkF9F.js +4 -0
- package/dist/{Index-Cc_CDbUJ.js → Index-BrI9x7i7.js} +1 -1
- package/dist/Index-CXR5RC6-.js +4 -0
- package/dist/{Index-B6Ec8rbl.js → Index-CpGonJ_m.js} +1 -1
- package/dist/{Index-Cev7Nudv.js → Index-DUgprnVp.js} +1 -1
- package/dist/{Index-BD6O3A9N.js → Index-icEhc88J.js} +25 -20
- package/dist/{Index.vue_vue_type_script_setup_true_lang-DaoT5edv.js → Index.vue_vue_type_script_setup_true_lang-Beb5UD_S.js} +21 -16
- package/dist/{Index.vue_vue_type_script_setup_true_lang-xNPG8cCE.js → Index.vue_vue_type_script_setup_true_lang-DJ8ZzZ2K.js} +21 -16
- package/dist/{Index.vue_vue_type_style_index_0_lang-F7HqBnCS.js → Index.vue_vue_type_style_index_0_lang-D7LuD-a2.js} +40 -35
- package/dist/{Install-CTAGNKPW.js → Install-FwXpJIWk.js} +29 -24
- package/dist/Int-CXl1QpEL.js +44 -0
- package/dist/Int-DAxz3ETu.js +46 -0
- package/dist/List-CV9bkdrq.js +79 -0
- package/dist/Maintaince-DZNq9aHX.js +20 -0
- package/dist/{Markdown-BJB6rQY8.js → Markdown-BhwqDlwa.js} +1 -1
- package/dist/{Month-ui1XorBW.js → Month-BEmnA7zU.js} +1 -1
- package/dist/Month-DXQBHoJU.js +43 -0
- package/dist/Month-bgEd_K7_.js +44 -0
- package/dist/{Normal-Cf7kP6RU.js → Normal-Dya4aqc7.js} +49 -45
- package/dist/Paging-JXDzxoM0.js +99 -0
- package/dist/{PagingHeader-BkFBl-r_.js → PagingHeader-BETGBySb.js} +31 -25
- package/dist/{PagingRow-eXCadgdO.js → PagingRow-BLqp1c9E.js} +28 -22
- package/dist/QueryApi-B5jI3sBl.js +20 -0
- package/dist/{Racebar-ClXzi9hV.js → Racebar-CozeXwLJ.js} +42 -37
- package/dist/{Radio-llyoK7PI.js → Radio-CuAxYw7j.js} +1 -1
- package/dist/{Register-BaHhaZMu.js → Register-B11jE2Ox.js} +70 -66
- package/dist/RichText-CxBE_cVg.js +47 -0
- package/dist/{SearchFooter-BgJxQrMo.js → SearchFooter-agTqPUGE.js} +1 -1
- package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-C6DtjpFD.js → SearchFooter.vue_vue_type_style_index_0_lang-C-1Yr5_9.js} +1 -1
- package/dist/{SearchForm-CroUQ_3K.js → SearchForm-DNKmE8W0.js} +1 -1
- package/dist/{SearchForm.vue_vue_type_style_index_0_lang-DEu6hHys.js → SearchForm.vue_vue_type_style_index_0_lang-BzrMV0Wr.js} +37 -33
- package/dist/Select-BPa5rx_H.js +86 -0
- package/dist/{Select-BYw63gZy.js → Select-CRfEAtba.js} +35 -30
- package/dist/{Select-BtNeUq9h.js → Select-MqDjnB-C.js} +1 -1
- package/dist/{Single-CCVi3Pcj.js → Single-C5Kkr9SY.js} +106 -102
- package/dist/{Statistic-g3nQvsbW.js → Statistic-Ce_FMw5O.js} +34 -30
- package/dist/{Stock-CNqLeSld.js → Stock-BTjhpaxv.js} +1 -1
- package/dist/{Stock-C6Fxo31l.js → Stock-D8AJmsvb.js} +1 -1
- package/dist/{Stock.vue_vue_type_style_index_0_lang-BqXBN6CJ.js → Stock.vue_vue_type_style_index_0_lang-DTj2ITJ6.js} +30 -25
- package/dist/{Switch-NMkH-rhl.js → Switch-gwGbi34o.js} +1 -1
- package/dist/{Table-DpA4dO4P.js → Table-C03eUBYm.js} +66 -61
- package/dist/{Table-Cdd_tPoL.js → Table-DA8aGGEH.js} +69 -66
- package/dist/{Text-DanSgaL9.js → Text-B5uPrGof.js} +18 -12
- package/dist/Text-D-VS-lCk.js +59 -0
- package/dist/Text-NRww74M3.js +4 -0
- package/dist/Text.vue_vue_type_style_index_0_lang-Fsbur1tJ.js +59 -0
- package/dist/TextLink-B_Qg6CnF.js +65 -0
- package/dist/{Textarea-HhP_VFJV.js → Textarea-gtXLL6Qe.js} +1 -1
- package/dist/Time-DYOIZ2Rv.js +43 -0
- package/dist/Timeline-B4AYezYA.js +59 -0
- package/dist/{Tree-Ck_7r3nf.js → Tree-CRDb0vS5.js} +101 -97
- package/dist/Tree-CTmXjN1O.js +122 -0
- package/dist/TreeNode-HFcGpAOb.js +42 -0
- package/dist/{Update-DrmLFoty.js → Update-EHyhYK5k.js} +20 -15
- package/dist/{UpdateChild-CGCn-Eh4.js → UpdateChild-CC3b9evd.js} +23 -17
- package/dist/Upload-CkQ-5tVg.js +72 -0
- package/dist/Upload-um4BYzwO.js +150 -0
- package/dist/UploadApi-BmdGJGjh.js +20 -0
- package/dist/Year-DKBG5ihv.js +47 -0
- package/dist/{Year-RGAEzf_V.js → Year-Lhvyb9Vk.js} +1 -1
- package/dist/assets/@intlify-BISCQg1h.js +2189 -0
- package/dist/assets/@vue-aVYGocXp.js +93 -0
- package/dist/assets/clone-BZn0cTAu.js +134 -0
- package/dist/assets/file-saver-CwlpTZSc.js +74 -0
- package/dist/assets/liquidjs-C-LVcoaY.js +2893 -0
- package/dist/assets/moment-h96o7c8I.js +2578 -0
- package/dist/assets/sprintf-js-BPTdvBYM.js +148 -0
- package/dist/assets/underscore-B0BCaBxV.js +1070 -0
- package/dist/assets/underscore.string-DVXD2SZo.js +425 -0
- package/dist/assets/util-deprecate-Dzun97re.js +28 -0
- package/dist/assets/vue-i18n-CLr3brPz.js +1670 -0
- package/dist/main-C1iALE1f.js +8947 -0
- package/dist/main.js +130 -130
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/Article-D3N6eVpH.js +0 -195
- package/dist/Autocomplete-C1Q-qo5y.js +0 -49
- package/dist/Autocomplete-C_t_3Onz.js +0 -48
- package/dist/Callback-BcjLHYz6.js +0 -20
- package/dist/Cascader-BMs1Kw-s.js +0 -81
- package/dist/Cascader-BoZLMQjq.js +0 -41
- package/dist/Checkbox-DeuCkQ_E.js +0 -70
- package/dist/Code-CmB3ZGnM.js +0 -54
- package/dist/Code-Q9ETcIfA.js +0 -36
- package/dist/Code-hiW76EUm.js +0 -4
- package/dist/Code.vue_vue_type_style_index_0_lang-DJO46RBx.js +0 -59
- package/dist/Column-K0p0pVuf.js +0 -69
- package/dist/Comment-B_jDWUXE.js +0 -98
- package/dist/Compare-CziDSVLD.js +0 -37
- package/dist/Compare-DFDzyQIR.js +0 -57
- package/dist/Copy-gHXEFE58.js +0 -43
- package/dist/Custom-DS1OrDHT.js +0 -51
- package/dist/Date-BOrgXdKV.js +0 -37
- package/dist/DateRange-Clg_We_d.js +0 -57
- package/dist/DateTime-Ba-L9NIq.js +0 -38
- package/dist/Daterange-Gaj6hNOK.js +0 -57
- package/dist/Delete-HzVURBlh.js +0 -57
- package/dist/Dictionary-DKnp-UJn.js +0 -55
- package/dist/Email-CpOxaSSw.js +0 -48
- package/dist/Image-DRIunv3_.js +0 -9
- package/dist/Index-DSKuNKCT.js +0 -4
- package/dist/Index-QIBRYf1L.js +0 -4
- package/dist/Index-ZOfKMgat.js +0 -4
- package/dist/Index-bxLda8lZ.js +0 -174
- package/dist/Int-DmNjhEfK.js +0 -38
- package/dist/Int-nUzbSSOv.js +0 -41
- package/dist/List-gNI3y_wH.js +0 -74
- package/dist/Maintaince-pTASKuMA.js +0 -14
- package/dist/Month-CHfaIo8p.js +0 -38
- package/dist/Month-DgztqRaq.js +0 -37
- package/dist/Paging-CBgVct8q.js +0 -95
- package/dist/QueryApi-Wf86Sm6m.js +0 -13
- package/dist/RichText-Cc_jptgY.js +0 -41
- package/dist/Select-wxKjwxJj.js +0 -80
- package/dist/Text-DgZjeg-u.js +0 -4
- package/dist/Text-GuLK7BYX.js +0 -53
- package/dist/Text.vue_vue_type_style_index_0_lang-CYGKr6vh.js +0 -53
- package/dist/TextLink-B_Ur1pg0.js +0 -59
- package/dist/Time-CmyrAm3i.js +0 -37
- package/dist/Timeline-B85T2wBn.js +0 -53
- package/dist/Tree-OqvNLgYj.js +0 -118
- package/dist/TreeNode-Ba2f55wK.js +0 -37
- package/dist/Upload-D9HeSZCg.js +0 -68
- package/dist/Upload-DXADyB6r.js +0 -147
- package/dist/UploadApi-DAT-xdsM.js +0 -13
- package/dist/Year-Dx_qNPrz.js +0 -41
- package/dist/assets/halo-fe-idvmXC0t.js +0 -15923
- package/dist/main-COiaaxGk.js +0 -3542
@@ -1,10 +1,15 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import
|
3
|
-
import {
|
1
|
+
import { defineComponent as A, toRefs as D, ref as f, computed as H, resolveComponent as b, openBlock as c, createBlock as y, unref as n, withKeys as L, withModifiers as O, isRef as U, withCtx as V, createElementBlock as w, Fragment as $, renderList as q, createElementVNode as z, toDisplayString as k, createCommentVNode as G, nextTick as I } from "vue";
|
2
|
+
import "./assets/underscore-B0BCaBxV.js";
|
3
|
+
import { j as J, v as P, w as Q, h as W } from "./main-C1iALE1f.js";
|
4
|
+
import "./assets/underscore.string-DVXD2SZo.js";
|
5
|
+
import "./assets/clone-BZn0cTAu.js";
|
6
|
+
import "./assets/file-saver-CwlpTZSc.js";
|
7
|
+
import "./assets/moment-h96o7c8I.js";
|
8
|
+
import "./assets/liquidjs-C-LVcoaY.js";
|
4
9
|
const X = { class: "option-text" }, Y = {
|
5
10
|
key: 0,
|
6
11
|
class: "option-suffix"
|
7
|
-
},
|
12
|
+
}, ue = /* @__PURE__ */ A({
|
8
13
|
__name: "Select",
|
9
14
|
props: {
|
10
15
|
schema: {},
|
@@ -16,35 +21,35 @@ const X = { class: "option-text" }, Y = {
|
|
16
21
|
},
|
17
22
|
emits: ["submit", "change", "update:modelValue"],
|
18
23
|
setup(C, { emit: E }) {
|
19
|
-
let s = E, B = C, { schema: S, field:
|
24
|
+
let s = E, B = C, { schema: S, field: r, table: p, set: h, row: R, modelValue: m } = D(B), x = f(), g = f(), v = f(!1), d = f(r.value.control.data.data), j = (t) => {
|
20
25
|
t == "" && (t = null);
|
21
26
|
let e;
|
22
|
-
if (P.isString(t) &&
|
23
|
-
let a =
|
27
|
+
if (P.isString(t) && r.value.control.multiple ? e = t.join(",") : e = t, u.value = e, r.value.control.text) {
|
28
|
+
let a = p.value.fields.find((l) => l.name == r.value.control.text), o;
|
24
29
|
e && (o = d.value.find((i) => i.value == e).text);
|
25
30
|
debugger;
|
26
31
|
R.value[a.name] = o;
|
27
32
|
}
|
28
|
-
|
29
|
-
},
|
33
|
+
_(p.value, r.value), s("change", t);
|
34
|
+
}, K = () => {
|
30
35
|
s("submit");
|
31
36
|
}, N = () => {
|
32
|
-
},
|
37
|
+
}, T = () => {
|
33
38
|
v.value = !0;
|
34
39
|
let t = { text: g.value, conditions: [] };
|
35
|
-
|
40
|
+
r.value.control.data.conditions.forEach((e) => {
|
36
41
|
let a = h.value[e.table].filter((l) => l[e.field] != null).map((l) => l[e.field]), o = a.length == 0 ? null : a.join(",");
|
37
42
|
t.conditions.push({ name: e.name, value: o });
|
38
|
-
}),
|
43
|
+
}), W.post(r.value.control.data.route, t).then(({ data: e }) => {
|
39
44
|
d.value = e;
|
40
45
|
}).finally(() => {
|
41
46
|
v.value = !1, I(() => {
|
42
|
-
let e = d.value.find((a) => a.value ==
|
47
|
+
let e = d.value.find((a) => a.value == u.value);
|
43
48
|
x.value.scrollToOption(e);
|
44
49
|
});
|
45
50
|
});
|
46
51
|
}, F = (t) => {
|
47
|
-
g.value = t,
|
52
|
+
g.value = t, T();
|
48
53
|
}, M = (t, e) => {
|
49
54
|
let a = [];
|
50
55
|
return S.value.forEach((o) => {
|
@@ -54,20 +59,20 @@ const X = { class: "option-text" }, Y = {
|
|
54
59
|
});
|
55
60
|
});
|
56
61
|
}), a;
|
57
|
-
},
|
62
|
+
}, _ = (t, e) => {
|
58
63
|
M(t, e).forEach((o) => {
|
59
|
-
|
64
|
+
Q.setRowsValue(null, h.value, o.table, o.field), _(o.table, o.field);
|
60
65
|
});
|
61
|
-
},
|
66
|
+
}, u = H({
|
62
67
|
get() {
|
63
|
-
return
|
68
|
+
return r.value.control.multiple ? m.value == null ? [] : m.value.toString().split(",") : m.value;
|
64
69
|
},
|
65
70
|
set(t) {
|
66
71
|
s("update:modelValue", t), s("change", t);
|
67
72
|
}
|
68
73
|
});
|
69
74
|
return (t, e) => {
|
70
|
-
const a =
|
75
|
+
const a = b("el-option"), o = b("el-select");
|
71
76
|
return c(), y(o, {
|
72
77
|
ref_key: "selectRef",
|
73
78
|
ref: x,
|
@@ -78,26 +83,26 @@ const X = { class: "option-text" }, Y = {
|
|
78
83
|
"remote-show-suffix": "",
|
79
84
|
"loading-text": "加载中",
|
80
85
|
clearable: "",
|
81
|
-
placeholder: n(J)(n(
|
82
|
-
multiple: n(
|
86
|
+
placeholder: n(J)(n(p).name, n(r).name),
|
87
|
+
multiple: n(r).control.multiple,
|
83
88
|
"remote-method": n(F),
|
84
89
|
loading: n(v),
|
85
|
-
disabled: n(
|
86
|
-
onKeyup:
|
90
|
+
disabled: n(r).control.readonly,
|
91
|
+
onKeyup: L(O(n(K), ["alt"]), ["enter", "native"]),
|
87
92
|
onBlur: n(N),
|
88
|
-
onChange: n(
|
89
|
-
modelValue: n(
|
90
|
-
"onUpdate:modelValue": e[0] || (e[0] = (l) =>
|
93
|
+
onChange: n(j),
|
94
|
+
modelValue: n(u),
|
95
|
+
"onUpdate:modelValue": e[0] || (e[0] = (l) => U(u) ? u.value = l : u = l)
|
91
96
|
}, {
|
92
97
|
default: V(() => [
|
93
|
-
(c(!0),
|
98
|
+
(c(!0), w($, null, q(n(d), (l, i) => (c(), y(a, {
|
94
99
|
label: `${l.text}${l.suffix ? "(" + l.suffix + ")" : ""}`,
|
95
100
|
value: l.value,
|
96
101
|
key: l.value
|
97
102
|
}, {
|
98
103
|
default: V(() => [
|
99
|
-
|
100
|
-
l.suffix ? (c(),
|
104
|
+
z("span", X, k(l.text), 1),
|
105
|
+
l.suffix ? (c(), w("span", Y, "(" + k(l.suffix) + ")", 1)) : G("", !0)
|
101
106
|
]),
|
102
107
|
_: 2
|
103
108
|
}, 1032, ["label", "value"]))), 128))
|
@@ -108,5 +113,5 @@ const X = { class: "option-text" }, Y = {
|
|
108
113
|
}
|
109
114
|
});
|
110
115
|
export {
|
111
|
-
|
116
|
+
ue as default
|
112
117
|
};
|
@@ -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-CaXytFmK.js")), n = a, { schema: m, table: s, field: d, set: i, row: p, modelValue: l } = c(n);
|
14
14
|
return (_, t) => (b(), V(e(r), {
|
15
15
|
schema: e(m),
|
16
16
|
table: e(s),
|
@@ -1,11 +1,15 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import
|
3
|
-
import
|
4
|
-
import {
|
5
|
-
import
|
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
|
+
import "./assets/underscore-B0BCaBxV.js";
|
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 je, O as Fe, h as He, m as re, b as Me, i as Ae, s as ue } from "./main-C1iALE1f.js";
|
5
|
+
import "./assets/file-saver-CwlpTZSc.js";
|
6
|
+
import "./assets/moment-h96o7c8I.js";
|
7
|
+
import "./assets/liquidjs-C-LVcoaY.js";
|
8
|
+
import { _ as Ge } from "./Index.vue_vue_type_style_index_0_lang-D7LuD-a2.js";
|
9
|
+
import { _ as ne } from "./Index.vue_vue_type_script_setup_true_lang-DJ8ZzZ2K.js";
|
6
10
|
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
11
|
We
|
8
|
-
], Ye = /* @__PURE__ */ m("i", { class: "fa fa-question-circle icon-question" }, null, -1), Ze = { class: "el-drawer__title" }, el = ["href"],
|
12
|
+
], Ye = /* @__PURE__ */ m("i", { class: "fa fa-question-circle icon-question" }, null, -1), Ze = { class: "el-drawer__title" }, el = ["href"], ml = /* @__PURE__ */ Ue({
|
9
13
|
__name: "Single",
|
10
14
|
props: {
|
11
15
|
base: {},
|
@@ -15,68 +19,68 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
15
19
|
},
|
16
20
|
emits: ["navigate", "load", "succeed", "close"],
|
17
21
|
setup(se, { expose: ie, emit: de }) {
|
18
|
-
let
|
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(), S = r(), K = r(), C = r(), O = r(), i = r({ page: null, url: null, visible: !1, appendToBody: !1 }), k = r(!1), j = r(), R = r(), pe = (l) => !0, fe = (l) => {
|
19
23
|
let t = q.getPath(ce.value), a = q.getPath(l);
|
20
24
|
return t != a;
|
21
25
|
}, be = () => {
|
22
26
|
Ve();
|
23
|
-
}, ye = (l, t) => {
|
24
|
-
G("copy", l, t);
|
25
27
|
}, _e = (l, t) => {
|
26
|
-
|
28
|
+
A("copy", l, t);
|
29
|
+
}, ye = (l, t) => {
|
30
|
+
A("update", l, t);
|
27
31
|
}, he = () => {
|
28
32
|
i.value.visible = !1;
|
29
|
-
},
|
33
|
+
}, A = (l, t, a) => {
|
30
34
|
let n = ge(l, t);
|
31
|
-
a.ctrlKey ?
|
35
|
+
a.ctrlKey ? D("navigate", n) : (i.value.appendToBody = a.altKey, i.value.page = l, i.value.url = n, i.value.visible = !0);
|
32
36
|
}, ge = (l, t = null) => {
|
33
37
|
let a = `${b.value[l].route}`;
|
34
38
|
if (t != null) {
|
35
|
-
let n = t[
|
39
|
+
let n = t[_.value.key.name];
|
36
40
|
a += `?id=${n}`;
|
37
41
|
}
|
38
42
|
return a;
|
39
43
|
}, we = (l, t, a) => {
|
40
|
-
(a.ctrlKey || k.value) && (
|
44
|
+
(a.ctrlKey || k.value) && (j.value = l, R.value = Fe.clone(t), k.value = !0, R.value.fields.forEach((n) => {
|
41
45
|
n.control.textualize = !1;
|
42
46
|
}));
|
43
|
-
},
|
44
|
-
i.value.visible = !1,
|
47
|
+
}, G = (l) => {
|
48
|
+
i.value.visible = !1, D("succeed", W.value, l);
|
45
49
|
}, Ce = () => {
|
46
|
-
|
50
|
+
D("close");
|
47
51
|
}, I = (l, t, a, n, T) => {
|
48
52
|
}, J = (l, t) => {
|
49
53
|
if (t) {
|
50
|
-
|
54
|
+
L.value = _.value.layouts.find((a) => a.type == l);
|
51
55
|
return;
|
52
56
|
}
|
53
57
|
v.value.layout = v.value.table.layouts.find((a) => a.type == l);
|
54
58
|
}, ke = (l) => {
|
55
|
-
let t =
|
59
|
+
let t = u.value.find((a) => a.name == l);
|
56
60
|
v.value.table = t, v.value.layout = t.layouts[0];
|
57
61
|
}, xe = (l) => {
|
58
62
|
let t = Object.keys(l)[0], a = t.substring(1, t.indexOf("]"));
|
59
|
-
|
60
|
-
},
|
63
|
+
u.value.find((T) => T.name == a).main || (w.value = a);
|
64
|
+
}, Se = (l, t = null, a = null) => {
|
61
65
|
ae(() => {
|
62
66
|
E.value.validate((n, T) => {
|
63
67
|
if (!n)
|
64
68
|
return xe(T), a && a(!1), !1;
|
65
|
-
let
|
66
|
-
t && t(
|
67
|
-
E.value.clearValidate(),
|
68
|
-
}).catch(({ code:
|
69
|
-
if (
|
69
|
+
let U = f.value.type == "Update" ? b.value.update.route : b.value.insert.route;
|
70
|
+
t && t(U, c.value), He.post(U, c.value).then(({ data: $, message: V }) => {
|
71
|
+
E.value.clearValidate(), re.success(V), G(c.value);
|
72
|
+
}).catch(({ code: $, data: V, message: X }) => {
|
73
|
+
if ($ != "ValidateError")
|
70
74
|
return;
|
71
|
-
|
72
|
-
let
|
73
|
-
if (
|
74
|
-
let
|
75
|
-
|
75
|
+
N.value = V;
|
76
|
+
let P = V.find((y) => y.table !== _.value.name);
|
77
|
+
if (P) {
|
78
|
+
let y = u.value.find((o) => o.name == P.table);
|
79
|
+
y && (w.value = y.name);
|
76
80
|
}
|
77
81
|
ae(() => {
|
78
|
-
E.value.clearValidate(), E.value.validate((
|
79
|
-
|
82
|
+
E.value.clearValidate(), E.value.validate((y, o) => {
|
83
|
+
y || (a && a(!1), N.value = []);
|
80
84
|
});
|
81
85
|
});
|
82
86
|
}).finally(() => {
|
@@ -87,73 +91,73 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
87
91
|
}, Q = (l) => {
|
88
92
|
var a, n;
|
89
93
|
let t = Me(l.module.type, l.module.name);
|
90
|
-
|
91
|
-
},
|
92
|
-
|
94
|
+
Ae.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), _.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]);
|
95
|
+
}, Re = (l) => {
|
96
|
+
S.value && S.value.resize && S.value.resize(l), C.value && C.value.resize && C.value.resize(l);
|
93
97
|
}, Te = (l, t) => {
|
94
98
|
if (l == "ctrlS") {
|
95
|
-
if (
|
96
|
-
if (!
|
99
|
+
if (f.value.type == "Detail") {
|
100
|
+
if (!O.value || !O.value.keyboard)
|
97
101
|
return !1;
|
98
|
-
|
102
|
+
O.value.keyboard(l, t);
|
99
103
|
return;
|
100
104
|
}
|
101
|
-
|
105
|
+
F(t);
|
102
106
|
}
|
103
107
|
}, Ve = () => {
|
104
108
|
let l = q.getUrl(z.value.path, z.value.query);
|
105
|
-
|
109
|
+
D("load", l, !1, (t) => {
|
106
110
|
});
|
107
111
|
};
|
108
112
|
(() => {
|
109
|
-
Q(
|
113
|
+
Q(M.value.data);
|
110
114
|
})();
|
111
|
-
let
|
112
|
-
if (!
|
113
|
-
|
115
|
+
let F = (l) => {
|
116
|
+
if (!K.value.submit) {
|
117
|
+
re.notify("提示", "请在子组件暴露submit方法来实现快捷提交", "warning");
|
114
118
|
return;
|
115
119
|
}
|
116
|
-
|
120
|
+
K.value.submit(l);
|
117
121
|
}, ze = Y(() => {
|
118
|
-
let l = `/${
|
119
|
-
return
|
120
|
-
}), W = Y(() =>
|
121
|
-
return
|
122
|
-
Q(l.data),
|
123
|
-
}), ie({ shouldLoad:
|
124
|
-
const a =
|
125
|
-
return d(),
|
122
|
+
let l = `/${_.value.name}/update`, t = f.value.type == "Detail" ? "detail" : "update";
|
123
|
+
return Pe.getComponent(l, "partial", t);
|
124
|
+
}), W = Y(() => f.value.type.toLowerCase());
|
125
|
+
return Be(() => M.value, (l) => {
|
126
|
+
Q(l.data), S.value.update && S.value.update(l.data), C.value && C.value.update && C.value.update(l.data);
|
127
|
+
}), ie({ shouldLoad: pe, shouldSpin: fe, keyboard: Te, refresh: be, resize: Re }), (l, t) => {
|
128
|
+
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
|
+
return d(), H("div", {
|
126
130
|
ref_key: "singleRef",
|
127
131
|
ref: ve,
|
128
|
-
class:
|
132
|
+
class: De(["ha-single-page", { [e(W) + "-page"]: !0, editing: e(k) }])
|
129
133
|
}, [
|
130
134
|
m("div", Ie, [
|
131
|
-
h(
|
135
|
+
h($, { class: "main-scroller" }, {
|
132
136
|
default: s(() => [
|
133
|
-
h(
|
137
|
+
h(U, {
|
134
138
|
ref_key: "formRef",
|
135
139
|
ref: E,
|
136
140
|
model: e(c),
|
137
|
-
onSubmit: t[3] || (t[3] =
|
141
|
+
onSubmit: t[3] || (t[3] = Le(() => {
|
138
142
|
}, ["prevent"]))
|
139
143
|
}, {
|
140
144
|
default: s(() => [
|
141
145
|
h(ne, {
|
142
146
|
ref_key: "mainRef",
|
143
|
-
ref:
|
144
|
-
module: e(
|
145
|
-
schema: e(
|
146
|
-
table: e(
|
147
|
-
layout: e(
|
147
|
+
ref: S,
|
148
|
+
module: e(f),
|
149
|
+
schema: e(u),
|
150
|
+
table: e(_),
|
151
|
+
layout: e(L),
|
148
152
|
next: e(b),
|
149
153
|
set: e(c),
|
150
154
|
route: e(z),
|
151
|
-
"validate-errors": e(
|
155
|
+
"validate-errors": e(N),
|
152
156
|
onChange: e(I),
|
153
157
|
onLayoutChange: t[0] || (t[0] = (o) => e(J)(o, !0)),
|
154
|
-
onSubmit: e(
|
158
|
+
onSubmit: e(F)
|
155
159
|
}, null, 8, ["module", "schema", "table", "layout", "next", "set", "route", "validate-errors", "onChange", "onSubmit"]),
|
156
|
-
e(
|
160
|
+
e(u).length > 1 ? (d(), g(T, {
|
157
161
|
key: 0,
|
158
162
|
type: "border-card",
|
159
163
|
onTabChange: e(ke),
|
@@ -161,7 +165,7 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
161
165
|
"onUpdate:modelValue": t[1] || (t[1] = (o) => Z(w) ? w.value = o : w = o)
|
162
166
|
}, {
|
163
167
|
default: s(() => [
|
164
|
-
(d(!0),
|
168
|
+
(d(!0), H(ee, null, le(e(u).filter((o, Ee) => Ee > 0), (o) => (d(), g(n, {
|
165
169
|
name: o.name,
|
166
170
|
key: o.name
|
167
171
|
}, {
|
@@ -172,7 +176,7 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
172
176
|
disabled: !o.tooltip
|
173
177
|
}, {
|
174
178
|
default: s(() => [
|
175
|
-
m("div", null, x(e(
|
179
|
+
m("div", null, x(e(qe)(o.table)), 1)
|
176
180
|
]),
|
177
181
|
_: 2
|
178
182
|
}, 1032, ["content", "disabled"])
|
@@ -181,53 +185,53 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
181
185
|
}, 1032, ["name"]))), 128))
|
182
186
|
]),
|
183
187
|
_: 1
|
184
|
-
}, 8, ["onTabChange", "modelValue"])) :
|
188
|
+
}, 8, ["onTabChange", "modelValue"])) : B("", !0),
|
185
189
|
e(v).table ? (d(), g(ne, {
|
186
190
|
key: 1,
|
187
191
|
ref_key: "childRef",
|
188
192
|
ref: C,
|
189
|
-
module: e(
|
190
|
-
schema: e(
|
193
|
+
module: e(f),
|
194
|
+
schema: e(u),
|
191
195
|
table: e(v).table,
|
192
196
|
layout: e(v).layout,
|
193
197
|
next: e(b),
|
194
198
|
set: e(c),
|
195
199
|
route: e(z),
|
196
|
-
"validate-errors": e(
|
200
|
+
"validate-errors": e(N),
|
197
201
|
onRowEdit: e(we),
|
198
202
|
onChange: e(I),
|
199
203
|
onLayoutChange: t[2] || (t[2] = (o) => e(J)(o, !1)),
|
200
|
-
onSubmit: e(
|
201
|
-
}, null, 8, ["module", "schema", "table", "layout", "next", "set", "route", "validate-errors", "onRowEdit", "onChange", "onSubmit"])) :
|
204
|
+
onSubmit: e(F)
|
205
|
+
}, null, 8, ["module", "schema", "table", "layout", "next", "set", "route", "validate-errors", "onRowEdit", "onChange", "onSubmit"])) : B("", !0)
|
202
206
|
]),
|
203
207
|
_: 1
|
204
208
|
}, 8, ["model"])
|
205
209
|
]),
|
206
210
|
_: 1
|
207
211
|
}),
|
208
|
-
(d(), g(
|
212
|
+
(d(), g(Ne(e(ze)), {
|
209
213
|
ref_key: "updateRef",
|
210
|
-
ref:
|
214
|
+
ref: K,
|
211
215
|
class: "main-footer",
|
212
|
-
schema: e(
|
213
|
-
table: e(
|
214
|
-
layout: e(
|
216
|
+
schema: e(u),
|
217
|
+
table: e(_),
|
218
|
+
layout: e(L),
|
215
219
|
next: e(b),
|
216
220
|
set: e(c),
|
217
221
|
route: e(z),
|
218
|
-
onCopy: e(
|
219
|
-
onEdit: e(
|
220
|
-
onSubmit: e(
|
222
|
+
onCopy: e(_e),
|
223
|
+
onEdit: e(ye),
|
224
|
+
onSubmit: e(Se),
|
221
225
|
onClose: e(Ce)
|
222
226
|
}, null, 40, ["schema", "table", "layout", "next", "set", "route", "onCopy", "onEdit", "onSubmit", "onClose"]))
|
223
227
|
]),
|
224
|
-
e(k) ? (d(), g(
|
228
|
+
e(k) ? (d(), g(P, {
|
225
229
|
key: 0,
|
226
230
|
class: "side-form"
|
227
231
|
}, {
|
228
232
|
header: s(() => [
|
229
233
|
m("div", Je, [
|
230
|
-
m("div", Qe, x(e(oe)("common.modify")) + " " + x(e(
|
234
|
+
m("div", Qe, x(e(oe)("common.modify")) + " " + x(e(j)[e(R).show[0].name]), 1),
|
231
235
|
m("div", {
|
232
236
|
class: "row-close",
|
233
237
|
onClick: t[4] || (t[4] = (o) => Z(k) ? k.value = !1 : k = !1)
|
@@ -235,19 +239,19 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
235
239
|
])
|
236
240
|
]),
|
237
241
|
default: s(() => [
|
238
|
-
h(
|
242
|
+
h($, null, {
|
239
243
|
default: s(() => [
|
240
|
-
h(
|
244
|
+
h(U, {
|
241
245
|
size: "small",
|
242
246
|
"label-width": "80px"
|
243
247
|
}, {
|
244
248
|
default: s(() => [
|
245
|
-
(d(!0),
|
246
|
-
style:
|
249
|
+
(d(!0), H(ee, null, le(e(R).show, (o) => (d(), g(X, {
|
250
|
+
style: Oe(o.control.height ? `height: ${o.control.height}px;` : ""),
|
247
251
|
rules: o.rules
|
248
252
|
}, {
|
249
253
|
label: s(() => [
|
250
|
-
te(x(e(
|
254
|
+
te(x(e(Ke)(e(R).name, o.name)) + " ", 1),
|
251
255
|
o.control.tooltip ? (d(), g(V, {
|
252
256
|
key: 0,
|
253
257
|
trigger: "hover",
|
@@ -262,15 +266,15 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
262
266
|
m("pre", null, x(o.control.tooltip.content), 1)
|
263
267
|
]),
|
264
268
|
_: 2
|
265
|
-
}, 1032, ["title"])) :
|
269
|
+
}, 1032, ["title"])) : B("", !0)
|
266
270
|
]),
|
267
271
|
default: s(() => [
|
268
|
-
h(
|
269
|
-
schema: e(
|
270
|
-
table: e(
|
272
|
+
h(Ge, {
|
273
|
+
schema: e(u),
|
274
|
+
table: e(R),
|
271
275
|
field: o,
|
272
276
|
set: e(c),
|
273
|
-
row: e(
|
277
|
+
row: e(j)
|
274
278
|
}, null, 8, ["schema", "table", "field", "set", "row"])
|
275
279
|
]),
|
276
280
|
_: 2
|
@@ -283,12 +287,12 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
283
287
|
})
|
284
288
|
]),
|
285
289
|
_: 1
|
286
|
-
})) :
|
287
|
-
e(i).page ? (d(), g(
|
290
|
+
})) : B("", !0),
|
291
|
+
e(i).page ? (d(), g(y, {
|
288
292
|
key: 1,
|
289
293
|
"destroy-on-close": "",
|
290
294
|
"append-to-body": e(i).appendToBody,
|
291
|
-
size: `${e(
|
295
|
+
size: `${e(f).width ?? "60%"}`,
|
292
296
|
modelValue: e(i).visible,
|
293
297
|
"onUpdate:modelValue": t[5] || (t[5] = (o) => e(i).visible = o)
|
294
298
|
}, {
|
@@ -302,20 +306,20 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
302
306
|
])
|
303
307
|
]),
|
304
308
|
default: s(() => [
|
305
|
-
h(e(
|
309
|
+
h(e(je), {
|
306
310
|
ref_key: "pageRef",
|
307
|
-
ref:
|
311
|
+
ref: O,
|
308
312
|
url: e(i).url,
|
309
|
-
onSucceed: e(
|
313
|
+
onSucceed: e(G),
|
310
314
|
onClose: e(he)
|
311
315
|
}, null, 8, ["url", "onSucceed", "onClose"])
|
312
316
|
]),
|
313
317
|
_: 1
|
314
|
-
}, 8, ["append-to-body", "size", "modelValue"])) :
|
318
|
+
}, 8, ["append-to-body", "size", "modelValue"])) : B("", !0)
|
315
319
|
], 2);
|
316
320
|
};
|
317
321
|
}
|
318
322
|
});
|
319
323
|
export {
|
320
|
-
|
324
|
+
ml as default
|
321
325
|
};
|