ik-next-ui 0.0.1

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 (206) hide show
  1. package/dist/Demo/ik.index.es.js +8 -0
  2. package/dist/IkApprovalProcess/ik-next-ui.css +1 -0
  3. package/dist/IkApprovalProcess/ik.index.es.js +2610 -0
  4. package/dist/IkApprovalProcessDetail/ik-next-ui.css +1 -0
  5. package/dist/IkApprovalProcessDetail/ik.index.es.js +17033 -0
  6. package/dist/IkAutoCard/ik-next-ui.css +1 -0
  7. package/dist/IkAutoCard/ik.index.es.js +51 -0
  8. package/dist/IkBaseDialog/ik-next-ui.css +1 -0
  9. package/dist/IkBaseDialog/ik.index.es.js +1954 -0
  10. package/dist/IkBottomOperate/ik-next-ui.css +1 -0
  11. package/dist/IkBottomOperate/ik.index.es.js +241 -0
  12. package/dist/IkBtnContent/ik-next-ui.css +1 -0
  13. package/dist/IkBtnContent/ik.index.es.js +80 -0
  14. package/dist/IkCollapseCard/ik-next-ui.css +1 -0
  15. package/dist/IkCollapseCard/ik.index.es.js +1924 -0
  16. package/dist/IkCurrencyInput/ik.index.es.js +60 -0
  17. package/dist/IkDescription/ik-next-ui.css +1 -0
  18. package/dist/IkDescription/ik.index.es.js +16544 -0
  19. package/dist/IkDetailPreviewFiles/ik-next-ui.css +1 -0
  20. package/dist/IkDetailPreviewFiles/ik.index.es.js +16540 -0
  21. package/dist/IkDragList/ik-next-ui.css +1 -0
  22. package/dist/IkDragList/ik.index.es.js +445 -0
  23. package/dist/IkEmpty/ik-next-ui.css +1 -0
  24. package/dist/IkEmpty/ik.index.es.js +44 -0
  25. package/dist/IkFileIcon/ik.index.es.js +619 -0
  26. package/dist/IkHorizontalStepBar/ik-next-ui.css +1 -0
  27. package/dist/IkHorizontalStepBar/ik.index.es.js +279 -0
  28. package/dist/IkIconPicker/ik-next-ui.css +1 -0
  29. package/dist/IkIconPicker/ik.index.es.js +2060 -0
  30. package/dist/IkImageUploadEditor/ik-next-ui.css +9 -0
  31. package/dist/IkImageUploadEditor/ik.index.es.js +9489 -0
  32. package/dist/IkImageViewer/ik.index.es.js +552 -0
  33. package/dist/IkMonacoEditor/ik-next-ui.css +1 -0
  34. package/dist/IkMonacoEditor/ik.index.es.js +2566 -0
  35. package/dist/IkOnlyOffice/ik.index.es.js +1612 -0
  36. package/dist/IkPage/ik.index.es.js +1 -0
  37. package/dist/IkPickerUser/ik-next-ui.css +1 -0
  38. package/dist/IkPickerUser/ik.index.es.js +2077 -0
  39. package/dist/IkPlayer/ik-next-ui.css +1 -0
  40. package/dist/IkPlayer/ik.index.es.js +11071 -0
  41. package/dist/IkPreviewFile/ik-next-ui.css +1 -0
  42. package/dist/IkPreviewFile/ik.index.es.js +16385 -0
  43. package/dist/IkPreviewFileDialog/ik-next-ui.css +1 -0
  44. package/dist/IkPreviewFileDialog/ik.index.es.js +15486 -0
  45. package/dist/IkRadioGroup/ik-next-ui.css +1 -0
  46. package/dist/IkRadioGroup/ik.index.es.js +1937 -0
  47. package/dist/IkSelectTag/ik-next-ui.css +1 -0
  48. package/dist/IkSelectTag/ik.index.es.js +359 -0
  49. package/dist/IkSideText/ik-next-ui.css +1 -0
  50. package/dist/IkSideText/ik.index.es.js +2084 -0
  51. package/dist/IkStatu/ik-next-ui.css +1 -0
  52. package/dist/IkStatu/ik.index.es.js +131 -0
  53. package/dist/IkStatuOver/ik-next-ui.css +1 -0
  54. package/dist/IkStatuOver/ik.index.es.js +284 -0
  55. package/dist/IkSvgIcon/ik-next-ui.css +1 -0
  56. package/dist/IkSvgIcon/ik.index.es.js +1845 -0
  57. package/dist/IkTemplateOfficeConfig/ik-next-ui.css +1 -0
  58. package/dist/IkTemplateOfficeConfig/ik.index.es.js +2027 -0
  59. package/dist/IkTinymce/ik-next-ui.css +1 -0
  60. package/dist/IkTinymce/ik.index.es.js +50349 -0
  61. package/dist/IkTooltip/ik.index.es.js +48 -0
  62. package/dist/IkTree/ik-next-ui.css +1 -0
  63. package/dist/IkTree/ik.index.es.js +136 -0
  64. package/dist/IkUploadFile/ik-next-ui.css +1 -0
  65. package/dist/IkUploadFile/ik.index.es.js +17251 -0
  66. package/dist/IkUploadImage/ik-next-ui.css +1 -0
  67. package/dist/IkUploadImage/ik.index.es.js +2946 -0
  68. package/dist/IkVerticalStepBar/ik-next-ui.css +1 -0
  69. package/dist/IkVerticalStepBar/ik.index.es.js +1987 -0
  70. package/dist/Provider/ik.index.es.js +42 -0
  71. package/dist/ik-next-ui.css +9 -0
  72. package/dist/index.es.js +84696 -0
  73. package/dist/index.umd.js +371 -0
  74. package/dist/resolver.cjs +1 -0
  75. package/dist/resolver.js +63 -0
  76. package/dist/src/components/Demo/index.d.ts +4 -0
  77. package/dist/src/components/IkApprovalProcess/index.d.ts +100 -0
  78. package/dist/src/components/IkApprovalProcess/src/IkApprovalProcess.vue.d.ts +100 -0
  79. package/dist/src/components/IkApprovalProcessDetail/index.d.ts +108 -0
  80. package/dist/src/components/IkApprovalProcessDetail/src/IkApprovalProcessDetail.vue.d.ts +109 -0
  81. package/dist/src/components/IkAutoCard/index.d.ts +60 -0
  82. package/dist/src/components/IkAutoCard/src/IkAutoCard.vue.d.ts +43 -0
  83. package/dist/src/components/IkBaseDialog/index.d.ts +141 -0
  84. package/dist/src/components/IkBaseDialog/src/CloseIcon.vue.d.ts +23 -0
  85. package/dist/src/components/IkBaseDialog/src/IkBaseDialog.vue.d.ts +87 -0
  86. package/dist/src/components/IkBottomOperate/index.d.ts +155 -0
  87. package/dist/src/components/IkBottomOperate/src/IkBottomOperate.vue.d.ts +84 -0
  88. package/dist/src/components/IkCollapseCard/index.d.ts +59 -0
  89. package/dist/src/components/IkCollapseCard/src/index.vue.d.ts +36 -0
  90. package/dist/src/components/IkCurrencyInput/index.d.ts +25 -0
  91. package/dist/src/components/IkCurrencyInput/src/IkCurrencyInput.vue.d.ts +25 -0
  92. package/dist/src/components/IkDescription/index.d.ts +235 -0
  93. package/dist/src/components/IkDescription/src/IkDescription.vue.d.ts +146 -0
  94. package/dist/src/components/IkDetailPreviewFiles/index.d.ts +52 -0
  95. package/dist/src/components/IkDetailPreviewFiles/src/IkDetailPreviewFiles.vue.d.ts +53 -0
  96. package/dist/src/components/IkDragList/index.d.ts +509 -0
  97. package/dist/src/components/IkDragList/src/IkDragList.vue.d.ts +307 -0
  98. package/dist/src/components/IkDragList/src/default-props.d.ts +150 -0
  99. package/dist/src/components/IkEmpty/index.d.ts +69 -0
  100. package/dist/src/components/IkEmpty/src/index.vue.d.ts +41 -0
  101. package/dist/src/components/IkFileIcon/index.d.ts +40 -0
  102. package/dist/src/components/IkFileIcon/src/IkFileIcon.vue.d.ts +42 -0
  103. package/dist/src/components/IkHorizontalStepBar/index.d.ts +224 -0
  104. package/dist/src/components/IkHorizontalStepBar/src/IkHorizontalStepBar.vue.d.ts +137 -0
  105. package/dist/src/components/IkIconPicker/index.d.ts +83 -0
  106. package/dist/src/components/IkIconPicker/src/index.vue.d.ts +83 -0
  107. package/dist/src/components/IkImageUploadEditor/index.d.ts +231 -0
  108. package/dist/src/components/IkImageUploadEditor/src/IkImageUploadEditor.vue.d.ts +232 -0
  109. package/dist/src/components/IkImageViewer/index.d.ts +6 -0
  110. package/dist/src/components/IkImageViewer/src/IkImageViewer.vue.d.ts +11 -0
  111. package/dist/src/components/IkImageViewer/src/image-viewer.d.ts +87 -0
  112. package/dist/src/components/IkMonacoEditor/index.d.ts +229 -0
  113. package/dist/src/components/IkMonacoEditor/src/editor-config.d.ts +10 -0
  114. package/dist/src/components/IkMonacoEditor/src/index.vue.d.ts +232 -0
  115. package/dist/src/components/IkOnlyOffice/index.d.ts +32 -0
  116. package/dist/src/components/IkOnlyOffice/src/IkOnlyOffice.vue.d.ts +32 -0
  117. package/dist/src/components/IkPage/index.d.ts +0 -0
  118. package/dist/src/components/IkPickerUser/index.d.ts +373 -0
  119. package/dist/src/components/IkPickerUser/src/avatar/Avatar.vue.d.ts +41 -0
  120. package/dist/src/components/IkPickerUser/src/default.d.ts +156 -0
  121. package/dist/src/components/IkPickerUser/src/list/GroupList.vue.d.ts +112 -0
  122. package/dist/src/components/IkPickerUser/src/list/PostList.vue.d.ts +110 -0
  123. package/dist/src/components/IkPickerUser/src/list/RoleList.vue.d.ts +110 -0
  124. package/dist/src/components/IkPickerUser/src/list/props.d.ts +49 -0
  125. package/dist/src/components/IkPickerUser/src/list/utils.d.ts +5 -0
  126. package/dist/src/components/IkPickerUser/src/picker.vue.d.ts +375 -0
  127. package/dist/src/components/IkPickerUser/src/svg/close_svg.vue.d.ts +2 -0
  128. package/dist/src/components/IkPickerUser/src/svg/group_svg.vue.d.ts +2 -0
  129. package/dist/src/components/IkPickerUser/src/svg/post_svg.vue.d.ts +2 -0
  130. package/dist/src/components/IkPickerUser/src/svg/role_svg.vue.d.ts +2 -0
  131. package/dist/src/components/IkPickerUser/src/svg/search_svg.vue.d.ts +2 -0
  132. package/dist/src/components/IkPickerUser/src/use-picker-data.d.ts +15 -0
  133. package/dist/src/components/IkPickerUser/types.d.ts +28 -0
  134. package/dist/src/components/IkPlayer/index.d.ts +82 -0
  135. package/dist/src/components/IkPlayer/src/Player.vue.d.ts +48 -0
  136. package/dist/src/components/IkPreviewFile/index.d.ts +382 -0
  137. package/dist/src/components/IkPreviewFile/src/IkPreviewFile.vue.d.ts +231 -0
  138. package/dist/src/components/IkPreviewFileDialog/index.d.ts +80 -0
  139. package/dist/src/components/IkPreviewFileDialog/src/IkPreviewFileDialog.vue.d.ts +82 -0
  140. package/dist/src/components/IkRadioGroup/index.d.ts +30 -0
  141. package/dist/src/components/IkRadioGroup/src/index.vue.d.ts +32 -0
  142. package/dist/src/components/IkSelectTag/index.d.ts +85 -0
  143. package/dist/src/components/IkSelectTag/src/index.vue.d.ts +49 -0
  144. package/dist/src/components/IkSideText/IkLinearIcon.vue.d.ts +32 -0
  145. package/dist/src/components/IkSideText/IkSideText.vue.d.ts +115 -0
  146. package/dist/src/components/IkSideText/index.d.ts +113 -0
  147. package/dist/src/components/IkSideText/useLinear.d.ts +3 -0
  148. package/dist/src/components/IkStatu/index.d.ts +117 -0
  149. package/dist/src/components/IkStatu/src/index.vue.d.ts +119 -0
  150. package/dist/src/components/IkStatuOver/index.d.ts +36 -0
  151. package/dist/src/components/IkStatuOver/src/index.vue.d.ts +52 -0
  152. package/dist/src/components/IkSvgIcon/index.d.ts +135 -0
  153. package/dist/src/components/IkSvgIcon/src/index.vue.d.ts +146 -0
  154. package/dist/src/components/IkTemplateOfficeConfig/index.d.ts +130 -0
  155. package/dist/src/components/IkTemplateOfficeConfig/src/IkTemplateOfficeConfig.vue.d.ts +130 -0
  156. package/dist/src/components/IkTemplateOfficeConfig/src/templateOfficeData.vue.d.ts +57 -0
  157. package/dist/src/components/IkTinymce/index.d.ts +215 -0
  158. package/dist/src/components/IkTinymce/src/index.vue.d.ts +216 -0
  159. package/dist/src/components/IkTooltip/index.d.ts +84 -0
  160. package/dist/src/components/IkTooltip/src/index.vue.d.ts +52 -0
  161. package/dist/src/components/IkTree/IkTree.vue.d.ts +1597 -0
  162. package/dist/src/components/IkTree/index.d.ts +4693 -0
  163. package/dist/src/components/IkUploadFile/index.d.ts +586 -0
  164. package/dist/src/components/IkUploadFile/src/components/ErrorFileItem.vue.d.ts +27 -0
  165. package/dist/src/components/IkUploadFile/src/components/FileItemCard.vue.d.ts +85 -0
  166. package/dist/src/components/IkUploadFile/src/components/FileItemDefault.vue.d.ts +103 -0
  167. package/dist/src/components/IkUploadFile/src/components/FileItemSimple.vue.d.ts +68 -0
  168. package/dist/src/components/IkUploadFile/src/components/FileItemSimpleIcon.vue.d.ts +112 -0
  169. package/dist/src/components/IkUploadFile/src/components/UploadTriggerButton.vue.d.ts +59 -0
  170. package/dist/src/components/IkUploadFile/src/components/UploadTriggerCard.vue.d.ts +90 -0
  171. package/dist/src/components/IkUploadFile/src/hooks/useFileInfo.d.ts +35 -0
  172. package/dist/src/components/IkUploadFile/src/hooks/useFileOperations.d.ts +32 -0
  173. package/dist/src/components/IkUploadFile/src/hooks/useUploadFile.d.ts +35 -0
  174. package/dist/src/components/IkUploadFile/src/index.vue.d.ts +349 -0
  175. package/dist/src/components/IkUploadFile/src/types/index.d.ts +133 -0
  176. package/dist/src/components/IkUploadFile/src/utils.d.ts +0 -0
  177. package/dist/src/components/IkUploadImage/index.d.ts +287 -0
  178. package/dist/src/components/IkUploadImage/src/index.vue.d.ts +171 -0
  179. package/dist/src/components/IkUploadImage/src/loading.vue.d.ts +2 -0
  180. package/dist/src/components/IkVerticalStepBar/index.d.ts +79 -0
  181. package/dist/src/components/IkVerticalStepBar/src/IkVerticalStepBar.vue.d.ts +81 -0
  182. package/dist/src/components/Provider/ProviderConfig.vue.d.ts +59 -0
  183. package/dist/src/components/Provider/index.d.ts +99 -0
  184. package/dist/src/components/index.d.ts +37 -0
  185. package/dist/src/components-dev/IkUmoEditor/index.d.ts +322 -0
  186. package/dist/src/components-dev/IkUmoEditor/src/props.d.ts +138 -0
  187. package/dist/src/components-dev/IkUmoEditor/src/types.d.ts +78 -0
  188. package/dist/src/components-dev/IkUmoViewer/index.d.ts +168 -0
  189. package/dist/src/components-dev/IkUmoViewer/src/props.d.ts +85 -0
  190. package/dist/src/components-dev/IkUmoViewer/src/types.d.ts +13 -0
  191. package/dist/src/enum/search.d.ts +88 -0
  192. package/dist/src/iking-ui/component.d.ts +4 -0
  193. package/dist/src/iking-ui/defaults.d.ts +4 -0
  194. package/dist/src/iking-ui/index.d.ts +6 -0
  195. package/dist/src/iking-ui/make-installer.d.ts +5 -0
  196. package/dist/src/iking-ui/resolver.d.ts +16 -0
  197. package/dist/src/utils/approval.d.ts +10 -0
  198. package/dist/src/utils/file.d.ts +27 -0
  199. package/dist/src/utils/index.d.ts +12 -0
  200. package/dist/src/utils/install.d.ts +6 -0
  201. package/dist/src/utils/math.d.ts +3 -0
  202. package/dist/src/utils/object.d.ts +4 -0
  203. package/dist/src/utils/theme.d.ts +1 -0
  204. package/dist/src/utils/typescript.d.ts +6 -0
  205. package/dist/src/utils/use-provider.d.ts +15 -0
  206. package/package.json +236 -0
