halo-pc 1.0.26 → 1.0.28
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{Article-BNacU3kR.js → Article-CTzPZjf8.js} +71 -65
- package/dist/{ArticleFooter-Ya07aLYn.js → ArticleFooter-jyfzfZHH.js} +23 -17
- package/dist/{Autocomplete-CyXE-g54.js → Autocomplete-D8ytFwqa.js} +1 -1
- package/dist/Autocomplete-DoUE3T0L.js +53 -0
- package/dist/Autocomplete-FGRT-2ru.js +54 -0
- package/dist/{CSharp-DQLgcbTQ.js → CSharp-qh_kEfGr.js} +1 -1
- package/dist/{Calender-YujFxcgS.js → Calender-DOuq9uAK.js} +1 -1
- package/dist/Callback-DuaBaO1q.js +26 -0
- package/dist/Cascader-DgKBpjUK.js +47 -0
- package/dist/Cascader-s8VT55_K.js +87 -0
- package/dist/{Checkbox-Dkqh7eR4.js → Checkbox-D9NUw4jZ.js} +1 -1
- package/dist/Checkbox-REcdbTXR.js +76 -0
- package/dist/{Code-DXkJ6x5_.js → Code-CBVRms_j.js} +1 -1
- package/dist/Code-DZ-bK9UT.js +60 -0
- package/dist/Code-DfnLveft.js +42 -0
- package/dist/{Code-Dszcah6J.js → Code-loaJtKGd.js} +1 -1
- package/dist/Code.vue_vue_type_style_index_0_lang-BVLhtr1Y.js +65 -0
- package/dist/Column-B96LbQFW.js +75 -0
- package/dist/Comment-bPWbEkgq.js +104 -0
- package/dist/Compare-D4O0qmYv.js +44 -0
- package/dist/{Compare-DKLN4wT4.js → Compare-dimRoHFX.js} +24 -18
- package/dist/Copy-CKLxfWd4.js +49 -0
- package/dist/Custom-Bwyy4_tA.js +57 -0
- package/dist/{DataExport-CFjE1loi.js → DataExport-Bp50K0_6.js} +1 -1
- package/dist/{DataExport.vue_vue_type_script_setup_true_lang-yTe6V3Dn.js → DataExport.vue_vue_type_script_setup_true_lang-8nDL-PI_.js} +41 -36
- package/dist/{DataImport-BQ0rieu8.js → DataImport-BWI4eCxA.js} +1 -1
- package/dist/DataImport.vue_vue_type_script_setup_true_lang-DCS1SfNf.js +176 -0
- package/dist/Date-Cf64NT4R.js +43 -0
- package/dist/{Date-C5WCVXDU.js → Date-FBemqmex.js} +1 -1
- package/dist/DateRange-D5kvmDIo.js +63 -0
- package/dist/DateTime-CTGuyJ4w.js +44 -0
- package/dist/{DateTime-BrsWm90_.js → DateTime-Cvnnthwx.js} +1 -1
- package/dist/{DateTimeRange-DjIp1SAX.js → DateTimeRange-Gb33uiRV.js} +17 -11
- package/dist/Daterange-CfAdeV7J.js +63 -0
- package/dist/{Decimal-_6FobwTd.js → Decimal-B-fyPiuP.js} +1 -1
- package/dist/Delete-DhbWFnzt.js +62 -0
- package/dist/{Detail-BMbiENm0.js → Detail-DV-JRRLT.js} +20 -14
- package/dist/Dictionary-b_mbt-WU.js +59 -0
- package/dist/Email-C2Yl7bMF.js +54 -0
- package/dist/{File-B9Q2QOa-.js → File-D57qYYt1.js} +28 -22
- package/dist/{Image-CzOq81lm.js → Image-BKNUY356.js} +1 -1
- package/dist/{Index-DJz-eVVd.js → Index-BPfkpoVf.js} +25 -20
- package/dist/Index-BUCyMvJX.js +4 -0
- package/dist/Index-BtxNIZsx.js +4 -0
- package/dist/Index-C5WYmq9P.js +4 -0
- package/dist/{Index-DvfJmbPU.js → Index-CSzgmzRG.js} +1 -1
- package/dist/Index-ChWD2gJt.js +4 -0
- package/dist/{Index-BmVFh23J.js → Index-P3uHTgX-.js} +1 -1
- package/dist/Index-PB-VnCO7.js +178 -0
- package/dist/{Index.vue_vue_type_script_setup_true_lang-ExArYWR3.js → Index.vue_vue_type_script_setup_true_lang-BkjFEuPH.js} +20 -14
- package/dist/{Index.vue_vue_type_script_setup_true_lang-BpU5b5wU.js → Index.vue_vue_type_script_setup_true_lang-CJV5JBz9.js} +22 -16
- package/dist/{Install-CXj-qqao.js → Install-o0VJz9Rl.js} +27 -21
- package/dist/Int-BNwPsWfI.js +44 -0
- package/dist/Int-DN3vf18e.js +46 -0
- package/dist/List-DRAtVlgE.js +79 -0
- package/dist/Maintaince-CdVk7qiu.js +20 -0
- package/dist/{Markdown-CdP4Uf3M.js → Markdown-CFwOeXFg.js} +1 -1
- package/dist/Month-CrvLoEQy.js +43 -0
- package/dist/Month-CyB2owvQ.js +44 -0
- package/dist/{Month-BUvqsSfA.js → Month-DsKmd425.js} +1 -1
- package/dist/{Normal-DUlWYlcs.js → Normal-B_SPQW9Z.js} +99 -94
- package/dist/Paging-CzCgExDM.js +99 -0
- package/dist/{PagingHeader-aZb0fGRv.js → PagingHeader-Bfnnsv6m.js} +30 -24
- package/dist/{PagingRow-_H7tCWDM.js → PagingRow-BXaakA5y.js} +26 -20
- package/dist/QueryApi-Cah37Kwx.js +20 -0
- package/dist/{Racebar-DESsxoi9.js → Racebar-6FTe1C4G.js} +42 -37
- package/dist/{Radio-ChF3_bX0.js → Radio-rym8cXJN.js} +1 -1
- package/dist/{Register-Du5lRabU.js → Register-v__-wpY2.js} +75 -70
- package/dist/RichText-BDP5KDin.js +47 -0
- package/dist/{SearchFooter-HjKH1gD5.js → SearchFooter-0mHMD0Xf.js} +1 -1
- package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-CeQ2BcOI.js → SearchFooter.vue_vue_type_style_index_0_lang-CXTYGXIa.js} +1 -1
- package/dist/{SearchForm-C-o0Orkp.js → SearchForm-jSIiiv2r.js} +1 -1
- package/dist/{SearchForm.vue_vue_type_style_index_0_lang-BijR_gZY.js → SearchForm.vue_vue_type_style_index_0_lang-CFxxTJiB.js} +45 -40
- package/dist/{Select-CYaWHcWs.js → Select-Cpj86Kaw.js} +26 -20
- package/dist/{Select-DgKzH1gD.js → Select-DKjXN6Ag.js} +34 -28
- package/dist/{Select-DrybbaWb.js → Select-R0EsEK0_.js} +1 -1
- package/dist/{Single-B-253IzX.js → Single-fIhSt1dN.js} +111 -106
- package/dist/{Statistic-B7Tib1eh.js → Statistic-DM3Fr6sO.js} +29 -24
- package/dist/{Stock-DuyZiPxv.js → Stock-BemUvyqK.js} +1 -1
- package/dist/{Stock-BBcnzi6G.js → Stock-DUrxld5G.js} +1 -1
- package/dist/{Stock.vue_vue_type_style_index_0_lang-B6E5USSu.js → Stock.vue_vue_type_style_index_0_lang-Cv9Jvd6d.js} +29 -24
- package/dist/{Switch-DP-_EUOK.js → Switch-QdLS7c3q.js} +1 -1
- package/dist/{Table-hHG9kq1I.js → Table-BcVHufy3.js} +85 -81
- package/dist/{Table-2jZ0ISz7.js → Table-C4dGV7IQ.js} +74 -68
- package/dist/{Text-lak-4VnA.js → Text-BJNnrW9U.js} +21 -15
- package/dist/{Text-RsldE1sr.js → Text-BNAKwCCe.js} +18 -12
- package/dist/{Text-C70dFJLS.js → Text-D3DqixJp.js} +1 -1
- package/dist/Text.vue_vue_type_style_index_0_lang-B253xD5Z.js +59 -0
- package/dist/TextLink-D-9pICMh.js +65 -0
- package/dist/{Textarea-QGa_EKSl.js → Textarea-Cr5zt_LK.js} +1 -1
- package/dist/Time-DQJPtNWo.js +43 -0
- package/dist/Timeline-Dy37Cou2.js +59 -0
- package/dist/Tree-3zBuSLBv.js +122 -0
- package/dist/{Tree-B2fZE9Qf.js → Tree-4v2brZjr.js} +112 -107
- package/dist/TreeNode-CvS8mLCJ.js +42 -0
- package/dist/{Update-BqQGp_9h.js → Update-Cp50LcVx.js} +18 -12
- package/dist/{UpdateChild-DejVqKrE.js → UpdateChild-CFi_DjLv.js} +23 -17
- package/dist/Upload-Bqp-5cFa.js +72 -0
- package/dist/Upload-D-hvecbh.js +150 -0
- package/dist/UploadApi-CC5hZcM_.js +20 -0
- package/dist/Year-CYSncKVk.js +47 -0
- package/dist/{Year-CrN8Fl5U.js → Year-q0tWWwkv.js} +1 -1
- 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-D-QTCahZ.js +9107 -0
- package/dist/main.js +36 -35
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/dist/Autocomplete-Bud53PPx.js +0 -48
- package/dist/Autocomplete-CfE5ZKi2.js +0 -49
- package/dist/Callback-BaFg5U2u.js +0 -20
- package/dist/Cascader-C1kyNib7.js +0 -41
- package/dist/Cascader-D5PO9zK9.js +0 -81
- package/dist/Checkbox-CUtyT8l7.js +0 -70
- package/dist/Code-C160-nQS.js +0 -54
- package/dist/Code-pe9JMCAj.js +0 -36
- package/dist/Code.vue_vue_type_style_index_0_lang-B1dEEN-z.js +0 -59
- package/dist/Column-C3j98RGT.js +0 -69
- package/dist/Comment-DIrY0RiI.js +0 -98
- package/dist/Compare-5j7MYou6.js +0 -38
- package/dist/Copy-Go_1uhB5.js +0 -43
- package/dist/Custom-C00oYEFm.js +0 -51
- package/dist/DataImport.vue_vue_type_script_setup_true_lang-LYppKTfv.js +0 -172
- package/dist/Date-uHiOL-PD.js +0 -37
- package/dist/DateRange-B-HjKQpJ.js +0 -57
- package/dist/DateTime-D4Ck5hBj.js +0 -38
- package/dist/Daterange-DiZUFL_F.js +0 -57
- package/dist/Delete-C46eSfMC.js +0 -56
- package/dist/Dictionary-Dga6kbof.js +0 -55
- package/dist/Email-PVk9gqfn.js +0 -48
- package/dist/Index-CfDvQD94.js +0 -4
- package/dist/Index-Cq20wsZC.js +0 -173
- package/dist/Index-DGiRkT-p.js +0 -4
- package/dist/Index-DyK_nYp9.js +0 -4
- package/dist/Index-z5MnS_Wq.js +0 -4
- package/dist/Int-BG6MD24t.js +0 -38
- package/dist/Int-Dc7h_7Ga.js +0 -41
- package/dist/List-EDwPH8aL.js +0 -73
- package/dist/Maintaince-BqvMHxH0.js +0 -14
- package/dist/Month-8mDUGsOp.js +0 -37
- package/dist/Month-ClGd6IhI.js +0 -38
- package/dist/Paging-D_ticCtb.js +0 -94
- package/dist/QueryApi-S0e3c6l0.js +0 -13
- package/dist/RichText-BJVvArGS.js +0 -41
- package/dist/Text.vue_vue_type_style_index_0_lang-BP6k7KJG.js +0 -53
- package/dist/TextLink-C-NU-oVe.js +0 -59
- package/dist/Time-BgWPjGd1.js +0 -37
- package/dist/Timeline-CBWcOVdY.js +0 -53
- package/dist/Tree--dJKRJvG.js +0 -117
- package/dist/TreeNode-CxTzNQo9.js +0 -37
- package/dist/Upload-9z5VIixQ.js +0 -146
- package/dist/Upload-tlSQp2Qu.js +0 -67
- package/dist/UploadApi-B2dxOS0T.js +0 -13
- package/dist/Year-DNDyqe5X.js +0 -41
- package/dist/main-D3_7YhaK.js +0 -15700
@@ -1,6 +1,11 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import
|
3
|
-
|
1
|
+
import { defineComponent as I, toRefs as J, ref as p, onMounted as K, nextTick as P, computed as q, watch as Q, resolveComponent as m, openBlock as r, createBlock as i, withCtx as n, unref as a, withModifiers as X, createElementBlock as v, Fragment as g, renderList as x, createVNode as y, createTextVNode as B, toDisplayString as Y, createCommentVNode as Z } from "vue";
|
2
|
+
import "./assets/underscore-B0BCaBxV.js";
|
3
|
+
import "./assets/underscore.string-DVXD2SZo.js";
|
4
|
+
import { O as ee, s as D, f as te, G as ae } from "./main-D-QTCahZ.js";
|
5
|
+
import "./assets/file-saver-CwlpTZSc.js";
|
6
|
+
import "./assets/moment-h96o7c8I.js";
|
7
|
+
import "./assets/liquidjs-C-LVcoaY.js";
|
8
|
+
const ie = /* @__PURE__ */ I({
|
4
9
|
__name: "SearchForm",
|
5
10
|
props: {
|
6
11
|
schema: { type: Array, required: !0 },
|
@@ -10,18 +15,18 @@ const oe = /* @__PURE__ */ H({
|
|
10
15
|
},
|
11
16
|
emits: ["change", "submit", "mounted"],
|
12
17
|
setup(M, { expose: N, emit: T }) {
|
13
|
-
let w = T, W = M, { schema: F, table: u, layout: C, searchData:
|
18
|
+
let w = T, W = M, { schema: F, table: u, layout: C, searchData: h } = J(W), V = p(), k = p(), E = p(), d = p(), L = (e) => {
|
14
19
|
w("change", e);
|
15
20
|
}, S = (e = null) => {
|
16
21
|
w("submit");
|
17
|
-
},
|
22
|
+
}, U = (e, t) => {
|
18
23
|
let l = e == "*" ? null : e;
|
19
|
-
|
20
|
-
},
|
24
|
+
h.value[u.value.name][t.name] = l, S();
|
25
|
+
}, O = () => {
|
21
26
|
V.value && (k.value = V.value.$el.clientWidth);
|
22
|
-
},
|
23
|
-
|
24
|
-
},
|
27
|
+
}, $ = (e) => {
|
28
|
+
O();
|
29
|
+
}, R = () => {
|
25
30
|
let e = C.value.tabs;
|
26
31
|
if (e)
|
27
32
|
for (let t = 0; t < e.length; t++) {
|
@@ -29,53 +34,53 @@ const oe = /* @__PURE__ */ H({
|
|
29
34
|
d.value[u.value.name][l] || (d.value[u.value.name][l] = "*");
|
30
35
|
}
|
31
36
|
};
|
32
|
-
d.value = ee.clone(
|
33
|
-
|
37
|
+
d.value = ee.clone(h.value), R(), K(() => {
|
38
|
+
O(), P(() => {
|
34
39
|
w("mounted");
|
35
40
|
});
|
36
41
|
});
|
37
|
-
let
|
42
|
+
let z = q(() => {
|
38
43
|
if (!k.value)
|
39
44
|
return [];
|
40
|
-
let e = Math.ceil(k.value / 200), t = D.expandSearch(F.value), l = C.value.tabs ?? [],
|
41
|
-
return D.getLines(
|
42
|
-
}),
|
45
|
+
let e = Math.ceil(k.value / 200), t = D.expandSearch(F.value), l = C.value.tabs ?? [], c = t.filter((b) => l.indexOf(b.name) == -1);
|
46
|
+
return D.getLines(c, e, (b) => b, () => 1);
|
47
|
+
}), j = q(() => {
|
43
48
|
let e = [], t = C.value.tabs;
|
44
49
|
return t && t.forEach((l) => {
|
45
|
-
let
|
46
|
-
e.push(
|
50
|
+
let c = u.value.fields.find((_) => _.name == l);
|
51
|
+
e.push(c);
|
47
52
|
}), e;
|
48
53
|
});
|
49
|
-
return
|
50
|
-
|
51
|
-
}), N({ resize:
|
52
|
-
const l =
|
53
|
-
return r(), i(
|
54
|
+
return Q(() => h.value, (e, t) => {
|
55
|
+
R();
|
56
|
+
}), N({ resize: $ }), (e, t) => {
|
57
|
+
const l = m("el-radio-button"), c = m("el-radio-group"), _ = m("el-form-item"), b = m("el-col"), A = m("el-row"), G = m("el-form"), H = m("el-scrollbar");
|
58
|
+
return r(), i(H, {
|
54
59
|
"max-height": "200px",
|
55
60
|
class: "search-form"
|
56
61
|
}, {
|
57
62
|
default: n(() => [
|
58
|
-
a(u).search.length > 0 ? (r(), i(
|
63
|
+
a(u).search.length > 0 ? (r(), i(G, {
|
59
64
|
key: 0,
|
60
65
|
ref_key: "searchFormRef",
|
61
66
|
ref: V,
|
62
67
|
"label-position": "left",
|
63
68
|
inline: "",
|
64
|
-
onSubmit: t[0] || (t[0] =
|
69
|
+
onSubmit: t[0] || (t[0] = X(() => {
|
65
70
|
}, ["prevent"]))
|
66
71
|
}, {
|
67
72
|
default: n(() => [
|
68
|
-
(r(!0), v(g, null, x(a(
|
73
|
+
(r(!0), v(g, null, x(a(j), (s, f) => (r(), i(_, {
|
69
74
|
class: "search-tab",
|
70
75
|
label: s.label,
|
71
76
|
"label-width": 50
|
72
77
|
}, {
|
73
78
|
default: n(() => [
|
74
|
-
y(
|
79
|
+
y(c, {
|
75
80
|
ref_for: !0,
|
76
81
|
ref_key: "tabRefs",
|
77
|
-
ref:
|
78
|
-
onChange: (o) => a(
|
82
|
+
ref: E,
|
83
|
+
onChange: (o) => a(U)(o, s),
|
79
84
|
modelValue: a(d)[a(u).name][s.name],
|
80
85
|
"onUpdate:modelValue": (o) => a(d)[a(u).name][s.name] = o
|
81
86
|
}, {
|
@@ -90,7 +95,7 @@ const oe = /* @__PURE__ */ H({
|
|
90
95
|
value: o.value
|
91
96
|
}, {
|
92
97
|
default: n(() => [
|
93
|
-
B(
|
98
|
+
B(Y(o.text), 1)
|
94
99
|
]),
|
95
100
|
_: 2
|
96
101
|
}, 1032, ["value"]))), 256))
|
@@ -100,25 +105,25 @@ const oe = /* @__PURE__ */ H({
|
|
100
105
|
]),
|
101
106
|
_: 2
|
102
107
|
}, 1032, ["label"]))), 256)),
|
103
|
-
(r(!0), v(g, null, x(a(
|
108
|
+
(r(!0), v(g, null, x(a(z), (s) => (r(), i(A, {
|
104
109
|
class: "search-row",
|
105
|
-
label: a(
|
110
|
+
label: a(j).length ? "其它" : "",
|
106
111
|
"label-width": 50,
|
107
112
|
gutter: 5
|
108
113
|
}, {
|
109
114
|
default: n(() => [
|
110
|
-
(r(!0), v(g, null, x(s, ({ data:
|
115
|
+
(r(!0), v(g, null, x(s, ({ data: f, span: o }, le) => (r(), i(b, { span: o }, {
|
111
116
|
default: n(() => [
|
112
|
-
y(
|
113
|
-
label: a(te)(
|
117
|
+
y(_, {
|
118
|
+
label: a(te)(f.table.name, f.name)
|
114
119
|
}, {
|
115
120
|
default: n(() => [
|
116
121
|
y(ae, {
|
117
122
|
schema: a(F),
|
118
|
-
table:
|
119
|
-
field:
|
120
|
-
"search-data": a(
|
121
|
-
onChange: a(
|
123
|
+
table: f.table,
|
124
|
+
field: f,
|
125
|
+
"search-data": a(h),
|
126
|
+
onChange: a(L),
|
122
127
|
onSubmit: a(S)
|
123
128
|
}, null, 8, ["schema", "table", "field", "search-data", "onChange", "onSubmit"])
|
124
129
|
]),
|
@@ -140,5 +145,5 @@ const oe = /* @__PURE__ */ H({
|
|
140
145
|
}
|
141
146
|
});
|
142
147
|
export {
|
143
|
-
|
148
|
+
ie as _
|
144
149
|
};
|
@@ -1,9 +1,15 @@
|
|
1
|
-
import { defineComponent as K, toRefs as R, ref as
|
2
|
-
import
|
3
|
-
|
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-D-QTCahZ.js";
|
8
|
+
import "./assets/liquidjs-C-LVcoaY.js";
|
9
|
+
const H = { class: "option-text" }, I = {
|
4
10
|
key: 0,
|
5
11
|
class: "option-suffix"
|
6
|
-
},
|
12
|
+
}, ee = /* @__PURE__ */ K({
|
7
13
|
__name: "Select",
|
8
14
|
props: {
|
9
15
|
schema: {},
|
@@ -14,18 +20,18 @@ const G = { class: "option-text" }, H = {
|
|
14
20
|
},
|
15
21
|
emits: ["change", "submit", "update:modelValue"],
|
16
22
|
setup(v, { emit: x }) {
|
17
|
-
let
|
18
|
-
|
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");
|
19
25
|
}, w = () => {
|
20
26
|
}, B = (l) => {
|
21
|
-
|
27
|
+
m.value = l, D();
|
22
28
|
}, D = () => {
|
23
|
-
let l = { text:
|
29
|
+
let l = { text: m.value, conditions: [] };
|
24
30
|
a.value.control.data.conditions.forEach((o) => {
|
25
31
|
let u = y.value[o.table][o.field];
|
26
32
|
l.conditions.push({ name: o.name, value: u });
|
27
|
-
}),
|
28
|
-
|
33
|
+
}), G.post(a.value.control.data.route, l).then(({ data: o }) => {
|
34
|
+
d.value = o;
|
29
35
|
}).finally(() => {
|
30
36
|
k.value = !1;
|
31
37
|
});
|
@@ -34,12 +40,12 @@ const G = { class: "option-text" }, H = {
|
|
34
40
|
return V.value;
|
35
41
|
},
|
36
42
|
set(l) {
|
37
|
-
|
43
|
+
s("update:modelValue", l), s("change", l);
|
38
44
|
}
|
39
45
|
});
|
40
46
|
return (l, o) => {
|
41
|
-
const u =
|
42
|
-
return
|
47
|
+
const u = p("el-option"), E = p("el-select");
|
48
|
+
return r(), c(E, {
|
43
49
|
ref: "selectRef",
|
44
50
|
filterable: "",
|
45
51
|
remote: "",
|
@@ -47,7 +53,7 @@ const G = { class: "option-text" }, H = {
|
|
47
53
|
clearable: "",
|
48
54
|
"default-first-option": "",
|
49
55
|
"remote-show-suffix": "",
|
50
|
-
placeholder: t(
|
56
|
+
placeholder: t(z)("common.please_choose") + t(A)(t(g).name, t(a).name),
|
51
57
|
multiple: t(a).control.multiple,
|
52
58
|
"loading-text": "加载中",
|
53
59
|
"remote-method": t(B),
|
@@ -57,15 +63,15 @@ const G = { class: "option-text" }, H = {
|
|
57
63
|
modelValue: t(n),
|
58
64
|
"onUpdate:modelValue": o[0] || (o[0] = (e) => F(n) ? n.value = e : n = e)
|
59
65
|
}, {
|
60
|
-
default:
|
61
|
-
(
|
66
|
+
default: f(() => [
|
67
|
+
(r(!0), h(L, null, U(t(d), (e, O) => (r(), c(u, {
|
62
68
|
label: e.text + (e.suffix ? "(" + e.suffix + ")" : ""),
|
63
69
|
value: e.value,
|
64
70
|
key: e.value
|
65
71
|
}, {
|
66
|
-
default:
|
67
|
-
|
68
|
-
e.suffix ? (
|
72
|
+
default: f(() => [
|
73
|
+
j("span", H, _(e.text), 1),
|
74
|
+
e.suffix ? (r(), h("span", I, "(" + _(e.suffix) + ")", 1)) : q("", !0)
|
69
75
|
]),
|
70
76
|
_: 2
|
71
77
|
}, 1032, ["label", "value"]))), 128))
|
@@ -76,5 +82,5 @@ const G = { class: "option-text" }, H = {
|
|
76
82
|
}
|
77
83
|
});
|
78
84
|
export {
|
79
|
-
|
85
|
+
ee as default
|
80
86
|
};
|
@@ -1,9 +1,15 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import
|
1
|
+
import { defineComponent as A, toRefs as D, ref as f, computed as H, resolveComponent as b, openBlock as c, createBlock as y, unref as n, withKeys as L, withModifiers as O, isRef as U, withCtx as V, createElementBlock as 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-D-QTCahZ.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";
|
3
9
|
const X = { class: "option-text" }, Y = {
|
4
10
|
key: 0,
|
5
11
|
class: "option-suffix"
|
6
|
-
},
|
12
|
+
}, ue = /* @__PURE__ */ A({
|
7
13
|
__name: "Select",
|
8
14
|
props: {
|
9
15
|
schema: {},
|
@@ -15,30 +21,30 @@ const X = { class: "option-text" }, Y = {
|
|
15
21
|
},
|
16
22
|
emits: ["submit", "change", "update:modelValue"],
|
17
23
|
setup(C, { emit: E }) {
|
18
|
-
let s = E, B = C, { schema: S, field:
|
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) => {
|
19
25
|
t == "" && (t = null);
|
20
26
|
let e;
|
21
|
-
if (P.isString(t) &&
|
22
|
-
let a =
|
27
|
+
if (P.isString(t) && r.value.control.multiple ? e = t.join(",") : e = t, u.value = e, r.value.control.text) {
|
28
|
+
let a = p.value.fields.find((l) => l.name == r.value.control.text), o;
|
23
29
|
e && (o = d.value.find((i) => i.value == e).text);
|
24
30
|
debugger;
|
25
31
|
R.value[a.name] = o;
|
26
32
|
}
|
27
|
-
|
33
|
+
_(p.value, r.value), s("change", t);
|
28
34
|
}, N = () => {
|
29
35
|
s("submit");
|
30
36
|
}, T = () => {
|
31
37
|
}, j = () => {
|
32
|
-
|
38
|
+
h.value = !0;
|
33
39
|
let t = { text: g.value, conditions: [] };
|
34
|
-
|
35
|
-
let a =
|
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(",");
|
36
42
|
t.conditions.push({ name: e.name, value: o });
|
37
|
-
}), W.post(
|
43
|
+
}), W.post(r.value.control.data.route, t).then(({ data: e }) => {
|
38
44
|
d.value = e;
|
39
45
|
}).finally(() => {
|
40
|
-
|
41
|
-
let e = d.value.find((a) => a.value ==
|
46
|
+
h.value = !1, I(() => {
|
47
|
+
let e = d.value.find((a) => a.value == u.value);
|
42
48
|
x.value.scrollToOption(e);
|
43
49
|
});
|
44
50
|
});
|
@@ -53,20 +59,20 @@ const X = { class: "option-text" }, Y = {
|
|
53
59
|
});
|
54
60
|
});
|
55
61
|
}), a;
|
56
|
-
},
|
62
|
+
}, _ = (t, e) => {
|
57
63
|
M(t, e).forEach((o) => {
|
58
|
-
Q.setRowsValue(null,
|
64
|
+
Q.setRowsValue(null, v.value, o.table, o.field), _(o.table, o.field);
|
59
65
|
});
|
60
|
-
},
|
66
|
+
}, u = H({
|
61
67
|
get() {
|
62
|
-
return
|
68
|
+
return r.value.control.multiple ? m.value == null ? [] : m.value.toString().split(",") : m.value;
|
63
69
|
},
|
64
70
|
set(t) {
|
65
71
|
s("update:modelValue", t), s("change", t);
|
66
72
|
}
|
67
73
|
});
|
68
74
|
return (t, e) => {
|
69
|
-
const a =
|
75
|
+
const a = b("el-option"), o = b("el-select");
|
70
76
|
return c(), y(o, {
|
71
77
|
ref_key: "selectRef",
|
72
78
|
ref: x,
|
@@ -77,26 +83,26 @@ const X = { class: "option-text" }, Y = {
|
|
77
83
|
"remote-show-suffix": "",
|
78
84
|
"loading-text": "加载中",
|
79
85
|
clearable: "",
|
80
|
-
placeholder: n(J)(n(
|
81
|
-
multiple: n(
|
86
|
+
placeholder: n(J)(n(p).name, n(r).name),
|
87
|
+
multiple: n(r).control.multiple,
|
82
88
|
"remote-method": n(F),
|
83
|
-
loading: n(
|
84
|
-
disabled: n(
|
89
|
+
loading: n(h),
|
90
|
+
disabled: n(r).control.readonly,
|
85
91
|
onKeyup: L(O(n(N), ["alt"]), ["enter", "native"]),
|
86
92
|
onBlur: n(T),
|
87
93
|
onChange: n(K),
|
88
|
-
modelValue: n(
|
89
|
-
"onUpdate:modelValue": e[0] || (e[0] = (l) =>
|
94
|
+
modelValue: n(u),
|
95
|
+
"onUpdate:modelValue": e[0] || (e[0] = (l) => U(u) ? u.value = l : u = l)
|
90
96
|
}, {
|
91
97
|
default: V(() => [
|
92
|
-
(c(!0), k(
|
98
|
+
(c(!0), k($, null, q(n(d), (l, i) => (c(), y(a, {
|
93
99
|
label: `${l.text}${l.suffix ? "(" + l.suffix + ")" : ""}`,
|
94
100
|
value: l.value,
|
95
101
|
key: l.value
|
96
102
|
}, {
|
97
103
|
default: V(() => [
|
98
|
-
|
99
|
-
l.suffix ? (c(), k("span", Y, "(" + w(l.suffix) + ")", 1)) :
|
104
|
+
z("span", X, w(l.text), 1),
|
105
|
+
l.suffix ? (c(), k("span", Y, "(" + w(l.suffix) + ")", 1)) : G("", !0)
|
100
106
|
]),
|
101
107
|
_: 2
|
102
108
|
}, 1032, ["label", "value"]))), 128))
|
@@ -107,5 +113,5 @@ const X = { class: "option-text" }, Y = {
|
|
107
113
|
}
|
108
114
|
});
|
109
115
|
export {
|
110
|
-
|
116
|
+
ue as default
|
111
117
|
};
|
@@ -10,7 +10,7 @@ const x = /* @__PURE__ */ u({
|
|
10
10
|
modelValue: { type: [String, Number, Boolean] }
|
11
11
|
},
|
12
12
|
setup(a) {
|
13
|
-
let r = f(() => import("./Dictionary-
|
13
|
+
let r = f(() => import("./Dictionary-b_mbt-WU.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),
|