@jari-ace/element-plus-component 0.1.6 → 0.1.7
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/lib/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as z, reactive as Oe, resolveComponent as he, createElementBlock as
|
|
2
|
-
import { ElForm as ft, ElFormItem as He, ElText as Fe, ElTooltip as ke, ElIcon as ce, ElInput as we, ElCheckbox as Ra, ElInputNumber as We, ElSelect as Ae, ElDatePicker as rt, ElButton as me, ElDropdown as
|
|
3
|
-
import { createAxiosWithoutCache as ne, useLoginUser as Ze, useDepartmentApi as
|
|
4
|
-
import { QuestionFilled as Qt, ArrowDown as Xt, Minus as
|
|
1
|
+
import { defineComponent as z, reactive as Oe, resolveComponent as he, createElementBlock as N, openBlock as y, createVNode as w, withCtx as g, createTextVNode as G, createElementVNode as j, normalizeStyle as Pa, renderSlot as te, toDisplayString as ae, ref as h, provide as Te, computed as ve, watch as T, createBlock as $, unref as s, createCommentVNode as de, inject as M, createSlots as fe, renderList as W, mergeProps as K, onMounted as Ye, withDirectives as Y, onBeforeMount as je, Fragment as oe, vShow as ge, resolveDynamicComponent as Ua, mergeModels as Q, useModel as ue, nextTick as Ie, onUnmounted as $e, normalizeClass as Ge, shallowReactive as pt, withAsyncContext as mt, h as Ue, shallowRef as za, withKeys as Ve, withModifiers as $t, vModelText as Ba, resolveDirective as Rt } from "vue";
|
|
2
|
+
import { ElForm as ft, ElFormItem as He, ElText as Fe, ElTooltip as ke, ElIcon as ce, ElInput as we, ElCheckbox as Ra, ElInputNumber as We, ElSelect as Ae, ElDatePicker as rt, ElButton as me, ElDropdown as Lt, ElSwitch as Nt, ElSpace as vt, ElTreeSelect as gt, ElAvatar as La, ElImage as Na, ElPopover as Jt, vLoading as De, ElTree as Qe, ElOption as Xe, ElDialog as st, ElTabs as Ja, ElTabPane as at, ElScrollbar as Ce, ElTableV2 as Oa, ElMessageBox as ja, ElMessage as xa, ElEmpty as Ot, ElTimePicker as qa, ElAutocomplete as Ga, ElRadioGroup as Ha, ElDrawer as jt, ElTag as At, ElCheckboxGroup as Wa } from "element-plus";
|
|
3
|
+
import { createAxiosWithoutCache as ne, useLoginUser as Ze, useDepartmentApi as xt, FromDeptSelect as qt, useLoading as _e, useUserApi as ht, useUserQueryBuilder as Gt, useUserGroupApi as Ht, useAppApi as yt, useCustomGroupApi as Wt, useRoleApi as Kt, useChannelApi as Ka, useEntityApi as Ya, useAppMessageApi as Yt, createAxios as Qa, useEnumApi as Xa } from "@jari-ace/app-bolts";
|
|
4
|
+
import { QuestionFilled as Qt, ArrowDown as Xt, Minus as xe, Plus as Ee, Star as Za, StarFilled as Zt, Close as el, Hide as tl, View as al, Check as ea, Notebook as ll, Delete as ol, Finished as nl, Setting as rl, Search as Dt, ArrowUp as sl } from "@element-plus/icons-vue";
|
|
5
5
|
const R = (e, l) => (e.install = (a) => {
|
|
6
6
|
for (const t of [e, ...Object.values({})])
|
|
7
7
|
a.component(t.name, t);
|
|
8
|
-
}, e),
|
|
8
|
+
}, e), ul = /* @__PURE__ */ z({
|
|
9
9
|
__name: "Upload",
|
|
10
10
|
props: {
|
|
11
11
|
action: {},
|
|
@@ -24,9 +24,9 @@ const R = (e, l) => (e.install = (a) => {
|
|
|
24
24
|
fileList: []
|
|
25
25
|
});
|
|
26
26
|
return (a, t) => {
|
|
27
|
-
const o = he("el-button"),
|
|
28
|
-
return y(),
|
|
29
|
-
w(
|
|
27
|
+
const o = he("el-button"), i = he("el-upload");
|
|
28
|
+
return y(), N("div", null, [
|
|
29
|
+
w(i, {
|
|
30
30
|
"file-list": l.fileList,
|
|
31
31
|
"onUpdate:fileList": t[0] || (t[0] = (d) => l.fileList = d),
|
|
32
32
|
class: "ace-upload",
|
|
@@ -49,7 +49,7 @@ const R = (e, l) => (e.install = (a) => {
|
|
|
49
49
|
]);
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
|
-
}),
|
|
52
|
+
}), il = R(ul), dl = { class: "text-box" }, cl = /* @__PURE__ */ z({
|
|
53
53
|
__name: "AceTip",
|
|
54
54
|
props: {
|
|
55
55
|
type: { default: "primary" },
|
|
@@ -57,7 +57,7 @@ const R = (e, l) => (e.install = (a) => {
|
|
|
57
57
|
},
|
|
58
58
|
setup(e) {
|
|
59
59
|
const l = e;
|
|
60
|
-
return (a, t) => (y(),
|
|
60
|
+
return (a, t) => (y(), N("div", {
|
|
61
61
|
class: "ace-tip-sfc",
|
|
62
62
|
style: Pa({
|
|
63
63
|
backgroundColor: `var(--el-color-${l.type}-light-9)`,
|
|
@@ -65,7 +65,7 @@ const R = (e, l) => (e.install = (a) => {
|
|
|
65
65
|
})
|
|
66
66
|
}, [
|
|
67
67
|
te(a.$slots, "icon", {}, void 0, !0),
|
|
68
|
-
j("p",
|
|
68
|
+
j("p", dl, ae(l.text), 1)
|
|
69
69
|
], 4));
|
|
70
70
|
}
|
|
71
71
|
}), pe = (e, l) => {
|
|
@@ -73,8 +73,8 @@ const R = (e, l) => (e.install = (a) => {
|
|
|
73
73
|
for (const [t, o] of l)
|
|
74
74
|
a[t] = o;
|
|
75
75
|
return a;
|
|
76
|
-
},
|
|
77
|
-
function
|
|
76
|
+
}, pl = /* @__PURE__ */ pe(cl, [["__scopeId", "data-v-2d61860f"]]), ml = R(pl);
|
|
77
|
+
function fl(e, l, a) {
|
|
78
78
|
const t = Oe({});
|
|
79
79
|
let o = [];
|
|
80
80
|
l || (l = ne()), l.setDefaultRequestConfig({
|
|
@@ -85,14 +85,14 @@ function ml(e, l, a) {
|
|
|
85
85
|
for (const n of e) {
|
|
86
86
|
const c = {
|
|
87
87
|
trigger: "blur",
|
|
88
|
-
validator: (p, r,
|
|
88
|
+
validator: (p, r, u) => {
|
|
89
89
|
if (!o) return;
|
|
90
90
|
let m = !1;
|
|
91
91
|
for (const f of o) {
|
|
92
92
|
let _ = f.fieldName;
|
|
93
|
-
_ != null && _.endsWith("[]") && (_ = _.substring(0, _.length - 2)), _ === n && (m = !0,
|
|
93
|
+
_ != null && _.endsWith("[]") && (_ = _.substring(0, _.length - 2)), _ === n && (m = !0, u(new Error(f.message)));
|
|
94
94
|
}
|
|
95
|
-
m ||
|
|
95
|
+
m || u();
|
|
96
96
|
}
|
|
97
97
|
};
|
|
98
98
|
a && a[n] ? Array.isArray(a[n]) ? t[n] = [c, ...a[n]] : t[n] = [c, a[n]] : t[n] = c;
|
|
@@ -108,7 +108,7 @@ function ml(e, l, a) {
|
|
|
108
108
|
rules: t
|
|
109
109
|
};
|
|
110
110
|
}
|
|
111
|
-
const
|
|
111
|
+
const vl = /* @__PURE__ */ z({
|
|
112
112
|
__name: "JaForm",
|
|
113
113
|
props: {
|
|
114
114
|
model: {},
|
|
@@ -138,15 +138,15 @@ const fl = /* @__PURE__ */ z({
|
|
|
138
138
|
return l({
|
|
139
139
|
elForm: a,
|
|
140
140
|
getElForm: () => a.value,
|
|
141
|
-
validate: async (
|
|
141
|
+
validate: async (i, d) => {
|
|
142
142
|
a && (a.value.clearValidate(), t.rules ? await a.value.validate((n, c) => {
|
|
143
|
-
n ?
|
|
143
|
+
n ? i().then(() => {
|
|
144
144
|
var p;
|
|
145
145
|
(p = t.validator) == null || p.clearFiledErrors();
|
|
146
146
|
}).catch(() => {
|
|
147
147
|
a.value.validate(), d && d();
|
|
148
148
|
}) : console.log("error submit!", c);
|
|
149
|
-
}) :
|
|
149
|
+
}) : i().then(() => {
|
|
150
150
|
var n;
|
|
151
151
|
(n = t.validator) == null || n.clearFiledErrors();
|
|
152
152
|
}).catch(async () => {
|
|
@@ -154,38 +154,38 @@ const fl = /* @__PURE__ */ z({
|
|
|
154
154
|
}));
|
|
155
155
|
}
|
|
156
156
|
}), T(() => t.model.formData, () => {
|
|
157
|
-
var
|
|
158
|
-
(
|
|
159
|
-
}), (
|
|
157
|
+
var i;
|
|
158
|
+
(i = t.validator) == null || i.clearFiledErrors();
|
|
159
|
+
}), (i, d) => (y(), $(s(ft), {
|
|
160
160
|
ref_key: "formRef",
|
|
161
161
|
ref: a,
|
|
162
|
-
model:
|
|
162
|
+
model: i.model.formData,
|
|
163
163
|
rules: o.value,
|
|
164
|
-
inline:
|
|
165
|
-
"label-position":
|
|
166
|
-
"label-width":
|
|
167
|
-
"label-suffix":
|
|
168
|
-
"hide-required-asterisk":
|
|
169
|
-
"show-message":
|
|
170
|
-
"inline-message":
|
|
171
|
-
"status-icon":
|
|
172
|
-
"validate-on-rule-change":
|
|
173
|
-
size:
|
|
174
|
-
disabled:
|
|
175
|
-
"scroll-to-error":
|
|
176
|
-
onValidate: d[0] || (d[0] = (n, c, p) =>
|
|
177
|
-
onClick: d[1] || (d[1] = () =>
|
|
164
|
+
inline: i.inline,
|
|
165
|
+
"label-position": i.labelPosition,
|
|
166
|
+
"label-width": i.labelWidth,
|
|
167
|
+
"label-suffix": i.labelSuffix,
|
|
168
|
+
"hide-required-asterisk": i.hideRequiredAsterisk,
|
|
169
|
+
"show-message": i.showMessage,
|
|
170
|
+
"inline-message": i.inlineMessage,
|
|
171
|
+
"status-icon": i.statusIcon,
|
|
172
|
+
"validate-on-rule-change": i.validateOnRuleChange,
|
|
173
|
+
size: i.size,
|
|
174
|
+
disabled: i.disabled,
|
|
175
|
+
"scroll-to-error": i.scrollToError,
|
|
176
|
+
onValidate: d[0] || (d[0] = (n, c, p) => i.$emit("validate", n, c, p)),
|
|
177
|
+
onClick: d[1] || (d[1] = () => i.$emit("click"))
|
|
178
178
|
}, {
|
|
179
179
|
default: g(() => [
|
|
180
|
-
te(
|
|
180
|
+
te(i.$slots, "default")
|
|
181
181
|
]),
|
|
182
182
|
_: 3
|
|
183
183
|
}, 8, ["model", "rules", "inline", "label-position", "label-width", "label-suffix", "hide-required-asterisk", "show-message", "inline-message", "status-icon", "validate-on-rule-change", "size", "disabled", "scroll-to-error"]));
|
|
184
184
|
}
|
|
185
|
-
}),
|
|
185
|
+
}), gl = R(vl), hl = {
|
|
186
186
|
key: 0,
|
|
187
187
|
style: { color: "red" }
|
|
188
|
-
},
|
|
188
|
+
}, yl = ["innerHTML"], bl = /* @__PURE__ */ z({
|
|
189
189
|
__name: "JaFormItem",
|
|
190
190
|
props: {
|
|
191
191
|
prop: {},
|
|
@@ -211,7 +211,7 @@ const fl = /* @__PURE__ */ z({
|
|
|
211
211
|
t.value.clearValidate();
|
|
212
212
|
},
|
|
213
213
|
elFormItem: t
|
|
214
|
-
}), (o,
|
|
214
|
+
}), (o, i) => (y(), $(s(He), {
|
|
215
215
|
ref_key: "formItem",
|
|
216
216
|
ref: t,
|
|
217
217
|
prop: o.prop,
|
|
@@ -226,13 +226,13 @@ const fl = /* @__PURE__ */ z({
|
|
|
226
226
|
w(s(Fe), { class: "el-form-item__label" }, {
|
|
227
227
|
default: g(() => [
|
|
228
228
|
G(ae(a.label) + " ", 1),
|
|
229
|
-
a.required ? (y(),
|
|
230
|
-
o.labelRemark ? (y(),
|
|
229
|
+
a.required ? (y(), N("span", hl, "*")) : de("", !0),
|
|
230
|
+
o.labelRemark ? (y(), $(s(ke), {
|
|
231
231
|
key: 1,
|
|
232
232
|
placement: "top"
|
|
233
233
|
}, {
|
|
234
234
|
content: g(() => [
|
|
235
|
-
j("div", { innerHTML: o.labelRemark }, null, 8,
|
|
235
|
+
j("div", { innerHTML: o.labelRemark }, null, 8, yl)
|
|
236
236
|
]),
|
|
237
237
|
default: g(() => [
|
|
238
238
|
w(s(ce), null, {
|
|
@@ -255,8 +255,8 @@ const fl = /* @__PURE__ */ z({
|
|
|
255
255
|
_: 3
|
|
256
256
|
}, 8, ["prop", "rules", "label-width", "error", "show-message", "inline-message", "size"]));
|
|
257
257
|
}
|
|
258
|
-
}),
|
|
259
|
-
function
|
|
258
|
+
}), Le = R(bl);
|
|
259
|
+
function x(e, l) {
|
|
260
260
|
if (!l || l.length == 0)
|
|
261
261
|
throw new Error("prop不能为空,请检查所有的ja-form-item的prop属性是否都已设置");
|
|
262
262
|
const a = l.split(".");
|
|
@@ -270,11 +270,11 @@ function re(e, l, a) {
|
|
|
270
270
|
throw new Error("prop不能为空,请检查所有的ja-form-item的prop属性是否都已设置");
|
|
271
271
|
const t = l.split(".");
|
|
272
272
|
let o = e;
|
|
273
|
-
for (let
|
|
273
|
+
for (let i = 0; i < t.length - 1 && (o = o[t[i]], !!o); i++)
|
|
274
274
|
;
|
|
275
275
|
o && (o[t[t.length - 1]] = a);
|
|
276
276
|
}
|
|
277
|
-
const
|
|
277
|
+
const wl = /* @__PURE__ */ z({
|
|
278
278
|
__name: "JaInput",
|
|
279
279
|
props: {
|
|
280
280
|
type: { default: "text" },
|
|
@@ -308,13 +308,13 @@ const bl = /* @__PURE__ */ z({
|
|
|
308
308
|
},
|
|
309
309
|
emits: ["blur", "focus", "change", "input", "clear"],
|
|
310
310
|
setup(e, { expose: l, emit: a }) {
|
|
311
|
-
const t = M("aceFormModel"), o = M("aceFormItemProp"),
|
|
311
|
+
const t = M("aceFormModel"), o = M("aceFormItemProp"), i = M("aceFormValidator"), d = h({}), n = a;
|
|
312
312
|
function c(r) {
|
|
313
|
-
|
|
313
|
+
i.removeFieldError(o), re(t.formData, o, p.value), n("change", r);
|
|
314
314
|
}
|
|
315
|
-
const p = h(
|
|
315
|
+
const p = h(x(t.formData, o));
|
|
316
316
|
return T(() => t.formData, () => {
|
|
317
|
-
p.value =
|
|
317
|
+
p.value = x(t.formData, o);
|
|
318
318
|
}, {
|
|
319
319
|
deep: !0
|
|
320
320
|
}), l({
|
|
@@ -331,12 +331,12 @@ const bl = /* @__PURE__ */ z({
|
|
|
331
331
|
d.value.clear();
|
|
332
332
|
},
|
|
333
333
|
elInput: d
|
|
334
|
-
}), (r,
|
|
334
|
+
}), (r, u) => (y(), $(s(we), {
|
|
335
335
|
ref_key: "input",
|
|
336
336
|
ref: d,
|
|
337
337
|
type: r.type,
|
|
338
338
|
modelValue: p.value,
|
|
339
|
-
"onUpdate:modelValue":
|
|
339
|
+
"onUpdate:modelValue": u[0] || (u[0] = (m) => p.value = m),
|
|
340
340
|
maxlength: r.maxLength,
|
|
341
341
|
minLength: r.minLength,
|
|
342
342
|
"show-word-limit": r.showWordLimit,
|
|
@@ -363,11 +363,11 @@ const bl = /* @__PURE__ */ z({
|
|
|
363
363
|
label: r.label,
|
|
364
364
|
tabindex: r.tabindex,
|
|
365
365
|
"validate-event": r.validateEvent,
|
|
366
|
-
onBlur:
|
|
367
|
-
onFocus:
|
|
366
|
+
onBlur: u[1] || (u[1] = (m) => r.$emit("blur", m)),
|
|
367
|
+
onFocus: u[2] || (u[2] = (m) => r.$emit("focus", m)),
|
|
368
368
|
onChange: c,
|
|
369
|
-
onInput:
|
|
370
|
-
onClear:
|
|
369
|
+
onInput: u[3] || (u[3] = (m) => r.$emit("input", m)),
|
|
370
|
+
onClear: u[4] || (u[4] = () => r.$emit("clear"))
|
|
371
371
|
}, fe({ _: 2 }, [
|
|
372
372
|
W(r.$slots, (m, f) => ({
|
|
373
373
|
name: f,
|
|
@@ -377,7 +377,7 @@ const bl = /* @__PURE__ */ z({
|
|
|
377
377
|
}))
|
|
378
378
|
]), 1032, ["type", "modelValue", "maxlength", "minLength", "show-word-limit", "placeholder", "clearable", "formatter", "parser", "show-password", "disabled", "size", "prefix-icon", "suffix-icon", "rows", "autosize", "autocomplete", "name", "readonly", "max", "min", "step", "resize", "autofocus", "form", "label", "tabindex", "validate-event"]));
|
|
379
379
|
}
|
|
380
|
-
}), ut = R(
|
|
380
|
+
}), ut = R(wl), _l = /* @__PURE__ */ z({
|
|
381
381
|
__name: "JaCheckbox",
|
|
382
382
|
props: {
|
|
383
383
|
label: { type: [String, Number, Boolean, Object] },
|
|
@@ -393,20 +393,20 @@ const bl = /* @__PURE__ */ z({
|
|
|
393
393
|
},
|
|
394
394
|
emits: ["change"],
|
|
395
395
|
setup(e, { expose: l, emit: a }) {
|
|
396
|
-
const t = M("aceFormModel"), o = M("aceFormItemProp"),
|
|
396
|
+
const t = M("aceFormModel"), o = M("aceFormItemProp"), i = M("aceFormValidator"), d = h({}), n = a;
|
|
397
397
|
function c(r) {
|
|
398
|
-
|
|
398
|
+
i.removeFieldError(o), re(t.formData, o, p.value), n("change", r);
|
|
399
399
|
}
|
|
400
|
-
const p = h(
|
|
400
|
+
const p = h(x(t.formData, o));
|
|
401
401
|
return T(() => t.formData, () => {
|
|
402
|
-
p.value =
|
|
402
|
+
p.value = x(t.formData, o);
|
|
403
403
|
}), l({
|
|
404
404
|
elCheckbox: d
|
|
405
|
-
}), (r,
|
|
405
|
+
}), (r, u) => (y(), $(s(Ra), {
|
|
406
406
|
ref_key: "checkbox",
|
|
407
407
|
ref: d,
|
|
408
408
|
modelValue: p.value,
|
|
409
|
-
"onUpdate:modelValue":
|
|
409
|
+
"onUpdate:modelValue": u[0] || (u[0] = (m) => p.value = m),
|
|
410
410
|
disabled: r.disabled,
|
|
411
411
|
"true-label": r.trueLabel,
|
|
412
412
|
"false-label": r.falseLabel,
|
|
@@ -425,7 +425,7 @@ const bl = /* @__PURE__ */ z({
|
|
|
425
425
|
_: 3
|
|
426
426
|
}, 8, ["modelValue", "disabled", "true-label", "false-label", "border", "size", "name", "checked", "indeterminate", "validate-event", "label"]));
|
|
427
427
|
}
|
|
428
|
-
}),
|
|
428
|
+
}), kl = R(_l), Vl = /* @__PURE__ */ z({
|
|
429
429
|
__name: "JaInputNumber",
|
|
430
430
|
props: {
|
|
431
431
|
min: { default: -1 / 0 },
|
|
@@ -448,13 +448,13 @@ const bl = /* @__PURE__ */ z({
|
|
|
448
448
|
},
|
|
449
449
|
emits: ["blur", "focus", "change"],
|
|
450
450
|
setup(e, { expose: l, emit: a }) {
|
|
451
|
-
const t = e, o = M("aceFormModel"),
|
|
451
|
+
const t = e, o = M("aceFormModel"), i = M("aceFormItemProp"), d = M("aceFormValidator"), n = ve(() => t.size ? t.size : M("aceFormSize")), c = h(), p = a;
|
|
452
452
|
function r(m) {
|
|
453
|
-
d.removeFieldError(
|
|
453
|
+
d.removeFieldError(i), re(o.formData, i, u.value), p("change", m);
|
|
454
454
|
}
|
|
455
|
-
const
|
|
455
|
+
const u = h(x(o.formData, i));
|
|
456
456
|
return T(() => o.formData, () => {
|
|
457
|
-
|
|
457
|
+
u.value = x(o.formData, i);
|
|
458
458
|
}, {
|
|
459
459
|
deep: !0
|
|
460
460
|
}), l({
|
|
@@ -467,7 +467,7 @@ const bl = /* @__PURE__ */ z({
|
|
|
467
467
|
(m = c == null ? void 0 : c.value) == null || m.blur();
|
|
468
468
|
},
|
|
469
469
|
elInputNumber: c
|
|
470
|
-
}), (m, f) => (y(),
|
|
470
|
+
}), (m, f) => (y(), $(s(We), {
|
|
471
471
|
min: m.min,
|
|
472
472
|
max: m.max,
|
|
473
473
|
label: m.label,
|
|
@@ -476,8 +476,8 @@ const bl = /* @__PURE__ */ z({
|
|
|
476
476
|
"aria-label": m.ariaLabel,
|
|
477
477
|
controls: m.controls,
|
|
478
478
|
"controls-position": m.controlsPosition,
|
|
479
|
-
modelValue:
|
|
480
|
-
"onUpdate:modelValue": f[0] || (f[0] = (_) =>
|
|
479
|
+
modelValue: u.value,
|
|
480
|
+
"onUpdate:modelValue": f[0] || (f[0] = (_) => u.value = _),
|
|
481
481
|
name: m.name,
|
|
482
482
|
placeholder: m.placeholder,
|
|
483
483
|
precision: m.precision,
|
|
@@ -498,28 +498,28 @@ const bl = /* @__PURE__ */ z({
|
|
|
498
498
|
_: 3
|
|
499
499
|
}, 8, ["min", "max", "label", "disabled", "id", "aria-label", "controls", "controls-position", "modelValue", "name", "placeholder", "precision", "readonly", "size", "step", "step-strictly", "value-on-clear", "validate-event"]));
|
|
500
500
|
}
|
|
501
|
-
}),
|
|
501
|
+
}), Il = R(Vl), Cl = /* @__PURE__ */ z({
|
|
502
502
|
__name: "JaSelect",
|
|
503
503
|
emits: ["change"],
|
|
504
504
|
setup(e, { expose: l, emit: a }) {
|
|
505
|
-
const t = h({}), o = M("aceFormModel"),
|
|
505
|
+
const t = h({}), o = M("aceFormModel"), i = M("aceFormItemProp"), d = M("aceFormValidator"), n = a;
|
|
506
506
|
function c(r) {
|
|
507
|
-
d.removeFieldError(
|
|
507
|
+
d.removeFieldError(i), re(o.formData, i, p.value), n("change", r);
|
|
508
508
|
}
|
|
509
|
-
const p = h(
|
|
509
|
+
const p = h(x(o.formData, i));
|
|
510
510
|
return T(() => o.formData, () => {
|
|
511
|
-
p.value =
|
|
511
|
+
p.value = x(o.formData, i);
|
|
512
512
|
}, {
|
|
513
513
|
deep: !0
|
|
514
514
|
}), l({
|
|
515
515
|
focus: () => t.value.focus(),
|
|
516
516
|
blur: () => t.value.blur(),
|
|
517
517
|
elSelect: t
|
|
518
|
-
}), (r,
|
|
518
|
+
}), (r, u) => (y(), $(s(Ae), K({
|
|
519
519
|
ref_key: "input",
|
|
520
520
|
ref: t,
|
|
521
521
|
modelValue: p.value,
|
|
522
|
-
"onUpdate:modelValue":
|
|
522
|
+
"onUpdate:modelValue": u[0] || (u[0] = (m) => p.value = m),
|
|
523
523
|
onChange: c
|
|
524
524
|
}, r.$attrs), fe({ _: 2 }, [
|
|
525
525
|
W(r.$slots, (m, f) => ({
|
|
@@ -530,40 +530,40 @@ const bl = /* @__PURE__ */ z({
|
|
|
530
530
|
}))
|
|
531
531
|
]), 1040, ["modelValue"]));
|
|
532
532
|
}
|
|
533
|
-
}), $l = R(
|
|
533
|
+
}), $l = R(Cl), Al = /* @__PURE__ */ z({
|
|
534
534
|
__name: "JaDatePicker",
|
|
535
535
|
emits: ["change"],
|
|
536
536
|
setup(e, { expose: l, emit: a }) {
|
|
537
|
-
const t = h({}), o = M("aceFormModel"),
|
|
538
|
-
function p(
|
|
539
|
-
d.removeFieldError(
|
|
537
|
+
const t = h({}), o = M("aceFormModel"), i = M("aceFormItemProp"), d = M("aceFormValidator"), n = a, c = h({});
|
|
538
|
+
function p(u) {
|
|
539
|
+
d.removeFieldError(i), re(o.formData, i, r.value), n("change", u);
|
|
540
540
|
}
|
|
541
|
-
const r = h(
|
|
541
|
+
const r = h(x(o.formData, i));
|
|
542
542
|
return T(() => o.formData, () => {
|
|
543
|
-
r.value =
|
|
543
|
+
r.value = x(o.formData, i);
|
|
544
544
|
}, {
|
|
545
545
|
deep: !0
|
|
546
546
|
}), Ye(() => {
|
|
547
547
|
Object.entries(t.value).filter(([m, f]) => f instanceof Function).forEach(([m, f]) => {
|
|
548
548
|
c.value[m] = f;
|
|
549
549
|
});
|
|
550
|
-
}), l(c.value), (
|
|
550
|
+
}), l(c.value), (u, m) => (y(), $(s(rt), K({
|
|
551
551
|
ref_key: "input",
|
|
552
552
|
ref: t,
|
|
553
|
-
modelValue: s(o).formData[s(
|
|
554
|
-
"onUpdate:modelValue": m[0] || (m[0] = (f) => s(o).formData[s(
|
|
553
|
+
modelValue: s(o).formData[s(i)],
|
|
554
|
+
"onUpdate:modelValue": m[0] || (m[0] = (f) => s(o).formData[s(i)] = f),
|
|
555
555
|
onChange: p
|
|
556
|
-
},
|
|
557
|
-
W(
|
|
556
|
+
}, u.$attrs), fe({ _: 2 }, [
|
|
557
|
+
W(u.$slots, (f, _) => ({
|
|
558
558
|
name: _,
|
|
559
559
|
fn: g(() => [
|
|
560
|
-
te(
|
|
560
|
+
te(u.$slots, _)
|
|
561
561
|
])
|
|
562
562
|
}))
|
|
563
563
|
]), 1040, ["modelValue"]));
|
|
564
564
|
}
|
|
565
|
-
}),
|
|
566
|
-
function
|
|
565
|
+
}), Dl = R(Al);
|
|
566
|
+
function El(e) {
|
|
567
567
|
const l = ["Ctrl", "Alt", "Shift", "Meta"], a = [
|
|
568
568
|
"A",
|
|
569
569
|
"B",
|
|
@@ -630,45 +630,45 @@ function Dl(e) {
|
|
|
630
630
|
const t = e[e.length - 1];
|
|
631
631
|
return a.includes(t);
|
|
632
632
|
}
|
|
633
|
-
let
|
|
633
|
+
let Ne = {};
|
|
634
634
|
function Et(e, l, a) {
|
|
635
635
|
var o;
|
|
636
636
|
const t = ((o = e.arg) == null ? void 0 : o.split("+")) ?? [];
|
|
637
637
|
if (!(!t || t.length === 0))
|
|
638
|
-
if (
|
|
638
|
+
if (El(t)) {
|
|
639
639
|
if (l.__vueShortcutHandler__)
|
|
640
640
|
return;
|
|
641
|
-
const
|
|
641
|
+
const i = (d) => {
|
|
642
642
|
var r;
|
|
643
643
|
let n = !0;
|
|
644
|
-
for (const
|
|
645
|
-
|
|
644
|
+
for (const u of t)
|
|
645
|
+
u === "Ctrl" && !d.ctrlKey && (n = !1), u === "Alt" && !d.altKey && (n = !1), u === "Shift" && !d.shiftKey && (n = !1), u === "Meta" && !d.metaKey && (n = !1);
|
|
646
646
|
const c = t.length > 0 ? t[t.length - 1] : null;
|
|
647
647
|
d.key && c && d.key.toUpperCase() !== c.toUpperCase() && (n = !1);
|
|
648
648
|
let p = !1;
|
|
649
649
|
a.component ? p = (r = a.component.props) == null ? void 0 : r.disabled : a.props ? p = a.props.disabled : p = l.hasAttribute("disabled"), n && !p && (d.preventDefault(), e.value ? e.value(l, e, a) : (l.focus(), l.click()));
|
|
650
650
|
};
|
|
651
|
-
|
|
651
|
+
Sl({
|
|
652
652
|
keys: e.arg,
|
|
653
|
-
handler:
|
|
653
|
+
handler: i,
|
|
654
654
|
el: l,
|
|
655
|
-
prev:
|
|
655
|
+
prev: Ne[e.arg]
|
|
656
656
|
});
|
|
657
657
|
} else
|
|
658
658
|
console.warn(`Invalid shortcut key combination: ${t.join("+")}`);
|
|
659
659
|
}
|
|
660
660
|
function St(e) {
|
|
661
|
-
e.__vueShortcutHandler__ &&
|
|
661
|
+
e.__vueShortcutHandler__ && Tl(e.__vueShortcutHandler__);
|
|
662
662
|
}
|
|
663
|
-
function
|
|
663
|
+
function Sl(e) {
|
|
664
664
|
const l = e.prev, a = (window.rawWindow ?? window).document;
|
|
665
|
-
l && a.removeEventListener("keydown", l.handler), a.addEventListener("keydown", e.handler),
|
|
665
|
+
l && a.removeEventListener("keydown", l.handler), a.addEventListener("keydown", e.handler), Ne[e.keys] = e, e.el.__vueShortcutHandler__ = e;
|
|
666
666
|
}
|
|
667
|
-
function
|
|
668
|
-
const l =
|
|
667
|
+
function Tl(e) {
|
|
668
|
+
const l = Ne[e.keys];
|
|
669
669
|
if (l && l == e) {
|
|
670
670
|
const a = (window.rawWindow ?? window).document;
|
|
671
|
-
a.removeEventListener("keydown", e.handler), e.prev ? (a.addEventListener("keydown", e.prev.handler),
|
|
671
|
+
a.removeEventListener("keydown", e.handler), e.prev ? (a.addEventListener("keydown", e.prev.handler), Ne[e.keys] = e.prev) : Ne[e.keys] = void 0;
|
|
672
672
|
} else if (l) {
|
|
673
673
|
let a = l;
|
|
674
674
|
for (; a && a.prev != e; )
|
|
@@ -677,12 +677,12 @@ function Sl(e) {
|
|
|
677
677
|
}
|
|
678
678
|
e.prev && delete e.prev, delete e.el.__vueShortcutHandler__;
|
|
679
679
|
}
|
|
680
|
-
const
|
|
680
|
+
const Fl = (e) => {
|
|
681
681
|
if (e.offsetParent === null)
|
|
682
682
|
return !1;
|
|
683
683
|
const l = e.getBoundingClientRect(), a = window.rawWindow ?? window;
|
|
684
684
|
return l.top <= a.innerHeight && l.bottom >= 0 && l.left <= a.innerWidth && l.right >= 0;
|
|
685
|
-
},
|
|
685
|
+
}, Ml = {
|
|
686
686
|
root: null,
|
|
687
687
|
// 默认为视口
|
|
688
688
|
rootMargin: "0px",
|
|
@@ -690,12 +690,12 @@ const Tl = (e) => {
|
|
|
690
690
|
// 当 10% 的元素可见时触发
|
|
691
691
|
}, et = {
|
|
692
692
|
mounted(e, l, a) {
|
|
693
|
-
|
|
694
|
-
const t = (
|
|
695
|
-
|
|
693
|
+
Fl(e) && Et(l, e, a);
|
|
694
|
+
const t = (i) => {
|
|
695
|
+
i.forEach((d) => {
|
|
696
696
|
d.isIntersecting ? Et(l, e, a) : St(e);
|
|
697
697
|
});
|
|
698
|
-
}, o = new IntersectionObserver(t,
|
|
698
|
+
}, o = new IntersectionObserver(t, Ml);
|
|
699
699
|
e.__visibilityObserver__ = o, o.observe(e);
|
|
700
700
|
},
|
|
701
701
|
unmounted(e) {
|
|
@@ -708,10 +708,10 @@ function Tt(e, l) {
|
|
|
708
708
|
const ta = {
|
|
709
709
|
// 当指令绑定到元素时调用
|
|
710
710
|
mounted(e, l) {
|
|
711
|
-
const a = Ze(), { value: t, modifiers: o } = l,
|
|
712
|
-
!
|
|
711
|
+
const a = Ze(), { value: t, modifiers: o } = l, i = typeof t == "string" ? t.split(/,/) : t ?? [];
|
|
712
|
+
!i || i.length === 0 || (o.any ? i.some((d) => a.hasRole(d)) || Tt(o, e) : i.every((d) => a.hasRole(d)) || Tt(o, e));
|
|
713
713
|
}
|
|
714
|
-
},
|
|
714
|
+
}, Pl = /* @__PURE__ */ z({
|
|
715
715
|
__name: "JaButton",
|
|
716
716
|
props: {
|
|
717
717
|
tooltip: {},
|
|
@@ -727,33 +727,33 @@ const ta = {
|
|
|
727
727
|
const a = h({}), t = e, o = et;
|
|
728
728
|
return l({
|
|
729
729
|
elButton: a
|
|
730
|
-
}), (
|
|
731
|
-
placement:
|
|
730
|
+
}), (i, d) => (y(), $(s(ke), {
|
|
731
|
+
placement: i.tooltipPlacement,
|
|
732
732
|
"append-to": "body"
|
|
733
733
|
}, {
|
|
734
734
|
content: g(() => [
|
|
735
735
|
G(ae(`${t.tooltip ?? ""} ${t.shortcut ? "(" : ""}${t.shortcut ?? ""}${t.shortcut ? ")" : ""}`), 1)
|
|
736
736
|
]),
|
|
737
737
|
default: g(() => [
|
|
738
|
-
Y((y(),
|
|
738
|
+
Y((y(), $(s(me), K({
|
|
739
739
|
ref_key: "input",
|
|
740
740
|
ref: a
|
|
741
|
-
},
|
|
742
|
-
W(
|
|
741
|
+
}, i.$attrs), fe({ _: 2 }, [
|
|
742
|
+
W(i.$slots, (n, c) => ({
|
|
743
743
|
name: c,
|
|
744
744
|
fn: g(() => [
|
|
745
|
-
te(
|
|
745
|
+
te(i.$slots, c)
|
|
746
746
|
])
|
|
747
747
|
}))
|
|
748
748
|
]), 1040)), [
|
|
749
|
-
[s(ta),
|
|
750
|
-
[s(o), void 0,
|
|
749
|
+
[s(ta), i.auth, i.authModifiers],
|
|
750
|
+
[s(o), void 0, i.shortcut]
|
|
751
751
|
])
|
|
752
752
|
]),
|
|
753
753
|
_: 3
|
|
754
754
|
}, 8, ["placement"]));
|
|
755
755
|
}
|
|
756
|
-
}), se = R(
|
|
756
|
+
}), se = R(Pl), Ul = /* @__PURE__ */ z({
|
|
757
757
|
__name: "JaDropdownButton",
|
|
758
758
|
props: {
|
|
759
759
|
tooltip: {},
|
|
@@ -763,7 +763,7 @@ const ta = {
|
|
|
763
763
|
type: { default: "default" }
|
|
764
764
|
},
|
|
765
765
|
setup(e, { expose: l }) {
|
|
766
|
-
const a = h(), t = h(), o = e,
|
|
766
|
+
const a = h(), t = h(), o = e, i = et;
|
|
767
767
|
l({
|
|
768
768
|
elButton: a,
|
|
769
769
|
elDropdown: t
|
|
@@ -771,19 +771,19 @@ const ta = {
|
|
|
771
771
|
function d(n) {
|
|
772
772
|
n.focus();
|
|
773
773
|
}
|
|
774
|
-
return (n, c) => (y(),
|
|
774
|
+
return (n, c) => (y(), $(s(ke), { placement: n.tooltipPlacement }, {
|
|
775
775
|
content: g(() => [
|
|
776
776
|
G(ae(`${o.tooltip ?? ""} ${o.tooltip ? "(" : ""}${o.shortcut ?? ""}${o.tooltip ? ")" : ""}`), 1)
|
|
777
777
|
]),
|
|
778
778
|
default: g(() => [
|
|
779
|
-
w(s(
|
|
779
|
+
w(s(Lt), K({
|
|
780
780
|
size: "default",
|
|
781
781
|
ref_key: "dropdown",
|
|
782
782
|
ref: t,
|
|
783
783
|
trigger: "click"
|
|
784
784
|
}, n.$attrs), fe({
|
|
785
785
|
default: g(() => [
|
|
786
|
-
Y((y(),
|
|
786
|
+
Y((y(), $(s(me), K({
|
|
787
787
|
ref_key: "input",
|
|
788
788
|
ref: a,
|
|
789
789
|
type: n.type,
|
|
@@ -800,7 +800,7 @@ const ta = {
|
|
|
800
800
|
]),
|
|
801
801
|
_: 1
|
|
802
802
|
}, 16, ["type"])), [
|
|
803
|
-
[s(
|
|
803
|
+
[s(i), d, n.shortcut]
|
|
804
804
|
])
|
|
805
805
|
]),
|
|
806
806
|
_: 2
|
|
@@ -816,17 +816,17 @@ const ta = {
|
|
|
816
816
|
_: 3
|
|
817
817
|
}, 8, ["placement"]));
|
|
818
818
|
}
|
|
819
|
-
}),
|
|
819
|
+
}), zl = R(Ul), Bl = /* @__PURE__ */ z({
|
|
820
820
|
__name: "JaSwitch",
|
|
821
821
|
emits: ["change"],
|
|
822
822
|
setup(e, { expose: l, emit: a }) {
|
|
823
|
-
const t = h(), o = M("aceFormModel"),
|
|
823
|
+
const t = h(), o = M("aceFormModel"), i = M("aceFormItemProp"), d = M("aceFormValidator"), n = a;
|
|
824
824
|
function c(r) {
|
|
825
|
-
d.removeFieldError(
|
|
825
|
+
d.removeFieldError(i), re(o.formData, i, p.value), n("change", r);
|
|
826
826
|
}
|
|
827
|
-
const p = h(
|
|
827
|
+
const p = h(x(o.formData, i));
|
|
828
828
|
return T(() => o.formData, () => {
|
|
829
|
-
p.value =
|
|
829
|
+
p.value = x(o.formData, i);
|
|
830
830
|
}, {
|
|
831
831
|
deep: !0
|
|
832
832
|
}), l({
|
|
@@ -839,11 +839,11 @@ const ta = {
|
|
|
839
839
|
return (r = t.value) == null ? void 0 : r.blur();
|
|
840
840
|
},
|
|
841
841
|
elSwitch: t
|
|
842
|
-
}), (r,
|
|
842
|
+
}), (r, u) => (y(), $(s(Nt), K({
|
|
843
843
|
ref_key: "input",
|
|
844
844
|
ref: t,
|
|
845
845
|
modelValue: p.value,
|
|
846
|
-
"onUpdate:modelValue":
|
|
846
|
+
"onUpdate:modelValue": u[0] || (u[0] = (m) => p.value = m),
|
|
847
847
|
onChange: c
|
|
848
848
|
}, r.$attrs), fe({ _: 2 }, [
|
|
849
849
|
W(r.$slots, (m, f) => ({
|
|
@@ -854,7 +854,7 @@ const ta = {
|
|
|
854
854
|
}))
|
|
855
855
|
]), 1040, ["modelValue"]));
|
|
856
856
|
}
|
|
857
|
-
}),
|
|
857
|
+
}), Rl = R(Bl), Ll = { style: { width: "100%" } }, Nl = ["onClick"], aa = /* @__PURE__ */ z({
|
|
858
858
|
__name: "StringListInput",
|
|
859
859
|
props: {
|
|
860
860
|
modelValue: {},
|
|
@@ -864,45 +864,45 @@ const ta = {
|
|
|
864
864
|
setup(e, { emit: l }) {
|
|
865
865
|
var r;
|
|
866
866
|
const a = e, t = l;
|
|
867
|
-
function o(
|
|
868
|
-
d.value.splice(
|
|
867
|
+
function o(u) {
|
|
868
|
+
d.value.splice(u, 1);
|
|
869
869
|
}
|
|
870
|
-
function
|
|
870
|
+
function i() {
|
|
871
871
|
d.value.push({ v: "" });
|
|
872
872
|
}
|
|
873
|
-
const d = h(((r = a.modelValue) == null ? void 0 : r.map((
|
|
873
|
+
const d = h(((r = a.modelValue) == null ? void 0 : r.map((u) => ({ v: u }))) ?? [{
|
|
874
874
|
v: ""
|
|
875
875
|
}]);
|
|
876
876
|
let n = !1, c = !1;
|
|
877
877
|
je(() => p(a.modelValue));
|
|
878
|
-
function p(
|
|
878
|
+
function p(u) {
|
|
879
879
|
if (c) {
|
|
880
880
|
c = !1;
|
|
881
881
|
return;
|
|
882
882
|
}
|
|
883
|
-
n = !0,
|
|
883
|
+
n = !0, u ? (d.value = u.map((m) => ({ v: m })), d.value.length == 0 && d.value.push({ v: "" })) : d.value = [{ v: "" }];
|
|
884
884
|
}
|
|
885
|
-
return T(() => a.modelValue, (
|
|
886
|
-
p(
|
|
885
|
+
return T(() => a.modelValue, (u) => {
|
|
886
|
+
p(u);
|
|
887
887
|
}), T(() => d.value, () => {
|
|
888
888
|
if (n) {
|
|
889
889
|
n = !1;
|
|
890
890
|
return;
|
|
891
891
|
}
|
|
892
892
|
c = !0;
|
|
893
|
-
const
|
|
894
|
-
t("update:modelValue",
|
|
895
|
-
}, { deep: !0 }), (
|
|
893
|
+
const u = d.value.map((m) => m.v).filter((m) => m && m.length > 0);
|
|
894
|
+
t("update:modelValue", u), t("change", u);
|
|
895
|
+
}, { deep: !0 }), (u, m) => (y(), N("div", Ll, [
|
|
896
896
|
w(s(vt), {
|
|
897
897
|
direction: "vertical",
|
|
898
898
|
style: { "align-items": "stretch", width: "100%" }
|
|
899
899
|
}, {
|
|
900
900
|
default: g(() => [
|
|
901
|
-
(y(!0),
|
|
901
|
+
(y(!0), N(oe, null, W(d.value, (f, _) => (y(), $(s(we), {
|
|
902
902
|
key: _,
|
|
903
903
|
modelValue: f.v,
|
|
904
904
|
"onUpdate:modelValue": (I) => f.v = I,
|
|
905
|
-
size:
|
|
905
|
+
size: u.size
|
|
906
906
|
}, {
|
|
907
907
|
append: g(() => [
|
|
908
908
|
w(s(ke), {
|
|
@@ -918,7 +918,7 @@ const ta = {
|
|
|
918
918
|
}, [
|
|
919
919
|
w(s(ce), null, {
|
|
920
920
|
default: g(() => [
|
|
921
|
-
w(s(
|
|
921
|
+
w(s(xe))
|
|
922
922
|
]),
|
|
923
923
|
_: 1
|
|
924
924
|
})
|
|
@@ -937,7 +937,7 @@ const ta = {
|
|
|
937
937
|
var I;
|
|
938
938
|
return [
|
|
939
939
|
Y(j("div", {
|
|
940
|
-
onClick: m[0] || (m[0] = (b) =>
|
|
940
|
+
onClick: m[0] || (m[0] = (b) => i()),
|
|
941
941
|
style: { margin: "0 -20px", padding: "0 20px" }
|
|
942
942
|
}, [
|
|
943
943
|
w(s(ce), null, {
|
|
@@ -961,29 +961,29 @@ const ta = {
|
|
|
961
961
|
})
|
|
962
962
|
]));
|
|
963
963
|
}
|
|
964
|
-
}),
|
|
964
|
+
}), Jl = /* @__PURE__ */ z({
|
|
965
965
|
__name: "JaStringList",
|
|
966
966
|
emits: ["change"],
|
|
967
967
|
setup(e, { emit: l }) {
|
|
968
|
-
const a = M("aceFormModel"), t = M("aceFormItemProp"), o = M("aceFormValidator"),
|
|
968
|
+
const a = M("aceFormModel"), t = M("aceFormItemProp"), o = M("aceFormValidator"), i = l;
|
|
969
969
|
function d(c) {
|
|
970
|
-
o.removeFieldError(t), re(a.formData, t, n.value),
|
|
970
|
+
o.removeFieldError(t), re(a.formData, t, n.value), i("change", c);
|
|
971
971
|
}
|
|
972
|
-
const n = h(
|
|
972
|
+
const n = h(x(a.formData, t) ?? [""]);
|
|
973
973
|
return T(() => a.formData, () => {
|
|
974
|
-
n.value =
|
|
974
|
+
n.value = x(a.formData, t) ?? [""];
|
|
975
975
|
}, {
|
|
976
976
|
deep: !0
|
|
977
|
-
}), (c, p) => (y(),
|
|
977
|
+
}), (c, p) => (y(), $(aa, K({
|
|
978
978
|
modelValue: n.value,
|
|
979
979
|
"onUpdate:modelValue": p[0] || (p[0] = (r) => n.value = r),
|
|
980
980
|
onChange: d
|
|
981
981
|
}, c.$attrs), null, 16, ["modelValue"]));
|
|
982
982
|
}
|
|
983
|
-
}),
|
|
983
|
+
}), Ol = R(Jl), jl = R(aa), xl = {
|
|
984
984
|
style: { width: "100%" },
|
|
985
985
|
class: "ja-number-list"
|
|
986
|
-
}, ql = { class: "el-input-group__append" },
|
|
986
|
+
}, ql = { class: "el-input-group__append" }, Gl = { class: "el-input-group__append" }, Hl = /* @__PURE__ */ z({
|
|
987
987
|
__name: "NumberListInput",
|
|
988
988
|
props: {
|
|
989
989
|
modelValue: {},
|
|
@@ -995,49 +995,49 @@ const ta = {
|
|
|
995
995
|
setup(e, { emit: l }) {
|
|
996
996
|
var r;
|
|
997
997
|
const a = e, t = l;
|
|
998
|
-
function o(
|
|
999
|
-
d.value.splice(
|
|
998
|
+
function o(u) {
|
|
999
|
+
d.value.splice(u, 1);
|
|
1000
1000
|
}
|
|
1001
|
-
function
|
|
1001
|
+
function i() {
|
|
1002
1002
|
d.value.push({ v: 0 });
|
|
1003
1003
|
}
|
|
1004
|
-
const d = h(((r = a.modelValue) == null ? void 0 : r.map((
|
|
1004
|
+
const d = h(((r = a.modelValue) == null ? void 0 : r.map((u) => ({ v: u }))) ?? [{
|
|
1005
1005
|
v: 0
|
|
1006
1006
|
}]);
|
|
1007
1007
|
let n = !1, c = !1;
|
|
1008
1008
|
je(() => p(a.modelValue));
|
|
1009
|
-
function p(
|
|
1010
|
-
if (
|
|
1009
|
+
function p(u) {
|
|
1010
|
+
if (u) {
|
|
1011
1011
|
if (c) {
|
|
1012
1012
|
c = !1;
|
|
1013
1013
|
return;
|
|
1014
1014
|
}
|
|
1015
|
-
n = !0,
|
|
1015
|
+
n = !0, u ? (d.value = u.map((m) => ({ v: m })), d.value.length == 0 && d.value.push({ v: 0 })) : d.value = [{ v: 0 }];
|
|
1016
1016
|
}
|
|
1017
1017
|
}
|
|
1018
|
-
return T(() => a.modelValue, (
|
|
1019
|
-
p(
|
|
1018
|
+
return T(() => a.modelValue, (u) => {
|
|
1019
|
+
p(u);
|
|
1020
1020
|
}), T(() => d.value, () => {
|
|
1021
1021
|
if (n) {
|
|
1022
1022
|
n = !1;
|
|
1023
1023
|
return;
|
|
1024
1024
|
}
|
|
1025
1025
|
c = !0;
|
|
1026
|
-
const
|
|
1027
|
-
t("update:modelValue",
|
|
1028
|
-
}, { deep: !0 }), (
|
|
1026
|
+
const u = d.value.map((m) => m.v);
|
|
1027
|
+
t("update:modelValue", u), t("change", u);
|
|
1028
|
+
}, { deep: !0 }), (u, m) => {
|
|
1029
1029
|
const f = he("el-tooltip");
|
|
1030
|
-
return y(),
|
|
1031
|
-
(y(!0),
|
|
1030
|
+
return y(), N("div", xl, [
|
|
1031
|
+
(y(!0), N(oe, null, W(d.value, (_, I) => (y(), N("div", {
|
|
1032
1032
|
class: "ja-input-box",
|
|
1033
1033
|
key: I
|
|
1034
1034
|
}, [
|
|
1035
1035
|
w(s(We), {
|
|
1036
1036
|
modelValue: _.v,
|
|
1037
1037
|
"onUpdate:modelValue": (b) => _.v = b,
|
|
1038
|
-
precision:
|
|
1039
|
-
size:
|
|
1040
|
-
step:
|
|
1038
|
+
precision: u.precision,
|
|
1039
|
+
size: u.size,
|
|
1040
|
+
step: u.step
|
|
1041
1041
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "precision", "size", "step"]),
|
|
1042
1042
|
w(f, {
|
|
1043
1043
|
content: "删除",
|
|
@@ -1049,9 +1049,9 @@ const ta = {
|
|
|
1049
1049
|
Y(j("div", ql, [
|
|
1050
1050
|
w(s(me), {
|
|
1051
1051
|
link: "",
|
|
1052
|
-
icon: s(
|
|
1052
|
+
icon: s(xe),
|
|
1053
1053
|
onClick: (v) => o(I),
|
|
1054
|
-
size:
|
|
1054
|
+
size: u.size
|
|
1055
1055
|
}, null, 8, ["icon", "onClick", "size"])
|
|
1056
1056
|
], 512), [
|
|
1057
1057
|
[ge, I < (((b = d.value) == null ? void 0 : b.length) ?? 0) - 1]
|
|
@@ -1067,10 +1067,10 @@ const ta = {
|
|
|
1067
1067
|
default: g(() => {
|
|
1068
1068
|
var b;
|
|
1069
1069
|
return [
|
|
1070
|
-
Y(j("div",
|
|
1070
|
+
Y(j("div", Gl, [
|
|
1071
1071
|
w(s(me), {
|
|
1072
|
-
onClick: m[0] || (m[0] = (v) =>
|
|
1073
|
-
size:
|
|
1072
|
+
onClick: m[0] || (m[0] = (v) => i()),
|
|
1073
|
+
size: u.size,
|
|
1074
1074
|
link: "",
|
|
1075
1075
|
icon: s(Ee)
|
|
1076
1076
|
}, null, 8, ["size", "icon"])
|
|
@@ -1085,29 +1085,29 @@ const ta = {
|
|
|
1085
1085
|
]);
|
|
1086
1086
|
};
|
|
1087
1087
|
}
|
|
1088
|
-
}), la = /* @__PURE__ */ pe(
|
|
1088
|
+
}), la = /* @__PURE__ */ pe(Hl, [["__scopeId", "data-v-d4e93caa"]]), Wl = /* @__PURE__ */ z({
|
|
1089
1089
|
__name: "JaNumberList",
|
|
1090
1090
|
emits: ["change"],
|
|
1091
1091
|
setup(e, { emit: l }) {
|
|
1092
|
-
const a = M("aceFormModel"), t = M("aceFormItemProp"), o = M("aceFormValidator"),
|
|
1092
|
+
const a = M("aceFormModel"), t = M("aceFormItemProp"), o = M("aceFormValidator"), i = l;
|
|
1093
1093
|
function d(c) {
|
|
1094
|
-
o.removeFieldError(t), re(a.formData, t, n.value),
|
|
1094
|
+
o.removeFieldError(t), re(a.formData, t, n.value), i("change", c);
|
|
1095
1095
|
}
|
|
1096
|
-
const n = h(
|
|
1096
|
+
const n = h(x(a.formData, t) ?? [0]);
|
|
1097
1097
|
return T(() => a.formData, () => {
|
|
1098
|
-
n.value =
|
|
1098
|
+
n.value = x(a.formData, t) ?? [0];
|
|
1099
1099
|
}, {
|
|
1100
1100
|
deep: !0
|
|
1101
|
-
}), (c, p) => (y(),
|
|
1101
|
+
}), (c, p) => (y(), $(la, K({
|
|
1102
1102
|
modelValue: n.value,
|
|
1103
1103
|
"onUpdate:modelValue": p[0] || (p[0] = (r) => n.value = r),
|
|
1104
1104
|
onChange: d
|
|
1105
1105
|
}, c.$attrs), null, 16, ["modelValue"]));
|
|
1106
1106
|
}
|
|
1107
|
-
}),
|
|
1107
|
+
}), Kl = R(Wl), Yl = R(la), Ql = {
|
|
1108
1108
|
style: { width: "100%" },
|
|
1109
1109
|
class: "ja-enum-list"
|
|
1110
|
-
},
|
|
1110
|
+
}, Xl = { class: "el-input-group__append" }, Zl = { class: "el-input-group__append" }, eo = /* @__PURE__ */ z({
|
|
1111
1111
|
__name: "EnumListInput",
|
|
1112
1112
|
props: {
|
|
1113
1113
|
modelValue: {},
|
|
@@ -1118,48 +1118,48 @@ const ta = {
|
|
|
1118
1118
|
setup(e, { emit: l }) {
|
|
1119
1119
|
var r;
|
|
1120
1120
|
const a = e, t = l;
|
|
1121
|
-
function o(
|
|
1122
|
-
d.value.splice(
|
|
1121
|
+
function o(u) {
|
|
1122
|
+
d.value.splice(u, 1);
|
|
1123
1123
|
}
|
|
1124
|
-
function
|
|
1124
|
+
function i() {
|
|
1125
1125
|
d.value.push({ v: "" });
|
|
1126
1126
|
}
|
|
1127
|
-
const d = h(((r = a.modelValue) == null ? void 0 : r.map((
|
|
1127
|
+
const d = h(((r = a.modelValue) == null ? void 0 : r.map((u) => ({ v: u }))) ?? [{
|
|
1128
1128
|
v: ""
|
|
1129
1129
|
}]);
|
|
1130
1130
|
let n = !1, c = !1;
|
|
1131
1131
|
je(() => p(a.modelValue));
|
|
1132
|
-
function p(
|
|
1132
|
+
function p(u) {
|
|
1133
1133
|
if (c) {
|
|
1134
1134
|
c = !1;
|
|
1135
1135
|
return;
|
|
1136
1136
|
}
|
|
1137
|
-
n = !0, d.value =
|
|
1137
|
+
n = !0, d.value = u.map((m) => ({ v: m })), d.value.length == 0 && d.value.push({ v: "" });
|
|
1138
1138
|
}
|
|
1139
|
-
return T(() => a.modelValue, (
|
|
1140
|
-
p(
|
|
1139
|
+
return T(() => a.modelValue, (u) => {
|
|
1140
|
+
p(u);
|
|
1141
1141
|
}), T(() => d.value, () => {
|
|
1142
1142
|
if (n) {
|
|
1143
1143
|
n = !1;
|
|
1144
1144
|
return;
|
|
1145
1145
|
}
|
|
1146
1146
|
c = !0;
|
|
1147
|
-
const
|
|
1148
|
-
t("update:modelValue",
|
|
1149
|
-
}, { deep: !0 }), (
|
|
1147
|
+
const u = d.value.map((m) => m.v).filter((m) => m && m.length > 0);
|
|
1148
|
+
t("update:modelValue", u), t("change", u);
|
|
1149
|
+
}, { deep: !0 }), (u, m) => {
|
|
1150
1150
|
const f = he("el-option"), _ = he("el-tooltip");
|
|
1151
|
-
return y(),
|
|
1152
|
-
(y(!0),
|
|
1151
|
+
return y(), N("div", Ql, [
|
|
1152
|
+
(y(!0), N(oe, null, W(d.value, (I, b) => (y(), N("div", {
|
|
1153
1153
|
class: "ja-input-box",
|
|
1154
1154
|
key: b
|
|
1155
1155
|
}, [
|
|
1156
1156
|
w(s(Ae), {
|
|
1157
1157
|
modelValue: I.v,
|
|
1158
1158
|
"onUpdate:modelValue": (v) => I.v = v,
|
|
1159
|
-
size:
|
|
1159
|
+
size: u.size
|
|
1160
1160
|
}, {
|
|
1161
1161
|
default: g(() => [
|
|
1162
|
-
(y(!0),
|
|
1162
|
+
(y(!0), N(oe, null, W(Object.keys(a.enumValues), (v) => (y(), $(f, {
|
|
1163
1163
|
key: v,
|
|
1164
1164
|
label: v,
|
|
1165
1165
|
value: a.enumValues[v]
|
|
@@ -1174,12 +1174,12 @@ const ta = {
|
|
|
1174
1174
|
default: g(() => {
|
|
1175
1175
|
var v;
|
|
1176
1176
|
return [
|
|
1177
|
-
Y(j("div",
|
|
1177
|
+
Y(j("div", Xl, [
|
|
1178
1178
|
w(s(me), {
|
|
1179
1179
|
link: "",
|
|
1180
|
-
icon: s(
|
|
1180
|
+
icon: s(xe),
|
|
1181
1181
|
onClick: (S) => o(b),
|
|
1182
|
-
size:
|
|
1182
|
+
size: u.size
|
|
1183
1183
|
}, null, 8, ["icon", "onClick", "size"])
|
|
1184
1184
|
], 512), [
|
|
1185
1185
|
[ge, b < (((v = d.value) == null ? void 0 : v.length) ?? 0) - 1]
|
|
@@ -1195,10 +1195,10 @@ const ta = {
|
|
|
1195
1195
|
default: g(() => {
|
|
1196
1196
|
var v;
|
|
1197
1197
|
return [
|
|
1198
|
-
Y(j("div",
|
|
1198
|
+
Y(j("div", Zl, [
|
|
1199
1199
|
w(s(me), {
|
|
1200
|
-
onClick: m[0] || (m[0] = (S) =>
|
|
1201
|
-
size:
|
|
1200
|
+
onClick: m[0] || (m[0] = (S) => i()),
|
|
1201
|
+
size: u.size,
|
|
1202
1202
|
link: "",
|
|
1203
1203
|
icon: s(Ee)
|
|
1204
1204
|
}, null, 8, ["size", "icon"])
|
|
@@ -1213,33 +1213,33 @@ const ta = {
|
|
|
1213
1213
|
]);
|
|
1214
1214
|
};
|
|
1215
1215
|
}
|
|
1216
|
-
}), oa = /* @__PURE__ */ pe(
|
|
1216
|
+
}), oa = /* @__PURE__ */ pe(eo, [["__scopeId", "data-v-7f910f6d"]]), to = /* @__PURE__ */ z({
|
|
1217
1217
|
__name: "JaEnumList",
|
|
1218
1218
|
props: {
|
|
1219
1219
|
enumValues: {}
|
|
1220
1220
|
},
|
|
1221
1221
|
emits: ["change"],
|
|
1222
1222
|
setup(e, { emit: l }) {
|
|
1223
|
-
const a = M("aceFormModel"), t = M("aceFormItemProp"), o = M("aceFormValidator"),
|
|
1223
|
+
const a = M("aceFormModel"), t = M("aceFormItemProp"), o = M("aceFormValidator"), i = l;
|
|
1224
1224
|
function d(c) {
|
|
1225
|
-
o.removeFieldError(t), re(a.formData, t, n.value),
|
|
1225
|
+
o.removeFieldError(t), re(a.formData, t, n.value), i("change", c);
|
|
1226
1226
|
}
|
|
1227
|
-
const n = h(
|
|
1227
|
+
const n = h(x(a.formData, t) ?? [""]);
|
|
1228
1228
|
return T(() => a.formData, () => {
|
|
1229
|
-
n.value =
|
|
1229
|
+
n.value = x(a.formData, t) ?? [""];
|
|
1230
1230
|
}, {
|
|
1231
1231
|
deep: !0
|
|
1232
|
-
}), (c, p) => (y(),
|
|
1232
|
+
}), (c, p) => (y(), $(oa, K({
|
|
1233
1233
|
modelValue: n.value,
|
|
1234
1234
|
"onUpdate:modelValue": p[0] || (p[0] = (r) => n.value = r),
|
|
1235
1235
|
"enum-values": c.enumValues,
|
|
1236
1236
|
onChange: d
|
|
1237
1237
|
}, c.$attrs), null, 16, ["modelValue", "enum-values"]));
|
|
1238
1238
|
}
|
|
1239
|
-
}),
|
|
1239
|
+
}), ao = R(to), lo = R(oa), oo = {
|
|
1240
1240
|
style: { width: "100%" },
|
|
1241
1241
|
class: "ja-enum-list"
|
|
1242
|
-
},
|
|
1242
|
+
}, no = { class: "splitter" }, ro = { class: "el-input-group__append" }, so = { class: "el-input-group__append" }, uo = /* @__PURE__ */ z({
|
|
1243
1243
|
__name: "MapItemListInput",
|
|
1244
1244
|
props: {
|
|
1245
1245
|
modelValue: {},
|
|
@@ -1254,13 +1254,13 @@ const ta = {
|
|
|
1254
1254
|
var _;
|
|
1255
1255
|
(_ = d.value) == null || _.splice(f, 1);
|
|
1256
1256
|
}
|
|
1257
|
-
function
|
|
1257
|
+
function i() {
|
|
1258
1258
|
var f;
|
|
1259
1259
|
(f = d.value) == null || f.push({ k: "" });
|
|
1260
1260
|
}
|
|
1261
1261
|
const d = h([]);
|
|
1262
1262
|
let n = !1, c = !1, p = h(), r = h({});
|
|
1263
|
-
function
|
|
1263
|
+
function u() {
|
|
1264
1264
|
switch (console.log("map item value comp type:", a.valueType), a.valueType) {
|
|
1265
1265
|
case "String":
|
|
1266
1266
|
p.value = we, r.value = {};
|
|
@@ -1279,7 +1279,7 @@ const ta = {
|
|
|
1279
1279
|
p.value = Ae;
|
|
1280
1280
|
break;
|
|
1281
1281
|
case "Boolean":
|
|
1282
|
-
p.value =
|
|
1282
|
+
p.value = Nt;
|
|
1283
1283
|
break;
|
|
1284
1284
|
case "DATE":
|
|
1285
1285
|
p.value = rt, r.value = {
|
|
@@ -1294,7 +1294,7 @@ const ta = {
|
|
|
1294
1294
|
}
|
|
1295
1295
|
}
|
|
1296
1296
|
je(() => {
|
|
1297
|
-
m(a.modelValue),
|
|
1297
|
+
m(a.modelValue), u();
|
|
1298
1298
|
});
|
|
1299
1299
|
function m(f) {
|
|
1300
1300
|
if (c) {
|
|
@@ -1322,11 +1322,11 @@ const ta = {
|
|
|
1322
1322
|
const f = (_ = d.value) == null ? void 0 : _.filter((I) => I.k && I.v).reduce((I, b) => (I[b.k] = b.v, I), {});
|
|
1323
1323
|
t("update:modelValue", f), t("change", f);
|
|
1324
1324
|
}, { deep: !0 }), T(() => a.valueType, () => {
|
|
1325
|
-
|
|
1325
|
+
u();
|
|
1326
1326
|
}), (f, _) => {
|
|
1327
1327
|
const I = he("el-text"), b = he("el-option"), v = he("el-tooltip");
|
|
1328
|
-
return y(),
|
|
1329
|
-
(y(!0),
|
|
1328
|
+
return y(), N("div", oo, [
|
|
1329
|
+
(y(!0), N(oe, null, W(d.value, (S, P) => (y(), N("div", {
|
|
1330
1330
|
class: "ja-input-box",
|
|
1331
1331
|
key: P
|
|
1332
1332
|
}, [
|
|
@@ -1336,7 +1336,7 @@ const ta = {
|
|
|
1336
1336
|
size: f.size,
|
|
1337
1337
|
placeholder: "键"
|
|
1338
1338
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "size"]),
|
|
1339
|
-
j("div",
|
|
1339
|
+
j("div", no, [
|
|
1340
1340
|
w(I, null, {
|
|
1341
1341
|
default: g(() => _[1] || (_[1] = [
|
|
1342
1342
|
G(":")
|
|
@@ -1345,14 +1345,14 @@ const ta = {
|
|
|
1345
1345
|
__: [1]
|
|
1346
1346
|
})
|
|
1347
1347
|
]),
|
|
1348
|
-
(y(),
|
|
1348
|
+
(y(), $(Ua(s(p)), K({
|
|
1349
1349
|
modelValue: S.v,
|
|
1350
1350
|
"onUpdate:modelValue": (k) => S.v = k,
|
|
1351
1351
|
size: f.size,
|
|
1352
1352
|
placeholder: "值"
|
|
1353
1353
|
}, { ref_for: !0 }, s(r)), {
|
|
1354
1354
|
default: g(() => [
|
|
1355
|
-
a.valueType == "Enum" ? (y(!0),
|
|
1355
|
+
a.valueType == "Enum" ? (y(!0), N(oe, { key: 0 }, W(Object.keys(a.enumValues ?? {}), (k) => (y(), $(b, {
|
|
1356
1356
|
key: k,
|
|
1357
1357
|
label: k,
|
|
1358
1358
|
value: a.enumValues ? a.enumValues[k] : ""
|
|
@@ -1367,11 +1367,11 @@ const ta = {
|
|
|
1367
1367
|
default: g(() => {
|
|
1368
1368
|
var k;
|
|
1369
1369
|
return [
|
|
1370
|
-
Y(j("div",
|
|
1370
|
+
Y(j("div", ro, [
|
|
1371
1371
|
w(s(me), {
|
|
1372
1372
|
link: "",
|
|
1373
|
-
icon: s(
|
|
1374
|
-
onClick: (
|
|
1373
|
+
icon: s(xe),
|
|
1374
|
+
onClick: (C) => o(P),
|
|
1375
1375
|
size: f.size
|
|
1376
1376
|
}, null, 8, ["icon", "onClick", "size"])
|
|
1377
1377
|
], 512), [
|
|
@@ -1388,9 +1388,9 @@ const ta = {
|
|
|
1388
1388
|
default: g(() => {
|
|
1389
1389
|
var k;
|
|
1390
1390
|
return [
|
|
1391
|
-
Y(j("div",
|
|
1391
|
+
Y(j("div", so, [
|
|
1392
1392
|
w(s(me), {
|
|
1393
|
-
onClick: _[0] || (_[0] = (
|
|
1393
|
+
onClick: _[0] || (_[0] = (C) => i()),
|
|
1394
1394
|
size: f.size,
|
|
1395
1395
|
link: "",
|
|
1396
1396
|
icon: s(Ee)
|
|
@@ -1406,25 +1406,25 @@ const ta = {
|
|
|
1406
1406
|
]);
|
|
1407
1407
|
};
|
|
1408
1408
|
}
|
|
1409
|
-
}), na = /* @__PURE__ */ pe(
|
|
1409
|
+
}), na = /* @__PURE__ */ pe(uo, [["__scopeId", "data-v-f8df7c64"]]), io = /* @__PURE__ */ z({
|
|
1410
1410
|
__name: "JaMapItemList",
|
|
1411
1411
|
emits: ["change"],
|
|
1412
1412
|
setup(e, { emit: l }) {
|
|
1413
|
-
const a = M("aceFormModel"), t = M("aceFormItemProp"), o = M("aceFormValidator"),
|
|
1413
|
+
const a = M("aceFormModel"), t = M("aceFormItemProp"), o = M("aceFormValidator"), i = l;
|
|
1414
1414
|
function d(c) {
|
|
1415
|
-
o.removeFieldError(t), re(a.formData, t, n.value),
|
|
1415
|
+
o.removeFieldError(t), re(a.formData, t, n.value), i("change", c);
|
|
1416
1416
|
}
|
|
1417
|
-
const n = h(
|
|
1417
|
+
const n = h(x(a.formData, t) ?? { "": "" });
|
|
1418
1418
|
return T(() => a.formData, () => {
|
|
1419
|
-
n.value =
|
|
1420
|
-
}), (c, p) => (y(),
|
|
1419
|
+
n.value = x(a.formData, t) ?? { "": "" };
|
|
1420
|
+
}), (c, p) => (y(), $(na, K({
|
|
1421
1421
|
modelValue: n.value,
|
|
1422
1422
|
"onUpdate:modelValue": p[0] || (p[0] = (r) => n.value = r),
|
|
1423
1423
|
onChange: d
|
|
1424
1424
|
}, c.$attrs), null, 16, ["modelValue"]));
|
|
1425
1425
|
}
|
|
1426
|
-
}),
|
|
1427
|
-
function
|
|
1426
|
+
}), co = R(io), po = R(na);
|
|
1427
|
+
function mo(e, l) {
|
|
1428
1428
|
return {
|
|
1429
1429
|
...e,
|
|
1430
1430
|
label: typeof l == "string" && typeof e[l] == "string" ? e[l] : "",
|
|
@@ -1434,12 +1434,12 @@ function po(e, l) {
|
|
|
1434
1434
|
function Pe(e, l) {
|
|
1435
1435
|
const a = {}, t = [];
|
|
1436
1436
|
for (let o = 0; o < e.length; o++) {
|
|
1437
|
-
const
|
|
1438
|
-
a[
|
|
1437
|
+
const i = e[o], d = mo(i, l);
|
|
1438
|
+
a[i.id] = d, i.parentId ? a[i.parentId].children.push(d) : t.push(d);
|
|
1439
1439
|
}
|
|
1440
1440
|
return t;
|
|
1441
1441
|
}
|
|
1442
|
-
const bt = "-1", ra = "-100",
|
|
1442
|
+
const bt = "-1", ra = "-100", fo = /* @__PURE__ */ z({
|
|
1443
1443
|
__name: "DepartmentPicker",
|
|
1444
1444
|
props: /* @__PURE__ */ Q({
|
|
1445
1445
|
realmId: {},
|
|
@@ -1454,7 +1454,7 @@ const bt = "-1", ra = "-100", mo = /* @__PURE__ */ z({
|
|
|
1454
1454
|
}),
|
|
1455
1455
|
emits: /* @__PURE__ */ Q(["change"], ["update:modelValue"]),
|
|
1456
1456
|
setup(e, { emit: l }) {
|
|
1457
|
-
const a = ne(), t =
|
|
1457
|
+
const a = ne(), t = xt(a), o = e, i = l, d = ue(e, "modelValue");
|
|
1458
1458
|
if (o.multiple && !Array.isArray(d.value))
|
|
1459
1459
|
throw new Error("部门选择器设置multiple为true,但是绑定的v-model值是单值");
|
|
1460
1460
|
if (!o.multiple && Array.isArray(d.value))
|
|
@@ -1462,7 +1462,7 @@ const bt = "-1", ra = "-100", mo = /* @__PURE__ */ z({
|
|
|
1462
1462
|
const n = Oe({
|
|
1463
1463
|
department: []
|
|
1464
1464
|
}), c = () => {
|
|
1465
|
-
o.realmId && t.getNormal(o.realmId ?? "0",
|
|
1465
|
+
o.realmId && t.getNormal(o.realmId ?? "0", qt.BAT).then((r) => {
|
|
1466
1466
|
n.department = [...Pe(r, "name")], o.showNodeAll && n.department.unshift({
|
|
1467
1467
|
label: "所有部门",
|
|
1468
1468
|
id: o.allId,
|
|
@@ -1475,14 +1475,14 @@ const bt = "-1", ra = "-100", mo = /* @__PURE__ */ z({
|
|
|
1475
1475
|
});
|
|
1476
1476
|
});
|
|
1477
1477
|
}, p = (r) => {
|
|
1478
|
-
|
|
1478
|
+
i("change", Array.isArray(r) ? n.department.filter((u) => r.findIndex((m) => u.id === m) >= 0) : n.department.find((u) => u.id === r));
|
|
1479
1479
|
};
|
|
1480
1480
|
return c(), T(
|
|
1481
1481
|
() => o.realmId,
|
|
1482
1482
|
() => {
|
|
1483
1483
|
c();
|
|
1484
1484
|
}
|
|
1485
|
-
), (r,
|
|
1485
|
+
), (r, u) => (y(), $(s(gt), K({
|
|
1486
1486
|
style: { width: "100%" },
|
|
1487
1487
|
data: n.department,
|
|
1488
1488
|
size: o.size,
|
|
@@ -1491,7 +1491,7 @@ const bt = "-1", ra = "-100", mo = /* @__PURE__ */ z({
|
|
|
1491
1491
|
"current-node-key": d.value,
|
|
1492
1492
|
"highlight-current": "",
|
|
1493
1493
|
modelValue: d.value,
|
|
1494
|
-
"onUpdate:modelValue":
|
|
1494
|
+
"onUpdate:modelValue": u[0] || (u[0] = (m) => d.value = m),
|
|
1495
1495
|
multiple: r.multiple,
|
|
1496
1496
|
onChange: p
|
|
1497
1497
|
}, r.$attrs, {
|
|
@@ -1501,8 +1501,8 @@ const bt = "-1", ra = "-100", mo = /* @__PURE__ */ z({
|
|
|
1501
1501
|
teleported: ""
|
|
1502
1502
|
}), null, 16, ["data", "size", "current-node-key", "modelValue", "multiple"]));
|
|
1503
1503
|
}
|
|
1504
|
-
}),
|
|
1505
|
-
function
|
|
1504
|
+
}), vo = R(fo), sa = h(Date.now());
|
|
1505
|
+
function go() {
|
|
1506
1506
|
sa.value = Date.now();
|
|
1507
1507
|
}
|
|
1508
1508
|
function ua() {
|
|
@@ -1521,7 +1521,7 @@ c-58 -10 -181 -38 -275 -61 -807 -204 -1528 -616 -2120 -1210 -726 -728 -1170
|
|
|
1521
1521
|
19 4525 19 4730 0 495 -47 873 -112 1690 -291 697 -153 961 -197 1230 -208
|
|
1522
1522
|
254 -10 438 21 605 103 172 84 315 254 390 463 74 203 108 420 117 736 34
|
|
1523
1523
|
1230 -451 2439 -1332 3320 -707 707 -1608 1156 -2597 1294 -206 29 -201 30
|
|
1524
|
-
-283 -33z'/%3E%3C/g%3E%3C/svg%3E`,
|
|
1524
|
+
-283 -33z'/%3E%3C/g%3E%3C/svg%3E`, ho = /* @__PURE__ */ z({
|
|
1525
1525
|
__name: "JaAvatar",
|
|
1526
1526
|
props: {
|
|
1527
1527
|
userId: {},
|
|
@@ -1532,7 +1532,7 @@ c-58 -10 -181 -38 -275 -61 -807 -204 -1528 -616 -2120 -1210 -726 -728 -1170
|
|
|
1532
1532
|
firstName: {}
|
|
1533
1533
|
},
|
|
1534
1534
|
setup(e) {
|
|
1535
|
-
const l = e, a = ua(), t = h(!1), o = h(),
|
|
1535
|
+
const l = e, a = ua(), t = h(!1), o = h(), i = h();
|
|
1536
1536
|
t.value = !0, Ye(async () => {
|
|
1537
1537
|
await Ie();
|
|
1538
1538
|
});
|
|
@@ -1552,24 +1552,24 @@ c-58 -10 -181 -38 -275 -61 -807 -204 -1528 -616 -2120 -1210 -726 -728 -1170
|
|
|
1552
1552
|
}
|
|
1553
1553
|
);
|
|
1554
1554
|
function n(c) {
|
|
1555
|
-
var
|
|
1555
|
+
var u;
|
|
1556
1556
|
if (!c) return;
|
|
1557
|
-
let r = ((
|
|
1557
|
+
let r = ((u = o.value) == null ? void 0 : u.$el.clientWidth) / 2.8;
|
|
1558
1558
|
c.style.fontSize = r + "px";
|
|
1559
1559
|
}
|
|
1560
|
-
return
|
|
1561
|
-
}), T(
|
|
1560
|
+
return $e(() => {
|
|
1561
|
+
}), T(i, () => n(i.value)), (c, p) => (y(), $(s(La), K({ src: d.value }, c.$attrs, {
|
|
1562
1562
|
ref_key: "avatar",
|
|
1563
1563
|
ref: o,
|
|
1564
1564
|
class: "ja-avatar"
|
|
1565
1565
|
}), {
|
|
1566
1566
|
default: g(() => [
|
|
1567
|
-
l.firstName && l.firstName.length > 0 ? (y(),
|
|
1567
|
+
l.firstName && l.firstName.length > 0 ? (y(), N("span", {
|
|
1568
1568
|
key: 0,
|
|
1569
1569
|
class: "user-name-avatar",
|
|
1570
1570
|
ref_key: "usernameSpan",
|
|
1571
|
-
ref:
|
|
1572
|
-
}, ae(c.firstName), 513)) : (y(),
|
|
1571
|
+
ref: i
|
|
1572
|
+
}, ae(c.firstName), 513)) : (y(), $(s(Na), {
|
|
1573
1573
|
key: 1,
|
|
1574
1574
|
style: { height: "100%" },
|
|
1575
1575
|
src: s(lt),
|
|
@@ -1579,12 +1579,12 @@ c-58 -10 -181 -38 -275 -61 -807 -204 -1528 -616 -2120 -1210 -726 -728 -1170
|
|
|
1579
1579
|
_: 1
|
|
1580
1580
|
}, 16, ["src"]));
|
|
1581
1581
|
}
|
|
1582
|
-
}),
|
|
1582
|
+
}), yo = /* @__PURE__ */ pe(ho, [["__scopeId", "data-v-23297931"]]), it = R(yo);
|
|
1583
1583
|
let ot;
|
|
1584
|
-
function
|
|
1584
|
+
function bo() {
|
|
1585
1585
|
return ot || (ot = ne()), ot;
|
|
1586
1586
|
}
|
|
1587
|
-
const
|
|
1587
|
+
const wo = { class: "portrait" }, _o = { class: "user-info" }, ko = { class: "dropdown" }, Vo = { class: "header" }, Io = { class: "tools" }, Co = { style: { margin: "0", "font-weight": "600" } }, $o = { style: { margin: "0", "font-size": "14px", color: "var(--el-color-info-light-3)" } }, Ao = { style: { margin: "0" } }, Do = /* @__PURE__ */ z({
|
|
1588
1588
|
__name: "UserInfoTag",
|
|
1589
1589
|
props: {
|
|
1590
1590
|
closable: { type: Boolean, default: !1 },
|
|
@@ -1613,12 +1613,12 @@ const bo = { class: "portrait" }, wo = { class: "user-info" }, _o = { class: "dr
|
|
|
1613
1613
|
clovePurple: "user-info-tag--root theme-clove-purple",
|
|
1614
1614
|
skyGray: "user-info-tag--root theme-sky-gray"
|
|
1615
1615
|
}, t = e, o = h();
|
|
1616
|
-
let
|
|
1616
|
+
let i = bo(), d = _e(i), n = ht(i);
|
|
1617
1617
|
const c = h(!1), p = h(!1), r = l;
|
|
1618
|
-
|
|
1619
|
-
|
|
1618
|
+
$e(() => {
|
|
1619
|
+
i = void 0, d = void 0, n = void 0;
|
|
1620
1620
|
});
|
|
1621
|
-
function
|
|
1621
|
+
function u() {
|
|
1622
1622
|
if (!o.value)
|
|
1623
1623
|
if (t.userId)
|
|
1624
1624
|
n == null || n.getById(t.userId).then((b) => {
|
|
@@ -1648,10 +1648,10 @@ const bo = { class: "portrait" }, wo = { class: "user-info" }, _o = { class: "dr
|
|
|
1648
1648
|
function I() {
|
|
1649
1649
|
o.value && (n == null || n.unbookmarkUser(o.value.id).then(() => c.value = !1));
|
|
1650
1650
|
}
|
|
1651
|
-
return (b, v) => (y(),
|
|
1651
|
+
return (b, v) => (y(), $(s(Jt), {
|
|
1652
1652
|
width: "auto",
|
|
1653
1653
|
"hide-after": 200,
|
|
1654
|
-
onBeforeEnter:
|
|
1654
|
+
onBeforeEnter: u,
|
|
1655
1655
|
placement: b.placement,
|
|
1656
1656
|
visible: p.value,
|
|
1657
1657
|
"onUpdate:visible": v[3] || (v[3] = (S) => p.value = S)
|
|
@@ -1660,7 +1660,7 @@ const bo = { class: "portrait" }, wo = { class: "user-info" }, _o = { class: "dr
|
|
|
1660
1660
|
j("div", {
|
|
1661
1661
|
class: Ge(a[t.theme])
|
|
1662
1662
|
}, [
|
|
1663
|
-
j("div",
|
|
1663
|
+
j("div", wo, [
|
|
1664
1664
|
w(s(it), {
|
|
1665
1665
|
size: 24,
|
|
1666
1666
|
"user-id": b.userId,
|
|
@@ -1669,16 +1669,16 @@ const bo = { class: "portrait" }, wo = { class: "user-info" }, _o = { class: "dr
|
|
|
1669
1669
|
"has-avatar": !1
|
|
1670
1670
|
}, null, 8, ["user-id", "realm", "username"])
|
|
1671
1671
|
]),
|
|
1672
|
-
j("div",
|
|
1672
|
+
j("div", _o, [
|
|
1673
1673
|
G(ae(b.fullName) + " ", 1),
|
|
1674
|
-
b.closable ? (y(),
|
|
1674
|
+
b.closable ? (y(), N("div", {
|
|
1675
1675
|
key: 0,
|
|
1676
1676
|
class: "close-btn",
|
|
1677
1677
|
onClick: v[0] || (v[0] = (S) => f())
|
|
1678
1678
|
}, [
|
|
1679
1679
|
w(s(ce), { size: 10 }, {
|
|
1680
1680
|
default: g(() => [
|
|
1681
|
-
w(s(
|
|
1681
|
+
w(s(el))
|
|
1682
1682
|
]),
|
|
1683
1683
|
_: 1
|
|
1684
1684
|
})
|
|
@@ -1687,10 +1687,10 @@ const bo = { class: "portrait" }, wo = { class: "user-info" }, _o = { class: "dr
|
|
|
1687
1687
|
], 2)
|
|
1688
1688
|
]),
|
|
1689
1689
|
default: g(() => {
|
|
1690
|
-
var S, P, k,
|
|
1690
|
+
var S, P, k, C, F, q, H;
|
|
1691
1691
|
return [
|
|
1692
|
-
Y((y(),
|
|
1693
|
-
j("div",
|
|
1692
|
+
Y((y(), N("div", ko, [
|
|
1693
|
+
j("div", Vo, [
|
|
1694
1694
|
w(s(it), {
|
|
1695
1695
|
"user-id": b.userId,
|
|
1696
1696
|
realm: b.realm,
|
|
@@ -1699,12 +1699,12 @@ const bo = { class: "portrait" }, wo = { class: "user-info" }, _o = { class: "dr
|
|
|
1699
1699
|
"has-avatar": (S = o.value) == null ? void 0 : S.hasAvatar,
|
|
1700
1700
|
style: { "margin-bottom": "8px" }
|
|
1701
1701
|
}, null, 8, ["user-id", "realm", "username", "has-avatar"]),
|
|
1702
|
-
j("div",
|
|
1702
|
+
j("div", Io, [
|
|
1703
1703
|
w(s(ke), {
|
|
1704
1704
|
content: c.value ? "取消常用人员" : "设置为常用人员"
|
|
1705
1705
|
}, {
|
|
1706
1706
|
default: g(() => [
|
|
1707
|
-
c.value ? (y(),
|
|
1707
|
+
c.value ? (y(), $(s(ce), {
|
|
1708
1708
|
key: 1,
|
|
1709
1709
|
color: "#FFBF29",
|
|
1710
1710
|
onClick: v[2] || (v[2] = (Z) => I()),
|
|
@@ -1714,13 +1714,13 @@ const bo = { class: "portrait" }, wo = { class: "user-info" }, _o = { class: "dr
|
|
|
1714
1714
|
w(s(Zt))
|
|
1715
1715
|
]),
|
|
1716
1716
|
_: 1
|
|
1717
|
-
})) : (y(),
|
|
1717
|
+
})) : (y(), $(s(ce), {
|
|
1718
1718
|
key: 0,
|
|
1719
1719
|
onClick: v[1] || (v[1] = (Z) => _()),
|
|
1720
1720
|
size: 16
|
|
1721
1721
|
}, {
|
|
1722
1722
|
default: g(() => [
|
|
1723
|
-
w(s(
|
|
1723
|
+
w(s(Za))
|
|
1724
1724
|
]),
|
|
1725
1725
|
_: 1
|
|
1726
1726
|
}))
|
|
@@ -1730,15 +1730,15 @@ const bo = { class: "portrait" }, wo = { class: "user-info" }, _o = { class: "dr
|
|
|
1730
1730
|
])
|
|
1731
1731
|
]),
|
|
1732
1732
|
j("div", null, [
|
|
1733
|
-
j("p",
|
|
1733
|
+
j("p", Co, ae(b.fullName), 1),
|
|
1734
1734
|
j("p", $o, " @" + ae(((k = (P = o.value) == null ? void 0 : P.department) == null ? void 0 : k.name) ?? "无归属部门"), 1)
|
|
1735
1735
|
]),
|
|
1736
|
-
j("p",
|
|
1736
|
+
j("p", Ao, [
|
|
1737
1737
|
v[4] || (v[4] = j("span", { class: "label" }, "手机:", -1)),
|
|
1738
|
-
G(" " + ae(!((
|
|
1738
|
+
G(" " + ae(!((C = o.value) != null && C.mobile) || o.value.mobile.length === 0 ? "(未填写手机号)" : (F = o.value) == null ? void 0 : F.mobile) + " ", 1),
|
|
1739
1739
|
v[5] || (v[5] = j("br", null, null, -1)),
|
|
1740
1740
|
v[6] || (v[6] = j("span", { class: "label" }, "邮箱:", -1)),
|
|
1741
|
-
G(" " + ae(!((
|
|
1741
|
+
G(" " + ae(!((q = o.value) != null && q.email) || o.value.email.length === 0 ? "(未填写邮箱号)" : (H = o.value) == null ? void 0 : H.email), 1)
|
|
1742
1742
|
])
|
|
1743
1743
|
])), [
|
|
1744
1744
|
[ge, p.value],
|
|
@@ -1749,50 +1749,50 @@ const bo = { class: "portrait" }, wo = { class: "user-info" }, _o = { class: "dr
|
|
|
1749
1749
|
_: 1
|
|
1750
1750
|
}, 8, ["placement", "visible"]));
|
|
1751
1751
|
}
|
|
1752
|
-
}),
|
|
1752
|
+
}), Eo = /* @__PURE__ */ pe(Do, [["__scopeId", "data-v-b26877d9"]]), tt = R(Eo);
|
|
1753
1753
|
function Ke(e) {
|
|
1754
1754
|
var l = typeof e;
|
|
1755
1755
|
return e != null && (l == "object" || l == "function");
|
|
1756
1756
|
}
|
|
1757
|
-
var
|
|
1757
|
+
var So = typeof global == "object" && global && global.Object === Object && global, To = typeof self == "object" && self && self.Object === Object && self, ia = So || To || Function("return this")(), nt = function() {
|
|
1758
1758
|
return ia.Date.now();
|
|
1759
|
-
},
|
|
1760
|
-
function
|
|
1761
|
-
for (var l = e.length; l-- &&
|
|
1759
|
+
}, Fo = /\s/;
|
|
1760
|
+
function Mo(e) {
|
|
1761
|
+
for (var l = e.length; l-- && Fo.test(e.charAt(l)); )
|
|
1762
1762
|
;
|
|
1763
1763
|
return l;
|
|
1764
1764
|
}
|
|
1765
|
-
var
|
|
1765
|
+
var Po = /^\s+/;
|
|
1766
1766
|
function da(e) {
|
|
1767
|
-
return e && e.slice(0,
|
|
1767
|
+
return e && e.slice(0, Mo(e) + 1).replace(Po, "");
|
|
1768
1768
|
}
|
|
1769
|
-
var Me = ia.Symbol, ca = Object.prototype,
|
|
1770
|
-
function
|
|
1771
|
-
var l =
|
|
1769
|
+
var Me = ia.Symbol, ca = Object.prototype, Uo = ca.hasOwnProperty, zo = ca.toString, ze = Me ? Me.toStringTag : void 0;
|
|
1770
|
+
function Bo(e) {
|
|
1771
|
+
var l = Uo.call(e, ze), a = e[ze];
|
|
1772
1772
|
try {
|
|
1773
1773
|
e[ze] = void 0;
|
|
1774
1774
|
var t = !0;
|
|
1775
1775
|
} catch {
|
|
1776
1776
|
}
|
|
1777
|
-
var o =
|
|
1777
|
+
var o = zo.call(e);
|
|
1778
1778
|
return t && (l ? e[ze] = a : delete e[ze]), o;
|
|
1779
1779
|
}
|
|
1780
|
-
var
|
|
1780
|
+
var Ro = Object.prototype, Lo = Ro.toString;
|
|
1781
1781
|
function No(e) {
|
|
1782
|
-
return
|
|
1783
|
-
}
|
|
1784
|
-
var Lo = "[object Null]", Jo = "[object Undefined]", Ft = Me ? Me.toStringTag : void 0;
|
|
1785
|
-
function Oo(e) {
|
|
1786
|
-
return e == null ? e === void 0 ? Jo : Lo : Ft && Ft in Object(e) ? zo(e) : No(e);
|
|
1782
|
+
return Lo.call(e);
|
|
1787
1783
|
}
|
|
1784
|
+
var Jo = "[object Null]", Oo = "[object Undefined]", Ft = Me ? Me.toStringTag : void 0;
|
|
1788
1785
|
function jo(e) {
|
|
1786
|
+
return e == null ? e === void 0 ? Oo : Jo : Ft && Ft in Object(e) ? Bo(e) : No(e);
|
|
1787
|
+
}
|
|
1788
|
+
function xo(e) {
|
|
1789
1789
|
return e != null && typeof e == "object";
|
|
1790
1790
|
}
|
|
1791
1791
|
var qo = "[object Symbol]";
|
|
1792
1792
|
function pa(e) {
|
|
1793
|
-
return typeof e == "symbol" ||
|
|
1793
|
+
return typeof e == "symbol" || xo(e) && jo(e) == qo;
|
|
1794
1794
|
}
|
|
1795
|
-
var Mt = NaN,
|
|
1795
|
+
var Mt = NaN, Go = /^[-+]0x[0-9a-f]+$/i, Ho = /^0b[01]+$/i, Wo = /^0o[0-7]+$/i, Ko = parseInt;
|
|
1796
1796
|
function Pt(e) {
|
|
1797
1797
|
if (typeof e == "number")
|
|
1798
1798
|
return e;
|
|
@@ -1805,29 +1805,29 @@ function Pt(e) {
|
|
|
1805
1805
|
if (typeof e != "string")
|
|
1806
1806
|
return e === 0 ? e : +e;
|
|
1807
1807
|
e = da(e);
|
|
1808
|
-
var a =
|
|
1809
|
-
return a ||
|
|
1808
|
+
var a = Ho.test(e);
|
|
1809
|
+
return a || Wo.test(e) ? Ko(e.slice(2), a ? 2 : 8) : Go.test(e) ? Mt : +e;
|
|
1810
1810
|
}
|
|
1811
|
-
var
|
|
1811
|
+
var Yo = "Expected a function", Qo = Math.max, Xo = Math.min;
|
|
1812
1812
|
function wt(e, l, a) {
|
|
1813
|
-
var t, o,
|
|
1813
|
+
var t, o, i, d, n, c, p = 0, r = !1, u = !1, m = !0;
|
|
1814
1814
|
if (typeof e != "function")
|
|
1815
|
-
throw new TypeError(
|
|
1816
|
-
l = Pt(l) || 0, Ke(a) && (r = !!a.leading,
|
|
1815
|
+
throw new TypeError(Yo);
|
|
1816
|
+
l = Pt(l) || 0, Ke(a) && (r = !!a.leading, u = "maxWait" in a, i = u ? Qo(Pt(a.maxWait) || 0, l) : i, m = "trailing" in a ? !!a.trailing : m);
|
|
1817
1817
|
function f(F) {
|
|
1818
|
-
var
|
|
1819
|
-
return t = o = void 0, p = F, d = e.apply(H,
|
|
1818
|
+
var q = t, H = o;
|
|
1819
|
+
return t = o = void 0, p = F, d = e.apply(H, q), d;
|
|
1820
1820
|
}
|
|
1821
1821
|
function _(F) {
|
|
1822
1822
|
return p = F, n = setTimeout(v, l), r ? f(F) : d;
|
|
1823
1823
|
}
|
|
1824
1824
|
function I(F) {
|
|
1825
|
-
var
|
|
1826
|
-
return
|
|
1825
|
+
var q = F - c, H = F - p, Z = l - q;
|
|
1826
|
+
return u ? Xo(Z, i - H) : Z;
|
|
1827
1827
|
}
|
|
1828
1828
|
function b(F) {
|
|
1829
|
-
var
|
|
1830
|
-
return c === void 0 ||
|
|
1829
|
+
var q = F - c, H = F - p;
|
|
1830
|
+
return c === void 0 || q >= l || q < 0 || u && H >= i;
|
|
1831
1831
|
}
|
|
1832
1832
|
function v() {
|
|
1833
1833
|
var F = nt();
|
|
@@ -1844,19 +1844,19 @@ function wt(e, l, a) {
|
|
|
1844
1844
|
function k() {
|
|
1845
1845
|
return n === void 0 ? d : S(nt());
|
|
1846
1846
|
}
|
|
1847
|
-
function
|
|
1848
|
-
var F = nt(),
|
|
1849
|
-
if (t = arguments, o = this, c = F,
|
|
1847
|
+
function C() {
|
|
1848
|
+
var F = nt(), q = b(F);
|
|
1849
|
+
if (t = arguments, o = this, c = F, q) {
|
|
1850
1850
|
if (n === void 0)
|
|
1851
1851
|
return _(c);
|
|
1852
|
-
if (
|
|
1852
|
+
if (u)
|
|
1853
1853
|
return clearTimeout(n), n = setTimeout(v, l), f(c);
|
|
1854
1854
|
}
|
|
1855
1855
|
return n === void 0 && (n = setTimeout(v, l)), d;
|
|
1856
1856
|
}
|
|
1857
|
-
return
|
|
1857
|
+
return C.cancel = P, C.flush = k, C;
|
|
1858
1858
|
}
|
|
1859
|
-
function ma(e, l, a, t, o,
|
|
1859
|
+
function ma(e, l, a, t, o, i) {
|
|
1860
1860
|
const d = h({}), n = h({
|
|
1861
1861
|
currentPage: 1,
|
|
1862
1862
|
pageSize: 50
|
|
@@ -1865,10 +1865,10 @@ function ma(e, l, a, t, o, u) {
|
|
|
1865
1865
|
users: []
|
|
1866
1866
|
});
|
|
1867
1867
|
o || (o = ne());
|
|
1868
|
-
const p = ht(o), r = _e(o),
|
|
1868
|
+
const p = ht(o), r = _e(o), u = h(!1);
|
|
1869
1869
|
function m() {
|
|
1870
1870
|
I().then((b) => {
|
|
1871
|
-
a && a(b,
|
|
1871
|
+
a && a(b, u.value), u.value = !1;
|
|
1872
1872
|
});
|
|
1873
1873
|
}
|
|
1874
1874
|
const f = wt(m, 300);
|
|
@@ -1876,14 +1876,14 @@ function ma(e, l, a, t, o, u) {
|
|
|
1876
1876
|
c.value.total = 0, c.value.users = [], n.value.currentPage !== 1 ? n.value.currentPage = 1 : f();
|
|
1877
1877
|
}
|
|
1878
1878
|
T(d, () => {
|
|
1879
|
-
|
|
1879
|
+
u.value = !0, _();
|
|
1880
1880
|
}, {
|
|
1881
1881
|
deep: !0
|
|
1882
1882
|
}), T(() => n.value.pageSize, () => {
|
|
1883
|
-
|
|
1883
|
+
u.value = !0, _();
|
|
1884
1884
|
}), T(() => n.value.currentPage, () => {
|
|
1885
1885
|
I().then((b) => {
|
|
1886
|
-
a && a(b,
|
|
1886
|
+
a && a(b, u.value), u.value = !1;
|
|
1887
1887
|
});
|
|
1888
1888
|
});
|
|
1889
1889
|
function I() {
|
|
@@ -1899,20 +1899,20 @@ function ma(e, l, a, t, o, u) {
|
|
|
1899
1899
|
P && b.and(v.userGroups.any().group.sortPath.startWith(P.sortPath));
|
|
1900
1900
|
const k = d.value.currentCustomGroup;
|
|
1901
1901
|
k && b.and(v.customGroups.any().customGroup.sortPath.startWith(k.sortPath));
|
|
1902
|
-
const
|
|
1903
|
-
if (
|
|
1904
|
-
const H = "%" +
|
|
1902
|
+
const C = d.value.name;
|
|
1903
|
+
if (C) {
|
|
1904
|
+
const H = "%" + C.split("").join("%") + "%";
|
|
1905
1905
|
b.and(v.username.like(H).or(v.fullName.like(H)).or(v.pinYinName.like(H)).or(v.mobile.like(H)));
|
|
1906
1906
|
}
|
|
1907
1907
|
l && b.and(l(v));
|
|
1908
1908
|
const F = d.value.currentSort;
|
|
1909
1909
|
F && b.orderBy(F);
|
|
1910
|
-
const
|
|
1911
|
-
if (
|
|
1912
|
-
return p.queryUserRefs(
|
|
1910
|
+
const q = b.build();
|
|
1911
|
+
if (i)
|
|
1912
|
+
return p.queryUserRefs(q).then((H) => (c.value.users = H, H));
|
|
1913
1913
|
{
|
|
1914
1914
|
const H = n.value.currentPage - 1;
|
|
1915
|
-
return p.queryUserRefsPaged(
|
|
1915
|
+
return p.queryUserRefsPaged(q, H, n.value.pageSize).then((Z) => (t && H > 0 ? c.value.users.push(...Z.content) : c.value.users = Z.content, c.value.total = Z.totalElements, Z.content));
|
|
1916
1916
|
}
|
|
1917
1917
|
}
|
|
1918
1918
|
return {
|
|
@@ -1938,7 +1938,7 @@ function ma(e, l, a, t, o, u) {
|
|
|
1938
1938
|
loading: r
|
|
1939
1939
|
};
|
|
1940
1940
|
}
|
|
1941
|
-
const
|
|
1941
|
+
const Zo = /* @__PURE__ */ z({
|
|
1942
1942
|
__name: "departmentTree",
|
|
1943
1943
|
props: /* @__PURE__ */ Q({
|
|
1944
1944
|
realmId: {},
|
|
@@ -1950,20 +1950,20 @@ const Xo = /* @__PURE__ */ z({
|
|
|
1950
1950
|
}),
|
|
1951
1951
|
emits: /* @__PURE__ */ Q(["change", "loaded"], ["update:modelValue"]),
|
|
1952
1952
|
setup(e, { expose: l, emit: a }) {
|
|
1953
|
-
const t = h(), o = ne(),
|
|
1953
|
+
const t = h(), o = ne(), i = _e(o), d = xt(o), n = e, c = a, p = ue(e, "modelValue"), r = ve({
|
|
1954
1954
|
get() {
|
|
1955
1955
|
var _;
|
|
1956
1956
|
return (_ = p.value) == null ? void 0 : _.id;
|
|
1957
1957
|
},
|
|
1958
1958
|
set(_) {
|
|
1959
|
-
p.value =
|
|
1959
|
+
p.value = u.departments.find((I) => I.id === _) ?? null;
|
|
1960
1960
|
}
|
|
1961
|
-
}),
|
|
1961
|
+
}), u = pt({
|
|
1962
1962
|
departments: []
|
|
1963
1963
|
}), m = async () => {
|
|
1964
1964
|
if (!n.realmId) return;
|
|
1965
|
-
const _ = await d.getNormal(n.realmId,
|
|
1966
|
-
|
|
1965
|
+
const _ = await d.getNormal(n.realmId, qt.BT);
|
|
1966
|
+
u.departments = [
|
|
1967
1967
|
{
|
|
1968
1968
|
id: bt,
|
|
1969
1969
|
label: "所有部门",
|
|
@@ -1991,7 +1991,7 @@ const Xo = /* @__PURE__ */ z({
|
|
|
1991
1991
|
attributes: {}
|
|
1992
1992
|
}] : [],
|
|
1993
1993
|
...Pe(_, "name")
|
|
1994
|
-
], r.value =
|
|
1994
|
+
], r.value = u.departments[0].id, c("loaded", u.departments);
|
|
1995
1995
|
}, f = (_) => {
|
|
1996
1996
|
p.value = _, c("change", _);
|
|
1997
1997
|
};
|
|
@@ -2002,10 +2002,10 @@ const Xo = /* @__PURE__ */ z({
|
|
|
2002
2002
|
}
|
|
2003
2003
|
), l({
|
|
2004
2004
|
reload: m
|
|
2005
|
-
}), m(), (_, I) => Y((y(),
|
|
2005
|
+
}), m(), (_, I) => Y((y(), $(s(Qe), {
|
|
2006
2006
|
ref_key: "deptTree",
|
|
2007
2007
|
ref: t,
|
|
2008
|
-
data: s(
|
|
2008
|
+
data: s(u).departments,
|
|
2009
2009
|
size: "default",
|
|
2010
2010
|
"node-key": "id",
|
|
2011
2011
|
"default-expand-all": "",
|
|
@@ -2020,22 +2020,22 @@ const Xo = /* @__PURE__ */ z({
|
|
|
2020
2020
|
}
|
|
2021
2021
|
}
|
|
2022
2022
|
}, null, 8, ["data", "current-node-key", "props"])), [
|
|
2023
|
-
[s(De), s(
|
|
2023
|
+
[s(De), s(i)]
|
|
2024
2024
|
]);
|
|
2025
2025
|
}
|
|
2026
|
-
}),
|
|
2027
|
-
var
|
|
2026
|
+
}), en = /* @__PURE__ */ pe(Zo, [["__scopeId", "data-v-3d45613c"]]), fa = R(en), va = "com.csicit.ace.scrollbar.wrapped";
|
|
2027
|
+
var tn = "Expected a function";
|
|
2028
2028
|
function Je(e, l, a) {
|
|
2029
2029
|
var t = !0, o = !0;
|
|
2030
2030
|
if (typeof e != "function")
|
|
2031
|
-
throw new TypeError(
|
|
2031
|
+
throw new TypeError(tn);
|
|
2032
2032
|
return Ke(a) && (t = "leading" in a ? !!a.leading : t, o = "trailing" in a ? !!a.trailing : o), wt(e, l, {
|
|
2033
2033
|
leading: t,
|
|
2034
2034
|
maxWait: l,
|
|
2035
2035
|
trailing: o
|
|
2036
2036
|
});
|
|
2037
2037
|
}
|
|
2038
|
-
const
|
|
2038
|
+
const an = { class: "ja-user-group-tree" }, ln = /* @__PURE__ */ z({
|
|
2039
2039
|
__name: "userGroupTree",
|
|
2040
2040
|
props: /* @__PURE__ */ Q({
|
|
2041
2041
|
realmId: {},
|
|
@@ -2050,20 +2050,20 @@ const tn = { class: "ja-user-group-tree" }, an = /* @__PURE__ */ z({
|
|
|
2050
2050
|
emits: /* @__PURE__ */ Q(["change", "loaded"], ["update:modelValue"]),
|
|
2051
2051
|
async setup(e, { expose: l, emit: a }) {
|
|
2052
2052
|
let t, o;
|
|
2053
|
-
const
|
|
2053
|
+
const i = h(), d = ne(), n = _e(d), c = Ht(d), p = yt(d), r = e, u = a, m = ue(e, "modelValue"), f = h(r.appId), _ = ve({
|
|
2054
2054
|
get() {
|
|
2055
2055
|
var k;
|
|
2056
2056
|
return (k = m.value) == null ? void 0 : k.id;
|
|
2057
2057
|
},
|
|
2058
2058
|
set(k) {
|
|
2059
|
-
m.value = v.groups.find((
|
|
2059
|
+
m.value = v.groups.find((C) => C.id === k) ?? null;
|
|
2060
2060
|
}
|
|
2061
2061
|
}), [I, b] = ([t, o] = mt(() => Promise.all([
|
|
2062
2062
|
p.getGlobalApp(),
|
|
2063
2063
|
p.getAccessible()
|
|
2064
2064
|
])), t = await t, o(), t);
|
|
2065
2065
|
if (b.unshift(I), !r.showConsoleApp) {
|
|
2066
|
-
const k = b.findIndex((
|
|
2066
|
+
const k = b.findIndex((C) => C.name == "ace-app-manage");
|
|
2067
2067
|
k >= 0 && b.splice(k, 1);
|
|
2068
2068
|
}
|
|
2069
2069
|
f.value || (f.value = I.id);
|
|
@@ -2074,9 +2074,9 @@ const tn = { class: "ja-user-group-tree" }, an = /* @__PURE__ */ z({
|
|
|
2074
2074
|
const k = await c.getByAppIdAndRealm(f.value, r.realmId);
|
|
2075
2075
|
v.groups = [
|
|
2076
2076
|
...Pe(k, "name")
|
|
2077
|
-
], !m.value && v.groups.length > 0 && (_.value = v.groups[0].id),
|
|
2077
|
+
], !m.value && v.groups.length > 0 && (_.value = v.groups[0].id), u("loaded", v.groups);
|
|
2078
2078
|
}, P = (k) => {
|
|
2079
|
-
m.value = k,
|
|
2079
|
+
m.value = k, u("change", k);
|
|
2080
2080
|
};
|
|
2081
2081
|
return T(
|
|
2082
2082
|
() => r.realmId,
|
|
@@ -2089,16 +2089,16 @@ const tn = { class: "ja-user-group-tree" }, an = /* @__PURE__ */ z({
|
|
|
2089
2089
|
S();
|
|
2090
2090
|
}), l({
|
|
2091
2091
|
reload: S,
|
|
2092
|
-
elTree:
|
|
2093
|
-
}), S(), (k,
|
|
2094
|
-
r.appId ? de("", !0) : (y(),
|
|
2092
|
+
elTree: i
|
|
2093
|
+
}), S(), (k, C) => (y(), N("div", an, [
|
|
2094
|
+
r.appId ? de("", !0) : (y(), $(s(Ae), {
|
|
2095
2095
|
key: 0,
|
|
2096
2096
|
modelValue: f.value,
|
|
2097
|
-
"onUpdate:modelValue":
|
|
2097
|
+
"onUpdate:modelValue": C[0] || (C[0] = (F) => f.value = F),
|
|
2098
2098
|
style: { width: "100%" }
|
|
2099
2099
|
}, {
|
|
2100
2100
|
default: g(() => [
|
|
2101
|
-
(y(!0),
|
|
2101
|
+
(y(!0), N(oe, null, W(s(b), (F) => (y(), $(s(Xe), {
|
|
2102
2102
|
key: F.id,
|
|
2103
2103
|
label: F.caption,
|
|
2104
2104
|
value: F.id
|
|
@@ -2109,7 +2109,7 @@ const tn = { class: "ja-user-group-tree" }, an = /* @__PURE__ */ z({
|
|
|
2109
2109
|
Y(w(s(Qe), K({
|
|
2110
2110
|
style: { width: "100%", "--ja-group-tree-node-height": r.nodeHeight },
|
|
2111
2111
|
ref_key: "groupTree",
|
|
2112
|
-
ref:
|
|
2112
|
+
ref: i,
|
|
2113
2113
|
data: s(v).groups,
|
|
2114
2114
|
size: "default",
|
|
2115
2115
|
"node-key": "id",
|
|
@@ -2121,8 +2121,8 @@ const tn = { class: "ja-user-group-tree" }, an = /* @__PURE__ */ z({
|
|
|
2121
2121
|
onCurrentChange: P,
|
|
2122
2122
|
props: {
|
|
2123
2123
|
class: (F) => {
|
|
2124
|
-
var
|
|
2125
|
-
return ((
|
|
2124
|
+
var q;
|
|
2125
|
+
return ((q = m.value) == null ? void 0 : q.id) === F.id ? "selected-group" : "group";
|
|
2126
2126
|
}
|
|
2127
2127
|
}
|
|
2128
2128
|
}), null, 16, ["style", "data", "current-node-key", "props"]), [
|
|
@@ -2130,7 +2130,7 @@ const tn = { class: "ja-user-group-tree" }, an = /* @__PURE__ */ z({
|
|
|
2130
2130
|
])
|
|
2131
2131
|
]));
|
|
2132
2132
|
}
|
|
2133
|
-
}),
|
|
2133
|
+
}), on = /* @__PURE__ */ pe(ln, [["__scopeId", "data-v-69d218a4"]]), ga = R(on), nn = /* @__PURE__ */ z({
|
|
2134
2134
|
__name: "customGroupTree",
|
|
2135
2135
|
props: /* @__PURE__ */ Q({
|
|
2136
2136
|
multiple: { type: Boolean }
|
|
@@ -2140,7 +2140,7 @@ const tn = { class: "ja-user-group-tree" }, an = /* @__PURE__ */ z({
|
|
|
2140
2140
|
}),
|
|
2141
2141
|
emits: /* @__PURE__ */ Q(["change", "loaded"], ["update:modelValue"]),
|
|
2142
2142
|
setup(e, { expose: l, emit: a }) {
|
|
2143
|
-
const t = h(), o = ne(),
|
|
2143
|
+
const t = h(), o = ne(), i = _e(o), d = Wt(o), n = a, c = ue(e, "modelValue"), p = ve({
|
|
2144
2144
|
get() {
|
|
2145
2145
|
var f;
|
|
2146
2146
|
return (f = c.value) == null ? void 0 : f.id;
|
|
@@ -2150,7 +2150,7 @@ const tn = { class: "ja-user-group-tree" }, an = /* @__PURE__ */ z({
|
|
|
2150
2150
|
}
|
|
2151
2151
|
}), r = pt({
|
|
2152
2152
|
groups: []
|
|
2153
|
-
}),
|
|
2153
|
+
}), u = async () => {
|
|
2154
2154
|
const f = await d.getAll();
|
|
2155
2155
|
r.groups = [
|
|
2156
2156
|
...Pe(f, "name")
|
|
@@ -2159,8 +2159,8 @@ const tn = { class: "ja-user-group-tree" }, an = /* @__PURE__ */ z({
|
|
|
2159
2159
|
c.value = f, n("change", f);
|
|
2160
2160
|
};
|
|
2161
2161
|
return l({
|
|
2162
|
-
reload:
|
|
2163
|
-
}),
|
|
2162
|
+
reload: u
|
|
2163
|
+
}), u(), (f, _) => Y((y(), $(s(Qe), {
|
|
2164
2164
|
ref_key: "deptTree",
|
|
2165
2165
|
ref: t,
|
|
2166
2166
|
data: s(r).groups,
|
|
@@ -2178,14 +2178,14 @@ const tn = { class: "ja-user-group-tree" }, an = /* @__PURE__ */ z({
|
|
|
2178
2178
|
}
|
|
2179
2179
|
}
|
|
2180
2180
|
}, null, 8, ["data", "current-node-key", "props"])), [
|
|
2181
|
-
[s(De), s(
|
|
2181
|
+
[s(De), s(i)]
|
|
2182
2182
|
]);
|
|
2183
2183
|
}
|
|
2184
|
-
}),
|
|
2184
|
+
}), rn = /* @__PURE__ */ pe(nn, [["__scopeId", "data-v-78c7dcfc"]]), sn = R(rn), un = {
|
|
2185
2185
|
class: "ja-user-select-dialog"
|
|
2186
|
-
}, un = {
|
|
2187
|
-
class: "ja-user-select-dialog__content"
|
|
2188
2186
|
}, dn = {
|
|
2187
|
+
class: "ja-user-select-dialog__content"
|
|
2188
|
+
}, cn = {
|
|
2189
2189
|
style: {
|
|
2190
2190
|
display: "flex",
|
|
2191
2191
|
"flex-direction": "row",
|
|
@@ -2193,7 +2193,7 @@ const tn = { class: "ja-user-group-tree" }, an = /* @__PURE__ */ z({
|
|
|
2193
2193
|
width: "100%",
|
|
2194
2194
|
gap: "0"
|
|
2195
2195
|
}
|
|
2196
|
-
},
|
|
2196
|
+
}, pn = /* @__PURE__ */ z({
|
|
2197
2197
|
__name: "userSelectDialog",
|
|
2198
2198
|
props: /* @__PURE__ */ Q({
|
|
2199
2199
|
/**
|
|
@@ -2229,13 +2229,13 @@ const tn = { class: "ja-user-group-tree" }, an = /* @__PURE__ */ z({
|
|
|
2229
2229
|
setup(e, {
|
|
2230
2230
|
expose: l
|
|
2231
2231
|
}) {
|
|
2232
|
-
const a = e, t = ue(e, "modelValue"), o = h(),
|
|
2233
|
-
if (a.realmId ? o.value = a.realmId : o.value =
|
|
2232
|
+
const a = e, t = ue(e, "modelValue"), o = h(), i = Ze();
|
|
2233
|
+
if (a.realmId ? o.value = a.realmId : o.value = i.realmId, a.multiple) {
|
|
2234
2234
|
if (t.value || (t.value = []), !Array.isArray(t.value))
|
|
2235
2235
|
throw new Error("多选模式的选择用户对话框(multiple设置为true)的v-model必须是数组类型");
|
|
2236
2236
|
} else if (Array.isArray(t.value))
|
|
2237
2237
|
throw new Error("单选模式的选择用户对话框(multiple设置为false)的v-model只能为空或是单个UserReference对象");
|
|
2238
|
-
const d = h(!1), n = h(), c = h(), p = h(), r = ne(),
|
|
2238
|
+
const d = h(!1), n = h(), c = h(), p = h(), r = ne(), u = _e(r), m = h(!1), f = h([]), _ = Oe(/* @__PURE__ */ new Map()), I = h("dept");
|
|
2239
2239
|
Te(va, void 0);
|
|
2240
2240
|
const b = h(Array.isArray(t.value) ? [...t.value] : t.value), v = ma(void 0, a.customFilter, (J) => {
|
|
2241
2241
|
m.value || (f.value = J ?? []);
|
|
@@ -2250,20 +2250,20 @@ const tn = { class: "ja-user-group-tree" }, an = /* @__PURE__ */ z({
|
|
|
2250
2250
|
rowIndex: le
|
|
2251
2251
|
}) => {
|
|
2252
2252
|
const {
|
|
2253
|
-
hasAvatar:
|
|
2253
|
+
hasAvatar: Ct,
|
|
2254
2254
|
fullName: Ta
|
|
2255
|
-
} = U,
|
|
2255
|
+
} = U, qe = U, Fa = le;
|
|
2256
2256
|
return Ue("div", {
|
|
2257
2257
|
class: "user-row",
|
|
2258
|
-
onMousedown: () => ee(
|
|
2259
|
-
onMouseenter: () => V(
|
|
2258
|
+
onMousedown: () => ee(qe),
|
|
2259
|
+
onMouseenter: () => V(qe),
|
|
2260
2260
|
onMouseup: E,
|
|
2261
2261
|
onMouseover: (Ma) => ie(Ma, Fa)
|
|
2262
2262
|
}, [Ue(ce, {
|
|
2263
2263
|
color: "#0D6A9F"
|
|
2264
|
-
}, () =>
|
|
2264
|
+
}, () => q(qe) ? Ue(ea) : void 0), Ue(tt, {
|
|
2265
2265
|
userId: J,
|
|
2266
|
-
theme: H(
|
|
2266
|
+
theme: H(qe),
|
|
2267
2267
|
placement: "right-start",
|
|
2268
2268
|
hasAvatar: !1,
|
|
2269
2269
|
fullName: Ta
|
|
@@ -2271,7 +2271,7 @@ const tn = { class: "ja-user-group-tree" }, an = /* @__PURE__ */ z({
|
|
|
2271
2271
|
style: "flex:auto"
|
|
2272
2272
|
})]);
|
|
2273
2273
|
}
|
|
2274
|
-
}], P = h(!1), k = h(),
|
|
2274
|
+
}], P = h(!1), k = h(), C = Je(B, 100), F = Je(Z, 100);
|
|
2275
2275
|
T(n, () => {
|
|
2276
2276
|
I.value == "dept" && (v.queryParams.value.currentDept = n.value);
|
|
2277
2277
|
}), T(c, () => {
|
|
@@ -2281,11 +2281,11 @@ const tn = { class: "ja-user-group-tree" }, an = /* @__PURE__ */ z({
|
|
|
2281
2281
|
}), T(I, () => {
|
|
2282
2282
|
I.value === "dept" ? (v.queryParams.value.currentDept = n.value, v.queryParams.value.currentGroup = void 0, v.queryParams.value.currentCustomGroup = void 0) : I.value === "group" ? (v.queryParams.value.currentDept = void 0, v.queryParams.value.currentCustomGroup = void 0, v.queryParams.value.currentGroup = c.value) : I.value === "customGroup" && (v.queryParams.value.currentDept = void 0, v.queryParams.value.currentCustomGroup = p.value, v.queryParams.value.currentGroup = void 0);
|
|
2283
2283
|
});
|
|
2284
|
-
function
|
|
2284
|
+
function q(J) {
|
|
2285
2285
|
return Array.isArray(b.value) ? _.has(J.id) : b.value && b.value.id === J.id;
|
|
2286
2286
|
}
|
|
2287
2287
|
function H(J) {
|
|
2288
|
-
return
|
|
2288
|
+
return q(J) ? "autumnOrange" : "skyGray";
|
|
2289
2289
|
}
|
|
2290
2290
|
function Z(J) {
|
|
2291
2291
|
if (Array.isArray(b.value)) {
|
|
@@ -2294,12 +2294,12 @@ const tn = { class: "ja-user-group-tree" }, an = /* @__PURE__ */ z({
|
|
|
2294
2294
|
} else
|
|
2295
2295
|
b.value = J;
|
|
2296
2296
|
}
|
|
2297
|
-
|
|
2298
|
-
|
|
2297
|
+
$e(() => {
|
|
2298
|
+
C.cancel(), F.cancel();
|
|
2299
2299
|
});
|
|
2300
2300
|
function ye() {
|
|
2301
2301
|
if (Array.isArray(b.value)) {
|
|
2302
|
-
const J = v.queryResult.value.users.filter((U) => !
|
|
2302
|
+
const J = v.queryResult.value.users.filter((U) => !q(U));
|
|
2303
2303
|
J.forEach((U) => _.set(U.id, U)), b.value.push(...J);
|
|
2304
2304
|
}
|
|
2305
2305
|
}
|
|
@@ -2308,14 +2308,14 @@ const tn = { class: "ja-user-group-tree" }, an = /* @__PURE__ */ z({
|
|
|
2308
2308
|
}
|
|
2309
2309
|
function A() {
|
|
2310
2310
|
if (Array.isArray(b.value)) {
|
|
2311
|
-
const J = v.queryResult.value.users.filter((U) => !
|
|
2311
|
+
const J = v.queryResult.value.users.filter((U) => !q(U));
|
|
2312
2312
|
_.clear(), J.forEach((U) => _.set(U.id, U)), b.value.splice(0), b.value.push(...J);
|
|
2313
2313
|
}
|
|
2314
2314
|
}
|
|
2315
2315
|
function O() {
|
|
2316
2316
|
t.value = b.value, d.value = !1;
|
|
2317
2317
|
}
|
|
2318
|
-
function
|
|
2318
|
+
function L() {
|
|
2319
2319
|
m.value = !m.value, m.value ? Array.isArray(b.value) ? f.value = [...b.value] : f.value = b.value ? [b.value] : [] : f.value = v.queryResult.value.users;
|
|
2320
2320
|
}
|
|
2321
2321
|
function X() {
|
|
@@ -2335,13 +2335,13 @@ const tn = { class: "ja-user-group-tree" }, an = /* @__PURE__ */ z({
|
|
|
2335
2335
|
D && D < f.value.length && k.value.scrollToRow(D + 1), D = void 0;
|
|
2336
2336
|
}
|
|
2337
2337
|
function ie(J, U) {
|
|
2338
|
-
P.value = J.buttons > 0, P.value && (D = U,
|
|
2338
|
+
P.value = J.buttons > 0, P.value && (D = U, C());
|
|
2339
2339
|
}
|
|
2340
2340
|
return l({
|
|
2341
2341
|
show() {
|
|
2342
2342
|
d.value = !0;
|
|
2343
2343
|
}
|
|
2344
|
-
}), (J, U) => (y(),
|
|
2344
|
+
}), (J, U) => (y(), $(s(st), {
|
|
2345
2345
|
modelValue: d.value,
|
|
2346
2346
|
"onUpdate:modelValue": U[5] || (U[5] = (le) => d.value = le),
|
|
2347
2347
|
"destroy-on-close": "",
|
|
@@ -2369,7 +2369,7 @@ const tn = { class: "ja-user-group-tree" }, an = /* @__PURE__ */ z({
|
|
|
2369
2369
|
_: 1,
|
|
2370
2370
|
__: [11]
|
|
2371
2371
|
})]),
|
|
2372
|
-
default: g(() => [j("div",
|
|
2372
|
+
default: g(() => [j("div", un, [w(s(Ja), {
|
|
2373
2373
|
class: "ja-user-select-dialog__left",
|
|
2374
2374
|
modelValue: I.value,
|
|
2375
2375
|
"onUpdate:modelValue": U[3] || (U[3] = (le) => I.value = le)
|
|
@@ -2379,7 +2379,7 @@ const tn = { class: "ja-user-group-tree" }, an = /* @__PURE__ */ z({
|
|
|
2379
2379
|
label: "按部门",
|
|
2380
2380
|
class: "ja-user-select-dialog__left-dept-pane"
|
|
2381
2381
|
}, {
|
|
2382
|
-
default: g(() => [w(s(
|
|
2382
|
+
default: g(() => [w(s(Ce), {
|
|
2383
2383
|
height: "400"
|
|
2384
2384
|
}, {
|
|
2385
2385
|
default: g(() => [w(s(fa), {
|
|
@@ -2394,7 +2394,7 @@ const tn = { class: "ja-user-group-tree" }, an = /* @__PURE__ */ z({
|
|
|
2394
2394
|
name: "group",
|
|
2395
2395
|
label: "按用户组"
|
|
2396
2396
|
}, {
|
|
2397
|
-
default: g(() => [w(s(
|
|
2397
|
+
default: g(() => [w(s(Ce), {
|
|
2398
2398
|
height: "400"
|
|
2399
2399
|
}, {
|
|
2400
2400
|
default: g(() => [w(s(ga), {
|
|
@@ -2409,10 +2409,10 @@ const tn = { class: "ja-user-group-tree" }, an = /* @__PURE__ */ z({
|
|
|
2409
2409
|
name: "customGroup",
|
|
2410
2410
|
label: "按自定义组"
|
|
2411
2411
|
}, {
|
|
2412
|
-
default: g(() => [w(s(
|
|
2412
|
+
default: g(() => [w(s(Ce), {
|
|
2413
2413
|
height: "400"
|
|
2414
2414
|
}, {
|
|
2415
|
-
default: g(() => [w(s(
|
|
2415
|
+
default: g(() => [w(s(sn), {
|
|
2416
2416
|
modelValue: p.value,
|
|
2417
2417
|
"onUpdate:modelValue": U[2] || (U[2] = (le) => p.value = le)
|
|
2418
2418
|
}, null, 8, ["modelValue"])]),
|
|
@@ -2421,7 +2421,7 @@ const tn = { class: "ja-user-group-tree" }, an = /* @__PURE__ */ z({
|
|
|
2421
2421
|
_: 1
|
|
2422
2422
|
})]),
|
|
2423
2423
|
_: 1
|
|
2424
|
-
}, 8, ["modelValue"]), j("div",
|
|
2424
|
+
}, 8, ["modelValue"]), j("div", dn, [Y((y(), $(s(Oa), {
|
|
2425
2425
|
ref_key: "userTable",
|
|
2426
2426
|
ref: k,
|
|
2427
2427
|
"row-height": 40,
|
|
@@ -2432,7 +2432,7 @@ const tn = { class: "ja-user-group-tree" }, an = /* @__PURE__ */ z({
|
|
|
2432
2432
|
height: 450,
|
|
2433
2433
|
fixed: ""
|
|
2434
2434
|
}, {
|
|
2435
|
-
header: g(() => [j("div",
|
|
2435
|
+
header: g(() => [j("div", cn, [w(s(Fe), {
|
|
2436
2436
|
style: {
|
|
2437
2437
|
flex: "auto",
|
|
2438
2438
|
"font-weight": "600"
|
|
@@ -2441,7 +2441,7 @@ const tn = { class: "ja-user-group-tree" }, an = /* @__PURE__ */ z({
|
|
|
2441
2441
|
default: g(() => [U[6] || (U[6] = G(" 人员 ")), w(s(ke), {
|
|
2442
2442
|
content: "切换筛选条件,不会清除已选人员。支持鼠标拖动多选。"
|
|
2443
2443
|
}, {
|
|
2444
|
-
default: g(() => [a.multiple ? (y(),
|
|
2444
|
+
default: g(() => [a.multiple ? (y(), $(s(ce), {
|
|
2445
2445
|
key: 0
|
|
2446
2446
|
}, {
|
|
2447
2447
|
default: g(() => [w(s(Qt))]),
|
|
@@ -2451,7 +2451,7 @@ const tn = { class: "ja-user-group-tree" }, an = /* @__PURE__ */ z({
|
|
|
2451
2451
|
})]),
|
|
2452
2452
|
_: 1,
|
|
2453
2453
|
__: [6]
|
|
2454
|
-
}), a.multiple ? (y(),
|
|
2454
|
+
}), a.multiple ? (y(), $(s(Fe), {
|
|
2455
2455
|
key: 0,
|
|
2456
2456
|
style: {
|
|
2457
2457
|
flex: "none",
|
|
@@ -2463,11 +2463,11 @@ const tn = { class: "ja-user-group-tree" }, an = /* @__PURE__ */ z({
|
|
|
2463
2463
|
}, {
|
|
2464
2464
|
default: g(() => [w(s(ce), {
|
|
2465
2465
|
size: "15",
|
|
2466
|
-
onClick:
|
|
2466
|
+
onClick: L
|
|
2467
2467
|
}, {
|
|
2468
|
-
default: g(() => [m.value ? (y(),
|
|
2468
|
+
default: g(() => [m.value ? (y(), $(s(al), {
|
|
2469
2469
|
key: 1
|
|
2470
|
-
})) : (y(),
|
|
2470
|
+
})) : (y(), $(s(tl), {
|
|
2471
2471
|
key: 0
|
|
2472
2472
|
}))]),
|
|
2473
2473
|
_: 1
|
|
@@ -2475,7 +2475,7 @@ const tn = { class: "ja-user-group-tree" }, an = /* @__PURE__ */ z({
|
|
|
2475
2475
|
_: 1
|
|
2476
2476
|
}, 8, ["content"])]),
|
|
2477
2477
|
_: 1
|
|
2478
|
-
})) : de("", !0), a.multiple ? (y(),
|
|
2478
|
+
})) : de("", !0), a.multiple ? (y(), $(s(se), {
|
|
2479
2479
|
key: 1,
|
|
2480
2480
|
plain: "",
|
|
2481
2481
|
style: {
|
|
@@ -2489,7 +2489,7 @@ const tn = { class: "ja-user-group-tree" }, an = /* @__PURE__ */ z({
|
|
|
2489
2489
|
default: g(() => U[7] || (U[7] = [G("全选 ")])),
|
|
2490
2490
|
_: 1,
|
|
2491
2491
|
__: [7]
|
|
2492
|
-
})) : de("", !0), a.multiple ? (y(),
|
|
2492
|
+
})) : de("", !0), a.multiple ? (y(), $(s(se), {
|
|
2493
2493
|
key: 2,
|
|
2494
2494
|
plain: "",
|
|
2495
2495
|
style: {
|
|
@@ -2503,7 +2503,7 @@ const tn = { class: "ja-user-group-tree" }, an = /* @__PURE__ */ z({
|
|
|
2503
2503
|
default: g(() => U[8] || (U[8] = [G("全消 ")])),
|
|
2504
2504
|
_: 1,
|
|
2505
2505
|
__: [8]
|
|
2506
|
-
})) : de("", !0), a.multiple ? (y(),
|
|
2506
|
+
})) : de("", !0), a.multiple ? (y(), $(s(se), {
|
|
2507
2507
|
key: 3,
|
|
2508
2508
|
plain: "",
|
|
2509
2509
|
style: {
|
|
@@ -2519,20 +2519,20 @@ const tn = { class: "ja-user-group-tree" }, an = /* @__PURE__ */ z({
|
|
|
2519
2519
|
__: [9]
|
|
2520
2520
|
})) : de("", !0)])]),
|
|
2521
2521
|
_: 1
|
|
2522
|
-
}, 8, ["data"])), [[s(De), s(
|
|
2522
|
+
}, 8, ["data"])), [[s(De), s(u)]])])])]),
|
|
2523
2523
|
_: 1
|
|
2524
2524
|
}, 8, ["modelValue"]));
|
|
2525
2525
|
}
|
|
2526
|
-
}),
|
|
2526
|
+
}), mn = /* @__PURE__ */ pe(pn, [["__scopeId", "data-v-d800ec6a"]]), ha = R(mn), fn = /* @__PURE__ */ z({
|
|
2527
2527
|
__name: "Scrollbar",
|
|
2528
2528
|
setup(e, { expose: l }) {
|
|
2529
2529
|
const a = h(), t = h([]), o = /* @__PURE__ */ new Map();
|
|
2530
2530
|
l({
|
|
2531
2531
|
elScrollbar: a
|
|
2532
2532
|
}), Te(va, t);
|
|
2533
|
-
let
|
|
2533
|
+
let i = !1;
|
|
2534
2534
|
T(t, () => {
|
|
2535
|
-
|
|
2535
|
+
i && n();
|
|
2536
2536
|
}, {
|
|
2537
2537
|
deep: !0
|
|
2538
2538
|
});
|
|
@@ -2550,114 +2550,114 @@ const tn = { class: "ja-user-group-tree" }, an = /* @__PURE__ */ z({
|
|
|
2550
2550
|
try {
|
|
2551
2551
|
for (let r = 0; r < t.value.length; r++)
|
|
2552
2552
|
if (t.value[r]) {
|
|
2553
|
-
const
|
|
2554
|
-
m.top >= f.top && m.bottom <= f.bottom && m.left >= f.left && m.right <= f.right &&
|
|
2553
|
+
const u = t.value[r], m = u.childElement.getBoundingClientRect(), f = c.getBoundingClientRect();
|
|
2554
|
+
m.top >= f.top && m.bottom <= f.bottom && m.left >= f.left && m.right <= f.right && u.onInView(!0), o.set(u.childElement, u), d.observe(u.childElement);
|
|
2555
2555
|
}
|
|
2556
2556
|
} finally {
|
|
2557
2557
|
t.value && t.value.splice(0);
|
|
2558
2558
|
}
|
|
2559
|
-
|
|
2559
|
+
i = !0;
|
|
2560
2560
|
}
|
|
2561
2561
|
}
|
|
2562
2562
|
return Ye(async () => {
|
|
2563
2563
|
await n();
|
|
2564
|
-
}),
|
|
2564
|
+
}), $e(() => {
|
|
2565
2565
|
o.forEach((c) => {
|
|
2566
2566
|
d.disconnect();
|
|
2567
2567
|
});
|
|
2568
|
-
}), (c, p) => (y(),
|
|
2568
|
+
}), (c, p) => (y(), $(s(Ce), K({
|
|
2569
2569
|
ref_key: "scroll",
|
|
2570
2570
|
ref: a,
|
|
2571
2571
|
class: "scroll-container"
|
|
2572
2572
|
}, c.$attrs), fe({ _: 2 }, [
|
|
2573
|
-
W(c.$slots, (r,
|
|
2574
|
-
name:
|
|
2573
|
+
W(c.$slots, (r, u) => ({
|
|
2574
|
+
name: u,
|
|
2575
2575
|
fn: g(() => [
|
|
2576
|
-
te(c.$slots,
|
|
2576
|
+
te(c.$slots, u)
|
|
2577
2577
|
])
|
|
2578
2578
|
}))
|
|
2579
2579
|
]), 1040));
|
|
2580
2580
|
}
|
|
2581
|
-
}), ya = R(
|
|
2582
|
-
function
|
|
2581
|
+
}), ya = R(fn);
|
|
2582
|
+
function vn(e, l) {
|
|
2583
2583
|
for (var a = -1, t = e == null ? 0 : e.length, o = Array(t); ++a < t; )
|
|
2584
2584
|
o[a] = l(e[a], a, e);
|
|
2585
2585
|
return o;
|
|
2586
2586
|
}
|
|
2587
|
-
var
|
|
2587
|
+
var gn = Array.isArray, Ut = Me ? Me.prototype : void 0, zt = Ut ? Ut.toString : void 0;
|
|
2588
2588
|
function _t(e) {
|
|
2589
2589
|
if (typeof e == "string")
|
|
2590
2590
|
return e;
|
|
2591
|
-
if (
|
|
2592
|
-
return
|
|
2591
|
+
if (gn(e))
|
|
2592
|
+
return vn(e, _t) + "";
|
|
2593
2593
|
if (pa(e))
|
|
2594
2594
|
return zt ? zt.call(e) : "";
|
|
2595
2595
|
var l = e + "";
|
|
2596
2596
|
return l == "0" && 1 / e == -1 / 0 ? "-0" : l;
|
|
2597
2597
|
}
|
|
2598
|
-
function
|
|
2599
|
-
for (var o = e.length,
|
|
2600
|
-
if (l(e[
|
|
2601
|
-
return
|
|
2598
|
+
function hn(e, l, a, t) {
|
|
2599
|
+
for (var o = e.length, i = a + -1; ++i < o; )
|
|
2600
|
+
if (l(e[i], i, e))
|
|
2601
|
+
return i;
|
|
2602
2602
|
return -1;
|
|
2603
2603
|
}
|
|
2604
|
-
function
|
|
2604
|
+
function yn(e) {
|
|
2605
2605
|
return e !== e;
|
|
2606
2606
|
}
|
|
2607
|
-
function
|
|
2607
|
+
function bn(e, l, a) {
|
|
2608
2608
|
for (var t = a - 1, o = e.length; ++t < o; )
|
|
2609
2609
|
if (e[t] === l)
|
|
2610
2610
|
return t;
|
|
2611
2611
|
return -1;
|
|
2612
2612
|
}
|
|
2613
2613
|
function ba(e, l, a) {
|
|
2614
|
-
return l === l ?
|
|
2614
|
+
return l === l ? bn(e, l, a) : hn(e, yn, a);
|
|
2615
2615
|
}
|
|
2616
|
-
function
|
|
2616
|
+
function wn(e) {
|
|
2617
2617
|
return e == null ? "" : _t(e);
|
|
2618
2618
|
}
|
|
2619
|
-
function
|
|
2619
|
+
function _n(e, l, a) {
|
|
2620
2620
|
var t = -1, o = e.length;
|
|
2621
2621
|
l < 0 && (l = -l > o ? 0 : o + l), a = a > o ? o : a, a < 0 && (a += o), o = l > a ? 0 : a - l >>> 0, l >>>= 0;
|
|
2622
|
-
for (var
|
|
2623
|
-
|
|
2624
|
-
return
|
|
2622
|
+
for (var i = Array(o); ++t < o; )
|
|
2623
|
+
i[t] = e[t + l];
|
|
2624
|
+
return i;
|
|
2625
2625
|
}
|
|
2626
|
-
function
|
|
2626
|
+
function kn(e, l, a) {
|
|
2627
2627
|
var t = e.length;
|
|
2628
|
-
return a = a === void 0 ? t : a, !l && a >= t ? e :
|
|
2629
|
-
}
|
|
2630
|
-
var kn = "\\ud800-\\udfff", Vn = "\\u0300-\\u036f", In = "\\ufe20-\\ufe2f", $n = "\\u20d0-\\u20ff", Cn = Vn + In + $n, An = "\\ufe0e\\ufe0f", Dn = "\\u200d", En = RegExp("[" + Dn + kn + Cn + An + "]");
|
|
2631
|
-
function Sn(e) {
|
|
2632
|
-
return En.test(e);
|
|
2628
|
+
return a = a === void 0 ? t : a, !l && a >= t ? e : _n(e, l, a);
|
|
2633
2629
|
}
|
|
2630
|
+
var Vn = "\\ud800-\\udfff", In = "\\u0300-\\u036f", Cn = "\\ufe20-\\ufe2f", $n = "\\u20d0-\\u20ff", An = In + Cn + $n, Dn = "\\ufe0e\\ufe0f", En = "\\u200d", Sn = RegExp("[" + En + Vn + An + Dn + "]");
|
|
2634
2631
|
function Tn(e) {
|
|
2632
|
+
return Sn.test(e);
|
|
2633
|
+
}
|
|
2634
|
+
function Fn(e) {
|
|
2635
2635
|
return e.split("");
|
|
2636
2636
|
}
|
|
2637
|
-
var wa = "\\ud800-\\udfff",
|
|
2637
|
+
var wa = "\\ud800-\\udfff", Mn = "\\u0300-\\u036f", Pn = "\\ufe20-\\ufe2f", Un = "\\u20d0-\\u20ff", zn = Mn + Pn + Un, Bn = "\\ufe0e\\ufe0f", Rn = "[" + wa + "]", dt = "[" + zn + "]", ct = "\\ud83c[\\udffb-\\udfff]", Ln = "(?:" + dt + "|" + ct + ")", _a = "[^" + wa + "]", ka = "(?:\\ud83c[\\udde6-\\uddff]){2}", Va = "[\\ud800-\\udbff][\\udc00-\\udfff]", Nn = "\\u200d", Ia = Ln + "?", Ca = "[" + Bn + "]?", Jn = "(?:" + Nn + "(?:" + [_a, ka, Va].join("|") + ")" + Ca + Ia + ")*", On = Ca + Ia + Jn, jn = "(?:" + [_a + dt + "?", dt, ka, Va, Rn].join("|") + ")", xn = RegExp(ct + "(?=" + ct + ")|" + jn + On, "g");
|
|
2638
2638
|
function qn(e) {
|
|
2639
|
-
return e.match(
|
|
2639
|
+
return e.match(xn) || [];
|
|
2640
2640
|
}
|
|
2641
2641
|
function Bt(e) {
|
|
2642
|
-
return
|
|
2642
|
+
return Tn(e) ? qn(e) : Fn(e);
|
|
2643
2643
|
}
|
|
2644
|
-
function
|
|
2644
|
+
function Gn(e, l) {
|
|
2645
2645
|
for (var a = e.length; a-- && ba(l, e[a], 0) > -1; )
|
|
2646
2646
|
;
|
|
2647
2647
|
return a;
|
|
2648
2648
|
}
|
|
2649
|
-
function
|
|
2649
|
+
function Hn(e, l) {
|
|
2650
2650
|
for (var a = -1, t = e.length; ++a < t && ba(l, e[a], 0) > -1; )
|
|
2651
2651
|
;
|
|
2652
2652
|
return a;
|
|
2653
2653
|
}
|
|
2654
|
-
function
|
|
2655
|
-
if (e =
|
|
2654
|
+
function Wn(e, l, a) {
|
|
2655
|
+
if (e = wn(e), e && l === void 0)
|
|
2656
2656
|
return da(e);
|
|
2657
2657
|
if (!e || !(l = _t(l)))
|
|
2658
2658
|
return e;
|
|
2659
|
-
var t = Bt(e), o = Bt(l),
|
|
2660
|
-
return
|
|
2659
|
+
var t = Bt(e), o = Bt(l), i = Hn(t, o), d = Gn(t, o) + 1;
|
|
2660
|
+
return kn(t, i, d).join("");
|
|
2661
2661
|
}
|
|
2662
2662
|
const Be = /* @__PURE__ */ new Map(), kt = {
|
|
2663
2663
|
mounted(e) {
|
|
@@ -2675,23 +2675,23 @@ const Be = /* @__PURE__ */ new Map(), kt = {
|
|
|
2675
2675
|
onUnmounted(e) {
|
|
2676
2676
|
Be.has(e) && (clearTimeout(Be.get(e)), Be.delete(e));
|
|
2677
2677
|
}
|
|
2678
|
-
},
|
|
2678
|
+
}, Kn = { class: "ja-custom-group-manager" }, Yn = /* @__PURE__ */ z({
|
|
2679
2679
|
__name: "CustomGroupManager",
|
|
2680
2680
|
props: {
|
|
2681
2681
|
users: { default: () => [] }
|
|
2682
2682
|
},
|
|
2683
2683
|
setup(e, { expose: l }) {
|
|
2684
|
-
const a = h(!1), t = ne(), o = Wt(t),
|
|
2684
|
+
const a = h(!1), t = ne(), o = Wt(t), i = h(), d = {
|
|
2685
2685
|
label: "name",
|
|
2686
2686
|
children: "children",
|
|
2687
|
-
isLeaf: (k,
|
|
2687
|
+
isLeaf: (k, C) => !k.hasChildren,
|
|
2688
2688
|
class: (k) => {
|
|
2689
|
-
var
|
|
2690
|
-
return k.id === ((
|
|
2689
|
+
var C;
|
|
2690
|
+
return k.id === ((C = n.value) == null ? void 0 : C.id) ? "selected-group" : "group";
|
|
2691
2691
|
}
|
|
2692
|
-
}, n = h(), c = h(!1), p = h(), r = _e(t),
|
|
2692
|
+
}, n = h(), c = h(!1), p = h(), r = _e(t), u = e, m = {};
|
|
2693
2693
|
async function f() {
|
|
2694
|
-
const k = Pe(await o.getAll()),
|
|
2694
|
+
const k = Pe(await o.getAll()), C = {
|
|
2695
2695
|
id: "-1",
|
|
2696
2696
|
name: "[顶级组]",
|
|
2697
2697
|
children: k,
|
|
@@ -2702,7 +2702,7 @@ const Be = /* @__PURE__ */ new Map(), kt = {
|
|
|
2702
2702
|
sortIndex: 0,
|
|
2703
2703
|
sortPath: ""
|
|
2704
2704
|
};
|
|
2705
|
-
return
|
|
2705
|
+
return i.value = [C], C;
|
|
2706
2706
|
}
|
|
2707
2707
|
async function _() {
|
|
2708
2708
|
n.value = await f();
|
|
@@ -2714,10 +2714,10 @@ const Be = /* @__PURE__ */ new Map(), kt = {
|
|
|
2714
2714
|
p.value = void 0, c.value = !0;
|
|
2715
2715
|
}
|
|
2716
2716
|
async function v() {
|
|
2717
|
-
var k,
|
|
2717
|
+
var k, C;
|
|
2718
2718
|
await o.create({
|
|
2719
2719
|
name: p.value,
|
|
2720
|
-
parentId: ((k = n.value) == null ? void 0 : k.id) == "-1" || (
|
|
2720
|
+
parentId: ((k = n.value) == null ? void 0 : k.id) == "-1" || (C = n.value) == null ? void 0 : C.id
|
|
2721
2721
|
}), c.value = !1, await f();
|
|
2722
2722
|
}
|
|
2723
2723
|
async function S() {
|
|
@@ -2726,12 +2726,12 @@ const Be = /* @__PURE__ */ new Map(), kt = {
|
|
|
2726
2726
|
async function P() {
|
|
2727
2727
|
var k;
|
|
2728
2728
|
if (!n.value || n.value.id === "-1") {
|
|
2729
|
-
|
|
2729
|
+
xa.warning("请选择要保存到的自定义用户组");
|
|
2730
2730
|
return;
|
|
2731
2731
|
}
|
|
2732
2732
|
await o.setMembers({
|
|
2733
2733
|
id: n.value.id,
|
|
2734
|
-
userIds: ((k =
|
|
2734
|
+
userIds: ((k = u.users) == null ? void 0 : k.map((C) => C.id)) ?? []
|
|
2735
2735
|
}, m), a.value = !1;
|
|
2736
2736
|
}
|
|
2737
2737
|
return l({
|
|
@@ -2741,10 +2741,10 @@ const Be = /* @__PURE__ */ new Map(), kt = {
|
|
|
2741
2741
|
close() {
|
|
2742
2742
|
a.value = !1;
|
|
2743
2743
|
}
|
|
2744
|
-
}), (k,
|
|
2744
|
+
}), (k, C) => (y(), N(oe, null, [
|
|
2745
2745
|
w(s(st), {
|
|
2746
2746
|
modelValue: a.value,
|
|
2747
|
-
"onUpdate:modelValue":
|
|
2747
|
+
"onUpdate:modelValue": C[1] || (C[1] = (F) => a.value = F),
|
|
2748
2748
|
"destroy-on-close": "",
|
|
2749
2749
|
"append-to-body": "",
|
|
2750
2750
|
draggable: "",
|
|
@@ -2759,16 +2759,16 @@ const Be = /* @__PURE__ */ new Map(), kt = {
|
|
|
2759
2759
|
loading: s(r),
|
|
2760
2760
|
onClick: P
|
|
2761
2761
|
}, {
|
|
2762
|
-
default: g(() =>
|
|
2762
|
+
default: g(() => C[6] || (C[6] = [
|
|
2763
2763
|
G("确定 ")
|
|
2764
2764
|
])),
|
|
2765
2765
|
_: 1,
|
|
2766
2766
|
__: [6]
|
|
2767
2767
|
}, 8, ["loading"]),
|
|
2768
2768
|
w(s(me), {
|
|
2769
|
-
onClick:
|
|
2769
|
+
onClick: C[0] || (C[0] = (F) => a.value = !1)
|
|
2770
2770
|
}, {
|
|
2771
|
-
default: g(() =>
|
|
2771
|
+
default: g(() => C[7] || (C[7] = [
|
|
2772
2772
|
G("取消")
|
|
2773
2773
|
])),
|
|
2774
2774
|
_: 1,
|
|
@@ -2776,11 +2776,11 @@ const Be = /* @__PURE__ */ new Map(), kt = {
|
|
|
2776
2776
|
})
|
|
2777
2777
|
]),
|
|
2778
2778
|
default: g(() => [
|
|
2779
|
-
j("div",
|
|
2779
|
+
j("div", Kn, [
|
|
2780
2780
|
w(s(vt), null, {
|
|
2781
2781
|
default: g(() => [
|
|
2782
2782
|
w(s(Fe), null, {
|
|
2783
|
-
default: g(() =>
|
|
2783
|
+
default: g(() => C[5] || (C[5] = [
|
|
2784
2784
|
G("请创建或选择要保存为的自定义组:")
|
|
2785
2785
|
])),
|
|
2786
2786
|
_: 1,
|
|
@@ -2797,7 +2797,7 @@ const Be = /* @__PURE__ */ new Map(), kt = {
|
|
|
2797
2797
|
}, null, 8, ["icon", "loading"]),
|
|
2798
2798
|
w(s(se), {
|
|
2799
2799
|
circle: "",
|
|
2800
|
-
icon: s(
|
|
2800
|
+
icon: s(xe),
|
|
2801
2801
|
tooltip: "删除自定义组",
|
|
2802
2802
|
shortcut: "Alt+D",
|
|
2803
2803
|
size: "small",
|
|
@@ -2807,12 +2807,12 @@ const Be = /* @__PURE__ */ new Map(), kt = {
|
|
|
2807
2807
|
]),
|
|
2808
2808
|
_: 1
|
|
2809
2809
|
}),
|
|
2810
|
-
w(s(
|
|
2810
|
+
w(s(Ce), { height: "360px" }, {
|
|
2811
2811
|
default: g(() => {
|
|
2812
2812
|
var F;
|
|
2813
2813
|
return [
|
|
2814
2814
|
w(s(Qe), {
|
|
2815
|
-
data:
|
|
2815
|
+
data: i.value,
|
|
2816
2816
|
"node-key": "id",
|
|
2817
2817
|
props: d,
|
|
2818
2818
|
"default-expand-all": "",
|
|
@@ -2830,7 +2830,7 @@ const Be = /* @__PURE__ */ new Map(), kt = {
|
|
|
2830
2830
|
}, 8, ["modelValue"]),
|
|
2831
2831
|
w(s(st), {
|
|
2832
2832
|
modelValue: c.value,
|
|
2833
|
-
"onUpdate:modelValue":
|
|
2833
|
+
"onUpdate:modelValue": C[4] || (C[4] = (F) => c.value = F),
|
|
2834
2834
|
"destroy-on-close": "",
|
|
2835
2835
|
"append-to-body": "",
|
|
2836
2836
|
title: "添加自定义组",
|
|
@@ -2844,17 +2844,17 @@ const Be = /* @__PURE__ */ new Map(), kt = {
|
|
|
2844
2844
|
loading: s(r),
|
|
2845
2845
|
size: "default"
|
|
2846
2846
|
}, {
|
|
2847
|
-
default: g(() =>
|
|
2847
|
+
default: g(() => C[8] || (C[8] = [
|
|
2848
2848
|
G(" 确定 ")
|
|
2849
2849
|
])),
|
|
2850
2850
|
_: 1,
|
|
2851
2851
|
__: [8]
|
|
2852
2852
|
}, 8, ["loading"]),
|
|
2853
2853
|
w(s(me), {
|
|
2854
|
-
onClick:
|
|
2854
|
+
onClick: C[3] || (C[3] = (F) => c.value = !1),
|
|
2855
2855
|
size: "default"
|
|
2856
2856
|
}, {
|
|
2857
|
-
default: g(() =>
|
|
2857
|
+
default: g(() => C[9] || (C[9] = [
|
|
2858
2858
|
G("取消")
|
|
2859
2859
|
])),
|
|
2860
2860
|
_: 1,
|
|
@@ -2871,7 +2871,7 @@ const Be = /* @__PURE__ */ new Map(), kt = {
|
|
|
2871
2871
|
default: g(() => [
|
|
2872
2872
|
Y(w(s(we), {
|
|
2873
2873
|
modelValue: p.value,
|
|
2874
|
-
"onUpdate:modelValue":
|
|
2874
|
+
"onUpdate:modelValue": C[2] || (C[2] = (F) => p.value = F),
|
|
2875
2875
|
style: { width: "100%" }
|
|
2876
2876
|
}, null, 8, ["modelValue"]), [
|
|
2877
2877
|
[s(kt)]
|
|
@@ -2887,10 +2887,10 @@ const Be = /* @__PURE__ */ new Map(), kt = {
|
|
|
2887
2887
|
}, 8, ["modelValue"])
|
|
2888
2888
|
], 64));
|
|
2889
2889
|
}
|
|
2890
|
-
}),
|
|
2890
|
+
}), Qn = /* @__PURE__ */ pe(Yn, [["__scopeId", "data-v-8ef9bcd8"]]), Xn = { class: "ja-user-list" }, Zn = ["onMouseenter", "onMousedown", "onMouseover"], er = {
|
|
2891
2891
|
key: 0,
|
|
2892
2892
|
class: "page-indicator"
|
|
2893
|
-
},
|
|
2893
|
+
}, tr = { class: "nb-spinner" }, ar = 1, lr = /* @__PURE__ */ z({
|
|
2894
2894
|
__name: "JaUserList",
|
|
2895
2895
|
props: /* @__PURE__ */ Q({
|
|
2896
2896
|
emptyText: {},
|
|
@@ -2912,16 +2912,16 @@ const Be = /* @__PURE__ */ new Map(), kt = {
|
|
|
2912
2912
|
}),
|
|
2913
2913
|
emits: /* @__PURE__ */ Q(["arrowKeyDown", "itemClicked"], ["update:modelValue", "update:page"]),
|
|
2914
2914
|
setup(e, { expose: l, emit: a }) {
|
|
2915
|
-
const t = e, o = h(0),
|
|
2915
|
+
const t = e, o = h(0), i = h(), d = h(!1), n = ue(e, "modelValue"), c = ue(e, "page"), p = a, u = Je(() => {
|
|
2916
2916
|
var O;
|
|
2917
|
-
const A = (O =
|
|
2918
|
-
A && A.scrollHeight - A.scrollTop <= A.clientHeight +
|
|
2917
|
+
const A = (O = i.value) == null ? void 0 : O.wrapRef;
|
|
2918
|
+
A && A.scrollHeight - A.scrollTop <= A.clientHeight + ar && c.value < t.total / t.pageSize && c.value++;
|
|
2919
2919
|
}, 200);
|
|
2920
2920
|
function m(A) {
|
|
2921
2921
|
if (t.multiple) {
|
|
2922
2922
|
if (!Array.isArray(n.value))
|
|
2923
2923
|
throw new Error("UserPicker组件设置为多选模式(multiple)时,v-model必须绑定UserReference数组");
|
|
2924
|
-
const O = n.value.findIndex((
|
|
2924
|
+
const O = n.value.findIndex((L) => L.id == A.id);
|
|
2925
2925
|
O < 0 ? n.value.push(A) : n.value.splice(O, 1);
|
|
2926
2926
|
} else
|
|
2927
2927
|
n.value = A;
|
|
@@ -2944,28 +2944,28 @@ const Be = /* @__PURE__ */ new Map(), kt = {
|
|
|
2944
2944
|
}
|
|
2945
2945
|
const P = () => {
|
|
2946
2946
|
Ie(() => {
|
|
2947
|
-
var
|
|
2948
|
-
const A = (
|
|
2947
|
+
var L, X, ee;
|
|
2948
|
+
const A = (L = i.value) == null ? void 0 : L.$refs.wrapRef, O = A == null ? void 0 : A.querySelectorAll("li")[o.value];
|
|
2949
2949
|
if (O && A) {
|
|
2950
2950
|
const E = O.offsetTop, V = O.offsetTop + O.offsetHeight, D = A.scrollTop, B = A.scrollTop + A.clientHeight;
|
|
2951
|
-
V > B ? (X =
|
|
2951
|
+
V > B ? (X = i.value) == null || X.scrollTo(
|
|
2952
2952
|
0,
|
|
2953
2953
|
V - A.clientHeight + O.offsetHeight - 38
|
|
2954
|
-
) : E < D && ((ee =
|
|
2954
|
+
) : E < D && ((ee = i.value) == null || ee.scrollTo(0, E));
|
|
2955
2955
|
}
|
|
2956
2956
|
});
|
|
2957
|
-
}, k = Je(v, 100),
|
|
2957
|
+
}, k = Je(v, 100), C = Je(S, 100);
|
|
2958
2958
|
function F(A, O) {
|
|
2959
|
-
var
|
|
2959
|
+
var L;
|
|
2960
2960
|
if (o.value = O, d.value = A.buttons > 0, d.value) {
|
|
2961
|
-
const X = (
|
|
2961
|
+
const X = (L = i.value) == null ? void 0 : L.$refs.wrapRef, ee = A.target;
|
|
2962
2962
|
if (ee && X) {
|
|
2963
2963
|
const E = ee.offsetTop, V = ee.offsetTop + ee.offsetHeight, D = X.scrollTop, B = X.scrollTop + X.clientHeight;
|
|
2964
|
-
V + 20 > B ? k() : E < D + 20 &&
|
|
2964
|
+
V + 20 > B ? k() : E < D + 20 && C();
|
|
2965
2965
|
}
|
|
2966
2966
|
}
|
|
2967
2967
|
}
|
|
2968
|
-
function
|
|
2968
|
+
function q(A) {
|
|
2969
2969
|
return Z.value.some((O) => O.id === A.id);
|
|
2970
2970
|
}
|
|
2971
2971
|
const H = (A) => Z.value.some((O) => O.id === A.id) ? "autumnOrange" : "skyGray", Z = ve(() => {
|
|
@@ -2991,43 +2991,43 @@ const Be = /* @__PURE__ */ new Map(), kt = {
|
|
|
2991
2991
|
o.value = 0;
|
|
2992
2992
|
}, {
|
|
2993
2993
|
deep: !1
|
|
2994
|
-
}),
|
|
2995
|
-
k.cancel(),
|
|
2996
|
-
}), (A, O) => (y(),
|
|
2997
|
-
Y((y(),
|
|
2994
|
+
}), $e(() => {
|
|
2995
|
+
k.cancel(), C.cancel(), u.cancel();
|
|
2996
|
+
}), (A, O) => (y(), N("div", Xn, [
|
|
2997
|
+
Y((y(), $(s(Ce), {
|
|
2998
2998
|
height: A.height,
|
|
2999
2999
|
ref_key: "scrollbar",
|
|
3000
|
-
ref:
|
|
3000
|
+
ref: i,
|
|
3001
3001
|
always: "",
|
|
3002
|
-
onScroll: s(
|
|
3002
|
+
onScroll: s(u)
|
|
3003
3003
|
}, {
|
|
3004
3004
|
default: g(() => [
|
|
3005
|
-
A.users.length > 0 ? (y(),
|
|
3005
|
+
A.users.length > 0 ? (y(), N("ul", {
|
|
3006
3006
|
key: 0,
|
|
3007
3007
|
onMouseup: I
|
|
3008
3008
|
}, [
|
|
3009
|
-
(y(!0),
|
|
3010
|
-
key:
|
|
3009
|
+
(y(!0), N(oe, null, W(A.users, (L, X) => (y(), N("li", {
|
|
3010
|
+
key: L.id,
|
|
3011
3011
|
class: Ge(ye(X)),
|
|
3012
|
-
onMouseenter: (ee) => d.value && b(
|
|
3013
|
-
onMousedown: (ee) => _(
|
|
3012
|
+
onMouseenter: (ee) => d.value && b(L),
|
|
3013
|
+
onMousedown: (ee) => _(L),
|
|
3014
3014
|
onMouseover: (ee) => F(ee, X)
|
|
3015
3015
|
}, [
|
|
3016
3016
|
w(s(ce), { color: "#0D6A9F" }, {
|
|
3017
3017
|
default: g(() => [
|
|
3018
|
-
|
|
3018
|
+
q(L) ? (y(), $(s(ea), { key: 0 })) : de("", !0)
|
|
3019
3019
|
]),
|
|
3020
3020
|
_: 2
|
|
3021
3021
|
}, 1024),
|
|
3022
3022
|
w(s(tt), {
|
|
3023
|
-
"user-id":
|
|
3024
|
-
"full-name":
|
|
3025
|
-
"has-avatar":
|
|
3023
|
+
"user-id": L.id,
|
|
3024
|
+
"full-name": L.fullName,
|
|
3025
|
+
"has-avatar": L.hasAvatar,
|
|
3026
3026
|
placement: "left-start",
|
|
3027
|
-
theme: H(
|
|
3027
|
+
theme: H(L)
|
|
3028
3028
|
}, null, 8, ["user-id", "full-name", "has-avatar", "theme"])
|
|
3029
|
-
], 42,
|
|
3030
|
-
], 32)) : (y(),
|
|
3029
|
+
], 42, Zn))), 128))
|
|
3030
|
+
], 32)) : (y(), $(s(Ot), {
|
|
3031
3031
|
key: 1,
|
|
3032
3032
|
description: A.emptyText
|
|
3033
3033
|
}, null, 8, ["description"]))
|
|
@@ -3036,18 +3036,18 @@ const Be = /* @__PURE__ */ new Map(), kt = {
|
|
|
3036
3036
|
}, 8, ["height", "onScroll"])), [
|
|
3037
3037
|
[s(De), be.value]
|
|
3038
3038
|
]),
|
|
3039
|
-
A.users.length > 0 ? (y(),
|
|
3040
|
-
Y(j("div",
|
|
3039
|
+
A.users.length > 0 ? (y(), N("div", er, [
|
|
3040
|
+
Y(j("div", tr, null, 512), [
|
|
3041
3041
|
[ge, A.loading]
|
|
3042
3042
|
]),
|
|
3043
3043
|
G(" 已加载 " + ae(c.value) + " /" + ae(Math.ceil(A.total / A.pageSize)) + "页 ", 1)
|
|
3044
3044
|
])) : de("", !0)
|
|
3045
3045
|
]));
|
|
3046
3046
|
}
|
|
3047
|
-
}),
|
|
3047
|
+
}), $a = /* @__PURE__ */ pe(lr, [["__scopeId", "data-v-6fd19ea8"]]), or = { class: "ja-user-picker__root" }, nr = { class: "ja-user-picker-bookmark__dropdown" }, rr = { style: { width: "100%", display: "flex", "align-content": "center", "justify-content": "end", "margin-bottom": "4px" } }, sr = { style: { color: "var(--el-color-info-light-5)" } }, ur = { class: "dropdown-header" }, ir = {
|
|
3048
3048
|
key: 0,
|
|
3049
3049
|
class: "more-tag"
|
|
3050
|
-
},
|
|
3050
|
+
}, dr = { key: 1 }, Re = 0, cr = /* @__PURE__ */ z({
|
|
3051
3051
|
__name: "UserPicker",
|
|
3052
3052
|
props: /* @__PURE__ */ Q({
|
|
3053
3053
|
/**
|
|
@@ -3094,8 +3094,8 @@ const Be = /* @__PURE__ */ new Map(), kt = {
|
|
|
3094
3094
|
l.realmId ? a.value = l.realmId : a.value = Ze().realmId;
|
|
3095
3095
|
}
|
|
3096
3096
|
t(), T(() => l.realmId, t);
|
|
3097
|
-
const o = ne(),
|
|
3098
|
-
() =>
|
|
3097
|
+
const o = ne(), i = ht(o), d = za([]), n = ue(e, "modelValue"), c = h(), p = h(!1), { queryResult: r, queryParams: u, pageParams: m, loading: f } = ma(
|
|
3098
|
+
() => u.value.name != null && u.value.name.length > Re,
|
|
3099
3099
|
l.customFilter,
|
|
3100
3100
|
(V, D) => {
|
|
3101
3101
|
var B, ie;
|
|
@@ -3115,20 +3115,20 @@ const Be = /* @__PURE__ */ new Map(), kt = {
|
|
|
3115
3115
|
n.value = V;
|
|
3116
3116
|
}
|
|
3117
3117
|
function k() {
|
|
3118
|
-
(!
|
|
3118
|
+
(!u.value.realmId || u.value.realmId !== a.value) && (u.value.realmId = a.value), u.value.name && u.value.name.length > Re && (u.value.name = void 0);
|
|
3119
3119
|
const V = Gt();
|
|
3120
3120
|
if (l.customFilter) {
|
|
3121
3121
|
const D = V.getQEntity();
|
|
3122
3122
|
V.and(l.customFilter(D));
|
|
3123
3123
|
}
|
|
3124
|
-
|
|
3124
|
+
i.getBookmarkedUsers(V.build()).then((D) => {
|
|
3125
3125
|
d.value = D;
|
|
3126
3126
|
}), setTimeout(() => {
|
|
3127
3127
|
var D;
|
|
3128
3128
|
(D = c.value) == null || D.focus();
|
|
3129
3129
|
}, 300);
|
|
3130
3130
|
}
|
|
3131
|
-
function
|
|
3131
|
+
function C() {
|
|
3132
3132
|
var V;
|
|
3133
3133
|
(V = _.value) == null || V.$el.focus();
|
|
3134
3134
|
}
|
|
@@ -3136,7 +3136,7 @@ const Be = /* @__PURE__ */ new Map(), kt = {
|
|
|
3136
3136
|
var V;
|
|
3137
3137
|
(V = v.value) == null || V.show();
|
|
3138
3138
|
}
|
|
3139
|
-
function
|
|
3139
|
+
function q(V) {
|
|
3140
3140
|
if (Array.isArray(n.value)) {
|
|
3141
3141
|
const D = n.value.findIndex((B) => B.id == V);
|
|
3142
3142
|
D >= 0 && n.value.splice(D, 1);
|
|
@@ -3165,7 +3165,7 @@ const Be = /* @__PURE__ */ new Map(), kt = {
|
|
|
3165
3165
|
function O() {
|
|
3166
3166
|
l.multiple ? n.value = [] : n.value = null;
|
|
3167
3167
|
}
|
|
3168
|
-
function
|
|
3168
|
+
function L() {
|
|
3169
3169
|
var V;
|
|
3170
3170
|
(V = c.value) == null || V.focus();
|
|
3171
3171
|
}
|
|
@@ -3181,17 +3181,17 @@ const Be = /* @__PURE__ */ new Map(), kt = {
|
|
|
3181
3181
|
(V = b.value) == null || V.show(), p.value = !1;
|
|
3182
3182
|
}
|
|
3183
3183
|
const E = ve(() => X.value.slice(0, l.maxShowCount));
|
|
3184
|
-
return (V, D) => (y(),
|
|
3184
|
+
return (V, D) => (y(), N(oe, null, [
|
|
3185
3185
|
w(s(ya), K({
|
|
3186
3186
|
"max-height": l.maxHeight,
|
|
3187
3187
|
height: l.height
|
|
3188
3188
|
}, V.$attrs, { style: { "overflow-x": "hidden" } }), {
|
|
3189
3189
|
default: g(() => [
|
|
3190
|
-
Y((y(),
|
|
3190
|
+
Y((y(), N("div", or, [
|
|
3191
3191
|
w(s(Jt), {
|
|
3192
3192
|
ref: "bookmarkDropdown",
|
|
3193
3193
|
onShow: k,
|
|
3194
|
-
onHide:
|
|
3194
|
+
onHide: C,
|
|
3195
3195
|
width: "auto",
|
|
3196
3196
|
teleported: "",
|
|
3197
3197
|
visible: p.value,
|
|
@@ -3208,8 +3208,8 @@ const Be = /* @__PURE__ */ new Map(), kt = {
|
|
|
3208
3208
|
}, null, 8, ["icon"])
|
|
3209
3209
|
]),
|
|
3210
3210
|
default: g(() => [
|
|
3211
|
-
j("div",
|
|
3212
|
-
j("div",
|
|
3211
|
+
j("div", nr, [
|
|
3212
|
+
j("div", rr, [
|
|
3213
3213
|
w(s(vt), { style: { flex: "auto" } }, {
|
|
3214
3214
|
default: g(() => [
|
|
3215
3215
|
w(s(se), {
|
|
@@ -3220,7 +3220,7 @@ const Be = /* @__PURE__ */ new Map(), kt = {
|
|
|
3220
3220
|
type: "primary",
|
|
3221
3221
|
tooltip: "对话框筛选(大批量选择)",
|
|
3222
3222
|
shortcut: "Ctrl+Alt+I",
|
|
3223
|
-
icon: s(
|
|
3223
|
+
icon: s(ll)
|
|
3224
3224
|
}, null, 8, ["icon"]),
|
|
3225
3225
|
w(s(se), {
|
|
3226
3226
|
circle: "",
|
|
@@ -3228,18 +3228,18 @@ const Be = /* @__PURE__ */ new Map(), kt = {
|
|
|
3228
3228
|
onClick: O,
|
|
3229
3229
|
type: "danger",
|
|
3230
3230
|
plain: "",
|
|
3231
|
-
icon: s(
|
|
3231
|
+
icon: s(ol),
|
|
3232
3232
|
tooltip: "清空选择",
|
|
3233
3233
|
shortcut: "Alt+C"
|
|
3234
3234
|
}, null, 8, ["icon"]),
|
|
3235
|
-
l.multiple ? (y(),
|
|
3235
|
+
l.multiple ? (y(), $(s(se), {
|
|
3236
3236
|
key: 0,
|
|
3237
3237
|
circle: "",
|
|
3238
3238
|
size: "small",
|
|
3239
3239
|
onClick: A,
|
|
3240
3240
|
type: "success",
|
|
3241
3241
|
plain: "",
|
|
3242
|
-
icon: s(
|
|
3242
|
+
icon: s(nl),
|
|
3243
3243
|
tooltip: "全选(已加载的数据)",
|
|
3244
3244
|
shortcut: "Ctrl+A"
|
|
3245
3245
|
}, null, 8, ["icon"])) : de("", !0),
|
|
@@ -3248,18 +3248,18 @@ const Be = /* @__PURE__ */ new Map(), kt = {
|
|
|
3248
3248
|
size: "small",
|
|
3249
3249
|
onClick: F,
|
|
3250
3250
|
type: "warning",
|
|
3251
|
-
icon: s(
|
|
3251
|
+
icon: s(rl),
|
|
3252
3252
|
plain: "",
|
|
3253
3253
|
tooltip: "将已选中用户保存为自定义组,方便以后选择使用"
|
|
3254
3254
|
}, null, 8, ["icon"])
|
|
3255
3255
|
]),
|
|
3256
3256
|
_: 1
|
|
3257
3257
|
}),
|
|
3258
|
-
j("div",
|
|
3258
|
+
j("div", sr, " 弹出快捷键:" + ae(l.shortcut), 1)
|
|
3259
3259
|
]),
|
|
3260
3260
|
w(s(we), {
|
|
3261
|
-
modelValue: s(
|
|
3262
|
-
"onUpdate:modelValue": D[1] || (D[1] = (B) => s(
|
|
3261
|
+
modelValue: s(u).name,
|
|
3262
|
+
"onUpdate:modelValue": D[1] || (D[1] = (B) => s(u).name = B),
|
|
3263
3263
|
ref_key: "inputSearchText",
|
|
3264
3264
|
ref: c,
|
|
3265
3265
|
"suffix-icon": s(Dt),
|
|
@@ -3267,19 +3267,19 @@ const Be = /* @__PURE__ */ new Map(), kt = {
|
|
|
3267
3267
|
autocomplete: "off",
|
|
3268
3268
|
onKeydown: [
|
|
3269
3269
|
Ve(ye, ["enter"]),
|
|
3270
|
-
Ve(
|
|
3271
|
-
Ve(
|
|
3270
|
+
Ve($t(Z, ["stop", "prevent"]), ["up"]),
|
|
3271
|
+
Ve($t(H, ["stop", "prevent"]), ["down"])
|
|
3272
3272
|
]
|
|
3273
3273
|
}, null, 8, ["modelValue", "suffix-icon", "onKeydown"]),
|
|
3274
|
-
j("div",
|
|
3274
|
+
j("div", ur, [
|
|
3275
3275
|
w(s(Fe), null, {
|
|
3276
3276
|
default: g(() => [
|
|
3277
|
-
s(
|
|
3277
|
+
s(u).name && s(u).name.length > Re ? (y(), $(s(ce), { key: 0 }, {
|
|
3278
3278
|
default: g(() => [
|
|
3279
3279
|
w(s(Dt))
|
|
3280
3280
|
]),
|
|
3281
3281
|
_: 1
|
|
3282
|
-
})) : (y(),
|
|
3282
|
+
})) : (y(), $(s(ce), {
|
|
3283
3283
|
key: 1,
|
|
3284
3284
|
color: "#FFBF29"
|
|
3285
3285
|
}, {
|
|
@@ -3288,16 +3288,16 @@ const Be = /* @__PURE__ */ new Map(), kt = {
|
|
|
3288
3288
|
]),
|
|
3289
3289
|
_: 1
|
|
3290
3290
|
})),
|
|
3291
|
-
G(" " + ae(s(
|
|
3291
|
+
G(" " + ae(s(u).name && s(u).name.length > Re ? "查询结果" : "常用人员"), 1)
|
|
3292
3292
|
]),
|
|
3293
3293
|
_: 1
|
|
3294
3294
|
})
|
|
3295
3295
|
]),
|
|
3296
|
-
w(
|
|
3296
|
+
w($a, {
|
|
3297
3297
|
ref_key: "userList",
|
|
3298
3298
|
ref: S,
|
|
3299
3299
|
total: s(r).total,
|
|
3300
|
-
"empty-text": s(
|
|
3300
|
+
"empty-text": s(u).name && s(u).name.length > Re ? void 0 : "无可选常用人员",
|
|
3301
3301
|
multiple: "",
|
|
3302
3302
|
"page-size": s(m).pageSize,
|
|
3303
3303
|
loading: s(f),
|
|
@@ -3307,23 +3307,23 @@ const Be = /* @__PURE__ */ new Map(), kt = {
|
|
|
3307
3307
|
"onUpdate:modelValue": D[2] || (D[2] = (B) => n.value = B),
|
|
3308
3308
|
page: s(m).currentPage,
|
|
3309
3309
|
"onUpdate:page": D[3] || (D[3] = (B) => s(m).currentPage = B),
|
|
3310
|
-
onItemClicked:
|
|
3311
|
-
onArrowKeyDown:
|
|
3310
|
+
onItemClicked: L,
|
|
3311
|
+
onArrowKeyDown: L
|
|
3312
3312
|
}, null, 8, ["total", "empty-text", "page-size", "loading", "users", "modelValue", "page"])
|
|
3313
3313
|
])
|
|
3314
3314
|
]),
|
|
3315
3315
|
_: 1
|
|
3316
3316
|
}, 8, ["visible"]),
|
|
3317
|
-
(y(!0),
|
|
3317
|
+
(y(!0), N(oe, null, W(E.value, (B) => (y(), $(s(tt), {
|
|
3318
3318
|
key: B.id,
|
|
3319
3319
|
"user-id": B.id,
|
|
3320
3320
|
"full-name": B.fullName,
|
|
3321
3321
|
closable: "",
|
|
3322
3322
|
"has-avatar": B.hasAvatar,
|
|
3323
|
-
onClosed:
|
|
3323
|
+
onClosed: q
|
|
3324
3324
|
}, null, 8, ["user-id", "full-name", "has-avatar"]))), 128)),
|
|
3325
|
-
X.value.length > l.maxShowCount ? (y(),
|
|
3326
|
-
X.value.length === 0 ? (y(),
|
|
3325
|
+
X.value.length > l.maxShowCount ? (y(), N("div", ir, " +" + ae(X.value.length - l.maxShowCount) + "人 ", 1)) : de("", !0),
|
|
3326
|
+
X.value.length === 0 ? (y(), N("div", dr, [
|
|
3327
3327
|
w(s(Fe), { type: "info" }, {
|
|
3328
3328
|
default: g(() => D[6] || (D[6] = [
|
|
3329
3329
|
G(" <暂无选中人员>")
|
|
@@ -3347,65 +3347,65 @@ const Be = /* @__PURE__ */ new Map(), kt = {
|
|
|
3347
3347
|
]),
|
|
3348
3348
|
_: 1
|
|
3349
3349
|
}, 16, ["max-height", "height"]),
|
|
3350
|
-
w(
|
|
3350
|
+
w(Qn, {
|
|
3351
3351
|
ref_key: "dlgCustomGroupManager",
|
|
3352
3352
|
ref: v,
|
|
3353
3353
|
users: Array.isArray(n.value) ? n.value : n.value ? [n.value] : null
|
|
3354
3354
|
}, null, 8, ["users"])
|
|
3355
3355
|
], 64));
|
|
3356
3356
|
}
|
|
3357
|
-
}), Aa = /* @__PURE__ */ pe(
|
|
3357
|
+
}), Aa = /* @__PURE__ */ pe(cr, [["__scopeId", "data-v-dff7e717"]]), pr = /* @__PURE__ */ z({
|
|
3358
3358
|
__name: "JaUserPicker",
|
|
3359
3359
|
emits: ["change"],
|
|
3360
3360
|
setup(e, { emit: l }) {
|
|
3361
|
-
const a = M("aceFormModel"), t = M("aceFormItemProp"), o = M("aceFormValidator"),
|
|
3361
|
+
const a = M("aceFormModel"), t = M("aceFormItemProp"), o = M("aceFormValidator"), i = l;
|
|
3362
3362
|
function d(c) {
|
|
3363
|
-
o.removeFieldError(t), re(a.formData, t, n.value),
|
|
3363
|
+
o.removeFieldError(t), re(a.formData, t, n.value), i("change", c);
|
|
3364
3364
|
}
|
|
3365
|
-
const n = h(
|
|
3365
|
+
const n = h(x(a.formData, t) ?? []);
|
|
3366
3366
|
return T(() => a.formData, () => {
|
|
3367
|
-
n.value =
|
|
3367
|
+
n.value = x(a.formData, t) ?? [];
|
|
3368
3368
|
}, {
|
|
3369
3369
|
deep: !0
|
|
3370
|
-
}), (c, p) => (y(),
|
|
3370
|
+
}), (c, p) => (y(), $(Aa, K({
|
|
3371
3371
|
modelValue: n.value,
|
|
3372
3372
|
"onUpdate:modelValue": p[0] || (p[0] = (r) => n.value = r),
|
|
3373
3373
|
onChange: d
|
|
3374
3374
|
}, c.$attrs), null, 16, ["modelValue"]));
|
|
3375
3375
|
}
|
|
3376
|
-
}),
|
|
3376
|
+
}), mr = R(Aa), fr = R(pr), vr = R($a), gr = /* @__PURE__ */ z({
|
|
3377
3377
|
__name: "JaTimePicker",
|
|
3378
3378
|
emits: ["change"],
|
|
3379
3379
|
setup(e, { expose: l, emit: a }) {
|
|
3380
|
-
const t = h({}), o = M("aceFormModel"),
|
|
3381
|
-
function p(
|
|
3382
|
-
d.removeFieldError(
|
|
3380
|
+
const t = h({}), o = M("aceFormModel"), i = M("aceFormItemProp"), d = M("aceFormValidator"), n = a, c = h({});
|
|
3381
|
+
function p(u) {
|
|
3382
|
+
d.removeFieldError(i), re(o.formData, i, r.value), n("change", u);
|
|
3383
3383
|
}
|
|
3384
|
-
const r = h(
|
|
3384
|
+
const r = h(x(o.formData, i));
|
|
3385
3385
|
return T(() => o.formData, () => {
|
|
3386
|
-
r.value =
|
|
3386
|
+
r.value = x(o.formData, i);
|
|
3387
3387
|
}, {
|
|
3388
3388
|
deep: !0
|
|
3389
3389
|
}), Ye(() => {
|
|
3390
3390
|
Object.entries(t.value).filter(([m, f]) => f instanceof Function).forEach(([m, f]) => {
|
|
3391
3391
|
c.value[m] = f;
|
|
3392
3392
|
});
|
|
3393
|
-
}), l(c.value), (
|
|
3393
|
+
}), l(c.value), (u, m) => (y(), $(s(qa), K({
|
|
3394
3394
|
ref_key: "input",
|
|
3395
3395
|
ref: t,
|
|
3396
|
-
modelValue: s(o).formData[s(
|
|
3397
|
-
"onUpdate:modelValue": m[0] || (m[0] = (f) => s(o).formData[s(
|
|
3396
|
+
modelValue: s(o).formData[s(i)],
|
|
3397
|
+
"onUpdate:modelValue": m[0] || (m[0] = (f) => s(o).formData[s(i)] = f),
|
|
3398
3398
|
onChange: p
|
|
3399
|
-
},
|
|
3400
|
-
W(
|
|
3399
|
+
}, u.$attrs), fe({ _: 2 }, [
|
|
3400
|
+
W(u.$slots, (f, _) => ({
|
|
3401
3401
|
name: _,
|
|
3402
3402
|
fn: g(() => [
|
|
3403
|
-
te(
|
|
3403
|
+
te(u.$slots, _)
|
|
3404
3404
|
])
|
|
3405
3405
|
}))
|
|
3406
3406
|
]), 1040, ["modelValue"]));
|
|
3407
3407
|
}
|
|
3408
|
-
}),
|
|
3408
|
+
}), hr = R(gr), yr = /* @__PURE__ */ z({
|
|
3409
3409
|
__name: "UserGroupPicker",
|
|
3410
3410
|
props: /* @__PURE__ */ Q({
|
|
3411
3411
|
realmId: {},
|
|
@@ -3419,35 +3419,35 @@ const Be = /* @__PURE__ */ new Map(), kt = {
|
|
|
3419
3419
|
}),
|
|
3420
3420
|
emits: /* @__PURE__ */ Q(["change"], ["update:modelValue"]),
|
|
3421
3421
|
setup(e, { emit: l }) {
|
|
3422
|
-
const a = ne(), t = Ht(a), o = e,
|
|
3423
|
-
if (o.multiple && !Array.isArray(
|
|
3422
|
+
const a = ne(), t = Ht(a), o = e, i = ue(e, "modelValue"), d = l;
|
|
3423
|
+
if (o.multiple && !Array.isArray(i.value))
|
|
3424
3424
|
throw new Error("用户组选择器设置multiple为true,但是绑定的v-model值是单值");
|
|
3425
|
-
if (!o.multiple && Array.isArray(
|
|
3425
|
+
if (!o.multiple && Array.isArray(i.value))
|
|
3426
3426
|
throw new Error("用户组选择器未设置multiple为true,但是绑定的v-model值是数组");
|
|
3427
3427
|
const n = Oe({
|
|
3428
3428
|
groups: []
|
|
3429
3429
|
}), c = () => {
|
|
3430
3430
|
!o.realmId || !o.appId || t.getByAppIdAndRealm(o.appId, o.realmId ?? "0").then((r) => {
|
|
3431
|
-
n.groups = [...Pe(r, "name")], !
|
|
3431
|
+
n.groups = [...Pe(r, "name")], !i.value && !o.multiple && (i.value = n.groups[0].id);
|
|
3432
3432
|
});
|
|
3433
3433
|
}, p = (r) => {
|
|
3434
|
-
d("change", Array.isArray(r) ? n.groups.filter((
|
|
3434
|
+
d("change", Array.isArray(r) ? n.groups.filter((u) => r.findIndex((m) => u.id === m) >= 0) : n.groups.find((u) => u.id === r));
|
|
3435
3435
|
};
|
|
3436
3436
|
return c(), T(
|
|
3437
3437
|
() => o.realmId,
|
|
3438
3438
|
() => {
|
|
3439
3439
|
c();
|
|
3440
3440
|
}
|
|
3441
|
-
), T(() => o.appId, c), (r,
|
|
3441
|
+
), T(() => o.appId, c), (r, u) => (y(), $(s(gt), K({
|
|
3442
3442
|
style: { width: "100%" },
|
|
3443
3443
|
data: n.groups,
|
|
3444
3444
|
size: o.size,
|
|
3445
3445
|
"node-key": "id",
|
|
3446
3446
|
"check-strictly": "",
|
|
3447
|
-
"current-node-key":
|
|
3447
|
+
"current-node-key": i.value,
|
|
3448
3448
|
"highlight-current": "",
|
|
3449
|
-
modelValue:
|
|
3450
|
-
"onUpdate:modelValue":
|
|
3449
|
+
modelValue: i.value,
|
|
3450
|
+
"onUpdate:modelValue": u[0] || (u[0] = (m) => i.value = m),
|
|
3451
3451
|
multiple: r.multiple,
|
|
3452
3452
|
onChange: p
|
|
3453
3453
|
}, r.$attrs, {
|
|
@@ -3457,26 +3457,26 @@ const Be = /* @__PURE__ */ new Map(), kt = {
|
|
|
3457
3457
|
teleported: ""
|
|
3458
3458
|
}), null, 16, ["data", "size", "current-node-key", "modelValue", "multiple"]));
|
|
3459
3459
|
}
|
|
3460
|
-
}),
|
|
3460
|
+
}), br = R(yr), wr = /* @__PURE__ */ z({
|
|
3461
3461
|
__name: "JaAutoComplete",
|
|
3462
3462
|
emits: ["change"],
|
|
3463
3463
|
setup(e, { expose: l, emit: a }) {
|
|
3464
|
-
const t = h(), o = M("aceFormModel"),
|
|
3464
|
+
const t = h(), o = M("aceFormModel"), i = M("aceFormItemProp"), d = M("aceFormValidator"), n = a;
|
|
3465
3465
|
function c(r) {
|
|
3466
|
-
d.removeFieldError(
|
|
3466
|
+
d.removeFieldError(i), re(o.formData, i, p.value), n("change", r);
|
|
3467
3467
|
}
|
|
3468
|
-
const p = h(
|
|
3468
|
+
const p = h(x(o.formData, i));
|
|
3469
3469
|
return T(() => o.formData, () => {
|
|
3470
|
-
p.value =
|
|
3470
|
+
p.value = x(o.formData, i);
|
|
3471
3471
|
}, {
|
|
3472
3472
|
deep: !0
|
|
3473
3473
|
}), l({
|
|
3474
3474
|
elAutocomplete: t
|
|
3475
|
-
}), (r,
|
|
3475
|
+
}), (r, u) => (y(), $(s(Ga), K({
|
|
3476
3476
|
ref_key: "input",
|
|
3477
3477
|
ref: t,
|
|
3478
3478
|
modelValue: p.value,
|
|
3479
|
-
"onUpdate:modelValue":
|
|
3479
|
+
"onUpdate:modelValue": u[0] || (u[0] = (m) => p.value = m),
|
|
3480
3480
|
onChange: c
|
|
3481
3481
|
}, r.$attrs), fe({ _: 2 }, [
|
|
3482
3482
|
W(r.$slots, (m, f) => ({
|
|
@@ -3487,28 +3487,28 @@ const Be = /* @__PURE__ */ new Map(), kt = {
|
|
|
3487
3487
|
}))
|
|
3488
3488
|
]), 1040, ["modelValue"]));
|
|
3489
3489
|
}
|
|
3490
|
-
}),
|
|
3490
|
+
}), _r = R(wr), kr = /* @__PURE__ */ z({
|
|
3491
3491
|
__name: "JaRadioGroup",
|
|
3492
3492
|
emits: ["change"],
|
|
3493
3493
|
setup(e, { expose: l, emit: a }) {
|
|
3494
|
-
const t = h({}), o = M("aceFormModel"),
|
|
3494
|
+
const t = h({}), o = M("aceFormModel"), i = M("aceFormItemProp"), d = M("aceFormValidator"), n = a;
|
|
3495
3495
|
function c(r) {
|
|
3496
|
-
d.removeFieldError(
|
|
3496
|
+
d.removeFieldError(i), re(o.formData, i, p.value), n("change", r);
|
|
3497
3497
|
}
|
|
3498
|
-
const p = h(
|
|
3498
|
+
const p = h(x(o.formData, i));
|
|
3499
3499
|
return T(() => o.formData, () => {
|
|
3500
|
-
p.value =
|
|
3500
|
+
p.value = x(o.formData, i);
|
|
3501
3501
|
}, {
|
|
3502
3502
|
deep: !0
|
|
3503
3503
|
}), l({
|
|
3504
3504
|
focus: () => t.value.focus(),
|
|
3505
3505
|
blur: () => t.value.blur(),
|
|
3506
3506
|
elRadioGroup: t
|
|
3507
|
-
}), (r,
|
|
3507
|
+
}), (r, u) => (y(), $(s(Ha), K({
|
|
3508
3508
|
ref_key: "input",
|
|
3509
3509
|
ref: t,
|
|
3510
3510
|
modelValue: p.value,
|
|
3511
|
-
"onUpdate:modelValue":
|
|
3511
|
+
"onUpdate:modelValue": u[0] || (u[0] = (m) => p.value = m),
|
|
3512
3512
|
onChange: c
|
|
3513
3513
|
}, r.$attrs), fe({ _: 2 }, [
|
|
3514
3514
|
W(r.$slots, (m, f) => ({
|
|
@@ -3519,7 +3519,7 @@ const Be = /* @__PURE__ */ new Map(), kt = {
|
|
|
3519
3519
|
}))
|
|
3520
3520
|
]), 1040, ["modelValue"]));
|
|
3521
3521
|
}
|
|
3522
|
-
}),
|
|
3522
|
+
}), Vr = R(kr), Ir = /* @__PURE__ */ z({
|
|
3523
3523
|
__name: "baseRolePicker",
|
|
3524
3524
|
props: /* @__PURE__ */ Q({
|
|
3525
3525
|
appName: {}
|
|
@@ -3529,16 +3529,16 @@ const Be = /* @__PURE__ */ new Map(), kt = {
|
|
|
3529
3529
|
}),
|
|
3530
3530
|
emits: /* @__PURE__ */ Q(["change"], ["update:modelValue"]),
|
|
3531
3531
|
setup(e, { expose: l, emit: a }) {
|
|
3532
|
-
const t = ne(), o = Kt(t),
|
|
3533
|
-
d.appName && (n.value = await
|
|
3534
|
-
}, r = ue(e, "modelValue"),
|
|
3532
|
+
const t = ne(), o = Kt(t), i = yt(t), d = e, n = h(), c = h([]), p = async () => {
|
|
3533
|
+
d.appName && (n.value = await i.getByName(d.appName), c.value = await o.getAllRole(n.value.id), console.log(c.value), r.value ? m.value = b(r.value, c.value) : m.value = void 0);
|
|
3534
|
+
}, r = ue(e, "modelValue"), u = a, m = h();
|
|
3535
3535
|
T(() => d.appName, p), p();
|
|
3536
3536
|
const f = {
|
|
3537
3537
|
label: (v) => v.caption ? v.caption : v.name,
|
|
3538
3538
|
isLeaf: (v) => !v.hasChildren
|
|
3539
3539
|
}, _ = h();
|
|
3540
3540
|
function I(v) {
|
|
3541
|
-
m.value = b(v, c.value),
|
|
3541
|
+
m.value = b(v, c.value), u("change", v);
|
|
3542
3542
|
}
|
|
3543
3543
|
function b(v, S) {
|
|
3544
3544
|
for (let P = 0; P < S.length; P++) {
|
|
@@ -3546,8 +3546,8 @@ const Be = /* @__PURE__ */ new Map(), kt = {
|
|
|
3546
3546
|
return S[P];
|
|
3547
3547
|
const k = S[P].children;
|
|
3548
3548
|
if (k) {
|
|
3549
|
-
const
|
|
3550
|
-
if (
|
|
3549
|
+
const C = b(v, k);
|
|
3550
|
+
if (C) return C;
|
|
3551
3551
|
}
|
|
3552
3552
|
}
|
|
3553
3553
|
}
|
|
@@ -3555,7 +3555,7 @@ const Be = /* @__PURE__ */ new Map(), kt = {
|
|
|
3555
3555
|
loadData: p,
|
|
3556
3556
|
currentRole: m,
|
|
3557
3557
|
elTreeSelect: _
|
|
3558
|
-
}), (v, S) => (y(),
|
|
3558
|
+
}), (v, S) => (y(), $(s(gt), K({
|
|
3559
3559
|
ref_key: "select",
|
|
3560
3560
|
ref: _,
|
|
3561
3561
|
data: c.value,
|
|
@@ -3594,7 +3594,7 @@ async function Vt() {
|
|
|
3594
3594
|
}
|
|
3595
3595
|
};
|
|
3596
3596
|
}
|
|
3597
|
-
const
|
|
3597
|
+
const Cr = /* @__PURE__ */ z({
|
|
3598
3598
|
__name: "RoleEditor",
|
|
3599
3599
|
props: /* @__PURE__ */ Q({
|
|
3600
3600
|
appName: {}
|
|
@@ -3604,7 +3604,7 @@ const Ir = /* @__PURE__ */ z({
|
|
|
3604
3604
|
}),
|
|
3605
3605
|
emits: /* @__PURE__ */ Q(["success"], ["update:modelValue"]),
|
|
3606
3606
|
setup(e, { emit: l }) {
|
|
3607
|
-
const a = ue(e, "modelValue"), t = e, o = l,
|
|
3607
|
+
const a = ue(e, "modelValue"), t = e, o = l, i = {
|
|
3608
3608
|
hasChildren: !1,
|
|
3609
3609
|
parentId: "0",
|
|
3610
3610
|
releaseSource: "",
|
|
@@ -3618,10 +3618,10 @@ const Ir = /* @__PURE__ */ z({
|
|
|
3618
3618
|
id: "0",
|
|
3619
3619
|
name: ""
|
|
3620
3620
|
}, d = h({
|
|
3621
|
-
formData: { ...
|
|
3622
|
-
}), n = ne(), c =
|
|
3621
|
+
formData: { ...i }
|
|
3622
|
+
}), n = ne(), c = fl(Object.keys(i), n), p = _e(n), r = Kt(n), u = h(), m = h(), f = h();
|
|
3623
3623
|
async function _() {
|
|
3624
|
-
if (d.value.formData = { ...
|
|
3624
|
+
if (d.value.formData = { ...i }, !t.appName)
|
|
3625
3625
|
throw new Error("rolePicker组件的appName属性不能为空");
|
|
3626
3626
|
f.value = await (await Vt()).getByName(t.appName);
|
|
3627
3627
|
}
|
|
@@ -3629,7 +3629,7 @@ const Ir = /* @__PURE__ */ z({
|
|
|
3629
3629
|
var S, P;
|
|
3630
3630
|
if (!t.appName) return;
|
|
3631
3631
|
const b = d.value.formData, v = (S = m.value) == null ? void 0 : S.currentRole;
|
|
3632
|
-
(P =
|
|
3632
|
+
(P = u.value) == null || P.validate(() => r.create({
|
|
3633
3633
|
addTo: v ? {
|
|
3634
3634
|
id: v.id,
|
|
3635
3635
|
name: v.name,
|
|
@@ -3649,7 +3649,7 @@ const Ir = /* @__PURE__ */ z({
|
|
|
3649
3649
|
}
|
|
3650
3650
|
return (b, v) => {
|
|
3651
3651
|
const S = he("ja-input-i18n-raw"), P = he("ja-form");
|
|
3652
|
-
return y(),
|
|
3652
|
+
return y(), $(s(jt), {
|
|
3653
3653
|
"destroy-on-close": "",
|
|
3654
3654
|
"append-to-body": "",
|
|
3655
3655
|
title: "新建角色",
|
|
@@ -3685,12 +3685,12 @@ const Ir = /* @__PURE__ */ z({
|
|
|
3685
3685
|
default: g(() => [
|
|
3686
3686
|
w(P, {
|
|
3687
3687
|
ref_key: "formRef",
|
|
3688
|
-
ref:
|
|
3688
|
+
ref: u,
|
|
3689
3689
|
model: d.value,
|
|
3690
3690
|
validator: s(c)
|
|
3691
3691
|
}, {
|
|
3692
3692
|
default: g(() => [
|
|
3693
|
-
w(s(
|
|
3693
|
+
w(s(Le), {
|
|
3694
3694
|
label: "角色名称",
|
|
3695
3695
|
prop: "name",
|
|
3696
3696
|
required: ""
|
|
@@ -3702,7 +3702,7 @@ const Ir = /* @__PURE__ */ z({
|
|
|
3702
3702
|
]),
|
|
3703
3703
|
_: 1
|
|
3704
3704
|
}),
|
|
3705
|
-
w(s(
|
|
3705
|
+
w(s(Le), {
|
|
3706
3706
|
label: "上级角色",
|
|
3707
3707
|
prop: "none"
|
|
3708
3708
|
}, {
|
|
@@ -3716,7 +3716,7 @@ const Ir = /* @__PURE__ */ z({
|
|
|
3716
3716
|
]),
|
|
3717
3717
|
_: 1
|
|
3718
3718
|
}),
|
|
3719
|
-
w(s(
|
|
3719
|
+
w(s(Le), {
|
|
3720
3720
|
label: "角色标题",
|
|
3721
3721
|
prop: "caption",
|
|
3722
3722
|
required: ""
|
|
@@ -3728,13 +3728,13 @@ const Ir = /* @__PURE__ */ z({
|
|
|
3728
3728
|
"app-id": (k = f.value) == null ? void 0 : k.id,
|
|
3729
3729
|
size: "small",
|
|
3730
3730
|
modelValue: d.value.formData.caption,
|
|
3731
|
-
"onUpdate:modelValue": v[0] || (v[0] = (
|
|
3731
|
+
"onUpdate:modelValue": v[0] || (v[0] = (C) => d.value.formData.caption = C)
|
|
3732
3732
|
}, null, 8, ["app-id", "modelValue"])
|
|
3733
3733
|
];
|
|
3734
3734
|
}),
|
|
3735
3735
|
_: 1
|
|
3736
3736
|
}),
|
|
3737
|
-
w(s(
|
|
3737
|
+
w(s(Le), {
|
|
3738
3738
|
label: "角色说明",
|
|
3739
3739
|
prop: "description"
|
|
3740
3740
|
}, {
|
|
@@ -3751,7 +3751,7 @@ const Ir = /* @__PURE__ */ z({
|
|
|
3751
3751
|
}, 8, ["modelValue"]);
|
|
3752
3752
|
};
|
|
3753
3753
|
}
|
|
3754
|
-
}), $r = { class: "ja-role-picker" },
|
|
3754
|
+
}), $r = { class: "ja-role-picker" }, Ar = /* @__PURE__ */ z({
|
|
3755
3755
|
__name: "RolePickerRaw",
|
|
3756
3756
|
props: /* @__PURE__ */ Q({
|
|
3757
3757
|
appName: {}
|
|
@@ -3768,11 +3768,11 @@ const Ir = /* @__PURE__ */ z({
|
|
|
3768
3768
|
var c;
|
|
3769
3769
|
a.value = n.name, (c = o.value) == null || c.loadData();
|
|
3770
3770
|
}
|
|
3771
|
-
const o = h(),
|
|
3771
|
+
const o = h(), i = h(!1);
|
|
3772
3772
|
function d() {
|
|
3773
|
-
|
|
3773
|
+
i.value = !0;
|
|
3774
3774
|
}
|
|
3775
|
-
return (n, c) => (y(),
|
|
3775
|
+
return (n, c) => (y(), N("div", $r, [
|
|
3776
3776
|
w(s(It), K({
|
|
3777
3777
|
ref_key: "picker",
|
|
3778
3778
|
ref: o,
|
|
@@ -3797,9 +3797,9 @@ const Ir = /* @__PURE__ */ z({
|
|
|
3797
3797
|
_: 1,
|
|
3798
3798
|
__: [2]
|
|
3799
3799
|
}, 8, ["icon"]),
|
|
3800
|
-
w(
|
|
3801
|
-
modelValue:
|
|
3802
|
-
"onUpdate:modelValue": c[0] || (c[0] = (p) =>
|
|
3800
|
+
w(Cr, {
|
|
3801
|
+
modelValue: i.value,
|
|
3802
|
+
"onUpdate:modelValue": c[0] || (c[0] = (p) => i.value = p),
|
|
3803
3803
|
"app-name": l.appName,
|
|
3804
3804
|
onSuccess: t
|
|
3805
3805
|
}, null, 8, ["modelValue", "app-name"])
|
|
@@ -3815,28 +3815,28 @@ const Ir = /* @__PURE__ */ z({
|
|
|
3815
3815
|
]), 1040, ["app-name", "modelValue"])
|
|
3816
3816
|
]));
|
|
3817
3817
|
}
|
|
3818
|
-
}), Da = /* @__PURE__ */ pe(
|
|
3818
|
+
}), Da = /* @__PURE__ */ pe(Ar, [["__scopeId", "data-v-36b2392a"]]), Dr = /* @__PURE__ */ z({
|
|
3819
3819
|
__name: "RolePicker",
|
|
3820
3820
|
props: {
|
|
3821
3821
|
appName: {}
|
|
3822
3822
|
},
|
|
3823
3823
|
emits: ["change"],
|
|
3824
3824
|
setup(e, { emit: l }) {
|
|
3825
|
-
const a = e, t = h(), o = M("aceFormModel"),
|
|
3825
|
+
const a = e, t = h(), o = M("aceFormModel"), i = M("aceFormItemProp"), d = M("aceFormValidator"), n = l;
|
|
3826
3826
|
function c(r) {
|
|
3827
|
-
d.removeFieldError(
|
|
3827
|
+
d.removeFieldError(i), re(o.formData, i, p.value), n("change", r);
|
|
3828
3828
|
}
|
|
3829
|
-
const p = h(
|
|
3829
|
+
const p = h(x(o.formData, i));
|
|
3830
3830
|
return T(() => o.formData, () => {
|
|
3831
|
-
p.value =
|
|
3831
|
+
p.value = x(o.formData, i);
|
|
3832
3832
|
}, {
|
|
3833
3833
|
deep: !0
|
|
3834
|
-
}), (r,
|
|
3834
|
+
}), (r, u) => (y(), $(Da, K({
|
|
3835
3835
|
ref_key: "picker",
|
|
3836
3836
|
ref: t,
|
|
3837
3837
|
"app-name": a.appName,
|
|
3838
3838
|
modelValue: p.value,
|
|
3839
|
-
"onUpdate:modelValue":
|
|
3839
|
+
"onUpdate:modelValue": u[0] || (u[0] = (m) => p.value = m),
|
|
3840
3840
|
onChange: c
|
|
3841
3841
|
}, r.$attrs), fe({ _: 2 }, [
|
|
3842
3842
|
W(r.$slots, (m, f) => ({
|
|
@@ -3847,7 +3847,7 @@ const Ir = /* @__PURE__ */ z({
|
|
|
3847
3847
|
}))
|
|
3848
3848
|
]), 1040, ["app-name", "modelValue"]));
|
|
3849
3849
|
}
|
|
3850
|
-
}), It = R(
|
|
3850
|
+
}), It = R(Ir), Er = R(Dr), Sr = R(Da), Ea = /* @__PURE__ */ z({
|
|
3851
3851
|
__name: "ChannelPicker",
|
|
3852
3852
|
props: /* @__PURE__ */ Q({
|
|
3853
3853
|
appName: {}
|
|
@@ -3859,57 +3859,57 @@ const Ir = /* @__PURE__ */ z({
|
|
|
3859
3859
|
}),
|
|
3860
3860
|
emits: ["update:modelValue"],
|
|
3861
3861
|
setup(e) {
|
|
3862
|
-
const l = ne(), a = Ka(l), t = e, o = h(),
|
|
3862
|
+
const l = ne(), a = Ka(l), t = e, o = h(), i = h(), d = ue(e, "modelValue");
|
|
3863
3863
|
je(() => {
|
|
3864
3864
|
n();
|
|
3865
3865
|
});
|
|
3866
3866
|
async function n() {
|
|
3867
|
-
console.log("load channels of app " + t.appName), t.appName && (o.value = await a.getAll(t.appName),
|
|
3867
|
+
console.log("load channels of app " + t.appName), t.appName && (o.value = await a.getAll(t.appName), i.value = o.value);
|
|
3868
3868
|
}
|
|
3869
3869
|
function c(p) {
|
|
3870
3870
|
var r;
|
|
3871
|
-
|
|
3871
|
+
i.value = ((r = o.value) == null ? void 0 : r.filter((u) => u.name.indexOf(p) > -1)) ?? [];
|
|
3872
3872
|
}
|
|
3873
|
-
return T(() => t.appName, n), (p, r) => (y(),
|
|
3873
|
+
return T(() => t.appName, n), (p, r) => (y(), $(s(Ae), K({
|
|
3874
3874
|
filterable: "",
|
|
3875
3875
|
"filter-method": c,
|
|
3876
3876
|
"value-key": "id",
|
|
3877
3877
|
modelValue: d.value,
|
|
3878
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
|
3878
|
+
"onUpdate:modelValue": r[0] || (r[0] = (u) => d.value = u)
|
|
3879
3879
|
}, p.$attrs), {
|
|
3880
3880
|
default: g(() => [
|
|
3881
|
-
(y(!0),
|
|
3882
|
-
key:
|
|
3883
|
-
label:
|
|
3884
|
-
value:
|
|
3881
|
+
(y(!0), N(oe, null, W(i.value, (u) => (y(), $(s(Xe), {
|
|
3882
|
+
key: u.id,
|
|
3883
|
+
label: u.name,
|
|
3884
|
+
value: u
|
|
3885
3885
|
}, null, 8, ["label", "value"]))), 128))
|
|
3886
3886
|
]),
|
|
3887
3887
|
_: 1
|
|
3888
3888
|
}, 16, ["modelValue"]));
|
|
3889
3889
|
}
|
|
3890
|
-
}),
|
|
3890
|
+
}), Tr = /* @__PURE__ */ z({
|
|
3891
3891
|
__name: "JaChannelPicker",
|
|
3892
3892
|
emits: ["change"],
|
|
3893
3893
|
setup(e, { emit: l }) {
|
|
3894
|
-
const a = M("aceFormModel"), t = M("aceFormItemProp"), o = M("aceFormValidator"),
|
|
3894
|
+
const a = M("aceFormModel"), t = M("aceFormItemProp"), o = M("aceFormValidator"), i = l;
|
|
3895
3895
|
function d(c) {
|
|
3896
|
-
o.removeFieldError(t), re(a.formData, t, n.value),
|
|
3896
|
+
o.removeFieldError(t), re(a.formData, t, n.value), i("change", c);
|
|
3897
3897
|
}
|
|
3898
|
-
const n = h(
|
|
3898
|
+
const n = h(x(a.formData, t));
|
|
3899
3899
|
return T(() => a.formData, () => {
|
|
3900
|
-
n.value =
|
|
3900
|
+
n.value = x(a.formData, t);
|
|
3901
3901
|
}, {
|
|
3902
3902
|
deep: !0
|
|
3903
|
-
}), (c, p) => (y(),
|
|
3903
|
+
}), (c, p) => (y(), $(Ea, K({
|
|
3904
3904
|
modelValue: n.value,
|
|
3905
3905
|
"onUpdate:modelValue": p[0] || (p[0] = (r) => n.value = r),
|
|
3906
3906
|
onChange: d
|
|
3907
3907
|
}, c.$attrs), null, 16, ["modelValue"]));
|
|
3908
3908
|
}
|
|
3909
|
-
}),
|
|
3909
|
+
}), Fr = R(Tr), Mr = R(Ea), Pr = { class: "ja-property-picker__dropdown" }, Ur = { key: 0 }, zr = ["onMouseenter", "onClick"], Br = {
|
|
3910
3910
|
key: 0,
|
|
3911
3911
|
class: "entity-type"
|
|
3912
|
-
},
|
|
3912
|
+
}, Rr = { key: 1 }, Lr = /* @__PURE__ */ z({
|
|
3913
3913
|
__name: "PropertyPicker",
|
|
3914
3914
|
props: /* @__PURE__ */ Q({
|
|
3915
3915
|
entityId: {}
|
|
@@ -3923,7 +3923,7 @@ const Ir = /* @__PURE__ */ z({
|
|
|
3923
3923
|
setup(e) {
|
|
3924
3924
|
const l = e;
|
|
3925
3925
|
let a;
|
|
3926
|
-
const t = ue(e, "modelValue"), o = h([]),
|
|
3926
|
+
const t = ue(e, "modelValue"), o = h([]), i = ne(), d = Ya(i), n = h(), c = {}, p = h(0), r = _e(i), u = h(!1), m = h(!1), f = h(), _ = h(), I = h("");
|
|
3927
3927
|
let b = h(!1);
|
|
3928
3928
|
async function v() {
|
|
3929
3929
|
if (a || (a = l.entityId), a) {
|
|
@@ -3954,14 +3954,14 @@ const Ir = /* @__PURE__ */ z({
|
|
|
3954
3954
|
function k(E) {
|
|
3955
3955
|
p.value = E;
|
|
3956
3956
|
}
|
|
3957
|
-
function
|
|
3957
|
+
function C(E) {
|
|
3958
3958
|
return p.value === E ? "active" : "";
|
|
3959
3959
|
}
|
|
3960
3960
|
function F(E) {
|
|
3961
3961
|
var V, D;
|
|
3962
3962
|
(V = o.value) == null || V.push(E.name), I.value = "", (D = f.value) == null || D.focus();
|
|
3963
3963
|
}
|
|
3964
|
-
function
|
|
3964
|
+
function q(E) {
|
|
3965
3965
|
var V;
|
|
3966
3966
|
(V = o.value) == null || V.pop();
|
|
3967
3967
|
}
|
|
@@ -3994,7 +3994,7 @@ const Ir = /* @__PURE__ */ z({
|
|
|
3994
3994
|
(V = f.value) == null || V.focus();
|
|
3995
3995
|
}), b.value = E;
|
|
3996
3996
|
}
|
|
3997
|
-
const
|
|
3997
|
+
const L = ve(() => {
|
|
3998
3998
|
var E;
|
|
3999
3999
|
return o.value && o.value.length > 0 ? (E = o.value) == null ? void 0 : E.join(".") : "请选择属性";
|
|
4000
4000
|
}), X = () => {
|
|
@@ -4002,8 +4002,8 @@ const Ir = /* @__PURE__ */ z({
|
|
|
4002
4002
|
var D, B, ie;
|
|
4003
4003
|
const E = (D = _.value) == null ? void 0 : D.$refs.wrapRef, V = E == null ? void 0 : E.querySelectorAll("li")[p.value];
|
|
4004
4004
|
if (V && E) {
|
|
4005
|
-
const J = V.offsetTop, U = V.offsetTop + V.offsetHeight, le = E.scrollTop,
|
|
4006
|
-
U >
|
|
4005
|
+
const J = V.offsetTop, U = V.offsetTop + V.offsetHeight, le = E.scrollTop, Ct = E.scrollTop + E.clientHeight;
|
|
4006
|
+
U > Ct ? (B = _.value) == null || B.scrollTo(
|
|
4007
4007
|
0,
|
|
4008
4008
|
U - E.clientHeight + V.offsetHeight - 38
|
|
4009
4009
|
) : J < le && ((ie = _.value) == null || ie.scrollTo(0, J));
|
|
@@ -4028,17 +4028,17 @@ const Ir = /* @__PURE__ */ z({
|
|
|
4028
4028
|
ee();
|
|
4029
4029
|
}), t.value && t.value.length > 0 ? ee() : v(), T(n, () => {
|
|
4030
4030
|
p.value = 0, X();
|
|
4031
|
-
}), (E, V) => (y(),
|
|
4031
|
+
}), (E, V) => (y(), $(s(Lt), { onVisibleChange: O }, {
|
|
4032
4032
|
dropdown: g(() => [
|
|
4033
|
-
j("div",
|
|
4033
|
+
j("div", Pr, [
|
|
4034
4034
|
j("div", {
|
|
4035
|
-
class: Ge(["el-input-tag el-input-tag--small el-input-tag__wrapper", { "is-hovering":
|
|
4036
|
-
onMouseenter: V[3] || (V[3] = (D) =>
|
|
4037
|
-
onMouseleave: V[4] || (V[4] = (D) =>
|
|
4035
|
+
class: Ge(["el-input-tag el-input-tag--small el-input-tag__wrapper", { "is-hovering": u.value, "is-focused": m.value }]),
|
|
4036
|
+
onMouseenter: V[3] || (V[3] = (D) => u.value = !0),
|
|
4037
|
+
onMouseleave: V[4] || (V[4] = (D) => u.value = !1)
|
|
4038
4038
|
}, [
|
|
4039
|
-
(y(!0),
|
|
4039
|
+
(y(!0), N(oe, null, W(o.value, (D) => (y(), $(s(At), {
|
|
4040
4040
|
id: D,
|
|
4041
|
-
onClose: (B) =>
|
|
4041
|
+
onClose: (B) => q(),
|
|
4042
4042
|
closable: ""
|
|
4043
4043
|
}, {
|
|
4044
4044
|
default: g(() => [
|
|
@@ -4067,7 +4067,7 @@ const Ir = /* @__PURE__ */ z({
|
|
|
4067
4067
|
[Ba, I.value]
|
|
4068
4068
|
])
|
|
4069
4069
|
], 34),
|
|
4070
|
-
Y((y(),
|
|
4070
|
+
Y((y(), $(s(Ce), {
|
|
4071
4071
|
height: "300px",
|
|
4072
4072
|
always: "",
|
|
4073
4073
|
ref_key: "scrollbar",
|
|
@@ -4076,16 +4076,16 @@ const Ir = /* @__PURE__ */ z({
|
|
|
4076
4076
|
default: g(() => {
|
|
4077
4077
|
var D;
|
|
4078
4078
|
return [
|
|
4079
|
-
((D = n.value) == null ? void 0 : D.length) ?? !1 ? (y(),
|
|
4080
|
-
(y(!0),
|
|
4079
|
+
((D = n.value) == null ? void 0 : D.length) ?? !1 ? (y(), N("ul", Ur, [
|
|
4080
|
+
(y(!0), N(oe, null, W(n.value, (B, ie) => (y(), N("li", {
|
|
4081
4081
|
key: B.id,
|
|
4082
4082
|
onMouseenter: (J) => k(ie),
|
|
4083
4083
|
onClick: (J) => F(B),
|
|
4084
|
-
class: Ge(
|
|
4084
|
+
class: Ge(C(ie))
|
|
4085
4085
|
}, [
|
|
4086
|
-
B.dataType === "ENTITY" ? (y(),
|
|
4087
|
-
], 42,
|
|
4088
|
-
])) : (y(),
|
|
4086
|
+
B.dataType === "ENTITY" ? (y(), N("span", Br, ae(P(B)), 1)) : (y(), N("span", Rr, ae(P(B)), 1))
|
|
4087
|
+
], 42, zr))), 128))
|
|
4088
|
+
])) : (y(), $(s(Ot), {
|
|
4089
4089
|
key: 1,
|
|
4090
4090
|
description: "无可选属性"
|
|
4091
4091
|
}))
|
|
@@ -4100,13 +4100,13 @@ const Ir = /* @__PURE__ */ z({
|
|
|
4100
4100
|
default: g(() => [
|
|
4101
4101
|
w(s(At), { type: "primary" }, {
|
|
4102
4102
|
default: g(() => [
|
|
4103
|
-
G(ae(
|
|
4104
|
-
s(b) ? (y(),
|
|
4103
|
+
G(ae(L.value) + " ", 1),
|
|
4104
|
+
s(b) ? (y(), $(s(ce), { key: 0 }, {
|
|
4105
4105
|
default: g(() => [
|
|
4106
|
-
w(s(
|
|
4106
|
+
w(s(sl))
|
|
4107
4107
|
]),
|
|
4108
4108
|
_: 1
|
|
4109
|
-
})) : (y(),
|
|
4109
|
+
})) : (y(), $(s(ce), { key: 1 }, {
|
|
4110
4110
|
default: g(() => [
|
|
4111
4111
|
w(s(Xt))
|
|
4112
4112
|
]),
|
|
@@ -4119,26 +4119,26 @@ const Ir = /* @__PURE__ */ z({
|
|
|
4119
4119
|
_: 1
|
|
4120
4120
|
}));
|
|
4121
4121
|
}
|
|
4122
|
-
}), Sa = /* @__PURE__ */ pe(
|
|
4122
|
+
}), Sa = /* @__PURE__ */ pe(Lr, [["__scopeId", "data-v-24d9cf5a"]]), Nr = /* @__PURE__ */ z({
|
|
4123
4123
|
__name: "JaPropertyPicker",
|
|
4124
4124
|
emits: ["change"],
|
|
4125
4125
|
setup(e, { emit: l }) {
|
|
4126
|
-
const a = M("aceFormModel"), t = M("aceFormItemProp"), o = M("aceFormValidator"),
|
|
4126
|
+
const a = M("aceFormModel"), t = M("aceFormItemProp"), o = M("aceFormValidator"), i = l;
|
|
4127
4127
|
function d(c) {
|
|
4128
|
-
o.removeFieldError(t), re(a.formData, t, n.value),
|
|
4128
|
+
o.removeFieldError(t), re(a.formData, t, n.value), i("change", c);
|
|
4129
4129
|
}
|
|
4130
|
-
const n = h(
|
|
4130
|
+
const n = h(x(a.formData, t) ?? "");
|
|
4131
4131
|
return T(() => a.formData, () => {
|
|
4132
|
-
n.value =
|
|
4132
|
+
n.value = x(a.formData, t) ?? "";
|
|
4133
4133
|
}, {
|
|
4134
4134
|
deep: !0
|
|
4135
|
-
}), (c, p) => (y(),
|
|
4135
|
+
}), (c, p) => (y(), $(Sa, K({
|
|
4136
4136
|
modelValue: n.value,
|
|
4137
4137
|
"onUpdate:modelValue": p[0] || (p[0] = (r) => n.value = r),
|
|
4138
4138
|
onChange: d
|
|
4139
4139
|
}, c.$attrs), null, 16, ["modelValue"]));
|
|
4140
4140
|
}
|
|
4141
|
-
}),
|
|
4141
|
+
}), Jr = R(Nr), Or = R(Sa), jr = /* @__PURE__ */ z({
|
|
4142
4142
|
__name: "I18nBundleEditor",
|
|
4143
4143
|
props: /* @__PURE__ */ Q({
|
|
4144
4144
|
appId: {},
|
|
@@ -4150,28 +4150,28 @@ const Ir = /* @__PURE__ */ z({
|
|
|
4150
4150
|
emits: /* @__PURE__ */ Q(["success"], ["update:modelValue"]),
|
|
4151
4151
|
async setup(e, { emit: l }) {
|
|
4152
4152
|
let a, t;
|
|
4153
|
-
const o = ue(e, "modelValue"),
|
|
4153
|
+
const o = ue(e, "modelValue"), i = e, d = ne(), n = Yt(d), c = h(), p = h(""), r = h({}), u = l, m = ([a, t] = mt(() => Vt()), a = await a, t(), a);
|
|
4154
4154
|
function f() {
|
|
4155
|
-
I(), p.value =
|
|
4155
|
+
I(), p.value = i.preKey ?? "", r.value = {};
|
|
4156
4156
|
}
|
|
4157
4157
|
async function _() {
|
|
4158
4158
|
const b = {
|
|
4159
4159
|
key: p.value,
|
|
4160
4160
|
messages: r.value,
|
|
4161
4161
|
appInstance: {
|
|
4162
|
-
id:
|
|
4162
|
+
id: i.appId
|
|
4163
4163
|
}
|
|
4164
4164
|
};
|
|
4165
|
-
await n.createBundle(b), o.value = !1,
|
|
4165
|
+
await n.createBundle(b), o.value = !1, u("success", p.value);
|
|
4166
4166
|
}
|
|
4167
4167
|
async function I() {
|
|
4168
|
-
c.value = await m.getById(
|
|
4168
|
+
c.value = await m.getById(i.appId);
|
|
4169
4169
|
}
|
|
4170
|
-
return T(() =>
|
|
4170
|
+
return T(() => i.appId, async () => {
|
|
4171
4171
|
await I();
|
|
4172
4172
|
}), (b, v) => {
|
|
4173
4173
|
const S = Rt("focus");
|
|
4174
|
-
return y(),
|
|
4174
|
+
return y(), $(s(jt), {
|
|
4175
4175
|
"destroy-on-close": "",
|
|
4176
4176
|
"append-to-body": "",
|
|
4177
4177
|
modelValue: o.value,
|
|
@@ -4226,7 +4226,7 @@ const Ir = /* @__PURE__ */ z({
|
|
|
4226
4226
|
]),
|
|
4227
4227
|
_: 1
|
|
4228
4228
|
}),
|
|
4229
|
-
(y(!0),
|
|
4229
|
+
(y(!0), N(oe, null, W((P = c.value) == null ? void 0 : P.supportedLocales, (k) => (y(), $(s(He), {
|
|
4230
4230
|
key: k,
|
|
4231
4231
|
label: k
|
|
4232
4232
|
}, {
|
|
@@ -4235,7 +4235,7 @@ const Ir = /* @__PURE__ */ z({
|
|
|
4235
4235
|
type: "textarea",
|
|
4236
4236
|
rows: 4,
|
|
4237
4237
|
modelValue: r.value[k],
|
|
4238
|
-
"onUpdate:modelValue": (
|
|
4238
|
+
"onUpdate:modelValue": (C) => r.value[k] = C
|
|
4239
4239
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
4240
4240
|
]),
|
|
4241
4241
|
_: 2
|
|
@@ -4249,7 +4249,7 @@ const Ir = /* @__PURE__ */ z({
|
|
|
4249
4249
|
}, 8, ["modelValue"]);
|
|
4250
4250
|
};
|
|
4251
4251
|
}
|
|
4252
|
-
}),
|
|
4252
|
+
}), xr = /* @__PURE__ */ z({
|
|
4253
4253
|
__name: "InputI18n",
|
|
4254
4254
|
props: /* @__PURE__ */ Q({
|
|
4255
4255
|
appId: {},
|
|
@@ -4265,37 +4265,37 @@ const Ir = /* @__PURE__ */ z({
|
|
|
4265
4265
|
emits: /* @__PURE__ */ Q(["change", "focus", "blur"], ["update:modelValue"]),
|
|
4266
4266
|
async setup(e, { expose: l, emit: a }) {
|
|
4267
4267
|
let t, o;
|
|
4268
|
-
const
|
|
4269
|
-
let
|
|
4268
|
+
const i = e, d = ue(e, "modelValue"), n = Qa(), c = Yt(n), p = Ze().locale, r = h(), u = h(!1), m = h(!1), f = h(), _ = h(""), I = ([t, o] = mt(() => Vt()), t = await t, o(), t), b = h(""), v = h(""), S = h(), P = a, k = wt(F, 500);
|
|
4269
|
+
let C;
|
|
4270
4270
|
async function F(A) {
|
|
4271
|
-
if (A || (A = d.value), !
|
|
4272
|
-
const O = await I.getById(
|
|
4271
|
+
if (A || (A = d.value), !i.appId) return;
|
|
4272
|
+
const O = await I.getById(i.appId);
|
|
4273
4273
|
if (_.value = O.name, !A || !_.value) {
|
|
4274
4274
|
v.value = "";
|
|
4275
4275
|
return;
|
|
4276
4276
|
}
|
|
4277
4277
|
v.value = A;
|
|
4278
|
-
let
|
|
4279
|
-
A && A.length > 0 && (
|
|
4280
|
-
const ee = (await c.getByKey(_.value,
|
|
4278
|
+
let L = A;
|
|
4279
|
+
A && A.length > 0 && (L = Wn(L), L.startsWith("{") && L.endsWith("}") && (L = L.substring(1, L.length - 1)));
|
|
4280
|
+
const ee = (await c.getByKey(_.value, L, {
|
|
4281
4281
|
cancelDuplicatedRequest: !1
|
|
4282
4282
|
})).find((E) => E.locale === p);
|
|
4283
4283
|
ee && (v.value = ee.message);
|
|
4284
4284
|
}
|
|
4285
|
-
async function
|
|
4285
|
+
async function q(A) {
|
|
4286
4286
|
b.value = A, r.value = await c.searchKeys(_.value, A);
|
|
4287
4287
|
}
|
|
4288
4288
|
async function H() {
|
|
4289
4289
|
var A;
|
|
4290
|
-
|
|
4290
|
+
u.value = !0, await Ie(), P("focus"), (A = f.value) == null || A.focus();
|
|
4291
4291
|
}
|
|
4292
4292
|
function Z() {
|
|
4293
|
-
|
|
4294
|
-
|
|
4293
|
+
C = setTimeout(() => {
|
|
4294
|
+
u.value = !1;
|
|
4295
4295
|
}, 200), P("blur");
|
|
4296
4296
|
}
|
|
4297
|
-
|
|
4298
|
-
k.cancel(),
|
|
4297
|
+
$e(() => {
|
|
4298
|
+
k.cancel(), C && clearTimeout(C);
|
|
4299
4299
|
}), T(d, () => {
|
|
4300
4300
|
k();
|
|
4301
4301
|
}, {
|
|
@@ -4306,7 +4306,7 @@ const Ir = /* @__PURE__ */ z({
|
|
|
4306
4306
|
P("change", A);
|
|
4307
4307
|
}
|
|
4308
4308
|
async function be(A) {
|
|
4309
|
-
await
|
|
4309
|
+
await q(b.value), d.value = "{" + A + "}", S.value.focus;
|
|
4310
4310
|
}
|
|
4311
4311
|
return l({
|
|
4312
4312
|
focus() {
|
|
@@ -4315,25 +4315,25 @@ const Ir = /* @__PURE__ */ z({
|
|
|
4315
4315
|
blur() {
|
|
4316
4316
|
f == null || f.value.blur();
|
|
4317
4317
|
}
|
|
4318
|
-
}), (A, O) => (y(),
|
|
4318
|
+
}), (A, O) => (y(), N(oe, null, [
|
|
4319
4319
|
Y(w(s(we), {
|
|
4320
4320
|
ref_key: "selectI18n",
|
|
4321
4321
|
ref: S,
|
|
4322
4322
|
onFocus: H,
|
|
4323
4323
|
modelValue: v.value,
|
|
4324
|
-
"onUpdate:modelValue": O[0] || (O[0] = (
|
|
4324
|
+
"onUpdate:modelValue": O[0] || (O[0] = (L) => v.value = L),
|
|
4325
4325
|
size: A.size,
|
|
4326
4326
|
disabled: A.disabled,
|
|
4327
4327
|
type: A.textarea ? "textarea" : void 0
|
|
4328
4328
|
}, null, 8, ["modelValue", "size", "disabled", "type"]), [
|
|
4329
|
-
[ge, !
|
|
4329
|
+
[ge, !u.value]
|
|
4330
4330
|
]),
|
|
4331
4331
|
Y(w(s(Ae), {
|
|
4332
4332
|
ref_key: "select",
|
|
4333
4333
|
ref: f,
|
|
4334
4334
|
filterable: "",
|
|
4335
4335
|
remote: "",
|
|
4336
|
-
"remote-method":
|
|
4336
|
+
"remote-method": q,
|
|
4337
4337
|
disabled: A.disabled,
|
|
4338
4338
|
"default-first-option": "",
|
|
4339
4339
|
"remote-show-suffix": "",
|
|
@@ -4343,14 +4343,14 @@ const Ir = /* @__PURE__ */ z({
|
|
|
4343
4343
|
clearable: "",
|
|
4344
4344
|
onBlur: Z,
|
|
4345
4345
|
modelValue: d.value,
|
|
4346
|
-
"onUpdate:modelValue": O[2] || (O[2] = (
|
|
4346
|
+
"onUpdate:modelValue": O[2] || (O[2] = (L) => d.value = L)
|
|
4347
4347
|
}, {
|
|
4348
4348
|
footer: g(() => [
|
|
4349
4349
|
w(s(se), {
|
|
4350
4350
|
link: "",
|
|
4351
4351
|
style: { width: "100%" },
|
|
4352
4352
|
type: "primary",
|
|
4353
|
-
onClick: O[1] || (O[1] = (
|
|
4353
|
+
onClick: O[1] || (O[1] = (L) => m.value = !0),
|
|
4354
4354
|
shortcut: "Alt+I"
|
|
4355
4355
|
}, {
|
|
4356
4356
|
default: g(() => O[4] || (O[4] = [
|
|
@@ -4361,47 +4361,47 @@ const Ir = /* @__PURE__ */ z({
|
|
|
4361
4361
|
})
|
|
4362
4362
|
]),
|
|
4363
4363
|
default: g(() => [
|
|
4364
|
-
(y(!0),
|
|
4365
|
-
key:
|
|
4366
|
-
value: "{" +
|
|
4367
|
-
label: "{" +
|
|
4364
|
+
(y(!0), N(oe, null, W(r.value, (L) => (y(), $(s(Xe), {
|
|
4365
|
+
key: L,
|
|
4366
|
+
value: "{" + L + "}",
|
|
4367
|
+
label: "{" + L + "}"
|
|
4368
4368
|
}, null, 8, ["value", "label"]))), 128))
|
|
4369
4369
|
]),
|
|
4370
4370
|
_: 1
|
|
4371
4371
|
}, 8, ["disabled", "size", "modelValue"]), [
|
|
4372
|
-
[ge,
|
|
4372
|
+
[ge, u.value]
|
|
4373
4373
|
]),
|
|
4374
|
-
w(
|
|
4374
|
+
w(jr, {
|
|
4375
4375
|
"app-id": A.appId,
|
|
4376
4376
|
"pre-key": b.value,
|
|
4377
4377
|
modelValue: m.value,
|
|
4378
|
-
"onUpdate:modelValue": O[3] || (O[3] = (
|
|
4378
|
+
"onUpdate:modelValue": O[3] || (O[3] = (L) => m.value = L),
|
|
4379
4379
|
onSuccess: be
|
|
4380
4380
|
}, null, 8, ["app-id", "pre-key", "modelValue"])
|
|
4381
4381
|
], 64));
|
|
4382
4382
|
}
|
|
4383
|
-
}), qr = R(
|
|
4383
|
+
}), qr = R(xr), Gr = /* @__PURE__ */ z({
|
|
4384
4384
|
__name: "JaCheckboxGroup",
|
|
4385
4385
|
emits: ["change"],
|
|
4386
4386
|
setup(e, { expose: l, emit: a }) {
|
|
4387
|
-
const t = h({}), o = M("aceFormModel"),
|
|
4387
|
+
const t = h({}), o = M("aceFormModel"), i = M("aceFormItemProp"), d = M("aceFormValidator"), n = a;
|
|
4388
4388
|
function c(r) {
|
|
4389
|
-
d.removeFieldError(
|
|
4389
|
+
d.removeFieldError(i), re(o.formData, i, p.value), n("change", r);
|
|
4390
4390
|
}
|
|
4391
|
-
const p = h(
|
|
4391
|
+
const p = h(x(o.formData, i));
|
|
4392
4392
|
return T(() => o.formData, () => {
|
|
4393
|
-
p.value =
|
|
4393
|
+
p.value = x(o.formData, i);
|
|
4394
4394
|
}, {
|
|
4395
4395
|
deep: !0
|
|
4396
4396
|
}), l({
|
|
4397
4397
|
focus: () => t.value.focus(),
|
|
4398
4398
|
blur: () => t.value.blur(),
|
|
4399
4399
|
elCheckboxGroup: t
|
|
4400
|
-
}), (r,
|
|
4400
|
+
}), (r, u) => (y(), $(s(Wa), K({
|
|
4401
4401
|
ref_key: "input",
|
|
4402
4402
|
ref: t,
|
|
4403
4403
|
modelValue: p.value,
|
|
4404
|
-
"onUpdate:modelValue":
|
|
4404
|
+
"onUpdate:modelValue": u[0] || (u[0] = (m) => p.value = m),
|
|
4405
4405
|
onChange: c
|
|
4406
4406
|
}, r.$attrs), fe({ _: 2 }, [
|
|
4407
4407
|
W(r.$slots, (m, f) => ({
|
|
@@ -4412,132 +4412,7 @@ const Ir = /* @__PURE__ */ z({
|
|
|
4412
4412
|
}))
|
|
4413
4413
|
]), 1040, ["modelValue"]));
|
|
4414
4414
|
}
|
|
4415
|
-
}),
|
|
4416
|
-
let Hr;
|
|
4417
|
-
function Wr(e) {
|
|
4418
|
-
return Hr(e);
|
|
4419
|
-
}
|
|
4420
|
-
function Kr(e, l) {
|
|
4421
|
-
return e(l ?? Wr());
|
|
4422
|
-
}
|
|
4423
|
-
function Yr(e) {
|
|
4424
|
-
const l = "/ace-domain-modeler/enums";
|
|
4425
|
-
return {
|
|
4426
|
-
/**
|
|
4427
|
-
* 获取指定服务下的所有枚举定义
|
|
4428
|
-
* @param serviceName 服务名
|
|
4429
|
-
* @param config 自定义请求参数
|
|
4430
|
-
*/
|
|
4431
|
-
getAllByService(a, t) {
|
|
4432
|
-
return e.get(
|
|
4433
|
-
`${l}/all/${a}`,
|
|
4434
|
-
void 0,
|
|
4435
|
-
t
|
|
4436
|
-
);
|
|
4437
|
-
},
|
|
4438
|
-
/**
|
|
4439
|
-
* 分页获取指定服务下的所有枚举定义
|
|
4440
|
-
* @param serviceName 服务名
|
|
4441
|
-
* @param page 页码
|
|
4442
|
-
* @param size 每页数据量
|
|
4443
|
-
* @param config 请求配置参数
|
|
4444
|
-
*/
|
|
4445
|
-
queryByService(a, t, o, u) {
|
|
4446
|
-
return e.get(
|
|
4447
|
-
`${l}/by-service/${a}`,
|
|
4448
|
-
{
|
|
4449
|
-
page: t,
|
|
4450
|
-
size: o
|
|
4451
|
-
},
|
|
4452
|
-
u
|
|
4453
|
-
);
|
|
4454
|
-
},
|
|
4455
|
-
/**
|
|
4456
|
-
* 获取指定名称的枚举定义
|
|
4457
|
-
* @param serviceName 服务名
|
|
4458
|
-
* @param name
|
|
4459
|
-
* @param page 页码
|
|
4460
|
-
* @param size 每页数据量
|
|
4461
|
-
* @param config 请求配置参数
|
|
4462
|
-
*/
|
|
4463
|
-
queryByName(a, t, o) {
|
|
4464
|
-
return e.get(
|
|
4465
|
-
`${l}/get-by-name/${a}/${t}`,
|
|
4466
|
-
void 0,
|
|
4467
|
-
o
|
|
4468
|
-
);
|
|
4469
|
-
},
|
|
4470
|
-
/**
|
|
4471
|
-
* 根据枚举名或标题查询指定服务下的所有枚举定义
|
|
4472
|
-
* @param serviceName 服务名
|
|
4473
|
-
* @param name
|
|
4474
|
-
* @param page
|
|
4475
|
-
* @param size
|
|
4476
|
-
* @param config 请求配置参数
|
|
4477
|
-
*/
|
|
4478
|
-
getByName(a, t, o, u, d) {
|
|
4479
|
-
return e.get(
|
|
4480
|
-
`${l}/by-name/${a}/${t}`,
|
|
4481
|
-
{
|
|
4482
|
-
page: o,
|
|
4483
|
-
size: u
|
|
4484
|
-
},
|
|
4485
|
-
d
|
|
4486
|
-
);
|
|
4487
|
-
},
|
|
4488
|
-
/**
|
|
4489
|
-
* 根据Id获取枚举定义
|
|
4490
|
-
*
|
|
4491
|
-
* @param id 枚举定义id
|
|
4492
|
-
* @param config 请求配置参数
|
|
4493
|
-
*/
|
|
4494
|
-
getById(a, t) {
|
|
4495
|
-
return e.get(`${l}/by-id/${a}`, void 0, t);
|
|
4496
|
-
},
|
|
4497
|
-
/**
|
|
4498
|
-
* 创建枚举定义。
|
|
4499
|
-
* 需要角色:管理员
|
|
4500
|
-
* @param command 创建命令
|
|
4501
|
-
* @param config 请求配置参数
|
|
4502
|
-
*/
|
|
4503
|
-
create(a, t) {
|
|
4504
|
-
return e.post(`${l}`, a, void 0, {
|
|
4505
|
-
showSuccessMessage: !0,
|
|
4506
|
-
...t || {}
|
|
4507
|
-
});
|
|
4508
|
-
},
|
|
4509
|
-
/**
|
|
4510
|
-
* 更新枚举定义。
|
|
4511
|
-
* 需要角色:管理员
|
|
4512
|
-
* @param command 更新命令
|
|
4513
|
-
* @param config 请求配置参数
|
|
4514
|
-
*/
|
|
4515
|
-
update(a, t) {
|
|
4516
|
-
return e.put(`${l}`, a, void 0, {
|
|
4517
|
-
showSuccessMessage: !0,
|
|
4518
|
-
...t || {}
|
|
4519
|
-
});
|
|
4520
|
-
},
|
|
4521
|
-
/**
|
|
4522
|
-
* 删除枚举定义。
|
|
4523
|
-
* 需要角色:管理员
|
|
4524
|
-
* @param id 应用实例id
|
|
4525
|
-
* @param dataVersion 数据版本
|
|
4526
|
-
* @param config 请求配置参数
|
|
4527
|
-
*/
|
|
4528
|
-
delete(a, t, o) {
|
|
4529
|
-
return e.delete(`${l}`, { id: a, dataVersion: t }, void 0, {
|
|
4530
|
-
popValidationErrorNotification: !0,
|
|
4531
|
-
showSuccessMessage: !0,
|
|
4532
|
-
...o || {}
|
|
4533
|
-
});
|
|
4534
|
-
}
|
|
4535
|
-
};
|
|
4536
|
-
}
|
|
4537
|
-
function Qr(e) {
|
|
4538
|
-
return Kr(Yr, e);
|
|
4539
|
-
}
|
|
4540
|
-
const Xr = /* @__PURE__ */ z({
|
|
4415
|
+
}), Hr = R(Gr), Wr = /* @__PURE__ */ z({
|
|
4541
4416
|
__name: "EnumPicker",
|
|
4542
4417
|
props: /* @__PURE__ */ Q({
|
|
4543
4418
|
clearable: { type: Boolean, default: !0 },
|
|
@@ -4554,7 +4429,7 @@ const Xr = /* @__PURE__ */ z({
|
|
|
4554
4429
|
}),
|
|
4555
4430
|
emits: ["update:modelValue"],
|
|
4556
4431
|
setup(e) {
|
|
4557
|
-
const l = e, a = h([]), t = h(!1), o = ue(e, "modelValue"),
|
|
4432
|
+
const l = e, a = h([]), t = h(!1), o = ue(e, "modelValue"), i = ne(), d = Xa(i);
|
|
4558
4433
|
async function n() {
|
|
4559
4434
|
!l.name || !l.serviceName || (t.value = !0, d.queryByName(l.serviceName, l.name).then((r) => {
|
|
4560
4435
|
a.value = r.values;
|
|
@@ -4564,14 +4439,14 @@ const Xr = /* @__PURE__ */ z({
|
|
|
4564
4439
|
}
|
|
4565
4440
|
const c = ve(() => l.multiple ? o.value.map((r) => r[l.keyField]) || [] : o.value[0] !== void 0 ? o.value[0][l.keyField] : ""), p = (r) => {
|
|
4566
4441
|
if (typeof r == "string") {
|
|
4567
|
-
const
|
|
4568
|
-
o.value =
|
|
4442
|
+
const u = a.value.find((m) => m[l.keyField] === r);
|
|
4443
|
+
o.value = u ? [u] : [];
|
|
4569
4444
|
} else
|
|
4570
|
-
o.value = a.value.filter((
|
|
4445
|
+
o.value = a.value.filter((u) => r.includes(u[l.keyField]));
|
|
4571
4446
|
};
|
|
4572
|
-
return n(), T(() => l.name, n), T(() => l.serviceName, n), (r,
|
|
4447
|
+
return n(), T(() => l.name, n), T(() => l.serviceName, n), (r, u) => {
|
|
4573
4448
|
const m = Rt("loading");
|
|
4574
|
-
return Y((y(),
|
|
4449
|
+
return Y((y(), $(s(Ae), {
|
|
4575
4450
|
"model-value": c.value,
|
|
4576
4451
|
filterable: l.filterable,
|
|
4577
4452
|
multiple: l.multiple,
|
|
@@ -4579,7 +4454,7 @@ const Xr = /* @__PURE__ */ z({
|
|
|
4579
4454
|
onChange: p
|
|
4580
4455
|
}, {
|
|
4581
4456
|
default: g(() => [
|
|
4582
|
-
(y(!0),
|
|
4457
|
+
(y(!0), N(oe, null, W(a.value, (f) => (y(), $(s(Xe), {
|
|
4583
4458
|
key: f.id,
|
|
4584
4459
|
value: f[l.keyField],
|
|
4585
4460
|
label: f.text
|
|
@@ -4591,59 +4466,59 @@ const Xr = /* @__PURE__ */ z({
|
|
|
4591
4466
|
]);
|
|
4592
4467
|
};
|
|
4593
4468
|
}
|
|
4594
|
-
}),
|
|
4469
|
+
}), Kr = R(Wr), Yr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4595
4470
|
__proto__: null,
|
|
4596
|
-
AceTip:
|
|
4597
|
-
AceUpload:
|
|
4598
|
-
JaAutocomplete:
|
|
4471
|
+
AceTip: ml,
|
|
4472
|
+
AceUpload: il,
|
|
4473
|
+
JaAutocomplete: _r,
|
|
4599
4474
|
JaAvatar: it,
|
|
4600
4475
|
JaBaseRolePicker: It,
|
|
4601
4476
|
JaButton: se,
|
|
4602
|
-
JaChannelPicker:
|
|
4603
|
-
JaChannelPickerRaw:
|
|
4604
|
-
JaCheckbox:
|
|
4605
|
-
JaCheckboxGroup:
|
|
4606
|
-
JaDatePicker:
|
|
4607
|
-
JaDepartmentPicker:
|
|
4477
|
+
JaChannelPicker: Fr,
|
|
4478
|
+
JaChannelPickerRaw: Mr,
|
|
4479
|
+
JaCheckbox: kl,
|
|
4480
|
+
JaCheckboxGroup: Hr,
|
|
4481
|
+
JaDatePicker: Dl,
|
|
4482
|
+
JaDepartmentPicker: vo,
|
|
4608
4483
|
JaDepartmentTree: fa,
|
|
4609
|
-
JaDropdownButton:
|
|
4610
|
-
JaEnumList:
|
|
4611
|
-
JaEnumListRaw:
|
|
4612
|
-
JaEnumPicker:
|
|
4613
|
-
JaForm:
|
|
4614
|
-
JaFormItem:
|
|
4484
|
+
JaDropdownButton: zl,
|
|
4485
|
+
JaEnumList: ao,
|
|
4486
|
+
JaEnumListRaw: lo,
|
|
4487
|
+
JaEnumPicker: Kr,
|
|
4488
|
+
JaForm: gl,
|
|
4489
|
+
JaFormItem: Le,
|
|
4615
4490
|
JaInput: ut,
|
|
4616
4491
|
JaInputI18nRaw: qr,
|
|
4617
|
-
JaInputNumber:
|
|
4618
|
-
JaMapItemList:
|
|
4619
|
-
JaMapItemListRaw:
|
|
4620
|
-
JaNumberList:
|
|
4621
|
-
JaNumberListRaw:
|
|
4622
|
-
JaPropertyPicker:
|
|
4623
|
-
JaPropertyPickerRaw:
|
|
4624
|
-
JaRadioGroup:
|
|
4625
|
-
JaRolePicker:
|
|
4626
|
-
JaRolePickerRaw:
|
|
4492
|
+
JaInputNumber: Il,
|
|
4493
|
+
JaMapItemList: co,
|
|
4494
|
+
JaMapItemListRaw: po,
|
|
4495
|
+
JaNumberList: Kl,
|
|
4496
|
+
JaNumberListRaw: Yl,
|
|
4497
|
+
JaPropertyPicker: Jr,
|
|
4498
|
+
JaPropertyPickerRaw: Or,
|
|
4499
|
+
JaRadioGroup: Vr,
|
|
4500
|
+
JaRolePicker: Er,
|
|
4501
|
+
JaRolePickerRaw: Sr,
|
|
4627
4502
|
JaScrollbar: ya,
|
|
4628
4503
|
JaSelect: $l,
|
|
4629
|
-
JaStringList:
|
|
4630
|
-
JaStringListRaw:
|
|
4631
|
-
JaSwitch:
|
|
4632
|
-
JaTimePicker:
|
|
4633
|
-
JaUserGroupPicker:
|
|
4504
|
+
JaStringList: Ol,
|
|
4505
|
+
JaStringListRaw: jl,
|
|
4506
|
+
JaSwitch: Rl,
|
|
4507
|
+
JaTimePicker: hr,
|
|
4508
|
+
JaUserGroupPicker: br,
|
|
4634
4509
|
JaUserGroupTree: ga,
|
|
4635
4510
|
JaUserInfoTag: tt,
|
|
4636
|
-
JaUserList:
|
|
4637
|
-
JaUserPicker:
|
|
4638
|
-
JaUserPickerRaw:
|
|
4511
|
+
JaUserList: vr,
|
|
4512
|
+
JaUserPicker: fr,
|
|
4513
|
+
JaUserPickerRaw: mr,
|
|
4639
4514
|
JaUserSelectDialog: ha,
|
|
4640
4515
|
getAvatarToken: ua,
|
|
4641
|
-
updateAvatarToken:
|
|
4516
|
+
updateAvatarToken: go
|
|
4642
4517
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4643
|
-
function
|
|
4518
|
+
function Qr(e) {
|
|
4644
4519
|
e.directive("focus", kt), e.directive("shortcut", et), e.directive("auth", ta);
|
|
4645
4520
|
}
|
|
4646
|
-
const
|
|
4521
|
+
const as = [
|
|
4647
4522
|
{
|
|
4648
4523
|
text: "近一天",
|
|
4649
4524
|
value: () => {
|
|
@@ -4694,14 +4569,14 @@ const rs = [
|
|
|
4694
4569
|
}
|
|
4695
4570
|
}
|
|
4696
4571
|
];
|
|
4697
|
-
function
|
|
4572
|
+
function ls(e) {
|
|
4698
4573
|
if (!e)
|
|
4699
4574
|
throw new Error(
|
|
4700
4575
|
"无法获取到应用名称,请确保VITE_APP_NAME环境变量已配置或者在创建时传入appName参数。"
|
|
4701
4576
|
);
|
|
4702
4577
|
if (!window.microApp)
|
|
4703
4578
|
throw new Error("无法获取到window.microApp。");
|
|
4704
|
-
const l = h(/* @__PURE__ */ new Set()), a = (p, r = !0,
|
|
4579
|
+
const l = h(/* @__PURE__ */ new Set()), a = (p, r = !0, u = !0) => {
|
|
4705
4580
|
const m = {
|
|
4706
4581
|
sender: e,
|
|
4707
4582
|
// 将自己的appName填入sender字段
|
|
@@ -4710,24 +4585,24 @@ function ss(e) {
|
|
|
4710
4585
|
};
|
|
4711
4586
|
r ? window.microApp.forceDispatch(m) : window.microApp.dispatch(m, (f) => {
|
|
4712
4587
|
console.log("消息是否有返回值", f);
|
|
4713
|
-
}),
|
|
4588
|
+
}), u && d();
|
|
4714
4589
|
}, t = (p, r = !0) => {
|
|
4715
|
-
const
|
|
4590
|
+
const u = {
|
|
4716
4591
|
sender: "app-demo",
|
|
4717
4592
|
timestamp: Date.now(),
|
|
4718
4593
|
payload: p
|
|
4719
4594
|
};
|
|
4720
|
-
window.microApp.setGlobalData(
|
|
4595
|
+
window.microApp.setGlobalData(u), r && d();
|
|
4721
4596
|
}, o = (p, r = !0) => {
|
|
4722
4597
|
window.microApp.addGlobalDataListener(p, r);
|
|
4723
|
-
},
|
|
4598
|
+
}, i = () => window.microApp.getData(), d = () => {
|
|
4724
4599
|
window.microApp.clearData();
|
|
4725
4600
|
}, n = (p, r = !1) => {
|
|
4726
4601
|
window.microApp.addDataListener(p, r), l.value.add(p);
|
|
4727
4602
|
}, c = (p) => {
|
|
4728
4603
|
window.microApp.removeDataListener(p), l.value.delete(p);
|
|
4729
4604
|
};
|
|
4730
|
-
return
|
|
4605
|
+
return $e(() => {
|
|
4731
4606
|
window.microApp.clearDataListener(), l.value.clear();
|
|
4732
4607
|
}), {
|
|
4733
4608
|
sendMessage: a,
|
|
@@ -4736,7 +4611,7 @@ function ss(e) {
|
|
|
4736
4611
|
// 监听消息的方法
|
|
4737
4612
|
clearCache: d,
|
|
4738
4613
|
// 清除缓存
|
|
4739
|
-
getBaseAppData:
|
|
4614
|
+
getBaseAppData: i,
|
|
4740
4615
|
// 获取主应用下发的消息
|
|
4741
4616
|
offMessage: c,
|
|
4742
4617
|
// 移除指定监听函数
|
|
@@ -4749,66 +4624,66 @@ function ss(e) {
|
|
|
4749
4624
|
// 监听全局消息的方法
|
|
4750
4625
|
};
|
|
4751
4626
|
}
|
|
4752
|
-
const
|
|
4627
|
+
const os = {
|
|
4753
4628
|
install(e) {
|
|
4754
|
-
for (const [l, a] of Object.entries(
|
|
4629
|
+
for (const [l, a] of Object.entries(Yr))
|
|
4755
4630
|
e.component(l, a);
|
|
4756
|
-
|
|
4631
|
+
Qr(e);
|
|
4757
4632
|
}
|
|
4758
4633
|
};
|
|
4759
4634
|
export {
|
|
4760
|
-
|
|
4761
|
-
|
|
4762
|
-
|
|
4763
|
-
|
|
4635
|
+
ml as AceTip,
|
|
4636
|
+
il as AceUpload,
|
|
4637
|
+
os as AceVueUI,
|
|
4638
|
+
_r as JaAutocomplete,
|
|
4764
4639
|
it as JaAvatar,
|
|
4765
4640
|
It as JaBaseRolePicker,
|
|
4766
4641
|
se as JaButton,
|
|
4767
|
-
|
|
4768
|
-
|
|
4769
|
-
|
|
4770
|
-
|
|
4771
|
-
|
|
4772
|
-
|
|
4642
|
+
Fr as JaChannelPicker,
|
|
4643
|
+
Mr as JaChannelPickerRaw,
|
|
4644
|
+
kl as JaCheckbox,
|
|
4645
|
+
Hr as JaCheckboxGroup,
|
|
4646
|
+
Dl as JaDatePicker,
|
|
4647
|
+
vo as JaDepartmentPicker,
|
|
4773
4648
|
fa as JaDepartmentTree,
|
|
4774
|
-
|
|
4775
|
-
|
|
4776
|
-
|
|
4777
|
-
|
|
4778
|
-
|
|
4779
|
-
|
|
4649
|
+
zl as JaDropdownButton,
|
|
4650
|
+
ao as JaEnumList,
|
|
4651
|
+
lo as JaEnumListRaw,
|
|
4652
|
+
Kr as JaEnumPicker,
|
|
4653
|
+
gl as JaForm,
|
|
4654
|
+
Le as JaFormItem,
|
|
4780
4655
|
ut as JaInput,
|
|
4781
4656
|
qr as JaInputI18nRaw,
|
|
4782
|
-
|
|
4783
|
-
|
|
4784
|
-
|
|
4785
|
-
|
|
4786
|
-
|
|
4787
|
-
|
|
4788
|
-
|
|
4789
|
-
|
|
4790
|
-
|
|
4791
|
-
|
|
4657
|
+
Il as JaInputNumber,
|
|
4658
|
+
co as JaMapItemList,
|
|
4659
|
+
po as JaMapItemListRaw,
|
|
4660
|
+
Kl as JaNumberList,
|
|
4661
|
+
Yl as JaNumberListRaw,
|
|
4662
|
+
Jr as JaPropertyPicker,
|
|
4663
|
+
Or as JaPropertyPickerRaw,
|
|
4664
|
+
Vr as JaRadioGroup,
|
|
4665
|
+
Er as JaRolePicker,
|
|
4666
|
+
Sr as JaRolePickerRaw,
|
|
4792
4667
|
ya as JaScrollbar,
|
|
4793
4668
|
$l as JaSelect,
|
|
4794
|
-
|
|
4795
|
-
|
|
4796
|
-
|
|
4797
|
-
|
|
4798
|
-
|
|
4669
|
+
Ol as JaStringList,
|
|
4670
|
+
jl as JaStringListRaw,
|
|
4671
|
+
Rl as JaSwitch,
|
|
4672
|
+
hr as JaTimePicker,
|
|
4673
|
+
br as JaUserGroupPicker,
|
|
4799
4674
|
ga as JaUserGroupTree,
|
|
4800
4675
|
tt as JaUserInfoTag,
|
|
4801
|
-
|
|
4802
|
-
|
|
4803
|
-
|
|
4676
|
+
vr as JaUserList,
|
|
4677
|
+
fr as JaUserPicker,
|
|
4678
|
+
mr as JaUserPickerRaw,
|
|
4804
4679
|
ha as JaUserSelectDialog,
|
|
4805
4680
|
va as SCROLL_BAR_WRAPPED_INJECT_KEY,
|
|
4806
4681
|
ua as getAvatarToken,
|
|
4807
|
-
|
|
4808
|
-
|
|
4809
|
-
|
|
4682
|
+
Qr as installDirectives,
|
|
4683
|
+
as as shortcuts,
|
|
4684
|
+
go as updateAvatarToken,
|
|
4810
4685
|
Vt as useAppInstances,
|
|
4811
|
-
|
|
4812
|
-
|
|
4686
|
+
fl as useBackendValidations,
|
|
4687
|
+
ls as useBridge,
|
|
4813
4688
|
Pe as useTreeData
|
|
4814
4689
|
};
|