iking-web-ui-pro 0.2.53 → 0.2.55

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 (174) hide show
  1. package/dist/{IkApprovalProcess → IKApprovalProcess}/ik.index.es.js +860 -853
  2. package/dist/IKApprovalProcess/ik.index.umd.js +1 -0
  3. package/dist/{IkApprovalProcess → IKApprovalProcess}/style.css +1 -1
  4. package/dist/{IkApprovalProcessDetail → IKApprovalProcessDetail}/ik.index.es.js +2659 -2704
  5. package/dist/IKApprovalProcessDetail/ik.index.umd.js +226 -0
  6. package/dist/IKApprovalProcessDetail/style.css +1 -0
  7. package/dist/{IkCalendar → IKCalendar}/ik.index.es.js +2355 -2372
  8. package/dist/IKCalendar/ik.index.umd.js +1 -0
  9. package/dist/{IkCalendar → IKCalendar}/style.css +1 -1
  10. package/dist/IKHorizontalStepBar/ik.index.es.js +93 -93
  11. package/dist/IKHorizontalStepBar/ik.index.umd.js +1 -1
  12. package/dist/IKPreviewFile/ik.index.es.js +2355 -2400
  13. package/dist/IKPreviewFile/ik.index.umd.js +59 -59
  14. package/dist/IKPreviewFile/style.css +1 -1
  15. package/dist/IKSearch/ik.index.es.js +1058 -1058
  16. package/dist/IKSearch/ik.index.umd.js +2 -2
  17. package/dist/IkBottomOperate/ik.index.es.js +59 -59
  18. package/dist/IkBottomOperate/ik.index.umd.js +1 -1
  19. package/dist/IkBtnSetting/ik.index.es.js +110 -110
  20. package/dist/IkBtnSetting/ik.index.umd.js +1 -1
  21. package/dist/IkDescription/ik.index.es.js +2402 -2447
  22. package/dist/IkDescription/ik.index.umd.js +59 -59
  23. package/dist/IkDescription/style.css +1 -1
  24. package/dist/IkDetailPreviewFiles/ik.index.es.js +2681 -2726
  25. package/dist/IkDetailPreviewFiles/ik.index.umd.js +52 -52
  26. package/dist/IkDetailPreviewFiles/style.css +1 -1
  27. package/dist/IkFileIcon/ik.index.es.js +394 -394
  28. package/dist/IkFileIcon/ik.index.umd.js +1 -1
  29. package/dist/IkFullCalendar/ik.index.es.js +584 -601
  30. package/dist/IkFullCalendar/ik.index.umd.js +1 -1
  31. package/dist/IkImageEditor/ik.index.es.js +22 -0
  32. package/dist/IkImageEditor/ik.index.umd.js +1 -0
  33. package/dist/IkImageUploadEditor/ik.index.es.js +162 -0
  34. package/dist/IkImageUploadEditor/ik.index.umd.js +1 -0
  35. package/dist/IkMonacoEditor/ik.index.es.js +27 -27
  36. package/dist/IkMonacoEditor/ik.index.umd.js +3 -3
  37. package/dist/IkPageFull/ik.index.es.js +1466 -1466
  38. package/dist/IkPageFull/ik.index.umd.js +3 -3
  39. package/dist/IkPickerUser/ik.index.es.js +839 -839
  40. package/dist/IkPickerUser/ik.index.umd.js +1 -1
  41. package/dist/IkPlayer/ik.index.es.js +981 -1062
  42. package/dist/IkPlayer/ik.index.umd.js +52 -52
  43. package/dist/IkPreviewFileDialog/ik.index.es.js +709 -790
  44. package/dist/IkPreviewFileDialog/ik.index.umd.js +50 -50
  45. package/dist/IkSchedule/ik.index.es.js +1535 -1552
  46. package/dist/IkSchedule/ik.index.umd.js +1 -1
  47. package/dist/IkTemplateOfficeConfig/ik.index.es.js +108 -108
  48. package/dist/IkTemplateOfficeConfig/ik.index.umd.js +1 -1
  49. package/dist/IkTinymce/ik.index.es.js +27118 -26402
  50. package/dist/IkTinymce/ik.index.umd.js +61 -61
  51. package/dist/IkTinymce/style.css +1 -1
  52. package/dist/IkUploadFile/ik.index.es.js +1372 -1451
  53. package/dist/IkUploadFile/ik.index.umd.js +50 -50
  54. package/dist/IkUploadFile/style.css +1 -1
  55. package/dist/IkUploadImage/ik.index.es.js +313 -313
  56. package/dist/IkUploadImage/ik.index.umd.js +1 -1
  57. package/dist/index.es.js +39463 -38651
  58. package/dist/index.umd.js +133 -133
  59. package/dist/src/components/IKExpandCollapse/index.d.ts +5 -5
  60. package/dist/src/components/IKExpandCollapse/src/IKExpandCollapse.vue.d.ts +5 -5
  61. package/dist/src/components/IKHorizontalStepBar/index.d.ts +90 -30
  62. package/dist/src/components/IKHorizontalStepBar/src/IKHorizontalStepBar.vue.d.ts +7 -7
  63. package/dist/src/components/IKPreviewFile/index.d.ts +120 -13
  64. package/dist/src/components/IKPreviewFile/src/IkPreviewFile.vue.d.ts +16 -7
  65. package/dist/src/components/IKSearch/index.d.ts +84 -24
  66. package/dist/src/components/IKSearch/src/IKSearch.vue.d.ts +10 -10
  67. package/dist/src/components/IKSearch/src/IkSearchAuto.d.ts +5 -5
  68. package/dist/src/components/IKSearchHead/index.d.ts +5 -5
  69. package/dist/src/components/IKSearchHead/src/IKSearchHead.vue.d.ts +5 -5
  70. package/dist/src/components/IKVerticalStepBar/index.d.ts +5 -5
  71. package/dist/src/components/IKVerticalStepBar/src/IKVerticalStepBar.vue.d.ts +5 -5
  72. package/dist/src/components/IkApprovalProcess/index.d.ts +7 -7
  73. package/dist/src/components/IkApprovalProcess/src/IKApprovalProcess.vue.d.ts +7 -7
  74. package/dist/src/components/IkApprovalProcessDetail/index.d.ts +5 -5
  75. package/dist/src/components/IkApprovalProcessDetail/src/IKApprovalProcessDetail.vue.d.ts +5 -5
  76. package/dist/src/components/IkAutoCard/index.d.ts +12 -6
  77. package/dist/src/components/IkAutoCard/src/IkAutoCard.vue.d.ts +4 -4
  78. package/dist/src/components/IkBaseDialog/index.d.ts +35 -6
  79. package/dist/src/components/IkBaseDialog/src/CloseIcon.vue.d.ts +4 -4
  80. package/dist/src/components/IkBaseDialog/src/IkBaseDialog.vue.d.ts +4 -4
  81. package/dist/src/components/IkBottomOperate/index.d.ts +43 -15
  82. package/dist/src/components/IkBottomOperate/src/IkBottomOperate.vue.d.ts +7 -7
  83. package/dist/src/components/IkBtnContent/index.d.ts +5 -7
  84. package/dist/src/components/IkBtnContent/src/index.d.ts +5 -7
  85. package/dist/src/components/IkBtnSetting/index.d.ts +5 -5
  86. package/dist/src/components/IkBtnSetting/src/IkBtnSetting.vue.d.ts +5 -5
  87. package/dist/src/components/IkCalendar/index.d.ts +5 -5
  88. package/dist/src/components/IkCalendar/src/IKCalendar.vue.d.ts +5 -5
  89. package/dist/src/components/IkCollapseCard/index.d.ts +12 -6
  90. package/dist/src/components/IkCollapseCard/src/index.vue.d.ts +4 -4
  91. package/dist/src/components/IkCurrencyInput/index.d.ts +5 -5
  92. package/dist/src/components/IkCurrencyInput/src/IkCurrencyInput.vue.d.ts +5 -5
  93. package/dist/src/components/IkDescription/index.d.ts +39 -6
  94. package/dist/src/components/IkDescription/src/IkDescription.vue.d.ts +4 -4
  95. package/dist/src/components/IkDetailPreviewFiles/index.d.ts +4 -4
  96. package/dist/src/components/IkDetailPreviewFiles/src/IkDetailPreviewFiles.vue.d.ts +4 -4
  97. package/dist/src/components/IkDragList/index.d.ts +130 -13
  98. package/dist/src/components/IkDragList/src/IkDragList.vue.d.ts +6 -6
  99. package/dist/src/components/IkEmpty/index.d.ts +19 -6
  100. package/dist/src/components/IkEmpty/src/index.vue.d.ts +4 -4
  101. package/dist/src/components/IkFileIcon/index.d.ts +4 -4
  102. package/dist/src/components/IkFileIcon/src/IkFileIcon.vue.d.ts +4 -4
  103. package/dist/src/components/IkFullCalendar/index.d.ts +6 -6
  104. package/dist/src/components/IkIconPicker/index.d.ts +4 -4
  105. package/dist/src/components/IkIconPicker/src/index.vue.d.ts +4 -4
  106. package/dist/src/components/IkImageEditor/index.d.ts +2 -0
  107. package/dist/src/components/IkImageUploadEditor/index.d.ts +191 -0
  108. package/dist/src/components/IkImageUploadEditor/src/IkImageUploadEditor.vue.d.ts +192 -0
  109. package/dist/src/components/IkMonacoEditor/index.d.ts +10 -167
  110. package/dist/src/components/IkMonacoEditor/src/index.vue.d.ts +10 -167
  111. package/dist/src/components/IkOnlyOffice/index.d.ts +4 -4
  112. package/dist/src/components/IkOnlyOffice/src/IkOnlyOffice.vue.d.ts +4 -4
  113. package/dist/src/components/IkPageFull/index.d.ts +143 -54
  114. package/dist/src/components/IkPageFull/src/IkDialog.d.ts +5 -369
  115. package/dist/src/components/IkPageFull/src/IkPage.vue.d.ts +5 -5
  116. package/dist/src/components/IkPageFull/src/IkPageHead.vue.d.ts +5 -5
  117. package/dist/src/components/IkPageFull/src/IkPageTable.vue.d.ts +8 -8
  118. package/dist/src/components/IkPageFull/src/IkSearchAuto.d.ts +6 -6
  119. package/dist/src/components/IkPageFull/src/index.vue.d.ts +14 -20
  120. package/dist/src/components/IkPageTabs/index.d.ts +38 -13
  121. package/dist/src/components/IkPageTabs/src/IkPageTabs.vue.d.ts +6 -6
  122. package/dist/src/components/IkPickerUser/index.d.ts +10 -10
  123. package/dist/src/components/IkPickerUser/src/avatar/Avatar.vue.d.ts +4 -4
  124. package/dist/src/components/IkPickerUser/src/list/GroupList.vue.d.ts +6 -6
  125. package/dist/src/components/IkPickerUser/src/list/PostList.vue.d.ts +6 -6
  126. package/dist/src/components/IkPickerUser/src/list/RoleList.vue.d.ts +6 -6
  127. package/dist/src/components/IkPickerUser/src/picker.vue.d.ts +10 -10
  128. package/dist/src/components/IkPickerUser/src/svg/close_svg.vue.d.ts +1 -1
  129. package/dist/src/components/IkPickerUser/src/svg/group_svg.vue.d.ts +1 -1
  130. package/dist/src/components/IkPickerUser/src/svg/post_svg.vue.d.ts +1 -1
  131. package/dist/src/components/IkPickerUser/src/svg/role_svg.vue.d.ts +1 -1
  132. package/dist/src/components/IkPickerUser/src/svg/search_svg.vue.d.ts +1 -1
  133. package/dist/src/components/IkPickerUser/src/use-picker-data.d.ts +1 -1
  134. package/dist/src/components/IkPlayer/index.d.ts +26 -10
  135. package/dist/src/components/IkPlayer/src/Player.vue.d.ts +5 -5
  136. package/dist/src/components/IkPreviewFileDialog/index.d.ts +4 -4
  137. package/dist/src/components/IkPreviewFileDialog/src/IkPreviewFileDialog.vue.d.ts +4 -4
  138. package/dist/src/components/IkPrintConfig/index.d.ts +5 -5
  139. package/dist/src/components/IkPrintView/index.d.ts +5 -5
  140. package/dist/src/components/IkRadioGroup/index.d.ts +4 -4
  141. package/dist/src/components/IkRadioGroup/src/index.vue.d.ts +4 -4
  142. package/dist/src/components/IkSchedule/index.d.ts +48 -17
  143. package/dist/src/components/IkSelectTag/index.d.ts +25 -10
  144. package/dist/src/components/IkSelectTag/src/index.vue.d.ts +5 -5
  145. package/dist/src/components/IkSideText/IkLinearIcon.vue.d.ts +4 -4
  146. package/dist/src/components/IkSideText/IkSideText.vue.d.ts +4 -4
  147. package/dist/src/components/IkSideText/index.d.ts +4 -4
  148. package/dist/src/components/IkStatu/index.d.ts +5 -5
  149. package/dist/src/components/IkStatu/src/index.vue.d.ts +5 -5
  150. package/dist/src/components/IkStatuOver/index.d.ts +5 -5
  151. package/dist/src/components/IkStatuOver/src/index.vue.d.ts +5 -5
  152. package/dist/src/components/IkSvgIcon/index.d.ts +12 -12
  153. package/dist/src/components/IkSvgIcon/src/index.vue.d.ts +4 -4
  154. package/dist/src/components/IkTemplateOfficeConfig/index.d.ts +6 -6
  155. package/dist/src/components/IkTinymce/index.d.ts +5 -5
  156. package/dist/src/components/IkTinymce/src/index.vue.d.ts +5 -5
  157. package/dist/src/components/IkTooltip/index.d.ts +19 -6
  158. package/dist/src/components/IkTooltip/src/index.vue.d.ts +4 -4
  159. package/dist/src/components/IkTree/IkTree.vue.d.ts +127 -807
  160. package/dist/src/components/IkTree/index.d.ts +601 -2620
  161. package/dist/src/components/IkUploadFile/index.d.ts +135 -14
  162. package/dist/src/components/IkUploadFile/src/index.vue.d.ts +7 -7
  163. package/dist/src/components/IkUploadImage/index.d.ts +79 -10
  164. package/dist/src/components/IkUploadImage/src/index.vue.d.ts +5 -5
  165. package/dist/src/components/IkUploadImage/src/loading.vue.d.ts +1 -1
  166. package/dist/src/components/Provider/ProviderConfig.vue.d.ts +4 -4
  167. package/dist/src/components/Provider/index.d.ts +27 -6
  168. package/dist/src/components/index.d.ts +3 -3
  169. package/dist/style.css +1 -1
  170. package/package.json +1 -1
  171. package/dist/IkApprovalProcess/ik.index.umd.js +0 -1
  172. package/dist/IkApprovalProcessDetail/ik.index.umd.js +0 -226
  173. package/dist/IkApprovalProcessDetail/style.css +0 -1
  174. package/dist/IkCalendar/ik.index.umd.js +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iking-web-ui-pro",
