iking-web-ui-pro 0.1.84 → 0.1.86

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 (147) hide show
  1. package/dist/IKApprovalProcess/ik.index.es.js +2250 -0
  2. package/dist/IKApprovalProcess/ik.index.umd.js +1 -0
  3. package/dist/IKApprovalProcess/style.css +1 -0
  4. package/dist/{IkApprovalProcessDetail → IKApprovalProcessDetail}/ik.index.es.js +516 -528
  5. package/dist/IKApprovalProcessDetail/ik.index.umd.js +1 -0
  6. package/dist/IKApprovalProcessDetail/style.css +1 -0
  7. package/dist/{IkCalendar → IKCalendar}/ik.index.es.js +1112 -1143
  8. package/dist/IKCalendar/ik.index.umd.js +1 -0
  9. package/dist/{IkCalendar → IKCalendar}/style.css +1 -1
  10. package/dist/IKDetailPreviewFiles/ik.index.es.js +449 -461
  11. package/dist/IKDetailPreviewFiles/ik.index.umd.js +1 -1
  12. package/dist/IKDetailPreviewFiles/style.css +1 -1
  13. package/dist/IKExpandCollapse/ik.index.es.js +92 -93
  14. package/dist/IKExpandCollapse/ik.index.umd.js +1 -1
  15. package/dist/IKExpandCollapse/style.css +1 -1
  16. package/dist/IKPreviewFile/ik.index.es.js +367 -379
  17. package/dist/IKPreviewFile/ik.index.umd.js +1 -1
  18. package/dist/IKPreviewFile/style.css +1 -1
  19. package/dist/IKPreviewFileDialog/ik.index.es.js +274 -295
  20. package/dist/IKPreviewFileDialog/ik.index.umd.js +1 -1
  21. package/dist/IKPreviewFileDialog/style.css +1 -1
  22. package/dist/IKSearch/ik.index.es.js +390 -404
  23. package/dist/IKSearch/ik.index.umd.js +1 -1
  24. package/dist/IKSearch/style.css +1 -1
  25. package/dist/IKVerticalStepBar/ik.index.es.js +113 -114
  26. package/dist/IKVerticalStepBar/ik.index.umd.js +3 -3
  27. package/dist/IKVerticalStepBar/style.css +1 -1
  28. package/dist/IkBaseDialog/ik.index.es.js +122 -123
  29. package/dist/IkBaseDialog/ik.index.umd.js +1 -1
  30. package/dist/IkBaseDialog/style.css +1 -1
  31. package/dist/IkBtnSetting/ik.index.es.js +153 -154
  32. package/dist/IkBtnSetting/ik.index.umd.js +1 -1
  33. package/dist/IkBtnSetting/style.css +1 -1
  34. package/dist/IkCollapseCard/ik.index.es.js +105 -106
  35. package/dist/IkCollapseCard/ik.index.umd.js +1 -1
  36. package/dist/IkCollapseCard/style.css +1 -1
  37. package/dist/IkDescription/ik.index.es.js +343 -356
  38. package/dist/IkDescription/ik.index.umd.js +1 -1
  39. package/dist/IkDescription/style.css +1 -1
  40. package/dist/IkFullCalendar/ik.index.es.js +584 -601
  41. package/dist/IkFullCalendar/ik.index.umd.js +1 -1
  42. package/dist/IkIconPicker/ik.index.es.js +167 -328
  43. package/dist/IkIconPicker/ik.index.umd.js +1 -1
  44. package/dist/IkIconPicker/style.css +1 -1
  45. package/dist/IkMonacoEditor/ik.index.es.js +176 -177
  46. package/dist/IkMonacoEditor/ik.index.umd.js +3 -3
  47. package/dist/IkMonacoEditor/style.css +1 -1
  48. package/dist/IkOnlyOffice/ik.index.es.js +59 -82
  49. package/dist/IkOnlyOffice/ik.index.umd.js +1 -1
  50. package/dist/IkPageFull/ik.index.es.js +1119 -1136
  51. package/dist/IkPageFull/ik.index.umd.js +3 -3
  52. package/dist/IkPageFull/style.css +1 -1
  53. package/dist/IkPickerUser/ik.index.es.js +411 -425
  54. package/dist/IkPickerUser/ik.index.umd.js +1 -1
  55. package/dist/IkPickerUser/style.css +1 -1
  56. package/dist/IkRadioGroup/ik.index.es.js +13 -13
  57. package/dist/IkRadioGroup/ik.index.umd.js +1 -1
  58. package/dist/IkRadioGroup/style.css +1 -1
  59. package/dist/IkSchedule/ik.index.es.js +981 -999
  60. package/dist/IkSchedule/ik.index.umd.js +1 -1
  61. package/dist/IkSchedule/style.css +1 -1
  62. package/dist/IkSelectTag/ik.index.es.js +152 -193
  63. package/dist/IkSelectTag/ik.index.umd.js +1 -1
  64. package/dist/IkSelectTag/style.css +1 -1
  65. package/dist/IkSideText/ik.index.es.js +113 -114
  66. package/dist/IkSideText/ik.index.umd.js +1 -1
  67. package/dist/IkSideText/style.css +1 -1
  68. package/dist/IkStatu/ik.index.es.js +62 -62
  69. package/dist/IkStatu/ik.index.umd.js +1 -1
  70. package/dist/IkStatu/style.css +1 -1
  71. package/dist/IkStatuOver/ik.index.es.js +116 -137
  72. package/dist/IkStatuOver/ik.index.umd.js +1 -1
  73. package/dist/IkStatuOver/style.css +1 -1
  74. package/dist/IkSvgIcon/ik.index.es.js +82 -88
  75. package/dist/IkSvgIcon/ik.index.umd.js +1 -1
  76. package/dist/IkTemplateOfficeConfig/ik.index.es.js +224 -247
  77. package/dist/IkTemplateOfficeConfig/ik.index.umd.js +1 -1
  78. package/dist/IkTinymce/ik.index.es.js +23512 -23626
  79. package/dist/IkTinymce/ik.index.umd.js +57 -57
  80. package/dist/IkTree/ik.index.es.js +61 -86
  81. package/dist/IkTree/ik.index.umd.js +1 -1
  82. package/dist/IkTree/style.css +1 -1
  83. package/dist/IkUploadFile/ik.index.es.js +575 -596
  84. package/dist/IkUploadFile/ik.index.umd.js +1 -1
  85. package/dist/IkUploadFile/style.css +1 -1
  86. package/dist/IkUploadImage/ik.index.es.js +167 -168
  87. package/dist/IkUploadImage/ik.index.umd.js +1 -1
  88. package/dist/IkUploadImage/style.css +1 -1
  89. package/dist/index.es.js +32008 -32461
  90. package/dist/index.umd.js +68 -68
  91. package/dist/src/components/IKPreviewFile/index.d.ts +19 -0
  92. package/dist/src/components/IKPreviewFile/src/IkPreviewFile.vue.d.ts +9 -0
  93. package/dist/src/components/IKPreviewFileDialog/index.d.ts +9 -0
  94. package/dist/src/components/IKPreviewFileDialog/src/IkPreviewFileDialog.vue.d.ts +9 -0
  95. package/dist/src/components/IKSearch/src/IKSearch.vue.d.ts +1 -1
  96. package/dist/src/components/IKSearch/src/IkSearchAuto.d.ts +1 -1
  97. package/dist/src/components/IkBtnSetting/src/IkBtnSetting.vue.d.ts +1 -1
  98. package/dist/src/components/IkDragList/index.d.ts +9 -9
  99. package/dist/src/components/IkDragList/src/IkDragList.vue.d.ts +3 -3
  100. package/dist/src/components/IkIconPicker/src/index.vue.d.ts +1 -0
  101. package/dist/src/components/IkMonacoEditor/index.d.ts +1 -1
  102. package/dist/src/components/IkMonacoEditor/src/index.vue.d.ts +2 -2
  103. package/dist/src/components/IkOnlyOffice/index.d.ts +1 -1
  104. package/dist/src/components/IkOnlyOffice/src/IkOnlyOffice.vue.d.ts +1 -1
  105. package/dist/src/components/IkPageFull/index.d.ts +3 -3
  106. package/dist/src/components/IkPageFull/src/IkDialog.d.ts +1 -1
  107. package/dist/src/components/IkPageFull/src/IkPageHead.vue.d.ts +2 -2
  108. package/dist/src/components/IkPageFull/src/IkPageTable.vue.d.ts +1 -1
  109. package/dist/src/components/IkPageFull/src/IkSearchAuto copy.d.ts +2 -2
  110. package/dist/src/components/IkPageFull/src/IkSearchAuto.d.ts +2 -2
  111. package/dist/src/components/IkPageFull/src/index.vue.d.ts +1 -1
  112. package/dist/src/components/IkPageTabs/index.d.ts +3 -3
  113. package/dist/src/components/IkPageTabs/src/IkPageTabs.vue.d.ts +1 -1
  114. package/dist/src/components/IkPickerUser/index.d.ts +2 -2
  115. package/dist/src/components/IkPickerUser/src/default.d.ts +1 -1
  116. package/dist/src/components/IkPickerUser/src/list/props.d.ts +1 -1
  117. package/dist/src/components/IkPickerUser/src/picker.vue.d.ts +2 -2
  118. package/dist/src/components/IkPickerUser/src/use-picker-data.d.ts +1 -1
  119. package/dist/src/components/IkSelectTag/index.d.ts +11 -86
  120. package/dist/src/components/IkSelectTag/src/index.vue.d.ts +6 -26
  121. package/dist/src/components/IkSideText/IkSideText.vue.d.ts +1 -1
  122. package/dist/src/components/IkSideText/index.d.ts +1 -1
  123. package/dist/src/components/IkStatu/index.d.ts +3 -16
  124. package/dist/src/components/IkStatu/src/index.vue.d.ts +3 -16
  125. package/dist/src/components/IkStatuOver/index.d.ts +2 -15
  126. package/dist/src/components/IkStatuOver/src/index.vue.d.ts +2 -15
  127. package/dist/src/components/IkSvgIcon/index.d.ts +0 -18
  128. package/dist/src/components/IkSvgIcon/src/index.vue.d.ts +0 -6
  129. package/dist/src/components/IkTemplateOfficeConfig/index.d.ts +1 -1
  130. package/dist/src/components/IkTinymce/index.d.ts +4 -4
  131. package/dist/src/components/IkTinymce/src/index.vue.d.ts +4 -4
  132. package/dist/src/components/IkTree/IkTree.vue.d.ts +0 -18
  133. package/dist/src/components/IkTree/index.d.ts +0 -38
  134. package/dist/src/components/IkUploadFile/src/index.vue.d.ts +2 -2
  135. package/dist/src/components/IkUploadImage/src/index.vue.d.ts +1 -1
  136. package/dist/src/iking-ui/defaults.d.ts +1 -1
  137. package/dist/src/iking-ui/index.d.ts +1 -1
  138. package/dist/src/utils/install.d.ts +2 -2
  139. package/dist/style.css +1 -1
  140. package/package.json +2 -2
  141. package/dist/IkApprovalProcess/ik.index.es.js +0 -2331
  142. package/dist/IkApprovalProcess/ik.index.umd.js +0 -1
  143. package/dist/IkApprovalProcess/style.css +0 -1
  144. package/dist/IkApprovalProcessDetail/ik.index.umd.js +0 -1
  145. package/dist/IkApprovalProcessDetail/style.css +0 -1
  146. package/dist/IkCalendar/ik.index.umd.js +0 -1
  147. package/dist/IkSvgIcon/style.css +0 -1
