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.
- package/dist/IKApprovalProcess/index.es.js +1278 -1345
- package/dist/IKApprovalProcess/index.umd.js +1 -1
- package/dist/IKApprovalProcess/style.css +1 -1
- package/dist/IKCalendar/index.es.js +4951 -5018
- package/dist/IKCalendar/index.umd.js +1 -1
- package/dist/IKCalendar/style.css +1 -1
- package/dist/IKSearch/index.es.js +1459 -1621
- package/dist/IKSearch/index.umd.js +2 -2
- package/dist/IKSearch/style.css +1 -1
- package/dist/IkPageFull/index.es.js +1965 -2031
- package/dist/IkPageFull/index.umd.js +3 -3
- package/dist/IkPageFull/style.css +1 -1
- package/dist/IkPicker/index.es.js +1 -1
- package/dist/IkPicker/index.umd.js +1 -1
- package/dist/index.es.js +7648 -9406
- package/dist/index.umd.js +10 -10
- package/dist/style.css +1 -1
- package/package.json +3 -3
|
@@ -1,215 +1,249 @@
|
|
|
1
|
-
import { openBlock as o, createElementBlock as d, createElementVNode as
|
|
2
|
-
import { _ as
|
|
3
|
-
import { ElCheckbox as
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
-
},
|
|
20
|
-
t
|
|
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
|
-
|
|
25
|
-
|
|
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: "
|
|
32
|
-
|
|
33
|
-
"
|
|
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
|
-
),
|
|
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: "
|
|
56
|
-
|
|
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
|
-
),
|
|
62
|
-
|
|
44
|
+
), dt = [
|
|
45
|
+
pt,
|
|
46
|
+
ut
|
|
63
47
|
];
|
|
64
|
-
function
|
|
65
|
-
return o(), d("svg",
|
|
48
|
+
function ct(i, v) {
|
|
49
|
+
return o(), d("svg", rt, dt);
|
|
66
50
|
}
|
|
67
|
-
const
|
|
68
|
-
t: "
|
|
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": "
|
|
74
|
-
|
|
57
|
+
"p-id": "8420",
|
|
58
|
+
width: "200",
|
|
59
|
+
height: "200"
|
|
60
|
+
}, vt = /* @__PURE__ */ p(
|
|
75
61
|
"path",
|
|
76
62
|
{
|
|
77
|
-
d: "
|
|
78
|
-
|
|
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
|
-
),
|
|
84
|
-
|
|
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
|
|
87
|
-
return o(), d("svg",
|
|
84
|
+
function mt(i, v) {
|
|
85
|
+
return o(), d("svg", ft, gt);
|
|
88
86
|
}
|
|
89
|
-
const
|
|
90
|
-
t: "
|
|
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
|
-
|
|
95
|
-
|
|
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: "
|
|
99
|
-
fill: "
|
|
100
|
-
"p-id": "
|
|
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
|
-
),
|
|
106
|
+
), kt = /* @__PURE__ */ p(
|
|
106
107
|
"path",
|
|
107
108
|
{
|
|
108
|
-
d: "
|
|
109
|
-
fill: "
|
|
110
|
-
"p-id": "
|
|
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
|
-
),
|
|
116
|
-
|
|
117
|
-
|
|
116
|
+
), Ot = [
|
|
117
|
+
Pt,
|
|
118
|
+
kt
|
|
118
119
|
];
|
|
119
|
-
function
|
|
120
|
-
return o(), d("svg",
|
|
120
|
+
function Tt(i, v) {
|
|
121
|
+
return o(), d("svg", Lt, Ot);
|
|
121
122
|
}
|
|
122
|
-
const
|
|
123
|
-
t: "
|
|
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": "
|
|
129
|
-
|
|
129
|
+
"p-id": "6989",
|
|
130
|
+
width: "200",
|
|
131
|
+
height: "200"
|
|
132
|
+
}, wt = /* @__PURE__ */ p(
|
|
130
133
|
"path",
|
|
131
134
|
{
|
|
132
|
-
d: "
|
|
133
|
-
|
|
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
|
-
),
|
|
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: "
|
|
155
|
-
|
|
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
|
-
),
|
|
161
|
-
|
|
152
|
+
), Bt = [
|
|
153
|
+
wt,
|
|
154
|
+
Ut
|
|
162
155
|
];
|
|
163
|
-
function
|
|
164
|
-
return o(), d("svg",
|
|
156
|
+
function Et(i, v) {
|
|
157
|
+
return o(), d("svg", St, Bt);
|
|
165
158
|
}
|
|
166
|
-
const
|
|
167
|
-
t: "
|
|
159
|
+
const It = /* @__PURE__ */ j(Ct, [["render", Et]]), Vt = {}, Ft = {
|
|
160
|
+
t: "1710904287393",
|
|
168
161
|
class: "icon",
|
|
169
|
-
viewBox: "0 0
|
|
162
|
+
viewBox: "0 0 1024 1024",
|
|
170
163
|
version: "1.1",
|
|
171
164
|
xmlns: "http://www.w3.org/2000/svg",
|
|
172
|
-
"p-id": "
|
|
173
|
-
|
|
165
|
+
"p-id": "6854",
|
|
166
|
+
width: "200",
|
|
167
|
+
height: "200"
|
|
168
|
+
}, Dt = /* @__PURE__ */ p(
|
|
174
169
|
"path",
|
|
175
170
|
{
|
|
176
|
-
d: "
|
|
177
|
-
|
|
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
|
-
),
|
|
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: "
|
|
201
|
-
|
|
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
|
-
),
|
|
207
|
-
|
|
188
|
+
), Rt = [
|
|
189
|
+
Dt,
|
|
190
|
+
Nt
|
|
208
191
|
];
|
|
209
|
-
function
|
|
210
|
-
return o(), d("svg",
|
|
192
|
+
function Mt(i, v) {
|
|
193
|
+
return o(), d("svg", Ft, Rt);
|
|
211
194
|
}
|
|
212
|
-
const
|
|
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
|
-
}
|
|
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:
|
|
518
|
+
props: Ce,
|
|
246
519
|
emits: ["change", "check"],
|
|
247
|
-
setup(
|
|
248
|
-
var
|
|
249
|
-
const
|
|
250
|
-
var
|
|
251
|
-
return ((
|
|
252
|
-
}),
|
|
253
|
-
var
|
|
254
|
-
const
|
|
255
|
-
return
|
|
256
|
-
}),
|
|
257
|
-
|
|
258
|
-
),
|
|
259
|
-
const
|
|
260
|
-
|
|
261
|
-
},
|
|
262
|
-
|
|
263
|
-
},
|
|
264
|
-
|
|
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 (
|
|
267
|
-
|
|
539
|
+
return (e, u) => (o(), d(
|
|
540
|
+
B,
|
|
268
541
|
null,
|
|
269
542
|
[
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
543
|
+
m(" 遍历list多选 "),
|
|
544
|
+
p("div", il, [
|
|
545
|
+
e.multiple ? (o(), E(x(te), {
|
|
273
546
|
key: 0,
|
|
274
|
-
modelValue:
|
|
275
|
-
"onUpdate:modelValue":
|
|
276
|
-
indeterminate:
|
|
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:
|
|
280
|
-
|
|
552
|
+
default: b(() => [
|
|
553
|
+
$("全选")
|
|
281
554
|
]),
|
|
282
555
|
_: 1
|
|
283
556
|
/* STABLE */
|
|
284
|
-
}, 8, ["modelValue", "indeterminate"])) :
|
|
285
|
-
|
|
286
|
-
|
|
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:
|
|
289
|
-
"onUpdate:modelValue":
|
|
290
|
-
onChange:
|
|
561
|
+
modelValue: L.value,
|
|
562
|
+
"onUpdate:modelValue": u[1] || (u[1] = (r) => L.value = r),
|
|
563
|
+
onChange: D
|
|
291
564
|
}, {
|
|
292
|
-
default:
|
|
565
|
+
default: b(() => [
|
|
293
566
|
(o(!0), d(
|
|
294
|
-
|
|
567
|
+
B,
|
|
295
568
|
null,
|
|
296
|
-
|
|
297
|
-
key: t
|
|
569
|
+
W(e.list, (r) => (o(), d("li", {
|
|
570
|
+
key: r[t.fixPropOpt.id]
|
|
298
571
|
}, [
|
|
299
|
-
|
|
300
|
-
label: t
|
|
572
|
+
w(x(te), {
|
|
573
|
+
label: r[t.fixPropOpt.id]
|
|
301
574
|
}, {
|
|
302
|
-
default:
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
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(),
|
|
602
|
+
}, 8, ["modelValue"])) : (o(), E(x(Oe), {
|
|
319
603
|
key: 1,
|
|
320
|
-
isIndeterminate:
|
|
321
|
-
modelValue:
|
|
322
|
-
"onUpdate:modelValue":
|
|
323
|
-
onChange:
|
|
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:
|
|
609
|
+
default: b(() => [
|
|
326
610
|
(o(!0), d(
|
|
327
|
-
|
|
611
|
+
B,
|
|
328
612
|
null,
|
|
329
|
-
|
|
613
|
+
W(e.list, (r) => (o(), d("li", {
|
|
330
614
|
class: "w-full",
|
|
331
|
-
key: t
|
|
615
|
+
key: r[t.fixPropOpt.id]
|
|
332
616
|
}, [
|
|
333
|
-
|
|
334
|
-
label: t
|
|
617
|
+
w(x(Te), {
|
|
618
|
+
label: r[t.fixPropOpt.id]
|
|
335
619
|
}, {
|
|
336
|
-
default:
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
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
|
|
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:
|
|
684
|
+
props: Ce,
|
|
366
685
|
emits: ["change", "check"],
|
|
367
|
-
setup(
|
|
368
|
-
var
|
|
369
|
-
const
|
|
370
|
-
var
|
|
371
|
-
return ((
|
|
372
|
-
}),
|
|
373
|
-
var
|
|
374
|
-
const
|
|
375
|
-
return
|
|
376
|
-
}),
|
|
377
|
-
|
|
378
|
-
),
|
|
379
|
-
const
|
|
380
|
-
|
|
381
|
-
},
|
|
382
|
-
|
|
383
|
-
},
|
|
384
|
-
|
|
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 (
|
|
387
|
-
|
|
705
|
+
return (e, u) => (o(), d(
|
|
706
|
+
B,
|
|
388
707
|
null,
|
|
389
708
|
[
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
709
|
+
m(" 遍历list多选 "),
|
|
710
|
+
p("div", yl, [
|
|
711
|
+
e.multiple ? (o(), E(x(te), {
|
|
393
712
|
key: 0,
|
|
394
|
-
modelValue:
|
|
395
|
-
"onUpdate:modelValue":
|
|
396
|
-
indeterminate:
|
|
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:
|
|
400
|
-
|
|
718
|
+
default: b(() => [
|
|
719
|
+
$("全选")
|
|
401
720
|
]),
|
|
402
721
|
_: 1
|
|
403
722
|
/* STABLE */
|
|
404
|
-
}, 8, ["modelValue", "indeterminate"])) :
|
|
405
|
-
|
|
406
|
-
|
|
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:
|
|
409
|
-
"onUpdate:modelValue":
|
|
410
|
-
onChange:
|
|
727
|
+
modelValue: L.value,
|
|
728
|
+
"onUpdate:modelValue": u[1] || (u[1] = (r) => L.value = r),
|
|
729
|
+
onChange: D
|
|
411
730
|
}, {
|
|
412
|
-
default:
|
|
731
|
+
default: b(() => [
|
|
413
732
|
(o(!0), d(
|
|
414
|
-
|
|
733
|
+
B,
|
|
415
734
|
null,
|
|
416
|
-
|
|
417
|
-
key:
|
|
735
|
+
W(e.list, (r) => (o(), d("li", {
|
|
736
|
+
key: r[e.fixPropOpt.id]
|
|
418
737
|
}, [
|
|
419
|
-
|
|
420
|
-
label:
|
|
421
|
-
value:
|
|
422
|
-
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:
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
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(),
|
|
766
|
+
}, 8, ["modelValue"])) : (o(), E(x(Oe), {
|
|
441
767
|
key: 1,
|
|
442
|
-
indeterminate:
|
|
443
|
-
modelValue:
|
|
444
|
-
"onUpdate:modelValue":
|
|
445
|
-
onChange:
|
|
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:
|
|
773
|
+
default: b(() => [
|
|
448
774
|
(o(!0), d(
|
|
449
|
-
|
|
775
|
+
B,
|
|
450
776
|
null,
|
|
451
|
-
|
|
777
|
+
W(e.list, (r) => (o(), d("li", {
|
|
452
778
|
class: "w-full",
|
|
453
|
-
key:
|
|
779
|
+
key: r[e.fixPropOpt.id]
|
|
454
780
|
}, [
|
|
455
|
-
|
|
456
|
-
label:
|
|
457
|
-
value:
|
|
458
|
-
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:
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
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
|
|
488
|
-
var
|
|
489
|
-
const
|
|
490
|
-
|
|
491
|
-
|
|
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
|
-
|
|
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: "
|
|
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
|
-
|
|
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: (
|
|
605
|
-
if (
|
|
923
|
+
validator: (i) => {
|
|
924
|
+
if (i === void 0)
|
|
606
925
|
return !0;
|
|
607
|
-
if (Array.isArray(
|
|
608
|
-
if (!(
|
|
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
|
|
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
|
-
},
|
|
684
|
-
const
|
|
685
|
-
return new URLSearchParams(
|
|
686
|
-
},
|
|
687
|
-
const
|
|
688
|
-
|
|
689
|
-
},
|
|
690
|
-
var
|
|
691
|
-
const
|
|
692
|
-
if (
|
|
693
|
-
|
|
694
|
-
const
|
|
695
|
-
|
|
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
|
-
|
|
698
|
-
const
|
|
699
|
-
|
|
700
|
-
},
|
|
701
|
-
const
|
|
702
|
-
var
|
|
703
|
-
const { url:
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
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
|
-
...
|
|
1022
|
+
...D
|
|
714
1023
|
},
|
|
715
|
-
data: JSON.stringify(
|
|
1024
|
+
data: JSON.stringify(h)
|
|
716
1025
|
};
|
|
717
|
-
|
|
718
|
-
const
|
|
719
|
-
if (!
|
|
1026
|
+
wl(n.headers);
|
|
1027
|
+
const e = await nt(n), { success: u, data: r } = e.data;
|
|
1028
|
+
if (!u)
|
|
720
1029
|
return {
|
|
721
|
-
|
|
1030
|
+
groupList: [],
|
|
722
1031
|
roleList: [],
|
|
723
1032
|
postList: [],
|
|
724
1033
|
userList: [],
|
|
725
|
-
organizationList: [],
|
|
726
1034
|
rootOrganization: {},
|
|
727
1035
|
rootDepartment: {}
|
|
728
1036
|
};
|
|
729
|
-
const {
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
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
|
-
...
|
|
736
|
-
id:
|
|
737
|
-
}, {
|
|
738
|
-
|
|
739
|
-
roleList:
|
|
740
|
-
postList:
|
|
741
|
-
userList:
|
|
742
|
-
|
|
743
|
-
|
|
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:
|
|
749
|
-
handSetChild: (
|
|
750
|
-
|
|
1062
|
+
handData: a,
|
|
1063
|
+
handSetChild: (L, k) => {
|
|
1064
|
+
a(L == null ? void 0 : L.elementId, k);
|
|
751
1065
|
},
|
|
752
|
-
bannerList:
|
|
1066
|
+
bannerList: t
|
|
753
1067
|
};
|
|
754
|
-
},
|
|
1068
|
+
}, Bl = {
|
|
755
1069
|
shadow: "hover",
|
|
756
1070
|
class: "sel-list"
|
|
757
|
-
},
|
|
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
|
-
),
|
|
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
|
-
),
|
|
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:
|
|
1085
|
+
props: Cl,
|
|
796
1086
|
emits: ["handChild", "update:show", "update:modelValue", "ok", "search"],
|
|
797
|
-
setup(
|
|
798
|
-
|
|
799
|
-
"
|
|
1087
|
+
setup(i, { expose: v, emit: t }) {
|
|
1088
|
+
Ye((l) => ({
|
|
1089
|
+
"33b71112": Be.value
|
|
800
1090
|
}));
|
|
801
|
-
const
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
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
|
-
...
|
|
811
|
-
})),
|
|
812
|
-
dep: "DEPT",
|
|
1103
|
+
...a.propOption
|
|
1104
|
+
})), e = V(() => ({
|
|
813
1105
|
user: "USER",
|
|
814
1106
|
role: "ROLE",
|
|
815
1107
|
post: "POST",
|
|
816
|
-
|
|
817
|
-
...
|
|
818
|
-
})),
|
|
819
|
-
|
|
820
|
-
const
|
|
821
|
-
var
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
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 ((
|
|
828
|
-
|
|
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
|
|
1133
|
+
const N = await f(
|
|
1134
|
+
L.value,
|
|
1135
|
+
s.value
|
|
1136
|
+
);
|
|
832
1137
|
try {
|
|
833
|
-
|
|
834
|
-
} catch (
|
|
835
|
-
|
|
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
|
-
|
|
1142
|
+
Ae(), I.value = !1;
|
|
838
1143
|
} catch {
|
|
839
|
-
|
|
1144
|
+
I.value = !1;
|
|
840
1145
|
}
|
|
841
|
-
},
|
|
842
|
-
|
|
843
|
-
|
|
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
|
-
}),
|
|
1159
|
+
}), R = _e({
|
|
857
1160
|
indeterminate: !1,
|
|
858
1161
|
checkAll: 0
|
|
859
|
-
}),
|
|
860
|
-
const
|
|
861
|
-
return
|
|
862
|
-
list: [...
|
|
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:
|
|
875
|
-
len:
|
|
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
|
-
|
|
882
|
-
list:
|
|
883
|
-
len:
|
|
1178
|
+
groups: {
|
|
1179
|
+
list: l,
|
|
1180
|
+
len: l.length
|
|
884
1181
|
}
|
|
885
1182
|
};
|
|
886
|
-
}), z =
|
|
887
|
-
() => {
|
|
888
|
-
|
|
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
|
-
},
|
|
903
|
-
var
|
|
904
|
-
const
|
|
905
|
-
return !
|
|
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
|
-
|
|
908
|
-
() =>
|
|
909
|
-
async (
|
|
910
|
-
var
|
|
911
|
-
if (
|
|
912
|
-
|
|
913
|
-
const
|
|
914
|
-
for (const
|
|
915
|
-
|
|
916
|
-
const g =
|
|
917
|
-
|
|
918
|
-
var
|
|
919
|
-
(
|
|
920
|
-
|
|
921
|
-
}) :
|
|
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
|
-
|
|
1209
|
+
ee();
|
|
925
1210
|
}
|
|
926
|
-
),
|
|
927
|
-
let
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
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
|
|
937
|
-
if (
|
|
938
|
-
if (
|
|
939
|
-
const
|
|
940
|
-
(
|
|
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
|
-
|
|
1223
|
+
c !== -1 && A.trans.splice(c, 1);
|
|
943
1224
|
}
|
|
944
|
-
switch (
|
|
945
|
-
case
|
|
946
|
-
return
|
|
947
|
-
case
|
|
948
|
-
return
|
|
949
|
-
case
|
|
950
|
-
return
|
|
951
|
-
case
|
|
952
|
-
return
|
|
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
|
-
},
|
|
960
|
-
|
|
961
|
-
},
|
|
962
|
-
if (!
|
|
963
|
-
const
|
|
964
|
-
...
|
|
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 (
|
|
968
|
-
case
|
|
969
|
-
return
|
|
970
|
-
case
|
|
971
|
-
return
|
|
972
|
-
case
|
|
973
|
-
return
|
|
974
|
-
case
|
|
975
|
-
return
|
|
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
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
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
|
-
|
|
1269
|
+
a.multiple && q(c);
|
|
991
1270
|
} catch {
|
|
992
1271
|
}
|
|
993
1272
|
});
|
|
994
1273
|
else {
|
|
995
|
-
const
|
|
996
|
-
(g) => !
|
|
1274
|
+
const c = z.value.filter(
|
|
1275
|
+
(g) => !l.includes(g[n.value.id])
|
|
997
1276
|
);
|
|
998
|
-
for (const g of
|
|
999
|
-
g.disabled = !1,
|
|
1000
|
-
const
|
|
1001
|
-
(g) =>
|
|
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
|
|
1004
|
-
g.disabled =
|
|
1282
|
+
for (const g of y)
|
|
1283
|
+
g.disabled = We(g), J(g);
|
|
1005
1284
|
}
|
|
1006
1285
|
},
|
|
1007
1286
|
{ deep: !0 }
|
|
1008
|
-
),
|
|
1009
|
-
() =>
|
|
1010
|
-
(
|
|
1011
|
-
if (
|
|
1012
|
-
const
|
|
1013
|
-
|
|
1014
|
-
|
|
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
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
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
|
-
|
|
1314
|
+
H.cloneDeep({
|
|
1065
1315
|
// 所有选项、部门、人员、角色分别列出
|
|
1066
|
-
...
|
|
1316
|
+
...M.value,
|
|
1067
1317
|
// 排序后的列表
|
|
1068
|
-
sort:
|
|
1318
|
+
sort: u.value
|
|
1069
1319
|
})
|
|
1070
|
-
),
|
|
1071
|
-
},
|
|
1072
|
-
|
|
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
|
-
|
|
1075
|
-
const
|
|
1076
|
-
const
|
|
1077
|
-
return !!((
|
|
1078
|
-
}),
|
|
1079
|
-
{
|
|
1080
|
-
{
|
|
1081
|
-
{
|
|
1082
|
-
].filter((
|
|
1083
|
-
() => `${
|
|
1084
|
-
),
|
|
1085
|
-
()
|
|
1086
|
-
),
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
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
|
-
|
|
1096
|
-
|
|
1343
|
+
he(), c.forEach((g) => {
|
|
1344
|
+
y != null && y.includes(g[n.value.id]) ? J(g) : q(g);
|
|
1097
1345
|
});
|
|
1098
1346
|
};
|
|
1099
|
-
|
|
1100
|
-
() =>
|
|
1101
|
-
(
|
|
1102
|
-
|
|
1347
|
+
X(
|
|
1348
|
+
() => M.value.groups.len,
|
|
1349
|
+
(l) => {
|
|
1350
|
+
Ee.value = H.cloneDeep(M.value.groups.list);
|
|
1103
1351
|
}
|
|
1104
1352
|
);
|
|
1105
|
-
const
|
|
1106
|
-
|
|
1107
|
-
const
|
|
1108
|
-
if (!
|
|
1109
|
-
|
|
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
|
-
|
|
1113
|
-
|
|
1360
|
+
he(), c.forEach((g) => {
|
|
1361
|
+
y != null && y.includes(g[n.value.id]) ? J(g) : q(g);
|
|
1114
1362
|
});
|
|
1115
1363
|
};
|
|
1116
|
-
|
|
1117
|
-
() =>
|
|
1118
|
-
(
|
|
1119
|
-
|
|
1364
|
+
X(
|
|
1365
|
+
() => M.value.role.len,
|
|
1366
|
+
(l) => {
|
|
1367
|
+
fe.value = H.cloneDeep(M.value.role.list);
|
|
1120
1368
|
}
|
|
1121
|
-
)
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
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
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
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
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
modelValue:
|
|
1250
|
-
|
|
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:
|
|
1259
|
-
|
|
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"
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
B
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
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:
|
|
1457
|
-
(
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
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
|
-
_:
|
|
1538
|
-
/*
|
|
1539
|
-
},
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
)
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
fixPropOpt
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
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
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
{
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
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
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
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
|
|
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
|
-
},
|
|
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
|
-
},
|
|
1633
|
+
}, ia = ["onClick"], ra = ["title"], pa = {
|
|
1701
1634
|
key: 0,
|
|
1702
1635
|
class: "sign"
|
|
1703
|
-
},
|
|
1636
|
+
}, ua = { key: 0 }, da = ["onClick"], ca = {
|
|
1704
1637
|
key: 0,
|
|
1705
1638
|
class: "required"
|
|
1706
|
-
},
|
|
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
|
-
)),
|
|
1645
|
+
)), ha = {
|
|
1713
1646
|
name: "IkApprovalProcess"
|
|
1714
|
-
},
|
|
1715
|
-
...
|
|
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(
|
|
1749
|
-
const
|
|
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
|
-
...
|
|
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
|
-
...
|
|
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
|
-
...
|
|
1737
|
+
...t.defaultFieldMap
|
|
1805
1738
|
},
|
|
1806
1739
|
multiple: !1,
|
|
1807
1740
|
chooseType: []
|
|
1808
|
-
}),
|
|
1809
|
-
var
|
|
1810
|
-
if (
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
}),
|
|
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 (
|
|
1748
|
+
switch (h[s.defaultFile.initiatorSpecifiedScopeType]) {
|
|
1816
1749
|
case "ALL":
|
|
1817
|
-
|
|
1750
|
+
h.chooseType = ["dep_user"], h.userList = [], h.depList = [];
|
|
1818
1751
|
break;
|
|
1819
1752
|
default:
|
|
1820
|
-
|
|
1821
|
-
...
|
|
1822
|
-
elementName: (
|
|
1823
|
-
elementId: (
|
|
1824
|
-
avatar: ((
|
|
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
|
-
|
|
1829
|
-
|
|
1761
|
+
Le(() => {
|
|
1762
|
+
h.isShow = !0;
|
|
1830
1763
|
});
|
|
1831
|
-
},
|
|
1832
|
-
let
|
|
1833
|
-
return
|
|
1834
|
-
},
|
|
1835
|
-
let
|
|
1836
|
-
switch (
|
|
1837
|
-
case
|
|
1838
|
-
|
|
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
|
|
1841
|
-
|
|
1773
|
+
case s.nodeType.办理节点:
|
|
1774
|
+
n = "ikapprove-bianji";
|
|
1842
1775
|
break;
|
|
1843
|
-
case
|
|
1844
|
-
|
|
1776
|
+
case s.nodeType.抄送节点:
|
|
1777
|
+
n = "ikapprove-chaosong";
|
|
1845
1778
|
break;
|
|
1846
1779
|
default:
|
|
1847
|
-
|
|
1780
|
+
n = "ikapprove-ziyuan";
|
|
1848
1781
|
}
|
|
1849
|
-
return `ikapprove ${
|
|
1850
|
-
}, F = (
|
|
1851
|
-
|
|
1852
|
-
let
|
|
1853
|
-
...
|
|
1854
|
-
userName:
|
|
1855
|
-
userAvatar:
|
|
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
|
-
|
|
1859
|
-
},
|
|
1860
|
-
|
|
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
|
|
1863
|
-
let
|
|
1864
|
-
return
|
|
1865
|
-
var
|
|
1866
|
-
|
|
1867
|
-
}),
|
|
1868
|
-
} }), (
|
|
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
|
-
|
|
1803
|
+
B,
|
|
1871
1804
|
null,
|
|
1872
|
-
|
|
1873
|
-
var
|
|
1805
|
+
W(t.dataList, (e, u) => {
|
|
1806
|
+
var r, f, O, U;
|
|
1874
1807
|
return o(), d("div", {
|
|
1875
1808
|
class: "content",
|
|
1876
|
-
key:
|
|
1809
|
+
key: e.id
|
|
1877
1810
|
}, [
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1811
|
+
m(" 审批节点类型 "),
|
|
1812
|
+
p("div", $l, [
|
|
1813
|
+
p("span", zl, [
|
|
1814
|
+
p(
|
|
1882
1815
|
"i",
|
|
1883
1816
|
{
|
|
1884
|
-
class:
|
|
1817
|
+
class: pe(C(e[s.defaultFile.nodeType]))
|
|
1885
1818
|
},
|
|
1886
1819
|
null,
|
|
1887
1820
|
2
|
|
1888
1821
|
/* CLASS */
|
|
1889
1822
|
)
|
|
1890
1823
|
]),
|
|
1891
|
-
|
|
1824
|
+
p(
|
|
1892
1825
|
"div",
|
|
1893
1826
|
{
|
|
1894
1827
|
class: "line",
|
|
1895
|
-
style:
|
|
1896
|
-
"border-left":
|
|
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
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1837
|
+
p("div", ql, [
|
|
1838
|
+
p("div", null, [
|
|
1839
|
+
p(
|
|
1907
1840
|
"div",
|
|
1908
1841
|
null,
|
|
1909
|
-
|
|
1842
|
+
T(e[s.defaultFile.nodeTypeName]),
|
|
1910
1843
|
1
|
|
1911
1844
|
/* TEXT */
|
|
1912
1845
|
),
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
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
|
-
|
|
1919
|
-
|
|
1851
|
+
Yl,
|
|
1852
|
+
T(`抄送${e[s.defaultFile.approvePersonList].length}人`),
|
|
1920
1853
|
1
|
|
1921
1854
|
/* TEXT */
|
|
1922
|
-
)) :
|
|
1923
|
-
|
|
1855
|
+
)) : m("v-if", !0),
|
|
1856
|
+
e[s.defaultFile.isShowAdd] ? (o(), d("span", Jl, ",可添加抄送人")) : m("v-if", !0)
|
|
1924
1857
|
])) : (o(), d(
|
|
1925
|
-
|
|
1858
|
+
B,
|
|
1926
1859
|
{ key: 1 },
|
|
1927
1860
|
[
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
(
|
|
1861
|
+
m(" 审批节点 "),
|
|
1862
|
+
p("span", null, [
|
|
1863
|
+
m(" 存在审批人时 "),
|
|
1864
|
+
(r = e[s.defaultFile.approvePersonList]) != null && r.length ? (o(), d(
|
|
1932
1865
|
"span",
|
|
1933
|
-
|
|
1934
|
-
|
|
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
|
-
)) : [
|
|
1870
|
+
)) : [s.statusWithoutApprover.自动通过, s.statusWithoutApprover.自动拒绝].includes(e[s.defaultFile.approveType]) ? (o(), d(
|
|
1938
1871
|
"span",
|
|
1939
|
-
|
|
1940
|
-
|
|
1872
|
+
ta,
|
|
1873
|
+
T(e[s.defaultFile.approveTypeName]),
|
|
1941
1874
|
1
|
|
1942
1875
|
/* TEXT */
|
|
1943
|
-
)) :
|
|
1944
|
-
|
|
1876
|
+
)) : e[s.defaultFile.executorEmptyStrategy] && e[s.defaultFile.executorEmpty] ? (o(), d(
|
|
1877
|
+
B,
|
|
1945
1878
|
{ key: 2 },
|
|
1946
1879
|
[
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1880
|
+
m(" 没有审批人,并且有指定默认审批方式 "),
|
|
1881
|
+
p("span", null, [
|
|
1882
|
+
$(" 未找到审批人,"),
|
|
1883
|
+
p(
|
|
1951
1884
|
"span",
|
|
1952
1885
|
null,
|
|
1953
|
-
|
|
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:
|
|
1898
|
+
class: pe(e.required ? "warn" : "")
|
|
1966
1899
|
},
|
|
1967
|
-
"请选择" +
|
|
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
|
-
|
|
1911
|
+
p("div", la, [
|
|
1979
1912
|
(o(!0), d(
|
|
1980
|
-
|
|
1913
|
+
B,
|
|
1981
1914
|
null,
|
|
1982
|
-
|
|
1983
|
-
var
|
|
1915
|
+
W(e[s.defaultFile.approvePersonList], (P, A) => {
|
|
1916
|
+
var R;
|
|
1984
1917
|
return o(), d("div", {
|
|
1985
1918
|
class: "list",
|
|
1986
|
-
key:
|
|
1919
|
+
key: P.userId
|
|
1987
1920
|
}, [
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1921
|
+
p("div", aa, [
|
|
1922
|
+
p("div", sa, [
|
|
1923
|
+
P.userAvatar ? (o(), d("img", {
|
|
1991
1924
|
key: 0,
|
|
1992
|
-
src:
|
|
1925
|
+
src: k(P.userAvatar),
|
|
1993
1926
|
alt: ""
|
|
1994
|
-
}, null, 8,
|
|
1995
|
-
|
|
1927
|
+
}, null, 8, oa)) : (o(), d("div", na, [
|
|
1928
|
+
p(
|
|
1996
1929
|
"span",
|
|
1997
1930
|
null,
|
|
1998
|
-
|
|
1931
|
+
T(P.userName.slice(-2)),
|
|
1999
1932
|
1
|
|
2000
1933
|
/* TEXT */
|
|
2001
1934
|
)
|
|
2002
1935
|
])),
|
|
2003
|
-
|
|
1936
|
+
P.canDele ? (o(), d("i", {
|
|
2004
1937
|
key: 2,
|
|
2005
|
-
onClick: (
|
|
1938
|
+
onClick: (Y) => D(u, A),
|
|
2006
1939
|
class: "ikapprove ikapprove-shanchu1"
|
|
2007
|
-
}, null, 8,
|
|
1940
|
+
}, null, 8, ia)) : m("v-if", !0)
|
|
2008
1941
|
]),
|
|
2009
|
-
|
|
1942
|
+
p("div", {
|
|
2010
1943
|
class: "name",
|
|
2011
|
-
title:
|
|
2012
|
-
},
|
|
1944
|
+
title: P.userName
|
|
1945
|
+
}, T(P.userName), 9, ra)
|
|
2013
1946
|
]),
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
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
|
-
|
|
2022
|
-
|
|
1954
|
+
m(" 审批 "),
|
|
1955
|
+
p(
|
|
2023
1956
|
"span",
|
|
2024
1957
|
null,
|
|
2025
|
-
|
|
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
|
-
])) :
|
|
1966
|
+
])) : m("v-if", !0)
|
|
2034
1967
|
]);
|
|
2035
1968
|
}),
|
|
2036
1969
|
128
|
|
2037
1970
|
/* KEYED_FRAGMENT */
|
|
2038
1971
|
)),
|
|
2039
|
-
|
|
2040
|
-
|
|
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: (
|
|
1976
|
+
onClick: (P) => L(e)
|
|
2044
1977
|
}, [
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
], 8,
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
modelValue:
|
|
2051
|
-
"onUpdate:modelValue": (
|
|
2052
|
-
show:
|
|
2053
|
-
"onUpdate:show": (
|
|
2054
|
-
onOk: (
|
|
2055
|
-
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:
|
|
1997
|
+
url: i.pickerUrl,
|
|
2065
1998
|
headers: {
|
|
2066
1999
|
"Content-Type": "application/json;charset=UTF-8",
|
|
2067
|
-
Authorization:
|
|
2000
|
+
Authorization: x(a)
|
|
2068
2001
|
}
|
|
2069
2002
|
},
|
|
2070
|
-
"dep-list":
|
|
2071
|
-
"user-list":
|
|
2072
|
-
"organization-list":
|
|
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:
|
|
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
|
|
2024
|
+
const va = /* @__PURE__ */ j(fa, [["__scopeId", "data-v-3e2696b2"]]), _a = Ne(va);
|
|
2092
2025
|
export {
|
|
2093
|
-
|
|
2094
|
-
|
|
2026
|
+
_a as IKApprovalProcess,
|
|
2027
|
+
_a as default
|
|
2095
2028
|
};
|