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
@@ -0,0 +1,43 @@
1
+ import { defineComponent as c, toRefs as f, computed as _, resolveComponent as V, openBlock as h, createBlock as b, unref as e, isRef as g } 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 { k } from "./main-D-QTCahZ.js";
8
+ import "./assets/liquidjs-C-LVcoaY.js";
9
+ const j = /* @__PURE__ */ c({
10
+ __name: "Time",
11
+ props: {
12
+ schema: {},
13
+ table: {},
14
+ field: {},
15
+ set: {},
16
+ row: {},
17
+ modelValue: {}
18
+ },
19
+ emits: ["submit", "change", "update:modelValue"],
20
+ setup(p, { emit: d }) {
21
+ let o = d, i = p, { table: n, field: m, set: x, modelValue: s } = f(i), t = _({
22
+ get() {
23
+ return s.value;
24
+ },
25
+ set(l) {
26
+ o("update:modelValue", l), o("change", l);
27
+ }
28
+ });
29
+ return (l, a) => {
30
+ const u = V("el-time-select");
31
+ return h(), b(u, {
32
+ type: "time",
33
+ placeholder: e(k)(e(n).name, e(m).name),
34
+ disabled: e(m).control.readonly,
35
+ modelValue: e(t),
36
+ "onUpdate:modelValue": a[0] || (a[0] = (r) => g(t) ? t.value = r : t = r)
37
+ }, null, 8, ["placeholder", "disabled", "modelValue"]);
38
+ };
39
+ }
40
+ });
41
+ export {
42
+ j as default
43
+ };
@@ -0,0 +1,59 @@
1
+ import { defineComponent as h, toRefs as y, resolveComponent as l, openBlock as t, createBlock as n, unref as e, withCtx as o, createElementVNode as a, createElementBlock as c, Fragment as k, renderList as x, createCommentVNode as v } 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 { _ as H, I as g } from "./main-D-QTCahZ.js";
7
+ import "./assets/moment-h96o7c8I.js";
8
+ import "./assets/liquidjs-C-LVcoaY.js";
9
+ const C = { class: "timeline-layout" }, B = ["innerHTML"], L = {
10
+ key: 0,
11
+ class: "timeline-detail"
12
+ }, w = /* @__PURE__ */ h({
13
+ __name: "Timeline",
14
+ props: {
15
+ searchData: {},
16
+ route: {},
17
+ module: {},
18
+ schema: {},
19
+ table: {},
20
+ layout: {},
21
+ next: {},
22
+ set: {}
23
+ },
24
+ setup(_) {
25
+ let p = _, { module: T, schema: b, table: m, layout: i, next: E, set: r } = y(p);
26
+ return (M, N) => {
27
+ const u = l("el-timeline-item"), d = l("el-timeline"), f = l("el-empty");
28
+ return t(), n(e(H), { class: "timeline" }, {
29
+ default: o(() => [
30
+ a("div", C, [
31
+ e(r)[e(m).name].length > 0 ? (t(), n(d, {
32
+ key: 0,
33
+ reverse: !1
34
+ }, {
35
+ default: o(() => [
36
+ (t(!0), c(k, null, x(e(r)[e(m).name], (s) => (t(), n(u, {
37
+ timestamp: s[e(i).time]
38
+ }, {
39
+ default: o(() => [
40
+ a("div", {
41
+ innerHTML: e(g).getHtml(s[e(i).text])
42
+ }, null, 8, B)
43
+ ]),
44
+ _: 2
45
+ }, 1032, ["timestamp"]))), 256))
46
+ ]),
47
+ _: 1
48
+ })) : (t(), n(f, { key: 1 }))
49
+ ]),
50
+ e(m).length > 0 ? (t(), c("div", L, " 时间线节点详情 ")) : v("", !0)
51
+ ]),
52
+ _: 1
53
+ });
54
+ };
55
+ }
56
+ });
57
+ export {
58
+ w as default
59
+ };
@@ -0,0 +1,122 @@
1
+ import { defineComponent as Q, toRefs as U, ref as m, onMounted as X, watch as Y, nextTick as V, resolveComponent as N, openBlock as k, createElementBlock as w, unref as d, Fragment as K, renderList as L, createBlock as B, withCtx as b, createVNode as Z, createElementVNode as ee, toDisplayString as H, createCommentVNode as M } from "vue";
2
+ import { E as le, A as _, T as A, s as D } from "./main-D-QTCahZ.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 "./assets/liquidjs-C-LVcoaY.js";
8
+ const te = { class: "option-text" }, ae = {
9
+ key: 0,
10
+ class: "option-suffix"
11
+ }, he = /* @__PURE__ */ Q({
12
+ __name: "Tree",
13
+ props: {
14
+ route: {},
15
+ validateErrors: {},
16
+ module: {},
17
+ schema: {},
18
+ table: {},
19
+ layout: {},
20
+ next: {},
21
+ set: {}
22
+ },
23
+ setup(F, { expose: P }) {
24
+ let S = F, { module: $, schema: re, table: u, layout: l, set: p } = U(S), E = m(), T = m([]), x = m(), y = m(0), g = m([]), R = m(!0), z = (e, r, o) => {
25
+ let a = p.value[u.value.name].find((n) => n.PermissionId == e[l.value.id]);
26
+ a && (a[l.value.expand] = !0);
27
+ }, W = (e, r, o) => {
28
+ let a = p.value[u.value.name].find((n) => n.PermissionId == e[l.value.id]);
29
+ a && (a[l.value.expand] = !1);
30
+ }, j = (e, r, o) => {
31
+ let a = r.checkedKeys, n = e[l.value.id], i = _.contains(a, n), c = [], s = [], h = A.getChildren(e, "Children").map((t) => t[l.value.id]), f = p.value[u.value.name].map((t) => t[l.value.checked]), v = _.intersect(h, f);
32
+ if (i) {
33
+ c.push(e[l.value.id]);
34
+ let t = _.except(h, v);
35
+ t.length && (a.push(...t), c.push(...t));
36
+ } else
37
+ s.push(n), v.length == h.length && (s.push(...h), _.remove(a, h));
38
+ c.length && q(c), s.length && G(s);
39
+ }, q = (e) => {
40
+ for (let r = 0; r < e.length; r++) {
41
+ let o = D.getDefaultRow(u.value);
42
+ o[l.value.checked] = e[r], p.value[u.value.name].push(o);
43
+ }
44
+ }, G = (e) => {
45
+ let r = p.value[u.value.name];
46
+ for (let o = 0; o < e.length; o++) {
47
+ let a = r.find((n) => n[l.value.checked] == e[o]);
48
+ _.remove(r, a);
49
+ }
50
+ }, J = (e) => {
51
+ x.value = e.contentRect.width, y.value = Math.ceil(x.value / 300), I(u.value, l.value, p.value);
52
+ }, I = (e, r, o) => {
53
+ g.value = D.getLines(r.data, y.value, (a) => [a], () => 1), V(() => {
54
+ let a = o[e.name].map((i) => i[r.checked]), n = 0;
55
+ for (let i = 0; i < g.value.length; i++) {
56
+ let c = g.value[i];
57
+ for (let s = 0; s < c.length; s++) {
58
+ let C = T.value[n], h = c[s].data, f = A.getFlat(h, "Children").map((t) => t[r.id]), v = _.intersect(f, a);
59
+ if (!(v.length == 1 && f.length > 1)) for (let t = 0; t < v.length; t++) {
60
+ let O = v[t];
61
+ C.setChecked(O, !0, !1);
62
+ }
63
+ n++;
64
+ }
65
+ }
66
+ });
67
+ };
68
+ return X(() => {
69
+ x.value = le.getWidth(E.value), y.value = Math.ceil(x.value / 300), I(u.value, l.value, p.value);
70
+ }), Y(() => u.value, (e, r) => {
71
+ R.value = !1, V(() => {
72
+ R.value = !0, I(e, l.value, p.value);
73
+ });
74
+ }), P({ resize: J }), (e, r) => {
75
+ const o = N("el-tree"), a = N("el-col"), n = N("el-row");
76
+ return k(), w("div", {
77
+ ref_key: "layoutRef",
78
+ ref: E,
79
+ class: "ha-tree-layout"
80
+ }, [
81
+ d(R) ? (k(!0), w(K, { key: 0 }, L(d(g), (i, c) => (k(), B(n, null, {
82
+ default: b(() => [
83
+ (k(!0), w(K, null, L(i, ({ data: s, span: C, index: h }, f) => (k(), B(a, {
84
+ span: C,
85
+ key: `${c}.${f}`
86
+ }, {
87
+ default: b(() => [
88
+ Z(o, {
89
+ ref_for: !0,
90
+ ref_key: "treeRefs",
91
+ ref: T,
92
+ "show-checkbox": "",
93
+ "highlight-current": "",
94
+ "default-expand-all": !1,
95
+ "expand-on-click-node": !1,
96
+ "node-key": d(l).id,
97
+ data: s,
98
+ props: { children: "Children", label: d(l).text },
99
+ disabled: d($).type == "Detail",
100
+ onNodeExpand: d(z),
101
+ onNodeCollapse: d(W),
102
+ onCheck: (v, t) => d(j)(v, t, h)
103
+ }, {
104
+ default: b(({ node: v, data: t }) => [
105
+ ee("div", te, H(t[d(l).text]), 1),
106
+ d(l).suffix ? (k(), w("div", ae, H(t[d(l).suffix]), 1)) : M("", !0)
107
+ ]),
108
+ _: 2
109
+ }, 1032, ["node-key", "data", "props", "disabled", "onNodeExpand", "onNodeCollapse", "onCheck"])
110
+ ]),
111
+ _: 2
112
+ }, 1032, ["span"]))), 128))
113
+ ]),
114
+ _: 2
115
+ }, 1024))), 256)) : M("", !0)
116
+ ], 512);
117
+ };
118
+ }
119
+ });
120
+ export {
121
+ he as default
122
+ };
@@ -1,15 +1,19 @@
1
- import { defineComponent as xe, toRefs as ge, ref as v, onMounted as Ce, onUnmounted as we, computed as L, watch as Ne, resolveComponent as T, openBlock as i, createBlock as g, unref as e, withCtx as f, createElementVNode as c, createElementBlock as h, createVNode as _, Fragment as Ke, renderList as Se, withDirectives as Re, resolveDynamicComponent as $e, createCommentVNode as C, createTextVNode as w, toDisplayString as k, vShow as Te, nextTick as j } from "vue";
2
- import { Y as F, o as M, e as p, v as De, O as A, T as G, u as H, K as Ie, ap as Ve } from "./assets/halo-fe-B-NiIGas.js";
3
- import { c as qe, e as J, g as Le, f as Ue, h as Be, _ as Q } from "./main-DB_sVyZe.js";
1
+ import { defineComponent as xe, toRefs as ge, ref as v, onMounted as Ce, onUnmounted as we, computed as q, watch as Ne, resolveComponent as T, openBlock as i, createBlock as g, unref as e, withCtx as f, createElementVNode as c, createElementBlock as h, createVNode as _, Fragment as Ke, renderList as Se, withDirectives as Re, resolveDynamicComponent as $e, createCommentVNode as C, createTextVNode as w, toDisplayString as b, vShow as Te, nextTick as O } from "vue";
2
+ import { c as P, d as Ue, x as j, J as De, G as Ie, K as Ve, b as F, t as p, a as G, m as qe, T as J, h as Q, A as W, U as Le, M as Be } from "./main-D-QTCahZ.js";
3
+ import "./assets/underscore.string-DVXD2SZo.js";
4
+ import "./assets/file-saver-CwlpTZSc.js";
5
+ import "./assets/clone-BZn0cTAu.js";
6
+ import "./assets/moment-h96o7c8I.js";
7
+ import "./assets/liquidjs-C-LVcoaY.js";
4
8
  import "vue-router";
