iking-web-ui-pro 0.0.4 → 0.0.6

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.
@@ -1,215 +1,249 @@
1
- import { openBlock as o, createElementBlock as d, createElementVNode as h, defineComponent as Pe, computed as O, ref as A, Fragment as x, createCommentVNode as c, createBlock as b, unref as f, withCtx as L, createTextVNode as B, renderList as q, createVNode as $, toDisplayString as C, useCssVars as vt, watch as ae, toRef as ht, reactive as Ue, nextTick as Fe, watchEffect as Ke, withModifiers as Z, normalizeStyle as ie, normalizeClass as _e, withDirectives as he, vShow as Xe, Transition as ft, pushScopeId as yt, popScopeId as gt } from "vue";
2
- import { _ as K, ikStore as De, ikEvent as _t } from "iking-utils";
3
- import { ElCheckbox as ee, ElCheckboxGroup as Be, ElRadioGroup as $e, ElRadio as Me, ElDialog as mt, ElButton as se, ElInput as kt, ElRadioButton as Lt, ElBreadcrumb as bt, ElBreadcrumbItem as $t, ElAvatar as Le, vLoading as Ve } from "element-plus";
4
- import Pt from "vuedraggable";
5
- import wt from "axios";
6
- const Ze = (v, k) => {
7
- if (v.install = (i) => {
8
- for (const s of [v, ...Object.values(k ?? {})])
9
- i.component(s.name, s);
10
- }, k)
11
- for (const [i, s] of Object.entries(k))
12
- v[i] = s;
13
- return v;
14
- }, G = (v, k) => {
15
- const i = v.__vccOpts || v;
16
- for (const [s, r] of k)
17
- i[s] = r;
1
+ import { openBlock as o, createElementBlock as d, createElementVNode as p, defineComponent as le, resolveComponent as xe, createBlock as E, toDisplayString as T, createCommentVNode as m, computed as V, ref as S, Fragment as B, unref as x, withCtx as b, createTextVNode as $, renderList as W, createVNode as w, normalizeClass as pe, pushScopeId as ue, popScopeId as de, useCssVars as Ye, watch as X, toRef as Je, reactive as _e, nextTick as Le, watchEffect as Ve, withModifiers as se, normalizeStyle as De, withDirectives as re, vShow as et } from "vue";
2
+ import { _ as H, ikStore as Pe, ikEvent as tt } from "iking-utils";
3
+ import { ElCheckbox as te, ElCheckboxGroup as ke, ElRadioGroup as Oe, ElRadio as Te, ElDialog as lt, ElButton as ge, ElInput as at, ElBreadcrumb as st, ElBreadcrumbItem as ot, vLoading as me } from "element-plus";
4
+ import nt from "axios";
5
+ const Ne = (i, v) => {
6
+ if (i.install = (t) => {
7
+ for (const a of [i, ...Object.values(v ?? {})])
8
+ t.component(a.name, a);
9
+ }, v)
10
+ for (const [t, a] of Object.entries(v))
11
+ i[t] = a;
18
12
  return i;
19
- }, Ct = {}, Tt = {
20
- t: "1672196428320",
13
+ }, j = (i, v) => {
14
+ const t = i.__vccOpts || i;
15
+ for (const [a, s] of v)
16
+ t[a] = s;
17
+ return t;
18
+ }, it = {}, rt = {
19
+ t: "1672194715727",
21
20
  class: "icon",
22
21
  viewBox: "0 0 1024 1024",
23
22
  version: "1.1",
24
- xmlns: "http://www.w3.org/2000/svg",
25
- "p-id": "3618",
26
- width: "200",
27
- height: "200"
28
- }, St = /* @__PURE__ */ h(
23
+ "p-id": "2667"
24
+ }, pt = /* @__PURE__ */ p(
29
25
  "path",
30
26
  {
31
- d: "M384 250V134a70 70 0 0 0-70-70H134a70 70 0 0 0-70 70v116a70 70 0 0 0 70 70h180a70 70 0 0 0 70-70z m-80-10H144v-96h160zM890 704H710a70 70 0 0 0-70 70v116a70 70 0 0 0 70 70h180a70 70 0 0 0 70-70V774a70 70 0 0 0-70-70z m-10 176H720v-96h160zM890 384H710a70 70 0 0 0-70 70v116a70 70 0 0 0 70 70h180a70 70 0 0 0 70-70V454a70 70 0 0 0-70-70z m-10 176H720v-96h160zM536 504H264v-80a40 40 0 0 0-40-40 40 40 0 0 0-40 40v432a40 40 0 0 0 40 40h312a40 40 0 0 0 40-40 40 40 0 0 0-40-40H264V584h272a40 40 0 0 0 40-40 40 40 0 0 0-40-40z",
32
- "p-id": "3619",
33
- "data-spm-anchor-id": "a313x.7781069.0.i2",
34
- class: "selected"
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"
35
30
  },
36
31
  null,
37
32
  -1
38
33
  /* HOISTED */
39
- ), xt = [
40
- St
41
- ];
42
- function At(v, k) {
43
- return o(), d("svg", Tt, xt);
44
- }
45
- const Ee = /* @__PURE__ */ G(Ct, [["render", At]]), Ot = {}, It = {
46
- t: "1672197639916",
47
- class: "icon",
48
- viewBox: "0 0 1024 1024",
49
- version: "1.1",
50
- xmlns: "http://www.w3.org/2000/svg",
51
- "p-id": "19012"
52
- }, zt = /* @__PURE__ */ h(
34
+ ), ut = /* @__PURE__ */ p(
53
35
  "path",
54
36
  {
55
- d: "M863.1 255.1H551.3c-25.1 0-49.2-9.8-67.1-27.4l-75-73.4c-17.9-17.5-42-27.4-67.1-27.4H161c-53 0-96 43-96 96v512.8c0 53 43 96 96 96h702c53 0 96-43 96-96V351.1c0.1-53-42.9-96-95.9-96z m-31 161.1c0 17.7-14.3 32-32 32H224c-17.7 0-32-14.3-32-32v-0.1c0-17.7 14.3-32 32-32h576.1c17.7 0 32 14.3 32 32v0.1z",
56
- "p-id": "19013"
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"
57
40
  },
58
41
  null,
59
42
  -1
60
43
  /* HOISTED */
61
- ), Vt = [
62
- zt
44
+ ), dt = [
45
+ pt,
46
+ ut
63
47
  ];
64
- function Et(v, k) {
65
- return o(), d("svg", It, Vt);
48
+ function ct(i, v) {
49
+ return o(), d("svg", rt, dt);
66
50
  }
67
- const fe = /* @__PURE__ */ G(Ot, [["render", Et]]), Ut = {}, Ft = {
68
- t: "1672197222005",
51
+ const At = /* @__PURE__ */ j(it, [["render", ct]]), ht = {}, ft = {
52
+ t: "1710907270798",
69
53
  class: "icon",
70
54
  viewBox: "0 0 1024 1024",
71
55
  version: "1.1",
72
56
  xmlns: "http://www.w3.org/2000/svg",
73
- "p-id": "14755"
74
- }, Nt = /* @__PURE__ */ h(
57
+ "p-id": "8420",
58
+ width: "200",
59
+ height: "200"
60
+ }, vt = /* @__PURE__ */ p(
75
61
  "path",
76
62
  {
77
- d: "M959.68 921.024c-15.232-181.696-139.648-331.968-307.84-386.624 70.464-45.632 117.248-124.48 117.248-214.464C769.152 178.624 654.208 64 512.512 64 370.752 64 255.808 178.624 255.808 319.936c0 89.984 46.784 168.832 117.248 214.528-168.192 54.592-292.544 204.864-307.84 386.56-0.192 3.456-0.64 5.44 0 10.176C66.496 947.2 80.64 960 96.704 960c17.92 0 32.064-14.656 32.064-32 16.704-197.76 182.272-351.936 383.744-351.936 201.408 0 366.976 154.176 383.68 351.936 0 17.344 14.144 32 32.064 32 16.064 0 30.208-12.8 31.424-28.8C960.32 926.464 959.936 924.416 959.68 921.024zM320 319.936C320 213.952 406.208 128 512.512 128s192.448 85.952 192.448 191.936c0 106.048-86.144 192-192.448 192S320 425.984 320 319.936z",
78
- "p-id": "14756"
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"
79
66
  },
80
67
  null,
81
68
  -1
82
69
  /* HOISTED */
83
- ), Dt = [
84
- Nt
70
+ ), yt = /* @__PURE__ */ p(
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
+ ), gt = [
81
+ vt,
82
+ yt
85
83
  ];
86
- function Bt(v, k) {
87
- return o(), d("svg", Ft, Dt);
84
+ function mt(i, v) {
85
+ return o(), d("svg", ft, gt);
88
86
  }
89
- const be = /* @__PURE__ */ G(Ut, [["render", Bt]]), Mt = {}, Rt = {
90
- t: "1672194715727",
87
+ const xt = /* @__PURE__ */ j(ht, [["render", mt]]), _t = {}, Lt = {
88
+ t: "1710904463698",
91
89
  class: "icon",
92
90
  viewBox: "0 0 1024 1024",
93
91
  version: "1.1",
94
- "p-id": "2667"
95
- }, Ht = /* @__PURE__ */ h(
92
+ xmlns: "http://www.w3.org/2000/svg",
93
+ "p-id": "7124",
94
+ width: "200",
95
+ height: "200"
96
+ }, Pt = /* @__PURE__ */ p(
96
97
  "path",
97
98
  {
98
- d: "M809.246403 771.926938 777.737782 803.458071 924.965961 950.667831 956.476629 919.157163Z",
99
- fill: "#5D5D5D",
100
- "p-id": "2668"
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"
101
102
  },
102
103
  null,
103
104
  -1
104
105
  /* HOISTED */
105
- ), qt = /* @__PURE__ */ h(
106
+ ), kt = /* @__PURE__ */ p(
106
107
  "path",
107
108
  {
108
- 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",
109
- fill: "#5D5D5D",
110
- "p-id": "2669"
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"
111
112
  },
112
113
  null,
113
114
  -1
114
115
  /* HOISTED */
115
- ), jt = [
116
- Ht,
117
- qt
116
+ ), Ot = [
117
+ Pt,
118
+ kt
118
119
  ];
119
- function Wt(v, k) {
120
- return o(), d("svg", Rt, jt);
120
+ function Tt(i, v) {
121
+ return o(), d("svg", Lt, Ot);
121
122
  }
122
- const Gt = /* @__PURE__ */ G(Mt, [["render", Wt]]), Jt = {}, Kt = {
123
- t: "1672212880079",
123
+ const bt = /* @__PURE__ */ j(_t, [["render", Tt]]), Ct = {}, St = {
124
+ t: "1710904436436",
124
125
  class: "icon",
125
126
  viewBox: "0 0 1024 1024",
126
127
  version: "1.1",
127
128
  xmlns: "http://www.w3.org/2000/svg",
128
- "p-id": "19924"
129
- }, Xt = /* @__PURE__ */ h(
129
+ "p-id": "6989",
130
+ width: "200",
131
+ height: "200"
132
+ }, wt = /* @__PURE__ */ p(
130
133
  "path",
131
134
  {
132
- d: "M806.4 263.2l-45.6-45.6L512 467.2 263.2 217.6l-45.6 45.6L467.2 512 217.6 760.8l45.6 45.6L512 557.6l248.8 248.8 45.6-45.6L557.6 512z",
133
- "p-id": "19925"
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"
134
138
  },
135
139
  null,
136
140
  -1
137
141
  /* HOISTED */
138
- ), Yt = [
139
- Xt
140
- ];
141
- function Zt(v, k) {
142
- return o(), d("svg", Kt, Yt);
143
- }
144
- const Qt = /* @__PURE__ */ G(Jt, [["render", Zt]]), el = {}, tl = {
145
- t: "1672216076738",
146
- class: "icon",
147
- viewBox: "0 0 1024 1024",
148
- version: "1.1",
149
- xmlns: "http://www.w3.org/2000/svg",
150
- "p-id": "28376"
151
- }, ll = /* @__PURE__ */ h(
142
+ ), Ut = /* @__PURE__ */ p(
152
143
  "path",
153
144
  {
154
- d: "M501.937582 545.097053c147.891962 0 268.231366-118.534055 268.223274-264.288929 0-145.746783-120.330301-264.28994-268.222263-264.28994-147.890951 0-268.221252 118.584625-268.221252 264.28994C233.71633 426.520519 354.046631 545.097053 501.937582 545.097053zM612.471463 570.546911 411.497184 570.546911c-186.760063 0-338.664249 149.569875-338.664249 333.472733l0 19.794109c0 96.139636 149.47278 96.139636 338.664249 96.139636l200.974278 0c181.747565 0 338.694591 0 338.694591-96.139636l0-19.794109C951.164031 720.158252 799.235571 570.546911 612.471463 570.546911z",
155
- "p-id": "28377"
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"
156
148
  },
157
149
  null,
158
150
  -1
159
151
  /* HOISTED */
160
- ), al = [
161
- ll
152
+ ), Bt = [
153
+ wt,
154
+ Ut
162
155
  ];
163
- function sl(v, k) {
164
- return o(), d("svg", tl, al);
156
+ function Et(i, v) {
157
+ return o(), d("svg", St, Bt);
165
158
  }
166
- const ue = /* @__PURE__ */ G(el, [["render", sl]]), ol = {}, nl = {
167
- t: "1680231254898",
159
+ const It = /* @__PURE__ */ j(Ct, [["render", Et]]), Vt = {}, Ft = {
160
+ t: "1710904287393",
168
161
  class: "icon",
169
- viewBox: "0 0 1154 1024",
162
+ viewBox: "0 0 1024 1024",
170
163
  version: "1.1",
171
164
  xmlns: "http://www.w3.org/2000/svg",
172
- "p-id": "9556"
173
- }, rl = /* @__PURE__ */ h(
165
+ "p-id": "6854",
166
+ width: "200",
167
+ height: "200"
168
+ }, Dt = /* @__PURE__ */ p(
174
169
  "path",
175
170
  {
176
- d: "M1015.808 64.512q62.464 0 99.84 31.744t37.376 96.256l0 568.32q0 27.648-10.24 52.224t-28.16 43.008-41.984 29.184-50.688 10.752l-892.928 0q-26.624 0-50.176-10.24t-40.96-27.136-27.648-39.424-10.24-48.128l0-580.608q0-55.296 33.792-90.624t95.232-35.328l886.784 0zM287.744 253.952q-19.456 0-36.864 7.168t-30.72 19.968-20.992 30.72-7.68 38.4 7.68 37.888 20.992 30.72 30.72 20.992 36.864 7.68q21.504 0 39.424-7.68t30.72-20.992 20.48-30.72 7.68-37.888q0-41.984-27.648-69.12t-70.656-27.136zM448.512 608.256q0-19.456-7.68-37.376t-20.48-30.72-30.72-20.48-37.376-7.68l-128 0q-39.936 0-67.584 28.16t-27.648 68.096l0 4.096 0 92.16 319.488 0 0-92.16 0-4.096zM923.648 709.632q20.48 0 30.208-10.24t9.728-24.576-11.264-25.088-31.744-10.752l-305.152 0q-20.48 0-30.72 10.752t-10.24 25.088 10.24 24.576 29.696 10.24l309.248 0zM924.672 577.536q20.48 0 29.696-10.24t9.216-24.576q0-15.36-8.704-25.6t-29.184-10.24l-313.344 0q-20.48 0-29.696 10.24t-9.216 25.6q0 14.336 8.704 24.576t29.184 10.24l313.344 0zM925.696 447.488q15.36 0 26.624-10.24t11.264-24.576-11.264-23.04-26.624-8.704l-207.872 0q-15.36 0-26.112 8.704t-10.752 23.04 10.752 24.576 26.112 10.24l207.872 0z",
177
- "p-id": "9557"
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"
178
174
  },
179
175
  null,
180
176
  -1
181
177
  /* HOISTED */
182
- ), il = [
183
- rl
184
- ];
185
- function ul(v, k) {
186
- return o(), d("svg", nl, il);
187
- }
188
- const Ne = /* @__PURE__ */ G(ol, [["render", ul]]), dl = {}, pl = {
189
- t: "1698719360533",
190
- class: "icon",
191
- viewBox: "0 0 1024 1024",
192
- version: "1.1",
193
- xmlns: "http://www.w3.org/2000/svg",
194
- "p-id": "15490",
195
- width: "200",
196
- height: "200"
197
- }, cl = /* @__PURE__ */ h(
178
+ ), Nt = /* @__PURE__ */ p(
198
179
  "path",
199
180
  {
200
- d: "M960 704h-63.616v-167.392a32 32 0 0 0-32-32H544V416h160a32 32 0 0 0 32-32V96a32 32 0 0 0-32-32H320a32 32 0 0 0-32 32v288a32 32 0 0 0 32 32h160v88.608H161.984a32 32 0 0 0-32 31.968L129.792 704H64a32 32 0 0 0-32 32v192a32 32 0 0 0 32 32h192a32 32 0 0 0 32-32v-192a32 32 0 0 0-32-32H193.792l0.16-135.392H480V704h-64a32 32 0 0 0-32 32v192a32 32 0 0 0 32 32h192a32 32 0 0 0 32-32v-192a32 32 0 0 0-32-32h-64v-135.392h288.384V704H768a32 32 0 0 0-32 32v192a32 32 0 0 0 32 32h192a32 32 0 0 0 32-32v-192a32 32 0 0 0-32-32zM352 128h320v224H352V128zM224 896H96v-128h128v128z m352 0h-128v-128h128v128z m352 0h-128v-128h128v128z",
201
- "p-id": "15491"
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"
202
184
  },
203
185
  null,
204
186
  -1
205
187
  /* HOISTED */
206
- ), vl = [
207
- cl
188
+ ), Rt = [
189
+ Dt,
190
+ Nt
208
191
  ];
209
- function hl(v, k) {
210
- return o(), d("svg", pl, vl);
192
+ function Mt(i, v) {
193
+ return o(), d("svg", Ft, Rt);
211
194
  }
212
- const ye = /* @__PURE__ */ G(dl, [["render", hl]]), Qe = {
195
+ const Wt = /* @__PURE__ */ j(Vt, [["render", Mt]]), Ht = { class: "avatar" }, jt = {
196
+ key: 3,
197
+ class: "user_box"
198
+ }, Gt = {
199
+ key: 1,
200
+ class: "avatar_name"
201
+ }, Qt = /* @__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(i) {
225
+ const v = i, t = `${v.imageBaseUrl}/server/oss/download?fileUrl=` || `${location.origin}/server/oss/download?fileUrl=`, a = (s) => s ? s.startsWith("http") ? s : `${t}${s}` : "";
226
+ return (s, L) => {
227
+ const k = xe("el-avatar");
228
+ return o(), d("div", Ht, [
229
+ v.fixTypeOpt.group === i.element[v.fixPropOpt.type] ? (o(), E(Wt, { key: 0 })) : v.fixTypeOpt.role === i.element[v.fixPropOpt.type] ? (o(), E(bt, { key: 1 })) : v.fixTypeOpt.post === i.element[v.fixPropOpt.type] ? (o(), E(It, { key: 2 })) : v.fixTypeOpt.user === i.element[v.fixPropOpt.type] ? (o(), d("div", jt, [
230
+ i.element[i.fixPropOpt.avatar] ? (o(), E(k, {
231
+ key: 0,
232
+ shape: "square",
233
+ src: a(i.fixPropOpt.avatar ? i.element[i.fixPropOpt.avatar] : "")
234
+ }, null, 8, ["src"])) : (o(), d(
235
+ "div",
236
+ Gt,
237
+ T(i.element[i.fixPropOpt.name].slice(-2)),
238
+ 1
239
+ /* TEXT */
240
+ ))
241
+ ])) : m("v-if", !0)
242
+ ]);
243
+ };
244
+ }
245
+ });
246
+ const K = /* @__PURE__ */ j(Qt, [["__scopeId", "data-v-bc7cca29"]]), be = "data:image/webp;base64,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", Ce = {
213
247
  // 所有数据
214
248
  list: {
215
249
  type: Array,
@@ -236,74 +270,324 @@ const ye = /* @__PURE__ */ G(dl, [["render", hl]]), Qe = {
236
270
  default: () => {
237
271
  }
238
272
  },
273
+ fixTypeOpt: {
274
+ type: Object,
275
+ default: () => {
276
+ }
277
+ },
239
278
  height: {
240
279
  type: String,
241
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
+ }, Xt = (i) => (ue("data-v-33f94c51"), i = i(), de(), i), $t = { class: "left-pick-list" }, zt = {
296
+ key: 1,
297
+ class: "post-view-list"
298
+ }, qt = { class: "checkText" }, Zt = { class: "iconBox" }, Kt = {
299
+ key: 0,
300
+ class: "userCount"
301
+ }, Yt = ["onClick"], Jt = { class: "ik-picker-single" }, el = { class: "iconBox" }, tl = {
302
+ key: 0,
303
+ class: "userCount"
304
+ }, ll = {
305
+ key: 2,
306
+ class: "empty"
307
+ }, al = /* @__PURE__ */ Xt(() => /* @__PURE__ */ p(
308
+ "img",
309
+ {
310
+ src: be,
311
+ alt: ""
312
+ },
313
+ null,
314
+ -1
315
+ /* HOISTED */
316
+ )), sl = /* @__PURE__ */ le({
317
+ __name: "GroupList",
318
+ props: Ce,
319
+ emits: ["change", "check", "handChild"],
320
+ setup(i, { emit: v }) {
321
+ var n, e;
322
+ const t = i, a = V(() => {
323
+ var u, r;
324
+ return ((u = t.handList) == null ? void 0 : u.length) === ((r = t.list) == null ? void 0 : r.length);
325
+ }), s = V(() => {
326
+ var f, O, U, P;
327
+ const u = (f = t.handList) == null ? void 0 : f.length, r = (O = t.list) == null ? void 0 : O.length;
328
+ return t.multiple ? L.value = t.handList.map((A) => A[t.fixPropOpt.id]) : k.value = (P = (U = t.handList) == null ? void 0 : U[0]) == null ? void 0 : P[t.fixPropOpt.id], u > 0 && u < r;
329
+ }), L = S(
330
+ t.handList.map((u) => u[t.fixPropOpt.id])
331
+ ), k = S((e = (n = t.handList) == null ? void 0 : n[0]) == null ? void 0 : e[t.fixPropOpt.id]), C = v, F = (u) => {
332
+ const r = u ? t.list.map((f) => f[t.fixPropOpt.id]) : [];
333
+ C("change", r, u ? t.list : []);
334
+ }, D = (u) => {
335
+ C("change", u, t.list);
336
+ }, I = (u) => {
337
+ C("change", u, t.list);
338
+ }, h = (u, r) => {
339
+ r || C("handChild", u);
340
+ };
341
+ return (u, r) => (o(), d(
342
+ B,
343
+ null,
344
+ [
345
+ m(" 遍历list多选 "),
346
+ p("div", $t, [
347
+ u.multiple ? (o(), E(x(te), {
348
+ key: 0,
349
+ modelValue: a.value,
350
+ "onUpdate:modelValue": r[0] || (r[0] = (f) => a.value = f),
351
+ indeterminate: s.value,
352
+ onChange: F
353
+ }, {
354
+ default: b(() => [
355
+ $("全选")
356
+ ]),
357
+ _: 1
358
+ /* STABLE */
359
+ }, 8, ["modelValue", "indeterminate"])) : m("v-if", !0),
360
+ u.list && u.list.length ? (o(), d("ul", zt, [
361
+ u.multiple ? (o(), E(x(ke), {
362
+ key: 0,
363
+ modelValue: L.value,
364
+ "onUpdate:modelValue": r[1] || (r[1] = (f) => L.value = f),
365
+ onChange: D
366
+ }, {
367
+ default: b(() => [
368
+ (o(!0), d(
369
+ B,
370
+ null,
371
+ W(u.list, (f) => (o(), d("li", {
372
+ key: f[t.fixPropOpt.id]
373
+ }, [
374
+ w(x(te), {
375
+ label: f[t.fixPropOpt.id]
376
+ }, {
377
+ default: b(() => [
378
+ p("div", qt, [
379
+ p("div", Zt, [
380
+ w(K, {
381
+ fixTypeOpt: t.fixTypeOpt,
382
+ fixPropOpt: t.fixPropOpt,
383
+ element: f,
384
+ imageBaseUrl: t.imageBaseUrl
385
+ }, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
386
+ ]),
387
+ p("p", null, [
388
+ p(
389
+ "span",
390
+ null,
391
+ T(f[t.fixPropOpt.name]),
392
+ 1
393
+ /* TEXT */
394
+ ),
395
+ f[t.fixPropOpt.type] === t.fixTypeOpt.group ? (o(), d(
396
+ "span",
397
+ Kt,
398
+ "(" + T(f.userCount) + ")",
399
+ 1
400
+ /* TEXT */
401
+ )) : m("v-if", !0)
402
+ ])
403
+ ])
404
+ ]),
405
+ _: 2
406
+ /* DYNAMIC */
407
+ }, 1032, ["label"]),
408
+ f[t.fixPropOpt.type] === t.fixTypeOpt.group && t.children ? (o(), d("span", {
409
+ key: 0,
410
+ class: pe(["nextLevel", {
411
+ "is-disabled": L.value.find(
412
+ (O) => O === f[t.fixPropOpt.id]
413
+ )
414
+ }]),
415
+ onClick: (O) => h(
416
+ f,
417
+ L.value.find((U) => U === f[t.fixPropOpt.id])
418
+ )
419
+ }, " 下级", 10, Yt)) : m("v-if", !0)
420
+ ]))),
421
+ 128
422
+ /* KEYED_FRAGMENT */
423
+ ))
424
+ ]),
425
+ _: 1
426
+ /* STABLE */
427
+ }, 8, ["modelValue"])) : (o(), E(x(Oe), {
428
+ key: 1,
429
+ isIndeterminate: s.value,
430
+ modelValue: k.value,
431
+ "onUpdate:modelValue": r[2] || (r[2] = (f) => k.value = f),
432
+ onChange: I
433
+ }, {
434
+ default: b(() => [
435
+ (o(!0), d(
436
+ B,
437
+ null,
438
+ W(u.list, (f) => (o(), d("li", {
439
+ class: "w-full",
440
+ key: f[t.fixPropOpt.id]
441
+ }, [
442
+ w(x(Te), {
443
+ label: f[t.fixPropOpt.id]
444
+ }, {
445
+ default: b(() => [
446
+ p("div", Jt, [
447
+ p("div", el, [
448
+ w(K, {
449
+ fixTypeOpt: t.fixTypeOpt,
450
+ fixPropOpt: t.fixPropOpt,
451
+ element: f,
452
+ imageBaseUrl: t.imageBaseUrl
453
+ }, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
454
+ ]),
455
+ p("p", null, [
456
+ p(
457
+ "span",
458
+ null,
459
+ T(f[t.fixPropOpt.name]),
460
+ 1
461
+ /* TEXT */
462
+ ),
463
+ f[t.fixPropOpt.type] === t.fixTypeOpt.group ? (o(), d(
464
+ "span",
465
+ tl,
466
+ "(" + T(f.userCount) + ")",
467
+ 1
468
+ /* TEXT */
469
+ )) : m("v-if", !0)
470
+ ])
471
+ ])
472
+ ]),
473
+ _: 2
474
+ /* DYNAMIC */
475
+ }, 1032, ["label"])
476
+ ]))),
477
+ 128
478
+ /* KEYED_FRAGMENT */
479
+ ))
480
+ ]),
481
+ _: 1
482
+ /* STABLE */
483
+ }, 8, ["isIndeterminate", "modelValue"]))
484
+ ])) : (o(), d("div", ll, [
485
+ al,
486
+ p(
487
+ "div",
488
+ null,
489
+ T(t.emptyText),
490
+ 1
491
+ /* TEXT */
492
+ )
493
+ ]))
494
+ ])
495
+ ],
496
+ 2112
497
+ /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
498
+ ));
242
499
  }
243
- }, fl = { class: "left-pick-list" }, yl = { class: "post-view-list" }, gl = ["title"], _l = { class: "ik-picker-single" }, ml = ["title"], kl = /* @__PURE__ */ Pe({
500
+ });
501
+ const ol = /* @__PURE__ */ j(sl, [["__scopeId", "data-v-33f94c51"]]), nl = (i) => (ue("data-v-95cdb4dd"), i = i(), de(), i), il = { class: "left-pick-list" }, rl = {
502
+ key: 1,
503
+ class: "post-view-list"
504
+ }, pl = { class: "iconBox" }, ul = { class: "ik-picker-single" }, dl = { class: "iconBox" }, cl = {
505
+ key: 2,
506
+ class: "empty"
507
+ }, Al = /* @__PURE__ */ nl(() => /* @__PURE__ */ p(
508
+ "img",
509
+ {
510
+ src: be,
511
+ alt: ""
512
+ },
513
+ null,
514
+ -1
515
+ /* HOISTED */
516
+ )), hl = /* @__PURE__ */ le({
244
517
  __name: "PostList",
245
- props: Qe,
518
+ props: Ce,
246
519
  emits: ["change", "check"],
247
- setup(v, { emit: k }) {
248
- var y, _;
249
- const i = v, s = O(() => {
250
- var l, m;
251
- return ((l = i.handList) == null ? void 0 : l.length) === ((m = i.list) == null ? void 0 : m.length);
252
- }), r = O(() => {
253
- var t, p, V, N;
254
- const l = (t = i.handList) == null ? void 0 : t.length, m = (p = i.list) == null ? void 0 : p.length;
255
- return i.multiple ? P.value = i.handList.map((T) => T[i.fixPropOpt.id]) : w.value = (N = (V = i.handList) == null ? void 0 : V[0]) == null ? void 0 : N[i.fixPropOpt.id], l > 0 && l < m;
256
- }), P = A(
257
- i.handList.map((l) => l[i.fixPropOpt.id])
258
- ), w = A((_ = (y = i.handList) == null ? void 0 : y[0]) == null ? void 0 : _[i.fixPropOpt.id]), I = k, F = (l) => {
259
- const m = l ? i.list.map((t) => t[i.fixPropOpt.id]) : [];
260
- I("change", m, l ? i.list : []);
261
- }, M = (l) => {
262
- I("change", l, i.list);
263
- }, j = (l) => {
264
- I("change", l, i.list);
520
+ setup(i, { emit: v }) {
521
+ var h, n;
522
+ const t = i, a = V(() => {
523
+ var e, u;
524
+ return ((e = t.handList) == null ? void 0 : e.length) === ((u = t.list) == null ? void 0 : u.length);
525
+ }), s = V(() => {
526
+ var r, f, O, U;
527
+ const e = (r = t.handList) == null ? void 0 : r.length, u = (f = t.list) == null ? void 0 : f.length;
528
+ return t.multiple ? L.value = t.handList.map((P) => P[t.fixPropOpt.id]) : k.value = (U = (O = t.handList) == null ? void 0 : O[0]) == null ? void 0 : U[t.fixPropOpt.id], e > 0 && e < u;
529
+ }), L = S(
530
+ t.handList.map((e) => e[t.fixPropOpt.id])
531
+ ), k = S((n = (h = t.handList) == null ? void 0 : h[0]) == null ? void 0 : n[t.fixPropOpt.id]), C = v, F = (e) => {
532
+ const u = e ? t.list.map((r) => r[t.fixPropOpt.id]) : [];
533
+ C("change", u, e ? t.list : []);
534
+ }, D = (e) => {
535
+ C("change", e, t.list);
536
+ }, I = (e) => {
537
+ C("change", e, t.list);
265
538
  };
266
- return (l, m) => (o(), d(
267
- x,
539
+ return (e, u) => (o(), d(
540
+ B,
268
541
  null,
269
542
  [
270
- c(" 遍历list多选 "),
271
- h("div", fl, [
272
- l.multiple ? (o(), b(f(ee), {
543
+ m(" 遍历list多选 "),
544
+ p("div", il, [
545
+ e.multiple ? (o(), E(x(te), {
273
546
  key: 0,
274
- modelValue: s.value,
275
- "onUpdate:modelValue": m[0] || (m[0] = (t) => s.value = t),
276
- indeterminate: r.value,
547
+ modelValue: a.value,
548
+ "onUpdate:modelValue": u[0] || (u[0] = (r) => a.value = r),
549
+ indeterminate: s.value,
277
550
  onChange: F
278
551
  }, {
279
- default: L(() => [
280
- B("全选")
552
+ default: b(() => [
553
+ $("全选")
281
554
  ]),
282
555
  _: 1
283
556
  /* STABLE */
284
- }, 8, ["modelValue", "indeterminate"])) : c("v-if", !0),
285
- h("ul", yl, [
286
- l.multiple ? (o(), b(f(Be), {
557
+ }, 8, ["modelValue", "indeterminate"])) : m("v-if", !0),
558
+ e.list && e.list.length ? (o(), d("ul", rl, [
559
+ e.multiple ? (o(), E(x(ke), {
287
560
  key: 0,
288
- modelValue: P.value,
289
- "onUpdate:modelValue": m[1] || (m[1] = (t) => P.value = t),
290
- onChange: M
561
+ modelValue: L.value,
562
+ "onUpdate:modelValue": u[1] || (u[1] = (r) => L.value = r),
563
+ onChange: D
291
564
  }, {
292
- default: L(() => [
565
+ default: b(() => [
293
566
  (o(!0), d(
294
- x,
567
+ B,
295
568
  null,
296
- q(l.list, (t) => (o(), d("li", {
297
- key: t[i.fixPropOpt.id]
569
+ W(e.list, (r) => (o(), d("li", {
570
+ key: r[t.fixPropOpt.id]
298
571
  }, [
299
- $(f(ee), {
300
- label: t[i.fixPropOpt.id]
572
+ w(x(te), {
573
+ label: r[t.fixPropOpt.id]
301
574
  }, {
302
- default: L(() => [
303
- $(Ne),
304
- h("p", {
305
- title: t[i.fixPropOpt.name]
306
- }, C(t[i.fixPropOpt.name]), 9, gl)
575
+ default: b(() => [
576
+ p("div", pl, [
577
+ w(K, {
578
+ fixTypeOpt: t.fixTypeOpt,
579
+ fixPropOpt: t.fixPropOpt,
580
+ element: r,
581
+ imageBaseUrl: t.imageBaseUrl
582
+ }, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
583
+ ]),
584
+ p(
585
+ "p",
586
+ null,
587
+ T(r[t.fixPropOpt.name]),
588
+ 1
589
+ /* TEXT */
590
+ )
307
591
  ]),
308
592
  _: 2
309
593
  /* DYNAMIC */
@@ -315,30 +599,41 @@ const ye = /* @__PURE__ */ G(dl, [["render", hl]]), Qe = {
315
599
  ]),
316
600
  _: 1
317
601
  /* STABLE */
318
- }, 8, ["modelValue"])) : (o(), b(f($e), {
602
+ }, 8, ["modelValue"])) : (o(), E(x(Oe), {
319
603
  key: 1,
320
- isIndeterminate: r.value,
321
- modelValue: w.value,
322
- "onUpdate:modelValue": m[2] || (m[2] = (t) => w.value = t),
323
- onChange: j
604
+ isIndeterminate: s.value,
605
+ modelValue: k.value,
606
+ "onUpdate:modelValue": u[2] || (u[2] = (r) => k.value = r),
607
+ onChange: I
324
608
  }, {
325
- default: L(() => [
609
+ default: b(() => [
326
610
  (o(!0), d(
327
- x,
611
+ B,
328
612
  null,
329
- q(l.list, (t) => (o(), d("li", {
613
+ W(e.list, (r) => (o(), d("li", {
330
614
  class: "w-full",
331
- key: t[i.fixPropOpt.id]
615
+ key: r[t.fixPropOpt.id]
332
616
  }, [
333
- $(f(Me), {
334
- label: t[i.fixPropOpt.id]
617
+ w(x(Te), {
618
+ label: r[t.fixPropOpt.id]
335
619
  }, {
336
- default: L(() => [
337
- h("div", _l, [
338
- $(Ne),
339
- h("p", {
340
- title: t[i.fixPropOpt.name]
341
- }, C(t[i.fixPropOpt.name]), 9, ml)
620
+ default: b(() => [
621
+ p("div", ul, [
622
+ p("div", dl, [
623
+ w(K, {
624
+ fixTypeOpt: t.fixTypeOpt,
625
+ fixPropOpt: t.fixPropOpt,
626
+ element: r,
627
+ imageBaseUrl: t.imageBaseUrl
628
+ }, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
629
+ ]),
630
+ p(
631
+ "p",
632
+ null,
633
+ T(r[t.fixPropOpt.name]),
634
+ 1
635
+ /* TEXT */
636
+ )
342
637
  ])
343
638
  ]),
344
639
  _: 2
@@ -352,7 +647,16 @@ const ye = /* @__PURE__ */ G(dl, [["render", hl]]), Qe = {
352
647
  _: 1
353
648
  /* STABLE */
354
649
  }, 8, ["isIndeterminate", "modelValue"]))
355
- ])
650
+ ])) : (o(), d("div", cl, [
651
+ Al,
652
+ p(
653
+ "div",
654
+ null,
655
+ T(t.emptyText),
656
+ 1
657
+ /* TEXT */
658
+ )
659
+ ]))
356
660
  ])
357
661
  ],
358
662
  2112
@@ -360,72 +664,94 @@ const ye = /* @__PURE__ */ G(dl, [["render", hl]]), Qe = {
360
664
  ));
361
665
  }
362
666
  });
363
- const Ll = /* @__PURE__ */ G(kl, [["__scopeId", "data-v-a87521f6"]]), bl = { class: "left-pick-list" }, $l = { class: "role-view-list" }, Pl = ["title"], wl = { class: "ik-picker-single" }, Cl = ["title"], Tl = /* @__PURE__ */ Pe({
667
+ const fl = /* @__PURE__ */ j(hl, [["__scopeId", "data-v-95cdb4dd"]]), vl = (i) => (ue("data-v-79596f8b"), i = i(), de(), i), yl = { class: "left-pick-list" }, gl = {
668
+ key: 1,
669
+ class: "role-view-list"
670
+ }, ml = { class: "iconBox" }, xl = ["title"], _l = { class: "ik-picker-single" }, Ll = { class: "iconBox" }, Pl = ["title"], kl = {
671
+ key: 2,
672
+ class: "empty"
673
+ }, Ol = /* @__PURE__ */ vl(() => /* @__PURE__ */ p(
674
+ "img",
675
+ {
676
+ src: be,
677
+ alt: ""
678
+ },
679
+ null,
680
+ -1
681
+ /* HOISTED */
682
+ )), Tl = /* @__PURE__ */ le({
364
683
  __name: "RoleList",
365
- props: Qe,
684
+ props: Ce,
366
685
  emits: ["change", "check"],
367
- setup(v, { emit: k }) {
368
- var y, _;
369
- const i = v, s = O(() => {
370
- var l, m;
371
- return ((l = i.handList) == null ? void 0 : l.length) === ((m = i.list) == null ? void 0 : m.length);
372
- }), r = O(() => {
373
- var t, p, V, N;
374
- const l = (t = i.handList) == null ? void 0 : t.length, m = (p = i.list) == null ? void 0 : p.length;
375
- return i.multiple ? P.value = i.handList.map((T) => T[i.fixPropOpt.id]) : w.value = (N = (V = i.handList) == null ? void 0 : V[0]) == null ? void 0 : N[i.fixPropOpt.id], l > 0 && l < m;
376
- }), P = A(
377
- i.handList.map((l) => l[i.fixPropOpt.id])
378
- ), w = A((_ = (y = i.handList) == null ? void 0 : y[0]) == null ? void 0 : _[i.fixPropOpt.id]), I = k, F = (l) => {
379
- const m = l ? i.list.map((t) => t[i.fixPropOpt.id]) : [];
380
- I("change", m, l ? i.list : []);
381
- }, M = (l) => {
382
- I("change", l, i.list);
383
- }, j = (l) => {
384
- I("change", l, i.list);
686
+ setup(i, { emit: v }) {
687
+ var h, n;
688
+ const t = i, a = V(() => {
689
+ var e, u;
690
+ return ((e = t.handList) == null ? void 0 : e.length) === ((u = t.list) == null ? void 0 : u.length);
691
+ }), s = V(() => {
692
+ var r, f, O, U;
693
+ const e = (r = t.handList) == null ? void 0 : r.length, u = (f = t.list) == null ? void 0 : f.length;
694
+ return t.multiple ? L.value = t.handList.map((P) => P[t.fixPropOpt.id]) : k.value = (U = (O = t.handList) == null ? void 0 : O[0]) == null ? void 0 : U[t.fixPropOpt.id], e > 0 && e < u;
695
+ }), L = S(
696
+ t.handList.map((e) => e[t.fixPropOpt.id])
697
+ ), k = S((n = (h = t.handList) == null ? void 0 : h[0]) == null ? void 0 : n[t.fixPropOpt.id]), C = v, F = (e) => {
698
+ const u = e ? t.list.map((r) => r[t.fixPropOpt.id]) : [];
699
+ C("change", u, e ? t.list : []);
700
+ }, D = (e) => {
701
+ C("change", e, t.list);
702
+ }, I = (e) => {
703
+ C("change", e, t.list);
385
704
  };
386
- return (l, m) => (o(), d(
387
- x,
705
+ return (e, u) => (o(), d(
706
+ B,
388
707
  null,
389
708
  [
390
- c(" 遍历list多选 "),
391
- h("div", bl, [
392
- l.multiple ? (o(), b(f(ee), {
709
+ m(" 遍历list多选 "),
710
+ p("div", yl, [
711
+ e.multiple ? (o(), E(x(te), {
393
712
  key: 0,
394
- modelValue: s.value,
395
- "onUpdate:modelValue": m[0] || (m[0] = (t) => s.value = t),
396
- indeterminate: r.value,
713
+ modelValue: a.value,
714
+ "onUpdate:modelValue": u[0] || (u[0] = (r) => a.value = r),
715
+ indeterminate: s.value,
397
716
  onChange: F
398
717
  }, {
399
- default: L(() => [
400
- B("全选")
718
+ default: b(() => [
719
+ $("全选")
401
720
  ]),
402
721
  _: 1
403
722
  /* STABLE */
404
- }, 8, ["modelValue", "indeterminate"])) : c("v-if", !0),
405
- h("ul", $l, [
406
- l.multiple ? (o(), b(f(Be), {
723
+ }, 8, ["modelValue", "indeterminate"])) : m("v-if", !0),
724
+ e.list && e.list.length ? (o(), d("ul", gl, [
725
+ e.multiple ? (o(), E(x(ke), {
407
726
  key: 0,
408
- modelValue: P.value,
409
- "onUpdate:modelValue": m[1] || (m[1] = (t) => P.value = t),
410
- onChange: M
727
+ modelValue: L.value,
728
+ "onUpdate:modelValue": u[1] || (u[1] = (r) => L.value = r),
729
+ onChange: D
411
730
  }, {
412
- default: L(() => [
731
+ default: b(() => [
413
732
  (o(!0), d(
414
- x,
733
+ B,
415
734
  null,
416
- q(l.list, (t) => (o(), d("li", {
417
- key: t[l.fixPropOpt.id]
735
+ W(e.list, (r) => (o(), d("li", {
736
+ key: r[e.fixPropOpt.id]
418
737
  }, [
419
- $(f(ee), {
420
- label: t[l.fixPropOpt.id],
421
- value: t[l.fixPropOpt.id],
422
- disabled: t.disabled
738
+ w(x(te), {
739
+ label: r[e.fixPropOpt.id],
740
+ value: r[e.fixPropOpt.id],
741
+ disabled: r.disabled
423
742
  }, {
424
- default: L(() => [
425
- $(ue),
426
- h("p", {
427
- title: t[l.fixPropOpt.name]
428
- }, C(t[l.fixPropOpt.name]), 9, Pl)
743
+ default: b(() => [
744
+ p("div", ml, [
745
+ w(K, {
746
+ fixTypeOpt: t.fixTypeOpt,
747
+ fixPropOpt: t.fixPropOpt,
748
+ element: r,
749
+ imageBaseUrl: t.imageBaseUrl
750
+ }, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
751
+ ]),
752
+ p("p", {
753
+ title: r[e.fixPropOpt.name]
754
+ }, T(r[e.fixPropOpt.name]), 9, xl)
429
755
  ]),
430
756
  _: 2
431
757
  /* DYNAMIC */
@@ -437,32 +763,39 @@ const Ll = /* @__PURE__ */ G(kl, [["__scopeId", "data-v-a87521f6"]]), bl = { cla
437
763
  ]),
438
764
  _: 1
439
765
  /* STABLE */
440
- }, 8, ["modelValue"])) : (o(), b(f($e), {
766
+ }, 8, ["modelValue"])) : (o(), E(x(Oe), {
441
767
  key: 1,
442
- indeterminate: r.value,
443
- modelValue: w.value,
444
- "onUpdate:modelValue": m[2] || (m[2] = (t) => w.value = t),
445
- onChange: j
768
+ indeterminate: s.value,
769
+ modelValue: k.value,
770
+ "onUpdate:modelValue": u[2] || (u[2] = (r) => k.value = r),
771
+ onChange: I
446
772
  }, {
447
- default: L(() => [
773
+ default: b(() => [
448
774
  (o(!0), d(
449
- x,
775
+ B,
450
776
  null,
451
- q(l.list, (t) => (o(), d("li", {
777
+ W(e.list, (r) => (o(), d("li", {
452
778
  class: "w-full",
453
- key: t[l.fixPropOpt.id]
779
+ key: r[e.fixPropOpt.id]
454
780
  }, [
455
- $(f(Me), {
456
- label: t[l.fixPropOpt.id],
457
- value: t[l.fixPropOpt.id],
458
- disabled: t.disabled
781
+ w(x(Te), {
782
+ label: r[e.fixPropOpt.id],
783
+ value: r[e.fixPropOpt.id],
784
+ disabled: r.disabled
459
785
  }, {
460
- default: L(() => [
461
- h("div", wl, [
462
- $(ue),
463
- h("p", {
464
- title: t[l.fixPropOpt.name]
465
- }, C(t[l.fixPropOpt.name]), 9, Cl)
786
+ default: b(() => [
787
+ p("div", _l, [
788
+ p("div", Ll, [
789
+ w(K, {
790
+ fixTypeOpt: t.fixTypeOpt,
791
+ fixPropOpt: t.fixPropOpt,
792
+ element: r,
793
+ imageBaseUrl: t.imageBaseUrl
794
+ }, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
795
+ ]),
796
+ p("p", {
797
+ title: r[e.fixPropOpt.name]
798
+ }, T(r[e.fixPropOpt.name]), 9, Pl)
466
799
  ])
467
800
  ]),
468
801
  _: 2
@@ -476,7 +809,16 @@ const Ll = /* @__PURE__ */ G(kl, [["__scopeId", "data-v-a87521f6"]]), bl = { cla
476
809
  _: 1
477
810
  /* STABLE */
478
811
  }, 8, ["indeterminate", "modelValue"]))
479
- ])
812
+ ])) : (o(), d("div", kl, [
813
+ Ol,
814
+ p(
815
+ "div",
816
+ null,
817
+ T(t.emptyText),
818
+ 1
819
+ /* TEXT */
820
+ )
821
+ ]))
480
822
  ])
481
823
  ],
482
824
  2112
@@ -484,29 +826,16 @@ const Ll = /* @__PURE__ */ G(kl, [["__scopeId", "data-v-a87521f6"]]), bl = { cla
484
826
  ));
485
827
  }
486
828
  });
487
- const Sl = /* @__PURE__ */ G(Tl, [["__scopeId", "data-v-a51e0920"]]);
488
- var U = /* @__PURE__ */ ((v) => (v.org = "organization", v.dep = "dep", v.user = "user", v.role = "role", v.post = "post", v.dep_user = "dep_user", v))(U || {}), ge = /* @__PURE__ */ ((v) => (v.group = "group", v.role = "role", v.post = "post", v))(ge || {});
489
- const Q = {
490
- animation: 200,
491
- group: "gl",
492
- disabled: !1,
493
- ghostClass: "ghost",
494
- sort: !0,
495
- delay: 100,
496
- showIcon: !0,
497
- itemStyle: {
498
- radius: 25,
499
- bottom: 8,
500
- background: "#0000"
501
- }
502
- }, xl = {
503
- // 是否允许点击根节点查询
504
- topLink: {
829
+ const bl = /* @__PURE__ */ j(Tl, [["__scopeId", "data-v-79596f8b"]]);
830
+ var oe = /* @__PURE__ */ ((i) => (i.group = "group", i.role = "role", i.post = "post", i))(oe || {});
831
+ const Cl = {
832
+ // 是否允许选择子集
833
+ children: {
505
834
  type: Boolean,
506
835
  default: !0
507
836
  },
508
- // 是否允许选择子集
509
- children: {
837
+ // 是否允许点击根节点查询
838
+ topLink: {
510
839
  type: Boolean,
511
840
  default: !0
512
841
  },
@@ -521,14 +850,9 @@ const Q = {
521
850
  default: () => []
522
851
  },
523
852
  // 默认最顶层节点id
524
- pid: {
525
- type: String,
526
- default: ""
527
- },
528
- // 默认顶层组织节点id
529
853
  orgPid: {
530
854
  type: String,
531
- default: "root"
855
+ default: ""
532
856
  },
533
857
  // 默认顶层组织
534
858
  org: {
@@ -560,13 +884,8 @@ const Q = {
560
884
  type: String,
561
885
  default: "选择人员"
562
886
  },
563
- // 组织数据
564
- organizationList: {
565
- type: Array,
566
- default: () => []
567
- },
568
887
  // 部门数据
569
- depList: {
888
+ groupList: {
570
889
  type: Array,
571
890
  default: () => []
572
891
  },
@@ -601,11 +920,11 @@ const Q = {
601
920
  tabs: {
602
921
  type: Array,
603
922
  // prop校验
604
- validator: (v) => {
605
- if (v === void 0)
923
+ validator: (i) => {
924
+ if (i === void 0)
606
925
  return !0;
607
- if (Array.isArray(v)) {
608
- if (!(v != null && v.length))
926
+ if (Array.isArray(i)) {
927
+ if (!(i != null && i.length))
609
928
  return !1;
610
929
  } else
611
930
  return console.error("IkingPicker参数错误:tabs必须是Array类型"), !1;
@@ -613,10 +932,6 @@ const Q = {
613
932
  },
614
933
  default: () => ["group", "role", "post"]
615
934
  },
616
- showDep: {
617
- type: Boolean,
618
- default: !0
619
- },
620
935
  // 选择类别
621
936
  chooseType: {
622
937
  type: Array,
@@ -633,7 +948,7 @@ const Q = {
633
948
  methods: "post",
634
949
  headers: {
635
950
  "Content-Type": "application/json;charset=UTF-8",
636
- Authorization: "Bearer iking"
951
+ Authorization: "Bearer 9aa65e31e86f4232ac4e4136fb1d3413"
637
952
  },
638
953
  url: `${location.origin}${location.pathname}/serve/component/pick/mix`,
639
954
  param: null,
@@ -666,183 +981,171 @@ const Q = {
666
981
  type: String,
667
982
  default: ""
668
983
  },
669
- // 是否缓存请求过得数据
670
- cache: {
671
- type: Boolean,
672
- default: !0
673
- },
674
984
  // placeholder
675
985
  placeholder: {
676
986
  type: String,
677
- default: "模糊搜索组织、人员、角色、岗位"
987
+ default: "请输入"
678
988
  },
679
989
  emptyText: {
680
990
  type: String,
681
991
  default: "暂无数据"
682
992
  }
683
- }, Ye = (v) => {
684
- const k = window.location.search;
685
- return new URLSearchParams(k).get(v);
686
- }, Al = (v) => {
687
- const k = De.local.getItem("x_domain");
688
- k && (v["X-DOMAIN"] = k);
689
- }, Ol = (v) => {
690
- var s;
691
- const k = Ye("domain");
692
- if (k) {
693
- v["X-DOMAIN"] = k;
694
- const r = Ye("code");
695
- k === "APPLICATION" && (v["X-APP"] = r);
993
+ }, Fe = (i) => {
994
+ const v = window.location.search;
995
+ return new URLSearchParams(v).get(i);
996
+ }, Sl = (i) => {
997
+ const v = Pe.local.getItem("x_domain");
998
+ v && (i["X-DOMAIN"] = v);
999
+ }, wl = (i) => {
1000
+ var a;
1001
+ const v = Fe("domain");
1002
+ if (v) {
1003
+ i["X-DOMAIN"] = v;
1004
+ const s = Fe("code");
1005
+ v === "APPLICATION" && (i["X-APP"] = s);
696
1006
  } else
697
- Al(v);
698
- const i = (s = De.local.getItem("tenant")) == null ? void 0 : s.code;
699
- i && (v["X-TENANT"] = i);
700
- }, Il = (v, k) => {
701
- const i = A([]), s = async (P, w, I) => {
702
- var de, pe;
703
- const { url: F, methods: M, headers: j, param: y } = v.value || {}, _ = {
704
- parentOrgId: P,
705
- ...y || {},
706
- parentDepartmentId: w || "",
707
- name: I || ""
708
- }, l = {
709
- method: M,
710
- url: F,
1007
+ Sl(i);
1008
+ const t = (a = Pe.local.getItem("tenant")) == null ? void 0 : a.code;
1009
+ t && (i["X-TENANT"] = t);
1010
+ }, Ul = (i, v) => {
1011
+ const t = S([]), a = async (L, k) => {
1012
+ var ae, M;
1013
+ const { url: C, methods: F, headers: D, param: I } = i.value || {}, h = {
1014
+ ...I || {},
1015
+ parentDepartmentId: L || "",
1016
+ name: k || ""
1017
+ }, n = {
1018
+ method: F,
1019
+ url: C,
711
1020
  headers: {
712
1021
  "Content-Type": "application/json;charset=UTF-8",
713
- ...j
1022
+ ...D
714
1023
  },
715
- data: JSON.stringify(_)
1024
+ data: JSON.stringify(h)
716
1025
  };
717
- Ol(l.headers);
718
- const m = await wt(l), { success: t, data: p } = m.data;
719
- if (!t)
1026
+ wl(n.headers);
1027
+ const e = await nt(n), { success: u, data: r } = e.data;
1028
+ if (!u)
720
1029
  return {
721
- depList: [],
1030
+ groupList: [],
722
1031
  roleList: [],
723
1032
  postList: [],
724
1033
  userList: [],
725
- organizationList: [],
726
1034
  rootOrganization: {},
727
1035
  rootDepartment: {}
728
1036
  };
729
- const { departments: V, roles: N, posts: T, users: R, organizations: J, rootOrganization: X, rootDepartment: u } = p, H = X || u;
730
- return i.value[0] = k.org ? {
731
- ...k.org,
732
- id: k.elementId,
733
- elementType: (pe = (de = k.org) == null ? void 0 : de.elementType) == null ? void 0 : pe.toLocaleUpperCase()
1037
+ const {
1038
+ departments: f,
1039
+ roles: O,
1040
+ posts: U,
1041
+ users: P,
1042
+ rootOrganization: A,
1043
+ rootDepartment: R
1044
+ } = r, Y = A || R;
1045
+ return t.value.length === 0 && (t.value[0] = v.org ? {
1046
+ ...v.org,
1047
+ id: v.elementId,
1048
+ elementType: (M = (ae = v.org) == null ? void 0 : ae.elementType) == null ? void 0 : M.toLocaleUpperCase()
734
1049
  } : {
735
- ...H,
736
- id: H.elementId
737
- }, {
738
- depList: K.cloneDeep(V),
739
- roleList: K.cloneDeep(N),
740
- postList: K.cloneDeep(T),
741
- userList: K.cloneDeep(R),
742
- organizationList: K.cloneDeep(J),
743
- rootOrganization: X,
744
- rootDepartment: u
1050
+ ...Y,
1051
+ id: Y.elementId
1052
+ }), {
1053
+ groupList: H.cloneDeep(f),
1054
+ roleList: H.cloneDeep(O),
1055
+ postList: H.cloneDeep(U),
1056
+ userList: H.cloneDeep(P),
1057
+ rootOrganization: A,
1058
+ rootDepartment: R
745
1059
  };
746
1060
  };
747
1061
  return {
748
- handData: s,
749
- handSetChild: (P, w) => {
750
- s(P == null ? void 0 : P.elementId, w);
1062
+ handData: a,
1063
+ handSetChild: (L, k) => {
1064
+ a(L == null ? void 0 : L.elementId, k);
751
1065
  },
752
- bannerList: i
1066
+ bannerList: t
753
1067
  };
754
- }, zl = {
1068
+ }, Bl = {
755
1069
  shadow: "hover",
756
1070
  class: "sel-list"
757
- }, Vl = { key: 0 }, El = {
758
- key: 0,
759
- class: "check-all"
760
- }, Ul = {
761
- key: 0,
762
- class: "view-list"
763
- }, Fl = {
764
- key: 0,
765
- class: "filter-user"
766
- }, Nl = ["title"], Dl = { class: "filter-user" }, Bl = ["title"], Ml = {
767
- key: 2,
768
- class: "next-child"
769
- }, Rl = { class: "filter-user" }, Hl = ["title"], ql = {
770
- key: 1,
771
- class: "filter-user"
772
- }, jl = ["title"], Wl = {
773
- key: 2,
774
- class: "next-child"
775
- }, Gl = { class: "text-over-flow" }, Jl = ["title"], Kl = ["title"], Xl = {
776
- key: 2,
777
- class: "next-child"
778
- }, Yl = {
779
- key: 1,
780
- class: "empty"
781
- }, Zl = /* @__PURE__ */ h(
1071
+ }, El = { key: 0 }, Il = /* @__PURE__ */ p(
782
1072
  "div",
783
1073
  { class: "split-div" },
784
1074
  null,
785
1075
  -1
786
1076
  /* HOISTED */
787
- ), Ql = { class: "choose-list" }, ea = { class: "choose-item" }, ta = /* @__PURE__ */ h(
1077
+ ), Vl = { class: "choose-list" }, Fl = { class: "choose-item" }, Dl = /* @__PURE__ */ p(
788
1078
  "div",
789
1079
  null,
790
1080
  "已选",
791
1081
  -1
792
1082
  /* HOISTED */
793
- ), la = { class: "dialog-footer" }, aa = /* @__PURE__ */ Pe({
1083
+ ), Nl = { class: "choose-box" }, Rl = { class: "list-group-item" }, Ml = { class: "" }, Wl = { class: "avatar_box" }, Hl = { class: "dialog-footer" }, jl = /* @__PURE__ */ le({
794
1084
  __name: "picker",
795
- props: xl,
1085
+ props: Cl,
796
1086
  emits: ["handChild", "update:show", "update:modelValue", "ok", "search"],
797
- setup(v, { expose: k, emit: i }) {
798
- vt((a) => ({
799
- "61ff3d3c": Oe.value
1087
+ setup(i, { expose: v, emit: t }) {
1088
+ Ye((l) => ({
1089
+ "33b71112": Be.value
800
1090
  }));
801
- const s = v, r = A(""), P = A(""), w = A(""), I = A([]), F = A([]), M = A([]), j = A([]), y = A([]), _ = A(!1), l = s.imageBaseUrl || `${location.origin}/server/oss/download?fileUrl=`, m = (a) => a ? a.startsWith("http") ? a : `${l}${a}` : "";
802
- ae(() => s.api, () => {
803
- s.show && pe("");
804
- });
805
- const t = O(() => ({
1091
+ const a = i, s = S(""), L = S(""), k = S([]), C = S([]), F = S([]), D = S([]), I = S(!1), h = V(() => C.value.concat(k.value));
1092
+ X(
1093
+ () => a.api,
1094
+ () => {
1095
+ a.show && ae("");
1096
+ }
1097
+ );
1098
+ const n = V(() => ({
806
1099
  name: "name",
807
1100
  type: "type",
808
1101
  id: "id",
809
1102
  avatar: "avatar",
810
- ...s.propOption
811
- })), p = O(() => ({
812
- dep: "DEPT",
1103
+ ...a.propOption
1104
+ })), e = V(() => ({
813
1105
  user: "USER",
814
1106
  role: "ROLE",
815
1107
  post: "POST",
816
- organization: "ORGANIZATION",
817
- ...s.typeOption
818
- })), V = A([]), N = Il(ht(s, "api"), s), T = N.handData, R = N.bannerList;
819
- s.immediate && T(w.value, P.value, r.value);
820
- const J = (a) => (a.forEach((n) => {
821
- var e, g;
822
- n.disabled = ((g = (e = s.modelValue) == null ? void 0 : e.find((S) => S[t.value.id] === n[t.value.id])) == null ? void 0 : g.disabled) || !1;
823
- }), a), X = async () => {
824
- var a, n, e, g, S, Y, re, ve, Je;
825
- _.value = !0;
1108
+ group: "DEPT",
1109
+ ...a.typeOption
1110
+ })), u = S([]), r = Ul(Je(a, "api"), a), f = r.handData, O = r.bannerList;
1111
+ a.immediate && f(L.value, s.value);
1112
+ const U = (l) => (l.forEach((c) => {
1113
+ var y, g;
1114
+ c.disabled = ((g = (y = a.modelValue) == null ? void 0 : y.find(
1115
+ (_) => _[n.value.id] === c[n.value.id]
1116
+ )) == null ? void 0 : g.disabled) || !1;
1117
+ }), l), P = async () => {
1118
+ var l, c, y, g, _, G, ye, Ie;
1119
+ I.value = !0;
826
1120
  try {
827
- if ((a = s.depList) != null && a.length || (n = s.userList) != null && n.length || (e = s.roleList) != null && e.length || (g = s.postList) != null && g.length) {
828
- I.value = (S = s.userList) == null ? void 0 : S.filter((W) => W[t.value.name].includes(r.value)), F.value = (Y = s.depList) == null ? void 0 : Y.filter((W) => W[t.value.name].includes(r.value)), M.value = (re = s.roleList) == null ? void 0 : re.filter((W) => W[t.value.name].includes(r.value)), j.value = (ve = s.postList) == null ? void 0 : ve.filter((W) => W[t.value.name].includes(r.value)), y.value = (Je = s.organizationList) == null ? void 0 : Je.filter((W) => W[t.value.name].includes(r.value)), Se(), _.value = !1;
1121
+ if ((l = a.groupList) != null && l.length || (c = a.userList) != null && c.length || (y = a.roleList) != null && y.length || (g = a.postList) != null && g.length) {
1122
+ k.value = (_ = a.userList) == null ? void 0 : _.filter(
1123
+ (Q) => Q[n.value.name].includes(s.value)
1124
+ ), C.value = (G = a.groupList) == null ? void 0 : G.filter(
1125
+ (Q) => Q[n.value.name].includes(s.value)
1126
+ ), F.value = (ye = a.roleList) == null ? void 0 : ye.filter(
1127
+ (Q) => Q[n.value.name].includes(s.value)
1128
+ ), D.value = (Ie = a.postList) == null ? void 0 : Ie.filter(
1129
+ (Q) => Q[n.value.name].includes(s.value)
1130
+ ), Ae(), I.value = !1;
829
1131
  return;
830
1132
  }
831
- const E = await T(w.value, P.value, r.value);
1133
+ const N = await f(
1134
+ L.value,
1135
+ s.value
1136
+ );
832
1137
  try {
833
- I.value = J((E == null ? void 0 : E.userList) || []), F.value = J((E == null ? void 0 : E.depList) || []), M.value = J((E == null ? void 0 : E.roleList) || []), j.value = J((E == null ? void 0 : E.postList) || []), y.value = J((E == null ? void 0 : E.organizationList) || []);
834
- } catch (W) {
835
- _.value = !1, console.info("error: ", W);
1138
+ k.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) || []);
1139
+ } catch (Q) {
1140
+ I.value = !1, console.info("error: ", Q);
836
1141
  }
837
- Se(), _.value = !1;
1142
+ Ae(), I.value = !1;
838
1143
  } catch {
839
- _.value = !1;
1144
+ I.value = !1;
840
1145
  }
841
- }, u = Ue({
842
- // 组织
843
- org: /* @__PURE__ */ new Map(),
844
- // 部门
845
- dep: /* @__PURE__ */ new Map(),
1146
+ }, A = _e({
1147
+ //组织架构
1148
+ group: /* @__PURE__ */ new Map(),
846
1149
  // 用户
847
1150
  user: /* @__PURE__ */ new Map(),
848
1151
  // 角色
@@ -853,866 +1156,496 @@ const Q = {
853
1156
  trans: [],
854
1157
  // 单选
855
1158
  single: ""
856
- }), H = Ue({
1159
+ }), R = _e({
857
1160
  indeterminate: !1,
858
1161
  checkAll: 0
859
- }), de = (a) => u.org.has(a) || u.dep.has(a) || u.user.has(a) || u.role.has(a) || u.post.has(a), pe = _t.debounce(X, 300), te = O(() => {
860
- const a = Array.from(u.org.values()), n = Array.from(u.dep.values()), e = Array.from(u.role.values()), g = Array.from(u.user.values()), S = Array.from(u.post.values());
861
- return V.value = [...a, ...n, ...e, ...S, ...g], {
862
- list: [...a, ...n, ...e, ...g, ...S],
863
- org: {
864
- list: a,
865
- len: a.length,
866
- deps: a
867
- },
868
- dep: {
869
- list: n,
870
- len: n.length,
871
- deps: n
872
- },
1162
+ }), Y = (l) => A.group.has(l) || A.user.has(l) || A.role.has(l) || A.post.has(l), ae = tt.debounce(P, 300), M = V(() => {
1163
+ const l = Array.from(A.group.values()), c = Array.from(A.role.values()), y = Array.from(A.user.values()), g = Array.from(A.post.values());
1164
+ return u.value = [...c, ...g, ...y, ...l], {
1165
+ list: [...c, ...y, ...g, ...l],
873
1166
  role: {
874
- list: e,
875
- len: e.length
1167
+ list: c,
1168
+ len: c.length
876
1169
  },
877
1170
  user: {
1171
+ list: y,
1172
+ len: y.length
1173
+ },
1174
+ post: {
878
1175
  list: g,
879
1176
  len: g.length
880
1177
  },
881
- post: {
882
- list: S,
883
- len: S.length
1178
+ groups: {
1179
+ list: l,
1180
+ len: l.length
884
1181
  }
885
1182
  };
886
- }), z = O(
887
- () => {
888
- const a = s.chooseType.map((e) => e.toLocaleLowerCase());
889
- let n = [...a];
890
- return a.includes("dep") && (n = [...n, "organization", "dept"]), a.includes("dep_user") && (n = [...n, "user"]), n;
891
- }
892
- ), Re = O(
893
- () => z.value.includes(U.dep) && !z.value.includes(U.user) && !z.value.includes(U.org)
894
- ), we = O(
895
- () => z.value.includes(U.user) && !z.value.includes(U.dep) && !z.value.includes(U.org)
896
- ), et = O(() => z.value.includes(U.org) && !z.value.includes(U.dep) && !z.value.includes(U.user)), tt = O(() => !R.value.length), Ce = O(
897
- () => !s.max || te.value.list.length < s.max
898
- ), lt = (a) => [p.value.dep, p.value.organization].includes(a[t.value.type]) ? a.hasOwnProperty("disabled") : !1, D = A([]), at = (a) => {
899
- D.value = a, D.value.forEach((n) => {
900
- n.readonly = n == null ? void 0 : n.disabled;
1183
+ }), Re = V(() => [...a.chooseType.map((y) => y.toLocaleLowerCase())]), z = S([]), Me = (l) => {
1184
+ z.value = l, z.value.forEach((c) => {
1185
+ c.readonly = c == null ? void 0 : c.disabled;
901
1186
  });
902
- }, me = i, Te = A(!1), Se = (a = !1) => {
903
- var e;
904
- const n = (e = s == null ? void 0 : s.userList) != null && e.length ? K.cloneDeep([...s == null ? void 0 : s.organizationList, ...s == null ? void 0 : s.userList, ...s == null ? void 0 : s.depList]) : [...y.value, ...F.value, ...I.value];
905
- return !a && at(n), n;
1187
+ }, ne = t, ce = S(!1), Ae = (l = !1) => {
1188
+ var y;
1189
+ const c = (y = a == null ? void 0 : a.userList) != null && y.length ? H.cloneDeep([...a == null ? void 0 : a.userList, ...a == null ? void 0 : a.groupList]) : [...C.value, ...k.value];
1190
+ return !l && Me(c), c;
906
1191
  };
907
- ae(
908
- () => s.show,
909
- async (a) => {
910
- var n;
911
- if (Te.value = a, a) {
912
- P.value = s.pid, w.value = ((n = s.org) == null ? void 0 : n.elementId) || s.orgPid, !s.userList.length && !s.depList.length && !s.roleList.length && !s.postList.length && !s.organizationList.length ? await X() : (I.value = s.userList, F.value = s.depList, M.value = s.roleList, j.value = s.postList, y.value = s.organizationList), u.trans = [], H.checkAll = 0, H.indeterminate = !1;
913
- const e = Se(!0);
914
- for (const S of e)
915
- de(S[t.value.id]) && u.trans.push(S[t.value.id]);
916
- const g = e.length === u.trans.length;
917
- H.indeterminate = !!(e.length && !g), H.checkAll = Number(e.length && g), Fe(() => {
918
- var S;
919
- (S = s.modelValue) != null && S.length ? s.modelValue.forEach((Y) => {
920
- ce(Y), s.multiple ? u.trans.push(Y[t.value.id]) : u.single = Y[t.value.id];
921
- }) : ne();
1192
+ X(
1193
+ () => a.show,
1194
+ async (l) => {
1195
+ var c;
1196
+ if (ce.value = l, l) {
1197
+ L.value = ((c = a.org) == null ? void 0 : c.elementId) || a.orgPid, !a.userList.length && !a.groupList.length && !a.roleList.length && !a.postList.length ? await P() : (k.value = a.userList, C.value = a.groupList, F.value = a.roleList, D.value = a.postList), A.trans = [], R.checkAll = 0, R.indeterminate = !1;
1198
+ const y = Ae(!0);
1199
+ for (const _ of y)
1200
+ Y(_[n.value.id]) && A.trans.push(_[n.value.id]);
1201
+ const g = y.length === A.trans.length;
1202
+ R.indeterminate = !!(y.length && !g), R.checkAll = Number(y.length && g), Le(() => {
1203
+ var _;
1204
+ (_ = a.modelValue) != null && _.length ? a.modelValue.forEach((G) => {
1205
+ J(G), a.multiple ? A.trans.push(G[n.value.id]) : A.single = G[n.value.id];
1206
+ }) : ee();
922
1207
  });
923
1208
  } else
924
- ne();
1209
+ ee();
925
1210
  }
926
- ), Ke(() => {
927
- let a;
928
- if (Re.value || we.value) {
929
- const e = I.value.length, g = F.value.length;
930
- a = Re.value ? g : we.value ? e : e + e;
931
- } else
932
- a = D.value.length;
933
- const n = u.trans.length;
934
- H.indeterminate = u.trans.length ? n !== a : !1, H.checkAll = +(a !== 0 && n === a);
1211
+ ), Ve(() => {
1212
+ let l;
1213
+ l = z.value.length;
1214
+ const c = A.trans.length;
1215
+ R.indeterminate = A.trans.length ? c !== l : !1, R.checkAll = +(l !== 0 && c === l);
935
1216
  });
936
- const oe = (a) => {
937
- if (a) {
938
- if (u.single = "", a[t.value.id]) {
939
- const n = u.trans.findIndex(
940
- (e) => e === a[t.value.id]
1217
+ const q = (l) => {
1218
+ if (l) {
1219
+ if (A.single = "", l[n.value.id]) {
1220
+ const c = A.trans.findIndex(
1221
+ (y) => y === l[n.value.id]
941
1222
  );
942
- n !== -1 && u.trans.splice(n, 1);
1223
+ c !== -1 && A.trans.splice(c, 1);
943
1224
  }
944
- switch (a[t.value.type]) {
945
- case p.value.dep:
946
- return u.dep.delete(a[t.value.id]);
947
- case p.value.user:
948
- return u.user.delete(a[t.value.id]);
949
- case p.value.role:
950
- return u.role.delete(a[t.value.id]);
951
- case p.value.post:
952
- return u.post.delete(a[t.value.id]);
953
- case p.value.organization:
954
- return u.org.delete(a[t.value.id]);
1225
+ switch (l[n.value.type]) {
1226
+ case e.value.user:
1227
+ return A.user.delete(l[n.value.id]);
1228
+ case e.value.role:
1229
+ return A.role.delete(l[n.value.id]);
1230
+ case e.value.post:
1231
+ return A.post.delete(l[n.value.id]);
1232
+ case e.value.group:
1233
+ return A.group.delete(l[n.value.id]);
955
1234
  default:
956
1235
  return;
957
1236
  }
958
1237
  }
959
- }, He = (a) => {
960
- oe(a);
961
- }, ce = (a) => {
962
- if (!de(a[t.value.id])) {
963
- const n = {
964
- ...a
1238
+ }, Se = (l) => {
1239
+ q(l);
1240
+ }, J = (l) => {
1241
+ if (!Y(l[n.value.id])) {
1242
+ const c = {
1243
+ ...l
965
1244
  // readonly: item.disabled
966
1245
  };
967
- switch (a[t.value.type]) {
968
- case p.value.dep:
969
- return u.dep.set(a[t.value.id], n);
970
- case p.value.user:
971
- return u.user.set(a[t.value.id], n);
972
- case p.value.role:
973
- return u.role.set(a[t.value.id], n);
974
- case p.value.post:
975
- return u.post.set(a[t.value.id], n);
976
- case p.value.organization:
977
- return u.org.set(a[t.value.id], n);
1246
+ switch (l[n.value.type]) {
1247
+ case e.value.user:
1248
+ return A.group.set(l[n.value.id], c);
1249
+ case e.value.role:
1250
+ return A.role.set(l[n.value.id], c);
1251
+ case e.value.post:
1252
+ return A.post.set(l[n.value.id], c);
1253
+ case e.value.group:
1254
+ return A.group.set(l[n.value.id], c);
978
1255
  default:
979
1256
  return;
980
1257
  }
981
1258
  }
982
- };
983
- ae(
984
- () => u.trans,
985
- (a) => {
986
- if (!a.length)
987
- D.value.forEach((n) => {
988
- n.disabled = !1;
1259
+ }, We = (l) => [e.value.group].includes(
1260
+ l[n.value.type]
1261
+ ) ? l.hasOwnProperty("disabled") : !1;
1262
+ X(
1263
+ () => A.trans,
1264
+ (l) => {
1265
+ if (!l.length)
1266
+ z.value.forEach((c) => {
1267
+ c.disabled = !1;
989
1268
  try {
990
- s.multiple && oe(n);
1269
+ a.multiple && q(c);
991
1270
  } catch {
992
1271
  }
993
1272
  });
994
1273
  else {
995
- const n = D.value.filter(
996
- (g) => !a.includes(g[t.value.id])
1274
+ const c = z.value.filter(
1275
+ (g) => !l.includes(g[n.value.id])
997
1276
  );
998
- for (const g of n)
999
- g.disabled = !1, s.multiple && oe(g);
1000
- const e = D.value.filter(
1001
- (g) => a.includes(g[t.value.id])
1277
+ for (const g of c)
1278
+ g.disabled = !1, a.multiple && q(g);
1279
+ const y = z.value.filter(
1280
+ (g) => l.includes(g[n.value.id])
1002
1281
  );
1003
- for (const g of e)
1004
- g.disabled = lt(g), ce(g);
1282
+ for (const g of y)
1283
+ g.disabled = We(g), J(g);
1005
1284
  }
1006
1285
  },
1007
1286
  { deep: !0 }
1008
- ), ae(
1009
- () => u.single,
1010
- (a) => {
1011
- if (a) {
1012
- const n = D.value.find((e) => e[t.value.id] === a);
1013
- n && (u.dep.clear(), u.user.clear(), u.role.clear(), u.post.clear(), u.org.clear(), u.trans = [], Fe(() => {
1014
- ce(n);
1287
+ ), X(
1288
+ () => A.single,
1289
+ (l) => {
1290
+ if (l) {
1291
+ const c = z.value.find((y) => y[n.value.id] === l);
1292
+ c && (A.user.clear(), A.role.clear(), A.post.clear(), A.group.clear(), A.trans = [], Le(() => {
1293
+ J(c);
1015
1294
  }));
1016
1295
  }
1017
1296
  }
1018
1297
  );
1019
- const qe = (a) => {
1020
- if (a) {
1021
- let n = [];
1022
- if (z.value.includes("dep") || z.value.includes("dep_user")) {
1023
- const e = D.value.filter(
1024
- (g) => g[t.value.type].toLocaleUpperCase() === p.value[U.dep].toLocaleUpperCase()
1025
- );
1026
- n = [...n, ...e];
1027
- }
1028
- if (z.value.includes("user") || z.value.includes("dep_user")) {
1029
- const e = D.value.filter(
1030
- (g) => g[t.value.type].toLocaleUpperCase() === p.value[U.user].toLocaleUpperCase()
1031
- );
1032
- n = [...n, ...e];
1033
- }
1034
- if (z.value.includes("organization")) {
1035
- const e = D.value.filter(
1036
- (g) => g[t.value.type].toLocaleUpperCase() === p.value[U.org].toLocaleUpperCase()
1037
- );
1038
- n = [...n, ...e];
1039
- }
1040
- n.forEach((e) => {
1041
- !u.trans.includes(e[t.value.id]) && u.trans.push(e[t.value.id]);
1042
- });
1043
- } else
1044
- D.value.forEach((n) => {
1045
- const e = u.trans.findIndex((g) => g === n[t.value.id]);
1046
- e >= 0 && u.trans.splice(e, 1);
1047
- });
1048
- }, xe = (a) => {
1049
- a[t.value.type] === p.value.organization ? (w.value = a == null ? void 0 : a.elementId, P.value = "") : (w.value = "", P.value = a == null ? void 0 : a.elementId), X(), R.value.push(a);
1050
- }, st = () => {
1051
- const a = R.value.length - 2, n = a < 0 ? 0 : a, e = R.value[n];
1052
- e[t.value.type] === p.value.organization ? (w.value = a < 0 ? "root" : (e == null ? void 0 : e.elementId) || (e == null ? void 0 : e.id), P.value = "") : (w.value = "", P.value = a < 0 ? "" : (e == null ? void 0 : e.elementId) || (e == null ? void 0 : e.id)), X(), R.value.pop();
1053
- }, Ae = O(() => R.value.length), ot = (a, n) => {
1054
- !n && !s.topLink || n !== Ae.value - 1 && (a[t.value.type] === p.value.organization ? (w.value = a == null ? void 0 : a.elementId, P.value = "") : (w.value = "", P.value = a == null ? void 0 : a.elementId), X(), R.value.splice(n + 1));
1055
- }, nt = O(() => s.chooseType.includes("role") && s.chooseType.length === 1), rt = O(() => s.chooseType.includes("post") && s.chooseType.length === 1), ke = A(s.tabs[0]), le = A(s.tabs[0]);
1056
- Ke(() => (le.value = nt.value ? s.tabs[1] : rt.value ? s.tabs[2] : ke.value, le.value));
1057
- const ne = () => {
1058
- var a;
1059
- u.dep.clear(), u.user.clear(), u.role.clear(), u.post.clear(), u.org.clear(), u.trans = [], Ie.value = [], ze.value = [], ke.value = s.tabs[0], le.value = s.tabs[0], r.value = "", P.value = s.pid, w.value = ((a = s.org) == null ? void 0 : a.elementId) || s.orgPid, u.single = "", V.value = [];
1060
- }, it = () => {
1061
- var a;
1062
- me(
1298
+ const He = (l) => {
1299
+ L.value = l == null ? void 0 : l.elementId, P(), O.value.push(l);
1300
+ }, we = V(() => O.value.length), je = (l, c) => {
1301
+ !c && !a.topLink || c !== we.value - 1 && (L.value = l == null ? void 0 : l.elementId, P(), O.value.splice(c + 1));
1302
+ }, Ge = V(
1303
+ () => a.chooseType.includes("role") && a.chooseType.length === 1
1304
+ ), Qe = V(
1305
+ () => a.chooseType.includes("post") && a.chooseType.length === 1
1306
+ ), ie = S(a.tabs[0]), Z = S(a.tabs[0]);
1307
+ Ve(() => (Z.value = Ge.value ? a.tabs[1] : Qe.value ? a.tabs[2] : ie.value, Z.value));
1308
+ const ee = () => {
1309
+ A.user.clear(), A.role.clear(), A.post.clear(), A.group.clear(), A.trans = [], fe.value = [], ve.value = [], ie.value = a.tabs[0], Z.value = a.tabs[0], s.value = "", L.value = a.orgPid, O.value.splice(1, O.value.length), A.single = "", u.value = [];
1310
+ }, Xe = () => {
1311
+ var l;
1312
+ ne(
1063
1313
  "ok",
1064
- K.cloneDeep({
1314
+ H.cloneDeep({
1065
1315
  // 所有选项、部门、人员、角色分别列出
1066
- ...te.value,
1316
+ ...M.value,
1067
1317
  // 排序后的列表
1068
- sort: V.value
1318
+ sort: u.value
1069
1319
  })
1070
- ), me("update:modelValue", K.cloneDeep(((a = te.value) == null ? void 0 : a.list) || [])), me("update:show", !1), ne();
1071
- }, je = () => {
1072
- me("update:show", !1), ne();
1320
+ ), ne("update:modelValue", H.cloneDeep(((l = M.value) == null ? void 0 : l.list) || [])), ne("update:show", !1), ee();
1321
+ }, Ue = () => {
1322
+ ne("update:show", !1), ee();
1073
1323
  };
1074
- k({ handClear: ne, handRomeve: He, handDelete: oe });
1075
- const ut = O(() => {
1076
- const a = z.value;
1077
- return !!((a.includes("post") || a.includes("role")) && a.length > 1);
1078
- }), dt = O(() => [
1079
- { label: "group", name: "组织架构" },
1080
- { label: "role", name: "角色列表" },
1081
- { label: "post", name: "岗位列表" }
1082
- ].filter((a) => s.tabs.includes(a.label))), We = O(
1083
- () => `${(typeof s.width == "string" ? Number.parseInt(s.width) : s.width) / 2 - 30}px`
1084
- ), Oe = O(
1085
- () => `${typeof s.height == "string" ? Number.parseInt(s.height) : s.height}px`
1086
- ), Ge = () => {
1087
- s.multiple || (u.post.clear(), u.role.clear(), u.user.clear(), u.dep.clear(), u.single = "");
1088
- }, Ie = A([]), pt = (a, n) => {
1089
- s.multiple || (u.single = "");
1090
- const e = s.multiple ? a : [a];
1091
- if (!e.length) {
1092
- u.role.clear();
1324
+ v({ handClear: ee, handRomeve: Se, handDelete: q });
1325
+ const $e = V(() => {
1326
+ const l = Re.value;
1327
+ return !!((l.includes("post") || l.includes("role")) && l.length > 1);
1328
+ }), ze = V(() => [
1329
+ { name: "group", label: "组织架构" },
1330
+ { name: "role", label: "角色列表" },
1331
+ { name: "post", label: "岗位列表" }
1332
+ ].filter((l) => a.tabs.includes(l.name))), Be = V(
1333
+ () => `${typeof a.height == "string" ? Number.parseInt(a.height) : a.height}px`
1334
+ ), he = () => {
1335
+ a.multiple || (A.post.clear(), A.role.clear(), A.user.clear(), A.group.clear(), A.single = "");
1336
+ }, Ee = S([]), qe = (l, c) => {
1337
+ a.multiple || (A.single = "");
1338
+ const y = a.multiple ? l : [l];
1339
+ if (!y.length) {
1340
+ A.group.clear();
1093
1341
  return;
1094
1342
  }
1095
- Ge(), n.forEach((g) => {
1096
- e != null && e.includes(g[t.value.id]) ? ce(g) : oe(g);
1343
+ he(), c.forEach((g) => {
1344
+ y != null && y.includes(g[n.value.id]) ? J(g) : q(g);
1097
1345
  });
1098
1346
  };
1099
- ae(
1100
- () => te.value.role.len,
1101
- (a) => {
1102
- Ie.value = K.cloneDeep(te.value.role.list);
1347
+ X(
1348
+ () => M.value.groups.len,
1349
+ (l) => {
1350
+ Ee.value = H.cloneDeep(M.value.groups.list);
1103
1351
  }
1104
1352
  );
1105
- const ze = A([]), ct = (a, n) => {
1106
- s.multiple || (u.single = "");
1107
- const e = s.multiple ? a : [a];
1108
- if (!e.length) {
1109
- u.post.clear();
1353
+ const fe = S([]), Ze = (l, c) => {
1354
+ a.multiple || (A.single = "");
1355
+ const y = a.multiple ? l : [l];
1356
+ if (!y.length) {
1357
+ A.role.clear();
1110
1358
  return;
1111
1359
  }
1112
- Ge(), n.forEach((g) => {
1113
- e != null && e.includes(g[t.value.id]) ? ce(g) : oe(g);
1360
+ he(), c.forEach((g) => {
1361
+ y != null && y.includes(g[n.value.id]) ? J(g) : q(g);
1114
1362
  });
1115
1363
  };
1116
- return ae(
1117
- () => te.value.post.len,
1118
- (a) => {
1119
- ze.value = K.cloneDeep(te.value.post.list);
1364
+ X(
1365
+ () => M.value.role.len,
1366
+ (l) => {
1367
+ fe.value = H.cloneDeep(M.value.role.list);
1120
1368
  }
1121
- ), ae(
1122
- () => r.value,
1123
- (a) => {
1124
- pe("");
1369
+ );
1370
+ const ve = S([]), Ke = (l, c) => {
1371
+ a.multiple || (A.single = "");
1372
+ const y = a.multiple ? l : [l];
1373
+ if (!y.length) {
1374
+ A.post.clear();
1375
+ return;
1125
1376
  }
1126
- ), (a, n) => (o(), b(f(mt), {
1127
- modelValue: Te.value,
1128
- "onUpdate:modelValue": n[6] || (n[6] = (e) => Te.value = e),
1129
- title: a.title,
1130
- "destroy-on-close": "",
1131
- "close-on-click-modal": !1,
1132
- "close-on-click-escape": !1,
1133
- draggable: "",
1134
- "align-center": "",
1135
- width: typeof a.width == "string" ? a.width : `${a.width}%`,
1136
- class: "p_p_picker-dialog",
1137
- "modal-class": "p_p_picker-dialog-modal",
1138
- onClose: je
1139
- }, {
1140
- footer: L(() => [
1141
- h("span", la, [
1142
- $(f(se), {
1143
- onClick: Z(je, ["stop"])
1144
- }, {
1145
- default: L(() => [
1146
- B("取消")
1147
- ]),
1148
- _: 1
1149
- /* STABLE */
1150
- }),
1151
- $(f(se), {
1152
- type: "primary",
1153
- onClick: Z(it, ["stop"])
1154
- }, {
1155
- default: L(() => [
1156
- B(" 确定 ")
1157
- ]),
1158
- _: 1
1159
- /* STABLE */
1160
- })
1161
- ])
1162
- ]),
1163
- default: L(() => [
1164
- h(
1165
- "div",
1166
- {
1167
- class: "dep-use-picker",
1168
- style: ie({ height: Oe.value })
1169
- },
1170
- [
1171
- h("div", zl, [
1172
- h("div", null, [
1173
- $(f(kt), {
1174
- modelValue: r.value,
1175
- "onUpdate:modelValue": n[0] || (n[0] = (e) => r.value = e),
1176
- clearable: "",
1177
- placeholder: a.placeholder,
1178
- "prefix-icon": Gt,
1179
- style: ie({ width: We.value })
1180
- }, null, 8, ["modelValue", "placeholder", "style"]),
1181
- ut.value ? (o(), b(f($e), {
1182
- key: 0,
1183
- modelValue: ke.value,
1184
- "onUpdate:modelValue": n[1] || (n[1] = (e) => ke.value = e),
1185
- class: "ik-picker-tab",
1186
- style: ie({ width: We.value })
1187
- }, {
1188
- default: L(() => [
1189
- (o(!0), d(
1190
- x,
1191
- null,
1192
- q(dt.value, (e) => (o(), b(f(Lt), {
1193
- label: e.label,
1194
- key: e.label
1195
- }, {
1196
- default: L(() => [
1197
- B(
1198
- C(e.name),
1199
- 1
1200
- /* TEXT */
1201
- )
1202
- ]),
1203
- _: 2
1204
- /* DYNAMIC */
1205
- }, 1032, ["label"]))),
1206
- 128
1207
- /* KEYED_FRAGMENT */
1208
- ))
1209
- ]),
1210
- _: 1
1211
- /* STABLE */
1212
- }, 8, ["modelValue", "style"])) : c("v-if", !0)
1377
+ he(), c.forEach((g) => {
1378
+ y != null && y.includes(g[n.value.id]) ? J(g) : q(g);
1379
+ });
1380
+ };
1381
+ return X(
1382
+ () => M.value.post.len,
1383
+ (l) => {
1384
+ ve.value = H.cloneDeep(M.value.post.list);
1385
+ }
1386
+ ), X(
1387
+ () => s.value,
1388
+ (l) => {
1389
+ ae("");
1390
+ }
1391
+ ), (l, c) => {
1392
+ const y = xe("el-tab-pane"), g = xe("el-tabs");
1393
+ return o(), E(x(lt), {
1394
+ modelValue: ce.value,
1395
+ "onUpdate:modelValue": c[2] || (c[2] = (_) => ce.value = _),
1396
+ title: l.title,
1397
+ "destroy-on-close": "",
1398
+ "close-on-click-modal": !1,
1399
+ "close-on-click-escape": !1,
1400
+ draggable: "",
1401
+ "align-center": "",
1402
+ width: typeof l.width == "string" ? l.width : `${l.width}%`,
1403
+ class: "p_p_picker-dialog",
1404
+ "modal-class": "p_p_picker-dialog-modal-user",
1405
+ onClose: Ue
1406
+ }, {
1407
+ footer: b(() => [
1408
+ p("span", Hl, [
1409
+ w(x(ge), {
1410
+ onClick: se(Ue, ["stop"])
1411
+ }, {
1412
+ default: b(() => [
1413
+ $("取消")
1213
1414
  ]),
1214
- c(" 过滤 "),
1215
- le.value === f(ge).group ? (o(), d("div", Vl, [
1216
- c(" 面包屑 全选 "),
1217
- $(f(bt), {
1218
- separator: ">",
1219
- class: _e(["banner", { "top-unlink": !a.topLink }])
1220
- }, {
1221
- default: L(() => [
1222
- Ae.value ? (o(!0), d(
1223
- x,
1224
- { key: 0 },
1225
- q(f(R), (e, g) => (o(), b(f($t), {
1226
- key: e[t.value.id],
1227
- onClick: Z((S) => ot(e, g), ["stop"])
1228
- }, {
1229
- default: L(() => [
1230
- B(
1231
- C(e[t.value.name]),
1232
- 1
1233
- /* TEXT */
1234
- )
1235
- ]),
1236
- _: 2
1237
- /* DYNAMIC */
1238
- }, 1032, ["onClick"]))),
1239
- 128
1240
- /* KEYED_FRAGMENT */
1241
- )) : c("v-if", !0)
1242
- ]),
1243
- _: 1
1244
- /* STABLE */
1245
- }, 8, ["class"]),
1246
- c(" 全选框 "),
1247
- a.multiple ? (o(), d("div", El, [
1248
- $(f(ee), {
1249
- modelValue: H.checkAll,
1250
- "onUpdate:modelValue": n[2] || (n[2] = (e) => H.checkAll = e),
1251
- indeterminate: H.indeterminate,
1252
- "true-label": 1,
1253
- "false-label": 0,
1254
- disabled: !a.multiple,
1255
- onChange: qe,
1256
- onInput: qe
1415
+ _: 1
1416
+ /* STABLE */
1417
+ }),
1418
+ w(x(ge), {
1419
+ type: "primary",
1420
+ onClick: se(Xe, ["stop"])
1421
+ }, {
1422
+ default: b(() => [
1423
+ $(" 确定 ")
1424
+ ]),
1425
+ _: 1
1426
+ /* STABLE */
1427
+ })
1428
+ ])
1429
+ ]),
1430
+ default: b(() => [
1431
+ p(
1432
+ "div",
1433
+ {
1434
+ class: "dep-use-picker",
1435
+ style: De({ height: Be.value })
1436
+ },
1437
+ [
1438
+ p("div", Bl, [
1439
+ p("div", null, [
1440
+ w(x(at), {
1441
+ modelValue: s.value,
1442
+ "onUpdate:modelValue": c[0] || (c[0] = (_) => s.value = _),
1443
+ clearable: "",
1444
+ placeholder: l.placeholder,
1445
+ "suffix-icon": At
1446
+ }, null, 8, ["modelValue", "placeholder"]),
1447
+ $e.value ? (o(), E(g, {
1448
+ key: 0,
1449
+ modelValue: ie.value,
1450
+ "onUpdate:modelValue": c[1] || (c[1] = (_) => ie.value = _),
1451
+ class: "ik-picker-tab"
1257
1452
  }, {
1258
- default: L(() => [
1259
- B("全选")
1453
+ default: b(() => [
1454
+ (o(!0), d(
1455
+ B,
1456
+ null,
1457
+ W(ze.value, (_) => (o(), E(y, {
1458
+ label: _.label,
1459
+ name: _.name,
1460
+ key: _.label
1461
+ }, null, 8, ["label", "name"]))),
1462
+ 128
1463
+ /* KEYED_FRAGMENT */
1464
+ ))
1260
1465
  ]),
1261
1466
  _: 1
1262
1467
  /* STABLE */
1263
- }, 8, ["modelValue", "indeterminate", "disabled"]),
1264
- Ae.value > 1 ? he((o(), b(
1265
- f(se),
1266
- {
1267
- key: 0,
1268
- link: "",
1269
- type: "primary",
1270
- onClick: Z(st, ["stop"])
1271
- },
1272
- {
1273
- default: L(() => [
1274
- B("上一级")
1275
- ]),
1276
- _: 1
1277
- /* STABLE */
1278
- },
1279
- 512
1280
- /* NEED_PATCH */
1281
- )), [
1282
- [Xe, !tt.value]
1283
- ]) : c("v-if", !0)
1284
- ])) : c("v-if", !0)
1285
- ])) : c("v-if", !0),
1286
- c(" 左侧列表 "),
1287
- c(" 部门&人员 "),
1288
- le.value === f(ge).group ? (o(), d(
1289
- x,
1290
- { key: 1 },
1291
- [
1292
- D.value.length ? he((o(), d("ul", Ul, [
1293
- c(" +++++++++++++++++++++++ 多选 ++++++++++++++++++++++ "),
1294
- a.multiple ? (o(), b(f(Be), {
1295
- key: 0,
1296
- modelValue: u.trans,
1297
- "onUpdate:modelValue": n[3] || (n[3] = (e) => u.trans = e)
1298
- }, {
1299
- default: L(() => [
1300
- c(" <template> "),
1301
- (o(!0), d(
1302
- x,
1303
- null,
1304
- q(y.value, (e) => (o(), d("li", {
1305
- key: e[t.value.id]
1306
- }, [
1307
- z.value.includes(f(U).org) ? (o(), b(f(ee), {
1308
- key: 1,
1309
- label: e[t.value.id],
1310
- disabled: !Ce.value || (e == null ? void 0 : e.readonly)
1311
- }, {
1312
- default: L(() => [
1313
- h("div", Dl, [
1314
- c(" 部门icon前缀 "),
1315
- $(ye),
1316
- h("p", {
1317
- title: e[t.value.name]
1318
- }, C(e[t.value.name]), 9, Bl)
1319
- ])
1320
- ]),
1321
- _: 2
1322
- /* DYNAMIC */
1323
- }, 1032, ["label", "disabled"])) : (o(), d("div", Fl, [
1324
- c(" 部门icon前缀 "),
1325
- $(ye),
1326
- h("p", {
1327
- title: e[t.value.name]
1328
- }, C(e[t.value.name]), 9, Nl)
1329
- ])),
1330
- a.children ? (o(), d("div", Ml, [
1331
- [p.value.organization, p.value.dep, p.value.role].includes(
1332
- e[t.value.type]
1333
- ) ? (o(), b(f(se), {
1334
- key: 0,
1335
- link: "",
1336
- type: "primary",
1337
- onClick: Z((g) => xe(e), ["stop"]),
1338
- disabled: e.disabled
1339
- }, {
1340
- icon: L(() => [
1341
- $(Ee)
1342
- ]),
1343
- default: L(() => [
1344
- B(" 下级 ")
1345
- ]),
1346
- _: 2
1347
- /* DYNAMIC */
1348
- }, 1032, ["onClick", "disabled"])) : c("v-if", !0)
1349
- ])) : c("v-if", !0)
1350
- ]))),
1351
- 128
1352
- /* KEYED_FRAGMENT */
1353
- )),
1354
- c(" </template> "),
1355
- (!we.value || a.showDep) && !et.value ? (o(!0), d(
1356
- x,
1357
- { key: 0 },
1358
- q(F.value, (e) => (o(), d("li", {
1359
- key: e[t.value.id]
1360
- }, [
1361
- a.chooseType.includes(f(U).dep) || a.chooseType.includes(f(U).dep_user) ? (o(), b(f(ee), {
1362
- key: 0,
1363
- label: e[t.value.id],
1364
- disabled: !Ce.value || (e == null ? void 0 : e.readonly)
1365
- }, {
1366
- default: L(() => [
1367
- h("div", Rl, [
1368
- c(" 部门icon前缀 "),
1369
- $(fe),
1370
- h("p", {
1371
- title: e[t.value.name]
1372
- }, C(e[t.value.name]), 9, Hl)
1373
- ])
1374
- ]),
1375
- _: 2
1376
- /* DYNAMIC */
1377
- }, 1032, ["label", "disabled"])) : (o(), d("div", ql, [
1378
- c(" 部门icon前缀 "),
1379
- $(fe),
1380
- h("p", {
1381
- title: e[t.value.name]
1382
- }, C(e[t.value.name]), 9, jl)
1383
- ])),
1384
- a.children ? (o(), d("div", Wl, [
1385
- [p.value.dep, p.value.role].includes(
1386
- e[t.value.type]
1387
- ) ? (o(), b(f(se), {
1388
- key: 0,
1389
- link: "",
1390
- type: "primary",
1391
- onClick: Z((g) => xe(e), ["stop"]),
1392
- disabled: e.disabled
1393
- }, {
1394
- icon: L(() => [
1395
- $(Ee)
1396
- ]),
1397
- default: L(() => [
1398
- B(" 下级 ")
1399
- ]),
1400
- _: 2
1401
- /* DYNAMIC */
1402
- }, 1032, ["onClick", "disabled"])) : c("v-if", !0)
1403
- ])) : c("v-if", !0)
1404
- ]))),
1405
- 128
1406
- /* KEYED_FRAGMENT */
1407
- )) : c("v-if", !0),
1408
- a.chooseType.includes("user") || a.chooseType.includes("dep_user") ? (o(!0), d(
1409
- x,
1410
- { key: 1 },
1411
- q(I.value, (e) => (o(), d("li", {
1412
- key: e[t.value.id]
1413
- }, [
1414
- $(f(ee), {
1415
- label: e[t.value.id],
1416
- disabled: !Ce.value || (e == null ? void 0 : e.readonly)
1417
- }, {
1418
- default: L(() => {
1419
- var g, S;
1420
- return [
1421
- c(" icon前缀 "),
1422
- p.value.dep === e[t.value.type] ? (o(), b(ue, { key: 0 })) : p.value.user === e[t.value.type] ? (o(), b(f(Le), {
1423
- key: 1,
1424
- size: 30,
1425
- src: m((g = t.value) != null && g.avatar ? e[(S = t.value) == null ? void 0 : S.avatar] : ""),
1426
- icon: be
1427
- }, null, 8, ["src"])) : c("v-if", !0),
1428
- h(
1429
- "span",
1430
- Gl,
1431
- C(e[t.value.name]),
1432
- 1
1433
- /* TEXT */
1434
- )
1435
- ];
1436
- }),
1437
- _: 2
1438
- /* DYNAMIC */
1439
- }, 1032, ["label", "disabled"])
1440
- ]))),
1441
- 128
1442
- /* KEYED_FRAGMENT */
1443
- )) : c("v-if", !0)
1444
- ]),
1445
- _: 1
1446
- /* STABLE */
1447
- }, 8, ["modelValue"])) : (o(), d(
1448
- x,
1449
- { key: 1 },
1450
- [
1451
- c(" +++++++++++++++++++++++ 单选 ++++++++++++++++++++++ "),
1452
- $(f($e), {
1453
- modelValue: u.single,
1454
- "onUpdate:modelValue": n[4] || (n[4] = (e) => u.single = e)
1468
+ }, 8, ["modelValue"])) : m("v-if", !0)
1469
+ ]),
1470
+ m(" 过滤 "),
1471
+ Z.value === x(oe).group ? (o(), d("div", El, [
1472
+ m(" 面包屑 全选 "),
1473
+ w(x(st), {
1474
+ separator: ">",
1475
+ class: pe(["banner", { "top-unlink": !l.topLink }])
1476
+ }, {
1477
+ default: b(() => [
1478
+ we.value ? (o(!0), d(
1479
+ B,
1480
+ { key: 0 },
1481
+ W(x(O), (_, G) => (o(), E(x(ot), {
1482
+ key: _[n.value.id],
1483
+ onClick: se((ye) => je(_, G), ["stop"])
1455
1484
  }, {
1456
- default: L(() => [
1457
- (o(!0), d(
1458
- x,
1459
- null,
1460
- q(D.value, (e) => {
1461
- var g, S, Y;
1462
- return o(), d("li", {
1463
- key: e[t.value.id]
1464
- }, [
1465
- z.value.includes((g = e[t.value.type]) == null ? void 0 : g.toLocaleLowerCase()) ? (o(), b(f(Me), {
1466
- key: 0,
1467
- label: e[t.value.id],
1468
- class: _e({
1469
- readonly: ![p.value.organization, p.value.dep, p.value.user].includes(
1470
- e[t.value.type]
1471
- ),
1472
- "w-full": !0
1473
- }),
1474
- disabled: e.readonly
1475
- }, {
1476
- default: L(() => {
1477
- var re, ve;
1478
- return [
1479
- c(" 部门icon前缀 "),
1480
- p.value.organization === e[t.value.type] ? (o(), b(ye, { key: 0 })) : p.value.dep === e[t.value.type] ? (o(), b(fe, { key: 1 })) : p.value.role === e[t.value.type] ? (o(), b(ue, { key: 2 })) : p.value.user === e[t.value.type] ? (o(), b(f(Le), {
1481
- key: 3,
1482
- size: 30,
1483
- src: m((re = t.value) != null && re.avatar ? e[(ve = t.value) == null ? void 0 : ve.avatar] : ""),
1484
- icon: be
1485
- }, null, 8, ["src"])) : c("v-if", !0),
1486
- h("span", {
1487
- class: "text-over-flow",
1488
- title: e[t.value.name]
1489
- }, C(e[t.value.name]), 9, Jl)
1490
- ];
1491
- }),
1492
- _: 2
1493
- /* DYNAMIC */
1494
- }, 1032, ["label", "class", "disabled"])) : (o(), d(
1495
- x,
1496
- { key: 1 },
1497
- [
1498
- p.value.organization === e[t.value.type] ? (o(), b(ye, { key: 0 })) : p.value.dep === e[t.value.type] ? (o(), b(fe, { key: 1 })) : p.value.role === e[t.value.type] ? (o(), b(ue, { key: 2 })) : p.value.user === e[t.value.type] ? (o(), b(f(Le), {
1499
- key: 3,
1500
- size: 30,
1501
- src: m((S = t.value) != null && S.avatar ? e[(Y = t.value) == null ? void 0 : Y.avatar] : ""),
1502
- icon: be
1503
- }, null, 8, ["src"])) : c("v-if", !0),
1504
- h("span", {
1505
- class: "text-over-flow",
1506
- title: e[t.value.name]
1507
- }, C(e[t.value.name]), 9, Kl)
1508
- ],
1509
- 64
1510
- /* STABLE_FRAGMENT */
1511
- )),
1512
- a.children ? (o(), d("div", Xl, [
1513
- [p.value.organization, p.value.dep, p.value.role].includes(
1514
- e[t.value.type]
1515
- ) ? (o(), b(f(se), {
1516
- key: 0,
1517
- link: "",
1518
- type: "primary",
1519
- onClick: Z((re) => xe(e), ["stop"])
1520
- }, {
1521
- icon: L(() => [
1522
- $(Ee)
1523
- ]),
1524
- default: L(() => [
1525
- B(" 下级 ")
1526
- ]),
1527
- _: 2
1528
- /* DYNAMIC */
1529
- }, 1032, ["onClick"])) : c("v-if", !0)
1530
- ])) : c("v-if", !0)
1531
- ]);
1532
- }),
1533
- 128
1534
- /* KEYED_FRAGMENT */
1535
- ))
1485
+ default: b(() => [
1486
+ $(
1487
+ T(_[n.value.name]),
1488
+ 1
1489
+ /* TEXT */
1490
+ )
1536
1491
  ]),
1537
- _: 1
1538
- /* STABLE */
1539
- }, 8, ["modelValue"])
1540
- ],
1541
- 2112
1542
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
1543
- ))
1544
- ])), [
1545
- [f(Ve), _.value]
1546
- ]) : (o(), d(
1547
- "div",
1548
- Yl,
1549
- C(a.emptyText),
1550
- 1
1551
- /* TEXT */
1552
- ))
1553
- ],
1554
- 64
1555
- /* STABLE_FRAGMENT */
1556
- )) : le.value === f(ge).role ? (o(), d(
1557
- x,
1558
- { key: 2 },
1559
- [
1560
- c(" 角色 "),
1561
- he($(Sl, {
1562
- fixPropOpt: t.value,
1563
- list: M.value,
1564
- max: a.max,
1565
- multiple: a.multiple,
1566
- "hand-list": Ie.value,
1567
- onChange: pt
1568
- }, null, 8, ["fixPropOpt", "list", "max", "multiple", "hand-list"]), [
1569
- [f(Ve), _.value]
1570
- ])
1571
- ],
1572
- 64
1573
- /* STABLE_FRAGMENT */
1574
- )) : le.value === f(ge).post ? (o(), d(
1575
- x,
1576
- { key: 3 },
1577
- [
1578
- c(" 岗位 "),
1579
- he($(Ll, {
1580
- fixPropOpt: t.value,
1581
- list: j.value,
1582
- max: a.max,
1583
- multiple: a.multiple,
1584
- "hand-list": ze.value,
1585
- onChange: ct
1586
- }, null, 8, ["fixPropOpt", "list", "max", "multiple", "hand-list"]), [
1587
- [f(Ve), _.value]
1588
- ])
1589
- ],
1590
- 64
1591
- /* STABLE_FRAGMENT */
1592
- )) : c("v-if", !0)
1593
- ]),
1594
- Zl,
1595
- c(" 已选列表 "),
1596
- h("div", Ql, [
1597
- h("div", ea, [
1598
- ta,
1599
- $(f(se), {
1600
- type: "primary",
1601
- link: "",
1602
- onClick: Z(ne, ["stop"])
1603
- }, {
1604
- default: L(() => [
1605
- B("清空")
1606
- ]),
1607
- _: 1
1608
- /* STABLE */
1609
- })
1492
+ _: 2
1493
+ /* DYNAMIC */
1494
+ }, 1032, ["onClick"]))),
1495
+ 128
1496
+ /* KEYED_FRAGMENT */
1497
+ )) : m("v-if", !0)
1498
+ ]),
1499
+ _: 1
1500
+ /* STABLE */
1501
+ }, 8, ["class"])
1502
+ ])) : m("v-if", !0),
1503
+ m(" 左侧列表 "),
1504
+ m(" 组织架构 "),
1505
+ Z.value === x(oe).group ? re((o(), E(ol, {
1506
+ key: 1,
1507
+ fixPropOpt: n.value,
1508
+ fixTypeOpt: e.value,
1509
+ list: h.value,
1510
+ max: l.max,
1511
+ multiple: l.multiple,
1512
+ "hand-list": Ee.value,
1513
+ imageBaseUrl: a.imageBaseUrl,
1514
+ emptyText: a.emptyText,
1515
+ children: a.children,
1516
+ onHandChild: He,
1517
+ onChange: qe
1518
+ }, null, 8, ["fixPropOpt", "fixTypeOpt", "list", "max", "multiple", "hand-list", "imageBaseUrl", "emptyText", "children"])), [
1519
+ [x(me), I.value]
1520
+ ]) : Z.value === x(oe).role ? (o(), d(
1521
+ B,
1522
+ { key: 2 },
1523
+ [
1524
+ m(" 角色 "),
1525
+ re(w(bl, {
1526
+ fixPropOpt: n.value,
1527
+ fixTypeOpt: e.value,
1528
+ list: F.value,
1529
+ max: l.max,
1530
+ multiple: l.multiple,
1531
+ "hand-list": fe.value,
1532
+ imageBaseUrl: a.imageBaseUrl,
1533
+ emptyText: a.emptyText,
1534
+ onChange: Ze
1535
+ }, null, 8, ["fixPropOpt", "fixTypeOpt", "list", "max", "multiple", "hand-list", "imageBaseUrl", "emptyText"]), [
1536
+ [x(me), I.value]
1537
+ ])
1538
+ ],
1539
+ 64
1540
+ /* STABLE_FRAGMENT */
1541
+ )) : Z.value === x(oe).post ? (o(), d(
1542
+ B,
1543
+ { key: 3 },
1544
+ [
1545
+ m(" 岗位 "),
1546
+ re(w(fl, {
1547
+ fixPropOpt: n.value,
1548
+ fixTypeOpt: e.value,
1549
+ list: D.value,
1550
+ max: l.max,
1551
+ multiple: l.multiple,
1552
+ "hand-list": ve.value,
1553
+ imageBaseUrl: a.imageBaseUrl,
1554
+ emptyText: a.emptyText,
1555
+ onChange: Ke
1556
+ }, null, 8, ["fixPropOpt", "fixTypeOpt", "list", "max", "multiple", "hand-list", "imageBaseUrl", "emptyText"]), [
1557
+ [x(me), I.value]
1558
+ ])
1559
+ ],
1560
+ 64
1561
+ /* STABLE_FRAGMENT */
1562
+ )) : m("v-if", !0)
1610
1563
  ]),
1611
- c(" 已选列表可拖拽 "),
1612
- $(f(Pt), {
1613
- tag: "ul",
1614
- name: "fade",
1615
- "item-key": "elementId",
1616
- modelValue: V.value,
1617
- "onUpdate:modelValue": n[5] || (n[5] = (e) => V.value = e),
1618
- style: ie({ height: `calc(${Oe.value} + 21px)` }),
1619
- animation: f(Q).animation,
1620
- group: f(Q).group,
1621
- disabled: f(Q).disabled,
1622
- ghostClass: f(Q).ghostClass,
1623
- forceFallback: f(Q).ghostClass
1624
- }, {
1625
- item: L(({ element: e }) => [
1626
- $(
1627
- ft,
1628
- {
1629
- type: "transition",
1630
- name: "flip-list"
1631
- },
1632
- {
1633
- default: L(() => [
1634
- h(
1635
- "li",
1636
- {
1637
- class: _e(["list-group-item"]),
1638
- style: ie({
1639
- borderRadius: `${f(Q).itemStyle.radius}px`,
1640
- marginBottom: `${f(Q).itemStyle.bottom}px`,
1641
- backgroundColor: `${f(Q).itemStyle.background}`
1642
- })
1643
- },
1644
- [
1645
- h("div", null, [
1646
- c(" 部门icon前缀 "),
1647
- p.value.organization === e[t.value.type] ? (o(), b(ye, { key: 0 })) : c("v-if", !0),
1648
- p.value.dep === e[t.value.type] ? (o(), b(fe, { key: 1 })) : p.value.role === e[t.value.type] ? (o(), b(ue, { key: 2 })) : p.value.post === e[t.value.type] ? (o(), b(Ne, { key: 3 })) : p.value.user === e[t.value.type] ? (o(), b(f(Le), {
1649
- key: 4,
1650
- size: 30,
1651
- src: m(t.value.avatar ? e[t.value.avatar] : ""),
1652
- icon: be
1653
- }, null, 8, ["src"])) : c("v-if", !0),
1654
- h(
1655
- "span",
1656
- null,
1657
- C(e[t.value.name]),
1658
- 1
1659
- /* TEXT */
1660
- )
1661
- ]),
1662
- he($(Qt, {
1663
- class: "close",
1664
- onClick: Z((g) => He(e), ["stop"])
1665
- }, null, 8, ["onClick"]), [
1666
- [Xe, !(e != null && e.readonly)]
1667
- ])
1668
- ],
1669
- 4
1670
- /* STYLE */
1564
+ Il,
1565
+ m(" 已选列表 "),
1566
+ p("div", Vl, [
1567
+ p("div", Fl, [
1568
+ Dl,
1569
+ w(x(ge), {
1570
+ type: "primary",
1571
+ link: "",
1572
+ onClick: se(ee, ["stop"])
1573
+ }, {
1574
+ default: b(() => [
1575
+ $("清空")
1576
+ ]),
1577
+ _: 1
1578
+ /* STABLE */
1579
+ })
1580
+ ]),
1581
+ p("ul", Nl, [
1582
+ (o(!0), d(
1583
+ B,
1584
+ null,
1585
+ W(u.value, (_) => (o(), d("li", Rl, [
1586
+ p("div", Ml, [
1587
+ m(" icon前缀 "),
1588
+ p("div", Wl, [
1589
+ w(K, {
1590
+ fixTypeOpt: e.value,
1591
+ fixPropOpt: n.value,
1592
+ element: _,
1593
+ imageBaseUrl: a.imageBaseUrl
1594
+ }, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
1595
+ ]),
1596
+ p(
1597
+ "span",
1598
+ null,
1599
+ T(_[n.value.name]),
1600
+ 1
1601
+ /* TEXT */
1671
1602
  )
1672
1603
  ]),
1673
- _: 2
1674
- /* DYNAMIC */
1675
- },
1676
- 1024
1677
- /* DYNAMIC_SLOTS */
1678
- )
1679
- ]),
1680
- _: 1
1681
- /* STABLE */
1682
- }, 8, ["modelValue", "style", "animation", "group", "disabled", "ghostClass", "forceFallback"])
1683
- ])
1684
- ],
1685
- 4
1686
- /* STYLE */
1687
- )
1688
- ]),
1689
- _: 1
1690
- /* STABLE */
1691
- }, 8, ["modelValue", "title", "width"]));
1604
+ re(w(xt, {
1605
+ class: "close",
1606
+ onClick: se((G) => Se(_), ["stop"])
1607
+ }, null, 8, ["onClick"]), [
1608
+ [et, !(_ != null && _.readonly)]
1609
+ ])
1610
+ ]))),
1611
+ 256
1612
+ /* UNKEYED_FRAGMENT */
1613
+ ))
1614
+ ])
1615
+ ])
1616
+ ],
1617
+ 4
1618
+ /* STYLE */
1619
+ )
1620
+ ]),
1621
+ _: 1
1622
+ /* STABLE */
1623
+ }, 8, ["modelValue", "title", "width"]);
1624
+ };
1692
1625
  }
1693
1626
  });
1694
- const sa = Ze(aa), oa = (v) => (yt("data-v-46507da1"), v = v(), gt(), v), na = {
1627
+ const Gl = Ne(jl), Ql = (i) => (ue("data-v-3e2696b2"), i = i(), de(), i), Xl = {
1695
1628
  class: "approveProcess",
1696
1629
  id: "approveProcess"
1697
- }, ra = { class: "node" }, ia = { class: "nodeBg" }, ua = { class: "info" }, da = { class: "explain" }, pa = { key: 0 }, ca = { key: 0 }, va = { key: 1 }, ha = { key: 0 }, fa = { key: 1 }, ya = { class: "personlist" }, ga = { style: { width: "58px" } }, _a = { class: "avatar" }, ma = ["src"], ka = {
1630
+ }, $l = { class: "node" }, zl = { class: "nodeBg" }, ql = { class: "info" }, Zl = { class: "explain" }, Kl = { key: 0 }, Yl = { key: 0 }, Jl = { key: 1 }, ea = { key: 0 }, ta = { key: 1 }, la = { class: "personlist" }, aa = { style: { width: "58px" } }, sa = { class: "avatar" }, oa = ["src"], na = {
1698
1631
  key: 1,
1699
1632
  class: "nodeBg"
1700
- }, La = ["onClick"], ba = ["title"], $a = {
1633
+ }, ia = ["onClick"], ra = ["title"], pa = {
1701
1634
  key: 0,
1702
1635
  class: "sign"
1703
- }, Pa = { key: 0 }, wa = ["onClick"], Ca = {
1636
+ }, ua = { key: 0 }, da = ["onClick"], ca = {
1704
1637
  key: 0,
1705
1638
  class: "required"
1706
- }, Ta = /* @__PURE__ */ oa(() => /* @__PURE__ */ h(
1639
+ }, Aa = /* @__PURE__ */ Ql(() => /* @__PURE__ */ p(
1707
1640
  "i",
1708
1641
  { class: "ikapprove ikapprove-xinzeng" },
1709
1642
  null,
1710
1643
  -1
1711
1644
  /* HOISTED */
1712
- )), Sa = {
1645
+ )), ha = {
1713
1646
  name: "IkApprovalProcess"
1714
- }, xa = /* @__PURE__ */ Pe({
1715
- ...Sa,
1647
+ }, fa = /* @__PURE__ */ le({
1648
+ ...ha,
1716
1649
  props: {
1717
1650
  // 选人组件请求地址
1718
1651
  pickerUrl: {
@@ -1745,8 +1678,8 @@ const sa = Ze(aa), oa = (v) => (yt("data-v-46507da1"), v = v(), gt(), v), na = {
1745
1678
  default: () => ({})
1746
1679
  }
1747
1680
  },
1748
- setup(v, { expose: k }) {
1749
- const i = v, s = De.local.getItem("token") || "Bearer iking", r = Ue({
1681
+ setup(i, { expose: v }) {
1682
+ const t = i, a = Pe.local.getItem("token") || "Bearer iking", s = _e({
1750
1683
  nodeType: {
1751
1684
  发起人节点: "INITIATOR",
1752
1685
  审批节点: "APPROVE",
@@ -1755,14 +1688,14 @@ const sa = Ze(aa), oa = (v) => (yt("data-v-46507da1"), v = v(), gt(), v), na = {
1755
1688
  分支节点: "BRANCH",
1756
1689
  条件节点: "CONDITION",
1757
1690
  结束节点: "END",
1758
- ...i.defaultNodeType
1691
+ ...t.defaultNodeType
1759
1692
  },
1760
1693
  statusWithoutApprover: {
1761
1694
  自动通过: "AUTO_PASS",
1762
1695
  自动拒绝: "AUTO_REJECT",
1763
1696
  自动转交管理员: "TRANSMIT_TO_MANAGER",
1764
1697
  指定人员审批: "SPECIFIED_USER",
1765
- ...i.statusWithoutApprover
1698
+ ...t.statusWithoutApprover
1766
1699
  },
1767
1700
  defaultFile: {
1768
1701
  id: "id",
@@ -1801,99 +1734,99 @@ const sa = Ze(aa), oa = (v) => (yt("data-v-46507da1"), v = v(), gt(), v), na = {
1801
1734
  //自选方式
1802
1735
  singleApproval: "singleApproval",
1803
1736
  //是否单选
1804
- ...i.defaultFieldMap
1737
+ ...t.defaultFieldMap
1805
1738
  },
1806
1739
  multiple: !1,
1807
1740
  chooseType: []
1808
- }), P = async (y) => {
1809
- var _;
1810
- if (y.multiple = !y[r.defaultFile.singleApproval] || y[r.defaultFile.isShowAddCopy], y.handList = y[r.defaultFile.approvePersonList] ? y[r.defaultFile.approvePersonList] : [], y[r.defaultFile.nodeType] === r.nodeType.抄送节点)
1811
- y.handList.forEach((l) => {
1812
- l.elementName || (l.elementName = l.userName, l.elementId = l.userId, l.avatar = l.userAvatar), l.elementType = "USER", l.disabled = !0;
1813
- }), y.chooseType = ["user"], y.userList = [], y.depList = [];
1741
+ }), L = async (h) => {
1742
+ var n;
1743
+ if (h.multiple = !h[s.defaultFile.singleApproval] || h[s.defaultFile.isShowAddCopy], h.handList = h[s.defaultFile.approvePersonList] ? h[s.defaultFile.approvePersonList] : [], h[s.defaultFile.nodeType] === s.nodeType.抄送节点)
1744
+ h.handList.forEach((e) => {
1745
+ e.elementName || (e.elementName = e.userName, e.elementId = e.userId, e.avatar = e.userAvatar), e.elementType = "USER", e.disabled = !0;
1746
+ }), h.chooseType = ["user"], h.userList = [], h.depList = [];
1814
1747
  else
1815
- switch (y[r.defaultFile.initiatorSpecifiedScopeType]) {
1748
+ switch (h[s.defaultFile.initiatorSpecifiedScopeType]) {
1816
1749
  case "ALL":
1817
- y.chooseType = ["dep_user"], y.userList = [], y.depList = [];
1750
+ h.chooseType = ["dep_user"], h.userList = [], h.depList = [];
1818
1751
  break;
1819
1752
  default:
1820
- y.chooseType = ["user"], y.userList = y.userList ? y.userList : (_ = y[r.defaultFile.initiatorSpecifiedScope]) == null ? void 0 : _.map((l) => ({
1821
- ...l,
1822
- elementName: (l == null ? void 0 : l.executorName) || (l == null ? void 0 : l.userName),
1823
- elementId: (l == null ? void 0 : l.executorId) || (l == null ? void 0 : l.userId),
1824
- avatar: ((l == null ? void 0 : l.executorAvatar) || (l == null ? void 0 : l.userAvatar)) && w((l == null ? void 0 : l.executorAvatar) || (l == null ? void 0 : l.userAvatar)) || "",
1753
+ h.chooseType = ["user"], h.userList = h.userList ? h.userList : (n = h[s.defaultFile.initiatorSpecifiedScope]) == null ? void 0 : n.map((e) => ({
1754
+ ...e,
1755
+ elementName: (e == null ? void 0 : e.executorName) || (e == null ? void 0 : e.userName),
1756
+ elementId: (e == null ? void 0 : e.executorId) || (e == null ? void 0 : e.userId),
1757
+ avatar: ((e == null ? void 0 : e.executorAvatar) || (e == null ? void 0 : e.userAvatar)) && k((e == null ? void 0 : e.executorAvatar) || (e == null ? void 0 : e.userAvatar)) || "",
1825
1758
  elementType: "USER"
1826
1759
  }));
1827
1760
  }
1828
- Fe(() => {
1829
- y.isShow = !0;
1761
+ Le(() => {
1762
+ h.isShow = !0;
1830
1763
  });
1831
- }, w = (y) => {
1832
- let _ = "";
1833
- return y.includes("http") || y.includes("https") ? _ = y : _ = i.loadUrl ? `${i.loadUrl}${y}` : `${location.origin + location.pathname}server/oss/download?fileUrl=${y}`, _;
1834
- }, I = (y) => {
1835
- let _ = "";
1836
- switch (y) {
1837
- case r.nodeType.审批节点:
1838
- _ = "ikapprove-shenpi";
1764
+ }, k = (h) => {
1765
+ let n = "";
1766
+ return h.includes("http") || h.includes("https") ? n = h : n = t.loadUrl ? `${t.loadUrl}${h}` : `${location.origin + location.pathname}server/oss/download?fileUrl=${h}`, n;
1767
+ }, C = (h) => {
1768
+ let n = "";
1769
+ switch (h) {
1770
+ case s.nodeType.审批节点:
1771
+ n = "ikapprove-shenpi";
1839
1772
  break;
1840
- case r.nodeType.办理节点:
1841
- _ = "ikapprove-bianji";
1773
+ case s.nodeType.办理节点:
1774
+ n = "ikapprove-bianji";
1842
1775
  break;
1843
- case r.nodeType.抄送节点:
1844
- _ = "ikapprove-chaosong";
1776
+ case s.nodeType.抄送节点:
1777
+ n = "ikapprove-chaosong";
1845
1778
  break;
1846
1779
  default:
1847
- _ = "ikapprove-ziyuan";
1780
+ n = "ikapprove-ziyuan";
1848
1781
  }
1849
- return `ikapprove ${_}`;
1850
- }, F = (y, _) => {
1851
- i.dataList[_].handList = y.list;
1852
- let m = (i.dataList[_][r.defaultFile.approvePersonList] || []).filter((p) => !p.canDele), t = y.list.map((p) => ({
1853
- ...p,
1854
- userName: p.elementName,
1855
- userAvatar: p.avatar,
1782
+ return `ikapprove ${n}`;
1783
+ }, F = (h, n) => {
1784
+ t.dataList[n].handList = h.list;
1785
+ let u = (t.dataList[n][s.defaultFile.approvePersonList] || []).filter((f) => !f.canDele), r = h.list.map((f) => ({
1786
+ ...f,
1787
+ userName: f.elementName,
1788
+ userAvatar: f.avatar,
1856
1789
  canDele: !0
1857
1790
  }));
1858
- i.dataList[_][r.defaultFile.approvePersonList] = m.concat(t);
1859
- }, M = (y, _) => {
1860
- i.dataList[y][r.defaultFile.approvePersonList].splice(_, 1), i.dataList[y].handList = i.dataList[y][r.defaultFile.approvePersonList];
1791
+ t.dataList[n][s.defaultFile.approvePersonList] = u.concat(r);
1792
+ }, D = (h, n) => {
1793
+ t.dataList[h][s.defaultFile.approvePersonList].splice(n, 1), t.dataList[h].handList = t.dataList[h][s.defaultFile.approvePersonList];
1861
1794
  };
1862
- return k({ requiredVerification: () => {
1863
- let y = !0;
1864
- return i.dataList.forEach((_) => {
1865
- var l;
1866
- _.required = !1, _[r.defaultFile.nodeType] == r.nodeType.审批节点 && _[r.defaultFile.isShowAdd] && ((l = _[r.defaultFile.approvePersonList]) != null && l.length || (y = !1, _.required = !0));
1867
- }), y;
1868
- } }), (y, _) => (o(), d("div", na, [
1795
+ return v({ requiredVerification: () => {
1796
+ let h = !0;
1797
+ return t.dataList.forEach((n) => {
1798
+ var e;
1799
+ n.required = !1, n[s.defaultFile.nodeType] == s.nodeType.审批节点 && n[s.defaultFile.isShowAdd] && ((e = n[s.defaultFile.approvePersonList]) != null && e.length || (h = !1, n.required = !0));
1800
+ }), h;
1801
+ } }), (h, n) => (o(), d("div", Xl, [
1869
1802
  (o(!0), d(
1870
- x,
1803
+ B,
1871
1804
  null,
1872
- q(i.dataList, (l, m) => {
1873
- var t, p, V, N;
1805
+ W(t.dataList, (e, u) => {
1806
+ var r, f, O, U;
1874
1807
  return o(), d("div", {
1875
1808
  class: "content",
1876
- key: l.id
1809
+ key: e.id
1877
1810
  }, [
1878
- c(" 审批节点类型 "),
1879
- h("div", ra, [
1880
- h("span", ia, [
1881
- h(
1811
+ m(" 审批节点类型 "),
1812
+ p("div", $l, [
1813
+ p("span", zl, [
1814
+ p(
1882
1815
  "i",
1883
1816
  {
1884
- class: _e(I(l[r.defaultFile.nodeType]))
1817
+ class: pe(C(e[s.defaultFile.nodeType]))
1885
1818
  },
1886
1819
  null,
1887
1820
  2
1888
1821
  /* CLASS */
1889
1822
  )
1890
1823
  ]),
1891
- h(
1824
+ p(
1892
1825
  "div",
1893
1826
  {
1894
1827
  class: "line",
1895
- style: ie({
1896
- "border-left": m === i.dataList.length - 1 ? "" : "2px solid var(--el-border-color)"
1828
+ style: De({
1829
+ "border-left": u === t.dataList.length - 1 ? "" : "2px solid var(--el-border-color)"
1897
1830
  })
1898
1831
  },
1899
1832
  null,
@@ -1901,56 +1834,56 @@ const sa = Ze(aa), oa = (v) => (yt("data-v-46507da1"), v = v(), gt(), v), na = {
1901
1834
  /* STYLE */
1902
1835
  )
1903
1836
  ]),
1904
- h("div", ua, [
1905
- h("div", null, [
1906
- h(
1837
+ p("div", ql, [
1838
+ p("div", null, [
1839
+ p(
1907
1840
  "div",
1908
1841
  null,
1909
- C(l[r.defaultFile.nodeTypeName]),
1842
+ T(e[s.defaultFile.nodeTypeName]),
1910
1843
  1
1911
1844
  /* TEXT */
1912
1845
  ),
1913
- h("div", da, [
1914
- c(" 抄送节点 "),
1915
- l[r.defaultFile.nodeType] == r.nodeType.抄送节点 ? (o(), d("span", pa, [
1916
- l[r.defaultFile.approvePersonList].length ? (o(), d(
1846
+ p("div", Zl, [
1847
+ m(" 抄送节点 "),
1848
+ e[s.defaultFile.nodeType] == s.nodeType.抄送节点 ? (o(), d("span", Kl, [
1849
+ e[s.defaultFile.approvePersonList].length ? (o(), d(
1917
1850
  "span",
1918
- ca,
1919
- C(`抄送${l[r.defaultFile.approvePersonList].length}人`),
1851
+ Yl,
1852
+ T(`抄送${e[s.defaultFile.approvePersonList].length}人`),
1920
1853
  1
1921
1854
  /* TEXT */
1922
- )) : c("v-if", !0),
1923
- l[r.defaultFile.isShowAdd] ? (o(), d("span", va, ",可添加抄送人")) : c("v-if", !0)
1855
+ )) : m("v-if", !0),
1856
+ e[s.defaultFile.isShowAdd] ? (o(), d("span", Jl, ",可添加抄送人")) : m("v-if", !0)
1924
1857
  ])) : (o(), d(
1925
- x,
1858
+ B,
1926
1859
  { key: 1 },
1927
1860
  [
1928
- c(" 审批节点 "),
1929
- h("span", null, [
1930
- c(" 存在审批人时 "),
1931
- (t = l[r.defaultFile.approvePersonList]) != null && t.length ? (o(), d(
1861
+ m(" 审批节点 "),
1862
+ p("span", null, [
1863
+ m(" 存在审批人时 "),
1864
+ (r = e[s.defaultFile.approvePersonList]) != null && r.length ? (o(), d(
1932
1865
  "span",
1933
- ha,
1934
- C(((p = l[r.defaultFile.approvePersonList]) == null ? void 0 : p.length) == 1 ? "1人审批" : `${(V = l[r.defaultFile.approvePersonList]) == null ? void 0 : V.length}人${l[r.defaultFile.multiExecutorTypeName]}`),
1866
+ ea,
1867
+ T(((f = e[s.defaultFile.approvePersonList]) == null ? void 0 : f.length) == 1 ? "1人审批" : `${(O = e[s.defaultFile.approvePersonList]) == null ? void 0 : O.length}人${e[s.defaultFile.multiExecutorTypeName]}`),
1935
1868
  1
1936
1869
  /* TEXT */
1937
- )) : [r.statusWithoutApprover.自动通过, r.statusWithoutApprover.自动拒绝].includes(l[r.defaultFile.approveType]) ? (o(), d(
1870
+ )) : [s.statusWithoutApprover.自动通过, s.statusWithoutApprover.自动拒绝].includes(e[s.defaultFile.approveType]) ? (o(), d(
1938
1871
  "span",
1939
- fa,
1940
- C(l[r.defaultFile.approveTypeName]),
1872
+ ta,
1873
+ T(e[s.defaultFile.approveTypeName]),
1941
1874
  1
1942
1875
  /* TEXT */
1943
- )) : l[r.defaultFile.executorEmptyStrategy] && l[r.defaultFile.executorEmpty] ? (o(), d(
1944
- x,
1876
+ )) : e[s.defaultFile.executorEmptyStrategy] && e[s.defaultFile.executorEmpty] ? (o(), d(
1877
+ B,
1945
1878
  { key: 2 },
1946
1879
  [
1947
- c(" 没有审批人,并且有指定默认审批方式 "),
1948
- h("span", null, [
1949
- B(" 未找到审批人,"),
1950
- h(
1880
+ m(" 没有审批人,并且有指定默认审批方式 "),
1881
+ p("span", null, [
1882
+ $(" 未找到审批人,"),
1883
+ p(
1951
1884
  "span",
1952
1885
  null,
1953
- C(l[r.defaultFile.executorEmptyStrategy] == r.statusWithoutApprover.自动通过 ? "将自动通过" : l[r.defaultFile.executorEmptyStrategy] == r.statusWithoutApprover.自动转交管理员 ? "自动转交给管理员" : l[r.defaultFile.executorEmptyStrategy] == r.statusWithoutApprover.指定人员审批 ? `将自动转给指定成员${l[r.defaultFile.reserveExecutorUsers] && l[r.defaultFile.reserveExecutorUsers][0].userName}` : ""),
1886
+ T(e[s.defaultFile.executorEmptyStrategy] == s.statusWithoutApprover.自动通过 ? "将自动通过" : e[s.defaultFile.executorEmptyStrategy] == s.statusWithoutApprover.自动转交管理员 ? "自动转交给管理员" : e[s.defaultFile.executorEmptyStrategy] == s.statusWithoutApprover.指定人员审批 ? `将自动转给指定成员${e[s.defaultFile.reserveExecutorUsers] && e[s.defaultFile.reserveExecutorUsers][0].userName}` : ""),
1954
1887
  1
1955
1888
  /* TEXT */
1956
1889
  )
@@ -1962,9 +1895,9 @@ const sa = Ze(aa), oa = (v) => (yt("data-v-46507da1"), v = v(), gt(), v), na = {
1962
1895
  "span",
1963
1896
  {
1964
1897
  key: 3,
1965
- class: _e(l.required ? "warn" : "")
1898
+ class: pe(e.required ? "warn" : "")
1966
1899
  },
1967
- "请选择" + C(l[r.defaultFile.nodeType] === r.nodeType.办理节点 ? "办理人" : "审批人"),
1900
+ "请选择" + T(e[s.defaultFile.nodeType] === s.nodeType.办理节点 ? "办理人" : "审批人"),
1968
1901
  3
1969
1902
  /* TEXT, CLASS */
1970
1903
  ))
@@ -1975,54 +1908,54 @@ const sa = Ze(aa), oa = (v) => (yt("data-v-46507da1"), v = v(), gt(), v), na = {
1975
1908
  ))
1976
1909
  ])
1977
1910
  ]),
1978
- h("div", ya, [
1911
+ p("div", la, [
1979
1912
  (o(!0), d(
1980
- x,
1913
+ B,
1981
1914
  null,
1982
- q(l[r.defaultFile.approvePersonList], (T, R) => {
1983
- var J;
1915
+ W(e[s.defaultFile.approvePersonList], (P, A) => {
1916
+ var R;
1984
1917
  return o(), d("div", {
1985
1918
  class: "list",
1986
- key: T.userId
1919
+ key: P.userId
1987
1920
  }, [
1988
- h("div", ga, [
1989
- h("div", _a, [
1990
- T.userAvatar ? (o(), d("img", {
1921
+ p("div", aa, [
1922
+ p("div", sa, [
1923
+ P.userAvatar ? (o(), d("img", {
1991
1924
  key: 0,
1992
- src: w(T.userAvatar),
1925
+ src: k(P.userAvatar),
1993
1926
  alt: ""
1994
- }, null, 8, ma)) : (o(), d("div", ka, [
1995
- h(
1927
+ }, null, 8, oa)) : (o(), d("div", na, [
1928
+ p(
1996
1929
  "span",
1997
1930
  null,
1998
- C(T.userName.slice(-2)),
1931
+ T(P.userName.slice(-2)),
1999
1932
  1
2000
1933
  /* TEXT */
2001
1934
  )
2002
1935
  ])),
2003
- T.canDele ? (o(), d("i", {
1936
+ P.canDele ? (o(), d("i", {
2004
1937
  key: 2,
2005
- onClick: (X) => M(m, R),
1938
+ onClick: (Y) => D(u, A),
2006
1939
  class: "ikapprove ikapprove-shanchu1"
2007
- }, null, 8, La)) : c("v-if", !0)
1940
+ }, null, 8, ia)) : m("v-if", !0)
2008
1941
  ]),
2009
- h("div", {
1942
+ p("div", {
2010
1943
  class: "name",
2011
- title: T.userName
2012
- }, C(T.userName), 9, ba)
1944
+ title: P.userName
1945
+ }, T(P.userName), 9, ra)
2013
1946
  ]),
2014
- c(" 显示添加人按钮,不是单选且已选中一个人的情况,显示图标 "),
2015
- l[r.defaultFile.isShowAdd] && !(l[r.defaultFile.singleApproval] && ((J = l[r.defaultFile.approvePersonList]) == null ? void 0 : J.length) == 1) ? (o(), d("span", $a, [
2016
- c(" 抄送默认 "),
2017
- l[r.defaultFile.nodeType] == r.nodeType.抄送节点 ? (o(), d("span", Pa, "+")) : (o(), d(
2018
- x,
1947
+ m(" 显示添加人按钮,不是单选且已选中一个人的情况,显示图标 "),
1948
+ e[s.defaultFile.isShowAdd] && !(e[s.defaultFile.singleApproval] && ((R = e[s.defaultFile.approvePersonList]) == null ? void 0 : R.length) == 1) ? (o(), d("span", pa, [
1949
+ m(" 抄送默认 "),
1950
+ e[s.defaultFile.nodeType] == s.nodeType.抄送节点 ? (o(), d("span", ua, "+")) : (o(), d(
1951
+ B,
2019
1952
  { key: 1 },
2020
1953
  [
2021
- c(" 审批 "),
2022
- h(
1954
+ m(" 审批 "),
1955
+ p(
2023
1956
  "span",
2024
1957
  null,
2025
- C(l[r.defaultFile.multiExecutorType] == "ANY" ? "/" : l[r.defaultFile.multiExecutorType] == "ALL" ? "+" : ">"),
1958
+ T(e[s.defaultFile.multiExecutorType] == "ANY" ? "/" : e[s.defaultFile.multiExecutorType] == "ALL" ? "+" : ">"),
2026
1959
  1
2027
1960
  /* TEXT */
2028
1961
  )
@@ -2030,29 +1963,29 @@ const sa = Ze(aa), oa = (v) => (yt("data-v-46507da1"), v = v(), gt(), v), na = {
2030
1963
  2112
2031
1964
  /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
2032
1965
  ))
2033
- ])) : c("v-if", !0)
1966
+ ])) : m("v-if", !0)
2034
1967
  ]);
2035
1968
  }),
2036
1969
  128
2037
1970
  /* KEYED_FRAGMENT */
2038
1971
  )),
2039
- c(" 显示添加人按钮,不是单选且已选中一个人的情况,显示按钮 "),
2040
- l[r.defaultFile.isShowAdd] && !(l[r.defaultFile.singleApproval] && ((N = l[r.defaultFile.approvePersonList]) == null ? void 0 : N.length) == 1) || l[r.defaultFile.isShowAddCopy] ? (o(), d("span", {
1972
+ m(" 显示添加人按钮,不是单选且已选中一个人的情况,显示按钮 "),
1973
+ e[s.defaultFile.isShowAdd] && !(e[s.defaultFile.singleApproval] && ((U = e[s.defaultFile.approvePersonList]) == null ? void 0 : U.length) == 1) || e[s.defaultFile.isShowAddCopy] ? (o(), d("span", {
2041
1974
  key: 0,
2042
1975
  class: "addBg",
2043
- onClick: (T) => P(l)
1976
+ onClick: (P) => L(e)
2044
1977
  }, [
2045
- l[r.defaultFile.nodeType] == r.nodeType.审批节点 ? (o(), d("span", Ca)) : c("v-if", !0),
2046
- Ta
2047
- ], 8, wa)) : c("v-if", !0),
2048
- c(" 添加人组件 "),
2049
- $(f(sa), {
2050
- modelValue: l.handList,
2051
- "onUpdate:modelValue": (T) => l.handList = T,
2052
- show: l.isShow,
2053
- "onUpdate:show": (T) => l.isShow = T,
2054
- onOk: (T) => F(T, m),
2055
- multiple: l.multiple,
1978
+ e[s.defaultFile.nodeType] == s.nodeType.审批节点 ? (o(), d("span", ca)) : m("v-if", !0),
1979
+ Aa
1980
+ ], 8, da)) : m("v-if", !0),
1981
+ m(" 添加人组件 "),
1982
+ w(x(Gl), {
1983
+ modelValue: e.handList,
1984
+ "onUpdate:modelValue": (P) => e.handList = P,
1985
+ show: e.isShow,
1986
+ "onUpdate:show": (P) => e.isShow = P,
1987
+ onOk: (P) => F(P, u),
1988
+ multiple: e.multiple,
2056
1989
  "type-option": {
2057
1990
  dep: "DEPT",
2058
1991
  user: "USER",
@@ -2061,22 +1994,22 @@ const sa = Ze(aa), oa = (v) => (yt("data-v-46507da1"), v = v(), gt(), v), na = {
2061
1994
  },
2062
1995
  api: {
2063
1996
  methods: "post",
2064
- url: v.pickerUrl,
1997
+ url: i.pickerUrl,
2065
1998
  headers: {
2066
1999
  "Content-Type": "application/json;charset=UTF-8",
2067
- Authorization: f(s)
2000
+ Authorization: x(a)
2068
2001
  }
2069
2002
  },
2070
- "dep-list": l.depList,
2071
- "user-list": l.userList,
2072
- "organization-list": l.organizationList,
2003
+ "dep-list": e.depList,
2004
+ "user-list": e.userList,
2005
+ "organization-list": e.organizationList,
2073
2006
  "prop-option": {
2074
2007
  name: "elementName",
2075
2008
  id: "elementId",
2076
2009
  type: "elementType",
2077
2010
  avatar: "avatar"
2078
2011
  },
2079
- chooseType: l.chooseType
2012
+ chooseType: e.chooseType
2080
2013
  }, null, 8, ["modelValue", "onUpdate:modelValue", "show", "onUpdate:show", "onOk", "multiple", "api", "dep-list", "user-list", "organization-list", "chooseType"])
2081
2014
  ])
2082
2015
  ])
@@ -2088,8 +2021,8 @@ const sa = Ze(aa), oa = (v) => (yt("data-v-46507da1"), v = v(), gt(), v), na = {
2088
2021
  ]));
2089
2022
  }
2090
2023
  });
2091
- const Aa = /* @__PURE__ */ G(xa, [["__scopeId", "data-v-46507da1"]]), Ua = Ze(Aa);
2024
+ const va = /* @__PURE__ */ j(fa, [["__scopeId", "data-v-3e2696b2"]]), _a = Ne(va);
2092
2025
  export {
2093
- Ua as IKApprovalProcess,
2094
- Ua as default
2026
+ _a as IKApprovalProcess,
2027
+ _a as default
2095
2028
  };