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.
Files changed (150) hide show
  1. package/dist/{Article-7pMF1N-k.js → Article-BbJTCOkX.js} +66 -62
  2. package/dist/{Autocomplete-CEjjKXwo.js → Autocomplete-A0m1RW7z.js} +1 -1
  3. package/dist/Autocomplete-C3d_yunJ.js +52 -0
  4. package/dist/Autocomplete-H0_xgWsN.js +53 -0
  5. package/dist/{CSharp-DatSqpip.js → CSharp-Bwl97exE.js} +1 -1
  6. package/dist/{Calender-B1HoFiQg.js → Calender-C3vbVYIN.js} +1 -1
  7. package/dist/Callback-oU2ap8v9.js +24 -0
  8. package/dist/Cascader-ClSabtOx.js +45 -0
  9. package/dist/Cascader-DRErYyH6.js +84 -0
  10. package/dist/{Checkbox-B6IkMrWB.js → Checkbox-BJS0a1NT.js} +1 -1
  11. package/dist/{Code-SZuIImtp.js → Code-9I77CMRV.js} +1 -1
  12. package/dist/Code-B2DrYXDa.js +58 -0
  13. package/dist/Code-BgqGTky1.js +40 -0
  14. package/dist/Code-Cv1pm18C.js +4 -0
  15. package/dist/Code.vue_vue_type_style_index_0_lang-IHZepbsi.js +63 -0
  16. package/dist/Column-Dgs0SdWX.js +71 -0
  17. package/dist/Comment-Cy6lpmqk.js +102 -0
  18. package/dist/Compare-5cTiHEdo.js +30 -0
  19. package/dist/Compare-CWeuLw9n.js +60 -0
  20. package/dist/Copy-C6WEtRhC.js +47 -0
  21. package/dist/Custom-QDHQJoxC.js +53 -0
  22. package/dist/{DataExport-I9iG4oEo.js → DataExport-BHh7NvbT.js} +1 -1
  23. package/dist/{DataExport.vue_vue_type_script_setup_true_lang-BgKetUGv.js → DataExport.vue_vue_type_script_setup_true_lang-C9t5j7Gi.js} +37 -33
  24. package/dist/{DataImport-2KtOy-of.js → DataImport-CtBsCyNb.js} +1 -1
  25. package/dist/{DataImport.vue_vue_type_script_setup_true_lang-DgzKdC2g.js → DataImport.vue_vue_type_script_setup_true_lang-bI0HP38b.js} +59 -55
  26. package/dist/{Date-PERpDDy_.js → Date-IV1FwqTW.js} +1 -1
  27. package/dist/{DateRange-BaxHMjcx.js → DateRange-IWmDLSuy.js} +11 -7
  28. package/dist/{DateTime-B7gHENiu.js → DateTime-Di6sr-tq.js} +1 -1
  29. package/dist/{DateTimeRange-yI9Y2qgC.js → DateTimeRange-BNUGYgWf.js} +14 -10
  30. package/dist/{Daterange-DqvBvK-B.js → Daterange-rrlMT4tD.js} +17 -13
  31. package/dist/{Decimal-AXwMeqBW.js → Decimal-D9TVQqyS.js} +1 -1
  32. package/dist/Delete-B-k4PTWk.js +59 -0
  33. package/dist/{Detail-aWACqVnM.js → Detail-HAblGKTY.js} +20 -16
  34. package/dist/Dictionary-BUmany6B.js +59 -0
  35. package/dist/{File--NsXL6XX.js → File-MF1QgEQX.js} +45 -41
  36. package/dist/{Image-CuwfJLKW.js → Image-Dps_vfcZ.js} +1 -1
  37. package/dist/{Index-BNOFdDjW.js → Index-7cTFT9Xb.js} +19 -15
  38. package/dist/{Index-CQ9S2R9b.js → Index-C_mfWEwr.js} +1 -1
  39. package/dist/Index-Cgets8DK.js +4 -0
  40. package/dist/Index-DGnHsBz4.js +4 -0
  41. package/dist/{Index-Cewv4-Ik.js → Index-DupYRMRj.js} +45 -41
  42. package/dist/{Index-DA2wAurY.js → Index-XBFHPLbK.js} +1 -1
  43. package/dist/{Index-Cj79dCuO.js → Index-hgpg_5ma.js} +1 -1
  44. 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
  45. package/dist/{Index.vue_vue_type_script_setup_true_lang-DjiARPz7.js → Index.vue_vue_type_script_setup_true_lang-yOf2ubuo.js} +16 -12
  46. 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
  47. package/dist/{Install-BWdNbtVx.js → Install-A9qs4Vg-.js} +20 -16
  48. package/dist/{Int-nmVkFRqG.js → Int-B3L54Gcc.js} +16 -12
  49. package/dist/List-Om6OdbbR.js +76 -0
  50. package/dist/Maintaince-CrfEX-5B.js +19 -0
  51. package/dist/{Markdown-DD6ufwhM.js → Markdown-wcGRlabe.js} +1 -1
  52. package/dist/{Month-BqbTFGgo.js → Month-C1tCQKvO.js} +1 -1
  53. package/dist/{Normal-f4HN1ciI.js → Normal-HoU_elKy.js} +51 -47
  54. package/dist/Paging-C_StoYuZ.js +94 -0
  55. package/dist/QueryApi-BrYyIwqV.js +18 -0
  56. package/dist/{Racebar-Bou-XNCm.js → Racebar-BXuP1N9F.js} +27 -23
  57. package/dist/{Radio-BmikzeCv.js → Radio-D6W9guyM.js} +1 -1
  58. package/dist/{Register-CgbRZH9W.js → Register-DGhIjRDD.js} +79 -75
  59. package/dist/{RichText-BeK3zZam.js → RichText-B3Br1uzj.js} +22 -18
  60. package/dist/{SearchFooter-C4PeAkaR.js → SearchFooter-D3-9GTr1.js} +1 -1
  61. 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
  62. package/dist/{SearchForm-C7fZiQaW.js → SearchForm-rWozLa4B.js} +1 -1
  63. package/dist/{SearchForm.vue_vue_type_style_index_0_lang-BumSLQVy.js → SearchForm.vue_vue_type_style_index_0_lang-F2we6KP-.js} +30 -26
  64. package/dist/{Select-C1-NVZdG.js → Select-64nQiHNA.js} +21 -17
  65. package/dist/{Select-DR5fQH0d.js → Select-CAmBUDp3.js} +40 -36
  66. package/dist/{Select-DlbQvxQu.js → Select-qCdhL7vC.js} +1 -1
  67. package/dist/{Single-BLRyJKB-.js → Single-Bnrt5Hxb.js} +81 -77
  68. package/dist/{Statistic-BOtmYiRA.js → Statistic-BTbwlH9l.js} +35 -31
  69. package/dist/{Stock-Dnwof0R1.js → Stock-Br_02hsI.js} +1 -1
  70. package/dist/{Stock-BqQ6lM5B.js → Stock-DbExd680.js} +1 -1
  71. package/dist/{Stock.vue_vue_type_style_index_0_lang-Az2jx3JN.js → Stock.vue_vue_type_style_index_0_lang-MTvhmHlz.js} +26 -22
  72. package/dist/{Switch-DuMBV0AX.js → Switch-J2GIv4Wa.js} +1 -1
  73. package/dist/{Table-Be-rPXr_.js → Table-DjBx2UGm.js} +68 -64
  74. package/dist/{Table-RMVT0hlE.js → Table-X4vTHlpm.js} +52 -48
  75. package/dist/{Text-DSXRKFPa.js → Text-BFZc81F2.js} +1 -1
  76. package/dist/Text.vue_vue_type_style_index_0_lang-Cw7QQbFk.js +56 -0
  77. package/dist/TextLink-C_lFWaZv.js +66 -0
  78. package/dist/{Textarea-3ypOGE1S.js → Textarea-Dw_qLc3Y.js} +1 -1
  79. package/dist/{Timeline-CLezCcgQ.js → Timeline-DaaRGmGd.js} +21 -17
  80. package/dist/Tree-CDD2Nd6q.js +121 -0
  81. package/dist/{Tree-B6RBRT1y.js → Tree-Cmp10DWw.js} +85 -81
  82. package/dist/TreeNode-BM8-GyIc.js +38 -0
  83. package/dist/{Update-Dc3Tdkn0.js → Update-PffbXMXH.js} +17 -13
  84. package/dist/Upload-F6HXe76H.js +71 -0
  85. package/dist/Upload-kwwpaDe6.js +147 -0
  86. package/dist/{UploadApi-Bs507D0w.js → UploadApi-D2W_aGKA.js} +8 -3
  87. package/dist/{Year-DKxOQNyS.js → Year-Dr5ST0Pk.js} +1 -1
  88. package/dist/main-B8RC13GR.js +6528 -0
  89. package/dist/main.js +113 -113
  90. package/dist/style.css +1 -1
  91. package/dist/vendor-@monaco-editor-DKC4UNw_.js +258 -0
  92. package/dist/{vendor-clipboard-DjQPoCBJ.js → vendor-clipboard-BqjesuiY.js} +130 -110
  93. package/dist/vendor-clone-BPtCWdXG.js +134 -0
  94. package/dist/vendor-crypto-js-ftX_aBC-.js +4995 -0
  95. package/dist/vendor-file-saver-CytTIJ-3.js +74 -0
  96. package/dist/{vendor-intro.js-DwWqhM1v.js → vendor-intro.js-CZkClzQO.js} +1 -1
  97. package/dist/vendor-moment-h96o7c8I.js +2578 -0
  98. package/dist/vendor-sprintf-js-BPTdvBYM.js +148 -0
  99. package/dist/vendor-state-local-CEworIRt.js +131 -0
  100. package/dist/vendor-underscore-DVTek3G4.js +1070 -0
  101. package/dist/vendor-underscore.string-BEHfJwHl.js +425 -0
  102. package/dist/vendor-util-deprecate-DzpNkCzj.js +28 -0
  103. package/esm/coms/controls/Text.vue.d.ts +1 -1
  104. package/esm/coms/globals/HaMenu.vue.d.ts +1 -1
  105. package/esm/coms/globals/HaWindow.vue.d.ts +1 -1
  106. package/esm/coms/pages/Delete.vue.d.ts +2 -2
  107. package/esm/coms/pages/Single.vue.d.ts +2 -2
  108. package/esm/coms/pagings/Article.vue.d.ts +2 -2
  109. package/esm/coms/pagings/DataExport.vue.d.ts +2 -2
  110. package/esm/coms/pagings/DataImport.vue.d.ts +2 -2
  111. package/esm/coms/pagings/Index.vue.d.ts +2 -2
  112. package/esm/coms/pagings/SearchFooter.vue.d.ts +1 -1
  113. package/esm/coms/pagings/Table.vue.d.ts +2 -2
  114. package/esm/main.d.ts +4 -3
  115. package/esm/services/ServiceFactory.d.ts +3 -0
  116. package/esm/types/PcOptions.d.ts +18 -0
  117. package/esm/types/index.d.ts +2 -0
  118. package/package.json +2 -2
  119. package/dist/Autocomplete-DqKo5NiJ.js +0 -49
  120. package/dist/Autocomplete-K5ipzchR.js +0 -48
  121. package/dist/Callback-PyCjejiv.js +0 -20
  122. package/dist/Cascader-B9lLRKjA.js +0 -80
  123. package/dist/Cascader-BNvlqc5t.js +0 -41
  124. package/dist/Code-BdK547kD.js +0 -4
  125. package/dist/Code-DfFF-84i.js +0 -36
  126. package/dist/Code-LFQVJotC.js +0 -54
  127. package/dist/Code.vue_vue_type_style_index_0_lang-nX113anq.js +0 -59
  128. package/dist/Column-DVjYrrr7.js +0 -67
  129. package/dist/Comment-Do7Mjpjr.js +0 -98
  130. package/dist/Compare-C_iDn27Q.js +0 -56
  131. package/dist/Compare-CrX3yfD4.js +0 -26
  132. package/dist/Copy-_sbdQvHJ.js +0 -43
  133. package/dist/Custom-DarpQFG8.js +0 -49
  134. package/dist/Delete-BY3vAVWa.js +0 -55
  135. package/dist/Dictionary-DpQuFYQ5.js +0 -55
  136. package/dist/Index-B_a_HzsB.js +0 -4
  137. package/dist/Index-Cx2J_P37.js +0 -4
  138. package/dist/List-BjdY1rMk.js +0 -72
  139. package/dist/Maintaince-DzYzyrAc.js +0 -15
  140. package/dist/Paging-BMPtLi8P.js +0 -90
  141. package/dist/QueryApi-CbP5cCyH.js +0 -13
  142. package/dist/Text.vue_vue_type_style_index_0_lang-CeDusQl6.js +0 -52
  143. package/dist/TextLink-BZW-y_FS.js +0 -62
  144. package/dist/Tree-CLpCeirT.js +0 -117
  145. package/dist/TreeNode-C16N8jqm.js +0 -34
  146. package/dist/Upload-DvWyjK3a.js +0 -143
  147. package/dist/Upload-SEu1V1yX.js +0 -67
  148. package/dist/main-QtNG6p7a.js +0 -16673
  149. package/dist/vendor-pinia-yrN6kSxh.js +0 -861
  150. package/dist/vendor-vue-demi-CIhrFbpB.js +0 -17
