agilebuilder-ui 1.1.65-tmp26 → 1.1.65-tmp28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (151) hide show
  1. package/dist/index.full.min.js +1381 -1349
  2. package/dist/style.css +42 -22
  3. package/es/IntervalSelection/src/sectionDate.vue.mjs +8 -8
  4. package/es/chat-embed/src/chat-addition-data.vue2.mjs +14 -11
  5. package/es/chat-embed/src/chat-ai-answer-tip.vue2.mjs +8 -8
  6. package/es/chat-embed/src/chat-bubble-footer.vue2.mjs +5 -5
  7. package/es/chat-embed/src/chat-sender.vue2.mjs +41 -41
  8. package/es/chat-embed/src/components/answer-auto-chart.vue2.mjs +1 -2
  9. package/es/chat-embed/src/components/answer-interaction-data.vue2.mjs +6 -7
  10. package/es/chat-embed/src/components/history-detail.vue2.mjs +18 -18
  11. package/es/chat-embed/src/header.vue2.mjs +16 -16
  12. package/es/chat-embed/src/index.vue2.mjs +161 -161
  13. package/es/chat-embed/src/recommendation-message.vue2.mjs +9 -6
  14. package/es/chat-embed/src/sidebar-item.vue2.mjs +65 -65
  15. package/es/chat-embed/src/voice/voice.vue.mjs +36 -35
  16. package/es/date-picker-range/index.vue2.mjs +39 -39
  17. package/es/department-tree-mobile/src/department-tree-app.vue.mjs +8 -7
  18. package/es/department-tree-mobile/src/department-tree-inline-app.vue.mjs +54 -54
  19. package/es/department-tree-mobile/src/dept-path.vue.mjs +7 -6
  20. package/es/department-tree-mobile/src/dept-result.vue.mjs +7 -6
  21. package/es/department-user-tree-inline/src/department-user-multiple-tree-inline.vue.mjs +5 -5
  22. package/es/department-user-tree-mobile/src/department-user-tree-app.vue.mjs +10 -9
  23. package/es/department-user-tree-mobile/src/department-user-tree-inline-app.vue.mjs +64 -64
  24. package/es/department-user-tree-mobile/src/dept-path.vue.mjs +7 -6
  25. package/es/department-user-tree-mobile/src/dept-result.vue.mjs +4 -3
  26. package/es/empty-state/index.vue.mjs +2 -2
  27. package/es/fs-upload/src/fs-upload-multi.vue.mjs +1 -1
  28. package/es/fs-upload-list/src/fs-upload-list.vue.mjs +1 -1
  29. package/es/fs-upload-new/src/file-upload-mobile/file-upload-app.vue.mjs +12 -12
  30. package/es/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue.mjs +24 -24
  31. package/es/fs-upload-new/src/file-upload-mobile/file-upload-component.vue2.mjs +17 -17
  32. package/es/fs-upload-new/src/file-upload-mobile/file-upload.vue.mjs +12 -12
  33. package/es/fs-upload-new/src/fs-button-upload.vue2.mjs +23 -23
  34. package/es/fs-upload-new/src/fs-drag-upload.vue2.mjs +23 -23
  35. package/es/fs-upload-new/src/fs-preview-new.vue2.mjs +34 -34
  36. package/es/fs-upload-new/src/fs-upload-new.vue.mjs +15 -15
  37. package/es/json-view/json-view-dialog.vue.mjs +5 -5
  38. package/es/multipart-upload/src/multipart-upload-form.vue.mjs +1 -1
  39. package/es/multipart-upload/src/multipart-upload-list.vue.mjs +5 -5
  40. package/es/row-form/index.vue2.mjs +31 -31
  41. package/es/row-form/operation.vue.mjs +13 -13
  42. package/es/secret-info/index.vue.mjs +1 -1
  43. package/es/src/components/Affix/index.vue2.mjs +26 -26
  44. package/es/src/components/Scrollbar/index.vue.mjs +22 -22
  45. package/es/src/views/error-page/401.vue.mjs +8 -8
  46. package/es/src/views/error-page/404.vue.mjs +8 -8
  47. package/es/src/views/layout/components/Menubar/Item.vue.mjs +1 -1
  48. package/es/src/views/layout/components/Menubar/Item.vue2.mjs +2 -2
  49. package/es/src/views/super-icon/index.mjs +7 -0
  50. package/es/src/views/super-icon/src/index.vue.mjs +7 -0
  51. package/es/src/views/super-icon/src/index.vue2.mjs +13 -0
  52. package/es/src/views/super-icon/src/index.vue3.mjs +4 -0
  53. package/es/src/views/svg-icon/src/svg-icon.vue2.mjs +14 -0
  54. package/es/style.css +907 -887
  55. package/es/super-grid/src/columns-config.vue.mjs +1 -1
  56. package/es/super-grid/src/components/grid-radio-input.vue.mjs +5 -5
  57. package/es/super-grid/src/components/select-input.vue.mjs +55 -55
  58. package/es/super-grid/src/row-detail.vue.mjs +1 -1
  59. package/es/super-grid/src/search-form-advancedQuery.vue.mjs +1 -1
  60. package/es/super-grid/src/search-form-number.vue.mjs +4 -5
  61. package/es/super-grid/src/super-grid.vue.mjs +1 -1
  62. package/es/super-nine-grid/src/search-form-number.vue.mjs +4 -5
  63. package/es/super-nine-grid/src/search-form.vue.mjs +1 -1
  64. package/es/super-nine-grid/src/super-nine-grid.vue.mjs +1 -1
  65. package/es/workgroup-tree-inline/src/workgroup-tree-inline.vue.mjs +8 -8
  66. package/es/workgroup-tree-mobile/src/dept-result.vue.mjs +4 -3
  67. package/es/workgroup-tree-mobile/src/workgroup-tree-app.vue.mjs +8 -7
  68. package/es/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue.mjs +51 -51
  69. package/es/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue.mjs +5 -5
  70. package/es/workgroup-user-tree-mobile/src/dept-path.vue.mjs +7 -6
  71. package/es/workgroup-user-tree-mobile/src/dept-result.vue.mjs +4 -3
  72. package/es/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue.mjs +7 -6
  73. package/es/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue.mjs +65 -65
  74. package/es/year-range-picker/src/year-range-picker.vue.mjs +1 -1
  75. package/lib/IntervalSelection/src/sectionDate.vue.cjs +6 -6
  76. package/lib/chat-embed/src/chat-addition-data.vue2.cjs +13 -10
  77. package/lib/chat-embed/src/chat-ai-answer-tip.vue2.cjs +8 -8
  78. package/lib/chat-embed/src/chat-bubble-footer.vue2.cjs +5 -5
  79. package/lib/chat-embed/src/chat-sender.vue2.cjs +20 -20
  80. package/lib/chat-embed/src/components/answer-auto-chart.vue2.cjs +1 -2
  81. package/lib/chat-embed/src/components/answer-interaction-data.vue2.cjs +5 -6
  82. package/lib/chat-embed/src/components/history-detail.vue2.cjs +18 -18
  83. package/lib/chat-embed/src/header.vue2.cjs +17 -17
  84. package/lib/chat-embed/src/index.vue2.cjs +123 -123
  85. package/lib/chat-embed/src/recommendation-message.vue2.cjs +7 -4
  86. package/lib/chat-embed/src/sidebar-item.vue2.cjs +35 -35
  87. package/lib/chat-embed/src/voice/voice.vue.cjs +36 -35
  88. package/lib/date-picker-range/index.vue2.cjs +11 -11
  89. package/lib/department-tree-mobile/src/department-tree-app.vue.cjs +7 -6
  90. package/lib/department-tree-mobile/src/department-tree-inline-app.vue.cjs +53 -53
  91. package/lib/department-tree-mobile/src/dept-path.vue.cjs +6 -6
  92. package/lib/department-tree-mobile/src/dept-result.vue.cjs +7 -6
  93. package/lib/department-user-tree-inline/src/department-user-multiple-tree-inline.vue.cjs +5 -5
  94. package/lib/department-user-tree-mobile/src/department-user-tree-app.vue.cjs +9 -8
  95. package/lib/department-user-tree-mobile/src/department-user-tree-inline-app.vue.cjs +61 -61
  96. package/lib/department-user-tree-mobile/src/dept-path.vue.cjs +6 -6
  97. package/lib/department-user-tree-mobile/src/dept-result.vue.cjs +4 -3
  98. package/lib/empty-state/index.vue.cjs +2 -2
  99. package/lib/fs-upload/src/fs-upload-multi.vue.cjs +1 -1
  100. package/lib/fs-upload-list/src/fs-upload-list.vue.cjs +1 -1
  101. package/lib/fs-upload-new/src/file-upload-mobile/file-upload-app.vue.cjs +12 -12
  102. package/lib/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue.cjs +24 -24
  103. package/lib/fs-upload-new/src/file-upload-mobile/file-upload-component.vue2.cjs +17 -17
  104. package/lib/fs-upload-new/src/file-upload-mobile/file-upload.vue.cjs +12 -12
  105. package/lib/fs-upload-new/src/fs-button-upload.vue2.cjs +23 -23
  106. package/lib/fs-upload-new/src/fs-drag-upload.vue2.cjs +23 -23
  107. package/lib/fs-upload-new/src/fs-preview-new.vue2.cjs +36 -36
  108. package/lib/fs-upload-new/src/fs-upload-new.vue.cjs +15 -15
  109. package/lib/json-view/json-view-dialog.vue.cjs +6 -6
  110. package/lib/multipart-upload/src/multipart-upload-form.vue.cjs +1 -1
  111. package/lib/multipart-upload/src/multipart-upload-list.vue.cjs +5 -5
  112. package/lib/row-form/index.vue2.cjs +31 -31
  113. package/lib/row-form/operation.vue.cjs +13 -13
  114. package/lib/secret-info/index.vue.cjs +1 -1
  115. package/lib/src/components/Affix/index.vue2.cjs +28 -28
  116. package/lib/src/components/Scrollbar/index.vue.cjs +22 -22
  117. package/lib/src/views/error-page/401.vue.cjs +7 -7
  118. package/lib/src/views/error-page/404.vue.cjs +4 -4
  119. package/lib/src/views/layout/components/Menubar/Item.vue.cjs +1 -1
  120. package/lib/src/views/layout/components/Menubar/Item.vue2.cjs +2 -2
  121. package/lib/src/views/super-icon/index.cjs +5 -0
  122. package/lib/src/views/super-icon/src/index.vue.cjs +5 -0
  123. package/lib/src/views/super-icon/src/index.vue2.cjs +10 -0
  124. package/lib/src/views/super-icon/src/index.vue3.cjs +2 -0
  125. package/lib/src/views/svg-icon/src/svg-icon.vue2.cjs +12 -0
  126. package/lib/style.css +920 -900
  127. package/lib/super-grid/src/columns-config.vue.cjs +1 -1
  128. package/lib/super-grid/src/components/grid-radio-input.vue.cjs +5 -5
  129. package/lib/super-grid/src/components/select-input.vue.cjs +56 -56
  130. package/lib/super-grid/src/row-detail.vue.cjs +1 -1
  131. package/lib/super-grid/src/search-form-advancedQuery.vue.cjs +1 -1
  132. package/lib/super-grid/src/search-form-number.vue.cjs +6 -6
  133. package/lib/super-grid/src/super-grid.vue.cjs +1 -1
  134. package/lib/super-nine-grid/src/search-form-number.vue.cjs +6 -6
  135. package/lib/super-nine-grid/src/search-form.vue.cjs +1 -1
  136. package/lib/super-nine-grid/src/super-nine-grid.vue.cjs +1 -1
  137. package/lib/workgroup-tree-inline/src/workgroup-tree-inline.vue.cjs +5 -5
  138. package/lib/workgroup-tree-mobile/src/dept-result.vue.cjs +4 -3
  139. package/lib/workgroup-tree-mobile/src/workgroup-tree-app.vue.cjs +9 -8
  140. package/lib/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue.cjs +48 -48
  141. package/lib/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue.cjs +5 -5
  142. package/lib/workgroup-user-tree-mobile/src/dept-path.vue.cjs +6 -6
  143. package/lib/workgroup-user-tree-mobile/src/dept-result.vue.cjs +4 -3
  144. package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue.cjs +9 -8
  145. package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue.cjs +63 -63
  146. package/lib/year-range-picker/src/year-range-picker.vue.cjs +1 -1
  147. package/package.json +2 -2
  148. package/src/views/layout/components/Menubar/Item.vue +1 -1
  149. package/src/views/super-icon/index.js +6 -0
  150. package/src/views/super-icon/src/index.vue +52 -0
  151. package/src/views/svg-icon/src/svg-icon.vue +5 -8
