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
@@ -5,10 +5,10 @@ import o from "../../utils/utils.mjs";
5
5
  import l from "./workgroup-tree-service.mjs";
6
6
  import r from "./search-result.vue.mjs";
7
7
  import i from "../../empty-state/index.vue.mjs";
8
- import { resolveComponent as a, openBlock as n, createElementBlock as d, createVNode as h, withCtx as c, withKeys as u, Fragment as p, createElementVNode as g, createBlock as f, normalizeClass as k, toDisplayString as m, createCommentVNode as w, pushScopeId as y, popScopeId as N } from "vue";
8
+ import { resolveComponent as a, openBlock as n, createElementBlock as h, createVNode as d, withCtx as c, withKeys as u, Fragment as p, createElementVNode as g, createBlock as f, normalizeClass as k, toDisplayString as m, createCommentVNode as w } from "vue";
9
9
  import "./workgroup-tree-inline.vue2.mjs";
10
- import S from "../../_virtual/_plugin-vue_export-helper.mjs";
11
- const R = { data: () => ({ filterText: "", defaultProps: { id: "id", label: "name", children: "children", isLeaf: "leaf" }, containBranch: false, tenantNodeId: -1, restaurants: [], searchValue: null, searchResult: [], selectResult: [], searchStoreKey: "searchWorkgroup", selectNodeInfo: null, selectWorkgroupData: null, tenantInfo: {}, ElIconSearch: e, canShowOrgTree: false }), name: "InlineWorkgroupTree", components: { WorkgroupResult: r, EmptyState: i }, props: { multiple: { type: Boolean, default: true }, branchInfo: { type: Array, default: null }, selectGroupInfo: { type: [String, Number], default: null }, searchField: { type: String, default: "code" }, separator: { type: String, default: "," }, limitFilterColumn: { type: String, default: "code" } }, computed: {}, watch: { filterText(e2) {
10
+ import y from "../../_virtual/_plugin-vue_export-helper.mjs";
11
+ const N = { data: () => ({ filterText: "", defaultProps: { id: "id", label: "name", children: "children", isLeaf: "leaf" }, containBranch: false, tenantNodeId: -1, restaurants: [], searchValue: null, searchResult: [], selectResult: [], searchStoreKey: "searchWorkgroup", selectNodeInfo: null, selectWorkgroupData: null, tenantInfo: {}, ElIconSearch: e, canShowOrgTree: false }), name: "InlineWorkgroupTree", components: { WorkgroupResult: r, EmptyState: i }, props: { multiple: { type: Boolean, default: true }, branchInfo: { type: Array, default: null }, selectGroupInfo: { type: [String, Number], default: null }, searchField: { type: String, default: "code" }, separator: { type: String, default: "," }, limitFilterColumn: { type: String, default: "code" } }, computed: {}, watch: { filterText(e2) {
12
12
  e2 || (this.searchValue = e2, this.loadWorkgroup(this.tenantNodeId));
13
13
  } }, created() {
14
14
  o.canShowOrgTree().then((e2) => {
@@ -118,11 +118,11 @@ const R = { data: () => ({ filterText: "", defaultProps: { id: "id", label: "nam
118
118
  s2 = 0 === e2.level ? 0 : e2.data.id;
119
119
  var o2 = [];
120
120
  this.$refs.workgroupTree && (o2 = this.$refs.workgroupTree.getCheckedKeys()), -1 === s2 && e2.data.children && e2.data.children.length > 0 ? t2(e2.data.children) : this.initLoad(s2, e2, t2, o2);
121
- } }, emits: ["result"] }, T = { key: 0, style: { "padding-top": "5px", overflow: "auto", width: "auto", display: "inline-block !important" } }, I = ["title"], v = { key: 1, style: { height: "100%", overflow: "hidden" } }, x = ((e2) => (y("data-v-22410ec9"), e2 = e2(), N(), e2))(() => g("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)), W = { style: { "text-align": "left", "font-size": "16px" } }, b = { style: "padding-top: 5px;height:90%;overflow: hidden;" };
122
- const C = S(R, [["render", function(e2, t2, s2, o2, l2, r2) {
123
- const i2 = a("el-button"), y2 = a("el-autocomplete"), N2 = a("el-header"), S2 = a("Menu"), R2 = a("Calendar"), C2 = a("el-icon"), $ = a("el-tree"), O = a("EmptyState"), V = a("workgroup-result"), _ = a("el-main"), K = a("el-container"), j = a("el-aside");
124
- return n(), d("div", null, [h(K, { style: { height: "395px" } }, { default: c(() => [h(j, { width: "430px" }, { default: c(() => [h(K, { style: { height: "390px" } }, { default: c(() => [h(N2, { style: { "text-align": "right", "font-size": "12px", height: "35px" } }, { default: c(() => [h(y2, { modelValue: l2.filterText, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => l2.filterText = e3), "fetch-suggestions": e2.querySearch, placeholder: e2.$t("imatrixUIMessage.pleaseEnterTeamName"), "trigger-on-focus": false, class: "inline-input inline-input-custom", "select-when-unmatched": "", onSelect: r2.handleSelect, onKeyup: u(r2.clickSearch, ["enter"]) }, { append: c(() => [h(i2, { icon: l2.ElIconSearch, onClick: r2.clickSearch }, null, 8, ["icon", "onClick"])]), _: 1 }, 8, ["modelValue", "fetch-suggestions", "placeholder", "onSelect", "onKeyup"])]), _: 1 }), h(_, null, { default: c(() => [l2.searchValue ? w("", true) : (n(), d(p, { key: 0 }, [l2.canShowOrgTree ? (n(), d("div", T, [h($, { ref: "workgroupTree", "filter-node-method": r2.filterNode, load: r2.loadNode, props: l2.defaultProps, "show-checkbox": s2.multiple, lazy: "", "node-key": "id", onCheck: r2.handleCheckNode, onNodeClick: r2.handleNodeClick }, { default: c(({ node: e3, data: t3 }) => [g("span", null, [h(C2, null, { default: c(() => [-1 === e3.data.id ? (n(), f(S2, { key: 0 })) : (n(), f(R2, { key: 1 }))]), _: 2 }, 1024), g("span", { class: k(t3.nodeType && "WORKGROUP" === t3.nodeType && l2.searchValue && t3.name.indexOf(l2.searchValue) > -1 ? "searchResult" : ""), title: e3.label }, m(e3.label), 11, I)])]), _: 1 }, 8, ["filter-node-method", "load", "props", "show-checkbox", "onCheck", "onNodeClick"])])) : (n(), f(O, { key: 1, style: { width: "100%", height: "100%" } }))], 64)), l2.searchValue && l2.searchValue.length > 0 ? (n(), d("div", v, [h(V, { ref: "workgroupResult", "grid-data": l2.searchResult, height: e2.height, "is-search-result": true, multiple: s2.multiple, "select-result": l2.selectResult, onAddWorkgroup: r2.addWorkgroup, onResultRowDblclick: r2.resultRowDblclick, onSelectResult: r2.getSelectWorkgroup }, null, 8, ["grid-data", "height", "multiple", "select-result", "onAddWorkgroup", "onResultRowDblclick", "onSelectResult"])])) : w("", true)]), _: 1 })]), _: 1 })]), _: 1 }), s2.multiple ? (n(), f(K, { key: 0 }, { default: c(() => [h(j, { width: "2px" }, { default: c(() => [x]), _: 1 }), h(_, { style: { padding: "10px" } }, { default: c(() => [g("div", W, m(e2.$t("imatrixUIMessage.selectedWorkingGroup")) + ":", 1), g("div", b, [h(V, { "grid-data": l2.selectResult, height: e2.height, "is-search-result": false, multiple: s2.multiple, onRemoveWorkgroup: r2.removeWorkgroup, onResultRowDblclick: r2.resultRowDblclick, onSelectResult: r2.getSelectWorkgroup }, null, 8, ["grid-data", "height", "multiple", "onRemoveWorkgroup", "onResultRowDblclick", "onSelectResult"])])]), _: 1 })]), _: 1 })) : w("", true)]), _: 1 })]);
121
+ } }, emits: ["result"] }, S = { key: 0, style: { "padding-top": "5px", overflow: "auto", width: "auto", display: "inline-block !important" } }, R = ["title"], T = { key: 1, style: { height: "100%", overflow: "hidden" } }, I = { style: { "text-align": "left", "font-size": "16px" } }, x = { style: "padding-top: 5px;height:90%;overflow: hidden;" };
122
+ const v = y(N, [["render", function(e2, t2, s2, o2, l2, r2) {
123
+ const i2 = a("el-button"), y2 = a("el-autocomplete"), N2 = a("el-header"), v2 = a("Menu"), W = a("Calendar"), b = a("el-icon"), C = a("el-tree"), $ = a("EmptyState"), O = a("workgroup-result"), V = a("el-main"), _ = a("el-container"), K = a("el-aside");
124
+ return n(), h("div", null, [d(_, { style: { height: "395px" } }, { default: c(() => [d(K, { width: "430px" }, { default: c(() => [d(_, { style: { height: "390px" } }, { default: c(() => [d(N2, { style: { "text-align": "right", "font-size": "12px", height: "35px" } }, { default: c(() => [d(y2, { modelValue: l2.filterText, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => l2.filterText = e3), "fetch-suggestions": e2.querySearch, placeholder: e2.$t("imatrixUIMessage.pleaseEnterTeamName"), "trigger-on-focus": false, class: "inline-input inline-input-custom", "select-when-unmatched": "", onSelect: r2.handleSelect, onKeyup: u(r2.clickSearch, ["enter"]) }, { append: c(() => [d(i2, { icon: l2.ElIconSearch, onClick: r2.clickSearch }, null, 8, ["icon", "onClick"])]), _: 1 }, 8, ["modelValue", "fetch-suggestions", "placeholder", "onSelect", "onKeyup"])]), _: 1 }), d(V, null, { default: c(() => [l2.searchValue ? w("", true) : (n(), h(p, { key: 0 }, [l2.canShowOrgTree ? (n(), h("div", S, [d(C, { ref: "workgroupTree", "filter-node-method": r2.filterNode, load: r2.loadNode, props: l2.defaultProps, "show-checkbox": s2.multiple, lazy: "", "node-key": "id", onCheck: r2.handleCheckNode, onNodeClick: r2.handleNodeClick }, { default: c(({ node: e3, data: t3 }) => [g("span", null, [d(b, null, { default: c(() => [-1 === e3.data.id ? (n(), f(v2, { key: 0 })) : (n(), f(W, { key: 1 }))]), _: 2 }, 1024), g("span", { class: k(t3.nodeType && "WORKGROUP" === t3.nodeType && l2.searchValue && t3.name.indexOf(l2.searchValue) > -1 ? "searchResult" : ""), title: e3.label }, m(e3.label), 11, R)])]), _: 1 }, 8, ["filter-node-method", "load", "props", "show-checkbox", "onCheck", "onNodeClick"])])) : (n(), f($, { key: 1, style: { width: "100%", height: "100%" } }))], 64)), l2.searchValue && l2.searchValue.length > 0 ? (n(), h("div", T, [d(O, { ref: "workgroupResult", "grid-data": l2.searchResult, height: e2.height, "is-search-result": true, multiple: s2.multiple, "select-result": l2.selectResult, onAddWorkgroup: r2.addWorkgroup, onResultRowDblclick: r2.resultRowDblclick, onSelectResult: r2.getSelectWorkgroup }, null, 8, ["grid-data", "height", "multiple", "select-result", "onAddWorkgroup", "onResultRowDblclick", "onSelectResult"])])) : w("", true)]), _: 1 })]), _: 1 })]), _: 1 }), s2.multiple ? (n(), f(_, { key: 0 }, { default: c(() => [d(K, { width: "2px" }, { default: c(() => [...t2[1] || (t2[1] = [g("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 }), d(V, { style: { padding: "10px" } }, { default: c(() => [g("div", I, m(e2.$t("imatrixUIMessage.selectedWorkingGroup")) + ":", 1), g("div", x, [d(O, { "grid-data": l2.selectResult, height: e2.height, "is-search-result": false, multiple: s2.multiple, onRemoveWorkgroup: r2.removeWorkgroup, onResultRowDblclick: r2.resultRowDblclick, onSelectResult: r2.getSelectWorkgroup }, null, 8, ["grid-data", "height", "multiple", "onRemoveWorkgroup", "onResultRowDblclick", "onSelectResult"])])]), _: 1 })]), _: 1 })) : w("", true)]), _: 1 })]);
125
125
  }], ["__scopeId", "data-v-22410ec9"]]);
126
126
  export {
127
- C as default
127
+ v as default
128
128
  };
@@ -2,13 +2,14 @@ import { defineComponent as e, ref as t, resolveComponent as l, openBlock as a,
2
2
  import { DeleteFilled as c } from "@element-plus/icons-vue";
3
3
  const m = { style: { "text-align": "center" } }, p = { class: "item-row" }, f = { class: "item-label" }, v = ["onClick"], k = e({ __name: "dept-result", props: { selectDepts: { type: Array, default: null } }, emits: ["removeDept"], setup(e2, { expose: k2, emit: y }) {
4
4
  let _ = t(false);
5
+ const g = y;
5
6
  return k2({ showResult: function() {
6
7
  _.value = true, JSON.stringify();
7
8
  } }), (t2, k3) => {
8
- const g = l("el-icon"), D = l("el-tree"), R = l("el-drawer");
9
+ const y2 = l("el-icon"), D = l("el-tree"), R = l("el-drawer");
9
10
  return a(), o(R, { modelValue: s(_), "onUpdate:modelValue": k3[0] || (k3[0] = (e3) => n(_) ? _.value = e3 : _ = e3), direction: "btt", size: "80%", class: "organization-tree" }, { header: r(() => [i("div", m, d(t2.$t("departmentTreeInline.selectResultTitle")), 1)]), default: r(() => [u(D, { ref: "orgResultTreeRef", data: e2.selectDepts, "node-key": "nodeId", "check-on-click-node": "" }, { default: r(({ node: e3, data: t3 }) => [i("div", p, [i("div", f, d(t3.name), 1), i("div", { class: "item-side", onClick: (e4) => {
10
- y("removeDept", t3);
11
- } }, [u(g, null, { default: r(() => [u(s(c))]), _: 1 })], 8, v)])]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["modelValue"]);
11
+ g("removeDept", t3);
12
+ } }, [u(y2, null, { default: r(() => [u(s(c))]), _: 1 })], 8, v)])]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["modelValue"]);
12
13
  };
13
14
  } });
14
15
  export {
@@ -1,13 +1,14 @@
1
- import { defineComponent as e, ref as l, resolveComponent as o, openBlock as r, createBlock as t, unref as a, isRef as i, withCtx as n, createElementVNode as s, toDisplayString as c, createCommentVNode as p } from "vue";
1
+ import { defineComponent as e, ref as l, resolveComponent as o, openBlock as r, createBlock as t, unref as a, isRef as n, withCtx as i, createElementVNode as s, toDisplayString as c, createCommentVNode as p } from "vue";
2
2
  import u from "./workgroup-tree-inline-app.vue.mjs";
3
3
  const m = { style: { "text-align": "center" } }, d = e({ name: "DepartmentTreeMobile", props: { multiple: {}, branchInfo: {}, selectWorkgroupInfo: {}, searchField: {}, separator: {}, limitFilterColumn: {} }, emits: ["close"], setup(e2, { emit: d2 }) {
4
- let f = l(true);
5
- function h(e3) {
6
- d2("close", e3), f.value = false;
4
+ const f = d2;
5
+ let h = l(true);
6
+ function I(e3) {
7
+ f("close", e3), h.value = false;
7
8
  }
8
- return (e3, l2) => {
9
- const d3 = o("el-drawer");
10
- return r(), t(d3, { modelValue: a(f), "onUpdate:modelValue": l2[0] || (l2[0] = (e4) => i(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: l2[1] || (l2[1] = (e4) => h()) }, { header: n(() => [s("div", m, c(e3.$t("imatrixUIMessage.pleaseSelect")), 1)]), default: n(() => [a(f) ? (r(), t(u, { key: 0, multiple: e3.multiple, branchInfo: e3.branchInfo, selectWorkgroupInfo: e3.selectWorkgroupInfo, searchField: e3.searchField, "limit-filter-column": e3.limitFilterColumn, separator: e3.separator, onClose: h }, null, 8, ["multiple", "branchInfo", "selectWorkgroupInfo", "searchField", "limit-filter-column", "separator"])) : p("", true)]), _: 1 }, 8, ["modelValue"]);
9
+ return (l2, d3) => {
10
+ const f2 = o("el-drawer");
11
+ return r(), t(f2, { modelValue: a(h), "onUpdate:modelValue": d3[0] || (d3[0] = (e3) => n(h) ? h.value = e3 : h = 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) => I()) }, { header: i(() => [s("div", m, c(l2.$t("imatrixUIMessage.pleaseSelect")), 1)]), default: i(() => [a(h) ? (r(), t(u, { key: 0, multiple: e2.multiple, branchInfo: e2.branchInfo, selectWorkgroupInfo: e2.selectWorkgroupInfo, searchField: e2.searchField, "limit-filter-column": e2.limitFilterColumn, separator: e2.separator, onClose: I }, null, 8, ["multiple", "branchInfo", "selectWorkgroupInfo", "searchField", "limit-filter-column", "separator"])) : p("", true)]), _: 1 }, 8, ["modelValue"]);
11
12
  };
12
13
  } });
13
14
  export {
@@ -7,101 +7,101 @@ import { ElMessage as _ } from "element-plus";
7
7
  import { useI18n as C } from "vue-i18n";
8
8
  import R from "../../utils/utils.mjs";
9
9
  import O from "../../src/assets/nonemessage.png.mjs";
10
- const T = { style: { display: "flex" } }, V = { style: { flex: "0 0 20%", "text-align": "left" } }, N = { style: { flex: "0 0 80%", "text-align": "right" } }, S = { class: "item-row" }, U = { class: "item-label" }, $ = { style: { display: "flex" } }, E = { key: 0 }, K = { style: { "padding-left": "10px" } }, P = { key: 1 }, j = { class: "button-area" }, J = e({ __name: "workgroup-tree-inline-app", props: { multiple: {}, branchInfo: {}, selectWorkgroupInfo: {}, searchField: {}, separator: {}, limitFilterColumn: {} }, emits: ["close"], setup(e2, { emit: J2 }) {
11
- const B = e2, D = l(null);
12
- let M = l(null), W = l(false), q = l(null), z = l([]);
10
+ const T = { style: { display: "flex" } }, V = { style: { flex: "0 0 20%", "text-align": "left" } }, N = { style: { flex: "0 0 80%", "text-align": "right" } }, S = { class: "item-row" }, U = { class: "item-label" }, $ = { style: { display: "flex" } }, E = { key: 0 }, P = { style: { "padding-left": "10px" } }, j = { key: 1 }, K = { class: "button-area" }, J = e({ __name: "workgroup-tree-inline-app", props: { multiple: {}, branchInfo: {}, selectWorkgroupInfo: {}, searchField: {}, separator: {}, limitFilterColumn: {} }, emits: ["close"], setup(e2, { emit: J2 }) {
11
+ const B = e2, D = J2, M = l(null);
12
+ let W = l(null), q = l(false), z = l(null), A = l([]);
13
13
  l([]);
14
- let A = l([]);
14
+ let F = l([]);
15
15
  l([]), l([]);
16
- let F = l([]), G = l(null), H = l(false), L = l({ searchValue: null, treeType: "GROUP_TREE", departmentInfo: null });
17
- const { t: Q } = C();
18
- function X() {
16
+ let G = l([]), H = l(null), L = l(false), Q = l({ searchValue: null, treeType: "GROUP_TREE", departmentInfo: null });
17
+ const { t: X } = C();
18
+ function Y() {
19
19
  R.canShowOrgTree().then((e3) => {
20
20
  e3 ? I(B.branchInfo, -1).then((e4) => {
21
- z.value = e4, w(A.value, F.value);
22
- }) : z.value = [];
21
+ A.value = e4, w(F.value, G.value);
22
+ }) : A.value = [];
23
23
  });
24
24
  }
25
- function Y(e3, l2, t2) {
26
- B.multiple && (l2 ? ee(e3) : le(e3));
25
+ function Z(e3, l2, t2) {
26
+ B.multiple && (l2 ? le(e3) : te(e3));
27
27
  }
28
- function Z(e3, l2, t2, a2) {
29
- !B.multiple && e3.nodeType && "WORKGROUP" === e3.nodeType && (A.value = [e3]);
30
- }
31
- function ee(e3) {
32
- if (A.value, e3.nodeType && "WORKGROUP" === e3.nodeType) {
33
- const l2 = A.value.filter((l3) => l3.nodeId === e3.nodeId);
34
- l2 && 0 !== l2.length || A.value.push(JSON.parse(JSON.stringify(e3)));
35
- }
28
+ function ee(e3, l2, t2, a2) {
29
+ !B.multiple && e3.nodeType && "WORKGROUP" === e3.nodeType && (F.value = [e3]);
36
30
  }
37
31
  function le(e3) {
38
- const l2 = A.value.findIndex((l3) => l3.nodeId === e3.nodeId);
39
- A.value, void 0 !== l2 && -1 !== l2 && A.value.splice(l2, 1), H.value = false;
32
+ if (F.value, e3.nodeType && "WORKGROUP" === e3.nodeType) {
33
+ const l2 = F.value.filter((l3) => l3.nodeId === e3.nodeId);
34
+ l2 && 0 !== l2.length || F.value.push(JSON.parse(JSON.stringify(e3)));
35
+ }
40
36
  }
41
37
  function te(e3) {
38
+ const l2 = F.value.findIndex((l3) => l3.nodeId === e3.nodeId);
39
+ F.value, void 0 !== l2 && -1 !== l2 && F.value.splice(l2, 1), L.value = false;
40
+ }
41
+ function ae(e3) {
42
42
  if (B.multiple)
43
43
  if (e3) {
44
- const e4 = z.value.map((e5) => e5.nodeId);
45
- D.value.setCheckedKeys(e4, false), z.value.forEach((e5) => {
46
- ee(e5);
44
+ const e4 = A.value.map((e5) => e5.nodeId);
45
+ M.value.setCheckedKeys(e4, false), A.value.forEach((e5) => {
46
+ le(e5);
47
47
  });
48
48
  } else
49
- z.value.forEach((e4) => {
50
- le(e4);
51
- }), D.value.setCheckedKeys([], false);
49
+ A.value.forEach((e4) => {
50
+ te(e4);
51
+ }), M.value.setCheckedKeys([], false);
52
52
  }
53
- function ae() {
54
- G.value.showResult();
53
+ function ne() {
54
+ H.value.showResult();
55
55
  }
56
- function ne(e3) {
57
- const l2 = A.value.filter((l3) => l3.nodeId === e3.nodeId);
56
+ function oe(e3) {
57
+ const l2 = F.value.filter((l3) => l3.nodeId === e3.nodeId);
58
58
  if (l2 && l2.length > 0) {
59
59
  const l3 = [];
60
- A.value.forEach((t2) => {
60
+ F.value.forEach((t2) => {
61
61
  t2.nodeId !== e3.nodeId && l3.push(t2.nodeId);
62
- }), D.value.setCheckedKeys(l3, true);
62
+ }), M.value.setCheckedKeys(l3, true);
63
63
  }
64
- le(e3);
64
+ te(e3);
65
65
  }
66
- function oe() {
66
+ function se() {
67
67
  if (B.multiple) {
68
68
  let e3 = { ids: [], names: [], codes: [], workgroups: [] };
69
- A.value.forEach((l3) => {
69
+ F.value.forEach((l3) => {
70
70
  let t2;
71
71
  t2 = null !== l3.data && void 0 !== l3.data ? JSON.parse(l3.data) : l3, function(e4, l4, t3) {
72
- e4.ids.push(l4.id), e4.codes.push(t3.code), e4.containBranch = W.value, t3.tenantCode = M.value.code, t3.tenantName = M.value.tenantName, e4.workgroups.push(t3);
72
+ e4.ids.push(l4.id), e4.codes.push(t3.code), e4.containBranch = q.value, t3.tenantCode = W.value.code, t3.tenantName = W.value.tenantName, e4.workgroups.push(t3);
73
73
  const a2 = t3.name;
74
74
  e4.names.push(a2);
75
75
  }(e3, l3, t2);
76
76
  });
77
77
  let l2 = { ids: [], names: [], codes: [], workgroups: [] };
78
- Object.assign(l2, e3), l2.ids.length > 0 ? J2("close", l2) : _({ message: Q("imatrixUIMessage.pleaseSelectDepartment"), type: "warning" });
78
+ Object.assign(l2, e3), l2.ids.length > 0 ? D("close", l2) : _({ message: X("imatrixUIMessage.pleaseSelectDepartment"), type: "warning" });
79
79
  } else {
80
- const e3 = A.value[0], l2 = JSON.parse(e3.data), t2 = e3.name;
81
- l2.tenantName = M.value.tenantName, l2.tenantCode = M.value.code;
82
- const a2 = { id: e3.id, name: t2, code: l2.code, containBranch: W.value, workgroup: l2 };
83
- J2("close", a2);
80
+ const e3 = F.value[0], l2 = JSON.parse(e3.data), t2 = e3.name;
81
+ l2.tenantName = W.value.tenantName, l2.tenantCode = W.value.code;
82
+ const a2 = { id: e3.id, name: t2, code: l2.code, containBranch: q.value, workgroup: l2 };
83
+ D("close", a2);
84
84
  }
85
85
  }
86
- function se() {
87
- L.value.searchValue ? (L.value.searchValue = L.value.searchValue.trim(), L.value.departmentInfo = B.branchInfo, window.$vueApp.config.globalProperties.$http.post(window.$vueApp.config.globalProperties.baseAPI + "/component/organization-trees/search-mobile-workgroups", L.value).then((e3) => {
88
- e3 ? (0 === e3.length && _({ message: Q("imatrixUIMessage.queryResultIsEmpty"), type: "warning" }), z.value = e3) : _({ message: Q("imatrixUIMessage.queryResultIsEmpty"), type: "warning" });
89
- })) : X();
86
+ function ue() {
87
+ Q.value.searchValue ? (Q.value.searchValue = Q.value.searchValue.trim(), Q.value.departmentInfo = B.branchInfo, window.$vueApp.config.globalProperties.$http.post(window.$vueApp.config.globalProperties.baseAPI + "/component/organization-trees/search-mobile-workgroups", Q.value).then((e3) => {
88
+ e3 ? (0 === e3.length && _({ message: X("imatrixUIMessage.queryResultIsEmpty"), type: "warning" }), A.value = e3) : _({ message: X("imatrixUIMessage.queryResultIsEmpty"), type: "warning" });
89
+ })) : Y();
90
90
  }
91
91
  return t(() => {
92
92
  y(B.searchField, B.selectWorkgroupInfo, B.separator).then((e3) => {
93
- A.value = e3, k().then((e4) => {
93
+ F.value = e3, k().then((e4) => {
94
94
  const l2 = e4[0].data;
95
- M.value = JSON.parse(l2), W.value = e4[0].containBranch, q.value = e4[0].name, X();
95
+ W.value = JSON.parse(l2), q.value = e4[0].containBranch, z.value = e4[0].name, Y();
96
96
  });
97
97
  }), function() {
98
98
  const e3 = document.querySelector(".org-tree");
99
99
  let l2 = b();
100
100
  l2 = l2 - 110 - 60 - 60 - 60, e3.style.height = l2 + "px", e3.style.minHeight = "300px";
101
101
  }();
102
- }), (e3, l2) => {
103
- const t2 = a("el-checkbox"), y2 = a("el-icon"), k2 = a("el-input"), I2 = a("el-col"), w2 = a("el-row"), b2 = a("el-card"), _2 = a("el-breadcrumb-item"), C2 = a("el-breadcrumb"), R2 = a("el-empty"), J3 = a("el-tree"), B2 = a("el-button");
104
- return n(), o("div", null, [s(b2, { class: "card-content", style: { height: "50px" } }, { default: u(() => [s(w2, { class: "item-row item-row-all" }, { default: u(() => [s(I2, { style: { width: "100%" } }, { default: u(() => [r("div", T, [r("div", V, [e3.multiple ? (n(), i(t2, { key: 0, modelValue: c(H), "onUpdate:modelValue": l2[0] || (l2[0] = (e4) => d(H) ? H.value = e4 : H = e4), label: e3.$t("departmentTreeInline.allCheck"), value: "all", onChange: te }, null, 8, ["modelValue", "label"])) : p("", true)]), r("div", N, [s(k2, { modelValue: c(L).searchValue, "onUpdate:modelValue": l2[1] || (l2[1] = (e4) => c(L).searchValue = e4), placeholder: e3.$t("departmentTreeInline.pleaseInputNameOrCode"), onClear: se, onKeyup: m(se, ["enter"]), onBlur: se, clearable: "" }, { suffix: u(() => [s(y2, { onClick: se }, { default: u(() => [s(c(v))]), _: 1 })]), _: 1 }, 8, ["modelValue", "placeholder", "onKeyup"])])])]), _: 1 })]), _: 1 })]), _: 1 }), c(q) ? (n(), i(b2, { key: 0, class: "card-content", style: { height: "40px" } }, { default: u(() => [s(w2, { class: "item-row item-row-all" }, { default: u(() => [s(I2, { class: "item-label dept-path" }, { default: u(() => [s(C2, { separator: "/" }, { default: u(() => [s(_2, null, { default: u(() => [r("span", null, f(c(q)), 1)]), _: 1 })]), _: 1 })]), _: 1 })]), _: 1 })]), _: 1 })) : p("", true), s(b2, { class: "card-content org-tree", style: { overflow: "auto" } }, { default: u(() => [c(z).length ? (n(), i(J3, { key: 1, ref_key: "orgTreeRef", ref: D, data: c(z), "show-checkbox": e3.multiple, "node-key": "nodeId", "check-on-click-node": "", "default-checked-keys": c(F), onCheckChange: Y, onNodeClick: Z }, { default: u(({ node: e4, data: l3 }) => [r("div", S, [r("div", U, f(l3.name), 1)])]), _: 1 }, 8, ["data", "show-checkbox", "default-checked-keys"])) : (n(), i(R2, { key: 0, image: c(O) }, null, 8, ["image"]))]), _: 1 }), s(b2, { class: "card-footer" }, { default: u(() => [r("div", $, [r("div", { class: "select-result", onClick: ae }, [e3.multiple ? (n(), o("span", { key: 0, onClick: ae }, [c(A).length > 0 ? (n(), o("span", E, [h(f(e3.$t("departmentTreeInline.selectResultInfoHasSelect")) + f(e3.$t("workgroupTree.selectResultInfo", { num: c(A).length })) + " ", 1), r("span", K, [s(y2, null, { default: u(() => [s(c(g))]), _: 1 })])])) : p("", true)])) : c(A).length > 0 ? (n(), o("span", P, f(e3.$t("departmentTreeInline.selectResultInfoHasSelect")) + f(c(A)[0].name), 1)) : p("", true)]), r("div", j, [s(B2, { size: "large", type: "primary", onClick: oe }, { default: u(() => [h(f(e3.$t("imatrixUIPublicModel.sure")), 1)]), _: 1 })])])]), _: 1 }), s(x, { ref_key: "deptResultRef", ref: G, selectDepts: c(A), onRemoveDept: ne }, null, 8, ["selectDepts"])]);
102
+ }), (l2, t2) => {
103
+ const y2 = a("el-checkbox"), k2 = a("el-icon"), I2 = a("el-input"), w2 = a("el-col"), b2 = a("el-row"), _2 = a("el-card"), C2 = a("el-breadcrumb-item"), R2 = a("el-breadcrumb"), J3 = a("el-empty"), B2 = a("el-tree"), D2 = a("el-button");
104
+ return n(), o("div", null, [s(_2, { class: "card-content", style: { height: "50px" } }, { default: u(() => [s(b2, { class: "item-row item-row-all" }, { default: u(() => [s(w2, { style: { width: "100%" } }, { default: u(() => [r("div", T, [r("div", V, [e2.multiple ? (n(), i(y2, { key: 0, modelValue: c(L), "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => d(L) ? L.value = e3 : L = e3), label: l2.$t("departmentTreeInline.allCheck"), value: "all", onChange: ae }, null, 8, ["modelValue", "label"])) : p("", true)]), r("div", N, [s(I2, { modelValue: c(Q).searchValue, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => c(Q).searchValue = e3), placeholder: l2.$t("departmentTreeInline.pleaseInputNameOrCode"), onClear: ue, onKeyup: m(ue, ["enter"]), onBlur: ue, clearable: "" }, { suffix: u(() => [s(k2, { onClick: ue }, { default: u(() => [s(c(v))]), _: 1 })]), _: 1 }, 8, ["modelValue", "placeholder"])])])]), _: 1 })]), _: 1 })]), _: 1 }), c(z) ? (n(), i(_2, { key: 0, class: "card-content", style: { height: "40px" } }, { default: u(() => [s(b2, { class: "item-row item-row-all" }, { default: u(() => [s(w2, { class: "item-label dept-path" }, { default: u(() => [s(R2, { separator: "/" }, { default: u(() => [s(C2, null, { default: u(() => [r("span", null, f(c(z)), 1)]), _: 1 })]), _: 1 })]), _: 1 })]), _: 1 })]), _: 1 })) : p("", true), s(_2, { class: "card-content org-tree", style: { overflow: "auto" } }, { default: u(() => [c(A).length ? (n(), i(B2, { key: 1, ref_key: "orgTreeRef", ref: M, data: c(A), "show-checkbox": e2.multiple, "node-key": "nodeId", "check-on-click-node": "", "default-checked-keys": c(G), onCheckChange: Z, onNodeClick: ee }, { default: u(({ node: e3, data: l3 }) => [r("div", S, [r("div", U, f(l3.name), 1)])]), _: 1 }, 8, ["data", "show-checkbox", "default-checked-keys"])) : (n(), i(J3, { key: 0, image: c(O) }, null, 8, ["image"]))]), _: 1 }), s(_2, { class: "card-footer" }, { default: u(() => [r("div", $, [r("div", { class: "select-result", onClick: ne }, [e2.multiple ? (n(), o("span", { key: 0, onClick: ne }, [c(F).length > 0 ? (n(), o("span", E, [h(f(l2.$t("departmentTreeInline.selectResultInfoHasSelect")) + f(l2.$t("workgroupTree.selectResultInfo", { num: c(F).length })) + " ", 1), r("span", P, [s(k2, null, { default: u(() => [s(c(g))]), _: 1 })])])) : p("", true)])) : c(F).length > 0 ? (n(), o("span", j, f(l2.$t("departmentTreeInline.selectResultInfoHasSelect")) + f(c(F)[0].name), 1)) : p("", true)]), r("div", K, [s(D2, { size: "large", type: "primary", onClick: se }, { default: u(() => [h(f(l2.$t("imatrixUIPublicModel.sure")), 1)]), _: 1 })])])]), _: 1 }), s(x, { ref_key: "deptResultRef", ref: H, selectDepts: c(F), onRemoveDept: oe }, null, 8, ["selectDepts"])]);
105
105
  };
106
106
  } });
107
107
  export {
@@ -162,11 +162,11 @@ const S = { data: () => ({ filterText: "", defaultProps: { id: "id", label: "nam
162
162
  let s2 = t2.name;
163
163
  t2.enName && "" !== t2.enName && (s2 = s2 + "(" + t2.enName + ")"), t2.tenantCode = this.tenantInfo.code, t2.tenantName = this.tenantInfo.tenantName, e2.containBranch = this.containBranch, e2.users.push(t2), e2.userIds.push(t2.id), e2.loginNames.push(t2.loginName), e2.userNames.push(s2), e2.emails.push(t2.email), e2.telephones.push(t2.telephone);
164
164
  }
165
- }, filterUserId: (e2) => (t2) => t2 === e2.id, filterUserNode: (e2) => (t2) => t2.substring(t2.lastIndexOf("~") + 1) === e2.id + "" }, emits: ["result"] }, I = { key: 0, style: { "padding-top": "5px", overflow: "auto", width: "auto", display: "inline-block !important" } }, y = ["title"], w = { key: 1, style: { height: "100%", overflow: "hidden" } }, R = f("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), T = { style: { "text-align": "left", "font-size": "16px" } }, C = { style: "padding-top: 5px;height:90%;overflow: hidden;" };
166
- const b = U(S, [["render", function(e2, t2, s2, r2, l2, o2) {
167
- const i2 = n("el-button"), U2 = n("el-autocomplete"), S2 = n("el-header"), b2 = n("Menu"), x = n("Calendar"), v = n("el-icon"), W = n("el-tree"), $ = n("EmptyState"), V = n("workgroup-user-result"), O = n("el-main"), E = n("el-container"), _ = n("el-aside");
168
- return a(), h("div", null, [d(E, { style: { height: "395px" } }, { default: c(() => [d(_, { width: "430px" }, { default: c(() => [d(E, { style: { height: "390px" } }, { default: c(() => [d(S2, { style: { "text-align": "right", "font-size": "12px", height: "35px" } }, { default: c(() => [d(U2, { modelValue: l2.filterText, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => l2.filterText = e3), "fetch-suggestions": e2.querySearch, placeholder: e2.$t("departmentUserTree.pleaseEnterUserInformation"), "trigger-on-focus": false, class: "inline-input inline-input-custom", "select-when-unmatched": "", size: "default", onSelect: o2.handleSelect, onKeyup: u(o2.clickSearch, ["enter"]) }, { append: c(() => [d(i2, { icon: l2.ElIconSearch, onClick: o2.clickSearch }, null, 8, ["icon", "onClick"])]), _: 1 }, 8, ["modelValue", "fetch-suggestions", "placeholder", "onSelect", "onKeyup"])]), _: 1 }), d(O, { style: { padding: "10px" } }, { default: c(() => [l2.searchValue ? N("", true) : (a(), h(p, { key: 0 }, [l2.canShowOrgTree ? (a(), h("div", I, [d(W, { ref: "workgroupUserTree", "filter-node-method": o2.filterNode, load: e2.loadNode, props: l2.defaultProps, "show-checkbox": s2.multiple, lazy: "", "node-key": "nodeId", onCheck: o2.handleCheckNode, onNodeClick: o2.handleNodeClick }, { default: c(({ node: e3, data: t3 }) => [f("span", null, [d(v, null, { default: c(() => [-1 === e3.data.id ? (a(), m(b2, { key: 0 })) : (a(), m(x, { key: 1 }))]), _: 2 }, 1024), f("span", { class: g(t3.nodeType && "USER" === t3.nodeType && l2.searchValue && o2.filterUserVal(t3, l2.searchValue) ? "searchResult" : ""), title: e3.label }, k(e3.label), 11, y)])]), _: 1 }, 8, ["filter-node-method", "load", "props", "show-checkbox", "onCheck", "onNodeClick"])])) : (a(), m($, { key: 1, style: { width: "100%", height: "100%" } }))], 64)), l2.searchValue && l2.searchValue.length > 0 ? (a(), h("div", w, [d(V, { ref: "workgroupUserResult", "grid-data": l2.searchResult, height: e2.height, "is-search-result": true, multiple: s2.multiple, "select-result": l2.selectResult, onAddWorkgroupUser: o2.addWorkgroupUser, onResultRowDblclick: o2.resultRowDblclick, onSelectResult: o2.getSelectWorkgroupUser }, null, 8, ["grid-data", "height", "multiple", "select-result", "onAddWorkgroupUser", "onResultRowDblclick", "onSelectResult"])])) : N("", true)]), _: 1 })]), _: 1 })]), _: 1 }), s2.multiple ? (a(), m(E, { key: 0 }, { default: c(() => [d(_, { width: "2px" }, { default: c(() => [R]), _: 1 }), d(O, { style: { padding: "10px" } }, { default: c(() => [f("div", T, k(e2.$t("departmentUserTree.selectedPeople")) + "::", 1), f("div", C, [d(V, { "grid-data": l2.selectResult, height: e2.height, "is-search-result": false, multiple: s2.multiple, onRemoveWorkgroupUser: o2.removeWorkgroupUser, onResultRowDblclick: o2.resultRowDblclick, onSelectResult: o2.getSelectWorkgroupUser }, null, 8, ["grid-data", "height", "multiple", "onRemoveWorkgroupUser", "onResultRowDblclick", "onSelectResult"])])]), _: 1 })]), _: 1 })) : N("", true)]), _: 1 })]);
165
+ }, filterUserId: (e2) => (t2) => t2 === e2.id, filterUserNode: (e2) => (t2) => t2.substring(t2.lastIndexOf("~") + 1) === e2.id + "" }, emits: ["result"] }, I = { key: 0, style: { "padding-top": "5px", overflow: "auto", width: "auto", display: "inline-block !important" } }, y = ["title"], w = { key: 1, style: { height: "100%", overflow: "hidden" } }, R = { style: { "text-align": "left", "font-size": "16px" } }, T = { style: "padding-top: 5px;height:90%;overflow: hidden;" };
166
+ const C = U(S, [["render", function(e2, t2, s2, r2, l2, o2) {
167
+ const i2 = n("el-button"), U2 = n("el-autocomplete"), S2 = n("el-header"), C2 = n("Menu"), b = n("Calendar"), x = n("el-icon"), v = n("el-tree"), W = n("EmptyState"), $ = n("workgroup-user-result"), V = n("el-main"), O = n("el-container"), E = n("el-aside");
168
+ return a(), h("div", null, [d(O, { style: { height: "395px" } }, { default: c(() => [d(E, { width: "430px" }, { default: c(() => [d(O, { style: { height: "390px" } }, { default: c(() => [d(S2, { style: { "text-align": "right", "font-size": "12px", height: "35px" } }, { default: c(() => [d(U2, { modelValue: l2.filterText, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => l2.filterText = e3), "fetch-suggestions": e2.querySearch, placeholder: e2.$t("departmentUserTree.pleaseEnterUserInformation"), "trigger-on-focus": false, class: "inline-input inline-input-custom", "select-when-unmatched": "", size: "default", onSelect: o2.handleSelect, onKeyup: u(o2.clickSearch, ["enter"]) }, { append: c(() => [d(i2, { icon: l2.ElIconSearch, onClick: o2.clickSearch }, null, 8, ["icon", "onClick"])]), _: 1 }, 8, ["modelValue", "fetch-suggestions", "placeholder", "onSelect", "onKeyup"])]), _: 1 }), d(V, { style: { padding: "10px" } }, { default: c(() => [l2.searchValue ? N("", true) : (a(), h(p, { key: 0 }, [l2.canShowOrgTree ? (a(), h("div", I, [d(v, { ref: "workgroupUserTree", "filter-node-method": o2.filterNode, load: e2.loadNode, props: l2.defaultProps, "show-checkbox": s2.multiple, lazy: "", "node-key": "nodeId", onCheck: o2.handleCheckNode, onNodeClick: o2.handleNodeClick }, { default: c(({ node: e3, data: t3 }) => [f("span", null, [d(x, null, { default: c(() => [-1 === e3.data.id ? (a(), m(C2, { key: 0 })) : (a(), m(b, { key: 1 }))]), _: 2 }, 1024), f("span", { class: g(t3.nodeType && "USER" === t3.nodeType && l2.searchValue && o2.filterUserVal(t3, l2.searchValue) ? "searchResult" : ""), title: e3.label }, k(e3.label), 11, y)])]), _: 1 }, 8, ["filter-node-method", "load", "props", "show-checkbox", "onCheck", "onNodeClick"])])) : (a(), m(W, { key: 1, style: { width: "100%", height: "100%" } }))], 64)), l2.searchValue && l2.searchValue.length > 0 ? (a(), h("div", w, [d($, { ref: "workgroupUserResult", "grid-data": l2.searchResult, height: e2.height, "is-search-result": true, multiple: s2.multiple, "select-result": l2.selectResult, onAddWorkgroupUser: o2.addWorkgroupUser, onResultRowDblclick: o2.resultRowDblclick, onSelectResult: o2.getSelectWorkgroupUser }, null, 8, ["grid-data", "height", "multiple", "select-result", "onAddWorkgroupUser", "onResultRowDblclick", "onSelectResult"])])) : N("", true)]), _: 1 })]), _: 1 })]), _: 1 }), s2.multiple ? (a(), m(O, { key: 0 }, { default: c(() => [d(E, { width: "2px" }, { default: c(() => [...t2[1] || (t2[1] = [f("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 }), d(V, { style: { padding: "10px" } }, { default: c(() => [f("div", R, k(e2.$t("departmentUserTree.selectedPeople")) + "::", 1), f("div", T, [d($, { "grid-data": l2.selectResult, height: e2.height, "is-search-result": false, multiple: s2.multiple, onRemoveWorkgroupUser: o2.removeWorkgroupUser, onResultRowDblclick: o2.resultRowDblclick, onSelectResult: o2.getSelectWorkgroupUser }, null, 8, ["grid-data", "height", "multiple", "onRemoveWorkgroupUser", "onResultRowDblclick", "onSelectResult"])])]), _: 1 })]), _: 1 })) : N("", true)]), _: 1 })]);
169
169
  }]]);
170
170
  export {
171
- b as default
171
+ C as default
172
172
  };
@@ -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,13 +1,14 @@
1
1
  import { defineComponent as e, ref as r, resolveComponent as l, openBlock as o, createBlock as t, unref as s, isRef as a, withCtx as n, createElementVNode as c, toDisplayString as i, createCommentVNode as p } from "vue";
2
2
  import u from "./workgroup-user-tree-inline-app.vue.mjs";
3
3
  const m = { style: { "text-align": "center" } }, d = e({ name: "DepartmentUserTreeMobile", props: { multiple: {}, branchInfo: {}, selectUserInfo: {}, searchField: {}, separator: {} }, emits: ["close"], setup(e2, { emit: d2 }) {
4
- let f = r(true);
5
- function h(e3) {
6
- d2("close", e3), f.value = false;
4
+ const f = d2;
5
+ let h = r(true);
6
+ function I(e3) {
7
+ f("close", e3), h.value = false;
7
8
  }
8
- return (e3, r2) => {
9
- const d3 = l("el-drawer");
10
- return o(), t(d3, { modelValue: s(f), "onUpdate:modelValue": r2[0] || (r2[0] = (e4) => a(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: r2[1] || (r2[1] = (e4) => h()) }, { header: n(() => [c("div", m, i(e3.$t("imatrixUIMessage.pleaseSelect")), 1)]), default: n(() => [s(f) ? (o(), t(u, { key: 0, multiple: e3.multiple, branchInfo: e3.branchInfo, selectUserInfo: e3.selectUserInfo, searchField: e3.searchField, separator: e3.separator, onClose: h }, null, 8, ["multiple", "branchInfo", "selectUserInfo", "searchField", "separator"])) : p("", true)]), _: 1 }, 8, ["modelValue"]);
9
+ return (r2, d3) => {
10
+ const f2 = l("el-drawer");
11
+ return o(), t(f2, { modelValue: s(h), "onUpdate:modelValue": d3[0] || (d3[0] = (e3) => a(h) ? h.value = e3 : h = 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) => I()) }, { header: n(() => [c("div", m, i(r2.$t("imatrixUIMessage.pleaseSelect")), 1)]), default: n(() => [s(h) ? (o(), t(u, { key: 0, multiple: e2.multiple, branchInfo: e2.branchInfo, selectUserInfo: e2.selectUserInfo, searchField: e2.searchField, separator: e2.separator, onClose: I }, null, 8, ["multiple", "branchInfo", "selectUserInfo", "searchField", "separator"])) : p("", true)]), _: 1 }, 8, ["modelValue"]);
11
12
  };
12
13
  } });
13
14
  export {