3
- "version": "0.2.53",
3
+ "version": "0.2.55",
4
4
  "description": "iking-web-ui-pro",
5
5
  "keywords": [
6
6
  "iking-web-ui-pro",
@@ -1 +0,0 @@
1
- (function(U,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("iking-utils-pro"),require("element-plus"),require("axios")):typeof define=="function"&&define.amd?define(["exports","vue","iking-utils-pro","element-plus","axios"],e):(U=typeof globalThis<"u"?globalThis:U||self,e(U.index={},U.vue,U["iking-utils-pro"],U["element-plus"],U.axios))})(this,function(U,e,L,V,me){"use strict";const le=(c,m)=>{if(c.install=t=>{for(const o of[c,...Object.values(m??{})])t.component(o.name,o)},m)for(const[t,o]of Object.entries(m))c[t]=o;return c},D=(c,m)=>{const t=c.__vccOpts||c;for(const[o,x]of m)t[o]=x;return t},Ae=(c,m)=>m?m.startsWith("http")?m:`${c||location.origin}${m}`:"",he=c=>({nodeType:{发起人节点:"INITIATOR",审批节点:"APPROVE",抄送节点:"CARBON_COPY",办理节点:"DISPOSE",分支节点:"BRANCH",条件节点:"CONDITION",结束节点:"END",并行分支:"PARALLEL",子流程:"SUB_PROCESS",...c.defaultNodeType},defaultFile:{id:"id",parallelInstances:"parallelInstances",backToInstanceNodeName:"backToInstanceNodeName",backToRecordNodeName:"backToRecordNodeName",nodeId:"sortOrder",nodeType:"type",nodeTypeName:"name",approveStatus:"status",approveStatusName:"statusName",approveType:"approveType",multiExecutorType:"multiExecutorType",approveTypeName:"approveTypeName",multiExecutorTypeName:"multiExecutorTypeName",approvalCategory:"approvalCategory",isShowAdd:"initiatorSpecify",isShowAddCopy:"initiatorSpecifyCarbonCopy",executorEmpty:"executorEmpty",executorEmptyStrategy:"executorEmptyStrategy",reserveExecutorUsers:"reserveExecutorUsers",approvePersonList:"executorUsers",initiatorSpecifiedScope:"initiatorSpecifiedScope",initiatorSpecifiedScopeType:"initiatorSpecifiedScopeType",singleApproval:"singleApproval",originator:"username",...c.defaultFieldMap},statusWithoutApprover:{自动通过:"AUTO_PASS",自动拒绝:"AUTO_REJECT",自动转交管理员:"TRANSMIT_TO_MANAGER",指定人员审批:"SPECIFIED_USER",...c.statusWithoutApprover},multiple:!1,chooseType:[],statusOption:{发起:"INITIATE",等待:"WAIT",同意:"PASS",撤销:"REVOKE",拒绝:"REJECT",转交:"TRANSFER",加签:"APPEND",退回:"BACK",评论:"COMMENT",待执行:"WAITING",执行中:"RUNNING",...c.defaultStatus},listData:[]}),ye=(c,m,t)=>{let o="";switch(m){case c.nodeType.审批节点:t&&t.length==1?o="ikapprove-ziyuan":o="ikapprove-shenpi";break;case c.nodeType.办理节点:o="ikapprove-bianji";break;case c.nodeType.抄送节点:o="ikapprove-chaosong";break;case c.nodeType.并行分支:o="ikapprove-fenzhi";break;case c.nodeType.子流程:o="ikapprove-ziliucheng1";break;default:o="ikapprove-ziyuan"}return`ikapprove ${o}`},oe=["csv","djvu","doc","docm","docx","docxf","dot","dotm","dotx","epub","fb2","fodp","fods","fodt","htm","html","mht","odp","ods","odt","oform","otp","ots","ott","oxps","pdf","pot","potm","potx","pps","ppsm","ppsx","ppt","pptm","pptx","rtf","txt","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xml","xps","png","jpeg","jpg","webp","video","mp4","flv","tls"],ae=c=>{const m=e.inject("loadUrl"),t=e.computed(()=>c.loadUrl||c.fileUrl||(m==null?void 0:m.value)),o=e.inject("uploadUrl"),x=e.computed(()=>c.action||c.uploadUrl||(o==null?void 0:o.value)),k=e.inject("token"),E=e.computed(()=>c.token||(k==null?void 0:k.value)),O=e.inject("onlyofficeConfig"),i=e.computed(()=>c.onlyofficeConfig||(O==null?void 0:O.value)),C=e.inject("userInfo"),T=e.computed(()=>c.userInfo||(C==null?void 0:C.value)),P=[...oe,...oe.map(h=>h.toLocaleUpperCase())];return{cLoadUrl:t,cUploadUrl:x,cToken:E,cOnlyofficeConfig:i,cUserInfo:T,cOnlyofficePreviewType:P}},ue={},ke={t:"1672194715727",class:"icon",viewBox:"0 0 1024 1024",version:"1.1","p-id":"2667"};function ge(c,m){return e.openBlock(),e.createElementBlock("svg",ke,m[0]||(m[0]=[e.createElementVNode("path",{d:"M809.246403 771.926938 777.737782 803.458071 924.965961 950.667831 956.476629 919.157163Z",fill:"#5D5D5D","p-id":"2668"},null,-1),e.createElementVNode("path",{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",fill:"#5D5D5D","p-id":"2669"},null,-1)]))}const xe=D(ue,[["render",ge]]),Be={},Ee={t:"1710907270798",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8420",width:"200",height:"200"};function Oe(c,m){return e.openBlock(),e.createElementBlock("svg",Ee,m[0]||(m[0]=[e.createElementVNode("path",{d:"M512 1024A512 512 0 1 0 512 0a512 512 0 0 0 0 1024z",fill:"var(--ik-icon-deep-color)","p-id":"8421"},null,-1),e.createElementVNode("path",{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",fill:"#FFFFFF","p-id":"8422"},null,-1)]))}const Ve=D(Be,[["render",Oe]]),Ne={},Te={t:"1710904463698",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7124",width:"200",height:"200"};function Ce(c,m){return e.openBlock(),e.createElementBlock("svg",Te,m[0]||(m[0]=[e.createElementVNode("path",{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",fill:"var(--ik-icon-shallow-color-hover)","p-id":"7125"},null,-1),e.createElementVNode("path",{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",fill:"var(--ik-color-tag-primary)","p-id":"7126"},null,-1)]))}const Le=D(Ne,[["render",Ce]]),Pe={},_e={t:"1710904436436",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"6989",width:"200",height:"200"};function Se(c,m){return e.openBlock(),e.createElementBlock("svg",_e,m[0]||(m[0]=[e.createElementVNode("path",{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",fill:"var(--ik-color-tag-primary)","p-id":"6990"},null,-1),e.createElementVNode("path",{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",fill:"var(--ik-icon-shallow-color-hover)","p-id":"6991"},null,-1)]))}const we=D(Pe,[["render",Se]]),be={},Ue={t:"1710904287393",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"6854",width:"200",height:"200"};function De(c,m){return e.openBlock(),e.createElementBlock("svg",Ue,m[0]||(m[0]=[e.createElementVNode("path",{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",fill:"var(--ik-icon-shallow-color-hover)","p-id":"6855"},null,-1),e.createElementVNode("path",{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",fill:"var(--ik-color-tag-primary)","p-id":"6856"},null,-1)]))}const Ie=D(be,[["render",De]]),Fe={class:"avatar"},Re={key:3,class:"user_box"},Me={key:1,class:"avatar_name"},je=e.defineComponent({__name:"Avatar",props:{fixPropOpt:{type:Object,default:()=>{}},fixTypeOpt:{type:Object,default:()=>{}},element:{type:Object,default:()=>{}},imageBaseUrl:{type:String,default:""}},setup(c){const m=c,{cLoadUrl:t}=ae(m),o=x=>Ae(t.value,x);return(x,k)=>{const E=e.resolveComponent("el-avatar");return e.openBlock(),e.createElementBlock("div",Fe,[m.fixTypeOpt.group===c.element[m.fixPropOpt.type]?(e.openBlock(),e.createBlock(Ie,{key:0})):m.fixTypeOpt.role===c.element[m.fixPropOpt.type]?(e.openBlock(),e.createBlock(Le,{key:1})):m.fixTypeOpt.post===c.element[m.fixPropOpt.type]?(e.openBlock(),e.createBlock(we,{key:2})):m.fixTypeOpt.user===c.element[m.fixPropOpt.type]?(e.openBlock(),e.createElementBlock("div",Re,[c.element[c.fixPropOpt.avatar]?(e.openBlock(),e.createBlock(E,{key:0,shape:"square",src:o(c.fixPropOpt.avatar?c.element[c.fixPropOpt.avatar]:"")},null,8,["src"])):(e.openBlock(),e.createElementBlock("div",Me,e.toDisplayString(c.element[c.fixPropOpt.name].slice(-2)),1))])):e.createCommentVNode("v-if",!0)])}}}),Hl="",_=D(je,[["__scopeId","data-v-8031ce9b"]]),q="data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bc37OMP2Y5Z5xioxwALBSridUAAe2PyFxopohDSWVP/M2RAZ43b7JOT7vDiWAukTn7gZKAljHmig+HiisRYSOsqxzRcwtHuA0ihG2zggPceBgQoJ9OrQn4+9SynodSjUnN3S1msttzAbtHUyHt0dqPI8MmNPuuX8oNYGSrMU/jq1/tuwVAcRYjFSmiVtRyf52fqt8XWRriSR73+gAIbwbhZMdATlGZy0CGP2PPNUcp2aE5oBbmSjStpYBFxz4bcqxQSVdwMV0UOCxRcyEWqPkw7ZCJO8qXyf/uEHIyBNR1plTtcMWPXcI1Dmkhi0cBoqF2quLyff3S3y9RMN/xM9oPh7cT8+rNF9azivisDh4AIyAlaYTSsoJ6JFmrxFP//iZ//3US//7kyGHqb0JWaRZPd5LjuIc4b3Pdxeirqg3w8ux5nlN/CW5YYPR8ygYwahr/iqudOg0NhFAVNXbgNGCTQRj2YmxoT259SWlnA1dtgjuRe2cZOmxqn+mvuyGdvAd9XjPSV4VVEAnROrjCwrgbhyKFpb8s12Za8/F4cSrPOSuadvlSXDEdhrb27ok+DnCnJqOg8Kj9Gqlca2xL+KvTh1u+NuUBnWJWF2Y9f3+xrM9KPN55AGLwUs8yRaGNKw9ngyAAfv8bf7tO4JOhTqKsM4JbfTtFKmlQhMS77J/ZyxsS7I+u5WO0/gjo83E7/80LOn4Ple50oLNP3yW4yTSnlNCwg+COLMFER8MfaIeAHTLvnkH3eDLow61YfoXxUp6SIMiBAHJ75Y1CrZeW1DvEoWdfnDhpz06KBs12oE7Ob6wCwc+FXeaKHfhDxAz/7xTqCDxZf++IGd1QQAB/TN8qRAl4EZQF8tbRrVQIKm2g8cbO8potBMoXyVFfUtI4r31krwmWYxDz2AAAAAAAA",K={list:{type:Array,default:()=>[]},handList:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!0},max:{type:Number,default:0},fixPropOpt:{type:Object,default:()=>{}},fixTypeOpt:{type:Object,default:()=>{}},height:{type:String,default:"404px"},imageBaseUrl:{type:String,default:""},emptyText:{type:String,default:"暂无数据"},children:{type:Boolean,default:!0},chooseType:{type:Array,default:()=>["dep"]}},We={class:"left-pick-list"},Ge={key:1,class:"post-view-list"},He={class:"checkText"},ze={class:"iconBox"},$e={class:"name_number"},Qe={class:"title"},Xe={key:0,class:"userCount"},qe={key:1,class:"checkText"},Ke={class:"iconBox"},Ze={class:"name_number"},Ye={class:"title"},Je={key:0,class:"userCount"},ve=["onClick"],et={class:"checkText"},tt={class:"iconBox"},lt={class:"name_number"},ot={class:"title"},at={key:0,class:"userCount"},nt={key:1,class:"checkText"},st={class:"iconBox"},rt={class:"name_number"},it={class:"title"},ct={key:0,class:"userCount"},pt=["onClick"],dt={key:2,class:"empty"},ft=e.defineComponent({__name:"GroupList",props:K,emits:["change","check","handChild"],setup(c,{emit:m}){var h,s;const t=c,o=e.computed(()=>{var r,l;return((r=t.handList)==null?void 0:r.length)===((l=t.list)==null?void 0:l.length)}),x=e.computed(()=>{var n,A,d,N;const r=(n=t.handList)==null?void 0:n.length,l=(A=t.list)==null?void 0:A.length;return t.multiple?k.value=t.handList.map(f=>f[t.fixPropOpt.id]):E.value=(N=(d=t.handList)==null?void 0:d[0])==null?void 0:N[t.fixPropOpt.id],r>0&&r<l}),k=e.ref(t.handList.map(r=>r[t.fixPropOpt.id])),E=e.ref((s=(h=t.handList)==null?void 0:h[0])==null?void 0:s[t.fixPropOpt.id]),O=m,i=r=>{const l=r?t.list.map(n=>{if(t.chooseType.includes(n[t.fixPropOpt.type].toLowerCase())&&n.available!==!1)return n[t.fixPropOpt.id]}):[];O("change",l,r?t.list:[])},C=r=>{O("change",r,t.list)},T=r=>{O("change",r,t.list)},P=(r,l)=>{l||O("handChild",r)};return(r,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createCommentVNode(" 遍历list多选 "),e.createElementVNode("div",We,[r.multiple&&r.list&&r.list.length?(e.openBlock(),e.createBlock(e.unref(V.ElCheckbox),{key:0,modelValue:o.value,"onUpdate:modelValue":l[0]||(l[0]=n=>o.value=n),indeterminate:x.value,onChange:i},{default:e.withCtx(()=>l[3]||(l[3]=[e.createTextVNode("全选")])),_:1},8,["modelValue","indeterminate"])):e.createCommentVNode("v-if",!0),r.list&&r.list.length?(e.openBlock(),e.createElementBlock("ul",Ge,[r.multiple?(e.openBlock(),e.createBlock(e.unref(V.ElCheckboxGroup),{key:0,modelValue:k.value,"onUpdate:modelValue":l[1]||(l[1]=n=>k.value=n),onChange:C},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.list,n=>{var A;return e.openBlock(),e.createElementBlock("li",{key:n[t.fixPropOpt.id]},[r.chooseType.includes(n[t.fixPropOpt.type].toLowerCase())&&n.available!==!1?(e.openBlock(),e.createBlock(e.unref(V.ElCheckbox),{key:0,label:n[t.fixPropOpt.id],disabled:n.available===!1},{default:e.withCtx(()=>[e.createElementVNode("div",He,[e.createElementVNode("div",ze,[e.createVNode(_,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:n,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),e.createElementVNode("div",$e,[e.createElementVNode("div",Qe,e.toDisplayString(n[t.fixPropOpt.name]),1),n[t.fixPropOpt.type]===t.fixTypeOpt.group?(e.openBlock(),e.createElementBlock("div",Xe," ("+e.toDisplayString(n.userCount)+") ",1)):e.createCommentVNode("v-if",!0)])])]),_:2},1032,["label","disabled"])):(e.openBlock(),e.createElementBlock("div",qe,[l[4]||(l[4]=e.createElementVNode("div",{class:"side"},null,-1)),e.createElementVNode("div",Ke,[e.createVNode(_,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:n,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),e.createElementVNode("div",Ze,[e.createElementVNode("div",Ye,e.toDisplayString(n[t.fixPropOpt.name]),1),n[t.fixPropOpt.type]===t.fixTypeOpt.group?(e.openBlock(),e.createElementBlock("div",Je," ("+e.toDisplayString(n.userCount)+") ",1)):e.createCommentVNode("v-if",!0)])])),n[t.fixPropOpt.type]===t.fixTypeOpt.group&&t.children?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass(["nextLevel",{"is-disabled":(A=k.value)==null?void 0:A.find(d=>d===n[t.fixPropOpt.id])}]),onClick:d=>{var N;return P(n,(N=k.value)==null?void 0:N.find(f=>f===n[t.fixPropOpt.id]))}}," 下级",10,ve)):e.createCommentVNode("v-if",!0)])}),128))]),_:1},8,["modelValue"])):(e.openBlock(),e.createBlock(e.unref(V.ElRadioGroup),{key:1,isIndeterminate:x.value,modelValue:E.value,"onUpdate:modelValue":l[2]||(l[2]=n=>E.value=n),onChange:T},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.list,n=>{var A;return e.openBlock(),e.createElementBlock("li",{class:"w-full",key:n[t.fixPropOpt.id]},[r.chooseType.includes(n[t.fixPropOpt.type].toLowerCase())&&n.available!==!1?(e.openBlock(),e.createBlock(e.unref(V.ElRadio),{key:0,label:n[t.fixPropOpt.id]},{default:e.withCtx(()=>[e.createElementVNode("div",et,[e.createElementVNode("div",tt,[e.createVNode(_,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:n,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),e.createElementVNode("div",lt,[e.createElementVNode("div",ot,e.toDisplayString(n[t.fixPropOpt.name]),1),n[t.fixPropOpt.type]===t.fixTypeOpt.group?(e.openBlock(),e.createElementBlock("div",at," ("+e.toDisplayString((n==null?void 0:n.userCount)||0)+") ",1)):e.createCommentVNode("v-if",!0)])])]),_:2},1032,["label"])):(e.openBlock(),e.createElementBlock("div",nt,[l[5]||(l[5]=e.createElementVNode("div",{class:"side"},null,-1)),e.createElementVNode("div",st,[e.createVNode(_,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:n,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),e.createElementVNode("div",rt,[e.createElementVNode("div",it,e.toDisplayString(n[t.fixPropOpt.name]),1),n[t.fixPropOpt.type]===t.fixTypeOpt.group?(e.openBlock(),e.createElementBlock("div",ct," ("+e.toDisplayString(n.userCount)+") ",1)):e.createCommentVNode("v-if",!0)])])),n[t.fixPropOpt.type]===t.fixTypeOpt.group&&t.children?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass(["nextLevel",{"is-disabled":(A=k.value)==null?void 0:A.find(d=>d===n[t.fixPropOpt.id])}]),onClick:d=>{var N;return P(n,(N=k.value)==null?void 0:N.find(f=>f===n[t.fixPropOpt.id]))}}," 下级",10,pt)):e.createCommentVNode("v-if",!0)])}),128))]),_:1},8,["isIndeterminate","modelValue"]))])):(e.openBlock(),e.createElementBlock("div",dt,[l[6]||(l[6]=e.createElementVNode("img",{src:q,alt:""},null,-1)),e.createElementVNode("div",null,e.toDisplayString(t.emptyText),1)]))])],2112))}}),zl="",mt=D(ft,[["__scopeId","data-v-8c34a55d"]]),At={class:"left-pick-list"},ht={key:1,class:"post-view-list"},yt={class:"iconBox"},ut={key:1,class:"checkText"},kt={class:"iconBox"},gt={class:"title"},xt={class:"ik-picker-single"},Bt={class:"iconBox"},Et={key:1,class:"checkText"},Ot={class:"iconBox"},Vt={class:"title"},Nt={key:2,class:"empty"},Tt=e.defineComponent({__name:"PostList",props:K,emits:["change","check"],setup(c,{emit:m}){var P,h;const t=c,o=e.computed(()=>{var s,r;return((s=t.handList)==null?void 0:s.length)===((r=t.list)==null?void 0:r.length)}),x=e.computed(()=>{var l,n,A,d;const s=(l=t.handList)==null?void 0:l.length,r=(n=t.list)==null?void 0:n.length;return t.multiple?k.value=t.handList.map(N=>N[t.fixPropOpt.id]):E.value=(d=(A=t.handList)==null?void 0:A[0])==null?void 0:d[t.fixPropOpt.id],s>0&&s<r}),k=e.ref(t.handList.map(s=>s[t.fixPropOpt.id])),E=e.ref((h=(P=t.handList)==null?void 0:P[0])==null?void 0:h[t.fixPropOpt.id]),O=m,i=s=>{const r=s?t.list.map(l=>l[t.fixPropOpt.id]):[];O("change",r,s?t.list:[])},C=s=>{O("change",s,t.list)},T=s=>{O("change",s,t.list)};return(s,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createCommentVNode(" 遍历list多选 "),e.createElementVNode("div",At,[s.multiple&&s.chooseType.includes("post")&&s.list&&s.list.length?(e.openBlock(),e.createBlock(e.unref(V.ElCheckbox),{key:0,modelValue:o.value,"onUpdate:modelValue":r[0]||(r[0]=l=>o.value=l),indeterminate:x.value,onChange:i},{default:e.withCtx(()=>r[3]||(r[3]=[e.createTextVNode("全选")])),_:1},8,["modelValue","indeterminate"])):e.createCommentVNode("v-if",!0),s.list&&s.list.length?(e.openBlock(),e.createElementBlock("ul",ht,[s.multiple?(e.openBlock(),e.createBlock(e.unref(V.ElCheckboxGroup),{key:0,modelValue:k.value,"onUpdate:modelValue":r[1]||(r[1]=l=>k.value=l),onChange:C},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.list,l=>(e.openBlock(),e.createElementBlock("li",{key:l[t.fixPropOpt.id]},[s.chooseType.includes(l[t.fixPropOpt.type].toLowerCase())?(e.openBlock(),e.createBlock(e.unref(V.ElCheckbox),{key:0,label:l[t.fixPropOpt.id]},{default:e.withCtx(()=>[e.createElementVNode("div",yt,[e.createVNode(_,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:l,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),e.createElementVNode("p",null,e.toDisplayString(l[t.fixPropOpt.name]),1)]),_:2},1032,["label"])):(e.openBlock(),e.createElementBlock("div",ut,[r[4]||(r[4]=e.createElementVNode("div",{class:"side"},null,-1)),e.createElementVNode("div",kt,[e.createVNode(_,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:l,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),e.createElementVNode("div",gt,e.toDisplayString(l[t.fixPropOpt.name]),1)]))]))),128))]),_:1},8,["modelValue"])):(e.openBlock(),e.createBlock(e.unref(V.ElRadioGroup),{key:1,isIndeterminate:x.value,modelValue:E.value,"onUpdate:modelValue":r[2]||(r[2]=l=>E.value=l),onChange:T},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.list,l=>(e.openBlock(),e.createElementBlock("li",{class:"w-full",key:l[t.fixPropOpt.id]},[s.chooseType.includes(l[t.fixPropOpt.type].toLowerCase())?(e.openBlock(),e.createBlock(e.unref(V.ElRadio),{key:0,label:l[t.fixPropOpt.id]},{default:e.withCtx(()=>[e.createElementVNode("div",xt,[e.createElementVNode("div",Bt,[e.createVNode(_,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:l,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),e.createElementVNode("p",null,e.toDisplayString(l[t.fixPropOpt.name]),1)])]),_:2},1032,["label"])):(e.openBlock(),e.createElementBlock("div",Et,[r[5]||(r[5]=e.createElementVNode("div",{class:"side"},null,-1)),e.createElementVNode("div",Ot,[e.createVNode(_,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:l,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),e.createElementVNode("div",Vt,e.toDisplayString(l[t.fixPropOpt.name]),1)]))]))),128))]),_:1},8,["isIndeterminate","modelValue"]))])):(e.openBlock(),e.createElementBlock("div",Nt,[r[6]||(r[6]=e.createElementVNode("img",{src:q,alt:""},null,-1)),e.createElementVNode("div",null,e.toDisplayString(t.emptyText),1)]))])],2112))}}),$l="",Ct=D(Tt,[["__scopeId","data-v-e03f0d36"]]),Lt={class:"left-pick-list"},Pt={key:1,class:"role-view-list"},_t={class:"iconBox"},St=["title"],wt={key:1,class:"checkText"},bt={class:"iconBox"},Ut=["title"],Dt={class:"ik-picker-single"},It={class:"iconBox"},Ft=["title"],Rt={key:1,class:"checkText"},Mt={class:"iconBox"},jt=["title"],Wt={key:2,class:"empty"},Gt=e.defineComponent({__name:"RoleList",props:K,emits:["change","check"],setup(c,{emit:m}){var P,h;const t=c,o=e.computed(()=>{var s,r;return((s=t.handList)==null?void 0:s.length)===((r=t.list)==null?void 0:r.length)}),x=e.computed(()=>{var l,n,A,d;const s=(l=t.handList)==null?void 0:l.length,r=(n=t.list)==null?void 0:n.length;return t.multiple?k.value=t.handList.map(N=>N[t.fixPropOpt.id]):E.value=(d=(A=t.handList)==null?void 0:A[0])==null?void 0:d[t.fixPropOpt.id],s>0&&s<r}),k=e.ref(t.handList.map(s=>s[t.fixPropOpt.id])),E=e.ref((h=(P=t.handList)==null?void 0:P[0])==null?void 0:h[t.fixPropOpt.id]),O=m,i=s=>{const r=s?t.list.map(l=>l[t.fixPropOpt.id]):[];O("change",r,s?t.list:[])},C=s=>{O("change",s,t.list)},T=s=>{O("change",s,t.list)};return(s,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createCommentVNode(" 遍历list多选 "),e.createElementVNode("div",Lt,[s.multiple&&s.chooseType.includes("role")&&s.list&&s.list.length?(e.openBlock(),e.createBlock(e.unref(V.ElCheckbox),{key:0,modelValue:o.value,"onUpdate:modelValue":r[0]||(r[0]=l=>o.value=l),indeterminate:x.value,onChange:i},{default:e.withCtx(()=>r[3]||(r[3]=[e.createTextVNode("全选")])),_:1},8,["modelValue","indeterminate"])):e.createCommentVNode("v-if",!0),s.list&&s.list.length?(e.openBlock(),e.createElementBlock("ul",Pt,[s.multiple?(e.openBlock(),e.createBlock(e.unref(V.ElCheckboxGroup),{key:0,modelValue:k.value,"onUpdate:modelValue":r[1]||(r[1]=l=>k.value=l),onChange:C},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.list,l=>(e.openBlock(),e.createElementBlock("li",{key:l[s.fixPropOpt.id]},[s.chooseType.includes(l[t.fixPropOpt.type].toLowerCase())?(e.openBlock(),e.createBlock(e.unref(V.ElCheckbox),{key:0,label:l[s.fixPropOpt.id],value:l[s.fixPropOpt.id],disabled:l.disabled},{default:e.withCtx(()=>[e.createElementVNode("div",_t,[e.createVNode(_,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:l,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),e.createElementVNode("p",{title:l[s.fixPropOpt.name]},e.toDisplayString(l[s.fixPropOpt.name]),9,St)]),_:2},1032,["label","value","disabled"])):(e.openBlock(),e.createElementBlock("div",wt,[r[4]||(r[4]=e.createElementVNode("div",{class:"side"},null,-1)),e.createElementVNode("div",bt,[e.createVNode(_,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:l,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),e.createElementVNode("div",{class:"title",title:l[s.fixPropOpt.name]},e.toDisplayString(l[s.fixPropOpt.name]),9,Ut)]))]))),128))]),_:1},8,["modelValue"])):(e.openBlock(),e.createBlock(e.unref(V.ElRadioGroup),{key:1,indeterminate:x.value,modelValue:E.value,"onUpdate:modelValue":r[2]||(r[2]=l=>E.value=l),onChange:T},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.list,l=>(e.openBlock(),e.createElementBlock("li",{class:"w-full",key:l[s.fixPropOpt.id]},[s.chooseType.includes(l[t.fixPropOpt.type].toLowerCase())?(e.openBlock(),e.createBlock(e.unref(V.ElRadio),{key:0,label:l[s.fixPropOpt.id],value:l[s.fixPropOpt.id],disabled:l.disabled},{default:e.withCtx(()=>[e.createElementVNode("div",Dt,[e.createElementVNode("div",It,[e.createVNode(_,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:l,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),e.createElementVNode("p",{title:l[s.fixPropOpt.name]},e.toDisplayString(l[s.fixPropOpt.name]),9,Ft)])]),_:2},1032,["label","value","disabled"])):(e.openBlock(),e.createElementBlock("div",Rt,[r[5]||(r[5]=e.createElementVNode("div",{class:"side"},null,-1)),e.createElementVNode("div",Mt,[e.createVNode(_,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:l,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),e.createElementVNode("div",{class:"title",title:l[s.fixPropOpt.name]},e.toDisplayString(l[s.fixPropOpt.name]),9,jt)]))]))),128))]),_:1},8,["indeterminate","modelValue"]))])):(e.openBlock(),e.createElementBlock("div",Wt,[r[6]||(r[6]=e.createElementVNode("img",{src:q,alt:""},null,-1)),e.createElementVNode("div",null,e.toDisplayString(t.emptyText),1)]))])],2112))}}),Ql="",Ht=D(Gt,[["__scopeId","data-v-be3b3e45"]]);var $=(c=>(c.group="group",c.role="role",c.post="post",c))($||{});const zt={children:{type:Boolean,default:!0},topLink:{type:Boolean,default:!0},modelValue:{type:Array,default:()=>[]},data:{type:Array,default:()=>[]},orgPid:{type:String,default:""},org:{type:Object,default:()=>null},immediate:{type:Boolean,default:!1},show:{type:Boolean,default:!1,required:!0},width:{type:String,default:"685px"},height:{type:String,default:"580px"},title:{type:String,default:"选择人员"},groupList:{type:Array,default:()=>[]},userList:{type:Array,default:()=>[]},roleList:{type:Array,default:()=>[]},postList:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!0},max:{type:Number,default:0},tabs:{type:Array,validator:c=>{if(c===void 0)return!0;if(Array.isArray(c)){if(!(c!=null&&c.length))return!1}else return console.error("IkingPicker参数错误:tabs必须是Array类型"),!1;return!0},default:()=>["group","role","post"]},chooseType:{type:Array,default:()=>["dep"]},api:{type:Object,default:()=>({methods:"post",headers:{"Content-Type":"application/json;charset=UTF-8",Authorization:"Bearer 9aa65e31e86f4232ac4e4136fb1d3413"},url:`${location.origin}${location.pathname}/serve/component/pick/mix`,param:null,paramKey:"type"})},typeOption:{type:Object,default:()=>{}},propOption:{type:Object,default:()=>null},search:{type:Boolean,default:!0},lazy:{type:Boolean,default:!0},imageBaseUrl:{type:String,default:""},placeholder:{type:String,default:"请输入"},emptyText:{type:String,default:"暂无数据"},dataScopeOnly:{type:Boolean,default:!1},rootDepartmentOnly:{type:Boolean,default:!1}},ne=c=>{const m=window.location.search;return new URLSearchParams(m).get(c)},$t=c=>{const m=L.ikStore.local.getItem("x_domain");m&&(c["X-DOMAIN"]=m)},Qt=c=>{var t;const m=ne("domain");if(m){c["X-DOMAIN"]=m;const o=ne("code");m==="APPLICATION"&&(c["X-APP"]=o)}else $t(c);(t=L.ikStore.local.getItem("tenant"))==null||t.code},Xt=(c,m)=>{const t=e.ref([]),o=async(k,E)=>{var j,B,S;const{url:O,methods:i,headers:C,param:T}=c.value||{},P={rootDepartmentId:((j=L.ikStore.local.getItem("now_shop"))==null?void 0:j.storeId)||"",parentDepartmentId:k||"",name:E||"",rootDepartmentOnly:m.rootDepartmentOnly,dataScopeOnly:m.dataScopeOnly,...T||{}},h={method:i,url:O,headers:{"Content-Type":"application/json;charset=UTF-8",...C},data:JSON.stringify(P)};Qt(h.headers);const s=await me(h),{success:r,data:l}=s.data;if(!r)return{groupList:[],roleList:[],postList:[],userList:[],rootOrganization:{},rootDepartment:{}};const{departments:n,roles:A,posts:d,users:N,rootOrganization:f,rootDepartment:b}=l,M=f||b;return t.value.length===0&&(t.value[0]=m.org?{...m.org,id:m.elementId,elementType:(S=(B=m.org)==null?void 0:B.elementType)==null?void 0:S.toLocaleUpperCase()}:{...M,id:M.elementId}),{groupList:L._.cloneDeep(n),roleList:L._.cloneDeep(A),postList:L._.cloneDeep(d),userList:L._.cloneDeep(N),rootOrganization:f,rootDepartment:b}};return{handData:o,handSetChild:(k,E)=>{o(k==null?void 0:k.elementId,E)},bannerList:t}},qt={shadow:"hover",class:"sel-list"},Kt={key:0},Zt={class:"choose-list"},Yt={class:"choose-item"},Jt={class:"choose-box"},vt={class:"list-group-item"},el={class:"item_info"},tl={class:"avatar_box"},ll={class:"dialog-footer"},ol=e.defineComponent({__name:"picker",props:zt,emits:["handChild","update:show","update:modelValue","ok","search"],setup(c,{expose:m,emit:t}){e.useCssVars(a=>({"775d0d08":de.value}));const o=c,x=e.ref(""),k=e.ref(""),E=e.ref([]),O=e.ref([]),i=e.ref([]),C=e.ref([]),T=e.ref(!1),P=e.computed(()=>S.value.includes("user")?O.value.concat(E.value):O.value);e.watch(()=>o.api,()=>{o.show&&j("")});const h=e.computed(()=>({name:"name",type:"type",id:"id",avatar:"avatar",...o.propOption})),s=e.computed(()=>({user:"USER",role:"ROLE",post:"POST",group:"DEPT",...o.typeOption})),r=e.ref([]),l=Xt(e.toRef(o,"api"),o),n=l.handData,A=l.bannerList;o.immediate&&n(k.value,x.value);const d=a=>(a.forEach(p=>{var y,u;p.disabled=((u=(y=o.modelValue)==null?void 0:y.find(g=>g[h.value.id]===p[h.value.id]))==null?void 0:u.disabled)||!1}),a),N=async()=>{var a,p,y,u,g,F,te,fe;T.value=!0;try{if((a=o.groupList)!=null&&a.length||(p=o.userList)!=null&&p.length||(y=o.roleList)!=null&&y.length||(u=o.postList)!=null&&u.length){E.value=(g=o.userList)==null?void 0:g.filter(R=>R[h.value.name].includes(x.value)),O.value=(F=o.groupList)==null?void 0:F.filter(R=>R[h.value.name].includes(x.value)),i.value=(te=o.roleList)==null?void 0:te.filter(R=>R[h.value.name].includes(x.value)),C.value=(fe=o.postList)==null?void 0:fe.filter(R=>R[h.value.name].includes(x.value)),Y(),T.value=!1;return}const w=await n(k.value,x.value);try{E.value=d((w==null?void 0:w.userList)||[]),O.value=d((w==null?void 0:w.groupList)||[]),i.value=d((w==null?void 0:w.roleList)||[]),C.value=d((w==null?void 0:w.postList)||[])}catch(R){T.value=!1,console.info("error: ",R)}Y(),T.value=!1}catch{T.value=!1}},f=e.reactive({group:new Map,user:new Map,role:new Map,post:new Map,trans:[],single:""}),b=e.reactive({indeterminate:!1,checkAll:0}),M=a=>f.group.has(a)||f.user.has(a)||f.role.has(a)||f.post.has(a),j=L.ikEvent.debounce(N,300),B=e.computed(()=>{const a=Array.from(f.group.values()),p=Array.from(f.role.values()),y=Array.from(f.user.values()),u=Array.from(f.post.values());return r.value=[...p,...u,...y,...a],{list:[...p,...y,...u,...a],role:{list:p,len:p.length},user:{list:y,len:y.length},post:{list:u,len:u.length},groups:{list:a,len:a.length}}}),S=e.computed(()=>{const a=o.chooseType.map(y=>y.toLocaleLowerCase());let p=[...a];return a.includes("dep")&&(p=[...p,"dept"]),a.includes("dep_user")&&(p=[...p,"user"]),p}),I=e.ref([]),re=a=>{I.value=a,I.value.forEach(p=>{p.readonly=p==null?void 0:p.disabled})},Q=t,Z=e.ref(!1),Y=(a=!1)=>{var y;const p=(y=o==null?void 0:o.userList)!=null&&y.length?L._.cloneDeep([...o==null?void 0:o.userList,...o==null?void 0:o.groupList]):[...O.value,...E.value];return!a&&re(p),p};e.watch(()=>o.show,async a=>{var p;if(Z.value=a,a){k.value=((p=o.org)==null?void 0:p.elementId)||o.orgPid,!o.userList.length&&!o.groupList.length&&!o.roleList.length&&!o.postList.length?await N():(E.value=o.userList,O.value=o.groupList,i.value=o.roleList,C.value=o.postList),f.trans=[],b.checkAll=0,b.indeterminate=!1;const y=Y(!0);for(const g of y)M(g[h.value.id])&&f.trans.push(g[h.value.id]);const u=y.length===f.trans.length;b.indeterminate=!!(y.length&&!u),b.checkAll=Number(y.length&&u),e.nextTick(()=>{var g;(g=o.modelValue)!=null&&g.length?o.modelValue.forEach(F=>{W(F),o.multiple?f.trans.push(F[h.value.id]):f.single=F[h.value.id]}):H()})}else H()}),e.watchEffect(()=>{let a;a=I.value.length;const p=f.trans.length;b.indeterminate=f.trans.length?p!==a:!1,b.checkAll=+(a!==0&&p===a)}),e.watch(()=>o.modelValue,a=>{a!=null&&a.length?a.forEach(p=>{W(p),o.multiple?f.trans.push(p[h.value.id]):f.single=p[h.value.id]}):H()});const z=a=>{var p;if(a){if(f.single="",a[h.value.id]){const y=(p=f.trans)==null?void 0:p.findIndex(u=>u===a[h.value.id]);y!==-1&&f.trans.splice(y,1)}switch(a[h.value.type]){case s.value.user:return f.user.delete(a[h.value.id]);case s.value.role:return f.role.delete(a[h.value.id]);case s.value.post:return f.post.delete(a[h.value.id]);case s.value.group:return f.group.delete(a[h.value.id]);default:return}}},ie=a=>{z(a)},W=a=>{if(!M(a[h.value.id])){const p={...a};switch(a[h.value.type]){case s.value.user:return f.user.set(a[h.value.id],p);case s.value.role:return f.role.set(a[h.value.id],p);case s.value.post:return f.post.set(a[h.value.id],p);case s.value.group:return f.group.set(a[h.value.id],p);default:return}}},Sl=a=>[s.value.group].includes(a[h.value.type])?a==null?void 0:a.hasOwnProperty("disabled"):!1;e.watch(()=>f.trans,a=>{if(!a.length)I.value.forEach(p=>{p.disabled=!1});else{const p=I.value.filter(u=>!a.includes(u[h.value.id]));for(const u of p)u.disabled=!1,o.multiple&&z(u);const y=I.value.filter(u=>a.includes(u[h.value.id]));for(const u of y)u.disabled=Sl(u),W(u)}},{deep:!0}),e.watch(()=>f.single,a=>{var p;if(a){const y=(p=I.value)==null?void 0:p.find(u=>u[h.value.id]===a);y&&(f.user.clear(),f.role.clear(),f.post.clear(),f.group.clear(),f.trans=[],e.nextTick(()=>{W(y)}))}});const wl=a=>{k.value=a==null?void 0:a.elementId,N(),A.value.push(a)},ce=e.computed(()=>A.value.length),bl=(a,p)=>{!p&&!o.topLink||p!==ce.value-1&&(k.value=a==null?void 0:a.elementId,N(),A.value.splice(p+1))},Ul=e.computed(()=>o.chooseType.includes("role")&&o.chooseType.length===1),Dl=e.computed(()=>o.chooseType.includes("post")&&o.chooseType.length===1),X=e.ref(o.tabs[0]),G=e.ref(o.tabs[0]);e.watchEffect(()=>(G.value=Ul.value?o.tabs[1]:Dl.value?o.tabs[2]:X.value,G.value));const H=()=>{f.user.clear(),f.role.clear(),f.post.clear(),f.group.clear(),f.trans=[],v.value=[],ee.value=[],X.value=o.tabs[0],G.value=o.tabs[0],x.value="",k.value=o.orgPid,A.value.splice(1,A.value.length),f.single="",r.value=[]},Il=()=>{var a;Q("ok",L._.cloneDeep({...B.value,sort:r.value})),Q("update:modelValue",L._.cloneDeep(((a=B.value)==null?void 0:a.list)||[])),Q("update:show",!1),H()},pe=()=>{Q("update:show",!1),H()};m({handClear:H,handRomeve:ie,handDelete:z});const Fl=e.computed(()=>{const a=S.value;return!!((a.includes("post")||a.includes("role"))&&a.length>1)}),Rl=e.computed(()=>[{name:"group",label:"组织架构"},{name:"role",label:"角色列表"},{name:"post",label:"岗位列表"}].filter(a=>o.tabs.includes(a.name))),de=e.computed(()=>`${typeof o.height=="string"?Number.parseInt(o.height):o.height}px`),J=()=>{o.multiple||(f.post.clear(),f.role.clear(),f.user.clear(),f.group.clear(),f.single="")},Ml=e.computed(()=>B.value.groups.list.concat(B.value.user.list)),jl=(a,p)=>{o.multiple||(f.single="");const y=o.multiple?a:[a];if(!y.length){f.group.clear(),f.user.clear();return}J(),p.forEach(u=>{y!=null&&y.includes(u[h.value.id])?W(u):z(u)})},v=e.ref([]),Wl=(a,p)=>{o.multiple||(f.single="");const y=o.multiple?a:[a];if(!y.length){f.role.clear();return}J(),p.forEach(u=>{y!=null&&y.includes(u[h.value.id])?W(u):z(u)})};e.watch(()=>B.value.role.len,a=>{v.value=L._.cloneDeep(B.value.role.list)});const ee=e.ref([]),Gl=(a,p)=>{o.multiple||(f.single="");const y=o.multiple?a:[a];if(!y.length){f.post.clear();return}J(),p.forEach(u=>{y!=null&&y.includes(u[h.value.id])?W(u):z(u)})};return e.watch(()=>B.value.post.len,a=>{ee.value=L._.cloneDeep(B.value.post.list)}),e.watch(()=>x.value,a=>{j("")}),(a,p)=>{const y=e.resolveComponent("el-tab-pane"),u=e.resolveComponent("el-tabs");return e.openBlock(),e.createBlock(e.unref(V.ElDialog),{modelValue:Z.value,"onUpdate:modelValue":p[2]||(p[2]=g=>Z.value=g),title:a.title,"destroy-on-close":"","append-to-body":"","close-on-click-modal":!1,"close-on-click-escape":!1,draggable:"","align-center":"",width:typeof a.width=="string"?a.width:`${a.width}%`,class:"p_p_picker-dialog","modal-class":"p_p_picker-dialog-modal-user",onClose:pe},{footer:e.withCtx(()=>[e.createElementVNode("span",ll,[e.createVNode(e.unref(V.ElButton),{onClick:e.withModifiers(pe,["stop"])},{default:e.withCtx(()=>p[6]||(p[6]=[e.createTextVNode("取消")])),_:1}),e.createVNode(e.unref(V.ElButton),{type:"primary",onClick:e.withModifiers(Il,["stop"])},{default:e.withCtx(()=>p[7]||(p[7]=[e.createTextVNode(" 确定 ")])),_:1})])]),default:e.withCtx(()=>[e.createElementVNode("div",{class:"dep-use-picker",style:e.normalizeStyle({height:de.value})},[e.createElementVNode("div",qt,[e.createElementVNode("div",null,[e.createVNode(e.unref(V.ElInput),{modelValue:x.value,"onUpdate:modelValue":p[0]||(p[0]=g=>x.value=g),clearable:"",placeholder:a.placeholder,"suffix-icon":xe},null,8,["modelValue","placeholder"]),Fl.value?(e.openBlock(),e.createBlock(u,{key:0,modelValue:X.value,"onUpdate:modelValue":p[1]||(p[1]=g=>X.value=g),class:"ik-picker-tab"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Rl.value,g=>(e.openBlock(),e.createBlock(y,{label:g.label,name:g.name,key:g.label},null,8,["label","name"]))),128))]),_:1},8,["modelValue"])):e.createCommentVNode("v-if",!0)]),e.createCommentVNode(" 过滤 "),G.value===e.unref($).group?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[ce.value?(e.openBlock(),e.createElementBlock("div",Kt,[e.createCommentVNode(" 面包屑 全选 "),e.createVNode(e.unref(V.ElBreadcrumb),{separator:">",class:e.normalizeClass(["banner",{"top-unlink":!a.topLink}])},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(A),(g,F)=>(e.openBlock(),e.createBlock(e.unref(V.ElBreadcrumbItem),{key:g[h.value.id],onClick:e.withModifiers(te=>bl(g,F),["stop"])},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(g[h.value.name]),1)]),_:2},1032,["onClick"]))),128))]),_:1},8,["class"])])):e.createCommentVNode("v-if",!0)],64)):e.createCommentVNode("v-if",!0),e.createCommentVNode(" 左侧列表 "),e.createCommentVNode(" 组织架构 "),G.value===e.unref($).group?e.withDirectives((e.openBlock(),e.createBlock(mt,{key:1,fixPropOpt:h.value,fixTypeOpt:s.value,list:P.value,max:a.max,multiple:a.multiple,"hand-list":Ml.value,imageBaseUrl:o.imageBaseUrl,emptyText:o.emptyText,children:o.children,"choose-type":S.value,onHandChild:wl,onChange:jl},null,8,["fixPropOpt","fixTypeOpt","list","max","multiple","hand-list","imageBaseUrl","emptyText","children","choose-type"])),[[e.unref(V.vLoading),T.value]]):G.value===e.unref($).role?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createCommentVNode(" 角色 "),e.withDirectives(e.createVNode(Ht,{fixPropOpt:h.value,fixTypeOpt:s.value,list:i.value,max:a.max,multiple:a.multiple,"hand-list":v.value,imageBaseUrl:o.imageBaseUrl,emptyText:o.emptyText,"choose-type":S.value,onChange:Wl},null,8,["fixPropOpt","fixTypeOpt","list","max","multiple","hand-list","imageBaseUrl","emptyText","choose-type"]),[[e.unref(V.vLoading),T.value]])],64)):G.value===e.unref($).post?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.createCommentVNode(" 岗位 "),e.withDirectives(e.createVNode(Ct,{fixPropOpt:h.value,fixTypeOpt:s.value,list:C.value,max:a.max,multiple:a.multiple,"hand-list":ee.value,imageBaseUrl:o.imageBaseUrl,emptyText:o.emptyText,"choose-type":S.value,onChange:Gl},null,8,["fixPropOpt","fixTypeOpt","list","max","multiple","hand-list","imageBaseUrl","emptyText","choose-type"]),[[e.unref(V.vLoading),T.value]])],64)):e.createCommentVNode("v-if",!0)]),p[5]||(p[5]=e.createElementVNode("div",{class:"split-div"},null,-1)),e.createCommentVNode(" 已选列表 "),e.createElementVNode("div",Zt,[e.createElementVNode("div",Yt,[p[4]||(p[4]=e.createElementVNode("div",null,"已选",-1)),e.createVNode(e.unref(V.ElButton),{type:"primary",link:"",onClick:e.withModifiers(H,["stop"])},{default:e.withCtx(()=>p[3]||(p[3]=[e.createTextVNode("清空")])),_:1})]),e.createElementVNode("ul",Jt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,g=>(e.openBlock(),e.createElementBlock("li",vt,[e.createElementVNode("div",el,[e.createCommentVNode(" icon前缀 "),e.createElementVNode("div",tl,[e.createVNode(_,{fixTypeOpt:s.value,fixPropOpt:h.value,element:g,imageBaseUrl:o.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),e.createElementVNode("span",null,e.toDisplayString(g[h.value.name]),1)]),e.withDirectives(e.createVNode(Ve,{class:"close",onClick:e.withModifiers(F=>ie(g),["stop"])},null,8,["onClick"]),[[e.vShow,!(g!=null&&g.readonly)]])]))),256))])])],4)]),_:1},8,["modelValue","title","width"])}}}),Xl="",al=le(ol),nl={class:"approveProcess",id:"approveProcess"},sl={class:"node"},rl={class:"nodeBg"},il={key:0,class:"info"},cl={class:"explain"},pl={key:0},dl={key:0},fl={key:1},ml={key:0},Al={key:1},hl={class:"personlist"},yl={style:{width:"58px"}},ul={class:"avatar"},kl=["src"],gl={key:1,class:"nodeBg"},xl=["onClick"],Bl=["title"],El={key:0,class:"sign"},Ol={key:0},Vl=["onClick"],Nl={key:0,class:"required"},Tl={key:1,class:"node-branchs"},Cl={style:{flex:"1"}},Ll={class:"node-branch"},Pl={name:"IkApprovalProcess"},_l=e.defineComponent({...Pl,props:{pickerUrl:{type:String,default:""},pickerConfig:{type:Object,default:()=>({})},loadUrl:{type:String,default:""},dataList:{type:Array,default:()=>[]},defaultNodeType:{type:Object,default:()=>({})},defaultFieldMap:{type:Object,default:()=>({})},statusWithoutApprover:{type:Object,default:()=>({})}},setup(c,{expose:m}){const t=c,{cLoadUrl:o}=ae(t),x=L.ikStore.local.getItem("token")||"Bearer 4db1039f04334180849002932f6a1fc6",k=e.ref("sys");function E(l){const n=window.location.search;return new URLSearchParams(n).get(l)}function O(){var n;const l=E("xTenant")||((n=L.ikStore.local.getItem("tenant"))==null?void 0:n.code);l&&(k.value=l)}O();const i=e.reactive(he(t)),C=async l=>{var n;if(l.multiple=!l[i.defaultFile.singleApproval]||l[i.defaultFile.isShowAddCopy],l.handList=l[i.defaultFile.approvePersonList]?l[i.defaultFile.approvePersonList]:[],l[i.defaultFile.nodeType]===i.nodeType.抄送节点)l.handList.forEach(A=>{A.elementName||(A.elementName=A.userName,A.elementId=A.userId,A.avatar=A.userAvatar),A.elementType="USER",A.disabled=!0}),l.chooseType=["user"],l.userList=[],l.depList=[];else switch(l[i.defaultFile.initiatorSpecifiedScopeType]){case"ALL":l.chooseType=["dep_user"],l.userList=[],l.depList=[];break;default:l.chooseType=["user"],l.userList=l.userList?l.userList:(n=l[i.defaultFile.initiatorSpecifiedScope])==null?void 0:n.map(A=>({...A,elementName:(A==null?void 0:A.executorName)||(A==null?void 0:A.userName),elementId:(A==null?void 0:A.executorId)||(A==null?void 0:A.userId),avatar:((A==null?void 0:A.executorAvatar)||(A==null?void 0:A.userAvatar))&&T((A==null?void 0:A.executorAvatar)||(A==null?void 0:A.userAvatar))||"",elementType:"USER"}))}e.nextTick(()=>{l.isShow=!0})},T=l=>{let n="";return l.includes("http")||l.includes("https")?n=l:n=o.value?`${l.includes(o.value)?"":o.value}${l}`:`${location.origin+location.pathname}server/oss/download?fileUrl=${l}`,n},P=(l,n)=>{t.dataList[n].handList=l.list;let d=(t.dataList[n][i.defaultFile.approvePersonList]||[]).filter(f=>!f.canDele),N=l.list.map(f=>({...f,userName:f.elementName,userAvatar:f.avatar,canDele:!0}));t.dataList[n][i.defaultFile.approvePersonList]=d.concat(N)},h=(l,n)=>{t.dataList[l][i.defaultFile.approvePersonList].splice(n,1),t.dataList[l].handList=t.dataList[l][i.defaultFile.approvePersonList]},s=()=>{let l=!0;return t.dataList.forEach(n=>{var A;n.required=!1,n[i.defaultFile.nodeType]==i.nodeType.审批节点&&n[i.defaultFile.isShowAdd]&&((A=n[i.defaultFile.approvePersonList])!=null&&A.length||(l=!1,n.required=!0))}),l},r=e.computed(()=>{var l;return{propOption:{name:"elementName",id:"elementId",type:"elementType",avatar:"avatar"},typeOption:{dep:"DEPT",user:"USER",role:"ROLE",post:"POST"},api:{methods:"post",url:t.pickerUrl,headers:{"Content-Type":"application/json;charset=UTF-8",Authorization:x,"X-Tenant":k.value},param:{rootDepartmentId:((l=L.ikStore.local.getItem("now_shop"))==null?void 0:l.storeId)||"",rootDepartmentOnly:!1}},...t.pickerConfig}});return m({requiredVerification:s}),(l,n)=>{const A=e.resolveComponent("IkApprovalProcess");return e.openBlock(),e.createElementBlock("div",nl,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.dataList,(d,N)=>{var f,b,M,j;return e.openBlock(),e.createElementBlock("div",{class:"content",key:d.id},[e.createCommentVNode(" 审批节点类型 "),e.createElementVNode("div",sl,[e.createElementVNode("span",rl,[e.createElementVNode("i",{class:e.normalizeClass(e.unref(ye)(i,d[i.defaultFile.nodeType]))},null,2)]),e.createElementVNode("div",{class:"line",style:e.normalizeStyle({"border-left":N===t.dataList.length-1?"":"2px solid var(--el-border-color)"})},null,4)]),d[i.defaultFile.nodeType]!==i.nodeType.并行分支?(e.openBlock(),e.createElementBlock("div",il,[e.createElementVNode("div",null,[e.createElementVNode("div",null,e.toDisplayString(d[i.defaultFile.nodeTypeName]),1),e.createElementVNode("div",cl,[e.createCommentVNode(" 抄送节点 "),d[i.defaultFile.nodeType]==i.nodeType.抄送节点?(e.openBlock(),e.createElementBlock("span",pl,[d[i.defaultFile.approvePersonList].length?(e.openBlock(),e.createElementBlock("span",dl,e.toDisplayString(`抄送${d[i.defaultFile.approvePersonList].length}人`),1)):e.createCommentVNode("v-if",!0),d[i.defaultFile.isShowAdd]?(e.openBlock(),e.createElementBlock("span",fl,",可添加抄送人")):e.createCommentVNode("v-if",!0)])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createCommentVNode(" 审批节点 "),e.createElementVNode("span",null,[e.createCommentVNode(" 存在审批人时 "),(f=d[i.defaultFile.approvePersonList])!=null&&f.length?(e.openBlock(),e.createElementBlock("span",ml,e.toDisplayString(((b=d[i.defaultFile.approvePersonList])==null?void 0:b.length)==1?"1人审批":`${(M=d[i.defaultFile.approvePersonList])==null?void 0:M.length}人${d[i.defaultFile.multiExecutorTypeName]}`),1)):[i.statusWithoutApprover.自动通过,i.statusWithoutApprover.自动拒绝].includes(d[i.defaultFile.approveType])?(e.openBlock(),e.createElementBlock("span",Al,e.toDisplayString(d[i.defaultFile.approveTypeName]),1)):d[i.defaultFile.executorEmptyStrategy]&&d[i.defaultFile.executorEmpty]?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createCommentVNode(" 没有审批人,并且有指定默认审批方式 "),e.createElementVNode("span",null,[n[0]||(n[0]=e.createTextVNode(" 未找到审批人,")),e.createElementVNode("span",null,e.toDisplayString(d[i.defaultFile.executorEmptyStrategy]==i.statusWithoutApprover.自动通过?"将自动通过":d[i.defaultFile.executorEmptyStrategy]==i.statusWithoutApprover.自动转交管理员?"自动转交给管理员":d[i.defaultFile.executorEmptyStrategy]==i.statusWithoutApprover.指定人员审批?`将自动转给指定成员${d[i.defaultFile.reserveExecutorUsers]&&d[i.defaultFile.reserveExecutorUsers][0].userName}`:""),1)])],2112)):[i.nodeType.并行分支,i.nodeType.子流程].includes(d[i.defaultFile.nodeType])?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock("span",{key:3,class:e.normalizeClass(d.required?"warn":"")}," 请选择"+e.toDisplayString(d[i.defaultFile.nodeType]===i.nodeType.办理节点?"办理人":"审批人"),3))])],2112))])]),e.createElementVNode("div",hl,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d[i.defaultFile.approvePersonList],(B,S)=>{var I;return e.openBlock(),e.createElementBlock("div",{class:"list",key:B.userId},[e.createElementVNode("div",yl,[e.createElementVNode("div",ul,[B.userAvatar?(e.openBlock(),e.createElementBlock("img",{key:0,src:T(B.userAvatar),alt:""},null,8,kl)):(e.openBlock(),e.createElementBlock("div",gl,[e.createElementVNode("span",null,e.toDisplayString(B.userName.slice(-2)),1)])),B.canDele?(e.openBlock(),e.createElementBlock("i",{key:2,onClick:re=>h(N,S),class:"ikapprove ikapprove-shanchu1"},null,8,xl)):e.createCommentVNode("v-if",!0)]),e.createElementVNode("div",{class:"name",title:B.userName},e.toDisplayString(B.userName),9,Bl)]),e.createCommentVNode(" 显示添加人按钮,不是单选且已选中一个人的情况,显示图标 "),d[i.defaultFile.isShowAdd]&&!(d[i.defaultFile.singleApproval]&&((I=d[i.defaultFile.approvePersonList])==null?void 0:I.length)==1)?(e.openBlock(),e.createElementBlock("span",El,[e.createCommentVNode(" 抄送默认 "),d[i.defaultFile.nodeType]==i.nodeType.抄送节点?(e.openBlock(),e.createElementBlock("span",Ol,"+")):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createCommentVNode(" 审批 "),e.createElementVNode("span",null,e.toDisplayString(d[i.defaultFile.multiExecutorType]=="ANY"?"/":d[i.defaultFile.multiExecutorType]=="ALL"?"+":">"),1)],2112))])):e.createCommentVNode("v-if",!0)])}),128)),e.createCommentVNode(" 显示添加人按钮,不是单选且已选中一个人的情况,显示按钮 (item[state.defaultFile.isShowAdd] && "),d[i.defaultFile.isShowAdd]&&!(d[i.defaultFile.singleApproval]&&((j=d[i.defaultFile.approvePersonList])==null?void 0:j.length)==1)||d[i.defaultFile.isShowAddCopy]?(e.openBlock(),e.createElementBlock("span",{key:0,class:"addBg",onClick:B=>C(d)},[d[i.defaultFile.nodeType]==i.nodeType.审批节点?(e.openBlock(),e.createElementBlock("span",Nl)):e.createCommentVNode("v-if",!0),n[1]||(n[1]=e.createElementVNode("i",{class:"ikapprove ikapprove-xinzeng"},null,-1))],8,Vl)):e.createCommentVNode("v-if",!0),e.createCommentVNode(" 添加人组件 "),e.createVNode(e.unref(al),e.mergeProps({modelValue:d.handList,"onUpdate:modelValue":B=>d.handList=B,show:d.isShow,"onUpdate:show":B=>d.isShow=B,onOk:B=>P(B,N),multiple:d.multiple,"dep-list":d.depList,"user-list":d.userList,"organization-list":d.organizationList,ref_for:!0},r.value,{chooseType:d.chooseType}),null,16,["modelValue","onUpdate:modelValue","show","onUpdate:show","onOk","multiple","dep-list","user-list","organization-list","chooseType"])])])):(e.openBlock(),e.createElementBlock("div",Tl,[n[2]||(n[2]=e.createElementVNode("div",{class:"branch-line"},null,-1)),e.createElementVNode("div",Cl,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.parallelInstances,(B,S)=>(e.openBlock(),e.createElementBlock("div",{key:S,class:e.normalizeClass(`branch branch-${S}`)},[e.createElementVNode("div",Ll,e.toDisplayString(B.name),1),e.createVNode(A,e.mergeProps({ref_for:!0},t,{dataList:B.processInstanceNodes,style:{"margin-left":"20px"}}),null,16,["dataList"])],2))),128))])]))])}),128))])}}}),ql="",se=le(D(_l,[["__scopeId","data-v-4f37c57c"]]));U.IKApprovalProcess=se,U.default=se,Object.defineProperties(U,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});