@@ -0,0 +1,2610 @@
1
+ import { inject as fe, computed as I, openBlock as s, createElementBlock as f, createElementVNode as n, defineComponent as de, resolveComponent as te, createBlock as E, toDisplayString as T, createCommentVNode as g, ref as _, watch as J, Fragment as N, unref as k, withCtx as S, createTextVNode as ee, createVNode as C, renderList as Q, normalizeClass as re, toRef as st, reactive as Te, nextTick as Le, watchEffect as Ee, normalizeStyle as Fe, withModifiers as Ae, withDirectives as ye, vShow as ot, mergeProps as Ve } from "vue";
2
+ import { ikStore as pe, _ as z } from "iking-utils-pro";
3
+ import Re from "vuedraggable";
4
+ import { ElCheckbox as ue, ElCheckboxGroup as be, ElRadioGroup as Ce, ElRadio as Ue, ElDialog as nt, ElInput as it, ElBreadcrumb as rt, ElBreadcrumbItem as pt, vLoading as Pe, ElButton as ke } from "element-plus";
5
+ import ut from "axios";
6
+ const Me = (d, v) => (d.install = (e) => {
7
+ for (const l of [d, ...Object.values({})])
8
+ e.component(l.name, l);
9
+ }, d), X = (d, v) => {
10
+ const e = d.__vccOpts || d;
11
+ for (const [l, b] of v)
12
+ e[l] = b;
13
+ return e;
14
+ }, dt = (d, v) => {
15
+ if (!v) return "";
16
+ const e = /(\/api\/server\/oss\/download\?fileUrl=)(.*)(\/api\/server\/oss\/download\?fileUrl=)/;
17
+ return v.startsWith("http") ? v.replace(e, "$1$2") : `${d || location.origin}${v}`.replace(e, "$1$2");
18
+ }, ct = (d) => ({
19
+ // ================all================
20
+ nodeType: {
21
+ 发起人节点: "INITIATOR",
22
+ 审批节点: "APPROVE",
23
+ 抄送节点: "CARBON_COPY",
24
+ 办理节点: "DISPOSE",
25
+ 分支节点: "BRANCH",
26
+ 条件节点: "CONDITION",
27
+ 结束节点: "END",
28
+ 并行分支: "PARALLEL",
29
+ 子流程: "SUB_PROCESS",
30
+ ...d.defaultNodeType
31
+ },
32
+ defaultFile: {
33
+ id: "id",
34
+ // id
35
+ parallelInstances: "parallelInstances",
36
+ // 并行分支
37
+ backToInstanceNodeName: "backToInstanceNodeName",
38
+ // 回退节点名称
39
+ backToRecordNodeName: "backToRecordNodeName",
40
+ // 回退记录节点名称 - old
41
+ nodeId: "sortOrder",
42
+ // 排序值
43
+ nodeType: "type",
44
+ // 节点类型
45
+ nodeTypeName: "name",
46
+ // 节点名称
47
+ approveStatus: "status",
48
+ approveStatusName: "statusName",
49
+ approveType: "approveType",
50
+ // 审批对象类别名称
51
+ multiExecutorType: "multiExecutorType",
52
+ // 多人审批方式类型
53
+ approveTypeName: "approveTypeName",
54
+ // 审批对象类别名称
55
+ multiExecutorTypeName: "multiExecutorTypeName",
56
+ // 多人审批方式名称
57
+ approvalCategory: "approvalCategory",
58
+ // 审批类型
59
+ isShowAdd: "initiatorSpecify",
60
+ //是否显示添加按钮
61
+ isShowAddCopy: "initiatorSpecifyCarbonCopy",
62
+ // 是否显示抄送人添加按钮
63
+ executorEmpty: "executorEmpty",
64
+ //实际审批人是否为空
65
+ executorEmptyStrategy: "executorEmptyStrategy",
66
+ //为空时的审批类型
67
+ reserveExecutorUsers: "reserveExecutorUsers",
68
+ //executorEmptyStrategy为指定审批人时
69
+ approvePersonList: "executorUsers",
70
+ // 审批执行者用户信息
71
+ initiatorSpecifiedScope: "initiatorSpecifiedScope",
72
+ //默认自选的人
73
+ initiatorSpecifiedScopeType: "initiatorSpecifiedScopeType",
74
+ //自选方式
75
+ singleApproval: "singleApproval",
76
+ //是否单选
77
+ originator: "username",
78
+ ...d.defaultFieldMap
79
+ },
80
+ // ================approval================
81
+ statusWithoutApprover: {
82
+ 自动通过: "AUTO_PASS",
83
+ 自动拒绝: "AUTO_REJECT",
84
+ 自动转交管理员: "TRANSMIT_TO_MANAGER",
85
+ 指定人员审批: "SPECIFIED_USER",
86
+ ...d.statusWithoutApprover
87
+ },
88
+ multiple: !1,
89
+ chooseType: [],
90
+ // ================detail================
91
+ statusOption: {
92
+ 发起: "INITIATE",
93
+ 等待: "WAIT",
94
+ 同意: "PASS",
95
+ 撤销: "REVOKE",
96
+ 拒绝: "REJECT",
97
+ 转交: "TRANSFER",
98
+ 加签: "APPEND",
99
+ 退回: "BACK",
100
+ 评论: "COMMENT",
101
+ 待执行: "WAITING",
102
+ 执行中: "RUNNING",
103
+ ...d.defaultStatus
104
+ },
105
+ listData: []
106
+ }), ft = (d, v, e) => {
107
+ let l = "";
108
+ switch (v) {
109
+ case d.nodeType.审批节点:
110
+ e && e.length == 1 ? l = "ikapprove-ziyuan" : l = "ikapprove-shenpi";
111
+ break;
112
+ case d.nodeType.办理节点:
113
+ l = "ikapprove-bianji";
114
+ break;
115
+ case d.nodeType.抄送节点:
116
+ l = "ikapprove-chaosong";
117
+ break;
118
+ case d.nodeType.并行分支:
119
+ l = "ikapprove-fenzhi";
120
+ break;
121
+ case d.nodeType.子流程:
122
+ l = "ikapprove-ziliucheng1";
123
+ break;
124
+ default:
125
+ l = "ikapprove-ziyuan";
126
+ }
127
+ return `ikapprove ${l}`;
128
+ }, De = [
129
+ "csv",
130
+ "djvu",
131
+ "doc",
132
+ "docm",
133
+ "docx",
134
+ "docxf",
135
+ "dot",
136
+ "dotm",
137
+ "dotx",
138
+ "epub",
139
+ "fb2",
140
+ "fodp",
141
+ "fods",
142
+ "fodt",
143
+ "htm",
144
+ "html",
145
+ "mht",
146
+ "odp",
147
+ "ods",
148
+ "odt",
149
+ "oform",
150
+ "otp",
151
+ "ots",
152
+ "ott",
153
+ "oxps",
154
+ "pdf",
155
+ "pot",
156
+ "potm",
157
+ "potx",
158
+ "pps",
159
+ "ppsm",
160
+ "ppsx",
161
+ "ppt",
162
+ "pptm",
163
+ "pptx",
164
+ "rtf",
165
+ "txt",
166
+ "xls",
167
+ "xlsb",
168
+ "xlsm",
169
+ "xlsx",
170
+ "xlt",
171
+ "xltm",
172
+ "xltx",
173
+ "xml",
174
+ "xps",
175
+ "png",
176
+ "jpeg",
177
+ "jpg",
178
+ "webp",
179
+ "video",
180
+ "mp4",
181
+ "flv",
182
+ "tls"
183
+ ], We = (d) => {
184
+ const v = fe("loadUrl"), e = I(() => d.loadUrl || d.fileUrl || (v == null ? void 0 : v.value)), l = fe("uploadUrl"), b = I(() => d.action || d.uploadUrl || (l == null ? void 0 : l.value)), P = fe("token"), w = I(() => d.token || (P == null ? void 0 : P.value)), B = fe("onlyofficeConfig"), p = I(() => d.onlyofficeConfig || (B == null ? void 0 : B.value)), F = fe("userInfo"), D = I(() => d.userInfo || (F == null ? void 0 : F.value)), R = [...De, ...De.map((m) => m.toLocaleUpperCase())];
185
+ return {
186
+ cLoadUrl: e,
187
+ cUploadUrl: b,
188
+ cToken: w,
189
+ cOnlyofficeConfig: p,
190
+ cUserInfo: D,
191
+ cOnlyofficePreviewType: R
192
+ };
193
+ }, At = {}, vt = {
194
+ t: "1672194715727",
195
+ class: "icon",
196
+ viewBox: "0 0 1024 1024",
197
+ version: "1.1",
198
+ "p-id": "2667"
199
+ };
200
+ function ht(d, v) {
201
+ return s(), f("svg", vt, [...v[0] || (v[0] = [
202
+ n(
203
+ "path",
204
+ {
205
+ d: "M809.246403 771.926938 777.737782 803.458071 924.965961 950.667831 956.476629 919.157163Z",
206
+ fill: "#5D5D5D",
207
+ "p-id": "2668"
208
+ },
209
+ null,
210
+ -1
211
+ /* CACHED */
212
+ ),
213
+ n(
214
+ "path",
215
+ {
216
+ d: "M454.878536 70.285786C239.51556 70.285786 64.93236 244.847497 64.93236 460.231963c0 215.341486 174.583201 389.945153 389.945153 389.945153 215.362976 0 389.9472-174.603667 389.9472-389.945153C844.825736 244.847497 670.241512 70.285786 454.878536 70.285786zM454.878536 805.611108c-190.750415 0-345.381192-154.626683-345.381192-345.379145 0-190.751439 154.629753-345.380168 345.381192-345.380168 190.752462 0 345.382215 154.62873 345.382215 345.380168C800.259728 650.983401 645.630998 805.611108 454.878536 805.611108z",
217
+ fill: "#5D5D5D",
218
+ "p-id": "2669"
219
+ },
220
+ null,
221
+ -1
222
+ /* CACHED */
223
+ )
224
+ ])]);
225
+ }
226
+ const yt = /* @__PURE__ */ X(At, [["render", ht]]), mt = {}, gt = {
227
+ t: "1710907270798",
228
+ class: "icon",
229
+ viewBox: "0 0 1024 1024",
230
+ version: "1.1",
231
+ xmlns: "http://www.w3.org/2000/svg",
232
+ "p-id": "8420",
233
+ width: "200",
234
+ height: "200"
235
+ };
236
+ function xt(d, v) {
237
+ return s(), f("svg", gt, [...v[0] || (v[0] = [
238
+ n(
239
+ "path",
240
+ {
241
+ d: "M512 1024A512 512 0 1 0 512 0a512 512 0 0 0 0 1024z",
242
+ fill: "var(--ik-icon-deep-color)",
243
+ "p-id": "8421"
244
+ },
245
+ null,
246
+ -1
247
+ /* CACHED */
248
+ ),
249
+ n(
250
+ "path",
251
+ {
252
+ d: "M655.701333 327.082667a41.216 41.216 0 0 1 57.002667-1.194667 39.082667 39.082667 0 0 1 1.109333 56.490667l-145.237333 145.92 145.237333 146.005333c13.824 13.909333 15.189333 35.072 4.266667 50.346667l-5.376 6.144a41.216 41.216 0 0 1-57.002667-1.109334L511.914667 585.130667 368.298667 729.685333a40.96 40.96 0 0 1-42.24 9.557334l-7.68-3.242667-7.082667-5.12a39.082667 39.082667 0 0 1-1.109333-56.576l145.066666-146.005333-145.066666-145.92a39.082667 39.082667 0 0 1-4.266667-50.346667l5.376-6.144a41.216 41.216 0 0 1 57.002667 1.194667L512 471.381333z",
253
+ fill: "#FFFFFF",
254
+ "p-id": "8422"
255
+ },
256
+ null,
257
+ -1
258
+ /* CACHED */
259
+ )
260
+ ])]);
261
+ }
262
+ const Ot = /* @__PURE__ */ X(mt, [["render", xt]]), Pt = {}, kt = {
263
+ t: "1710904463698",
264
+ class: "icon",
265
+ viewBox: "0 0 1024 1024",
266
+ version: "1.1",
267
+ xmlns: "http://www.w3.org/2000/svg",
268
+ "p-id": "7124",
269
+ width: "200",
270
+ height: "200"
271
+ };
272
+ function Tt(d, v) {
273
+ return s(), f("svg", kt, [...v[0] || (v[0] = [
274
+ n(
275
+ "path",
276
+ {
277
+ d: "M512 512a235.392 235.392 0 0 0 235.2-235.52A235.392 235.392 0 0 0 512 40.96a235.392 235.392 0 0 0-235.2 235.52A235.392 235.392 0 0 0 512 512z",
278
+ fill: "var(--ik-icon-shallow-hover)",
279
+ "p-id": "7125"
280
+ },
281
+ null,
282
+ -1
283
+ /* CACHED */
284
+ ),
285
+ n(
286
+ "path",
287
+ {
288
+ d: "M41.984 901.12c0 57.408 46.784 103.872 104.512 103.872h731.52c57.664 0 104.448-46.464 104.448-103.808v-51.968c0-143.36-116.992-259.648-261.248-259.648H303.232c-144.256 0-261.248 116.224-261.248 259.648v51.968z",
289
+ fill: "var(--ik-color-primary)",
290
+ "p-id": "7126"
291
+ },
292
+ null,
293
+ -1
294
+ /* CACHED */
295
+ )
296
+ ])]);
297
+ }
298
+ const Lt = /* @__PURE__ */ X(Pt, [["render", Tt]]), bt = {}, Ct = {
299
+ t: "1710904436436",
300
+ class: "icon",
301
+ viewBox: "0 0 1024 1024",
302
+ version: "1.1",
303
+ xmlns: "http://www.w3.org/2000/svg",
304
+ "p-id": "6989",
305
+ width: "200",
306
+ height: "200"
307
+ };
308
+ function Ut(d, v) {
309
+ return s(), f("svg", Ct, [...v[0] || (v[0] = [
310
+ n(
311
+ "path",
312
+ {
313
+ d: "M421.952281 288.898297a42.687867 42.687867 0 0 0-42.111868 31.167903l-122.367618 461.694557a49.919844 49.919844 0 0 0 19.19994 52.223837l232.319274 173.503458a57.59982 57.59982 0 0 0 67.45579 0.447998l234.175268-169.59947a49.983844 49.983844 0 0 0 19.967937-52.351836l-118.783628-465.598545a42.623867 42.623867 0 0 0-41.919869-31.487902H421.952281z",
314
+ fill: "var(--ik-color-primary)",
315
+ "p-id": "6990"
316
+ },
317
+ null,
318
+ -1
319
+ /* CACHED */
320
+ ),
321
+ n(
322
+ "path",
323
+ {
324
+ d: "M354.048494 0.0032a44.67186 44.67186 0 0 0-36.479886 18.175943 39.103878 39.103878 0 0 0-4.223987 38.59188L377.792419 206.722554c6.591979 15.359952 22.39993 25.47192 40.127875 25.407921h255.487202c17.919944 0 33.919894-10.431967 40.319874-26.239918L774.39918 56.003025a39.167878 39.167878 0 0 0-4.863985-38.079881A44.67186 44.67186 0 0 0 733.439308 0.0032H354.048494z",
325
+ fill: "var(--ik-icon-shallow-hover)",
326
+ "p-id": "6991"
327
+ },
328
+ null,
329
+ -1
330
+ /* CACHED */
331
+ )
332
+ ])]);
333
+ }
334
+ const St = /* @__PURE__ */ X(bt, [["render", Ut]]), wt = {}, Bt = {
335
+ t: "1710904287393",
336
+ class: "icon",
337
+ viewBox: "0 0 1024 1024",
338
+ version: "1.1",
339
+ xmlns: "http://www.w3.org/2000/svg",
340
+ "p-id": "6854",
341
+ width: "200",
342
+ height: "200"
343
+ };
344
+ function _t(d, v) {
345
+ return s(), f("svg", Bt, [...v[0] || (v[0] = [
346
+ n(
347
+ "path",
348
+ {
349
+ d: "M512 271.296c27.264 0 49.792 22.336 51.136 50.816l0.064 2.688v147.072H832c62.272 0 113.28 51.776 115.2 116.8v103.872c0 28.992-22.144 52.736-49.92 53.44-27.776 0.768-51.008-21.76-52.416-50.752l-0.064-2.688V592.256a13.184 13.184 0 0 0-11.328-13.312L832 578.88H563.2v113.664c0 28.992-22.144 52.736-49.92 53.44-27.776 0.768-51.008-21.76-52.416-50.752L460.8 692.48V578.88H192a12.992 12.992 0 0 0-12.736 11.776l-0.064 1.6v100.288c0 28.992-22.144 52.736-49.92 53.44-27.776 0.768-51.008-21.76-52.416-50.752L76.8 692.48V592.256c0-65.088 49.536-118.4 111.808-120.32H460.8v-147.2c0-29.504 22.912-53.44 51.2-53.44z",
350
+ fill: "var(--ik-icon-shallow-hover)",
351
+ "p-id": "6855"
352
+ },
353
+ null,
354
+ -1
355
+ /* CACHED */
356
+ ),
357
+ n(
358
+ "path",
359
+ {
360
+ d: "M204.8 692.48c13.568 0 26.624 5.696 36.224 15.744 9.6 9.984 14.976 23.616 14.976 37.76v160.512c0 29.568-22.912 53.504-51.2 53.504H51.2c-28.288 0-51.2-23.936-51.2-53.504v-160.448c0-29.568 22.912-53.504 51.2-53.504h153.6zM588.8 692.48c13.568 0 26.624 5.696 36.224 15.744 9.6 9.984 14.976 23.616 14.976 37.76v160.512c0 29.568-22.912 53.504-51.2 53.504H435.2c-28.288 0-51.2-23.936-51.2-53.504v-160.448c0-29.568 22.912-53.504 51.2-53.504h153.6zM972.8 692.48c13.568 0 26.624 5.696 36.224 15.744 9.6 9.984 14.976 23.616 14.976 37.76v160.512c0 29.568-22.912 53.504-51.2 53.504h-153.6c-28.288 0-51.2-23.936-51.2-53.504v-160.448c0-29.568 22.912-53.504 51.2-53.504h153.6zM665.6 64c28.288 0 51.2 23.936 51.2 53.504v213.952c0 29.568-22.912 53.504-51.2 53.504H358.4c-28.288 0-51.2-23.936-51.2-53.504V117.504c0-29.568 22.912-53.504 51.2-53.504h307.2z",
361
+ fill: "var(--ik-color-primary)",
362
+ "p-id": "6856"
363
+ },
364
+ null,
365
+ -1
366
+ /* CACHED */
367
+ )
368
+ ])]);
369
+ }
370
+ const It = /* @__PURE__ */ X(wt, [["render", _t]]), Et = { class: "avatar" }, Vt = {
371
+ key: 3,
372
+ class: "user_box"
373
+ }, Dt = {
374
+ key: 1,
375
+ class: "avatar_name"
376
+ }, Nt = /* @__PURE__ */ de({
377
+ __name: "Avatar",
378
+ props: {
379
+ fixPropOpt: {
380
+ type: Object,
381
+ default: () => {
382
+ }
383
+ },
384
+ fixTypeOpt: {
385
+ type: Object,
386
+ default: () => {
387
+ }
388
+ },
389
+ element: {
390
+ type: Object,
391
+ default: () => {
392
+ }
393
+ },
394
+ imageBaseUrl: {
395
+ type: String,
396
+ default: ""
397
+ }
398
+ },
399
+ setup(d) {
400
+ const v = d, { cLoadUrl: e } = We(v), l = (b) => dt(e.value, b);
401
+ return (b, P) => {
402
+ const w = te("el-avatar");
403
+ return s(), f("div", Et, [
404
+ v.fixTypeOpt.group === d.element[v.fixPropOpt.type] ? (s(), E(It, { key: 0 })) : v.fixTypeOpt.role === d.element[v.fixPropOpt.type] ? (s(), E(Lt, { key: 1 })) : v.fixTypeOpt.post === d.element[v.fixPropOpt.type] ? (s(), E(St, { key: 2 })) : v.fixTypeOpt.user === d.element[v.fixPropOpt.type] ? (s(), f("div", Vt, [
405
+ d.element[d.fixPropOpt.avatar] ? (s(), E(w, {
406
+ key: 0,
407
+ shape: "square",
408
+ src: l(d.fixPropOpt.avatar ? d.element[d.fixPropOpt.avatar] : "")
409
+ }, null, 8, ["src"])) : (s(), f(
410
+ "div",
411
+ Dt,
412
+ T(d.element[d.fixPropOpt.name].slice(-2)),
413
+ 1
414
+ /* TEXT */
415
+ ))
416
+ ])) : g("v-if", !0)
417
+ ]);
418
+ };
419
+ }
420
+ }), H = /* @__PURE__ */ X(Nt, [["__scopeId", "data-v-8031ce9b"]]), Se = "data:image/webp;base64,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", we = {
421
+ // 所有数据
422
+ list: {
423
+ type: Array,
424
+ default: () => []
425
+ },
426
+ // 已选数据
427
+ handList: {
428
+ type: Array,
429
+ default: () => []
430
+ },
431
+ // 是否多选
432
+ multiple: {
433
+ type: Boolean,
434
+ default: !0
435
+ },
436
+ // 最大允许选择数量
437
+ // 0表示不限制
438
+ max: {
439
+ type: Number,
440
+ default: 0
441
+ },
442
+ fixPropOpt: {
443
+ type: Object,
444
+ default: () => {
445
+ }
446
+ },
447
+ fixTypeOpt: {
448
+ type: Object,
449
+ default: () => {
450
+ }
451
+ },
452
+ height: {
453
+ type: String,
454
+ default: "404px"
455
+ },
456
+ imageBaseUrl: {
457
+ type: String,
458
+ default: ""
459
+ },
460
+ emptyText: {
461
+ type: String,
462
+ default: "暂无数据"
463
+ },
464
+ // 是否允许选择子集
465
+ children: {
466
+ type: Boolean,
467
+ default: !0
468
+ },
469
+ // 选择类别
470
+ chooseType: {
471
+ type: Array,
472
+ // 传['dep_user']选择部门和人员 传['dep']则只选择部门,传['user']则只选择人员,传['role']则只选择角色 ['post']
473
+ // 不传则默认选择人员和部门
474
+ // 传['dep', 'user']则选择人员和部门
475
+ // 传['dep', 'user', 'role']则选择人员、部门和角色
476
+ default: () => ["dep"]
477
+ }
478
+ }, Ft = { class: "left-pick-list" }, Rt = {
479
+ key: 0,
480
+ class: "post-view-list"
481
+ }, Mt = { class: "checkText" }, Wt = { class: "iconBox" }, jt = { class: "name_number" }, Ht = { class: "title" }, $t = {
482
+ key: 0,
483
+ class: "userCount"
484
+ }, Gt = {
485
+ key: 1,
486
+ class: "checkText"
487
+ }, zt = { class: "iconBox" }, Qt = { class: "name_number" }, Xt = { class: "title" }, qt = {
488
+ key: 0,
489
+ class: "userCount"
490
+ }, Zt = ["onClick"], Kt = { class: "checkText" }, Yt = { class: "iconBox" }, Jt = { class: "name_number" }, el = { class: "title" }, tl = {
491
+ key: 0,
492
+ class: "userCount"
493
+ }, ll = {
494
+ key: 1,
495
+ class: "checkText"
496
+ }, al = { class: "iconBox" }, sl = { class: "name_number" }, ol = { class: "title" }, nl = {
497
+ key: 0,
498
+ class: "userCount"
499
+ }, il = ["onClick"], rl = {
500
+ key: 1,
501
+ class: "empty"
502
+ }, pl = /* @__PURE__ */ de({
503
+ __name: "GroupList",
504
+ props: we,
505
+ emits: ["change", "check", "handChild"],
506
+ setup(d, { emit: v }) {
507
+ var m, o;
508
+ const e = d, l = _(!1);
509
+ J(
510
+ () => e.handList,
511
+ () => {
512
+ var O;
513
+ if (!((O = e.handList) != null && O.length)) {
514
+ l.value = !1;
515
+ return;
516
+ }
517
+ const r = e.list.filter(
518
+ (u) => e.chooseType.includes(u[e.fixPropOpt.type].toLowerCase())
519
+ ).every(
520
+ (u) => e.handList.some(
521
+ (h) => h[e.fixPropOpt.id] === u[e.fixPropOpt.id]
522
+ )
523
+ );
524
+ l.value = r;
525
+ },
526
+ { immediate: !0 }
527
+ );
528
+ const b = I(() => {
529
+ var u, h, c;
530
+ const r = (u = e.handList.filter(
531
+ (y) => e.chooseType.includes(y[e.fixPropOpt.type].toLowerCase())
532
+ )) == null ? void 0 : u.length, O = e.list.filter(
533
+ (y) => e.chooseType.includes(y[e.fixPropOpt.type].toLowerCase())
534
+ ).every(
535
+ (y) => e.handList.some(
536
+ (a) => a[e.fixPropOpt.id] === y[e.fixPropOpt.id]
537
+ )
538
+ );
539
+ return e.multiple ? P.value = e.handList.map((y) => y[e.fixPropOpt.id]) : w.value = (c = (h = e.handList) == null ? void 0 : h[0]) == null ? void 0 : c[e.fixPropOpt.id], r > 0 && !O;
540
+ }), P = _(
541
+ e.handList.map((r) => r[e.fixPropOpt.id])
542
+ ), w = _((o = (m = e.handList) == null ? void 0 : m[0]) == null ? void 0 : o[e.fixPropOpt.id]), B = v, p = (r) => {
543
+ const O = r ? e.list.map((u) => {
544
+ if (e.chooseType.includes(u[e.fixPropOpt.type].toLowerCase()) && u.available !== !1)
545
+ return u[e.fixPropOpt.id];
546
+ }) : [];
547
+ B("change", O, r ? e.list : []);
548
+ }, F = (r) => {
549
+ B("change", r, e.list);
550
+ }, D = (r) => {
551
+ B("change", r, e.list);
552
+ }, R = (r, O) => {
553
+ O || B("handChild", r);
554
+ };
555
+ return (r, O) => {
556
+ const u = te("el-scrollbar");
557
+ return s(), f(
558
+ N,
559
+ null,
560
+ [
561
+ g(" 遍历list多选 "),
562
+ n("div", Ft, [
563
+ r.multiple && r.list && r.list.length ? (s(), E(k(ue), {
564
+ key: 0,
565
+ modelValue: l.value,
566
+ "onUpdate:modelValue": O[0] || (O[0] = (h) => l.value = h),
567
+ indeterminate: b.value,
568
+ onChange: p
569
+ }, {
570
+ default: S(() => [...O[3] || (O[3] = [
571
+ ee(
572
+ "全选",
573
+ -1
574
+ /* CACHED */
575
+ )
576
+ ])]),
577
+ _: 1
578
+ /* STABLE */
579
+ }, 8, ["modelValue", "indeterminate"])) : g("v-if", !0),
580
+ C(u, null, {
581
+ default: S(() => [
582
+ r.list && r.list.length ? (s(), f("ul", Rt, [
583
+ r.multiple ? (s(), E(k(be), {
584
+ key: 0,
585
+ modelValue: P.value,
586
+ "onUpdate:modelValue": O[1] || (O[1] = (h) => P.value = h),
587
+ onChange: F
588
+ }, {
589
+ default: S(() => [
590
+ (s(!0), f(
591
+ N,
592
+ null,
593
+ Q(r.list, (h) => {
594
+ var c;
595
+ return s(), f("li", {
596
+ key: h[e.fixPropOpt.id]
597
+ }, [
598
+ r.chooseType.includes(
599
+ h[e.fixPropOpt.type].toLowerCase()
600
+ ) && h.available !== !1 ? (s(), E(k(ue), {
601
+ key: 0,
602
+ label: h[e.fixPropOpt.id],
603
+ disabled: h.available === !1
604
+ }, {
605
+ default: S(() => [
606
+ n("div", Mt, [
607
+ n("div", Wt, [
608
+ C(H, {
609
+ fixTypeOpt: e.fixTypeOpt,
610
+ fixPropOpt: e.fixPropOpt,
611
+ element: h,
612
+ imageBaseUrl: e.imageBaseUrl
613
+ }, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
614
+ ]),
615
+ n("div", jt, [
616
+ n(
617
+ "div",
618
+ Ht,
619
+ T(h[e.fixPropOpt.name]),
620
+ 1
621
+ /* TEXT */
622
+ ),
623
+ h[e.fixPropOpt.type] === e.fixTypeOpt.group ? (s(), f(
624
+ "div",
625
+ $t,
626
+ " (" + T(h.userCount) + ") ",
627
+ 1
628
+ /* TEXT */
629
+ )) : g("v-if", !0)
630
+ ])
631
+ ])
632
+ ]),
633
+ _: 2
634
+ /* DYNAMIC */
635
+ }, 1032, ["label", "disabled"])) : (s(), f("div", Gt, [
636
+ O[4] || (O[4] = n(
637
+ "div",
638
+ { class: "side" },
639
+ null,
640
+ -1
641
+ /* CACHED */
642
+ )),
643
+ n("div", zt, [
644
+ C(H, {
645
+ fixTypeOpt: e.fixTypeOpt,
646
+ fixPropOpt: e.fixPropOpt,
647
+ element: h,
648
+ imageBaseUrl: e.imageBaseUrl
649
+ }, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
650
+ ]),
651
+ n("div", Qt, [
652
+ n(
653
+ "div",
654
+ Xt,
655
+ T(h[e.fixPropOpt.name]),
656
+ 1
657
+ /* TEXT */
658
+ ),
659
+ h[e.fixPropOpt.type] === e.fixTypeOpt.group ? (s(), f(
660
+ "div",
661
+ qt,
662
+ " (" + T(h.userCount) + ") ",
663
+ 1
664
+ /* TEXT */
665
+ )) : g("v-if", !0)
666
+ ])
667
+ ])),
668
+ h[e.fixPropOpt.type] === e.fixTypeOpt.group && e.children ? (s(), f("span", {
669
+ key: 2,
670
+ class: re(["nextLevel", {
671
+ "is-disabled": (c = P.value) == null ? void 0 : c.find(
672
+ (y) => y === h[e.fixPropOpt.id]
673
+ )
674
+ }]),
675
+ onClick: (y) => {
676
+ var a;
677
+ return R(
678
+ h,
679
+ (a = P.value) == null ? void 0 : a.find((A) => A === h[e.fixPropOpt.id])
680
+ );
681
+ }
682
+ }, " 下级", 10, Zt)) : g("v-if", !0)
683
+ ]);
684
+ }),
685
+ 128
686
+ /* KEYED_FRAGMENT */
687
+ ))
688
+ ]),
689
+ _: 1
690
+ /* STABLE */
691
+ }, 8, ["modelValue"])) : (s(), E(k(Ce), {
692
+ key: 1,
693
+ isIndeterminate: b.value,
694
+ modelValue: w.value,
695
+ "onUpdate:modelValue": O[2] || (O[2] = (h) => w.value = h),
696
+ onChange: D
697
+ }, {
698
+ default: S(() => [
699
+ (s(!0), f(
700
+ N,
701
+ null,
702
+ Q(r.list, (h) => {
703
+ var c;
704
+ return s(), f("li", {
705
+ class: "w-full",
706
+ key: h[e.fixPropOpt.id]
707
+ }, [
708
+ r.chooseType.includes(
709
+ h[e.fixPropOpt.type].toLowerCase()
710
+ ) && h.available !== !1 ? (s(), E(k(Ue), {
711
+ key: 0,
712
+ label: h[e.fixPropOpt.id]
713
+ }, {
714
+ default: S(() => [
715
+ n("div", Kt, [
716
+ n("div", Yt, [
717
+ C(H, {
718
+ fixTypeOpt: e.fixTypeOpt,
719
+ fixPropOpt: e.fixPropOpt,
720
+ element: h,
721
+ imageBaseUrl: e.imageBaseUrl
722
+ }, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
723
+ ]),
724
+ n("div", Jt, [
725
+ n(
726
+ "div",
727
+ el,
728
+ T(h[e.fixPropOpt.name]),
729
+ 1
730
+ /* TEXT */
731
+ ),
732
+ h[e.fixPropOpt.type] === e.fixTypeOpt.group ? (s(), f(
733
+ "div",
734
+ tl,
735
+ " (" + T((h == null ? void 0 : h.userCount) || 0) + ") ",
736
+ 1
737
+ /* TEXT */
738
+ )) : g("v-if", !0)
739
+ ])
740
+ ])
741
+ ]),
742
+ _: 2
743
+ /* DYNAMIC */
744
+ }, 1032, ["label"])) : (s(), f("div", ll, [
745
+ O[5] || (O[5] = n(
746
+ "div",
747
+ { class: "side" },
748
+ null,
749
+ -1
750
+ /* CACHED */
751
+ )),
752
+ n("div", al, [
753
+ C(H, {
754
+ fixTypeOpt: e.fixTypeOpt,
755
+ fixPropOpt: e.fixPropOpt,
756
+ element: h,
757
+ imageBaseUrl: e.imageBaseUrl
758
+ }, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
759
+ ]),
760
+ n("div", sl, [
761
+ n(
762
+ "div",
763
+ ol,
764
+ T(h[e.fixPropOpt.name]),
765
+ 1
766
+ /* TEXT */
767
+ ),
768
+ h[e.fixPropOpt.type] === e.fixTypeOpt.group ? (s(), f(
769
+ "div",
770
+ nl,
771
+ " (" + T(h.userCount) + ") ",
772
+ 1
773
+ /* TEXT */
774
+ )) : g("v-if", !0)
775
+ ])
776
+ ])),
777
+ h[e.fixPropOpt.type] === e.fixTypeOpt.group && e.children ? (s(), f("span", {
778
+ key: 2,
779
+ class: re(["nextLevel", {
780
+ "is-disabled": (c = P.value) == null ? void 0 : c.find(
781
+ (y) => y === h[e.fixPropOpt.id]
782
+ )
783
+ }]),
784
+ onClick: (y) => {
785
+ var a;
786
+ return R(
787
+ h,
788
+ (a = P.value) == null ? void 0 : a.find((A) => A === h[e.fixPropOpt.id])
789
+ );
790
+ }
791
+ }, " 下级", 10, il)) : g("v-if", !0)
792
+ ]);
793
+ }),
794
+ 128
795
+ /* KEYED_FRAGMENT */
796
+ ))
797
+ ]),
798
+ _: 1
799
+ /* STABLE */
800
+ }, 8, ["isIndeterminate", "modelValue"]))
801
+ ])) : (s(), f("div", rl, [
802
+ O[6] || (O[6] = n(
803
+ "img",
804
+ {
805
+ src: Se,
806
+ alt: ""
807
+ },
808
+ null,
809
+ -1
810
+ /* CACHED */
811
+ )),
812
+ n(
813
+ "div",
814
+ null,
815
+ T(e.emptyText),
816
+ 1
817
+ /* TEXT */
818
+ )
819
+ ]))
820
+ ]),
821
+ _: 1
822
+ /* STABLE */
823
+ })
824
+ ])
825
+ ],
826
+ 2112
827
+ /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
828
+ );
829
+ };
830
+ }
831
+ }), ul = /* @__PURE__ */ X(pl, [["__scopeId", "data-v-f7a238bb"]]), dl = { class: "left-pick-list" }, cl = {
832
+ key: 0,
833
+ class: "post-view-list"
834
+ }, fl = { class: "iconBox" }, Al = {
835
+ key: 1,
836
+ class: "checkText"
837
+ }, vl = { class: "iconBox" }, hl = { class: "title" }, yl = { class: "ik-picker-single" }, ml = { class: "iconBox" }, gl = {
838
+ key: 1,
839
+ class: "checkText"
840
+ }, xl = { class: "iconBox" }, Ol = { class: "title" }, Pl = {
841
+ key: 1,
842
+ class: "empty"
843
+ }, kl = /* @__PURE__ */ de({
844
+ __name: "PostList",
845
+ props: we,
846
+ emits: ["change", "check"],
847
+ setup(d, { emit: v }) {
848
+ var R, m;
849
+ const e = d, l = I(() => {
850
+ var o, r;
851
+ return ((o = e.handList) == null ? void 0 : o.length) === ((r = e.list) == null ? void 0 : r.length);
852
+ }), b = I(() => {
853
+ var O, u, h, c;
854
+ const o = (O = e.handList) == null ? void 0 : O.length, r = (u = e.list) == null ? void 0 : u.length;
855
+ return e.multiple ? P.value = e.handList.map((y) => y[e.fixPropOpt.id]) : w.value = (c = (h = e.handList) == null ? void 0 : h[0]) == null ? void 0 : c[e.fixPropOpt.id], o > 0 && o < r;
856
+ }), P = _(
857
+ e.handList.map((o) => o[e.fixPropOpt.id])
858
+ ), w = _((m = (R = e.handList) == null ? void 0 : R[0]) == null ? void 0 : m[e.fixPropOpt.id]), B = v, p = (o) => {
859
+ const r = o ? e.list.map((O) => O[e.fixPropOpt.id]) : [];
860
+ B("change", r, o ? e.list : []);
861
+ }, F = (o) => {
862
+ B("change", o, e.list);
863
+ }, D = (o) => {
864
+ B("change", o, e.list);
865
+ };
866
+ return (o, r) => {
867
+ const O = te("el-scrollbar");
868
+ return s(), f(
869
+ N,
870
+ null,
871
+ [
872
+ g(" 遍历list多选 "),
873
+ n("div", dl, [
874
+ o.multiple && o.chooseType.includes("post") && o.list && o.list.length ? (s(), E(k(ue), {
875
+ key: 0,
876
+ modelValue: l.value,
877
+ "onUpdate:modelValue": r[0] || (r[0] = (u) => l.value = u),
878
+ indeterminate: b.value,
879
+ onChange: p
880
+ }, {
881
+ default: S(() => [...r[3] || (r[3] = [
882
+ ee(
883
+ "全选",
884
+ -1
885
+ /* CACHED */
886
+ )
887
+ ])]),
888
+ _: 1
889
+ /* STABLE */
890
+ }, 8, ["modelValue", "indeterminate"])) : g("v-if", !0),
891
+ C(O, null, {
892
+ default: S(() => [
893
+ o.list && o.list.length ? (s(), f("ul", cl, [
894
+ o.multiple ? (s(), E(k(be), {
895
+ key: 0,
896
+ modelValue: P.value,
897
+ "onUpdate:modelValue": r[1] || (r[1] = (u) => P.value = u),
898
+ onChange: F
899
+ }, {
900
+ default: S(() => [
901
+ (s(!0), f(
902
+ N,
903
+ null,
904
+ Q(o.list, (u) => (s(), f("li", {
905
+ key: u[e.fixPropOpt.id]
906
+ }, [
907
+ o.chooseType.includes(u[e.fixPropOpt.type].toLowerCase()) ? (s(), E(k(ue), {
908
+ key: 0,
909
+ label: u[e.fixPropOpt.id]
910
+ }, {
911
+ default: S(() => [
912
+ n("div", fl, [
913
+ C(H, {
914
+ fixTypeOpt: e.fixTypeOpt,
915
+ fixPropOpt: e.fixPropOpt,
916
+ element: u,
917
+ imageBaseUrl: e.imageBaseUrl
918
+ }, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
919
+ ]),
920
+ n(
921
+ "p",
922
+ null,
923
+ T(u[e.fixPropOpt.name]),
924
+ 1
925
+ /* TEXT */
926
+ )
927
+ ]),
928
+ _: 2
929
+ /* DYNAMIC */
930
+ }, 1032, ["label"])) : (s(), f("div", Al, [
931
+ r[4] || (r[4] = n(
932
+ "div",
933
+ { class: "side" },
934
+ null,
935
+ -1
936
+ /* CACHED */
937
+ )),
938
+ n("div", vl, [
939
+ C(H, {
940
+ fixTypeOpt: e.fixTypeOpt,
941
+ fixPropOpt: e.fixPropOpt,
942
+ element: u,
943
+ imageBaseUrl: e.imageBaseUrl
944
+ }, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
945
+ ]),
946
+ n(
947
+ "div",
948
+ hl,
949
+ T(u[e.fixPropOpt.name]),
950
+ 1
951
+ /* TEXT */
952
+ )
953
+ ]))
954
+ ]))),
955
+ 128
956
+ /* KEYED_FRAGMENT */
957
+ ))
958
+ ]),
959
+ _: 1
960
+ /* STABLE */
961
+ }, 8, ["modelValue"])) : (s(), E(k(Ce), {
962
+ key: 1,
963
+ isIndeterminate: b.value,
964
+ modelValue: w.value,
965
+ "onUpdate:modelValue": r[2] || (r[2] = (u) => w.value = u),
966
+ onChange: D
967
+ }, {
968
+ default: S(() => [
969
+ (s(!0), f(
970
+ N,
971
+ null,
972
+ Q(o.list, (u) => (s(), f("li", {
973
+ class: "w-full",
974
+ key: u[e.fixPropOpt.id]
975
+ }, [
976
+ o.chooseType.includes(u[e.fixPropOpt.type].toLowerCase()) ? (s(), E(k(Ue), {
977
+ key: 0,
978
+ label: u[e.fixPropOpt.id]
979
+ }, {
980
+ default: S(() => [
981
+ n("div", yl, [
982
+ n("div", ml, [
983
+ C(H, {
984
+ fixTypeOpt: e.fixTypeOpt,
985
+ fixPropOpt: e.fixPropOpt,
986
+ element: u,
987
+ imageBaseUrl: e.imageBaseUrl
988
+ }, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
989
+ ]),
990
+ n(
991
+ "p",
992
+ null,
993
+ T(u[e.fixPropOpt.name]),
994
+ 1
995
+ /* TEXT */
996
+ )
997
+ ])
998
+ ]),
999
+ _: 2
1000
+ /* DYNAMIC */
1001
+ }, 1032, ["label"])) : (s(), f("div", gl, [
1002
+ r[5] || (r[5] = n(
1003
+ "div",
1004
+ { class: "side" },
1005
+ null,
1006
+ -1
1007
+ /* CACHED */
1008
+ )),
1009
+ n("div", xl, [
1010
+ C(H, {
1011
+ fixTypeOpt: e.fixTypeOpt,
1012
+ fixPropOpt: e.fixPropOpt,
1013
+ element: u,
1014
+ imageBaseUrl: e.imageBaseUrl
1015
+ }, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
1016
+ ]),
1017
+ n(
1018
+ "div",
1019
+ Ol,
1020
+ T(u[e.fixPropOpt.name]),
1021
+ 1
1022
+ /* TEXT */
1023
+ )
1024
+ ]))
1025
+ ]))),
1026
+ 128
1027
+ /* KEYED_FRAGMENT */
1028
+ ))
1029
+ ]),
1030
+ _: 1
1031
+ /* STABLE */
1032
+ }, 8, ["isIndeterminate", "modelValue"]))
1033
+ ])) : (s(), f("div", Pl, [
1034
+ r[6] || (r[6] = n(
1035
+ "img",
1036
+ {
1037
+ src: Se,
1038
+ alt: ""
1039
+ },
1040
+ null,
1041
+ -1
1042
+ /* CACHED */
1043
+ )),
1044
+ n(
1045
+ "div",
1046
+ null,
1047
+ T(e.emptyText),
1048
+ 1
1049
+ /* TEXT */
1050
+ )
1051
+ ]))
1052
+ ]),
1053
+ _: 1
1054
+ /* STABLE */
1055
+ })
1056
+ ])
1057
+ ],
1058
+ 2112
1059
+ /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
1060
+ );
1061
+ };
1062
+ }
1063
+ }), Tl = /* @__PURE__ */ X(kl, [["__scopeId", "data-v-ab605706"]]), Ll = { class: "left-pick-list" }, bl = {
1064
+ key: 0,
1065
+ class: "role-view-list"
1066
+ }, Cl = { class: "iconBox" }, Ul = ["title"], Sl = {
1067
+ key: 1,
1068
+ class: "checkText"
1069
+ }, wl = { class: "iconBox" }, Bl = ["title"], _l = { class: "ik-picker-single" }, Il = { class: "iconBox" }, El = ["title"], Vl = {
1070
+ key: 1,
1071
+ class: "checkText"
1072
+ }, Dl = { class: "iconBox" }, Nl = ["title"], Fl = {
1073
+ key: 1,
1074
+ class: "empty"
1075
+ }, Rl = /* @__PURE__ */ de({
1076
+ __name: "RoleList",
1077
+ props: we,
1078
+ emits: ["change", "check"],
1079
+ setup(d, { emit: v }) {
1080
+ var R, m;
1081
+ const e = d, l = I(() => {
1082
+ var o, r;
1083
+ return ((o = e.handList) == null ? void 0 : o.length) === ((r = e.list) == null ? void 0 : r.length);
1084
+ }), b = I(() => {
1085
+ var O, u, h, c;
1086
+ const o = (O = e.handList) == null ? void 0 : O.length, r = (u = e.list) == null ? void 0 : u.length;
1087
+ return e.multiple ? P.value = e.handList.map((y) => y[e.fixPropOpt.id]) : w.value = (c = (h = e.handList) == null ? void 0 : h[0]) == null ? void 0 : c[e.fixPropOpt.id], o > 0 && o < r;
1088
+ }), P = _(
1089
+ e.handList.map((o) => o[e.fixPropOpt.id])
1090
+ ), w = _((m = (R = e.handList) == null ? void 0 : R[0]) == null ? void 0 : m[e.fixPropOpt.id]), B = v, p = (o) => {
1091
+ const r = o ? e.list.map((O) => O[e.fixPropOpt.id]) : [];
1092
+ B("change", r, o ? e.list : []);
1093
+ }, F = (o) => {
1094
+ B("change", o, e.list);
1095
+ }, D = (o) => {
1096
+ B("change", o, e.list);
1097
+ };
1098
+ return (o, r) => {
1099
+ const O = te("el-scrollbar");
1100
+ return s(), f(
1101
+ N,
1102
+ null,
1103
+ [
1104
+ g(" 遍历list多选 "),
1105
+ n("div", Ll, [
1106
+ o.multiple && o.chooseType.includes("role") && o.list && o.list.length ? (s(), E(k(ue), {
1107
+ key: 0,
1108
+ modelValue: l.value,
1109
+ "onUpdate:modelValue": r[0] || (r[0] = (u) => l.value = u),
1110
+ indeterminate: b.value,
1111
+ onChange: p
1112
+ }, {
1113
+ default: S(() => [...r[3] || (r[3] = [
1114
+ ee(
1115
+ "全选",
1116
+ -1
1117
+ /* CACHED */
1118
+ )
1119
+ ])]),
1120
+ _: 1
1121
+ /* STABLE */
1122
+ }, 8, ["modelValue", "indeterminate"])) : g("v-if", !0),
1123
+ C(O, null, {
1124
+ default: S(() => [
1125
+ o.list && o.list.length ? (s(), f("ul", bl, [
1126
+ o.multiple ? (s(), E(k(be), {
1127
+ key: 0,
1128
+ modelValue: P.value,
1129
+ "onUpdate:modelValue": r[1] || (r[1] = (u) => P.value = u),
1130
+ onChange: F
1131
+ }, {
1132
+ default: S(() => [
1133
+ (s(!0), f(
1134
+ N,
1135
+ null,
1136
+ Q(o.list, (u) => (s(), f("li", {
1137
+ key: u[o.fixPropOpt.id]
1138
+ }, [
1139
+ o.chooseType.includes(u[e.fixPropOpt.type].toLowerCase()) ? (s(), E(k(ue), {
1140
+ key: 0,
1141
+ label: u[o.fixPropOpt.id],
1142
+ value: u[o.fixPropOpt.id],
1143
+ disabled: u.disabled
1144
+ }, {
1145
+ default: S(() => [
1146
+ n("div", Cl, [
1147
+ C(H, {
1148
+ fixTypeOpt: e.fixTypeOpt,
1149
+ fixPropOpt: e.fixPropOpt,
1150
+ element: u,
1151
+ imageBaseUrl: e.imageBaseUrl
1152
+ }, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
1153
+ ]),
1154
+ n("p", {
1155
+ title: u[o.fixPropOpt.name]
1156
+ }, T(u[o.fixPropOpt.name]), 9, Ul)
1157
+ ]),
1158
+ _: 2
1159
+ /* DYNAMIC */
1160
+ }, 1032, ["label", "value", "disabled"])) : (s(), f("div", Sl, [
1161
+ r[4] || (r[4] = n(
1162
+ "div",
1163
+ { class: "side" },
1164
+ null,
1165
+ -1
1166
+ /* CACHED */
1167
+ )),
1168
+ n("div", wl, [
1169
+ C(H, {
1170
+ fixTypeOpt: e.fixTypeOpt,
1171
+ fixPropOpt: e.fixPropOpt,
1172
+ element: u,
1173
+ imageBaseUrl: e.imageBaseUrl
1174
+ }, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
1175
+ ]),
1176
+ n("div", {
1177
+ class: "title",
1178
+ title: u[o.fixPropOpt.name]
1179
+ }, T(u[o.fixPropOpt.name]), 9, Bl)
1180
+ ]))
1181
+ ]))),
1182
+ 128
1183
+ /* KEYED_FRAGMENT */
1184
+ ))
1185
+ ]),
1186
+ _: 1
1187
+ /* STABLE */
1188
+ }, 8, ["modelValue"])) : (s(), E(k(Ce), {
1189
+ key: 1,
1190
+ indeterminate: b.value,
1191
+ modelValue: w.value,
1192
+ "onUpdate:modelValue": r[2] || (r[2] = (u) => w.value = u),
1193
+ onChange: D
1194
+ }, {
1195
+ default: S(() => [
1196
+ (s(!0), f(
1197
+ N,
1198
+ null,
1199
+ Q(o.list, (u) => (s(), f("li", {
1200
+ class: "w-full",
1201
+ key: u[o.fixPropOpt.id]
1202
+ }, [
1203
+ o.chooseType.includes(u[e.fixPropOpt.type].toLowerCase()) ? (s(), E(k(Ue), {
1204
+ key: 0,
1205
+ label: u[o.fixPropOpt.id],
1206
+ value: u[o.fixPropOpt.id],
1207
+ disabled: u.disabled
1208
+ }, {
1209
+ default: S(() => [
1210
+ n("div", _l, [
1211
+ n("div", Il, [
1212
+ C(H, {
1213
+ fixTypeOpt: e.fixTypeOpt,
1214
+ fixPropOpt: e.fixPropOpt,
1215
+ element: u,
1216
+ imageBaseUrl: e.imageBaseUrl
1217
+ }, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
1218
+ ]),
1219
+ n("p", {
1220
+ title: u[o.fixPropOpt.name]
1221
+ }, T(u[o.fixPropOpt.name]), 9, El)
1222
+ ])
1223
+ ]),
1224
+ _: 2
1225
+ /* DYNAMIC */
1226
+ }, 1032, ["label", "value", "disabled"])) : (s(), f("div", Vl, [
1227
+ r[5] || (r[5] = n(
1228
+ "div",
1229
+ { class: "side" },
1230
+ null,
1231
+ -1
1232
+ /* CACHED */
1233
+ )),
1234
+ n("div", Dl, [
1235
+ C(H, {
1236
+ fixTypeOpt: e.fixTypeOpt,
1237
+ fixPropOpt: e.fixPropOpt,
1238
+ element: u,
1239
+ imageBaseUrl: e.imageBaseUrl
1240
+ }, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
1241
+ ]),
1242
+ n("div", {
1243
+ class: "title",
1244
+ title: u[o.fixPropOpt.name]
1245
+ }, T(u[o.fixPropOpt.name]), 9, Nl)
1246
+ ]))
1247
+ ]))),
1248
+ 128
1249
+ /* KEYED_FRAGMENT */
1250
+ ))
1251
+ ]),
1252
+ _: 1
1253
+ /* STABLE */
1254
+ }, 8, ["indeterminate", "modelValue"]))
1255
+ ])) : (s(), f("div", Fl, [
1256
+ r[6] || (r[6] = n(
1257
+ "img",
1258
+ {
1259
+ src: Se,
1260
+ alt: ""
1261
+ },
1262
+ null,
1263
+ -1
1264
+ /* CACHED */
1265
+ )),
1266
+ n(
1267
+ "div",
1268
+ null,
1269
+ T(e.emptyText),
1270
+ 1
1271
+ /* TEXT */
1272
+ )
1273
+ ]))
1274
+ ]),
1275
+ _: 1
1276
+ /* STABLE */
1277
+ })
1278
+ ])
1279
+ ],
1280
+ 2112
1281
+ /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
1282
+ );
1283
+ };
1284
+ }
1285
+ }), Ml = /* @__PURE__ */ X(Rl, [["__scopeId", "data-v-5e7c0e02"]]);
1286
+ var ve = /* @__PURE__ */ ((d) => (d.group = "group", d.role = "role", d.post = "post", d))(ve || {});
1287
+ const Wl = {
1288
+ // 是否允许选择子集
1289
+ children: {
1290
+ type: Boolean,
1291
+ default: !0
1292
+ },
1293
+ // 是否允许点击根节点查询
1294
+ topLink: {
1295
+ type: Boolean,
1296
+ default: !0
1297
+ },
1298
+ // 参数
1299
+ modelValue: {
1300
+ type: Array,
1301
+ default: () => []
1302
+ },
1303
+ // 已选数据 - 数据回显
1304
+ data: {
1305
+ type: Array,
1306
+ default: () => []
1307
+ },
1308
+ // 默认最顶层节点id
1309
+ orgPid: {
1310
+ type: String,
1311
+ default: ""
1312
+ },
1313
+ // 默认顶层组织
1314
+ org: {
1315
+ type: Object,
1316
+ default: () => null
1317
+ },
1318
+ // 默认搜索
1319
+ immediate: {
1320
+ type: Boolean,
1321
+ default: !1
1322
+ },
1323
+ // 是否显示
1324
+ show: {
1325
+ type: Boolean,
1326
+ default: !1,
1327
+ required: !0
1328
+ },
1329
+ // 宽度 为Number时为百分比,字符串时为具体像素
1330
+ width: {
1331
+ type: String,
1332
+ default: "685px"
1333
+ },
1334
+ height: {
1335
+ type: String,
1336
+ default: "580px"
1337
+ },
1338
+ // 标题
1339
+ title: {
1340
+ type: String,
1341
+ default: "选择人员"
1342
+ },
1343
+ // 部门数据
1344
+ groupList: {
1345
+ type: Array,
1346
+ default: () => []
1347
+ },
1348
+ // 人员数据
1349
+ userList: {
1350
+ type: Array,
1351
+ default: () => []
1352
+ },
1353
+ // 角色数据
1354
+ roleList: {
1355
+ type: Array,
1356
+ default: () => []
1357
+ },
1358
+ // 岗位数据
1359
+ postList: {
1360
+ type: Array,
1361
+ default: () => []
1362
+ },
1363
+ // 是否多选
1364
+ multiple: {
1365
+ type: Boolean,
1366
+ default: !0
1367
+ },
1368
+ // 最大允许选择数量
1369
+ // 0表示不限制
1370
+ max: {
1371
+ type: Number,
1372
+ default: 0
1373
+ },
1374
+ // 显示的选项卡
1375
+ // 当只有一个选项卡时,不显示tab页
1376
+ tabs: {
1377
+ type: Array,
1378
+ // prop校验
1379
+ validator: (d) => {
1380
+ if (d === void 0) return !0;
1381
+ if (Array.isArray(d)) {
1382
+ if (!(d != null && d.length))
1383
+ return !1;
1384
+ } else return console.error("IkingPicker参数错误:tabs必须是Array类型"), !1;
1385
+ return !0;
1386
+ },
1387
+ default: () => ["group", "role", "post"]
1388
+ },
1389
+ // 选择类别
1390
+ chooseType: {
1391
+ type: Array,
1392
+ // 传['dep_user']选择部门和人员 传['dep']则只选择部门,传['user']则只选择人员,传['role']则只选择角色 ['post']
1393
+ // 不传则默认选择人员和部门
1394
+ // 传['dep', 'user']则选择人员和部门
1395
+ // 传['dep', 'user', 'role']则选择人员、部门和角色
1396
+ default: () => ["dep"]
1397
+ },
1398
+ // api地址
1399
+ api: {
1400
+ type: Object,
1401
+ default: () => ({
1402
+ methods: "post",
1403
+ headers: {
1404
+ "Content-Type": "application/json;charset=UTF-8",
1405
+ Authorization: "Bearer 9aa65e31e86f4232ac4e4136fb1d3413"
1406
+ },
1407
+ url: `${location.origin}${location.pathname}/serve/component/pick/mix`,
1408
+ param: null,
1409
+ paramKey: "type"
1410
+ })
1411
+ },
1412
+ // 类型字段映射
1413
+ typeOption: {
1414
+ type: Object,
1415
+ default: () => {
1416
+ }
1417
+ },
1418
+ // 字段映射 {name: 'label', type: 'type'}
1419
+ propOption: {
1420
+ type: Object,
1421
+ default: () => null
1422
+ },
1423
+ // 显示搜索栏
1424
+ search: {
1425
+ type: Boolean,
1426
+ default: !0
1427
+ },
1428
+ // 是否懒加载
1429
+ lazy: {
1430
+ type: Boolean,
1431
+ default: !0
1432
+ },
1433
+ // imageBaseUrl
1434
+ imageBaseUrl: {
1435
+ type: String,
1436
+ default: ""
1437
+ },
1438
+ // placeholder
1439
+ placeholder: {
1440
+ type: String,
1441
+ default: "请输入"
1442
+ },
1443
+ emptyText: {
1444
+ type: String,
1445
+ default: "暂无数据"
1446
+ },
1447
+ dataScopeOnly: {
1448
+ type: Boolean,
1449
+ default: !1
1450
+ },
1451
+ rootDepartmentOnly: {
1452
+ type: Boolean,
1453
+ default: !1
1454
+ },
1455
+ // 是否开启调试模式
1456
+ debug: {
1457
+ type: Boolean,
1458
+ default: !1
1459
+ }
1460
+ }, Ne = (d) => {
1461
+ const v = window.location.search;
1462
+ return new URLSearchParams(v).get(d);
1463
+ }, jl = (d) => {
1464
+ const v = pe.local.getItem("x_domain");
1465
+ v && (d["X-DOMAIN"] = v);
1466
+ }, Hl = (d) => {
1467
+ var e;
1468
+ const v = Ne("domain");
1469
+ if (v) {
1470
+ d["X-DOMAIN"] = v;
1471
+ const l = Ne("code");
1472
+ v === "APPLICATION" && (d["X-APP"] = l);
1473
+ } else
1474
+ jl(d);
1475
+ (e = pe.local.getItem("tenant")) == null || e.code;
1476
+ }, $l = (d, v) => {
1477
+ const e = _([]), l = async (P, w) => {
1478
+ var M, W, $;
1479
+ const { url: B, methods: p, headers: F, param: D } = d.value || {}, R = {
1480
+ // 额外参数
1481
+ rootDepartmentId: ((M = pe.local.getItem("now_shop")) == null ? void 0 : M.storeId) || "",
1482
+ parentDepartmentId: P || "",
1483
+ name: w || "",
1484
+ rootDepartmentOnly: v.rootDepartmentOnly,
1485
+ dataScopeOnly: v.dataScopeOnly,
1486
+ ...D || {}
1487
+ }, m = {
1488
+ method: p,
1489
+ url: B,
1490
+ headers: {
1491
+ "Content-Type": "application/json;charset=UTF-8",
1492
+ ...F
1493
+ },
1494
+ data: JSON.stringify(R)
1495
+ };
1496
+ Hl(m.headers);
1497
+ const o = await ut(m), { success: r, data: O } = o.data;
1498
+ if (!r)
1499
+ return {
1500
+ groupList: [],
1501
+ roleList: [],
1502
+ postList: [],
1503
+ userList: [],
1504
+ rootOrganization: {},
1505
+ rootDepartment: {}
1506
+ };
1507
+ const {
1508
+ departments: u,
1509
+ roles: h,
1510
+ posts: c,
1511
+ users: y,
1512
+ rootOrganization: a,
1513
+ rootDepartment: A
1514
+ } = O, G = a || A;
1515
+ return e.value.length === 0 && (e.value[0] = v.org ? {
1516
+ ...v.org,
1517
+ id: v.elementId,
1518
+ elementType: ($ = (W = v.org) == null ? void 0 : W.elementType) == null ? void 0 : $.toLocaleUpperCase()
1519
+ } : {
1520
+ ...G,
1521
+ id: G.elementId
1522
+ }), {
1523
+ groupList: z.cloneDeep(u),
1524
+ roleList: z.cloneDeep(h),
1525
+ postList: z.cloneDeep(c),
1526
+ userList: z.cloneDeep(y),
1527
+ rootOrganization: a,
1528
+ rootDepartment: A
1529
+ };
1530
+ };
1531
+ return {
1532
+ handData: l,
1533
+ handSetChild: (P, w) => {
1534
+ l(P == null ? void 0 : P.elementId, w);
1535
+ },
1536
+ bannerList: e
1537
+ };
1538
+ }, Gl = {
1539
+ shadow: "hover",
1540
+ class: "sel-list"
1541
+ }, zl = { key: 0 }, Ql = { class: "choose-list" }, Xl = { class: "choose-item" }, ql = { class: "list-group-item draggable-item" }, Zl = { class: "item_info" }, Kl = { class: "avatar_box" }, Yl = { class: "dialog-footer" }, Jl = /* @__PURE__ */ de({
1542
+ __name: "picker",
1543
+ props: Wl,
1544
+ emits: ["handChild", "update:show", "update:modelValue", "ok", "search"],
1545
+ setup(d, { expose: v, emit: e }) {
1546
+ const l = d, b = _(""), P = _(""), w = _([]), B = _([]), p = _([]), F = _([]), D = _(!1), R = I(() => $.value.includes("user") ? B.value.concat(w.value) : B.value);
1547
+ J(
1548
+ () => l.api,
1549
+ () => {
1550
+ l.show && M("");
1551
+ }
1552
+ );
1553
+ const m = I(() => ({
1554
+ name: "name",
1555
+ type: "type",
1556
+ id: "id",
1557
+ avatar: "avatar",
1558
+ ...l.propOption
1559
+ })), o = I(() => ({
1560
+ user: "USER",
1561
+ role: "ROLE",
1562
+ post: "POST",
1563
+ group: "DEPT",
1564
+ ...l.typeOption
1565
+ })), r = _([]), O = $l(st(l, "api"), l), u = O.handData, h = O.bannerList;
1566
+ l.immediate && u(P.value, b.value);
1567
+ const c = (t) => (t.forEach((i) => {
1568
+ var x, L;
1569
+ i.disabled = ((L = (x = l.modelValue) == null ? void 0 : x.find(
1570
+ (K) => K[m.value.id] === i[m.value.id]
1571
+ )) == null ? void 0 : L.disabled) || !1;
1572
+ }), t), y = async () => {
1573
+ var t, i, x, L, K, U, ce, Oe;
1574
+ D.value = !0;
1575
+ try {
1576
+ if ((t = l.groupList) != null && t.length || (i = l.userList) != null && i.length || (x = l.roleList) != null && x.length || (L = l.postList) != null && L.length) {
1577
+ w.value = (K = l.userList) == null ? void 0 : K.filter(
1578
+ (Y) => Y[m.value.name].includes(b.value)
1579
+ ), B.value = (U = l.groupList) == null ? void 0 : U.filter(
1580
+ (Y) => Y[m.value.name].includes(b.value)
1581
+ ), p.value = (ce = l.roleList) == null ? void 0 : ce.filter(
1582
+ (Y) => Y[m.value.name].includes(b.value)
1583
+ ), F.value = (Oe = l.postList) == null ? void 0 : Oe.filter(
1584
+ (Y) => Y[m.value.name].includes(b.value)
1585
+ ), ne(), D.value = !1;
1586
+ return;
1587
+ }
1588
+ const j = await u(P.value, b.value);
1589
+ try {
1590
+ w.value = c((j == null ? void 0 : j.userList) || []), B.value = c((j == null ? void 0 : j.groupList) || []), p.value = c((j == null ? void 0 : j.roleList) || []), F.value = c((j == null ? void 0 : j.postList) || []);
1591
+ } catch (Y) {
1592
+ D.value = !1, console.info("error: ", Y);
1593
+ }
1594
+ ne(), D.value = !1;
1595
+ } catch {
1596
+ D.value = !1;
1597
+ }
1598
+ }, a = Te({
1599
+ group: /* @__PURE__ */ new Map(),
1600
+ // 组织架构选中项 Map<id, item>
1601
+ user: /* @__PURE__ */ new Map(),
1602
+ // 用户选中项 Map<id, item>
1603
+ role: /* @__PURE__ */ new Map(),
1604
+ // 角色选中项 Map<id, item>
1605
+ post: /* @__PURE__ */ new Map(),
1606
+ // 岗位选中项 Map<id, item>
1607
+ trans: [],
1608
+ // 当前页面已选项的 ID 数组(用于多选状态管理)
1609
+ single: ""
1610
+ // 单选模式下选中的项 ID
1611
+ }), A = Te({
1612
+ indeterminate: !1,
1613
+ // 半选状态
1614
+ checkAll: 0
1615
+ // 全选状态(0: 未选, 1: 全选)
1616
+ }), G = (t) => a.group.has(t) || a.user.has(t) || a.role.has(t) || a.post.has(t), M = z.debounce(y, 300), W = I(() => {
1617
+ const t = Array.from(a.group.values()), i = Array.from(a.role.values()), x = Array.from(a.user.values()), L = Array.from(a.post.values());
1618
+ return r.value = [...i, ...L, ...x, ...t], {
1619
+ list: [...i, ...x, ...L, ...t],
1620
+ // 所有选中项
1621
+ role: {
1622
+ list: i,
1623
+ len: i.length
1624
+ },
1625
+ user: {
1626
+ list: x,
1627
+ len: x.length
1628
+ },
1629
+ post: {
1630
+ list: L,
1631
+ len: L.length
1632
+ },
1633
+ groups: {
1634
+ list: t,
1635
+ len: t.length
1636
+ }
1637
+ };
1638
+ }), $ = I(() => {
1639
+ const t = l.chooseType.map((x) => x.toLocaleLowerCase());
1640
+ let i = [...t];
1641
+ return t.includes("dep") && (i = [...i, "dept"]), t.includes("dep_user") && (i = [...i, "user"]), i;
1642
+ }), q = _([]), V = (t) => {
1643
+ q.value = t, q.value.forEach((i) => {
1644
+ i.readonly = i == null ? void 0 : i.disabled;
1645
+ });
1646
+ }, Z = e, oe = _(!1), ne = (t = !1) => {
1647
+ var x;
1648
+ const i = (x = l == null ? void 0 : l.userList) != null && x.length ? z.cloneDeep([...l == null ? void 0 : l.userList, ...l == null ? void 0 : l.groupList]) : [...B.value, ...w.value];
1649
+ return !t && V(i), i;
1650
+ };
1651
+ J(
1652
+ () => l.show,
1653
+ async (t) => {
1654
+ var i;
1655
+ if (oe.value = t, t) {
1656
+ P.value = ((i = l.org) == null ? void 0 : i.elementId) || l.orgPid, !l.userList.length && !l.groupList.length && !l.roleList.length && !l.postList.length ? await y() : (w.value = l.userList, B.value = l.groupList, p.value = l.roleList, F.value = l.postList), a.trans = [], A.checkAll = 0, A.indeterminate = !1;
1657
+ const x = ne(!0);
1658
+ Le(() => {
1659
+ var L;
1660
+ if ((L = l.modelValue) != null && L.length) {
1661
+ l.modelValue.forEach((U) => {
1662
+ le(U), l.multiple ? a.trans.push(U[m.value.id]) : a.single = U[m.value.id];
1663
+ });
1664
+ const K = x.length === a.trans.length;
1665
+ A.indeterminate = !!(x.length && !K), A.checkAll = Number(x.length && K);
1666
+ } else
1667
+ se();
1668
+ });
1669
+ } else
1670
+ se();
1671
+ }
1672
+ ), Ee(() => {
1673
+ let t = q.value.length;
1674
+ const i = a.trans.length;
1675
+ A.indeterminate = a.trans.length ? i !== t : !1, A.checkAll = +(t !== 0 && i === t);
1676
+ }), J(
1677
+ () => l.modelValue,
1678
+ (t) => {
1679
+ t != null && t.length ? t.forEach((i) => {
1680
+ le(i), l.multiple ? a.trans.push(i[m.value.id]) : a.single = i[m.value.id];
1681
+ }) : se();
1682
+ }
1683
+ );
1684
+ const ie = (t) => {
1685
+ var i;
1686
+ if (l.debug && console.log("删除项:", t), !!t) {
1687
+ if (a.single = "", t[m.value.id]) {
1688
+ const x = (i = a.trans) == null ? void 0 : i.findIndex(
1689
+ (L) => L === t[m.value.id]
1690
+ );
1691
+ x !== -1 && a.trans.splice(x, 1);
1692
+ }
1693
+ switch (t[m.value.type]) {
1694
+ case o.value.user:
1695
+ return a.user.delete(t[m.value.id]);
1696
+ case o.value.role:
1697
+ return a.role.delete(t[m.value.id]);
1698
+ case o.value.post:
1699
+ return a.post.delete(t[m.value.id]);
1700
+ case o.value.group:
1701
+ return a.group.delete(t[m.value.id]);
1702
+ default:
1703
+ return;
1704
+ }
1705
+ }
1706
+ }, Be = (t) => {
1707
+ ie(t);
1708
+ }, je = () => {
1709
+ }, He = (t) => {
1710
+ $e();
1711
+ }, $e = () => {
1712
+ l.debug && console.log("更新选中项的Map数据结构:", r.value), a.user.clear(), a.role.clear(), a.post.clear(), a.group.clear(), r.value.forEach((t) => {
1713
+ const i = t[m.value.id];
1714
+ switch (t[m.value.type]) {
1715
+ case o.value.user:
1716
+ a.user.set(i, t);
1717
+ break;
1718
+ case o.value.role:
1719
+ a.role.set(i, t);
1720
+ break;
1721
+ case o.value.post:
1722
+ a.post.set(i, t);
1723
+ break;
1724
+ case o.value.group:
1725
+ a.group.set(i, t);
1726
+ break;
1727
+ }
1728
+ });
1729
+ }, le = (t) => {
1730
+ if (!G(t[m.value.id])) {
1731
+ const i = {
1732
+ ...t
1733
+ // readonly: item.disabled // 保留原有的禁用状态
1734
+ };
1735
+ switch (t[m.value.type]) {
1736
+ case o.value.user:
1737
+ return a.user.set(t[m.value.id], i);
1738
+ case o.value.role:
1739
+ return a.role.set(t[m.value.id], i);
1740
+ case o.value.post:
1741
+ return a.post.set(t[m.value.id], i);
1742
+ case o.value.group:
1743
+ return a.group.set(t[m.value.id], i);
1744
+ default:
1745
+ return;
1746
+ }
1747
+ }
1748
+ }, Ge = (t) => [o.value.group].includes(
1749
+ t[m.value.type]
1750
+ ) ? t == null ? void 0 : t.hasOwnProperty("disabled") : !1;
1751
+ J(
1752
+ () => a.trans,
1753
+ (t) => {
1754
+ if (!t.length)
1755
+ q.value.forEach((i) => {
1756
+ i.disabled = !1;
1757
+ });
1758
+ else {
1759
+ const i = q.value.filter(
1760
+ (x) => t.includes(x[m.value.id])
1761
+ );
1762
+ for (const x of i)
1763
+ x.disabled = Ge(x), le(x);
1764
+ }
1765
+ },
1766
+ { deep: !0 }
1767
+ ), J(
1768
+ () => a.single,
1769
+ (t) => {
1770
+ var i;
1771
+ if (t) {
1772
+ const x = (i = q.value) == null ? void 0 : i.find((L) => L[m.value.id] === t);
1773
+ x && (a.user.clear(), a.role.clear(), a.post.clear(), a.group.clear(), a.trans = [], Le(() => {
1774
+ le(x);
1775
+ }));
1776
+ }
1777
+ }
1778
+ );
1779
+ const ze = (t) => {
1780
+ P.value = t == null ? void 0 : t.elementId, y(), h.value.push(t);
1781
+ }, _e = I(() => h.value.length), Qe = (t, i) => {
1782
+ !i && !l.topLink || i !== _e.value - 1 && (P.value = t == null ? void 0 : t.elementId, y(), h.value.splice(i + 1));
1783
+ }, Xe = I(
1784
+ () => l.chooseType.includes("role") && l.chooseType.length === 1
1785
+ ), qe = I(
1786
+ () => l.chooseType.includes("post") && l.chooseType.length === 1
1787
+ ), he = _(l.tabs[0]), ae = _(l.tabs[0]);
1788
+ Ee(() => (ae.value = Xe.value ? l.tabs[1] : qe.value ? l.tabs[2] : he.value, ae.value));
1789
+ const se = () => {
1790
+ a.user.clear(), a.role.clear(), a.post.clear(), a.group.clear(), a.trans = [], ge.value = [], xe.value = [], he.value = l.tabs[0], ae.value = l.tabs[0], b.value = "", P.value = l.orgPid, h.value.splice(1, h.value.length), a.single = "", r.value = [];
1791
+ }, Ze = () => {
1792
+ var t;
1793
+ Z(
1794
+ "ok",
1795
+ z.cloneDeep({
1796
+ // 所有选项、部门、人员、角色分别列出
1797
+ ...W.value,
1798
+ // 排序后的列表
1799
+ sort: r.value
1800
+ })
1801
+ ), Z("update:modelValue", z.cloneDeep(((t = W.value) == null ? void 0 : t.list) || [])), Z("update:show", !1), se();
1802
+ }, Ie = () => {
1803
+ Z("update:show", !1), se();
1804
+ };
1805
+ v({
1806
+ handClear: se,
1807
+ // 清空所有选择
1808
+ handRomeve: Be,
1809
+ // 移除选中项
1810
+ handDelete: ie
1811
+ // 删除选中项
1812
+ });
1813
+ const Ke = I(() => {
1814
+ const t = $.value;
1815
+ return !!((t.includes("post") || t.includes("role")) && t.length > 1);
1816
+ }), Ye = I(() => [
1817
+ { name: "group", label: "组织架构" },
1818
+ { name: "role", label: "角色列表" },
1819
+ { name: "post", label: "岗位列表" }
1820
+ ].filter((t) => l.tabs.includes(t.name))), Je = I(
1821
+ () => `${typeof l.height == "string" ? Number.parseInt(l.height) : l.height}px`
1822
+ ), me = () => {
1823
+ l.multiple || (a.post.clear(), a.role.clear(), a.user.clear(), a.group.clear(), a.single = "");
1824
+ }, et = I(() => W.value.groups.list.concat(W.value.user.list)), tt = (t, i) => {
1825
+ l.multiple || (a.single = "");
1826
+ const x = l.multiple ? t : [t];
1827
+ if (!x.length) {
1828
+ a.group.clear(), a.user.clear();
1829
+ return;
1830
+ }
1831
+ me(), i.forEach((L) => {
1832
+ x != null && x.includes(L[m.value.id]) ? le(L) : ie(L);
1833
+ });
1834
+ }, ge = _([]), lt = (t, i) => {
1835
+ l.multiple || (a.single = "");
1836
+ const x = l.multiple ? t : [t];
1837
+ if (!x.length) {
1838
+ a.role.clear();
1839
+ return;
1840
+ }
1841
+ me(), i.forEach((L) => {
1842
+ x != null && x.includes(L[m.value.id]) ? le(L) : ie(L);
1843
+ });
1844
+ };
1845
+ J(
1846
+ () => W.value.role.len,
1847
+ (t) => {
1848
+ ge.value = z.cloneDeep(W.value.role.list);
1849
+ }
1850
+ );
1851
+ const xe = _([]), at = (t, i) => {
1852
+ l.multiple || (a.single = "");
1853
+ const x = l.multiple ? t : [t];
1854
+ if (!x.length) {
1855
+ a.post.clear();
1856
+ return;
1857
+ }
1858
+ me(), i.forEach((L) => {
1859
+ x != null && x.includes(L[m.value.id]) ? le(L) : ie(L);
1860
+ });
1861
+ };
1862
+ return J(
1863
+ () => W.value.post.len,
1864
+ (t) => {
1865
+ xe.value = z.cloneDeep(W.value.post.list);
1866
+ }
1867
+ ), J(
1868
+ () => b.value,
1869
+ (t) => {
1870
+ M("");
1871
+ }
1872
+ ), (t, i) => {
1873
+ const x = te("el-tab-pane"), L = te("el-tabs"), K = te("el-scrollbar");
1874
+ return s(), f(
1875
+ N,
1876
+ null,
1877
+ [
1878
+ g(" 主弹窗容器 "),
1879
+ C(k(nt), {
1880
+ modelValue: oe.value,
1881
+ "onUpdate:modelValue": i[3] || (i[3] = (U) => oe.value = U),
1882
+ title: t.title,
1883
+ "destroy-on-close": "",
1884
+ "append-to-body": "",
1885
+ "close-on-click-modal": !1,
1886
+ "close-on-click-escape": !1,
1887
+ draggable: "",
1888
+ "align-center": "",
1889
+ width: typeof t.width == "string" ? t.width : `${t.width}%`,
1890
+ class: "p_p_picker-dialog",
1891
+ "modal-class": "p_p_picker-dialog-modal-user",
1892
+ onClose: Ie
1893
+ }, {
1894
+ footer: S(() => [
1895
+ n("span", Yl, [
1896
+ g(" 取消按钮 "),
1897
+ C(k(ke), {
1898
+ ciyao: "",
1899
+ onClick: Ae(Ie, ["stop"])
1900
+ }, {
1901
+ default: S(() => [...i[7] || (i[7] = [
1902
+ ee(
1903
+ "取消",
1904
+ -1
1905
+ /* CACHED */
1906
+ )
1907
+ ])]),
1908
+ _: 1
1909
+ /* STABLE */
1910
+ }),
1911
+ g(" 确定按钮 "),
1912
+ C(k(ke), {
1913
+ type: "primary",
1914
+ onClick: Ae(Ze, ["stop"])
1915
+ }, {
1916
+ default: S(() => [...i[8] || (i[8] = [
1917
+ ee(
1918
+ " 确定 ",
1919
+ -1
1920
+ /* CACHED */
1921
+ )
1922
+ ])]),
1923
+ _: 1
1924
+ /* STABLE */
1925
+ })
1926
+ ])
1927
+ ]),
1928
+ default: S(() => [
1929
+ n(
1930
+ "div",
1931
+ {
1932
+ class: "dep-use-picker",
1933
+ style: Fe({ height: Je.value })
1934
+ },
1935
+ [
1936
+ g(" 左侧选择区域 "),
1937
+ n("div", Gl, [
1938
+ g(" 搜索框和标签页 "),
1939
+ n("div", null, [
1940
+ g(" 搜索输入框 "),
1941
+ C(k(it), {
1942
+ modelValue: b.value,
1943
+ "onUpdate:modelValue": i[0] || (i[0] = (U) => b.value = U),
1944
+ clearable: "",
1945
+ placeholder: t.placeholder,
1946
+ "suffix-icon": yt
1947
+ }, null, 8, ["modelValue", "placeholder"]),
1948
+ g(" 标签页切换 "),
1949
+ Ke.value ? (s(), E(L, {
1950
+ key: 0,
1951
+ modelValue: he.value,
1952
+ "onUpdate:modelValue": i[1] || (i[1] = (U) => he.value = U),
1953
+ class: "ik-picker-tab"
1954
+ }, {
1955
+ default: S(() => [
1956
+ (s(!0), f(
1957
+ N,
1958
+ null,
1959
+ Q(Ye.value, (U) => (s(), E(x, {
1960
+ label: U.label,
1961
+ name: U.name,
1962
+ key: U.label
1963
+ }, null, 8, ["label", "name"]))),
1964
+ 128
1965
+ /* KEYED_FRAGMENT */
1966
+ ))
1967
+ ]),
1968
+ _: 1
1969
+ /* STABLE */
1970
+ }, 8, ["modelValue"])) : g("v-if", !0)
1971
+ ]),
1972
+ g(" 面包屑导航区域 "),
1973
+ ae.value === k(ve).group ? (s(), f(
1974
+ N,
1975
+ { key: 0 },
1976
+ [
1977
+ _e.value ? (s(), f("div", zl, [
1978
+ g(" 面包屑导航 "),
1979
+ C(k(rt), {
1980
+ separator: ">",
1981
+ class: re(["banner", { "top-unlink": !t.topLink }])
1982
+ }, {
1983
+ default: S(() => [
1984
+ (s(!0), f(
1985
+ N,
1986
+ null,
1987
+ Q(k(h), (U, ce) => (s(), E(k(pt), {
1988
+ key: U[m.value.id],
1989
+ onClick: Ae((Oe) => Qe(U, ce), ["stop"])
1990
+ }, {
1991
+ default: S(() => [
1992
+ ee(
1993
+ T(U[m.value.name]),
1994
+ 1
1995
+ /* TEXT */
1996
+ )
1997
+ ]),
1998
+ _: 2
1999
+ /* DYNAMIC */
2000
+ }, 1032, ["onClick"]))),
2001
+ 128
2002
+ /* KEYED_FRAGMENT */
2003
+ ))
2004
+ ]),
2005
+ _: 1
2006
+ /* STABLE */
2007
+ }, 8, ["class"])
2008
+ ])) : g("v-if", !0)
2009
+ ],
2010
+ 64
2011
+ /* STABLE_FRAGMENT */
2012
+ )) : g("v-if", !0),
2013
+ g(" 数据列表区域 "),
2014
+ g(" 组织架构列表 "),
2015
+ ae.value === k(ve).group ? ye((s(), E(ul, {
2016
+ key: 1,
2017
+ fixPropOpt: m.value,
2018
+ fixTypeOpt: o.value,
2019
+ list: R.value,
2020
+ max: t.max,
2021
+ multiple: t.multiple,
2022
+ "hand-list": et.value,
2023
+ imageBaseUrl: l.imageBaseUrl,
2024
+ emptyText: l.emptyText,
2025
+ children: l.children && !b.value,
2026
+ "choose-type": $.value,
2027
+ onHandChild: ze,
2028
+ onChange: tt
2029
+ }, null, 8, ["fixPropOpt", "fixTypeOpt", "list", "max", "multiple", "hand-list", "imageBaseUrl", "emptyText", "children", "choose-type"])), [
2030
+ [k(Pe), D.value]
2031
+ ]) : ae.value === k(ve).role ? (s(), f(
2032
+ N,
2033
+ { key: 2 },
2034
+ [
2035
+ g(" 角色列表 "),
2036
+ ye(C(Ml, {
2037
+ fixPropOpt: m.value,
2038
+ fixTypeOpt: o.value,
2039
+ list: p.value,
2040
+ max: t.max,
2041
+ multiple: t.multiple,
2042
+ "hand-list": ge.value,
2043
+ imageBaseUrl: l.imageBaseUrl,
2044
+ emptyText: l.emptyText,
2045
+ "choose-type": $.value,
2046
+ onChange: lt
2047
+ }, null, 8, ["fixPropOpt", "fixTypeOpt", "list", "max", "multiple", "hand-list", "imageBaseUrl", "emptyText", "choose-type"]), [
2048
+ [k(Pe), D.value]
2049
+ ])
2050
+ ],
2051
+ 64
2052
+ /* STABLE_FRAGMENT */
2053
+ )) : ae.value === k(ve).post ? (s(), f(
2054
+ N,
2055
+ { key: 3 },
2056
+ [
2057
+ g(" 岗位列表 "),
2058
+ ye(C(Tl, {
2059
+ fixPropOpt: m.value,
2060
+ fixTypeOpt: o.value,
2061
+ list: F.value,
2062
+ max: t.max,
2063
+ multiple: t.multiple,
2064
+ "hand-list": xe.value,
2065
+ imageBaseUrl: l.imageBaseUrl,
2066
+ emptyText: l.emptyText,
2067
+ "choose-type": $.value,
2068
+ onChange: at
2069
+ }, null, 8, ["fixPropOpt", "fixTypeOpt", "list", "max", "multiple", "hand-list", "imageBaseUrl", "emptyText", "choose-type"]), [
2070
+ [k(Pe), D.value]
2071
+ ])
2072
+ ],
2073
+ 64
2074
+ /* STABLE_FRAGMENT */
2075
+ )) : g("v-if", !0)
2076
+ ]),
2077
+ g(" 分割线 "),
2078
+ i[6] || (i[6] = n(
2079
+ "div",
2080
+ { class: "split-div" },
2081
+ null,
2082
+ -1
2083
+ /* CACHED */
2084
+ )),
2085
+ g(" 右侧已选区域 "),
2086
+ n("div", Ql, [
2087
+ g(" 已选标题和清空按钮 "),
2088
+ n("div", Xl, [
2089
+ i[5] || (i[5] = n(
2090
+ "div",
2091
+ null,
2092
+ [
2093
+ ee("已选列表"),
2094
+ n("span", { class: "ik-info-text" }, "(支持拖拽排序)")
2095
+ ],
2096
+ -1
2097
+ /* CACHED */
2098
+ )),
2099
+ C(k(ke), {
2100
+ type: "primary",
2101
+ link: "",
2102
+ onClick: Ae(se, ["stop"])
2103
+ }, {
2104
+ default: S(() => [...i[4] || (i[4] = [
2105
+ ee(
2106
+ "清空",
2107
+ -1
2108
+ /* CACHED */
2109
+ )
2110
+ ])]),
2111
+ _: 1
2112
+ /* STABLE */
2113
+ })
2114
+ ]),
2115
+ C(K, null, {
2116
+ default: S(() => [
2117
+ g(" 已选项目列表 "),
2118
+ C(k(Re), {
2119
+ modelValue: r.value,
2120
+ "onUpdate:modelValue": i[2] || (i[2] = (U) => r.value = U),
2121
+ class: "choose-box",
2122
+ tag: "ul",
2123
+ "item-key": "id",
2124
+ animation: 200,
2125
+ "ghost-class": "ghost-item",
2126
+ "chosen-class": "chosen-item",
2127
+ "drag-class": "drag-item",
2128
+ onStart: je,
2129
+ onEnd: He
2130
+ }, {
2131
+ item: S(({ element: U }) => [
2132
+ n("li", ql, [
2133
+ n("div", Zl, [
2134
+ g(" 头像图标 "),
2135
+ n("div", Kl, [
2136
+ C(H, {
2137
+ fixTypeOpt: o.value,
2138
+ fixPropOpt: m.value,
2139
+ element: U,
2140
+ imageBaseUrl: l.imageBaseUrl
2141
+ }, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
2142
+ ]),
2143
+ g(" 项目名称 "),
2144
+ n(
2145
+ "span",
2146
+ null,
2147
+ T(U[m.value.name]),
2148
+ 1
2149
+ /* TEXT */
2150
+ )
2151
+ ]),
2152
+ g(" 删除按钮 "),
2153
+ ye(C(Ot, {
2154
+ class: "close",
2155
+ onClick: Ae((ce) => Be(U), ["stop"])
2156
+ }, null, 8, ["onClick"]), [
2157
+ [ot, !(U != null && U.readonly)]
2158
+ ])
2159
+ ])
2160
+ ]),
2161
+ _: 1
2162
+ /* STABLE */
2163
+ }, 8, ["modelValue"])
2164
+ ]),
2165
+ _: 1
2166
+ /* STABLE */
2167
+ })
2168
+ ])
2169
+ ],
2170
+ 4
2171
+ /* STYLE */
2172
+ )
2173
+ ]),
2174
+ _: 1
2175
+ /* STABLE */
2176
+ }, 8, ["modelValue", "title", "width"])
2177
+ ],
2178
+ 2112
2179
+ /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
2180
+ );
2181
+ };
2182
+ }
2183
+ }), ea = Me(Jl), ta = {
2184
+ class: "approveProcess",
2185
+ id: "approveProcess"
2186
+ }, la = { class: "node" }, aa = { class: "nodeBg" }, sa = {
2187
+ key: 0,
2188
+ class: "info"
2189
+ }, oa = { class: "explain" }, na = { key: 0 }, ia = { key: 0 }, ra = { key: 1 }, pa = { key: 0 }, ua = { key: 1 }, da = { class: "personlist" }, ca = { style: { width: "58px" } }, fa = { class: "avatar" }, Aa = ["src"], va = {
2190
+ key: 1,
2191
+ class: "nodeBg"
2192
+ }, ha = ["onClick"], ya = ["title"], ma = {
2193
+ key: 0,
2194
+ class: "sign"
2195
+ }, ga = { key: 0 }, xa = ["onClick"], Oa = {
2196
+ key: 0,
2197
+ class: "required"
2198
+ }, Pa = {
2199
+ key: 1,
2200
+ class: "node-branchs"
2201
+ }, ka = { style: { flex: "1" } }, Ta = { class: "node-branch" }, La = {
2202
+ name: "IkApprovalProcess"
2203
+ }, ba = /* @__PURE__ */ de({
2204
+ ...La,
2205
+ props: {
2206
+ // 选人组件请求地址
2207
+ pickerUrl: {
2208
+ type: String,
2209
+ default: ""
2210
+ },
2211
+ pickerConfig: {
2212
+ type: Object,
2213
+ default: () => ({})
2214
+ },
2215
+ //文件访问地址
2216
+ loadUrl: {
2217
+ type: String,
2218
+ default: ""
2219
+ },
2220
+ // 数据数组
2221
+ dataList: {
2222
+ type: Array,
2223
+ default: () => []
2224
+ },
2225
+ // 节点类型
2226
+ defaultNodeType: {
2227
+ type: Object,
2228
+ default: () => ({})
2229
+ },
2230
+ // 字段映射
2231
+ defaultFieldMap: {
2232
+ type: Object,
2233
+ default: () => ({})
2234
+ },
2235
+ // 没有审批人时的审批状态
2236
+ statusWithoutApprover: {
2237
+ type: Object,
2238
+ default: () => ({})
2239
+ }
2240
+ },
2241
+ setup(d, { expose: v }) {
2242
+ const e = d, { cLoadUrl: l } = We(e), b = pe.local.getItem("token") || "Bearer iking", P = _("sys");
2243
+ function w(c) {
2244
+ try {
2245
+ const y = window.location.search;
2246
+ return new URLSearchParams(y).get(c);
2247
+ } catch {
2248
+ return "";
2249
+ }
2250
+ }
2251
+ function B() {
2252
+ var c;
2253
+ try {
2254
+ const y = w("xTenant") || ((c = pe.local.getItem("tenant")) == null ? void 0 : c.code);
2255
+ y && (P.value = y);
2256
+ } catch {
2257
+ }
2258
+ }
2259
+ B();
2260
+ const p = Te(ct(e)), F = async (c) => {
2261
+ var y;
2262
+ if (c.multiple = !c[p.defaultFile.singleApproval] || c[p.defaultFile.isShowAddCopy], c.handList = c[p.defaultFile.approvePersonList] ? c[p.defaultFile.approvePersonList] : [], c[p.defaultFile.nodeType] === p.nodeType.抄送节点)
2263
+ c.handList.forEach((a) => {
2264
+ a.elementName || (a.elementName = a.userName, a.elementId = a.userId, a.avatar = a.userAvatar), a.elementType = "USER", a.disabled = !0;
2265
+ }), c.chooseType = ["user"], c.userList = [], c.depList = [];
2266
+ else
2267
+ switch (c[p.defaultFile.initiatorSpecifiedScopeType]) {
2268
+ // 全公司时,用后台返回的人员中去选择
2269
+ case "ALL":
2270
+ c.chooseType = ["dep_user"], c.userList = [], c.depList = [];
2271
+ break;
2272
+ // 否则就从后端返回的initiatorSpecifiedScope数组中选人
2273
+ default:
2274
+ c.chooseType = ["user"], c.userList = c.userList ? c.userList : (y = c[p.defaultFile.initiatorSpecifiedScope]) == null ? void 0 : y.map((a) => ({
2275
+ ...a,
2276
+ elementName: (a == null ? void 0 : a.executorName) || (a == null ? void 0 : a.userName),
2277
+ elementId: (a == null ? void 0 : a.executorId) || (a == null ? void 0 : a.userId),
2278
+ avatar: ((a == null ? void 0 : a.executorAvatar) || (a == null ? void 0 : a.userAvatar)) && D((a == null ? void 0 : a.executorAvatar) || (a == null ? void 0 : a.userAvatar)) || "",
2279
+ elementType: "USER"
2280
+ }));
2281
+ }
2282
+ Le(() => {
2283
+ c.isShow = !0;
2284
+ });
2285
+ }, D = (c) => {
2286
+ let y = "";
2287
+ return c.includes("http") || c.includes("https") ? y = c : y = l.value ? `${c.includes(l.value) ? "" : l.value}${c}` : `${location.origin + location.pathname}server/oss/download?fileUrl=${c}`, y;
2288
+ }, R = (c, y) => {
2289
+ e.dataList[y].handList = c.list;
2290
+ let A = (e.dataList[y][p.defaultFile.approvePersonList] || []).filter((M) => !M.canDele), G = c.list.map((M) => ({
2291
+ ...M,
2292
+ userName: M.elementName,
2293
+ userAvatar: M.avatar,
2294
+ canDele: !0
2295
+ }));
2296
+ e.dataList[y][p.defaultFile.approvePersonList] = A.concat(G);
2297
+ }, m = (c, y) => {
2298
+ e.dataList[c][p.defaultFile.approvePersonList].splice(y, 1), e.dataList[c].handList = e.dataList[c][p.defaultFile.approvePersonList];
2299
+ }, o = () => {
2300
+ let c = !0;
2301
+ return e.dataList.forEach((y) => {
2302
+ var a;
2303
+ y.required = !1, y[p.defaultFile.nodeType] == p.nodeType.审批节点 && y[p.defaultFile.isShowAdd] && ((a = y[p.defaultFile.approvePersonList]) != null && a.length || (c = !1, y.required = !0));
2304
+ }), c;
2305
+ }, r = I(() => {
2306
+ var c;
2307
+ return {
2308
+ propOption: {
2309
+ name: "elementName",
2310
+ id: "elementId",
2311
+ type: "elementType",
2312
+ avatar: "avatar"
2313
+ },
2314
+ typeOption: {
2315
+ dep: "DEPT",
2316
+ user: "USER",
2317
+ role: "ROLE",
2318
+ post: "POST"
2319
+ },
2320
+ api: {
2321
+ methods: "post",
2322
+ url: e.pickerUrl,
2323
+ headers: {
2324
+ "Content-Type": "application/json;charset=UTF-8",
2325
+ Authorization: b,
2326
+ "X-Tenant": P.value
2327
+ },
2328
+ param: {
2329
+ rootDepartmentId: ((c = pe.local.getItem("now_shop")) == null ? void 0 : c.storeId) || "",
2330
+ rootDepartmentOnly: !1
2331
+ }
2332
+ },
2333
+ ...e.pickerConfig
2334
+ };
2335
+ }), O = _(null), u = (c) => {
2336
+ O.value = c;
2337
+ }, h = (c) => {
2338
+ const { oldIndex: y, newIndex: a } = c;
2339
+ O.value.splice(a, 0, ...O.value.splice(y, 1));
2340
+ };
2341
+ return v({ requiredVerification: o }), (c, y) => {
2342
+ const a = te("IkApprovalProcess", !0);
2343
+ return s(), f("div", ta, [
2344
+ (s(!0), f(
2345
+ N,
2346
+ null,
2347
+ Q(e.dataList, (A, G) => {
2348
+ var M, W, $, q;
2349
+ return s(), f("div", {
2350
+ class: "content",
2351
+ key: A.id
2352
+ }, [
2353
+ g(" 审批节点类型 "),
2354
+ n("div", la, [
2355
+ n("span", aa, [
2356
+ n(
2357
+ "i",
2358
+ {
2359
+ class: re(k(ft)(p, A[p.defaultFile.nodeType]))
2360
+ },
2361
+ null,
2362
+ 2
2363
+ /* CLASS */
2364
+ )
2365
+ ]),
2366
+ n(
2367
+ "div",
2368
+ {
2369
+ class: "line",
2370
+ style: Fe({ "border-left": G === e.dataList.length - 1 ? "" : "2px solid var(--el-border-color)" })
2371
+ },
2372
+ null,
2373
+ 4
2374
+ /* STYLE */
2375
+ )
2376
+ ]),
2377
+ A[p.defaultFile.nodeType] !== p.nodeType.并行分支 ? (s(), f("div", sa, [
2378
+ n("div", null, [
2379
+ n(
2380
+ "div",
2381
+ null,
2382
+ T(A[p.defaultFile.nodeTypeName]),
2383
+ 1
2384
+ /* TEXT */
2385
+ ),
2386
+ n("div", oa, [
2387
+ g(" 抄送节点 "),
2388
+ A[p.defaultFile.nodeType] == p.nodeType.抄送节点 ? (s(), f("span", na, [
2389
+ A[p.defaultFile.approvePersonList].length ? (s(), f(
2390
+ "span",
2391
+ ia,
2392
+ T(`抄送${A[p.defaultFile.approvePersonList].length}人`),
2393
+ 1
2394
+ /* TEXT */
2395
+ )) : g("v-if", !0),
2396
+ A[p.defaultFile.isShowAdd] ? (s(), f("span", ra, ",可添加抄送人")) : g("v-if", !0)
2397
+ ])) : (s(), f(
2398
+ N,
2399
+ { key: 1 },
2400
+ [
2401
+ g(" 审批节点 "),
2402
+ n("span", null, [
2403
+ g(" 存在审批人时 "),
2404
+ (M = A[p.defaultFile.approvePersonList]) != null && M.length ? (s(), f(
2405
+ "span",
2406
+ pa,
2407
+ T(((W = A[p.defaultFile.approvePersonList]) == null ? void 0 : W.length) == 1 ? "1人审批" : `${($ = A[p.defaultFile.approvePersonList]) == null ? void 0 : $.length}人${A[p.defaultFile.multiExecutorTypeName]}`),
2408
+ 1
2409
+ /* TEXT */
2410
+ )) : [p.statusWithoutApprover.自动通过, p.statusWithoutApprover.自动拒绝].includes(A[p.defaultFile.approveType]) ? (s(), f(
2411
+ "span",
2412
+ ua,
2413
+ T(A[p.defaultFile.approveTypeName]),
2414
+ 1
2415
+ /* TEXT */
2416
+ )) : A[p.defaultFile.executorEmptyStrategy] && A[p.defaultFile.executorEmpty] ? (s(), f(
2417
+ N,
2418
+ { key: 2 },
2419
+ [
2420
+ g(" 没有审批人,并且有指定默认审批方式 "),
2421
+ n("span", null, [
2422
+ y[0] || (y[0] = ee(
2423
+ " 未找到审批人,",
2424
+ -1
2425
+ /* CACHED */
2426
+ )),
2427
+ n(
2428
+ "span",
2429
+ null,
2430
+ T(A[p.defaultFile.executorEmptyStrategy] == p.statusWithoutApprover.自动通过 ? "将自动通过" : A[p.defaultFile.executorEmptyStrategy] == p.statusWithoutApprover.自动转交管理员 ? "自动转交给管理员" : A[p.defaultFile.executorEmptyStrategy] == p.statusWithoutApprover.指定人员审批 ? `将自动转给指定成员${A[p.defaultFile.reserveExecutorUsers] && A[p.defaultFile.reserveExecutorUsers][0].userName}` : ""),
2431
+ 1
2432
+ /* TEXT */
2433
+ )
2434
+ ])
2435
+ ],
2436
+ 2112
2437
+ /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
2438
+ )) : [p.nodeType.并行分支, p.nodeType.子流程].includes(A[p.defaultFile.nodeType]) ? g("v-if", !0) : (s(), f(
2439
+ "span",
2440
+ {
2441
+ key: 3,
2442
+ class: re(A.required ? "warn" : "")
2443
+ },
2444
+ " 请选择" + T(A[p.defaultFile.nodeType] === p.nodeType.办理节点 ? "办理人" : "审批人"),
2445
+ 3
2446
+ /* TEXT, CLASS */
2447
+ ))
2448
+ ])
2449
+ ],
2450
+ 2112
2451
+ /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
2452
+ ))
2453
+ ])
2454
+ ]),
2455
+ n("div", da, [
2456
+ C(k(Re), {
2457
+ modelValue: A[p.defaultFile.approvePersonList],
2458
+ "onUpdate:modelValue": (V) => A[p.defaultFile.approvePersonList] = V,
2459
+ group: { name: "people", pull: !1, put: !1 },
2460
+ "item-key": "userId",
2461
+ handle: ".draggable-item",
2462
+ animation: 200,
2463
+ "ghost-class": "ghost-item",
2464
+ "chosen-class": "chosen-item",
2465
+ "drag-class": "drag-item",
2466
+ onStart: (V) => u(A[p.defaultFile.approvePersonList]),
2467
+ onEnd: h,
2468
+ class: "draggable-container"
2469
+ }, {
2470
+ item: S(({ element: V, index: Z }) => {
2471
+ var oe, ne;
2472
+ return [
2473
+ (s(), f("div", {
2474
+ class: "list draggable-item",
2475
+ key: V.userId
2476
+ }, [
2477
+ n("div", ca, [
2478
+ n("div", fa, [
2479
+ V.userAvatar ? (s(), f("img", {
2480
+ key: 0,
2481
+ src: D(V.userAvatar),
2482
+ alt: ""
2483
+ }, null, 8, Aa)) : (s(), f("div", va, [
2484
+ n(
2485
+ "span",
2486
+ null,
2487
+ T((oe = V.userName) == null ? void 0 : oe.slice(-2)),
2488
+ 1
2489
+ /* TEXT */
2490
+ )
2491
+ ])),
2492
+ V.canDele ? (s(), f("i", {
2493
+ key: 2,
2494
+ onClick: (ie) => m(G, Z),
2495
+ class: "ikapprove ikapprove-shanchu1"
2496
+ }, null, 8, ha)) : g("v-if", !0)
2497
+ ]),
2498
+ n("div", {
2499
+ class: "name",
2500
+ title: V.userName
2501
+ }, T(V.userName), 9, ya)
2502
+ ]),
2503
+ g(" 显示添加人按钮,不是单选且已选中一个人的情况,显示图标 "),
2504
+ A[p.defaultFile.isShowAdd] && !(A[p.defaultFile.singleApproval] && ((ne = A[p.defaultFile.approvePersonList]) == null ? void 0 : ne.length) == 1) ? (s(), f("span", ma, [
2505
+ g(" 抄送默认 "),
2506
+ A[p.defaultFile.nodeType] == p.nodeType.抄送节点 ? (s(), f("span", ga, "+")) : (s(), f(
2507
+ N,
2508
+ { key: 1 },
2509
+ [
2510
+ g(" 审批 "),
2511
+ n(
2512
+ "span",
2513
+ null,
2514
+ T(A[p.defaultFile.multiExecutorType] == "ANY" ? "/" : A[p.defaultFile.multiExecutorType] == "ALL" ? "+" : ">"),
2515
+ 1
2516
+ /* TEXT */
2517
+ )
2518
+ ],
2519
+ 2112
2520
+ /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
2521
+ ))
2522
+ ])) : g("v-if", !0)
2523
+ ]))
2524
+ ];
2525
+ }),
2526
+ _: 2
2527
+ /* DYNAMIC */
2528
+ }, 1032, ["modelValue", "onUpdate:modelValue", "onStart"]),
2529
+ g(" 显示添加人按钮,不是单选且已选中一个人的情况,显示按钮 (item[state.defaultFile.isShowAdd] && "),
2530
+ A[p.defaultFile.isShowAdd] && !(A[p.defaultFile.singleApproval] && ((q = A[p.defaultFile.approvePersonList]) == null ? void 0 : q.length) == 1) || A[p.defaultFile.isShowAddCopy] ? (s(), f("span", {
2531
+ key: 0,
2532
+ class: "addBg",
2533
+ onClick: (V) => F(A)
2534
+ }, [
2535
+ A[p.defaultFile.nodeType] == p.nodeType.审批节点 ? (s(), f("span", Oa)) : g("v-if", !0),
2536
+ y[1] || (y[1] = n(
2537
+ "i",
2538
+ { class: "ikapprove ikapprove-xinzeng" },
2539
+ null,
2540
+ -1
2541
+ /* CACHED */
2542
+ ))
2543
+ ], 8, xa)) : g("v-if", !0),
2544
+ g(" 添加人组件 "),
2545
+ C(k(ea), Ve({
2546
+ modelValue: A.handList,
2547
+ "onUpdate:modelValue": (V) => A.handList = V,
2548
+ show: A.isShow,
2549
+ "onUpdate:show": (V) => A.isShow = V,
2550
+ onOk: (V) => R(V, G),
2551
+ multiple: A.multiple,
2552
+ "dep-list": A.depList,
2553
+ "user-list": A.userList,
2554
+ "organization-list": A.organizationList
2555
+ }, { ref_for: !0 }, r.value, {
2556
+ chooseType: A.chooseType
2557
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "show", "onUpdate:show", "onOk", "multiple", "dep-list", "user-list", "organization-list", "chooseType"])
2558
+ ])
2559
+ ])) : (s(), f("div", Pa, [
2560
+ y[2] || (y[2] = n(
2561
+ "div",
2562
+ { class: "branch-line" },
2563
+ null,
2564
+ -1
2565
+ /* CACHED */
2566
+ )),
2567
+ n("div", ka, [
2568
+ (s(!0), f(
2569
+ N,
2570
+ null,
2571
+ Q(A.parallelInstances, (V, Z) => (s(), f(
2572
+ "div",
2573
+ {
2574
+ key: Z,
2575
+ class: re(`branch branch-${Z}`)
2576
+ },
2577
+ [
2578
+ n(
2579
+ "div",
2580
+ Ta,
2581
+ T(V.name),
2582
+ 1
2583
+ /* TEXT */
2584
+ ),
2585
+ C(a, Ve({ ref_for: !0 }, e, {
2586
+ dataList: V.processInstanceNodes,
2587
+ style: { "margin-left": "20px" }
2588
+ }), null, 16, ["dataList"])
2589
+ ],
2590
+ 2
2591
+ /* CLASS */
2592
+ ))),
2593
+ 128
2594
+ /* KEYED_FRAGMENT */
2595
+ ))
2596
+ ])
2597
+ ]))
2598
+ ]);
2599
+ }),
2600
+ 128
2601
+ /* KEYED_FRAGMENT */
2602
+ ))
2603
+ ]);
2604
+ };
2605
+ }
2606
+ }), Ca = /* @__PURE__ */ X(ba, [["__scopeId", "data-v-33ad8147"]]), Ia = Me(Ca);
2607
+ export {
2608
+ Ia as IkApprovalProcess,
2609
+ Ia as default
2610
+ };