halo-pc 1.0.27 → 1.0.29
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{Article-CTqryR4L.js → Article-N3ZaJaLc.js} +75 -70
- package/dist/{ArticleFooter-BumGH5nC.js → ArticleFooter-sspAOJuS.js} +23 -17
- package/dist/Autocomplete-CD6CsF2X.js +54 -0
- package/dist/{Autocomplete-BNx0bErM.js → Autocomplete-DY6OaWAK.js} +1 -1
- package/dist/Autocomplete-DkkUx0lx.js +53 -0
- package/dist/{CSharp-Dt6H75E9.js → CSharp-BwNnAf8e.js} +1 -1
- package/dist/{Calender-DhKZyJri.js → Calender-VwwIDi3Q.js} +1 -1
- package/dist/Callback-BRrShVCU.js +26 -0
- package/dist/Cascader-CurlPJsQ.js +87 -0
- package/dist/Cascader-i3KkCfFF.js +47 -0
- package/dist/{Checkbox-C-iEGB0k.js → Checkbox-Bk98RtL7.js} +1 -1
- package/dist/Checkbox-CNMzO79X.js +76 -0
- package/dist/Code-BdDjNSqs.js +42 -0
- package/dist/{Code-Q_6THgGl.js → Code-C4XPPKO8.js} +1 -1
- package/dist/{Code-JtSSnUWC.js → Code-CRH4WNXz.js} +1 -1
- package/dist/Code-CqA6bVSZ.js +60 -0
- package/dist/Code.vue_vue_type_style_index_0_lang-Dkdu_fcm.js +65 -0
- package/dist/Column-BCz-Xp-3.js +75 -0
- package/dist/Comment-BoOQfrxv.js +104 -0
- package/dist/Compare-ChJu8LUo.js +44 -0
- package/dist/{Compare-DZVrBYEh.js → Compare-DxOXRPzs.js} +25 -19
- package/dist/Copy-DBUSr3OW.js +49 -0
- package/dist/Custom-CNQIPMHT.js +57 -0
- package/dist/{DataExport-DSz5371s.js → DataExport-B-0vVYMT.js} +1 -1
- package/dist/{DataExport.vue_vue_type_script_setup_true_lang-DL9q81Ti.js → DataExport.vue_vue_type_script_setup_true_lang-BvyBbSLP.js} +41 -36
- package/dist/{DataImport-CX7G70a7.js → DataImport-ApAPTQcq.js} +1 -1
- package/dist/DataImport.vue_vue_type_script_setup_true_lang-CKd0CAf_.js +176 -0
- package/dist/Date-BnRTPDSJ.js +43 -0
- package/dist/{Date-ytWe2gz8.js → Date-gMmfQ3pA.js} +1 -1
- package/dist/DateRange-BPQ2TOXk.js +63 -0
- package/dist/DateTime-CsZdXjmB.js +44 -0
- package/dist/{DateTime-p6YgmtGd.js → DateTime-Cz09I2-B.js} +1 -1
- package/dist/{DateTimeRange-DGobnXqs.js → DateTimeRange-DPjTS-A2.js} +17 -11
- package/dist/Daterange-DCyMLI8G.js +63 -0
- package/dist/{Decimal-BvyzJq1c.js → Decimal-Cpz-_Ef3.js} +1 -1
- package/dist/Delete-Di56R5Tf.js +62 -0
- package/dist/{Detail-DZJ0aUFr.js → Detail-DP1ReSaw.js} +22 -17
- package/dist/Dictionary-B8OMis9G.js +59 -0
- package/dist/Email-CCZH8SDT.js +54 -0
- package/dist/{File-BEBElTSS.js → File-BUw6o5UN.js} +32 -27
- package/dist/{Image-DDK05SW7.js → Image-DBjqi76B.js} +1 -1
- package/dist/Index-B6sevgc6.js +4 -0
- package/dist/{Index-DPwdcUO4.js → Index-BDVj7Dy2.js} +1 -1
- package/dist/Index-CZYVZtFI.js +178 -0
- package/dist/Index-Cch9emdC.js +4 -0
- package/dist/Index-CfpZf8By.js +4 -0
- package/dist/Index-Cn3HXkPm.js +4 -0
- package/dist/{Index-CuEyzMd0.js → Index-DuKtMNgH.js} +25 -20
- package/dist/{Index-BiF8qEWf.js → Index-Z8dMl0cU.js} +1 -1
- package/dist/{Index.vue_vue_type_script_setup_true_lang-Bp091zxs.js → Index.vue_vue_type_script_setup_true_lang-BJJPNo3Y.js} +20 -15
- package/dist/{Index.vue_vue_type_script_setup_true_lang-hjy21YuL.js → Index.vue_vue_type_script_setup_true_lang-DCxwPrIZ.js} +17 -12
- package/dist/{Install-CxuoWpHC.js → Install-CNE0J2Q9.js} +27 -22
- package/dist/Int-C5AxmjK0.js +46 -0
- package/dist/Int-RoCJiPje.js +44 -0
- package/dist/List-DJuE2QHL.js +79 -0
- package/dist/Maintaince-CdqWSHAZ.js +20 -0
- package/dist/{Markdown-x1hASyA-.js → Markdown-DKyCVBYy.js} +1 -1
- package/dist/{Month-Bb0tgF-k.js → Month-BfSG37wf.js} +1 -1
- package/dist/Month-OH6snasK.js +43 -0
- package/dist/Month-iU9F-vQ5.js +44 -0
- package/dist/{Normal-CYmy5sN7.js → Normal-DPJQ_Ds5.js} +70 -66
- package/dist/Paging-CYU3sSbD.js +99 -0
- package/dist/{PagingHeader-DWbFl1do.js → PagingHeader-CgWbC7R1.js} +30 -24
- package/dist/{PagingRow-CR2N1vgm.js → PagingRow-Y8lG-1cI.js} +26 -20
- package/dist/QueryApi-C3h4tWd0.js +20 -0
- package/dist/{Racebar-BsgDK6Zf.js → Racebar-CtFYJKrh.js} +42 -37
- package/dist/{Radio-B3Af-uZE.js → Radio-Bz2SE_FO.js} +1 -1
- package/dist/{Register-Cwr3iIZm.js → Register-CiK44o2W.js} +44 -40
- package/dist/RichText-BkhW8muI.js +47 -0
- package/dist/{SearchFooter-DiILcc_U.js → SearchFooter-D6O_c5DS.js} +1 -1
- package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-BsIg4tbY.js → SearchFooter.vue_vue_type_style_index_0_lang-BDe_uXW2.js} +1 -1
- package/dist/{SearchForm-BOw_kHs2.js → SearchForm-CZjHSE1s.js} +1 -1
- package/dist/{SearchForm.vue_vue_type_style_index_0_lang-GMYFgf1H.js → SearchForm.vue_vue_type_style_index_0_lang-CVeFjNjG.js} +40 -36
- package/dist/Select-BEgPZsaR.js +117 -0
- package/dist/Select-CY1CA4pv.js +86 -0
- package/dist/{Select-BdYG1KQE.js → Select-FFqI2hOh.js} +1 -1
- package/dist/{Single-DqCIZBIB.js → Single-BQRWqAOH.js} +103 -99
- package/dist/{Statistic-B9ZcUUk1.js → Statistic-CyqoTZZj.js} +37 -33
- package/dist/{Stock-BnBNtuo7.js → Stock-N57DPrDl.js} +1 -1
- package/dist/{Stock-BiSr7zAF.js → Stock-negSF4zD.js} +1 -1
- package/dist/{Stock.vue_vue_type_style_index_0_lang-CZPeF39q.js → Stock.vue_vue_type_style_index_0_lang-BuxuI7Wg.js} +31 -26
- package/dist/{Switch-BE4dQcja.js → Switch-g5K9zh4g.js} +1 -1
- package/dist/{Table-CaH_zu8W.js → Table-CHKHAajT.js} +77 -74
- package/dist/{Table-e0uLPRLG.js → Table-nB7wA6gP.js} +78 -73
- package/dist/{Text-BAw88r5O.js → Text-7oaEmWun.js} +19 -13
- package/dist/Text-BefOYKkr.js +4 -0
- package/dist/{Text-BDAob4mp.js → Text-KKwYRpSW.js} +21 -15
- package/dist/Text.vue_vue_type_style_index_0_lang-BrmC8Xhc.js +59 -0
- package/dist/TextLink-DoArgh5L.js +65 -0
- package/dist/{Textarea-CU5PjIoa.js → Textarea-DEvxrKMK.js} +1 -1
- package/dist/Time-D8Ikb-KB.js +43 -0
- package/dist/Timeline-BEt6ygzA.js +59 -0
- package/dist/{Tree-D-v632h1.js → Tree-caBJzrZQ.js} +105 -101
- package/dist/Tree-ftxBqmRQ.js +122 -0
- package/dist/TreeNode-XITOvihe.js +42 -0
- package/dist/{Update-DRAFce7_.js → Update-JgTiZCDi.js} +20 -15
- package/dist/{UpdateChild-DMC0FG4Z.js → UpdateChild-y0OPiT92.js} +23 -17
- package/dist/Upload-BlnOvJFg.js +150 -0
- package/dist/Upload-kUYBfIS2.js +72 -0
- package/dist/UploadApi-RRAsIVG7.js +20 -0
- package/dist/{Year-CpcMBvQ7.js → Year-C2_kuiZX.js} +1 -1
- package/dist/Year-Cre43mQI.js +47 -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/main-KTzfgTac.js +9105 -0
- package/dist/main.js +139 -140
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/Autocomplete-C9RS9-qw.js +0 -48
- package/dist/Autocomplete-DIucpEpj.js +0 -49
- package/dist/Callback-D6G_933H.js +0 -20
- package/dist/Cascader-C6t8Q18c.js +0 -41
- package/dist/Cascader-F_XWwXKY.js +0 -81
- package/dist/Checkbox-ipHs0O-8.js +0 -70
- package/dist/Code-DKtqow6y.js +0 -36
- package/dist/Code-LeguA9RL.js +0 -54
- package/dist/Code.vue_vue_type_style_index_0_lang-DmeXbg91.js +0 -59
- package/dist/Column-BeQwafyN.js +0 -70
- package/dist/Comment-DIcCHP9F.js +0 -98
- package/dist/Compare-Dzqm7kPE.js +0 -38
- package/dist/Copy-iLieXx22.js +0 -43
- package/dist/Custom-BGtEDHlD.js +0 -51
- package/dist/DataImport.vue_vue_type_script_setup_true_lang-BWS65Vp1.js +0 -172
- package/dist/Date-CNOCOcNz.js +0 -37
- package/dist/DateRange-CaIiObxN.js +0 -57
- package/dist/DateTime-CH6J1GoP.js +0 -38
- package/dist/Daterange-BUSKAGlK.js +0 -57
- package/dist/Delete-BeFC0gjD.js +0 -57
- package/dist/Dictionary-CsBiv-CI.js +0 -55
- package/dist/Email-Dwa6x3jW.js +0 -48
- package/dist/Index-Bpe7pY2Z.js +0 -4
- package/dist/Index-CUYQxzNd.js +0 -174
- package/dist/Index-DMnL8F7Y.js +0 -4
- package/dist/Index-DNG25ox2.js +0 -4
- package/dist/Index-DqUNI6MV.js +0 -4
- package/dist/Int-BFv18KXi.js +0 -38
- package/dist/Int-C0ijmdYS.js +0 -41
- package/dist/List-CfQzWq_5.js +0 -74
- package/dist/Maintaince-BzDEwQcU.js +0 -14
- package/dist/Month-Bp_Pfi_b.js +0 -37
- package/dist/Month-CKkjwzza.js +0 -38
- package/dist/Paging-DpoBp7x_.js +0 -95
- package/dist/QueryApi-VwISnk96.js +0 -13
- package/dist/RichText-CNahMrfb.js +0 -41
- package/dist/Select-BeNZqAP1.js +0 -112
- package/dist/Select-CqOE6uI8.js +0 -80
- package/dist/Text-5803XWI6.js +0 -4
- package/dist/Text.vue_vue_type_style_index_0_lang-D1JSHUmS.js +0 -53
- package/dist/TextLink-TYXcDAlo.js +0 -59
- package/dist/Time-Dd-Trib4.js +0 -37
- package/dist/Timeline-D6LCIkQp.js +0 -53
- package/dist/Tree-BKmFZrK3.js +0 -118
- package/dist/TreeNode-L_A5ZKy0.js +0 -37
- package/dist/Upload-DJRh4a7g.js +0 -68
- package/dist/Upload-Ozg_nOpI.js +0 -147
- package/dist/UploadApi-DVx69g-F.js +0 -13
- package/dist/Year-D7XGe2So.js +0 -41
- package/dist/assets/halo-fe-B-NiIGas.js +0 -12088
- package/dist/main-DB_sVyZe.js +0 -3620
@@ -0,0 +1,117 @@
|
|
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 k, Fragment as $, renderList as q, createElementVNode as z, toDisplayString as w, createCommentVNode as G, nextTick as I } from "vue";
|
2
|
+
import "./assets/underscore-B0BCaBxV.js";
|
3
|
+
import { k as J, w as P, x as Q, h as W } from "./main-KTzfgTac.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";
|
9
|
+
const X = { class: "option-text" }, Y = {
|
10
|
+
key: 0,
|
11
|
+
class: "option-suffix"
|
12
|
+
}, ue = /* @__PURE__ */ A({
|
13
|
+
__name: "Select",
|
14
|
+
props: {
|
15
|
+
schema: {},
|
16
|
+
table: {},
|
17
|
+
field: {},
|
18
|
+
set: {},
|
19
|
+
row: {},
|
20
|
+
modelValue: { type: [String, Number, Boolean, Array] }
|
21
|
+
},
|
22
|
+
emits: ["submit", "change", "update:modelValue"],
|
23
|
+
setup(C, { emit: E }) {
|
24
|
+
let s = E, B = C, { schema: S, field: r, table: p, set: v, row: R, modelValue: m } = D(B), x = f(), g = f(), h = f(!1), d = f(r.value.control.data.data), K = (t) => {
|
25
|
+
t == "" && (t = null);
|
26
|
+
let e;
|
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;
|
29
|
+
e && (o = d.value.find((i) => i.value == e).text);
|
30
|
+
debugger;
|
31
|
+
R.value[a.name] = o;
|
32
|
+
}
|
33
|
+
_(p.value, r.value), s("change", t);
|
34
|
+
}, N = () => {
|
35
|
+
s("submit");
|
36
|
+
}, T = () => {
|
37
|
+
}, j = () => {
|
38
|
+
h.value = !0;
|
39
|
+
let t = { text: g.value, conditions: [] };
|
40
|
+
r.value.control.data.conditions.forEach((e) => {
|
41
|
+
let a = v.value[e.table].filter((l) => l[e.field] != null).map((l) => l[e.field]), o = a.length == 0 ? null : a.join(",");
|
42
|
+
t.conditions.push({ name: e.name, value: o });
|
43
|
+
}), W.post(r.value.control.data.route, t).then(({ data: e }) => {
|
44
|
+
d.value = e;
|
45
|
+
}).finally(() => {
|
46
|
+
h.value = !1, I(() => {
|
47
|
+
let e = d.value.find((a) => a.value == u.value);
|
48
|
+
x.value.scrollToOption(e);
|
49
|
+
});
|
50
|
+
});
|
51
|
+
}, F = (t) => {
|
52
|
+
g.value = t, j();
|
53
|
+
}, M = (t, e) => {
|
54
|
+
let a = [];
|
55
|
+
return S.value.forEach((o) => {
|
56
|
+
o.fields.forEach((l) => {
|
57
|
+
l.dictionary && l.dictionary.conditions.forEach((i) => {
|
58
|
+
i.table == t.name && i.field == e.name && a.push({ table: o, field: l });
|
59
|
+
});
|
60
|
+
});
|
61
|
+
}), a;
|
62
|
+
}, _ = (t, e) => {
|
63
|
+
M(t, e).forEach((o) => {
|
64
|
+
Q.setRowsValue(null, v.value, o.table, o.field), _(o.table, o.field);
|
65
|
+
});
|
66
|
+
}, u = H({
|
67
|
+
get() {
|
68
|
+
return r.value.control.multiple ? m.value == null ? [] : m.value.toString().split(",") : m.value;
|
69
|
+
},
|
70
|
+
set(t) {
|
71
|
+
s("update:modelValue", t), s("change", t);
|
72
|
+
}
|
73
|
+
});
|
74
|
+
return (t, e) => {
|
75
|
+
const a = b("el-option"), o = b("el-select");
|
76
|
+
return c(), y(o, {
|
77
|
+
ref_key: "selectRef",
|
78
|
+
ref: x,
|
79
|
+
filterable: "",
|
80
|
+
remote: "",
|
81
|
+
"reserve-keyword": "",
|
82
|
+
"default-first-option": "",
|
83
|
+
"remote-show-suffix": "",
|
84
|
+
"loading-text": "加载中",
|
85
|
+
clearable: "",
|
86
|
+
placeholder: n(J)(n(p).name, n(r).name),
|
87
|
+
multiple: n(r).control.multiple,
|
88
|
+
"remote-method": n(F),
|
89
|
+
loading: n(h),
|
90
|
+
disabled: n(r).control.readonly,
|
91
|
+
onKeyup: L(O(n(N), ["alt"]), ["enter", "native"]),
|
92
|
+
onBlur: n(T),
|
93
|
+
onChange: n(K),
|
94
|
+
modelValue: n(u),
|
95
|
+
"onUpdate:modelValue": e[0] || (e[0] = (l) => U(u) ? u.value = l : u = l)
|
96
|
+
}, {
|
97
|
+
default: V(() => [
|
98
|
+
(c(!0), k($, null, q(n(d), (l, i) => (c(), y(a, {
|
99
|
+
label: `${l.text}${l.suffix ? "(" + l.suffix + ")" : ""}`,
|
100
|
+
value: l.value,
|
101
|
+
key: l.value
|
102
|
+
}, {
|
103
|
+
default: V(() => [
|
104
|
+
z("span", X, w(l.text), 1),
|
105
|
+
l.suffix ? (c(), k("span", Y, "(" + w(l.suffix) + ")", 1)) : G("", !0)
|
106
|
+
]),
|
107
|
+
_: 2
|
108
|
+
}, 1032, ["label", "value"]))), 128))
|
109
|
+
]),
|
110
|
+
_: 1
|
111
|
+
}, 8, ["placeholder", "multiple", "remote-method", "loading", "disabled", "onKeyup", "onBlur", "onChange", "modelValue"]);
|
112
|
+
};
|
113
|
+
}
|
114
|
+
});
|
115
|
+
export {
|
116
|
+
ue as default
|
117
|
+
};
|
@@ -0,0 +1,86 @@
|
|
1
|
+
import { defineComponent as K, toRefs as R, ref as i, computed as S, resolveComponent as p, openBlock as r, createBlock as c, unref as t, withKeys as M, withModifiers as N, isRef as F, withCtx as f, createElementBlock as h, Fragment as L, renderList as U, createElementVNode as j, toDisplayString as _, createCommentVNode as q } from "vue";
|
2
|
+
import "./assets/underscore-B0BCaBxV.js";
|
3
|
+
import "./assets/underscore.string-DVXD2SZo.js";
|
4
|
+
import "./assets/clone-BZn0cTAu.js";
|
5
|
+
import "./assets/file-saver-CwlpTZSc.js";
|
6
|
+
import "./assets/moment-h96o7c8I.js";
|
7
|
+
import { t as z, f as A, h as G } from "./main-KTzfgTac.js";
|
8
|
+
import "./assets/liquidjs-C-LVcoaY.js";
|
9
|
+
const H = { class: "option-text" }, I = {
|
10
|
+
key: 0,
|
11
|
+
class: "option-suffix"
|
12
|
+
}, ee = /* @__PURE__ */ K({
|
13
|
+
__name: "Select",
|
14
|
+
props: {
|
15
|
+
schema: {},
|
16
|
+
table: {},
|
17
|
+
field: {},
|
18
|
+
searchData: {},
|
19
|
+
modelValue: { type: [String, Boolean] }
|
20
|
+
},
|
21
|
+
emits: ["change", "submit", "update:modelValue"],
|
22
|
+
setup(v, { emit: x }) {
|
23
|
+
let s = x, b = v, { schema: J, table: g, field: a, searchData: y, modelValue: V } = R(b), k = i(!1), m = i(), d = i(a.value.control.data.data), C = () => {
|
24
|
+
s("submit");
|
25
|
+
}, w = () => {
|
26
|
+
}, B = (l) => {
|
27
|
+
m.value = l, D();
|
28
|
+
}, D = () => {
|
29
|
+
let l = { text: m.value, conditions: [] };
|
30
|
+
a.value.control.data.conditions.forEach((o) => {
|
31
|
+
let u = y.value[o.table][o.field];
|
32
|
+
l.conditions.push({ name: o.name, value: u });
|
33
|
+
}), G.post(a.value.control.data.route, l).then(({ data: o }) => {
|
34
|
+
d.value = o;
|
35
|
+
}).finally(() => {
|
36
|
+
k.value = !1;
|
37
|
+
});
|
38
|
+
}, n = S({
|
39
|
+
get() {
|
40
|
+
return V.value;
|
41
|
+
},
|
42
|
+
set(l) {
|
43
|
+
s("update:modelValue", l), s("change", l);
|
44
|
+
}
|
45
|
+
});
|
46
|
+
return (l, o) => {
|
47
|
+
const u = p("el-option"), E = p("el-select");
|
48
|
+
return r(), c(E, {
|
49
|
+
ref: "selectRef",
|
50
|
+
filterable: "",
|
51
|
+
remote: "",
|
52
|
+
"reserve-keyword": "",
|
53
|
+
clearable: "",
|
54
|
+
"default-first-option": "",
|
55
|
+
"remote-show-suffix": "",
|
56
|
+
placeholder: t(z)("common.please_choose") + t(A)(t(g).name, t(a).name),
|
57
|
+
multiple: t(a).control.multiple,
|
58
|
+
"loading-text": "加载中",
|
59
|
+
"remote-method": t(B),
|
60
|
+
disabled: t(a).control.readonly,
|
61
|
+
onKeyup: M(N(t(C), ["alt"]), ["enter", "native"]),
|
62
|
+
onChange: t(w),
|
63
|
+
modelValue: t(n),
|
64
|
+
"onUpdate:modelValue": o[0] || (o[0] = (e) => F(n) ? n.value = e : n = e)
|
65
|
+
}, {
|
66
|
+
default: f(() => [
|
67
|
+
(r(!0), h(L, null, U(t(d), (e, O) => (r(), c(u, {
|
68
|
+
label: e.text + (e.suffix ? "(" + e.suffix + ")" : ""),
|
69
|
+
value: e.value,
|
70
|
+
key: e.value
|
71
|
+
}, {
|
72
|
+
default: f(() => [
|
73
|
+
j("span", H, _(e.text), 1),
|
74
|
+
e.suffix ? (r(), h("span", I, "(" + _(e.suffix) + ")", 1)) : q("", !0)
|
75
|
+
]),
|
76
|
+
_: 2
|
77
|
+
}, 1032, ["label", "value"]))), 128))
|
78
|
+
]),
|
79
|
+
_: 1
|
80
|
+
}, 8, ["placeholder", "multiple", "remote-method", "disabled", "onKeyup", "onChange", "modelValue"]);
|
81
|
+
};
|
82
|
+
}
|
83
|
+
});
|
84
|
+
export {
|
85
|
+
ee as default
|
86
|
+
};
|
@@ -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-B8OMis9G.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,10 +1,14 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import
|
3
|
-
import
|
4
|
-
import {
|
5
|
-
|
6
|
-
|
7
|
-
|
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, 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-KTzfgTac.js";
|
5
|
+
import "./assets/file-saver-CwlpTZSc.js";
|
6
|
+
import "./assets/moment-h96o7c8I.js";
|
7
|
+
import "./assets/liquidjs-C-LVcoaY.js";
|
8
|
+
import { _ as ne } from "./Index.vue_vue_type_script_setup_true_lang-BJJPNo3Y.js";
|
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 = [
|
10
|
+
We
|
11
|
+
], Ye = /* @__PURE__ */ m("i", { class: "fa fa-question-circle icon-question" }, null, -1), Ze = { class: "el-drawer__title" }, el = ["href"], dl = /* @__PURE__ */ Ue({
|
8
12
|
__name: "Single",
|
9
13
|
props: {
|
10
14
|
base: {},
|
@@ -14,68 +18,68 @@ const Ge = { class: "ha-main-form" }, He = { class: "row-header" }, Ie = { class
|
|
14
18
|
},
|
15
19
|
emits: ["navigate", "load", "succeed", "close"],
|
16
20
|
setup(se, { expose: ie, emit: de }) {
|
17
|
-
let D = de, me = se, { url: ce, base:
|
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) => {
|
18
22
|
let t = q.getPath(ce.value), a = q.getPath(l);
|
19
23
|
return t != a;
|
20
24
|
}, be = () => {
|
21
25
|
Ve();
|
22
|
-
}, ye = (l, t) => {
|
23
|
-
J("copy", l, t);
|
24
26
|
}, _e = (l, t) => {
|
25
|
-
|
27
|
+
A("copy", l, t);
|
28
|
+
}, ye = (l, t) => {
|
29
|
+
A("update", l, t);
|
26
30
|
}, he = () => {
|
27
31
|
i.value.visible = !1;
|
28
|
-
},
|
32
|
+
}, A = (l, t, a) => {
|
29
33
|
let n = ge(l, t);
|
30
34
|
a.ctrlKey ? D("navigate", n) : (i.value.appendToBody = a.altKey, i.value.page = l, i.value.url = n, i.value.visible = !0);
|
31
35
|
}, ge = (l, t = null) => {
|
32
36
|
let a = `${b.value[l].route}`;
|
33
37
|
if (t != null) {
|
34
|
-
let n = t[
|
38
|
+
let n = t[_.value.key.name];
|
35
39
|
a += `?id=${n}`;
|
36
40
|
}
|
37
41
|
return a;
|
38
42
|
}, we = (l, t, a) => {
|
39
|
-
(a.ctrlKey || k.value) && (
|
43
|
+
(a.ctrlKey || k.value) && (j.value = l, S.value = He.clone(t), k.value = !0, S.value.fields.forEach((n) => {
|
40
44
|
n.control.textualize = !1;
|
41
45
|
}));
|
42
|
-
},
|
43
|
-
i.value.visible = !1, D("succeed",
|
46
|
+
}, G = (l) => {
|
47
|
+
i.value.visible = !1, D("succeed", W.value, l);
|
44
48
|
}, Ce = () => {
|
45
49
|
D("close");
|
46
|
-
},
|
47
|
-
},
|
50
|
+
}, I = (l, t, a, n, T) => {
|
51
|
+
}, J = (l, t) => {
|
48
52
|
if (t) {
|
49
|
-
L.value =
|
53
|
+
L.value = _.value.layouts.find((a) => a.type == l);
|
50
54
|
return;
|
51
55
|
}
|
52
56
|
v.value.layout = v.value.table.layouts.find((a) => a.type == l);
|
53
57
|
}, ke = (l) => {
|
54
|
-
let t =
|
58
|
+
let t = u.value.find((a) => a.name == l);
|
55
59
|
v.value.table = t, v.value.layout = t.layouts[0];
|
56
60
|
}, xe = (l) => {
|
57
61
|
let t = Object.keys(l)[0], a = t.substring(1, t.indexOf("]"));
|
58
|
-
|
62
|
+
u.value.find((T) => T.name == a).main || (w.value = a);
|
59
63
|
}, Re = (l, t = null, a = null) => {
|
60
64
|
ae(() => {
|
61
65
|
E.value.validate((n, T) => {
|
62
66
|
if (!n)
|
63
67
|
return xe(T), a && a(!1), !1;
|
64
|
-
let
|
65
|
-
t && t(
|
66
|
-
E.value.clearValidate(),
|
67
|
-
}).catch(({ code:
|
68
|
-
if (
|
68
|
+
let U = f.value.type == "Update" ? b.value.update.route : b.value.insert.route;
|
69
|
+
t && t(U, c.value), Me.post(U, c.value).then(({ data: $, message: V }) => {
|
70
|
+
E.value.clearValidate(), re.success(V), G(c.value);
|
71
|
+
}).catch(({ code: $, data: V, message: X }) => {
|
72
|
+
if ($ != "ValidateError")
|
69
73
|
return;
|
70
|
-
|
71
|
-
let
|
72
|
-
if (
|
73
|
-
let
|
74
|
-
|
74
|
+
N.value = V;
|
75
|
+
let P = V.find((y) => y.table !== _.value.name);
|
76
|
+
if (P) {
|
77
|
+
let y = u.value.find((o) => o.name == P.table);
|
78
|
+
y && (w.value = y.name);
|
75
79
|
}
|
76
80
|
ae(() => {
|
77
|
-
E.value.clearValidate(), E.value.validate((
|
78
|
-
|
81
|
+
E.value.clearValidate(), E.value.validate((y, o) => {
|
82
|
+
y || (a && a(!1), N.value = []);
|
79
83
|
});
|
80
84
|
});
|
81
85
|
}).finally(() => {
|
@@ -83,21 +87,21 @@ const Ge = { class: "ha-main-form" }, He = { class: "row-header" }, Ie = { class
|
|
83
87
|
});
|
84
88
|
});
|
85
89
|
});
|
86
|
-
},
|
90
|
+
}, Q = (l) => {
|
87
91
|
var a, n;
|
88
|
-
let t =
|
89
|
-
|
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]);
|
90
94
|
}, Se = (l) => {
|
91
95
|
R.value && R.value.resize && R.value.resize(l), C.value && C.value.resize && C.value.resize(l);
|
92
96
|
}, Te = (l, t) => {
|
93
97
|
if (l == "ctrlS") {
|
94
|
-
if (
|
95
|
-
if (!
|
98
|
+
if (f.value.type == "Detail") {
|
99
|
+
if (!O.value || !O.value.keyboard)
|
96
100
|
return !1;
|
97
|
-
|
101
|
+
O.value.keyboard(l, t);
|
98
102
|
return;
|
99
103
|
}
|
100
|
-
|
104
|
+
F(t);
|
101
105
|
}
|
102
106
|
}, Ve = () => {
|
103
107
|
let l = q.getUrl(z.value.path, z.value.query);
|
@@ -105,31 +109,31 @@ const Ge = { class: "ha-main-form" }, He = { class: "row-header" }, Ie = { class
|
|
105
109
|
});
|
106
110
|
};
|
107
111
|
(() => {
|
108
|
-
|
112
|
+
Q(M.value.data);
|
109
113
|
})();
|
110
|
-
let
|
111
|
-
if (!
|
112
|
-
|
114
|
+
let F = (l) => {
|
115
|
+
if (!K.value.submit) {
|
116
|
+
re.notify("提示", "请在子组件暴露submit方法来实现快捷提交", "warning");
|
113
117
|
return;
|
114
118
|
}
|
115
|
-
|
116
|
-
}, ze =
|
117
|
-
let l = `/${
|
118
|
-
return
|
119
|
-
}),
|
120
|
-
return Be(() =>
|
121
|
-
|
122
|
-
}), ie({ shouldLoad:
|
123
|
-
const a =
|
124
|
-
return d(),
|
119
|
+
K.value.submit(l);
|
120
|
+
}, ze = Y(() => {
|
121
|
+
let l = `/${_.value.name}/update`, t = f.value.type == "Detail" ? "detail" : "update";
|
122
|
+
return Pe.getComponent(l, "partial", t);
|
123
|
+
}), W = Y(() => f.value.type.toLowerCase());
|
124
|
+
return Be(() => M.value, (l) => {
|
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) => {
|
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");
|
128
|
+
return d(), H("div", {
|
125
129
|
ref_key: "singleRef",
|
126
130
|
ref: ve,
|
127
|
-
class: De(["ha-single-page", { [e(
|
131
|
+
class: De(["ha-single-page", { [e(W) + "-page"]: !0, editing: e(k) }])
|
128
132
|
}, [
|
129
|
-
m("div",
|
130
|
-
h(
|
133
|
+
m("div", Ie, [
|
134
|
+
h($, { class: "main-scroller" }, {
|
131
135
|
default: s(() => [
|
132
|
-
h(
|
136
|
+
h(U, {
|
133
137
|
ref_key: "formRef",
|
134
138
|
ref: E,
|
135
139
|
model: e(c),
|
@@ -140,19 +144,19 @@ const Ge = { class: "ha-main-form" }, He = { class: "row-header" }, Ie = { class
|
|
140
144
|
h(ne, {
|
141
145
|
ref_key: "mainRef",
|
142
146
|
ref: R,
|
143
|
-
module: e(
|
144
|
-
schema: e(
|
145
|
-
table: e(
|
147
|
+
module: e(f),
|
148
|
+
schema: e(u),
|
149
|
+
table: e(_),
|
146
150
|
layout: e(L),
|
147
151
|
next: e(b),
|
148
152
|
set: e(c),
|
149
153
|
route: e(z),
|
150
|
-
"validate-errors": e(
|
151
|
-
onChange: e(
|
152
|
-
onLayoutChange: t[0] || (t[0] = (o) => e(
|
153
|
-
onSubmit: e(
|
154
|
+
"validate-errors": e(N),
|
155
|
+
onChange: e(I),
|
156
|
+
onLayoutChange: t[0] || (t[0] = (o) => e(J)(o, !0)),
|
157
|
+
onSubmit: e(F)
|
154
158
|
}, null, 8, ["module", "schema", "table", "layout", "next", "set", "route", "validate-errors", "onChange", "onSubmit"]),
|
155
|
-
e(
|
159
|
+
e(u).length > 1 ? (d(), g(T, {
|
156
160
|
key: 0,
|
157
161
|
type: "border-card",
|
158
162
|
onTabChange: e(ke),
|
@@ -160,7 +164,7 @@ const Ge = { class: "ha-main-form" }, He = { class: "row-header" }, Ie = { class
|
|
160
164
|
"onUpdate:modelValue": t[1] || (t[1] = (o) => Z(w) ? w.value = o : w = o)
|
161
165
|
}, {
|
162
166
|
default: s(() => [
|
163
|
-
(d(!0),
|
167
|
+
(d(!0), H(ee, null, le(e(u).filter((o, Ee) => Ee > 0), (o) => (d(), g(n, {
|
164
168
|
name: o.name,
|
165
169
|
key: o.name
|
166
170
|
}, {
|
@@ -171,7 +175,7 @@ const Ge = { class: "ha-main-form" }, He = { class: "row-header" }, Ie = { class
|
|
171
175
|
disabled: !o.tooltip
|
172
176
|
}, {
|
173
177
|
default: s(() => [
|
174
|
-
m("div", null, x(e(
|
178
|
+
m("div", null, x(e(qe)(o.table)), 1)
|
175
179
|
]),
|
176
180
|
_: 2
|
177
181
|
}, 1032, ["content", "disabled"])
|
@@ -185,18 +189,18 @@ const Ge = { class: "ha-main-form" }, He = { class: "row-header" }, Ie = { class
|
|
185
189
|
key: 1,
|
186
190
|
ref_key: "childRef",
|
187
191
|
ref: C,
|
188
|
-
module: e(
|
189
|
-
schema: e(
|
192
|
+
module: e(f),
|
193
|
+
schema: e(u),
|
190
194
|
table: e(v).table,
|
191
195
|
layout: e(v).layout,
|
192
196
|
next: e(b),
|
193
197
|
set: e(c),
|
194
198
|
route: e(z),
|
195
|
-
"validate-errors": e(
|
199
|
+
"validate-errors": e(N),
|
196
200
|
onRowEdit: e(we),
|
197
|
-
onChange: e(
|
198
|
-
onLayoutChange: t[2] || (t[2] = (o) => e(
|
199
|
-
onSubmit: e(
|
201
|
+
onChange: e(I),
|
202
|
+
onLayoutChange: t[2] || (t[2] = (o) => e(J)(o, !1)),
|
203
|
+
onSubmit: e(F)
|
200
204
|
}, null, 8, ["module", "schema", "table", "layout", "next", "set", "route", "validate-errors", "onRowEdit", "onChange", "onSubmit"])) : B("", !0)
|
201
205
|
]),
|
202
206
|
_: 1
|
@@ -204,49 +208,49 @@ const Ge = { class: "ha-main-form" }, He = { class: "row-header" }, Ie = { class
|
|
204
208
|
]),
|
205
209
|
_: 1
|
206
210
|
}),
|
207
|
-
(d(), g(
|
211
|
+
(d(), g(Ne(e(ze)), {
|
208
212
|
ref_key: "updateRef",
|
209
|
-
ref:
|
213
|
+
ref: K,
|
210
214
|
class: "main-footer",
|
211
|
-
schema: e(
|
212
|
-
table: e(
|
215
|
+
schema: e(u),
|
216
|
+
table: e(_),
|
213
217
|
layout: e(L),
|
214
218
|
next: e(b),
|
215
219
|
set: e(c),
|
216
220
|
route: e(z),
|
217
|
-
onCopy: e(
|
218
|
-
onEdit: e(
|
221
|
+
onCopy: e(_e),
|
222
|
+
onEdit: e(ye),
|
219
223
|
onSubmit: e(Re),
|
220
224
|
onClose: e(Ce)
|
221
225
|
}, null, 40, ["schema", "table", "layout", "next", "set", "route", "onCopy", "onEdit", "onSubmit", "onClose"]))
|
222
226
|
]),
|
223
|
-
e(k) ? (d(), g(
|
227
|
+
e(k) ? (d(), g(P, {
|
224
228
|
key: 0,
|
225
229
|
class: "side-form"
|
226
230
|
}, {
|
227
231
|
header: s(() => [
|
228
|
-
m("div",
|
229
|
-
m("div",
|
232
|
+
m("div", Je, [
|
233
|
+
m("div", Qe, x(e(oe)("common.modify")) + " " + x(e(j)[e(S).show[0].name]), 1),
|
230
234
|
m("div", {
|
231
235
|
class: "row-close",
|
232
236
|
onClick: t[4] || (t[4] = (o) => Z(k) ? k.value = !1 : k = !1)
|
233
|
-
},
|
237
|
+
}, Xe)
|
234
238
|
])
|
235
239
|
]),
|
236
240
|
default: s(() => [
|
237
|
-
h(
|
241
|
+
h($, null, {
|
238
242
|
default: s(() => [
|
239
|
-
h(
|
243
|
+
h(U, {
|
240
244
|
size: "small",
|
241
245
|
"label-width": "80px"
|
242
246
|
}, {
|
243
247
|
default: s(() => [
|
244
|
-
(d(!0),
|
245
|
-
style:
|
248
|
+
(d(!0), H(ee, null, le(e(S).show, (o) => (d(), g(X, {
|
249
|
+
style: Oe(o.control.height ? `height: ${o.control.height}px;` : ""),
|
246
250
|
rules: o.rules
|
247
251
|
}, {
|
248
252
|
label: s(() => [
|
249
|
-
te(x(e(
|
253
|
+
te(x(e(Ke)(e(S).name, o.name)) + " ", 1),
|
250
254
|
o.control.tooltip ? (d(), g(V, {
|
251
255
|
key: 0,
|
252
256
|
trigger: "hover",
|
@@ -255,7 +259,7 @@ const Ge = { class: "ha-main-form" }, He = { class: "row-header" }, Ie = { class
|
|
255
259
|
title: o.control.tooltip.title
|
256
260
|
}, {
|
257
261
|
reference: s(() => [
|
258
|
-
|
262
|
+
Ye
|
259
263
|
]),
|
260
264
|
default: s(() => [
|
261
265
|
m("pre", null, x(o.control.tooltip.content), 1)
|
@@ -264,12 +268,12 @@ const Ge = { class: "ha-main-form" }, He = { class: "row-header" }, Ie = { class
|
|
264
268
|
}, 1032, ["title"])) : B("", !0)
|
265
269
|
]),
|
266
270
|
default: s(() => [
|
267
|
-
h(
|
268
|
-
schema: e(
|
271
|
+
h(je, {
|
272
|
+
schema: e(u),
|
269
273
|
table: e(S),
|
270
274
|
field: o,
|
271
275
|
set: e(c),
|
272
|
-
row: e(
|
276
|
+
row: e(j)
|
273
277
|
}, null, 8, ["schema", "table", "field", "set", "row"])
|
274
278
|
]),
|
275
279
|
_: 2
|
@@ -283,11 +287,11 @@ const Ge = { class: "ha-main-form" }, He = { class: "row-header" }, Ie = { class
|
|
283
287
|
]),
|
284
288
|
_: 1
|
285
289
|
})) : B("", !0),
|
286
|
-
e(i).page ? (d(), g(
|
290
|
+
e(i).page ? (d(), g(y, {
|
287
291
|
key: 1,
|
288
292
|
"destroy-on-close": "",
|
289
293
|
"append-to-body": e(i).appendToBody,
|
290
|
-
size: `${e(
|
294
|
+
size: `${e(f).width ?? "60%"}`,
|
291
295
|
modelValue: e(i).visible,
|
292
296
|
"onUpdate:modelValue": t[5] || (t[5] = (o) => e(i).visible = o)
|
293
297
|
}, {
|
@@ -301,11 +305,11 @@ const Ge = { class: "ha-main-form" }, He = { class: "row-header" }, Ie = { class
|
|
301
305
|
])
|
302
306
|
]),
|
303
307
|
default: s(() => [
|
304
|
-
h(e(
|
308
|
+
h(e(Fe), {
|
305
309
|
ref_key: "pageRef",
|
306
|
-
ref:
|
310
|
+
ref: O,
|
307
311
|
url: e(i).url,
|
308
|
-
onSucceed: e(
|
312
|
+
onSucceed: e(G),
|
309
313
|
onClose: e(he)
|
310
314
|
}, null, 8, ["url", "onSucceed", "onClose"])
|
311
315
|
]),
|
@@ -316,5 +320,5 @@ const Ge = { class: "ha-main-form" }, He = { class: "row-header" }, Ie = { class
|
|
316
320
|
}
|
317
321
|
});
|
318
322
|
export {
|
319
|
-
|
323
|
+
dl as default
|
320
324
|
};
|