@@ -1,115 +1,115 @@
1
1
  "use strict";
2
2
  const e = require("vue"), t = require("@element-plus/icons-vue"), l = require("./workgroup-user-tree-service.cjs"), n = require("../../utils/organization.cjs"), a = require("./dept-path.vue.cjs"), r = require("./dept-result.vue.cjs"), o = require("element-plus"), s = require("vue-i18n"), c = require("../../utils/utils.cjs"), u = require("../../src/assets/nonemessage.png.cjs"), i = { style: { display: "flex" } }, d = { style: { flex: "0 0 20%", "text-align": "left" } }, p = { style: { flex: "0 0 80%", "text-align": "right" } }, f = { class: "item-row" }, m = { key: 0, class: "item-label" }, h = { style: { color: "#999" } }, g = ["onClick"], v = ["onClick"], y = { style: { display: "flex" } }, k = { class: "select-result" }, N = { key: 0 }, I = { key: 1 }, C = { key: 2 }, V = { key: 3, style: { "padding-left": "10px" } }, S = { key: 1 }, E = { style: { color: "#999" } }, w = { class: "button-area" }, x = e.defineComponent({ __name: "workgroup-user-tree-inline-app", props: { multiple: {}, branchInfo: {}, selectUserInfo: {}, searchField: {}, separator: {} }, emits: ["close"], setup(x2, { emit: U }) {
3
- const B = x2, T = e.ref(null);
4
- let D = e.ref(null), R = e.ref(false), b = e.ref(null), _ = e.ref([]);
3
+ const B = x2, T = U, D = e.ref(null);
4
+ let R = e.ref(null), b = e.ref(false), _ = e.ref(null), M = e.ref([]);
5
5
  e.ref([]);
6
- let M = e.ref([]), $ = e.ref([]);
6
+ let $ = e.ref([]), q = e.ref([]);
7
7
  e.ref([]);
8
- let q = e.ref([]), O = e.ref([]), P = e.ref(null), J = e.ref(false), j = e.ref({ searchValue: null, treeType: "MAN_GROUP_TREE", departmentInfo: null }), A = e.ref({ disabled: "disable" }), H = e.ref(false);
9
- const { t: K } = s.useI18n();
10
- function z() {
8
+ let O = e.ref([]), P = e.ref([]), J = e.ref(null), j = e.ref(false), A = e.ref({ searchValue: null, treeType: "MAN_GROUP_TREE", departmentInfo: null }), H = e.ref({ disabled: "disable" }), K = e.ref(false);
9
+ const { t: z } = s.useI18n();
10
+ function F() {
11
11
  c.canShowOrgTree().then((e2) => {
12
12
  e2 ? l.getTenantChildren(B.branchInfo, "-1").then((e3) => {
13
- _.value = e3, l.checkedDeptDefault(M.value, O.value);
14
- }) : _.value = [];
13
+ M.value = e3, l.checkedDeptDefault($.value, P.value);
14
+ }) : M.value = [];
15
15
  });
16
16
  }
17
- function F(e2, t2, l2) {
18
- B.multiple && (t2 ? B.multiple && W(e2) : (B.multiple || e2.nodeType && "USER" === e2.nodeType) && Z(e2));
17
+ function G(e2, t2, l2) {
18
+ B.multiple && (t2 ? B.multiple && Z(e2) : (B.multiple || e2.nodeType && "USER" === e2.nodeType) && L(e2));
19
19
  }
20
- function G(e2, t2, l2, n2) {
21
- !B.multiple && e2.nodeType && "USER" === e2.nodeType && (M.value = [e2]);
20
+ function W(e2, t2, l2, n2) {
21
+ !B.multiple && e2.nodeType && "USER" === e2.nodeType && ($.value = [e2]);
22
22
  }
23
- function W(e2) {
23
+ function Z(e2) {
24
24
  if (e2.nodeType && "USER" === e2.nodeType) {
25
- const t2 = M.value.filter((t3) => t3.nodeId === e2.nodeId);
26
- t2 && 0 !== t2.length || M.value.push(JSON.parse(JSON.stringify(e2)));
27
- } else {
28
25
  const t2 = $.value.filter((t3) => t3.nodeId === e2.nodeId);
29
26
  t2 && 0 !== t2.length || $.value.push(JSON.parse(JSON.stringify(e2)));
27
+ } else {
28
+ const t2 = q.value.filter((t3) => t3.nodeId === e2.nodeId);
29
+ t2 && 0 !== t2.length || q.value.push(JSON.parse(JSON.stringify(e2)));
30
30
  }
31
31
  }
32
- function Z(e2) {
32
+ function L(e2) {
33
33
  if (e2.nodeType && "USER" === e2.nodeType) {
34
- const t2 = M.value.findIndex((t3) => t3.nodeId === e2.nodeId);
35
- M.value.splice(t2, 1);
36
- } else {
37
34
  const t2 = $.value.findIndex((t3) => t3.nodeId === e2.nodeId);
38
35
  $.value.splice(t2, 1);
36
+ } else {
37
+ const t2 = q.value.findIndex((t3) => t3.nodeId === e2.nodeId);
38
+ q.value.splice(t2, 1);
39
39
  }
40
- J.value = false;
40
+ j.value = false;
41
41
  }
42
- function L(e2) {
42
+ function Q(e2) {
43
43
  if (B.multiple)
44
44
  if (e2) {
45
- const e3 = _.value.map((e4) => e4.nodeId);
46
- T.value.setCheckedKeys(e3, false), _.value.forEach((e4) => {
47
- W(e4);
45
+ const e3 = M.value.map((e4) => e4.nodeId);
46
+ D.value.setCheckedKeys(e3, false), M.value.forEach((e4) => {
47
+ Z(e4);
48
48
  });
49
49
  } else
50
- _.value.forEach((e3) => {
51
- Z(e3);
52
- }), T.value.setCheckedKeys([], false);
50
+ M.value.forEach((e3) => {
51
+ L(e3);
52
+ }), D.value.setCheckedKeys([], false);
53
53
  }
54
- function Q(e2) {
54
+ function X(e2) {
55
55
  l.loadChildNodes(B.branchInfo, e2.id).then((e3) => {
56
- _.value = e3, l.checkedDeptDefault(M.value, O.value);
56
+ M.value = e3, l.checkedDeptDefault($.value, P.value);
57
57
  });
58
58
  }
59
- function X(e2, t2) {
60
- q.value.push(e2), Q(e2);
59
+ function Y(e2, t2) {
60
+ O.value.push(e2), X(e2);
61
61
  }
62
- function Y(e2, t2, l2) {
63
- t2 ? (q.value = [], z()) : (q.value.splice(l2 + 1, q.value.length - (l2 + 1)), Q(e2));
62
+ function ee(e2, t2, l2) {
63
+ t2 ? (O.value = [], F()) : (O.value.splice(l2 + 1, O.value.length - (l2 + 1)), X(e2));
64
64
  }
65
- function ee() {
66
- P.value.showResult();
65
+ function te() {
66
+ J.value.showResult();
67
67
  }
68
- function te(e2) {
69
- const t2 = _.value.filter((t3) => t3.nodeId === e2.nodeId);
68
+ function le(e2) {
69
+ const t2 = M.value.filter((t3) => t3.nodeId === e2.nodeId);
70
70
  if (t2 && t2.length > 0) {
71
71
  const t3 = [];
72
- M.value.forEach((l2) => {
72
+ $.value.forEach((l2) => {
73
73
  l2.nodeId !== e2.nodeId && t3.push(l2.nodeId);
74
- }), $.value.forEach((l2) => {
74
+ }), q.value.forEach((l2) => {
75
75
  l2.nodeId !== e2.nodeId && t3.push(l2.nodeId);
76
- }), T.value.setCheckedKeys(t3, true);
76
+ }), D.value.setCheckedKeys(t3, true);
77
77
  }
78
- Z(e2);
78
+ L(e2);
79
79
  }
80
- function le() {
81
- if (0 !== $.value.length || 0 !== M.value.length)
80
+ function ne() {
81
+ if (0 !== q.value.length || 0 !== $.value.length)
82
82
  if (B.multiple) {
83
83
  const e2 = { userIds: [], userNames: [], loginNames: [], userZhNames: [], userEnNames: [], emails: [], telephones: [], users: [] }, t2 = [];
84
- $.value.forEach((e3) => {
84
+ q.value.forEach((e3) => {
85
85
  t2.push(e3.id);
86
- }), M.value.forEach((t3) => {
86
+ }), $.value.forEach((t3) => {
87
87
  const l2 = JSON.parse(t3.data);
88
- n.addSelectedUserInfo(e2, l2, R.value);
89
- }), H.value = true, t2.length > 0 ? l.getUserInWorkgroups(t2).then((t3) => {
88
+ n.addSelectedUserInfo(e2, l2, b.value);
89
+ }), K.value = true, t2.length > 0 ? l.getUserInWorkgroups(t2).then((t3) => {
90
90
  t3 && t3.forEach((t4) => {
91
- n.addSelectedUserInfo(e2, t4, R.value);
92
- }), H.value = false, e2.userIds.length > 0 ? U("close", e2) : o.ElMessage({ message: K("imatrixUIMessage.pleaseSelectPersonnel"), type: "warning" });
91
+ n.addSelectedUserInfo(e2, t4, b.value);
92
+ }), K.value = false, e2.userIds.length > 0 ? T("close", e2) : o.ElMessage({ message: z("imatrixUIMessage.pleaseSelectPersonnel"), type: "warning" });
93
93
  }).catch(() => {
94
- H.value = false;
95
- }) : (H.value = false, e2.userIds.length > 0 ? U("close", e2) : o.ElMessage({ message: K("imatrixUIMessage.pleaseSelectPersonnel"), type: "warning" }));
94
+ K.value = false;
95
+ }) : (K.value = false, e2.userIds.length > 0 ? T("close", e2) : o.ElMessage({ message: z("imatrixUIMessage.pleaseSelectPersonnel"), type: "warning" }));
96
96
  } else {
97
- const e2 = JSON.parse(M.value[0].data), t2 = n.packageSelectResult(e2, R.value);
98
- U("close", t2);
97
+ const e2 = JSON.parse($.value[0].data), t2 = n.packageSelectResult(e2, b.value);
98
+ T("close", t2);
99
99
  }
100
100
  else
101
- o.ElMessage({ message: K("imatrixUIMessage.pleaseSelectPersonnel"), type: "warning" });
101
+ o.ElMessage({ message: z("imatrixUIMessage.pleaseSelectPersonnel"), type: "warning" });
102
102
  }
103
- function ne() {
104
- j.value.searchValue ? (j.value.searchValue = j.value.searchValue.trim(), j.value.departmentInfo = B.branchInfo, window.$vueApp.config.globalProperties.$http.post(window.$vueApp.config.globalProperties.baseAPI + "/component/organization-trees/search-users-mobile", j.value).then((e2) => {
105
- e2 ? (0 === e2.length && o.ElMessage({ message: K("imatrixUIMessage.queryResultIsEmpty"), type: "warning" }), _.value = e2) : o.ElMessage({ message: K("imatrixUIMessage.queryResultIsEmpty"), type: "warning" });
106
- })) : z();
103
+ function ae() {
104
+ A.value.searchValue ? (A.value.searchValue = A.value.searchValue.trim(), A.value.departmentInfo = B.branchInfo, window.$vueApp.config.globalProperties.$http.post(window.$vueApp.config.globalProperties.baseAPI + "/component/organization-trees/search-users-mobile", A.value).then((e2) => {
105
+ e2 ? (0 === e2.length && o.ElMessage({ message: z("imatrixUIMessage.queryResultIsEmpty"), type: "warning" }), M.value = e2) : o.ElMessage({ message: z("imatrixUIMessage.queryResultIsEmpty"), type: "warning" });
106
+ })) : F();
107
107
  }
108
108
  return e.onMounted(() => {
109
109
  n.initSelectUsers(B.searchField, B.selectUserInfo, B.separator).then((e2) => {
110
- M.value = e2, l.getTenant().then((e3) => {
110
+ $.value = e2, l.getTenant().then((e3) => {
111
111
  const t2 = e3[0].data;
112
- D.value = JSON.parse(t2), R.value = e3[0].containBranch, b.value = e3[0].name, z();
112
+ R.value = JSON.parse(t2), b.value = e3[0].containBranch, _.value = e3[0].name, F();
113
113
  });
114
114
  }), function() {
115
115
  const e2 = document.querySelector(".org-tree");
@@ -117,8 +117,8 @@ const e = require("vue"), t = require("@element-plus/icons-vue"), l = require(".
117
117
  t2 = t2 - 110 - 60 - 60 - 60, e2.style.height = t2 + "px", e2.style.minHeight = "300px";
118
118
  }();
119
119
  }), (l2, o2) => {
120
- const s2 = e.resolveComponent("el-checkbox"), c2 = e.resolveComponent("el-icon"), x3 = e.resolveComponent("el-input"), U2 = e.resolveComponent("el-col"), B2 = e.resolveComponent("el-row"), D2 = e.resolveComponent("el-card"), R2 = e.resolveComponent("el-empty"), H2 = e.resolveComponent("el-tree"), K2 = e.resolveComponent("el-button");
121
- return e.openBlock(), e.createElementBlock("div", null, [e.createVNode(D2, { class: "card-content", style: { height: "50px" } }, { default: e.withCtx(() => [e.createVNode(B2, { class: "item-row item-row-all" }, { default: e.withCtx(() => [e.createVNode(U2, { style: { width: "100%" } }, { default: e.withCtx(() => [e.createElementVNode("div", i, [e.createElementVNode("div", d, [l2.multiple ? (e.openBlock(), e.createBlock(s2, { key: 0, modelValue: e.unref(J), "onUpdate:modelValue": o2[0] || (o2[0] = (t2) => e.isRef(J) ? J.value = t2 : J = t2), label: l2.$t("departmentTreeInline.allCheck"), value: "all", onChange: L }, null, 8, ["modelValue", "label"])) : e.createCommentVNode("", true)]), e.createElementVNode("div", p, [e.createVNode(x3, { modelValue: e.unref(j).searchValue, "onUpdate:modelValue": o2[1] || (o2[1] = (t2) => e.unref(j).searchValue = t2), placeholder: l2.$t("departmentUserTree.pleaseEnterUserInformation"), onClear: ne, onKeyup: e.withKeys(ne, ["enter"]), onBlur: ne, clearable: "" }, { suffix: e.withCtx(() => [e.createVNode(c2, { onClick: ne }, { default: e.withCtx(() => [e.createVNode(e.unref(t.Search))]), _: 1 })]), _: 1 }, 8, ["modelValue", "placeholder", "onKeyup"])])])]), _: 1 })]), _: 1 })]), _: 1 }), e.unref(b) ? (e.openBlock(), e.createBlock(D2, { key: 0, class: "card-content" }, { default: e.withCtx(() => [e.createVNode(B2, { class: "item-row item-row-all" }, { default: e.withCtx(() => [e.createVNode(U2, { class: "item-label dept-path" }, { default: e.withCtx(() => [e.createVNode(a, { tenantName: e.unref(b), clickDepts: e.unref(q), onClickBreadcrumb: Y }, null, 8, ["tenantName", "clickDepts"])]), _: 1 })]), _: 1 })]), _: 1 })) : e.createCommentVNode("", true), e.createVNode(D2, { class: "card-content org-tree", style: { overflow: "auto" } }, { default: e.withCtx(() => [e.unref(_).length ? (e.openBlock(), e.createBlock(H2, { key: 1, ref_key: "orgTreeRef", ref: T, data: e.unref(_), "show-checkbox": l2.multiple, "node-key": "nodeId", props: e.unref(A), "default-checked-keys": e.unref(O), onCheckChange: F, onNodeClick: G }, { default: e.withCtx(({ node: l3, data: a2 }) => [e.createElementVNode("div", f, [a2.nodeType && "USER" === a2.nodeType ? (e.openBlock(), e.createElementBlock("div", m, [e.createTextVNode(e.toDisplayString(a2.showName) + " ", 1), e.createElementVNode("span", h, "(" + e.toDisplayString(a2.loginName) + e.toDisplayString(e.unref(n.getUserMainDeptName)(a2) ? "/" + e.unref(n.getUserMainDeptName)(a2) : "") + ")", 1)])) : (e.openBlock(), e.createElementBlock("div", { key: 1, class: "item-label", onClick: (e2) => X(a2) }, e.toDisplayString(a2.name), 9, g)), a2.nodeType && "USER" === a2.nodeType ? e.createCommentVNode("", true) : (e.openBlock(), e.createElementBlock("div", { key: 2, class: "item-side", onClick: (e2) => X(a2) }, [e.createVNode(c2, null, { default: e.withCtx(() => [e.createVNode(e.unref(t.ArrowRight))]), _: 1 })], 8, v))])]), _: 1 }, 8, ["data", "show-checkbox", "props", "default-checked-keys"])) : (e.openBlock(), e.createBlock(R2, { key: 0, image: e.unref(u) }, null, 8, ["image"]))]), _: 1 }), e.createVNode(D2, { class: "card-footer" }, { default: e.withCtx(() => [e.createElementVNode("div", y, [e.createElementVNode("div", k, [l2.multiple ? (e.openBlock(), e.createElementBlock("span", { key: 0, onClick: ee }, [e.unref(M).length > 0 && e.unref($).length > 0 ? (e.openBlock(), e.createElementBlock("span", N, e.toDisplayString(l2.$t("departmentTreeInline.selectResultInfoHasSelect")) + e.toDisplayString(l2.$t("departmentUserTree.selectUserResultInfo", { userNum: e.unref(M).length })) + ", " + e.toDisplayString(l2.$t("departmentUserTree.selectDeptResultInfo", { deptNum: e.unref($).length })), 1)) : e.unref(M).length > 0 ? (e.openBlock(), e.createElementBlock("span", I, e.toDisplayString(l2.$t("departmentTreeInline.selectResultInfoHasSelect")) + e.toDisplayString(l2.$t("departmentUserTree.selectUserResultInfo", { userNum: e.unref(M).length })), 1)) : e.unref($).length > 0 ? (e.openBlock(), e.createElementBlock("span", C, e.toDisplayString(l2.$t("departmentTreeInline.selectResultInfoHasSelect")) + e.toDisplayString(l2.$t("departmentUserTree.selectDeptResultInfo", { deptNum: e.unref($).length })), 1)) : e.createCommentVNode("", true), e.unref(M).length > 0 || e.unref($).length > 0 ? (e.openBlock(), e.createElementBlock("span", V, [e.createVNode(c2, null, { default: e.withCtx(() => [e.createVNode(e.unref(t.ArrowUpBold))]), _: 1 })])) : e.createCommentVNode("", true)])) : e.unref(M).length > 0 ? (e.openBlock(), e.createElementBlock("span", S, [e.createTextVNode(e.toDisplayString(l2.$t("departmentTreeInline.selectResultInfoHasSelect")) + e.toDisplayString(e.unref(M)[0].showName), 1), e.createElementVNode("span", E, "(" + e.toDisplayString(e.unref(M)[0].loginName) + e.toDisplayString(e.unref(n.getUserMainDeptName)(e.unref(M)[0]) ? "/" + e.unref(n.getUserMainDeptName)(e.unref(M)[0]) : "") + ")", 1)])) : e.createCommentVNode("", true)]), e.createElementVNode("div", w, [e.createVNode(K2, { size: "large", type: "primary", onClick: le }, { default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(l2.$t("imatrixUIPublicModel.sure")), 1)]), _: 1 })])])]), _: 1 }), e.createVNode(r, { ref_key: "deptResultRef", ref: P, selectUsers: e.unref(M).concat(e.unref($)), onRemoveResult: te }, null, 8, ["selectUsers"])]);
120
+ const s2 = e.resolveComponent("el-checkbox"), c2 = e.resolveComponent("el-icon"), U2 = e.resolveComponent("el-input"), B2 = e.resolveComponent("el-col"), T2 = e.resolveComponent("el-row"), R2 = e.resolveComponent("el-card"), b2 = e.resolveComponent("el-empty"), K2 = e.resolveComponent("el-tree"), z2 = e.resolveComponent("el-button");
121
+ return e.openBlock(), e.createElementBlock("div", null, [e.createVNode(R2, { class: "card-content", style: { height: "50px" } }, { default: e.withCtx(() => [e.createVNode(T2, { class: "item-row item-row-all" }, { default: e.withCtx(() => [e.createVNode(B2, { style: { width: "100%" } }, { default: e.withCtx(() => [e.createElementVNode("div", i, [e.createElementVNode("div", d, [x2.multiple ? (e.openBlock(), e.createBlock(s2, { key: 0, modelValue: e.unref(j), "onUpdate:modelValue": o2[0] || (o2[0] = (t2) => e.isRef(j) ? j.value = t2 : j = t2), label: l2.$t("departmentTreeInline.allCheck"), value: "all", onChange: Q }, null, 8, ["modelValue", "label"])) : e.createCommentVNode("", true)]), e.createElementVNode("div", p, [e.createVNode(U2, { modelValue: e.unref(A).searchValue, "onUpdate:modelValue": o2[1] || (o2[1] = (t2) => e.unref(A).searchValue = t2), placeholder: l2.$t("departmentUserTree.pleaseEnterUserInformation"), onClear: ae, onKeyup: e.withKeys(ae, ["enter"]), onBlur: ae, clearable: "" }, { suffix: e.withCtx(() => [e.createVNode(c2, { onClick: ae }, { default: e.withCtx(() => [e.createVNode(e.unref(t.Search))]), _: 1 })]), _: 1 }, 8, ["modelValue", "placeholder"])])])]), _: 1 })]), _: 1 })]), _: 1 }), e.unref(_) ? (e.openBlock(), e.createBlock(R2, { key: 0, class: "card-content" }, { default: e.withCtx(() => [e.createVNode(T2, { class: "item-row item-row-all" }, { default: e.withCtx(() => [e.createVNode(B2, { class: "item-label dept-path" }, { default: e.withCtx(() => [e.createVNode(a, { tenantName: e.unref(_), clickDepts: e.unref(O), onClickBreadcrumb: ee }, null, 8, ["tenantName", "clickDepts"])]), _: 1 })]), _: 1 })]), _: 1 })) : e.createCommentVNode("", true), e.createVNode(R2, { class: "card-content org-tree", style: { overflow: "auto" } }, { default: e.withCtx(() => [e.unref(M).length ? (e.openBlock(), e.createBlock(K2, { key: 1, ref_key: "orgTreeRef", ref: D, data: e.unref(M), "show-checkbox": x2.multiple, "node-key": "nodeId", props: e.unref(H), "default-checked-keys": e.unref(P), onCheckChange: G, onNodeClick: W }, { default: e.withCtx(({ node: l3, data: a2 }) => [e.createElementVNode("div", f, [a2.nodeType && "USER" === a2.nodeType ? (e.openBlock(), e.createElementBlock("div", m, [e.createTextVNode(e.toDisplayString(a2.showName) + " ", 1), e.createElementVNode("span", h, "(" + e.toDisplayString(a2.loginName) + e.toDisplayString(e.unref(n.getUserMainDeptName)(a2) ? "/" + e.unref(n.getUserMainDeptName)(a2) : "") + ")", 1)])) : (e.openBlock(), e.createElementBlock("div", { key: 1, class: "item-label", onClick: (e2) => Y(a2) }, e.toDisplayString(a2.name), 9, g)), a2.nodeType && "USER" === a2.nodeType ? e.createCommentVNode("", true) : (e.openBlock(), e.createElementBlock("div", { key: 2, class: "item-side", onClick: (e2) => Y(a2) }, [e.createVNode(c2, null, { default: e.withCtx(() => [e.createVNode(e.unref(t.ArrowRight))]), _: 1 })], 8, v))])]), _: 1 }, 8, ["data", "show-checkbox", "props", "default-checked-keys"])) : (e.openBlock(), e.createBlock(b2, { key: 0, image: e.unref(u) }, null, 8, ["image"]))]), _: 1 }), e.createVNode(R2, { class: "card-footer" }, { default: e.withCtx(() => [e.createElementVNode("div", y, [e.createElementVNode("div", k, [x2.multiple ? (e.openBlock(), e.createElementBlock("span", { key: 0, onClick: te }, [e.unref($).length > 0 && e.unref(q).length > 0 ? (e.openBlock(), e.createElementBlock("span", N, e.toDisplayString(l2.$t("departmentTreeInline.selectResultInfoHasSelect")) + e.toDisplayString(l2.$t("departmentUserTree.selectUserResultInfo", { userNum: e.unref($).length })) + ", " + e.toDisplayString(l2.$t("departmentUserTree.selectDeptResultInfo", { deptNum: e.unref(q).length })), 1)) : e.unref($).length > 0 ? (e.openBlock(), e.createElementBlock("span", I, e.toDisplayString(l2.$t("departmentTreeInline.selectResultInfoHasSelect")) + e.toDisplayString(l2.$t("departmentUserTree.selectUserResultInfo", { userNum: e.unref($).length })), 1)) : e.unref(q).length > 0 ? (e.openBlock(), e.createElementBlock("span", C, e.toDisplayString(l2.$t("departmentTreeInline.selectResultInfoHasSelect")) + e.toDisplayString(l2.$t("departmentUserTree.selectDeptResultInfo", { deptNum: e.unref(q).length })), 1)) : e.createCommentVNode("", true), e.unref($).length > 0 || e.unref(q).length > 0 ? (e.openBlock(), e.createElementBlock("span", V, [e.createVNode(c2, null, { default: e.withCtx(() => [e.createVNode(e.unref(t.ArrowUpBold))]), _: 1 })])) : e.createCommentVNode("", true)])) : e.unref($).length > 0 ? (e.openBlock(), e.createElementBlock("span", S, [e.createTextVNode(e.toDisplayString(l2.$t("departmentTreeInline.selectResultInfoHasSelect")) + e.toDisplayString(e.unref($)[0].showName), 1), e.createElementVNode("span", E, "(" + e.toDisplayString(e.unref($)[0].loginName) + e.toDisplayString(e.unref(n.getUserMainDeptName)(e.unref($)[0]) ? "/" + e.unref(n.getUserMainDeptName)(e.unref($)[0]) : "") + ")", 1)])) : e.createCommentVNode("", true)]), e.createElementVNode("div", w, [e.createVNode(z2, { size: "large", type: "primary", onClick: ne }, { default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(l2.$t("imatrixUIPublicModel.sure")), 1)]), _: 1 })])])]), _: 1 }), e.createVNode(r, { ref_key: "deptResultRef", ref: J, selectUsers: e.unref($).concat(e.unref(q)), onRemoveResult: le }, null, 8, ["selectUsers"])]);
122
122
  };
123
123
  } });
124
124
  module.exports = x;
@@ -6,6 +6,6 @@ const t = require("../../_virtual/_plugin-vue_export-helper.cjs")({ name: "YearR
6
6
  this.value[1] = a2, e.$emit(this, "change", this.value);
7
7
  } }, emits: ["change", "update:value", , "update:value"] }, [["render", function(e2, t2, l, r, o, n) {
8
8
  const u = a.resolveComponent("el-date-picker");
9
- return a.openBlock(), a.createElementBlock("div", null, [a.createVNode(u, { modelValue: l.value[0], "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => l.value[0] = e3), style: { width: "47%" }, "value-format": "YYYY", type: "year", placeholder: e2.$t("imatrixUIMessage.selectYear"), onChange: n.changeStart }, null, 8, ["modelValue", "placeholder", "onChange"]), a.createTextVNode(" - "), a.createVNode(u, { modelValue: l.value[1], "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => l.value[1] = e3), style: { width: "47%" }, "value-format": "YYYY", type: "year", placeholder: e2.$t("imatrixUIMessage.selectYear"), onChange: n.changeEnd }, null, 8, ["modelValue", "placeholder", "onChange"])]);
9
+ return a.openBlock(), a.createElementBlock("div", null, [a.createVNode(u, { modelValue: l.value[0], "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => l.value[0] = e3), style: { width: "47%" }, "value-format": "YYYY", type: "year", placeholder: e2.$t("imatrixUIMessage.selectYear"), onChange: n.changeStart }, null, 8, ["modelValue", "placeholder", "onChange"]), t2[2] || (t2[2] = a.createTextVNode(" - ", -1)), a.createVNode(u, { modelValue: l.value[1], "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => l.value[1] = e3), style: { width: "47%" }, "value-format": "YYYY", type: "year", placeholder: e2.$t("imatrixUIMessage.selectYear"), onChange: n.changeEnd }, null, 8, ["modelValue", "placeholder", "onChange"])]);
10
10
  }]]);
11
11
  module.exports = t;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agilebuilder-ui",
3
- "version": "1.1.65-tmp26",
3
+ "version": "1.1.65-tmp28",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "main": "./lib/index.cjs",
@@ -48,7 +48,7 @@
48
48
  "vite": "^4.4.5",
49
49
  "vite-plugin-require-transform": "^1.0.21",
50
50
  "vite-plugin-svg-icons": "^2.0.1",
51
- "vue": "3.3.4",
51
+ "vue": "^3.5.17",
52
52
  "vue-i18n": "^9.5.0",
53
53
  "vue-router": "^4.2.5",
54
54
  "vuex": "^4.1.0"
@@ -2,7 +2,7 @@
2
2
  import { defineComponent, h } from 'vue'
3
3
  import SvgIcon from '../../../svg-icon/src/svg-icon.vue'
4
4
  import { ElBadge } from 'element-plus'
5
- import SuperIcon from '../../../../../packages/super-icon/index'
5
+ import SuperIcon from '../../../super-icon/index'
6
6
  export default defineComponent({
7
7
  name: 'MenuItem',
8
8
  functional: true,
@@ -0,0 +1,6 @@
1
+ import SuperIcon from './src/index.vue'
2
+ SuperIcon.install = function (Vue) {
3
+ Vue.component('SuperIcon', SuperIcon)
4
+ }
5
+
6
+ export default SuperIcon
@@ -0,0 +1,52 @@
1
+ <template>
2
+ <i v-if="iconValue.indexOf('amb-icon-') === 0" class="amb-iconfont" :class="iconValue" />
3
+ <i v-else-if="iconValue.indexOf('amb-color-icon-') === 0" class="amb-color-iconfont super-icon" :class="iconValue" />
4
+ <i v-else-if="iconValue.indexOf('fa-') === 0" :class="'fa ' + iconValue" />
5
+ <img
6
+ v-else-if="iconValue.indexOf('svg-img-') === 0"
7
+ :src="defaultShowSvgAction + iconValue"
8
+ style="width: 1em; height: 1em"
9
+ />
10
+ <SvgIcon v-else-if="iconValue.indexOf('svg-') === 0" :icon-class="iconValue.substring('svg-'.length)" />
11
+ <img
12
+ v-else-if="iconValue.indexOf('http') === 0 || iconValue.indexOf('//') === 0 || iconValue.indexOf('data:') === 0"
13
+ :src="iconValue"
14
+ style="width: 1em; height: 1em"
15
+ />
16
+ <el-icon v-else><component :is="iconValue" /></el-icon>
17
+ </template>
18
+ <script lang="ts">
19
+ export default {
20
+ name: 'SuperIcon'
21
+ }
22
+ </script>
23
+
24
+ <script setup lang="ts">
25
+ import { ref } from 'vue'
26
+ import SvgIcon from '../../svg-icon/src/svg-icon.vue'
27
+ const props = defineProps({
28
+ // 值为:ElementUI、custom
29
+ iconType: {
30
+ type: String,
31
+ default: 'custom'
32
+ },
33
+ iconValue: {
34
+ type: String,
35
+ required: true,
36
+ default: ''
37
+ }
38
+ })
39
+ const defaultShowImageAction = ref(
40
+ window.$vueApp.config.globalProperties.baseAPI + '/component/super-form/show-image?serverPath='
41
+ )
42
+ const defaultShowSvgAction = ref(
43
+ window.$vueApp.config.globalProperties.baseAPI + '/component/super-form/show-svg?svgName='
44
+ )
45
+ </script>
46
+ <style lang="scss" scoped>
47
+ .super-icon {
48
+ width: 1em; // 继承父类的 font-size
49
+ height: 1em; // 继承父类的 font-size
50
+ font-size: 14px; // 默认 font-size 为 14px
51
+ }
52
+ </style>
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <svg :class="svgClass" aria-hidden="true">
3
- <use :href="iconName" />
3
+ <use :xlink:href="iconName" />
4
4
  </svg>
5
5
  </template>
6
6
 
@@ -10,12 +10,12 @@ export default {
10
10
  props: {
11
11
  iconClass: {
12
12
  type: String,
13
- required: true
13
+ required: true,
14
14
  },
15
15
  className: {
16
16
  type: String,
17
- default: ''
18
- }
17
+ default: '',
18
+ },
19
19
  },
20
20
  computed: {
21
21
  iconName() {
@@ -27,11 +27,8 @@ export default {
27
27
  } else {
28
28
  return 'svg-icon'
29
29
  }
30
- }
30
+ },
31
31
  },
32
- created(){
33
- console.log('====', this.iconClass)
34
- }
35
32
  }
36
33
  </script>
37
34