5
9
  import "./assets/intro.js-DxWjEdp_.js";
6
- const Ee = { class: "tree-left" }, Oe = /* @__PURE__ */ c("i", { class: "fa fa-plus" }, null, -1), ze = /* @__PURE__ */ c("i", { class: "fa fa-plus" }, null, -1), Pe = /* @__PURE__ */ c("i", { class: "fa fa-copy" }, null, -1), Ye = /* @__PURE__ */ c("i", { class: "fa fa-trash" }, null, -1), je = {
10
+ const Ee = { class: "tree-left" }, ze = /* @__PURE__ */ c("i", { class: "fa fa-plus" }, null, -1), He = /* @__PURE__ */ c("i", { class: "fa fa-plus" }, null, -1), Me = /* @__PURE__ */ c("i", { class: "fa fa-copy" }, null, -1), Ae = /* @__PURE__ */ c("i", { class: "fa fa-trash" }, null, -1), Oe = {
7
11
  key: 2,
8
12
  class: "ha-empty"
9
- }, Fe = {
13
+ }, Pe = {
10
14
  key: 3,
11
15
  class: "tree-add"
12
- }, Me = /* @__PURE__ */ c("i", { class: "fa fa-plus" }, null, -1), Xe = /* @__PURE__ */ xe({
16
+ }, je = /* @__PURE__ */ c("i", { class: "fa fa-plus" }, null, -1), tl = /* @__PURE__ */ xe({
13
17
  __name: "Tree",
14
18
  props: {
15
19
  searchData: {},
@@ -22,112 +26,112 @@ const Ee = { class: "tree-left" }, Oe = /* @__PURE__ */ c("i", { class: "fa fa-p
22
26
  set: {}
23
27
  },
24
28
  emits: ["refresh", "succeed", "search", "navigate"],
25
- setup(W, { expose: X, emit: Z }) {
26
- let b = Z, ee = W, { route: N, module: U, schema: le, table: m, layout: o, next: y, set: Ae, searchData: te } = ge(ee), K = v(), B = v(), x = v(), S = v(), E = v(), ae = v(), d = v({ type: null, name: null, url: null, visible: !1 }), R = v(), D = null, a = v({ width: 250, currentNode: null, currentKey: null, expandedKeys: [], scrollTop: 0, visible: !1 }), O = () => {
29
+ setup(X, { expose: Y, emit: Z }) {
30
+ let k = Z, ee = X, { route: N, module: L, schema: le, table: m, layout: r, next: y, set: Fe, searchData: te } = ge(ee), K = v(), B = v(), x = v(), S = v(), E = v(), ae = v(), d = v({ type: null, name: null, url: null, visible: !1 }), R = v(), U = null, a = v({ width: 250, currentNode: null, currentKey: null, expandedKeys: [], scrollTop: 0, visible: !1 }), z = () => {
27
31
  if (!K.value)
28
32
  return;
29
33
  let l = K.value.$el.querySelector(".is-context");
30
34
  l && l.classList.remove("is-context");
31
- }, oe = (l, t, r, n) => {
32
- O(), n.vnode.el.classList.add("is-context"), a.value.currentNode = t, D.show(l);
35
+ }, re = (l, t, o, n) => {
36
+ z(), n.vnode.el.classList.add("is-context"), a.value.currentNode = t, U.show(l);
33
37
  }, $ = (l) => {
34
- let t = o.value.parentId, r = { [t]: null };
35
- l == "sibling" ? r[t] = a.value.currentNode[t] : l == "child" && (r[t] = a.value.currentNode[o.value.id]);
36
- let n = F.encode(r), u = `${y.value.insert.route}?default=${n}`;
37
- l == "copy" && (u += "&id=" + a.value.currentNode[o.value.id]), d.value.url = u, d.value.visible = !0;
38
- }, z = () => {
39
- let l = a.value.currentNode[o.value.id], t = a.value.currentNode[o.value.text], r = p("common.confirm_delete", t);
40
- De.confirm(p("common.tips"), r, { type: "warning" }).then(() => {
41
- re(l);
38
+ let t = r.value.parentId, o = { [t]: null };
39
+ l == "sibling" ? o[t] = a.value.currentNode[t] : l == "child" && (o[t] = a.value.currentNode[r.value.id]);
40
+ let n = P.encode(o), u = `${y.value.insert.route}?default=${n}`;
41
+ l == "copy" && (u += "&id=" + a.value.currentNode[r.value.id]), d.value.url = u, d.value.visible = !0;
42
+ }, H = () => {
43
+ let l = a.value.currentNode[r.value.id], t = a.value.currentNode[r.value.text], o = p("common.confirm_delete", t);
44
+ qe.confirm(p("common.tips"), o, { type: "warning" }).then(() => {
45
+ oe(l);
42
46
  });
43
- }, re = (l) => {
44
- let t = o.value.id, r = o.value.data, n = A.getNextById(l, t, r, "Children");
45
- G.post(y.value.delete.route, [l]).then(() => {
46
- A.removeById(l, t, r, "Children");
47
+ }, oe = (l) => {
48
+ let t = r.value.id, o = r.value.data, n = J.getNextById(l, t, o, "Children");
49
+ Q.post(y.value.delete.route, [l]).then(() => {
50
+ J.removeById(l, t, o, "Children");
47
51
  let u = null;
48
- n && (u = n[t], a.value.currentKey = u, a.value.expandedKeys.push(u)), b("succeed", () => {
49
- I(a.value.scrollTop);
52
+ n && (u = n[t], a.value.currentKey = u, a.value.expandedKeys.push(u)), k("succeed", () => {
53
+ D(a.value.scrollTop);
50
54
  });
51
55
  });
52
56
  }, ne = (l) => {
53
57
  a.value.scrollTop = l.scrollTop;
54
- }, I = (l = null, t = null) => {
55
- a.value.visible = !1, j(() => {
56
- a.value.visible = !0, j(() => {
58
+ }, D = (l = null, t = null) => {
59
+ a.value.visible = !1, O(() => {
60
+ a.value.visible = !0, O(() => {
57
61
  if (l == null) {
58
- let r = K.value.$el.querySelector(".el-tree-node.is-current");
59
- r && r.scrollIntoView({ block: "center", behavior: "smooth" });
62
+ let o = K.value.$el.querySelector(".el-tree-node.is-current");
63
+ o && o.scrollIntoView({ block: "center", behavior: "smooth" });
60
64
  } else
61
65
  S.value.setScrollTop(l);
62
66
  t && t();
63
67
  });
64
68
  });
65
69
  }, ue = () => {
66
- d.value.visible = !1, b("succeed", () => {
67
- I(a.value.scrollTop);
70
+ d.value.visible = !1, k("succeed", () => {
71
+ D(a.value.scrollTop);
68
72
  });
69
73
  }, se = (l) => {
70
74
  d.value.type = l.module.type, d.value.name = l.module.name;
71
75
  }, de = () => {
72
76
  d.value.visible = !1;
73
- }, ie = (l, t, r) => {
74
- O();
75
- let n = l[o.value.id];
76
- if (H.pushIfNotExist(a.value.expandedKeys, n), n == a.value.currentKey)
77
+ }, ie = (l, t, o) => {
78
+ z();
79
+ let n = l[r.value.id];
80
+ if (W.pushIfNotExist(a.value.expandedKeys, n), n == a.value.currentKey)
77
81
  x.value.refresh();
78
82
  else {
79
- a.value.currentKey = n, R.value = V();
80
- let u = Ie.getUrl(N.value.fullPath, { id: n });
81
- b("navigate", u);
83
+ a.value.currentKey = n, R.value = I();
84
+ let u = Le.getUrl(N.value.fullPath, { id: n });
85
+ k("navigate", u);
82
86
  }
83
- }, ce = (l, t, r) => {
84
- H.remove(a.value.expandedKeys, l[o.value.id]);
85
- }, ve = (l, t, r, n) => {
87
+ }, ce = (l, t, o) => {
88
+ W.remove(a.value.expandedKeys, l[r.value.id]);
89
+ }, ve = (l, t, o, n) => {
86
90
  let u = {
87
- table: o.value.table,
88
- id: l.data[o.value.id],
89
- targetId: t.data[o.value.id],
90
- position: r
91
+ table: r.value.table,
92
+ id: l.data[r.value.id],
93
+ targetId: t.data[r.value.id],
94
+ position: o
91
95
  };
92
- G.post(o.value.operation.route, u).then((Y) => {
96
+ Q.post(r.value.operation.route, u).then((A) => {
93
97
  });
94
98
  }, fe = (l) => {
95
- b("search", l);
99
+ k("search", l);
96
100
  }, me = (l) => {
97
101
  }, pe = (l, t) => l ? t[m.value.text].indexOf(l) !== -1 : !0, ye = () => {
98
- b("refresh");
102
+ k("refresh");
99
103
  }, he = (l, t) => {
100
104
  if (!x.value || !x.value.keyboard)
101
105
  return !1;
102
106
  x.value.keyboard(l, t);
103
107
  }, _e = () => {
104
108
  S.value.update();
105
- }, V = () => {
106
- let l = y.value[o.value.page.toLowerCase()].route;
109
+ }, I = () => {
110
+ let l = y.value[r.value.page.toLowerCase()].route;
107
111
  return a.value.currentKey && (l += "?id=" + a.value.currentKey), l;
108
- }, ke = () => {
112
+ }, be = () => {
109
113
  let l = N.value.query.id, t;
110
- l == null ? t = o.value.updateKey : t = J.convert(l, P.value.type), t && (a.value.currentKey = t, a.value.expandedKeys = [t], R.value = V()), I(null, () => {
111
- D = new Ve(B.value, [S.value.$el, E.value]);
114
+ l == null ? t = r.value.updateKey : t = j.convert(l, M.value.type), t && (a.value.currentKey = t, a.value.expandedKeys = [t], R.value = I()), D(null, () => {
115
+ U = new Be(B.value, [S.value.$el, E.value]);
112
116
  });
113
117
  };
114
118
  Ce(() => {
115
- ke();
119
+ be();
116
120
  }), we(() => {
117
- D.dispose();
118
- }), L(() => {
119
- let l = { [o.value.parentId]: N.value.query.id };
120
- return F.encode(l);
121
+ U.dispose();
122
+ }), q(() => {
123
+ let l = { [r.value.parentId]: N.value.query.id };
124
+ return P.encode(l);
121
125
  });
122
- let be = L(() => {
126
+ let ke = q(() => {
123
127
  let l = `/${m.value.name}/tree-node`;
124
- return qe.getComponent(l, "partial", "tree-node");
125
- }), P = L(() => m.value.fields.find((t) => t.name == o.value.id));
128
+ return Ue.getComponent(l, "partial", "tree-node");
129
+ }), M = q(() => m.value.fields.find((t) => t.name == r.value.id));
126
130
  return Ne(() => N.value, (l, t) => {
127
- a.value.currentKey = J.convert(l.query.id, P.value.type), R.value = V();
128
- }), X({ refresh: ye, keyboard: he, resize: _e }), (l, t) => {
129
- const r = T("el-scrollbar"), n = T("el-tree"), u = T("el-button"), Y = T("el-drawer");
130
- return i(), g(e(Le), {
131
+ a.value.currentKey = j.convert(l.query.id, M.value.type), R.value = I();
132
+ }), Y({ refresh: ye, keyboard: he, resize: _e }), (l, t) => {
133
+ const o = T("el-scrollbar"), n = T("el-tree"), u = T("el-button"), A = T("el-drawer");
134
+ return i(), g(e(De), {
131
135
  class: "tree",
132
136
  width: e(a).width,
133
137
  onResize: t[5] || (t[5] = (s) => e(a).width = s)
@@ -140,13 +144,13 @@ const Ee = { class: "tree-left" }, Oe = /* @__PURE__ */ c("i", { class: "fa fa-p
140
144
  ref: ae,
141
145
  class: "tree-search"
142
146
  }, [
143
- _(r, null, {
147
+ _(o, null, {
144
148
  default: f(() => [
145
- (i(!0), h(Ke, null, Se(e(m).search, (s, q) => (i(), h("div", {
149
+ (i(!0), h(Ke, null, Se(e(m).search, (s, V) => (i(), h("div", {
146
150
  class: "search-field",
147
- key: q
151
+ key: V
148
152
  }, [
149
- _(e(Ue), {
153
+ _(e(Ie), {
150
154
  schema: e(le),
151
155
  table: e(m),
152
156
  field: s,
@@ -158,11 +162,11 @@ const Ee = { class: "tree-left" }, Oe = /* @__PURE__ */ c("i", { class: "fa fa-p
158
162
  ]),
159
163
  _: 1
160
164
  })
161
- ], 512)) : (i(), g(e(Be), {
165
+ ], 512)) : (i(), g(e(Ve), {
162
166
  key: 1,
163
- title: e(M)(e(U).type, e(U).name)
167
+ title: e(F)(e(L).type, e(L).name)
164
168
  }, null, 8, ["title"])),
165
- Re(_(r, {
169
+ Re(_(o, {
166
170
  ref_key: "scrollbarRef",
167
171
  ref: S,
168
172
  class: "tree-content",
@@ -174,25 +178,25 @@ const Ee = { class: "tree-left" }, Oe = /* @__PURE__ */ c("i", { class: "fa fa-p
174
178
  ref_key: "treeRef",
175
179
  ref: K,
176
180
  "highlight-current": "",
177
- "show-checkbox": e(o).checkbox,
181
+ "show-checkbox": e(r).checkbox,
178
182
  "expand-on-click-node": !1,
179
- draggable: !!e(o).operation,
180
- data: e(o).data,
181
- "node-key": e(o).id,
183
+ draggable: !!e(r).operation,
184
+ data: e(r).data,
185
+ "node-key": e(r).id,
182
186
  "current-node-key": e(a).currentKey,
183
- props: { children: "Children", label: e(o).text },
187
+ props: { children: "Children", label: e(r).text },
184
188
  "filter-node-method": e(pe),
185
189
  "default-expanded-keys": e(a).expandedKeys,
186
190
  onNodeClick: e(ie),
187
- onNodeContextmenu: e(oe),
191
+ onNodeContextmenu: e(re),
188
192
  onNodeCollapse: e(ce),
189
193
  onNodeDrop: e(ve)
190
194
  }, {
191
- default: f(({ node: s, data: q }) => [
192
- (i(), g($e(e(be)), {
195
+ default: f(({ node: s, data: V }) => [
196
+ (i(), g($e(e(ke)), {
193
197
  table: e(m),
194
- layout: e(o),
195
- row: q,
198
+ layout: e(r),
199
+ row: V,
196
200
  node: s
197
201
  }, null, 8, ["table", "layout", "row", "node"]))
198
202
  ]),
@@ -206,46 +210,46 @@ const Ee = { class: "tree-left" }, Oe = /* @__PURE__ */ c("i", { class: "fa fa-p
206
210
  c("li", {
207
211
  onClick: t[0] || (t[0] = (s) => e($)("child"))
208
212
  }, [
209
- Oe,
210
- w(k(e(p)("tree.add_sub_item")), 1)
213
+ ze,
214
+ w(b(e(p)("tree.add_sub_item")), 1)
211
215
  ]),
212
216
  c("li", {
213
217
  onClick: t[1] || (t[1] = (s) => e($)("sibling"))
214
218
  }, [
215
- ze,
216
- w(k(e(p)("tree.add_same_grade")), 1)
219
+ He,
220
+ w(b(e(p)("tree.add_same_grade")), 1)
217
221
  ]),
218
222
  c("li", {
219
223
  onClick: t[2] || (t[2] = (s) => e($)("copy"))
220
224
  }, [
221
- Pe,
222
- w(k(e(p)("common.copy")), 1)
225
+ Me,
226
+ w(b(e(p)("common.copy")), 1)
223
227
  ]),
224
228
  e(y).delete ? (i(), h("li", {
225
229
  key: 0,
226
230
  onClick: t[3] || (t[3] = //@ts-ignore
227
- (...s) => e(z) && e(z)(...s))
231
+ (...s) => e(H) && e(H)(...s))
228
232
  }, [
229
- Ye,
230
- w(k(e(p)("common.delete")), 1)
233
+ Ae,
234
+ w(b(e(p)("common.delete")), 1)
231
235
  ])) : C("", !0)
232
236
  ], 512)
233
237
  ]),
234
238
  _: 1
235
239
  }, 8, ["onScroll"]), [
236
- [Te, e(o).data.length]
240
+ [Te, e(r).data.length]
237
241
  ]),
238
- e(o).data.length ? C("", !0) : (i(), h("div", je, k(e(p)("common.no_data")), 1)),
239
- !e(o).data.length && e(y).insert ? (i(), h("div", Fe, [
242
+ e(r).data.length ? C("", !0) : (i(), h("div", Oe, b(e(p)("common.no_data")), 1)),
243
+ !e(r).data.length && e(y).insert ? (i(), h("div", Pe, [
240
244
  _(u, {
241
245
  type: "primary",
242
246
  onClick: e($)
243
247
  }, {
244
248
  icon: f(() => [
245
- Me
249
+ je
246
250
  ]),
247
251
  default: f(() => [
248
- w(" " + k(e(y).insert.title), 1)
252
+ w(" " + b(e(y).insert.title), 1)
249
253
  ]),
250
254
  _: 1
251
255
  }, 8, ["onClick"])
@@ -258,22 +262,22 @@ const Ee = { class: "tree-left" }, Oe = /* @__PURE__ */ c("i", { class: "fa fa-p
258
262
  ref: E,
259
263
  class: "tree-detail"
260
264
  }, [
261
- e(a).currentKey ? (i(), g(e(Q), {
265
+ e(a).currentKey ? (i(), g(e(G), {
262
266
  key: 0,
263
267
  ref_key: "singleRef",
264
268
  ref: x,
265
269
  url: e(R)
266
270
  }, null, 8, ["url"])) : C("", !0)
267
271
  ], 512),
268
- _(Y, {
272
+ _(A, {
269
273
  size: "60%",
270
274
  "destroy-on-close": "",
271
- title: e(M)(e(d).type, e(d).name),
275
+ title: e(F)(e(d).type, e(d).name),
272
276
  modelValue: e(d).visible,
273
277
  "onUpdate:modelValue": t[4] || (t[4] = (s) => e(d).visible = s)
274
278
  }, {
275
279
  default: f(() => [
276
- _(e(Q), {
280
+ _(e(G), {
277
281
  url: e(d).url,
278
282
  onLoaded: e(se),
279
283
  onSucceed: e(ue),
@@ -289,5 +293,5 @@ const Ee = { class: "tree-left" }, Oe = /* @__PURE__ */ c("i", { class: "fa fa-p
289
293
  }
290
294
  });
291
295
  export {
292
- Xe as default
296
+ tl as default
293
297
  };
@@ -0,0 +1,42 @@
1
+ import { defineComponent as x, toRefs as h, computed as C, openBlock as a, createElementBlock as s, unref as e, createElementVNode as N, toDisplayString as i, createTextVNode as b, createCommentVNode as d } from "vue";
2
+ import "./assets/underscore-B0BCaBxV.js";
3
+ import { t as g, S as y } from "./main-D-QTCahZ.js";
4
+ import "./assets/clone-BZn0cTAu.js";
5
+ import "./assets/file-saver-CwlpTZSc.js";
6
+ import "./assets/moment-h96o7c8I.js";
7
+ import "./assets/liquidjs-C-LVcoaY.js";
8
+ const k = ["title"], v = { class: "number" }, S = {
9
+ key: 0,
10
+ class: "option-suffix"
11
+ }, V = {
12
+ key: 1,
13
+ class: "count"
14
+ }, H = /* @__PURE__ */ x({
15
+ __name: "TreeNode",
16
+ props: {
17
+ table: {},
18
+ layout: {},
19
+ row: {},
20
+ node: {}
21
+ },
22
+ setup(p) {
23
+ let u = p, { table: c, layout: r, row: t, node: m } = h(u), f = (o, l) => {
24
+ let n = (o.parent.data.Children ? o.parent.data.Children.indexOf(l) : o.parent.data.indexOf(l)) + 1;
25
+ return y.padLeft(n, 2, "0");
26
+ }, _ = C(() => c.value.fields.find((n) => n.name == r.value.text).control.i18N);
27
+ return (o, l) => {
28
+ var n;
29
+ return a(), s("div", {
30
+ title: e(t)[e(r).title]
31
+ }, [
32
+ N("span", v, i(e(f)(e(m), e(t))), 1),
33
+ b(" " + i((n = e(_)) != null && n.value ? e(g)(e(t)[e(r).text]) : e(t)[e(r).text]) + " ", 1),
34
+ e(r).suffix ? (a(), s("span", S, i(e(t)[e(r).suffix]), 1)) : d("", !0),
35
+ e(t).Children && e(t).Children.length > 0 ? (a(), s("span", V, "(" + i(e(t).Children.length) + ")", 1)) : d("", !0)
36
+ ], 8, k);
37
+ };
38
+ }
39
+ });
40
+ export {
41
+ H as default
42
+ };