@jari-ace/element-plus-component 0.2.0 → 0.2.1
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/README.md +1 -18
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/lib/index.js +985 -947
- package/lib/index.umd.cjs +2 -2
- package/package.json +1 -1
- package/packages/index.ts +3 -0
package/lib/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as z, reactive as
|
|
2
|
-
import { ElForm as
|
|
3
|
-
import { createAxiosWithoutCache as le, useLoginUser as
|
|
4
|
-
import { QuestionFilled as
|
|
5
|
-
const R = (e,
|
|
1
|
+
import { defineComponent as z, reactive as je, resolveComponent as ye, createElementBlock as N, openBlock as b, createVNode as w, withCtx as g, createTextVNode as G, createElementVNode as j, normalizeStyle as Ra, renderSlot as te, toDisplayString as ae, ref as h, provide as Fe, computed as ge, watch as T, createBlock as $, unref as s, createCommentVNode as de, inject as M, createSlots as ve, renderList as W, mergeProps as K, onMounted as Xe, withDirectives as Y, onBeforeMount as xe, Fragment as ne, vShow as he, resolveDynamicComponent as La, mergeModels as Q, useModel as ue, nextTick as Ce, onUnmounted as Ae, normalizeClass as We, shallowReactive as ft, withAsyncContext as vt, h as ze, shallowRef as Na, withKeys as Ie, withModifiers as Et, vModelText as Ja, resolveDirective as Jt } from "vue";
|
|
2
|
+
import { ElForm as gt, ElFormItem as Ke, ElText as Me, ElTooltip as ke, ElIcon as ce, ElInput as we, ElCheckbox as Oa, ElInputNumber as Ye, ElSelect as De, ElDatePicker as ut, ElButton as fe, ElDropdown as Ot, ElSwitch as jt, ElSpace as ht, ElTreeSelect as yt, ElAvatar as ja, ElImage as xa, ElPopover as xt, vLoading as Ee, ElTree as Ze, ElOption as et, ElDialog as it, ElTabs as qa, ElTabPane as ot, ElScrollbar as $e, ElTableV2 as Ga, ElMessageBox as Ha, ElMessage as Wa, ElEmpty as qt, ElTimePicker as Ka, ElAutocomplete as Ya, ElRadioGroup as Qa, ElDrawer as Gt, ElTag as St, ElCheckboxGroup as Xa } from "element-plus";
|
|
3
|
+
import { createAxiosWithoutCache as le, useLoginUser as Ht, useDepartmentApi as Wt, FromDeptSelect as Kt, useLoading as _e, useUserApi as bt, useRealmApi as Za, useUserQueryBuilder as Yt, useUserGroupApi as Qt, useAppApi as wt, useCustomGroupApi as Xt, useRoleApi as Zt, useChannelApi as el, useEntityApi as tl, useAppMessageApi as ea, useEnumApi as al, useAppServiceApi as ll } from "@jari-ace/app-bolts";
|
|
4
|
+
import { QuestionFilled as ta, ArrowDown as aa, Minus as qe, Plus as Se, Star as ol, StarFilled as la, Close as nl, Hide as rl, View as sl, Check as oa, Notebook as ul, Delete as il, Finished as dl, Setting as cl, Search as Tt, ArrowUp as pl } from "@element-plus/icons-vue";
|
|
5
|
+
const R = (e, l) => (e.install = (a) => {
|
|
6
6
|
for (const t of [e, ...Object.values({})])
|
|
7
|
-
|
|
8
|
-
}, e),
|
|
7
|
+
a.component(t.name, t);
|
|
8
|
+
}, e), ml = /* @__PURE__ */ z({
|
|
9
9
|
__name: "Upload",
|
|
10
10
|
props: {
|
|
11
11
|
action: {},
|
|
@@ -20,15 +20,15 @@ const R = (e, a) => (e.install = (l) => {
|
|
|
20
20
|
withCredentials: { type: Boolean }
|
|
21
21
|
},
|
|
22
22
|
setup(e) {
|
|
23
|
-
const
|
|
23
|
+
const l = je({
|
|
24
24
|
fileList: []
|
|
25
25
|
});
|
|
26
|
-
return (
|
|
26
|
+
return (a, t) => {
|
|
27
27
|
const o = ye("el-button"), d = ye("el-upload");
|
|
28
28
|
return b(), N("div", null, [
|
|
29
29
|
w(d, {
|
|
30
|
-
"file-list":
|
|
31
|
-
"onUpdate:fileList": t[0] || (t[0] = (u) =>
|
|
30
|
+
"file-list": l.fileList,
|
|
31
|
+
"onUpdate:fileList": t[0] || (t[0] = (u) => l.fileList = u),
|
|
32
32
|
class: "ace-upload",
|
|
33
33
|
"list-type": "picture"
|
|
34
34
|
}, {
|
|
@@ -49,35 +49,35 @@ const R = (e, a) => (e.install = (l) => {
|
|
|
49
49
|
]);
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
|
-
}),
|
|
52
|
+
}), fl = R(ml), vl = { class: "text-box" }, gl = /* @__PURE__ */ z({
|
|
53
53
|
__name: "AceTip",
|
|
54
54
|
props: {
|
|
55
55
|
type: { default: "primary" },
|
|
56
56
|
text: { default: "" }
|
|
57
57
|
},
|
|
58
58
|
setup(e) {
|
|
59
|
-
const
|
|
60
|
-
return (
|
|
59
|
+
const l = e;
|
|
60
|
+
return (a, t) => (b(), N("div", {
|
|
61
61
|
class: "ace-tip-sfc",
|
|
62
|
-
style:
|
|
63
|
-
backgroundColor: `var(--el-color-${
|
|
64
|
-
border: ` var(--el-color-${
|
|
62
|
+
style: Ra({
|
|
63
|
+
backgroundColor: `var(--el-color-${l.type}-light-9)`,
|
|
64
|
+
border: ` var(--el-color-${l.type})`
|
|
65
65
|
})
|
|
66
66
|
}, [
|
|
67
|
-
te(
|
|
68
|
-
j("p",
|
|
67
|
+
te(a.$slots, "icon", {}, void 0, !0),
|
|
68
|
+
j("p", vl, ae(l.text), 1)
|
|
69
69
|
], 4));
|
|
70
70
|
}
|
|
71
|
-
}), pe = (e,
|
|
72
|
-
const
|
|
73
|
-
for (const [t, o] of
|
|
74
|
-
|
|
75
|
-
return
|
|
76
|
-
},
|
|
77
|
-
function
|
|
78
|
-
const t =
|
|
71
|
+
}), pe = (e, l) => {
|
|
72
|
+
const a = e.__vccOpts || e;
|
|
73
|
+
for (const [t, o] of l)
|
|
74
|
+
a[t] = o;
|
|
75
|
+
return a;
|
|
76
|
+
}, hl = /* @__PURE__ */ pe(gl, [["__scopeId", "data-v-2cc0dc68"]]), yl = R(hl);
|
|
77
|
+
function bl(e, l, a) {
|
|
78
|
+
const t = je({});
|
|
79
79
|
let o = [];
|
|
80
|
-
|
|
80
|
+
l || (l = le()), l.setDefaultRequestConfig({
|
|
81
81
|
validationErrorProcessor: (n) => {
|
|
82
82
|
o = n;
|
|
83
83
|
}
|
|
@@ -95,7 +95,7 @@ function gl(e, a, l) {
|
|
|
95
95
|
m || i();
|
|
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;
|
|
99
99
|
}
|
|
100
100
|
return {
|
|
101
101
|
removeFieldError: (n) => {
|
|
@@ -104,11 +104,11 @@ function gl(e, a, l) {
|
|
|
104
104
|
clearFiledErrors: () => {
|
|
105
105
|
o = [];
|
|
106
106
|
},
|
|
107
|
-
axios:
|
|
107
|
+
axios: l,
|
|
108
108
|
rules: t
|
|
109
109
|
};
|
|
110
110
|
}
|
|
111
|
-
const
|
|
111
|
+
const wl = /* @__PURE__ */ z({
|
|
112
112
|
__name: "JaForm",
|
|
113
113
|
props: {
|
|
114
114
|
model: {},
|
|
@@ -128,37 +128,37 @@ const hl = /* @__PURE__ */ z({
|
|
|
128
128
|
validator: {}
|
|
129
129
|
},
|
|
130
130
|
emits: ["validate", "click"],
|
|
131
|
-
setup(e, { expose:
|
|
132
|
-
const
|
|
133
|
-
|
|
131
|
+
setup(e, { expose: l }) {
|
|
132
|
+
const a = h(void 0), t = e;
|
|
133
|
+
Fe("aceFormValidator", t.validator), Fe("aceFormModel", t.model), Fe("aceFormSize", t.size);
|
|
134
134
|
const o = ge(() => ({
|
|
135
135
|
...t.rules,
|
|
136
136
|
...t.validator.rules
|
|
137
137
|
}));
|
|
138
|
-
return
|
|
139
|
-
elForm:
|
|
140
|
-
getElForm: () =>
|
|
138
|
+
return l({
|
|
139
|
+
elForm: a,
|
|
140
|
+
getElForm: () => a.value,
|
|
141
141
|
validate: async (d, u) => {
|
|
142
|
-
|
|
142
|
+
a && (a.value.clearValidate(), t.rules ? await a.value.validate((n, c) => {
|
|
143
143
|
n ? d().then(() => {
|
|
144
144
|
var p;
|
|
145
145
|
(p = t.validator) == null || p.clearFiledErrors();
|
|
146
146
|
}).catch(() => {
|
|
147
|
-
|
|
147
|
+
a.value.validate(), u && u();
|
|
148
148
|
}) : console.log("error submit!", c);
|
|
149
149
|
}) : d().then(() => {
|
|
150
150
|
var n;
|
|
151
151
|
(n = t.validator) == null || n.clearFiledErrors();
|
|
152
152
|
}).catch(async () => {
|
|
153
|
-
await
|
|
153
|
+
await a.value.validate(), u && u();
|
|
154
154
|
}));
|
|
155
155
|
}
|
|
156
156
|
}), T(() => t.model.formData, () => {
|
|
157
157
|
var d;
|
|
158
158
|
(d = t.validator) == null || d.clearFiledErrors();
|
|
159
|
-
}), (d, u) => (b(), $(s(
|
|
159
|
+
}), (d, u) => (b(), $(s(gt), {
|
|
160
160
|
ref_key: "formRef",
|
|
161
|
-
ref:
|
|
161
|
+
ref: a,
|
|
162
162
|
model: d.model.formData,
|
|
163
163
|
rules: o.value,
|
|
164
164
|
inline: d.inline,
|
|
@@ -182,10 +182,10 @@ const hl = /* @__PURE__ */ z({
|
|
|
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
|
+
}), _l = R(wl), kl = {
|
|
186
186
|
key: 0,
|
|
187
187
|
style: { color: "red" }
|
|
188
|
-
},
|
|
188
|
+
}, Vl = ["innerHTML"], Il = /* @__PURE__ */ z({
|
|
189
189
|
__name: "JaFormItem",
|
|
190
190
|
props: {
|
|
191
191
|
prop: {},
|
|
@@ -199,11 +199,11 @@ const hl = /* @__PURE__ */ z({
|
|
|
199
199
|
inlineMessage: { type: Boolean, default: !0 },
|
|
200
200
|
size: { default: "small" }
|
|
201
201
|
},
|
|
202
|
-
setup(e, { expose:
|
|
203
|
-
const
|
|
204
|
-
|
|
202
|
+
setup(e, { expose: l }) {
|
|
203
|
+
const a = e;
|
|
204
|
+
Fe("aceFormItemProp", a.prop);
|
|
205
205
|
const t = h(null);
|
|
206
|
-
return
|
|
206
|
+
return l({
|
|
207
207
|
resetField: () => {
|
|
208
208
|
t.value.resetField();
|
|
209
209
|
},
|
|
@@ -211,7 +211,7 @@ const hl = /* @__PURE__ */ z({
|
|
|
211
211
|
t.value.clearValidate();
|
|
212
212
|
},
|
|
213
213
|
elFormItem: t
|
|
214
|
-
}), (o, d) => (b(), $(s(
|
|
214
|
+
}), (o, d) => (b(), $(s(Ke), {
|
|
215
215
|
ref_key: "formItem",
|
|
216
216
|
ref: t,
|
|
217
217
|
prop: o.prop,
|
|
@@ -223,21 +223,21 @@ const hl = /* @__PURE__ */ z({
|
|
|
223
223
|
size: o.size
|
|
224
224
|
}, {
|
|
225
225
|
label: g(() => [
|
|
226
|
-
w(s(
|
|
226
|
+
w(s(Me), { class: "el-form-item__label" }, {
|
|
227
227
|
default: g(() => [
|
|
228
|
-
G(ae(
|
|
229
|
-
|
|
228
|
+
G(ae(a.label) + " ", 1),
|
|
229
|
+
a.required ? (b(), N("span", kl, "*")) : de("", !0),
|
|
230
230
|
o.labelRemark ? (b(), $(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, Vl)
|
|
236
236
|
]),
|
|
237
237
|
default: g(() => [
|
|
238
238
|
w(s(ce), null, {
|
|
239
239
|
default: g(() => [
|
|
240
|
-
w(s(
|
|
240
|
+
w(s(ta))
|
|
241
241
|
]),
|
|
242
242
|
_: 1
|
|
243
243
|
})
|
|
@@ -255,26 +255,26 @@ const hl = /* @__PURE__ */ z({
|
|
|
255
255
|
_: 3
|
|
256
256
|
}, 8, ["prop", "rules", "label-width", "error", "show-message", "inline-message", "size"]));
|
|
257
257
|
}
|
|
258
|
-
}),
|
|
259
|
-
function x(e,
|
|
260
|
-
if (!
|
|
258
|
+
}), Ne = R(Il);
|
|
259
|
+
function x(e, l) {
|
|
260
|
+
if (!l || l.length == 0)
|
|
261
261
|
throw new Error("prop不能为空,请检查所有的ja-form-item的prop属性是否都已设置");
|
|
262
|
-
const
|
|
262
|
+
const a = l.split(".");
|
|
263
263
|
let t = e;
|
|
264
|
-
for (let o = 0; o <
|
|
264
|
+
for (let o = 0; o < a.length && (t = t[a[o]], !!t); o++)
|
|
265
265
|
;
|
|
266
266
|
return t;
|
|
267
267
|
}
|
|
268
|
-
function re(e,
|
|
269
|
-
if (!
|
|
268
|
+
function re(e, l, a) {
|
|
269
|
+
if (!l || l.length == 0)
|
|
270
270
|
throw new Error("prop不能为空,请检查所有的ja-form-item的prop属性是否都已设置");
|
|
271
|
-
const t =
|
|
271
|
+
const t = l.split(".");
|
|
272
272
|
let o = e;
|
|
273
273
|
for (let d = 0; d < t.length - 1 && (o = o[t[d]], !!o); d++)
|
|
274
274
|
;
|
|
275
|
-
o && (o[t[t.length - 1]] =
|
|
275
|
+
o && (o[t[t.length - 1]] = a);
|
|
276
276
|
}
|
|
277
|
-
const
|
|
277
|
+
const Cl = /* @__PURE__ */ z({
|
|
278
278
|
__name: "JaInput",
|
|
279
279
|
props: {
|
|
280
280
|
type: { default: "text" },
|
|
@@ -307,8 +307,8 @@ const kl = /* @__PURE__ */ z({
|
|
|
307
307
|
inputStyle: { type: [Boolean, null, String, Object, Array] }
|
|
308
308
|
},
|
|
309
309
|
emits: ["blur", "focus", "change", "input", "clear"],
|
|
310
|
-
setup(e, { expose:
|
|
311
|
-
const t = M("aceFormModel"), o = M("aceFormItemProp"), d = M("aceFormValidator"), u = h({}), n =
|
|
310
|
+
setup(e, { expose: l, emit: a }) {
|
|
311
|
+
const t = M("aceFormModel"), o = M("aceFormItemProp"), d = M("aceFormValidator"), u = h({}), n = a;
|
|
312
312
|
function c(r) {
|
|
313
313
|
d.removeFieldError(o), re(t.formData, o, p.value), n("change", r);
|
|
314
314
|
}
|
|
@@ -317,7 +317,7 @@ const kl = /* @__PURE__ */ z({
|
|
|
317
317
|
p.value = x(t.formData, o);
|
|
318
318
|
}, {
|
|
319
319
|
deep: !0
|
|
320
|
-
}),
|
|
320
|
+
}), l({
|
|
321
321
|
focus() {
|
|
322
322
|
u.value.focus();
|
|
323
323
|
},
|
|
@@ -377,7 +377,7 @@ const kl = /* @__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
|
-
}),
|
|
380
|
+
}), dt = R(Cl), $l = /* @__PURE__ */ z({
|
|
381
381
|
__name: "JaCheckbox",
|
|
382
382
|
props: {
|
|
383
383
|
label: { type: [String, Number, Boolean, Object] },
|
|
@@ -392,17 +392,17 @@ const kl = /* @__PURE__ */ z({
|
|
|
392
392
|
validateEvent: { type: Boolean, default: !0 }
|
|
393
393
|
},
|
|
394
394
|
emits: ["change"],
|
|
395
|
-
setup(e, { expose:
|
|
396
|
-
const t = M("aceFormModel"), o = M("aceFormItemProp"), d = M("aceFormValidator"), u = h({}), n =
|
|
395
|
+
setup(e, { expose: l, emit: a }) {
|
|
396
|
+
const t = M("aceFormModel"), o = M("aceFormItemProp"), d = M("aceFormValidator"), u = h({}), n = a;
|
|
397
397
|
function c(r) {
|
|
398
398
|
d.removeFieldError(o), re(t.formData, o, p.value), n("change", r);
|
|
399
399
|
}
|
|
400
400
|
const p = h(x(t.formData, o));
|
|
401
401
|
return T(() => t.formData, () => {
|
|
402
402
|
p.value = x(t.formData, o);
|
|
403
|
-
}),
|
|
403
|
+
}), l({
|
|
404
404
|
elCheckbox: u
|
|
405
|
-
}), (r, i) => (b(), $(s(
|
|
405
|
+
}), (r, i) => (b(), $(s(Oa), {
|
|
406
406
|
ref_key: "checkbox",
|
|
407
407
|
ref: u,
|
|
408
408
|
modelValue: p.value,
|
|
@@ -425,7 +425,7 @@ const kl = /* @__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
|
+
}), Al = R($l), Dl = /* @__PURE__ */ z({
|
|
429
429
|
__name: "JaInputNumber",
|
|
430
430
|
props: {
|
|
431
431
|
min: { default: -1 / 0 },
|
|
@@ -447,8 +447,8 @@ const kl = /* @__PURE__ */ z({
|
|
|
447
447
|
validateEvent: { type: Boolean, default: !0 }
|
|
448
448
|
},
|
|
449
449
|
emits: ["blur", "focus", "change"],
|
|
450
|
-
setup(e, { expose:
|
|
451
|
-
const t = e, o = M("aceFormModel"), d = M("aceFormItemProp"), u = M("aceFormValidator"), n = ge(() => t.size ? t.size : M("aceFormSize")), c = h(), p =
|
|
450
|
+
setup(e, { expose: l, emit: a }) {
|
|
451
|
+
const t = e, o = M("aceFormModel"), d = M("aceFormItemProp"), u = M("aceFormValidator"), n = ge(() => t.size ? t.size : M("aceFormSize")), c = h(), p = a;
|
|
452
452
|
function r(m) {
|
|
453
453
|
u.removeFieldError(d), re(o.formData, d, i.value), p("change", m);
|
|
454
454
|
}
|
|
@@ -457,7 +457,7 @@ const kl = /* @__PURE__ */ z({
|
|
|
457
457
|
i.value = x(o.formData, d);
|
|
458
458
|
}, {
|
|
459
459
|
deep: !0
|
|
460
|
-
}),
|
|
460
|
+
}), l({
|
|
461
461
|
focus() {
|
|
462
462
|
var m;
|
|
463
463
|
(m = c == null ? void 0 : c.value) == null || m.focus();
|
|
@@ -467,7 +467,7 @@ const kl = /* @__PURE__ */ z({
|
|
|
467
467
|
(m = c == null ? void 0 : c.value) == null || m.blur();
|
|
468
468
|
},
|
|
469
469
|
elInputNumber: c
|
|
470
|
-
}), (m, f) => (b(), $(s(
|
|
470
|
+
}), (m, f) => (b(), $(s(Ye), {
|
|
471
471
|
min: m.min,
|
|
472
472
|
max: m.max,
|
|
473
473
|
label: m.label,
|
|
@@ -498,11 +498,11 @@ const kl = /* @__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
|
+
}), El = R(Dl), Sl = /* @__PURE__ */ z({
|
|
502
502
|
__name: "JaSelect",
|
|
503
503
|
emits: ["change"],
|
|
504
|
-
setup(e, { expose:
|
|
505
|
-
const t = h({}), o = M("aceFormModel"), d = M("aceFormItemProp"), u = M("aceFormValidator"), n =
|
|
504
|
+
setup(e, { expose: l, emit: a }) {
|
|
505
|
+
const t = h({}), o = M("aceFormModel"), d = M("aceFormItemProp"), u = M("aceFormValidator"), n = a;
|
|
506
506
|
function c(r) {
|
|
507
507
|
u.removeFieldError(d), re(o.formData, d, p.value), n("change", r);
|
|
508
508
|
}
|
|
@@ -511,11 +511,11 @@ const kl = /* @__PURE__ */ z({
|
|
|
511
511
|
p.value = x(o.formData, d);
|
|
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, i) => (b(), $(s(
|
|
518
|
+
}), (r, i) => (b(), $(s(De), K({
|
|
519
519
|
ref_key: "input",
|
|
520
520
|
ref: t,
|
|
521
521
|
modelValue: p.value,
|
|
@@ -530,11 +530,11 @@ const kl = /* @__PURE__ */ z({
|
|
|
530
530
|
}))
|
|
531
531
|
]), 1040, ["modelValue"]));
|
|
532
532
|
}
|
|
533
|
-
}),
|
|
533
|
+
}), Tl = R(Sl), Fl = /* @__PURE__ */ z({
|
|
534
534
|
__name: "JaDatePicker",
|
|
535
535
|
emits: ["change"],
|
|
536
|
-
setup(e, { expose:
|
|
537
|
-
const t = h({}), o = M("aceFormModel"), d = M("aceFormItemProp"), u = M("aceFormValidator"), n =
|
|
536
|
+
setup(e, { expose: l, emit: a }) {
|
|
537
|
+
const t = h({}), o = M("aceFormModel"), d = M("aceFormItemProp"), u = M("aceFormValidator"), n = a, c = h({});
|
|
538
538
|
function p(i) {
|
|
539
539
|
u.removeFieldError(d), re(o.formData, d, r.value), n("change", i);
|
|
540
540
|
}
|
|
@@ -543,11 +543,11 @@ const kl = /* @__PURE__ */ z({
|
|
|
543
543
|
r.value = x(o.formData, d);
|
|
544
544
|
}, {
|
|
545
545
|
deep: !0
|
|
546
|
-
}),
|
|
546
|
+
}), Xe(() => {
|
|
547
547
|
Object.entries(t.value).filter(([m, f]) => f instanceof Function).forEach(([m, f]) => {
|
|
548
548
|
c.value[m] = f;
|
|
549
549
|
});
|
|
550
|
-
}),
|
|
550
|
+
}), l(c.value), (i, m) => (b(), $(s(ut), K({
|
|
551
551
|
ref_key: "input",
|
|
552
552
|
ref: t,
|
|
553
553
|
modelValue: s(o).formData[s(d)],
|
|
@@ -562,9 +562,9 @@ const kl = /* @__PURE__ */ z({
|
|
|
562
562
|
}))
|
|
563
563
|
]), 1040, ["modelValue"]));
|
|
564
564
|
}
|
|
565
|
-
}),
|
|
566
|
-
function
|
|
567
|
-
const
|
|
565
|
+
}), Ml = R(Fl);
|
|
566
|
+
function Pl(e) {
|
|
567
|
+
const l = ["Ctrl", "Alt", "Shift", "Meta"], a = [
|
|
568
568
|
"A",
|
|
569
569
|
"B",
|
|
570
570
|
"C",
|
|
@@ -625,18 +625,18 @@ function Tl(e) {
|
|
|
625
625
|
if (e.length < 2)
|
|
626
626
|
return !1;
|
|
627
627
|
for (let o = 0; o < e.length - 1; o++)
|
|
628
|
-
if (!
|
|
628
|
+
if (!l.includes(e[o]))
|
|
629
629
|
return !1;
|
|
630
630
|
const t = e[e.length - 1];
|
|
631
|
-
return
|
|
631
|
+
return a.includes(t);
|
|
632
632
|
}
|
|
633
|
-
let
|
|
634
|
-
function
|
|
633
|
+
let Je = {};
|
|
634
|
+
function Ft(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 (
|
|
639
|
-
if (
|
|
638
|
+
if (Pl(t)) {
|
|
639
|
+
if (l.__vueShortcutHandler__)
|
|
640
640
|
return;
|
|
641
641
|
const d = (u) => {
|
|
642
642
|
var r;
|
|
@@ -646,72 +646,72 @@ function St(e, a, l) {
|
|
|
646
646
|
const c = t.length > 0 ? t[t.length - 1] : null;
|
|
647
647
|
u.key && c && u.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 && (u.preventDefault(), e.value ? e.value(l, e, a) : (l.focus(), l.click()));
|
|
650
650
|
};
|
|
651
|
-
|
|
651
|
+
Ul({
|
|
652
652
|
keys: e.arg,
|
|
653
653
|
handler: d,
|
|
654
|
-
el:
|
|
655
|
-
prev:
|
|
654
|
+
el: l,
|
|
655
|
+
prev: Je[e.arg]
|
|
656
656
|
});
|
|
657
657
|
} else
|
|
658
658
|
console.warn(`Invalid shortcut key combination: ${t.join("+")}`);
|
|
659
659
|
}
|
|
660
|
-
function
|
|
661
|
-
e.__vueShortcutHandler__ &&
|
|
660
|
+
function Mt(e) {
|
|
661
|
+
e.__vueShortcutHandler__ && zl(e.__vueShortcutHandler__);
|
|
662
662
|
}
|
|
663
|
-
function
|
|
664
|
-
const
|
|
665
|
-
|
|
663
|
+
function Ul(e) {
|
|
664
|
+
const l = e.prev, a = (window.rawWindow ?? window).document;
|
|
665
|
+
l && a.removeEventListener("keydown", l.handler), a.addEventListener("keydown", e.handler), Je[e.keys] = e, e.el.__vueShortcutHandler__ = e;
|
|
666
666
|
}
|
|
667
|
-
function
|
|
668
|
-
const
|
|
669
|
-
if (
|
|
670
|
-
const
|
|
671
|
-
|
|
672
|
-
} else if (
|
|
673
|
-
let
|
|
674
|
-
for (;
|
|
675
|
-
|
|
676
|
-
|
|
667
|
+
function zl(e) {
|
|
668
|
+
const l = Je[e.keys];
|
|
669
|
+
if (l && l == e) {
|
|
670
|
+
const a = (window.rawWindow ?? window).document;
|
|
671
|
+
a.removeEventListener("keydown", e.handler), e.prev ? (a.addEventListener("keydown", e.prev.handler), Je[e.keys] = e.prev) : Je[e.keys] = void 0;
|
|
672
|
+
} else if (l) {
|
|
673
|
+
let a = l;
|
|
674
|
+
for (; a && a.prev != e; )
|
|
675
|
+
a = a.prev;
|
|
676
|
+
a && (a.prev = e.prev);
|
|
677
677
|
}
|
|
678
678
|
e.prev && delete e.prev, delete e.el.__vueShortcutHandler__;
|
|
679
679
|
}
|
|
680
|
-
const
|
|
680
|
+
const Bl = (e) => {
|
|
681
681
|
if (e.offsetParent === null)
|
|
682
682
|
return !1;
|
|
683
|
-
const
|
|
684
|
-
return
|
|
685
|
-
},
|
|
683
|
+
const l = e.getBoundingClientRect(), a = window.rawWindow ?? window;
|
|
684
|
+
return l.top <= a.innerHeight && l.bottom >= 0 && l.left <= a.innerWidth && l.right >= 0;
|
|
685
|
+
}, Rl = {
|
|
686
686
|
root: null,
|
|
687
687
|
// 默认为视口
|
|
688
688
|
rootMargin: "0px",
|
|
689
689
|
threshold: 0.1
|
|
690
690
|
// 当 10% 的元素可见时触发
|
|
691
|
-
},
|
|
692
|
-
mounted(e,
|
|
693
|
-
|
|
691
|
+
}, tt = {
|
|
692
|
+
mounted(e, l, a) {
|
|
693
|
+
Bl(e) && Ft(l, e, a);
|
|
694
694
|
const t = (d) => {
|
|
695
695
|
d.forEach((u) => {
|
|
696
|
-
u.isIntersecting ?
|
|
696
|
+
u.isIntersecting ? Ft(l, e, a) : Mt(e);
|
|
697
697
|
});
|
|
698
|
-
}, o = new IntersectionObserver(t,
|
|
698
|
+
}, o = new IntersectionObserver(t, Rl);
|
|
699
699
|
e.__visibilityObserver__ = o, o.observe(e);
|
|
700
700
|
},
|
|
701
701
|
unmounted(e) {
|
|
702
|
-
e.__visibilityObserver__.disconnect(), delete e.__visibilityObserver__,
|
|
702
|
+
e.__visibilityObserver__.disconnect(), delete e.__visibilityObserver__, Mt(e);
|
|
703
703
|
}
|
|
704
704
|
};
|
|
705
|
-
function
|
|
706
|
-
e.disable ? (
|
|
705
|
+
function Pt(e, l) {
|
|
706
|
+
e.disable ? (l.disabled = !0, l.classList.add("disabled")) : l.style.display = "none";
|
|
707
707
|
}
|
|
708
|
-
const
|
|
708
|
+
const na = {
|
|
709
709
|
// 当指令绑定到元素时调用
|
|
710
|
-
mounted(e,
|
|
711
|
-
const
|
|
712
|
-
!d || d.length === 0 || (o.any ? d.some((u) =>
|
|
710
|
+
mounted(e, l) {
|
|
711
|
+
const a = Ht(), { value: t, modifiers: o } = l, d = typeof t == "string" ? t.split(/,/) : t ?? [];
|
|
712
|
+
!d || d.length === 0 || (o.any ? d.some((u) => a.hasRole(u)) || Pt(o, e) : d.every((u) => a.hasRole(u)) || Pt(o, e));
|
|
713
713
|
}
|
|
714
|
-
},
|
|
714
|
+
}, Ll = /* @__PURE__ */ z({
|
|
715
715
|
__name: "JaButton",
|
|
716
716
|
props: {
|
|
717
717
|
tooltip: {},
|
|
@@ -723,10 +723,10 @@ const la = {
|
|
|
723
723
|
}) },
|
|
724
724
|
tooltipPlacement: { default: "bottom" }
|
|
725
725
|
},
|
|
726
|
-
setup(e, { expose:
|
|
727
|
-
const
|
|
728
|
-
return
|
|
729
|
-
elButton:
|
|
726
|
+
setup(e, { expose: l }) {
|
|
727
|
+
const a = h({}), t = e, o = tt;
|
|
728
|
+
return l({
|
|
729
|
+
elButton: a
|
|
730
730
|
}), (d, u) => (b(), $(s(ke), {
|
|
731
731
|
placement: d.tooltipPlacement,
|
|
732
732
|
"append-to": "body"
|
|
@@ -737,7 +737,7 @@ const la = {
|
|
|
737
737
|
default: g(() => [
|
|
738
738
|
Y((b(), $(s(fe), K({
|
|
739
739
|
ref_key: "input",
|
|
740
|
-
ref:
|
|
740
|
+
ref: a
|
|
741
741
|
}, d.$attrs), ve({ _: 2 }, [
|
|
742
742
|
W(d.$slots, (n, c) => ({
|
|
743
743
|
name: c,
|
|
@@ -746,14 +746,14 @@ const la = {
|
|
|
746
746
|
])
|
|
747
747
|
}))
|
|
748
748
|
]), 1040)), [
|
|
749
|
-
[s(
|
|
749
|
+
[s(na), d.auth, d.authModifiers],
|
|
750
750
|
[s(o), void 0, d.shortcut]
|
|
751
751
|
])
|
|
752
752
|
]),
|
|
753
753
|
_: 3
|
|
754
754
|
}, 8, ["placement"]));
|
|
755
755
|
}
|
|
756
|
-
}), se = R(
|
|
756
|
+
}), se = R(Ll), Nl = /* @__PURE__ */ z({
|
|
757
757
|
__name: "JaDropdownButton",
|
|
758
758
|
props: {
|
|
759
759
|
tooltip: {},
|
|
@@ -762,10 +762,10 @@ const la = {
|
|
|
762
762
|
tooltipPlacement: { default: "top" },
|
|
763
763
|
type: { default: "default" }
|
|
764
764
|
},
|
|
765
|
-
setup(e, { expose:
|
|
766
|
-
const
|
|
767
|
-
|
|
768
|
-
elButton:
|
|
765
|
+
setup(e, { expose: l }) {
|
|
766
|
+
const a = h(), t = h(), o = e, d = tt;
|
|
767
|
+
l({
|
|
768
|
+
elButton: a,
|
|
769
769
|
elDropdown: t
|
|
770
770
|
});
|
|
771
771
|
function u(n) {
|
|
@@ -776,7 +776,7 @@ const la = {
|
|
|
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(Ot), K({
|
|
780
780
|
size: "default",
|
|
781
781
|
ref_key: "dropdown",
|
|
782
782
|
ref: t,
|
|
@@ -785,7 +785,7 @@ const la = {
|
|
|
785
785
|
default: g(() => [
|
|
786
786
|
Y((b(), $(s(fe), K({
|
|
787
787
|
ref_key: "input",
|
|
788
|
-
ref:
|
|
788
|
+
ref: a,
|
|
789
789
|
type: n.type,
|
|
790
790
|
size: "default"
|
|
791
791
|
}, n.$attrs), {
|
|
@@ -793,7 +793,7 @@ const la = {
|
|
|
793
793
|
G(ae(o.buttonText) + " ", 1),
|
|
794
794
|
w(s(ce), { class: "el-icon--right" }, {
|
|
795
795
|
default: g(() => [
|
|
796
|
-
w(s(
|
|
796
|
+
w(s(aa))
|
|
797
797
|
]),
|
|
798
798
|
_: 1
|
|
799
799
|
})
|
|
@@ -816,11 +816,11 @@ const la = {
|
|
|
816
816
|
_: 3
|
|
817
817
|
}, 8, ["placement"]));
|
|
818
818
|
}
|
|
819
|
-
}),
|
|
819
|
+
}), Jl = R(Nl), Ol = /* @__PURE__ */ z({
|
|
820
820
|
__name: "JaSwitch",
|
|
821
821
|
emits: ["change"],
|
|
822
|
-
setup(e, { expose:
|
|
823
|
-
const t = h(), o = M("aceFormModel"), d = M("aceFormItemProp"), u = M("aceFormValidator"), n =
|
|
822
|
+
setup(e, { expose: l, emit: a }) {
|
|
823
|
+
const t = h(), o = M("aceFormModel"), d = M("aceFormItemProp"), u = M("aceFormValidator"), n = a;
|
|
824
824
|
function c(r) {
|
|
825
825
|
u.removeFieldError(d), re(o.formData, d, p.value), n("change", r);
|
|
826
826
|
}
|
|
@@ -829,7 +829,7 @@ const la = {
|
|
|
829
829
|
p.value = x(o.formData, d);
|
|
830
830
|
}, {
|
|
831
831
|
deep: !0
|
|
832
|
-
}),
|
|
832
|
+
}), l({
|
|
833
833
|
focus: () => {
|
|
834
834
|
var r;
|
|
835
835
|
return (r = t.value) == null ? void 0 : r.focus();
|
|
@@ -839,7 +839,7 @@ const la = {
|
|
|
839
839
|
return (r = t.value) == null ? void 0 : r.blur();
|
|
840
840
|
},
|
|
841
841
|
elSwitch: t
|
|
842
|
-
}), (r, i) => (b(), $(s(
|
|
842
|
+
}), (r, i) => (b(), $(s(jt), K({
|
|
843
843
|
ref_key: "input",
|
|
844
844
|
ref: t,
|
|
845
845
|
modelValue: p.value,
|
|
@@ -854,27 +854,27 @@ const la = {
|
|
|
854
854
|
}))
|
|
855
855
|
]), 1040, ["modelValue"]));
|
|
856
856
|
}
|
|
857
|
-
}),
|
|
857
|
+
}), jl = R(Ol), xl = { style: { width: "100%" } }, ql = ["onClick"], ra = /* @__PURE__ */ z({
|
|
858
858
|
__name: "StringListInput",
|
|
859
859
|
props: {
|
|
860
860
|
modelValue: {},
|
|
861
861
|
size: {}
|
|
862
862
|
},
|
|
863
863
|
emits: ["update:modelValue", "change"],
|
|
864
|
-
setup(e, { emit:
|
|
864
|
+
setup(e, { emit: l }) {
|
|
865
865
|
var r;
|
|
866
|
-
const
|
|
866
|
+
const a = e, t = l;
|
|
867
867
|
function o(i) {
|
|
868
868
|
u.value.splice(i, 1);
|
|
869
869
|
}
|
|
870
870
|
function d() {
|
|
871
871
|
u.value.push({ v: "" });
|
|
872
872
|
}
|
|
873
|
-
const u = h(((r =
|
|
873
|
+
const u = h(((r = a.modelValue) == null ? void 0 : r.map((i) => ({ v: i }))) ?? [{
|
|
874
874
|
v: ""
|
|
875
875
|
}]);
|
|
876
876
|
let n = !1, c = !1;
|
|
877
|
-
|
|
877
|
+
xe(() => p(a.modelValue));
|
|
878
878
|
function p(i) {
|
|
879
879
|
if (c) {
|
|
880
880
|
c = !1;
|
|
@@ -882,7 +882,7 @@ const la = {
|
|
|
882
882
|
}
|
|
883
883
|
n = !0, i ? (u.value = i.map((m) => ({ v: m })), u.value.length == 0 && u.value.push({ v: "" })) : u.value = [{ v: "" }];
|
|
884
884
|
}
|
|
885
|
-
return T(() =>
|
|
885
|
+
return T(() => a.modelValue, (i) => {
|
|
886
886
|
p(i);
|
|
887
887
|
}), T(() => u.value, () => {
|
|
888
888
|
if (n) {
|
|
@@ -892,8 +892,8 @@ const la = {
|
|
|
892
892
|
c = !0;
|
|
893
893
|
const i = u.value.map((m) => m.v).filter((m) => m && m.length > 0);
|
|
894
894
|
t("update:modelValue", i), t("change", i);
|
|
895
|
-
}, { deep: !0 }), (i, m) => (b(), N("div",
|
|
896
|
-
w(s(
|
|
895
|
+
}, { deep: !0 }), (i, m) => (b(), N("div", xl, [
|
|
896
|
+
w(s(ht), {
|
|
897
897
|
direction: "vertical",
|
|
898
898
|
style: { "align-items": "stretch", width: "100%" }
|
|
899
899
|
}, {
|
|
@@ -918,11 +918,11 @@ const la = {
|
|
|
918
918
|
}, [
|
|
919
919
|
w(s(ce), null, {
|
|
920
920
|
default: g(() => [
|
|
921
|
-
w(s(
|
|
921
|
+
w(s(qe))
|
|
922
922
|
]),
|
|
923
923
|
_: 1
|
|
924
924
|
})
|
|
925
|
-
], 8,
|
|
925
|
+
], 8, ql), [
|
|
926
926
|
[he, _ < (((I = u.value) == null ? void 0 : I.length) ?? 0) - 1]
|
|
927
927
|
])
|
|
928
928
|
];
|
|
@@ -942,7 +942,7 @@ const la = {
|
|
|
942
942
|
}, [
|
|
943
943
|
w(s(ce), null, {
|
|
944
944
|
default: g(() => [
|
|
945
|
-
w(s(
|
|
945
|
+
w(s(Se))
|
|
946
946
|
]),
|
|
947
947
|
_: 1
|
|
948
948
|
})
|
|
@@ -961,29 +961,29 @@ const la = {
|
|
|
961
961
|
})
|
|
962
962
|
]));
|
|
963
963
|
}
|
|
964
|
-
}),
|
|
964
|
+
}), Gl = /* @__PURE__ */ z({
|
|
965
965
|
__name: "JaStringList",
|
|
966
966
|
emits: ["change"],
|
|
967
|
-
setup(e, { emit:
|
|
968
|
-
const
|
|
967
|
+
setup(e, { emit: l }) {
|
|
968
|
+
const a = M("aceFormModel"), t = M("aceFormItemProp"), o = M("aceFormValidator"), d = l;
|
|
969
969
|
function u(c) {
|
|
970
|
-
o.removeFieldError(t), re(
|
|
970
|
+
o.removeFieldError(t), re(a.formData, t, n.value), d("change", c);
|
|
971
971
|
}
|
|
972
|
-
const n = h(x(
|
|
973
|
-
return T(() =>
|
|
974
|
-
n.value = x(
|
|
972
|
+
const n = h(x(a.formData, t) ?? [""]);
|
|
973
|
+
return T(() => a.formData, () => {
|
|
974
|
+
n.value = x(a.formData, t) ?? [""];
|
|
975
975
|
}, {
|
|
976
976
|
deep: !0
|
|
977
|
-
}), (c, p) => (b(), $(
|
|
977
|
+
}), (c, p) => (b(), $(ra, K({
|
|
978
978
|
modelValue: n.value,
|
|
979
979
|
"onUpdate:modelValue": p[0] || (p[0] = (r) => n.value = r),
|
|
980
980
|
onChange: u
|
|
981
981
|
}, c.$attrs), null, 16, ["modelValue"]));
|
|
982
982
|
}
|
|
983
|
-
}),
|
|
983
|
+
}), Hl = R(Gl), Wl = R(ra), Kl = {
|
|
984
984
|
style: { width: "100%" },
|
|
985
985
|
class: "ja-number-list"
|
|
986
|
-
},
|
|
986
|
+
}, Yl = { class: "el-input-group__append" }, Ql = { class: "el-input-group__append" }, Xl = /* @__PURE__ */ z({
|
|
987
987
|
__name: "NumberListInput",
|
|
988
988
|
props: {
|
|
989
989
|
modelValue: {},
|
|
@@ -992,20 +992,20 @@ const la = {
|
|
|
992
992
|
size: {}
|
|
993
993
|
},
|
|
994
994
|
emits: ["update:modelValue", "change"],
|
|
995
|
-
setup(e, { emit:
|
|
995
|
+
setup(e, { emit: l }) {
|
|
996
996
|
var r;
|
|
997
|
-
const
|
|
997
|
+
const a = e, t = l;
|
|
998
998
|
function o(i) {
|
|
999
999
|
u.value.splice(i, 1);
|
|
1000
1000
|
}
|
|
1001
1001
|
function d() {
|
|
1002
1002
|
u.value.push({ v: 0 });
|
|
1003
1003
|
}
|
|
1004
|
-
const u = h(((r =
|
|
1004
|
+
const u = h(((r = a.modelValue) == null ? void 0 : r.map((i) => ({ v: i }))) ?? [{
|
|
1005
1005
|
v: 0
|
|
1006
1006
|
}]);
|
|
1007
1007
|
let n = !1, c = !1;
|
|
1008
|
-
|
|
1008
|
+
xe(() => p(a.modelValue));
|
|
1009
1009
|
function p(i) {
|
|
1010
1010
|
if (i) {
|
|
1011
1011
|
if (c) {
|
|
@@ -1015,7 +1015,7 @@ const la = {
|
|
|
1015
1015
|
n = !0, i ? (u.value = i.map((m) => ({ v: m })), u.value.length == 0 && u.value.push({ v: 0 })) : u.value = [{ v: 0 }];
|
|
1016
1016
|
}
|
|
1017
1017
|
}
|
|
1018
|
-
return T(() =>
|
|
1018
|
+
return T(() => a.modelValue, (i) => {
|
|
1019
1019
|
p(i);
|
|
1020
1020
|
}), T(() => u.value, () => {
|
|
1021
1021
|
if (n) {
|
|
@@ -1027,12 +1027,12 @@ const la = {
|
|
|
1027
1027
|
t("update:modelValue", i), t("change", i);
|
|
1028
1028
|
}, { deep: !0 }), (i, m) => {
|
|
1029
1029
|
const f = ye("el-tooltip");
|
|
1030
|
-
return b(), N("div",
|
|
1030
|
+
return b(), N("div", Kl, [
|
|
1031
1031
|
(b(!0), N(ne, null, W(u.value, (_, I) => (b(), N("div", {
|
|
1032
1032
|
class: "ja-input-box",
|
|
1033
1033
|
key: I
|
|
1034
1034
|
}, [
|
|
1035
|
-
w(s(
|
|
1035
|
+
w(s(Ye), {
|
|
1036
1036
|
modelValue: _.v,
|
|
1037
1037
|
"onUpdate:modelValue": (y) => _.v = y,
|
|
1038
1038
|
precision: i.precision,
|
|
@@ -1046,10 +1046,10 @@ const la = {
|
|
|
1046
1046
|
default: g(() => {
|
|
1047
1047
|
var y;
|
|
1048
1048
|
return [
|
|
1049
|
-
Y(j("div",
|
|
1049
|
+
Y(j("div", Yl, [
|
|
1050
1050
|
w(s(fe), {
|
|
1051
1051
|
link: "",
|
|
1052
|
-
icon: s(
|
|
1052
|
+
icon: s(qe),
|
|
1053
1053
|
onClick: (v) => o(I),
|
|
1054
1054
|
size: i.size
|
|
1055
1055
|
}, null, 8, ["icon", "onClick", "size"])
|
|
@@ -1067,12 +1067,12 @@ const la = {
|
|
|
1067
1067
|
default: g(() => {
|
|
1068
1068
|
var y;
|
|
1069
1069
|
return [
|
|
1070
|
-
Y(j("div",
|
|
1070
|
+
Y(j("div", Ql, [
|
|
1071
1071
|
w(s(fe), {
|
|
1072
1072
|
onClick: m[0] || (m[0] = (v) => d()),
|
|
1073
1073
|
size: i.size,
|
|
1074
1074
|
link: "",
|
|
1075
|
-
icon: s(
|
|
1075
|
+
icon: s(Se)
|
|
1076
1076
|
}, null, 8, ["size", "icon"])
|
|
1077
1077
|
], 512), [
|
|
1078
1078
|
[he, I === (((y = u.value) == null ? void 0 : y.length) ?? 0) - 1]
|
|
@@ -1085,29 +1085,29 @@ const la = {
|
|
|
1085
1085
|
]);
|
|
1086
1086
|
};
|
|
1087
1087
|
}
|
|
1088
|
-
}),
|
|
1088
|
+
}), sa = /* @__PURE__ */ pe(Xl, [["__scopeId", "data-v-a3fae0c2"]]), Zl = /* @__PURE__ */ z({
|
|
1089
1089
|
__name: "JaNumberList",
|
|
1090
1090
|
emits: ["change"],
|
|
1091
|
-
setup(e, { emit:
|
|
1092
|
-
const
|
|
1091
|
+
setup(e, { emit: l }) {
|
|
1092
|
+
const a = M("aceFormModel"), t = M("aceFormItemProp"), o = M("aceFormValidator"), d = l;
|
|
1093
1093
|
function u(c) {
|
|
1094
|
-
o.removeFieldError(t), re(
|
|
1094
|
+
o.removeFieldError(t), re(a.formData, t, n.value), d("change", c);
|
|
1095
1095
|
}
|
|
1096
|
-
const n = h(x(
|
|
1097
|
-
return T(() =>
|
|
1098
|
-
n.value = x(
|
|
1096
|
+
const n = h(x(a.formData, t) ?? [0]);
|
|
1097
|
+
return T(() => a.formData, () => {
|
|
1098
|
+
n.value = x(a.formData, t) ?? [0];
|
|
1099
1099
|
}, {
|
|
1100
1100
|
deep: !0
|
|
1101
|
-
}), (c, p) => (b(), $(
|
|
1101
|
+
}), (c, p) => (b(), $(sa, K({
|
|
1102
1102
|
modelValue: n.value,
|
|
1103
1103
|
"onUpdate:modelValue": p[0] || (p[0] = (r) => n.value = r),
|
|
1104
1104
|
onChange: u
|
|
1105
1105
|
}, c.$attrs), null, 16, ["modelValue"]));
|
|
1106
1106
|
}
|
|
1107
|
-
}),
|
|
1107
|
+
}), eo = R(Zl), to = R(sa), ao = {
|
|
1108
1108
|
style: { width: "100%" },
|
|
1109
1109
|
class: "ja-enum-list"
|
|
1110
|
-
},
|
|
1110
|
+
}, lo = { class: "el-input-group__append" }, oo = { class: "el-input-group__append" }, no = /* @__PURE__ */ z({
|
|
1111
1111
|
__name: "EnumListInput",
|
|
1112
1112
|
props: {
|
|
1113
1113
|
modelValue: {},
|
|
@@ -1115,20 +1115,20 @@ const la = {
|
|
|
1115
1115
|
size: {}
|
|
1116
1116
|
},
|
|
1117
1117
|
emits: ["update:modelValue", "change"],
|
|
1118
|
-
setup(e, { emit:
|
|
1118
|
+
setup(e, { emit: l }) {
|
|
1119
1119
|
var r;
|
|
1120
|
-
const
|
|
1120
|
+
const a = e, t = l;
|
|
1121
1121
|
function o(i) {
|
|
1122
1122
|
u.value.splice(i, 1);
|
|
1123
1123
|
}
|
|
1124
1124
|
function d() {
|
|
1125
1125
|
u.value.push({ v: "" });
|
|
1126
1126
|
}
|
|
1127
|
-
const u = h(((r =
|
|
1127
|
+
const u = h(((r = a.modelValue) == null ? void 0 : r.map((i) => ({ v: i }))) ?? [{
|
|
1128
1128
|
v: ""
|
|
1129
1129
|
}]);
|
|
1130
1130
|
let n = !1, c = !1;
|
|
1131
|
-
|
|
1131
|
+
xe(() => p(a.modelValue));
|
|
1132
1132
|
function p(i) {
|
|
1133
1133
|
if (c) {
|
|
1134
1134
|
c = !1;
|
|
@@ -1136,7 +1136,7 @@ const la = {
|
|
|
1136
1136
|
}
|
|
1137
1137
|
n = !0, u.value = i.map((m) => ({ v: m })), u.value.length == 0 && u.value.push({ v: "" });
|
|
1138
1138
|
}
|
|
1139
|
-
return T(() =>
|
|
1139
|
+
return T(() => a.modelValue, (i) => {
|
|
1140
1140
|
p(i);
|
|
1141
1141
|
}), T(() => u.value, () => {
|
|
1142
1142
|
if (n) {
|
|
@@ -1148,21 +1148,21 @@ const la = {
|
|
|
1148
1148
|
t("update:modelValue", i), t("change", i);
|
|
1149
1149
|
}, { deep: !0 }), (i, m) => {
|
|
1150
1150
|
const f = ye("el-option"), _ = ye("el-tooltip");
|
|
1151
|
-
return b(), N("div",
|
|
1151
|
+
return b(), N("div", ao, [
|
|
1152
1152
|
(b(!0), N(ne, null, W(u.value, (I, y) => (b(), N("div", {
|
|
1153
1153
|
class: "ja-input-box",
|
|
1154
1154
|
key: y
|
|
1155
1155
|
}, [
|
|
1156
|
-
w(s(
|
|
1156
|
+
w(s(De), {
|
|
1157
1157
|
modelValue: I.v,
|
|
1158
1158
|
"onUpdate:modelValue": (v) => I.v = v,
|
|
1159
1159
|
size: i.size
|
|
1160
1160
|
}, {
|
|
1161
1161
|
default: g(() => [
|
|
1162
|
-
(b(!0), N(ne, null, W(Object.keys(
|
|
1162
|
+
(b(!0), N(ne, null, W(Object.keys(a.enumValues), (v) => (b(), $(f, {
|
|
1163
1163
|
key: v,
|
|
1164
1164
|
label: v,
|
|
1165
|
-
value:
|
|
1165
|
+
value: a.enumValues[v]
|
|
1166
1166
|
}, null, 8, ["label", "value"]))), 128))
|
|
1167
1167
|
]),
|
|
1168
1168
|
_: 2
|
|
@@ -1174,10 +1174,10 @@ const la = {
|
|
|
1174
1174
|
default: g(() => {
|
|
1175
1175
|
var v;
|
|
1176
1176
|
return [
|
|
1177
|
-
Y(j("div",
|
|
1177
|
+
Y(j("div", lo, [
|
|
1178
1178
|
w(s(fe), {
|
|
1179
1179
|
link: "",
|
|
1180
|
-
icon: s(
|
|
1180
|
+
icon: s(qe),
|
|
1181
1181
|
onClick: (S) => o(y),
|
|
1182
1182
|
size: i.size
|
|
1183
1183
|
}, null, 8, ["icon", "onClick", "size"])
|
|
@@ -1195,12 +1195,12 @@ const la = {
|
|
|
1195
1195
|
default: g(() => {
|
|
1196
1196
|
var v;
|
|
1197
1197
|
return [
|
|
1198
|
-
Y(j("div",
|
|
1198
|
+
Y(j("div", oo, [
|
|
1199
1199
|
w(s(fe), {
|
|
1200
1200
|
onClick: m[0] || (m[0] = (S) => d()),
|
|
1201
1201
|
size: i.size,
|
|
1202
1202
|
link: "",
|
|
1203
|
-
icon: s(
|
|
1203
|
+
icon: s(Se)
|
|
1204
1204
|
}, null, 8, ["size", "icon"])
|
|
1205
1205
|
], 512), [
|
|
1206
1206
|
[he, y === (((v = u.value) == null ? void 0 : v.length) ?? 0) - 1]
|
|
@@ -1213,33 +1213,33 @@ const la = {
|
|
|
1213
1213
|
]);
|
|
1214
1214
|
};
|
|
1215
1215
|
}
|
|
1216
|
-
}),
|
|
1216
|
+
}), ua = /* @__PURE__ */ pe(no, [["__scopeId", "data-v-49923459"]]), ro = /* @__PURE__ */ z({
|
|
1217
1217
|
__name: "JaEnumList",
|
|
1218
1218
|
props: {
|
|
1219
1219
|
enumValues: {}
|
|
1220
1220
|
},
|
|
1221
1221
|
emits: ["change"],
|
|
1222
|
-
setup(e, { emit:
|
|
1223
|
-
const
|
|
1222
|
+
setup(e, { emit: l }) {
|
|
1223
|
+
const a = M("aceFormModel"), t = M("aceFormItemProp"), o = M("aceFormValidator"), d = l;
|
|
1224
1224
|
function u(c) {
|
|
1225
|
-
o.removeFieldError(t), re(
|
|
1225
|
+
o.removeFieldError(t), re(a.formData, t, n.value), d("change", c);
|
|
1226
1226
|
}
|
|
1227
|
-
const n = h(x(
|
|
1228
|
-
return T(() =>
|
|
1229
|
-
n.value = x(
|
|
1227
|
+
const n = h(x(a.formData, t) ?? [""]);
|
|
1228
|
+
return T(() => a.formData, () => {
|
|
1229
|
+
n.value = x(a.formData, t) ?? [""];
|
|
1230
1230
|
}, {
|
|
1231
1231
|
deep: !0
|
|
1232
|
-
}), (c, p) => (b(), $(
|
|
1232
|
+
}), (c, p) => (b(), $(ua, 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: u
|
|
1237
1237
|
}, c.$attrs), null, 16, ["modelValue", "enum-values"]));
|
|
1238
1238
|
}
|
|
1239
|
-
}),
|
|
1239
|
+
}), so = R(ro), uo = R(ua), io = {
|
|
1240
1240
|
style: { width: "100%" },
|
|
1241
1241
|
class: "ja-enum-list"
|
|
1242
|
-
},
|
|
1242
|
+
}, co = { class: "splitter" }, po = { class: "el-input-group__append" }, mo = { class: "el-input-group__append" }, fo = /* @__PURE__ */ z({
|
|
1243
1243
|
__name: "MapItemListInput",
|
|
1244
1244
|
props: {
|
|
1245
1245
|
modelValue: {},
|
|
@@ -1248,8 +1248,8 @@ const la = {
|
|
|
1248
1248
|
size: {}
|
|
1249
1249
|
},
|
|
1250
1250
|
emits: ["update:modelValue", "change"],
|
|
1251
|
-
setup(e, { emit:
|
|
1252
|
-
const
|
|
1251
|
+
setup(e, { emit: l }) {
|
|
1252
|
+
const a = e, t = l;
|
|
1253
1253
|
function o(f) {
|
|
1254
1254
|
var _;
|
|
1255
1255
|
(_ = u.value) == null || _.splice(f, 1);
|
|
@@ -1261,40 +1261,40 @@ const la = {
|
|
|
1261
1261
|
const u = h([]);
|
|
1262
1262
|
let n = !1, c = !1, p = h(), r = h({});
|
|
1263
1263
|
function i() {
|
|
1264
|
-
switch (console.log("map item value comp type:",
|
|
1264
|
+
switch (console.log("map item value comp type:", a.valueType), a.valueType) {
|
|
1265
1265
|
case "String":
|
|
1266
1266
|
p.value = we, r.value = {};
|
|
1267
1267
|
break;
|
|
1268
1268
|
case "Integer":
|
|
1269
1269
|
case "Long":
|
|
1270
|
-
p.value =
|
|
1270
|
+
p.value = Ye;
|
|
1271
1271
|
break;
|
|
1272
1272
|
case "Decimal":
|
|
1273
|
-
p.value =
|
|
1273
|
+
p.value = Ye, r.value = {
|
|
1274
1274
|
precision: 2,
|
|
1275
1275
|
step: 0.1
|
|
1276
1276
|
};
|
|
1277
1277
|
break;
|
|
1278
1278
|
case "Enum":
|
|
1279
|
-
p.value =
|
|
1279
|
+
p.value = De;
|
|
1280
1280
|
break;
|
|
1281
1281
|
case "Boolean":
|
|
1282
|
-
p.value =
|
|
1282
|
+
p.value = jt;
|
|
1283
1283
|
break;
|
|
1284
1284
|
case "DATE":
|
|
1285
|
-
p.value =
|
|
1285
|
+
p.value = ut, r.value = {
|
|
1286
1286
|
type: "date"
|
|
1287
1287
|
};
|
|
1288
1288
|
break;
|
|
1289
1289
|
case "TIMESTAMP":
|
|
1290
|
-
p.value =
|
|
1290
|
+
p.value = ut, r.value = {
|
|
1291
1291
|
type: "datetime"
|
|
1292
1292
|
};
|
|
1293
1293
|
break;
|
|
1294
1294
|
}
|
|
1295
1295
|
}
|
|
1296
|
-
|
|
1297
|
-
m(
|
|
1296
|
+
xe(() => {
|
|
1297
|
+
m(a.modelValue), i();
|
|
1298
1298
|
});
|
|
1299
1299
|
function m(f) {
|
|
1300
1300
|
if (c) {
|
|
@@ -1308,7 +1308,7 @@ const la = {
|
|
|
1308
1308
|
} else
|
|
1309
1309
|
u.value = [{ k: "" }];
|
|
1310
1310
|
}
|
|
1311
|
-
return T(() =>
|
|
1311
|
+
return T(() => a.modelValue, (f) => {
|
|
1312
1312
|
m(f);
|
|
1313
1313
|
}, {
|
|
1314
1314
|
deep: !0
|
|
@@ -1321,11 +1321,11 @@ const la = {
|
|
|
1321
1321
|
c = !0;
|
|
1322
1322
|
const f = (_ = u.value) == null ? void 0 : _.filter((I) => I.k && I.v).reduce((I, y) => (I[y.k] = y.v, I), {});
|
|
1323
1323
|
t("update:modelValue", f), t("change", f);
|
|
1324
|
-
}, { deep: !0 }), T(() =>
|
|
1324
|
+
}, { deep: !0 }), T(() => a.valueType, () => {
|
|
1325
1325
|
i();
|
|
1326
1326
|
}), (f, _) => {
|
|
1327
1327
|
const I = ye("el-text"), y = ye("el-option"), v = ye("el-tooltip");
|
|
1328
|
-
return b(), N("div",
|
|
1328
|
+
return b(), N("div", io, [
|
|
1329
1329
|
(b(!0), N(ne, null, W(u.value, (S, P) => (b(), N("div", {
|
|
1330
1330
|
class: "ja-input-box",
|
|
1331
1331
|
key: P
|
|
@@ -1336,7 +1336,7 @@ const la = {
|
|
|
1336
1336
|
size: f.size,
|
|
1337
1337
|
placeholder: "键"
|
|
1338
1338
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "size"]),
|
|
1339
|
-
j("div",
|
|
1339
|
+
j("div", co, [
|
|
1340
1340
|
w(I, null, {
|
|
1341
1341
|
default: g(() => _[1] || (_[1] = [
|
|
1342
1342
|
G(":")
|
|
@@ -1345,17 +1345,17 @@ const la = {
|
|
|
1345
1345
|
__: [1]
|
|
1346
1346
|
})
|
|
1347
1347
|
]),
|
|
1348
|
-
(b(), $(
|
|
1348
|
+
(b(), $(La(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
|
-
|
|
1355
|
+
a.valueType == "Enum" ? (b(!0), N(ne, { key: 0 }, W(Object.keys(a.enumValues ?? {}), (k) => (b(), $(y, {
|
|
1356
1356
|
key: k,
|
|
1357
1357
|
label: k,
|
|
1358
|
-
value:
|
|
1358
|
+
value: a.enumValues ? a.enumValues[k] : ""
|
|
1359
1359
|
}, null, 8, ["label", "value"]))), 128)) : de("", !0)
|
|
1360
1360
|
]),
|
|
1361
1361
|
_: 2
|
|
@@ -1367,10 +1367,10 @@ const la = {
|
|
|
1367
1367
|
default: g(() => {
|
|
1368
1368
|
var k;
|
|
1369
1369
|
return [
|
|
1370
|
-
Y(j("div",
|
|
1370
|
+
Y(j("div", po, [
|
|
1371
1371
|
w(s(fe), {
|
|
1372
1372
|
link: "",
|
|
1373
|
-
icon: s(
|
|
1373
|
+
icon: s(qe),
|
|
1374
1374
|
onClick: (C) => o(P),
|
|
1375
1375
|
size: f.size
|
|
1376
1376
|
}, null, 8, ["icon", "onClick", "size"])
|
|
@@ -1388,12 +1388,12 @@ const la = {
|
|
|
1388
1388
|
default: g(() => {
|
|
1389
1389
|
var k;
|
|
1390
1390
|
return [
|
|
1391
|
-
Y(j("div",
|
|
1391
|
+
Y(j("div", mo, [
|
|
1392
1392
|
w(s(fe), {
|
|
1393
1393
|
onClick: _[0] || (_[0] = (C) => d()),
|
|
1394
1394
|
size: f.size,
|
|
1395
1395
|
link: "",
|
|
1396
|
-
icon: s(
|
|
1396
|
+
icon: s(Se)
|
|
1397
1397
|
}, null, 8, ["size", "icon"])
|
|
1398
1398
|
], 512), [
|
|
1399
1399
|
[he, P === (((k = u.value) == null ? void 0 : k.length) ?? 0) - 1]
|
|
@@ -1406,64 +1406,64 @@ const la = {
|
|
|
1406
1406
|
]);
|
|
1407
1407
|
};
|
|
1408
1408
|
}
|
|
1409
|
-
}),
|
|
1409
|
+
}), ia = /* @__PURE__ */ pe(fo, [["__scopeId", "data-v-bebb510c"]]), vo = /* @__PURE__ */ z({
|
|
1410
1410
|
__name: "JaMapItemList",
|
|
1411
1411
|
emits: ["change"],
|
|
1412
|
-
setup(e, { emit:
|
|
1413
|
-
const
|
|
1412
|
+
setup(e, { emit: l }) {
|
|
1413
|
+
const a = M("aceFormModel"), t = M("aceFormItemProp"), o = M("aceFormValidator"), d = l;
|
|
1414
1414
|
function u(c) {
|
|
1415
|
-
o.removeFieldError(t), re(
|
|
1415
|
+
o.removeFieldError(t), re(a.formData, t, n.value), d("change", c);
|
|
1416
1416
|
}
|
|
1417
|
-
const n = h(x(
|
|
1418
|
-
return T(() =>
|
|
1419
|
-
n.value = x(
|
|
1420
|
-
}), (c, p) => (b(), $(
|
|
1417
|
+
const n = h(x(a.formData, t) ?? { "": "" });
|
|
1418
|
+
return T(() => a.formData, () => {
|
|
1419
|
+
n.value = x(a.formData, t) ?? { "": "" };
|
|
1420
|
+
}), (c, p) => (b(), $(ia, K({
|
|
1421
1421
|
modelValue: n.value,
|
|
1422
1422
|
"onUpdate:modelValue": p[0] || (p[0] = (r) => n.value = r),
|
|
1423
1423
|
onChange: u
|
|
1424
1424
|
}, c.$attrs), null, 16, ["modelValue"]));
|
|
1425
1425
|
}
|
|
1426
|
-
}),
|
|
1427
|
-
function
|
|
1426
|
+
}), go = R(vo), ho = R(ia);
|
|
1427
|
+
function yo(e, l) {
|
|
1428
1428
|
return {
|
|
1429
1429
|
...e,
|
|
1430
|
-
label: typeof
|
|
1430
|
+
label: typeof l == "string" && typeof e[l] == "string" ? e[l] : "",
|
|
1431
1431
|
children: []
|
|
1432
1432
|
};
|
|
1433
1433
|
}
|
|
1434
|
-
function
|
|
1435
|
-
const
|
|
1434
|
+
function Ue(e, l) {
|
|
1435
|
+
const a = {}, t = [];
|
|
1436
1436
|
for (let o = 0; o < e.length; o++) {
|
|
1437
|
-
const d = e[o], u =
|
|
1438
|
-
|
|
1437
|
+
const d = e[o], u = yo(d, l);
|
|
1438
|
+
a[d.id] = u, d.parentId ? a[d.parentId].children.push(u) : t.push(u);
|
|
1439
1439
|
}
|
|
1440
1440
|
return t;
|
|
1441
1441
|
}
|
|
1442
|
-
const
|
|
1442
|
+
const _t = "-1", da = "-100", bo = /* @__PURE__ */ z({
|
|
1443
1443
|
__name: "DepartmentPicker",
|
|
1444
1444
|
props: /* @__PURE__ */ Q({
|
|
1445
1445
|
realmId: {},
|
|
1446
1446
|
modelValue: {},
|
|
1447
1447
|
size: { default: "default" },
|
|
1448
1448
|
showNodeAll: { type: Boolean, default: !1 },
|
|
1449
|
-
allId: { default:
|
|
1449
|
+
allId: { default: _t },
|
|
1450
1450
|
multiple: { type: Boolean, default: !1 }
|
|
1451
1451
|
}, {
|
|
1452
1452
|
modelValue: {},
|
|
1453
1453
|
modelModifiers: {}
|
|
1454
1454
|
}),
|
|
1455
1455
|
emits: /* @__PURE__ */ Q(["change"], ["update:modelValue"]),
|
|
1456
|
-
setup(e, { emit:
|
|
1457
|
-
const
|
|
1456
|
+
setup(e, { emit: l }) {
|
|
1457
|
+
const a = le(), t = Wt(a), o = e, d = l, u = ue(e, "modelValue");
|
|
1458
1458
|
if (o.multiple && !Array.isArray(u.value))
|
|
1459
1459
|
throw new Error("部门选择器设置multiple为true,但是绑定的v-model值是单值");
|
|
1460
1460
|
if (!o.multiple && Array.isArray(u.value))
|
|
1461
1461
|
throw new Error("部门选择器未设置multiple为true,但是绑定的v-model值是数组");
|
|
1462
|
-
const n =
|
|
1462
|
+
const n = je({
|
|
1463
1463
|
department: []
|
|
1464
1464
|
}), c = () => {
|
|
1465
|
-
o.realmId && t.getNormal(o.realmId ?? "0",
|
|
1466
|
-
n.department = [...
|
|
1465
|
+
o.realmId && t.getNormal(o.realmId ?? "0", Kt.BAT).then((r) => {
|
|
1466
|
+
n.department = [...Ue(r, "name")], o.showNodeAll && n.department.unshift({
|
|
1467
1467
|
label: "所有部门",
|
|
1468
1468
|
id: o.allId,
|
|
1469
1469
|
children: [],
|
|
@@ -1482,7 +1482,7 @@ const bt = "-1", ua = "-100", go = /* @__PURE__ */ z({
|
|
|
1482
1482
|
() => {
|
|
1483
1483
|
c();
|
|
1484
1484
|
}
|
|
1485
|
-
), (r, i) => (b(), $(s(
|
|
1485
|
+
), (r, i) => (b(), $(s(yt), K({
|
|
1486
1486
|
style: { width: "100%" },
|
|
1487
1487
|
data: n.department,
|
|
1488
1488
|
size: o.size,
|
|
@@ -1501,14 +1501,14 @@ const bt = "-1", ua = "-100", go = /* @__PURE__ */ z({
|
|
|
1501
1501
|
teleported: ""
|
|
1502
1502
|
}), null, 16, ["data", "size", "current-node-key", "modelValue", "multiple"]));
|
|
1503
1503
|
}
|
|
1504
|
-
}),
|
|
1505
|
-
function
|
|
1506
|
-
|
|
1504
|
+
}), wo = R(bo), ca = h(Date.now());
|
|
1505
|
+
function _o() {
|
|
1506
|
+
ca.value = Date.now();
|
|
1507
1507
|
}
|
|
1508
|
-
function
|
|
1509
|
-
return
|
|
1508
|
+
function pa() {
|
|
1509
|
+
return ca;
|
|
1510
1510
|
}
|
|
1511
|
-
const
|
|
1511
|
+
const nt = `data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1280.000000pt' height='1248.000000pt' viewBox='-384 -374 2048 2048' preserveAspectRatio='xMidYMid meet'%3E%3Cg transform='translate(0.000000,1248.000000) scale(0.100000,-0.100000)'
|
|
1512
1512
|
fill='%23fff' stroke='none'%3E%3Cpath d='M6005 12474 c-22 -2 -89 -9 -149 -14 -542 -53 -1087 -253 -1556 -571
|
|
1513
1513
|
-1089 -738 -1659 -2029 -1470 -3331 117 -802 507 -1518 1129 -2075 454 -406
|
|
1514
1514
|
1057 -697 1666 -802 220 -39 317 -46 595 -46 278 0 375 7 595 46 1218 211
|
|
@@ -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`, ko = /* @__PURE__ */ z({
|
|
1525
1525
|
__name: "JaAvatar",
|
|
1526
1526
|
props: {
|
|
1527
1527
|
userId: {},
|
|
@@ -1532,23 +1532,23 @@ 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
|
|
1536
|
-
t.value = !0,
|
|
1537
|
-
await
|
|
1535
|
+
const l = e, a = pa(), t = h(!1), o = h(), d = h();
|
|
1536
|
+
t.value = !0, Xe(async () => {
|
|
1537
|
+
await Ce();
|
|
1538
1538
|
});
|
|
1539
1539
|
const u = ge(
|
|
1540
1540
|
() => {
|
|
1541
|
-
if (!(t.value &&
|
|
1542
|
-
return
|
|
1543
|
-
if (
|
|
1544
|
-
const c = "/ace-app-service/avatar/" +
|
|
1545
|
-
return window.appDescriptor.env.isDevMode() ? new URL("/ace" + c, location.origin).toString() + "?t=" +
|
|
1541
|
+
if (!(t.value && l.hasAvatar && !l.doNotLoadAvatar))
|
|
1542
|
+
return l.firstName ? "" : nt;
|
|
1543
|
+
if (l.userId && l.userId.length > 0) {
|
|
1544
|
+
const c = "/ace-app-service/avatar/" + l.userId;
|
|
1545
|
+
return window.appDescriptor.env.isDevMode() ? new URL("/ace" + c, location.origin).toString() + "?t=" + a.value.toString() : new URL(c, location.origin).toString() + "?t=" + a.value.toString();
|
|
1546
1546
|
}
|
|
1547
|
-
if (
|
|
1548
|
-
const c = "/ace-app-service/avatar/" +
|
|
1549
|
-
return window.appDescriptor.env.isDevMode() ? new URL("/ace" + c, location.origin).toString() + "?t=" +
|
|
1547
|
+
if (l.realm && l.realm.length > 0 && l.username && l.username.length > 0) {
|
|
1548
|
+
const c = "/ace-app-service/avatar/" + l.realm + "/" + l.username;
|
|
1549
|
+
return window.appDescriptor.env.isDevMode() ? new URL("/ace" + c, location.origin).toString() + "?t=" + a.value.toString() : new URL(c, location.origin).toString() + "?t=" + a.value.toString();
|
|
1550
1550
|
}
|
|
1551
|
-
return
|
|
1551
|
+
return l.firstName ? "" : nt;
|
|
1552
1552
|
}
|
|
1553
1553
|
);
|
|
1554
1554
|
function n(c) {
|
|
@@ -1557,34 +1557,34 @@ c-58 -10 -181 -38 -275 -61 -807 -204 -1528 -616 -2120 -1210 -726 -728 -1170
|
|
|
1557
1557
|
let r = ((i = o.value) == null ? void 0 : i.$el.clientWidth) / 2.8;
|
|
1558
1558
|
c.style.fontSize = r + "px";
|
|
1559
1559
|
}
|
|
1560
|
-
return
|
|
1561
|
-
}), T(d, () => n(d.value)), (c, p) => (b(), $(s(
|
|
1560
|
+
return Ae(() => {
|
|
1561
|
+
}), T(d, () => n(d.value)), (c, p) => (b(), $(s(ja), K({ src: u.value }, c.$attrs, {
|
|
1562
1562
|
ref_key: "avatar",
|
|
1563
1563
|
ref: o,
|
|
1564
1564
|
class: "ja-avatar"
|
|
1565
1565
|
}), {
|
|
1566
1566
|
default: g(() => [
|
|
1567
|
-
|
|
1567
|
+
l.firstName && l.firstName.length > 0 ? (b(), N("span", {
|
|
1568
1568
|
key: 0,
|
|
1569
1569
|
class: "user-name-avatar",
|
|
1570
1570
|
ref_key: "usernameSpan",
|
|
1571
1571
|
ref: d
|
|
1572
|
-
}, ae(c.firstName), 513)) : (b(), $(s(
|
|
1572
|
+
}, ae(c.firstName), 513)) : (b(), $(s(xa), {
|
|
1573
1573
|
key: 1,
|
|
1574
1574
|
style: { height: "100%" },
|
|
1575
|
-
src: s(
|
|
1575
|
+
src: s(nt),
|
|
1576
1576
|
alt: "用户头像"
|
|
1577
1577
|
}, null, 8, ["src"]))
|
|
1578
1578
|
]),
|
|
1579
1579
|
_: 1
|
|
1580
1580
|
}, 16, ["src"]));
|
|
1581
1581
|
}
|
|
1582
|
-
}),
|
|
1583
|
-
let
|
|
1584
|
-
function
|
|
1585
|
-
return
|
|
1582
|
+
}), Vo = /* @__PURE__ */ pe(ko, [["__scopeId", "data-v-575c2d3a"]]), ct = R(Vo);
|
|
1583
|
+
let rt;
|
|
1584
|
+
function Io() {
|
|
1585
|
+
return rt || (rt = le()), rt;
|
|
1586
1586
|
}
|
|
1587
|
-
const
|
|
1587
|
+
const Co = { class: "portrait" }, $o = { class: "user-info" }, Ao = { class: "dropdown" }, Do = { class: "header" }, Eo = { class: "tools" }, So = { style: { margin: "0", "font-weight": "600" } }, To = { style: { margin: "0", "font-size": "14px", color: "var(--el-color-info-light-3)" } }, Fo = { style: { margin: "0" } }, Mo = /* @__PURE__ */ z({
|
|
1588
1588
|
__name: "UserInfoTag",
|
|
1589
1589
|
props: {
|
|
1590
1590
|
closable: { type: Boolean, default: !1 },
|
|
@@ -1597,8 +1597,8 @@ const ko = { class: "portrait" }, Vo = { class: "user-info" }, Io = { class: "dr
|
|
|
1597
1597
|
placement: { default: "bottom" }
|
|
1598
1598
|
},
|
|
1599
1599
|
emits: ["closed"],
|
|
1600
|
-
setup(e, { emit:
|
|
1601
|
-
const
|
|
1600
|
+
setup(e, { emit: l }) {
|
|
1601
|
+
const a = {
|
|
1602
1602
|
primary: "user-info-tag--root theme-primary",
|
|
1603
1603
|
success: "user-info-tag--root theme-success",
|
|
1604
1604
|
warning: "user-info-tag--root theme-warning",
|
|
@@ -1613,9 +1613,9 @@ const ko = { class: "portrait" }, Vo = { class: "user-info" }, Io = { 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 d =
|
|
1617
|
-
const c = h(!1), p = h(!1), r =
|
|
1618
|
-
|
|
1616
|
+
let d = Io(), u = _e(d), n = bt(d);
|
|
1617
|
+
const c = h(!1), p = h(!1), r = l;
|
|
1618
|
+
Ae(() => {
|
|
1619
1619
|
d = void 0, u = void 0, n = void 0;
|
|
1620
1620
|
});
|
|
1621
1621
|
function i() {
|
|
@@ -1648,7 +1648,7 @@ const ko = { class: "portrait" }, Vo = { class: "user-info" }, Io = { 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 (y, v) => (b(), $(s(
|
|
1651
|
+
return (y, v) => (b(), $(s(xt), {
|
|
1652
1652
|
width: "auto",
|
|
1653
1653
|
"hide-after": 200,
|
|
1654
1654
|
onBeforeEnter: i,
|
|
@@ -1658,10 +1658,10 @@ const ko = { class: "portrait" }, Vo = { class: "user-info" }, Io = { class: "dr
|
|
|
1658
1658
|
}, {
|
|
1659
1659
|
reference: g(() => [
|
|
1660
1660
|
j("div", {
|
|
1661
|
-
class:
|
|
1661
|
+
class: We(a[t.theme])
|
|
1662
1662
|
}, [
|
|
1663
|
-
j("div",
|
|
1664
|
-
w(s(
|
|
1663
|
+
j("div", Co, [
|
|
1664
|
+
w(s(ct), {
|
|
1665
1665
|
size: 24,
|
|
1666
1666
|
"user-id": y.userId,
|
|
1667
1667
|
realm: y.realm,
|
|
@@ -1669,7 +1669,7 @@ const ko = { class: "portrait" }, Vo = { class: "user-info" }, Io = { 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(y.fullName) + " ", 1),
|
|
1674
1674
|
y.closable ? (b(), N("div", {
|
|
1675
1675
|
key: 0,
|
|
@@ -1678,7 +1678,7 @@ const ko = { class: "portrait" }, Vo = { class: "user-info" }, Io = { class: "dr
|
|
|
1678
1678
|
}, [
|
|
1679
1679
|
w(s(ce), { size: 10 }, {
|
|
1680
1680
|
default: g(() => [
|
|
1681
|
-
w(s(
|
|
1681
|
+
w(s(nl))
|
|
1682
1682
|
]),
|
|
1683
1683
|
_: 1
|
|
1684
1684
|
})
|
|
@@ -1689,9 +1689,9 @@ const ko = { class: "portrait" }, Vo = { class: "user-info" }, Io = { class: "dr
|
|
|
1689
1689
|
default: g(() => {
|
|
1690
1690
|
var S, P, k, C, F, q, Z;
|
|
1691
1691
|
return [
|
|
1692
|
-
Y((b(), N("div",
|
|
1693
|
-
j("div",
|
|
1694
|
-
w(s(
|
|
1692
|
+
Y((b(), N("div", Ao, [
|
|
1693
|
+
j("div", Do, [
|
|
1694
|
+
w(s(ct), {
|
|
1695
1695
|
"user-id": y.userId,
|
|
1696
1696
|
realm: y.realm,
|
|
1697
1697
|
username: y.username,
|
|
@@ -1699,7 +1699,7 @@ const ko = { class: "portrait" }, Vo = { class: "user-info" }, Io = { 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", Eo, [
|
|
1703
1703
|
w(s(ke), {
|
|
1704
1704
|
content: c.value ? "取消常用人员" : "设置为常用人员"
|
|
1705
1705
|
}, {
|
|
@@ -1711,7 +1711,7 @@ const ko = { class: "portrait" }, Vo = { class: "user-info" }, Io = { class: "dr
|
|
|
1711
1711
|
size: 16
|
|
1712
1712
|
}, {
|
|
1713
1713
|
default: g(() => [
|
|
1714
|
-
w(s(
|
|
1714
|
+
w(s(la))
|
|
1715
1715
|
]),
|
|
1716
1716
|
_: 1
|
|
1717
1717
|
})) : (b(), $(s(ce), {
|
|
@@ -1720,7 +1720,7 @@ const ko = { class: "portrait" }, Vo = { class: "user-info" }, Io = { class: "dr
|
|
|
1720
1720
|
size: 16
|
|
1721
1721
|
}, {
|
|
1722
1722
|
default: g(() => [
|
|
1723
|
-
w(s(
|
|
1723
|
+
w(s(ol))
|
|
1724
1724
|
]),
|
|
1725
1725
|
_: 1
|
|
1726
1726
|
}))
|
|
@@ -1730,10 +1730,10 @@ const ko = { class: "portrait" }, Vo = { class: "user-info" }, Io = { class: "dr
|
|
|
1730
1730
|
])
|
|
1731
1731
|
]),
|
|
1732
1732
|
j("div", null, [
|
|
1733
|
-
j("p",
|
|
1734
|
-
j("p",
|
|
1733
|
+
j("p", So, ae(y.fullName), 1),
|
|
1734
|
+
j("p", To, " @" + ae(((k = (P = o.value) == null ? void 0 : P.department) == null ? void 0 : k.name) ?? "无归属部门"), 1)
|
|
1735
1735
|
]),
|
|
1736
|
-
j("p",
|
|
1736
|
+
j("p", Fo, [
|
|
1737
1737
|
v[4] || (v[4] = j("span", { class: "label" }, "手机:", -1)),
|
|
1738
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)),
|
|
@@ -1742,95 +1742,95 @@ const ko = { class: "portrait" }, Vo = { class: "user-info" }, Io = { class: "dr
|
|
|
1742
1742
|
])
|
|
1743
1743
|
])), [
|
|
1744
1744
|
[he, p.value],
|
|
1745
|
-
[s(
|
|
1745
|
+
[s(Ee), !!s(u)]
|
|
1746
1746
|
])
|
|
1747
1747
|
];
|
|
1748
1748
|
}),
|
|
1749
1749
|
_: 1
|
|
1750
1750
|
}, 8, ["placement", "visible"]));
|
|
1751
1751
|
}
|
|
1752
|
-
}),
|
|
1753
|
-
function
|
|
1754
|
-
var
|
|
1755
|
-
return e != null && (
|
|
1752
|
+
}), Po = /* @__PURE__ */ pe(Mo, [["__scopeId", "data-v-51ad1216"]]), at = R(Po);
|
|
1753
|
+
function Qe(e) {
|
|
1754
|
+
var l = typeof e;
|
|
1755
|
+
return e != null && (l == "object" || l == "function");
|
|
1756
1756
|
}
|
|
1757
|
-
var
|
|
1758
|
-
return
|
|
1759
|
-
},
|
|
1760
|
-
function
|
|
1761
|
-
for (var
|
|
1757
|
+
var Uo = typeof global == "object" && global && global.Object === Object && global, zo = typeof self == "object" && self && self.Object === Object && self, ma = Uo || zo || Function("return this")(), st = function() {
|
|
1758
|
+
return ma.Date.now();
|
|
1759
|
+
}, Bo = /\s/;
|
|
1760
|
+
function Ro(e) {
|
|
1761
|
+
for (var l = e.length; l-- && Bo.test(e.charAt(l)); )
|
|
1762
1762
|
;
|
|
1763
|
-
return
|
|
1763
|
+
return l;
|
|
1764
1764
|
}
|
|
1765
|
-
var
|
|
1766
|
-
function
|
|
1767
|
-
return e && e.slice(0,
|
|
1765
|
+
var Lo = /^\s+/;
|
|
1766
|
+
function fa(e) {
|
|
1767
|
+
return e && e.slice(0, Ro(e) + 1).replace(Lo, "");
|
|
1768
1768
|
}
|
|
1769
|
-
var
|
|
1770
|
-
function
|
|
1771
|
-
var
|
|
1769
|
+
var Pe = ma.Symbol, va = Object.prototype, No = va.hasOwnProperty, Jo = va.toString, Be = Pe ? Pe.toStringTag : void 0;
|
|
1770
|
+
function Oo(e) {
|
|
1771
|
+
var l = No.call(e, Be), a = e[Be];
|
|
1772
1772
|
try {
|
|
1773
|
-
e[
|
|
1773
|
+
e[Be] = void 0;
|
|
1774
1774
|
var t = !0;
|
|
1775
1775
|
} catch {
|
|
1776
1776
|
}
|
|
1777
|
-
var o =
|
|
1778
|
-
return t && (
|
|
1777
|
+
var o = Jo.call(e);
|
|
1778
|
+
return t && (l ? e[Be] = a : delete e[Be]), o;
|
|
1779
1779
|
}
|
|
1780
|
-
var
|
|
1781
|
-
function Oo(e) {
|
|
1782
|
-
return Jo.call(e);
|
|
1783
|
-
}
|
|
1784
|
-
var jo = "[object Null]", xo = "[object Undefined]", Mt = Me ? Me.toStringTag : void 0;
|
|
1780
|
+
var jo = Object.prototype, xo = jo.toString;
|
|
1785
1781
|
function qo(e) {
|
|
1786
|
-
return
|
|
1782
|
+
return xo.call(e);
|
|
1783
|
+
}
|
|
1784
|
+
var Go = "[object Null]", Ho = "[object Undefined]", Ut = Pe ? Pe.toStringTag : void 0;
|
|
1785
|
+
function Wo(e) {
|
|
1786
|
+
return e == null ? e === void 0 ? Ho : Go : Ut && Ut in Object(e) ? Oo(e) : qo(e);
|
|
1787
1787
|
}
|
|
1788
|
-
function
|
|
1788
|
+
function Ko(e) {
|
|
1789
1789
|
return e != null && typeof e == "object";
|
|
1790
1790
|
}
|
|
1791
|
-
var
|
|
1792
|
-
function
|
|
1793
|
-
return typeof e == "symbol" ||
|
|
1791
|
+
var Yo = "[object Symbol]";
|
|
1792
|
+
function ga(e) {
|
|
1793
|
+
return typeof e == "symbol" || Ko(e) && Wo(e) == Yo;
|
|
1794
1794
|
}
|
|
1795
|
-
var
|
|
1796
|
-
function
|
|
1795
|
+
var zt = NaN, Qo = /^[-+]0x[0-9a-f]+$/i, Xo = /^0b[01]+$/i, Zo = /^0o[0-7]+$/i, en = parseInt;
|
|
1796
|
+
function Bt(e) {
|
|
1797
1797
|
if (typeof e == "number")
|
|
1798
1798
|
return e;
|
|
1799
|
-
if (
|
|
1800
|
-
return
|
|
1801
|
-
if (
|
|
1802
|
-
var
|
|
1803
|
-
e =
|
|
1799
|
+
if (ga(e))
|
|
1800
|
+
return zt;
|
|
1801
|
+
if (Qe(e)) {
|
|
1802
|
+
var l = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
1803
|
+
e = Qe(l) ? l + "" : l;
|
|
1804
1804
|
}
|
|
1805
1805
|
if (typeof e != "string")
|
|
1806
1806
|
return e === 0 ? e : +e;
|
|
1807
|
-
e =
|
|
1808
|
-
var
|
|
1809
|
-
return
|
|
1807
|
+
e = fa(e);
|
|
1808
|
+
var a = Xo.test(e);
|
|
1809
|
+
return a || Zo.test(e) ? en(e.slice(2), a ? 2 : 8) : Qo.test(e) ? zt : +e;
|
|
1810
1810
|
}
|
|
1811
|
-
var
|
|
1812
|
-
function
|
|
1811
|
+
var tn = "Expected a function", an = Math.max, ln = Math.min;
|
|
1812
|
+
function kt(e, l, a) {
|
|
1813
1813
|
var t, o, d, u, n, c, p = 0, r = !1, i = !1, m = !0;
|
|
1814
1814
|
if (typeof e != "function")
|
|
1815
|
-
throw new TypeError(
|
|
1816
|
-
|
|
1815
|
+
throw new TypeError(tn);
|
|
1816
|
+
l = Bt(l) || 0, Qe(a) && (r = !!a.leading, i = "maxWait" in a, d = i ? an(Bt(a.maxWait) || 0, l) : d, m = "trailing" in a ? !!a.trailing : m);
|
|
1817
1817
|
function f(F) {
|
|
1818
1818
|
var q = t, Z = o;
|
|
1819
1819
|
return t = o = void 0, p = F, u = e.apply(Z, q), u;
|
|
1820
1820
|
}
|
|
1821
1821
|
function _(F) {
|
|
1822
|
-
return p = F, n = setTimeout(v,
|
|
1822
|
+
return p = F, n = setTimeout(v, l), r ? f(F) : u;
|
|
1823
1823
|
}
|
|
1824
1824
|
function I(F) {
|
|
1825
|
-
var q = F - c, Z = F - p, H =
|
|
1826
|
-
return i ?
|
|
1825
|
+
var q = F - c, Z = F - p, H = l - q;
|
|
1826
|
+
return i ? ln(H, d - Z) : H;
|
|
1827
1827
|
}
|
|
1828
1828
|
function y(F) {
|
|
1829
1829
|
var q = F - c, Z = F - p;
|
|
1830
|
-
return c === void 0 || q >=
|
|
1830
|
+
return c === void 0 || q >= l || q < 0 || i && Z >= d;
|
|
1831
1831
|
}
|
|
1832
1832
|
function v() {
|
|
1833
|
-
var F =
|
|
1833
|
+
var F = st();
|
|
1834
1834
|
if (y(F))
|
|
1835
1835
|
return S(F);
|
|
1836
1836
|
n = setTimeout(v, I(F));
|
|
@@ -1842,34 +1842,34 @@ function wt(e, a, l) {
|
|
|
1842
1842
|
n !== void 0 && clearTimeout(n), p = 0, t = c = o = n = void 0;
|
|
1843
1843
|
}
|
|
1844
1844
|
function k() {
|
|
1845
|
-
return n === void 0 ? u : S(
|
|
1845
|
+
return n === void 0 ? u : S(st());
|
|
1846
1846
|
}
|
|
1847
1847
|
function C() {
|
|
1848
|
-
var F =
|
|
1848
|
+
var F = st(), q = y(F);
|
|
1849
1849
|
if (t = arguments, o = this, c = F, q) {
|
|
1850
1850
|
if (n === void 0)
|
|
1851
1851
|
return _(c);
|
|
1852
1852
|
if (i)
|
|
1853
|
-
return clearTimeout(n), n = setTimeout(v,
|
|
1853
|
+
return clearTimeout(n), n = setTimeout(v, l), f(c);
|
|
1854
1854
|
}
|
|
1855
|
-
return n === void 0 && (n = setTimeout(v,
|
|
1855
|
+
return n === void 0 && (n = setTimeout(v, l)), u;
|
|
1856
1856
|
}
|
|
1857
1857
|
return C.cancel = P, C.flush = k, C;
|
|
1858
1858
|
}
|
|
1859
|
-
const
|
|
1860
|
-
function
|
|
1861
|
-
const e =
|
|
1862
|
-
if (
|
|
1859
|
+
const He = h([]);
|
|
1860
|
+
function Vt() {
|
|
1861
|
+
const e = Za(), l = async () => {
|
|
1862
|
+
if (He.value.length !== 0) return;
|
|
1863
1863
|
const t = {};
|
|
1864
|
-
|
|
1864
|
+
He.value = await e.getAll(t);
|
|
1865
1865
|
};
|
|
1866
1866
|
return {
|
|
1867
|
-
realms:
|
|
1868
|
-
getAllRealms:
|
|
1869
|
-
getDefaultRealm: async () => (await
|
|
1867
|
+
realms: He,
|
|
1868
|
+
getAllRealms: l,
|
|
1869
|
+
getDefaultRealm: async () => (await l(), He.value.find((t) => t.name === "ace-platform"))
|
|
1870
1870
|
};
|
|
1871
1871
|
}
|
|
1872
|
-
function
|
|
1872
|
+
function ha(e, l, a, t, o, d) {
|
|
1873
1873
|
const u = h({}), n = h({
|
|
1874
1874
|
currentPage: 1,
|
|
1875
1875
|
pageSize: 50
|
|
@@ -1878,13 +1878,13 @@ function va(e, a, l, t, o, d) {
|
|
|
1878
1878
|
users: []
|
|
1879
1879
|
});
|
|
1880
1880
|
o || (o = le());
|
|
1881
|
-
const p =
|
|
1881
|
+
const p = bt(o), r = _e(o), i = h(!1);
|
|
1882
1882
|
function m() {
|
|
1883
1883
|
I().then((y) => {
|
|
1884
|
-
|
|
1884
|
+
a && a(y, i.value), i.value = !1;
|
|
1885
1885
|
});
|
|
1886
1886
|
}
|
|
1887
|
-
const f =
|
|
1887
|
+
const f = kt(m, 300);
|
|
1888
1888
|
function _() {
|
|
1889
1889
|
c.value.total = 0, c.value.users = [], n.value.currentPage !== 1 ? n.value.currentPage = 1 : f();
|
|
1890
1890
|
}
|
|
@@ -1896,20 +1896,20 @@ function va(e, a, l, t, o, d) {
|
|
|
1896
1896
|
i.value = !0, _();
|
|
1897
1897
|
}), T(() => n.value.currentPage, () => {
|
|
1898
1898
|
I().then((y) => {
|
|
1899
|
-
|
|
1899
|
+
a && a(y, i.value), i.value = !1;
|
|
1900
1900
|
});
|
|
1901
1901
|
});
|
|
1902
1902
|
async function I() {
|
|
1903
1903
|
if (e && !e())
|
|
1904
1904
|
return Promise.resolve(void 0);
|
|
1905
1905
|
if (!u.value.realmId) {
|
|
1906
|
-
const H = await
|
|
1906
|
+
const H = await Vt().getDefaultRealm();
|
|
1907
1907
|
u.value.realmId = H.id;
|
|
1908
1908
|
}
|
|
1909
|
-
const y =
|
|
1909
|
+
const y = Yt(), v = y.getQEntity();
|
|
1910
1910
|
y.and(v.realm.id.eq(u.value.realmId)).and(v.recycled.eq(!1));
|
|
1911
1911
|
const S = u.value.currentDept;
|
|
1912
|
-
S && (S.id ==
|
|
1912
|
+
S && (S.id == da ? y.and(v.department.isNull()) : S.id !== _t && y.and(v.department.sortPath.startWith(S.sortPath)));
|
|
1913
1913
|
const P = u.value.classificationLevel;
|
|
1914
1914
|
P && y.and(v.classifiedLevel.loe(P));
|
|
1915
1915
|
const k = u.value.currentGroup;
|
|
@@ -1921,7 +1921,7 @@ function va(e, a, l, t, o, d) {
|
|
|
1921
1921
|
const H = "%" + F.split("").join("%") + "%";
|
|
1922
1922
|
y.and(v.username.like(H).or(v.fullName.like(H)).or(v.pinYinName.like(H)).or(v.mobile.like(H)));
|
|
1923
1923
|
}
|
|
1924
|
-
|
|
1924
|
+
l && y.and(l(v));
|
|
1925
1925
|
const q = u.value.currentSort;
|
|
1926
1926
|
q && y.orderBy(q);
|
|
1927
1927
|
const Z = y.build();
|
|
@@ -1955,7 +1955,7 @@ function va(e, a, l, t, o, d) {
|
|
|
1955
1955
|
loading: r
|
|
1956
1956
|
};
|
|
1957
1957
|
}
|
|
1958
|
-
const
|
|
1958
|
+
const on = /* @__PURE__ */ z({
|
|
1959
1959
|
__name: "departmentTree",
|
|
1960
1960
|
props: /* @__PURE__ */ Q({
|
|
1961
1961
|
realmId: {},
|
|
@@ -1966,8 +1966,8 @@ const tn = /* @__PURE__ */ z({
|
|
|
1966
1966
|
modelModifiers: {}
|
|
1967
1967
|
}),
|
|
1968
1968
|
emits: /* @__PURE__ */ Q(["change", "loaded"], ["update:modelValue"]),
|
|
1969
|
-
setup(e, { expose:
|
|
1970
|
-
const t = h(), o = le(), d = _e(o), u =
|
|
1969
|
+
setup(e, { expose: l, emit: a }) {
|
|
1970
|
+
const t = h(), o = le(), d = _e(o), u = Wt(o), n = e, c = a, p = ue(e, "modelValue"), r = ge({
|
|
1971
1971
|
get() {
|
|
1972
1972
|
var _;
|
|
1973
1973
|
return (_ = p.value) == null ? void 0 : _.id;
|
|
@@ -1975,14 +1975,14 @@ const tn = /* @__PURE__ */ z({
|
|
|
1975
1975
|
set(_) {
|
|
1976
1976
|
p.value = i.departments.find((I) => I.id === _) ?? null;
|
|
1977
1977
|
}
|
|
1978
|
-
}), i =
|
|
1978
|
+
}), i = ft({
|
|
1979
1979
|
departments: []
|
|
1980
1980
|
}), m = async () => {
|
|
1981
1981
|
if (!n.realmId) return;
|
|
1982
|
-
const _ = await u.getNormal(n.realmId,
|
|
1982
|
+
const _ = await u.getNormal(n.realmId, Kt.BT);
|
|
1983
1983
|
i.departments = [
|
|
1984
1984
|
{
|
|
1985
|
-
id:
|
|
1985
|
+
id: _t,
|
|
1986
1986
|
label: "所有部门",
|
|
1987
1987
|
name: "所有部门",
|
|
1988
1988
|
shortCode: "",
|
|
@@ -1995,7 +1995,7 @@ const tn = /* @__PURE__ */ z({
|
|
|
1995
1995
|
attributes: {}
|
|
1996
1996
|
},
|
|
1997
1997
|
...n.showNoDepartment ? [{
|
|
1998
|
-
id:
|
|
1998
|
+
id: da,
|
|
1999
1999
|
label: "无归属部门",
|
|
2000
2000
|
name: "无归属部门",
|
|
2001
2001
|
shortCode: "",
|
|
@@ -2007,7 +2007,7 @@ const tn = /* @__PURE__ */ z({
|
|
|
2007
2007
|
entity: !1,
|
|
2008
2008
|
attributes: {}
|
|
2009
2009
|
}] : [],
|
|
2010
|
-
...
|
|
2010
|
+
...Ue(_, "name")
|
|
2011
2011
|
], r.value = i.departments[0].id, c("loaded", i.departments);
|
|
2012
2012
|
}, f = (_) => {
|
|
2013
2013
|
p.value = _, c("change", _);
|
|
@@ -2017,9 +2017,9 @@ const tn = /* @__PURE__ */ z({
|
|
|
2017
2017
|
() => {
|
|
2018
2018
|
m();
|
|
2019
2019
|
}
|
|
2020
|
-
),
|
|
2020
|
+
), l({
|
|
2021
2021
|
reload: m
|
|
2022
|
-
}), m(), (_, I) => Y((b(), $(s(
|
|
2022
|
+
}), m(), (_, I) => Y((b(), $(s(Ze), {
|
|
2023
2023
|
ref_key: "deptTree",
|
|
2024
2024
|
ref: t,
|
|
2025
2025
|
data: s(i).departments,
|
|
@@ -2037,22 +2037,22 @@ const tn = /* @__PURE__ */ z({
|
|
|
2037
2037
|
}
|
|
2038
2038
|
}
|
|
2039
2039
|
}, null, 8, ["data", "current-node-key", "props"])), [
|
|
2040
|
-
[s(
|
|
2040
|
+
[s(Ee), s(d)]
|
|
2041
2041
|
]);
|
|
2042
2042
|
}
|
|
2043
|
-
}),
|
|
2044
|
-
var
|
|
2045
|
-
function
|
|
2043
|
+
}), nn = /* @__PURE__ */ pe(on, [["__scopeId", "data-v-b247a32f"]]), ya = R(nn), ba = "com.csicit.ace.scrollbar.wrapped";
|
|
2044
|
+
var rn = "Expected a function";
|
|
2045
|
+
function Oe(e, l, a) {
|
|
2046
2046
|
var t = !0, o = !0;
|
|
2047
2047
|
if (typeof e != "function")
|
|
2048
|
-
throw new TypeError(
|
|
2049
|
-
return
|
|
2048
|
+
throw new TypeError(rn);
|
|
2049
|
+
return Qe(a) && (t = "leading" in a ? !!a.leading : t, o = "trailing" in a ? !!a.trailing : o), kt(e, l, {
|
|
2050
2050
|
leading: t,
|
|
2051
|
-
maxWait:
|
|
2051
|
+
maxWait: l,
|
|
2052
2052
|
trailing: o
|
|
2053
2053
|
});
|
|
2054
2054
|
}
|
|
2055
|
-
const
|
|
2055
|
+
const sn = { class: "ja-user-group-tree" }, un = /* @__PURE__ */ z({
|
|
2056
2056
|
__name: "userGroupTree",
|
|
2057
2057
|
props: /* @__PURE__ */ Q({
|
|
2058
2058
|
realmId: {},
|
|
@@ -2065,9 +2065,9 @@ const on = { class: "ja-user-group-tree" }, nn = /* @__PURE__ */ z({
|
|
|
2065
2065
|
modelModifiers: {}
|
|
2066
2066
|
}),
|
|
2067
2067
|
emits: /* @__PURE__ */ Q(["change", "loaded"], ["update:modelValue"]),
|
|
2068
|
-
async setup(e, { expose:
|
|
2068
|
+
async setup(e, { expose: l, emit: a }) {
|
|
2069
2069
|
let t, o;
|
|
2070
|
-
const d = h(), u = le(), n = _e(u), c =
|
|
2070
|
+
const d = h(), u = le(), n = _e(u), c = Qt(u), p = wt(u), r = e, i = a, m = ue(e, "modelValue"), f = h(r.appId), _ = ge({
|
|
2071
2071
|
get() {
|
|
2072
2072
|
var k;
|
|
2073
2073
|
return (k = m.value) == null ? void 0 : k.id;
|
|
@@ -2075,7 +2075,7 @@ const on = { class: "ja-user-group-tree" }, nn = /* @__PURE__ */ z({
|
|
|
2075
2075
|
set(k) {
|
|
2076
2076
|
m.value = v.groups.find((C) => C.id === k) ?? null;
|
|
2077
2077
|
}
|
|
2078
|
-
}), [I, y] = ([t, o] =
|
|
2078
|
+
}), [I, y] = ([t, o] = vt(() => Promise.all([
|
|
2079
2079
|
p.getGlobalApp(),
|
|
2080
2080
|
p.getAccessible()
|
|
2081
2081
|
])), t = await t, o(), t);
|
|
@@ -2084,13 +2084,13 @@ const on = { class: "ja-user-group-tree" }, nn = /* @__PURE__ */ z({
|
|
|
2084
2084
|
k >= 0 && y.splice(k, 1);
|
|
2085
2085
|
}
|
|
2086
2086
|
f.value || (f.value = I.id);
|
|
2087
|
-
const v =
|
|
2087
|
+
const v = ft({
|
|
2088
2088
|
groups: []
|
|
2089
2089
|
}), S = async () => {
|
|
2090
2090
|
if (!r.realmId || !f.value) return;
|
|
2091
2091
|
const k = await c.getByAppIdAndRealm(f.value, r.realmId);
|
|
2092
2092
|
v.groups = [
|
|
2093
|
-
...
|
|
2093
|
+
...Ue(k, "name")
|
|
2094
2094
|
], !m.value && v.groups.length > 0 && (_.value = v.groups[0].id), i("loaded", v.groups);
|
|
2095
2095
|
}, P = (k) => {
|
|
2096
2096
|
m.value = k, i("change", k);
|
|
@@ -2104,18 +2104,18 @@ const on = { class: "ja-user-group-tree" }, nn = /* @__PURE__ */ z({
|
|
|
2104
2104
|
f.value = r.appId;
|
|
2105
2105
|
}), T(f, () => {
|
|
2106
2106
|
S();
|
|
2107
|
-
}),
|
|
2107
|
+
}), l({
|
|
2108
2108
|
reload: S,
|
|
2109
2109
|
elTree: d
|
|
2110
|
-
}), S(), (k, C) => (b(), N("div",
|
|
2111
|
-
r.appId ? de("", !0) : (b(), $(s(
|
|
2110
|
+
}), S(), (k, C) => (b(), N("div", sn, [
|
|
2111
|
+
r.appId ? de("", !0) : (b(), $(s(De), {
|
|
2112
2112
|
key: 0,
|
|
2113
2113
|
modelValue: f.value,
|
|
2114
2114
|
"onUpdate:modelValue": C[0] || (C[0] = (F) => f.value = F),
|
|
2115
2115
|
style: { width: "100%" }
|
|
2116
2116
|
}, {
|
|
2117
2117
|
default: g(() => [
|
|
2118
|
-
(b(!0), N(ne, null, W(s(y), (F) => (b(), $(s(
|
|
2118
|
+
(b(!0), N(ne, null, W(s(y), (F) => (b(), $(s(et), {
|
|
2119
2119
|
key: F.id,
|
|
2120
2120
|
label: F.caption,
|
|
2121
2121
|
value: F.id
|
|
@@ -2123,7 +2123,7 @@ const on = { class: "ja-user-group-tree" }, nn = /* @__PURE__ */ z({
|
|
|
2123
2123
|
]),
|
|
2124
2124
|
_: 1
|
|
2125
2125
|
}, 8, ["modelValue"])),
|
|
2126
|
-
Y(w(s(
|
|
2126
|
+
Y(w(s(Ze), K({
|
|
2127
2127
|
style: { width: "100%", "--ja-group-tree-node-height": r.nodeHeight },
|
|
2128
2128
|
ref_key: "groupTree",
|
|
2129
2129
|
ref: d,
|
|
@@ -2143,11 +2143,11 @@ const on = { class: "ja-user-group-tree" }, nn = /* @__PURE__ */ z({
|
|
|
2143
2143
|
}
|
|
2144
2144
|
}
|
|
2145
2145
|
}), null, 16, ["style", "data", "current-node-key", "props"]), [
|
|
2146
|
-
[s(
|
|
2146
|
+
[s(Ee), s(n)]
|
|
2147
2147
|
])
|
|
2148
2148
|
]));
|
|
2149
2149
|
}
|
|
2150
|
-
}),
|
|
2150
|
+
}), dn = /* @__PURE__ */ pe(un, [["__scopeId", "data-v-d45cc589"]]), wa = R(dn), cn = /* @__PURE__ */ z({
|
|
2151
2151
|
__name: "customGroupTree",
|
|
2152
2152
|
props: /* @__PURE__ */ Q({
|
|
2153
2153
|
multiple: { type: Boolean }
|
|
@@ -2156,8 +2156,8 @@ const on = { class: "ja-user-group-tree" }, nn = /* @__PURE__ */ z({
|
|
|
2156
2156
|
modelModifiers: {}
|
|
2157
2157
|
}),
|
|
2158
2158
|
emits: /* @__PURE__ */ Q(["change", "loaded"], ["update:modelValue"]),
|
|
2159
|
-
setup(e, { expose:
|
|
2160
|
-
const t = h(), o = le(), d = _e(o), u =
|
|
2159
|
+
setup(e, { expose: l, emit: a }) {
|
|
2160
|
+
const t = h(), o = le(), d = _e(o), u = Xt(o), n = a, c = ue(e, "modelValue"), p = ge({
|
|
2161
2161
|
get() {
|
|
2162
2162
|
var f;
|
|
2163
2163
|
return (f = c.value) == null ? void 0 : f.id;
|
|
@@ -2165,19 +2165,19 @@ const on = { class: "ja-user-group-tree" }, nn = /* @__PURE__ */ z({
|
|
|
2165
2165
|
set(f) {
|
|
2166
2166
|
c.value = r.groups.find((_) => _.id === f) ?? null;
|
|
2167
2167
|
}
|
|
2168
|
-
}), r =
|
|
2168
|
+
}), r = ft({
|
|
2169
2169
|
groups: []
|
|
2170
2170
|
}), i = async () => {
|
|
2171
2171
|
const f = await u.getAll();
|
|
2172
2172
|
r.groups = [
|
|
2173
|
-
...
|
|
2173
|
+
...Ue(f, "name")
|
|
2174
2174
|
], r.groups.length > 0 && (c.value = r.groups[0], p.value = c.value.id), n("loaded", r.groups);
|
|
2175
2175
|
}, m = (f) => {
|
|
2176
2176
|
c.value = f, n("change", f);
|
|
2177
2177
|
};
|
|
2178
|
-
return
|
|
2178
|
+
return l({
|
|
2179
2179
|
reload: i
|
|
2180
|
-
}), i(), (f, _) => Y((b(), $(s(
|
|
2180
|
+
}), i(), (f, _) => Y((b(), $(s(Ze), {
|
|
2181
2181
|
ref_key: "deptTree",
|
|
2182
2182
|
ref: t,
|
|
2183
2183
|
data: s(r).groups,
|
|
@@ -2195,14 +2195,14 @@ const on = { class: "ja-user-group-tree" }, nn = /* @__PURE__ */ z({
|
|
|
2195
2195
|
}
|
|
2196
2196
|
}
|
|
2197
2197
|
}, null, 8, ["data", "current-node-key", "props"])), [
|
|
2198
|
-
[s(
|
|
2198
|
+
[s(Ee), s(d)]
|
|
2199
2199
|
]);
|
|
2200
2200
|
}
|
|
2201
|
-
}),
|
|
2201
|
+
}), pn = /* @__PURE__ */ pe(cn, [["__scopeId", "data-v-4e04bc5c"]]), mn = R(pn), fn = {
|
|
2202
2202
|
class: "ja-user-select-dialog"
|
|
2203
|
-
},
|
|
2203
|
+
}, vn = {
|
|
2204
2204
|
class: "ja-user-select-dialog__content"
|
|
2205
|
-
},
|
|
2205
|
+
}, gn = {
|
|
2206
2206
|
style: {
|
|
2207
2207
|
display: "flex",
|
|
2208
2208
|
"flex-direction": "row",
|
|
@@ -2210,7 +2210,7 @@ const on = { class: "ja-user-group-tree" }, nn = /* @__PURE__ */ z({
|
|
|
2210
2210
|
width: "100%",
|
|
2211
2211
|
gap: "0"
|
|
2212
2212
|
}
|
|
2213
|
-
},
|
|
2213
|
+
}, hn = /* @__PURE__ */ z({
|
|
2214
2214
|
__name: "userSelectDialog",
|
|
2215
2215
|
props: /* @__PURE__ */ Q({
|
|
2216
2216
|
/**
|
|
@@ -2251,25 +2251,25 @@ const on = { class: "ja-user-group-tree" }, nn = /* @__PURE__ */ z({
|
|
|
2251
2251
|
}),
|
|
2252
2252
|
emits: ["update:modelValue"],
|
|
2253
2253
|
setup(e, {
|
|
2254
|
-
expose:
|
|
2254
|
+
expose: l
|
|
2255
2255
|
}) {
|
|
2256
|
-
const
|
|
2256
|
+
const a = e, t = ue(e, "modelValue"), o = h();
|
|
2257
2257
|
async function d() {
|
|
2258
|
-
if (
|
|
2259
|
-
o.value =
|
|
2258
|
+
if (a.realmId)
|
|
2259
|
+
o.value = a.realmId;
|
|
2260
2260
|
else {
|
|
2261
|
-
const J = await
|
|
2261
|
+
const J = await Vt().getDefaultRealm();
|
|
2262
2262
|
o.value = J.id;
|
|
2263
2263
|
}
|
|
2264
2264
|
}
|
|
2265
|
-
if (d(),
|
|
2265
|
+
if (d(), a.multiple) {
|
|
2266
2266
|
if (t.value || (t.value = []), !Array.isArray(t.value))
|
|
2267
2267
|
throw new Error("多选模式的选择用户对话框(multiple设置为true)的v-model必须是数组类型");
|
|
2268
2268
|
} else if (Array.isArray(t.value))
|
|
2269
2269
|
throw new Error("单选模式的选择用户对话框(multiple设置为false)的v-model只能为空或是单个UserReference对象");
|
|
2270
|
-
const u = h(!1), n = h(), c = h(), p = h(), r = le(), i = _e(r), m = h(!1), f = h([]), _ =
|
|
2271
|
-
|
|
2272
|
-
const y = h(Array.isArray(t.value) ? [...t.value] : t.value), v =
|
|
2270
|
+
const u = h(!1), n = h(), c = h(), p = h(), r = le(), i = _e(r), m = h(!1), f = h([]), _ = je(/* @__PURE__ */ new Map()), I = h("dept");
|
|
2271
|
+
Fe(ba, void 0);
|
|
2272
|
+
const y = h(Array.isArray(t.value) ? [...t.value] : t.value), v = ha(void 0, a.customFilter, (J) => {
|
|
2273
2273
|
m.value || (f.value = J ?? []);
|
|
2274
2274
|
}, !1, r, !0), S = [{
|
|
2275
2275
|
key: "user",
|
|
@@ -2282,36 +2282,36 @@ const on = { class: "ja-user-group-tree" }, nn = /* @__PURE__ */ z({
|
|
|
2282
2282
|
rowIndex: oe
|
|
2283
2283
|
}) => {
|
|
2284
2284
|
const {
|
|
2285
|
-
hasAvatar:
|
|
2286
|
-
fullName:
|
|
2287
|
-
} = U,
|
|
2288
|
-
return
|
|
2285
|
+
hasAvatar: Dt,
|
|
2286
|
+
fullName: Ua
|
|
2287
|
+
} = U, Ge = U, za = oe;
|
|
2288
|
+
return ze("div", {
|
|
2289
2289
|
class: "user-row",
|
|
2290
|
-
onMousedown: () => ee(
|
|
2291
|
-
onMouseenter: () => V(
|
|
2290
|
+
onMousedown: () => ee(Ge),
|
|
2291
|
+
onMouseenter: () => V(Ge),
|
|
2292
2292
|
onMouseup: E,
|
|
2293
|
-
onMouseover: (
|
|
2294
|
-
}, [
|
|
2293
|
+
onMouseover: (Ba) => ie(Ba, za)
|
|
2294
|
+
}, [ze(ce, {
|
|
2295
2295
|
color: "#0D6A9F"
|
|
2296
|
-
}, () => q(
|
|
2296
|
+
}, () => q(Ge) ? ze(oa) : void 0), ze(at, {
|
|
2297
2297
|
userId: J,
|
|
2298
|
-
theme: Z(
|
|
2298
|
+
theme: Z(Ge),
|
|
2299
2299
|
placement: "right-start",
|
|
2300
2300
|
hasAvatar: !1,
|
|
2301
|
-
fullName:
|
|
2302
|
-
}),
|
|
2301
|
+
fullName: Ua
|
|
2302
|
+
}), ze("div", {
|
|
2303
2303
|
style: "flex:auto"
|
|
2304
2304
|
})]);
|
|
2305
2305
|
}
|
|
2306
|
-
}], P = h(!1), k = h(), C =
|
|
2306
|
+
}], P = h(!1), k = h(), C = Oe(B, 100), F = Oe(H, 100);
|
|
2307
2307
|
T(n, () => {
|
|
2308
2308
|
I.value == "dept" && (v.queryParams.value.currentDept = n.value);
|
|
2309
2309
|
}), T(c, () => {
|
|
2310
2310
|
I.value == "group" && (v.queryParams.value.currentGroup = c.value);
|
|
2311
2311
|
}), T(p, () => {
|
|
2312
2312
|
I.value == "customGroup" && (v.queryParams.value.currentCustomGroup = p.value);
|
|
2313
|
-
}), T(() =>
|
|
2314
|
-
v.queryParams.value.classificationLevel =
|
|
2313
|
+
}), T(() => a.classificationLevel, () => {
|
|
2314
|
+
v.queryParams.value.classificationLevel = a.classificationLevel;
|
|
2315
2315
|
}), T(I, () => {
|
|
2316
2316
|
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);
|
|
2317
2317
|
});
|
|
@@ -2328,7 +2328,7 @@ const on = { class: "ja-user-group-tree" }, nn = /* @__PURE__ */ z({
|
|
|
2328
2328
|
} else
|
|
2329
2329
|
y.value = J;
|
|
2330
2330
|
}
|
|
2331
|
-
|
|
2331
|
+
Ae(() => {
|
|
2332
2332
|
C.cancel(), F.cancel();
|
|
2333
2333
|
});
|
|
2334
2334
|
function me() {
|
|
@@ -2371,11 +2371,11 @@ const on = { class: "ja-user-group-tree" }, nn = /* @__PURE__ */ z({
|
|
|
2371
2371
|
function ie(J, U) {
|
|
2372
2372
|
P.value = J.buttons > 0, P.value && (D = U, C());
|
|
2373
2373
|
}
|
|
2374
|
-
return
|
|
2374
|
+
return l({
|
|
2375
2375
|
show() {
|
|
2376
2376
|
u.value = !0;
|
|
2377
2377
|
}
|
|
2378
|
-
}), (J, U) => (b(), $(s(
|
|
2378
|
+
}), (J, U) => (b(), $(s(it), {
|
|
2379
2379
|
modelValue: u.value,
|
|
2380
2380
|
"onUpdate:modelValue": U[5] || (U[5] = (oe) => u.value = oe),
|
|
2381
2381
|
"destroy-on-close": "",
|
|
@@ -2403,20 +2403,20 @@ const on = { class: "ja-user-group-tree" }, nn = /* @__PURE__ */ z({
|
|
|
2403
2403
|
_: 1,
|
|
2404
2404
|
__: [11]
|
|
2405
2405
|
})]),
|
|
2406
|
-
default: g(() => [j("div",
|
|
2406
|
+
default: g(() => [j("div", fn, [w(s(qa), {
|
|
2407
2407
|
class: "ja-user-select-dialog__left",
|
|
2408
2408
|
modelValue: I.value,
|
|
2409
2409
|
"onUpdate:modelValue": U[3] || (U[3] = (oe) => I.value = oe)
|
|
2410
2410
|
}, {
|
|
2411
|
-
default: g(() => [w(s(
|
|
2411
|
+
default: g(() => [w(s(ot), {
|
|
2412
2412
|
name: "dept",
|
|
2413
2413
|
label: "按部门",
|
|
2414
2414
|
class: "ja-user-select-dialog__left-dept-pane"
|
|
2415
2415
|
}, {
|
|
2416
|
-
default: g(() => [w(s(
|
|
2416
|
+
default: g(() => [w(s($e), {
|
|
2417
2417
|
height: "400"
|
|
2418
2418
|
}, {
|
|
2419
|
-
default: g(() => [w(s(
|
|
2419
|
+
default: g(() => [w(s(ya), {
|
|
2420
2420
|
modelValue: n.value,
|
|
2421
2421
|
"onUpdate:modelValue": U[0] || (U[0] = (oe) => n.value = oe),
|
|
2422
2422
|
"realm-id": o.value
|
|
@@ -2424,14 +2424,14 @@ const on = { class: "ja-user-group-tree" }, nn = /* @__PURE__ */ z({
|
|
|
2424
2424
|
_: 1
|
|
2425
2425
|
})]),
|
|
2426
2426
|
_: 1
|
|
2427
|
-
}), w(s(
|
|
2427
|
+
}), w(s(ot), {
|
|
2428
2428
|
name: "group",
|
|
2429
2429
|
label: "按用户组"
|
|
2430
2430
|
}, {
|
|
2431
|
-
default: g(() => [w(s(
|
|
2431
|
+
default: g(() => [w(s($e), {
|
|
2432
2432
|
height: "400"
|
|
2433
2433
|
}, {
|
|
2434
|
-
default: g(() => [w(s(
|
|
2434
|
+
default: g(() => [w(s(wa), {
|
|
2435
2435
|
modelValue: c.value,
|
|
2436
2436
|
"onUpdate:modelValue": U[1] || (U[1] = (oe) => c.value = oe),
|
|
2437
2437
|
"realm-id": o.value
|
|
@@ -2439,14 +2439,14 @@ const on = { class: "ja-user-group-tree" }, nn = /* @__PURE__ */ z({
|
|
|
2439
2439
|
_: 1
|
|
2440
2440
|
})]),
|
|
2441
2441
|
_: 1
|
|
2442
|
-
}), w(s(
|
|
2442
|
+
}), w(s(ot), {
|
|
2443
2443
|
name: "customGroup",
|
|
2444
2444
|
label: "按自定义组"
|
|
2445
2445
|
}, {
|
|
2446
|
-
default: g(() => [w(s(
|
|
2446
|
+
default: g(() => [w(s($e), {
|
|
2447
2447
|
height: "400"
|
|
2448
2448
|
}, {
|
|
2449
|
-
default: g(() => [w(s(
|
|
2449
|
+
default: g(() => [w(s(mn), {
|
|
2450
2450
|
modelValue: p.value,
|
|
2451
2451
|
"onUpdate:modelValue": U[2] || (U[2] = (oe) => p.value = oe)
|
|
2452
2452
|
}, null, 8, ["modelValue"])]),
|
|
@@ -2455,7 +2455,7 @@ const on = { class: "ja-user-group-tree" }, nn = /* @__PURE__ */ z({
|
|
|
2455
2455
|
_: 1
|
|
2456
2456
|
})]),
|
|
2457
2457
|
_: 1
|
|
2458
|
-
}, 8, ["modelValue"]), j("div",
|
|
2458
|
+
}, 8, ["modelValue"]), j("div", vn, [Y((b(), $(s(Ga), {
|
|
2459
2459
|
ref_key: "userTable",
|
|
2460
2460
|
ref: k,
|
|
2461
2461
|
"row-height": 40,
|
|
@@ -2466,7 +2466,7 @@ const on = { class: "ja-user-group-tree" }, nn = /* @__PURE__ */ z({
|
|
|
2466
2466
|
height: 450,
|
|
2467
2467
|
fixed: ""
|
|
2468
2468
|
}, {
|
|
2469
|
-
header: g(() => [j("div",
|
|
2469
|
+
header: g(() => [j("div", gn, [w(s(Me), {
|
|
2470
2470
|
style: {
|
|
2471
2471
|
flex: "auto",
|
|
2472
2472
|
"font-weight": "600"
|
|
@@ -2475,17 +2475,17 @@ const on = { class: "ja-user-group-tree" }, nn = /* @__PURE__ */ z({
|
|
|
2475
2475
|
default: g(() => [U[6] || (U[6] = G(" 人员 ")), w(s(ke), {
|
|
2476
2476
|
content: "切换筛选条件,不会清除已选人员。支持鼠标拖动多选。"
|
|
2477
2477
|
}, {
|
|
2478
|
-
default: g(() => [
|
|
2478
|
+
default: g(() => [a.multiple ? (b(), $(s(ce), {
|
|
2479
2479
|
key: 0
|
|
2480
2480
|
}, {
|
|
2481
|
-
default: g(() => [w(s(
|
|
2481
|
+
default: g(() => [w(s(ta))]),
|
|
2482
2482
|
_: 1
|
|
2483
2483
|
})) : de("", !0)]),
|
|
2484
2484
|
_: 1
|
|
2485
2485
|
})]),
|
|
2486
2486
|
_: 1,
|
|
2487
2487
|
__: [6]
|
|
2488
|
-
}),
|
|
2488
|
+
}), a.multiple ? (b(), $(s(Me), {
|
|
2489
2489
|
key: 0,
|
|
2490
2490
|
style: {
|
|
2491
2491
|
flex: "none",
|
|
@@ -2499,9 +2499,9 @@ const on = { class: "ja-user-group-tree" }, nn = /* @__PURE__ */ z({
|
|
|
2499
2499
|
size: "15",
|
|
2500
2500
|
onClick: L
|
|
2501
2501
|
}, {
|
|
2502
|
-
default: g(() => [m.value ? (b(), $(s(
|
|
2502
|
+
default: g(() => [m.value ? (b(), $(s(sl), {
|
|
2503
2503
|
key: 1
|
|
2504
|
-
})) : (b(), $(s(
|
|
2504
|
+
})) : (b(), $(s(rl), {
|
|
2505
2505
|
key: 0
|
|
2506
2506
|
}))]),
|
|
2507
2507
|
_: 1
|
|
@@ -2509,7 +2509,7 @@ const on = { class: "ja-user-group-tree" }, nn = /* @__PURE__ */ z({
|
|
|
2509
2509
|
_: 1
|
|
2510
2510
|
}, 8, ["content"])]),
|
|
2511
2511
|
_: 1
|
|
2512
|
-
})) : de("", !0),
|
|
2512
|
+
})) : de("", !0), a.multiple ? (b(), $(s(se), {
|
|
2513
2513
|
key: 1,
|
|
2514
2514
|
plain: "",
|
|
2515
2515
|
style: {
|
|
@@ -2523,7 +2523,7 @@ const on = { class: "ja-user-group-tree" }, nn = /* @__PURE__ */ z({
|
|
|
2523
2523
|
default: g(() => U[7] || (U[7] = [G("全选 ")])),
|
|
2524
2524
|
_: 1,
|
|
2525
2525
|
__: [7]
|
|
2526
|
-
})) : de("", !0),
|
|
2526
|
+
})) : de("", !0), a.multiple ? (b(), $(s(se), {
|
|
2527
2527
|
key: 2,
|
|
2528
2528
|
plain: "",
|
|
2529
2529
|
style: {
|
|
@@ -2537,7 +2537,7 @@ const on = { class: "ja-user-group-tree" }, nn = /* @__PURE__ */ z({
|
|
|
2537
2537
|
default: g(() => U[8] || (U[8] = [G("全消 ")])),
|
|
2538
2538
|
_: 1,
|
|
2539
2539
|
__: [8]
|
|
2540
|
-
})) : de("", !0),
|
|
2540
|
+
})) : de("", !0), a.multiple ? (b(), $(s(se), {
|
|
2541
2541
|
key: 3,
|
|
2542
2542
|
plain: "",
|
|
2543
2543
|
style: {
|
|
@@ -2553,17 +2553,17 @@ const on = { class: "ja-user-group-tree" }, nn = /* @__PURE__ */ z({
|
|
|
2553
2553
|
__: [9]
|
|
2554
2554
|
})) : de("", !0)])]),
|
|
2555
2555
|
_: 1
|
|
2556
|
-
}, 8, ["data"])), [[s(
|
|
2556
|
+
}, 8, ["data"])), [[s(Ee), s(i)]])])])]),
|
|
2557
2557
|
_: 1
|
|
2558
2558
|
}, 8, ["modelValue"]));
|
|
2559
2559
|
}
|
|
2560
|
-
}),
|
|
2560
|
+
}), yn = /* @__PURE__ */ pe(hn, [["__scopeId", "data-v-efd26932"]]), _a = R(yn), bn = /* @__PURE__ */ z({
|
|
2561
2561
|
__name: "Scrollbar",
|
|
2562
|
-
setup(e, { expose:
|
|
2563
|
-
const
|
|
2564
|
-
|
|
2565
|
-
elScrollbar:
|
|
2566
|
-
}),
|
|
2562
|
+
setup(e, { expose: l }) {
|
|
2563
|
+
const a = h(), t = h([]), o = /* @__PURE__ */ new Map();
|
|
2564
|
+
l({
|
|
2565
|
+
elScrollbar: a
|
|
2566
|
+
}), Fe(ba, t);
|
|
2567
2567
|
let d = !1;
|
|
2568
2568
|
T(t, () => {
|
|
2569
2569
|
d && n();
|
|
@@ -2578,8 +2578,8 @@ const on = { class: "ja-user-group-tree" }, nn = /* @__PURE__ */ z({
|
|
|
2578
2578
|
});
|
|
2579
2579
|
async function n() {
|
|
2580
2580
|
var p;
|
|
2581
|
-
await
|
|
2582
|
-
const c = (p =
|
|
2581
|
+
await Ce();
|
|
2582
|
+
const c = (p = a.value) == null ? void 0 : p.$el;
|
|
2583
2583
|
if (t.value) {
|
|
2584
2584
|
try {
|
|
2585
2585
|
for (let r = 0; r < t.value.length; r++)
|
|
@@ -2593,15 +2593,15 @@ const on = { class: "ja-user-group-tree" }, nn = /* @__PURE__ */ z({
|
|
|
2593
2593
|
d = !0;
|
|
2594
2594
|
}
|
|
2595
2595
|
}
|
|
2596
|
-
return
|
|
2596
|
+
return Xe(async () => {
|
|
2597
2597
|
await n();
|
|
2598
|
-
}),
|
|
2598
|
+
}), Ae(() => {
|
|
2599
2599
|
o.forEach((c) => {
|
|
2600
2600
|
u.disconnect();
|
|
2601
2601
|
});
|
|
2602
|
-
}), (c, p) => (b(), $(s(
|
|
2602
|
+
}), (c, p) => (b(), $(s($e), K({
|
|
2603
2603
|
ref_key: "scroll",
|
|
2604
|
-
ref:
|
|
2604
|
+
ref: a,
|
|
2605
2605
|
class: "scroll-container"
|
|
2606
2606
|
}, c.$attrs), ve({ _: 2 }, [
|
|
2607
2607
|
W(c.$slots, (r, i) => ({
|
|
@@ -2612,110 +2612,110 @@ const on = { class: "ja-user-group-tree" }, nn = /* @__PURE__ */ z({
|
|
|
2612
2612
|
}))
|
|
2613
2613
|
]), 1040));
|
|
2614
2614
|
}
|
|
2615
|
-
}),
|
|
2616
|
-
function
|
|
2617
|
-
for (var
|
|
2618
|
-
o[
|
|
2615
|
+
}), ka = R(bn);
|
|
2616
|
+
function wn(e, l) {
|
|
2617
|
+
for (var a = -1, t = e == null ? 0 : e.length, o = Array(t); ++a < t; )
|
|
2618
|
+
o[a] = l(e[a], a, e);
|
|
2619
2619
|
return o;
|
|
2620
2620
|
}
|
|
2621
|
-
var
|
|
2622
|
-
function
|
|
2621
|
+
var _n = Array.isArray, Rt = Pe ? Pe.prototype : void 0, Lt = Rt ? Rt.toString : void 0;
|
|
2622
|
+
function It(e) {
|
|
2623
2623
|
if (typeof e == "string")
|
|
2624
2624
|
return e;
|
|
2625
|
-
if (
|
|
2626
|
-
return
|
|
2627
|
-
if (
|
|
2628
|
-
return
|
|
2629
|
-
var
|
|
2630
|
-
return
|
|
2625
|
+
if (_n(e))
|
|
2626
|
+
return wn(e, It) + "";
|
|
2627
|
+
if (ga(e))
|
|
2628
|
+
return Lt ? Lt.call(e) : "";
|
|
2629
|
+
var l = e + "";
|
|
2630
|
+
return l == "0" && 1 / e == -1 / 0 ? "-0" : l;
|
|
2631
2631
|
}
|
|
2632
|
-
function
|
|
2633
|
-
for (var o = e.length, d =
|
|
2634
|
-
if (
|
|
2632
|
+
function kn(e, l, a, t) {
|
|
2633
|
+
for (var o = e.length, d = a + -1; ++d < o; )
|
|
2634
|
+
if (l(e[d], d, e))
|
|
2635
2635
|
return d;
|
|
2636
2636
|
return -1;
|
|
2637
2637
|
}
|
|
2638
|
-
function
|
|
2638
|
+
function Vn(e) {
|
|
2639
2639
|
return e !== e;
|
|
2640
2640
|
}
|
|
2641
|
-
function
|
|
2642
|
-
for (var t =
|
|
2643
|
-
if (e[t] ===
|
|
2641
|
+
function In(e, l, a) {
|
|
2642
|
+
for (var t = a - 1, o = e.length; ++t < o; )
|
|
2643
|
+
if (e[t] === l)
|
|
2644
2644
|
return t;
|
|
2645
2645
|
return -1;
|
|
2646
2646
|
}
|
|
2647
|
-
function
|
|
2648
|
-
return
|
|
2647
|
+
function Va(e, l, a) {
|
|
2648
|
+
return l === l ? In(e, l, a) : kn(e, Vn, a);
|
|
2649
2649
|
}
|
|
2650
|
-
function
|
|
2651
|
-
return e == null ? "" :
|
|
2650
|
+
function Cn(e) {
|
|
2651
|
+
return e == null ? "" : It(e);
|
|
2652
2652
|
}
|
|
2653
|
-
function
|
|
2653
|
+
function $n(e, l, a) {
|
|
2654
2654
|
var t = -1, o = e.length;
|
|
2655
|
-
|
|
2655
|
+
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;
|
|
2656
2656
|
for (var d = Array(o); ++t < o; )
|
|
2657
|
-
d[t] = e[t +
|
|
2657
|
+
d[t] = e[t + l];
|
|
2658
2658
|
return d;
|
|
2659
2659
|
}
|
|
2660
|
-
function
|
|
2660
|
+
function An(e, l, a) {
|
|
2661
2661
|
var t = e.length;
|
|
2662
|
-
return
|
|
2662
|
+
return a = a === void 0 ? t : a, !l && a >= t ? e : $n(e, l, a);
|
|
2663
2663
|
}
|
|
2664
|
-
var
|
|
2665
|
-
function
|
|
2666
|
-
return
|
|
2664
|
+
var Dn = "\\ud800-\\udfff", En = "\\u0300-\\u036f", Sn = "\\ufe20-\\ufe2f", Tn = "\\u20d0-\\u20ff", Fn = En + Sn + Tn, Mn = "\\ufe0e\\ufe0f", Pn = "\\u200d", Un = RegExp("[" + Pn + Dn + Fn + Mn + "]");
|
|
2665
|
+
function zn(e) {
|
|
2666
|
+
return Un.test(e);
|
|
2667
2667
|
}
|
|
2668
|
-
function
|
|
2668
|
+
function Bn(e) {
|
|
2669
2669
|
return e.split("");
|
|
2670
2670
|
}
|
|
2671
|
-
var
|
|
2672
|
-
function
|
|
2673
|
-
return e.match(
|
|
2671
|
+
var Ia = "\\ud800-\\udfff", Rn = "\\u0300-\\u036f", Ln = "\\ufe20-\\ufe2f", Nn = "\\u20d0-\\u20ff", Jn = Rn + Ln + Nn, On = "\\ufe0e\\ufe0f", jn = "[" + Ia + "]", pt = "[" + Jn + "]", mt = "\\ud83c[\\udffb-\\udfff]", xn = "(?:" + pt + "|" + mt + ")", Ca = "[^" + Ia + "]", $a = "(?:\\ud83c[\\udde6-\\uddff]){2}", Aa = "[\\ud800-\\udbff][\\udc00-\\udfff]", qn = "\\u200d", Da = xn + "?", Ea = "[" + On + "]?", Gn = "(?:" + qn + "(?:" + [Ca, $a, Aa].join("|") + ")" + Ea + Da + ")*", Hn = Ea + Da + Gn, Wn = "(?:" + [Ca + pt + "?", pt, $a, Aa, jn].join("|") + ")", Kn = RegExp(mt + "(?=" + mt + ")|" + Wn + Hn, "g");
|
|
2672
|
+
function Yn(e) {
|
|
2673
|
+
return e.match(Kn) || [];
|
|
2674
2674
|
}
|
|
2675
|
-
function
|
|
2676
|
-
return
|
|
2675
|
+
function Nt(e) {
|
|
2676
|
+
return zn(e) ? Yn(e) : Bn(e);
|
|
2677
2677
|
}
|
|
2678
|
-
function
|
|
2679
|
-
for (var
|
|
2678
|
+
function Qn(e, l) {
|
|
2679
|
+
for (var a = e.length; a-- && Va(l, e[a], 0) > -1; )
|
|
2680
2680
|
;
|
|
2681
|
-
return
|
|
2681
|
+
return a;
|
|
2682
2682
|
}
|
|
2683
|
-
function
|
|
2684
|
-
for (var
|
|
2683
|
+
function Xn(e, l) {
|
|
2684
|
+
for (var a = -1, t = e.length; ++a < t && Va(l, e[a], 0) > -1; )
|
|
2685
2685
|
;
|
|
2686
|
-
return
|
|
2686
|
+
return a;
|
|
2687
2687
|
}
|
|
2688
|
-
function
|
|
2689
|
-
if (e =
|
|
2690
|
-
return
|
|
2691
|
-
if (!e || !(
|
|
2688
|
+
function Zn(e, l, a) {
|
|
2689
|
+
if (e = Cn(e), e && l === void 0)
|
|
2690
|
+
return fa(e);
|
|
2691
|
+
if (!e || !(l = It(l)))
|
|
2692
2692
|
return e;
|
|
2693
|
-
var t =
|
|
2694
|
-
return
|
|
2693
|
+
var t = Nt(e), o = Nt(l), d = Xn(t, o), u = Qn(t, o) + 1;
|
|
2694
|
+
return An(t, d, u).join("");
|
|
2695
2695
|
}
|
|
2696
|
-
const
|
|
2696
|
+
const Re = /* @__PURE__ */ new Map(), Ct = {
|
|
2697
2697
|
mounted(e) {
|
|
2698
|
-
let
|
|
2698
|
+
let l;
|
|
2699
2699
|
if (e instanceof HTMLInputElement)
|
|
2700
|
-
|
|
2700
|
+
l = setTimeout(() => e == null ? void 0 : e.focus(), 500), Re.set(e, l);
|
|
2701
2701
|
else {
|
|
2702
|
-
const
|
|
2703
|
-
|
|
2702
|
+
const a = e.querySelectorAll("input");
|
|
2703
|
+
a.length > 0 && a.item(0) instanceof HTMLInputElement && (l = setTimeout(() => {
|
|
2704
2704
|
var t;
|
|
2705
|
-
return (t =
|
|
2706
|
-
}, 500),
|
|
2705
|
+
return (t = a == null ? void 0 : a.item(0)) == null ? void 0 : t.focus();
|
|
2706
|
+
}, 500), Re.set(e, l));
|
|
2707
2707
|
}
|
|
2708
2708
|
},
|
|
2709
2709
|
onUnmounted(e) {
|
|
2710
|
-
|
|
2710
|
+
Re.has(e) && (clearTimeout(Re.get(e)), Re.delete(e));
|
|
2711
2711
|
}
|
|
2712
|
-
},
|
|
2712
|
+
}, er = { class: "ja-custom-group-manager" }, tr = /* @__PURE__ */ z({
|
|
2713
2713
|
__name: "CustomGroupManager",
|
|
2714
2714
|
props: {
|
|
2715
2715
|
users: { default: () => [] }
|
|
2716
2716
|
},
|
|
2717
|
-
setup(e, { expose:
|
|
2718
|
-
const
|
|
2717
|
+
setup(e, { expose: l }) {
|
|
2718
|
+
const a = h(!1), t = le(), o = Xt(t), d = h(), u = {
|
|
2719
2719
|
label: "name",
|
|
2720
2720
|
children: "children",
|
|
2721
2721
|
isLeaf: (k, C) => !k.hasChildren,
|
|
@@ -2725,7 +2725,7 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
2725
2725
|
}
|
|
2726
2726
|
}, n = h(), c = h(!1), p = h(), r = _e(t), i = e, m = {};
|
|
2727
2727
|
async function f() {
|
|
2728
|
-
const k =
|
|
2728
|
+
const k = Ue(await o.getAll()), C = {
|
|
2729
2729
|
id: "-1",
|
|
2730
2730
|
name: "[顶级组]",
|
|
2731
2731
|
children: k,
|
|
@@ -2755,30 +2755,30 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
2755
2755
|
}), c.value = !1, await f();
|
|
2756
2756
|
}
|
|
2757
2757
|
async function S() {
|
|
2758
|
-
n.value && n.value.id !== "-1" && (await
|
|
2758
|
+
n.value && n.value.id !== "-1" && (await Ha.confirm("确定要删除选中的自定义组?", "确认删除"), await o.delete(n.value.id), await f(), n.value = void 0);
|
|
2759
2759
|
}
|
|
2760
2760
|
async function P() {
|
|
2761
2761
|
var k;
|
|
2762
2762
|
if (!n.value || n.value.id === "-1") {
|
|
2763
|
-
|
|
2763
|
+
Wa.warning("请选择要保存到的自定义用户组");
|
|
2764
2764
|
return;
|
|
2765
2765
|
}
|
|
2766
2766
|
await o.setMembers({
|
|
2767
2767
|
id: n.value.id,
|
|
2768
2768
|
userIds: ((k = i.users) == null ? void 0 : k.map((C) => C.id)) ?? []
|
|
2769
|
-
}, m),
|
|
2769
|
+
}, m), a.value = !1;
|
|
2770
2770
|
}
|
|
2771
|
-
return
|
|
2771
|
+
return l({
|
|
2772
2772
|
show() {
|
|
2773
|
-
|
|
2773
|
+
a.value = !0;
|
|
2774
2774
|
},
|
|
2775
2775
|
close() {
|
|
2776
|
-
|
|
2776
|
+
a.value = !1;
|
|
2777
2777
|
}
|
|
2778
2778
|
}), (k, C) => (b(), N(ne, null, [
|
|
2779
|
-
w(s(
|
|
2780
|
-
modelValue:
|
|
2781
|
-
"onUpdate:modelValue": C[1] || (C[1] = (F) =>
|
|
2779
|
+
w(s(it), {
|
|
2780
|
+
modelValue: a.value,
|
|
2781
|
+
"onUpdate:modelValue": C[1] || (C[1] = (F) => a.value = F),
|
|
2782
2782
|
"destroy-on-close": "",
|
|
2783
2783
|
"append-to-body": "",
|
|
2784
2784
|
draggable: "",
|
|
@@ -2800,7 +2800,7 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
2800
2800
|
__: [6]
|
|
2801
2801
|
}, 8, ["loading"]),
|
|
2802
2802
|
w(s(fe), {
|
|
2803
|
-
onClick: C[0] || (C[0] = (F) =>
|
|
2803
|
+
onClick: C[0] || (C[0] = (F) => a.value = !1)
|
|
2804
2804
|
}, {
|
|
2805
2805
|
default: g(() => C[7] || (C[7] = [
|
|
2806
2806
|
G("取消")
|
|
@@ -2810,10 +2810,10 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
2810
2810
|
})
|
|
2811
2811
|
]),
|
|
2812
2812
|
default: g(() => [
|
|
2813
|
-
j("div",
|
|
2814
|
-
w(s(
|
|
2813
|
+
j("div", er, [
|
|
2814
|
+
w(s(ht), null, {
|
|
2815
2815
|
default: g(() => [
|
|
2816
|
-
w(s(
|
|
2816
|
+
w(s(Me), null, {
|
|
2817
2817
|
default: g(() => C[5] || (C[5] = [
|
|
2818
2818
|
G("请创建或选择要保存为的自定义组:")
|
|
2819
2819
|
])),
|
|
@@ -2822,7 +2822,7 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
2822
2822
|
}),
|
|
2823
2823
|
w(s(se), {
|
|
2824
2824
|
circle: "",
|
|
2825
|
-
icon: s(
|
|
2825
|
+
icon: s(Se),
|
|
2826
2826
|
tooltip: "添加自定义组",
|
|
2827
2827
|
shortcut: "Alt+G",
|
|
2828
2828
|
size: "small",
|
|
@@ -2831,7 +2831,7 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
2831
2831
|
}, null, 8, ["icon", "loading"]),
|
|
2832
2832
|
w(s(se), {
|
|
2833
2833
|
circle: "",
|
|
2834
|
-
icon: s(
|
|
2834
|
+
icon: s(qe),
|
|
2835
2835
|
tooltip: "删除自定义组",
|
|
2836
2836
|
shortcut: "Alt+D",
|
|
2837
2837
|
size: "small",
|
|
@@ -2841,11 +2841,11 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
2841
2841
|
]),
|
|
2842
2842
|
_: 1
|
|
2843
2843
|
}),
|
|
2844
|
-
w(s(
|
|
2844
|
+
w(s($e), { height: "360px" }, {
|
|
2845
2845
|
default: g(() => {
|
|
2846
2846
|
var F;
|
|
2847
2847
|
return [
|
|
2848
|
-
w(s(
|
|
2848
|
+
w(s(Ze), {
|
|
2849
2849
|
data: d.value,
|
|
2850
2850
|
"node-key": "id",
|
|
2851
2851
|
props: u,
|
|
@@ -2862,7 +2862,7 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
2862
2862
|
]),
|
|
2863
2863
|
_: 1
|
|
2864
2864
|
}, 8, ["modelValue"]),
|
|
2865
|
-
w(s(
|
|
2865
|
+
w(s(it), {
|
|
2866
2866
|
modelValue: c.value,
|
|
2867
2867
|
"onUpdate:modelValue": C[4] || (C[4] = (F) => c.value = F),
|
|
2868
2868
|
"destroy-on-close": "",
|
|
@@ -2896,9 +2896,9 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
2896
2896
|
})
|
|
2897
2897
|
]),
|
|
2898
2898
|
default: g(() => [
|
|
2899
|
-
w(s(
|
|
2899
|
+
w(s(gt), { "label-position": "top" }, {
|
|
2900
2900
|
default: g(() => [
|
|
2901
|
-
w(s(
|
|
2901
|
+
w(s(Ke), {
|
|
2902
2902
|
label: "自定义组名",
|
|
2903
2903
|
required: ""
|
|
2904
2904
|
}, {
|
|
@@ -2908,7 +2908,7 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
2908
2908
|
"onUpdate:modelValue": C[2] || (C[2] = (F) => p.value = F),
|
|
2909
2909
|
style: { width: "100%" }
|
|
2910
2910
|
}, null, 8, ["modelValue"]), [
|
|
2911
|
-
[s(
|
|
2911
|
+
[s(Ct)]
|
|
2912
2912
|
])
|
|
2913
2913
|
]),
|
|
2914
2914
|
_: 1
|
|
@@ -2921,10 +2921,10 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
2921
2921
|
}, 8, ["modelValue"])
|
|
2922
2922
|
], 64));
|
|
2923
2923
|
}
|
|
2924
|
-
}),
|
|
2924
|
+
}), ar = /* @__PURE__ */ pe(tr, [["__scopeId", "data-v-1bab28b9"]]), lr = { class: "ja-user-list" }, or = ["onMouseenter", "onMousedown", "onMouseover"], nr = {
|
|
2925
2925
|
key: 0,
|
|
2926
2926
|
class: "page-indicator"
|
|
2927
|
-
},
|
|
2927
|
+
}, rr = { class: "nb-spinner" }, sr = 1, ur = /* @__PURE__ */ z({
|
|
2928
2928
|
__name: "JaUserList",
|
|
2929
2929
|
props: /* @__PURE__ */ Q({
|
|
2930
2930
|
emptyText: {},
|
|
@@ -2945,11 +2945,11 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
2945
2945
|
pageModifiers: {}
|
|
2946
2946
|
}),
|
|
2947
2947
|
emits: /* @__PURE__ */ Q(["arrowKeyDown", "itemClicked"], ["update:modelValue", "update:page"]),
|
|
2948
|
-
setup(e, { expose:
|
|
2949
|
-
const t = e, o = h(0), d = h(), u = h(!1), n = ue(e, "modelValue"), c = ue(e, "page"), p =
|
|
2948
|
+
setup(e, { expose: l, emit: a }) {
|
|
2949
|
+
const t = e, o = h(0), d = h(), u = h(!1), n = ue(e, "modelValue"), c = ue(e, "page"), p = a, i = Oe(() => {
|
|
2950
2950
|
var O;
|
|
2951
2951
|
const A = (O = d.value) == null ? void 0 : O.wrapRef;
|
|
2952
|
-
A && A.scrollHeight - A.scrollTop <= A.clientHeight +
|
|
2952
|
+
A && A.scrollHeight - A.scrollTop <= A.clientHeight + sr && c.value < t.total / t.pageSize && c.value++;
|
|
2953
2953
|
}, 200);
|
|
2954
2954
|
function m(A) {
|
|
2955
2955
|
if (t.multiple) {
|
|
@@ -2977,7 +2977,7 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
2977
2977
|
o.value > 0 && o.value--, P();
|
|
2978
2978
|
}
|
|
2979
2979
|
const P = () => {
|
|
2980
|
-
|
|
2980
|
+
Ce(() => {
|
|
2981
2981
|
var L, X, ee;
|
|
2982
2982
|
const A = (L = d.value) == null ? void 0 : L.$refs.wrapRef, O = A == null ? void 0 : A.querySelectorAll("li")[o.value];
|
|
2983
2983
|
if (O && A) {
|
|
@@ -2988,7 +2988,7 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
2988
2988
|
) : E < D && ((ee = d.value) == null || ee.scrollTo(0, E));
|
|
2989
2989
|
}
|
|
2990
2990
|
});
|
|
2991
|
-
}, k =
|
|
2991
|
+
}, k = Oe(v, 100), C = Oe(S, 100);
|
|
2992
2992
|
function F(A, O) {
|
|
2993
2993
|
var L;
|
|
2994
2994
|
if (o.value = O, u.value = A.buttons > 0, u.value) {
|
|
@@ -3013,7 +3013,7 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
3013
3013
|
return A === o.value ? "active" : "";
|
|
3014
3014
|
}
|
|
3015
3015
|
const be = ge(() => t.loading && t.users.length == 0);
|
|
3016
|
-
return
|
|
3016
|
+
return l({
|
|
3017
3017
|
scrollUp() {
|
|
3018
3018
|
S();
|
|
3019
3019
|
},
|
|
@@ -3025,10 +3025,10 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
3025
3025
|
o.value = 0;
|
|
3026
3026
|
}, {
|
|
3027
3027
|
deep: !1
|
|
3028
|
-
}),
|
|
3028
|
+
}), Ae(() => {
|
|
3029
3029
|
k.cancel(), C.cancel(), i.cancel();
|
|
3030
|
-
}), (A, O) => (b(), N("div",
|
|
3031
|
-
Y((b(), $(s(
|
|
3030
|
+
}), (A, O) => (b(), N("div", lr, [
|
|
3031
|
+
Y((b(), $(s($e), {
|
|
3032
3032
|
height: A.height,
|
|
3033
3033
|
ref_key: "scrollbar",
|
|
3034
3034
|
ref: d,
|
|
@@ -3042,46 +3042,46 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
3042
3042
|
}, [
|
|
3043
3043
|
(b(!0), N(ne, null, W(A.users, (L, X) => (b(), N("li", {
|
|
3044
3044
|
key: L.id,
|
|
3045
|
-
class:
|
|
3045
|
+
class: We(me(X)),
|
|
3046
3046
|
onMouseenter: (ee) => u.value && y(L),
|
|
3047
3047
|
onMousedown: (ee) => _(L),
|
|
3048
3048
|
onMouseover: (ee) => F(ee, X)
|
|
3049
3049
|
}, [
|
|
3050
3050
|
w(s(ce), { color: "#0D6A9F" }, {
|
|
3051
3051
|
default: g(() => [
|
|
3052
|
-
q(L) ? (b(), $(s(
|
|
3052
|
+
q(L) ? (b(), $(s(oa), { key: 0 })) : de("", !0)
|
|
3053
3053
|
]),
|
|
3054
3054
|
_: 2
|
|
3055
3055
|
}, 1024),
|
|
3056
|
-
w(s(
|
|
3056
|
+
w(s(at), {
|
|
3057
3057
|
"user-id": L.id,
|
|
3058
3058
|
"full-name": L.fullName,
|
|
3059
3059
|
"has-avatar": L.hasAvatar,
|
|
3060
3060
|
placement: "left-start",
|
|
3061
3061
|
theme: Z(L)
|
|
3062
3062
|
}, null, 8, ["user-id", "full-name", "has-avatar", "theme"])
|
|
3063
|
-
], 42,
|
|
3064
|
-
], 32)) : (b(), $(s(
|
|
3063
|
+
], 42, or))), 128))
|
|
3064
|
+
], 32)) : (b(), $(s(qt), {
|
|
3065
3065
|
key: 1,
|
|
3066
3066
|
description: A.emptyText
|
|
3067
3067
|
}, null, 8, ["description"]))
|
|
3068
3068
|
]),
|
|
3069
3069
|
_: 1
|
|
3070
3070
|
}, 8, ["height", "onScroll"])), [
|
|
3071
|
-
[s(
|
|
3071
|
+
[s(Ee), be.value]
|
|
3072
3072
|
]),
|
|
3073
|
-
A.users.length > 0 ? (b(), N("div",
|
|
3074
|
-
Y(j("div",
|
|
3073
|
+
A.users.length > 0 ? (b(), N("div", nr, [
|
|
3074
|
+
Y(j("div", rr, null, 512), [
|
|
3075
3075
|
[he, A.loading]
|
|
3076
3076
|
]),
|
|
3077
3077
|
G(" 已加载 " + ae(c.value) + " /" + ae(Math.ceil(A.total / A.pageSize)) + "页 ", 1)
|
|
3078
3078
|
])) : de("", !0)
|
|
3079
3079
|
]));
|
|
3080
3080
|
}
|
|
3081
|
-
}),
|
|
3081
|
+
}), Sa = /* @__PURE__ */ pe(ur, [["__scopeId", "data-v-e4c1ead2"]]), ir = { class: "ja-user-picker__root" }, dr = { class: "ja-user-picker-bookmark__dropdown" }, cr = { style: { width: "100%", display: "flex", "align-content": "center", "justify-content": "end", "margin-bottom": "4px" } }, pr = { style: { color: "var(--el-color-info-light-5)" } }, mr = { class: "dropdown-header" }, fr = {
|
|
3082
3082
|
key: 0,
|
|
3083
3083
|
class: "more-tag"
|
|
3084
|
-
},
|
|
3084
|
+
}, vr = { key: 1 }, Le = 0, gr = /* @__PURE__ */ z({
|
|
3085
3085
|
__name: "UserPicker",
|
|
3086
3086
|
props: /* @__PURE__ */ Q({
|
|
3087
3087
|
/**
|
|
@@ -3127,19 +3127,19 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
3127
3127
|
}),
|
|
3128
3128
|
emits: ["update:modelValue"],
|
|
3129
3129
|
setup(e) {
|
|
3130
|
-
const
|
|
3130
|
+
const l = e, a = h();
|
|
3131
3131
|
async function t() {
|
|
3132
|
-
if (
|
|
3133
|
-
|
|
3132
|
+
if (l.realmId)
|
|
3133
|
+
a.value = l.realmId;
|
|
3134
3134
|
else {
|
|
3135
|
-
const V = await
|
|
3136
|
-
|
|
3135
|
+
const V = await Vt().getDefaultRealm();
|
|
3136
|
+
a.value = V.id;
|
|
3137
3137
|
}
|
|
3138
3138
|
}
|
|
3139
|
-
t(), T(() =>
|
|
3140
|
-
const o = le(), d =
|
|
3141
|
-
() => i.value.name != null && i.value.name.length >
|
|
3142
|
-
|
|
3139
|
+
t(), T(() => l.realmId, t);
|
|
3140
|
+
const o = le(), d = bt(o), u = Na([]), n = ue(e, "modelValue"), c = h(), p = h(!1), { queryResult: r, queryParams: i, pageParams: m, loading: f } = ha(
|
|
3141
|
+
() => i.value.name != null && i.value.name.length > Le,
|
|
3142
|
+
l.customFilter,
|
|
3143
3143
|
(V, D) => {
|
|
3144
3144
|
var B, ie;
|
|
3145
3145
|
V ? (u.value = r.value.users, D && ((ie = (B = I.value) == null ? void 0 : B.elScrollbar) == null || ie.scrollTo(0, 0))) : k();
|
|
@@ -3149,7 +3149,7 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
3149
3149
|
!1
|
|
3150
3150
|
), _ = h(), I = h(), y = h(), v = h(), S = h();
|
|
3151
3151
|
function P(V) {
|
|
3152
|
-
if (
|
|
3152
|
+
if (l.multiple) {
|
|
3153
3153
|
if (!Array.isArray(n.value))
|
|
3154
3154
|
throw new Error("UserPicker组件设置为多选模式(multiple)时,v-model必须绑定UserReference数组");
|
|
3155
3155
|
const D = n.value.findIndex((B) => B.id == V.id);
|
|
@@ -3158,11 +3158,11 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
3158
3158
|
n.value = V;
|
|
3159
3159
|
}
|
|
3160
3160
|
function k() {
|
|
3161
|
-
|
|
3162
|
-
const V =
|
|
3163
|
-
if (
|
|
3161
|
+
l.realmId && (i.value.realmId = l.realmId), i.value.name && i.value.name.length > Le && (i.value.name = void 0);
|
|
3162
|
+
const V = Yt();
|
|
3163
|
+
if (l.customFilter) {
|
|
3164
3164
|
const D = V.getQEntity();
|
|
3165
|
-
V.and(
|
|
3165
|
+
V.and(l.customFilter(D));
|
|
3166
3166
|
}
|
|
3167
3167
|
d.getBookmarkedUsers(V.build()).then((D) => {
|
|
3168
3168
|
u.value = D;
|
|
@@ -3206,16 +3206,16 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
3206
3206
|
V.push(...u.value.filter((D) => !V.some((B) => B.id === D.id)));
|
|
3207
3207
|
}
|
|
3208
3208
|
function O() {
|
|
3209
|
-
|
|
3209
|
+
l.multiple ? n.value = [] : n.value = null;
|
|
3210
3210
|
}
|
|
3211
3211
|
function L() {
|
|
3212
3212
|
var V;
|
|
3213
3213
|
(V = c.value) == null || V.focus();
|
|
3214
3214
|
}
|
|
3215
3215
|
const X = ge(() => {
|
|
3216
|
-
if (
|
|
3216
|
+
if (l.multiple && Array.isArray(n.value))
|
|
3217
3217
|
return n.value;
|
|
3218
|
-
if (!
|
|
3218
|
+
if (!l.multiple && !Array.isArray(n.value))
|
|
3219
3219
|
return n.value ? [n.value] : [];
|
|
3220
3220
|
throw new Error("UserPicker组件设置为多选模式(multiple)时,v-model必须绑定UserReference数组");
|
|
3221
3221
|
});
|
|
@@ -3223,17 +3223,17 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
3223
3223
|
var V;
|
|
3224
3224
|
(V = y.value) == null || V.show(), p.value = !1;
|
|
3225
3225
|
}
|
|
3226
|
-
const E = ge(() => X.value.slice(0,
|
|
3227
|
-
return T(() =>
|
|
3228
|
-
i.value.classificationLevel =
|
|
3226
|
+
const E = ge(() => X.value.slice(0, l.maxShowCount));
|
|
3227
|
+
return T(() => l.classificationLevel, () => {
|
|
3228
|
+
i.value.classificationLevel = l.classificationLevel;
|
|
3229
3229
|
}), (V, D) => (b(), N(ne, null, [
|
|
3230
|
-
w(s(
|
|
3231
|
-
"max-height":
|
|
3232
|
-
height:
|
|
3230
|
+
w(s(ka), K({
|
|
3231
|
+
"max-height": l.maxHeight,
|
|
3232
|
+
height: l.height
|
|
3233
3233
|
}, V.$attrs, { style: { "overflow-x": "hidden" } }), {
|
|
3234
3234
|
default: g(() => [
|
|
3235
|
-
Y((b(), N("div",
|
|
3236
|
-
w(s(
|
|
3235
|
+
Y((b(), N("div", ir, [
|
|
3236
|
+
w(s(xt), {
|
|
3237
3237
|
ref: "bookmarkDropdown",
|
|
3238
3238
|
onShow: k,
|
|
3239
3239
|
onHide: C,
|
|
@@ -3245,7 +3245,7 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
3245
3245
|
reference: g(() => [
|
|
3246
3246
|
w(s(fe), {
|
|
3247
3247
|
circle: "",
|
|
3248
|
-
icon: s(
|
|
3248
|
+
icon: s(Se),
|
|
3249
3249
|
size: "small",
|
|
3250
3250
|
ref_key: "btn",
|
|
3251
3251
|
ref: _,
|
|
@@ -3253,9 +3253,9 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
3253
3253
|
}, null, 8, ["icon"])
|
|
3254
3254
|
]),
|
|
3255
3255
|
default: g(() => [
|
|
3256
|
-
j("div",
|
|
3257
|
-
j("div",
|
|
3258
|
-
w(s(
|
|
3256
|
+
j("div", dr, [
|
|
3257
|
+
j("div", cr, [
|
|
3258
|
+
w(s(ht), { style: { flex: "auto" } }, {
|
|
3259
3259
|
default: g(() => [
|
|
3260
3260
|
w(s(se), {
|
|
3261
3261
|
circle: "",
|
|
@@ -3265,7 +3265,7 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
3265
3265
|
type: "primary",
|
|
3266
3266
|
tooltip: "对话框筛选(大批量选择)",
|
|
3267
3267
|
shortcut: "Ctrl+Alt+I",
|
|
3268
|
-
icon: s(
|
|
3268
|
+
icon: s(ul)
|
|
3269
3269
|
}, null, 8, ["icon"]),
|
|
3270
3270
|
w(s(se), {
|
|
3271
3271
|
circle: "",
|
|
@@ -3273,18 +3273,18 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
3273
3273
|
onClick: O,
|
|
3274
3274
|
type: "danger",
|
|
3275
3275
|
plain: "",
|
|
3276
|
-
icon: s(
|
|
3276
|
+
icon: s(il),
|
|
3277
3277
|
tooltip: "清空选择",
|
|
3278
3278
|
shortcut: "Alt+C"
|
|
3279
3279
|
}, null, 8, ["icon"]),
|
|
3280
|
-
|
|
3280
|
+
l.multiple ? (b(), $(s(se), {
|
|
3281
3281
|
key: 0,
|
|
3282
3282
|
circle: "",
|
|
3283
3283
|
size: "small",
|
|
3284
3284
|
onClick: A,
|
|
3285
3285
|
type: "success",
|
|
3286
3286
|
plain: "",
|
|
3287
|
-
icon: s(
|
|
3287
|
+
icon: s(dl),
|
|
3288
3288
|
tooltip: "全选(已加载的数据)",
|
|
3289
3289
|
shortcut: "Ctrl+A"
|
|
3290
3290
|
}, null, 8, ["icon"])) : de("", !0),
|
|
@@ -3293,35 +3293,35 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
3293
3293
|
size: "small",
|
|
3294
3294
|
onClick: F,
|
|
3295
3295
|
type: "warning",
|
|
3296
|
-
icon: s(
|
|
3296
|
+
icon: s(cl),
|
|
3297
3297
|
plain: "",
|
|
3298
3298
|
tooltip: "将已选中用户保存为自定义组,方便以后选择使用"
|
|
3299
3299
|
}, null, 8, ["icon"])
|
|
3300
3300
|
]),
|
|
3301
3301
|
_: 1
|
|
3302
3302
|
}),
|
|
3303
|
-
j("div",
|
|
3303
|
+
j("div", pr, " 弹出快捷键:" + ae(l.shortcut), 1)
|
|
3304
3304
|
]),
|
|
3305
3305
|
w(s(we), {
|
|
3306
3306
|
modelValue: s(i).name,
|
|
3307
3307
|
"onUpdate:modelValue": D[1] || (D[1] = (B) => s(i).name = B),
|
|
3308
3308
|
ref_key: "inputSearchText",
|
|
3309
3309
|
ref: c,
|
|
3310
|
-
"suffix-icon": s(
|
|
3310
|
+
"suffix-icon": s(Tt),
|
|
3311
3311
|
placeholder: "请输入拼音名、姓名或手机号查询",
|
|
3312
3312
|
autocomplete: "off",
|
|
3313
3313
|
onKeydown: [
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3314
|
+
Ie(me, ["enter"]),
|
|
3315
|
+
Ie(Et(H, ["stop", "prevent"]), ["up"]),
|
|
3316
|
+
Ie(Et(Z, ["stop", "prevent"]), ["down"])
|
|
3317
3317
|
]
|
|
3318
3318
|
}, null, 8, ["modelValue", "suffix-icon", "onKeydown"]),
|
|
3319
|
-
j("div",
|
|
3320
|
-
w(s(
|
|
3319
|
+
j("div", mr, [
|
|
3320
|
+
w(s(Me), null, {
|
|
3321
3321
|
default: g(() => [
|
|
3322
|
-
s(i).name && s(i).name.length >
|
|
3322
|
+
s(i).name && s(i).name.length > Le ? (b(), $(s(ce), { key: 0 }, {
|
|
3323
3323
|
default: g(() => [
|
|
3324
|
-
w(s(
|
|
3324
|
+
w(s(Tt))
|
|
3325
3325
|
]),
|
|
3326
3326
|
_: 1
|
|
3327
3327
|
})) : (b(), $(s(ce), {
|
|
@@ -3329,20 +3329,20 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
3329
3329
|
color: "#FFBF29"
|
|
3330
3330
|
}, {
|
|
3331
3331
|
default: g(() => [
|
|
3332
|
-
w(s(
|
|
3332
|
+
w(s(la))
|
|
3333
3333
|
]),
|
|
3334
3334
|
_: 1
|
|
3335
3335
|
})),
|
|
3336
|
-
G(" " + ae(s(i).name && s(i).name.length >
|
|
3336
|
+
G(" " + ae(s(i).name && s(i).name.length > Le ? "查询结果" : "常用人员"), 1)
|
|
3337
3337
|
]),
|
|
3338
3338
|
_: 1
|
|
3339
3339
|
})
|
|
3340
3340
|
]),
|
|
3341
|
-
w(
|
|
3341
|
+
w(Sa, {
|
|
3342
3342
|
ref_key: "userList",
|
|
3343
3343
|
ref: S,
|
|
3344
3344
|
total: s(r).total,
|
|
3345
|
-
"empty-text": s(i).name && s(i).name.length >
|
|
3345
|
+
"empty-text": s(i).name && s(i).name.length > Le ? void 0 : "无可选常用人员",
|
|
3346
3346
|
multiple: "",
|
|
3347
3347
|
"page-size": s(m).pageSize,
|
|
3348
3348
|
loading: s(f),
|
|
@@ -3359,7 +3359,7 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
3359
3359
|
]),
|
|
3360
3360
|
_: 1
|
|
3361
3361
|
}, 8, ["visible"]),
|
|
3362
|
-
(b(!0), N(ne, null, W(E.value, (B) => (b(), $(s(
|
|
3362
|
+
(b(!0), N(ne, null, W(E.value, (B) => (b(), $(s(at), {
|
|
3363
3363
|
key: B.id,
|
|
3364
3364
|
"user-id": B.id,
|
|
3365
3365
|
"full-name": B.fullName,
|
|
@@ -3367,9 +3367,9 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
3367
3367
|
"has-avatar": B.hasAvatar,
|
|
3368
3368
|
onClosed: q
|
|
3369
3369
|
}, null, 8, ["user-id", "full-name", "has-avatar"]))), 128)),
|
|
3370
|
-
X.value.length >
|
|
3371
|
-
X.value.length === 0 ? (b(), N("div",
|
|
3372
|
-
w(s(
|
|
3370
|
+
X.value.length > l.maxShowCount ? (b(), N("div", fr, " +" + ae(X.value.length - l.maxShowCount) + "人 ", 1)) : de("", !0),
|
|
3371
|
+
X.value.length === 0 ? (b(), N("div", vr, [
|
|
3372
|
+
w(s(Me), { type: "info" }, {
|
|
3373
3373
|
default: g(() => D[6] || (D[6] = [
|
|
3374
3374
|
G(" <暂无选中人员>")
|
|
3375
3375
|
])),
|
|
@@ -3377,52 +3377,52 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
3377
3377
|
__: [6]
|
|
3378
3378
|
})
|
|
3379
3379
|
])) : de("", !0),
|
|
3380
|
-
w(s(
|
|
3380
|
+
w(s(_a), {
|
|
3381
3381
|
ref_key: "dialogUserSelector",
|
|
3382
3382
|
ref: y,
|
|
3383
|
-
multiple:
|
|
3384
|
-
"realm-id":
|
|
3385
|
-
customFilter:
|
|
3383
|
+
multiple: l.multiple,
|
|
3384
|
+
"realm-id": a.value,
|
|
3385
|
+
customFilter: l.customFilter,
|
|
3386
3386
|
modelValue: n.value,
|
|
3387
3387
|
"onUpdate:modelValue": D[5] || (D[5] = (B) => n.value = B)
|
|
3388
3388
|
}, null, 8, ["multiple", "realm-id", "customFilter", "modelValue"])
|
|
3389
3389
|
])), [
|
|
3390
|
-
[s(
|
|
3390
|
+
[s(tt), be, l.shortcut]
|
|
3391
3391
|
])
|
|
3392
3392
|
]),
|
|
3393
3393
|
_: 1
|
|
3394
3394
|
}, 16, ["max-height", "height"]),
|
|
3395
|
-
w(
|
|
3395
|
+
w(ar, {
|
|
3396
3396
|
ref_key: "dlgCustomGroupManager",
|
|
3397
3397
|
ref: v,
|
|
3398
3398
|
users: Array.isArray(n.value) ? n.value : n.value ? [n.value] : null
|
|
3399
3399
|
}, null, 8, ["users"])
|
|
3400
3400
|
], 64));
|
|
3401
3401
|
}
|
|
3402
|
-
}),
|
|
3402
|
+
}), Ta = /* @__PURE__ */ pe(gr, [["__scopeId", "data-v-c3610320"]]), hr = /* @__PURE__ */ z({
|
|
3403
3403
|
__name: "JaUserPicker",
|
|
3404
3404
|
emits: ["change"],
|
|
3405
|
-
setup(e, { emit:
|
|
3406
|
-
const
|
|
3405
|
+
setup(e, { emit: l }) {
|
|
3406
|
+
const a = M("aceFormModel"), t = M("aceFormItemProp"), o = M("aceFormValidator"), d = l;
|
|
3407
3407
|
function u(c) {
|
|
3408
|
-
o.removeFieldError(t), re(
|
|
3408
|
+
o.removeFieldError(t), re(a.formData, t, n.value), d("change", c);
|
|
3409
3409
|
}
|
|
3410
|
-
const n = h(x(
|
|
3411
|
-
return T(() =>
|
|
3412
|
-
n.value = x(
|
|
3410
|
+
const n = h(x(a.formData, t) ?? []);
|
|
3411
|
+
return T(() => a.formData, () => {
|
|
3412
|
+
n.value = x(a.formData, t) ?? [];
|
|
3413
3413
|
}, {
|
|
3414
3414
|
deep: !0
|
|
3415
|
-
}), (c, p) => (b(), $(
|
|
3415
|
+
}), (c, p) => (b(), $(Ta, K({
|
|
3416
3416
|
modelValue: n.value,
|
|
3417
3417
|
"onUpdate:modelValue": p[0] || (p[0] = (r) => n.value = r),
|
|
3418
3418
|
onChange: u
|
|
3419
3419
|
}, c.$attrs), null, 16, ["modelValue"]));
|
|
3420
3420
|
}
|
|
3421
|
-
}),
|
|
3421
|
+
}), yr = R(Ta), br = R(hr), wr = R(Sa), _r = /* @__PURE__ */ z({
|
|
3422
3422
|
__name: "JaTimePicker",
|
|
3423
3423
|
emits: ["change"],
|
|
3424
|
-
setup(e, { expose:
|
|
3425
|
-
const t = h({}), o = M("aceFormModel"), d = M("aceFormItemProp"), u = M("aceFormValidator"), n =
|
|
3424
|
+
setup(e, { expose: l, emit: a }) {
|
|
3425
|
+
const t = h({}), o = M("aceFormModel"), d = M("aceFormItemProp"), u = M("aceFormValidator"), n = a, c = h({});
|
|
3426
3426
|
function p(i) {
|
|
3427
3427
|
u.removeFieldError(d), re(o.formData, d, r.value), n("change", i);
|
|
3428
3428
|
}
|
|
@@ -3431,11 +3431,11 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
3431
3431
|
r.value = x(o.formData, d);
|
|
3432
3432
|
}, {
|
|
3433
3433
|
deep: !0
|
|
3434
|
-
}),
|
|
3434
|
+
}), Xe(() => {
|
|
3435
3435
|
Object.entries(t.value).filter(([m, f]) => f instanceof Function).forEach(([m, f]) => {
|
|
3436
3436
|
c.value[m] = f;
|
|
3437
3437
|
});
|
|
3438
|
-
}),
|
|
3438
|
+
}), l(c.value), (i, m) => (b(), $(s(Ka), K({
|
|
3439
3439
|
ref_key: "input",
|
|
3440
3440
|
ref: t,
|
|
3441
3441
|
modelValue: s(o).formData[s(d)],
|
|
@@ -3450,7 +3450,7 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
3450
3450
|
}))
|
|
3451
3451
|
]), 1040, ["modelValue"]));
|
|
3452
3452
|
}
|
|
3453
|
-
}),
|
|
3453
|
+
}), kr = R(_r), Vr = /* @__PURE__ */ z({
|
|
3454
3454
|
__name: "UserGroupPicker",
|
|
3455
3455
|
props: /* @__PURE__ */ Q({
|
|
3456
3456
|
realmId: {},
|
|
@@ -3463,17 +3463,17 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
3463
3463
|
modelModifiers: {}
|
|
3464
3464
|
}),
|
|
3465
3465
|
emits: /* @__PURE__ */ Q(["change"], ["update:modelValue"]),
|
|
3466
|
-
setup(e, { emit:
|
|
3467
|
-
const
|
|
3466
|
+
setup(e, { emit: l }) {
|
|
3467
|
+
const a = le(), t = Qt(a), o = e, d = ue(e, "modelValue"), u = l;
|
|
3468
3468
|
if (o.multiple && !Array.isArray(d.value))
|
|
3469
3469
|
throw new Error("用户组选择器设置multiple为true,但是绑定的v-model值是单值");
|
|
3470
3470
|
if (!o.multiple && Array.isArray(d.value))
|
|
3471
3471
|
throw new Error("用户组选择器未设置multiple为true,但是绑定的v-model值是数组");
|
|
3472
|
-
const n =
|
|
3472
|
+
const n = je({
|
|
3473
3473
|
groups: []
|
|
3474
3474
|
}), c = () => {
|
|
3475
3475
|
!o.realmId || !o.appId || t.getByAppIdAndRealm(o.appId, o.realmId ?? "0").then((r) => {
|
|
3476
|
-
n.groups = [...
|
|
3476
|
+
n.groups = [...Ue(r, "name")], !d.value && !o.multiple && (d.value = n.groups[0].id);
|
|
3477
3477
|
});
|
|
3478
3478
|
}, p = (r) => {
|
|
3479
3479
|
u("change", Array.isArray(r) ? n.groups.filter((i) => r.findIndex((m) => i.id === m) >= 0) : n.groups.find((i) => i.id === r));
|
|
@@ -3483,7 +3483,7 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
3483
3483
|
() => {
|
|
3484
3484
|
c();
|
|
3485
3485
|
}
|
|
3486
|
-
), T(() => o.appId, c), (r, i) => (b(), $(s(
|
|
3486
|
+
), T(() => o.appId, c), (r, i) => (b(), $(s(yt), K({
|
|
3487
3487
|
style: { width: "100%" },
|
|
3488
3488
|
data: n.groups,
|
|
3489
3489
|
size: o.size,
|
|
@@ -3502,11 +3502,11 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
3502
3502
|
teleported: ""
|
|
3503
3503
|
}), null, 16, ["data", "size", "current-node-key", "modelValue", "multiple"]));
|
|
3504
3504
|
}
|
|
3505
|
-
}),
|
|
3505
|
+
}), Ir = R(Vr), Cr = /* @__PURE__ */ z({
|
|
3506
3506
|
__name: "JaAutoComplete",
|
|
3507
3507
|
emits: ["change"],
|
|
3508
|
-
setup(e, { expose:
|
|
3509
|
-
const t = h(), o = M("aceFormModel"), d = M("aceFormItemProp"), u = M("aceFormValidator"), n =
|
|
3508
|
+
setup(e, { expose: l, emit: a }) {
|
|
3509
|
+
const t = h(), o = M("aceFormModel"), d = M("aceFormItemProp"), u = M("aceFormValidator"), n = a;
|
|
3510
3510
|
function c(r) {
|
|
3511
3511
|
u.removeFieldError(d), re(o.formData, d, p.value), n("change", r);
|
|
3512
3512
|
}
|
|
@@ -3515,9 +3515,9 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
3515
3515
|
p.value = x(o.formData, d);
|
|
3516
3516
|
}, {
|
|
3517
3517
|
deep: !0
|
|
3518
|
-
}),
|
|
3518
|
+
}), l({
|
|
3519
3519
|
elAutocomplete: t
|
|
3520
|
-
}), (r, i) => (b(), $(s(
|
|
3520
|
+
}), (r, i) => (b(), $(s(Ya), K({
|
|
3521
3521
|
ref_key: "input",
|
|
3522
3522
|
ref: t,
|
|
3523
3523
|
modelValue: p.value,
|
|
@@ -3532,11 +3532,11 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
3532
3532
|
}))
|
|
3533
3533
|
]), 1040, ["modelValue"]));
|
|
3534
3534
|
}
|
|
3535
|
-
}),
|
|
3535
|
+
}), $r = R(Cr), Ar = /* @__PURE__ */ z({
|
|
3536
3536
|
__name: "JaRadioGroup",
|
|
3537
3537
|
emits: ["change"],
|
|
3538
|
-
setup(e, { expose:
|
|
3539
|
-
const t = h({}), o = M("aceFormModel"), d = M("aceFormItemProp"), u = M("aceFormValidator"), n =
|
|
3538
|
+
setup(e, { expose: l, emit: a }) {
|
|
3539
|
+
const t = h({}), o = M("aceFormModel"), d = M("aceFormItemProp"), u = M("aceFormValidator"), n = a;
|
|
3540
3540
|
function c(r) {
|
|
3541
3541
|
u.removeFieldError(d), re(o.formData, d, p.value), n("change", r);
|
|
3542
3542
|
}
|
|
@@ -3545,11 +3545,11 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
3545
3545
|
p.value = x(o.formData, d);
|
|
3546
3546
|
}, {
|
|
3547
3547
|
deep: !0
|
|
3548
|
-
}),
|
|
3548
|
+
}), l({
|
|
3549
3549
|
focus: () => t.value.focus(),
|
|
3550
3550
|
blur: () => t.value.blur(),
|
|
3551
3551
|
elRadioGroup: t
|
|
3552
|
-
}), (r, i) => (b(), $(s(
|
|
3552
|
+
}), (r, i) => (b(), $(s(Qa), K({
|
|
3553
3553
|
ref_key: "input",
|
|
3554
3554
|
ref: t,
|
|
3555
3555
|
modelValue: p.value,
|
|
@@ -3564,7 +3564,7 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
3564
3564
|
}))
|
|
3565
3565
|
]), 1040, ["modelValue"]));
|
|
3566
3566
|
}
|
|
3567
|
-
}),
|
|
3567
|
+
}), Dr = R(Ar), Er = /* @__PURE__ */ z({
|
|
3568
3568
|
__name: "baseRolePicker",
|
|
3569
3569
|
props: /* @__PURE__ */ Q({
|
|
3570
3570
|
appName: {}
|
|
@@ -3573,10 +3573,10 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
3573
3573
|
modelModifiers: {}
|
|
3574
3574
|
}),
|
|
3575
3575
|
emits: /* @__PURE__ */ Q(["change"], ["update:modelValue"]),
|
|
3576
|
-
setup(e, { expose:
|
|
3577
|
-
const t = le(), o =
|
|
3576
|
+
setup(e, { expose: l, emit: a }) {
|
|
3577
|
+
const t = le(), o = Zt(t), d = wt(t), u = e, n = h(), c = h([]), p = async () => {
|
|
3578
3578
|
u.appName && (n.value = await d.getByName(u.appName), c.value = await o.getAllRole(n.value.id), console.log(c.value), r.value ? m.value = y(r.value, c.value) : m.value = void 0);
|
|
3579
|
-
}, r = ue(e, "modelValue"), i =
|
|
3579
|
+
}, r = ue(e, "modelValue"), i = a, m = h();
|
|
3580
3580
|
T(() => u.appName, p), p();
|
|
3581
3581
|
const f = {
|
|
3582
3582
|
label: (v) => v.caption ? v.caption : v.name,
|
|
@@ -3596,11 +3596,11 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
3596
3596
|
}
|
|
3597
3597
|
}
|
|
3598
3598
|
}
|
|
3599
|
-
return
|
|
3599
|
+
return l({
|
|
3600
3600
|
loadData: p,
|
|
3601
3601
|
currentRole: m,
|
|
3602
3602
|
elTreeSelect: _
|
|
3603
|
-
}), (v, S) => (b(), $(s(
|
|
3603
|
+
}), (v, S) => (b(), $(s(yt), K({
|
|
3604
3604
|
ref_key: "select",
|
|
3605
3605
|
ref: _,
|
|
3606
3606
|
data: c.value,
|
|
@@ -3625,21 +3625,21 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
3625
3625
|
]), 1040, ["data", "current-node-key", "modelValue"]));
|
|
3626
3626
|
}
|
|
3627
3627
|
});
|
|
3628
|
-
let
|
|
3629
|
-
async function
|
|
3630
|
-
const e = le(),
|
|
3631
|
-
return
|
|
3632
|
-
async getById(
|
|
3633
|
-
let t =
|
|
3634
|
-
return t || (t = await
|
|
3628
|
+
let Te = [];
|
|
3629
|
+
async function $t() {
|
|
3630
|
+
const e = le(), l = wt(e);
|
|
3631
|
+
return Te.length === 0 && (Te = await l.getAll(!0)), {
|
|
3632
|
+
async getById(a) {
|
|
3633
|
+
let t = Te.find((o) => o.id === a);
|
|
3634
|
+
return t || (t = await l.getById(a), t && Te.push(t)), t;
|
|
3635
3635
|
},
|
|
3636
|
-
async getByName(
|
|
3637
|
-
let t =
|
|
3638
|
-
return t || (t = await
|
|
3636
|
+
async getByName(a) {
|
|
3637
|
+
let t = Te.find((o) => o.name === a);
|
|
3638
|
+
return t || (t = await l.getByName(a), t && Te.push(t)), t;
|
|
3639
3639
|
}
|
|
3640
3640
|
};
|
|
3641
3641
|
}
|
|
3642
|
-
const
|
|
3642
|
+
const Sr = /* @__PURE__ */ z({
|
|
3643
3643
|
__name: "RoleEditor",
|
|
3644
3644
|
props: /* @__PURE__ */ Q({
|
|
3645
3645
|
appName: {}
|
|
@@ -3648,8 +3648,8 @@ const Ar = /* @__PURE__ */ z({
|
|
|
3648
3648
|
modelModifiers: {}
|
|
3649
3649
|
}),
|
|
3650
3650
|
emits: /* @__PURE__ */ Q(["success"], ["update:modelValue"]),
|
|
3651
|
-
setup(e, { emit:
|
|
3652
|
-
const
|
|
3651
|
+
setup(e, { emit: l }) {
|
|
3652
|
+
const a = ue(e, "modelValue"), t = e, o = l, d = {
|
|
3653
3653
|
hasChildren: !1,
|
|
3654
3654
|
parentId: "0",
|
|
3655
3655
|
releaseSource: "",
|
|
@@ -3664,11 +3664,11 @@ const Ar = /* @__PURE__ */ z({
|
|
|
3664
3664
|
name: ""
|
|
3665
3665
|
}, u = h({
|
|
3666
3666
|
formData: { ...d }
|
|
3667
|
-
}), n = le(), c =
|
|
3667
|
+
}), n = le(), c = bl(Object.keys(d), n), p = _e(n), r = Zt(n), i = h(), m = h(), f = h();
|
|
3668
3668
|
async function _() {
|
|
3669
3669
|
if (u.value.formData = { ...d }, !t.appName)
|
|
3670
3670
|
throw new Error("rolePicker组件的appName属性不能为空");
|
|
3671
|
-
f.value = await (await
|
|
3671
|
+
f.value = await (await $t()).getByName(t.appName);
|
|
3672
3672
|
}
|
|
3673
3673
|
async function I() {
|
|
3674
3674
|
var S, P;
|
|
@@ -3689,17 +3689,17 @@ const Ar = /* @__PURE__ */ z({
|
|
|
3689
3689
|
name: y.name,
|
|
3690
3690
|
caption: y.caption
|
|
3691
3691
|
}).then((k) => {
|
|
3692
|
-
o("success", k),
|
|
3692
|
+
o("success", k), a.value = !1;
|
|
3693
3693
|
}));
|
|
3694
3694
|
}
|
|
3695
3695
|
return (y, v) => {
|
|
3696
3696
|
const S = ye("ja-input-i18n-raw"), P = ye("ja-form");
|
|
3697
|
-
return b(), $(s(
|
|
3697
|
+
return b(), $(s(Gt), {
|
|
3698
3698
|
"destroy-on-close": "",
|
|
3699
3699
|
"append-to-body": "",
|
|
3700
3700
|
title: "新建角色",
|
|
3701
|
-
modelValue:
|
|
3702
|
-
"onUpdate:modelValue": v[2] || (v[2] = (k) =>
|
|
3701
|
+
modelValue: a.value,
|
|
3702
|
+
"onUpdate:modelValue": v[2] || (v[2] = (k) => a.value = k),
|
|
3703
3703
|
onOpen: _
|
|
3704
3704
|
}, {
|
|
3705
3705
|
footer: g(() => [
|
|
@@ -3718,7 +3718,7 @@ const Ar = /* @__PURE__ */ z({
|
|
|
3718
3718
|
}, 8, ["loading"]),
|
|
3719
3719
|
w(s(fe), {
|
|
3720
3720
|
size: "default",
|
|
3721
|
-
onClick: v[1] || (v[1] = (k) =>
|
|
3721
|
+
onClick: v[1] || (v[1] = (k) => a.value = !1)
|
|
3722
3722
|
}, {
|
|
3723
3723
|
default: g(() => v[4] || (v[4] = [
|
|
3724
3724
|
G("取消")
|
|
@@ -3735,24 +3735,24 @@ const Ar = /* @__PURE__ */ z({
|
|
|
3735
3735
|
validator: s(c)
|
|
3736
3736
|
}, {
|
|
3737
3737
|
default: g(() => [
|
|
3738
|
-
w(s(
|
|
3738
|
+
w(s(Ne), {
|
|
3739
3739
|
label: "角色名称",
|
|
3740
3740
|
prop: "name",
|
|
3741
3741
|
required: ""
|
|
3742
3742
|
}, {
|
|
3743
3743
|
default: g(() => [
|
|
3744
|
-
Y(w(s(
|
|
3745
|
-
[s(
|
|
3744
|
+
Y(w(s(dt), null, null, 512), [
|
|
3745
|
+
[s(Ct)]
|
|
3746
3746
|
])
|
|
3747
3747
|
]),
|
|
3748
3748
|
_: 1
|
|
3749
3749
|
}),
|
|
3750
|
-
w(s(
|
|
3750
|
+
w(s(Ne), {
|
|
3751
3751
|
label: "上级角色",
|
|
3752
3752
|
prop: "none"
|
|
3753
3753
|
}, {
|
|
3754
3754
|
default: g(() => [
|
|
3755
|
-
w(s(
|
|
3755
|
+
w(s(At), {
|
|
3756
3756
|
ref_key: "rolePicker",
|
|
3757
3757
|
ref: m,
|
|
3758
3758
|
placeholder: "请选择上级角色,置空表示添加顶层角色",
|
|
@@ -3761,7 +3761,7 @@ const Ar = /* @__PURE__ */ z({
|
|
|
3761
3761
|
]),
|
|
3762
3762
|
_: 1
|
|
3763
3763
|
}),
|
|
3764
|
-
w(s(
|
|
3764
|
+
w(s(Ne), {
|
|
3765
3765
|
label: "角色标题",
|
|
3766
3766
|
prop: "caption",
|
|
3767
3767
|
required: ""
|
|
@@ -3779,12 +3779,12 @@ const Ar = /* @__PURE__ */ z({
|
|
|
3779
3779
|
}),
|
|
3780
3780
|
_: 1
|
|
3781
3781
|
}),
|
|
3782
|
-
w(s(
|
|
3782
|
+
w(s(Ne), {
|
|
3783
3783
|
label: "角色说明",
|
|
3784
3784
|
prop: "description"
|
|
3785
3785
|
}, {
|
|
3786
3786
|
default: g(() => [
|
|
3787
|
-
w(s(
|
|
3787
|
+
w(s(dt), { type: "textarea" })
|
|
3788
3788
|
]),
|
|
3789
3789
|
_: 1
|
|
3790
3790
|
})
|
|
@@ -3796,7 +3796,7 @@ const Ar = /* @__PURE__ */ z({
|
|
|
3796
3796
|
}, 8, ["modelValue"]);
|
|
3797
3797
|
};
|
|
3798
3798
|
}
|
|
3799
|
-
}),
|
|
3799
|
+
}), Tr = { class: "ja-role-picker" }, Fr = /* @__PURE__ */ z({
|
|
3800
3800
|
__name: "RolePickerRaw",
|
|
3801
3801
|
props: /* @__PURE__ */ Q({
|
|
3802
3802
|
appName: {}
|
|
@@ -3808,30 +3808,30 @@ const Ar = /* @__PURE__ */ z({
|
|
|
3808
3808
|
}),
|
|
3809
3809
|
emits: ["update:modelValue"],
|
|
3810
3810
|
setup(e) {
|
|
3811
|
-
const
|
|
3811
|
+
const l = e, a = ue(e, "modelValue");
|
|
3812
3812
|
function t(n) {
|
|
3813
3813
|
var c;
|
|
3814
|
-
|
|
3814
|
+
a.value = n.name, (c = o.value) == null || c.loadData();
|
|
3815
3815
|
}
|
|
3816
3816
|
const o = h(), d = h(!1);
|
|
3817
3817
|
function u() {
|
|
3818
3818
|
d.value = !0;
|
|
3819
3819
|
}
|
|
3820
|
-
return (n, c) => (b(), N("div",
|
|
3821
|
-
w(s(
|
|
3820
|
+
return (n, c) => (b(), N("div", Tr, [
|
|
3821
|
+
w(s(At), K({
|
|
3822
3822
|
ref_key: "picker",
|
|
3823
3823
|
ref: o,
|
|
3824
|
-
"app-name":
|
|
3824
|
+
"app-name": l.appName,
|
|
3825
3825
|
style: { flex: "auto" }
|
|
3826
3826
|
}, n.$attrs, {
|
|
3827
|
-
modelValue:
|
|
3828
|
-
"onUpdate:modelValue": c[1] || (c[1] = (p) =>
|
|
3827
|
+
modelValue: a.value,
|
|
3828
|
+
"onUpdate:modelValue": c[1] || (c[1] = (p) => a.value = p)
|
|
3829
3829
|
}), ve({
|
|
3830
3830
|
footer: g(() => [
|
|
3831
3831
|
w(s(se), {
|
|
3832
3832
|
link: "",
|
|
3833
3833
|
type: "primary",
|
|
3834
|
-
icon: s(
|
|
3834
|
+
icon: s(Se),
|
|
3835
3835
|
shortcut: "Alt+I",
|
|
3836
3836
|
style: { width: "100%" },
|
|
3837
3837
|
onClick: u
|
|
@@ -3842,10 +3842,10 @@ const Ar = /* @__PURE__ */ z({
|
|
|
3842
3842
|
_: 1,
|
|
3843
3843
|
__: [2]
|
|
3844
3844
|
}, 8, ["icon"]),
|
|
3845
|
-
w(
|
|
3845
|
+
w(Sr, {
|
|
3846
3846
|
modelValue: d.value,
|
|
3847
3847
|
"onUpdate:modelValue": c[0] || (c[0] = (p) => d.value = p),
|
|
3848
|
-
"app-name":
|
|
3848
|
+
"app-name": l.appName,
|
|
3849
3849
|
onSuccess: t
|
|
3850
3850
|
}, null, 8, ["modelValue", "app-name"])
|
|
3851
3851
|
]),
|
|
@@ -3860,14 +3860,14 @@ const Ar = /* @__PURE__ */ z({
|
|
|
3860
3860
|
]), 1040, ["app-name", "modelValue"])
|
|
3861
3861
|
]));
|
|
3862
3862
|
}
|
|
3863
|
-
}),
|
|
3863
|
+
}), Fa = /* @__PURE__ */ pe(Fr, [["__scopeId", "data-v-dd3083a0"]]), Mr = /* @__PURE__ */ z({
|
|
3864
3864
|
__name: "RolePicker",
|
|
3865
3865
|
props: {
|
|
3866
3866
|
appName: {}
|
|
3867
3867
|
},
|
|
3868
3868
|
emits: ["change"],
|
|
3869
|
-
setup(e, { emit:
|
|
3870
|
-
const
|
|
3869
|
+
setup(e, { emit: l }) {
|
|
3870
|
+
const a = e, t = h(), o = M("aceFormModel"), d = M("aceFormItemProp"), u = M("aceFormValidator"), n = l;
|
|
3871
3871
|
function c(r) {
|
|
3872
3872
|
u.removeFieldError(d), re(o.formData, d, p.value), n("change", r);
|
|
3873
3873
|
}
|
|
@@ -3876,10 +3876,10 @@ const Ar = /* @__PURE__ */ z({
|
|
|
3876
3876
|
p.value = x(o.formData, d);
|
|
3877
3877
|
}, {
|
|
3878
3878
|
deep: !0
|
|
3879
|
-
}), (r, i) => (b(), $(
|
|
3879
|
+
}), (r, i) => (b(), $(Fa, K({
|
|
3880
3880
|
ref_key: "picker",
|
|
3881
3881
|
ref: t,
|
|
3882
|
-
"app-name":
|
|
3882
|
+
"app-name": a.appName,
|
|
3883
3883
|
modelValue: p.value,
|
|
3884
3884
|
"onUpdate:modelValue": i[0] || (i[0] = (m) => p.value = m),
|
|
3885
3885
|
onChange: c
|
|
@@ -3892,7 +3892,7 @@ const Ar = /* @__PURE__ */ z({
|
|
|
3892
3892
|
}))
|
|
3893
3893
|
]), 1040, ["app-name", "modelValue"]));
|
|
3894
3894
|
}
|
|
3895
|
-
}),
|
|
3895
|
+
}), At = R(Er), Pr = R(Mr), Ur = R(Fa), Ma = /* @__PURE__ */ z({
|
|
3896
3896
|
__name: "ChannelPicker",
|
|
3897
3897
|
props: /* @__PURE__ */ Q({
|
|
3898
3898
|
appName: {}
|
|
@@ -3904,18 +3904,18 @@ const Ar = /* @__PURE__ */ z({
|
|
|
3904
3904
|
}),
|
|
3905
3905
|
emits: ["update:modelValue"],
|
|
3906
3906
|
setup(e) {
|
|
3907
|
-
const
|
|
3908
|
-
|
|
3907
|
+
const l = le(), a = el(l), t = e, o = h(), d = h(), u = ue(e, "modelValue");
|
|
3908
|
+
xe(() => {
|
|
3909
3909
|
n();
|
|
3910
3910
|
});
|
|
3911
3911
|
async function n() {
|
|
3912
|
-
console.log("load channels of app " + t.appName), t.appName && (o.value = await
|
|
3912
|
+
console.log("load channels of app " + t.appName), t.appName && (o.value = await a.getAll(t.appName), d.value = o.value);
|
|
3913
3913
|
}
|
|
3914
3914
|
function c(p) {
|
|
3915
3915
|
var r;
|
|
3916
3916
|
d.value = ((r = o.value) == null ? void 0 : r.filter((i) => i.name.indexOf(p) > -1)) ?? [];
|
|
3917
3917
|
}
|
|
3918
|
-
return T(() => t.appName, n), (p, r) => (b(), $(s(
|
|
3918
|
+
return T(() => t.appName, n), (p, r) => (b(), $(s(De), K({
|
|
3919
3919
|
filterable: "",
|
|
3920
3920
|
"filter-method": c,
|
|
3921
3921
|
"value-key": "id",
|
|
@@ -3923,7 +3923,7 @@ const Ar = /* @__PURE__ */ z({
|
|
|
3923
3923
|
"onUpdate:modelValue": r[0] || (r[0] = (i) => u.value = i)
|
|
3924
3924
|
}, p.$attrs), {
|
|
3925
3925
|
default: g(() => [
|
|
3926
|
-
(b(!0), N(ne, null, W(d.value, (i) => (b(), $(s(
|
|
3926
|
+
(b(!0), N(ne, null, W(d.value, (i) => (b(), $(s(et), {
|
|
3927
3927
|
key: i.id,
|
|
3928
3928
|
label: i.name,
|
|
3929
3929
|
value: i
|
|
@@ -3932,29 +3932,29 @@ const Ar = /* @__PURE__ */ z({
|
|
|
3932
3932
|
_: 1
|
|
3933
3933
|
}, 16, ["modelValue"]));
|
|
3934
3934
|
}
|
|
3935
|
-
}),
|
|
3935
|
+
}), zr = /* @__PURE__ */ z({
|
|
3936
3936
|
__name: "JaChannelPicker",
|
|
3937
3937
|
emits: ["change"],
|
|
3938
|
-
setup(e, { emit:
|
|
3939
|
-
const
|
|
3938
|
+
setup(e, { emit: l }) {
|
|
3939
|
+
const a = M("aceFormModel"), t = M("aceFormItemProp"), o = M("aceFormValidator"), d = l;
|
|
3940
3940
|
function u(c) {
|
|
3941
|
-
o.removeFieldError(t), re(
|
|
3941
|
+
o.removeFieldError(t), re(a.formData, t, n.value), d("change", c);
|
|
3942
3942
|
}
|
|
3943
|
-
const n = h(x(
|
|
3944
|
-
return T(() =>
|
|
3945
|
-
n.value = x(
|
|
3943
|
+
const n = h(x(a.formData, t));
|
|
3944
|
+
return T(() => a.formData, () => {
|
|
3945
|
+
n.value = x(a.formData, t);
|
|
3946
3946
|
}, {
|
|
3947
3947
|
deep: !0
|
|
3948
|
-
}), (c, p) => (b(), $(
|
|
3948
|
+
}), (c, p) => (b(), $(Ma, K({
|
|
3949
3949
|
modelValue: n.value,
|
|
3950
3950
|
"onUpdate:modelValue": p[0] || (p[0] = (r) => n.value = r),
|
|
3951
3951
|
onChange: u
|
|
3952
3952
|
}, c.$attrs), null, 16, ["modelValue"]));
|
|
3953
3953
|
}
|
|
3954
|
-
}),
|
|
3954
|
+
}), Br = R(zr), Rr = R(Ma), Lr = { class: "ja-property-picker__dropdown" }, Nr = { key: 0 }, Jr = ["onMouseenter", "onClick"], Or = {
|
|
3955
3955
|
key: 0,
|
|
3956
3956
|
class: "entity-type"
|
|
3957
|
-
},
|
|
3957
|
+
}, jr = { key: 1 }, xr = /* @__PURE__ */ z({
|
|
3958
3958
|
__name: "PropertyPicker",
|
|
3959
3959
|
props: /* @__PURE__ */ Q({
|
|
3960
3960
|
entityId: {}
|
|
@@ -3966,28 +3966,28 @@ const Ar = /* @__PURE__ */ z({
|
|
|
3966
3966
|
}),
|
|
3967
3967
|
emits: ["update:modelValue"],
|
|
3968
3968
|
setup(e) {
|
|
3969
|
-
const
|
|
3970
|
-
let
|
|
3971
|
-
const t = ue(e, "modelValue"), o = h([]), d = le(), u =
|
|
3969
|
+
const l = e;
|
|
3970
|
+
let a;
|
|
3971
|
+
const t = ue(e, "modelValue"), o = h([]), d = le(), u = tl(d), n = h(), c = {}, p = h(0), r = _e(d), i = h(!1), m = h(!1), f = h(), _ = h(), I = h("");
|
|
3972
3972
|
let y = h(!1);
|
|
3973
3973
|
async function v() {
|
|
3974
|
-
if (
|
|
3975
|
-
let E = c[
|
|
3976
|
-
E || (E = await u.getProperties(
|
|
3974
|
+
if (a || (a = l.entityId), a) {
|
|
3975
|
+
let E = c[a];
|
|
3976
|
+
E || (E = await u.getProperties(a), c[a] = E), n.value = E;
|
|
3977
3977
|
} else
|
|
3978
3978
|
n.value = [];
|
|
3979
3979
|
}
|
|
3980
3980
|
function S(E) {
|
|
3981
3981
|
let V;
|
|
3982
|
-
E ? V = E.join(".") : V = "", V !== t.value && (t.value = V),
|
|
3982
|
+
E ? V = E.join(".") : V = "", V !== t.value && (t.value = V), Ce(async () => {
|
|
3983
3983
|
var B;
|
|
3984
|
-
|
|
3985
|
-
let D = c[
|
|
3984
|
+
a = l.entityId, await v();
|
|
3985
|
+
let D = c[a];
|
|
3986
3986
|
if (D) {
|
|
3987
3987
|
for (let ie = 0; ie < E.length; ie++) {
|
|
3988
3988
|
const J = E[ie];
|
|
3989
3989
|
let U = D.find((oe) => oe.name === J);
|
|
3990
|
-
U && U.entityType ? (
|
|
3990
|
+
U && U.entityType ? (a = U.entityType.id, ie < E.length - 1 ? (await v(), D = c[a]) : U.dataType === "ENTITY" && U.collectionType === "NONE" ? (a = U.entityType.id, v()) : (a = "-1", v())) : (a = "-1", v());
|
|
3991
3991
|
}
|
|
3992
3992
|
(B = f.value) == null || B.focus();
|
|
3993
3993
|
}
|
|
@@ -4012,8 +4012,8 @@ const Ar = /* @__PURE__ */ z({
|
|
|
4012
4012
|
}
|
|
4013
4013
|
function Z() {
|
|
4014
4014
|
var D;
|
|
4015
|
-
if (!
|
|
4016
|
-
const E = c[
|
|
4015
|
+
if (!a) return;
|
|
4016
|
+
const E = c[a];
|
|
4017
4017
|
if (!E) return;
|
|
4018
4018
|
const V = (D = f.value) == null ? void 0 : D.value;
|
|
4019
4019
|
V && V.length > 0 ? n.value = [...E].filter((B) => B.name.toLowerCase().indexOf(V.toLowerCase()) > -1) : n.value = E, X();
|
|
@@ -4034,7 +4034,7 @@ const Ar = /* @__PURE__ */ z({
|
|
|
4034
4034
|
I.value && I.value.length > 0 || (E = o.value) == null || E.pop();
|
|
4035
4035
|
}
|
|
4036
4036
|
function O(E) {
|
|
4037
|
-
E &&
|
|
4037
|
+
E && Ce(() => {
|
|
4038
4038
|
var V;
|
|
4039
4039
|
(V = f.value) == null || V.focus();
|
|
4040
4040
|
}), y.value = E;
|
|
@@ -4043,19 +4043,19 @@ const Ar = /* @__PURE__ */ z({
|
|
|
4043
4043
|
var E;
|
|
4044
4044
|
return o.value && o.value.length > 0 ? (E = o.value) == null ? void 0 : E.join(".") : "请选择属性";
|
|
4045
4045
|
}), X = () => {
|
|
4046
|
-
|
|
4046
|
+
Ce(() => {
|
|
4047
4047
|
var D, B, ie;
|
|
4048
4048
|
const E = (D = _.value) == null ? void 0 : D.$refs.wrapRef, V = E == null ? void 0 : E.querySelectorAll("li")[p.value];
|
|
4049
4049
|
if (V && E) {
|
|
4050
|
-
const J = V.offsetTop, U = V.offsetTop + V.offsetHeight, oe = E.scrollTop,
|
|
4051
|
-
U >
|
|
4050
|
+
const J = V.offsetTop, U = V.offsetTop + V.offsetHeight, oe = E.scrollTop, Dt = E.scrollTop + E.clientHeight;
|
|
4051
|
+
U > Dt ? (B = _.value) == null || B.scrollTo(
|
|
4052
4052
|
0,
|
|
4053
4053
|
U - E.clientHeight + V.offsetHeight - 38
|
|
4054
4054
|
) : J < oe && ((ie = _.value) == null || ie.scrollTo(0, J));
|
|
4055
4055
|
}
|
|
4056
4056
|
});
|
|
4057
4057
|
};
|
|
4058
|
-
T(() =>
|
|
4058
|
+
T(() => l.entityId, v), T(
|
|
4059
4059
|
o,
|
|
4060
4060
|
() => S(o.value),
|
|
4061
4061
|
{
|
|
@@ -4073,15 +4073,15 @@ const Ar = /* @__PURE__ */ z({
|
|
|
4073
4073
|
ee();
|
|
4074
4074
|
}), t.value && t.value.length > 0 ? ee() : v(), T(n, () => {
|
|
4075
4075
|
p.value = 0, X();
|
|
4076
|
-
}), (E, V) => (b(), $(s(
|
|
4076
|
+
}), (E, V) => (b(), $(s(Ot), { onVisibleChange: O }, {
|
|
4077
4077
|
dropdown: g(() => [
|
|
4078
|
-
j("div",
|
|
4078
|
+
j("div", Lr, [
|
|
4079
4079
|
j("div", {
|
|
4080
|
-
class:
|
|
4080
|
+
class: We(["el-input-tag el-input-tag--small el-input-tag__wrapper", { "is-hovering": i.value, "is-focused": m.value }]),
|
|
4081
4081
|
onMouseenter: V[3] || (V[3] = (D) => i.value = !0),
|
|
4082
4082
|
onMouseleave: V[4] || (V[4] = (D) => i.value = !1)
|
|
4083
4083
|
}, [
|
|
4084
|
-
(b(!0), N(ne, null, W(o.value, (D) => (b(), $(s(
|
|
4084
|
+
(b(!0), N(ne, null, W(o.value, (D) => (b(), $(s(St), {
|
|
4085
4085
|
id: D,
|
|
4086
4086
|
onClose: (B) => q(),
|
|
4087
4087
|
closable: ""
|
|
@@ -4102,17 +4102,17 @@ const Ar = /* @__PURE__ */ z({
|
|
|
4102
4102
|
onFocus: V[1] || (V[1] = (D) => m.value = !0),
|
|
4103
4103
|
onBlur: V[2] || (V[2] = (D) => m.value = !1),
|
|
4104
4104
|
onKeydown: [
|
|
4105
|
-
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
|
|
4105
|
+
Ie(A, ["delete"]),
|
|
4106
|
+
Ie(H, ["down"]),
|
|
4107
|
+
Ie(me, ["up"]),
|
|
4108
|
+
Ie(be, ["enter"])
|
|
4109
4109
|
],
|
|
4110
4110
|
onInput: Z
|
|
4111
4111
|
}, null, 544), [
|
|
4112
|
-
[
|
|
4112
|
+
[Ja, I.value]
|
|
4113
4113
|
])
|
|
4114
4114
|
], 34),
|
|
4115
|
-
Y((b(), $(s(
|
|
4115
|
+
Y((b(), $(s($e), {
|
|
4116
4116
|
height: "300px",
|
|
4117
4117
|
always: "",
|
|
4118
4118
|
ref_key: "scrollbar",
|
|
@@ -4121,16 +4121,16 @@ const Ar = /* @__PURE__ */ z({
|
|
|
4121
4121
|
default: g(() => {
|
|
4122
4122
|
var D;
|
|
4123
4123
|
return [
|
|
4124
|
-
((D = n.value) == null ? void 0 : D.length) ?? !1 ? (b(), N("ul",
|
|
4124
|
+
((D = n.value) == null ? void 0 : D.length) ?? !1 ? (b(), N("ul", Nr, [
|
|
4125
4125
|
(b(!0), N(ne, null, W(n.value, (B, ie) => (b(), N("li", {
|
|
4126
4126
|
key: B.id,
|
|
4127
4127
|
onMouseenter: (J) => k(ie),
|
|
4128
4128
|
onClick: (J) => F(B),
|
|
4129
|
-
class:
|
|
4129
|
+
class: We(C(ie))
|
|
4130
4130
|
}, [
|
|
4131
|
-
B.dataType === "ENTITY" ? (b(), N("span",
|
|
4132
|
-
], 42,
|
|
4133
|
-
])) : (b(), $(s(
|
|
4131
|
+
B.dataType === "ENTITY" ? (b(), N("span", Or, ae(P(B)), 1)) : (b(), N("span", jr, ae(P(B)), 1))
|
|
4132
|
+
], 42, Jr))), 128))
|
|
4133
|
+
])) : (b(), $(s(qt), {
|
|
4134
4134
|
key: 1,
|
|
4135
4135
|
description: "无可选属性"
|
|
4136
4136
|
}))
|
|
@@ -4138,22 +4138,22 @@ const Ar = /* @__PURE__ */ z({
|
|
|
4138
4138
|
}),
|
|
4139
4139
|
_: 1
|
|
4140
4140
|
})), [
|
|
4141
|
-
[s(
|
|
4141
|
+
[s(Ee), s(r)]
|
|
4142
4142
|
])
|
|
4143
4143
|
])
|
|
4144
4144
|
]),
|
|
4145
4145
|
default: g(() => [
|
|
4146
|
-
w(s(
|
|
4146
|
+
w(s(St), { type: "primary" }, {
|
|
4147
4147
|
default: g(() => [
|
|
4148
4148
|
G(ae(L.value) + " ", 1),
|
|
4149
4149
|
s(y) ? (b(), $(s(ce), { key: 0 }, {
|
|
4150
4150
|
default: g(() => [
|
|
4151
|
-
w(s(
|
|
4151
|
+
w(s(pl))
|
|
4152
4152
|
]),
|
|
4153
4153
|
_: 1
|
|
4154
4154
|
})) : (b(), $(s(ce), { key: 1 }, {
|
|
4155
4155
|
default: g(() => [
|
|
4156
|
-
w(s(
|
|
4156
|
+
w(s(aa))
|
|
4157
4157
|
]),
|
|
4158
4158
|
_: 1
|
|
4159
4159
|
}))
|
|
@@ -4164,26 +4164,26 @@ const Ar = /* @__PURE__ */ z({
|
|
|
4164
4164
|
_: 1
|
|
4165
4165
|
}));
|
|
4166
4166
|
}
|
|
4167
|
-
}),
|
|
4167
|
+
}), Pa = /* @__PURE__ */ pe(xr, [["__scopeId", "data-v-f2487dc4"]]), qr = /* @__PURE__ */ z({
|
|
4168
4168
|
__name: "JaPropertyPicker",
|
|
4169
4169
|
emits: ["change"],
|
|
4170
|
-
setup(e, { emit:
|
|
4171
|
-
const
|
|
4170
|
+
setup(e, { emit: l }) {
|
|
4171
|
+
const a = M("aceFormModel"), t = M("aceFormItemProp"), o = M("aceFormValidator"), d = l;
|
|
4172
4172
|
function u(c) {
|
|
4173
|
-
o.removeFieldError(t), re(
|
|
4173
|
+
o.removeFieldError(t), re(a.formData, t, n.value), d("change", c);
|
|
4174
4174
|
}
|
|
4175
|
-
const n = h(x(
|
|
4176
|
-
return T(() =>
|
|
4177
|
-
n.value = x(
|
|
4175
|
+
const n = h(x(a.formData, t) ?? "");
|
|
4176
|
+
return T(() => a.formData, () => {
|
|
4177
|
+
n.value = x(a.formData, t) ?? "";
|
|
4178
4178
|
}, {
|
|
4179
4179
|
deep: !0
|
|
4180
|
-
}), (c, p) => (b(), $(
|
|
4180
|
+
}), (c, p) => (b(), $(Pa, K({
|
|
4181
4181
|
modelValue: n.value,
|
|
4182
4182
|
"onUpdate:modelValue": p[0] || (p[0] = (r) => n.value = r),
|
|
4183
4183
|
onChange: u
|
|
4184
4184
|
}, c.$attrs), null, 16, ["modelValue"]));
|
|
4185
4185
|
}
|
|
4186
|
-
}),
|
|
4186
|
+
}), Gr = R(qr), Hr = R(Pa), Wr = /* @__PURE__ */ z({
|
|
4187
4187
|
__name: "I18nBundleEditor",
|
|
4188
4188
|
props: /* @__PURE__ */ Q({
|
|
4189
4189
|
appId: {},
|
|
@@ -4193,9 +4193,9 @@ const Ar = /* @__PURE__ */ z({
|
|
|
4193
4193
|
modelModifiers: {}
|
|
4194
4194
|
}),
|
|
4195
4195
|
emits: /* @__PURE__ */ Q(["success"], ["update:modelValue"]),
|
|
4196
|
-
async setup(e, { emit:
|
|
4197
|
-
let
|
|
4198
|
-
const o = ue(e, "modelValue"), d = e, u = le(), n =
|
|
4196
|
+
async setup(e, { emit: l }) {
|
|
4197
|
+
let a, t;
|
|
4198
|
+
const o = ue(e, "modelValue"), d = e, u = le(), n = ea(u), c = h(), p = h(""), r = h({}), i = l, m = ([a, t] = vt(() => $t()), a = await a, t(), a);
|
|
4199
4199
|
function f() {
|
|
4200
4200
|
I(), p.value = d.preKey ?? "", r.value = {};
|
|
4201
4201
|
}
|
|
@@ -4215,8 +4215,8 @@ const Ar = /* @__PURE__ */ z({
|
|
|
4215
4215
|
return T(() => d.appId, async () => {
|
|
4216
4216
|
await I();
|
|
4217
4217
|
}), (y, v) => {
|
|
4218
|
-
const S =
|
|
4219
|
-
return b(), $(s(
|
|
4218
|
+
const S = Jt("focus");
|
|
4219
|
+
return b(), $(s(Gt), {
|
|
4220
4220
|
"destroy-on-close": "",
|
|
4221
4221
|
"append-to-body": "",
|
|
4222
4222
|
modelValue: o.value,
|
|
@@ -4250,14 +4250,14 @@ const Ar = /* @__PURE__ */ z({
|
|
|
4250
4250
|
})
|
|
4251
4251
|
]),
|
|
4252
4252
|
default: g(() => [
|
|
4253
|
-
w(s(
|
|
4253
|
+
w(s(gt), {
|
|
4254
4254
|
"label-position": "top",
|
|
4255
4255
|
size: "default"
|
|
4256
4256
|
}, {
|
|
4257
4257
|
default: g(() => {
|
|
4258
4258
|
var P;
|
|
4259
4259
|
return [
|
|
4260
|
-
w(s(
|
|
4260
|
+
w(s(Ke), {
|
|
4261
4261
|
label: "文本键",
|
|
4262
4262
|
required: ""
|
|
4263
4263
|
}, {
|
|
@@ -4271,7 +4271,7 @@ const Ar = /* @__PURE__ */ z({
|
|
|
4271
4271
|
]),
|
|
4272
4272
|
_: 1
|
|
4273
4273
|
}),
|
|
4274
|
-
(b(!0), N(ne, null, W((P = c.value) == null ? void 0 : P.supportedLocales, (k) => (b(), $(s(
|
|
4274
|
+
(b(!0), N(ne, null, W((P = c.value) == null ? void 0 : P.supportedLocales, (k) => (b(), $(s(Ke), {
|
|
4275
4275
|
key: k,
|
|
4276
4276
|
label: k
|
|
4277
4277
|
}, {
|
|
@@ -4294,7 +4294,7 @@ const Ar = /* @__PURE__ */ z({
|
|
|
4294
4294
|
}, 8, ["modelValue"]);
|
|
4295
4295
|
};
|
|
4296
4296
|
}
|
|
4297
|
-
}),
|
|
4297
|
+
}), Kr = /* @__PURE__ */ z({
|
|
4298
4298
|
__name: "InputI18n",
|
|
4299
4299
|
props: /* @__PURE__ */ Q({
|
|
4300
4300
|
appId: {},
|
|
@@ -4308,9 +4308,9 @@ const Ar = /* @__PURE__ */ z({
|
|
|
4308
4308
|
modelModifiers: {}
|
|
4309
4309
|
}),
|
|
4310
4310
|
emits: /* @__PURE__ */ Q(["change", "focus", "blur"], ["update:modelValue"]),
|
|
4311
|
-
async setup(e, { expose:
|
|
4311
|
+
async setup(e, { expose: l, emit: a }) {
|
|
4312
4312
|
let t, o;
|
|
4313
|
-
const d = e, u = ue(e, "modelValue"), n = le(), c =
|
|
4313
|
+
const d = e, u = ue(e, "modelValue"), n = le(), c = ea(n), p = Ht().locale, r = h(), i = h(!1), m = h(!1), f = h(), _ = h(""), I = ([t, o] = vt(() => $t()), t = await t, o(), t), y = h(""), v = h(""), S = h(), P = a, k = kt(F, 500);
|
|
4314
4314
|
let C;
|
|
4315
4315
|
async function F(A) {
|
|
4316
4316
|
if (A || (A = u.value), !d.appId) return;
|
|
@@ -4321,7 +4321,7 @@ const Ar = /* @__PURE__ */ z({
|
|
|
4321
4321
|
}
|
|
4322
4322
|
v.value = A;
|
|
4323
4323
|
let L = A;
|
|
4324
|
-
A && A.length > 0 && (L =
|
|
4324
|
+
A && A.length > 0 && (L = Zn(L), L.startsWith("{") && L.endsWith("}") && (L = L.substring(1, L.length - 1)));
|
|
4325
4325
|
const ee = (await c.getByKey(_.value, L, {
|
|
4326
4326
|
cancelDuplicatedRequest: !1
|
|
4327
4327
|
})).find((E) => E.locale === p);
|
|
@@ -4332,14 +4332,14 @@ const Ar = /* @__PURE__ */ z({
|
|
|
4332
4332
|
}
|
|
4333
4333
|
async function Z() {
|
|
4334
4334
|
var A;
|
|
4335
|
-
i.value = !0, await
|
|
4335
|
+
i.value = !0, await Ce(), P("focus"), (A = f.value) == null || A.focus();
|
|
4336
4336
|
}
|
|
4337
4337
|
function H() {
|
|
4338
4338
|
C = setTimeout(() => {
|
|
4339
4339
|
i.value = !1;
|
|
4340
4340
|
}, 200), P("blur");
|
|
4341
4341
|
}
|
|
4342
|
-
|
|
4342
|
+
Ae(() => {
|
|
4343
4343
|
k.cancel(), C && clearTimeout(C);
|
|
4344
4344
|
}), T(u, () => {
|
|
4345
4345
|
k();
|
|
@@ -4353,7 +4353,7 @@ const Ar = /* @__PURE__ */ z({
|
|
|
4353
4353
|
async function be(A) {
|
|
4354
4354
|
await q(y.value), u.value = "{" + A + "}", S.value.focus;
|
|
4355
4355
|
}
|
|
4356
|
-
return
|
|
4356
|
+
return l({
|
|
4357
4357
|
focus() {
|
|
4358
4358
|
S == null || S.value.focus();
|
|
4359
4359
|
},
|
|
@@ -4373,7 +4373,7 @@ const Ar = /* @__PURE__ */ z({
|
|
|
4373
4373
|
}, null, 8, ["modelValue", "size", "disabled", "type"]), [
|
|
4374
4374
|
[he, !i.value]
|
|
4375
4375
|
]),
|
|
4376
|
-
Y(w(s(
|
|
4376
|
+
Y(w(s(De), {
|
|
4377
4377
|
ref_key: "select",
|
|
4378
4378
|
ref: f,
|
|
4379
4379
|
filterable: "",
|
|
@@ -4406,7 +4406,7 @@ const Ar = /* @__PURE__ */ z({
|
|
|
4406
4406
|
})
|
|
4407
4407
|
]),
|
|
4408
4408
|
default: g(() => [
|
|
4409
|
-
(b(!0), N(ne, null, W(r.value, (L) => (b(), $(s(
|
|
4409
|
+
(b(!0), N(ne, null, W(r.value, (L) => (b(), $(s(et), {
|
|
4410
4410
|
key: L,
|
|
4411
4411
|
value: "{" + L + "}",
|
|
4412
4412
|
label: "{" + L + "}"
|
|
@@ -4416,7 +4416,7 @@ const Ar = /* @__PURE__ */ z({
|
|
|
4416
4416
|
}, 8, ["disabled", "size", "modelValue"]), [
|
|
4417
4417
|
[he, i.value]
|
|
4418
4418
|
]),
|
|
4419
|
-
w(
|
|
4419
|
+
w(Wr, {
|
|
4420
4420
|
"app-id": A.appId,
|
|
4421
4421
|
"pre-key": y.value,
|
|
4422
4422
|
modelValue: m.value,
|
|
@@ -4425,11 +4425,11 @@ const Ar = /* @__PURE__ */ z({
|
|
|
4425
4425
|
}, null, 8, ["app-id", "pre-key", "modelValue"])
|
|
4426
4426
|
], 64));
|
|
4427
4427
|
}
|
|
4428
|
-
}),
|
|
4428
|
+
}), Yr = R(Kr), Qr = /* @__PURE__ */ z({
|
|
4429
4429
|
__name: "JaCheckboxGroup",
|
|
4430
4430
|
emits: ["change"],
|
|
4431
|
-
setup(e, { expose:
|
|
4432
|
-
const t = h({}), o = M("aceFormModel"), d = M("aceFormItemProp"), u = M("aceFormValidator"), n =
|
|
4431
|
+
setup(e, { expose: l, emit: a }) {
|
|
4432
|
+
const t = h({}), o = M("aceFormModel"), d = M("aceFormItemProp"), u = M("aceFormValidator"), n = a;
|
|
4433
4433
|
function c(r) {
|
|
4434
4434
|
u.removeFieldError(d), re(o.formData, d, p.value), n("change", r);
|
|
4435
4435
|
}
|
|
@@ -4438,11 +4438,11 @@ const Ar = /* @__PURE__ */ z({
|
|
|
4438
4438
|
p.value = x(o.formData, d);
|
|
4439
4439
|
}, {
|
|
4440
4440
|
deep: !0
|
|
4441
|
-
}),
|
|
4441
|
+
}), l({
|
|
4442
4442
|
focus: () => t.value.focus(),
|
|
4443
4443
|
blur: () => t.value.blur(),
|
|
4444
4444
|
elCheckboxGroup: t
|
|
4445
|
-
}), (r, i) => (b(), $(s(
|
|
4445
|
+
}), (r, i) => (b(), $(s(Xa), K({
|
|
4446
4446
|
ref_key: "input",
|
|
4447
4447
|
ref: t,
|
|
4448
4448
|
modelValue: p.value,
|
|
@@ -4457,7 +4457,7 @@ const Ar = /* @__PURE__ */ z({
|
|
|
4457
4457
|
}))
|
|
4458
4458
|
]), 1040, ["modelValue"]));
|
|
4459
4459
|
}
|
|
4460
|
-
}),
|
|
4460
|
+
}), Xr = R(Qr), Zr = /* @__PURE__ */ z({
|
|
4461
4461
|
__name: "EnumPicker",
|
|
4462
4462
|
props: /* @__PURE__ */ Q({
|
|
4463
4463
|
clearable: { type: Boolean, default: !0 },
|
|
@@ -4474,34 +4474,34 @@ const Ar = /* @__PURE__ */ z({
|
|
|
4474
4474
|
}),
|
|
4475
4475
|
emits: ["update:modelValue"],
|
|
4476
4476
|
setup(e) {
|
|
4477
|
-
const
|
|
4477
|
+
const l = e, a = h([]), t = h(!1), o = ue(e, "modelValue"), d = le(), u = al(d);
|
|
4478
4478
|
async function n() {
|
|
4479
|
-
!
|
|
4480
|
-
|
|
4479
|
+
!l.name || !l.serviceName || (t.value = !0, u.queryByName(l.serviceName, l.name).then((r) => {
|
|
4480
|
+
a.value = r.values;
|
|
4481
4481
|
}).finally(() => {
|
|
4482
4482
|
t.value = !1;
|
|
4483
4483
|
}));
|
|
4484
4484
|
}
|
|
4485
|
-
const c = ge(() =>
|
|
4485
|
+
const c = ge(() => l.multiple ? o.value.map((r) => r[l.keyField]) || [] : o.value[0] !== void 0 ? o.value[0][l.keyField] : ""), p = (r) => {
|
|
4486
4486
|
if (typeof r == "string") {
|
|
4487
|
-
const i =
|
|
4487
|
+
const i = a.value.find((m) => m[l.keyField] === r);
|
|
4488
4488
|
o.value = i ? [i] : [];
|
|
4489
4489
|
} else
|
|
4490
|
-
o.value =
|
|
4490
|
+
o.value = a.value.filter((i) => r.includes(i[l.keyField]));
|
|
4491
4491
|
};
|
|
4492
|
-
return n(), T(() =>
|
|
4493
|
-
const m =
|
|
4494
|
-
return Y((b(), $(s(
|
|
4492
|
+
return n(), T(() => l.name, n), T(() => l.serviceName, n), (r, i) => {
|
|
4493
|
+
const m = Jt("loading");
|
|
4494
|
+
return Y((b(), $(s(De), {
|
|
4495
4495
|
"model-value": c.value,
|
|
4496
|
-
filterable:
|
|
4497
|
-
multiple:
|
|
4498
|
-
clearable:
|
|
4496
|
+
filterable: l.filterable,
|
|
4497
|
+
multiple: l.multiple,
|
|
4498
|
+
clearable: l.clearable,
|
|
4499
4499
|
onChange: p
|
|
4500
4500
|
}, {
|
|
4501
4501
|
default: g(() => [
|
|
4502
|
-
(b(!0), N(ne, null, W(
|
|
4502
|
+
(b(!0), N(ne, null, W(a.value, (f) => (b(), $(s(et), {
|
|
4503
4503
|
key: f.id,
|
|
4504
|
-
value: f[
|
|
4504
|
+
value: f[l.keyField],
|
|
4505
4505
|
label: f.text
|
|
4506
4506
|
}, null, 8, ["value", "label"]))), 128))
|
|
4507
4507
|
]),
|
|
@@ -4511,117 +4511,117 @@ const Ar = /* @__PURE__ */ z({
|
|
|
4511
4511
|
]);
|
|
4512
4512
|
};
|
|
4513
4513
|
}
|
|
4514
|
-
}),
|
|
4514
|
+
}), es = R(Zr), ts = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4515
4515
|
__proto__: null,
|
|
4516
|
-
AceTip:
|
|
4517
|
-
AceUpload:
|
|
4518
|
-
JaAutocomplete:
|
|
4519
|
-
JaAvatar:
|
|
4520
|
-
JaBaseRolePicker:
|
|
4516
|
+
AceTip: yl,
|
|
4517
|
+
AceUpload: fl,
|
|
4518
|
+
JaAutocomplete: $r,
|
|
4519
|
+
JaAvatar: ct,
|
|
4520
|
+
JaBaseRolePicker: At,
|
|
4521
4521
|
JaButton: se,
|
|
4522
|
-
JaChannelPicker:
|
|
4523
|
-
JaChannelPickerRaw:
|
|
4524
|
-
JaCheckbox:
|
|
4525
|
-
JaCheckboxGroup:
|
|
4526
|
-
JaDatePicker:
|
|
4527
|
-
JaDepartmentPicker:
|
|
4528
|
-
JaDepartmentTree:
|
|
4529
|
-
JaDropdownButton:
|
|
4530
|
-
JaEnumList:
|
|
4531
|
-
JaEnumListRaw:
|
|
4532
|
-
JaEnumPicker:
|
|
4533
|
-
JaForm:
|
|
4534
|
-
JaFormItem:
|
|
4535
|
-
JaInput:
|
|
4536
|
-
JaInputI18nRaw:
|
|
4537
|
-
JaInputNumber:
|
|
4538
|
-
JaMapItemList:
|
|
4539
|
-
JaMapItemListRaw:
|
|
4540
|
-
JaNumberList:
|
|
4541
|
-
JaNumberListRaw:
|
|
4542
|
-
JaPropertyPicker:
|
|
4543
|
-
JaPropertyPickerRaw:
|
|
4544
|
-
JaRadioGroup:
|
|
4545
|
-
JaRolePicker:
|
|
4546
|
-
JaRolePickerRaw:
|
|
4547
|
-
JaScrollbar:
|
|
4548
|
-
JaSelect:
|
|
4549
|
-
JaStringList:
|
|
4550
|
-
JaStringListRaw:
|
|
4551
|
-
JaSwitch:
|
|
4552
|
-
JaTimePicker:
|
|
4553
|
-
JaUserGroupPicker:
|
|
4554
|
-
JaUserGroupTree:
|
|
4555
|
-
JaUserInfoTag:
|
|
4556
|
-
JaUserList:
|
|
4557
|
-
JaUserPicker:
|
|
4558
|
-
JaUserPickerRaw:
|
|
4559
|
-
JaUserSelectDialog:
|
|
4560
|
-
getAvatarToken:
|
|
4561
|
-
updateAvatarToken:
|
|
4522
|
+
JaChannelPicker: Br,
|
|
4523
|
+
JaChannelPickerRaw: Rr,
|
|
4524
|
+
JaCheckbox: Al,
|
|
4525
|
+
JaCheckboxGroup: Xr,
|
|
4526
|
+
JaDatePicker: Ml,
|
|
4527
|
+
JaDepartmentPicker: wo,
|
|
4528
|
+
JaDepartmentTree: ya,
|
|
4529
|
+
JaDropdownButton: Jl,
|
|
4530
|
+
JaEnumList: so,
|
|
4531
|
+
JaEnumListRaw: uo,
|
|
4532
|
+
JaEnumPicker: es,
|
|
4533
|
+
JaForm: _l,
|
|
4534
|
+
JaFormItem: Ne,
|
|
4535
|
+
JaInput: dt,
|
|
4536
|
+
JaInputI18nRaw: Yr,
|
|
4537
|
+
JaInputNumber: El,
|
|
4538
|
+
JaMapItemList: go,
|
|
4539
|
+
JaMapItemListRaw: ho,
|
|
4540
|
+
JaNumberList: eo,
|
|
4541
|
+
JaNumberListRaw: to,
|
|
4542
|
+
JaPropertyPicker: Gr,
|
|
4543
|
+
JaPropertyPickerRaw: Hr,
|
|
4544
|
+
JaRadioGroup: Dr,
|
|
4545
|
+
JaRolePicker: Pr,
|
|
4546
|
+
JaRolePickerRaw: Ur,
|
|
4547
|
+
JaScrollbar: ka,
|
|
4548
|
+
JaSelect: Tl,
|
|
4549
|
+
JaStringList: Hl,
|
|
4550
|
+
JaStringListRaw: Wl,
|
|
4551
|
+
JaSwitch: jl,
|
|
4552
|
+
JaTimePicker: kr,
|
|
4553
|
+
JaUserGroupPicker: Ir,
|
|
4554
|
+
JaUserGroupTree: wa,
|
|
4555
|
+
JaUserInfoTag: at,
|
|
4556
|
+
JaUserList: wr,
|
|
4557
|
+
JaUserPicker: br,
|
|
4558
|
+
JaUserPickerRaw: yr,
|
|
4559
|
+
JaUserSelectDialog: _a,
|
|
4560
|
+
getAvatarToken: pa,
|
|
4561
|
+
updateAvatarToken: _o
|
|
4562
4562
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4563
|
-
function
|
|
4564
|
-
e.directive("focus",
|
|
4563
|
+
function as(e) {
|
|
4564
|
+
e.directive("focus", Ct), e.directive("shortcut", tt), e.directive("auth", na);
|
|
4565
4565
|
}
|
|
4566
|
-
const
|
|
4566
|
+
const ss = [
|
|
4567
4567
|
{
|
|
4568
4568
|
text: "近一天",
|
|
4569
4569
|
value: () => {
|
|
4570
|
-
const e = /* @__PURE__ */ new Date(),
|
|
4571
|
-
return
|
|
4570
|
+
const e = /* @__PURE__ */ new Date(), l = /* @__PURE__ */ new Date();
|
|
4571
|
+
return l.setDate(l.getDate() - 1), [l, e];
|
|
4572
4572
|
}
|
|
4573
4573
|
},
|
|
4574
4574
|
{
|
|
4575
4575
|
text: "近三天",
|
|
4576
4576
|
value: () => {
|
|
4577
|
-
const e = /* @__PURE__ */ new Date(),
|
|
4578
|
-
return
|
|
4577
|
+
const e = /* @__PURE__ */ new Date(), l = /* @__PURE__ */ new Date();
|
|
4578
|
+
return l.setDate(l.getDate() - 3), [l, e];
|
|
4579
4579
|
}
|
|
4580
4580
|
},
|
|
4581
4581
|
{
|
|
4582
4582
|
text: "近一周",
|
|
4583
4583
|
value: () => {
|
|
4584
|
-
const e = /* @__PURE__ */ new Date(),
|
|
4585
|
-
return
|
|
4584
|
+
const e = /* @__PURE__ */ new Date(), l = /* @__PURE__ */ new Date();
|
|
4585
|
+
return l.setDate(l.getDate() - 7), [l, e];
|
|
4586
4586
|
}
|
|
4587
4587
|
},
|
|
4588
4588
|
{
|
|
4589
4589
|
text: "近一月",
|
|
4590
4590
|
value: () => {
|
|
4591
|
-
const e = /* @__PURE__ */ new Date(),
|
|
4592
|
-
return
|
|
4591
|
+
const e = /* @__PURE__ */ new Date(), l = /* @__PURE__ */ new Date();
|
|
4592
|
+
return l.setMonth(l.getMonth() - 1), [l, e];
|
|
4593
4593
|
}
|
|
4594
4594
|
},
|
|
4595
4595
|
{
|
|
4596
4596
|
text: "近三月",
|
|
4597
4597
|
value: () => {
|
|
4598
|
-
const e = /* @__PURE__ */ new Date(),
|
|
4599
|
-
return
|
|
4598
|
+
const e = /* @__PURE__ */ new Date(), l = /* @__PURE__ */ new Date();
|
|
4599
|
+
return l.setMonth(l.getMonth() - 3), [l, e];
|
|
4600
4600
|
}
|
|
4601
4601
|
},
|
|
4602
4602
|
{
|
|
4603
4603
|
text: "近半年",
|
|
4604
4604
|
value: () => {
|
|
4605
|
-
const e = /* @__PURE__ */ new Date(),
|
|
4606
|
-
return
|
|
4605
|
+
const e = /* @__PURE__ */ new Date(), l = /* @__PURE__ */ new Date();
|
|
4606
|
+
return l.setMonth(l.getMonth() - 6), [l, e];
|
|
4607
4607
|
}
|
|
4608
4608
|
},
|
|
4609
4609
|
{
|
|
4610
4610
|
text: "近一年",
|
|
4611
4611
|
value: () => {
|
|
4612
|
-
const e = /* @__PURE__ */ new Date(),
|
|
4613
|
-
return
|
|
4612
|
+
const e = /* @__PURE__ */ new Date(), l = /* @__PURE__ */ new Date();
|
|
4613
|
+
return l.setFullYear(l.getFullYear() - 1), [l, e];
|
|
4614
4614
|
}
|
|
4615
4615
|
}
|
|
4616
4616
|
];
|
|
4617
|
-
function
|
|
4617
|
+
function us(e) {
|
|
4618
4618
|
if (!e)
|
|
4619
4619
|
throw new Error(
|
|
4620
4620
|
"无法获取到应用名称,请确保VITE_APP_NAME环境变量已配置或者在创建时传入appName参数。"
|
|
4621
4621
|
);
|
|
4622
4622
|
if (!window.microApp)
|
|
4623
4623
|
throw new Error("无法获取到window.microApp。");
|
|
4624
|
-
const
|
|
4624
|
+
const l = h(/* @__PURE__ */ new Set()), a = (p, r = !0, i = !0) => {
|
|
4625
4625
|
const m = {
|
|
4626
4626
|
sender: e,
|
|
4627
4627
|
// 将自己的appName填入sender字段
|
|
@@ -4643,14 +4643,14 @@ function ns(e) {
|
|
|
4643
4643
|
}, d = () => window.microApp.getData(), u = () => {
|
|
4644
4644
|
window.microApp.clearData();
|
|
4645
4645
|
}, n = (p, r = !1) => {
|
|
4646
|
-
window.microApp.addDataListener(p, r),
|
|
4646
|
+
window.microApp.addDataListener(p, r), l.value.add(p);
|
|
4647
4647
|
}, c = (p) => {
|
|
4648
|
-
window.microApp.removeDataListener(p),
|
|
4648
|
+
window.microApp.removeDataListener(p), l.value.delete(p);
|
|
4649
4649
|
};
|
|
4650
|
-
return
|
|
4651
|
-
window.microApp.clearDataListener(),
|
|
4650
|
+
return Ae(() => {
|
|
4651
|
+
window.microApp.clearDataListener(), l.value.clear();
|
|
4652
4652
|
}), {
|
|
4653
|
-
sendMessage:
|
|
4653
|
+
sendMessage: a,
|
|
4654
4654
|
// 发送消息的方法
|
|
4655
4655
|
onMessage: n,
|
|
4656
4656
|
// 监听消息的方法
|
|
@@ -4660,7 +4660,7 @@ function ns(e) {
|
|
|
4660
4660
|
// 获取主应用下发的消息
|
|
4661
4661
|
offMessage: c,
|
|
4662
4662
|
// 移除指定监听函数
|
|
4663
|
-
listeners:
|
|
4663
|
+
listeners: l,
|
|
4664
4664
|
// 应用的监听函数集合
|
|
4665
4665
|
// receivedMessage, // 接收到的消息列表
|
|
4666
4666
|
sendGlobalMessage: t,
|
|
@@ -4669,66 +4669,104 @@ function ns(e) {
|
|
|
4669
4669
|
// 监听全局消息的方法
|
|
4670
4670
|
};
|
|
4671
4671
|
}
|
|
4672
|
-
const
|
|
4672
|
+
const Ve = h();
|
|
4673
|
+
async function lt(e) {
|
|
4674
|
+
if (!Ve.value) {
|
|
4675
|
+
e || (e = "ace-global-app");
|
|
4676
|
+
const l = le(), a = ll(l);
|
|
4677
|
+
Ve.value = await a.getClassificationLevels(e);
|
|
4678
|
+
}
|
|
4679
|
+
}
|
|
4680
|
+
async function is(e) {
|
|
4681
|
+
return await lt(e), Ve.value.system;
|
|
4682
|
+
}
|
|
4683
|
+
async function ds(e) {
|
|
4684
|
+
return await lt(e), Ve.value.user;
|
|
4685
|
+
}
|
|
4686
|
+
async function cs(e) {
|
|
4687
|
+
await lt(e);
|
|
4688
|
+
const l = /* @__PURE__ */ new Map();
|
|
4689
|
+
for (let a = 0; a < Ve.value.user.length; a++) {
|
|
4690
|
+
const t = Ve.value.user[a];
|
|
4691
|
+
l.set(t.value, t.label);
|
|
4692
|
+
}
|
|
4693
|
+
return l;
|
|
4694
|
+
}
|
|
4695
|
+
async function ps(e) {
|
|
4696
|
+
await lt(e);
|
|
4697
|
+
const l = /* @__PURE__ */ new Map();
|
|
4698
|
+
for (let a = 0; a < Ve.value.system.length; a++) {
|
|
4699
|
+
const t = Ve.value.system[a];
|
|
4700
|
+
l.set(t.value, t.label);
|
|
4701
|
+
}
|
|
4702
|
+
return l;
|
|
4703
|
+
}
|
|
4704
|
+
const ms = {
|
|
4673
4705
|
install(e) {
|
|
4674
|
-
for (const [
|
|
4675
|
-
e.component(
|
|
4676
|
-
|
|
4706
|
+
for (const [l, a] of Object.entries(ts))
|
|
4707
|
+
e.component(l, a);
|
|
4708
|
+
as(e);
|
|
4677
4709
|
}
|
|
4678
4710
|
};
|
|
4679
4711
|
export {
|
|
4680
|
-
|
|
4681
|
-
|
|
4682
|
-
|
|
4683
|
-
|
|
4684
|
-
|
|
4685
|
-
|
|
4712
|
+
yl as AceTip,
|
|
4713
|
+
fl as AceUpload,
|
|
4714
|
+
ms as AceVueUI,
|
|
4715
|
+
$r as JaAutocomplete,
|
|
4716
|
+
ct as JaAvatar,
|
|
4717
|
+
At as JaBaseRolePicker,
|
|
4686
4718
|
se as JaButton,
|
|
4687
|
-
|
|
4688
|
-
|
|
4689
|
-
|
|
4690
|
-
|
|
4691
|
-
|
|
4692
|
-
|
|
4693
|
-
|
|
4694
|
-
|
|
4695
|
-
|
|
4696
|
-
|
|
4697
|
-
|
|
4698
|
-
|
|
4699
|
-
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
|
|
4703
|
-
|
|
4704
|
-
|
|
4705
|
-
|
|
4706
|
-
|
|
4707
|
-
|
|
4708
|
-
|
|
4709
|
-
|
|
4710
|
-
|
|
4711
|
-
|
|
4712
|
-
|
|
4713
|
-
|
|
4714
|
-
|
|
4715
|
-
|
|
4716
|
-
|
|
4717
|
-
|
|
4718
|
-
|
|
4719
|
-
|
|
4720
|
-
|
|
4721
|
-
|
|
4722
|
-
|
|
4723
|
-
|
|
4724
|
-
|
|
4725
|
-
|
|
4726
|
-
|
|
4727
|
-
|
|
4728
|
-
|
|
4729
|
-
|
|
4730
|
-
|
|
4731
|
-
|
|
4732
|
-
|
|
4733
|
-
|
|
4719
|
+
Br as JaChannelPicker,
|
|
4720
|
+
Rr as JaChannelPickerRaw,
|
|
4721
|
+
Al as JaCheckbox,
|
|
4722
|
+
Xr as JaCheckboxGroup,
|
|
4723
|
+
Ml as JaDatePicker,
|
|
4724
|
+
wo as JaDepartmentPicker,
|
|
4725
|
+
ya as JaDepartmentTree,
|
|
4726
|
+
Jl as JaDropdownButton,
|
|
4727
|
+
so as JaEnumList,
|
|
4728
|
+
uo as JaEnumListRaw,
|
|
4729
|
+
es as JaEnumPicker,
|
|
4730
|
+
_l as JaForm,
|
|
4731
|
+
Ne as JaFormItem,
|
|
4732
|
+
dt as JaInput,
|
|
4733
|
+
Yr as JaInputI18nRaw,
|
|
4734
|
+
El as JaInputNumber,
|
|
4735
|
+
go as JaMapItemList,
|
|
4736
|
+
ho as JaMapItemListRaw,
|
|
4737
|
+
eo as JaNumberList,
|
|
4738
|
+
to as JaNumberListRaw,
|
|
4739
|
+
Gr as JaPropertyPicker,
|
|
4740
|
+
Hr as JaPropertyPickerRaw,
|
|
4741
|
+
Dr as JaRadioGroup,
|
|
4742
|
+
Pr as JaRolePicker,
|
|
4743
|
+
Ur as JaRolePickerRaw,
|
|
4744
|
+
ka as JaScrollbar,
|
|
4745
|
+
Tl as JaSelect,
|
|
4746
|
+
Hl as JaStringList,
|
|
4747
|
+
Wl as JaStringListRaw,
|
|
4748
|
+
jl as JaSwitch,
|
|
4749
|
+
kr as JaTimePicker,
|
|
4750
|
+
Ir as JaUserGroupPicker,
|
|
4751
|
+
wa as JaUserGroupTree,
|
|
4752
|
+
at as JaUserInfoTag,
|
|
4753
|
+
wr as JaUserList,
|
|
4754
|
+
br as JaUserPicker,
|
|
4755
|
+
yr as JaUserPickerRaw,
|
|
4756
|
+
_a as JaUserSelectDialog,
|
|
4757
|
+
ba as SCROLL_BAR_WRAPPED_INJECT_KEY,
|
|
4758
|
+
pa as getAvatarToken,
|
|
4759
|
+
as as installDirectives,
|
|
4760
|
+
ss as shortcuts,
|
|
4761
|
+
_o as updateAvatarToken,
|
|
4762
|
+
$t as useAppInstances,
|
|
4763
|
+
bl as useBackendValidations,
|
|
4764
|
+
us as useBridge,
|
|
4765
|
+
Vt as useRealms,
|
|
4766
|
+
ps as useSystemClassificationLevelMap,
|
|
4767
|
+
is as useSystemClassificationLevels,
|
|
4768
|
+
Ue as useTreeData,
|
|
4769
|
+
ds as useUserClassificationLevel,
|
|
4770
|
+
cs as useUserClassificationLevelMap,
|
|
4771
|
+
ha as useUserRefQuery
|
|
4734
4772
|
};
|