@@ -0,0 +1,2250 @@
1
+ import { openBlock as a, createElementBlock as d, createElementVNode as i, defineComponent as le, resolveComponent as _e, createBlock as b, toDisplayString as P, createCommentVNode as g, computed as I, ref as S, Fragment as E, unref as x, withCtx as B, createTextVNode as z, renderList as W, createVNode as w, normalizeClass as ie, pushScopeId as ue, popScopeId as ce, useCssVars as tt, watch as X, toRef as lt, reactive as Oe, nextTick as Pe, watchEffect as Ne, withModifiers as oe, normalizeStyle as $e, withDirectives as de, vShow as st } from "vue";
2
+ import { _ as Q, ikStore as ke, ikEvent as at } from "iking-utils-pro";
3
+ import { ElCheckbox as te, ElCheckboxGroup as Te, ElRadioGroup as Le, ElRadio as be, ElDialog as ot, ElButton as me, ElInput as nt, ElBreadcrumb as it, ElBreadcrumbItem as rt, vLoading as xe } from "element-plus";
4
+ import pt from "axios";
5
+ const Me = (p, v) => {
6
+ if (p.install = (e) => {
7
+ for (const s of [p, ...Object.values(v ?? {})])
8
+ e.component(s.name, s);
9
+ }, v)
10
+ for (const [e, s] of Object.entries(v))
11
+ p[e] = s;
12
+ return p;
13
+ }, H = (p, v) => {
14
+ const e = p.__vccOpts || p;
15
+ for (const [s, o] of v)
16
+ e[s] = o;
17
+ return e;
18
+ }, dt = {}, ut = {
19
+ t: "1672194715727",
20
+ class: "icon",
21
+ viewBox: "0 0 1024 1024",
22
+ version: "1.1",
23
+ "p-id": "2667"
24
+ }, ct = /* @__PURE__ */ i(
25
+ "path",
26
+ {
27
+ d: "M809.246403 771.926938 777.737782 803.458071 924.965961 950.667831 956.476629 919.157163Z",
28
+ fill: "#5D5D5D",
29
+ "p-id": "2668"
30
+ },
31
+ null,
32
+ -1
33
+ /* HOISTED */
34
+ ), ft = /* @__PURE__ */ i(
35
+ "path",
36
+ {
37
+ 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",
38
+ fill: "#5D5D5D",
39
+ "p-id": "2669"
40
+ },
41
+ null,
42
+ -1
43
+ /* HOISTED */
44
+ ), ht = [
45
+ ct,
46
+ ft
47
+ ];
48
+ function At(p, v) {
49
+ return a(), d("svg", ut, ht);
50
+ }
51
+ const vt = /* @__PURE__ */ H(dt, [["render", At]]), yt = {}, gt = {
52
+ t: "1710907270798",
53
+ class: "icon",
54
+ viewBox: "0 0 1024 1024",
55
+ version: "1.1",
56
+ xmlns: "http://www.w3.org/2000/svg",
57
+ "p-id": "8420",
58
+ width: "200",
59
+ height: "200"
60
+ }, mt = /* @__PURE__ */ i(
61
+ "path",
62
+ {
63
+ d: "M512 1024A512 512 0 1 0 512 0a512 512 0 0 0 0 1024z",
64
+ fill: "var(--ik-color-icon-dark)",
65
+ "p-id": "8421"
66
+ },
67
+ null,
68
+ -1
69
+ /* HOISTED */
70
+ ), xt = /* @__PURE__ */ i(
71
+ "path",
72
+ {
73
+ 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",
74
+ fill: "#FFFFFF",
75
+ "p-id": "8422"
76
+ },
77
+ null,
78
+ -1
79
+ /* HOISTED */
80
+ ), _t = [
81
+ mt,
82
+ xt
83
+ ];
84
+ function Ot(p, v) {
85
+ return a(), d("svg", gt, _t);
86
+ }
87
+ const Pt = /* @__PURE__ */ H(yt, [["render", Ot]]), kt = {}, Tt = {
88
+ t: "1710904463698",
89
+ class: "icon",
90
+ viewBox: "0 0 1024 1024",
91
+ version: "1.1",
92
+ xmlns: "http://www.w3.org/2000/svg",
93
+ "p-id": "7124",
94
+ width: "200",
95
+ height: "200"
96
+ }, Lt = /* @__PURE__ */ i(
97
+ "path",
98
+ {
99
+ 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",
100
+ fill: "var(--ik-color-icon-light-hover)",
101
+ "p-id": "7125"
102
+ },
103
+ null,
104
+ -1
105
+ /* HOISTED */
106
+ ), bt = /* @__PURE__ */ i(
107
+ "path",
108
+ {
109
+ 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",
110
+ fill: "var(--ik-color-tag-primary)",
111
+ "p-id": "7126"
112
+ },
113
+ null,
114
+ -1
115
+ /* HOISTED */
116
+ ), Ct = [
117
+ Lt,
118
+ bt
119
+ ];
120
+ function Bt(p, v) {
121
+ return a(), d("svg", Tt, Ct);
122
+ }
123
+ const Ut = /* @__PURE__ */ H(kt, [["render", Bt]]), wt = {}, St = {
124
+ t: "1710904436436",
125
+ class: "icon",
126
+ viewBox: "0 0 1024 1024",
127
+ version: "1.1",
128
+ xmlns: "http://www.w3.org/2000/svg",
129
+ "p-id": "6989",
130
+ width: "200",
131
+ height: "200"
132
+ }, Et = /* @__PURE__ */ i(
133
+ "path",
134
+ {
135
+ 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",
136
+ fill: "var(--ik-color-tag-primary)",
137
+ "p-id": "6990"
138
+ },
139
+ null,
140
+ -1
141
+ /* HOISTED */
142
+ ), It = /* @__PURE__ */ i(
143
+ "path",
144
+ {
145
+ 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",
146
+ fill: "var(--ik-color-icon-light-hover)",
147
+ "p-id": "6991"
148
+ },
149
+ null,
150
+ -1
151
+ /* HOISTED */
152
+ ), Vt = [
153
+ Et,
154
+ It
155
+ ];
156
+ function Ft(p, v) {
157
+ return a(), d("svg", St, Vt);
158
+ }
159
+ const Dt = /* @__PURE__ */ H(wt, [["render", Ft]]), Nt = {}, Rt = {
160
+ t: "1710904287393",
161
+ class: "icon",
162
+ viewBox: "0 0 1024 1024",
163
+ version: "1.1",
164
+ xmlns: "http://www.w3.org/2000/svg",
165
+ "p-id": "6854",
166
+ width: "200",
167
+ height: "200"
168
+ }, $t = /* @__PURE__ */ i(
169
+ "path",
170
+ {
171
+ 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",
172
+ fill: "var(--ik-color-icon-light-hover)",
173
+ "p-id": "6855"
174
+ },
175
+ null,
176
+ -1
177
+ /* HOISTED */
178
+ ), Mt = /* @__PURE__ */ i(
179
+ "path",
180
+ {
181
+ 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",
182
+ fill: "var(--ik-color-tag-primary)",
183
+ "p-id": "6856"
184
+ },
185
+ null,
186
+ -1
187
+ /* HOISTED */
188
+ ), Wt = [
189
+ $t,
190
+ Mt
191
+ ];
192
+ function Ht(p, v) {
193
+ return a(), d("svg", Rt, Wt);
194
+ }
195
+ const jt = /* @__PURE__ */ H(Nt, [["render", Ht]]), Gt = { class: "avatar" }, Qt = {
196
+ key: 3,
197
+ class: "user_box"
198
+ }, Xt = {
199
+ key: 1,
200
+ class: "avatar_name"
201
+ }, zt = /* @__PURE__ */ le({
202
+ __name: "Avatar",
203
+ props: {
204
+ fixPropOpt: {
205
+ type: Object,
206
+ default: () => {
207
+ }
208
+ },
209
+ fixTypeOpt: {
210
+ type: Object,
211
+ default: () => {
212
+ }
213
+ },
214
+ element: {
215
+ type: Object,
216
+ default: () => {
217
+ }
218
+ },
219
+ imageBaseUrl: {
220
+ type: String,
221
+ default: ""
222
+ }
223
+ },
224
+ setup(p) {
225
+ const v = p, e = v.imageBaseUrl ? `${v.imageBaseUrl}/server/oss/download?fileUrl=` : `${location.origin}/server/oss/download?fileUrl=`, s = (o) => o ? o.startsWith("http") ? o : `${e}${o}` : "";
226
+ return (o, _) => {
227
+ const T = _e("el-avatar");
228
+ return a(), d("div", Gt, [
229
+ v.fixTypeOpt.group === p.element[v.fixPropOpt.type] ? (a(), b(jt, { key: 0 })) : v.fixTypeOpt.role === p.element[v.fixPropOpt.type] ? (a(), b(Ut, { key: 1 })) : v.fixTypeOpt.post === p.element[v.fixPropOpt.type] ? (a(), b(Dt, { key: 2 })) : v.fixTypeOpt.user === p.element[v.fixPropOpt.type] ? (a(), d("div", Qt, [
230
+ p.element[p.fixPropOpt.avatar] ? (a(), b(T, {
231
+ key: 0,
232
+ shape: "square",
233
+ src: s(p.fixPropOpt.avatar ? p.element[p.fixPropOpt.avatar] : "")
234
+ }, null, 8, ["src"])) : (a(), d(
235
+ "div",
236
+ Xt,
237
+ P(p.element[p.fixPropOpt.name].slice(-2)),
238
+ 1
239
+ /* TEXT */
240
+ ))
241
+ ])) : g("v-if", !0)
242
+ ]);
243
+ };
244
+ }
245
+ });
246
+ const R = /* @__PURE__ */ H(zt, [["__scopeId", "data-v-4069f4f8"]]), Ce = "data:image/webp;base64,UklGRogSAABXRUJQVlA4WAoAAAAwAAAAxwAAzQAASUNDUMgBAAAAAAHIAAAAAAQwAABtbnRyUkdCIFhZWiAH4AABAAEAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlkZXNjAAAA8AAAACRyWFlaAAABFAAAABRnWFlaAAABKAAAABRiWFlaAAABPAAAABR3dHB0AAABUAAAABRyVFJDAAABZAAAAChnVFJDAAABZAAAAChiVFJDAAABZAAAAChjcHJ0AAABjAAAADxtbHVjAAAAAAAAAAEAAAAMZW5VUwAAAAgAAAAcAHMAUgBHAEJYWVogAAAAAAAAb6IAADj1AAADkFhZWiAAAAAAAABimQAAt4UAABjaWFlaIAAAAAAAACSg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2cZOmxqn+mvuyGdvAd9XjPSV4VVEAnROrjCwrgbhyKFpb8s12Za8/F4cSrPOSuadvlSXDEdhrb27ok+DnCnJqOg8Kj9Gqlca2xL+KvTh1u+NuUBnWJWF2Y9f3+xrM9KPN55AGLwUs8yRaGNKw9ngyAAfv8bf7tO4JOhTqKsM4JbfTtFKmlQhMS77J/ZyxsS7I+u5WO0/gjo83E7/80LOn4Ple50oLNP3yW4yTSnlNCwg+COLMFER8MfaIeAHTLvnkH3eDLow61YfoXxUp6SIMiBAHJ75Y1CrZeW1DvEoWdfnDhpz06KBs12oE7Ob6wCwc+FXeaKHfhDxAz/7xTqCDxZf++IGd1QQAB/TN8qRAl4EZQF8tbRrVQIKm2g8cbO8potBMoXyVFfUtI4r31krwmWYxDz2AAAAAAAA", Be = {
247
+ // 所有数据
248
+ list: {
249
+ type: Array,
250
+ default: () => []
251
+ },
252
+ // 已选数据
253
+ handList: {
254
+ type: Array,
255
+ default: () => []
256
+ },
257
+ // 是否多选
258
+ multiple: {
259
+ type: Boolean,
260
+ default: !0
261
+ },
262
+ // 最大允许选择数量
263
+ // 0表示不限制
264
+ max: {
265
+ type: Number,
266
+ default: 0
267
+ },
268
+ fixPropOpt: {
269
+ type: Object,
270
+ default: () => {
271
+ }
272
+ },
273
+ fixTypeOpt: {
274
+ type: Object,
275
+ default: () => {
276
+ }
277
+ },
278
+ height: {
279
+ type: String,
280
+ default: "404px"
281
+ },
282
+ imageBaseUrl: {
283
+ type: String,
284
+ default: ""
285
+ },
286
+ emptyText: {
287
+ type: String,
288
+ default: "暂无数据"
289
+ },
290
+ // 是否允许选择子集
291
+ children: {
292
+ type: Boolean,
293
+ default: !0
294
+ },
295
+ // 选择类别
296
+ chooseType: {
297
+ type: Array,
298
+ // 传['dep_user']选择部门和人员 传['dep']则只选择部门,传['user']则只选择人员,传['role']则只选择角色 ['post']
299
+ // 不传则默认选择人员和部门
300
+ // 传['dep', 'user']则选择人员和部门
301
+ // 传['dep', 'user', 'role']则选择人员、部门和角色
302
+ default: () => ["dep"]
303
+ }
304
+ }, Ue = (p) => (ue("data-v-f5b3d791"), p = p(), ce(), p), qt = { class: "left-pick-list" }, Zt = {
305
+ key: 1,
306
+ class: "post-view-list"
307
+ }, Kt = { class: "checkText" }, Yt = { class: "iconBox" }, Jt = { class: "name_number" }, el = { class: "title" }, tl = {
308
+ key: 0,
309
+ class: "userCount"
310
+ }, ll = {
311
+ key: 1,
312
+ class: "checkText"
313
+ }, sl = /* @__PURE__ */ Ue(() => /* @__PURE__ */ i(
314
+ "div",
315
+ { class: "side" },
316
+ null,
317
+ -1
318
+ /* HOISTED */
319
+ )), al = { class: "iconBox" }, ol = { class: "name_number" }, nl = { class: "title" }, il = {
320
+ key: 0,
321
+ class: "userCount"
322
+ }, rl = ["onClick"], pl = { class: "checkText" }, dl = { class: "iconBox" }, ul = { class: "name_number" }, cl = { class: "title" }, fl = {
323
+ key: 0,
324
+ class: "userCount"
325
+ }, hl = {
326
+ key: 1,
327
+ class: "checkText"
328
+ }, Al = /* @__PURE__ */ Ue(() => /* @__PURE__ */ i(
329
+ "div",
330
+ { class: "side" },
331
+ null,
332
+ -1
333
+ /* HOISTED */
334
+ )), vl = { class: "iconBox" }, yl = { class: "name_number" }, gl = { class: "title" }, ml = {
335
+ key: 0,
336
+ class: "userCount"
337
+ }, xl = ["onClick"], _l = {
338
+ key: 2,
339
+ class: "empty"
340
+ }, Ol = /* @__PURE__ */ Ue(() => /* @__PURE__ */ i(
341
+ "img",
342
+ {
343
+ src: Ce,
344
+ alt: ""
345
+ },
346
+ null,
347
+ -1
348
+ /* HOISTED */
349
+ )), Pl = /* @__PURE__ */ le({
350
+ __name: "GroupList",
351
+ props: Be,
352
+ emits: ["change", "check", "handChild"],
353
+ setup(p, { emit: v }) {
354
+ var r, t;
355
+ const e = p, s = I(() => {
356
+ var u, n;
357
+ return ((u = e.handList) == null ? void 0 : u.length) === ((n = e.list) == null ? void 0 : n.length);
358
+ }), o = I(() => {
359
+ var f, L, U, k;
360
+ const u = (f = e.handList) == null ? void 0 : f.length, n = (L = e.list) == null ? void 0 : L.length;
361
+ return e.multiple ? _.value = e.handList.map((h) => h[e.fixPropOpt.id]) : T.value = (k = (U = e.handList) == null ? void 0 : U[0]) == null ? void 0 : k[e.fixPropOpt.id], u > 0 && u < n;
362
+ }), _ = S(
363
+ e.handList.map((u) => u[e.fixPropOpt.id])
364
+ ), T = S((t = (r = e.handList) == null ? void 0 : r[0]) == null ? void 0 : t[e.fixPropOpt.id]), C = v, F = (u) => {
365
+ const n = u ? e.list.map((f) => {
366
+ if (e.chooseType.includes(f[e.fixPropOpt.type].toLowerCase()) && f.available !== !1)
367
+ return f[e.fixPropOpt.id];
368
+ }) : [];
369
+ C("change", n, u ? e.list : []);
370
+ }, D = (u) => {
371
+ C("change", u, e.list);
372
+ }, V = (u) => {
373
+ C("change", u, e.list);
374
+ }, A = (u, n) => {
375
+ n || C("handChild", u);
376
+ };
377
+ return (u, n) => (a(), d(
378
+ E,
379
+ null,
380
+ [
381
+ g(" 遍历list多选 "),
382
+ i("div", qt, [
383
+ u.multiple && u.list && u.list.length ? (a(), b(x(te), {
384
+ key: 0,
385
+ modelValue: s.value,
386
+ "onUpdate:modelValue": n[0] || (n[0] = (f) => s.value = f),
387
+ indeterminate: o.value,
388
+ onChange: F
389
+ }, {
390
+ default: B(() => [
391
+ z("全选")
392
+ ]),
393
+ _: 1
394
+ /* STABLE */
395
+ }, 8, ["modelValue", "indeterminate"])) : g("v-if", !0),
396
+ u.list && u.list.length ? (a(), d("ul", Zt, [
397
+ u.multiple ? (a(), b(x(Te), {
398
+ key: 0,
399
+ modelValue: _.value,
400
+ "onUpdate:modelValue": n[1] || (n[1] = (f) => _.value = f),
401
+ onChange: D
402
+ }, {
403
+ default: B(() => [
404
+ (a(!0), d(
405
+ E,
406
+ null,
407
+ W(u.list, (f) => (a(), d("li", {
408
+ key: f[e.fixPropOpt.id]
409
+ }, [
410
+ u.chooseType.includes(
411
+ f[e.fixPropOpt.type].toLowerCase()
412
+ ) && f.available !== !1 ? (a(), b(x(te), {
413
+ key: 0,
414
+ label: f[e.fixPropOpt.id],
415
+ disabled: f.available === !1
416
+ }, {
417
+ default: B(() => [
418
+ i("div", Kt, [
419
+ i("div", Yt, [
420
+ w(R, {
421
+ fixTypeOpt: e.fixTypeOpt,
422
+ fixPropOpt: e.fixPropOpt,
423
+ element: f,
424
+ imageBaseUrl: e.imageBaseUrl
425
+ }, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
426
+ ]),
427
+ i("div", Jt, [
428
+ i(
429
+ "div",
430
+ el,
431
+ P(f[e.fixPropOpt.name]),
432
+ 1
433
+ /* TEXT */
434
+ ),
435
+ f[e.fixPropOpt.type] === e.fixTypeOpt.group ? (a(), d(
436
+ "div",
437
+ tl,
438
+ " (" + P(f.userCount) + ") ",
439
+ 1
440
+ /* TEXT */
441
+ )) : g("v-if", !0)
442
+ ])
443
+ ])
444
+ ]),
445
+ _: 2
446
+ /* DYNAMIC */
447
+ }, 1032, ["label", "disabled"])) : (a(), d("div", ll, [
448
+ sl,
449
+ i("div", al, [
450
+ w(R, {
451
+ fixTypeOpt: e.fixTypeOpt,
452
+ fixPropOpt: e.fixPropOpt,
453
+ element: f,
454
+ imageBaseUrl: e.imageBaseUrl
455
+ }, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
456
+ ]),
457
+ i("div", ol, [
458
+ i(
459
+ "div",
460
+ nl,
461
+ P(f[e.fixPropOpt.name]),
462
+ 1
463
+ /* TEXT */
464
+ ),
465
+ f[e.fixPropOpt.type] === e.fixTypeOpt.group ? (a(), d(
466
+ "div",
467
+ il,
468
+ " (" + P(f.userCount) + ") ",
469
+ 1
470
+ /* TEXT */
471
+ )) : g("v-if", !0)
472
+ ])
473
+ ])),
474
+ f[e.fixPropOpt.type] === e.fixTypeOpt.group && e.children ? (a(), d("span", {
475
+ key: 2,
476
+ class: ie(["nextLevel", {
477
+ "is-disabled": _.value.find(
478
+ (L) => L === f[e.fixPropOpt.id]
479
+ )
480
+ }]),
481
+ onClick: (L) => A(
482
+ f,
483
+ _.value.find((U) => U === f[e.fixPropOpt.id])
484
+ )
485
+ }, " 下级", 10, rl)) : g("v-if", !0)
486
+ ]))),
487
+ 128
488
+ /* KEYED_FRAGMENT */
489
+ ))
490
+ ]),
491
+ _: 1
492
+ /* STABLE */
493
+ }, 8, ["modelValue"])) : (a(), b(x(Le), {
494
+ key: 1,
495
+ isIndeterminate: o.value,
496
+ modelValue: T.value,
497
+ "onUpdate:modelValue": n[2] || (n[2] = (f) => T.value = f),
498
+ onChange: V
499
+ }, {
500
+ default: B(() => [
501
+ (a(!0), d(
502
+ E,
503
+ null,
504
+ W(u.list, (f) => (a(), d("li", {
505
+ class: "w-full",
506
+ key: f[e.fixPropOpt.id]
507
+ }, [
508
+ u.chooseType.includes(f[e.fixPropOpt.type].toLowerCase()) && f.available !== !1 ? (a(), b(x(be), {
509
+ key: 0,
510
+ label: f[e.fixPropOpt.id]
511
+ }, {
512
+ default: B(() => [
513
+ i("div", pl, [
514
+ i("div", dl, [
515
+ w(R, {
516
+ fixTypeOpt: e.fixTypeOpt,
517
+ fixPropOpt: e.fixPropOpt,
518
+ element: f,
519
+ imageBaseUrl: e.imageBaseUrl
520
+ }, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
521
+ ]),
522
+ i("div", ul, [
523
+ i(
524
+ "div",
525
+ cl,
526
+ P(f[e.fixPropOpt.name]),
527
+ 1
528
+ /* TEXT */
529
+ ),
530
+ f[e.fixPropOpt.type] === e.fixTypeOpt.group ? (a(), d(
531
+ "div",
532
+ fl,
533
+ " (" + P(f.userCount) + ") ",
534
+ 1
535
+ /* TEXT */
536
+ )) : g("v-if", !0)
537
+ ])
538
+ ])
539
+ ]),
540
+ _: 2
541
+ /* DYNAMIC */
542
+ }, 1032, ["label"])) : (a(), d("div", hl, [
543
+ Al,
544
+ i("div", vl, [
545
+ w(R, {
546
+ fixTypeOpt: e.fixTypeOpt,
547
+ fixPropOpt: e.fixPropOpt,
548
+ element: f,
549
+ imageBaseUrl: e.imageBaseUrl
550
+ }, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
551
+ ]),
552
+ i("div", yl, [
553
+ i(
554
+ "div",
555
+ gl,
556
+ P(f[e.fixPropOpt.name]),
557
+ 1
558
+ /* TEXT */
559
+ ),
560
+ f[e.fixPropOpt.type] === e.fixTypeOpt.group ? (a(), d(
561
+ "div",
562
+ ml,
563
+ " (" + P(f.userCount) + ") ",
564
+ 1
565
+ /* TEXT */
566
+ )) : g("v-if", !0)
567
+ ])
568
+ ])),
569
+ f[e.fixPropOpt.type] === e.fixTypeOpt.group && e.children ? (a(), d("span", {
570
+ key: 2,
571
+ class: ie(["nextLevel", {
572
+ "is-disabled": _.value.find(
573
+ (L) => L === f[e.fixPropOpt.id]
574
+ )
575
+ }]),
576
+ onClick: (L) => A(
577
+ f,
578
+ _.value.find((U) => U === f[e.fixPropOpt.id])
579
+ )
580
+ }, " 下级", 10, xl)) : g("v-if", !0)
581
+ ]))),
582
+ 128
583
+ /* KEYED_FRAGMENT */
584
+ ))
585
+ ]),
586
+ _: 1
587
+ /* STABLE */
588
+ }, 8, ["isIndeterminate", "modelValue"]))
589
+ ])) : (a(), d("div", _l, [
590
+ Ol,
591
+ i(
592
+ "div",
593
+ null,
594
+ P(e.emptyText),
595
+ 1
596
+ /* TEXT */
597
+ )
598
+ ]))
599
+ ])
600
+ ],
601
+ 2112
602
+ /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
603
+ ));
604
+ }
605
+ });
606
+ const kl = /* @__PURE__ */ H(Pl, [["__scopeId", "data-v-f5b3d791"]]), we = (p) => (ue("data-v-e03f0d36"), p = p(), ce(), p), Tl = { class: "left-pick-list" }, Ll = {
607
+ key: 1,
608
+ class: "post-view-list"
609
+ }, bl = { class: "iconBox" }, Cl = {
610
+ key: 1,
611
+ class: "checkText"
612
+ }, Bl = /* @__PURE__ */ we(() => /* @__PURE__ */ i(
613
+ "div",
614
+ { class: "side" },
615
+ null,
616
+ -1
617
+ /* HOISTED */
618
+ )), Ul = { class: "iconBox" }, wl = { class: "title" }, Sl = { class: "ik-picker-single" }, El = { class: "iconBox" }, Il = {
619
+ key: 1,
620
+ class: "checkText"
621
+ }, Vl = /* @__PURE__ */ we(() => /* @__PURE__ */ i(
622
+ "div",
623
+ { class: "side" },
624
+ null,
625
+ -1
626
+ /* HOISTED */
627
+ )), Fl = { class: "iconBox" }, Dl = { class: "title" }, Nl = {
628
+ key: 2,
629
+ class: "empty"
630
+ }, Rl = /* @__PURE__ */ we(() => /* @__PURE__ */ i(
631
+ "img",
632
+ {
633
+ src: Ce,
634
+ alt: ""
635
+ },
636
+ null,
637
+ -1
638
+ /* HOISTED */
639
+ )), $l = /* @__PURE__ */ le({
640
+ __name: "PostList",
641
+ props: Be,
642
+ emits: ["change", "check"],
643
+ setup(p, { emit: v }) {
644
+ var A, r;
645
+ const e = p, s = I(() => {
646
+ var t, u;
647
+ return ((t = e.handList) == null ? void 0 : t.length) === ((u = e.list) == null ? void 0 : u.length);
648
+ }), o = I(() => {
649
+ var n, f, L, U;
650
+ const t = (n = e.handList) == null ? void 0 : n.length, u = (f = e.list) == null ? void 0 : f.length;
651
+ return e.multiple ? _.value = e.handList.map((k) => k[e.fixPropOpt.id]) : T.value = (U = (L = e.handList) == null ? void 0 : L[0]) == null ? void 0 : U[e.fixPropOpt.id], t > 0 && t < u;
652
+ }), _ = S(
653
+ e.handList.map((t) => t[e.fixPropOpt.id])
654
+ ), T = S((r = (A = e.handList) == null ? void 0 : A[0]) == null ? void 0 : r[e.fixPropOpt.id]), C = v, F = (t) => {
655
+ const u = t ? e.list.map((n) => n[e.fixPropOpt.id]) : [];
656
+ C("change", u, t ? e.list : []);
657
+ }, D = (t) => {
658
+ C("change", t, e.list);
659
+ }, V = (t) => {
660
+ C("change", t, e.list);
661
+ };
662
+ return (t, u) => (a(), d(
663
+ E,
664
+ null,
665
+ [
666
+ g(" 遍历list多选 "),
667
+ i("div", Tl, [
668
+ t.multiple && t.chooseType.includes("post") && t.list && t.list.length ? (a(), b(x(te), {
669
+ key: 0,
670
+ modelValue: s.value,
671
+ "onUpdate:modelValue": u[0] || (u[0] = (n) => s.value = n),
672
+ indeterminate: o.value,
673
+ onChange: F
674
+ }, {
675
+ default: B(() => [
676
+ z("全选")
677
+ ]),
678
+ _: 1
679
+ /* STABLE */
680
+ }, 8, ["modelValue", "indeterminate"])) : g("v-if", !0),
681
+ t.list && t.list.length ? (a(), d("ul", Ll, [
682
+ t.multiple ? (a(), b(x(Te), {
683
+ key: 0,
684
+ modelValue: _.value,
685
+ "onUpdate:modelValue": u[1] || (u[1] = (n) => _.value = n),
686
+ onChange: D
687
+ }, {
688
+ default: B(() => [
689
+ (a(!0), d(
690
+ E,
691
+ null,
692
+ W(t.list, (n) => (a(), d("li", {
693
+ key: n[e.fixPropOpt.id]
694
+ }, [
695
+ t.chooseType.includes(n[e.fixPropOpt.type].toLowerCase()) ? (a(), b(x(te), {
696
+ key: 0,
697
+ label: n[e.fixPropOpt.id]
698
+ }, {
699
+ default: B(() => [
700
+ i("div", bl, [
701
+ w(R, {
702
+ fixTypeOpt: e.fixTypeOpt,
703
+ fixPropOpt: e.fixPropOpt,
704
+ element: n,
705
+ imageBaseUrl: e.imageBaseUrl
706
+ }, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
707
+ ]),
708
+ i(
709
+ "p",
710
+ null,
711
+ P(n[e.fixPropOpt.name]),
712
+ 1
713
+ /* TEXT */
714
+ )
715
+ ]),
716
+ _: 2
717
+ /* DYNAMIC */
718
+ }, 1032, ["label"])) : (a(), d("div", Cl, [
719
+ Bl,
720
+ i("div", Ul, [
721
+ w(R, {
722
+ fixTypeOpt: e.fixTypeOpt,
723
+ fixPropOpt: e.fixPropOpt,
724
+ element: n,
725
+ imageBaseUrl: e.imageBaseUrl
726
+ }, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
727
+ ]),
728
+ i(
729
+ "div",
730
+ wl,
731
+ P(n[e.fixPropOpt.name]),
732
+ 1
733
+ /* TEXT */
734
+ )
735
+ ]))
736
+ ]))),
737
+ 128
738
+ /* KEYED_FRAGMENT */
739
+ ))
740
+ ]),
741
+ _: 1
742
+ /* STABLE */
743
+ }, 8, ["modelValue"])) : (a(), b(x(Le), {
744
+ key: 1,
745
+ isIndeterminate: o.value,
746
+ modelValue: T.value,
747
+ "onUpdate:modelValue": u[2] || (u[2] = (n) => T.value = n),
748
+ onChange: V
749
+ }, {
750
+ default: B(() => [
751
+ (a(!0), d(
752
+ E,
753
+ null,
754
+ W(t.list, (n) => (a(), d("li", {
755
+ class: "w-full",
756
+ key: n[e.fixPropOpt.id]
757
+ }, [
758
+ t.chooseType.includes(n[e.fixPropOpt.type].toLowerCase()) ? (a(), b(x(be), {
759
+ key: 0,
760
+ label: n[e.fixPropOpt.id]
761
+ }, {
762
+ default: B(() => [
763
+ i("div", Sl, [
764
+ i("div", El, [
765
+ w(R, {
766
+ fixTypeOpt: e.fixTypeOpt,
767
+ fixPropOpt: e.fixPropOpt,
768
+ element: n,
769
+ imageBaseUrl: e.imageBaseUrl
770
+ }, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
771
+ ]),
772
+ i(
773
+ "p",
774
+ null,
775
+ P(n[e.fixPropOpt.name]),
776
+ 1
777
+ /* TEXT */
778
+ )
779
+ ])
780
+ ]),
781
+ _: 2
782
+ /* DYNAMIC */
783
+ }, 1032, ["label"])) : (a(), d("div", Il, [
784
+ Vl,
785
+ i("div", Fl, [
786
+ w(R, {
787
+ fixTypeOpt: e.fixTypeOpt,
788
+ fixPropOpt: e.fixPropOpt,
789
+ element: n,
790
+ imageBaseUrl: e.imageBaseUrl
791
+ }, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
792
+ ]),
793
+ i(
794
+ "div",
795
+ Dl,
796
+ P(n[e.fixPropOpt.name]),
797
+ 1
798
+ /* TEXT */
799
+ )
800
+ ]))
801
+ ]))),
802
+ 128
803
+ /* KEYED_FRAGMENT */
804
+ ))
805
+ ]),
806
+ _: 1
807
+ /* STABLE */
808
+ }, 8, ["isIndeterminate", "modelValue"]))
809
+ ])) : (a(), d("div", Nl, [
810
+ Rl,
811
+ i(
812
+ "div",
813
+ null,
814
+ P(e.emptyText),
815
+ 1
816
+ /* TEXT */
817
+ )
818
+ ]))
819
+ ])
820
+ ],
821
+ 2112
822
+ /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
823
+ ));
824
+ }
825
+ });
826
+ const Ml = /* @__PURE__ */ H($l, [["__scopeId", "data-v-e03f0d36"]]), Se = (p) => (ue("data-v-be3b3e45"), p = p(), ce(), p), Wl = { class: "left-pick-list" }, Hl = {
827
+ key: 1,
828
+ class: "role-view-list"
829
+ }, jl = { class: "iconBox" }, Gl = ["title"], Ql = {
830
+ key: 1,
831
+ class: "checkText"
832
+ }, Xl = /* @__PURE__ */ Se(() => /* @__PURE__ */ i(
833
+ "div",
834
+ { class: "side" },
835
+ null,
836
+ -1
837
+ /* HOISTED */
838
+ )), zl = { class: "iconBox" }, ql = ["title"], Zl = { class: "ik-picker-single" }, Kl = { class: "iconBox" }, Yl = ["title"], Jl = {
839
+ key: 1,
840
+ class: "checkText"
841
+ }, es = /* @__PURE__ */ Se(() => /* @__PURE__ */ i(
842
+ "div",
843
+ { class: "side" },
844
+ null,
845
+ -1
846
+ /* HOISTED */
847
+ )), ts = { class: "iconBox" }, ls = ["title"], ss = {
848
+ key: 2,
849
+ class: "empty"
850
+ }, as = /* @__PURE__ */ Se(() => /* @__PURE__ */ i(
851
+ "img",
852
+ {
853
+ src: Ce,
854
+ alt: ""
855
+ },
856
+ null,
857
+ -1
858
+ /* HOISTED */
859
+ )), os = /* @__PURE__ */ le({
860
+ __name: "RoleList",
861
+ props: Be,
862
+ emits: ["change", "check"],
863
+ setup(p, { emit: v }) {
864
+ var A, r;
865
+ const e = p, s = I(() => {
866
+ var t, u;
867
+ return ((t = e.handList) == null ? void 0 : t.length) === ((u = e.list) == null ? void 0 : u.length);
868
+ }), o = I(() => {
869
+ var n, f, L, U;
870
+ const t = (n = e.handList) == null ? void 0 : n.length, u = (f = e.list) == null ? void 0 : f.length;
871
+ return e.multiple ? _.value = e.handList.map((k) => k[e.fixPropOpt.id]) : T.value = (U = (L = e.handList) == null ? void 0 : L[0]) == null ? void 0 : U[e.fixPropOpt.id], t > 0 && t < u;
872
+ }), _ = S(
873
+ e.handList.map((t) => t[e.fixPropOpt.id])
874
+ ), T = S((r = (A = e.handList) == null ? void 0 : A[0]) == null ? void 0 : r[e.fixPropOpt.id]), C = v, F = (t) => {
875
+ const u = t ? e.list.map((n) => n[e.fixPropOpt.id]) : [];
876
+ C("change", u, t ? e.list : []);
877
+ }, D = (t) => {
878
+ C("change", t, e.list);
879
+ }, V = (t) => {
880
+ C("change", t, e.list);
881
+ };
882
+ return (t, u) => (a(), d(
883
+ E,
884
+ null,
885
+ [
886
+ g(" 遍历list多选 "),
887
+ i("div", Wl, [
888
+ t.multiple && t.chooseType.includes("role") && t.list && t.list.length ? (a(), b(x(te), {
889
+ key: 0,
890
+ modelValue: s.value,
891
+ "onUpdate:modelValue": u[0] || (u[0] = (n) => s.value = n),
892
+ indeterminate: o.value,
893
+ onChange: F
894
+ }, {
895
+ default: B(() => [
896
+ z("全选")
897
+ ]),
898
+ _: 1
899
+ /* STABLE */
900
+ }, 8, ["modelValue", "indeterminate"])) : g("v-if", !0),
901
+ t.list && t.list.length ? (a(), d("ul", Hl, [
902
+ t.multiple ? (a(), b(x(Te), {
903
+ key: 0,
904
+ modelValue: _.value,
905
+ "onUpdate:modelValue": u[1] || (u[1] = (n) => _.value = n),
906
+ onChange: D
907
+ }, {
908
+ default: B(() => [
909
+ (a(!0), d(
910
+ E,
911
+ null,
912
+ W(t.list, (n) => (a(), d("li", {
913
+ key: n[t.fixPropOpt.id]
914
+ }, [
915
+ t.chooseType.includes(n[e.fixPropOpt.type].toLowerCase()) ? (a(), b(x(te), {
916
+ key: 0,
917
+ label: n[t.fixPropOpt.id],
918
+ value: n[t.fixPropOpt.id],
919
+ disabled: n.disabled
920
+ }, {
921
+ default: B(() => [
922
+ i("div", jl, [
923
+ w(R, {
924
+ fixTypeOpt: e.fixTypeOpt,
925
+ fixPropOpt: e.fixPropOpt,
926
+ element: n,
927
+ imageBaseUrl: e.imageBaseUrl
928
+ }, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
929
+ ]),
930
+ i("p", {
931
+ title: n[t.fixPropOpt.name]
932
+ }, P(n[t.fixPropOpt.name]), 9, Gl)
933
+ ]),
934
+ _: 2
935
+ /* DYNAMIC */
936
+ }, 1032, ["label", "value", "disabled"])) : (a(), d("div", Ql, [
937
+ Xl,
938
+ i("div", zl, [
939
+ w(R, {
940
+ fixTypeOpt: e.fixTypeOpt,
941
+ fixPropOpt: e.fixPropOpt,
942
+ element: n,
943
+ imageBaseUrl: e.imageBaseUrl
944
+ }, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
945
+ ]),
946
+ i("div", {
947
+ class: "title",
948
+ title: n[t.fixPropOpt.name]
949
+ }, P(n[t.fixPropOpt.name]), 9, ql)
950
+ ]))
951
+ ]))),
952
+ 128
953
+ /* KEYED_FRAGMENT */
954
+ ))
955
+ ]),
956
+ _: 1
957
+ /* STABLE */
958
+ }, 8, ["modelValue"])) : (a(), b(x(Le), {
959
+ key: 1,
960
+ indeterminate: o.value,
961
+ modelValue: T.value,
962
+ "onUpdate:modelValue": u[2] || (u[2] = (n) => T.value = n),
963
+ onChange: V
964
+ }, {
965
+ default: B(() => [
966
+ (a(!0), d(
967
+ E,
968
+ null,
969
+ W(t.list, (n) => (a(), d("li", {
970
+ class: "w-full",
971
+ key: n[t.fixPropOpt.id]
972
+ }, [
973
+ t.chooseType.includes(n[e.fixPropOpt.type].toLowerCase()) ? (a(), b(x(be), {
974
+ key: 0,
975
+ label: n[t.fixPropOpt.id],
976
+ value: n[t.fixPropOpt.id],
977
+ disabled: n.disabled
978
+ }, {
979
+ default: B(() => [
980
+ i("div", Zl, [
981
+ i("div", Kl, [
982
+ w(R, {
983
+ fixTypeOpt: e.fixTypeOpt,
984
+ fixPropOpt: e.fixPropOpt,
985
+ element: n,
986
+ imageBaseUrl: e.imageBaseUrl
987
+ }, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
988
+ ]),
989
+ i("p", {
990
+ title: n[t.fixPropOpt.name]
991
+ }, P(n[t.fixPropOpt.name]), 9, Yl)
992
+ ])
993
+ ]),
994
+ _: 2
995
+ /* DYNAMIC */
996
+ }, 1032, ["label", "value", "disabled"])) : (a(), d("div", Jl, [
997
+ es,
998
+ i("div", ts, [
999
+ w(R, {
1000
+ fixTypeOpt: e.fixTypeOpt,
1001
+ fixPropOpt: e.fixPropOpt,
1002
+ element: n,
1003
+ imageBaseUrl: e.imageBaseUrl
1004
+ }, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
1005
+ ]),
1006
+ i("div", {
1007
+ class: "title",
1008
+ title: n[t.fixPropOpt.name]
1009
+ }, P(n[t.fixPropOpt.name]), 9, ls)
1010
+ ]))
1011
+ ]))),
1012
+ 128
1013
+ /* KEYED_FRAGMENT */
1014
+ ))
1015
+ ]),
1016
+ _: 1
1017
+ /* STABLE */
1018
+ }, 8, ["indeterminate", "modelValue"]))
1019
+ ])) : (a(), d("div", ss, [
1020
+ as,
1021
+ i(
1022
+ "div",
1023
+ null,
1024
+ P(e.emptyText),
1025
+ 1
1026
+ /* TEXT */
1027
+ )
1028
+ ]))
1029
+ ])
1030
+ ],
1031
+ 2112
1032
+ /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
1033
+ ));
1034
+ }
1035
+ });
1036
+ const ns = /* @__PURE__ */ H(os, [["__scopeId", "data-v-be3b3e45"]]);
1037
+ var ne = /* @__PURE__ */ ((p) => (p.group = "group", p.role = "role", p.post = "post", p))(ne || {});
1038
+ const is = {
1039
+ // 是否允许选择子集
1040
+ children: {
1041
+ type: Boolean,
1042
+ default: !0
1043
+ },
1044
+ // 是否允许点击根节点查询
1045
+ topLink: {
1046
+ type: Boolean,
1047
+ default: !0
1048
+ },
1049
+ // 参数
1050
+ modelValue: {
1051
+ type: Array,
1052
+ default: () => []
1053
+ },
1054
+ // 已选数据 - 数据回显
1055
+ data: {
1056
+ type: Array,
1057
+ default: () => []
1058
+ },
1059
+ // 默认最顶层节点id
1060
+ orgPid: {
1061
+ type: String,
1062
+ default: ""
1063
+ },
1064
+ // 默认顶层组织
1065
+ org: {
1066
+ type: Object,
1067
+ default: () => null
1068
+ },
1069
+ // 默认搜索
1070
+ immediate: {
1071
+ type: Boolean,
1072
+ default: !1
1073
+ },
1074
+ // 是否显示
1075
+ show: {
1076
+ type: Boolean,
1077
+ default: !1,
1078
+ required: !0
1079
+ },
1080
+ // 宽度 为Number时为百分比,字符串时为具体像素
1081
+ width: {
1082
+ type: String,
1083
+ default: "685px"
1084
+ },
1085
+ height: {
1086
+ type: String,
1087
+ default: "580px"
1088
+ },
1089
+ // 标题
1090
+ title: {
1091
+ type: String,
1092
+ default: "选择人员"
1093
+ },
1094
+ // 部门数据
1095
+ groupList: {
1096
+ type: Array,
1097
+ default: () => []
1098
+ },
1099
+ // 人员数据
1100
+ userList: {
1101
+ type: Array,
1102
+ default: () => []
1103
+ },
1104
+ // 角色数据
1105
+ roleList: {
1106
+ type: Array,
1107
+ default: () => []
1108
+ },
1109
+ // 岗位数据
1110
+ postList: {
1111
+ type: Array,
1112
+ default: () => []
1113
+ },
1114
+ // 是否多选
1115
+ multiple: {
1116
+ type: Boolean,
1117
+ default: !0
1118
+ },
1119
+ // 最大允许选择数量
1120
+ // 0表示不限制
1121
+ max: {
1122
+ type: Number,
1123
+ default: 0
1124
+ },
1125
+ // 显示的选项卡
1126
+ // 当只有一个选项卡时,不显示tab页
1127
+ tabs: {
1128
+ type: Array,
1129
+ // prop校验
1130
+ validator: (p) => {
1131
+ if (p === void 0)
1132
+ return !0;
1133
+ if (Array.isArray(p)) {
1134
+ if (!(p != null && p.length))
1135
+ return !1;
1136
+ } else
1137
+ return console.error("IkingPicker参数错误:tabs必须是Array类型"), !1;
1138
+ return !0;
1139
+ },
1140
+ default: () => ["group", "role", "post"]
1141
+ },
1142
+ // 选择类别
1143
+ chooseType: {
1144
+ type: Array,
1145
+ // 传['dep_user']选择部门和人员 传['dep']则只选择部门,传['user']则只选择人员,传['role']则只选择角色 ['post']
1146
+ // 不传则默认选择人员和部门
1147
+ // 传['dep', 'user']则选择人员和部门
1148
+ // 传['dep', 'user', 'role']则选择人员、部门和角色
1149
+ default: () => ["dep"]
1150
+ },
1151
+ // api地址
1152
+ api: {
1153
+ type: Object,
1154
+ default: () => ({
1155
+ methods: "post",
1156
+ headers: {
1157
+ "Content-Type": "application/json;charset=UTF-8",
1158
+ Authorization: "Bearer 9aa65e31e86f4232ac4e4136fb1d3413"
1159
+ },
1160
+ url: `${location.origin}${location.pathname}/serve/component/pick/mix`,
1161
+ param: null,
1162
+ paramKey: "type"
1163
+ })
1164
+ },
1165
+ // 类型字段映射
1166
+ typeOption: {
1167
+ type: Object,
1168
+ default: () => {
1169
+ }
1170
+ },
1171
+ // 字段映射 {name: 'label', type: 'type'}
1172
+ propOption: {
1173
+ type: Object,
1174
+ default: () => null
1175
+ },
1176
+ // 显示搜索栏
1177
+ search: {
1178
+ type: Boolean,
1179
+ default: !0
1180
+ },
1181
+ // 是否懒加载
1182
+ lazy: {
1183
+ type: Boolean,
1184
+ default: !0
1185
+ },
1186
+ // imageBaseUrl
1187
+ imageBaseUrl: {
1188
+ type: String,
1189
+ default: ""
1190
+ },
1191
+ // placeholder
1192
+ placeholder: {
1193
+ type: String,
1194
+ default: "请输入"
1195
+ },
1196
+ emptyText: {
1197
+ type: String,
1198
+ default: "暂无数据"
1199
+ },
1200
+ dataScopeOnly: {
1201
+ type: Boolean,
1202
+ default: !1
1203
+ },
1204
+ rootDepartmentOnly: {
1205
+ type: Boolean,
1206
+ default: !1
1207
+ }
1208
+ }, Re = (p) => {
1209
+ const v = window.location.search;
1210
+ return new URLSearchParams(v).get(p);
1211
+ }, rs = (p) => {
1212
+ const v = ke.local.getItem("x_domain");
1213
+ v && (p["X-DOMAIN"] = v);
1214
+ }, ps = (p) => {
1215
+ var e;
1216
+ const v = Re("domain");
1217
+ if (v) {
1218
+ p["X-DOMAIN"] = v;
1219
+ const s = Re("code");
1220
+ v === "APPLICATION" && (p["X-APP"] = s);
1221
+ } else
1222
+ rs(p);
1223
+ (e = ke.local.getItem("tenant")) == null || e.code;
1224
+ }, ds = (p, v) => {
1225
+ const e = S([]), s = async (_, T) => {
1226
+ var se, M;
1227
+ const { url: C, methods: F, headers: D, param: V } = p.value || {}, A = {
1228
+ ...V || {},
1229
+ parentDepartmentId: _ || "",
1230
+ name: T || "",
1231
+ rootDepartmentOnly: v.rootDepartmentOnly,
1232
+ dataScopeOnly: v.dataScopeOnly
1233
+ }, r = {
1234
+ method: F,
1235
+ url: C,
1236
+ headers: {
1237
+ "Content-Type": "application/json;charset=UTF-8",
1238
+ ...D
1239
+ },
1240
+ data: JSON.stringify(A)
1241
+ };
1242
+ ps(r.headers);
1243
+ const t = await pt(r), { success: u, data: n } = t.data;
1244
+ if (!u)
1245
+ return {
1246
+ groupList: [],
1247
+ roleList: [],
1248
+ postList: [],
1249
+ userList: [],
1250
+ rootOrganization: {},
1251
+ rootDepartment: {}
1252
+ };
1253
+ const {
1254
+ departments: f,
1255
+ roles: L,
1256
+ posts: U,
1257
+ users: k,
1258
+ rootOrganization: h,
1259
+ rootDepartment: $
1260
+ } = n, ee = h || $;
1261
+ return e.value.length === 0 && (e.value[0] = v.org ? {
1262
+ ...v.org,
1263
+ id: v.elementId,
1264
+ elementType: (M = (se = v.org) == null ? void 0 : se.elementType) == null ? void 0 : M.toLocaleUpperCase()
1265
+ } : {
1266
+ ...ee,
1267
+ id: ee.elementId
1268
+ }), {
1269
+ groupList: Q.cloneDeep(f),
1270
+ roleList: Q.cloneDeep(L),
1271
+ postList: Q.cloneDeep(U),
1272
+ userList: Q.cloneDeep(k),
1273
+ rootOrganization: h,
1274
+ rootDepartment: $
1275
+ };
1276
+ };
1277
+ return {
1278
+ handData: s,
1279
+ handSetChild: (_, T) => {
1280
+ s(_ == null ? void 0 : _.elementId, T);
1281
+ },
1282
+ bannerList: e
1283
+ };
1284
+ }, us = {
1285
+ shadow: "hover",
1286
+ class: "sel-list"
1287
+ }, cs = { key: 0 }, fs = /* @__PURE__ */ i(
1288
+ "div",
1289
+ { class: "split-div" },
1290
+ null,
1291
+ -1
1292
+ /* HOISTED */
1293
+ ), hs = { class: "choose-list" }, As = { class: "choose-item" }, vs = /* @__PURE__ */ i(
1294
+ "div",
1295
+ null,
1296
+ "已选",
1297
+ -1
1298
+ /* HOISTED */
1299
+ ), ys = { class: "choose-box" }, gs = { class: "list-group-item" }, ms = { class: "item_info" }, xs = { class: "avatar_box" }, _s = { class: "dialog-footer" }, Os = /* @__PURE__ */ le({
1300
+ __name: "picker",
1301
+ props: is,
1302
+ emits: ["handChild", "update:show", "update:modelValue", "ok", "search"],
1303
+ setup(p, { expose: v, emit: e }) {
1304
+ tt((l) => ({
1305
+ "45f4c0ae": Fe.value
1306
+ }));
1307
+ const s = p, o = S(""), _ = S(""), T = S([]), C = S([]), F = S([]), D = S([]), V = S(!1), A = I(() => ae.value.includes("user") ? C.value.concat(T.value) : C.value);
1308
+ X(
1309
+ () => s.api,
1310
+ () => {
1311
+ s.show && se("");
1312
+ }
1313
+ );
1314
+ const r = I(() => ({
1315
+ name: "name",
1316
+ type: "type",
1317
+ id: "id",
1318
+ avatar: "avatar",
1319
+ ...s.propOption
1320
+ })), t = I(() => ({
1321
+ user: "USER",
1322
+ role: "ROLE",
1323
+ post: "POST",
1324
+ group: "DEPT",
1325
+ ...s.typeOption
1326
+ })), u = S([]), n = ds(lt(s, "api"), s), f = n.handData, L = n.bannerList;
1327
+ s.immediate && f(_.value, o.value);
1328
+ const U = (l) => (l.forEach((c) => {
1329
+ var y, m;
1330
+ c.disabled = ((m = (y = s.modelValue) == null ? void 0 : y.find(
1331
+ (O) => O[r.value.id] === c[r.value.id]
1332
+ )) == null ? void 0 : m.disabled) || !1;
1333
+ }), l), k = async () => {
1334
+ var l, c, y, m, O, j, ge, De;
1335
+ V.value = !0;
1336
+ try {
1337
+ if ((l = s.groupList) != null && l.length || (c = s.userList) != null && c.length || (y = s.roleList) != null && y.length || (m = s.postList) != null && m.length) {
1338
+ T.value = (O = s.userList) == null ? void 0 : O.filter(
1339
+ (G) => G[r.value.name].includes(o.value)
1340
+ ), C.value = (j = s.groupList) == null ? void 0 : j.filter(
1341
+ (G) => G[r.value.name].includes(o.value)
1342
+ ), F.value = (ge = s.roleList) == null ? void 0 : ge.filter(
1343
+ (G) => G[r.value.name].includes(o.value)
1344
+ ), D.value = (De = s.postList) == null ? void 0 : De.filter(
1345
+ (G) => G[r.value.name].includes(o.value)
1346
+ ), he(), V.value = !1;
1347
+ return;
1348
+ }
1349
+ const N = await f(_.value, o.value);
1350
+ try {
1351
+ T.value = U((N == null ? void 0 : N.userList) || []), C.value = U((N == null ? void 0 : N.groupList) || []), F.value = U((N == null ? void 0 : N.roleList) || []), D.value = U((N == null ? void 0 : N.postList) || []);
1352
+ } catch (G) {
1353
+ V.value = !1, console.info("error: ", G);
1354
+ }
1355
+ he(), V.value = !1;
1356
+ } catch {
1357
+ V.value = !1;
1358
+ }
1359
+ }, h = Oe({
1360
+ //组织架构
1361
+ group: /* @__PURE__ */ new Map(),
1362
+ // 用户
1363
+ user: /* @__PURE__ */ new Map(),
1364
+ // 角色
1365
+ role: /* @__PURE__ */ new Map(),
1366
+ // 岗位
1367
+ post: /* @__PURE__ */ new Map(),
1368
+ // 当前数据已选项
1369
+ trans: [],
1370
+ // 单选
1371
+ single: ""
1372
+ }), $ = Oe({
1373
+ indeterminate: !1,
1374
+ checkAll: 0
1375
+ }), ee = (l) => h.group.has(l) || h.user.has(l) || h.role.has(l) || h.post.has(l), se = at.debounce(k, 300), M = I(() => {
1376
+ const l = Array.from(h.group.values()), c = Array.from(h.role.values()), y = Array.from(h.user.values()), m = Array.from(h.post.values());
1377
+ return u.value = [...c, ...m, ...y, ...l], {
1378
+ list: [...c, ...y, ...m, ...l],
1379
+ role: {
1380
+ list: c,
1381
+ len: c.length
1382
+ },
1383
+ user: {
1384
+ list: y,
1385
+ len: y.length
1386
+ },
1387
+ post: {
1388
+ list: m,
1389
+ len: m.length
1390
+ },
1391
+ groups: {
1392
+ list: l,
1393
+ len: l.length
1394
+ }
1395
+ };
1396
+ }), ae = I(() => {
1397
+ const l = s.chooseType.map((y) => y.toLocaleLowerCase());
1398
+ let c = [...l];
1399
+ return l.includes("dep") && (c = [...c, "dept"]), l.includes("dep_user") && (c = [...c, "user"]), c;
1400
+ }), q = S([]), We = (l) => {
1401
+ q.value = l, q.value.forEach((c) => {
1402
+ c.readonly = c == null ? void 0 : c.disabled;
1403
+ });
1404
+ }, re = e, fe = S(!1), he = (l = !1) => {
1405
+ var y;
1406
+ const c = (y = s == null ? void 0 : s.userList) != null && y.length ? Q.cloneDeep([...s == null ? void 0 : s.userList, ...s == null ? void 0 : s.groupList]) : [...C.value, ...T.value];
1407
+ return !l && We(c), c;
1408
+ };
1409
+ X(
1410
+ () => s.show,
1411
+ async (l) => {
1412
+ var c;
1413
+ if (fe.value = l, l) {
1414
+ _.value = ((c = s.org) == null ? void 0 : c.elementId) || s.orgPid, !s.userList.length && !s.groupList.length && !s.roleList.length && !s.postList.length ? await k() : (T.value = s.userList, C.value = s.groupList, F.value = s.roleList, D.value = s.postList), h.trans = [], $.checkAll = 0, $.indeterminate = !1;
1415
+ const y = he(!0);
1416
+ for (const O of y)
1417
+ ee(O[r.value.id]) && h.trans.push(O[r.value.id]);
1418
+ const m = y.length === h.trans.length;
1419
+ $.indeterminate = !!(y.length && !m), $.checkAll = Number(y.length && m), Pe(() => {
1420
+ var O;
1421
+ (O = s.modelValue) != null && O.length ? s.modelValue.forEach((j) => {
1422
+ K(j), s.multiple ? h.trans.push(j[r.value.id]) : h.single = j[r.value.id];
1423
+ }) : J();
1424
+ });
1425
+ } else
1426
+ J();
1427
+ }
1428
+ ), Ne(() => {
1429
+ let l;
1430
+ l = q.value.length;
1431
+ const c = h.trans.length;
1432
+ $.indeterminate = h.trans.length ? c !== l : !1, $.checkAll = +(l !== 0 && c === l);
1433
+ }), X(
1434
+ () => s.modelValue,
1435
+ (l) => {
1436
+ l != null && l.length ? l.forEach((c) => {
1437
+ K(c), s.multiple ? h.trans.push(c[r.value.id]) : h.single = c[r.value.id];
1438
+ }) : J();
1439
+ }
1440
+ );
1441
+ const Z = (l) => {
1442
+ if (l) {
1443
+ if (h.single = "", l[r.value.id]) {
1444
+ const c = h.trans.findIndex(
1445
+ (y) => y === l[r.value.id]
1446
+ );
1447
+ c !== -1 && h.trans.splice(c, 1);
1448
+ }
1449
+ switch (l[r.value.type]) {
1450
+ case t.value.user:
1451
+ return h.user.delete(l[r.value.id]);
1452
+ case t.value.role:
1453
+ return h.role.delete(l[r.value.id]);
1454
+ case t.value.post:
1455
+ return h.post.delete(l[r.value.id]);
1456
+ case t.value.group:
1457
+ return h.group.delete(l[r.value.id]);
1458
+ default:
1459
+ return;
1460
+ }
1461
+ }
1462
+ }, Ee = (l) => {
1463
+ Z(l);
1464
+ }, K = (l) => {
1465
+ if (!ee(l[r.value.id])) {
1466
+ const c = {
1467
+ ...l
1468
+ // readonly: item.disabled
1469
+ };
1470
+ switch (l[r.value.type]) {
1471
+ case t.value.user:
1472
+ return h.user.set(l[r.value.id], c);
1473
+ case t.value.role:
1474
+ return h.role.set(l[r.value.id], c);
1475
+ case t.value.post:
1476
+ return h.post.set(l[r.value.id], c);
1477
+ case t.value.group:
1478
+ return h.group.set(l[r.value.id], c);
1479
+ default:
1480
+ return;
1481
+ }
1482
+ }
1483
+ }, He = (l) => [t.value.group].includes(
1484
+ l[r.value.type]
1485
+ ) ? l == null ? void 0 : l.hasOwnProperty("disabled") : !1;
1486
+ X(
1487
+ () => h.trans,
1488
+ (l) => {
1489
+ if (!l.length)
1490
+ q.value.forEach((c) => {
1491
+ c.disabled = !1;
1492
+ try {
1493
+ s.multiple && Z(c);
1494
+ } catch {
1495
+ }
1496
+ });
1497
+ else {
1498
+ const c = q.value.filter(
1499
+ (m) => !l.includes(m[r.value.id])
1500
+ );
1501
+ for (const m of c)
1502
+ m.disabled = !1, s.multiple && Z(m);
1503
+ const y = q.value.filter(
1504
+ (m) => l.includes(m[r.value.id])
1505
+ );
1506
+ for (const m of y)
1507
+ m.disabled = He(m), K(m);
1508
+ }
1509
+ },
1510
+ { deep: !0 }
1511
+ ), X(
1512
+ () => h.single,
1513
+ (l) => {
1514
+ if (l) {
1515
+ const c = q.value.find((y) => y[r.value.id] === l);
1516
+ c && (h.user.clear(), h.role.clear(), h.post.clear(), h.group.clear(), h.trans = [], Pe(() => {
1517
+ K(c);
1518
+ }));
1519
+ }
1520
+ }
1521
+ );
1522
+ const je = (l) => {
1523
+ _.value = l == null ? void 0 : l.elementId, k(), L.value.push(l);
1524
+ }, Ie = I(() => L.value.length), Ge = (l, c) => {
1525
+ !c && !s.topLink || c !== Ie.value - 1 && (_.value = l == null ? void 0 : l.elementId, k(), L.value.splice(c + 1));
1526
+ }, Qe = I(
1527
+ () => s.chooseType.includes("role") && s.chooseType.length === 1
1528
+ ), Xe = I(
1529
+ () => s.chooseType.includes("post") && s.chooseType.length === 1
1530
+ ), pe = S(s.tabs[0]), Y = S(s.tabs[0]);
1531
+ Ne(() => (Y.value = Qe.value ? s.tabs[1] : Xe.value ? s.tabs[2] : pe.value, Y.value));
1532
+ const J = () => {
1533
+ h.user.clear(), h.role.clear(), h.post.clear(), h.group.clear(), h.trans = [], ve.value = [], ye.value = [], pe.value = s.tabs[0], Y.value = s.tabs[0], o.value = "", _.value = s.orgPid, L.value.splice(1, L.value.length), h.single = "", u.value = [];
1534
+ }, ze = () => {
1535
+ var l;
1536
+ re(
1537
+ "ok",
1538
+ Q.cloneDeep({
1539
+ // 所有选项、部门、人员、角色分别列出
1540
+ ...M.value,
1541
+ // 排序后的列表
1542
+ sort: u.value
1543
+ })
1544
+ ), re("update:modelValue", Q.cloneDeep(((l = M.value) == null ? void 0 : l.list) || [])), re("update:show", !1), J();
1545
+ }, Ve = () => {
1546
+ re("update:show", !1), J();
1547
+ };
1548
+ v({ handClear: J, handRomeve: Ee, handDelete: Z });
1549
+ const qe = I(() => {
1550
+ const l = ae.value;
1551
+ return !!((l.includes("post") || l.includes("role")) && l.length > 1);
1552
+ }), Ze = I(() => [
1553
+ { name: "group", label: "组织架构" },
1554
+ { name: "role", label: "角色列表" },
1555
+ { name: "post", label: "岗位列表" }
1556
+ ].filter((l) => s.tabs.includes(l.name))), Fe = I(
1557
+ () => `${typeof s.height == "string" ? Number.parseInt(s.height) : s.height}px`
1558
+ ), Ae = () => {
1559
+ s.multiple || (h.post.clear(), h.role.clear(), h.user.clear(), h.group.clear(), h.single = "");
1560
+ }, Ke = I(() => M.value.groups.list.concat(M.value.user.list)), Ye = (l, c) => {
1561
+ s.multiple || (h.single = "");
1562
+ const y = s.multiple ? l : [l];
1563
+ if (!y.length) {
1564
+ h.group.clear(), h.user.clear();
1565
+ return;
1566
+ }
1567
+ Ae(), c.forEach((m) => {
1568
+ y != null && y.includes(m[r.value.id]) ? K(m) : Z(m);
1569
+ });
1570
+ }, ve = S([]), Je = (l, c) => {
1571
+ s.multiple || (h.single = "");
1572
+ const y = s.multiple ? l : [l];
1573
+ if (!y.length) {
1574
+ h.role.clear();
1575
+ return;
1576
+ }
1577
+ Ae(), c.forEach((m) => {
1578
+ y != null && y.includes(m[r.value.id]) ? K(m) : Z(m);
1579
+ });
1580
+ };
1581
+ X(
1582
+ () => M.value.role.len,
1583
+ (l) => {
1584
+ ve.value = Q.cloneDeep(M.value.role.list);
1585
+ }
1586
+ );
1587
+ const ye = S([]), et = (l, c) => {
1588
+ s.multiple || (h.single = "");
1589
+ const y = s.multiple ? l : [l];
1590
+ if (!y.length) {
1591
+ h.post.clear();
1592
+ return;
1593
+ }
1594
+ Ae(), c.forEach((m) => {
1595
+ y != null && y.includes(m[r.value.id]) ? K(m) : Z(m);
1596
+ });
1597
+ };
1598
+ return X(
1599
+ () => M.value.post.len,
1600
+ (l) => {
1601
+ ye.value = Q.cloneDeep(M.value.post.list);
1602
+ }
1603
+ ), X(
1604
+ () => o.value,
1605
+ (l) => {
1606
+ se("");
1607
+ }
1608
+ ), (l, c) => {
1609
+ const y = _e("el-tab-pane"), m = _e("el-tabs");
1610
+ return a(), b(x(ot), {
1611
+ modelValue: fe.value,
1612
+ "onUpdate:modelValue": c[2] || (c[2] = (O) => fe.value = O),
1613
+ title: l.title,
1614
+ "destroy-on-close": "",
1615
+ "append-to-body": "",
1616
+ "close-on-click-modal": !1,
1617
+ "close-on-click-escape": !1,
1618
+ draggable: "",
1619
+ "align-center": "",
1620
+ width: typeof l.width == "string" ? l.width : `${l.width}%`,
1621
+ class: "p_p_picker-dialog",
1622
+ "modal-class": "p_p_picker-dialog-modal-user",
1623
+ onClose: Ve
1624
+ }, {
1625
+ footer: B(() => [
1626
+ i("span", _s, [
1627
+ w(x(me), {
1628
+ onClick: oe(Ve, ["stop"])
1629
+ }, {
1630
+ default: B(() => [
1631
+ z("取消")
1632
+ ]),
1633
+ _: 1
1634
+ /* STABLE */
1635
+ }),
1636
+ w(x(me), {
1637
+ type: "primary",
1638
+ onClick: oe(ze, ["stop"])
1639
+ }, {
1640
+ default: B(() => [
1641
+ z(" 确定 ")
1642
+ ]),
1643
+ _: 1
1644
+ /* STABLE */
1645
+ })
1646
+ ])
1647
+ ]),
1648
+ default: B(() => [
1649
+ i(
1650
+ "div",
1651
+ {
1652
+ class: "dep-use-picker",
1653
+ style: $e({ height: Fe.value })
1654
+ },
1655
+ [
1656
+ i("div", us, [
1657
+ i("div", null, [
1658
+ w(x(nt), {
1659
+ modelValue: o.value,
1660
+ "onUpdate:modelValue": c[0] || (c[0] = (O) => o.value = O),
1661
+ clearable: "",
1662
+ placeholder: l.placeholder,
1663
+ "suffix-icon": vt
1664
+ }, null, 8, ["modelValue", "placeholder"]),
1665
+ qe.value ? (a(), b(m, {
1666
+ key: 0,
1667
+ modelValue: pe.value,
1668
+ "onUpdate:modelValue": c[1] || (c[1] = (O) => pe.value = O),
1669
+ class: "ik-picker-tab"
1670
+ }, {
1671
+ default: B(() => [
1672
+ (a(!0), d(
1673
+ E,
1674
+ null,
1675
+ W(Ze.value, (O) => (a(), b(y, {
1676
+ label: O.label,
1677
+ name: O.name,
1678
+ key: O.label
1679
+ }, null, 8, ["label", "name"]))),
1680
+ 128
1681
+ /* KEYED_FRAGMENT */
1682
+ ))
1683
+ ]),
1684
+ _: 1
1685
+ /* STABLE */
1686
+ }, 8, ["modelValue"])) : g("v-if", !0)
1687
+ ]),
1688
+ g(" 过滤 "),
1689
+ Y.value === x(ne).group ? (a(), d("div", cs, [
1690
+ g(" 面包屑 全选 "),
1691
+ w(x(it), {
1692
+ separator: ">",
1693
+ class: ie(["banner", { "top-unlink": !l.topLink }])
1694
+ }, {
1695
+ default: B(() => [
1696
+ Ie.value ? (a(!0), d(
1697
+ E,
1698
+ { key: 0 },
1699
+ W(x(L), (O, j) => (a(), b(x(rt), {
1700
+ key: O[r.value.id],
1701
+ onClick: oe((ge) => Ge(O, j), ["stop"])
1702
+ }, {
1703
+ default: B(() => [
1704
+ z(
1705
+ P(O[r.value.name]),
1706
+ 1
1707
+ /* TEXT */
1708
+ )
1709
+ ]),
1710
+ _: 2
1711
+ /* DYNAMIC */
1712
+ }, 1032, ["onClick"]))),
1713
+ 128
1714
+ /* KEYED_FRAGMENT */
1715
+ )) : g("v-if", !0)
1716
+ ]),
1717
+ _: 1
1718
+ /* STABLE */
1719
+ }, 8, ["class"])
1720
+ ])) : g("v-if", !0),
1721
+ g(" 左侧列表 "),
1722
+ g(" 组织架构 "),
1723
+ Y.value === x(ne).group ? de((a(), b(kl, {
1724
+ key: 1,
1725
+ fixPropOpt: r.value,
1726
+ fixTypeOpt: t.value,
1727
+ list: A.value,
1728
+ max: l.max,
1729
+ multiple: l.multiple,
1730
+ "hand-list": Ke.value,
1731
+ imageBaseUrl: s.imageBaseUrl,
1732
+ emptyText: s.emptyText,
1733
+ children: s.children,
1734
+ "choose-type": ae.value,
1735
+ onHandChild: je,
1736
+ onChange: Ye
1737
+ }, null, 8, ["fixPropOpt", "fixTypeOpt", "list", "max", "multiple", "hand-list", "imageBaseUrl", "emptyText", "children", "choose-type"])), [
1738
+ [x(xe), V.value]
1739
+ ]) : Y.value === x(ne).role ? (a(), d(
1740
+ E,
1741
+ { key: 2 },
1742
+ [
1743
+ g(" 角色 "),
1744
+ de(w(ns, {
1745
+ fixPropOpt: r.value,
1746
+ fixTypeOpt: t.value,
1747
+ list: F.value,
1748
+ max: l.max,
1749
+ multiple: l.multiple,
1750
+ "hand-list": ve.value,
1751
+ imageBaseUrl: s.imageBaseUrl,
1752
+ emptyText: s.emptyText,
1753
+ "choose-type": ae.value,
1754
+ onChange: Je
1755
+ }, null, 8, ["fixPropOpt", "fixTypeOpt", "list", "max", "multiple", "hand-list", "imageBaseUrl", "emptyText", "choose-type"]), [
1756
+ [x(xe), V.value]
1757
+ ])
1758
+ ],
1759
+ 64
1760
+ /* STABLE_FRAGMENT */
1761
+ )) : Y.value === x(ne).post ? (a(), d(
1762
+ E,
1763
+ { key: 3 },
1764
+ [
1765
+ g(" 岗位 "),
1766
+ de(w(Ml, {
1767
+ fixPropOpt: r.value,
1768
+ fixTypeOpt: t.value,
1769
+ list: D.value,
1770
+ max: l.max,
1771
+ multiple: l.multiple,
1772
+ "hand-list": ye.value,
1773
+ imageBaseUrl: s.imageBaseUrl,
1774
+ emptyText: s.emptyText,
1775
+ "choose-type": ae.value,
1776
+ onChange: et
1777
+ }, null, 8, ["fixPropOpt", "fixTypeOpt", "list", "max", "multiple", "hand-list", "imageBaseUrl", "emptyText", "choose-type"]), [
1778
+ [x(xe), V.value]
1779
+ ])
1780
+ ],
1781
+ 64
1782
+ /* STABLE_FRAGMENT */
1783
+ )) : g("v-if", !0)
1784
+ ]),
1785
+ fs,
1786
+ g(" 已选列表 "),
1787
+ i("div", hs, [
1788
+ i("div", As, [
1789
+ vs,
1790
+ w(x(me), {
1791
+ type: "primary",
1792
+ link: "",
1793
+ onClick: oe(J, ["stop"])
1794
+ }, {
1795
+ default: B(() => [
1796
+ z("清空")
1797
+ ]),
1798
+ _: 1
1799
+ /* STABLE */
1800
+ })
1801
+ ]),
1802
+ i("ul", ys, [
1803
+ (a(!0), d(
1804
+ E,
1805
+ null,
1806
+ W(u.value, (O) => (a(), d("li", gs, [
1807
+ i("div", ms, [
1808
+ g(" icon前缀 "),
1809
+ i("div", xs, [
1810
+ w(R, {
1811
+ fixTypeOpt: t.value,
1812
+ fixPropOpt: r.value,
1813
+ element: O,
1814
+ imageBaseUrl: s.imageBaseUrl
1815
+ }, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
1816
+ ]),
1817
+ i(
1818
+ "span",
1819
+ null,
1820
+ P(O[r.value.name]),
1821
+ 1
1822
+ /* TEXT */
1823
+ )
1824
+ ]),
1825
+ de(w(Pt, {
1826
+ class: "close",
1827
+ onClick: oe((j) => Ee(O), ["stop"])
1828
+ }, null, 8, ["onClick"]), [
1829
+ [st, !(O != null && O.readonly)]
1830
+ ])
1831
+ ]))),
1832
+ 256
1833
+ /* UNKEYED_FRAGMENT */
1834
+ ))
1835
+ ])
1836
+ ])
1837
+ ],
1838
+ 4
1839
+ /* STYLE */
1840
+ )
1841
+ ]),
1842
+ _: 1
1843
+ /* STABLE */
1844
+ }, 8, ["modelValue", "title", "width"]);
1845
+ };
1846
+ }
1847
+ });
1848
+ const Ps = Me(Os), ks = (p) => (ue("data-v-20b35d3a"), p = p(), ce(), p), Ts = {
1849
+ class: "approveProcess",
1850
+ id: "approveProcess"
1851
+ }, Ls = { class: "node" }, bs = { class: "nodeBg" }, Cs = { class: "info" }, Bs = { class: "explain" }, Us = { key: 0 }, ws = { key: 0 }, Ss = { key: 1 }, Es = { key: 0 }, Is = { key: 1 }, Vs = { class: "personlist" }, Fs = { style: { width: "58px" } }, Ds = { class: "avatar" }, Ns = ["src"], Rs = {
1852
+ key: 1,
1853
+ class: "nodeBg"
1854
+ }, $s = ["onClick"], Ms = ["title"], Ws = {
1855
+ key: 0,
1856
+ class: "sign"
1857
+ }, Hs = { key: 0 }, js = ["onClick"], Gs = {
1858
+ key: 0,
1859
+ class: "required"
1860
+ }, Qs = /* @__PURE__ */ ks(() => /* @__PURE__ */ i(
1861
+ "i",
1862
+ { class: "ikapprove ikapprove-xinzeng" },
1863
+ null,
1864
+ -1
1865
+ /* HOISTED */
1866
+ )), Xs = {
1867
+ name: "IkApprovalProcess"
1868
+ }, zs = /* @__PURE__ */ le({
1869
+ ...Xs,
1870
+ props: {
1871
+ // 选人组件请求地址
1872
+ pickerUrl: {
1873
+ type: String,
1874
+ default: ""
1875
+ },
1876
+ //文件访问地址
1877
+ loadUrl: {
1878
+ type: String,
1879
+ default: ""
1880
+ },
1881
+ // 数据数组
1882
+ dataList: {
1883
+ type: Array,
1884
+ default: () => []
1885
+ },
1886
+ // 节点类型
1887
+ defaultNodeType: {
1888
+ type: Object,
1889
+ default: () => ({})
1890
+ },
1891
+ // 字段映射
1892
+ defaultFieldMap: {
1893
+ type: Object,
1894
+ default: () => ({})
1895
+ },
1896
+ // 没有审批人时的审批状态
1897
+ statusWithoutApprover: {
1898
+ type: Object,
1899
+ default: () => ({})
1900
+ }
1901
+ },
1902
+ setup(p, { expose: v }) {
1903
+ const e = p, s = ke.local.getItem("token") || "Bearer 841b7a7b0d9c4021b1655192c28ac61b", o = Oe({
1904
+ nodeType: {
1905
+ 发起人节点: "INITIATOR",
1906
+ 审批节点: "APPROVE",
1907
+ 抄送节点: "CARBON_COPY",
1908
+ 办理节点: "DISPOSE",
1909
+ 分支节点: "BRANCH",
1910
+ 条件节点: "CONDITION",
1911
+ 结束节点: "END",
1912
+ ...e.defaultNodeType
1913
+ },
1914
+ statusWithoutApprover: {
1915
+ 自动通过: "AUTO_PASS",
1916
+ 自动拒绝: "AUTO_REJECT",
1917
+ 自动转交管理员: "TRANSMIT_TO_MANAGER",
1918
+ 指定人员审批: "SPECIFIED_USER",
1919
+ ...e.statusWithoutApprover
1920
+ },
1921
+ defaultFile: {
1922
+ id: "id",
1923
+ // id
1924
+ nodeId: "sortOrder",
1925
+ // 排序值
1926
+ nodeType: "type",
1927
+ // 节点类型
1928
+ nodeTypeName: "name",
1929
+ // 节点名称
1930
+ approveType: "approveType",
1931
+ // 审批对象类别名称
1932
+ multiExecutorType: "multiExecutorType",
1933
+ // 多人审批方式类型
1934
+ approveTypeName: "approveTypeName",
1935
+ // 审批对象类别名称
1936
+ multiExecutorTypeName: "multiExecutorTypeName",
1937
+ // 多人审批方式名称
1938
+ approvalCategory: "approvalCategory",
1939
+ // 审批类型
1940
+ isShowAdd: "initiatorSpecify",
1941
+ //是否显示添加按钮
1942
+ isShowAddCopy: "initiatorSpecifyCarbonCopy",
1943
+ // 是否显示抄送人添加按钮
1944
+ executorEmpty: "executorEmpty",
1945
+ //实际审批人是否为空
1946
+ executorEmptyStrategy: "executorEmptyStrategy",
1947
+ //为空时的审批类型
1948
+ reserveExecutorUsers: "reserveExecutorUsers",
1949
+ //executorEmptyStrategy为指定审批人时
1950
+ approvePersonList: "executorUsers",
1951
+ // 审批执行者用户信息
1952
+ initiatorSpecifiedScope: "initiatorSpecifiedScope",
1953
+ //默认自选的人
1954
+ initiatorSpecifiedScopeType: "initiatorSpecifiedScopeType",
1955
+ //自选方式
1956
+ singleApproval: "singleApproval",
1957
+ //是否单选
1958
+ ...e.defaultFieldMap
1959
+ },
1960
+ multiple: !1,
1961
+ chooseType: []
1962
+ }), _ = async (A) => {
1963
+ var r;
1964
+ if (A.multiple = !A[o.defaultFile.singleApproval] || A[o.defaultFile.isShowAddCopy], A.handList = A[o.defaultFile.approvePersonList] ? A[o.defaultFile.approvePersonList] : [], A[o.defaultFile.nodeType] === o.nodeType.抄送节点)
1965
+ A.handList.forEach((t) => {
1966
+ t.elementName || (t.elementName = t.userName, t.elementId = t.userId, t.avatar = t.userAvatar), t.elementType = "USER", t.disabled = !0;
1967
+ }), A.chooseType = ["user"], A.userList = [], A.depList = [];
1968
+ else
1969
+ switch (A[o.defaultFile.initiatorSpecifiedScopeType]) {
1970
+ case "ALL":
1971
+ A.chooseType = ["dep_user"], A.userList = [], A.depList = [];
1972
+ break;
1973
+ default:
1974
+ A.chooseType = ["user"], A.userList = A.userList ? A.userList : (r = A[o.defaultFile.initiatorSpecifiedScope]) == null ? void 0 : r.map((t) => ({
1975
+ ...t,
1976
+ elementName: (t == null ? void 0 : t.executorName) || (t == null ? void 0 : t.userName),
1977
+ elementId: (t == null ? void 0 : t.executorId) || (t == null ? void 0 : t.userId),
1978
+ avatar: ((t == null ? void 0 : t.executorAvatar) || (t == null ? void 0 : t.userAvatar)) && T((t == null ? void 0 : t.executorAvatar) || (t == null ? void 0 : t.userAvatar)) || "",
1979
+ elementType: "USER"
1980
+ }));
1981
+ }
1982
+ Pe(() => {
1983
+ A.isShow = !0;
1984
+ });
1985
+ }, T = (A) => {
1986
+ let r = "";
1987
+ return A.includes("http") || A.includes("https") ? r = A : r = e.loadUrl ? `${e.loadUrl}${A}` : `${location.origin + location.pathname}server/oss/download?fileUrl=${A}`, r;
1988
+ }, C = (A) => {
1989
+ let r = "";
1990
+ switch (A) {
1991
+ case o.nodeType.审批节点:
1992
+ r = "ikapprove-shenpi";
1993
+ break;
1994
+ case o.nodeType.办理节点:
1995
+ r = "ikapprove-bianji";
1996
+ break;
1997
+ case o.nodeType.抄送节点:
1998
+ r = "ikapprove-chaosong";
1999
+ break;
2000
+ default:
2001
+ r = "ikapprove-ziyuan";
2002
+ }
2003
+ return `ikapprove ${r}`;
2004
+ }, F = (A, r) => {
2005
+ e.dataList[r].handList = A.list;
2006
+ let u = (e.dataList[r][o.defaultFile.approvePersonList] || []).filter((f) => !f.canDele), n = A.list.map((f) => ({
2007
+ ...f,
2008
+ userName: f.elementName,
2009
+ userAvatar: f.avatar,
2010
+ canDele: !0
2011
+ }));
2012
+ e.dataList[r][o.defaultFile.approvePersonList] = u.concat(n);
2013
+ }, D = (A, r) => {
2014
+ e.dataList[A][o.defaultFile.approvePersonList].splice(r, 1), e.dataList[A].handList = e.dataList[A][o.defaultFile.approvePersonList];
2015
+ };
2016
+ return v({ requiredVerification: () => {
2017
+ let A = !0;
2018
+ return e.dataList.forEach((r) => {
2019
+ var t;
2020
+ r.required = !1, r[o.defaultFile.nodeType] == o.nodeType.审批节点 && r[o.defaultFile.isShowAdd] && ((t = r[o.defaultFile.approvePersonList]) != null && t.length || (A = !1, r.required = !0));
2021
+ }), A;
2022
+ } }), (A, r) => (a(), d("div", Ts, [
2023
+ (a(!0), d(
2024
+ E,
2025
+ null,
2026
+ W(e.dataList, (t, u) => {
2027
+ var n, f, L, U;
2028
+ return a(), d("div", {
2029
+ class: "content",
2030
+ key: t.id
2031
+ }, [
2032
+ g(" 审批节点类型 "),
2033
+ i("div", Ls, [
2034
+ i("span", bs, [
2035
+ i(
2036
+ "i",
2037
+ {
2038
+ class: ie(C(t[o.defaultFile.nodeType]))
2039
+ },
2040
+ null,
2041
+ 2
2042
+ /* CLASS */
2043
+ )
2044
+ ]),
2045
+ i(
2046
+ "div",
2047
+ {
2048
+ class: "line",
2049
+ style: $e({
2050
+ "border-left": u === e.dataList.length - 1 ? "" : "2px solid var(--el-border-color)"
2051
+ })
2052
+ },
2053
+ null,
2054
+ 4
2055
+ /* STYLE */
2056
+ )
2057
+ ]),
2058
+ i("div", Cs, [
2059
+ i("div", null, [
2060
+ i(
2061
+ "div",
2062
+ null,
2063
+ P(t[o.defaultFile.nodeTypeName]),
2064
+ 1
2065
+ /* TEXT */
2066
+ ),
2067
+ i("div", Bs, [
2068
+ g(" 抄送节点 "),
2069
+ t[o.defaultFile.nodeType] == o.nodeType.抄送节点 ? (a(), d("span", Us, [
2070
+ t[o.defaultFile.approvePersonList].length ? (a(), d(
2071
+ "span",
2072
+ ws,
2073
+ P(`抄送${t[o.defaultFile.approvePersonList].length}人`),
2074
+ 1
2075
+ /* TEXT */
2076
+ )) : g("v-if", !0),
2077
+ t[o.defaultFile.isShowAdd] ? (a(), d("span", Ss, ",可添加抄送人")) : g("v-if", !0)
2078
+ ])) : (a(), d(
2079
+ E,
2080
+ { key: 1 },
2081
+ [
2082
+ g(" 审批节点 "),
2083
+ i("span", null, [
2084
+ g(" 存在审批人时 "),
2085
+ (n = t[o.defaultFile.approvePersonList]) != null && n.length ? (a(), d(
2086
+ "span",
2087
+ Es,
2088
+ P(((f = t[o.defaultFile.approvePersonList]) == null ? void 0 : f.length) == 1 ? "1人审批" : `${(L = t[o.defaultFile.approvePersonList]) == null ? void 0 : L.length}人${t[o.defaultFile.multiExecutorTypeName]}`),
2089
+ 1
2090
+ /* TEXT */
2091
+ )) : [o.statusWithoutApprover.自动通过, o.statusWithoutApprover.自动拒绝].includes(t[o.defaultFile.approveType]) ? (a(), d(
2092
+ "span",
2093
+ Is,
2094
+ P(t[o.defaultFile.approveTypeName]),
2095
+ 1
2096
+ /* TEXT */
2097
+ )) : t[o.defaultFile.executorEmptyStrategy] && t[o.defaultFile.executorEmpty] ? (a(), d(
2098
+ E,
2099
+ { key: 2 },
2100
+ [
2101
+ g(" 没有审批人,并且有指定默认审批方式 "),
2102
+ i("span", null, [
2103
+ z(" 未找到审批人,"),
2104
+ i(
2105
+ "span",
2106
+ null,
2107
+ P(t[o.defaultFile.executorEmptyStrategy] == o.statusWithoutApprover.自动通过 ? "将自动通过" : t[o.defaultFile.executorEmptyStrategy] == o.statusWithoutApprover.自动转交管理员 ? "自动转交给管理员" : t[o.defaultFile.executorEmptyStrategy] == o.statusWithoutApprover.指定人员审批 ? `将自动转给指定成员${t[o.defaultFile.reserveExecutorUsers] && t[o.defaultFile.reserveExecutorUsers][0].userName}` : ""),
2108
+ 1
2109
+ /* TEXT */
2110
+ )
2111
+ ])
2112
+ ],
2113
+ 2112
2114
+ /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
2115
+ )) : (a(), d(
2116
+ "span",
2117
+ {
2118
+ key: 3,
2119
+ class: ie(t.required ? "warn" : "")
2120
+ },
2121
+ "请选择" + P(t[o.defaultFile.nodeType] === o.nodeType.办理节点 ? "办理人" : "审批人"),
2122
+ 3
2123
+ /* TEXT, CLASS */
2124
+ ))
2125
+ ])
2126
+ ],
2127
+ 2112
2128
+ /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
2129
+ ))
2130
+ ])
2131
+ ]),
2132
+ i("div", Vs, [
2133
+ (a(!0), d(
2134
+ E,
2135
+ null,
2136
+ W(t[o.defaultFile.approvePersonList], (k, h) => {
2137
+ var $;
2138
+ return a(), d("div", {
2139
+ class: "list",
2140
+ key: k.userId
2141
+ }, [
2142
+ i("div", Fs, [
2143
+ i("div", Ds, [
2144
+ k.userAvatar ? (a(), d("img", {
2145
+ key: 0,
2146
+ src: T(k.userAvatar),
2147
+ alt: ""
2148
+ }, null, 8, Ns)) : (a(), d("div", Rs, [
2149
+ i(
2150
+ "span",
2151
+ null,
2152
+ P(k.userName.slice(-2)),
2153
+ 1
2154
+ /* TEXT */
2155
+ )
2156
+ ])),
2157
+ k.canDele ? (a(), d("i", {
2158
+ key: 2,
2159
+ onClick: (ee) => D(u, h),
2160
+ class: "ikapprove ikapprove-shanchu1"
2161
+ }, null, 8, $s)) : g("v-if", !0)
2162
+ ]),
2163
+ i("div", {
2164
+ class: "name",
2165
+ title: k.userName
2166
+ }, P(k.userName), 9, Ms)
2167
+ ]),
2168
+ g(" 显示添加人按钮,不是单选且已选中一个人的情况,显示图标 "),
2169
+ t[o.defaultFile.isShowAdd] && !(t[o.defaultFile.singleApproval] && (($ = t[o.defaultFile.approvePersonList]) == null ? void 0 : $.length) == 1) ? (a(), d("span", Ws, [
2170
+ g(" 抄送默认 "),
2171
+ t[o.defaultFile.nodeType] == o.nodeType.抄送节点 ? (a(), d("span", Hs, "+")) : (a(), d(
2172
+ E,
2173
+ { key: 1 },
2174
+ [
2175
+ g(" 审批 "),
2176
+ i(
2177
+ "span",
2178
+ null,
2179
+ P(t[o.defaultFile.multiExecutorType] == "ANY" ? "/" : t[o.defaultFile.multiExecutorType] == "ALL" ? "+" : ">"),
2180
+ 1
2181
+ /* TEXT */
2182
+ )
2183
+ ],
2184
+ 2112
2185
+ /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
2186
+ ))
2187
+ ])) : g("v-if", !0)
2188
+ ]);
2189
+ }),
2190
+ 128
2191
+ /* KEYED_FRAGMENT */
2192
+ )),
2193
+ g(" 显示添加人按钮,不是单选且已选中一个人的情况,显示按钮 "),
2194
+ t[o.defaultFile.isShowAdd] && !(t[o.defaultFile.singleApproval] && ((U = t[o.defaultFile.approvePersonList]) == null ? void 0 : U.length) == 1) || t[o.defaultFile.isShowAddCopy] ? (a(), d("span", {
2195
+ key: 0,
2196
+ class: "addBg",
2197
+ onClick: (k) => _(t)
2198
+ }, [
2199
+ t[o.defaultFile.nodeType] == o.nodeType.审批节点 ? (a(), d("span", Gs)) : g("v-if", !0),
2200
+ Qs
2201
+ ], 8, js)) : g("v-if", !0),
2202
+ g(" 添加人组件 "),
2203
+ w(x(Ps), {
2204
+ modelValue: t.handList,
2205
+ "onUpdate:modelValue": (k) => t.handList = k,
2206
+ show: t.isShow,
2207
+ "onUpdate:show": (k) => t.isShow = k,
2208
+ onOk: (k) => F(k, u),
2209
+ multiple: t.multiple,
2210
+ "type-option": {
2211
+ dep: "DEPT",
2212
+ user: "USER",
2213
+ role: "ROLE",
2214
+ post: "POST"
2215
+ },
2216
+ api: {
2217
+ methods: "post",
2218
+ url: p.pickerUrl,
2219
+ headers: {
2220
+ "Content-Type": "application/json;charset=UTF-8",
2221
+ Authorization: x(s),
2222
+ "X-Tenant": "sys"
2223
+ }
2224
+ },
2225
+ "dep-list": t.depList,
2226
+ "user-list": t.userList,
2227
+ "organization-list": t.organizationList,
2228
+ "prop-option": {
2229
+ name: "elementName",
2230
+ id: "elementId",
2231
+ type: "elementType",
2232
+ avatar: "avatar"
2233
+ },
2234
+ chooseType: t.chooseType
2235
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "show", "onUpdate:show", "onOk", "multiple", "api", "dep-list", "user-list", "organization-list", "chooseType"])
2236
+ ])
2237
+ ])
2238
+ ]);
2239
+ }),
2240
+ 128
2241
+ /* KEYED_FRAGMENT */
2242
+ ))
2243
+ ]));
2244
+ }
2245
+ });
2246
+ const qs = /* @__PURE__ */ H(zs, [["__scopeId", "data-v-20b35d3a"]]), ea = Me(qs);
2247
+ export {
2248
+ ea as IKApprovalProcess,
2249
+ ea as default
2250
+ };