halo-pc 1.0.27 → 1.0.28

Sign up to get free protection for your applications and to get access to all the features.
Files changed (166) hide show
  1. package/dist/{Article-CTqryR4L.js → Article-CTzPZjf8.js} +75 -70
  2. package/dist/{ArticleFooter-BumGH5nC.js → ArticleFooter-jyfzfZHH.js} +23 -17
  3. package/dist/{Autocomplete-BNx0bErM.js → Autocomplete-D8ytFwqa.js} +1 -1
  4. package/dist/Autocomplete-DoUE3T0L.js +53 -0
  5. package/dist/Autocomplete-FGRT-2ru.js +54 -0
  6. package/dist/{CSharp-Dt6H75E9.js → CSharp-qh_kEfGr.js} +1 -1
  7. package/dist/{Calender-DhKZyJri.js → Calender-DOuq9uAK.js} +1 -1
  8. package/dist/Callback-DuaBaO1q.js +26 -0
  9. package/dist/Cascader-DgKBpjUK.js +47 -0
  10. package/dist/Cascader-s8VT55_K.js +87 -0
  11. package/dist/{Checkbox-C-iEGB0k.js → Checkbox-D9NUw4jZ.js} +1 -1
  12. package/dist/Checkbox-REcdbTXR.js +76 -0
  13. package/dist/Code-CBVRms_j.js +4 -0
  14. package/dist/Code-DZ-bK9UT.js +60 -0
  15. package/dist/Code-DfnLveft.js +42 -0
  16. package/dist/{Code-JtSSnUWC.js → Code-loaJtKGd.js} +1 -1
  17. package/dist/Code.vue_vue_type_style_index_0_lang-BVLhtr1Y.js +65 -0
  18. package/dist/Column-B96LbQFW.js +75 -0
  19. package/dist/Comment-bPWbEkgq.js +104 -0
  20. package/dist/Compare-D4O0qmYv.js +44 -0
  21. package/dist/{Compare-DZVrBYEh.js → Compare-dimRoHFX.js} +25 -19
  22. package/dist/Copy-CKLxfWd4.js +49 -0
  23. package/dist/Custom-Bwyy4_tA.js +57 -0
  24. package/dist/{DataExport-DSz5371s.js → DataExport-Bp50K0_6.js} +1 -1
  25. package/dist/{DataExport.vue_vue_type_script_setup_true_lang-DL9q81Ti.js → DataExport.vue_vue_type_script_setup_true_lang-8nDL-PI_.js} +41 -36
  26. package/dist/{DataImport-CX7G70a7.js → DataImport-BWI4eCxA.js} +1 -1
  27. package/dist/DataImport.vue_vue_type_script_setup_true_lang-DCS1SfNf.js +176 -0
  28. package/dist/Date-Cf64NT4R.js +43 -0
  29. package/dist/{Date-ytWe2gz8.js → Date-FBemqmex.js} +1 -1
  30. package/dist/DateRange-D5kvmDIo.js +63 -0
  31. package/dist/DateTime-CTGuyJ4w.js +44 -0
  32. package/dist/{DateTime-p6YgmtGd.js → DateTime-Cvnnthwx.js} +1 -1
  33. package/dist/{DateTimeRange-DGobnXqs.js → DateTimeRange-Gb33uiRV.js} +17 -11
  34. package/dist/Daterange-CfAdeV7J.js +63 -0
  35. package/dist/{Decimal-BvyzJq1c.js → Decimal-B-fyPiuP.js} +1 -1
  36. package/dist/Delete-DhbWFnzt.js +62 -0
  37. package/dist/{Detail-DZJ0aUFr.js → Detail-DV-JRRLT.js} +22 -17
  38. package/dist/Dictionary-b_mbt-WU.js +59 -0
  39. package/dist/Email-C2Yl7bMF.js +54 -0
  40. package/dist/{File-BEBElTSS.js → File-D57qYYt1.js} +32 -27
  41. package/dist/{Image-DDK05SW7.js → Image-BKNUY356.js} +1 -1
  42. package/dist/{Index-CuEyzMd0.js → Index-BPfkpoVf.js} +25 -20
  43. package/dist/Index-BUCyMvJX.js +4 -0
  44. package/dist/Index-BtxNIZsx.js +4 -0
  45. package/dist/Index-C5WYmq9P.js +4 -0
  46. package/dist/{Index-DPwdcUO4.js → Index-CSzgmzRG.js} +1 -1
  47. package/dist/Index-ChWD2gJt.js +4 -0
  48. package/dist/{Index-BiF8qEWf.js → Index-P3uHTgX-.js} +1 -1
  49. package/dist/Index-PB-VnCO7.js +178 -0
  50. package/dist/{Index.vue_vue_type_script_setup_true_lang-Bp091zxs.js → Index.vue_vue_type_script_setup_true_lang-BkjFEuPH.js} +20 -15
  51. package/dist/{Index.vue_vue_type_script_setup_true_lang-hjy21YuL.js → Index.vue_vue_type_script_setup_true_lang-CJV5JBz9.js} +17 -12
  52. package/dist/{Install-CxuoWpHC.js → Install-o0VJz9Rl.js} +27 -22
  53. package/dist/Int-BNwPsWfI.js +44 -0
  54. package/dist/Int-DN3vf18e.js +46 -0
  55. package/dist/List-DRAtVlgE.js +79 -0
  56. package/dist/Maintaince-CdVk7qiu.js +20 -0
  57. package/dist/{Markdown-x1hASyA-.js → Markdown-CFwOeXFg.js} +1 -1
  58. package/dist/Month-CrvLoEQy.js +43 -0
  59. package/dist/Month-CyB2owvQ.js +44 -0
  60. package/dist/{Month-Bb0tgF-k.js → Month-DsKmd425.js} +1 -1
  61. package/dist/{Normal-CYmy5sN7.js → Normal-B_SPQW9Z.js} +70 -66
  62. package/dist/Paging-CzCgExDM.js +99 -0
  63. package/dist/{PagingHeader-DWbFl1do.js → PagingHeader-Bfnnsv6m.js} +30 -24
  64. package/dist/{PagingRow-CR2N1vgm.js → PagingRow-BXaakA5y.js} +26 -20
  65. package/dist/QueryApi-Cah37Kwx.js +20 -0
  66. package/dist/{Racebar-BsgDK6Zf.js → Racebar-6FTe1C4G.js} +42 -37
  67. package/dist/{Radio-B3Af-uZE.js → Radio-rym8cXJN.js} +1 -1
  68. package/dist/{Register-Cwr3iIZm.js → Register-v__-wpY2.js} +44 -40
  69. package/dist/RichText-BDP5KDin.js +47 -0
  70. package/dist/{SearchFooter-DiILcc_U.js → SearchFooter-0mHMD0Xf.js} +1 -1
  71. package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-BsIg4tbY.js → SearchFooter.vue_vue_type_style_index_0_lang-CXTYGXIa.js} +1 -1
  72. package/dist/{SearchForm-BOw_kHs2.js → SearchForm-jSIiiv2r.js} +1 -1
  73. package/dist/{SearchForm.vue_vue_type_style_index_0_lang-GMYFgf1H.js → SearchForm.vue_vue_type_style_index_0_lang-CFxxTJiB.js} +40 -36
  74. package/dist/Select-Cpj86Kaw.js +86 -0
  75. package/dist/Select-DKjXN6Ag.js +117 -0
  76. package/dist/{Select-BdYG1KQE.js → Select-R0EsEK0_.js} +1 -1
  77. package/dist/{Single-DqCIZBIB.js → Single-fIhSt1dN.js} +103 -99
  78. package/dist/{Statistic-B9ZcUUk1.js → Statistic-DM3Fr6sO.js} +37 -33
  79. package/dist/{Stock-BnBNtuo7.js → Stock-BemUvyqK.js} +1 -1
  80. package/dist/{Stock-BiSr7zAF.js → Stock-DUrxld5G.js} +1 -1
  81. package/dist/{Stock.vue_vue_type_style_index_0_lang-CZPeF39q.js → Stock.vue_vue_type_style_index_0_lang-Cv9Jvd6d.js} +31 -26
  82. package/dist/{Switch-BE4dQcja.js → Switch-QdLS7c3q.js} +1 -1
  83. package/dist/{Table-CaH_zu8W.js → Table-BcVHufy3.js} +77 -74
  84. package/dist/{Table-e0uLPRLG.js → Table-C4dGV7IQ.js} +78 -73
  85. package/dist/{Text-BDAob4mp.js → Text-BJNnrW9U.js} +21 -15
  86. package/dist/{Text-BAw88r5O.js → Text-BNAKwCCe.js} +19 -13
  87. package/dist/Text-D3DqixJp.js +4 -0
  88. package/dist/Text.vue_vue_type_style_index_0_lang-B253xD5Z.js +59 -0
  89. package/dist/TextLink-D-9pICMh.js +65 -0
  90. package/dist/{Textarea-CU5PjIoa.js → Textarea-Cr5zt_LK.js} +1 -1
  91. package/dist/Time-DQJPtNWo.js +43 -0
  92. package/dist/Timeline-Dy37Cou2.js +59 -0
  93. package/dist/Tree-3zBuSLBv.js +122 -0
  94. package/dist/{Tree-D-v632h1.js → Tree-4v2brZjr.js} +105 -101
  95. package/dist/TreeNode-CvS8mLCJ.js +42 -0
  96. package/dist/{Update-DRAFce7_.js → Update-Cp50LcVx.js} +20 -15
  97. package/dist/{UpdateChild-DMC0FG4Z.js → UpdateChild-CFi_DjLv.js} +23 -17
  98. package/dist/Upload-Bqp-5cFa.js +72 -0
  99. package/dist/Upload-D-hvecbh.js +150 -0
  100. package/dist/UploadApi-CC5hZcM_.js +20 -0
  101. package/dist/Year-CYSncKVk.js +47 -0
  102. package/dist/{Year-CpcMBvQ7.js → Year-q0tWWwkv.js} +1 -1
  103. package/dist/assets/clone-BZn0cTAu.js +134 -0
  104. package/dist/assets/file-saver-CwlpTZSc.js +74 -0
  105. package/dist/assets/liquidjs-C-LVcoaY.js +2893 -0
  106. package/dist/assets/moment-h96o7c8I.js +2578 -0
  107. package/dist/assets/sprintf-js-BPTdvBYM.js +148 -0
  108. package/dist/assets/underscore-B0BCaBxV.js +1070 -0
  109. package/dist/assets/underscore.string-DVXD2SZo.js +425 -0
  110. package/dist/assets/util-deprecate-Dzun97re.js +28 -0
  111. package/dist/main-D-QTCahZ.js +9107 -0
  112. package/dist/main.js +140 -140
  113. package/dist/style.css +1 -1
  114. package/package.json +1 -1
  115. package/dist/Autocomplete-C9RS9-qw.js +0 -48
  116. package/dist/Autocomplete-DIucpEpj.js +0 -49
  117. package/dist/Callback-D6G_933H.js +0 -20
  118. package/dist/Cascader-C6t8Q18c.js +0 -41
  119. package/dist/Cascader-F_XWwXKY.js +0 -81
  120. package/dist/Checkbox-ipHs0O-8.js +0 -70
  121. package/dist/Code-DKtqow6y.js +0 -36
  122. package/dist/Code-LeguA9RL.js +0 -54
  123. package/dist/Code-Q_6THgGl.js +0 -4
  124. package/dist/Code.vue_vue_type_style_index_0_lang-DmeXbg91.js +0 -59
  125. package/dist/Column-BeQwafyN.js +0 -70
  126. package/dist/Comment-DIcCHP9F.js +0 -98
  127. package/dist/Compare-Dzqm7kPE.js +0 -38
  128. package/dist/Copy-iLieXx22.js +0 -43
  129. package/dist/Custom-BGtEDHlD.js +0 -51
  130. package/dist/DataImport.vue_vue_type_script_setup_true_lang-BWS65Vp1.js +0 -172
  131. package/dist/Date-CNOCOcNz.js +0 -37
  132. package/dist/DateRange-CaIiObxN.js +0 -57
  133. package/dist/DateTime-CH6J1GoP.js +0 -38
  134. package/dist/Daterange-BUSKAGlK.js +0 -57
  135. package/dist/Delete-BeFC0gjD.js +0 -57
  136. package/dist/Dictionary-CsBiv-CI.js +0 -55
  137. package/dist/Email-Dwa6x3jW.js +0 -48
  138. package/dist/Index-Bpe7pY2Z.js +0 -4
  139. package/dist/Index-CUYQxzNd.js +0 -174
  140. package/dist/Index-DMnL8F7Y.js +0 -4
  141. package/dist/Index-DNG25ox2.js +0 -4
  142. package/dist/Index-DqUNI6MV.js +0 -4
  143. package/dist/Int-BFv18KXi.js +0 -38
  144. package/dist/Int-C0ijmdYS.js +0 -41
  145. package/dist/List-CfQzWq_5.js +0 -74
  146. package/dist/Maintaince-BzDEwQcU.js +0 -14
  147. package/dist/Month-Bp_Pfi_b.js +0 -37
  148. package/dist/Month-CKkjwzza.js +0 -38
  149. package/dist/Paging-DpoBp7x_.js +0 -95
  150. package/dist/QueryApi-VwISnk96.js +0 -13
  151. package/dist/RichText-CNahMrfb.js +0 -41
  152. package/dist/Select-BeNZqAP1.js +0 -112
  153. package/dist/Select-CqOE6uI8.js +0 -80
  154. package/dist/Text-5803XWI6.js +0 -4
  155. package/dist/Text.vue_vue_type_style_index_0_lang-D1JSHUmS.js +0 -53
  156. package/dist/TextLink-TYXcDAlo.js +0 -59
  157. package/dist/Time-Dd-Trib4.js +0 -37
  158. package/dist/Timeline-D6LCIkQp.js +0 -53
  159. package/dist/Tree-BKmFZrK3.js +0 -118
  160. package/dist/TreeNode-L_A5ZKy0.js +0 -37
  161. package/dist/Upload-DJRh4a7g.js +0 -68
  162. package/dist/Upload-Ozg_nOpI.js +0 -147
  163. package/dist/UploadApi-DVx69g-F.js +0 -13
  164. package/dist/Year-D7XGe2So.js +0 -41
  165. package/dist/assets/halo-fe-B-NiIGas.js +0 -12088
  166. package/dist/main-DB_sVyZe.js +0 -3620
