halo-pc 1.0.19 → 1.0.21
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{Article-C00dDtgQ.js → Article-D3N6eVpH.js} +52 -51
- package/dist/{ArticleFooter-jAlMJJ0Z.js → ArticleFooter-CbvmQHCn.js} +5 -5
- package/dist/{Autocomplete-DYgdzQEa.js → Autocomplete-BrKsj5vx.js} +1 -1
- package/dist/{Autocomplete-BYlz8Q3t.js → Autocomplete-C1Q-qo5y.js} +9 -9
- package/dist/{Autocomplete-CQ-UuksH.js → Autocomplete-C_t_3Onz.js} +9 -9
- package/dist/{CSharp-ouau54_s.js → CSharp-DGmv2biT.js} +1 -1
- package/dist/{Calender-iu_I3vcU.js → Calender-dCiW7eIK.js} +2 -2
- package/dist/{Callback-bRXyRBO2.js → Callback-BcjLHYz6.js} +3 -3
- package/dist/{Cascader-BJs2FXbQ.js → Cascader-BMs1Kw-s.js} +10 -10
- package/dist/{Cascader-ljR17aOe.js → Cascader-BoZLMQjq.js} +5 -5
- package/dist/{Checkbox-C2OWgiE1.js → Checkbox-DeuCkQ_E.js} +12 -12
- package/dist/{Checkbox-Cy5zNH7D.js → Checkbox-DklZD5ff.js} +1 -1
- package/dist/{Code-Cruabofi.js → Code-CmB3ZGnM.js} +10 -10
- package/dist/{Code-DTvIe3kd.js → Code-DVZ9QWgE.js} +1 -1
- package/dist/{Code-B9oyIhEo.js → Code-Q9ETcIfA.js} +1 -1
- package/dist/Code-hiW76EUm.js +4 -0
- package/dist/{Code.vue_vue_type_style_index_0_lang-BmQDWq2q.js → Code.vue_vue_type_style_index_0_lang-DJO46RBx.js} +4 -4
- package/dist/{Column-ClHvuVuz.js → Column-K0p0pVuf.js} +26 -25
- package/dist/{Comment-D292jtJC.js → Comment-B_jDWUXE.js} +12 -12
- package/dist/Compare-CziDSVLD.js +37 -0
- package/dist/Compare-DFDzyQIR.js +57 -0
- package/dist/{Copy-CvgX-bKU.js → Copy-gHXEFE58.js} +5 -5
- package/dist/{Custom-4bEXZx8t.js → Custom-DS1OrDHT.js} +11 -11
- package/dist/{DataExport-DH0oVaJf.js → DataExport-DAk1d4uG.js} +1 -1
- package/dist/{DataExport.vue_vue_type_script_setup_true_lang-BV2aSpcq.js → DataExport.vue_vue_type_script_setup_true_lang-Clh4Jvxi.js} +19 -19
- package/dist/{DataImport-D73iWOit.js → DataImport-BLOSIbQ2.js} +1 -1
- package/dist/{DataImport.vue_vue_type_script_setup_true_lang-B39IZpM3.js → DataImport.vue_vue_type_script_setup_true_lang-D5J7e_59.js} +19 -19
- package/dist/{Date-DCtZ8VpD.js → Date-BOrgXdKV.js} +4 -4
- package/dist/{Date-BJ2vBWIM.js → Date-D1KihBir.js} +1 -1
- package/dist/{DateRange-BWXik5I2.js → DateRange-Clg_We_d.js} +1 -1
- package/dist/{DateTime-BBHPa2zE.js → DateTime-Ba-L9NIq.js} +4 -4
- package/dist/{DateTime-D_GCbnKC.js → DateTime-Dwg6aUf3.js} +1 -1
- package/dist/{DateTimeRange-C4-4mq77.js → DateTimeRange-Cir1-Js8.js} +1 -1
- package/dist/{Daterange-CPVrg_r8.js → Daterange-Gaj6hNOK.js} +3 -3
- package/dist/{Decimal-Bv5A7-xm.js → Decimal-tv9vqaXk.js} +1 -1
- package/dist/{Delete-lSTmw_3a.js → Delete-HzVURBlh.js} +18 -17
- package/dist/{Detail-Dfvzkkw6.js → Detail-B2rtvufA.js} +6 -5
- package/dist/{Dictionary-thXsHbOo.js → Dictionary-DKnp-UJn.js} +3 -3
- package/dist/{Email-BDg7Qf9f.js → Email-CpOxaSSw.js} +4 -4
- package/dist/{File-TEaB_uIR.js → File-C63qevce.js} +42 -41
- package/dist/Image-DRIunv3_.js +9 -0
- package/dist/{Index-DapcfeaN.js → Index-B6Ec8rbl.js} +1 -1
- package/dist/{Index-ld-kC6ij.js → Index-BD6O3A9N.js} +7 -7
- package/dist/{Index-Cn5Qex6Q.js → Index-Cc_CDbUJ.js} +1 -1
- package/dist/{Index-BuhrNqZE.js → Index-Cev7Nudv.js} +1 -1
- package/dist/Index-DSKuNKCT.js +4 -0
- package/dist/Index-QIBRYf1L.js +4 -0
- package/dist/Index-ZOfKMgat.js +4 -0
- package/dist/{Index-BQKjFLbE.js → Index-bxLda8lZ.js} +29 -28
- package/dist/{Index.vue_vue_type_script_setup_true_lang-BKPwS2s9.js → Index.vue_vue_type_script_setup_true_lang-DaoT5edv.js} +4 -3
- package/dist/{Index.vue_vue_type_script_setup_true_lang-zlsTcQ-k.js → Index.vue_vue_type_script_setup_true_lang-xNPG8cCE.js} +10 -9
- package/dist/{Index.vue_vue_type_style_index_0_lang-CqjK1AVM.js → Index.vue_vue_type_style_index_0_lang-F7HqBnCS.js} +11 -11
- package/dist/{Install-BQ_rGQFg.js → Install-CTAGNKPW.js} +13 -12
- package/dist/{Int-DRcbQElJ.js → Int-DmNjhEfK.js} +8 -8
- package/dist/{Int-C33TxFtW.js → Int-nUzbSSOv.js} +11 -11
- package/dist/{List-CSkx_cTr.js → List-gNI3y_wH.js} +14 -13
- package/dist/{Maintaince-D0JZ-9mL.js → Maintaince-pTASKuMA.js} +1 -1
- package/dist/{Markdown-DjbgXlE6.js → Markdown-BJB6rQY8.js} +1 -1
- package/dist/{Month-C_sIkUIo.js → Month-CHfaIo8p.js} +4 -4
- package/dist/{Month-unY9f1-N.js → Month-DgztqRaq.js} +5 -5
- package/dist/{Month-68Hi85T_.js → Month-ui1XorBW.js} +1 -1
- package/dist/{Normal-BAoQvNjn.js → Normal-Cf7kP6RU.js} +61 -60
- package/dist/{Paging-BNVKLCCy.js → Paging-CBgVct8q.js} +9 -8
- package/dist/{PagingHeader-CkESvHSg.js → PagingHeader-BkFBl-r_.js} +18 -18
- package/dist/{PagingRow-DrMTqBj9.js → PagingRow-eXCadgdO.js} +7 -7
- package/dist/{QueryApi-D410WxrU.js → QueryApi-Wf86Sm6m.js} +1 -1
- package/dist/{Racebar-BhPT9MdU.js → Racebar-ClXzi9hV.js} +16 -16
- package/dist/{Radio-D1AcW1pn.js → Radio-llyoK7PI.js} +1 -1
- package/dist/{Register-jgIuWNwI.js → Register-BaHhaZMu.js} +49 -48
- package/dist/{RichText-BgLtVFup.js → RichText-Cc_jptgY.js} +8 -8
- package/dist/{SearchFooter-CAWhmjR2.js → SearchFooter-BgJxQrMo.js} +1 -1
- package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-ClaSxScx.js → SearchFooter.vue_vue_type_style_index_0_lang-C6DtjpFD.js} +1 -1
- package/dist/{SearchForm--aMZLLx4.js → SearchForm-CroUQ_3K.js} +1 -1
- package/dist/{SearchForm.vue_vue_type_style_index_0_lang-_rdBTvY_.js → SearchForm.vue_vue_type_style_index_0_lang-DEu6hHys.js} +28 -27
- package/dist/{Select-DU_6d_Ob.js → Select-BYw63gZy.js} +17 -16
- package/dist/{Select-CVnXZcZi.js → Select-BtNeUq9h.js} +1 -1
- package/dist/{Select-JFUTkpkm.js → Select-wxKjwxJj.js} +17 -17
- package/dist/{Single-B0g3q0uZ.js → Single-CCVi3Pcj.js} +83 -82
- package/dist/{Statistic-XTBdaF7E.js → Statistic-g3nQvsbW.js} +30 -29
- package/dist/{Stock-nsqld-XR.js → Stock-C6Fxo31l.js} +1 -1
- package/dist/{Stock-CWU3inQY.js → Stock-CNqLeSld.js} +1 -1
- package/dist/{Stock.vue_vue_type_style_index_0_lang-B7HB-me6.js → Stock.vue_vue_type_style_index_0_lang-BqXBN6CJ.js} +11 -11
- package/dist/{Switch-BqHPuFzA.js → Switch-NMkH-rhl.js} +1 -1
- package/dist/{Table-l0km2rz7.js → Table-Cdd_tPoL.js} +57 -56
- package/dist/{Table-xRltYWjc.js → Table-DpA4dO4P.js} +51 -50
- package/dist/{Text-DOTMUPPm.js → Text-DanSgaL9.js} +7 -7
- package/dist/Text-DgZjeg-u.js +4 -0
- package/dist/{Text-alXcFJHa.js → Text-GuLK7BYX.js} +6 -6
- package/dist/{Text.vue_vue_type_style_index_0_lang-1wF_kb3u.js → Text.vue_vue_type_style_index_0_lang-CYGKr6vh.js} +8 -8
- package/dist/{TextLink-BUpIHKqh.js → TextLink-B_Ur1pg0.js} +3 -3
- package/dist/{Textarea-IFX_g2SZ.js → Textarea-HhP_VFJV.js} +1 -1
- package/dist/{Time-CHadluUL.js → Time-CmyrAm3i.js} +8 -8
- package/dist/{Timeline-B7xPAwXh.js → Timeline-B85T2wBn.js} +11 -11
- package/dist/{Tree-qvL1DgaM.js → Tree-Ck_7r3nf.js} +85 -84
- package/dist/{Tree-DoXqyUpn.js → Tree-OqvNLgYj.js} +15 -14
- package/dist/{TreeNode-CUSAKhTp.js → TreeNode-Ba2f55wK.js} +1 -1
- package/dist/{Update-eETfPmHB.js → Update-DrmLFoty.js} +9 -8
- package/dist/{UpdateChild-DbbXDvCz.js → UpdateChild-CGCn-Eh4.js} +6 -6
- package/dist/{Upload-CAUGBT7A.js → Upload-D9HeSZCg.js} +18 -17
- package/dist/{Upload-DMfKIPRu.js → Upload-DXADyB6r.js} +49 -48
- package/dist/{UploadApi-FEbSWkVM.js → UploadApi-DAT-xdsM.js} +1 -1
- package/dist/{Year-CAxdMb2V.js → Year-Dx_qNPrz.js} +5 -5
- package/dist/{Year-CnHHib5-.js → Year-RGAEzf_V.js} +1 -1
- package/dist/assets/halo-fe-idvmXC0t.js +15923 -0
- package/dist/main-COiaaxGk.js +3542 -0
- package/dist/main.js +129 -129
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/dist/Code-C8zrvj8s.js +0 -4
- package/dist/Compare-CGW1IWLh.js +0 -56
- package/dist/Compare-DjrTKaz2.js +0 -26
- package/dist/Image-BqCjtyvc.js +0 -9
- package/dist/Index-BCku46lC.js +0 -4
- package/dist/Index-BLoAow8U.js +0 -4
- package/dist/Index-C3Dtv0ze.js +0 -4
- package/dist/Text-CFZ1y9Xn.js +0 -4
- package/dist/main-DArl7gFs.js +0 -19837
@@ -1,9 +1,10 @@
|
|
1
|
-
import { defineComponent as Re, defineAsyncComponent as Se, toRefs as ke, ref as p, onMounted as $e, computed as
|
2
|
-
import {
|
3
|
-
|
1
|
+
import { defineComponent as Re, defineAsyncComponent as Se, toRefs as ke, ref as p, onMounted as $e, computed as J, watch as ze, resolveComponent as b, openBlock as f, createElementBlock as z, Fragment as Q, createVNode as R, unref as e, withCtx as v, createTextVNode as Fe, toDisplayString as B, createBlock as F, createCommentVNode as D, renderList as De, createElementVNode as C, normalizeStyle as He, resolveDynamicComponent as Ie, nextTick as Y } from "vue";
|
2
|
+
import { I as Ne, P as Be, aK as Te, N as y, $ as T, au as Z, g as W, t as We, i as qe } from "./assets/halo-fe-idvmXC0t.js";
|
3
|
+
import { p as ee, c as Ee, d as te, s as q } from "./main-COiaaxGk.js";
|
4
|
+
const Me = {
|
4
5
|
key: 0,
|
5
6
|
class: "required"
|
6
|
-
},
|
7
|
+
}, Ve = ["onMouseenter"], Oe = /* @__PURE__ */ C("i", { class: "fa fa-question-circle icon-question" }, null, -1), Ae = { class: "footer-left" }, Pe = { class: "footer-right" }, Xe = /* @__PURE__ */ Re({
|
7
8
|
__name: "Table",
|
8
9
|
props: {
|
9
10
|
route: {},
|
@@ -17,7 +18,7 @@ const We = {
|
|
17
18
|
},
|
18
19
|
emits: ["submit", "change", "row-edit"],
|
19
20
|
setup(le, { expose: ae, emit: oe }) {
|
20
|
-
let ne = Se(() => import("./Index-
|
21
|
+
let ne = Se(() => import("./Index-B6Ec8rbl.js")), H = oe, re = le, { schema: E, table: l, layout: d, set: s, next: je, route: M, module: S, validateErrors: V } = ke(re), _ = p({ page: 1 }), O = p(), m = p([]), ue = p(!0), k = p(), A = p(), P = p(), j = p(), g = p({ layout: "prev, pager, next", count: 5 }), ie = (t, o, n) => {
|
21
22
|
H("row-edit", t, l.value, n);
|
22
23
|
}, se = (t) => {
|
23
24
|
H("submit", t);
|
@@ -32,57 +33,57 @@ const We = {
|
|
32
33
|
}, L = (t) => s.value[l.value.name].indexOf(t), ce = (t) => {
|
33
34
|
m.value = t;
|
34
35
|
}, fe = async (t, o, n, u, a) => {
|
35
|
-
await
|
36
|
+
await ee.setColumnWidth(M.value, a.name, n.property, t);
|
36
37
|
}, ve = (t) => {
|
37
|
-
|
38
|
-
|
38
|
+
U(t.contentRect.width), Y(() => {
|
39
|
+
K(t.contentRect.height);
|
39
40
|
});
|
40
|
-
},
|
41
|
+
}, U = (t = null) => {
|
41
42
|
let o = y.parentUntil(k.value.$el, ".ha-main-form");
|
42
43
|
t == null && (t = y.getWidth(o)), t <= 690 ? g.value.count = 5 : g.value.count = 7, t <= 300 ? g.value.layout = "pager" : t <= 620 ? g.value.layout = "prev, pager, next" : g.value.layout = "total, prev, pager, next, jumper";
|
43
|
-
},
|
44
|
+
}, K = (t = null) => {
|
44
45
|
let o = y.parentUntil(k.value.$el, ".ha-main-form");
|
45
46
|
t || (t = y.getHeight(o));
|
46
|
-
let n = y.getHeight(
|
47
|
+
let n = y.getHeight(A.value), u = y.find(o, ".main-footer"), a = y.getHeight(u), i = t - n - a;
|
47
48
|
j.value = `${i}px`;
|
48
49
|
}, ge = async () => {
|
49
|
-
let t = s.value[l.value.name].length, o =
|
50
|
+
let t = s.value[l.value.name].length, o = q.getDefaultRow(l.value);
|
50
51
|
s.value[l.value.name].push(o);
|
51
52
|
let n = l.value.fields.filter((a) => a.feature != null);
|
52
53
|
for (let a = 0; a < n.length; a++) {
|
53
54
|
let i = n[a];
|
54
|
-
(await
|
55
|
+
(await T.feature.create(i.feature.type)).add(l.value, i, s.value, o);
|
55
56
|
}
|
56
|
-
|
57
|
-
let u =
|
58
|
-
await
|
59
|
-
u &&
|
57
|
+
I(t);
|
58
|
+
let u = Z.isBottom(".tree-detail");
|
59
|
+
await Y(() => {
|
60
|
+
u && Z.scrollToBottom(".tree-detail");
|
60
61
|
});
|
61
62
|
}, he = async (t = null) => {
|
62
|
-
let o = m.value[0], n =
|
63
|
+
let o = m.value[0], n = q.getDefaultRow(l.value), u = W.insert(s.value[l.value.name], o, n), a = l.value.fields.filter((i) => i.feature != null);
|
63
64
|
for (let i = 0; i < a.length; i++) {
|
64
65
|
let c = a[i];
|
65
|
-
(await
|
66
|
+
(await T.feature.create(c.feature.type)).insert(l.value, c, s.value, o, n);
|
66
67
|
}
|
67
|
-
|
68
|
+
I(u), t == null || t(u);
|
68
69
|
}, ye = async () => {
|
69
|
-
let t = l.value.key.name, o =
|
70
|
+
let t = l.value.key.name, o = We.clone(m.value, (a) => {
|
70
71
|
a[t] = null, a[`Old_${t}`] = null;
|
71
72
|
}), n = s.value[l.value.name].indexOf(m.value[0]);
|
72
73
|
for (let a = 0; a < m.value.length; a++) {
|
73
74
|
let i = m.value[a], c = o[a];
|
74
|
-
|
75
|
+
W.append(s.value[l.value.name], i, c);
|
75
76
|
}
|
76
77
|
let u = l.value.fields.filter((a) => a.feature != null);
|
77
78
|
for (let a = 0; a < u.length; a++) {
|
78
79
|
let i = u[a];
|
79
|
-
(await
|
80
|
+
(await T.feature.create(i.feature.type)).copy(l.value, i, s.value);
|
80
81
|
}
|
81
|
-
|
82
|
+
I(n);
|
82
83
|
}, _e = () => {
|
83
|
-
|
84
|
-
},
|
85
|
-
let o =
|
84
|
+
W.remove(s.value[l.value.name], m.value), m.value = [];
|
85
|
+
}, I = (t) => {
|
86
|
+
let o = qe.pageCount(t + 1, d.value.pageSize);
|
86
87
|
_.value.page = o;
|
87
88
|
}, we = (t) => {
|
88
89
|
_.value.page = t;
|
@@ -90,22 +91,22 @@ const We = {
|
|
90
91
|
k.value.$el.querySelector("tbody");
|
91
92
|
};
|
92
93
|
$e(async () => {
|
93
|
-
|
94
|
-
|
94
|
+
O.value = await ee.getFieldConfigs(), xe(), U(), Ne.detectLoaded(P, () => {
|
95
|
+
K();
|
95
96
|
});
|
96
97
|
});
|
97
|
-
let be =
|
98
|
+
let be = J(() => {
|
98
99
|
let t = (_.value.page - 1) * d.value.pageSize, o = _.value.page * d.value.pageSize - 1;
|
99
100
|
return s.value[l.value.name].filter((u, a) => a >= t && a <= o);
|
100
|
-
}), Ce =
|
101
|
-
let t = l.value.main ? `/${l.value.name}` : `/${
|
102
|
-
return
|
101
|
+
}), Ce = J(() => {
|
102
|
+
let t = l.value.main ? `/${l.value.name}` : `/${E.value[0].name}/${l.value.name}`;
|
103
|
+
return Ee.getComponent(`${t}/update-child`, "partial", "update-child");
|
103
104
|
});
|
104
|
-
return ze(
|
105
|
+
return ze(V, (t, o) => {
|
105
106
|
let n = t.find((u) => u.table == l.value.name);
|
106
107
|
n != null && (_.value.page = Math.ceil((n.index + 1) / d.value.pageSize));
|
107
108
|
}), ae({ resize: ve }), (t, o) => {
|
108
|
-
const n = b("el-table-column"), u = b("el-tooltip"), a = b("el-popover"), i = b("el-form-item"), c = b("el-table"),
|
109
|
+
const n = b("el-table-column"), u = b("el-tooltip"), a = b("el-popover"), i = b("el-form-item"), c = b("el-table"), X = b("el-pagination");
|
109
110
|
return f(), z(Q, null, [
|
110
111
|
R(c, {
|
111
112
|
ref_key: "tableRef",
|
@@ -120,7 +121,7 @@ const We = {
|
|
120
121
|
onHeaderDragend: o[1] || (o[1] = (r, h, w, $) => e(fe)(r, h, w, $, e(l)))
|
121
122
|
}, {
|
122
123
|
empty: v(() => [
|
123
|
-
Fe(
|
124
|
+
Fe(B(e(Be)("common.no_data")), 1)
|
124
125
|
]),
|
125
126
|
default: v(() => [
|
126
127
|
e(ue) ? (f(), F(n, {
|
@@ -130,17 +131,17 @@ const We = {
|
|
130
131
|
fixed: ""
|
131
132
|
})) : D("", !0),
|
132
133
|
(f(!0), z(Q, null, De(e(l).show, (r, h) => {
|
133
|
-
var w, $,
|
134
|
+
var w, $, G;
|
134
135
|
return f(), F(n, {
|
135
136
|
key: r.name,
|
136
137
|
"show-overflow-tooltip": "",
|
137
138
|
prop: r.name,
|
138
139
|
label: r.label,
|
139
|
-
"min-width": ((
|
140
|
+
"min-width": ((G = ($ = (w = e(O)) == null ? void 0 : w[e(M)]) == null ? void 0 : $[e(l).name]) == null ? void 0 : G[r.name]) ?? r.control.width,
|
140
141
|
fixed: e(d).fixed.length > 0 ? e(d).fixed.indexOf(r.name) > -1 : h == 0
|
141
142
|
}, {
|
142
143
|
header: v((x) => [
|
143
|
-
e(S).type != "Detail" && r.control.required ? (f(), z("i",
|
144
|
+
e(S).type != "Detail" && r.control.required ? (f(), z("i", Me, "*")) : D("", !0),
|
144
145
|
R(u, {
|
145
146
|
placement: "top",
|
146
147
|
content: r.label,
|
@@ -148,10 +149,10 @@ const We = {
|
|
148
149
|
}, {
|
149
150
|
default: v(() => [
|
150
151
|
C("span", {
|
151
|
-
onMouseenter: (
|
152
|
+
onMouseenter: (N) => e(me)(N, h)
|
152
153
|
}, [
|
153
|
-
C("span", null,
|
154
|
-
], 40,
|
154
|
+
C("span", null, B(e(Te)(e(l).table, r.name)), 1)
|
155
|
+
], 40, Ve)
|
155
156
|
]),
|
156
157
|
_: 2
|
157
158
|
}, 1032, ["content", "disabled"]),
|
@@ -163,30 +164,30 @@ const We = {
|
|
163
164
|
title: r.control.tooltip.title
|
164
165
|
}, {
|
165
166
|
reference: v(() => [
|
166
|
-
|
167
|
+
Oe
|
167
168
|
]),
|
168
169
|
default: v(() => [
|
169
|
-
C("pre", null,
|
170
|
+
C("pre", null, B(r.control.tooltip.content), 1)
|
170
171
|
]),
|
171
172
|
_: 2
|
172
173
|
}, 1032, ["title"])) : D("", !0)
|
173
174
|
]),
|
174
175
|
default: v((x) => [
|
175
176
|
R(i, {
|
176
|
-
style: He(e(
|
177
|
-
rules: e(
|
177
|
+
style: He(e(te).getStyle(r, e(S).type, e(d).type)),
|
178
|
+
rules: e(q).getRules(e(V), e(l), r, x.$index),
|
178
179
|
prop: `[${e(l).name}][${e(L)(x.row)}][${r.name}]`
|
179
180
|
}, {
|
180
181
|
default: v(() => [
|
181
182
|
R(e(ne), {
|
182
|
-
schema: e(
|
183
|
+
schema: e(E),
|
183
184
|
table: e(l),
|
184
185
|
field: r,
|
185
186
|
set: e(s),
|
186
187
|
row: x.row,
|
187
|
-
config: e(
|
188
|
+
config: e(te).getConfig(r, e(S).type, e(d).type),
|
188
189
|
onSubmit: e(se),
|
189
|
-
onChange: (
|
190
|
+
onChange: (N) => e(pe)(N, e(s), e(l), r, e(L)(x.row))
|
190
191
|
}, null, 8, ["schema", "table", "field", "set", "row", "config", "onSubmit", "onChange"])
|
191
192
|
]),
|
192
193
|
_: 2
|
@@ -201,13 +202,13 @@ const We = {
|
|
201
202
|
e(l).main ? D("", !0) : (f(), z("div", {
|
202
203
|
key: 0,
|
203
204
|
ref_key: "footerRef",
|
204
|
-
ref:
|
205
|
+
ref: A,
|
205
206
|
class: "table-footer"
|
206
207
|
}, [
|
207
|
-
C("div",
|
208
|
-
(f(), F(
|
208
|
+
C("div", Ae, [
|
209
|
+
(f(), F(Ie(e(Ce)), {
|
209
210
|
ref_key: "operationRef",
|
210
|
-
ref:
|
211
|
+
ref: P,
|
211
212
|
module: e(S),
|
212
213
|
table: e(l),
|
213
214
|
set: e(s),
|
@@ -218,8 +219,8 @@ const We = {
|
|
218
219
|
onRemove: e(_e)
|
219
220
|
}, null, 40, ["module", "table", "set", "selection", "onAdd", "onInsert", "onCopy", "onRemove"]))
|
220
221
|
]),
|
221
|
-
C("div",
|
222
|
-
R(
|
222
|
+
C("div", Pe, [
|
223
|
+
R(X, {
|
223
224
|
background: "",
|
224
225
|
layout: e(g).layout,
|
225
226
|
"current-page": e(_).page,
|
@@ -235,5 +236,5 @@ const We = {
|
|
235
236
|
}
|
236
237
|
});
|
237
238
|
export {
|
238
|
-
|
239
|
+
Xe as default
|
239
240
|
};
|
@@ -1,16 +1,17 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import {
|
3
|
-
import { _ as
|
4
|
-
import { _ as
|
5
|
-
import { _ as
|
6
|
-
import { _ as
|
1
|
+
import { defineComponent as We, toRefs as Be, ref as u, onMounted as Te, nextTick as M, computed as le, resolveComponent as k, openBlock as f, createElementBlock as D, createVNode as v, unref as e, isRef as w, normalizeClass as De, withCtx as h, createTextVNode as oe, toDisplayString as R, Fragment as He, renderList as Ne, createBlock as S, createCommentVNode as z, createElementVNode as H, resolveDynamicComponent as Ue } from "vue";
|
2
|
+
import { N as $, P as j, aK as Ee, i as Ke, K as Le, L as Pe, f as Me, e as je } from "./assets/halo-fe-idvmXC0t.js";
|
3
|
+
import { p as q, c as qe, h as Ae, d as Fe, i as Oe, _ as Ie } from "./main-COiaaxGk.js";
|
4
|
+
import { _ as Ge } from "./SearchForm.vue_vue_type_style_index_0_lang-DEu6hHys.js";
|
5
|
+
import { _ as Je } from "./DataImport.vue_vue_type_script_setup_true_lang-D5J7e_59.js";
|
6
|
+
import { _ as Qe } from "./DataExport.vue_vue_type_script_setup_true_lang-Clh4Jvxi.js";
|
7
|
+
import { _ as Xe } from "./Index.vue_vue_type_style_index_0_lang-F7HqBnCS.js";
|
7
8
|
import "vue-router";
|
8
9
|
import "./assets/intro.js-DxWjEdp_.js";
|
9
|
-
import { _ as Ye } from "./SearchFooter.vue_vue_type_style_index_0_lang-
|
10
|
+
import { _ as Ye } from "./SearchFooter.vue_vue_type_style_index_0_lang-C6DtjpFD.js";
|
10
11
|
const Ze = {
|
11
12
|
key: 0,
|
12
13
|
class: "required"
|
13
|
-
}, et = ["onMouseenter"], tt = { class: "el-drawer__title" }, at = { key: 0 }, lt = ["href"],
|
14
|
+
}, et = ["onMouseenter"], tt = { class: "el-drawer__title" }, at = { key: 0 }, lt = ["href"], vt = /* @__PURE__ */ We({
|
14
15
|
__name: "Table",
|
15
16
|
props: {
|
16
17
|
searchData: {},
|
@@ -23,7 +24,7 @@ const Ze = {
|
|
23
24
|
},
|
24
25
|
emits: ["search", "navigate", "sort", "page-change", "size-change", "succeed", "close"],
|
25
26
|
setup(ne, { expose: re, emit: se }) {
|
26
|
-
let b = se, ue = ne, { module: ie, schema:
|
27
|
+
let b = se, ue = ne, { module: ie, schema: N, table: r, layout: i, next: p, set: _, searchData: A } = Be(ue), U = u([]), V = u(), E = u(), K = u(), F = u(), O = u(), W = u(), m = u(!1), g = u(!1), I = u(), G = u("120px"), J = u(), y = u({ layout: "prev, pager, next", count: 5, sizes: [20, 50, 200, 500, 2e3] }), B = u(), n = u({ title: null, env: null, page: null, url: null, row: null, visible: !1, appendToBody: !1 }), de = (t) => {
|
27
28
|
x("insert", null, t);
|
28
29
|
}, pe = (t, a) => {
|
29
30
|
x("detail", t, a);
|
@@ -35,8 +36,8 @@ const Ze = {
|
|
35
36
|
x("delete", t, a);
|
36
37
|
}, Q = (t) => {
|
37
38
|
let a = t.map((o) => o[r.value.key.name]);
|
38
|
-
|
39
|
-
|
39
|
+
Pe.post(p.value.delete.route, a).then((o) => {
|
40
|
+
Me.success(o.message), L();
|
40
41
|
});
|
41
42
|
}, x = (t, a, o) => {
|
42
43
|
let s = ve(t, a);
|
@@ -51,25 +52,25 @@ const Ze = {
|
|
51
52
|
}, fe = () => {
|
52
53
|
n.value.visible = !1, b("close");
|
53
54
|
}, he = (t) => {
|
54
|
-
n.value.title =
|
55
|
-
},
|
55
|
+
n.value.title = je(t.module.type, t.module.name), n.value.env = t.module.env;
|
56
|
+
}, L = () => {
|
56
57
|
n.value.visible = !1;
|
57
|
-
let t =
|
58
|
+
let t = U.value;
|
58
59
|
b("succeed", (a) => {
|
59
60
|
let o = a.data.set[r.value.name];
|
60
61
|
if (!o.length)
|
61
62
|
return;
|
62
63
|
let s = r.value.key;
|
63
|
-
|
64
|
+
M(() => {
|
64
65
|
let c = n.value.row;
|
65
66
|
if (c) {
|
66
67
|
let d = o.find((C) => C[s.name] == c[s.name]);
|
67
|
-
d &&
|
68
|
+
d && E.value.setCurrentRow(d);
|
68
69
|
}
|
69
70
|
if (t.length > 0)
|
70
71
|
for (let d of t) {
|
71
72
|
let C = o.find((l) => l[s.name] == d[s.name]);
|
72
|
-
|
73
|
+
E.value.toggleRowSelection(C, !0);
|
73
74
|
}
|
74
75
|
});
|
75
76
|
});
|
@@ -86,51 +87,51 @@ const Ze = {
|
|
86
87
|
}, xe = (t) => {
|
87
88
|
G.value = t;
|
88
89
|
}, Ce = (t, a) => {
|
89
|
-
|
90
|
+
U.value = t;
|
90
91
|
}, ke = (t, a, o) => {
|
91
92
|
let s = t.target.children[0], c = $.getWidth(s) + 16 + 14, d = a.realWidth || a.width;
|
92
93
|
o._headerTooltip = c > d;
|
93
94
|
}, Re = async (t, a, o, s) => {
|
94
|
-
await
|
95
|
+
await q.setColumnWidth(p.value.paging.route, r.value.name, o.property, t);
|
95
96
|
}, Y = () => {
|
96
97
|
var s, c, d;
|
97
|
-
let t = $.getHeight(
|
98
|
+
let t = $.getHeight(V.value), a = $.getHeight([(s = K.value) == null ? void 0 : s.$el, (c = F.value) == null ? void 0 : c.$el, (d = O.value) == null ? void 0 : d.$el]), o = t - a;
|
98
99
|
I.value = `${o}px`;
|
99
100
|
}, Z = () => {
|
100
101
|
let t = B.value;
|
101
102
|
t <= 690 ? y.value.count = 5 : y.value.count = 7, t <= 300 ? y.value.layout = "pager" : t <= 620 ? y.value.layout = "prev, pager, next" : y.value.layout = "sizes, total, prev, pager, next, jumper";
|
102
103
|
}, Se = (t, a) => {
|
103
|
-
if (!
|
104
|
+
if (!W.value || !W.value.keyboard)
|
104
105
|
return !1;
|
105
|
-
|
106
|
+
W.value.keyboard(t, a);
|
106
107
|
}, ze = (t) => {
|
107
|
-
|
108
|
+
K.value.resize(t), B.value = $.getWidth(V.value), Z(), M(() => {
|
108
109
|
Y();
|
109
110
|
});
|
110
111
|
};
|
111
112
|
Te(async () => {
|
112
|
-
J.value = await
|
113
|
+
J.value = await q.getFieldConfigs(), B.value = $.getWidth(V.value), Z(), M(() => {
|
113
114
|
Y();
|
114
115
|
});
|
115
116
|
});
|
116
117
|
let $e = le(() => {
|
117
118
|
let a = Object.keys(i.value.orderBys)[0], o = i.value.orderBys[a];
|
118
119
|
return { prop: a, order: o ? "ascending" : "descending" };
|
119
|
-
}),
|
120
|
+
}), Ve = le(() => {
|
120
121
|
let t = `/${r.value.name}/paging-row`;
|
121
|
-
return
|
122
|
+
return qe.getComponent(t, "partial", "paging-row");
|
122
123
|
});
|
123
124
|
return re({ keyboard: Se, resize: ze }), (t, a) => {
|
124
125
|
const o = k("el-table-column"), s = k("el-tooltip"), c = k("el-table"), d = k("el-pagination"), C = k("el-drawer");
|
125
126
|
return f(), D("div", {
|
126
127
|
ref_key: "pagingRef",
|
127
|
-
ref:
|
128
|
+
ref: V,
|
128
129
|
class: "paging-table"
|
129
130
|
}, [
|
130
131
|
v(Ge, {
|
131
132
|
ref_key: "searchRef",
|
132
|
-
ref:
|
133
|
-
schema: e(
|
133
|
+
ref: K,
|
134
|
+
schema: e(N),
|
134
135
|
table: e(r),
|
135
136
|
layout: e(i),
|
136
137
|
"search-data": e(A),
|
@@ -138,13 +139,13 @@ const Ze = {
|
|
138
139
|
}, null, 8, ["schema", "table", "layout", "search-data", "onSubmit"]),
|
139
140
|
v(Ye, {
|
140
141
|
ref_key: "headerRef",
|
141
|
-
ref:
|
142
|
-
schema: e(
|
142
|
+
ref: F,
|
143
|
+
schema: e(N),
|
143
144
|
table: e(r),
|
144
145
|
layout: e(i),
|
145
146
|
set: e(_),
|
146
147
|
next: e(p),
|
147
|
-
selection: e(
|
148
|
+
selection: e(U),
|
148
149
|
"search-data": e(A),
|
149
150
|
onAdd: e(de),
|
150
151
|
onRemove: e(Q),
|
@@ -154,8 +155,8 @@ const Ze = {
|
|
154
155
|
}, null, 8, ["schema", "table", "layout", "set", "next", "selection", "search-data", "onAdd", "onRemove", "onSearch"]),
|
155
156
|
v(c, {
|
156
157
|
ref_key: "tableRef",
|
157
|
-
ref:
|
158
|
-
class: De([{ "hide-nav": e(
|
158
|
+
ref: E,
|
159
|
+
class: De([{ "hide-nav": e(Ae).hideNav }, "table-default table-paging"]),
|
159
160
|
size: "small",
|
160
161
|
border: "",
|
161
162
|
"highlight-current-row": "",
|
@@ -174,7 +175,7 @@ const Ze = {
|
|
174
175
|
type: "selection",
|
175
176
|
width: "30"
|
176
177
|
}),
|
177
|
-
(f(!0), D(He, null,
|
178
|
+
(f(!0), D(He, null, Ne(e(r).show, (l, ot) => {
|
178
179
|
var ee, te, ae;
|
179
180
|
return f(), S(o, {
|
180
181
|
sortable: e(r) ? "custom" : !1,
|
@@ -194,9 +195,9 @@ const Ze = {
|
|
194
195
|
}, {
|
195
196
|
default: h(() => [
|
196
197
|
H("span", {
|
197
|
-
onMouseenter: (
|
198
|
+
onMouseenter: (P) => e(ke)(P, T.column, l)
|
198
199
|
}, [
|
199
|
-
H("span", null, R(e(
|
200
|
+
H("span", null, R(e(Ee)(e(r).name, l.name)), 1)
|
200
201
|
], 40, et)
|
201
202
|
]),
|
202
203
|
_: 2
|
@@ -204,13 +205,13 @@ const Ze = {
|
|
204
205
|
]),
|
205
206
|
default: h((T) => [
|
206
207
|
v(Xe, {
|
207
|
-
schema: e(
|
208
|
+
schema: e(N),
|
208
209
|
table: e(r),
|
209
210
|
field: l,
|
210
211
|
set: e(_),
|
211
212
|
row: T.row,
|
212
|
-
config: e(
|
213
|
-
onChange: (
|
213
|
+
config: e(Fe).getConfig(l, e(ie).type, e(i).type),
|
214
|
+
onChange: (P) => e(_e)(P, e(r), l, e(_), T.row)
|
214
215
|
}, null, 8, ["schema", "table", "field", "set", "row", "config", "onChange"])
|
215
216
|
]),
|
216
217
|
_: 2
|
@@ -223,7 +224,7 @@ const Ze = {
|
|
223
224
|
"min-width": e(G)
|
224
225
|
}, {
|
225
226
|
default: h((l) => [
|
226
|
-
(f(), S(
|
227
|
+
(f(), S(Ue(e(Ve)), {
|
227
228
|
table: e(r),
|
228
229
|
next: e(p),
|
229
230
|
set: e(_),
|
@@ -241,7 +242,7 @@ const Ze = {
|
|
241
242
|
]),
|
242
243
|
_: 1
|
243
244
|
}, 8, ["class", "max-height", "data", "default-sort", "onHeaderDragend"]),
|
244
|
-
v(e(
|
245
|
+
v(e(Oe), {
|
245
246
|
ref_key: "footerRef",
|
246
247
|
ref: O,
|
247
248
|
class: "list-toolbar"
|
@@ -266,14 +267,14 @@ const Ze = {
|
|
266
267
|
key: 0,
|
267
268
|
next: e(p),
|
268
269
|
onClose: a[5] || (a[5] = (l) => w(m) ? m.value = !1 : m = !1),
|
269
|
-
onSucceed: e(
|
270
|
+
onSucceed: e(L),
|
270
271
|
modelValue: e(m),
|
271
272
|
"onUpdate:modelValue": a[6] || (a[6] = (l) => w(m) ? m.value = l : m = l)
|
272
273
|
}, null, 8, ["next", "onSucceed", "modelValue"])) : z("", !0),
|
273
274
|
e(p).export ? (f(), S(Qe, {
|
274
275
|
key: 1,
|
275
276
|
route: e(p).export.route,
|
276
|
-
"page-count": e(
|
277
|
+
"page-count": e(Ke).pageCount(e(i).count, e(i).pageSize),
|
277
278
|
onClose: a[7] || (a[7] = (l) => w(g) ? g.value = !1 : g = !1),
|
278
279
|
modelValue: e(g),
|
279
280
|
"onUpdate:modelValue": a[8] || (a[8] = (l) => w(g) ? g.value = l : g = l)
|
@@ -282,7 +283,7 @@ const Ze = {
|
|
282
283
|
key: 2,
|
283
284
|
"destroy-on-close": "",
|
284
285
|
"append-to-body": e(n).appendToBody,
|
285
|
-
size: e(
|
286
|
+
size: e(q).getDrawerWidth(e(B)),
|
286
287
|
modelValue: e(n).visible,
|
287
288
|
"onUpdate:modelValue": a[9] || (a[9] = (l) => e(n).visible = l)
|
288
289
|
}, {
|
@@ -292,17 +293,17 @@ const Ze = {
|
|
292
293
|
e(n).env ? (f(), D("span", at, "[" + R(e(n).env) + "]", 1)) : z("", !0),
|
293
294
|
H("a", {
|
294
295
|
class: "drawer-copy",
|
295
|
-
href: e(
|
296
|
+
href: e(Le).getToUrl(e(n).url)
|
296
297
|
}, R(e(j)("common.link")), 9, lt)
|
297
298
|
])
|
298
299
|
]),
|
299
300
|
default: h(() => [
|
300
|
-
v(e(
|
301
|
+
v(e(Ie), {
|
301
302
|
ref_key: "pageRef",
|
302
|
-
ref:
|
303
|
+
ref: W,
|
303
304
|
url: e(n).url,
|
304
305
|
onLoaded: e(he),
|
305
|
-
onSucceed: e(
|
306
|
+
onSucceed: e(L),
|
306
307
|
onClose: e(fe)
|
307
308
|
}, null, 8, ["url", "onLoaded", "onSucceed", "onClose"])
|
308
309
|
]),
|
@@ -313,5 +314,5 @@ const Ze = {
|
|
313
314
|
}
|
314
315
|
});
|
315
316
|
export {
|
316
|
-
|
317
|
+
vt as default
|
317
318
|
};
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import {
|
3
|
-
const
|
1
|
+
import { defineComponent as V, toRefs as b, computed as x, resolveComponent as _, openBlock as y, createBlock as h, unref as e, withKeys as C, isRef as g, createSlots as k, withCtx as v, createTextVNode as w, toDisplayString as K } from "vue";
|
2
|
+
import { aM as B } from "./assets/halo-fe-idvmXC0t.js";
|
3
|
+
const D = /* @__PURE__ */ V({
|
4
4
|
__name: "Text",
|
5
5
|
props: {
|
6
6
|
schema: {},
|
@@ -12,11 +12,11 @@ const T = /* @__PURE__ */ b({
|
|
12
12
|
},
|
13
13
|
emits: ["submit", "change", "clear", "update:modelValue"],
|
14
14
|
setup(m, { emit: s }) {
|
15
|
-
let l = s, u = m, { table: d, field: o, set:
|
15
|
+
let l = s, u = m, { table: d, field: o, set: R, modelValue: p } = b(u), i = (t) => {
|
16
16
|
l("submit", t);
|
17
17
|
}, c = () => {
|
18
18
|
l("clear");
|
19
|
-
}, a =
|
19
|
+
}, a = x({
|
20
20
|
get() {
|
21
21
|
return p.value;
|
22
22
|
},
|
@@ -29,7 +29,7 @@ const T = /* @__PURE__ */ b({
|
|
29
29
|
return y(), h(f, {
|
30
30
|
type: "text",
|
31
31
|
disabled: e(o).control.readonly,
|
32
|
-
placeholder: e(
|
32
|
+
placeholder: e(B)(e(d).name, e(o).name),
|
33
33
|
clearable: "",
|
34
34
|
onKeyup: C(e(i), ["enter", "native"]),
|
35
35
|
onClear: e(c),
|
@@ -48,5 +48,5 @@ const T = /* @__PURE__ */ b({
|
|
48
48
|
}
|
49
49
|
});
|
50
50
|
export {
|
51
|
-
|
51
|
+
D as default
|
52
52
|
};
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import {
|
3
|
-
const
|
1
|
+
import { defineComponent as V, toRefs as x, computed as _, resolveComponent as g, openBlock as C, createBlock as b, unref as e, withKeys as y, isRef as v, createSlots as k, withCtx as D, createTextVNode as K, toDisplayString as w } from "vue";
|
2
|
+
import { aM as B } from "./assets/halo-fe-idvmXC0t.js";
|
3
|
+
const M = /* @__PURE__ */ V({
|
4
4
|
__name: "Text",
|
5
5
|
props: {
|
6
6
|
schema: {},
|
@@ -11,7 +11,7 @@ const T = /* @__PURE__ */ x({
|
|
11
11
|
},
|
12
12
|
emits: ["change", "submit", "update:modelValue"],
|
13
13
|
setup(u, { emit: p }) {
|
14
|
-
let l = p, s = u, { table: i, field: o, searchData:
|
14
|
+
let l = p, s = u, { table: i, field: o, searchData: R, modelValue: d } = x(s), c = (a) => {
|
15
15
|
l("change", a);
|
16
16
|
}, n = () => {
|
17
17
|
l("submit");
|
@@ -29,7 +29,7 @@ const T = /* @__PURE__ */ x({
|
|
29
29
|
const h = g("el-input");
|
30
30
|
return C(), b(h, {
|
31
31
|
type: "text",
|
32
|
-
placeholder: e(
|
32
|
+
placeholder: e(B)(e(i).name, e(o).name),
|
33
33
|
clearable: "",
|
34
34
|
onKeyup: y(e(n), ["enter", "native"]),
|
35
35
|
onChange: e(c),
|
@@ -49,5 +49,5 @@ const T = /* @__PURE__ */ x({
|
|
49
49
|
}
|
50
50
|
});
|
51
51
|
export {
|
52
|
-
|
52
|
+
M as default
|
53
53
|
};
|