agilebuilder-ui 1.1.65-tmp26 → 1.1.65-tmp27

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 (133) hide show
  1. package/dist/index.full.min.js +1115 -1102
  2. package/dist/style.css +36 -20
  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/style.css +933 -917
  48. package/es/super-grid/src/columns-config.vue.mjs +1 -1
  49. package/es/super-grid/src/components/grid-radio-input.vue.mjs +5 -5
  50. package/es/super-grid/src/components/select-input.vue.mjs +55 -55
  51. package/es/super-grid/src/row-detail.vue.mjs +1 -1
  52. package/es/super-grid/src/search-form-advancedQuery.vue.mjs +1 -1
  53. package/es/super-grid/src/search-form-number.vue.mjs +4 -5
  54. package/es/super-grid/src/super-grid.vue.mjs +1 -1
  55. package/es/super-nine-grid/src/search-form-number.vue.mjs +4 -5
  56. package/es/super-nine-grid/src/search-form.vue.mjs +1 -1
  57. package/es/super-nine-grid/src/super-nine-grid.vue.mjs +1 -1
  58. package/es/workgroup-tree-inline/src/workgroup-tree-inline.vue.mjs +8 -8
  59. package/es/workgroup-tree-mobile/src/dept-result.vue.mjs +4 -3
  60. package/es/workgroup-tree-mobile/src/workgroup-tree-app.vue.mjs +8 -7
  61. package/es/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue.mjs +51 -51
  62. package/es/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue.mjs +5 -5
  63. package/es/workgroup-user-tree-mobile/src/dept-path.vue.mjs +7 -6
  64. package/es/workgroup-user-tree-mobile/src/dept-result.vue.mjs +4 -3
  65. package/es/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue.mjs +7 -6
  66. package/es/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue.mjs +65 -65
  67. package/es/year-range-picker/src/year-range-picker.vue.mjs +1 -1
  68. package/lib/IntervalSelection/src/sectionDate.vue.cjs +6 -6
  69. package/lib/chat-embed/src/chat-addition-data.vue2.cjs +13 -10
  70. package/lib/chat-embed/src/chat-ai-answer-tip.vue2.cjs +8 -8
  71. package/lib/chat-embed/src/chat-bubble-footer.vue2.cjs +5 -5
  72. package/lib/chat-embed/src/chat-sender.vue2.cjs +20 -20
  73. package/lib/chat-embed/src/components/answer-auto-chart.vue2.cjs +1 -2
  74. package/lib/chat-embed/src/components/answer-interaction-data.vue2.cjs +5 -6
  75. package/lib/chat-embed/src/components/history-detail.vue2.cjs +18 -18
  76. package/lib/chat-embed/src/header.vue2.cjs +17 -17
  77. package/lib/chat-embed/src/index.vue2.cjs +123 -123
  78. package/lib/chat-embed/src/recommendation-message.vue2.cjs +7 -4
  79. package/lib/chat-embed/src/sidebar-item.vue2.cjs +35 -35
  80. package/lib/chat-embed/src/voice/voice.vue.cjs +36 -35
  81. package/lib/date-picker-range/index.vue2.cjs +11 -11
  82. package/lib/department-tree-mobile/src/department-tree-app.vue.cjs +7 -6
  83. package/lib/department-tree-mobile/src/department-tree-inline-app.vue.cjs +53 -53
  84. package/lib/department-tree-mobile/src/dept-path.vue.cjs +6 -6
  85. package/lib/department-tree-mobile/src/dept-result.vue.cjs +7 -6
  86. package/lib/department-user-tree-inline/src/department-user-multiple-tree-inline.vue.cjs +5 -5
  87. package/lib/department-user-tree-mobile/src/department-user-tree-app.vue.cjs +9 -8
  88. package/lib/department-user-tree-mobile/src/department-user-tree-inline-app.vue.cjs +61 -61
  89. package/lib/department-user-tree-mobile/src/dept-path.vue.cjs +6 -6
  90. package/lib/department-user-tree-mobile/src/dept-result.vue.cjs +4 -3
  91. package/lib/empty-state/index.vue.cjs +2 -2
  92. package/lib/fs-upload/src/fs-upload-multi.vue.cjs +1 -1
  93. package/lib/fs-upload-list/src/fs-upload-list.vue.cjs +1 -1
  94. package/lib/fs-upload-new/src/file-upload-mobile/file-upload-app.vue.cjs +12 -12
  95. package/lib/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue.cjs +24 -24
  96. package/lib/fs-upload-new/src/file-upload-mobile/file-upload-component.vue2.cjs +17 -17
  97. package/lib/fs-upload-new/src/file-upload-mobile/file-upload.vue.cjs +12 -12
  98. package/lib/fs-upload-new/src/fs-button-upload.vue2.cjs +23 -23
  99. package/lib/fs-upload-new/src/fs-drag-upload.vue2.cjs +23 -23
  100. package/lib/fs-upload-new/src/fs-preview-new.vue2.cjs +36 -36
  101. package/lib/fs-upload-new/src/fs-upload-new.vue.cjs +15 -15
  102. package/lib/json-view/json-view-dialog.vue.cjs +6 -6
  103. package/lib/multipart-upload/src/multipart-upload-form.vue.cjs +1 -1
  104. package/lib/multipart-upload/src/multipart-upload-list.vue.cjs +5 -5
  105. package/lib/row-form/index.vue2.cjs +31 -31
  106. package/lib/row-form/operation.vue.cjs +13 -13
  107. package/lib/secret-info/index.vue.cjs +1 -1
  108. package/lib/src/components/Affix/index.vue2.cjs +28 -28
  109. package/lib/src/components/Scrollbar/index.vue.cjs +22 -22
  110. package/lib/src/views/error-page/401.vue.cjs +7 -7
  111. package/lib/src/views/error-page/404.vue.cjs +4 -4
  112. package/lib/style.css +955 -939
  113. package/lib/super-grid/src/columns-config.vue.cjs +1 -1
  114. package/lib/super-grid/src/components/grid-radio-input.vue.cjs +5 -5
  115. package/lib/super-grid/src/components/select-input.vue.cjs +56 -56
  116. package/lib/super-grid/src/row-detail.vue.cjs +1 -1
  117. package/lib/super-grid/src/search-form-advancedQuery.vue.cjs +1 -1
  118. package/lib/super-grid/src/search-form-number.vue.cjs +6 -6
  119. package/lib/super-grid/src/super-grid.vue.cjs +1 -1
  120. package/lib/super-nine-grid/src/search-form-number.vue.cjs +6 -6
  121. package/lib/super-nine-grid/src/search-form.vue.cjs +1 -1
  122. package/lib/super-nine-grid/src/super-nine-grid.vue.cjs +1 -1
  123. package/lib/workgroup-tree-inline/src/workgroup-tree-inline.vue.cjs +5 -5
  124. package/lib/workgroup-tree-mobile/src/dept-result.vue.cjs +4 -3
  125. package/lib/workgroup-tree-mobile/src/workgroup-tree-app.vue.cjs +9 -8
  126. package/lib/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue.cjs +48 -48
  127. package/lib/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue.cjs +5 -5
  128. package/lib/workgroup-user-tree-mobile/src/dept-path.vue.cjs +6 -6
  129. package/lib/workgroup-user-tree-mobile/src/dept-result.vue.cjs +4 -3
  130. package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue.cjs +9 -8
  131. package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue.cjs +63 -63
  132. package/lib/year-range-picker/src/year-range-picker.vue.cjs +1 -1
  133. package/package.json +2 -2
@@ -9,111 +9,111 @@ import { useI18n as V } from "vue-i18n";
9
9
  import D from "../../utils/utils.mjs";
10
10
  import S from "../../src/assets/nonemessage.png.mjs";
