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