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