@@ -0,0 +1,66 @@
1
+ import { defineComponent as b, toRefs as y, ref as E, computed as s, resolveComponent as w, unref as l, openBlock as i, createElementBlock as f, renderSlot as u, createBlock as B, withCtx as R } from "vue";
2
+ import { useRoute as $ } from "vue-router";
3
+ import "./vendor-@monaco-editor-DKC4UNw_.js";
4
+ import "./vendor-moment-h96o7c8I.js";
5
+ import "xlsx-js-style";
6
+ import { g as d, r as x } from "./main-B8RC13GR.js";
7
+ import "./vendor-crypto-js-ftX_aBC-.js";
8
+ const C = { key: 0 }, O = ["href", "target"], q = /* @__PURE__ */ b({
9
+ __name: "TextLink",
10
+ props: {
11
+ schema: {},
12
+ table: {},
13
+ field: {},
14
+ set: {},
15
+ row: {}
16
+ },
17
+ emits: ["submit", "change", "update:modelValue"],
18
+ setup(p, { emit: H }) {
19
+ let h = p, { table: L, field: t, set: S, row: c } = y(h);
20
+ $();
21
+ let k = E(), a = s(() => {
22
+ let e = t.value.link.href;
23
+ return t.value.link.values.forEach((o) => {
24
+ e = e.replace(`{${o}}`, c.value[o]);
25
+ }), e;
26
+ }), _ = s(() => d.httpOrHttps(a.value)), v = s(async () => {
27
+ let e = a.value;
28
+ if (t.value.link.tables.length > 0) {
29
+ let r = {};
30
+ t.value.link.tables.forEach((n) => {
31
+ r[n.name] = {}, n.search.forEach((m) => {
32
+ r[n.name][m.name] = c.value[m.value];
33
+ });
34
+ });
35
+ let g = (await x.getEncoder().getBase64()).encode(JSON.stringify(r));
36
+ e += "&condition=" + g;
37
+ }
38
+ return d.getToRoute(e);
39
+ });
40
+ return (e, o) => {
41
+ const r = w("router-link");
42
+ return l(k) ? (i(), f("div", C, [
43
+ u(e.$slots, "default")
44
+ ])) : l(_) ? (i(), f("a", {
45
+ key: 1,
46
+ class: "text-link",
47
+ href: l(a),
48
+ target: l(t).link.target
49
+ }, [
50
+ u(e.$slots, "default")
51
+ ], 8, O)) : (i(), B(r, {
52
+ key: 2,
53
+ class: "text-link",
54
+ to: l(v)
55
+ }, {
56
+ default: R(() => [
57
+ u(e.$slots, "default")
58
+ ]),
59
+ _: 3
60
+ }, 8, ["to"]));
61
+ };
62
+ }
63
+ });
64
+ export {
65
+ q as default
66
+ };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as u, toRefs as p, openBlock as i, createBlock as c, unref as e, isRef as _ } from "vue";
2
- import { _ as V } from "./Text.vue_vue_type_style_index_0_lang-CeDusQl6.js";
2
+ import { _ as V } from "./Text.vue_vue_type_style_index_0_lang-Cw7QQbFk.js";
3
3
  const x = /* @__PURE__ */ u({
4
4
  __name: "Textarea",
5
5
  props: {
@@ -1,9 +1,13 @@
1
- import { defineComponent as h, toRefs as y, resolveComponent as o, openBlock as t, createBlock as n, unref as e, withCtx as m, createElementVNode as r, createElementBlock as c, Fragment as k, renderList as x, createCommentVNode as v } from "vue";
2
- import { z as g, G as C } from "./main-QtNG6p7a.js";
3
- const B = { class: "timeline-layout" }, H = ["innerHTML"], L = {
1
+ import { defineComponent as h, toRefs as y, resolveComponent as m, openBlock as t, createBlock as n, unref as e, withCtx as o, createElementVNode as r, createElementBlock as c, Fragment as k, renderList as x, createCommentVNode as H } from "vue";
2
+ import "./vendor-@monaco-editor-DKC4UNw_.js";
3
+ import "./vendor-moment-h96o7c8I.js";
4
+ import "xlsx-js-style";
5
+ import { k as v, H as g } from "./main-B8RC13GR.js";
6
+ import "./vendor-crypto-js-ftX_aBC-.js";
7
+ const C = { class: "timeline-layout" }, B = ["innerHTML"], L = {
4
8
  key: 0,
5
9
  class: "timeline-detail"
6
- }, V = /* @__PURE__ */ h({
10
+ }, q = /* @__PURE__ */ h({
7
11
  __name: "Timeline",
8
12
  props: {
9
13
  searchData: {},
@@ -16,24 +20,24 @@ const B = { class: "timeline-layout" }, H = ["innerHTML"], L = {
16
20
  set: {}
17
21
  },
18
22
  setup(_) {
19
- let u = _, { module: T, schema: b, table: l, layout: i, next: z, set: s } = y(u);
20
- return (E, G) => {
21
- const p = o("el-timeline-item"), d = o("el-timeline"), f = o("el-empty");
22
- return t(), n(e(g), { class: "timeline" }, {
23
- default: m(() => [
24
- r("div", B, [
23
+ let p = _, { module: T, schema: b, table: l, layout: i, next: E, set: s } = y(p);
24
+ return (M, N) => {
25
+ const u = m("el-timeline-item"), d = m("el-timeline"), f = m("el-empty");
26
+ return t(), n(e(v), { class: "timeline" }, {
27
+ default: o(() => [
28
+ r("div", C, [
25
29
  e(s)[e(l).name].length > 0 ? (t(), n(d, {
26
30
  key: 0,
27
31
  reverse: !1
28
32
  }, {
29
- default: m(() => [
30
- (t(!0), c(k, null, x(e(s)[e(l).name], (a) => (t(), n(p, {
33
+ default: o(() => [
34
+ (t(!0), c(k, null, x(e(s)[e(l).name], (a) => (t(), n(u, {
31
35
  timestamp: a[e(i).time]
32
36
  }, {
33
- default: m(() => [
37
+ default: o(() => [
34
38
  r("div", {
35
- innerHTML: e(C).getHtml(a[e(i).text])
36
- }, null, 8, H)
39
+ innerHTML: e(g).getHtml(a[e(i).text])
40
+ }, null, 8, B)
37
41
  ]),
38
42
  _: 2
39
43
  }, 1032, ["timestamp"]))), 256))
@@ -41,7 +45,7 @@ const B = { class: "timeline-layout" }, H = ["innerHTML"], L = {
41
45
  _: 1
42
46
  })) : (t(), n(f, { key: 1 }))
43
47
  ]),
44
- e(l).length > 0 ? (t(), c("div", L, " 时间线节点详情 ")) : v("", !0)
48
+ e(l).length > 0 ? (t(), c("div", L, " 时间线节点详情 ")) : H("", !0)
45
49
  ]),
46
50
  _: 1
47
51
  });
@@ -49,5 +53,5 @@ const B = { class: "timeline-layout" }, H = ["innerHTML"], L = {
49
53
  }
50
54
  });
51
55
  export {
52
- V as default
56
+ q as default
53
57
  };
@@ -0,0 +1,121 @@
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 D, createCommentVNode as H } from "vue";
2
+ import "./vendor-@monaco-editor-DKC4UNw_.js";
3
+ import "./vendor-moment-h96o7c8I.js";
4
+ import "xlsx-js-style";
5
+ import { D as le, A as _, T as M, j as S } from "./main-B8RC13GR.js";
6
+ import "./vendor-crypto-js-ftX_aBC-.js";
7
+ const te = { class: "option-text" }, ae = {
8
+ key: 0,
9
+ class: "option-suffix"
10
+ }, ce = /* @__PURE__ */ Q({
11
+ __name: "Tree",
12
+ props: {
13
+ route: {},
14
+ validateErrors: {},
15
+ module: {},
16
+ schema: {},
17
+ table: {},
18
+ layout: {},
19
+ next: {},
20
+ set: {}
21
+ },
22
+ setup(A, { expose: F }) {
23
+ let P = A, { module: $, schema: re, table: u, layout: l, set: f } = U(P), E = m(), T = m([]), x = m(), y = m(0), g = m([]), R = m(!0), j = (e, r, n) => {
24
+ let a = f.value[u.value.name].find((o) => o.PermissionId == e[l.value.id]);
25
+ a && (a[l.value.expand] = !0);
26
+ }, z = (e, r, n) => {
27
+ let a = f.value[u.value.name].find((o) => o.PermissionId == e[l.value.id]);
28
+ a && (a[l.value.expand] = !1);
29
+ }, W = (e, r, n) => {
30
+ let a = r.checkedKeys, o = e[l.value.id], i = _.contains(a, o), c = [], s = [], h = M.getChildren(e, "Children").map((t) => t[l.value.id]), p = f.value[u.value.name].map((t) => t[l.value.checked]), v = _.intersect(h, p);
31
+ if (i) {
32
+ c.push(e[l.value.id]);
33
+ let t = _.except(h, v);
34
+ t.length && (a.push(...t), c.push(...t));
35
+ } else
36
+ s.push(o), v.length == h.length && (s.push(...h), _.remove(a, h));
37
+ c.length && q(c), s.length && G(s);
38
+ }, q = (e) => {
39
+ for (let r = 0; r < e.length; r++) {
40
+ let n = S.getDefaultRow(u.value);
41
+ n[l.value.checked] = e[r], f.value[u.value.name].push(n);
42
+ }
43
+ }, G = (e) => {
44
+ let r = f.value[u.value.name];
45
+ for (let n = 0; n < e.length; n++) {
46
+ let a = r.find((o) => o[l.value.checked] == e[n]);
47
+ _.remove(r, a);
48
+ }
49
+ }, J = (e) => {
50
+ x.value = e.contentRect.width, y.value = Math.ceil(x.value / 300), I(u.value, l.value, f.value);
51
+ }, I = (e, r, n) => {
52
+ g.value = S.getLines(r.data, y.value, (a) => [a], () => 1), V(() => {
53
+ let a = n[e.name].map((i) => i[r.checked]), o = 0;
54
+ for (let i = 0; i < g.value.length; i++) {
55
+ let c = g.value[i];
56
+ for (let s = 0; s < c.length; s++) {
57
+ let C = T.value[o], h = c[s].data, p = M.getFlat(h, "Children").map((t) => t[r.id]), v = _.intersect(p, a);
58
+ if (!(v.length == 1 && p.length > 1)) for (let t = 0; t < v.length; t++) {
59
+ let O = v[t];
60
+ C.setChecked(O, !0, !1);
61
+ }
62
+ o++;
63
+ }
64
+ }
65
+ });
66
+ };
67
+ return X(() => {
68
+ x.value = le.getWidth(E.value), y.value = Math.ceil(x.value / 300), I(u.value, l.value, f.value);
69
+ }), Y(() => u.value, (e, r) => {
70
+ R.value = !1, V(() => {
71
+ R.value = !0, I(e, l.value, f.value);
72
+ });
73
+ }), F({ resize: J }), (e, r) => {
74
+ const n = N("el-tree"), a = N("el-col"), o = N("el-row");
75
+ return k(), w("div", {
76
+ ref_key: "layoutRef",
77
+ ref: E,
78
+ class: "ha-tree-layout"
79
+ }, [
80
+ d(R) ? (k(!0), w(K, { key: 0 }, L(d(g), (i, c) => (k(), B(o, null, {
81
+ default: b(() => [
82
+ (k(!0), w(K, null, L(i, ({ data: s, span: C, index: h }, p) => (k(), B(a, {
83
+ span: C,
84
+ key: `${c}.${p}`
85
+ }, {
86
+ default: b(() => [
87
+ Z(n, {
88
+ ref_for: !0,
89
+ ref_key: "treeRefs",
90
+ ref: T,
91
+ "show-checkbox": "",
92
+ "highlight-current": "",
93
+ "default-expand-all": !1,
94
+ "expand-on-click-node": !1,
95
+ "node-key": d(l).id,
96
+ data: s,
97
+ props: { children: "Children", label: d(l).text },
98
+ disabled: d($).type == "Detail",
99
+ onNodeExpand: d(j),
100
+ onNodeCollapse: d(z),
101
+ onCheck: (v, t) => d(W)(v, t, h)
102
+ }, {
103
+ default: b(({ node: v, data: t }) => [
104
+ ee("div", te, D(t[d(l).text]), 1),
105
+ d(l).suffix ? (k(), w("div", ae, D(t[d(l).suffix]), 1)) : H("", !0)
106
+ ]),
107
+ _: 2
108
+ }, 1032, ["node-key", "data", "props", "disabled", "onNodeExpand", "onNodeCollapse", "onCheck"])
109
+ ]),
110
+ _: 2
111
+ }, 1032, ["span"]))), 128))
112
+ ]),
113
+ _: 2
114
+ }, 1024))), 256)) : H("", !0)
115
+ ], 512);
116
+ };
117
+ }
118
+ });
119
+ export {
120
+ ce as default
121
+ };
@@ -1,15 +1,19 @@
1
- import { defineComponent as Ce, toRefs as ge, ref as v, onMounted as we, onUnmounted as Ne, computed as L, watch as Ke, resolveComponent as I, openBlock as i, createBlock as C, unref as e, withCtx as f, createElementVNode as c, createElementBlock as h, createVNode as _, Fragment as Se, renderList as Re, withDirectives as $e, resolveDynamicComponent as Ie, createCommentVNode as g, createTextVNode as w, toDisplayString as b, vShow as De, nextTick as M } from "vue";
2
- import { u as Te, e as Ve, I as U, a as A, f as qe, g as Le, h as G, m as Ue, C as H, j as Q, r as W, i as Be } from "./main-QtNG6p7a.js";
1
+ import { defineComponent as Ce, toRefs as ge, ref as v, onMounted as we, onUnmounted as Ne, computed as q, watch as Ke, resolveComponent as T, openBlock as i, createBlock as C, unref as e, withCtx as f, createElementVNode as c, createElementBlock as h, createVNode as _, Fragment as Se, renderList as Re, withDirectives as $e, resolveDynamicComponent as Te, createCommentVNode as g, createTextVNode as w, toDisplayString as b, vShow as Ie, nextTick as j } from "vue";
2
+ import "./vendor-@monaco-editor-DKC4UNw_.js";
3
+ import "./vendor-moment-h96o7c8I.js";
4
+ import { u as De, l as Ue, g as L, C as F, n as Ve, o as qe, p as G, m as Le, T as J, h as Q, A as W, M as Be } from "./main-B8RC13GR.js";
5
+ import "xlsx-js-style";
6
+ import "./vendor-crypto-js-ftX_aBC-.js";
3
7
  import "vue-router";
4
- import "./vendor-intro.js-DwWqhM1v.js";
8
+ import "./vendor-intro.js-CZkClzQO.js";
5
9
  import { _ as Ee } from "./Index.vue_vue_type_script_setup_true_lang-B-sM48XO.js";
6
- const ze = { class: "tree-left" }, je = /* @__PURE__ */ c("i", { class: "fa fa-plus" }, null, -1), Oe = /* @__PURE__ */ c("i", { class: "fa fa-plus" }, null, -1), Pe = /* @__PURE__ */ c("i", { class: "fa fa-copy" }, null, -1), Fe = /* @__PURE__ */ c("i", { class: "fa fa-trash" }, null, -1), Je = {
10
+ const ze = { class: "tree-left" }, He = /* @__PURE__ */ c("i", { class: "fa fa-plus" }, null, -1), Me = /* @__PURE__ */ c("i", { class: "fa fa-plus" }, null, -1), Ae = /* @__PURE__ */ c("i", { class: "fa fa-copy" }, null, -1), Oe = /* @__PURE__ */ c("i", { class: "fa fa-trash" }, null, -1), Pe = {
7
11
  key: 2,
8
12
  class: "ha-empty"
9
- }, Me = {
13
+ }, je = {
10
14
  key: 3,
11
15
  class: "tree-add"
12
- }, Ae = /* @__PURE__ */ c("i", { class: "fa fa-plus" }, null, -1), Ze = /* @__PURE__ */ Ce({
16
+ }, Fe = /* @__PURE__ */ c("i", { class: "fa fa-plus" }, null, -1), rl = /* @__PURE__ */ Ce({
13
17
  __name: "Tree",
14
18
  props: {
15
19
  searchData: {},
@@ -23,37 +27,37 @@ const ze = { class: "tree-left" }, je = /* @__PURE__ */ c("i", { class: "fa fa-p
23
27
  },
24
28
  emits: ["refresh", "succeed", "search", "navigate"],
25
29
  setup(X, { expose: Y, emit: Z }) {
26
- let k = Z, ee = X, { route: N, module: B, schema: le, table: m, layout: r, next: y, set: Ge, searchData: te } = ge(ee), K = v(), E = v(), x = v(), S = v(), z = v(), ae = v(), { t: p, t_module: j } = Te(), re = Ve(), 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 = () => {
30
+ let k = Z, ee = X, { route: N, module: B, schema: le, table: m, layout: a, next: y, set: Ge, searchData: te } = ge(ee), K = v(), E = v(), x = v(), S = v(), z = v(), re = v(), { t: p, t_module: H } = De(), ae = Ue(), d = v({ type: null, name: null, url: null, visible: !1 }), R = v(), I = null, r = v({ width: 250, currentNode: null, currentKey: null, expandedKeys: [], scrollTop: 0, visible: !1 }), M = () => {
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
35
  }, oe = (l, t, o, n) => {
32
- O(), n.vnode.el.classList.add("is-context"), a.value.currentNode = t, D.show(l);
36
+ M(), n.vnode.el.classList.add("is-context"), r.value.currentNode = t, I.show(l);
33
37
  }, $ = (l) => {
34
- let t = r.value.parentId, o = { [t]: null };
35
- l == "sibling" ? o[t] = a.value.currentNode[t] : l == "child" && (o[t] = a.value.currentNode[r.value.id]);
36
- let n = U.base64(o), u = `${y.value.insert.route}?default=${n}`;
37
- l == "copy" && (u += "&id=" + a.value.currentNode[r.value.id]), d.value.url = u, d.value.visible = !0;
38
- }, P = () => {
39
- let l = a.value.currentNode[r.value.id], t = a.value.currentNode[r.value.text], o = p("common.confirm_delete", t);
40
- Ue.confirm(p("common.tips"), o, { type: "warning" }).then(() => {
38
+ let t = a.value.parentId, o = { [t]: null };
39
+ l == "sibling" ? o[t] = r.value.currentNode[t] : l == "child" && (o[t] = r.value.currentNode[a.value.id]);
40
+ let n = L.base64(o), u = `${y.value.insert.route}?default=${n}`;
41
+ l == "copy" && (u += "&id=" + r.value.currentNode[a.value.id]), d.value.url = u, d.value.visible = !0;
42
+ }, A = () => {
43
+ let l = r.value.currentNode[a.value.id], t = r.value.currentNode[a.value.text], o = p("common.confirm_delete", t);
44
+ Le.confirm(p("common.tips"), o, { type: "warning" }).then(() => {
41
45
  ne(l);
42
46
  });
43
47
  }, ne = (l) => {
44
- let t = r.value.id, o = r.value.data, n = H.getNextById(l, t, o, "Children");
48
+ let t = a.value.id, o = a.value.data, n = J.getNextById(l, t, o, "Children");
45
49
  Q.post(y.value.delete.route, [l]).then(() => {
46
- H.removeById(l, t, o, "Children");
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)), k("succeed", () => {
49
- T(a.value.scrollTop);
52
+ n && (u = n[t], r.value.currentKey = u, r.value.expandedKeys.push(u)), k("succeed", () => {
53
+ D(r.value.scrollTop);
50
54
  });
51
55
  });
52
56
  }, ue = (l) => {
53
- a.value.scrollTop = l.scrollTop;
54
- }, T = (l = null, t = null) => {
55
- a.value.visible = !1, M(() => {
56
- a.value.visible = !0, M(() => {
57
+ r.value.scrollTop = l.scrollTop;
58
+ }, D = (l = null, t = null) => {
59
+ r.value.visible = !1, j(() => {
60
+ r.value.visible = !0, j(() => {
57
61
  if (l == null) {
58
62
  let o = K.value.$el.querySelector(".el-tree-node.is-current");
59
63
  o && o.scrollIntoView({ block: "center", behavior: "smooth" });
@@ -64,32 +68,32 @@ const ze = { class: "tree-left" }, je = /* @__PURE__ */ c("i", { class: "fa fa-p
64
68
  });
65
69
  }, se = () => {
66
70
  d.value.visible = !1, k("succeed", () => {
67
- T(a.value.scrollTop);
71
+ D(r.value.scrollTop);
68
72
  });
69
73
  }, de = (l) => {
70
74
  d.value.type = l.module.type, d.value.name = l.module.name;
71
75
  }, ie = () => {
72
76
  d.value.visible = !1;
73
77
  }, ce = (l, t, o) => {
74
- O();
75
- let n = l[r.value.id];
76
- if (W.pushIfNotExist(a.value.expandedKeys, n), n == a.value.currentKey)
78
+ M();
79
+ let n = l[a.value.id];
80
+ if (W.pushIfNotExist(r.value.expandedKeys, n), n == r.value.currentKey)
77
81
  x.value.refresh();
78
82
  else {
79
- a.value.currentKey = n, R.value = V();
80
- let u = U.getUrl(N.value.fullPath, { id: n });
83
+ r.value.currentKey = n, R.value = U();
84
+ let u = L.getUrl(N.value.fullPath, { id: n });
81
85
  k("navigate", u);
82
86
  }
83
87
  }, ve = (l, t, o) => {
84
- W.remove(a.value.expandedKeys, l[r.value.id]);
88
+ W.remove(r.value.expandedKeys, l[a.value.id]);
85
89
  }, fe = (l, t, o, n) => {
86
90
  let u = {
87
- table: r.value.table,
88
- id: l.data[r.value.id],
89
- targetId: t.data[r.value.id],
91
+ table: a.value.table,
92
+ id: l.data[a.value.id],
93
+ targetId: t.data[a.value.id],
90
94
  position: o
91
95
  };
92
- Q.post(r.value.operation.route, u).then((J) => {
96
+ Q.post(a.value.operation.route, u).then((P) => {
93
97
  });
94
98
  }, me = (l) => {
95
99
  k("search", l);
@@ -102,49 +106,49 @@ const ze = { class: "tree-left" }, je = /* @__PURE__ */ c("i", { class: "fa fa-p
102
106
  x.value.keyboard(l, t);
103
107
  }, be = () => {
104
108
  S.value.update();
105
- }, V = () => {
106
- let l = y.value[r.value.page.toLowerCase()].route;
107
- return a.value.currentKey && (l += "?id=" + a.value.currentKey), l;
109
+ }, U = () => {
110
+ let l = y.value[a.value.page.toLowerCase()].route;
111
+ return r.value.currentKey && (l += "?id=" + r.value.currentKey), l;
108
112
  }, ke = () => {
109
113
  let l = N.value.query.id, t;
110
- l == null ? t = r.value.updateKey : t = A.convert(l, F.value.type), t && (a.value.currentKey = t, a.value.expandedKeys = [t], R.value = V()), T(null, () => {
111
- D = new Be(E.value, [S.value.$el, z.value]);
114
+ l == null ? t = a.value.updateKey : t = F.convert(l, O.value.type), t && (r.value.currentKey = t, r.value.expandedKeys = [t], R.value = U()), D(null, () => {
115
+ I = new Be(E.value, [S.value.$el, z.value]);
112
116
  });
113
117
  };
114
118
  we(() => {
115
119
  ke();
116
120
  }), Ne(() => {
117
- D.dispose();
118
- }), L(() => {
119
- let l = { [r.value.parentId]: N.value.query.id };
120
- return U.base64(l);
121
+ I.dispose();
122
+ }), q(() => {
123
+ let l = { [a.value.parentId]: N.value.query.id };
124
+ return L.base64(l);
121
125
  });
122
- let xe = L(() => {
126
+ let xe = q(() => {
123
127
  let l = `/${m.value.name}/tree-node`;
124
- return re.getComponent(l, "partial", "tree-node");
125
- }), F = L(() => m.value.fields.find((t) => t.name == r.value.id));
128
+ return ae.getComponent(l, "partial", "tree-node");
129
+ }), O = q(() => m.value.fields.find((t) => t.name == a.value.id));
126
130
  return Ke(() => N.value, (l, t) => {
127
- a.value.currentKey = A.convert(l.query.id, F.value.type), R.value = V();
131
+ r.value.currentKey = F.convert(l.query.id, O.value.type), R.value = U();
128
132
  }), Y({ refresh: he, keyboard: _e, resize: be }), (l, t) => {
129
- const o = I("el-scrollbar"), n = I("el-tree"), u = I("el-button"), J = I("el-drawer");
130
- return i(), C(e(qe), {
133
+ const o = T("el-scrollbar"), n = T("el-tree"), u = T("el-button"), P = T("el-drawer");
134
+ return i(), C(e(Ve), {
131
135
  class: "tree",
132
- width: e(a).width,
133
- onResize: t[5] || (t[5] = (s) => e(a).width = s)
136
+ width: e(r).width,
137
+ onResize: t[5] || (t[5] = (s) => e(r).width = s)
134
138
  }, {
135
139
  left: f(() => [
136
140
  c("div", ze, [
137
141
  e(m).search.length ? (i(), h("div", {
138
142
  key: 0,
139
143
  ref_key: "searchRef",
140
- ref: ae,
144
+ ref: re,
141
145
  class: "tree-search"
142
146
  }, [
143
147
  _(o, null, {
144
148
  default: f(() => [
145
- (i(!0), h(Se, null, Re(e(m).search, (s, q) => (i(), h("div", {
149
+ (i(!0), h(Se, null, Re(e(m).search, (s, V) => (i(), h("div", {
146
150
  class: "search-field",
147
- key: q
151
+ key: V
148
152
  }, [
149
153
  _(Ee, {
150
154
  schema: e(le),
@@ -158,9 +162,9 @@ const ze = { class: "tree-left" }, je = /* @__PURE__ */ c("i", { class: "fa fa-p
158
162
  ]),
159
163
  _: 1
160
164
  })
161
- ], 512)) : (i(), C(e(Le), {
165
+ ], 512)) : (i(), C(e(qe), {
162
166
  key: 1,
163
- title: e(j)(e(B).type, e(B).name)
167
+ title: e(H)(e(B).type, e(B).name)
164
168
  }, null, 8, ["title"])),
165
169
  $e(_(o, {
166
170
  ref_key: "scrollbarRef",
@@ -169,30 +173,30 @@ const ze = { class: "tree-left" }, je = /* @__PURE__ */ c("i", { class: "fa fa-p
169
173
  onScroll: e(ue)
170
174
  }, {
171
175
  default: f(() => [
172
- e(a).visible ? (i(), C(n, {
176
+ e(r).visible ? (i(), C(n, {
173
177
  key: 0,
174
178
  ref_key: "treeRef",
175
179
  ref: K,
176
180
  "highlight-current": "",
177
- "show-checkbox": e(r).checkbox,
181
+ "show-checkbox": e(a).checkbox,
178
182
  "expand-on-click-node": !1,
179
- draggable: !!e(r).operation,
180
- data: e(r).data,
181
- "node-key": e(r).id,
182
- "current-node-key": e(a).currentKey,
183
- props: { children: "Children", label: e(r).text },
183
+ draggable: !!e(a).operation,
184
+ data: e(a).data,
185
+ "node-key": e(a).id,
186
+ "current-node-key": e(r).currentKey,
187
+ props: { children: "Children", label: e(a).text },
184
188
  "filter-node-method": e(ye),
185
- "default-expanded-keys": e(a).expandedKeys,
189
+ "default-expanded-keys": e(r).expandedKeys,
186
190
  onNodeClick: e(ce),
187
191
  onNodeContextmenu: e(oe),
188
192
  onNodeCollapse: e(ve),
189
193
  onNodeDrop: e(fe)
190
194
  }, {
191
- default: f(({ node: s, data: q }) => [
192
- (i(), C(Ie(e(xe)), {
195
+ default: f(({ node: s, data: V }) => [
196
+ (i(), C(Te(e(xe)), {
193
197
  table: e(m),
194
- layout: e(r),
195
- row: q,
198
+ layout: e(a),
199
+ row: V,
196
200
  node: s
197
201
  }, null, 8, ["table", "layout", "row", "node"]))
198
202
  ]),
@@ -206,43 +210,43 @@ const ze = { class: "tree-left" }, je = /* @__PURE__ */ c("i", { class: "fa fa-p
206
210
  c("li", {
207
211
  onClick: t[0] || (t[0] = (s) => e($)("child"))
208
212
  }, [
209
- je,
213
+ He,
210
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
- Oe,
219
+ Me,
216
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,
225
+ Ae,
222
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(P) && e(P)(...s))
231
+ (...s) => e(A) && e(A)(...s))
228
232
  }, [
229
- Fe,
233
+ Oe,
230
234
  w(b(e(p)("common.delete")), 1)
231
235
  ])) : g("", !0)
232
236
  ], 512)
233
237
  ]),
234
238
  _: 1
235
239
  }, 8, ["onScroll"]), [
236
- [De, e(r).data.length]
240
+ [Ie, e(a).data.length]
237
241
  ]),
238
- e(r).data.length ? g("", !0) : (i(), h("div", Je, b(e(p)("common.no_data")), 1)),
239
- !e(r).data.length && e(y).insert ? (i(), h("div", Me, [
242
+ e(a).data.length ? g("", !0) : (i(), h("div", Pe, b(e(p)("common.no_data")), 1)),
243
+ !e(a).data.length && e(y).insert ? (i(), h("div", je, [
240
244
  _(u, {
241
245
  type: "primary",
242
246
  onClick: e($)
243
247
  }, {
244
248
  icon: f(() => [
245
- Ae
249
+ Fe
246
250
  ]),
247
251
  default: f(() => [
248
252
  w(" " + b(e(y).insert.title), 1)
@@ -258,17 +262,17 @@ const ze = { class: "tree-left" }, je = /* @__PURE__ */ c("i", { class: "fa fa-p
258
262
  ref: z,
259
263
  class: "tree-detail"
260
264
  }, [
261
- e(a).currentKey ? (i(), C(e(G), {
265
+ e(r).currentKey ? (i(), C(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"])) : g("", !0)
267
271
  ], 512),
268
- _(J, {
272
+ _(P, {
269
273
  size: "60%",
270
274
  "destroy-on-close": "",
271
- title: e(j)(e(d).type, e(d).name),
275
+ title: e(H)(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
  }, {
@@ -289,5 +293,5 @@ const ze = { class: "tree-left" }, je = /* @__PURE__ */ c("i", { class: "fa fa-p
289
293
  }
290
294
  });
291
295
  export {
292
- Ze as default
296
+ rl as default
293
297
  };
@@ -0,0 +1,38 @@
1
+ import { defineComponent as h, toRefs as x, computed as C, openBlock as l, createElementBlock as a, unref as e, createElementVNode as N, toDisplayString as i, createTextVNode as b, createCommentVNode as s } from "vue";
2
+ import "./vendor-@monaco-editor-DKC4UNw_.js";
3
+ import "./vendor-moment-h96o7c8I.js";
4
+ import "xlsx-js-style";
5
+ import { S as g } from "./main-B8RC13GR.js";
6
+ import "./vendor-crypto-js-ftX_aBC-.js";
7
+ const y = ["title"], k = { class: "number" }, v = {
8
+ key: 0,
9
+ class: "option-suffix"
10
+ }, S = {
11
+ key: 1,
12
+ class: "count"
13
+ }, w = /* @__PURE__ */ h({
14
+ __name: "TreeNode",
15
+ props: {
16
+ table: {},
17
+ layout: {},
18
+ row: {},
19
+ node: {}
20
+ },
21
+ setup(d) {
22
+ let p = d, { table: u, layout: n, row: t, node: c } = x(p), m = (r, o) => {
23
+ let _ = (r.parent.data.Children ? r.parent.data.Children.indexOf(o) : r.parent.data.indexOf(o)) + 1;
24
+ return g.padLeft(_, 2, "0");
25
+ }, f = C(() => u.value.fields.find((o) => o.name == n.value.text).control.i18N);
26
+ return (r, o) => (l(), a("div", {
27
+ title: e(t)[e(n).title]
28
+ }, [
29
+ N("span", k, i(e(m)(e(c), e(t))), 1),
30
+ b(" " + i(e(f) ? r.t(e(t)[e(n).text]) : e(t)[e(n).text]) + " ", 1),
31
+ e(n).suffix ? (l(), a("span", v, i(e(t)[e(n).suffix]), 1)) : s("", !0),
32
+ e(t).Children && e(t).Children.length > 0 ? (l(), a("span", S, "(" + i(e(t).Children.length) + ")", 1)) : s("", !0)
33
+ ], 8, y));
34
+ }
35
+ });
36
+ export {
37
+ w as default
38
+ };