@@ -1,7 +1,11 @@
1
- import { defineComponent as H, toRefs as I, ref as p, onMounted as J, nextTick as K, computed as O, watch as P, resolveComponent as c, openBlock as r, createBlock as i, withCtx as n, unref as a, withModifiers as Q, createElementBlock as v, Fragment as g, renderList as x, createVNode as y, createTextVNode as j, toDisplayString as X, createCommentVNode as Z } from "vue";
2
- import { c as ee, aM as te } from "./assets/halo-fe-B-NiIGas.js";
3
- import { s as B, f as ae } from "./main-DB_sVyZe.js";
4
- const ue = /* @__PURE__ */ H({
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({
5
9
  __name: "SearchForm",
6
10
  props: {
7
11
  schema: { type: Array, required: !0 },
@@ -10,19 +14,19 @@ const ue = /* @__PURE__ */ H({
10
14
  searchData: { type: Object, required: !0 }
11
15
  },
12
16
  emits: ["change", "submit", "mounted"],
13
- setup(D, { expose: N, emit: T }) {
14
- let w = T, W = D, { schema: F, table: u, layout: C, searchData: b } = I(W), V = p(), k = p(), E = p(), d = p(), L = (e) => {
17
+ setup(M, { expose: N, emit: T }) {
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) => {
15
19
  w("change", e);
16
20
  }, S = (e = null) => {
17
21
  w("submit");
18
22
  }, U = (e, t) => {
19
23
  let l = e == "*" ? null : e;
20
- b.value[u.value.name][t.name] = l, S();
21
- }, R = () => {
24
+ h.value[u.value.name][t.name] = l, S();
25
+ }, O = () => {
22
26
  V.value && (k.value = V.value.$el.clientWidth);
23
27
  }, $ = (e) => {
24
- R();
25
- }, q = () => {
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,49 +34,49 @@ const ue = /* @__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(b.value), q(), J(() => {
34
- R(), K(() => {
37
+ d.value = ee.clone(h.value), R(), K(() => {
38
+ O(), P(() => {
35
39
  w("mounted");
36
40
  });
37
41
  });
38
- let z = O(() => {
42
+ let z = q(() => {
39
43
  if (!k.value)
40
44
  return [];
41
- let e = Math.ceil(k.value / 200), t = B.expandSearch(F.value), l = C.value.tabs ?? [], m = t.filter((h) => l.indexOf(h.name) == -1);
42
- return B.getLines(m, e, (h) => h, () => 1);
43
- }), M = O(() => {
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(() => {
44
48
  let e = [], t = C.value.tabs;
45
49
  return t && t.forEach((l) => {
46
- let m = u.value.fields.find((f) => f.name == l);
47
- e.push(m);
50
+ let c = u.value.fields.find((_) => _.name == l);
51
+ e.push(c);
48
52
  }), e;
49
53
  });
50
- return P(() => b.value, (e, t) => {
51
- q();
54
+ return Q(() => h.value, (e, t) => {
55
+ R();
52
56
  }), N({ resize: $ }), (e, t) => {
53
- const l = c("el-radio-button"), m = c("el-radio-group"), f = c("el-form-item"), h = c("el-col"), A = c("el-row"), Y = c("el-form"), G = c("el-scrollbar");
54
- return r(), i(G, {
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, {
55
59
  "max-height": "200px",
56
60
  class: "search-form"
57
61
  }, {
58
62
  default: n(() => [
59
- a(u).search.length > 0 ? (r(), i(Y, {
63
+ a(u).search.length > 0 ? (r(), i(G, {
60
64
  key: 0,
61
65
  ref_key: "searchFormRef",
62
66
  ref: V,
63
67
  "label-position": "left",
64
68
  inline: "",
65
- onSubmit: t[0] || (t[0] = Q(() => {
69
+ onSubmit: t[0] || (t[0] = X(() => {
66
70
  }, ["prevent"]))
67
71
  }, {
68
72
  default: n(() => [
69
- (r(!0), v(g, null, x(a(M), (s, _) => (r(), i(f, {
73
+ (r(!0), v(g, null, x(a(j), (s, f) => (r(), i(_, {
70
74
  class: "search-tab",
71
75
  label: s.label,
72
76
  "label-width": 50
73
77
  }, {
74
78
  default: n(() => [
75
- y(m, {
79
+ y(c, {
76
80
  ref_for: !0,
77
81
  ref_key: "tabRefs",
78
82
  ref: E,
@@ -83,7 +87,7 @@ const ue = /* @__PURE__ */ H({
83
87
  default: n(() => [
84
88
  y(l, { value: "*" }, {
85
89
  default: n(() => [
86
- j("全部")
90
+ B("全部")
87
91
  ]),
88
92
  _: 1
89
93
  }),
@@ -91,7 +95,7 @@ const ue = /* @__PURE__ */ H({
91
95
  value: o.value
92
96
  }, {
93
97
  default: n(() => [
94
- j(X(o.text), 1)
98
+ B(Y(o.text), 1)
95
99
  ]),
96
100
  _: 2
97
101
  }, 1032, ["value"]))), 256))
@@ -103,22 +107,22 @@ const ue = /* @__PURE__ */ H({
103
107
  }, 1032, ["label"]))), 256)),
104
108
  (r(!0), v(g, null, x(a(z), (s) => (r(), i(A, {
105
109
  class: "search-row",
106
- label: a(M).length ? "其它" : "",
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, x(s, ({ data: _, span: o }, le) => (r(), i(h, { span: o }, {
115
+ (r(!0), v(g, null, x(s, ({ data: f, span: o }, le) => (r(), i(b, { span: o }, {
112
116
  default: n(() => [
113
- y(f, {
114
- label: a(te)(_.table.name, _.name)
117
+ y(_, {
118
+ label: a(te)(f.table.name, f.name)
115
119
  }, {
116
120
  default: n(() => [
117
121
  y(ae, {
118
122
  schema: a(F),
119
- table: _.table,
120
- field: _,
121
- "search-data": a(b),
123
+ table: f.table,
124
+ field: f,
125
+ "search-data": a(h),
122
126
  onChange: a(L),
123
127
  onSubmit: a(S)
124
128
  }, null, 8, ["schema", "table", "field", "search-data", "onChange", "onSubmit"])
@@ -141,5 +145,5 @@ const ue = /* @__PURE__ */ H({
141
145
  }
142
146
  });
143
147
  export {
144
- ue as _
148
+ ie as _
145
149
  };
@@ -0,0 +1,86 @@
1
+ import { defineComponent as K, toRefs as R, ref as i, computed as S, resolveComponent as p, openBlock as r, createBlock as c, unref as t, withKeys as M, withModifiers as N, isRef as F, withCtx as f, createElementBlock as h, Fragment as L, renderList as U, createElementVNode as j, toDisplayString as _, createCommentVNode as q } from "vue";
2
+ import "./assets/underscore-B0BCaBxV.js";
3
+ import "./assets/underscore.string-DVXD2SZo.js";
4
+ import "./assets/clone-BZn0cTAu.js";
5
+ import "./assets/file-saver-CwlpTZSc.js";
6
+ import "./assets/moment-h96o7c8I.js";
7
+ import { t as z, f as A, h as G } from "./main-D-QTCahZ.js";
8
+ import "./assets/liquidjs-C-LVcoaY.js";
9
+ const H = { class: "option-text" }, I = {
10
+ key: 0,
11
+ class: "option-suffix"
12
+ }, ee = /* @__PURE__ */ K({
13
+ __name: "Select",
14
+ props: {
15
+ schema: {},
16
+ table: {},
17
+ field: {},
18
+ searchData: {},
19
+ modelValue: { type: [String, Boolean] }
20
+ },
21
+ emits: ["change", "submit", "update:modelValue"],
22
+ setup(v, { emit: x }) {
23
+ let s = x, b = v, { schema: J, table: g, field: a, searchData: y, modelValue: V } = R(b), k = i(!1), m = i(), d = i(a.value.control.data.data), C = () => {
24
+ s("submit");
25
+ }, w = () => {
26
+ }, B = (l) => {
27
+ m.value = l, D();
28
+ }, D = () => {
29
+ let l = { text: m.value, conditions: [] };
30
+ a.value.control.data.conditions.forEach((o) => {
31
+ let u = y.value[o.table][o.field];
32
+ l.conditions.push({ name: o.name, value: u });
33
+ }), G.post(a.value.control.data.route, l).then(({ data: o }) => {
34
+ d.value = o;
35
+ }).finally(() => {
36
+ k.value = !1;
37
+ });
38
+ }, n = S({
39
+ get() {
40
+ return V.value;
41
+ },
42
+ set(l) {
43
+ s("update:modelValue", l), s("change", l);
44
+ }
45
+ });
46
+ return (l, o) => {
47
+ const u = p("el-option"), E = p("el-select");
48
+ return r(), c(E, {
49
+ ref: "selectRef",
50
+ filterable: "",
51
+ remote: "",
52
+ "reserve-keyword": "",
53
+ clearable: "",
54
+ "default-first-option": "",
55
+ "remote-show-suffix": "",
56
+ placeholder: t(z)("common.please_choose") + t(A)(t(g).name, t(a).name),
57
+ multiple: t(a).control.multiple,
58
+ "loading-text": "加载中",
59
+ "remote-method": t(B),
60
+ disabled: t(a).control.readonly,
61
+ onKeyup: M(N(t(C), ["alt"]), ["enter", "native"]),
62
+ onChange: t(w),
63
+ modelValue: t(n),
64
+ "onUpdate:modelValue": o[0] || (o[0] = (e) => F(n) ? n.value = e : n = e)
65
+ }, {
66
+ default: f(() => [
67
+ (r(!0), h(L, null, U(t(d), (e, O) => (r(), c(u, {
68
+ label: e.text + (e.suffix ? "(" + e.suffix + ")" : ""),
69
+ value: e.value,
70
+ key: e.value
71
+ }, {
72
+ default: f(() => [
73
+ j("span", H, _(e.text), 1),
74
+ e.suffix ? (r(), h("span", I, "(" + _(e.suffix) + ")", 1)) : q("", !0)
75
+ ]),
76
+ _: 2
77
+ }, 1032, ["label", "value"]))), 128))
78
+ ]),
79
+ _: 1
80
+ }, 8, ["placeholder", "multiple", "remote-method", "disabled", "onKeyup", "onChange", "modelValue"]);
81
+ };
82
+ }
83
+ });
84
+ export {
85
+ ee as default
86
+ };
@@ -0,0 +1,117 @@
1
+ import { defineComponent as A, toRefs as D, ref as f, computed as H, resolveComponent as b, openBlock as c, createBlock as y, unref as n, withKeys as L, withModifiers as O, isRef as U, withCtx as V, createElementBlock as k, Fragment as $, renderList as q, createElementVNode as z, toDisplayString as w, createCommentVNode as G, nextTick as I } from "vue";
2
+ import "./assets/underscore-B0BCaBxV.js";
3
+ import { k as J, w as P, x as Q, h as W } from "./main-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";
9
+ const X = { class: "option-text" }, Y = {
10
+ key: 0,
11
+ class: "option-suffix"
12
+ }, ue = /* @__PURE__ */ A({
13
+ __name: "Select",
14
+ props: {
15
+ schema: {},
16
+ table: {},
17
+ field: {},
18
+ set: {},
19
+ row: {},
20
+ modelValue: { type: [String, Number, Boolean, Array] }
21
+ },
22
+ emits: ["submit", "change", "update:modelValue"],
23
+ setup(C, { emit: E }) {
24
+ let s = E, B = C, { schema: S, field: r, table: p, set: v, row: R, modelValue: m } = D(B), x = f(), g = f(), h = f(!1), d = f(r.value.control.data.data), K = (t) => {
25
+ t == "" && (t = null);
26
+ let e;
27
+ if (P.isString(t) && r.value.control.multiple ? e = t.join(",") : e = t, u.value = e, r.value.control.text) {
28
+ let a = p.value.fields.find((l) => l.name == r.value.control.text), o;
29
+ e && (o = d.value.find((i) => i.value == e).text);
30
+ debugger;
31
+ R.value[a.name] = o;
32
+ }
33
+ _(p.value, r.value), s("change", t);
34
+ }, N = () => {
35
+ s("submit");
36
+ }, T = () => {
37
+ }, j = () => {
38
+ h.value = !0;
39
+ let t = { text: g.value, conditions: [] };
40
+ r.value.control.data.conditions.forEach((e) => {
41
+ let a = v.value[e.table].filter((l) => l[e.field] != null).map((l) => l[e.field]), o = a.length == 0 ? null : a.join(",");
42
+ t.conditions.push({ name: e.name, value: o });
43
+ }), W.post(r.value.control.data.route, t).then(({ data: e }) => {
44
+ d.value = e;
45
+ }).finally(() => {
46
+ h.value = !1, I(() => {
47
+ let e = d.value.find((a) => a.value == u.value);
48
+ x.value.scrollToOption(e);
49
+ });
50
+ });
51
+ }, F = (t) => {
52
+ g.value = t, j();
53
+ }, M = (t, e) => {
54
+ let a = [];
55
+ return S.value.forEach((o) => {
56
+ o.fields.forEach((l) => {
57
+ l.dictionary && l.dictionary.conditions.forEach((i) => {
58
+ i.table == t.name && i.field == e.name && a.push({ table: o, field: l });
59
+ });
60
+ });
61
+ }), a;
62
+ }, _ = (t, e) => {
63
+ M(t, e).forEach((o) => {
64
+ Q.setRowsValue(null, v.value, o.table, o.field), _(o.table, o.field);
65
+ });
66
+ }, u = H({
67
+ get() {
68
+ return r.value.control.multiple ? m.value == null ? [] : m.value.toString().split(",") : m.value;
69
+ },
70
+ set(t) {
71
+ s("update:modelValue", t), s("change", t);
72
+ }
73
+ });
74
+ return (t, e) => {
75
+ const a = b("el-option"), o = b("el-select");
76
+ return c(), y(o, {
77
+ ref_key: "selectRef",
78
+ ref: x,
79
+ filterable: "",
80
+ remote: "",
81
+ "reserve-keyword": "",
82
+ "default-first-option": "",
83
+ "remote-show-suffix": "",
84
+ "loading-text": "加载中",
85
+ clearable: "",
86
+ placeholder: n(J)(n(p).name, n(r).name),
87
+ multiple: n(r).control.multiple,
88
+ "remote-method": n(F),
89
+ loading: n(h),
90
+ disabled: n(r).control.readonly,
91
+ onKeyup: L(O(n(N), ["alt"]), ["enter", "native"]),
92
+ onBlur: n(T),
93
+ onChange: n(K),
94
+ modelValue: n(u),
95
+ "onUpdate:modelValue": e[0] || (e[0] = (l) => U(u) ? u.value = l : u = l)
96
+ }, {
97
+ default: V(() => [
98
+ (c(!0), k($, null, q(n(d), (l, i) => (c(), y(a, {
99
+ label: `${l.text}${l.suffix ? "(" + l.suffix + ")" : ""}`,
100
+ value: l.value,
101
+ key: l.value
102
+ }, {
103
+ default: V(() => [
104
+ z("span", X, w(l.text), 1),
105
+ l.suffix ? (c(), k("span", Y, "(" + w(l.suffix) + ")", 1)) : G("", !0)
106
+ ]),
107
+ _: 2
108
+ }, 1032, ["label", "value"]))), 128))
109
+ ]),
110
+ _: 1
111
+ }, 8, ["placeholder", "multiple", "remote-method", "loading", "disabled", "onKeyup", "onBlur", "onChange", "modelValue"]);
112
+ };
113
+ }
114
+ });
115
+ export {
116
+ ue as default
117
+ };
@@ -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-CsBiv-CI.js")), n = a, { schema: m, table: s, field: d, set: i, row: p, modelValue: l } = c(n);
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),