11
11
  const $ = { style: { display: "flex" } }, O = { style: { flex: "0 0 20%", "text-align": "left" } }, j = { style: { flex: "0 0 80%", "text-align": "right" } }, z = { class: "item-row" }, M = { class: "item-label" }, P = { class: "item-description" }, A = ["onClick"], U = { style: { display: "flex" } }, B = { key: 0 }, F = { style: { "padding-left": "10px" } }, J = { key: 1 }, K = { key: 0, style: { color: "#999" } }, q = { class: "button-area" }, H = e({ __name: "department-tree-inline-app", props: { multiple: {}, departmentInfo: {}, selectDepartmentInfo: {}, searchField: {}, separator: {}, limitFilterColumn: {} }, emits: ["close"], setup(e2, { emit: H2 }) {
12
- const G = e2, { t: L } = V(), Q = t(null);
12
+ const G = e2, { t: L } = V(), Q = H2, W = t(null);
13
13
  t(false);
14
- let W = t(null), X = t(false), Y = t(null), Z = t([]);
14
+ let X = t(null), Y = t(false), Z = t(null), ee = t([]);
15
15
  t([]);
16
- let ee = t([]);
16
+ let te = t([]);
17
17
  t([]);
18
- let te = t([]), le = t([]), ae = t(null), ne = t(false), se = t({ userField: "name", searchValue: null, treeType: "DEPARTMENT_TREE", departmentInfo: null });
19
- function oe() {
18
+ let le = t([]), ae = t([]), ne = t(null), se = t(false), oe = t({ userField: "name", searchValue: null, treeType: "DEPARTMENT_TREE", departmentInfo: null });
19
+ function ue() {
20
20
  D.canShowOrgTree().then((e3) => {
21
21
  e3 ? N(G.departmentInfo, -1, G.limitFilterColumn).then((e4) => {
22
- Z.value = e4, w(ee.value, le.value);
23
- }) : Z.value = [];
22
+ ee.value = e4, w(te.value, ae.value);
23
+ }) : ee.value = [];
24
24
  });
25
25
  }
26
- function ue(e3, t2, l2) {
27
- G.multiple && (t2 ? re(e3) : de(e3));
26
+ function ie(e3, t2, l2) {
27
+ G.multiple && (t2 ? de(e3) : ce(e3));
28
28
  }
29
- function ie(e3, t2, l2, a2) {
30
- !G.multiple && e3.nodeType && "DEPARTMENT" === e3.nodeType && (ee.value = [e3]);
29
+ function re(e3, t2, l2, a2) {
30
+ !G.multiple && e3.nodeType && "DEPARTMENT" === e3.nodeType && (te.value = [e3]);
31
31
  }
32
- function re(e3) {
32
+ function de(e3) {
33
33
  if (e3.nodeType && "DEPARTMENT" === e3.nodeType) {
34
- const t2 = ee.value.filter((t3) => t3.nodeId === e3.nodeId);
35
- t2 && 0 !== t2.length || ee.value.push(JSON.parse(JSON.stringify(e3)));
34
+ const t2 = te.value.filter((t3) => t3.nodeId === e3.nodeId);
35
+ t2 && 0 !== t2.length || te.value.push(JSON.parse(JSON.stringify(e3)));
36
36
  }
37
37
  }
38
- function de(e3) {
39
- const t2 = ee.value.findIndex((t3) => t3.nodeId === e3.nodeId);
40
- ee.value.splice(t2, 1), ne.value = false;
41
- }
42
38
  function ce(e3) {
39
+ const t2 = te.value.findIndex((t3) => t3.nodeId === e3.nodeId);
40
+ te.value.splice(t2, 1), se.value = false;
41
+ }
42
+ function me(e3) {
43
43
  if (G.multiple)
44
44
  if (e3) {
45
- const e4 = Z.value.map((e5) => e5.nodeId);
46
- Q.value.setCheckedKeys(e4, false), Z.value.forEach((e5) => {
47
- re(e5);
45
+ const e4 = ee.value.map((e5) => e5.nodeId);
46
+ W.value.setCheckedKeys(e4, false), ee.value.forEach((e5) => {
47
+ de(e5);
48
48
  });
49
49
  } else
50
- Z.value.forEach((e4) => {
51
- de(e4);
52
- }), Q.value.setCheckedKeys([], false);
50
+ ee.value.forEach((e4) => {
51
+ ce(e4);
52
+ }), W.value.setCheckedKeys([], false);
53
53
  }
54
- function me(e3) {
54
+ function pe(e3) {
55
55
  C(e3.id).then((e4) => {
56
- Z.value = e4, w(ee.value, le.value);
56
+ ee.value = e4, w(te.value, ae.value);
57
57
  });
58
58
  }
59
- function pe(e3, t2, l2) {
60
- t2 ? (te.value = [], oe()) : (te.value.splice(l2 + 1, te.value.length - (l2 + 1)), me(e3));
59
+ function fe(e3, t2, l2) {
60
+ t2 ? (le.value = [], ue()) : (le.value.splice(l2 + 1, le.value.length - (l2 + 1)), pe(e3));
61
61
  }
62
- function fe() {
63
- ae.value.showResult();
62
+ function he() {
63
+ ne.value.showResult();
64
64
  }
65
- function he(e3) {
66
- const t2 = ee.value.filter((t3) => t3.nodeId === e3.nodeId);
65
+ function ve(e3) {
66
+ const t2 = te.value.filter((t3) => t3.nodeId === e3.nodeId);
67
67
  if (t2 && t2.length > 0) {
68
68
  const t3 = [];
69
- ee.value.forEach((l2) => {
69
+ te.value.forEach((l2) => {
70
70
  l2.nodeId !== e3.nodeId && t3.push(l2.nodeId);
71
- }), Q.value.setCheckedKeys(t3, true);
71
+ }), W.value.setCheckedKeys(t3, true);
72
72
  }
73
- de(e3);
73
+ ce(e3);
74
74
  }
75
- function ve() {
75
+ function ye() {
76
76
  if (G.multiple) {
77
77
  let e3 = { ids: [], names: [], zhNames: [], enNames: [], codes: [], departments: [] };
78
- ee.value.forEach((t3) => {
78
+ te.value.forEach((t3) => {
79
79
  let l2;
80
80
  l2 = null !== t3.data && void 0 !== t3.data ? JSON.parse(t3.data) : t3, function(e4, t4, l3) {
81
- e4.ids.push(t4.id), e4.codes.push(l3.code), e4.containBranch = X.value, l3.tenantCode = W.value.code, l3.tenantName = W.value.tenantName, e4.departments.push(l3);
81
+ e4.ids.push(t4.id), e4.codes.push(l3.code), e4.containBranch = Y.value, l3.tenantCode = X.value.code, l3.tenantName = X.value.tenantName, e4.departments.push(l3);
82
82
  const a2 = l3.showName;
83
83
  e4.names.push(a2), e4.zhNames.push(l3.name), e4.enNames.push(l3.enName ? l3.enName : "");
84
84
  }(e3, t3, l2);
85
85
  });
86
86
  let t2 = { ids: [], names: [], zhNames: [], enNames: [], codes: [], departments: [] };
87
- Object.assign(t2, e3), t2.ids.length > 0 ? H2("close", t2) : R({ message: L("imatrixUIMessage.pleaseSelectDepartment"), type: "warning" });
87
+ Object.assign(t2, e3), t2.ids.length > 0 ? Q("close", t2) : R({ message: L("imatrixUIMessage.pleaseSelectDepartment"), type: "warning" });
88
88
  } else {
89
- const e3 = ee.value[0], t2 = JSON.parse(e3.data), l2 = e3.showName;
90
- t2.tenantName = W.value.tenantName, t2.tenantCode = W.value.code;
91
- const a2 = { id: e3.id, name: l2, zhName: t2.name, enName: t2.enName, code: t2.code, containBranch: X.value, department: t2 };
92
- H2("close", a2);
89
+ const e3 = te.value[0], t2 = JSON.parse(e3.data), l2 = e3.showName;
90
+ t2.tenantName = X.value.tenantName, t2.tenantCode = X.value.code;
91
+ const a2 = { id: e3.id, name: l2, zhName: t2.name, enName: t2.enName, code: t2.code, containBranch: Y.value, department: t2 };
92
+ Q("close", a2);
93
93
  }
94
94
  }
95
- function ye() {
96
- se.value.searchValue ? (se.value.searchValue = se.value.searchValue.trim(), se.value.departmentInfo = G.departmentInfo, window.$vueApp.config.globalProperties.$http.post(window.$vueApp.config.globalProperties.baseAPI + "/component/organization-trees/search-depts", se.value).then((e3) => {
97
- e3 ? (0 === e3.length && R({ message: L("imatrixUIMessage.queryResultIsEmpty"), type: "warning" }), Z.value = e3) : R({ message: L("imatrixUIMessage.queryResultIsEmpty"), type: "warning" });
98
- })) : oe();
95
+ function ge() {
96
+ oe.value.searchValue ? (oe.value.searchValue = oe.value.searchValue.trim(), oe.value.departmentInfo = G.departmentInfo, window.$vueApp.config.globalProperties.$http.post(window.$vueApp.config.globalProperties.baseAPI + "/component/organization-trees/search-depts", oe.value).then((e3) => {
97
+ e3 ? (0 === e3.length && R({ message: L("imatrixUIMessage.queryResultIsEmpty"), type: "warning" }), ee.value = e3) : R({ message: L("imatrixUIMessage.queryResultIsEmpty"), type: "warning" });
98
+ })) : ue();
99
99
  }
100
100
  return l(() => {
101
101
  k(G.selectDepartmentInfo, -1, G.searchField, G.separator).then((e3) => {
102
- ee.value = e3, I().then((e4) => {
102
+ te.value = e3, I().then((e4) => {
103
103
  const t2 = e4[0].data;
104
- W.value = JSON.parse(t2), X.value = e4[0].containBranch, Y.value = e4[0].name, oe();
104
+ X.value = JSON.parse(t2), Y.value = e4[0].containBranch, Z.value = e4[0].name, ue();
105
105
  });
106
106
  }), function() {
107
107
  const e3 = document.querySelector(".org-tree");
108
108
  let t2 = x();
109
109
  t2 = t2 - 110 - 60 - 60 - 60, e3.style.height = t2 + "px", e3.style.minHeight = "300px";
110
110
  }();
111
- }), (e3, t2) => {
112
- const l2 = a("el-checkbox"), k2 = a("el-icon"), I2 = a("el-input"), N2 = a("el-col"), w2 = a("el-row"), C2 = a("el-card"), x2 = a("el-empty"), R2 = a("el-tree"), V2 = a("el-button");
113
- return n(), s("div", null, [o(C2, { class: "card-content", style: { height: "50px" } }, { default: u(() => [o(w2, { class: "item-row item-row-all" }, { default: u(() => [o(N2, { style: { width: "100%" } }, { default: u(() => [i("div", $, [i("div", O, [e3.multiple ? (n(), r(l2, { key: 0, modelValue: d(ne), "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => c(ne) ? ne.value = e4 : ne = e4), label: e3.$t("departmentTreeInline.allCheck"), value: "all", onChange: ce }, null, 8, ["modelValue", "label"])) : m("", true)]), i("div", j, [o(I2, { modelValue: d(se).searchValue, "onUpdate:modelValue": t2[1] || (t2[1] = (e4) => d(se).searchValue = e4), placeholder: e3.$t("departmentTreeInline.pleaseInputNameOrCode"), onClear: ye, onKeyup: p(ye, ["enter"]), onBlur: ye, clearable: "" }, { suffix: u(() => [o(k2, { onClick: ye }, { default: u(() => [o(d(v))]), _: 1 })]), _: 1 }, 8, ["modelValue", "placeholder", "onKeyup"])])])]), _: 1 })]), _: 1 })]), _: 1 }), d(Y) ? (n(), r(C2, { key: 0, class: "card-content" }, { default: u(() => [o(w2, { class: "item-row item-row-all" }, { default: u(() => [o(N2, { class: "item-label dept-path" }, { default: u(() => [o(b, { tenantName: d(Y), clickDepts: d(te), onClickBreadcrumb: pe }, null, 8, ["tenantName", "clickDepts"])]), _: 1 })]), _: 1 })]), _: 1 })) : m("", true), o(C2, { class: "card-content org-tree", style: { overflow: "auto" } }, { default: u(() => [d(Z).length ? (n(), r(R2, { key: 1, ref_key: "orgTreeRef", ref: Q, data: d(Z), "show-checkbox": e3.multiple, "node-key": "nodeId", "check-on-click-node": "", "default-checked-keys": d(le), onCheckChange: ue, onNodeClick: ie }, { default: u(({ node: e4, data: t3 }) => [i("div", z, [i("div", M, [f(h(t3.showName) + " ", 1), i("span", P, h(d(T)(t3.showName, t3)), 1)]), t3.leaf ? m("", true) : (n(), s("div", { key: 0, class: "item-side", onClick: (e5) => {
114
- return l3 = t3, te.value.push(l3), void me(l3);
111
+ }), (t2, l2) => {
112
+ const k2 = a("el-checkbox"), I2 = a("el-icon"), N2 = a("el-input"), w2 = a("el-col"), C2 = a("el-row"), x2 = a("el-card"), R2 = a("el-empty"), V2 = a("el-tree"), D2 = a("el-button");
113
+ return n(), s("div", null, [o(x2, { class: "card-content", style: { height: "50px" } }, { default: u(() => [o(C2, { class: "item-row item-row-all" }, { default: u(() => [o(w2, { style: { width: "100%" } }, { default: u(() => [i("div", $, [i("div", O, [e2.multiple ? (n(), r(k2, { key: 0, modelValue: d(se), "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => c(se) ? se.value = e3 : se = e3), label: t2.$t("departmentTreeInline.allCheck"), value: "all", onChange: me }, null, 8, ["modelValue", "label"])) : m("", true)]), i("div", j, [o(N2, { modelValue: d(oe).searchValue, "onUpdate:modelValue": l2[1] || (l2[1] = (e3) => d(oe).searchValue = e3), placeholder: t2.$t("departmentTreeInline.pleaseInputNameOrCode"), onClear: ge, onKeyup: p(ge, ["enter"]), onBlur: ge, clearable: "" }, { suffix: u(() => [o(I2, { onClick: ge }, { default: u(() => [o(d(v))]), _: 1 })]), _: 1 }, 8, ["modelValue", "placeholder"])])])]), _: 1 })]), _: 1 })]), _: 1 }), d(Z) ? (n(), r(x2, { key: 0, class: "card-content" }, { default: u(() => [o(C2, { class: "item-row item-row-all" }, { default: u(() => [o(w2, { class: "item-label dept-path" }, { default: u(() => [o(b, { tenantName: d(Z), clickDepts: d(le), onClickBreadcrumb: fe }, null, 8, ["tenantName", "clickDepts"])]), _: 1 })]), _: 1 })]), _: 1 })) : m("", true), o(x2, { class: "card-content org-tree", style: { overflow: "auto" } }, { default: u(() => [d(ee).length ? (n(), r(V2, { key: 1, ref_key: "orgTreeRef", ref: W, data: d(ee), "show-checkbox": e2.multiple, "node-key": "nodeId", "check-on-click-node": "", "default-checked-keys": d(ae), onCheckChange: ie, onNodeClick: re }, { default: u(({ node: e3, data: t3 }) => [i("div", z, [i("div", M, [f(h(t3.showName) + " ", 1), i("span", P, h(d(T)(t3.showName, t3)), 1)]), t3.leaf ? m("", true) : (n(), s("div", { key: 0, class: "item-side", onClick: (e4) => {
114
+ return l3 = t3, le.value.push(l3), void pe(l3);
115
115
  var l3;
116
- } }, [o(k2, null, { default: u(() => [o(d(y))]), _: 1 })], 8, A))])]), _: 1 }, 8, ["data", "show-checkbox", "default-checked-keys"])) : (n(), r(x2, { key: 0, image: d(S) }, null, 8, ["image"]))]), _: 1 }), o(C2, { class: "card-footer" }, { default: u(() => [i("div", U, [i("div", { class: "select-result", onClick: fe }, [e3.multiple ? (n(), s("span", { key: 0, onClick: fe }, [d(ee).length > 0 ? (n(), s("span", B, [f(h(e3.$t("departmentTreeInline.selectResultInfoHasSelect")) + h(e3.$t("departmentTreeInline.selectResultInfo", { num: d(ee).length })) + " ", 1), i("span", F, [o(k2, null, { default: u(() => [o(d(g))]), _: 1 })])])) : m("", true)])) : d(ee).length > 0 ? (n(), s("span", J, [f(h(e3.$t("departmentTreeInline.selectResultInfoHasSelect")) + h(d(ee)[0].showName), 1), "-1" !== d(ee)[0].parentNodeId && d(_)(d(ee)[0]) ? (n(), s("span", K, "(" + h(d(_)(d(ee)[0])) + ")", 1)) : m("", true)])) : m("", true)]), i("div", q, [o(V2, { size: "large", type: "primary", onClick: ve }, { default: u(() => [f(h(e3.$t("imatrixUIPublicModel.sure")), 1)]), _: 1 })])])]), _: 1 }), o(E, { ref_key: "deptResultRef", ref: ae, selectDepts: d(ee), onRemoveDept: he }, null, 8, ["selectDepts"])]);
116
+ } }, [o(I2, null, { default: u(() => [o(d(y))]), _: 1 })], 8, A))])]), _: 1 }, 8, ["data", "show-checkbox", "default-checked-keys"])) : (n(), r(R2, { key: 0, image: d(S) }, null, 8, ["image"]))]), _: 1 }), o(x2, { class: "card-footer" }, { default: u(() => [i("div", U, [i("div", { class: "select-result", onClick: he }, [e2.multiple ? (n(), s("span", { key: 0, onClick: he }, [d(te).length > 0 ? (n(), s("span", B, [f(h(t2.$t("departmentTreeInline.selectResultInfoHasSelect")) + h(t2.$t("departmentTreeInline.selectResultInfo", { num: d(te).length })) + " ", 1), i("span", F, [o(I2, null, { default: u(() => [o(d(g))]), _: 1 })])])) : m("", true)])) : d(te).length > 0 ? (n(), s("span", J, [f(h(t2.$t("departmentTreeInline.selectResultInfoHasSelect")) + h(d(te)[0].showName), 1), "-1" !== d(te)[0].parentNodeId && d(_)(d(te)[0]) ? (n(), s("span", K, "(" + h(d(_)(d(te)[0])) + ")", 1)) : m("", true)])) : m("", true)]), i("div", q, [o(D2, { size: "large", type: "primary", onClick: ye }, { default: u(() => [f(h(t2.$t("imatrixUIPublicModel.sure")), 1)]), _: 1 })])])]), _: 1 }), o(E, { ref_key: "deptResultRef", ref: ne, selectDepts: d(te), onRemoveDept: ve }, null, 8, ["selectDepts"])]);
117
117
  };
118
118
  } });
119
119
  export {
@@ -1,12 +1,13 @@
1
- import { defineComponent as e, ref as l, resolveComponent as t, openBlock as a, createBlock as n, withCtx as c, createVNode as r, createElementBlock as u, toDisplayString as s, unref as i, Fragment as p, renderList as k } from "vue";
1
+ import { defineComponent as e, ref as l, resolveComponent as t, openBlock as a, createBlock as n, withCtx as c, createVNode as r, createElementBlock as s, toDisplayString as u, unref as i, Fragment as p, renderList as k } from "vue";
2
2
  const m = { key: 1 }, d = ["onClick"], o = { key: 1 }, b = e({ __name: "dept-path", props: { tenantName: { type: String, default: null }, clickDepts: { type: Array, default: null } }, emits: ["clickBreadcrumb"], setup(e2, { emit: b2 }) {
3
- let f = l(e2.tenantName);
4
- function y(e3, l2, t2) {
5
- b2("clickBreadcrumb", e3, l2, t2);
3
+ const f = b2;
4
+ let y = l(e2.tenantName);
5
+ function h(e3, l2, t2) {
6
+ f("clickBreadcrumb", e3, l2, t2);
6
7
  }
7
8
  return (l2, b3) => {
8
- const h = t("el-breadcrumb-item"), _ = t("el-breadcrumb");
9
- return a(), n(_, { separator: "/" }, { default: c(() => [r(h, null, { default: c(() => [e2.clickDepts.length > 0 ? (a(), u("span", { key: 0, class: "breadcrumb-label-link", onClick: b3[0] || (b3[0] = (e3) => y(null, true)) }, s(i(f)), 1)) : (a(), u("span", m, s(i(f)), 1))]), _: 1 }), (a(true), u(p, null, k(e2.clickDepts, (l3, t2) => (a(), n(h, { key: l3.id }, { default: c(() => [t2 < e2.clickDepts.length - 1 ? (a(), u("span", { key: 0, class: "breadcrumb-label-link", onClick: (e3) => y(l3, false, t2) }, s(l3.showName), 9, d)) : (a(), u("span", o, s(l3.showName), 1))]), _: 2 }, 1024))), 128))]), _: 1 });
9
+ const f2 = t("el-breadcrumb-item"), _ = t("el-breadcrumb");
10
+ return a(), n(_, { separator: "/" }, { default: c(() => [r(f2, null, { default: c(() => [e2.clickDepts.length > 0 ? (a(), s("span", { key: 0, class: "breadcrumb-label-link", onClick: b3[0] || (b3[0] = (e3) => h(null, true)) }, u(i(y)), 1)) : (a(), s("span", m, u(i(y)), 1))]), _: 1 }), (a(true), s(p, null, k(e2.clickDepts, (l3, t2) => (a(), n(f2, { key: l3.id }, { default: c(() => [t2 < e2.clickDepts.length - 1 ? (a(), s("span", { key: 0, class: "breadcrumb-label-link", onClick: (e3) => h(l3, false, t2) }, u(l3.showName), 9, d)) : (a(), s("span", o, u(l3.showName), 1))]), _: 2 }, 1024))), 128))]), _: 1 });
10
11
  };
11
12
  } });
12
13
  export {
@@ -1,15 +1,16 @@
1
- import { defineComponent as e, ref as t, resolveComponent as l, openBlock as o, createBlock as s, unref as a, isRef as i, withCtx as r, createElementVNode as n, toDisplayString as d, createVNode as u, createTextVNode as m } from "vue";
2
- import { DeleteFilled as c } from "@element-plus/icons-vue";
1
+ import { defineComponent as e, ref as t, resolveComponent as l, openBlock as o, createBlock as s, unref as a, isRef as i, withCtx as n, createElementVNode as r, toDisplayString as d, createVNode as u, createTextVNode as c } from "vue";
2
+ import { DeleteFilled as m } from "@element-plus/icons-vue";
3
3
  import { getShowDeptNamePath as p } from "../../utils/organization.mjs";
4
4
  const f = { style: { "text-align": "center" } }, v = { class: "item-row" }, h = { class: "item-label" }, k = { class: "item-description" }, w = ["onClick"], _ = e({ __name: "dept-result", props: { selectDepts: { type: Array, default: null } }, emits: ["removeDept"], setup(e2, { expose: _2, emit: g }) {
5
5
  let y = t(false);
6
+ const D = g;
6
7
  return _2({ showResult: function() {
7
8
  y.value = true;
8
9
  } }), (t2, _3) => {
9
- const D = l("el-icon"), R = l("el-tree"), x = l("el-drawer");
10
- return o(), s(x, { modelValue: a(y), "onUpdate:modelValue": _3[0] || (_3[0] = (e3) => i(y) ? y.value = e3 : y = e3), direction: "btt", size: "80%", class: "organization-tree" }, { header: r(() => [n("div", f, d(t2.$t("departmentTreeInline.selectResultTitle")), 1)]), default: r(() => [u(R, { ref: "orgResultTreeRef", data: e2.selectDepts, "node-key": "nodeId", "check-on-click-node": "" }, { default: r(({ node: e3, data: t3 }) => [n("div", v, [n("div", h, [m(d(t3.showName), 1), n("span", k, d(a(p)(t3.showName, t3)), 1)]), n("div", { class: "item-side", onClick: (e4) => {
11
- g("removeDept", t3);
12
- } }, [u(D, null, { default: r(() => [u(a(c))]), _: 1 })], 8, w)])]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["modelValue"]);
10
+ const g2 = l("el-icon"), R = l("el-tree"), x = l("el-drawer");
11
+ return o(), s(x, { modelValue: a(y), "onUpdate:modelValue": _3[0] || (_3[0] = (e3) => i(y) ? y.value = e3 : y = e3), direction: "btt", size: "80%", class: "organization-tree" }, { header: n(() => [r("div", f, d(t2.$t("departmentTreeInline.selectResultTitle")), 1)]), default: n(() => [u(R, { ref: "orgResultTreeRef", data: e2.selectDepts, "node-key": "nodeId", "check-on-click-node": "" }, { default: n(({ node: e3, data: t3 }) => [r("div", v, [r("div", h, [c(d(t3.showName), 1), r("span", k, d(a(p)(t3.showName, t3)), 1)]), r("div", { class: "item-side", onClick: (e4) => {
12
+ D("removeDept", t3);
13
+ } }, [u(g2, null, { default: n(() => [u(a(m))]), _: 1 })], 8, w)])]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["modelValue"]);
13
14
  };
14
15
  } });
15
16
  export {
@@ -155,11 +155,11 @@ const R = { data: () => ({ filterText: "", defaultProps: { id: "id", label: "sho
155
155
  setTimeout(() => {
156
156
  e2.isShowGroupTree = true;
157
157
  }, 10);
158
- } }, emits: ["result"] }, S = { key: 0, style: { "padding-top": "5px", overflow: "auto", width: "auto", display: "inline-block !important" } }, b = ["title"], x = { key: 1, style: { height: "100%", overflow: "hidden" } }, M = T("table", { border: "1px", cellpadding: "0", cellspacing: "0", style: { height: "100%", "border-left-style": "solid", "border-bottom-style": "none", "border-right-style": "none", "border-top-style": "none", "border-left-color": "#cccccc" } }, null, -1), $ = { style: { "text-align": "left", "font-size": "16px" } }, E = { style: "padding-top: 5px;height:90%;overflow: hidden;" };
159
- const A = v(R, [["render", function(e2, t2, s2, r2, a2, n2) {
160
- const i2 = u("el-button"), l2 = u("el-autocomplete"), d2 = u("el-header"), o2 = u("Menu"), h2 = u("Tickets"), c2 = u("User"), p2 = u("Calendar"), v2 = u("el-icon"), R2 = u("el-tree"), A2 = u("el-tab-pane"), D = u("GroupUser"), _ = u("GroupUserMultipleTree"), w = u("el-tabs"), P = u("EmptyState"), V = u("user-result"), B = u("el-main"), G = u("el-container"), K = u("el-aside");
161
- return m(), f("div", null, [U(G, { style: { height: "395px" } }, { default: g(() => [U(K, { width: "430px" }, { default: g(() => [U(G, { style: { height: "390px" } }, { default: g(() => [U(d2, { style: { "font-size": "12px", height: "35px", padding: "0px 10px" } }, { default: g(() => [U(l2, { modelValue: a2.filterText, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => a2.filterText = e3), "fetch-suggestions": e2.querySearch, placeholder: e2.$t("departmentUserTree.pleaseEnterUserInformation"), class: "inline-input inline-input-custom searchDepartmentUser", size: "default", onSelect: e2.handleSelect, onKeyup: N(n2.clickSearch, ["enter"]) }, { append: g(() => [U(i2, { icon: a2.ElIconSearch, onClick: n2.clickSearch }, null, 8, ["icon", "onClick"])]), _: 1 }, 8, ["modelValue", "fetch-suggestions", "placeholder", "onSelect", "onKeyup"])]), _: 1 }), U(B, { style: { padding: "10px" } }, { default: g(() => [a2.searchValue ? I("", true) : (m(), f(C, { key: 0 }, [a2.canShowOrgTree ? (m(), f("div", S, [U(w, { modelValue: a2.activeTab, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => a2.activeTab = e3), class: "boe" }, { default: g(() => [U(A2, { label: e2.$t("departmentUserTreeInline.orgTree"), name: "orgTree" }, { default: g(() => [U(R2, { ref: "deparmentUserTree", props: a2.defaultProps, load: n2.loadNode, "check-on-click-node": true, lazy: "", "show-checkbox": "", "node-key": "nodeId", onCheck: n2.handleCheckNode, onCheckChange: n2.handleCheckChange }, { default: g(({ node: e3, data: t3 }) => [T("span", null, [U(v2, null, { default: g(() => [-1 === e3.data.id || e3.data.branch ? (m(), y(o2, { key: 0 })) : -2 === e3.data.id || -3 === e3.data.id ? (m(), y(h2, { key: 1 })) : "USER" === e3.data.nodeType ? (m(), y(c2, { key: 2 })) : (m(), y(p2, { key: 3 }))]), _: 2 }, 1024), T("span", { title: e3.label }, k(e3.label), 9, b)])]), _: 1 }, 8, ["props", "load", "onCheck", "onCheckChange"])]), _: 1 }, 8, ["label"]), U(A2, { name: "groupTree" }, { label: g(() => [T("span", null, k(e2.$t("departmentUserTreeInline.group")), 1), T("span", null, [U(D, { "active-tab": a2.activeTab, onUpdateGroupTree: n2.updateGroupTree }, null, 8, ["active-tab", "onUpdateGroupTree"])])]), default: g(() => [a2.isShowGroupTree ? (m(), y(_, { key: 0, onResult: n2.getGroupUserResult }, null, 8, ["onResult"])) : I("", true)]), _: 1 })]), _: 1 }, 8, ["modelValue"])])) : (m(), y(P, { key: 1, style: { width: "100%", height: "100%" } }))], 64)), a2.searchValue && a2.searchValue.length > 0 ? (m(), f("div", x, [U(V, { "contain-branch": a2.containBranch, "grid-data": a2.searchResult, height: s2.height, "is-search-result": true, multiple: true, "select-result": a2.selectResult, onAddUser: n2.selectUser }, null, 8, ["contain-branch", "grid-data", "height", "select-result", "onAddUser"])])) : I("", true)]), _: 1 })]), _: 1 })]), _: 1 }), U(G, null, { default: g(() => [U(K, { width: "2px" }, { default: g(() => [M]), _: 1 }), U(B, { style: { padding: "10px" } }, { default: g(() => [T("div", $, k(e2.$t("departmentUserTree.selectedPeople")) + ":", 1), T("div", E, [U(V, { "contain-branch": a2.containBranch, "grid-data": a2.selectResult, height: s2.height, "is-search-result": false, multiple: true, onRemoveUser: n2.removeUser }, null, 8, ["contain-branch", "grid-data", "height", "onRemoveUser"])])]), _: 1 })]), _: 1 })]), _: 1 })]);
158
+ } }, emits: ["result"] }, S = { key: 0, style: { "padding-top": "5px", overflow: "auto", width: "auto", display: "inline-block !important" } }, b = ["title"], x = { key: 1, style: { height: "100%", overflow: "hidden" } }, M = { style: { "text-align": "left", "font-size": "16px" } }, $ = { style: "padding-top: 5px;height:90%;overflow: hidden;" };
159
+ const E = v(R, [["render", function(e2, t2, s2, r2, a2, n2) {
160
+ const i2 = u("el-button"), l2 = u("el-autocomplete"), d2 = u("el-header"), o2 = u("Menu"), h2 = u("Tickets"), c2 = u("User"), p2 = u("Calendar"), v2 = u("el-icon"), R2 = u("el-tree"), E2 = u("el-tab-pane"), A = u("GroupUser"), D = u("GroupUserMultipleTree"), _ = u("el-tabs"), w = u("EmptyState"), P = u("user-result"), V = u("el-main"), B = u("el-container"), G = u("el-aside");
161
+ return m(), f("div", null, [U(B, { style: { height: "395px" } }, { default: g(() => [U(G, { width: "430px" }, { default: g(() => [U(B, { style: { height: "390px" } }, { default: g(() => [U(d2, { style: { "font-size": "12px", height: "35px", padding: "0px 10px" } }, { default: g(() => [U(l2, { modelValue: a2.filterText, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => a2.filterText = e3), "fetch-suggestions": e2.querySearch, placeholder: e2.$t("departmentUserTree.pleaseEnterUserInformation"), class: "inline-input inline-input-custom searchDepartmentUser", size: "default", onSelect: e2.handleSelect, onKeyup: N(n2.clickSearch, ["enter"]) }, { append: g(() => [U(i2, { icon: a2.ElIconSearch, onClick: n2.clickSearch }, null, 8, ["icon", "onClick"])]), _: 1 }, 8, ["modelValue", "fetch-suggestions", "placeholder", "onSelect", "onKeyup"])]), _: 1 }), U(V, { style: { padding: "10px" } }, { default: g(() => [a2.searchValue ? I("", true) : (m(), f(C, { key: 0 }, [a2.canShowOrgTree ? (m(), f("div", S, [U(_, { modelValue: a2.activeTab, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => a2.activeTab = e3), class: "boe" }, { default: g(() => [U(E2, { label: e2.$t("departmentUserTreeInline.orgTree"), name: "orgTree" }, { default: g(() => [U(R2, { ref: "deparmentUserTree", props: a2.defaultProps, load: n2.loadNode, "check-on-click-node": true, lazy: "", "show-checkbox": "", "node-key": "nodeId", onCheck: n2.handleCheckNode, onCheckChange: n2.handleCheckChange }, { default: g(({ node: e3, data: t3 }) => [T("span", null, [U(v2, null, { default: g(() => [-1 === e3.data.id || e3.data.branch ? (m(), y(o2, { key: 0 })) : -2 === e3.data.id || -3 === e3.data.id ? (m(), y(h2, { key: 1 })) : "USER" === e3.data.nodeType ? (m(), y(c2, { key: 2 })) : (m(), y(p2, { key: 3 }))]), _: 2 }, 1024), T("span", { title: e3.label }, k(e3.label), 9, b)])]), _: 1 }, 8, ["props", "load", "onCheck", "onCheckChange"])]), _: 1 }, 8, ["label"]), U(E2, { name: "groupTree" }, { label: g(() => [T("span", null, k(e2.$t("departmentUserTreeInline.group")), 1), T("span", null, [U(A, { "active-tab": a2.activeTab, onUpdateGroupTree: n2.updateGroupTree }, null, 8, ["active-tab", "onUpdateGroupTree"])])]), default: g(() => [a2.isShowGroupTree ? (m(), y(D, { key: 0, onResult: n2.getGroupUserResult }, null, 8, ["onResult"])) : I("", true)]), _: 1 })]), _: 1 }, 8, ["modelValue"])])) : (m(), y(w, { key: 1, style: { width: "100%", height: "100%" } }))], 64)), a2.searchValue && a2.searchValue.length > 0 ? (m(), f("div", x, [U(P, { "contain-branch": a2.containBranch, "grid-data": a2.searchResult, height: s2.height, "is-search-result": true, multiple: true, "select-result": a2.selectResult, onAddUser: n2.selectUser }, null, 8, ["contain-branch", "grid-data", "height", "select-result", "onAddUser"])])) : I("", true)]), _: 1 })]), _: 1 })]), _: 1 }), U(B, null, { default: g(() => [U(G, { width: "2px" }, { default: g(() => [...t2[2] || (t2[2] = [T("table", { border: "1px", cellpadding: "0", cellspacing: "0", style: { height: "100%", "border-left-style": "solid", "border-bottom-style": "none", "border-right-style": "none", "border-top-style": "none", "border-left-color": "#cccccc" } }, null, -1)])]), _: 1 }), U(V, { style: { padding: "10px" } }, { default: g(() => [T("div", M, k(e2.$t("departmentUserTree.selectedPeople")) + ":", 1), T("div", $, [U(P, { "contain-branch": a2.containBranch, "grid-data": a2.selectResult, height: s2.height, "is-search-result": false, multiple: true, onRemoveUser: n2.removeUser }, null, 8, ["contain-branch", "grid-data", "height", "onRemoveUser"])])]), _: 1 })]), _: 1 })]), _: 1 })]);
162
162
  }]]);
163
163
  export {
164
- A as default
164
+ E as default
165
165
  };
@@ -1,13 +1,14 @@
1
- import { defineComponent as e, ref as t, resolveComponent as l, openBlock as r, createBlock as o, unref as a, isRef as s, withCtx as n, createElementVNode as i, toDisplayString as m, createCommentVNode as p } from "vue";
2
- import u from "./department-user-tree-inline-app.vue.mjs";
3
- const c = { style: { "text-align": "center" } }, d = e({ name: "DepartmentUserTreeMobile", props: { multiple: {}, departmentInfo: {}, selectUserInfo: {}, searchField: {}, separator: {}, limitFilterColumn: {} }, emits: ["close"], setup(e2, { emit: d2 }) {
4
- let f = t(true);
5
- function I(e3) {
6
- d2("close", e3), f.value = false;
1
+ import { defineComponent as e, ref as t, resolveComponent as l, openBlock as r, createBlock as o, unref as s, isRef as a, withCtx as n, createElementVNode as i, toDisplayString as m, createCommentVNode as p } from "vue";
2
+ import c from "./department-user-tree-inline-app.vue.mjs";
3
+ const u = { style: { "text-align": "center" } }, d = e({ name: "DepartmentUserTreeMobile", props: { multiple: {}, departmentInfo: {}, selectUserInfo: {}, searchField: {}, separator: {}, limitFilterColumn: {} }, emits: ["close"], setup(e2, { emit: d2 }) {
4
+ const f = d2;
5
+ let I = t(true);
6
+ function F(e3) {
7
+ f("close", e3), I.value = false;
7
8
  }
8
- return (e3, t2) => {
9
- const d3 = l("el-drawer");
10
- return r(), o(d3, { modelValue: a(f), "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => s(f) ? f.value = e4 : f = e4), "append-to-body": "", "close-on-click-modal": false, "close-on-press-escape": false, direction: "btt", size: "100%", class: "organization-tree", onClose: t2[1] || (t2[1] = (e4) => I()) }, { header: n(() => [i("div", c, m(e3.$t("imatrixUIMessage.pleaseSelect")), 1)]), default: n(() => [a(f) ? (r(), o(u, { key: 0, multiple: e3.multiple, departmentInfo: e3.departmentInfo, selectUserInfo: e3.selectUserInfo, searchField: e3.searchField, separator: e3.separator, limitFilterColumn: e3.limitFilterColumn, onClose: I }, null, 8, ["multiple", "departmentInfo", "selectUserInfo", "searchField", "separator", "limitFilterColumn"])) : p("", true)]), _: 1 }, 8, ["modelValue"]);
9
+ return (t2, d3) => {
10
+ const f2 = l("el-drawer");
11
+ return r(), o(f2, { modelValue: s(I), "onUpdate:modelValue": d3[0] || (d3[0] = (e3) => a(I) ? I.value = e3 : I = e3), "append-to-body": "", "close-on-click-modal": false, "close-on-press-escape": false, direction: "btt", size: "100%", class: "organization-tree", onClose: d3[1] || (d3[1] = (e3) => F()) }, { header: n(() => [i("div", u, m(t2.$t("imatrixUIMessage.pleaseSelect")), 1)]), default: n(() => [s(I) ? (r(), o(c, { key: 0, multiple: e2.multiple, departmentInfo: e2.departmentInfo, selectUserInfo: e2.selectUserInfo, searchField: e2.searchField, separator: e2.separator, limitFilterColumn: e2.limitFilterColumn, onClose: F }, null, 8, ["multiple", "departmentInfo", "selectUserInfo", "searchField", "separator", "limitFilterColumn"])) : p("", true)]), _: 1 }, 8, ["modelValue"]);
11
12
  };
12
13
  } });
13
14
  export {
@@ -9,125 +9,125 @@ import { useI18n as V } from "vue-i18n";
9
9
  import M from "../../utils/utils.mjs";
10
10
  import O from "../../src/assets/nonemessage.png.mjs";
11
11
  const P = { style: { display: "flex" } }, J = { style: { flex: "0 0 20%", "text-align": "left" } }, j = { style: { flex: "0 0 80%", "text-align": "right" } }, A = { class: "item-row" }, D = { key: 0, class: "item-label" }, F = { style: { color: "#999" } }, H = ["onClick"], K = { key: 0, style: { color: "#999" } }, q = ["onClick"], z = { style: { display: "flex" } }, B = { class: "select-result" }, Z = { key: 0 }, G = { key: 1 }, L = { key: 2 }, Q = { key: 3, style: { "padding-left": "10px" } }, W = { key: 1 }, X = { style: { color: "#999" } }, Y = { class: "button-area" }, ee = e({ __name: "department-user-tree-inline-app", props: { multiple: {}, departmentInfo: {}, selectUserInfo: {}, searchField: {}, separator: {}, limitFilterColumn: {} }, emits: ["close"], setup(e2, { emit: ee2 }) {
12
- const le = e2, te = l(null);
13
- let ne = l(null), ae = l(false), se = l(null), oe = l([]);
12
+ const le = e2, te = ee2, ne = l(null);
13
+ let ae = l(null), se = l(false), oe = l(null), re = l([]);
14
14
  l([]);
15
- let re = l([]), ue = l([]);
15
+ let ue = l([]), ie = l([]);
16
16
  l([]);
17
- let ie = l([]), de = l([]), ce = l(null), pe = l(false), me = l({ userField: "name", searchValue: null, treeType: "MAN_DEPARTMENT_TREE", departmentInfo: null }), fe = l({ disabled: "disable" }), he = l(false);
18
- const { t: ve } = V();
19
- function ge() {
17
+ let de = l([]), ce = l([]), pe = l(null), me = l(false), fe = l({ userField: "name", searchValue: null, treeType: "MAN_DEPARTMENT_TREE", departmentInfo: null }), he = l({ disabled: "disable" }), ve = l(false);
18
+ const { t: ge } = V();
19
+ function ye() {
20
20
  M.canShowOrgTree().then((e3) => {
21
21
  e3 ? k(le.departmentInfo, "-1", le.limitFilterColumn).then((e4) => {
22
- oe.value = e4, T(re.value, de.value);
23
- }) : oe.value = [];
22
+ re.value = e4, T(ue.value, ce.value);
23
+ }) : re.value = [];
24
24
  });
25
25
  }
26
- function ye(e3, l2, t2) {
27
- le.multiple && (l2 ? le.multiple && ke(e3) : (le.multiple || e3.nodeType && "USER" === e3.nodeType) && Te(e3));
26
+ function Ie(e3, l2, t2) {
27
+ le.multiple && (l2 ? le.multiple && Te(e3) : (le.multiple || e3.nodeType && "USER" === e3.nodeType) && Ne(e3));
28
28
  }
29
- function Ie(e3, l2, t2, n2) {
30
- !le.multiple && e3.nodeType && "USER" === e3.nodeType && (re.value = [e3]);
29
+ function ke(e3, l2, t2, n2) {
30
+ !le.multiple && e3.nodeType && "USER" === e3.nodeType && (ue.value = [e3]);
31
31
  }
32
- function ke(e3) {
32
+ function Te(e3) {
33
33
  if (e3.nodeType && "USER" === e3.nodeType) {
34
- const l2 = re.value.filter((l3) => l3.nodeId === e3.nodeId);
35
- l2 && 0 !== l2.length || re.value.push(JSON.parse(JSON.stringify(e3)));
36
- } else {
37
34
  const l2 = ue.value.filter((l3) => l3.nodeId === e3.nodeId);
38
35
  l2 && 0 !== l2.length || ue.value.push(JSON.parse(JSON.stringify(e3)));
36
+ } else {
37
+ const l2 = ie.value.filter((l3) => l3.nodeId === e3.nodeId);
38
+ l2 && 0 !== l2.length || ie.value.push(JSON.parse(JSON.stringify(e3)));
39
39
  }
40
40
  }
41
- function Te(e3) {
41
+ function Ne(e3) {
42
42
  if (e3.nodeType && "USER" === e3.nodeType) {
43
- const l2 = re.value.findIndex((l3) => l3.nodeId === e3.nodeId);
44
- re.value.splice(l2, 1);
45
- } else {
46
43
  const l2 = ue.value.findIndex((l3) => l3.nodeId === e3.nodeId);
47
44
  ue.value.splice(l2, 1);
45
+ } else {
46
+ const l2 = ie.value.findIndex((l3) => l3.nodeId === e3.nodeId);
47
+ ie.value.splice(l2, 1);
48
48
  }
49
- pe.value = false;
49
+ me.value = false;
50
50
  }
51
- function Ne(e3) {
51
+ function Ue(e3) {
52
52
  if (le.multiple)
53
53
  if (e3) {
54
- const e4 = oe.value.map((e5) => e5.nodeId);
55
- te.value.setCheckedKeys(e4, false), oe.value.forEach((e5) => {
56
- ke(e5);
54
+ const e4 = re.value.map((e5) => e5.nodeId);
55
+ ne.value.setCheckedKeys(e4, false), re.value.forEach((e5) => {
56
+ Te(e5);
57
57
  });
58
58
  } else
59
- oe.value.forEach((e4) => {
60
- Te(e4);
61
- }), te.value.setCheckedKeys([], false);
59
+ re.value.forEach((e4) => {
60
+ Ne(e4);
61
+ }), ne.value.setCheckedKeys([], false);
62
62
  }
63
- function Ue(e3) {
63
+ function we(e3) {
64
64
  U(e3.id, e3.branchId).then((e4) => {
65
- oe.value = e4, T(re.value, de.value);
65
+ re.value = e4, T(ue.value, ce.value);
66
66
  });
67
67
  }
68
- function we(e3, l2) {
69
- ie.value.push(e3), Ue(e3);
68
+ function Re(e3, l2) {
69
+ de.value.push(e3), we(e3);
70
70
  }
71
- function Re(e3, l2, t2) {
72
- l2 ? (ie.value = [], ge()) : (ie.value.splice(t2 + 1, ie.value.length - (t2 + 1)), Ue(e3));
71
+ function xe(e3, l2, t2) {
72
+ l2 ? (de.value = [], ye()) : (de.value.splice(t2 + 1, de.value.length - (t2 + 1)), we(e3));
73
73
  }
74
- function xe() {
75
- ce.value.showResult();
74
+ function Se() {
75
+ pe.value.showResult();
76
76
  }
77
- function Se(e3) {
78
- const l2 = oe.value.filter((l3) => l3.nodeId === e3.nodeId);
77
+ function Ee(e3) {
78
+ const l2 = re.value.filter((l3) => l3.nodeId === e3.nodeId);
79
79
  if (l2 && l2.length > 0) {
80
80
  const l3 = [];
81
- re.value.forEach((t2) => {
81
+ ue.value.forEach((t2) => {
82
82
  t2.nodeId !== e3.nodeId && l3.push(t2.nodeId);
83
- }), ue.value.forEach((t2) => {
83
+ }), ie.value.forEach((t2) => {
84
84
  t2.nodeId !== e3.nodeId && l3.push(t2.nodeId);
85
- }), te.value.setCheckedKeys(l3, true);
85
+ }), ne.value.setCheckedKeys(l3, true);
86
86
  }
87
- Te(e3);
87
+ Ne(e3);
88
88
  }
89
- function Ee() {
90
- if (0 !== ue.value.length || 0 !== re.value.length)
89
+ function be() {
90
+ if (0 !== ie.value.length || 0 !== ue.value.length)
91
91
  if (le.multiple) {
92
92
  const e3 = { userIds: [], userNames: [], loginNames: [], userZhNames: [], userEnNames: [], emails: [], telephones: [], users: [], divisionManager: [], divisionManagerName: [] }, l2 = [];
93
- ue.value.forEach((e4) => {
93
+ ie.value.forEach((e4) => {
94
94
  l2.push(e4.id);
95
- }), re.value.forEach((l3) => {
95
+ }), ue.value.forEach((l3) => {
96
96
  const t2 = JSON.parse(l3.data);
97
- E(e3, t2, ae.value);
98
- }), he.value = true, l2.length > 0 ? N(l2).then((l3) => {
97
+ E(e3, t2, se.value);
98
+ }), ve.value = true, l2.length > 0 ? N(l2).then((l3) => {
99
99
  l3 && l3.forEach((l4) => {
100
- E(e3, l4, ae.value);
101
- }), he.value = false, e3.userIds.length > 0 ? ee2("close", e3) : $({ message: ve("imatrixUIMessage.pleaseSelectPersonnel"), type: "warning" });
100
+ E(e3, l4, se.value);
101
+ }), ve.value = false, e3.userIds.length > 0 ? te("close", e3) : $({ message: ge("imatrixUIMessage.pleaseSelectPersonnel"), type: "warning" });
102
102
  }).catch(() => {
103
- he.value = false;
104
- }) : (he.value = false, e3.userIds.length > 0 ? ee2("close", e3) : $({ message: ve("imatrixUIMessage.pleaseSelectPersonnel"), type: "warning" }));
103
+ ve.value = false;
104
+ }) : (ve.value = false, e3.userIds.length > 0 ? te("close", e3) : $({ message: ge("imatrixUIMessage.pleaseSelectPersonnel"), type: "warning" }));
105
105
  } else {
106
- const e3 = JSON.parse(re.value[0].data), l2 = b(e3, ae.value);
107
- ee2("close", l2);
106
+ const e3 = JSON.parse(ue.value[0].data), l2 = b(e3, se.value);
107
+ te("close", l2);
108
108
  }
109
109
  else
110
- $({ message: ve("imatrixUIMessage.pleaseSelectPersonnel"), type: "warning" });
110
+ $({ message: ge("imatrixUIMessage.pleaseSelectPersonnel"), type: "warning" });
111
111
  }
112
- function be() {
113
- me.value.searchValue ? (me.value.searchValue = me.value.searchValue.trim(), me.value.departmentInfo = le.departmentInfo, window.$vueApp.config.globalProperties.$http.post(window.$vueApp.config.globalProperties.baseAPI + "/component/organization-trees/search-users-mobile", me.value).then((e3) => {
114
- e3 ? (0 === e3.length && $({ message: ve("imatrixUIMessage.queryResultIsEmpty"), type: "warning" }), oe.value = e3) : $({ message: ve("imatrixUIMessage.queryResultIsEmpty"), type: "warning" });
115
- })) : ge();
112
+ function _e() {
113
+ fe.value.searchValue ? (fe.value.searchValue = fe.value.searchValue.trim(), fe.value.departmentInfo = le.departmentInfo, window.$vueApp.config.globalProperties.$http.post(window.$vueApp.config.globalProperties.baseAPI + "/component/organization-trees/search-users-mobile", fe.value).then((e3) => {
114
+ e3 ? (0 === e3.length && $({ message: ge("imatrixUIMessage.queryResultIsEmpty"), type: "warning" }), re.value = e3) : $({ message: ge("imatrixUIMessage.queryResultIsEmpty"), type: "warning" });
115
+ })) : ye();
116
116
  }
117
117
  return t(() => {
118
118
  w(le.searchField, le.selectUserInfo, le.separator).then((e3) => {
119
- re.value = e3, I().then((e4) => {
119
+ ue.value = e3, I().then((e4) => {
120
120
  const l2 = e4[0].data;
121
- ne.value = JSON.parse(l2), ae.value = e4[0].containBranch, se.value = e4[0].name, ge();
121
+ ae.value = JSON.parse(l2), se.value = e4[0].containBranch, oe.value = e4[0].name, ye();
122
122
  });
123
123
  }), function() {
124
124
  const e3 = document.querySelector(".org-tree");
125
125
  let l2 = R();
126
126
  l2 = l2 - 110 - 60 - 60 - 60, e3.style.height = l2 + "px", e3.style.minHeight = "300px";
127
127
  }();
128
- }), (e3, l2) => {
129
- const t2 = n("el-checkbox"), I2 = n("el-icon"), k2 = n("el-input"), T2 = n("el-col"), N2 = n("el-row"), U2 = n("el-card"), w2 = n("el-empty"), R2 = n("el-tree"), E2 = n("el-button");
130
- return a(), s("div", null, [o(U2, { class: "card-content", style: { height: "50px" } }, { default: r(() => [o(N2, { class: "item-row item-row-all" }, { default: r(() => [o(T2, { style: { width: "100%" } }, { default: r(() => [u("div", P, [u("div", J, [e3.multiple ? (a(), i(t2, { key: 0, modelValue: d(pe), "onUpdate:modelValue": l2[0] || (l2[0] = (e4) => c(pe) ? pe.value = e4 : pe = e4), label: e3.$t("departmentTreeInline.allCheck"), value: "all", onChange: Ne }, null, 8, ["modelValue", "label"])) : p("", true)]), u("div", j, [o(k2, { modelValue: d(me).searchValue, "onUpdate:modelValue": l2[1] || (l2[1] = (e4) => d(me).searchValue = e4), placeholder: e3.$t("departmentUserTree.pleaseEnterUserInformation"), onClear: be, onKeyup: m(be, ["enter"]), onBlur: be, clearable: "" }, { suffix: r(() => [o(I2, { onClick: be }, { default: r(() => [o(d(v))]), _: 1 })]), _: 1 }, 8, ["modelValue", "placeholder", "onKeyup"])])])]), _: 1 })]), _: 1 })]), _: 1 }), d(se) ? (a(), i(U2, { key: 0, class: "card-content" }, { default: r(() => [o(N2, { class: "item-row item-row-all" }, { default: r(() => [o(T2, { class: "item-label dept-path" }, { default: r(() => [o(_, { tenantName: d(se), clickDepts: d(ie), onClickBreadcrumb: Re }, null, 8, ["tenantName", "clickDepts"])]), _: 1 })]), _: 1 })]), _: 1 })) : p("", true), o(U2, { class: "card-content org-tree", style: { overflow: "auto" } }, { default: r(() => [d(oe).length ? (a(), i(R2, { key: 1, ref_key: "orgTreeRef", ref: te, data: d(oe), "show-checkbox": e3.multiple, "node-key": "nodeId", props: d(fe), "default-checked-keys": d(de), onCheckChange: ye, onNodeClick: Ie }, { default: r(({ node: e4, data: l3 }) => [u("div", A, [l3.nodeType && "USER" === l3.nodeType ? (a(), s("div", D, [f(h(l3.showName) + " ", 1), u("span", F, "(" + h(l3.loginName) + h(d(x)(l3) ? "/" + d(x)(l3) : "") + ")", 1)])) : (a(), s("div", { key: 1, class: "item-label", onClick: (e5) => we(l3) }, [f(h(l3.showName), 1), "-1" !== l3.parentNodeId && d(S)(l3) ? (a(), s("span", K, "(" + h(d(S)(l3)) + ")", 1)) : p("", true)], 8, H)), l3.nodeType && "USER" === l3.nodeType ? p("", true) : (a(), s("div", { key: 2, class: "item-side", onClick: (e5) => we(l3) }, [o(I2, null, { default: r(() => [o(d(g))]), _: 1 })], 8, q))])]), _: 1 }, 8, ["data", "show-checkbox", "props", "default-checked-keys"])) : (a(), i(w2, { key: 0, image: d(O) }, null, 8, ["image"]))]), _: 1 }), o(U2, { class: "card-footer" }, { default: r(() => [u("div", z, [u("div", B, [e3.multiple ? (a(), s("span", { key: 0, onClick: xe }, [d(re).length > 0 && d(ue).length > 0 ? (a(), s("span", Z, h(e3.$t("departmentTreeInline.selectResultInfoHasSelect")) + h(e3.$t("departmentUserTree.selectUserResultInfo", { userNum: d(re).length })) + ", " + h(e3.$t("departmentUserTree.selectDeptResultInfo", { deptNum: d(ue).length })), 1)) : d(re).length > 0 ? (a(), s("span", G, h(e3.$t("departmentTreeInline.selectResultInfoHasSelect")) + h(e3.$t("departmentUserTree.selectUserResultInfo", { userNum: d(re).length })), 1)) : d(ue).length > 0 ? (a(), s("span", L, h(e3.$t("departmentTreeInline.selectResultInfoHasSelect")) + h(e3.$t("departmentUserTree.selectDeptResultInfo", { deptNum: d(ue).length })), 1)) : p("", true), d(re).length > 0 || d(ue).length > 0 ? (a(), s("span", Q, [o(I2, null, { default: r(() => [o(d(y))]), _: 1 })])) : p("", true)])) : d(re).length > 0 ? (a(), s("span", W, [f(h(e3.$t("departmentTreeInline.selectResultInfoHasSelect")) + h(d(re)[0].showName), 1), u("span", X, "(" + h(d(re)[0].loginName) + h(d(x)(d(re)[0]) ? "/" + d(x)(d(re)[0]) : "") + ")", 1)])) : p("", true)]), u("div", Y, [o(E2, { size: "large", type: "primary", onClick: Ee }, { default: r(() => [f(h(e3.$t("imatrixUIPublicModel.sure")), 1)]), _: 1 })])])]), _: 1 }), o(C, { ref_key: "deptResultRef", ref: ce, selectUsers: d(re).concat(d(ue)), onRemoveResult: Se }, null, 8, ["selectUsers"])]);
128
+ }), (l2, t2) => {
129
+ const I2 = n("el-checkbox"), k2 = n("el-icon"), T2 = n("el-input"), N2 = n("el-col"), U2 = n("el-row"), w2 = n("el-card"), R2 = n("el-empty"), E2 = n("el-tree"), b2 = n("el-button");
130
+ return a(), s("div", null, [o(w2, { class: "card-content", style: { height: "50px" } }, { default: r(() => [o(U2, { class: "item-row item-row-all" }, { default: r(() => [o(N2, { style: { width: "100%" } }, { default: r(() => [u("div", P, [u("div", J, [e2.multiple ? (a(), i(I2, { key: 0, modelValue: d(me), "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => c(me) ? me.value = e3 : me = e3), label: l2.$t("departmentTreeInline.allCheck"), value: "all", onChange: Ue }, null, 8, ["modelValue", "label"])) : p("", true)]), u("div", j, [o(T2, { modelValue: d(fe).searchValue, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => d(fe).searchValue = e3), placeholder: l2.$t("departmentUserTree.pleaseEnterUserInformation"), onClear: _e, onKeyup: m(_e, ["enter"]), onBlur: _e, clearable: "" }, { suffix: r(() => [o(k2, { onClick: _e }, { default: r(() => [o(d(v))]), _: 1 })]), _: 1 }, 8, ["modelValue", "placeholder"])])])]), _: 1 })]), _: 1 })]), _: 1 }), d(oe) ? (a(), i(w2, { key: 0, class: "card-content" }, { default: r(() => [o(U2, { class: "item-row item-row-all" }, { default: r(() => [o(N2, { class: "item-label dept-path" }, { default: r(() => [o(_, { tenantName: d(oe), clickDepts: d(de), onClickBreadcrumb: xe }, null, 8, ["tenantName", "clickDepts"])]), _: 1 })]), _: 1 })]), _: 1 })) : p("", true), o(w2, { class: "card-content org-tree", style: { overflow: "auto" } }, { default: r(() => [d(re).length ? (a(), i(E2, { key: 1, ref_key: "orgTreeRef", ref: ne, data: d(re), "show-checkbox": e2.multiple, "node-key": "nodeId", props: d(he), "default-checked-keys": d(ce), onCheckChange: Ie, onNodeClick: ke }, { default: r(({ node: e3, data: l3 }) => [u("div", A, [l3.nodeType && "USER" === l3.nodeType ? (a(), s("div", D, [f(h(l3.showName) + " ", 1), u("span", F, "(" + h(l3.loginName) + h(d(x)(l3) ? "/" + d(x)(l3) : "") + ")", 1)])) : (a(), s("div", { key: 1, class: "item-label", onClick: (e4) => Re(l3) }, [f(h(l3.showName), 1), "-1" !== l3.parentNodeId && d(S)(l3) ? (a(), s("span", K, "(" + h(d(S)(l3)) + ")", 1)) : p("", true)], 8, H)), l3.nodeType && "USER" === l3.nodeType ? p("", true) : (a(), s("div", { key: 2, class: "item-side", onClick: (e4) => Re(l3) }, [o(k2, null, { default: r(() => [o(d(g))]), _: 1 })], 8, q))])]), _: 1 }, 8, ["data", "show-checkbox", "props", "default-checked-keys"])) : (a(), i(R2, { key: 0, image: d(O) }, null, 8, ["image"]))]), _: 1 }), o(w2, { class: "card-footer" }, { default: r(() => [u("div", z, [u("div", B, [e2.multiple ? (a(), s("span", { key: 0, onClick: Se }, [d(ue).length > 0 && d(ie).length > 0 ? (a(), s("span", Z, h(l2.$t("departmentTreeInline.selectResultInfoHasSelect")) + h(l2.$t("departmentUserTree.selectUserResultInfo", { userNum: d(ue).length })) + ", " + h(l2.$t("departmentUserTree.selectDeptResultInfo", { deptNum: d(ie).length })), 1)) : d(ue).length > 0 ? (a(), s("span", G, h(l2.$t("departmentTreeInline.selectResultInfoHasSelect")) + h(l2.$t("departmentUserTree.selectUserResultInfo", { userNum: d(ue).length })), 1)) : d(ie).length > 0 ? (a(), s("span", L, h(l2.$t("departmentTreeInline.selectResultInfoHasSelect")) + h(l2.$t("departmentUserTree.selectDeptResultInfo", { deptNum: d(ie).length })), 1)) : p("", true), d(ue).length > 0 || d(ie).length > 0 ? (a(), s("span", Q, [o(k2, null, { default: r(() => [o(d(y))]), _: 1 })])) : p("", true)])) : d(ue).length > 0 ? (a(), s("span", W, [f(h(l2.$t("departmentTreeInline.selectResultInfoHasSelect")) + h(d(ue)[0].showName), 1), u("span", X, "(" + h(d(ue)[0].loginName) + h(d(x)(d(ue)[0]) ? "/" + d(x)(d(ue)[0]) : "") + ")", 1)])) : p("", true)]), u("div", Y, [o(b2, { size: "large", type: "primary", onClick: be }, { default: r(() => [f(h(l2.$t("imatrixUIPublicModel.sure")), 1)]), _: 1 })])])]), _: 1 }), o(C, { ref_key: "deptResultRef", ref: pe, selectUsers: d(ue).concat(d(ie)), onRemoveResult: Ee }, null, 8, ["selectUsers"])]);
131
131
  };
132
132
  } });
133
133
  export {
@@ -1,12 +1,13 @@
1
- import { defineComponent as e, ref as l, resolveComponent as t, openBlock as a, createBlock as n, withCtx as c, createVNode as r, createElementBlock as u, toDisplayString as s, unref as i, Fragment as p, renderList as k } from "vue";
1
+ import { defineComponent as e, ref as l, resolveComponent as t, openBlock as a, createBlock as n, withCtx as c, createVNode as r, createElementBlock as s, toDisplayString as u, unref as i, Fragment as p, renderList as k } from "vue";
2
2
  const m = { key: 1 }, d = ["onClick"], o = { key: 1 }, b = e({ __name: "dept-path", props: { tenantName: { type: String, default: null }, clickDepts: { type: Array, default: null } }, emits: ["clickBreadcrumb"], setup(e2, { emit: b2 }) {
3
- let f = l(e2.tenantName);
4
- function y(e3, l2, t2) {
5
- b2("clickBreadcrumb", e3, l2, t2);
3
+ const f = b2;
4
+ let y = l(e2.tenantName);
5
+ function h(e3, l2, t2) {
6
+ f("clickBreadcrumb", e3, l2, t2);
6
7
  }
7
8
  return (l2, b3) => {
8
- const h = t("el-breadcrumb-item"), _ = t("el-breadcrumb");
9
- return a(), n(_, { separator: "/" }, { default: c(() => [r(h, null, { default: c(() => [e2.clickDepts.length > 0 ? (a(), u("span", { key: 0, class: "breadcrumb-label-link", onClick: b3[0] || (b3[0] = (e3) => y(null, true)) }, s(i(f)), 1)) : (a(), u("span", m, s(i(f)), 1))]), _: 1 }), (a(true), u(p, null, k(e2.clickDepts, (l3, t2) => (a(), n(h, { key: l3.id }, { default: c(() => [t2 < e2.clickDepts.length - 1 ? (a(), u("span", { key: 0, class: "breadcrumb-label-link", onClick: (e3) => y(l3, false, t2) }, s(l3.showName), 9, d)) : (a(), u("span", o, s(l3.showName), 1))]), _: 2 }, 1024))), 128))]), _: 1 });
9
+ const f2 = t("el-breadcrumb-item"), _ = t("el-breadcrumb");
10
+ return a(), n(_, { separator: "/" }, { default: c(() => [r(f2, null, { default: c(() => [e2.clickDepts.length > 0 ? (a(), s("span", { key: 0, class: "breadcrumb-label-link", onClick: b3[0] || (b3[0] = (e3) => h(null, true)) }, u(i(y)), 1)) : (a(), s("span", m, u(i(y)), 1))]), _: 1 }), (a(true), s(p, null, k(e2.clickDepts, (l3, t2) => (a(), n(f2, { key: l3.id }, { default: c(() => [t2 < e2.clickDepts.length - 1 ? (a(), s("span", { key: 0, class: "breadcrumb-label-link", onClick: (e3) => h(l3, false, t2) }, u(l3.showName), 9, d)) : (a(), s("span", o, u(l3.showName), 1))]), _: 2 }, 1024))), 128))]), _: 1 });
10
11
  };
11
12
  } });
12
13
  export {
@@ -3,13 +3,14 @@ import { DeleteFilled as f } from "@element-plus/icons-vue";
3
3
  import { getUserMainDeptName as y, getDeptNamePath as v } from "../../utils/organization.mjs";
4
4
  const R = { style: { "text-align": "center" } }, k = { class: "item-row" }, g = { class: "item-label" }, T = { key: 0, style: { color: "#999" } }, _ = { key: 1, style: { color: "#999" } }, w = ["onClick"], U = e({ __name: "dept-result", props: { selectUsers: { type: Array, default: null } }, emits: ["removeResult"], setup(e2, { expose: U2, emit: h }) {
5
5
  let x = t(false);
6
+ const z = h;
6
7
  return U2({ showResult: function() {
7
8
  x.value = true;
8
9
  } }), (t2, U3) => {
9
- const z = l("el-icon"), I = l("el-tree"), N = l("el-drawer");
10
+ const h2 = l("el-icon"), I = l("el-tree"), N = l("el-drawer");
10
11
  return o(), s(N, { modelValue: a(x), "onUpdate:modelValue": U3[0] || (U3[0] = (e3) => r(x) ? x.value = e3 : x = e3), direction: "btt", size: "80%", class: "organization-tree" }, { header: n(() => [d("div", R, i(t2.$t("departmentTreeInline.selectResultTitle")), 1)]), default: n(() => [a(x) ? (o(), s(I, { key: 0, ref: "orgResultTreeRef", data: e2.selectUsers, "node-key": "nodeId" }, { default: n(({ node: e3, data: t3 }) => [d("div", k, [d("div", g, [u(i(t3.showName) + " ", 1), t3.nodeType && "USER" === t3.nodeType ? (o(), m("span", T, "(" + i(t3.loginName) + i(a(y)(t3) ? "/" + a(y)(t3) : "") + ")", 1)) : c("", true), "-1" !== t3.parentNodeId && a(v)(t3) ? (o(), m("span", _, "(" + i(a(v)(t3)) + ")", 1)) : c("", true)]), d("div", { class: "item-side", onClick: (e4) => {
11
- h("removeResult", t3);
12
- } }, [p(z, null, { default: n(() => [p(a(f))]), _: 1 })], 8, w)])]), _: 1 }, 8, ["data"])) : c("", true)]), _: 1 }, 8, ["modelValue"]);
12
+ z("removeResult", t3);
13
+ } }, [p(h2, null, { default: n(() => [p(a(f))]), _: 1 })], 8, w)])]), _: 1 }, 8, ["data"])) : c("", true)]), _: 1 }, 8, ["modelValue"]);
13
14
  };
14
15
  } });
15
16
  export {
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as t, openBlock as e, createElementBlock as i, createElementVNode as a, normalizeStyle as p, toDisplayString as m, unref as n } from "vue";
2
2
  import { useI18n as r } from "vue-i18n";
3
3
  const s = { class: "empty_center_area" }, o = { class: "empty_notAvailable_text" }, l = t({ __name: "index", props: { imageHeight: { type: String, default: "120px" }, imageWidth: { type: String, default: "120px" }, emptyText: { type: String, default: "" } }, setup(t2) {
4
- const l2 = t2, { t: g } = r();
5
- return (t3, r2) => (e(), i("div", s, [a("div", { class: "empty_notAvailable", style: p({ width: l2.imageWidth, height: l2.imageHeight }) }, [a("span", o, m(l2.emptyText ? l2.emptyText : n(g)("imatrixUIPromptMessage.NoContent")), 1)], 4)]));
4
+ const { t: l2 } = r(), g = t2;
5
+ return (t3, r2) => (e(), i("div", s, [a("div", { class: "empty_notAvailable", style: p({ width: g.imageWidth, height: g.imageHeight }) }, [a("span", o, m(g.emptyText ? g.emptyText : n(l2)("imatrixUIPromptMessage.NoContent")), 1)], 4)]));
6
6
  } });
7
7
  export {
8
8
  l as default