halo-pc 1.0.18 → 1.0.20
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{Article-C00dDtgQ.js → Article-aps_F4Uq.js} +34 -34
- package/dist/{ArticleFooter-jAlMJJ0Z.js → ArticleFooter-CsCnjrJ1.js} +5 -5
- package/dist/{Autocomplete-DYgdzQEa.js → Autocomplete-BGkHGSX_.js} +1 -1
- package/dist/{Autocomplete-CQ-UuksH.js → Autocomplete-CGoxGIM2.js} +8 -8
- package/dist/{Autocomplete-BYlz8Q3t.js → Autocomplete-XdLV4jzi.js} +8 -8
- package/dist/{CSharp-ouau54_s.js → CSharp-NuDfWEq7.js} +1 -1
- package/dist/{Calender-iu_I3vcU.js → Calender-C2YaNTHk.js} +1 -1
- package/dist/{Callback-bRXyRBO2.js → Callback-Czdr_dVp.js} +1 -1
- package/dist/{Cascader-BJs2FXbQ.js → Cascader-D3Kr80fH.js} +10 -10
- package/dist/{Cascader-ljR17aOe.js → Cascader-DRvnD4Xc.js} +5 -5
- package/dist/{Checkbox-C2OWgiE1.js → Checkbox-5pSKww4M.js} +12 -12
- package/dist/{Checkbox-Cy5zNH7D.js → Checkbox-BAcK--1U.js} +1 -1
- package/dist/Code-BHEes80c.js +4 -0
- package/dist/{Code-Cruabofi.js → Code-BxQxsVD8.js} +10 -10
- package/dist/{Code-DTvIe3kd.js → Code-CbsVyhOv.js} +1 -1
- package/dist/{Code-B9oyIhEo.js → Code-CtDTGfBy.js} +1 -1
- package/dist/{Code.vue_vue_type_style_index_0_lang-BmQDWq2q.js → Code.vue_vue_type_style_index_0_lang-CPZKY3vQ.js} +2 -2
- package/dist/{Column-ClHvuVuz.js → Column-D3PMyaiE.js} +17 -17
- package/dist/{Comment-D292jtJC.js → Comment-B3fvVYJF.js} +12 -12
- package/dist/Compare-BXxJuIXf.js +37 -0
- package/dist/Compare-gEOPuGLB.js +57 -0
- package/dist/{Copy-CvgX-bKU.js → Copy-1znXP-dt.js} +4 -4
- package/dist/{Custom-4bEXZx8t.js → Custom-C_15ZImX.js} +11 -11
- package/dist/{DataExport-DH0oVaJf.js → DataExport-hwoZoZUN.js} +1 -1
- package/dist/{DataExport.vue_vue_type_script_setup_true_lang-BV2aSpcq.js → DataExport.vue_vue_type_script_setup_true_lang-Dkq4fSkZ.js} +18 -18
- package/dist/{DataImport-D73iWOit.js → DataImport-CQYeF50z.js} +1 -1
- package/dist/{DataImport.vue_vue_type_script_setup_true_lang-B39IZpM3.js → DataImport.vue_vue_type_script_setup_true_lang-ChWRjj2W.js} +13 -13
- package/dist/{Date-DCtZ8VpD.js → Date-0bIUTNCs.js} +6 -6
- package/dist/{Date-BJ2vBWIM.js → Date-a3T1YbHN.js} +1 -1
- package/dist/{DateRange-BWXik5I2.js → DateRange-Cxu9FXTE.js} +1 -1
- package/dist/{DateTime-D_GCbnKC.js → DateTime-BUYojCOY.js} +1 -1
- package/dist/{DateTime-BBHPa2zE.js → DateTime-IlsYZL-l.js} +6 -6
- package/dist/{DateTimeRange-C4-4mq77.js → DateTimeRange-D9K4am0p.js} +4 -4
- package/dist/{Daterange-CPVrg_r8.js → Daterange-CX0Klog4.js} +7 -7
- package/dist/{Decimal-Bv5A7-xm.js → Decimal-CNhxJUZg.js} +1 -1
- package/dist/{Delete-lSTmw_3a.js → Delete-DFl8Tr27.js} +13 -13
- package/dist/{Detail-Dfvzkkw6.js → Detail-BXkTd6Wh.js} +5 -5
- package/dist/{Dictionary-thXsHbOo.js → Dictionary-DmarNVsi.js} +10 -10
- package/dist/{Email-BDg7Qf9f.js → Email-BBjDCCOK.js} +4 -4
- package/dist/{File-TEaB_uIR.js → File-CAnAcqJX.js} +37 -37
- package/dist/{Image-BqCjtyvc.js → Image-pufFvop2.js} +1 -1
- package/dist/{Index-ld-kC6ij.js → Index-BqjKndKz.js} +7 -7
- package/dist/{Index-BQKjFLbE.js → Index-C4D5pwwu.js} +24 -24
- package/dist/Index-CD_KS2lO.js +4 -0
- package/dist/Index-CEh3KlPE.js +4 -0
- package/dist/{Index-Cn5Qex6Q.js → Index-CseSUp2Z.js} +1 -1
- package/dist/{Index-BuhrNqZE.js → Index-DJvB04cS.js} +1 -1
- package/dist/{Index-DapcfeaN.js → Index-RZT6JXBO.js} +1 -1
- package/dist/Index-XmvSiC1h.js +4 -0
- package/dist/{Index.vue_vue_type_script_setup_true_lang-zlsTcQ-k.js → Index.vue_vue_type_script_setup_true_lang-C8ZEc4nU.js} +3 -3
- package/dist/{Index.vue_vue_type_script_setup_true_lang-BKPwS2s9.js → Index.vue_vue_type_script_setup_true_lang-DtNDN8Ex.js} +1 -1
- package/dist/{Index.vue_vue_type_style_index_0_lang-CqjK1AVM.js → Index.vue_vue_type_style_index_0_lang-T12lwRy6.js} +11 -11
- package/dist/{Install-BQ_rGQFg.js → Install-DWWpscrR.js} +3 -3
- package/dist/{Int-C33TxFtW.js → Int-Bi3P8XeV.js} +6 -6
- package/dist/{Int-DRcbQElJ.js → Int-Bn2p1DqA.js} +8 -8
- package/dist/{List-CSkx_cTr.js → List-CeQRwXop.js} +17 -17
- package/dist/{Maintaince-D0JZ-9mL.js → Maintaince-CVMjhqSO.js} +1 -1
- package/dist/{Markdown-DjbgXlE6.js → Markdown-d8PCfAFf.js} +1 -1
- package/dist/{Month-C_sIkUIo.js → Month-BfUSQ3xa.js} +6 -6
- package/dist/{Month-68Hi85T_.js → Month-COEkKDL_.js} +1 -1
- package/dist/{Month-unY9f1-N.js → Month-DQKfNQzN.js} +7 -7
- package/dist/{Normal-BAoQvNjn.js → Normal-BD7sNr-b.js} +49 -49
- package/dist/{Paging-BNVKLCCy.js → Paging-d_-VefNv.js} +6 -6
- package/dist/{PagingHeader-CkESvHSg.js → PagingHeader-CznmI0kr.js} +18 -18
- package/dist/{PagingRow-DrMTqBj9.js → PagingRow-BJ-VLpfV.js} +7 -7
- package/dist/{QueryApi-D410WxrU.js → QueryApi-Cdniq3mZ.js} +1 -1
- package/dist/{Racebar-BhPT9MdU.js → Racebar-BkwhD-rw.js} +16 -16
- package/dist/{Radio-D1AcW1pn.js → Radio-CS12bajp.js} +1 -1
- package/dist/{Register-jgIuWNwI.js → Register-l_X4fDPP.js} +23 -23
- package/dist/{RichText-BgLtVFup.js → RichText-9MwwjuZi.js} +8 -8
- package/dist/{SearchFooter-CAWhmjR2.js → SearchFooter-C8N9ku25.js} +1 -1
- package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-ClaSxScx.js → SearchFooter.vue_vue_type_style_index_0_lang-6WvYHIn1.js} +1 -1
- package/dist/{SearchForm--aMZLLx4.js → SearchForm-DX0mN20A.js} +1 -1
- package/dist/{SearchForm.vue_vue_type_style_index_0_lang-_rdBTvY_.js → SearchForm.vue_vue_type_style_index_0_lang-23AxHYiw.js} +19 -19
- package/dist/{Select-DU_6d_Ob.js → Select-CQE5kY-n.js} +14 -14
- package/dist/{Select-CVnXZcZi.js → Select-DYjvtHyi.js} +1 -1
- package/dist/{Select-JFUTkpkm.js → Select-DaEqum3a.js} +17 -17
- package/dist/{Single-B0g3q0uZ.js → Single-DErvX9y_.js} +81 -81
- package/dist/{Statistic-XTBdaF7E.js → Statistic-CQxXdu-V.js} +31 -31
- package/dist/{Stock-CWU3inQY.js → Stock-CsoHCwV6.js} +1 -1
- package/dist/{Stock-nsqld-XR.js → Stock-DXLdfC3r.js} +1 -1
- package/dist/{Stock.vue_vue_type_style_index_0_lang-B7HB-me6.js → Stock.vue_vue_type_style_index_0_lang-B-b3Lj_h.js} +6 -6
- package/dist/{Switch-BqHPuFzA.js → Switch-BCgZXfWo.js} +1 -1
- package/dist/{Table-xRltYWjc.js → Table-CAVxyUTD.js} +55 -55
- package/dist/{Table-l0km2rz7.js → Table-DkJYgLFt.js} +52 -52
- package/dist/{Text-DOTMUPPm.js → Text-Cn0cOTli.js} +7 -7
- package/dist/{Text-alXcFJHa.js → Text-Dk5tNNZo.js} +6 -6
- package/dist/Text-DvVWvaMO.js +4 -0
- package/dist/{Text.vue_vue_type_style_index_0_lang-1wF_kb3u.js → Text.vue_vue_type_style_index_0_lang-I01JEYAx.js} +2 -2
- package/dist/{TextLink-BUpIHKqh.js → TextLink-D3nvnLHn.js} +3 -3
- package/dist/{Textarea-IFX_g2SZ.js → Textarea-Pc4TfoC3.js} +1 -1
- package/dist/{Time-CHadluUL.js → Time-CToG3p0T.js} +6 -6
- package/dist/{Timeline-B7xPAwXh.js → Timeline-DphvhX0U.js} +2 -2
- package/dist/{Tree-qvL1DgaM.js → Tree-01Sb-9zi.js} +54 -54
- package/dist/{Tree-DoXqyUpn.js → Tree-CH1RoUqu.js} +13 -13
- package/dist/{TreeNode-CUSAKhTp.js → TreeNode-C54d29V-.js} +1 -1
- package/dist/{Update-eETfPmHB.js → Update-Cy1lFPVv.js} +5 -5
- package/dist/{UpdateChild-DbbXDvCz.js → UpdateChild-DV_8KV9G.js} +6 -6
- package/dist/{Upload-DMfKIPRu.js → Upload-BalaO4wz.js} +48 -48
- package/dist/{Upload-CAUGBT7A.js → Upload-DQVaPUdG.js} +13 -13
- package/dist/{UploadApi-FEbSWkVM.js → UploadApi-Cfm5DM_x.js} +1 -1
- package/dist/{Year-CnHHib5-.js → Year-BFZPXXq0.js} +1 -1
- package/dist/{Year-CAxdMb2V.js → Year-Swm3VSzj.js} +7 -7
- package/dist/{main-DArl7gFs.js → main-BYJVoHlf.js} +3883 -4263
- package/dist/main.js +26 -27
- 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/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
@@ -1,16 +1,16 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import { C as
|
3
|
-
import { _ as Ge } from "./SearchForm.vue_vue_type_style_index_0_lang-
|
4
|
-
import { _ as Je } from "./DataImport.vue_vue_type_script_setup_true_lang-
|
5
|
-
import { _ as Qe } from "./DataExport.vue_vue_type_script_setup_true_lang-
|
6
|
-
import { _ as Xe } from "./Index.vue_vue_type_style_index_0_lang-
|
1
|
+
import { defineComponent as We, toRefs as Be, ref as u, onMounted as De, nextTick as M, computed as le, resolveComponent as k, openBlock as f, createElementBlock as T, createVNode as v, unref as e, isRef as w, normalizeClass as Te, 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 { C as F, v as $, e as Ee, D as Le, P as j, N as Pe, k as Ke, E as Me, F as Fe, K as je, a as qe, L as Ae, b as Oe, c as Ie } from "./main-BYJVoHlf.js";
|
3
|
+
import { _ as Ge } from "./SearchForm.vue_vue_type_style_index_0_lang-23AxHYiw.js";
|
4
|
+
import { _ as Je } from "./DataImport.vue_vue_type_script_setup_true_lang-ChWRjj2W.js";
|
5
|
+
import { _ as Qe } from "./DataExport.vue_vue_type_script_setup_true_lang-Dkq4fSkZ.js";
|
6
|
+
import { _ as Xe } from "./Index.vue_vue_type_style_index_0_lang-T12lwRy6.js";
|
7
7
|
import "vue-router";
|
8
8
|
import "./assets/intro.js-DxWjEdp_.js";
|
9
|
-
import { _ as Ye } from "./SearchFooter.vue_vue_type_style_index_0_lang-
|
9
|
+
import { _ as Ye } from "./SearchFooter.vue_vue_type_style_index_0_lang-6WvYHIn1.js";
|
10
10
|
const Ze = {
|
11
11
|
key: 0,
|
12
12
|
class: "required"
|
13
|
-
}, et = ["onMouseenter"], tt = { class: "el-drawer__title" }, at = { key: 0 }, lt = ["href"], ct = /* @__PURE__ */
|
13
|
+
}, et = ["onMouseenter"], tt = { class: "el-drawer__title" }, at = { key: 0 }, lt = ["href"], ct = /* @__PURE__ */ We({
|
14
14
|
__name: "Table",
|
15
15
|
props: {
|
16
16
|
searchData: {},
|
@@ -23,7 +23,7 @@ const Ze = {
|
|
23
23
|
},
|
24
24
|
emits: ["search", "navigate", "sort", "page-change", "size-change", "succeed", "close"],
|
25
25
|
setup(ne, { expose: re, emit: se }) {
|
26
|
-
let b = se, ue = ne, { module: ie, schema:
|
26
|
+
let b = se, ue = ne, { module: ie, schema: N, table: r, layout: i, next: p, set: _, searchData: q } = Be(ue), U = u([]), V = u(), E = u(), L = u(), A = 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
27
|
x("insert", null, t);
|
28
28
|
}, pe = (t, a) => {
|
29
29
|
x("detail", t, a);
|
@@ -35,8 +35,8 @@ const Ze = {
|
|
35
35
|
x("delete", t, a);
|
36
36
|
}, Q = (t) => {
|
37
37
|
let a = t.map((o) => o[r.value.key.name]);
|
38
|
-
|
39
|
-
Oe.success(o.message),
|
38
|
+
Ae.post(p.value.delete.route, a).then((o) => {
|
39
|
+
Oe.success(o.message), P();
|
40
40
|
});
|
41
41
|
}, x = (t, a, o) => {
|
42
42
|
let s = ve(t, a);
|
@@ -52,24 +52,24 @@ const Ze = {
|
|
52
52
|
n.value.visible = !1, b("close");
|
53
53
|
}, he = (t) => {
|
54
54
|
n.value.title = Ie(t.module.type, t.module.name), n.value.env = t.module.env;
|
55
|
-
},
|
55
|
+
}, P = () => {
|
56
56
|
n.value.visible = !1;
|
57
|
-
let t =
|
57
|
+
let t = U.value;
|
58
58
|
b("succeed", (a) => {
|
59
59
|
let o = a.data.set[r.value.name];
|
60
60
|
if (!o.length)
|
61
61
|
return;
|
62
62
|
let s = r.value.key;
|
63
|
-
|
63
|
+
M(() => {
|
64
64
|
let c = n.value.row;
|
65
65
|
if (c) {
|
66
66
|
let d = o.find((C) => C[s.name] == c[s.name]);
|
67
|
-
d &&
|
67
|
+
d && E.value.setCurrentRow(d);
|
68
68
|
}
|
69
69
|
if (t.length > 0)
|
70
70
|
for (let d of t) {
|
71
71
|
let C = o.find((l) => l[s.name] == d[s.name]);
|
72
|
-
|
72
|
+
E.value.toggleRowSelection(C, !0);
|
73
73
|
}
|
74
74
|
});
|
75
75
|
});
|
@@ -86,66 +86,66 @@ const Ze = {
|
|
86
86
|
}, xe = (t) => {
|
87
87
|
G.value = t;
|
88
88
|
}, Ce = (t, a) => {
|
89
|
-
|
89
|
+
U.value = t;
|
90
90
|
}, ke = (t, a, o) => {
|
91
91
|
let s = t.target.children[0], c = $.getWidth(s) + 16 + 14, d = a.realWidth || a.width;
|
92
92
|
o._headerTooltip = c > d;
|
93
93
|
}, Re = async (t, a, o, s) => {
|
94
|
-
await
|
94
|
+
await F.setColumnWidth(p.value.paging.route, r.value.name, o.property, t);
|
95
95
|
}, Y = () => {
|
96
96
|
var s, c, d;
|
97
|
-
let t = $.getHeight(
|
97
|
+
let t = $.getHeight(V.value), a = $.getHeight([(s = L.value) == null ? void 0 : s.$el, (c = A.value) == null ? void 0 : c.$el, (d = O.value) == null ? void 0 : d.$el]), o = t - a;
|
98
98
|
I.value = `${o}px`;
|
99
99
|
}, Z = () => {
|
100
100
|
let t = B.value;
|
101
101
|
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
102
|
}, Se = (t, a) => {
|
103
|
-
if (!
|
103
|
+
if (!W.value || !W.value.keyboard)
|
104
104
|
return !1;
|
105
|
-
|
105
|
+
W.value.keyboard(t, a);
|
106
106
|
}, ze = (t) => {
|
107
|
-
L.value.resize(t), B.value = $.getWidth(
|
107
|
+
L.value.resize(t), B.value = $.getWidth(V.value), Z(), M(() => {
|
108
108
|
Y();
|
109
109
|
});
|
110
110
|
};
|
111
|
-
|
112
|
-
J.value = await
|
111
|
+
De(async () => {
|
112
|
+
J.value = await F.getFieldConfigs(), B.value = $.getWidth(V.value), Z(), M(() => {
|
113
113
|
Y();
|
114
114
|
});
|
115
115
|
});
|
116
116
|
let $e = le(() => {
|
117
117
|
let a = Object.keys(i.value.orderBys)[0], o = i.value.orderBys[a];
|
118
118
|
return { prop: a, order: o ? "ascending" : "descending" };
|
119
|
-
}),
|
119
|
+
}), Ve = le(() => {
|
120
120
|
let t = `/${r.value.name}/paging-row`;
|
121
|
-
return
|
121
|
+
return Ee.getComponent(t, "partial", "paging-row");
|
122
122
|
});
|
123
123
|
return re({ keyboard: Se, resize: ze }), (t, a) => {
|
124
124
|
const o = k("el-table-column"), s = k("el-tooltip"), c = k("el-table"), d = k("el-pagination"), C = k("el-drawer");
|
125
|
-
return f(),
|
125
|
+
return f(), T("div", {
|
126
126
|
ref_key: "pagingRef",
|
127
|
-
ref:
|
127
|
+
ref: V,
|
128
128
|
class: "paging-table"
|
129
129
|
}, [
|
130
130
|
v(Ge, {
|
131
131
|
ref_key: "searchRef",
|
132
132
|
ref: L,
|
133
|
-
schema: e(
|
133
|
+
schema: e(N),
|
134
134
|
table: e(r),
|
135
135
|
layout: e(i),
|
136
|
-
"search-data": e(
|
136
|
+
"search-data": e(q),
|
137
137
|
onSubmit: e(X)
|
138
138
|
}, null, 8, ["schema", "table", "layout", "search-data", "onSubmit"]),
|
139
139
|
v(Ye, {
|
140
140
|
ref_key: "headerRef",
|
141
|
-
ref:
|
142
|
-
schema: e(
|
141
|
+
ref: A,
|
142
|
+
schema: e(N),
|
143
143
|
table: e(r),
|
144
144
|
layout: e(i),
|
145
145
|
set: e(_),
|
146
146
|
next: e(p),
|
147
|
-
selection: e(
|
148
|
-
"search-data": e(
|
147
|
+
selection: e(U),
|
148
|
+
"search-data": e(q),
|
149
149
|
onAdd: e(de),
|
150
150
|
onRemove: e(Q),
|
151
151
|
onShowImport: a[0] || (a[0] = (l) => w(m) ? m.value = !0 : m = !0),
|
@@ -154,8 +154,8 @@ const Ze = {
|
|
154
154
|
}, null, 8, ["schema", "table", "layout", "set", "next", "selection", "search-data", "onAdd", "onRemove", "onSearch"]),
|
155
155
|
v(c, {
|
156
156
|
ref_key: "tableRef",
|
157
|
-
ref:
|
158
|
-
class:
|
157
|
+
ref: E,
|
158
|
+
class: Te([{ "hide-nav": e(Le).hideNav }, "table-default table-paging"]),
|
159
159
|
size: "small",
|
160
160
|
border: "",
|
161
161
|
"highlight-current-row": "",
|
@@ -174,7 +174,7 @@ const Ze = {
|
|
174
174
|
type: "selection",
|
175
175
|
width: "30"
|
176
176
|
}),
|
177
|
-
(f(!0),
|
177
|
+
(f(!0), T(He, null, Ne(e(r).show, (l, ot) => {
|
178
178
|
var ee, te, ae;
|
179
179
|
return f(), S(o, {
|
180
180
|
sortable: e(r) ? "custom" : !1,
|
@@ -185,8 +185,8 @@ const Ze = {
|
|
185
185
|
label: `${l.label}${l.control.prefix || l.suffix ? "(" + (l.control.prefix || l.suffix) + ")" : ""}`,
|
186
186
|
key: `${e(r).name}.${l.name}`
|
187
187
|
}, {
|
188
|
-
header: h((
|
189
|
-
l.control.required && l.control.editable ? (f(),
|
188
|
+
header: h((D) => [
|
189
|
+
l.control.required && l.control.editable ? (f(), T("i", Ze)) : z("", !0),
|
190
190
|
v(s, {
|
191
191
|
placement: "top",
|
192
192
|
content: l.label,
|
@@ -194,23 +194,23 @@ const Ze = {
|
|
194
194
|
}, {
|
195
195
|
default: h(() => [
|
196
196
|
H("span", {
|
197
|
-
onMouseenter: (
|
197
|
+
onMouseenter: (K) => e(ke)(K, D.column, l)
|
198
198
|
}, [
|
199
|
-
H("span", null, R(e(
|
199
|
+
H("span", null, R(e(Pe)(e(r).name, l.name)), 1)
|
200
200
|
], 40, et)
|
201
201
|
]),
|
202
202
|
_: 2
|
203
203
|
}, 1032, ["content", "disabled"])
|
204
204
|
]),
|
205
|
-
default: h((
|
205
|
+
default: h((D) => [
|
206
206
|
v(Xe, {
|
207
|
-
schema: e(
|
207
|
+
schema: e(N),
|
208
208
|
table: e(r),
|
209
209
|
field: l,
|
210
210
|
set: e(_),
|
211
|
-
row:
|
212
|
-
config: e(
|
213
|
-
onChange: (
|
211
|
+
row: D.row,
|
212
|
+
config: e(Ke).getConfig(l, e(ie).type, e(i).type),
|
213
|
+
onChange: (K) => e(_e)(K, e(r), l, e(_), D.row)
|
214
214
|
}, null, 8, ["schema", "table", "field", "set", "row", "config", "onChange"])
|
215
215
|
]),
|
216
216
|
_: 2
|
@@ -223,7 +223,7 @@ const Ze = {
|
|
223
223
|
"min-width": e(G)
|
224
224
|
}, {
|
225
225
|
default: h((l) => [
|
226
|
-
(f(), S(
|
226
|
+
(f(), S(Ue(e(Ve)), {
|
227
227
|
table: e(r),
|
228
228
|
next: e(p),
|
229
229
|
set: e(_),
|
@@ -241,7 +241,7 @@ const Ze = {
|
|
241
241
|
]),
|
242
242
|
_: 1
|
243
243
|
}, 8, ["class", "max-height", "data", "default-sort", "onHeaderDragend"]),
|
244
|
-
v(e(
|
244
|
+
v(e(Me), {
|
245
245
|
ref_key: "footerRef",
|
246
246
|
ref: O,
|
247
247
|
class: "list-toolbar"
|
@@ -266,14 +266,14 @@ const Ze = {
|
|
266
266
|
key: 0,
|
267
267
|
next: e(p),
|
268
268
|
onClose: a[5] || (a[5] = (l) => w(m) ? m.value = !1 : m = !1),
|
269
|
-
onSucceed: e(
|
269
|
+
onSucceed: e(P),
|
270
270
|
modelValue: e(m),
|
271
271
|
"onUpdate:modelValue": a[6] || (a[6] = (l) => w(m) ? m.value = l : m = l)
|
272
272
|
}, null, 8, ["next", "onSucceed", "modelValue"])) : z("", !0),
|
273
273
|
e(p).export ? (f(), S(Qe, {
|
274
274
|
key: 1,
|
275
275
|
route: e(p).export.route,
|
276
|
-
"page-count": e(
|
276
|
+
"page-count": e(Fe).pageCount(e(i).count, e(i).pageSize),
|
277
277
|
onClose: a[7] || (a[7] = (l) => w(g) ? g.value = !1 : g = !1),
|
278
278
|
modelValue: e(g),
|
279
279
|
"onUpdate:modelValue": a[8] || (a[8] = (l) => w(g) ? g.value = l : g = l)
|
@@ -282,14 +282,14 @@ const Ze = {
|
|
282
282
|
key: 2,
|
283
283
|
"destroy-on-close": "",
|
284
284
|
"append-to-body": e(n).appendToBody,
|
285
|
-
size: e(
|
285
|
+
size: e(F).getDrawerWidth(e(B)),
|
286
286
|
modelValue: e(n).visible,
|
287
287
|
"onUpdate:modelValue": a[9] || (a[9] = (l) => e(n).visible = l)
|
288
288
|
}, {
|
289
289
|
header: h(() => [
|
290
290
|
H("div", tt, [
|
291
291
|
oe(R(e(n).title) + " ", 1),
|
292
|
-
e(n).env ? (f(),
|
292
|
+
e(n).env ? (f(), T("span", at, "[" + R(e(n).env) + "]", 1)) : z("", !0),
|
293
293
|
H("a", {
|
294
294
|
class: "drawer-copy",
|
295
295
|
href: e(je).getToUrl(e(n).url)
|
@@ -297,12 +297,12 @@ const Ze = {
|
|
297
297
|
])
|
298
298
|
]),
|
299
299
|
default: h(() => [
|
300
|
-
v(e(
|
300
|
+
v(e(qe), {
|
301
301
|
ref_key: "pageRef",
|
302
|
-
ref:
|
302
|
+
ref: W,
|
303
303
|
url: e(n).url,
|
304
304
|
onLoaded: e(he),
|
305
|
-
onSucceed: e(
|
305
|
+
onSucceed: e(P),
|
306
306
|
onClose: e(fe)
|
307
307
|
}, null, 8, ["url", "onLoaded", "onSucceed", "onClose"])
|
308
308
|
]),
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import { defineComponent as Re, defineAsyncComponent as Se, toRefs as ke, ref as p, onMounted as $e, computed as K, watch as
|
2
|
-
import { C as Z,
|
3
|
-
const
|
1
|
+
import { defineComponent as Re, defineAsyncComponent as Se, toRefs as ke, ref as p, onMounted as $e, computed as K, watch as Fe, resolveComponent as b, openBlock as f, createElementBlock as F, Fragment as Q, createVNode as R, unref as e, withCtx as v, createTextVNode as ze, toDisplayString as B, createBlock as z, createCommentVNode as D, renderList as De, createElementVNode as C, normalizeStyle as He, resolveDynamicComponent as Ne, nextTick as Y } from "vue";
|
2
|
+
import { C as Z, M as Ie, e as Be, P as Me, N as Te, k as ee, s as M, v as y, $ as T, X as te, n as W, t as We, F as qe } from "./main-BYJVoHlf.js";
|
3
|
+
const Ee = {
|
4
4
|
key: 0,
|
5
5
|
class: "required"
|
6
|
-
},
|
6
|
+
}, 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
7
|
__name: "Table",
|
8
8
|
props: {
|
9
9
|
route: {},
|
@@ -17,7 +17,7 @@ const We = {
|
|
17
17
|
},
|
18
18
|
emits: ["submit", "change", "row-edit"],
|
19
19
|
setup(le, { expose: ae, emit: oe }) {
|
20
|
-
let ne = Se(() => import("./Index-
|
20
|
+
let ne = Se(() => import("./Index-RZT6JXBO.js")), H = oe, re = le, { schema: q, table: l, layout: d, set: s, next: je, route: E, 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
21
|
H("row-edit", t, l.value, n);
|
22
22
|
}, se = (t) => {
|
23
23
|
H("submit", t);
|
@@ -32,18 +32,18 @@ const We = {
|
|
32
32
|
}, L = (t) => s.value[l.value.name].indexOf(t), ce = (t) => {
|
33
33
|
m.value = t;
|
34
34
|
}, fe = async (t, o, n, u, a) => {
|
35
|
-
await Z.setColumnWidth(
|
35
|
+
await Z.setColumnWidth(E.value, a.name, n.property, t);
|
36
36
|
}, ve = (t) => {
|
37
|
-
|
38
|
-
|
37
|
+
U(t.contentRect.width), Y(() => {
|
38
|
+
X(t.contentRect.height);
|
39
39
|
});
|
40
|
-
},
|
40
|
+
}, U = (t = null) => {
|
41
41
|
let o = y.parentUntil(k.value.$el, ".ha-main-form");
|
42
42
|
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
|
-
},
|
43
|
+
}, X = (t = null) => {
|
44
44
|
let o = y.parentUntil(k.value.$el, ".ha-main-form");
|
45
45
|
t || (t = y.getHeight(o));
|
46
|
-
let n = y.getHeight(
|
46
|
+
let n = y.getHeight(A.value), u = y.find(o, ".main-footer"), a = y.getHeight(u), i = t - n - a;
|
47
47
|
j.value = `${i}px`;
|
48
48
|
}, ge = async () => {
|
49
49
|
let t = s.value[l.value.name].length, o = M.getDefaultRow(l.value);
|
@@ -51,38 +51,38 @@ const We = {
|
|
51
51
|
let n = l.value.fields.filter((a) => a.feature != null);
|
52
52
|
for (let a = 0; a < n.length; a++) {
|
53
53
|
let i = n[a];
|
54
|
-
(await
|
54
|
+
(await T.feature.create(i.feature.type)).add(l.value, i, s.value, o);
|
55
55
|
}
|
56
|
-
|
56
|
+
N(t);
|
57
57
|
let u = te.isBottom(".tree-detail");
|
58
|
-
await
|
58
|
+
await Y(() => {
|
59
59
|
u && te.scrollToBottom(".tree-detail");
|
60
60
|
});
|
61
61
|
}, he = async (t = null) => {
|
62
|
-
let o = m.value[0], n = M.getDefaultRow(l.value), u =
|
62
|
+
let o = m.value[0], n = M.getDefaultRow(l.value), u = W.insert(s.value[l.value.name], o, n), a = l.value.fields.filter((i) => i.feature != null);
|
63
63
|
for (let i = 0; i < a.length; i++) {
|
64
64
|
let c = a[i];
|
65
|
-
(await
|
65
|
+
(await T.feature.create(c.feature.type)).insert(l.value, c, s.value, o, n);
|
66
66
|
}
|
67
|
-
|
67
|
+
N(u), t == null || t(u);
|
68
68
|
}, ye = async () => {
|
69
|
-
let t = l.value.key.name, o =
|
69
|
+
let t = l.value.key.name, o = We.clone(m.value, (a) => {
|
70
70
|
a[t] = null, a[`Old_${t}`] = null;
|
71
71
|
}), n = s.value[l.value.name].indexOf(m.value[0]);
|
72
72
|
for (let a = 0; a < m.value.length; a++) {
|
73
73
|
let i = m.value[a], c = o[a];
|
74
|
-
|
74
|
+
W.append(s.value[l.value.name], i, c);
|
75
75
|
}
|
76
76
|
let u = l.value.fields.filter((a) => a.feature != null);
|
77
77
|
for (let a = 0; a < u.length; a++) {
|
78
78
|
let i = u[a];
|
79
|
-
(await
|
79
|
+
(await T.feature.create(i.feature.type)).copy(l.value, i, s.value);
|
80
80
|
}
|
81
|
-
|
81
|
+
N(n);
|
82
82
|
}, _e = () => {
|
83
|
-
|
84
|
-
},
|
85
|
-
let o =
|
83
|
+
W.remove(s.value[l.value.name], m.value), m.value = [];
|
84
|
+
}, N = (t) => {
|
85
|
+
let o = qe.pageCount(t + 1, d.value.pageSize);
|
86
86
|
_.value.page = o;
|
87
87
|
}, we = (t) => {
|
88
88
|
_.value.page = t;
|
@@ -90,23 +90,23 @@ const We = {
|
|
90
90
|
k.value.$el.querySelector("tbody");
|
91
91
|
};
|
92
92
|
$e(async () => {
|
93
|
-
|
94
|
-
|
93
|
+
O.value = await Z.getFieldConfigs(), xe(), U(), Ie.detectLoaded(P, () => {
|
94
|
+
X();
|
95
95
|
});
|
96
96
|
});
|
97
97
|
let be = K(() => {
|
98
98
|
let t = (_.value.page - 1) * d.value.pageSize, o = _.value.page * d.value.pageSize - 1;
|
99
99
|
return s.value[l.value.name].filter((u, a) => a >= t && a <= o);
|
100
100
|
}), Ce = K(() => {
|
101
|
-
let t = l.value.main ? `/${l.value.name}` : `/${
|
102
|
-
return
|
101
|
+
let t = l.value.main ? `/${l.value.name}` : `/${q.value[0].name}/${l.value.name}`;
|
102
|
+
return Be.getComponent(`${t}/update-child`, "partial", "update-child");
|
103
103
|
});
|
104
|
-
return
|
104
|
+
return Fe(V, (t, o) => {
|
105
105
|
let n = t.find((u) => u.table == l.value.name);
|
106
106
|
n != null && (_.value.page = Math.ceil((n.index + 1) / d.value.pageSize));
|
107
107
|
}), ae({ resize: ve }), (t, o) => {
|
108
108
|
const n = b("el-table-column"), u = b("el-tooltip"), a = b("el-popover"), i = b("el-form-item"), c = b("el-table"), G = b("el-pagination");
|
109
|
-
return f(),
|
109
|
+
return f(), F(Q, null, [
|
110
110
|
R(c, {
|
111
111
|
ref_key: "tableRef",
|
112
112
|
ref: k,
|
@@ -120,27 +120,27 @@ const We = {
|
|
120
120
|
onHeaderDragend: o[1] || (o[1] = (r, h, w, $) => e(fe)(r, h, w, $, e(l)))
|
121
121
|
}, {
|
122
122
|
empty: v(() => [
|
123
|
-
|
123
|
+
ze(B(e(Me)("common.no_data")), 1)
|
124
124
|
]),
|
125
125
|
default: v(() => [
|
126
|
-
e(ue) ? (f(),
|
126
|
+
e(ue) ? (f(), z(n, {
|
127
127
|
key: 0,
|
128
128
|
type: "selection",
|
129
129
|
width: "40",
|
130
130
|
fixed: ""
|
131
131
|
})) : D("", !0),
|
132
|
-
(f(!0),
|
132
|
+
(f(!0), F(Q, null, De(e(l).show, (r, h) => {
|
133
133
|
var w, $, J;
|
134
|
-
return f(),
|
134
|
+
return f(), z(n, {
|
135
135
|
key: r.name,
|
136
136
|
"show-overflow-tooltip": "",
|
137
137
|
prop: r.name,
|
138
138
|
label: r.label,
|
139
|
-
"min-width": ((J = ($ = (w = e(
|
139
|
+
"min-width": ((J = ($ = (w = e(O)) == null ? void 0 : w[e(E)]) == null ? void 0 : $[e(l).name]) == null ? void 0 : J[r.name]) ?? r.control.width,
|
140
140
|
fixed: e(d).fixed.length > 0 ? e(d).fixed.indexOf(r.name) > -1 : h == 0
|
141
141
|
}, {
|
142
142
|
header: v((x) => [
|
143
|
-
e(S).type != "Detail" && r.control.required ? (f(),
|
143
|
+
e(S).type != "Detail" && r.control.required ? (f(), F("i", Ee, "*")) : D("", !0),
|
144
144
|
R(u, {
|
145
145
|
placement: "top",
|
146
146
|
content: r.label,
|
@@ -148,14 +148,14 @@ const We = {
|
|
148
148
|
}, {
|
149
149
|
default: v(() => [
|
150
150
|
C("span", {
|
151
|
-
onMouseenter: (
|
151
|
+
onMouseenter: (I) => e(me)(I, h)
|
152
152
|
}, [
|
153
|
-
C("span", null,
|
154
|
-
], 40,
|
153
|
+
C("span", null, B(e(Te)(e(l).table, r.name)), 1)
|
154
|
+
], 40, Ve)
|
155
155
|
]),
|
156
156
|
_: 2
|
157
157
|
}, 1032, ["content", "disabled"]),
|
158
|
-
r.control.tooltip ? (f(),
|
158
|
+
r.control.tooltip ? (f(), z(a, {
|
159
159
|
key: 1,
|
160
160
|
trigger: "hover",
|
161
161
|
placement: "top",
|
@@ -163,10 +163,10 @@ const We = {
|
|
163
163
|
title: r.control.tooltip.title
|
164
164
|
}, {
|
165
165
|
reference: v(() => [
|
166
|
-
|
166
|
+
Oe
|
167
167
|
]),
|
168
168
|
default: v(() => [
|
169
|
-
C("pre", null,
|
169
|
+
C("pre", null, B(r.control.tooltip.content), 1)
|
170
170
|
]),
|
171
171
|
_: 2
|
172
172
|
}, 1032, ["title"])) : D("", !0)
|
@@ -174,19 +174,19 @@ const We = {
|
|
174
174
|
default: v((x) => [
|
175
175
|
R(i, {
|
176
176
|
style: He(e(ee).getStyle(r, e(S).type, e(d).type)),
|
177
|
-
rules: e(M).getRules(e(
|
177
|
+
rules: e(M).getRules(e(V), e(l), r, x.$index),
|
178
178
|
prop: `[${e(l).name}][${e(L)(x.row)}][${r.name}]`
|
179
179
|
}, {
|
180
180
|
default: v(() => [
|
181
181
|
R(e(ne), {
|
182
|
-
schema: e(
|
182
|
+
schema: e(q),
|
183
183
|
table: e(l),
|
184
184
|
field: r,
|
185
185
|
set: e(s),
|
186
186
|
row: x.row,
|
187
187
|
config: e(ee).getConfig(r, e(S).type, e(d).type),
|
188
188
|
onSubmit: e(se),
|
189
|
-
onChange: (
|
189
|
+
onChange: (I) => e(pe)(I, e(s), e(l), r, e(L)(x.row))
|
190
190
|
}, null, 8, ["schema", "table", "field", "set", "row", "config", "onSubmit", "onChange"])
|
191
191
|
]),
|
192
192
|
_: 2
|
@@ -198,16 +198,16 @@ const We = {
|
|
198
198
|
]),
|
199
199
|
_: 1
|
200
200
|
}, 8, ["max-height", "data", "onSelectionChange"]),
|
201
|
-
e(l).main ? D("", !0) : (f(),
|
201
|
+
e(l).main ? D("", !0) : (f(), F("div", {
|
202
202
|
key: 0,
|
203
203
|
ref_key: "footerRef",
|
204
|
-
ref:
|
204
|
+
ref: A,
|
205
205
|
class: "table-footer"
|
206
206
|
}, [
|
207
|
-
C("div",
|
208
|
-
(f(),
|
207
|
+
C("div", Ae, [
|
208
|
+
(f(), z(Ne(e(Ce)), {
|
209
209
|
ref_key: "operationRef",
|
210
|
-
ref:
|
210
|
+
ref: P,
|
211
211
|
module: e(S),
|
212
212
|
table: e(l),
|
213
213
|
set: e(s),
|
@@ -218,7 +218,7 @@ const We = {
|
|
218
218
|
onRemove: e(_e)
|
219
219
|
}, null, 40, ["module", "table", "set", "selection", "onAdd", "onInsert", "onCopy", "onRemove"]))
|
220
220
|
]),
|
221
|
-
C("div",
|
221
|
+
C("div", Pe, [
|
222
222
|
R(G, {
|
223
223
|
background: "",
|
224
224
|
layout: e(g).layout,
|
@@ -235,5 +235,5 @@ const We = {
|
|
235
235
|
}
|
236
236
|
});
|
237
237
|
export {
|
238
|
-
|
238
|
+
Xe as default
|
239
239
|
};
|
@@ -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 { V as B } from "./main-BYJVoHlf.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 { V as B } from "./main-BYJVoHlf.js";
|
3
|
+
const N = /* @__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
|
+
N as default
|
53
53
|
};
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as x, toRefs as v, ref as d, computed as V, resolveComponent as y, openBlock as s, createElementBlock as u, Fragment as g, unref as l, createBlock as B, isRef as p, createCommentVNode as C, nextTick as R, createElementVNode as T } from "vue";
|
2
|
-
import {
|
2
|
+
import { J as H } from "./main-BYJVoHlf.js";
|
3
3
|
const b = ["innerHTML"], w = /* @__PURE__ */ T("i", { class: "fa fa-edit" }, null, -1), E = [
|
4
4
|
w
|
5
5
|
], S = /* @__PURE__ */ x({
|
@@ -13,7 +13,7 @@ const b = ["innerHTML"], w = /* @__PURE__ */ T("i", { class: "fa fa-edit" }, nul
|
|
13
13
|
modelValue: {}
|
14
14
|
},
|
15
15
|
setup(c) {
|
16
|
-
let _ = c, { table:
|
16
|
+
let _ = c, { table: J, field: a, set: L, row: M, modelValue: k } = v(_), t = d(!1), i = d(), m = () => {
|
17
17
|
t.value = !0, R(() => {
|
18
18
|
i.value.focus();
|
19
19
|
});
|