halo-pc 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{Article-7pMF1N-k.js → Article-BbJTCOkX.js} +66 -62
- package/dist/{Autocomplete-CEjjKXwo.js → Autocomplete-A0m1RW7z.js} +1 -1
- package/dist/Autocomplete-C3d_yunJ.js +52 -0
- package/dist/Autocomplete-H0_xgWsN.js +53 -0
- package/dist/{CSharp-DatSqpip.js → CSharp-Bwl97exE.js} +1 -1
- package/dist/{Calender-B1HoFiQg.js → Calender-C3vbVYIN.js} +1 -1
- package/dist/Callback-oU2ap8v9.js +24 -0
- package/dist/Cascader-ClSabtOx.js +45 -0
- package/dist/Cascader-DRErYyH6.js +84 -0
- package/dist/{Checkbox-B6IkMrWB.js → Checkbox-BJS0a1NT.js} +1 -1
- package/dist/{Code-SZuIImtp.js → Code-9I77CMRV.js} +1 -1
- package/dist/Code-B2DrYXDa.js +58 -0
- package/dist/Code-BgqGTky1.js +40 -0
- package/dist/Code-Cv1pm18C.js +4 -0
- package/dist/Code.vue_vue_type_style_index_0_lang-IHZepbsi.js +63 -0
- package/dist/Column-Dgs0SdWX.js +71 -0
- package/dist/Comment-Cy6lpmqk.js +102 -0
- package/dist/Compare-5cTiHEdo.js +30 -0
- package/dist/Compare-CWeuLw9n.js +60 -0
- package/dist/Copy-C6WEtRhC.js +47 -0
- package/dist/Custom-QDHQJoxC.js +53 -0
- package/dist/{DataExport-I9iG4oEo.js → DataExport-BHh7NvbT.js} +1 -1
- package/dist/{DataExport.vue_vue_type_script_setup_true_lang-BgKetUGv.js → DataExport.vue_vue_type_script_setup_true_lang-C9t5j7Gi.js} +37 -33
- package/dist/{DataImport-2KtOy-of.js → DataImport-CtBsCyNb.js} +1 -1
- package/dist/{DataImport.vue_vue_type_script_setup_true_lang-DgzKdC2g.js → DataImport.vue_vue_type_script_setup_true_lang-bI0HP38b.js} +59 -55
- package/dist/{Date-PERpDDy_.js → Date-IV1FwqTW.js} +1 -1
- package/dist/{DateRange-BaxHMjcx.js → DateRange-IWmDLSuy.js} +11 -7
- package/dist/{DateTime-B7gHENiu.js → DateTime-Di6sr-tq.js} +1 -1
- package/dist/{DateTimeRange-yI9Y2qgC.js → DateTimeRange-BNUGYgWf.js} +14 -10
- package/dist/{Daterange-DqvBvK-B.js → Daterange-rrlMT4tD.js} +17 -13
- package/dist/{Decimal-AXwMeqBW.js → Decimal-D9TVQqyS.js} +1 -1
- package/dist/Delete-B-k4PTWk.js +59 -0
- package/dist/{Detail-aWACqVnM.js → Detail-HAblGKTY.js} +20 -16
- package/dist/Dictionary-BUmany6B.js +59 -0
- package/dist/{File--NsXL6XX.js → File-MF1QgEQX.js} +45 -41
- package/dist/{Image-CuwfJLKW.js → Image-Dps_vfcZ.js} +1 -1
- package/dist/{Index-BNOFdDjW.js → Index-7cTFT9Xb.js} +19 -15
- package/dist/{Index-CQ9S2R9b.js → Index-C_mfWEwr.js} +1 -1
- package/dist/Index-Cgets8DK.js +4 -0
- package/dist/Index-DGnHsBz4.js +4 -0
- package/dist/{Index-Cewv4-Ik.js → Index-DupYRMRj.js} +45 -41
- package/dist/{Index-DA2wAurY.js → Index-XBFHPLbK.js} +1 -1
- package/dist/{Index-Cj79dCuO.js → Index-hgpg_5ma.js} +1 -1
- package/dist/{Index.vue_vue_type_script_setup_true_lang-D6_VOLX-.js → Index.vue_vue_type_script_setup_true_lang-C1Bw7evJ.js} +15 -11
- package/dist/{Index.vue_vue_type_script_setup_true_lang-DjiARPz7.js → Index.vue_vue_type_script_setup_true_lang-yOf2ubuo.js} +16 -12
- package/dist/{Index.vue_vue_type_style_index_0_lang-DApNHvNX.js → Index.vue_vue_type_style_index_0_lang-DBERwM_v.js} +31 -27
- package/dist/{Install-BWdNbtVx.js → Install-A9qs4Vg-.js} +20 -16
- package/dist/{Int-nmVkFRqG.js → Int-B3L54Gcc.js} +16 -12
- package/dist/List-Om6OdbbR.js +76 -0
- package/dist/Maintaince-CrfEX-5B.js +19 -0
- package/dist/{Markdown-DD6ufwhM.js → Markdown-wcGRlabe.js} +1 -1
- package/dist/{Month-BqbTFGgo.js → Month-C1tCQKvO.js} +1 -1
- package/dist/{Normal-f4HN1ciI.js → Normal-HoU_elKy.js} +51 -47
- package/dist/Paging-C_StoYuZ.js +94 -0
- package/dist/QueryApi-BrYyIwqV.js +18 -0
- package/dist/{Racebar-Bou-XNCm.js → Racebar-BXuP1N9F.js} +27 -23
- package/dist/{Radio-BmikzeCv.js → Radio-D6W9guyM.js} +1 -1
- package/dist/{Register-CgbRZH9W.js → Register-DGhIjRDD.js} +79 -75
- package/dist/{RichText-BeK3zZam.js → RichText-B3Br1uzj.js} +22 -18
- package/dist/{SearchFooter-C4PeAkaR.js → SearchFooter-D3-9GTr1.js} +1 -1
- package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-BaO7vJ-n.js → SearchFooter.vue_vue_type_style_index_0_lang-DP32ZjvQ.js} +1 -1
- package/dist/{SearchForm-C7fZiQaW.js → SearchForm-rWozLa4B.js} +1 -1
- package/dist/{SearchForm.vue_vue_type_style_index_0_lang-BumSLQVy.js → SearchForm.vue_vue_type_style_index_0_lang-F2we6KP-.js} +30 -26
- package/dist/{Select-C1-NVZdG.js → Select-64nQiHNA.js} +21 -17
- package/dist/{Select-DR5fQH0d.js → Select-CAmBUDp3.js} +40 -36
- package/dist/{Select-DlbQvxQu.js → Select-qCdhL7vC.js} +1 -1
- package/dist/{Single-BLRyJKB-.js → Single-Bnrt5Hxb.js} +81 -77
- package/dist/{Statistic-BOtmYiRA.js → Statistic-BTbwlH9l.js} +35 -31
- package/dist/{Stock-Dnwof0R1.js → Stock-Br_02hsI.js} +1 -1
- package/dist/{Stock-BqQ6lM5B.js → Stock-DbExd680.js} +1 -1
- package/dist/{Stock.vue_vue_type_style_index_0_lang-Az2jx3JN.js → Stock.vue_vue_type_style_index_0_lang-MTvhmHlz.js} +26 -22
- package/dist/{Switch-DuMBV0AX.js → Switch-J2GIv4Wa.js} +1 -1
- package/dist/{Table-Be-rPXr_.js → Table-DjBx2UGm.js} +68 -64
- package/dist/{Table-RMVT0hlE.js → Table-X4vTHlpm.js} +52 -48
- package/dist/{Text-DSXRKFPa.js → Text-BFZc81F2.js} +1 -1
- package/dist/Text.vue_vue_type_style_index_0_lang-Cw7QQbFk.js +56 -0
- package/dist/TextLink-C_lFWaZv.js +66 -0
- package/dist/{Textarea-3ypOGE1S.js → Textarea-Dw_qLc3Y.js} +1 -1
- package/dist/{Timeline-CLezCcgQ.js → Timeline-DaaRGmGd.js} +21 -17
- package/dist/Tree-CDD2Nd6q.js +121 -0
- package/dist/{Tree-B6RBRT1y.js → Tree-Cmp10DWw.js} +85 -81
- package/dist/TreeNode-BM8-GyIc.js +38 -0
- package/dist/{Update-Dc3Tdkn0.js → Update-PffbXMXH.js} +17 -13
- package/dist/Upload-F6HXe76H.js +71 -0
- package/dist/Upload-kwwpaDe6.js +147 -0
- package/dist/{UploadApi-Bs507D0w.js → UploadApi-D2W_aGKA.js} +8 -3
- package/dist/{Year-DKxOQNyS.js → Year-Dr5ST0Pk.js} +1 -1
- package/dist/main-B8RC13GR.js +6528 -0
- package/dist/main.js +113 -113
- package/dist/style.css +1 -1
- package/dist/vendor-@monaco-editor-DKC4UNw_.js +258 -0
- package/dist/{vendor-clipboard-DjQPoCBJ.js → vendor-clipboard-BqjesuiY.js} +130 -110
- package/dist/vendor-clone-BPtCWdXG.js +134 -0
- package/dist/vendor-crypto-js-ftX_aBC-.js +4995 -0
- package/dist/vendor-file-saver-CytTIJ-3.js +74 -0
- package/dist/{vendor-intro.js-DwWqhM1v.js → vendor-intro.js-CZkClzQO.js} +1 -1
- package/dist/vendor-moment-h96o7c8I.js +2578 -0
- package/dist/vendor-sprintf-js-BPTdvBYM.js +148 -0
- package/dist/vendor-state-local-CEworIRt.js +131 -0
- package/dist/vendor-underscore-DVTek3G4.js +1070 -0
- package/dist/vendor-underscore.string-BEHfJwHl.js +425 -0
- package/dist/vendor-util-deprecate-DzpNkCzj.js +28 -0
- package/esm/coms/controls/Text.vue.d.ts +1 -1
- package/esm/coms/globals/HaMenu.vue.d.ts +1 -1
- package/esm/coms/globals/HaWindow.vue.d.ts +1 -1
- package/esm/coms/pages/Delete.vue.d.ts +2 -2
- package/esm/coms/pages/Single.vue.d.ts +2 -2
- package/esm/coms/pagings/Article.vue.d.ts +2 -2
- package/esm/coms/pagings/DataExport.vue.d.ts +2 -2
- package/esm/coms/pagings/DataImport.vue.d.ts +2 -2
- package/esm/coms/pagings/Index.vue.d.ts +2 -2
- package/esm/coms/pagings/SearchFooter.vue.d.ts +1 -1
- package/esm/coms/pagings/Table.vue.d.ts +2 -2
- package/esm/main.d.ts +4 -3
- package/esm/services/ServiceFactory.d.ts +3 -0
- package/esm/types/PcOptions.d.ts +18 -0
- package/esm/types/index.d.ts +2 -0
- package/package.json +2 -2
- package/dist/Autocomplete-DqKo5NiJ.js +0 -49
- package/dist/Autocomplete-K5ipzchR.js +0 -48
- package/dist/Callback-PyCjejiv.js +0 -20
- package/dist/Cascader-B9lLRKjA.js +0 -80
- package/dist/Cascader-BNvlqc5t.js +0 -41
- package/dist/Code-BdK547kD.js +0 -4
- package/dist/Code-DfFF-84i.js +0 -36
- package/dist/Code-LFQVJotC.js +0 -54
- package/dist/Code.vue_vue_type_style_index_0_lang-nX113anq.js +0 -59
- package/dist/Column-DVjYrrr7.js +0 -67
- package/dist/Comment-Do7Mjpjr.js +0 -98
- package/dist/Compare-C_iDn27Q.js +0 -56
- package/dist/Compare-CrX3yfD4.js +0 -26
- package/dist/Copy-_sbdQvHJ.js +0 -43
- package/dist/Custom-DarpQFG8.js +0 -49
- package/dist/Delete-BY3vAVWa.js +0 -55
- package/dist/Dictionary-DpQuFYQ5.js +0 -55
- package/dist/Index-B_a_HzsB.js +0 -4
- package/dist/Index-Cx2J_P37.js +0 -4
- package/dist/List-BjdY1rMk.js +0 -72
- package/dist/Maintaince-DzYzyrAc.js +0 -15
- package/dist/Paging-BMPtLi8P.js +0 -90
- package/dist/QueryApi-CbP5cCyH.js +0 -13
- package/dist/Text.vue_vue_type_style_index_0_lang-CeDusQl6.js +0 -52
- package/dist/TextLink-BZW-y_FS.js +0 -62
- package/dist/Tree-CLpCeirT.js +0 -117
- package/dist/TreeNode-C16N8jqm.js +0 -34
- package/dist/Upload-DvWyjK3a.js +0 -143
- package/dist/Upload-SEu1V1yX.js +0 -67
- package/dist/main-QtNG6p7a.js +0 -16673
- package/dist/vendor-pinia-yrN6kSxh.js +0 -861
- package/dist/vendor-vue-demi-CIhrFbpB.js +0 -17
@@ -1,7 +1,11 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import
|
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 y, createVNode as x, createTextVNode as B, toDisplayString as Y, createCommentVNode as Z } from "vue";
|
2
|
+
import "./vendor-@monaco-editor-DKC4UNw_.js";
|
3
|
+
import "./vendor-moment-h96o7c8I.js";
|
4
|
+
import "xlsx-js-style";
|
5
|
+
import { O as ee, j as D } from "./main-B8RC13GR.js";
|
6
|
+
import "./vendor-crypto-js-ftX_aBC-.js";
|
3
7
|
import { _ as te } from "./Index.vue_vue_type_script_setup_true_lang-B-sM48XO.js";
|
4
|
-
const
|
8
|
+
const ce = /* @__PURE__ */ I({
|
5
9
|
__name: "SearchForm",
|
6
10
|
props: {
|
7
11
|
schema: { type: Array, required: !0 },
|
@@ -11,18 +15,18 @@ const oe = /* @__PURE__ */ H({
|
|
11
15
|
},
|
12
16
|
emits: ["change", "submit", "mounted"],
|
13
17
|
setup(M, { expose: N, emit: T }) {
|
14
|
-
let w = T, W = M, { schema: k, table: u, layout: C, searchData:
|
18
|
+
let w = T, W = M, { schema: k, table: u, layout: C, searchData: h } = J(W), S = p(), V = p(), E = p(), d = p(), L = (e) => {
|
15
19
|
w("change", e);
|
16
20
|
}, F = (e = null) => {
|
17
21
|
w("submit");
|
18
22
|
}, U = (e, t) => {
|
19
23
|
let l = e == "*" ? null : e;
|
20
|
-
|
21
|
-
},
|
24
|
+
h.value[u.value.name][t.name] = l, F();
|
25
|
+
}, O = () => {
|
22
26
|
S.value && (V.value = S.value.$el.clientWidth);
|
23
27
|
}, $ = (e) => {
|
24
|
-
|
25
|
-
},
|
28
|
+
O();
|
29
|
+
}, R = () => {
|
26
30
|
let e = C.value.tabs;
|
27
31
|
if (e)
|
28
32
|
for (let t = 0; t < e.length; t++) {
|
@@ -30,33 +34,33 @@ const oe = /* @__PURE__ */ H({
|
|
30
34
|
d.value[u.value.name][l] || (d.value[u.value.name][l] = "*");
|
31
35
|
}
|
32
36
|
};
|
33
|
-
d.value = ee.clone(
|
34
|
-
|
37
|
+
d.value = ee.clone(h.value), R(), K(() => {
|
38
|
+
O(), P(() => {
|
35
39
|
w("mounted");
|
36
40
|
});
|
37
41
|
});
|
38
|
-
let z =
|
42
|
+
let z = q(() => {
|
39
43
|
if (!V.value)
|
40
44
|
return [];
|
41
|
-
let e = Math.ceil(V.value / 200), t = D.expandSearch(k.value), l = C.value.tabs ?? [], c = t.filter((
|
42
|
-
return D.getLines(c, e, (
|
43
|
-
}),
|
45
|
+
let e = Math.ceil(V.value / 200), t = D.expandSearch(k.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(() => {
|
44
48
|
let e = [], t = C.value.tabs;
|
45
49
|
return t && t.forEach((l) => {
|
46
50
|
let c = u.value.fields.find((_) => _.name == l);
|
47
51
|
e.push(c);
|
48
52
|
}), e;
|
49
53
|
});
|
50
|
-
return Q(() =>
|
51
|
-
|
54
|
+
return Q(() => h.value, (e, t) => {
|
55
|
+
R();
|
52
56
|
}), N({ resize: $ }), (e, t) => {
|
53
|
-
const l = m("el-radio-button"), c = m("el-radio-group"), _ = m("el-form-item"),
|
57
|
+
const l = m("el-radio-button"), c = m("el-radio-group"), _ = m("el-form-item"), b = m("el-col"), A = m("el-row"), H = m("el-form"), G = m("el-scrollbar");
|
54
58
|
return r(), i(G, {
|
55
59
|
"max-height": "200px",
|
56
60
|
class: "search-form"
|
57
61
|
}, {
|
58
62
|
default: n(() => [
|
59
|
-
a(u).search.length > 0 ? (r(), i(
|
63
|
+
a(u).search.length > 0 ? (r(), i(H, {
|
60
64
|
key: 0,
|
61
65
|
ref_key: "searchFormRef",
|
62
66
|
ref: S,
|
@@ -66,7 +70,7 @@ const oe = /* @__PURE__ */ H({
|
|
66
70
|
}, ["prevent"]))
|
67
71
|
}, {
|
68
72
|
default: n(() => [
|
69
|
-
(r(!0), v(g, null, y(a(
|
73
|
+
(r(!0), v(g, null, y(a(j), (s, f) => (r(), i(_, {
|
70
74
|
class: "search-tab",
|
71
75
|
label: s.label,
|
72
76
|
"label-width": 50
|
@@ -103,22 +107,22 @@ const oe = /* @__PURE__ */ H({
|
|
103
107
|
}, 1032, ["label"]))), 256)),
|
104
108
|
(r(!0), v(g, null, y(a(z), (s) => (r(), i(A, {
|
105
109
|
class: "search-row",
|
106
|
-
label: a(
|
110
|
+
label: a(j).length ? "其它" : "",
|
107
111
|
"label-width": 50,
|
108
112
|
gutter: 5
|
109
113
|
}, {
|
110
114
|
default: n(() => [
|
111
|
-
(r(!0), v(g, null, y(s, ({ data:
|
115
|
+
(r(!0), v(g, null, y(s, ({ data: f, span: o }, ae) => (r(), i(b, { span: o }, {
|
112
116
|
default: n(() => [
|
113
117
|
x(_, {
|
114
|
-
label: e.t_field(
|
118
|
+
label: e.t_field(f.table.name, f.name)
|
115
119
|
}, {
|
116
120
|
default: n(() => [
|
117
121
|
x(te, {
|
118
122
|
schema: a(k),
|
119
|
-
table:
|
120
|
-
field:
|
121
|
-
"search-data": a(
|
123
|
+
table: f.table,
|
124
|
+
field: f,
|
125
|
+
"search-data": a(h),
|
122
126
|
onChange: a(L),
|
123
127
|
onSubmit: a(F)
|
124
128
|
}, null, 8, ["schema", "table", "field", "search-data", "onChange", "onSubmit"])
|
@@ -141,5 +145,5 @@ const oe = /* @__PURE__ */ H({
|
|
141
145
|
}
|
142
146
|
});
|
143
147
|
export {
|
144
|
-
|
148
|
+
ce as _
|
145
149
|
};
|
@@ -1,9 +1,13 @@
|
|
1
|
-
import { defineComponent as K, toRefs as R, ref as
|
2
|
-
import
|
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 l, 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 v, createCommentVNode as q } from "vue";
|
2
|
+
import "./vendor-@monaco-editor-DKC4UNw_.js";
|
3
|
+
import "./vendor-moment-h96o7c8I.js";
|
4
|
+
import "xlsx-js-style";
|
5
|
+
import { h as z } from "./main-B8RC13GR.js";
|
6
|
+
import "./vendor-crypto-js-ftX_aBC-.js";
|
3
7
|
const A = { class: "option-text" }, G = {
|
4
8
|
key: 0,
|
5
9
|
class: "option-suffix"
|
6
|
-
},
|
10
|
+
}, X = /* @__PURE__ */ K({
|
7
11
|
__name: "Select",
|
8
12
|
props: {
|
9
13
|
schema: {},
|
@@ -14,13 +18,13 @@ const A = { class: "option-text" }, G = {
|
|
14
18
|
},
|
15
19
|
emits: ["change", "submit", "update:modelValue"],
|
16
20
|
setup(_, { emit: x }) {
|
17
|
-
let
|
18
|
-
|
21
|
+
let s = x, b = _, { schema: H, table: g, field: a, searchData: y, modelValue: V } = R(b), k = i(!1), d = i(), m = i(a.value.control.data.data), C = () => {
|
22
|
+
s("submit");
|
19
23
|
}, w = () => {
|
20
24
|
}, B = (t) => {
|
21
|
-
|
25
|
+
d.value = t, D();
|
22
26
|
}, D = () => {
|
23
|
-
let t = { text:
|
27
|
+
let t = { text: d.value, conditions: [] };
|
24
28
|
a.value.control.data.conditions.forEach((o) => {
|
25
29
|
let u = y.value[o.table][o.field];
|
26
30
|
t.conditions.push({ name: o.name, value: u });
|
@@ -34,12 +38,12 @@ const A = { class: "option-text" }, G = {
|
|
34
38
|
return V.value;
|
35
39
|
},
|
36
40
|
set(t) {
|
37
|
-
|
41
|
+
s("update:modelValue", t), s("change", t);
|
38
42
|
}
|
39
43
|
});
|
40
44
|
return (t, o) => {
|
41
|
-
const u =
|
42
|
-
return
|
45
|
+
const u = p("el-option"), E = p("el-select");
|
46
|
+
return r(), c(E, {
|
43
47
|
ref: "selectRef",
|
44
48
|
filterable: "",
|
45
49
|
remote: "",
|
@@ -55,17 +59,17 @@ const A = { class: "option-text" }, G = {
|
|
55
59
|
onKeyup: M(N(l(C), ["alt"]), ["enter", "native"]),
|
56
60
|
onChange: l(w),
|
57
61
|
modelValue: l(n),
|
58
|
-
"onUpdate:modelValue": o[0] || (o[0] = (e) =>
|
62
|
+
"onUpdate:modelValue": o[0] || (o[0] = (e) => F(n) ? n.value = e : n = e)
|
59
63
|
}, {
|
60
|
-
default:
|
61
|
-
(
|
64
|
+
default: f(() => [
|
65
|
+
(r(!0), h(L, null, U(l(m), (e, I) => (r(), c(u, {
|
62
66
|
label: e.text + (e.suffix ? "(" + e.suffix + ")" : ""),
|
63
67
|
value: e.value,
|
64
68
|
key: e.value
|
65
69
|
}, {
|
66
|
-
default:
|
67
|
-
|
68
|
-
e.suffix ? (
|
70
|
+
default: f(() => [
|
71
|
+
j("span", A, v(e.text), 1),
|
72
|
+
e.suffix ? (r(), h("span", G, "(" + v(e.suffix) + ")", 1)) : q("", !0)
|
69
73
|
]),
|
70
74
|
_: 2
|
71
75
|
}, 1032, ["label", "value"]))), 128))
|
@@ -76,5 +80,5 @@ const A = { class: "option-text" }, G = {
|
|
76
80
|
}
|
77
81
|
});
|
78
82
|
export {
|
79
|
-
|
83
|
+
X as default
|
80
84
|
};
|
@@ -1,9 +1,13 @@
|
|
1
|
-
import { defineComponent as A, toRefs as D, ref as f, computed as
|
2
|
-
import
|
1
|
+
import { defineComponent as A, toRefs as D, ref as f, computed as H, resolveComponent as _, openBlock as c, createBlock as y, unref as r, withKeys as L, withModifiers as O, isRef as U, withCtx as V, createElementBlock as C, Fragment as $, renderList as q, createElementVNode as z, toDisplayString as k, createCommentVNode as G, nextTick as I } from "vue";
|
2
|
+
import "./vendor-@monaco-editor-DKC4UNw_.js";
|
3
|
+
import "./vendor-moment-h96o7c8I.js";
|
4
|
+
import "xlsx-js-style";
|
5
|
+
import { c as J, C as P, h as Q } from "./main-B8RC13GR.js";
|
6
|
+
import "./vendor-crypto-js-ftX_aBC-.js";
|
3
7
|
const W = { class: "option-text" }, X = {
|
4
8
|
key: 0,
|
5
9
|
class: "option-suffix"
|
6
|
-
},
|
10
|
+
}, ae = /* @__PURE__ */ A({
|
7
11
|
__name: "Select",
|
8
12
|
props: {
|
9
13
|
schema: {},
|
@@ -14,37 +18,37 @@ const W = { class: "option-text" }, X = {
|
|
14
18
|
modelValue: { type: [String, Number, Boolean, Array] }
|
15
19
|
},
|
16
20
|
emits: ["submit", "change", "update:modelValue"],
|
17
|
-
setup(
|
18
|
-
let s = E, B =
|
21
|
+
setup(w, { emit: E }) {
|
22
|
+
let s = E, B = w, { schema: S, field: n, table: p, set: v, row: R, modelValue: m } = D(B), x = f(), g = f(), h = f(!1), d = f(n.value.control.data.data), K = (t) => {
|
19
23
|
t == "" && (t = null);
|
20
24
|
let e;
|
21
|
-
if (J.isString(t) && n.value.control.multiple ? e = t.join(",") : e = t,
|
22
|
-
let a =
|
25
|
+
if (J.isString(t) && n.value.control.multiple ? e = t.join(",") : e = t, u.value = e, n.value.control.text) {
|
26
|
+
let a = p.value.fields.find((l) => l.name == n.value.control.text), o;
|
23
27
|
e && (o = d.value.find((i) => i.value == e).text);
|
24
28
|
debugger;
|
25
29
|
R.value[a.name] = o;
|
26
30
|
}
|
27
|
-
b(
|
28
|
-
}, K = () => {
|
29
|
-
s("submit");
|
31
|
+
b(p.value, n.value), s("change", t);
|
30
32
|
}, N = () => {
|
31
|
-
|
32
|
-
|
33
|
+
s("submit");
|
34
|
+
}, T = () => {
|
35
|
+
}, j = () => {
|
36
|
+
h.value = !0;
|
33
37
|
let t = { text: g.value, conditions: [] };
|
34
38
|
n.value.control.data.conditions.forEach((e) => {
|
35
|
-
let a =
|
39
|
+
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
40
|
t.conditions.push({ name: e.name, value: o });
|
37
41
|
}), Q.post(n.value.control.data.route, t).then(({ data: e }) => {
|
38
42
|
d.value = e;
|
39
43
|
}).finally(() => {
|
40
|
-
|
41
|
-
let e = d.value.find((a) => a.value ==
|
44
|
+
h.value = !1, I(() => {
|
45
|
+
let e = d.value.find((a) => a.value == u.value);
|
42
46
|
x.value.scrollToOption(e);
|
43
47
|
});
|
44
48
|
});
|
45
|
-
},
|
46
|
-
g.value = t,
|
47
|
-
},
|
49
|
+
}, F = (t) => {
|
50
|
+
g.value = t, j();
|
51
|
+
}, M = (t, e) => {
|
48
52
|
let a = [];
|
49
53
|
return S.value.forEach((o) => {
|
50
54
|
o.fields.forEach((l) => {
|
@@ -54,12 +58,12 @@ const W = { class: "option-text" }, X = {
|
|
54
58
|
});
|
55
59
|
}), a;
|
56
60
|
}, b = (t, e) => {
|
57
|
-
|
58
|
-
P.setRowsValue(null,
|
61
|
+
M(t, e).forEach((o) => {
|
62
|
+
P.setRowsValue(null, v.value, o.table, o.field), b(o.table, o.field);
|
59
63
|
});
|
60
|
-
},
|
64
|
+
}, u = H({
|
61
65
|
get() {
|
62
|
-
return n.value.control.multiple ?
|
66
|
+
return n.value.control.multiple ? m.value == null ? [] : m.value.toString().split(",") : m.value;
|
63
67
|
},
|
64
68
|
set(t) {
|
65
69
|
s("update:modelValue", t), s("change", t);
|
@@ -77,26 +81,26 @@ const W = { class: "option-text" }, X = {
|
|
77
81
|
"remote-show-suffix": "",
|
78
82
|
"loading-text": "加载中",
|
79
83
|
clearable: "",
|
80
|
-
placeholder: t.t_field_choose_placeholder(
|
81
|
-
multiple:
|
82
|
-
"remote-method":
|
83
|
-
loading:
|
84
|
-
disabled:
|
85
|
-
onKeyup: O(
|
86
|
-
onBlur:
|
87
|
-
onChange:
|
88
|
-
modelValue: u
|
89
|
-
"onUpdate:modelValue": e[0] || (e[0] = (l) =>
|
84
|
+
placeholder: t.t_field_choose_placeholder(r(p).name, r(n).name),
|
85
|
+
multiple: r(n).control.multiple,
|
86
|
+
"remote-method": r(F),
|
87
|
+
loading: r(h),
|
88
|
+
disabled: r(n).control.readonly,
|
89
|
+
onKeyup: L(O(r(N), ["alt"]), ["enter", "native"]),
|
90
|
+
onBlur: r(T),
|
91
|
+
onChange: r(K),
|
92
|
+
modelValue: r(u),
|
93
|
+
"onUpdate:modelValue": e[0] || (e[0] = (l) => U(u) ? u.value = l : u = l)
|
90
94
|
}, {
|
91
95
|
default: V(() => [
|
92
|
-
(c(!0),
|
96
|
+
(c(!0), C($, null, q(r(d), (l, i) => (c(), y(a, {
|
93
97
|
label: `${l.text}${l.suffix ? "(" + l.suffix + ")" : ""}`,
|
94
98
|
value: l.value,
|
95
99
|
key: l.value
|
96
100
|
}, {
|
97
101
|
default: V(() => [
|
98
|
-
|
99
|
-
l.suffix ? (c(),
|
102
|
+
z("span", W, k(l.text), 1),
|
103
|
+
l.suffix ? (c(), C("span", X, "(" + k(l.suffix) + ")", 1)) : G("", !0)
|
100
104
|
]),
|
101
105
|
_: 2
|
102
106
|
}, 1032, ["label", "value"]))), 128))
|
@@ -107,5 +111,5 @@ const W = { class: "option-text" }, X = {
|
|
107
111
|
}
|
108
112
|
});
|
109
113
|
export {
|
110
|
-
|
114
|
+
ae as default
|
111
115
|
};
|
@@ -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-BUmany6B.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),
|