@jari-ace/element-plus-component 0.1.9 → 0.2.0
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 +18 -18
- package/dist/components/userPicker/src/UserPicker.vue.d.ts +17 -0
- package/dist/components/userPicker/src/UserPicker.vue.d.ts.map +1 -1
- package/dist/components/userPicker/src/UserPicker.vue.js +15 -0
- package/dist/components/userPicker/src/UserPicker.vue.js.map +1 -1
- package/dist/components/userSelectDialog/src/userSelectDialog.vue.d.ts +17 -0
- package/dist/components/userSelectDialog/src/userSelectDialog.vue.d.ts.map +1 -1
- package/dist/components/userSelectDialog/src/userSelectDialog.vue.js +15 -0
- package/dist/components/userSelectDialog/src/userSelectDialog.vue.js.map +1 -1
- package/dist/hooks/useClassificationLevels.d.ts +21 -0
- package/dist/hooks/useClassificationLevels.d.ts.map +1 -0
- package/dist/hooks/useClassificationLevels.js +55 -0
- package/dist/hooks/useClassificationLevels.js.map +1 -0
- package/dist/hooks/useUserRefQuery.d.ts +6 -0
- package/dist/hooks/useUserRefQuery.d.ts.map +1 -1
- package/dist/hooks/useUserRefQuery.js +4 -0
- package/dist/hooks/useUserRefQuery.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/lib/index.css +1 -1
- package/lib/index.js +740 -723
- package/lib/index.umd.cjs +2 -2
- package/package.json +61 -61
- package/packages/components/autoComplete/JaAutoComplete.vue +47 -47
- package/packages/components/autoComplete/index.ts +5 -5
- package/packages/components/avatar/JaAvatar.vue +126 -126
- package/packages/components/avatar/avatarToken.ts +11 -11
- package/packages/components/avatar/defaultImg.ts +14 -14
- package/packages/components/avatar/index.ts +7 -7
- package/packages/components/button/JaButton.vue +51 -51
- package/packages/components/button/index.ts +4 -4
- package/packages/components/channelPicker/index.ts +7 -7
- package/packages/components/channelPicker/src/ChannelPicker.vue +43 -43
- package/packages/components/channelPicker/src/JaChannelPicker.vue +42 -42
- package/packages/components/checkbox/JaCheckbox.vue +73 -73
- package/packages/components/checkbox/index.ts +4 -4
- package/packages/components/checkboxGroup/JaCheckboxGroup.vue +45 -45
- package/packages/components/checkboxGroup/index.ts +4 -4
- package/packages/components/customGroupTree/index.ts +10 -10
- package/packages/components/customGroupTree/src/customGroupTree.vue +91 -91
- package/packages/components/datePicker/JaDatePicker.vue +52 -52
- package/packages/components/datePicker/index.ts +4 -4
- package/packages/components/departmentPicker/index.ts +4 -4
- package/packages/components/departmentPicker/src/DepartmentPicker.vue +107 -107
- package/packages/components/departmentPicker/src/consts.ts +2 -2
- package/packages/components/departmentTree/index.ts +10 -10
- package/packages/components/departmentTree/src/departmentTree.vue +135 -135
- package/packages/components/dropdownButton/JaDropdownButton.vue +59 -59
- package/packages/components/dropdownButton/index.ts +4 -4
- package/packages/components/enumList/EnumListInput.vue +107 -107
- package/packages/components/enumList/JaEnumList.vue +39 -39
- package/packages/components/enumList/index.ts +7 -7
- package/packages/components/enumPicker/index.ts +5 -5
- package/packages/components/enumPicker/src/EnumPicker.vue +103 -103
- package/packages/components/form/JaForm.vue +186 -186
- package/packages/components/form/index.ts +5 -5
- package/packages/components/form/types.ts +4 -4
- package/packages/components/formItem/JaFormItem.vue +68 -68
- package/packages/components/formItem/index.ts +4 -4
- package/packages/components/index.ts +34 -34
- package/packages/components/input/JaInput.vue +143 -143
- package/packages/components/input/index.ts +4 -4
- package/packages/components/inputI18n/I18nBundleEditor.vue +76 -76
- package/packages/components/inputI18n/InputI18n.vue +146 -146
- package/packages/components/inputI18n/JaInputI18n.vue +50 -50
- package/packages/components/inputI18n/index.ts +8 -8
- package/packages/components/inputNumber/JaInputNumber.vue +98 -98
- package/packages/components/inputNumber/index.ts +4 -4
- package/packages/components/mapItemList/JaMapItemList.vue +35 -35
- package/packages/components/mapItemList/MapItemListInput.vue +191 -191
- package/packages/components/mapItemList/index.ts +7 -7
- package/packages/components/numberList/JaNumberList.vue +36 -36
- package/packages/components/numberList/NumberListInput.vue +111 -111
- package/packages/components/numberList/index.ts +7 -7
- package/packages/components/properyPicker/JaPropertyPicker.vue +38 -38
- package/packages/components/properyPicker/PropertyPicker.vue +314 -314
- package/packages/components/properyPicker/index.ts +7 -7
- package/packages/components/radioGroup/JaRadioGroup.vue +50 -50
- package/packages/components/radioGroup/index.ts +4 -4
- package/packages/components/rolePicker/RoleEditor.vue +129 -129
- package/packages/components/rolePicker/RolePicker.vue +44 -44
- package/packages/components/rolePicker/RolePickerRaw.vue +56 -56
- package/packages/components/rolePicker/baseRolePicker.vue +87 -87
- package/packages/components/rolePicker/index.ts +10 -10
- package/packages/components/scrollbar/Scrollbar.vue +89 -89
- package/packages/components/scrollbar/index.ts +5 -5
- package/packages/components/scrollbar/utils.ts +17 -17
- package/packages/components/select/JaSelect.vue +48 -48
- package/packages/components/select/index.ts +4 -4
- package/packages/components/stringList/JaStringList.vue +36 -36
- package/packages/components/stringList/StringListInput.vue +96 -96
- package/packages/components/stringList/index.ts +7 -7
- package/packages/components/switch/JaSwitch.vue +50 -50
- package/packages/components/switch/index.ts +4 -4
- package/packages/components/timePicker/JaTimePicker.vue +52 -52
- package/packages/components/timePicker/index.ts +5 -5
- package/packages/components/tip/index.ts +4 -4
- package/packages/components/tip/src/AceTip.vue +43 -43
- package/packages/components/upload/index.ts +6 -6
- package/packages/components/upload/src/Upload.vue +25 -25
- package/packages/components/upload/src/type.ts +3 -3
- package/packages/components/userGroupPicker/index.ts +4 -4
- package/packages/components/userGroupPicker/src/UserGroupPicker.vue +94 -94
- package/packages/components/userGroupTree/index.ts +10 -10
- package/packages/components/userGroupTree/src/userGroupTree.vue +149 -149
- package/packages/components/userPicker/index.ts +10 -10
- package/packages/components/userPicker/src/CustomGroupManager.vue +189 -189
- package/packages/components/userPicker/src/JaUserList.vue +283 -283
- package/packages/components/userPicker/src/JaUserPicker.vue +37 -37
- package/packages/components/userPicker/src/UserPicker.vue +376 -368
- package/packages/components/userSelectDialog/index.ts +6 -6
- package/packages/components/userSelectDialog/src/userSelectDialog.vue +462 -455
- package/packages/components/userTag/UserInfoTag.vue +397 -397
- package/packages/components/userTag/index.ts +6 -6
- package/packages/components/userTag/sharedAxios.ts +8 -8
- package/packages/directives/auth/index.ts +41 -41
- package/packages/directives/autofocus/index.ts +29 -29
- package/packages/directives/index.ts +10 -10
- package/packages/directives/shortcut/index.ts +192 -192
- package/packages/hooks/useAppInstances.ts +34 -34
- package/packages/hooks/useBridage.ts +157 -157
- package/packages/hooks/useClassificationLevels.ts +62 -0
- package/packages/hooks/useDateTimeShortCuts.ts +65 -65
- package/packages/hooks/useRealms.ts +28 -28
- package/packages/hooks/useTreeData.ts +45 -45
- package/packages/hooks/useUserRefQuery.ts +232 -224
- package/packages/index.ts +21 -22
- package/packages/list.json +7 -7
- package/packages/types/custom.d.ts +13 -13
- package/packages/types/window.d.ts +16 -16
- package/packages/utils/install.ts +43 -43
- package/packages/utils/objectUtils.ts +31 -31
- package/theme-style/fonts/iconfont.json +5196 -5196
- package/theme-style/index.scss +10 -10
- package/theme-style/styles/element-plus-var.scss +1419 -1419
- package/theme-style/styles/iconfont.css +2979 -2979
- package/theme-style/styles/theme-var.scss +72 -72
- package/theme-style/styles/transition.scss +122 -122
package/lib/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as z, reactive as Oe, resolveComponent as
|
|
2
|
-
import { ElForm as ft, ElFormItem as We, ElText as Fe, ElTooltip as ke, ElIcon as ce, ElInput as we, ElCheckbox as Na, ElInputNumber as Ke, ElSelect as Ae, ElDatePicker as rt, ElButton as
|
|
1
|
+
import { defineComponent as z, reactive as Oe, resolveComponent as ye, createElementBlock as N, openBlock as b, createVNode as w, withCtx as g, createTextVNode as G, createElementVNode as j, normalizeStyle as za, renderSlot as te, toDisplayString as ae, ref as h, provide as Te, 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 Qe, withDirectives as Y, onBeforeMount as je, Fragment as ne, vShow as he, resolveDynamicComponent as Ba, mergeModels as Q, useModel as ue, nextTick as Ie, onUnmounted as $e, normalizeClass as He, shallowReactive as pt, withAsyncContext as mt, h as Ue, shallowRef as Ra, withKeys as Ve, withModifiers as At, vModelText as La, resolveDirective as Lt } from "vue";
|
|
2
|
+
import { ElForm as ft, ElFormItem as We, ElText as Fe, ElTooltip as ke, ElIcon as ce, ElInput as we, ElCheckbox as Na, ElInputNumber as Ke, ElSelect as Ae, ElDatePicker as rt, ElButton as fe, ElDropdown as Nt, ElSwitch as Jt, ElSpace as vt, ElTreeSelect as gt, ElAvatar as Ja, ElImage as Oa, ElPopover as Ot, vLoading as De, ElTree as Xe, ElOption as Ze, ElDialog as st, ElTabs as ja, ElTabPane as at, ElScrollbar as Ce, ElTableV2 as xa, ElMessageBox as qa, ElMessage as Ga, ElEmpty as jt, ElTimePicker as Ha, ElAutocomplete as Wa, ElRadioGroup as Ka, ElDrawer as xt, ElTag as Dt, ElCheckboxGroup as Ya } from "element-plus";
|
|
3
3
|
import { createAxiosWithoutCache as le, useLoginUser as qt, useDepartmentApi as Gt, FromDeptSelect as Ht, useLoading as _e, useUserApi as ht, useRealmApi as Qa, useUserQueryBuilder as Wt, useUserGroupApi as Kt, useAppApi as yt, useCustomGroupApi as Yt, useRoleApi as Qt, useChannelApi as Xa, useEntityApi as Za, useAppMessageApi as Xt, useEnumApi as el } from "@jari-ace/app-bolts";
|
|
4
4
|
import { QuestionFilled as Zt, ArrowDown as ea, Minus as xe, Plus as Ee, Star as tl, StarFilled as ta, Close as al, Hide as ll, View as ol, Check as aa, Notebook as nl, Delete as rl, Finished as sl, Setting as ul, Search as Et, ArrowUp as il } from "@element-plus/icons-vue";
|
|
5
5
|
const R = (e, a) => (e.install = (l) => {
|
|
@@ -24,11 +24,11 @@ const R = (e, a) => (e.install = (l) => {
|
|
|
24
24
|
fileList: []
|
|
25
25
|
});
|
|
26
26
|
return (l, t) => {
|
|
27
|
-
const o =
|
|
28
|
-
return
|
|
29
|
-
w(
|
|
27
|
+
const o = ye("el-button"), d = ye("el-upload");
|
|
28
|
+
return b(), N("div", null, [
|
|
29
|
+
w(d, {
|
|
30
30
|
"file-list": a.fileList,
|
|
31
|
-
"onUpdate:fileList": t[0] || (t[0] = (
|
|
31
|
+
"onUpdate:fileList": t[0] || (t[0] = (u) => a.fileList = u),
|
|
32
32
|
class: "ace-upload",
|
|
33
33
|
"list-type": "picture"
|
|
34
34
|
}, {
|
|
@@ -38,7 +38,7 @@ const R = (e, a) => (e.install = (l) => {
|
|
|
38
38
|
default: g(() => [
|
|
39
39
|
w(o, { type: "primary" }, {
|
|
40
40
|
default: g(() => t[1] || (t[1] = [
|
|
41
|
-
|
|
41
|
+
G("Click to upload")
|
|
42
42
|
])),
|
|
43
43
|
_: 1,
|
|
44
44
|
__: [1]
|
|
@@ -57,7 +57,7 @@ const R = (e, a) => (e.install = (l) => {
|
|
|
57
57
|
},
|
|
58
58
|
setup(e) {
|
|
59
59
|
const a = e;
|
|
60
|
-
return (l, t) => (
|
|
60
|
+
return (l, t) => (b(), N("div", {
|
|
61
61
|
class: "ace-tip-sfc",
|
|
62
62
|
style: za({
|
|
63
63
|
backgroundColor: `var(--el-color-${a.type}-light-9)`,
|
|
@@ -73,7 +73,7 @@ const R = (e, a) => (e.install = (l) => {
|
|
|
73
73
|
for (const [t, o] of a)
|
|
74
74
|
l[t] = o;
|
|
75
75
|
return l;
|
|
76
|
-
}, fl = /* @__PURE__ */ pe(ml, [["__scopeId", "data-v-
|
|
76
|
+
}, fl = /* @__PURE__ */ pe(ml, [["__scopeId", "data-v-2cc0dc68"]]), vl = R(fl);
|
|
77
77
|
function gl(e, a, l) {
|
|
78
78
|
const t = Oe({});
|
|
79
79
|
let o = [];
|
|
@@ -85,14 +85,14 @@ function gl(e, a, l) {
|
|
|
85
85
|
for (const n of e) {
|
|
86
86
|
const c = {
|
|
87
87
|
trigger: "blur",
|
|
88
|
-
validator: (p, r,
|
|
88
|
+
validator: (p, r, i) => {
|
|
89
89
|
if (!o) return;
|
|
90
90
|
let m = !1;
|
|
91
91
|
for (const f of o) {
|
|
92
92
|
let _ = f.fieldName;
|
|
93
|
-
_ != null && _.endsWith("[]") && (_ = _.substring(0, _.length - 2)), _ === n && (m = !0,
|
|
93
|
+
_ != null && _.endsWith("[]") && (_ = _.substring(0, _.length - 2)), _ === n && (m = !0, i(new Error(f.message)));
|
|
94
94
|
}
|
|
95
|
-
m ||
|
|
95
|
+
m || i();
|
|
96
96
|
}
|
|
97
97
|
};
|
|
98
98
|
l && l[n] ? Array.isArray(l[n]) ? t[n] = [c, ...l[n]] : t[n] = [c, l[n]] : t[n] = c;
|
|
@@ -131,53 +131,53 @@ const hl = /* @__PURE__ */ z({
|
|
|
131
131
|
setup(e, { expose: a }) {
|
|
132
132
|
const l = h(void 0), t = e;
|
|
133
133
|
Te("aceFormValidator", t.validator), Te("aceFormModel", t.model), Te("aceFormSize", t.size);
|
|
134
|
-
const o =
|
|
134
|
+
const o = ge(() => ({
|
|
135
135
|
...t.rules,
|
|
136
136
|
...t.validator.rules
|
|
137
137
|
}));
|
|
138
138
|
return a({
|
|
139
139
|
elForm: l,
|
|
140
140
|
getElForm: () => l.value,
|
|
141
|
-
validate: async (
|
|
141
|
+
validate: async (d, u) => {
|
|
142
142
|
l && (l.value.clearValidate(), t.rules ? await l.value.validate((n, c) => {
|
|
143
|
-
n ?
|
|
143
|
+
n ? d().then(() => {
|
|
144
144
|
var p;
|
|
145
145
|
(p = t.validator) == null || p.clearFiledErrors();
|
|
146
146
|
}).catch(() => {
|
|
147
|
-
l.value.validate(),
|
|
147
|
+
l.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 l.value.validate(),
|
|
153
|
+
await l.value.validate(), u && u();
|
|
154
154
|
}));
|
|
155
155
|
}
|
|
156
156
|
}), T(() => t.model.formData, () => {
|
|
157
|
-
var
|
|
158
|
-
(
|
|
159
|
-
}), (
|
|
157
|
+
var d;
|
|
158
|
+
(d = t.validator) == null || d.clearFiledErrors();
|
|
159
|
+
}), (d, u) => (b(), $(s(ft), {
|
|
160
160
|
ref_key: "formRef",
|
|
161
161
|
ref: l,
|
|
162
|
-
model:
|
|
162
|
+
model: d.model.formData,
|
|
163
163
|
rules: o.value,
|
|
164
|
-
inline:
|
|
165
|
-
"label-position":
|
|
166
|
-
"label-width":
|
|
167
|
-
"label-suffix":
|
|
168
|
-
"hide-required-asterisk":
|
|
169
|
-
"show-message":
|
|
170
|
-
"inline-message":
|
|
171
|
-
"status-icon":
|
|
172
|
-
"validate-on-rule-change":
|
|
173
|
-
size:
|
|
174
|
-
disabled:
|
|
175
|
-
"scroll-to-error":
|
|
176
|
-
onValidate:
|
|
177
|
-
onClick:
|
|
164
|
+
inline: d.inline,
|
|
165
|
+
"label-position": d.labelPosition,
|
|
166
|
+
"label-width": d.labelWidth,
|
|
167
|
+
"label-suffix": d.labelSuffix,
|
|
168
|
+
"hide-required-asterisk": d.hideRequiredAsterisk,
|
|
169
|
+
"show-message": d.showMessage,
|
|
170
|
+
"inline-message": d.inlineMessage,
|
|
171
|
+
"status-icon": d.statusIcon,
|
|
172
|
+
"validate-on-rule-change": d.validateOnRuleChange,
|
|
173
|
+
size: d.size,
|
|
174
|
+
disabled: d.disabled,
|
|
175
|
+
"scroll-to-error": d.scrollToError,
|
|
176
|
+
onValidate: u[0] || (u[0] = (n, c, p) => d.$emit("validate", n, c, p)),
|
|
177
|
+
onClick: u[1] || (u[1] = () => d.$emit("click"))
|
|
178
178
|
}, {
|
|
179
179
|
default: g(() => [
|
|
180
|
-
te(
|
|
180
|
+
te(d.$slots, "default")
|
|
181
181
|
]),
|
|
182
182
|
_: 3
|
|
183
183
|
}, 8, ["model", "rules", "inline", "label-position", "label-width", "label-suffix", "hide-required-asterisk", "show-message", "inline-message", "status-icon", "validate-on-rule-change", "size", "disabled", "scroll-to-error"]));
|
|
@@ -211,7 +211,7 @@ const hl = /* @__PURE__ */ z({
|
|
|
211
211
|
t.value.clearValidate();
|
|
212
212
|
},
|
|
213
213
|
elFormItem: t
|
|
214
|
-
}), (o,
|
|
214
|
+
}), (o, d) => (b(), $(s(We), {
|
|
215
215
|
ref_key: "formItem",
|
|
216
216
|
ref: t,
|
|
217
217
|
prop: o.prop,
|
|
@@ -225,9 +225,9 @@ const hl = /* @__PURE__ */ z({
|
|
|
225
225
|
label: g(() => [
|
|
226
226
|
w(s(Fe), { class: "el-form-item__label" }, {
|
|
227
227
|
default: g(() => [
|
|
228
|
-
|
|
229
|
-
l.required ? (
|
|
230
|
-
o.labelRemark ? (
|
|
228
|
+
G(ae(l.label) + " ", 1),
|
|
229
|
+
l.required ? (b(), N("span", bl, "*")) : de("", !0),
|
|
230
|
+
o.labelRemark ? (b(), $(s(ke), {
|
|
231
231
|
key: 1,
|
|
232
232
|
placement: "top"
|
|
233
233
|
}, {
|
|
@@ -270,7 +270,7 @@ function re(e, a, l) {
|
|
|
270
270
|
throw new Error("prop不能为空,请检查所有的ja-form-item的prop属性是否都已设置");
|
|
271
271
|
const t = a.split(".");
|
|
272
272
|
let o = e;
|
|
273
|
-
for (let
|
|
273
|
+
for (let d = 0; d < t.length - 1 && (o = o[t[d]], !!o); d++)
|
|
274
274
|
;
|
|
275
275
|
o && (o[t[t.length - 1]] = l);
|
|
276
276
|
}
|
|
@@ -308,9 +308,9 @@ const kl = /* @__PURE__ */ z({
|
|
|
308
308
|
},
|
|
309
309
|
emits: ["blur", "focus", "change", "input", "clear"],
|
|
310
310
|
setup(e, { expose: a, emit: l }) {
|
|
311
|
-
const t = M("aceFormModel"), o = M("aceFormItemProp"),
|
|
311
|
+
const t = M("aceFormModel"), o = M("aceFormItemProp"), d = M("aceFormValidator"), u = h({}), n = l;
|
|
312
312
|
function c(r) {
|
|
313
|
-
|
|
313
|
+
d.removeFieldError(o), re(t.formData, o, p.value), n("change", r);
|
|
314
314
|
}
|
|
315
315
|
const p = h(x(t.formData, o));
|
|
316
316
|
return T(() => t.formData, () => {
|
|
@@ -319,24 +319,24 @@ const kl = /* @__PURE__ */ z({
|
|
|
319
319
|
deep: !0
|
|
320
320
|
}), a({
|
|
321
321
|
focus() {
|
|
322
|
-
|
|
322
|
+
u.value.focus();
|
|
323
323
|
},
|
|
324
324
|
blur() {
|
|
325
|
-
|
|
325
|
+
u.value.blur();
|
|
326
326
|
},
|
|
327
327
|
select() {
|
|
328
|
-
|
|
328
|
+
u.value.select();
|
|
329
329
|
},
|
|
330
330
|
clear() {
|
|
331
|
-
|
|
331
|
+
u.value.clear();
|
|
332
332
|
},
|
|
333
|
-
elInput:
|
|
334
|
-
}), (r,
|
|
333
|
+
elInput: u
|
|
334
|
+
}), (r, i) => (b(), $(s(we), {
|
|
335
335
|
ref_key: "input",
|
|
336
|
-
ref:
|
|
336
|
+
ref: u,
|
|
337
337
|
type: r.type,
|
|
338
338
|
modelValue: p.value,
|
|
339
|
-
"onUpdate:modelValue":
|
|
339
|
+
"onUpdate:modelValue": i[0] || (i[0] = (m) => p.value = m),
|
|
340
340
|
maxlength: r.maxLength,
|
|
341
341
|
minLength: r.minLength,
|
|
342
342
|
"show-word-limit": r.showWordLimit,
|
|
@@ -363,12 +363,12 @@ const kl = /* @__PURE__ */ z({
|
|
|
363
363
|
label: r.label,
|
|
364
364
|
tabindex: r.tabindex,
|
|
365
365
|
"validate-event": r.validateEvent,
|
|
366
|
-
onBlur:
|
|
367
|
-
onFocus:
|
|
366
|
+
onBlur: i[1] || (i[1] = (m) => r.$emit("blur", m)),
|
|
367
|
+
onFocus: i[2] || (i[2] = (m) => r.$emit("focus", m)),
|
|
368
368
|
onChange: c,
|
|
369
|
-
onInput:
|
|
370
|
-
onClear:
|
|
371
|
-
},
|
|
369
|
+
onInput: i[3] || (i[3] = (m) => r.$emit("input", m)),
|
|
370
|
+
onClear: i[4] || (i[4] = () => r.$emit("clear"))
|
|
371
|
+
}, ve({ _: 2 }, [
|
|
372
372
|
W(r.$slots, (m, f) => ({
|
|
373
373
|
name: f,
|
|
374
374
|
fn: g(() => [
|
|
@@ -393,20 +393,20 @@ const kl = /* @__PURE__ */ z({
|
|
|
393
393
|
},
|
|
394
394
|
emits: ["change"],
|
|
395
395
|
setup(e, { expose: a, emit: l }) {
|
|
396
|
-
const t = M("aceFormModel"), o = M("aceFormItemProp"),
|
|
396
|
+
const t = M("aceFormModel"), o = M("aceFormItemProp"), d = M("aceFormValidator"), u = h({}), n = l;
|
|
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
|
}), a({
|
|
404
|
-
elCheckbox:
|
|
405
|
-
}), (r,
|
|
404
|
+
elCheckbox: u
|
|
405
|
+
}), (r, i) => (b(), $(s(Na), {
|
|
406
406
|
ref_key: "checkbox",
|
|
407
|
-
ref:
|
|
407
|
+
ref: u,
|
|
408
408
|
modelValue: p.value,
|
|
409
|
-
"onUpdate:modelValue":
|
|
409
|
+
"onUpdate:modelValue": i[0] || (i[0] = (m) => p.value = m),
|
|
410
410
|
disabled: r.disabled,
|
|
411
411
|
"true-label": r.trueLabel,
|
|
412
412
|
"false-label": r.falseLabel,
|
|
@@ -448,13 +448,13 @@ const kl = /* @__PURE__ */ z({
|
|
|
448
448
|
},
|
|
449
449
|
emits: ["blur", "focus", "change"],
|
|
450
450
|
setup(e, { expose: a, emit: l }) {
|
|
451
|
-
const t = e, o = M("aceFormModel"),
|
|
451
|
+
const t = e, o = M("aceFormModel"), d = M("aceFormItemProp"), u = M("aceFormValidator"), n = ge(() => t.size ? t.size : M("aceFormSize")), c = h(), p = l;
|
|
452
452
|
function r(m) {
|
|
453
|
-
|
|
453
|
+
u.removeFieldError(d), re(o.formData, d, i.value), p("change", m);
|
|
454
454
|
}
|
|
455
|
-
const
|
|
455
|
+
const i = h(x(o.formData, d));
|
|
456
456
|
return T(() => o.formData, () => {
|
|
457
|
-
|
|
457
|
+
i.value = x(o.formData, d);
|
|
458
458
|
}, {
|
|
459
459
|
deep: !0
|
|
460
460
|
}), a({
|
|
@@ -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) => (
|
|
470
|
+
}), (m, f) => (b(), $(s(Ke), {
|
|
471
471
|
min: m.min,
|
|
472
472
|
max: m.max,
|
|
473
473
|
label: m.label,
|
|
@@ -476,8 +476,8 @@ const kl = /* @__PURE__ */ z({
|
|
|
476
476
|
"aria-label": m.ariaLabel,
|
|
477
477
|
controls: m.controls,
|
|
478
478
|
"controls-position": m.controlsPosition,
|
|
479
|
-
modelValue:
|
|
480
|
-
"onUpdate:modelValue": f[0] || (f[0] = (_) =>
|
|
479
|
+
modelValue: i.value,
|
|
480
|
+
"onUpdate:modelValue": f[0] || (f[0] = (_) => i.value = _),
|
|
481
481
|
name: m.name,
|
|
482
482
|
placeholder: m.placeholder,
|
|
483
483
|
precision: m.precision,
|
|
@@ -502,26 +502,26 @@ const kl = /* @__PURE__ */ z({
|
|
|
502
502
|
__name: "JaSelect",
|
|
503
503
|
emits: ["change"],
|
|
504
504
|
setup(e, { expose: a, emit: l }) {
|
|
505
|
-
const t = h({}), o = M("aceFormModel"),
|
|
505
|
+
const t = h({}), o = M("aceFormModel"), d = M("aceFormItemProp"), u = M("aceFormValidator"), n = l;
|
|
506
506
|
function c(r) {
|
|
507
|
-
|
|
507
|
+
u.removeFieldError(d), re(o.formData, d, p.value), n("change", r);
|
|
508
508
|
}
|
|
509
|
-
const p = h(x(o.formData,
|
|
509
|
+
const p = h(x(o.formData, d));
|
|
510
510
|
return T(() => o.formData, () => {
|
|
511
|
-
p.value = x(o.formData,
|
|
511
|
+
p.value = x(o.formData, d);
|
|
512
512
|
}, {
|
|
513
513
|
deep: !0
|
|
514
514
|
}), a({
|
|
515
515
|
focus: () => t.value.focus(),
|
|
516
516
|
blur: () => t.value.blur(),
|
|
517
517
|
elSelect: t
|
|
518
|
-
}), (r,
|
|
518
|
+
}), (r, i) => (b(), $(s(Ae), K({
|
|
519
519
|
ref_key: "input",
|
|
520
520
|
ref: t,
|
|
521
521
|
modelValue: p.value,
|
|
522
|
-
"onUpdate:modelValue":
|
|
522
|
+
"onUpdate:modelValue": i[0] || (i[0] = (m) => p.value = m),
|
|
523
523
|
onChange: c
|
|
524
|
-
}, r.$attrs),
|
|
524
|
+
}, r.$attrs), ve({ _: 2 }, [
|
|
525
525
|
W(r.$slots, (m, f) => ({
|
|
526
526
|
name: f,
|
|
527
527
|
fn: g(() => [
|
|
@@ -534,30 +534,30 @@ const kl = /* @__PURE__ */ z({
|
|
|
534
534
|
__name: "JaDatePicker",
|
|
535
535
|
emits: ["change"],
|
|
536
536
|
setup(e, { expose: a, emit: l }) {
|
|
537
|
-
const t = h({}), o = M("aceFormModel"),
|
|
538
|
-
function p(
|
|
539
|
-
|
|
537
|
+
const t = h({}), o = M("aceFormModel"), d = M("aceFormItemProp"), u = M("aceFormValidator"), n = l, c = h({});
|
|
538
|
+
function p(i) {
|
|
539
|
+
u.removeFieldError(d), re(o.formData, d, r.value), n("change", i);
|
|
540
540
|
}
|
|
541
|
-
const r = h(x(o.formData,
|
|
541
|
+
const r = h(x(o.formData, d));
|
|
542
542
|
return T(() => o.formData, () => {
|
|
543
|
-
r.value = x(o.formData,
|
|
543
|
+
r.value = x(o.formData, d);
|
|
544
544
|
}, {
|
|
545
545
|
deep: !0
|
|
546
546
|
}), Qe(() => {
|
|
547
547
|
Object.entries(t.value).filter(([m, f]) => f instanceof Function).forEach(([m, f]) => {
|
|
548
548
|
c.value[m] = f;
|
|
549
549
|
});
|
|
550
|
-
}), a(c.value), (
|
|
550
|
+
}), a(c.value), (i, m) => (b(), $(s(rt), K({
|
|
551
551
|
ref_key: "input",
|
|
552
552
|
ref: t,
|
|
553
|
-
modelValue: s(o).formData[s(
|
|
554
|
-
"onUpdate:modelValue": m[0] || (m[0] = (f) => s(o).formData[s(
|
|
553
|
+
modelValue: s(o).formData[s(d)],
|
|
554
|
+
"onUpdate:modelValue": m[0] || (m[0] = (f) => s(o).formData[s(d)] = f),
|
|
555
555
|
onChange: p
|
|
556
|
-
},
|
|
557
|
-
W(
|
|
556
|
+
}, i.$attrs), ve({ _: 2 }, [
|
|
557
|
+
W(i.$slots, (f, _) => ({
|
|
558
558
|
name: _,
|
|
559
559
|
fn: g(() => [
|
|
560
|
-
te(
|
|
560
|
+
te(i.$slots, _)
|
|
561
561
|
])
|
|
562
562
|
}))
|
|
563
563
|
]), 1040, ["modelValue"]));
|
|
@@ -638,19 +638,19 @@ function St(e, a, l) {
|
|
|
638
638
|
if (Tl(t)) {
|
|
639
639
|
if (a.__vueShortcutHandler__)
|
|
640
640
|
return;
|
|
641
|
-
const
|
|
641
|
+
const d = (u) => {
|
|
642
642
|
var r;
|
|
643
643
|
let n = !0;
|
|
644
|
-
for (const
|
|
645
|
-
|
|
644
|
+
for (const i of t)
|
|
645
|
+
i === "Ctrl" && !u.ctrlKey && (n = !1), i === "Alt" && !u.altKey && (n = !1), i === "Shift" && !u.shiftKey && (n = !1), i === "Meta" && !u.metaKey && (n = !1);
|
|
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
|
-
l.component ? p = (r = l.component.props) == null ? void 0 : r.disabled : l.props ? p = l.props.disabled : p = a.hasAttribute("disabled"), n && !p && (
|
|
649
|
+
l.component ? p = (r = l.component.props) == null ? void 0 : r.disabled : l.props ? p = l.props.disabled : p = a.hasAttribute("disabled"), n && !p && (u.preventDefault(), e.value ? e.value(a, e, l) : (a.focus(), a.click()));
|
|
650
650
|
};
|
|
651
651
|
Fl({
|
|
652
652
|
keys: e.arg,
|
|
653
|
-
handler:
|
|
653
|
+
handler: d,
|
|
654
654
|
el: a,
|
|
655
655
|
prev: Ne[e.arg]
|
|
656
656
|
});
|
|
@@ -691,9 +691,9 @@ const Pl = (e) => {
|
|
|
691
691
|
}, et = {
|
|
692
692
|
mounted(e, a, l) {
|
|
693
693
|
Pl(e) && St(a, e, l);
|
|
694
|
-
const t = (
|
|
695
|
-
|
|
696
|
-
|
|
694
|
+
const t = (d) => {
|
|
695
|
+
d.forEach((u) => {
|
|
696
|
+
u.isIntersecting ? St(a, e, l) : Tt(e);
|
|
697
697
|
});
|
|
698
698
|
}, o = new IntersectionObserver(t, Ul);
|
|
699
699
|
e.__visibilityObserver__ = o, o.observe(e);
|
|
@@ -708,8 +708,8 @@ function Ft(e, a) {
|
|
|
708
708
|
const la = {
|
|
709
709
|
// 当指令绑定到元素时调用
|
|
710
710
|
mounted(e, a) {
|
|
711
|
-
const l = qt(), { value: t, modifiers: o } = a,
|
|
712
|
-
!
|
|
711
|
+
const l = qt(), { value: t, modifiers: o } = a, d = typeof t == "string" ? t.split(/,/) : t ?? [];
|
|
712
|
+
!d || d.length === 0 || (o.any ? d.some((u) => l.hasRole(u)) || Ft(o, e) : d.every((u) => l.hasRole(u)) || Ft(o, e));
|
|
713
713
|
}
|
|
714
714
|
}, zl = /* @__PURE__ */ z({
|
|
715
715
|
__name: "JaButton",
|
|
@@ -727,27 +727,27 @@ const la = {
|
|
|
727
727
|
const l = h({}), t = e, o = et;
|
|
728
728
|
return a({
|
|
729
729
|
elButton: l
|
|
730
|
-
}), (
|
|
731
|
-
placement:
|
|
730
|
+
}), (d, u) => (b(), $(s(ke), {
|
|
731
|
+
placement: d.tooltipPlacement,
|
|
732
732
|
"append-to": "body"
|
|
733
733
|
}, {
|
|
734
734
|
content: g(() => [
|
|
735
|
-
|
|
735
|
+
G(ae(`${t.tooltip ?? ""} ${t.shortcut ? "(" : ""}${t.shortcut ?? ""}${t.shortcut ? ")" : ""}`), 1)
|
|
736
736
|
]),
|
|
737
737
|
default: g(() => [
|
|
738
|
-
Y((
|
|
738
|
+
Y((b(), $(s(fe), K({
|
|
739
739
|
ref_key: "input",
|
|
740
740
|
ref: l
|
|
741
|
-
},
|
|
742
|
-
W(
|
|
741
|
+
}, d.$attrs), ve({ _: 2 }, [
|
|
742
|
+
W(d.$slots, (n, c) => ({
|
|
743
743
|
name: c,
|
|
744
744
|
fn: g(() => [
|
|
745
|
-
te(
|
|
745
|
+
te(d.$slots, c)
|
|
746
746
|
])
|
|
747
747
|
}))
|
|
748
748
|
]), 1040)), [
|
|
749
|
-
[s(la),
|
|
750
|
-
[s(o), void 0,
|
|
749
|
+
[s(la), d.auth, d.authModifiers],
|
|
750
|
+
[s(o), void 0, d.shortcut]
|
|
751
751
|
])
|
|
752
752
|
]),
|
|
753
753
|
_: 3
|
|
@@ -763,17 +763,17 @@ const la = {
|
|
|
763
763
|
type: { default: "default" }
|
|
764
764
|
},
|
|
765
765
|
setup(e, { expose: a }) {
|
|
766
|
-
const l = h(), t = h(), o = e,
|
|
766
|
+
const l = h(), t = h(), o = e, d = et;
|
|
767
767
|
a({
|
|
768
768
|
elButton: l,
|
|
769
769
|
elDropdown: t
|
|
770
770
|
});
|
|
771
|
-
function
|
|
771
|
+
function u(n) {
|
|
772
772
|
n.focus();
|
|
773
773
|
}
|
|
774
|
-
return (n, c) => (
|
|
774
|
+
return (n, c) => (b(), $(s(ke), { placement: n.tooltipPlacement }, {
|
|
775
775
|
content: g(() => [
|
|
776
|
-
|
|
776
|
+
G(ae(`${o.tooltip ?? ""} ${o.tooltip ? "(" : ""}${o.shortcut ?? ""}${o.tooltip ? ")" : ""}`), 1)
|
|
777
777
|
]),
|
|
778
778
|
default: g(() => [
|
|
779
779
|
w(s(Nt), K({
|
|
@@ -781,16 +781,16 @@ const la = {
|
|
|
781
781
|
ref_key: "dropdown",
|
|
782
782
|
ref: t,
|
|
783
783
|
trigger: "click"
|
|
784
|
-
}, n.$attrs),
|
|
784
|
+
}, n.$attrs), ve({
|
|
785
785
|
default: g(() => [
|
|
786
|
-
Y((
|
|
786
|
+
Y((b(), $(s(fe), K({
|
|
787
787
|
ref_key: "input",
|
|
788
788
|
ref: l,
|
|
789
789
|
type: n.type,
|
|
790
790
|
size: "default"
|
|
791
791
|
}, n.$attrs), {
|
|
792
792
|
default: g(() => [
|
|
793
|
-
|
|
793
|
+
G(ae(o.buttonText) + " ", 1),
|
|
794
794
|
w(s(ce), { class: "el-icon--right" }, {
|
|
795
795
|
default: g(() => [
|
|
796
796
|
w(s(ea))
|
|
@@ -800,7 +800,7 @@ const la = {
|
|
|
800
800
|
]),
|
|
801
801
|
_: 1
|
|
802
802
|
}, 16, ["type"])), [
|
|
803
|
-
[s(
|
|
803
|
+
[s(d), u, n.shortcut]
|
|
804
804
|
])
|
|
805
805
|
]),
|
|
806
806
|
_: 2
|
|
@@ -820,13 +820,13 @@ const la = {
|
|
|
820
820
|
__name: "JaSwitch",
|
|
821
821
|
emits: ["change"],
|
|
822
822
|
setup(e, { expose: a, emit: l }) {
|
|
823
|
-
const t = h(), o = M("aceFormModel"),
|
|
823
|
+
const t = h(), o = M("aceFormModel"), d = M("aceFormItemProp"), u = M("aceFormValidator"), n = l;
|
|
824
824
|
function c(r) {
|
|
825
|
-
|
|
825
|
+
u.removeFieldError(d), re(o.formData, d, p.value), n("change", r);
|
|
826
826
|
}
|
|
827
|
-
const p = h(x(o.formData,
|
|
827
|
+
const p = h(x(o.formData, d));
|
|
828
828
|
return T(() => o.formData, () => {
|
|
829
|
-
p.value = x(o.formData,
|
|
829
|
+
p.value = x(o.formData, d);
|
|
830
830
|
}, {
|
|
831
831
|
deep: !0
|
|
832
832
|
}), a({
|
|
@@ -839,13 +839,13 @@ const la = {
|
|
|
839
839
|
return (r = t.value) == null ? void 0 : r.blur();
|
|
840
840
|
},
|
|
841
841
|
elSwitch: t
|
|
842
|
-
}), (r,
|
|
842
|
+
}), (r, i) => (b(), $(s(Jt), K({
|
|
843
843
|
ref_key: "input",
|
|
844
844
|
ref: t,
|
|
845
845
|
modelValue: p.value,
|
|
846
|
-
"onUpdate:modelValue":
|
|
846
|
+
"onUpdate:modelValue": i[0] || (i[0] = (m) => p.value = m),
|
|
847
847
|
onChange: c
|
|
848
|
-
}, r.$attrs),
|
|
848
|
+
}, r.$attrs), ve({ _: 2 }, [
|
|
849
849
|
W(r.$slots, (m, f) => ({
|
|
850
850
|
name: f,
|
|
851
851
|
fn: g(() => [
|
|
@@ -864,45 +864,45 @@ const la = {
|
|
|
864
864
|
setup(e, { emit: a }) {
|
|
865
865
|
var r;
|
|
866
866
|
const l = e, t = a;
|
|
867
|
-
function o(
|
|
868
|
-
|
|
867
|
+
function o(i) {
|
|
868
|
+
u.value.splice(i, 1);
|
|
869
869
|
}
|
|
870
|
-
function
|
|
871
|
-
|
|
870
|
+
function d() {
|
|
871
|
+
u.value.push({ v: "" });
|
|
872
872
|
}
|
|
873
|
-
const
|
|
873
|
+
const u = h(((r = l.modelValue) == null ? void 0 : r.map((i) => ({ v: i }))) ?? [{
|
|
874
874
|
v: ""
|
|
875
875
|
}]);
|
|
876
876
|
let n = !1, c = !1;
|
|
877
877
|
je(() => p(l.modelValue));
|
|
878
|
-
function p(
|
|
878
|
+
function p(i) {
|
|
879
879
|
if (c) {
|
|
880
880
|
c = !1;
|
|
881
881
|
return;
|
|
882
882
|
}
|
|
883
|
-
n = !0,
|
|
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(() => l.modelValue, (
|
|
886
|
-
p(
|
|
887
|
-
}), T(() =>
|
|
885
|
+
return T(() => l.modelValue, (i) => {
|
|
886
|
+
p(i);
|
|
887
|
+
}), T(() => u.value, () => {
|
|
888
888
|
if (n) {
|
|
889
889
|
n = !1;
|
|
890
890
|
return;
|
|
891
891
|
}
|
|
892
892
|
c = !0;
|
|
893
|
-
const
|
|
894
|
-
t("update:modelValue",
|
|
895
|
-
}, { deep: !0 }), (
|
|
893
|
+
const i = u.value.map((m) => m.v).filter((m) => m && m.length > 0);
|
|
894
|
+
t("update:modelValue", i), t("change", i);
|
|
895
|
+
}, { deep: !0 }), (i, m) => (b(), N("div", Jl, [
|
|
896
896
|
w(s(vt), {
|
|
897
897
|
direction: "vertical",
|
|
898
898
|
style: { "align-items": "stretch", width: "100%" }
|
|
899
899
|
}, {
|
|
900
900
|
default: g(() => [
|
|
901
|
-
(
|
|
901
|
+
(b(!0), N(ne, null, W(u.value, (f, _) => (b(), $(s(we), {
|
|
902
902
|
key: _,
|
|
903
903
|
modelValue: f.v,
|
|
904
904
|
"onUpdate:modelValue": (I) => f.v = I,
|
|
905
|
-
size:
|
|
905
|
+
size: i.size
|
|
906
906
|
}, {
|
|
907
907
|
append: g(() => [
|
|
908
908
|
w(s(ke), {
|
|
@@ -913,7 +913,7 @@ const la = {
|
|
|
913
913
|
var I;
|
|
914
914
|
return [
|
|
915
915
|
Y(j("div", {
|
|
916
|
-
onClick: (
|
|
916
|
+
onClick: (y) => o(_),
|
|
917
917
|
style: { margin: "0 -20px", padding: "0 20px" }
|
|
918
918
|
}, [
|
|
919
919
|
w(s(ce), null, {
|
|
@@ -923,7 +923,7 @@ const la = {
|
|
|
923
923
|
_: 1
|
|
924
924
|
})
|
|
925
925
|
], 8, Ol), [
|
|
926
|
-
[
|
|
926
|
+
[he, _ < (((I = u.value) == null ? void 0 : I.length) ?? 0) - 1]
|
|
927
927
|
])
|
|
928
928
|
];
|
|
929
929
|
}),
|
|
@@ -937,7 +937,7 @@ const la = {
|
|
|
937
937
|
var I;
|
|
938
938
|
return [
|
|
939
939
|
Y(j("div", {
|
|
940
|
-
onClick: m[0] || (m[0] = (
|
|
940
|
+
onClick: m[0] || (m[0] = (y) => d()),
|
|
941
941
|
style: { margin: "0 -20px", padding: "0 20px" }
|
|
942
942
|
}, [
|
|
943
943
|
w(s(ce), null, {
|
|
@@ -947,7 +947,7 @@ const la = {
|
|
|
947
947
|
_: 1
|
|
948
948
|
})
|
|
949
949
|
], 512), [
|
|
950
|
-
[
|
|
950
|
+
[he, _ === (((I = u.value) == null ? void 0 : I.length) ?? 0) - 1]
|
|
951
951
|
])
|
|
952
952
|
];
|
|
953
953
|
}),
|
|
@@ -965,19 +965,19 @@ const la = {
|
|
|
965
965
|
__name: "JaStringList",
|
|
966
966
|
emits: ["change"],
|
|
967
967
|
setup(e, { emit: a }) {
|
|
968
|
-
const l = M("aceFormModel"), t = M("aceFormItemProp"), o = M("aceFormValidator"),
|
|
969
|
-
function
|
|
970
|
-
o.removeFieldError(t), re(l.formData, t, n.value),
|
|
968
|
+
const l = M("aceFormModel"), t = M("aceFormItemProp"), o = M("aceFormValidator"), d = a;
|
|
969
|
+
function u(c) {
|
|
970
|
+
o.removeFieldError(t), re(l.formData, t, n.value), d("change", c);
|
|
971
971
|
}
|
|
972
972
|
const n = h(x(l.formData, t) ?? [""]);
|
|
973
973
|
return T(() => l.formData, () => {
|
|
974
974
|
n.value = x(l.formData, t) ?? [""];
|
|
975
975
|
}, {
|
|
976
976
|
deep: !0
|
|
977
|
-
}), (c, p) => (
|
|
977
|
+
}), (c, p) => (b(), $(oa, K({
|
|
978
978
|
modelValue: n.value,
|
|
979
979
|
"onUpdate:modelValue": p[0] || (p[0] = (r) => n.value = r),
|
|
980
|
-
onChange:
|
|
980
|
+
onChange: u
|
|
981
981
|
}, c.$attrs), null, 16, ["modelValue"]));
|
|
982
982
|
}
|
|
983
983
|
}), xl = R(jl), ql = R(oa), Gl = {
|
|
@@ -995,66 +995,66 @@ const la = {
|
|
|
995
995
|
setup(e, { emit: a }) {
|
|
996
996
|
var r;
|
|
997
997
|
const l = e, t = a;
|
|
998
|
-
function o(
|
|
999
|
-
|
|
998
|
+
function o(i) {
|
|
999
|
+
u.value.splice(i, 1);
|
|
1000
1000
|
}
|
|
1001
|
-
function
|
|
1002
|
-
|
|
1001
|
+
function d() {
|
|
1002
|
+
u.value.push({ v: 0 });
|
|
1003
1003
|
}
|
|
1004
|
-
const
|
|
1004
|
+
const u = h(((r = l.modelValue) == null ? void 0 : r.map((i) => ({ v: i }))) ?? [{
|
|
1005
1005
|
v: 0
|
|
1006
1006
|
}]);
|
|
1007
1007
|
let n = !1, c = !1;
|
|
1008
1008
|
je(() => p(l.modelValue));
|
|
1009
|
-
function p(
|
|
1010
|
-
if (
|
|
1009
|
+
function p(i) {
|
|
1010
|
+
if (i) {
|
|
1011
1011
|
if (c) {
|
|
1012
1012
|
c = !1;
|
|
1013
1013
|
return;
|
|
1014
1014
|
}
|
|
1015
|
-
n = !0,
|
|
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(() => l.modelValue, (
|
|
1019
|
-
p(
|
|
1020
|
-
}), T(() =>
|
|
1018
|
+
return T(() => l.modelValue, (i) => {
|
|
1019
|
+
p(i);
|
|
1020
|
+
}), T(() => u.value, () => {
|
|
1021
1021
|
if (n) {
|
|
1022
1022
|
n = !1;
|
|
1023
1023
|
return;
|
|
1024
1024
|
}
|
|
1025
1025
|
c = !0;
|
|
1026
|
-
const
|
|
1027
|
-
t("update:modelValue",
|
|
1028
|
-
}, { deep: !0 }), (
|
|
1029
|
-
const f =
|
|
1030
|
-
return
|
|
1031
|
-
(
|
|
1026
|
+
const i = u.value.map((m) => m.v);
|
|
1027
|
+
t("update:modelValue", i), t("change", i);
|
|
1028
|
+
}, { deep: !0 }), (i, m) => {
|
|
1029
|
+
const f = ye("el-tooltip");
|
|
1030
|
+
return b(), N("div", Gl, [
|
|
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
1035
|
w(s(Ke), {
|
|
1036
1036
|
modelValue: _.v,
|
|
1037
|
-
"onUpdate:modelValue": (
|
|
1038
|
-
precision:
|
|
1039
|
-
size:
|
|
1040
|
-
step:
|
|
1037
|
+
"onUpdate:modelValue": (y) => _.v = y,
|
|
1038
|
+
precision: i.precision,
|
|
1039
|
+
size: i.size,
|
|
1040
|
+
step: i.step
|
|
1041
1041
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "precision", "size", "step"]),
|
|
1042
1042
|
w(f, {
|
|
1043
1043
|
content: "删除",
|
|
1044
1044
|
placement: "right"
|
|
1045
1045
|
}, {
|
|
1046
1046
|
default: g(() => {
|
|
1047
|
-
var
|
|
1047
|
+
var y;
|
|
1048
1048
|
return [
|
|
1049
1049
|
Y(j("div", Hl, [
|
|
1050
|
-
w(s(
|
|
1050
|
+
w(s(fe), {
|
|
1051
1051
|
link: "",
|
|
1052
1052
|
icon: s(xe),
|
|
1053
1053
|
onClick: (v) => o(I),
|
|
1054
|
-
size:
|
|
1054
|
+
size: i.size
|
|
1055
1055
|
}, null, 8, ["icon", "onClick", "size"])
|
|
1056
1056
|
], 512), [
|
|
1057
|
-
[
|
|
1057
|
+
[he, I < (((y = u.value) == null ? void 0 : y.length) ?? 0) - 1]
|
|
1058
1058
|
])
|
|
1059
1059
|
];
|
|
1060
1060
|
}),
|
|
@@ -1065,17 +1065,17 @@ const la = {
|
|
|
1065
1065
|
placement: "right"
|
|
1066
1066
|
}, {
|
|
1067
1067
|
default: g(() => {
|
|
1068
|
-
var
|
|
1068
|
+
var y;
|
|
1069
1069
|
return [
|
|
1070
1070
|
Y(j("div", Wl, [
|
|
1071
|
-
w(s(
|
|
1072
|
-
onClick: m[0] || (m[0] = (v) =>
|
|
1073
|
-
size:
|
|
1071
|
+
w(s(fe), {
|
|
1072
|
+
onClick: m[0] || (m[0] = (v) => d()),
|
|
1073
|
+
size: i.size,
|
|
1074
1074
|
link: "",
|
|
1075
1075
|
icon: s(Ee)
|
|
1076
1076
|
}, null, 8, ["size", "icon"])
|
|
1077
1077
|
], 512), [
|
|
1078
|
-
[
|
|
1078
|
+
[he, I === (((y = u.value) == null ? void 0 : y.length) ?? 0) - 1]
|
|
1079
1079
|
])
|
|
1080
1080
|
];
|
|
1081
1081
|
}),
|
|
@@ -1085,23 +1085,23 @@ const la = {
|
|
|
1085
1085
|
]);
|
|
1086
1086
|
};
|
|
1087
1087
|
}
|
|
1088
|
-
}), na = /* @__PURE__ */ pe(Kl, [["__scopeId", "data-v-
|
|
1088
|
+
}), na = /* @__PURE__ */ pe(Kl, [["__scopeId", "data-v-a3fae0c2"]]), Yl = /* @__PURE__ */ z({
|
|
1089
1089
|
__name: "JaNumberList",
|
|
1090
1090
|
emits: ["change"],
|
|
1091
1091
|
setup(e, { emit: a }) {
|
|
1092
|
-
const l = M("aceFormModel"), t = M("aceFormItemProp"), o = M("aceFormValidator"),
|
|
1093
|
-
function
|
|
1094
|
-
o.removeFieldError(t), re(l.formData, t, n.value),
|
|
1092
|
+
const l = M("aceFormModel"), t = M("aceFormItemProp"), o = M("aceFormValidator"), d = a;
|
|
1093
|
+
function u(c) {
|
|
1094
|
+
o.removeFieldError(t), re(l.formData, t, n.value), d("change", c);
|
|
1095
1095
|
}
|
|
1096
1096
|
const n = h(x(l.formData, t) ?? [0]);
|
|
1097
1097
|
return T(() => l.formData, () => {
|
|
1098
1098
|
n.value = x(l.formData, t) ?? [0];
|
|
1099
1099
|
}, {
|
|
1100
1100
|
deep: !0
|
|
1101
|
-
}), (c, p) => (
|
|
1101
|
+
}), (c, p) => (b(), $(na, K({
|
|
1102
1102
|
modelValue: n.value,
|
|
1103
1103
|
"onUpdate:modelValue": p[0] || (p[0] = (r) => n.value = r),
|
|
1104
|
-
onChange:
|
|
1104
|
+
onChange: u
|
|
1105
1105
|
}, c.$attrs), null, 16, ["modelValue"]));
|
|
1106
1106
|
}
|
|
1107
1107
|
}), Ql = R(Yl), Xl = R(na), Zl = {
|
|
@@ -1118,48 +1118,48 @@ const la = {
|
|
|
1118
1118
|
setup(e, { emit: a }) {
|
|
1119
1119
|
var r;
|
|
1120
1120
|
const l = e, t = a;
|
|
1121
|
-
function o(
|
|
1122
|
-
|
|
1121
|
+
function o(i) {
|
|
1122
|
+
u.value.splice(i, 1);
|
|
1123
1123
|
}
|
|
1124
|
-
function
|
|
1125
|
-
|
|
1124
|
+
function d() {
|
|
1125
|
+
u.value.push({ v: "" });
|
|
1126
1126
|
}
|
|
1127
|
-
const
|
|
1127
|
+
const u = h(((r = l.modelValue) == null ? void 0 : r.map((i) => ({ v: i }))) ?? [{
|
|
1128
1128
|
v: ""
|
|
1129
1129
|
}]);
|
|
1130
1130
|
let n = !1, c = !1;
|
|
1131
1131
|
je(() => p(l.modelValue));
|
|
1132
|
-
function p(
|
|
1132
|
+
function p(i) {
|
|
1133
1133
|
if (c) {
|
|
1134
1134
|
c = !1;
|
|
1135
1135
|
return;
|
|
1136
1136
|
}
|
|
1137
|
-
n = !0,
|
|
1137
|
+
n = !0, u.value = i.map((m) => ({ v: m })), u.value.length == 0 && u.value.push({ v: "" });
|
|
1138
1138
|
}
|
|
1139
|
-
return T(() => l.modelValue, (
|
|
1140
|
-
p(
|
|
1141
|
-
}), T(() =>
|
|
1139
|
+
return T(() => l.modelValue, (i) => {
|
|
1140
|
+
p(i);
|
|
1141
|
+
}), T(() => u.value, () => {
|
|
1142
1142
|
if (n) {
|
|
1143
1143
|
n = !1;
|
|
1144
1144
|
return;
|
|
1145
1145
|
}
|
|
1146
1146
|
c = !0;
|
|
1147
|
-
const
|
|
1148
|
-
t("update:modelValue",
|
|
1149
|
-
}, { deep: !0 }), (
|
|
1150
|
-
const f =
|
|
1151
|
-
return
|
|
1152
|
-
(
|
|
1147
|
+
const i = u.value.map((m) => m.v).filter((m) => m && m.length > 0);
|
|
1148
|
+
t("update:modelValue", i), t("change", i);
|
|
1149
|
+
}, { deep: !0 }), (i, m) => {
|
|
1150
|
+
const f = ye("el-option"), _ = ye("el-tooltip");
|
|
1151
|
+
return b(), N("div", Zl, [
|
|
1152
|
+
(b(!0), N(ne, null, W(u.value, (I, y) => (b(), N("div", {
|
|
1153
1153
|
class: "ja-input-box",
|
|
1154
|
-
key:
|
|
1154
|
+
key: y
|
|
1155
1155
|
}, [
|
|
1156
1156
|
w(s(Ae), {
|
|
1157
1157
|
modelValue: I.v,
|
|
1158
1158
|
"onUpdate:modelValue": (v) => I.v = v,
|
|
1159
|
-
size:
|
|
1159
|
+
size: i.size
|
|
1160
1160
|
}, {
|
|
1161
1161
|
default: g(() => [
|
|
1162
|
-
(
|
|
1162
|
+
(b(!0), N(ne, null, W(Object.keys(l.enumValues), (v) => (b(), $(f, {
|
|
1163
1163
|
key: v,
|
|
1164
1164
|
label: v,
|
|
1165
1165
|
value: l.enumValues[v]
|
|
@@ -1175,14 +1175,14 @@ const la = {
|
|
|
1175
1175
|
var v;
|
|
1176
1176
|
return [
|
|
1177
1177
|
Y(j("div", eo, [
|
|
1178
|
-
w(s(
|
|
1178
|
+
w(s(fe), {
|
|
1179
1179
|
link: "",
|
|
1180
1180
|
icon: s(xe),
|
|
1181
|
-
onClick: (S) => o(
|
|
1182
|
-
size:
|
|
1181
|
+
onClick: (S) => o(y),
|
|
1182
|
+
size: i.size
|
|
1183
1183
|
}, null, 8, ["icon", "onClick", "size"])
|
|
1184
1184
|
], 512), [
|
|
1185
|
-
[
|
|
1185
|
+
[he, y < (((v = u.value) == null ? void 0 : v.length) ?? 0) - 1]
|
|
1186
1186
|
])
|
|
1187
1187
|
];
|
|
1188
1188
|
}),
|
|
@@ -1196,14 +1196,14 @@ const la = {
|
|
|
1196
1196
|
var v;
|
|
1197
1197
|
return [
|
|
1198
1198
|
Y(j("div", to, [
|
|
1199
|
-
w(s(
|
|
1200
|
-
onClick: m[0] || (m[0] = (S) =>
|
|
1201
|
-
size:
|
|
1199
|
+
w(s(fe), {
|
|
1200
|
+
onClick: m[0] || (m[0] = (S) => d()),
|
|
1201
|
+
size: i.size,
|
|
1202
1202
|
link: "",
|
|
1203
1203
|
icon: s(Ee)
|
|
1204
1204
|
}, null, 8, ["size", "icon"])
|
|
1205
1205
|
], 512), [
|
|
1206
|
-
[
|
|
1206
|
+
[he, y === (((v = u.value) == null ? void 0 : v.length) ?? 0) - 1]
|
|
1207
1207
|
])
|
|
1208
1208
|
];
|
|
1209
1209
|
}),
|
|
@@ -1213,27 +1213,27 @@ const la = {
|
|
|
1213
1213
|
]);
|
|
1214
1214
|
};
|
|
1215
1215
|
}
|
|
1216
|
-
}), ra = /* @__PURE__ */ pe(ao, [["__scopeId", "data-v-
|
|
1216
|
+
}), ra = /* @__PURE__ */ pe(ao, [["__scopeId", "data-v-49923459"]]), lo = /* @__PURE__ */ z({
|
|
1217
1217
|
__name: "JaEnumList",
|
|
1218
1218
|
props: {
|
|
1219
1219
|
enumValues: {}
|
|
1220
1220
|
},
|
|
1221
1221
|
emits: ["change"],
|
|
1222
1222
|
setup(e, { emit: a }) {
|
|
1223
|
-
const l = M("aceFormModel"), t = M("aceFormItemProp"), o = M("aceFormValidator"),
|
|
1224
|
-
function
|
|
1225
|
-
o.removeFieldError(t), re(l.formData, t, n.value),
|
|
1223
|
+
const l = M("aceFormModel"), t = M("aceFormItemProp"), o = M("aceFormValidator"), d = a;
|
|
1224
|
+
function u(c) {
|
|
1225
|
+
o.removeFieldError(t), re(l.formData, t, n.value), d("change", c);
|
|
1226
1226
|
}
|
|
1227
1227
|
const n = h(x(l.formData, t) ?? [""]);
|
|
1228
1228
|
return T(() => l.formData, () => {
|
|
1229
1229
|
n.value = x(l.formData, t) ?? [""];
|
|
1230
1230
|
}, {
|
|
1231
1231
|
deep: !0
|
|
1232
|
-
}), (c, p) => (
|
|
1232
|
+
}), (c, p) => (b(), $(ra, 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
|
-
onChange:
|
|
1236
|
+
onChange: u
|
|
1237
1237
|
}, c.$attrs), null, 16, ["modelValue", "enum-values"]));
|
|
1238
1238
|
}
|
|
1239
1239
|
}), oo = R(lo), no = R(ra), ro = {
|
|
@@ -1252,15 +1252,15 @@ const la = {
|
|
|
1252
1252
|
const l = e, t = a;
|
|
1253
1253
|
function o(f) {
|
|
1254
1254
|
var _;
|
|
1255
|
-
(_ =
|
|
1255
|
+
(_ = u.value) == null || _.splice(f, 1);
|
|
1256
1256
|
}
|
|
1257
|
-
function
|
|
1257
|
+
function d() {
|
|
1258
1258
|
var f;
|
|
1259
|
-
(f =
|
|
1259
|
+
(f = u.value) == null || f.push({ k: "" });
|
|
1260
1260
|
}
|
|
1261
|
-
const
|
|
1261
|
+
const u = h([]);
|
|
1262
1262
|
let n = !1, c = !1, p = h(), r = h({});
|
|
1263
|
-
function
|
|
1263
|
+
function i() {
|
|
1264
1264
|
switch (console.log("map item value comp type:", l.valueType), l.valueType) {
|
|
1265
1265
|
case "String":
|
|
1266
1266
|
p.value = we, r.value = {};
|
|
@@ -1294,7 +1294,7 @@ const la = {
|
|
|
1294
1294
|
}
|
|
1295
1295
|
}
|
|
1296
1296
|
je(() => {
|
|
1297
|
-
m(l.modelValue),
|
|
1297
|
+
m(l.modelValue), i();
|
|
1298
1298
|
});
|
|
1299
1299
|
function m(f) {
|
|
1300
1300
|
if (c) {
|
|
@@ -1304,29 +1304,29 @@ const la = {
|
|
|
1304
1304
|
if (f) {
|
|
1305
1305
|
n = !0;
|
|
1306
1306
|
const _ = Object.keys(f);
|
|
1307
|
-
|
|
1307
|
+
u.value = _.map((I) => ({ k: I, v: f[I] })), u.value.length == 0 && u.value.push({ k: "" });
|
|
1308
1308
|
} else
|
|
1309
|
-
|
|
1309
|
+
u.value = [{ k: "" }];
|
|
1310
1310
|
}
|
|
1311
1311
|
return T(() => l.modelValue, (f) => {
|
|
1312
1312
|
m(f);
|
|
1313
1313
|
}, {
|
|
1314
1314
|
deep: !0
|
|
1315
|
-
}), T(() =>
|
|
1315
|
+
}), T(() => u.value, () => {
|
|
1316
1316
|
var _;
|
|
1317
1317
|
if (n) {
|
|
1318
1318
|
n = !1;
|
|
1319
1319
|
return;
|
|
1320
1320
|
}
|
|
1321
1321
|
c = !0;
|
|
1322
|
-
const f = (_ =
|
|
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
1324
|
}, { deep: !0 }), T(() => l.valueType, () => {
|
|
1325
|
-
|
|
1325
|
+
i();
|
|
1326
1326
|
}), (f, _) => {
|
|
1327
|
-
const I =
|
|
1328
|
-
return
|
|
1329
|
-
(
|
|
1327
|
+
const I = ye("el-text"), y = ye("el-option"), v = ye("el-tooltip");
|
|
1328
|
+
return b(), N("div", ro, [
|
|
1329
|
+
(b(!0), N(ne, null, W(u.value, (S, P) => (b(), N("div", {
|
|
1330
1330
|
class: "ja-input-box",
|
|
1331
1331
|
key: P
|
|
1332
1332
|
}, [
|
|
@@ -1339,20 +1339,20 @@ const la = {
|
|
|
1339
1339
|
j("div", so, [
|
|
1340
1340
|
w(I, null, {
|
|
1341
1341
|
default: g(() => _[1] || (_[1] = [
|
|
1342
|
-
|
|
1342
|
+
G(":")
|
|
1343
1343
|
])),
|
|
1344
1344
|
_: 1,
|
|
1345
1345
|
__: [1]
|
|
1346
1346
|
})
|
|
1347
1347
|
]),
|
|
1348
|
-
(
|
|
1348
|
+
(b(), $(Ba(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
|
-
l.valueType == "Enum" ? (
|
|
1355
|
+
l.valueType == "Enum" ? (b(!0), N(ne, { key: 0 }, W(Object.keys(l.enumValues ?? {}), (k) => (b(), $(y, {
|
|
1356
1356
|
key: k,
|
|
1357
1357
|
label: k,
|
|
1358
1358
|
value: l.enumValues ? l.enumValues[k] : ""
|
|
@@ -1368,14 +1368,14 @@ const la = {
|
|
|
1368
1368
|
var k;
|
|
1369
1369
|
return [
|
|
1370
1370
|
Y(j("div", uo, [
|
|
1371
|
-
w(s(
|
|
1371
|
+
w(s(fe), {
|
|
1372
1372
|
link: "",
|
|
1373
1373
|
icon: s(xe),
|
|
1374
1374
|
onClick: (C) => o(P),
|
|
1375
1375
|
size: f.size
|
|
1376
1376
|
}, null, 8, ["icon", "onClick", "size"])
|
|
1377
1377
|
], 512), [
|
|
1378
|
-
[
|
|
1378
|
+
[he, P < (((k = u.value) == null ? void 0 : k.length) ?? 0) - 1]
|
|
1379
1379
|
])
|
|
1380
1380
|
];
|
|
1381
1381
|
}),
|
|
@@ -1389,14 +1389,14 @@ const la = {
|
|
|
1389
1389
|
var k;
|
|
1390
1390
|
return [
|
|
1391
1391
|
Y(j("div", io, [
|
|
1392
|
-
w(s(
|
|
1393
|
-
onClick: _[0] || (_[0] = (C) =>
|
|
1392
|
+
w(s(fe), {
|
|
1393
|
+
onClick: _[0] || (_[0] = (C) => d()),
|
|
1394
1394
|
size: f.size,
|
|
1395
1395
|
link: "",
|
|
1396
1396
|
icon: s(Ee)
|
|
1397
1397
|
}, null, 8, ["size", "icon"])
|
|
1398
1398
|
], 512), [
|
|
1399
|
-
[
|
|
1399
|
+
[he, P === (((k = u.value) == null ? void 0 : k.length) ?? 0) - 1]
|
|
1400
1400
|
])
|
|
1401
1401
|
];
|
|
1402
1402
|
}),
|
|
@@ -1406,21 +1406,21 @@ const la = {
|
|
|
1406
1406
|
]);
|
|
1407
1407
|
};
|
|
1408
1408
|
}
|
|
1409
|
-
}), sa = /* @__PURE__ */ pe(co, [["__scopeId", "data-v-
|
|
1409
|
+
}), sa = /* @__PURE__ */ pe(co, [["__scopeId", "data-v-bebb510c"]]), po = /* @__PURE__ */ z({
|
|
1410
1410
|
__name: "JaMapItemList",
|
|
1411
1411
|
emits: ["change"],
|
|
1412
1412
|
setup(e, { emit: a }) {
|
|
1413
|
-
const l = M("aceFormModel"), t = M("aceFormItemProp"), o = M("aceFormValidator"),
|
|
1414
|
-
function
|
|
1415
|
-
o.removeFieldError(t), re(l.formData, t, n.value),
|
|
1413
|
+
const l = M("aceFormModel"), t = M("aceFormItemProp"), o = M("aceFormValidator"), d = a;
|
|
1414
|
+
function u(c) {
|
|
1415
|
+
o.removeFieldError(t), re(l.formData, t, n.value), d("change", c);
|
|
1416
1416
|
}
|
|
1417
1417
|
const n = h(x(l.formData, t) ?? { "": "" });
|
|
1418
1418
|
return T(() => l.formData, () => {
|
|
1419
1419
|
n.value = x(l.formData, t) ?? { "": "" };
|
|
1420
|
-
}), (c, p) => (
|
|
1420
|
+
}), (c, p) => (b(), $(sa, K({
|
|
1421
1421
|
modelValue: n.value,
|
|
1422
1422
|
"onUpdate:modelValue": p[0] || (p[0] = (r) => n.value = r),
|
|
1423
|
-
onChange:
|
|
1423
|
+
onChange: u
|
|
1424
1424
|
}, c.$attrs), null, 16, ["modelValue"]));
|
|
1425
1425
|
}
|
|
1426
1426
|
}), mo = R(po), fo = R(sa);
|
|
@@ -1434,8 +1434,8 @@ function vo(e, a) {
|
|
|
1434
1434
|
function Pe(e, a) {
|
|
1435
1435
|
const l = {}, t = [];
|
|
1436
1436
|
for (let o = 0; o < e.length; o++) {
|
|
1437
|
-
const
|
|
1438
|
-
l[
|
|
1437
|
+
const d = e[o], u = vo(d, a);
|
|
1438
|
+
l[d.id] = u, d.parentId ? l[d.parentId].children.push(u) : t.push(u);
|
|
1439
1439
|
}
|
|
1440
1440
|
return t;
|
|
1441
1441
|
}
|
|
@@ -1454,10 +1454,10 @@ const bt = "-1", ua = "-100", go = /* @__PURE__ */ z({
|
|
|
1454
1454
|
}),
|
|
1455
1455
|
emits: /* @__PURE__ */ Q(["change"], ["update:modelValue"]),
|
|
1456
1456
|
setup(e, { emit: a }) {
|
|
1457
|
-
const l = le(), t = Gt(l), o = e,
|
|
1458
|
-
if (o.multiple && !Array.isArray(
|
|
1457
|
+
const l = le(), t = Gt(l), o = e, d = a, u = ue(e, "modelValue");
|
|
1458
|
+
if (o.multiple && !Array.isArray(u.value))
|
|
1459
1459
|
throw new Error("部门选择器设置multiple为true,但是绑定的v-model值是单值");
|
|
1460
|
-
if (!o.multiple && Array.isArray(
|
|
1460
|
+
if (!o.multiple && Array.isArray(u.value))
|
|
1461
1461
|
throw new Error("部门选择器未设置multiple为true,但是绑定的v-model值是数组");
|
|
1462
1462
|
const n = Oe({
|
|
1463
1463
|
department: []
|
|
@@ -1475,23 +1475,23 @@ const bt = "-1", ua = "-100", go = /* @__PURE__ */ z({
|
|
|
1475
1475
|
});
|
|
1476
1476
|
});
|
|
1477
1477
|
}, p = (r) => {
|
|
1478
|
-
|
|
1478
|
+
d("change", Array.isArray(r) ? n.department.filter((i) => r.findIndex((m) => i.id === m) >= 0) : n.department.find((i) => i.id === r));
|
|
1479
1479
|
};
|
|
1480
1480
|
return c(), T(
|
|
1481
1481
|
() => o.realmId,
|
|
1482
1482
|
() => {
|
|
1483
1483
|
c();
|
|
1484
1484
|
}
|
|
1485
|
-
), (r,
|
|
1485
|
+
), (r, i) => (b(), $(s(gt), K({
|
|
1486
1486
|
style: { width: "100%" },
|
|
1487
1487
|
data: n.department,
|
|
1488
1488
|
size: o.size,
|
|
1489
1489
|
"node-key": "id",
|
|
1490
1490
|
"check-strictly": "",
|
|
1491
|
-
"current-node-key":
|
|
1491
|
+
"current-node-key": u.value,
|
|
1492
1492
|
"highlight-current": "",
|
|
1493
|
-
modelValue:
|
|
1494
|
-
"onUpdate:modelValue":
|
|
1493
|
+
modelValue: u.value,
|
|
1494
|
+
"onUpdate:modelValue": i[0] || (i[0] = (m) => u.value = m),
|
|
1495
1495
|
multiple: r.multiple,
|
|
1496
1496
|
onChange: p
|
|
1497
1497
|
}, r.$attrs, {
|
|
@@ -1532,11 +1532,11 @@ 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 a = e, l = da(), t = h(!1), o = h(),
|
|
1535
|
+
const a = e, l = da(), t = h(!1), o = h(), d = h();
|
|
1536
1536
|
t.value = !0, Qe(async () => {
|
|
1537
1537
|
await Ie();
|
|
1538
1538
|
});
|
|
1539
|
-
const
|
|
1539
|
+
const u = ge(
|
|
1540
1540
|
() => {
|
|
1541
1541
|
if (!(t.value && a.hasAvatar && !a.doNotLoadAvatar))
|
|
1542
1542
|
return a.firstName ? "" : lt;
|
|
@@ -1552,24 +1552,24 @@ c-58 -10 -181 -38 -275 -61 -807 -204 -1528 -616 -2120 -1210 -726 -728 -1170
|
|
|
1552
1552
|
}
|
|
1553
1553
|
);
|
|
1554
1554
|
function n(c) {
|
|
1555
|
-
var
|
|
1555
|
+
var i;
|
|
1556
1556
|
if (!c) return;
|
|
1557
|
-
let r = ((
|
|
1557
|
+
let r = ((i = o.value) == null ? void 0 : i.$el.clientWidth) / 2.8;
|
|
1558
1558
|
c.style.fontSize = r + "px";
|
|
1559
1559
|
}
|
|
1560
1560
|
return $e(() => {
|
|
1561
|
-
}), T(
|
|
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
|
-
a.firstName && a.firstName.length > 0 ? (
|
|
1567
|
+
a.firstName && a.firstName.length > 0 ? (b(), N("span", {
|
|
1568
1568
|
key: 0,
|
|
1569
1569
|
class: "user-name-avatar",
|
|
1570
1570
|
ref_key: "usernameSpan",
|
|
1571
|
-
ref:
|
|
1572
|
-
}, ae(c.firstName), 513)) : (
|
|
1571
|
+
ref: d
|
|
1572
|
+
}, ae(c.firstName), 513)) : (b(), $(s(Oa), {
|
|
1573
1573
|
key: 1,
|
|
1574
1574
|
style: { height: "100%" },
|
|
1575
1575
|
src: s(lt),
|
|
@@ -1579,7 +1579,7 @@ c-58 -10 -181 -38 -275 -61 -807 -204 -1528 -616 -2120 -1210 -726 -728 -1170
|
|
|
1579
1579
|
_: 1
|
|
1580
1580
|
}, 16, ["src"]));
|
|
1581
1581
|
}
|
|
1582
|
-
}), wo = /* @__PURE__ */ pe(bo, [["__scopeId", "data-v-
|
|
1582
|
+
}), wo = /* @__PURE__ */ pe(bo, [["__scopeId", "data-v-575c2d3a"]]), it = R(wo);
|
|
1583
1583
|
let ot;
|
|
1584
1584
|
function _o() {
|
|
1585
1585
|
return ot || (ot = le()), ot;
|
|
@@ -1613,31 +1613,31 @@ 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
|
|
1616
|
+
let d = _o(), u = _e(d), n = ht(d);
|
|
1617
1617
|
const c = h(!1), p = h(!1), r = a;
|
|
1618
1618
|
$e(() => {
|
|
1619
|
-
|
|
1619
|
+
d = void 0, u = void 0, n = void 0;
|
|
1620
1620
|
});
|
|
1621
|
-
function
|
|
1621
|
+
function i() {
|
|
1622
1622
|
if (!o.value)
|
|
1623
1623
|
if (t.userId)
|
|
1624
|
-
n == null || n.getById(t.userId).then((
|
|
1625
|
-
o.value =
|
|
1624
|
+
n == null || n.getById(t.userId).then((y) => {
|
|
1625
|
+
o.value = y, m();
|
|
1626
1626
|
});
|
|
1627
1627
|
else if (t.username && t.realm) {
|
|
1628
|
-
let
|
|
1629
|
-
if (
|
|
1630
|
-
const v =
|
|
1631
|
-
|
|
1628
|
+
let y = t.username;
|
|
1629
|
+
if (y.indexOf("\\") >= 0) {
|
|
1630
|
+
const v = y.split("\\");
|
|
1631
|
+
y = v[v.length - 1];
|
|
1632
1632
|
}
|
|
1633
|
-
n == null || n.getByUserName(t.realm,
|
|
1633
|
+
n == null || n.getByUserName(t.realm, y).then((v) => {
|
|
1634
1634
|
o.value = v, m();
|
|
1635
1635
|
});
|
|
1636
1636
|
} else
|
|
1637
1637
|
throw new Error("user-info-tag组件的userId和(realm, userName)属性不能都为空");
|
|
1638
1638
|
}
|
|
1639
1639
|
function m() {
|
|
1640
|
-
o.value && (n == null || n.checkBookmarked(o.value.id).then((
|
|
1640
|
+
o.value && (n == null || n.checkBookmarked(o.value.id).then((y) => c.value = y));
|
|
1641
1641
|
}
|
|
1642
1642
|
function f() {
|
|
1643
1643
|
p.value = !1, r("closed", t.userId, t.realm, t.username);
|
|
@@ -1648,11 +1648,11 @@ 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 (
|
|
1651
|
+
return (y, v) => (b(), $(s(Ot), {
|
|
1652
1652
|
width: "auto",
|
|
1653
1653
|
"hide-after": 200,
|
|
1654
|
-
onBeforeEnter:
|
|
1655
|
-
placement:
|
|
1654
|
+
onBeforeEnter: i,
|
|
1655
|
+
placement: y.placement,
|
|
1656
1656
|
visible: p.value,
|
|
1657
1657
|
"onUpdate:visible": v[3] || (v[3] = (S) => p.value = S)
|
|
1658
1658
|
}, {
|
|
@@ -1663,15 +1663,15 @@ const ko = { class: "portrait" }, Vo = { class: "user-info" }, Io = { class: "dr
|
|
|
1663
1663
|
j("div", ko, [
|
|
1664
1664
|
w(s(it), {
|
|
1665
1665
|
size: 24,
|
|
1666
|
-
"user-id":
|
|
1667
|
-
realm:
|
|
1668
|
-
username:
|
|
1666
|
+
"user-id": y.userId,
|
|
1667
|
+
realm: y.realm,
|
|
1668
|
+
username: y.username,
|
|
1669
1669
|
"has-avatar": !1
|
|
1670
1670
|
}, null, 8, ["user-id", "realm", "username"])
|
|
1671
1671
|
]),
|
|
1672
1672
|
j("div", Vo, [
|
|
1673
|
-
|
|
1674
|
-
|
|
1673
|
+
G(ae(y.fullName) + " ", 1),
|
|
1674
|
+
y.closable ? (b(), N("div", {
|
|
1675
1675
|
key: 0,
|
|
1676
1676
|
class: "close-btn",
|
|
1677
1677
|
onClick: v[0] || (v[0] = (S) => f())
|
|
@@ -1687,14 +1687,14 @@ const ko = { class: "portrait" }, Vo = { class: "user-info" }, Io = { class: "dr
|
|
|
1687
1687
|
], 2)
|
|
1688
1688
|
]),
|
|
1689
1689
|
default: g(() => {
|
|
1690
|
-
var S, P, k, C, F, q,
|
|
1690
|
+
var S, P, k, C, F, q, Z;
|
|
1691
1691
|
return [
|
|
1692
|
-
Y((
|
|
1692
|
+
Y((b(), N("div", Io, [
|
|
1693
1693
|
j("div", Co, [
|
|
1694
1694
|
w(s(it), {
|
|
1695
|
-
"user-id":
|
|
1696
|
-
realm:
|
|
1697
|
-
username:
|
|
1695
|
+
"user-id": y.userId,
|
|
1696
|
+
realm: y.realm,
|
|
1697
|
+
username: y.username,
|
|
1698
1698
|
size: 75,
|
|
1699
1699
|
"has-avatar": (S = o.value) == null ? void 0 : S.hasAvatar,
|
|
1700
1700
|
style: { "margin-bottom": "8px" }
|
|
@@ -1704,19 +1704,19 @@ const ko = { class: "portrait" }, Vo = { class: "user-info" }, Io = { class: "dr
|
|
|
1704
1704
|
content: c.value ? "取消常用人员" : "设置为常用人员"
|
|
1705
1705
|
}, {
|
|
1706
1706
|
default: g(() => [
|
|
1707
|
-
c.value ? (
|
|
1707
|
+
c.value ? (b(), $(s(ce), {
|
|
1708
1708
|
key: 1,
|
|
1709
1709
|
color: "#FFBF29",
|
|
1710
|
-
onClick: v[2] || (v[2] = (
|
|
1710
|
+
onClick: v[2] || (v[2] = (H) => I()),
|
|
1711
1711
|
size: 16
|
|
1712
1712
|
}, {
|
|
1713
1713
|
default: g(() => [
|
|
1714
1714
|
w(s(ta))
|
|
1715
1715
|
]),
|
|
1716
1716
|
_: 1
|
|
1717
|
-
})) : (
|
|
1717
|
+
})) : (b(), $(s(ce), {
|
|
1718
1718
|
key: 0,
|
|
1719
|
-
onClick: v[1] || (v[1] = (
|
|
1719
|
+
onClick: v[1] || (v[1] = (H) => _()),
|
|
1720
1720
|
size: 16
|
|
1721
1721
|
}, {
|
|
1722
1722
|
default: g(() => [
|
|
@@ -1730,26 +1730,26 @@ const ko = { class: "portrait" }, Vo = { class: "user-info" }, Io = { class: "dr
|
|
|
1730
1730
|
])
|
|
1731
1731
|
]),
|
|
1732
1732
|
j("div", null, [
|
|
1733
|
-
j("p", Ao, ae(
|
|
1733
|
+
j("p", Ao, ae(y.fullName), 1),
|
|
1734
1734
|
j("p", Do, " @" + ae(((k = (P = o.value) == null ? void 0 : P.department) == null ? void 0 : k.name) ?? "无归属部门"), 1)
|
|
1735
1735
|
]),
|
|
1736
1736
|
j("p", Eo, [
|
|
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)),
|
|
1740
1740
|
v[6] || (v[6] = j("span", { class: "label" }, "邮箱:", -1)),
|
|
1741
|
-
|
|
1741
|
+
G(" " + ae(!((q = o.value) != null && q.email) || o.value.email.length === 0 ? "(未填写邮箱号)" : (Z = o.value) == null ? void 0 : Z.email), 1)
|
|
1742
1742
|
])
|
|
1743
1743
|
])), [
|
|
1744
|
-
[
|
|
1745
|
-
[s(De), !!s(
|
|
1744
|
+
[he, p.value],
|
|
1745
|
+
[s(De), !!s(u)]
|
|
1746
1746
|
])
|
|
1747
1747
|
];
|
|
1748
1748
|
}),
|
|
1749
1749
|
_: 1
|
|
1750
1750
|
}, 8, ["placement", "visible"]));
|
|
1751
1751
|
}
|
|
1752
|
-
}), To = /* @__PURE__ */ pe(So, [["__scopeId", "data-v-
|
|
1752
|
+
}), To = /* @__PURE__ */ pe(So, [["__scopeId", "data-v-51ad1216"]]), tt = R(To);
|
|
1753
1753
|
function Ye(e) {
|
|
1754
1754
|
var a = typeof e;
|
|
1755
1755
|
return e != null && (a == "object" || a == "function");
|
|
@@ -1810,49 +1810,49 @@ function Ut(e) {
|
|
|
1810
1810
|
}
|
|
1811
1811
|
var Xo = "Expected a function", Zo = Math.max, en = Math.min;
|
|
1812
1812
|
function wt(e, a, l) {
|
|
1813
|
-
var t, o,
|
|
1813
|
+
var t, o, d, u, n, c, p = 0, r = !1, i = !1, m = !0;
|
|
1814
1814
|
if (typeof e != "function")
|
|
1815
1815
|
throw new TypeError(Xo);
|
|
1816
|
-
a = Ut(a) || 0, Ye(l) && (r = !!l.leading,
|
|
1816
|
+
a = Ut(a) || 0, Ye(l) && (r = !!l.leading, i = "maxWait" in l, d = i ? Zo(Ut(l.maxWait) || 0, a) : d, m = "trailing" in l ? !!l.trailing : m);
|
|
1817
1817
|
function f(F) {
|
|
1818
|
-
var q = t,
|
|
1819
|
-
return t = o = void 0, p = F,
|
|
1818
|
+
var q = t, Z = o;
|
|
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, a), r ? f(F) :
|
|
1822
|
+
return p = F, n = setTimeout(v, a), r ? f(F) : u;
|
|
1823
1823
|
}
|
|
1824
1824
|
function I(F) {
|
|
1825
|
-
var q = F - c,
|
|
1826
|
-
return
|
|
1825
|
+
var q = F - c, Z = F - p, H = a - q;
|
|
1826
|
+
return i ? en(H, d - Z) : H;
|
|
1827
1827
|
}
|
|
1828
|
-
function
|
|
1829
|
-
var q = F - c,
|
|
1830
|
-
return c === void 0 || q >= a || q < 0 ||
|
|
1828
|
+
function y(F) {
|
|
1829
|
+
var q = F - c, Z = F - p;
|
|
1830
|
+
return c === void 0 || q >= a || q < 0 || i && Z >= d;
|
|
1831
1831
|
}
|
|
1832
1832
|
function v() {
|
|
1833
1833
|
var F = nt();
|
|
1834
|
-
if (
|
|
1834
|
+
if (y(F))
|
|
1835
1835
|
return S(F);
|
|
1836
1836
|
n = setTimeout(v, I(F));
|
|
1837
1837
|
}
|
|
1838
1838
|
function S(F) {
|
|
1839
|
-
return n = void 0, m && t ? f(F) : (t = o = void 0,
|
|
1839
|
+
return n = void 0, m && t ? f(F) : (t = o = void 0, u);
|
|
1840
1840
|
}
|
|
1841
1841
|
function P() {
|
|
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 ?
|
|
1845
|
+
return n === void 0 ? u : S(nt());
|
|
1846
1846
|
}
|
|
1847
1847
|
function C() {
|
|
1848
|
-
var F = nt(), q =
|
|
1848
|
+
var F = nt(), q = y(F);
|
|
1849
1849
|
if (t = arguments, o = this, c = F, q) {
|
|
1850
1850
|
if (n === void 0)
|
|
1851
1851
|
return _(c);
|
|
1852
|
-
if (
|
|
1852
|
+
if (i)
|
|
1853
1853
|
return clearTimeout(n), n = setTimeout(v, a), f(c);
|
|
1854
1854
|
}
|
|
1855
|
-
return n === void 0 && (n = setTimeout(v, a)),
|
|
1855
|
+
return n === void 0 && (n = setTimeout(v, a)), u;
|
|
1856
1856
|
}
|
|
1857
1857
|
return C.cancel = P, C.flush = k, C;
|
|
1858
1858
|
}
|
|
@@ -1869,8 +1869,8 @@ function _t() {
|
|
|
1869
1869
|
getDefaultRealm: async () => (await a(), Ge.value.find((t) => t.name === "ace-platform"))
|
|
1870
1870
|
};
|
|
1871
1871
|
}
|
|
1872
|
-
function va(e, a, l, t, o,
|
|
1873
|
-
const
|
|
1872
|
+
function va(e, a, l, t, o, d) {
|
|
1873
|
+
const u = h({}), n = h({
|
|
1874
1874
|
currentPage: 1,
|
|
1875
1875
|
pageSize: 50
|
|
1876
1876
|
}), c = h({
|
|
@@ -1878,63 +1878,65 @@ function va(e, a, l, t, o, u) {
|
|
|
1878
1878
|
users: []
|
|
1879
1879
|
});
|
|
1880
1880
|
o || (o = le());
|
|
1881
|
-
const p = ht(o), r = _e(o),
|
|
1881
|
+
const p = ht(o), r = _e(o), i = h(!1);
|
|
1882
1882
|
function m() {
|
|
1883
|
-
I().then((
|
|
1884
|
-
l && l(
|
|
1883
|
+
I().then((y) => {
|
|
1884
|
+
l && l(y, i.value), i.value = !1;
|
|
1885
1885
|
});
|
|
1886
1886
|
}
|
|
1887
1887
|
const f = wt(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
|
}
|
|
1891
|
-
T(
|
|
1892
|
-
|
|
1891
|
+
T(u, () => {
|
|
1892
|
+
i.value = !0, _();
|
|
1893
1893
|
}, {
|
|
1894
1894
|
deep: !0
|
|
1895
1895
|
}), T(() => n.value.pageSize, () => {
|
|
1896
|
-
|
|
1896
|
+
i.value = !0, _();
|
|
1897
1897
|
}), T(() => n.value.currentPage, () => {
|
|
1898
|
-
I().then((
|
|
1899
|
-
l && l(
|
|
1898
|
+
I().then((y) => {
|
|
1899
|
+
l && l(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
|
-
if (!
|
|
1906
|
-
const
|
|
1907
|
-
|
|
1908
|
-
}
|
|
1909
|
-
const
|
|
1910
|
-
|
|
1911
|
-
const S =
|
|
1912
|
-
S && (S.id == ua ?
|
|
1913
|
-
const P =
|
|
1914
|
-
P &&
|
|
1915
|
-
const k =
|
|
1916
|
-
k &&
|
|
1917
|
-
const C =
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
const q =
|
|
1926
|
-
|
|
1927
|
-
|
|
1905
|
+
if (!u.value.realmId) {
|
|
1906
|
+
const H = await _t().getDefaultRealm();
|
|
1907
|
+
u.value.realmId = H.id;
|
|
1908
|
+
}
|
|
1909
|
+
const y = Wt(), v = y.getQEntity();
|
|
1910
|
+
y.and(v.realm.id.eq(u.value.realmId)).and(v.recycled.eq(!1));
|
|
1911
|
+
const S = u.value.currentDept;
|
|
1912
|
+
S && (S.id == ua ? y.and(v.department.isNull()) : S.id !== bt && y.and(v.department.sortPath.startWith(S.sortPath)));
|
|
1913
|
+
const P = u.value.classificationLevel;
|
|
1914
|
+
P && y.and(v.classifiedLevel.loe(P));
|
|
1915
|
+
const k = u.value.currentGroup;
|
|
1916
|
+
k && y.and(v.userGroups.any().group.sortPath.startWith(k.sortPath));
|
|
1917
|
+
const C = u.value.currentCustomGroup;
|
|
1918
|
+
C && y.and(v.customGroups.any().customGroup.sortPath.startWith(C.sortPath));
|
|
1919
|
+
const F = u.value.name;
|
|
1920
|
+
if (F) {
|
|
1921
|
+
const H = "%" + F.split("").join("%") + "%";
|
|
1922
|
+
y.and(v.username.like(H).or(v.fullName.like(H)).or(v.pinYinName.like(H)).or(v.mobile.like(H)));
|
|
1923
|
+
}
|
|
1924
|
+
a && y.and(a(v));
|
|
1925
|
+
const q = u.value.currentSort;
|
|
1926
|
+
q && y.orderBy(q);
|
|
1927
|
+
const Z = y.build();
|
|
1928
|
+
if (d)
|
|
1929
|
+
return p.queryUserRefs(Z).then((H) => (c.value.users = H, H));
|
|
1928
1930
|
{
|
|
1929
|
-
const
|
|
1930
|
-
return p.queryUserRefsPaged(
|
|
1931
|
+
const H = n.value.currentPage - 1;
|
|
1932
|
+
return p.queryUserRefsPaged(Z, H, n.value.pageSize).then((me) => (t && H > 0 ? c.value.users.push(...me.content) : c.value.users = me.content, c.value.total = me.totalElements, me.content));
|
|
1931
1933
|
}
|
|
1932
1934
|
}
|
|
1933
1935
|
return {
|
|
1934
1936
|
/**
|
|
1935
1937
|
* 查询的参数
|
|
1936
1938
|
*/
|
|
1937
|
-
queryParams:
|
|
1939
|
+
queryParams: u,
|
|
1938
1940
|
/**
|
|
1939
1941
|
* 分页参数
|
|
1940
1942
|
*/
|
|
@@ -1965,20 +1967,20 @@ const tn = /* @__PURE__ */ z({
|
|
|
1965
1967
|
}),
|
|
1966
1968
|
emits: /* @__PURE__ */ Q(["change", "loaded"], ["update:modelValue"]),
|
|
1967
1969
|
setup(e, { expose: a, emit: l }) {
|
|
1968
|
-
const t = h(), o = le(),
|
|
1970
|
+
const t = h(), o = le(), d = _e(o), u = Gt(o), n = e, c = l, p = ue(e, "modelValue"), r = ge({
|
|
1969
1971
|
get() {
|
|
1970
1972
|
var _;
|
|
1971
1973
|
return (_ = p.value) == null ? void 0 : _.id;
|
|
1972
1974
|
},
|
|
1973
1975
|
set(_) {
|
|
1974
|
-
p.value =
|
|
1976
|
+
p.value = i.departments.find((I) => I.id === _) ?? null;
|
|
1975
1977
|
}
|
|
1976
|
-
}),
|
|
1978
|
+
}), i = pt({
|
|
1977
1979
|
departments: []
|
|
1978
1980
|
}), m = async () => {
|
|
1979
1981
|
if (!n.realmId) return;
|
|
1980
|
-
const _ = await
|
|
1981
|
-
|
|
1982
|
+
const _ = await u.getNormal(n.realmId, Ht.BT);
|
|
1983
|
+
i.departments = [
|
|
1982
1984
|
{
|
|
1983
1985
|
id: bt,
|
|
1984
1986
|
label: "所有部门",
|
|
@@ -2006,7 +2008,7 @@ const tn = /* @__PURE__ */ z({
|
|
|
2006
2008
|
attributes: {}
|
|
2007
2009
|
}] : [],
|
|
2008
2010
|
...Pe(_, "name")
|
|
2009
|
-
], r.value =
|
|
2011
|
+
], r.value = i.departments[0].id, c("loaded", i.departments);
|
|
2010
2012
|
}, f = (_) => {
|
|
2011
2013
|
p.value = _, c("change", _);
|
|
2012
2014
|
};
|
|
@@ -2017,10 +2019,10 @@ const tn = /* @__PURE__ */ z({
|
|
|
2017
2019
|
}
|
|
2018
2020
|
), a({
|
|
2019
2021
|
reload: m
|
|
2020
|
-
}), m(), (_, I) => Y((
|
|
2022
|
+
}), m(), (_, I) => Y((b(), $(s(Xe), {
|
|
2021
2023
|
ref_key: "deptTree",
|
|
2022
2024
|
ref: t,
|
|
2023
|
-
data: s(
|
|
2025
|
+
data: s(i).departments,
|
|
2024
2026
|
size: "default",
|
|
2025
2027
|
"node-key": "id",
|
|
2026
2028
|
"default-expand-all": "",
|
|
@@ -2029,16 +2031,16 @@ const tn = /* @__PURE__ */ z({
|
|
|
2029
2031
|
"expand-on-click-node": !1,
|
|
2030
2032
|
onCurrentChange: f,
|
|
2031
2033
|
props: {
|
|
2032
|
-
class: (
|
|
2034
|
+
class: (y) => {
|
|
2033
2035
|
var v;
|
|
2034
|
-
return ((v = p.value) == null ? void 0 : v.id) ===
|
|
2036
|
+
return ((v = p.value) == null ? void 0 : v.id) === y.id ? "selected-group" : "group";
|
|
2035
2037
|
}
|
|
2036
2038
|
}
|
|
2037
2039
|
}, null, 8, ["data", "current-node-key", "props"])), [
|
|
2038
|
-
[s(De), s(
|
|
2040
|
+
[s(De), s(d)]
|
|
2039
2041
|
]);
|
|
2040
2042
|
}
|
|
2041
|
-
}), an = /* @__PURE__ */ pe(tn, [["__scopeId", "data-v-
|
|
2043
|
+
}), an = /* @__PURE__ */ pe(tn, [["__scopeId", "data-v-b247a32f"]]), ga = R(an), ha = "com.csicit.ace.scrollbar.wrapped";
|
|
2042
2044
|
var ln = "Expected a function";
|
|
2043
2045
|
function Je(e, a, l) {
|
|
2044
2046
|
var t = !0, o = !0;
|
|
@@ -2065,7 +2067,7 @@ const on = { class: "ja-user-group-tree" }, nn = /* @__PURE__ */ z({
|
|
|
2065
2067
|
emits: /* @__PURE__ */ Q(["change", "loaded"], ["update:modelValue"]),
|
|
2066
2068
|
async setup(e, { expose: a, emit: l }) {
|
|
2067
2069
|
let t, o;
|
|
2068
|
-
const
|
|
2070
|
+
const d = h(), u = le(), n = _e(u), c = Kt(u), p = yt(u), r = e, i = l, m = ue(e, "modelValue"), f = h(r.appId), _ = ge({
|
|
2069
2071
|
get() {
|
|
2070
2072
|
var k;
|
|
2071
2073
|
return (k = m.value) == null ? void 0 : k.id;
|
|
@@ -2073,13 +2075,13 @@ const on = { class: "ja-user-group-tree" }, nn = /* @__PURE__ */ z({
|
|
|
2073
2075
|
set(k) {
|
|
2074
2076
|
m.value = v.groups.find((C) => C.id === k) ?? null;
|
|
2075
2077
|
}
|
|
2076
|
-
}), [I,
|
|
2078
|
+
}), [I, y] = ([t, o] = mt(() => Promise.all([
|
|
2077
2079
|
p.getGlobalApp(),
|
|
2078
2080
|
p.getAccessible()
|
|
2079
2081
|
])), t = await t, o(), t);
|
|
2080
|
-
if (
|
|
2081
|
-
const k =
|
|
2082
|
-
k >= 0 &&
|
|
2082
|
+
if (y.unshift(I), !r.showConsoleApp) {
|
|
2083
|
+
const k = y.findIndex((C) => C.name == "ace-app-manage");
|
|
2084
|
+
k >= 0 && y.splice(k, 1);
|
|
2083
2085
|
}
|
|
2084
2086
|
f.value || (f.value = I.id);
|
|
2085
2087
|
const v = pt({
|
|
@@ -2089,9 +2091,9 @@ const on = { class: "ja-user-group-tree" }, nn = /* @__PURE__ */ z({
|
|
|
2089
2091
|
const k = await c.getByAppIdAndRealm(f.value, r.realmId);
|
|
2090
2092
|
v.groups = [
|
|
2091
2093
|
...Pe(k, "name")
|
|
2092
|
-
], !m.value && v.groups.length > 0 && (_.value = v.groups[0].id),
|
|
2094
|
+
], !m.value && v.groups.length > 0 && (_.value = v.groups[0].id), i("loaded", v.groups);
|
|
2093
2095
|
}, P = (k) => {
|
|
2094
|
-
m.value = k,
|
|
2096
|
+
m.value = k, i("change", k);
|
|
2095
2097
|
};
|
|
2096
2098
|
return T(
|
|
2097
2099
|
() => r.realmId,
|
|
@@ -2104,16 +2106,16 @@ const on = { class: "ja-user-group-tree" }, nn = /* @__PURE__ */ z({
|
|
|
2104
2106
|
S();
|
|
2105
2107
|
}), a({
|
|
2106
2108
|
reload: S,
|
|
2107
|
-
elTree:
|
|
2108
|
-
}), S(), (k, C) => (
|
|
2109
|
-
r.appId ? de("", !0) : (
|
|
2109
|
+
elTree: d
|
|
2110
|
+
}), S(), (k, C) => (b(), N("div", on, [
|
|
2111
|
+
r.appId ? de("", !0) : (b(), $(s(Ae), {
|
|
2110
2112
|
key: 0,
|
|
2111
2113
|
modelValue: f.value,
|
|
2112
2114
|
"onUpdate:modelValue": C[0] || (C[0] = (F) => f.value = F),
|
|
2113
2115
|
style: { width: "100%" }
|
|
2114
2116
|
}, {
|
|
2115
2117
|
default: g(() => [
|
|
2116
|
-
(
|
|
2118
|
+
(b(!0), N(ne, null, W(s(y), (F) => (b(), $(s(Ze), {
|
|
2117
2119
|
key: F.id,
|
|
2118
2120
|
label: F.caption,
|
|
2119
2121
|
value: F.id
|
|
@@ -2124,7 +2126,7 @@ const on = { class: "ja-user-group-tree" }, nn = /* @__PURE__ */ z({
|
|
|
2124
2126
|
Y(w(s(Xe), K({
|
|
2125
2127
|
style: { width: "100%", "--ja-group-tree-node-height": r.nodeHeight },
|
|
2126
2128
|
ref_key: "groupTree",
|
|
2127
|
-
ref:
|
|
2129
|
+
ref: d,
|
|
2128
2130
|
data: s(v).groups,
|
|
2129
2131
|
size: "default",
|
|
2130
2132
|
"node-key": "id",
|
|
@@ -2145,7 +2147,7 @@ const on = { class: "ja-user-group-tree" }, nn = /* @__PURE__ */ z({
|
|
|
2145
2147
|
])
|
|
2146
2148
|
]));
|
|
2147
2149
|
}
|
|
2148
|
-
}), rn = /* @__PURE__ */ pe(nn, [["__scopeId", "data-v-
|
|
2150
|
+
}), rn = /* @__PURE__ */ pe(nn, [["__scopeId", "data-v-d45cc589"]]), ya = R(rn), sn = /* @__PURE__ */ z({
|
|
2149
2151
|
__name: "customGroupTree",
|
|
2150
2152
|
props: /* @__PURE__ */ Q({
|
|
2151
2153
|
multiple: { type: Boolean }
|
|
@@ -2155,7 +2157,7 @@ const on = { class: "ja-user-group-tree" }, nn = /* @__PURE__ */ z({
|
|
|
2155
2157
|
}),
|
|
2156
2158
|
emits: /* @__PURE__ */ Q(["change", "loaded"], ["update:modelValue"]),
|
|
2157
2159
|
setup(e, { expose: a, emit: l }) {
|
|
2158
|
-
const t = h(), o = le(),
|
|
2160
|
+
const t = h(), o = le(), d = _e(o), u = Yt(o), n = l, c = ue(e, "modelValue"), p = ge({
|
|
2159
2161
|
get() {
|
|
2160
2162
|
var f;
|
|
2161
2163
|
return (f = c.value) == null ? void 0 : f.id;
|
|
@@ -2165,8 +2167,8 @@ const on = { class: "ja-user-group-tree" }, nn = /* @__PURE__ */ z({
|
|
|
2165
2167
|
}
|
|
2166
2168
|
}), r = pt({
|
|
2167
2169
|
groups: []
|
|
2168
|
-
}),
|
|
2169
|
-
const f = await
|
|
2170
|
+
}), i = async () => {
|
|
2171
|
+
const f = await u.getAll();
|
|
2170
2172
|
r.groups = [
|
|
2171
2173
|
...Pe(f, "name")
|
|
2172
2174
|
], r.groups.length > 0 && (c.value = r.groups[0], p.value = c.value.id), n("loaded", r.groups);
|
|
@@ -2174,8 +2176,8 @@ const on = { class: "ja-user-group-tree" }, nn = /* @__PURE__ */ z({
|
|
|
2174
2176
|
c.value = f, n("change", f);
|
|
2175
2177
|
};
|
|
2176
2178
|
return a({
|
|
2177
|
-
reload:
|
|
2178
|
-
}),
|
|
2179
|
+
reload: i
|
|
2180
|
+
}), i(), (f, _) => Y((b(), $(s(Xe), {
|
|
2179
2181
|
ref_key: "deptTree",
|
|
2180
2182
|
ref: t,
|
|
2181
2183
|
data: s(r).groups,
|
|
@@ -2188,15 +2190,15 @@ const on = { class: "ja-user-group-tree" }, nn = /* @__PURE__ */ z({
|
|
|
2188
2190
|
onCurrentChange: m,
|
|
2189
2191
|
props: {
|
|
2190
2192
|
class: (I) => {
|
|
2191
|
-
var
|
|
2192
|
-
return ((
|
|
2193
|
+
var y;
|
|
2194
|
+
return ((y = c.value) == null ? void 0 : y.id) === I.id ? "selected-group" : "group";
|
|
2193
2195
|
}
|
|
2194
2196
|
}
|
|
2195
2197
|
}, null, 8, ["data", "current-node-key", "props"])), [
|
|
2196
|
-
[s(De), s(
|
|
2198
|
+
[s(De), s(d)]
|
|
2197
2199
|
]);
|
|
2198
2200
|
}
|
|
2199
|
-
}), un = /* @__PURE__ */ pe(sn, [["__scopeId", "data-v-
|
|
2201
|
+
}), un = /* @__PURE__ */ pe(sn, [["__scopeId", "data-v-4e04bc5c"]]), dn = R(un), cn = {
|
|
2200
2202
|
class: "ja-user-select-dialog"
|
|
2201
2203
|
}, pn = {
|
|
2202
2204
|
class: "ja-user-select-dialog__content"
|
|
@@ -2226,6 +2228,14 @@ const on = { class: "ja-user-group-tree" }, nn = /* @__PURE__ */ z({
|
|
|
2226
2228
|
required: !1,
|
|
2227
2229
|
default: !1
|
|
2228
2230
|
},
|
|
2231
|
+
/**
|
|
2232
|
+
* 密级过滤
|
|
2233
|
+
*/
|
|
2234
|
+
classificationLevel: {
|
|
2235
|
+
type: Number,
|
|
2236
|
+
required: !1,
|
|
2237
|
+
default: !1
|
|
2238
|
+
},
|
|
2229
2239
|
/**
|
|
2230
2240
|
* 自定义筛选过滤条件,可以在此回调方法内使用qUser参数构造自定义的查询条件。例如 qUser => qUser.fullName.startWith('王')
|
|
2231
2241
|
*/
|
|
@@ -2244,7 +2254,7 @@ const on = { class: "ja-user-group-tree" }, nn = /* @__PURE__ */ z({
|
|
|
2244
2254
|
expose: a
|
|
2245
2255
|
}) {
|
|
2246
2256
|
const l = e, t = ue(e, "modelValue"), o = h();
|
|
2247
|
-
async function
|
|
2257
|
+
async function d() {
|
|
2248
2258
|
if (l.realmId)
|
|
2249
2259
|
o.value = l.realmId;
|
|
2250
2260
|
else {
|
|
@@ -2252,14 +2262,14 @@ const on = { class: "ja-user-group-tree" }, nn = /* @__PURE__ */ z({
|
|
|
2252
2262
|
o.value = J.id;
|
|
2253
2263
|
}
|
|
2254
2264
|
}
|
|
2255
|
-
if (
|
|
2265
|
+
if (d(), l.multiple) {
|
|
2256
2266
|
if (t.value || (t.value = []), !Array.isArray(t.value))
|
|
2257
2267
|
throw new Error("多选模式的选择用户对话框(multiple设置为true)的v-model必须是数组类型");
|
|
2258
2268
|
} else if (Array.isArray(t.value))
|
|
2259
2269
|
throw new Error("单选模式的选择用户对话框(multiple设置为false)的v-model只能为空或是单个UserReference对象");
|
|
2260
|
-
const
|
|
2270
|
+
const u = h(!1), n = h(), c = h(), p = h(), r = le(), i = _e(r), m = h(!1), f = h([]), _ = Oe(/* @__PURE__ */ new Map()), I = h("dept");
|
|
2261
2271
|
Te(ha, void 0);
|
|
2262
|
-
const
|
|
2272
|
+
const y = h(Array.isArray(t.value) ? [...t.value] : t.value), v = va(void 0, l.customFilter, (J) => {
|
|
2263
2273
|
m.value || (f.value = J ?? []);
|
|
2264
2274
|
}, !1, r, !0), S = [{
|
|
2265
2275
|
key: "user",
|
|
@@ -2285,7 +2295,7 @@ const on = { class: "ja-user-group-tree" }, nn = /* @__PURE__ */ z({
|
|
|
2285
2295
|
color: "#0D6A9F"
|
|
2286
2296
|
}, () => q(qe) ? Ue(aa) : void 0), Ue(tt, {
|
|
2287
2297
|
userId: J,
|
|
2288
|
-
theme:
|
|
2298
|
+
theme: Z(qe),
|
|
2289
2299
|
placement: "right-start",
|
|
2290
2300
|
hasAvatar: !1,
|
|
2291
2301
|
fullName: Ma
|
|
@@ -2293,64 +2303,66 @@ const on = { class: "ja-user-group-tree" }, nn = /* @__PURE__ */ z({
|
|
|
2293
2303
|
style: "flex:auto"
|
|
2294
2304
|
})]);
|
|
2295
2305
|
}
|
|
2296
|
-
}], P = h(!1), k = h(), C = Je(B, 100), F = Je(
|
|
2306
|
+
}], P = h(!1), k = h(), C = Je(B, 100), F = Je(H, 100);
|
|
2297
2307
|
T(n, () => {
|
|
2298
2308
|
I.value == "dept" && (v.queryParams.value.currentDept = n.value);
|
|
2299
2309
|
}), T(c, () => {
|
|
2300
2310
|
I.value == "group" && (v.queryParams.value.currentGroup = c.value);
|
|
2301
2311
|
}), T(p, () => {
|
|
2302
2312
|
I.value == "customGroup" && (v.queryParams.value.currentCustomGroup = p.value);
|
|
2313
|
+
}), T(() => l.classificationLevel, () => {
|
|
2314
|
+
v.queryParams.value.classificationLevel = l.classificationLevel;
|
|
2303
2315
|
}), T(I, () => {
|
|
2304
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);
|
|
2305
2317
|
});
|
|
2306
2318
|
function q(J) {
|
|
2307
|
-
return Array.isArray(
|
|
2319
|
+
return Array.isArray(y.value) ? _.has(J.id) : y.value && y.value.id === J.id;
|
|
2308
2320
|
}
|
|
2309
|
-
function
|
|
2321
|
+
function Z(J) {
|
|
2310
2322
|
return q(J) ? "autumnOrange" : "skyGray";
|
|
2311
2323
|
}
|
|
2312
|
-
function
|
|
2313
|
-
if (Array.isArray(
|
|
2314
|
-
const U =
|
|
2315
|
-
U >= 0 ? (_.delete(J.id),
|
|
2324
|
+
function H(J) {
|
|
2325
|
+
if (Array.isArray(y.value)) {
|
|
2326
|
+
const U = y.value.findIndex((oe) => oe.id === J.id);
|
|
2327
|
+
U >= 0 ? (_.delete(J.id), y.value.splice(U, 1)) : (_.set(J.id, J), y.value.push(J));
|
|
2316
2328
|
} else
|
|
2317
|
-
|
|
2329
|
+
y.value = J;
|
|
2318
2330
|
}
|
|
2319
2331
|
$e(() => {
|
|
2320
2332
|
C.cancel(), F.cancel();
|
|
2321
2333
|
});
|
|
2322
|
-
function
|
|
2323
|
-
if (Array.isArray(
|
|
2334
|
+
function me() {
|
|
2335
|
+
if (Array.isArray(y.value)) {
|
|
2324
2336
|
const J = v.queryResult.value.users.filter((U) => !q(U));
|
|
2325
|
-
J.forEach((U) => _.set(U.id, U)),
|
|
2337
|
+
J.forEach((U) => _.set(U.id, U)), y.value.push(...J);
|
|
2326
2338
|
}
|
|
2327
2339
|
}
|
|
2328
2340
|
function be() {
|
|
2329
|
-
Array.isArray(
|
|
2341
|
+
Array.isArray(y.value) && (_.clear(), y.value.splice(0));
|
|
2330
2342
|
}
|
|
2331
2343
|
function A() {
|
|
2332
|
-
if (Array.isArray(
|
|
2344
|
+
if (Array.isArray(y.value)) {
|
|
2333
2345
|
const J = v.queryResult.value.users.filter((U) => !q(U));
|
|
2334
|
-
_.clear(), J.forEach((U) => _.set(U.id, U)),
|
|
2346
|
+
_.clear(), J.forEach((U) => _.set(U.id, U)), y.value.splice(0), y.value.push(...J);
|
|
2335
2347
|
}
|
|
2336
2348
|
}
|
|
2337
2349
|
function O() {
|
|
2338
|
-
t.value =
|
|
2350
|
+
t.value = y.value, u.value = !1;
|
|
2339
2351
|
}
|
|
2340
2352
|
function L() {
|
|
2341
|
-
m.value = !m.value, m.value ? Array.isArray(
|
|
2353
|
+
m.value = !m.value, m.value ? Array.isArray(y.value) ? f.value = [...y.value] : f.value = y.value ? [y.value] : [] : f.value = v.queryResult.value.users;
|
|
2342
2354
|
}
|
|
2343
2355
|
function X() {
|
|
2344
|
-
!v.queryParams.value.realmId && o.value && (v.queryParams.value.realmId = o.value),
|
|
2356
|
+
!v.queryParams.value.realmId && o.value && (v.queryParams.value.realmId = o.value), y.value = Array.isArray(t.value) ? [...t.value] : t.value, Array.isArray(t.value) && (_.clear(), t.value.forEach((J) => _.set(J.id, J)));
|
|
2345
2357
|
}
|
|
2346
2358
|
function ee(J) {
|
|
2347
|
-
|
|
2359
|
+
H(J), P.value = !0;
|
|
2348
2360
|
}
|
|
2349
2361
|
function E() {
|
|
2350
2362
|
P.value = !1;
|
|
2351
2363
|
}
|
|
2352
2364
|
function V(J) {
|
|
2353
|
-
P.value &&
|
|
2365
|
+
P.value && H(J);
|
|
2354
2366
|
}
|
|
2355
2367
|
let D;
|
|
2356
2368
|
function B() {
|
|
@@ -2361,11 +2373,11 @@ const on = { class: "ja-user-group-tree" }, nn = /* @__PURE__ */ z({
|
|
|
2361
2373
|
}
|
|
2362
2374
|
return a({
|
|
2363
2375
|
show() {
|
|
2364
|
-
|
|
2376
|
+
u.value = !0;
|
|
2365
2377
|
}
|
|
2366
|
-
}), (J, U) => (
|
|
2367
|
-
modelValue:
|
|
2368
|
-
"onUpdate:modelValue": U[5] || (U[5] = (oe) =>
|
|
2378
|
+
}), (J, U) => (b(), $(s(st), {
|
|
2379
|
+
modelValue: u.value,
|
|
2380
|
+
"onUpdate:modelValue": U[5] || (U[5] = (oe) => u.value = oe),
|
|
2369
2381
|
"destroy-on-close": "",
|
|
2370
2382
|
draggable: "",
|
|
2371
2383
|
width: "640",
|
|
@@ -2379,15 +2391,15 @@ const on = { class: "ja-user-group-tree" }, nn = /* @__PURE__ */ z({
|
|
|
2379
2391
|
onClick: O,
|
|
2380
2392
|
size: "default"
|
|
2381
2393
|
}, {
|
|
2382
|
-
default: g(() => U[10] || (U[10] = [
|
|
2394
|
+
default: g(() => U[10] || (U[10] = [G("确定 ")])),
|
|
2383
2395
|
_: 1,
|
|
2384
2396
|
__: [10]
|
|
2385
|
-
}), w(s(
|
|
2397
|
+
}), w(s(fe), {
|
|
2386
2398
|
plain: "",
|
|
2387
2399
|
size: "default",
|
|
2388
|
-
onClick: U[4] || (U[4] = (oe) =>
|
|
2400
|
+
onClick: U[4] || (U[4] = (oe) => u.value = !1)
|
|
2389
2401
|
}, {
|
|
2390
|
-
default: g(() => U[11] || (U[11] = [
|
|
2402
|
+
default: g(() => U[11] || (U[11] = [G("取消")])),
|
|
2391
2403
|
_: 1,
|
|
2392
2404
|
__: [11]
|
|
2393
2405
|
})]),
|
|
@@ -2443,7 +2455,7 @@ const on = { class: "ja-user-group-tree" }, nn = /* @__PURE__ */ z({
|
|
|
2443
2455
|
_: 1
|
|
2444
2456
|
})]),
|
|
2445
2457
|
_: 1
|
|
2446
|
-
}, 8, ["modelValue"]), j("div", pn, [Y((
|
|
2458
|
+
}, 8, ["modelValue"]), j("div", pn, [Y((b(), $(s(xa), {
|
|
2447
2459
|
ref_key: "userTable",
|
|
2448
2460
|
ref: k,
|
|
2449
2461
|
"row-height": 40,
|
|
@@ -2460,10 +2472,10 @@ const on = { class: "ja-user-group-tree" }, nn = /* @__PURE__ */ z({
|
|
|
2460
2472
|
"font-weight": "600"
|
|
2461
2473
|
}
|
|
2462
2474
|
}, {
|
|
2463
|
-
default: g(() => [U[6] || (U[6] =
|
|
2475
|
+
default: g(() => [U[6] || (U[6] = G(" 人员 ")), w(s(ke), {
|
|
2464
2476
|
content: "切换筛选条件,不会清除已选人员。支持鼠标拖动多选。"
|
|
2465
2477
|
}, {
|
|
2466
|
-
default: g(() => [l.multiple ? (
|
|
2478
|
+
default: g(() => [l.multiple ? (b(), $(s(ce), {
|
|
2467
2479
|
key: 0
|
|
2468
2480
|
}, {
|
|
2469
2481
|
default: g(() => [w(s(Zt))]),
|
|
@@ -2473,7 +2485,7 @@ const on = { class: "ja-user-group-tree" }, nn = /* @__PURE__ */ z({
|
|
|
2473
2485
|
})]),
|
|
2474
2486
|
_: 1,
|
|
2475
2487
|
__: [6]
|
|
2476
|
-
}), l.multiple ? (
|
|
2488
|
+
}), l.multiple ? (b(), $(s(Fe), {
|
|
2477
2489
|
key: 0,
|
|
2478
2490
|
style: {
|
|
2479
2491
|
flex: "none",
|
|
@@ -2487,9 +2499,9 @@ const on = { class: "ja-user-group-tree" }, nn = /* @__PURE__ */ z({
|
|
|
2487
2499
|
size: "15",
|
|
2488
2500
|
onClick: L
|
|
2489
2501
|
}, {
|
|
2490
|
-
default: g(() => [m.value ? (
|
|
2502
|
+
default: g(() => [m.value ? (b(), $(s(ol), {
|
|
2491
2503
|
key: 1
|
|
2492
|
-
})) : (
|
|
2504
|
+
})) : (b(), $(s(ll), {
|
|
2493
2505
|
key: 0
|
|
2494
2506
|
}))]),
|
|
2495
2507
|
_: 1
|
|
@@ -2497,7 +2509,7 @@ const on = { class: "ja-user-group-tree" }, nn = /* @__PURE__ */ z({
|
|
|
2497
2509
|
_: 1
|
|
2498
2510
|
}, 8, ["content"])]),
|
|
2499
2511
|
_: 1
|
|
2500
|
-
})) : de("", !0), l.multiple ? (
|
|
2512
|
+
})) : de("", !0), l.multiple ? (b(), $(s(se), {
|
|
2501
2513
|
key: 1,
|
|
2502
2514
|
plain: "",
|
|
2503
2515
|
style: {
|
|
@@ -2506,12 +2518,12 @@ const on = { class: "ja-user-group-tree" }, nn = /* @__PURE__ */ z({
|
|
|
2506
2518
|
link: "",
|
|
2507
2519
|
tooltip: "全部选中",
|
|
2508
2520
|
shortcut: "Ctrl+A",
|
|
2509
|
-
onClick:
|
|
2521
|
+
onClick: me
|
|
2510
2522
|
}, {
|
|
2511
|
-
default: g(() => U[7] || (U[7] = [
|
|
2523
|
+
default: g(() => U[7] || (U[7] = [G("全选 ")])),
|
|
2512
2524
|
_: 1,
|
|
2513
2525
|
__: [7]
|
|
2514
|
-
})) : de("", !0), l.multiple ? (
|
|
2526
|
+
})) : de("", !0), l.multiple ? (b(), $(s(se), {
|
|
2515
2527
|
key: 2,
|
|
2516
2528
|
plain: "",
|
|
2517
2529
|
style: {
|
|
@@ -2522,10 +2534,10 @@ const on = { class: "ja-user-group-tree" }, nn = /* @__PURE__ */ z({
|
|
|
2522
2534
|
shortcut: "Ctrl+Q",
|
|
2523
2535
|
onClick: be
|
|
2524
2536
|
}, {
|
|
2525
|
-
default: g(() => U[8] || (U[8] = [
|
|
2537
|
+
default: g(() => U[8] || (U[8] = [G("全消 ")])),
|
|
2526
2538
|
_: 1,
|
|
2527
2539
|
__: [8]
|
|
2528
|
-
})) : de("", !0), l.multiple ? (
|
|
2540
|
+
})) : de("", !0), l.multiple ? (b(), $(s(se), {
|
|
2529
2541
|
key: 3,
|
|
2530
2542
|
plain: "",
|
|
2531
2543
|
style: {
|
|
@@ -2536,29 +2548,29 @@ const on = { class: "ja-user-group-tree" }, nn = /* @__PURE__ */ z({
|
|
|
2536
2548
|
shortcut: "Ctrl+F",
|
|
2537
2549
|
onClick: A
|
|
2538
2550
|
}, {
|
|
2539
|
-
default: g(() => U[9] || (U[9] = [
|
|
2551
|
+
default: g(() => U[9] || (U[9] = [G("反选 ")])),
|
|
2540
2552
|
_: 1,
|
|
2541
2553
|
__: [9]
|
|
2542
2554
|
})) : de("", !0)])]),
|
|
2543
2555
|
_: 1
|
|
2544
|
-
}, 8, ["data"])), [[s(De), s(
|
|
2556
|
+
}, 8, ["data"])), [[s(De), s(i)]])])])]),
|
|
2545
2557
|
_: 1
|
|
2546
2558
|
}, 8, ["modelValue"]));
|
|
2547
2559
|
}
|
|
2548
|
-
}), vn = /* @__PURE__ */ pe(fn, [["__scopeId", "data-v-
|
|
2560
|
+
}), vn = /* @__PURE__ */ pe(fn, [["__scopeId", "data-v-efd26932"]]), ba = R(vn), gn = /* @__PURE__ */ z({
|
|
2549
2561
|
__name: "Scrollbar",
|
|
2550
2562
|
setup(e, { expose: a }) {
|
|
2551
2563
|
const l = h(), t = h([]), o = /* @__PURE__ */ new Map();
|
|
2552
2564
|
a({
|
|
2553
2565
|
elScrollbar: l
|
|
2554
2566
|
}), Te(ha, t);
|
|
2555
|
-
let
|
|
2567
|
+
let d = !1;
|
|
2556
2568
|
T(t, () => {
|
|
2557
|
-
|
|
2569
|
+
d && n();
|
|
2558
2570
|
}, {
|
|
2559
2571
|
deep: !0
|
|
2560
2572
|
});
|
|
2561
|
-
const
|
|
2573
|
+
const u = new IntersectionObserver((c) => {
|
|
2562
2574
|
c.forEach((p) => {
|
|
2563
2575
|
const r = o.get(p.target);
|
|
2564
2576
|
r == null || r.onInView(p.isIntersecting);
|
|
@@ -2572,30 +2584,30 @@ const on = { class: "ja-user-group-tree" }, nn = /* @__PURE__ */ z({
|
|
|
2572
2584
|
try {
|
|
2573
2585
|
for (let r = 0; r < t.value.length; r++)
|
|
2574
2586
|
if (t.value[r]) {
|
|
2575
|
-
const
|
|
2576
|
-
m.top >= f.top && m.bottom <= f.bottom && m.left >= f.left && m.right <= f.right &&
|
|
2587
|
+
const i = t.value[r], m = i.childElement.getBoundingClientRect(), f = c.getBoundingClientRect();
|
|
2588
|
+
m.top >= f.top && m.bottom <= f.bottom && m.left >= f.left && m.right <= f.right && i.onInView(!0), o.set(i.childElement, i), u.observe(i.childElement);
|
|
2577
2589
|
}
|
|
2578
2590
|
} finally {
|
|
2579
2591
|
t.value && t.value.splice(0);
|
|
2580
2592
|
}
|
|
2581
|
-
|
|
2593
|
+
d = !0;
|
|
2582
2594
|
}
|
|
2583
2595
|
}
|
|
2584
2596
|
return Qe(async () => {
|
|
2585
2597
|
await n();
|
|
2586
2598
|
}), $e(() => {
|
|
2587
2599
|
o.forEach((c) => {
|
|
2588
|
-
|
|
2600
|
+
u.disconnect();
|
|
2589
2601
|
});
|
|
2590
|
-
}), (c, p) => (
|
|
2602
|
+
}), (c, p) => (b(), $(s(Ce), K({
|
|
2591
2603
|
ref_key: "scroll",
|
|
2592
2604
|
ref: l,
|
|
2593
2605
|
class: "scroll-container"
|
|
2594
|
-
}, c.$attrs),
|
|
2595
|
-
W(c.$slots, (r,
|
|
2596
|
-
name:
|
|
2606
|
+
}, c.$attrs), ve({ _: 2 }, [
|
|
2607
|
+
W(c.$slots, (r, i) => ({
|
|
2608
|
+
name: i,
|
|
2597
2609
|
fn: g(() => [
|
|
2598
|
-
te(c.$slots,
|
|
2610
|
+
te(c.$slots, i)
|
|
2599
2611
|
])
|
|
2600
2612
|
}))
|
|
2601
2613
|
]), 1040));
|
|
@@ -2618,9 +2630,9 @@ function kt(e) {
|
|
|
2618
2630
|
return a == "0" && 1 / e == -1 / 0 ? "-0" : a;
|
|
2619
2631
|
}
|
|
2620
2632
|
function bn(e, a, l, t) {
|
|
2621
|
-
for (var o = e.length,
|
|
2622
|
-
if (a(e[
|
|
2623
|
-
return
|
|
2633
|
+
for (var o = e.length, d = l + -1; ++d < o; )
|
|
2634
|
+
if (a(e[d], d, e))
|
|
2635
|
+
return d;
|
|
2624
2636
|
return -1;
|
|
2625
2637
|
}
|
|
2626
2638
|
function wn(e) {
|
|
@@ -2641,9 +2653,9 @@ function kn(e) {
|
|
|
2641
2653
|
function Vn(e, a, l) {
|
|
2642
2654
|
var t = -1, o = e.length;
|
|
2643
2655
|
a < 0 && (a = -a > o ? 0 : o + a), l = l > o ? o : l, l < 0 && (l += o), o = a > l ? 0 : l - a >>> 0, a >>>= 0;
|
|
2644
|
-
for (var
|
|
2645
|
-
|
|
2646
|
-
return
|
|
2656
|
+
for (var d = Array(o); ++t < o; )
|
|
2657
|
+
d[t] = e[t + a];
|
|
2658
|
+
return d;
|
|
2647
2659
|
}
|
|
2648
2660
|
function In(e, a, l) {
|
|
2649
2661
|
var t = e.length;
|
|
@@ -2678,8 +2690,8 @@ function Yn(e, a, l) {
|
|
|
2678
2690
|
return pa(e);
|
|
2679
2691
|
if (!e || !(a = kt(a)))
|
|
2680
2692
|
return e;
|
|
2681
|
-
var t = Rt(e), o = Rt(a),
|
|
2682
|
-
return In(t,
|
|
2693
|
+
var t = Rt(e), o = Rt(a), d = Kn(t, o), u = Wn(t, o) + 1;
|
|
2694
|
+
return In(t, d, u).join("");
|
|
2683
2695
|
}
|
|
2684
2696
|
const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
2685
2697
|
mounted(e) {
|
|
@@ -2703,7 +2715,7 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
2703
2715
|
users: { default: () => [] }
|
|
2704
2716
|
},
|
|
2705
2717
|
setup(e, { expose: a }) {
|
|
2706
|
-
const l = h(!1), t = le(), o = Yt(t),
|
|
2718
|
+
const l = h(!1), t = le(), o = Yt(t), d = h(), u = {
|
|
2707
2719
|
label: "name",
|
|
2708
2720
|
children: "children",
|
|
2709
2721
|
isLeaf: (k, C) => !k.hasChildren,
|
|
@@ -2711,7 +2723,7 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
2711
2723
|
var C;
|
|
2712
2724
|
return k.id === ((C = n.value) == null ? void 0 : C.id) ? "selected-group" : "group";
|
|
2713
2725
|
}
|
|
2714
|
-
}, n = h(), c = h(!1), p = h(), r = _e(t),
|
|
2726
|
+
}, n = h(), c = h(!1), p = h(), r = _e(t), i = e, m = {};
|
|
2715
2727
|
async function f() {
|
|
2716
2728
|
const k = Pe(await o.getAll()), C = {
|
|
2717
2729
|
id: "-1",
|
|
@@ -2724,7 +2736,7 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
2724
2736
|
sortIndex: 0,
|
|
2725
2737
|
sortPath: ""
|
|
2726
2738
|
};
|
|
2727
|
-
return
|
|
2739
|
+
return d.value = [C], C;
|
|
2728
2740
|
}
|
|
2729
2741
|
async function _() {
|
|
2730
2742
|
n.value = await f();
|
|
@@ -2732,7 +2744,7 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
2732
2744
|
function I(k) {
|
|
2733
2745
|
n.value = k;
|
|
2734
2746
|
}
|
|
2735
|
-
function
|
|
2747
|
+
function y() {
|
|
2736
2748
|
p.value = void 0, c.value = !0;
|
|
2737
2749
|
}
|
|
2738
2750
|
async function v() {
|
|
@@ -2753,7 +2765,7 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
2753
2765
|
}
|
|
2754
2766
|
await o.setMembers({
|
|
2755
2767
|
id: n.value.id,
|
|
2756
|
-
userIds: ((k =
|
|
2768
|
+
userIds: ((k = i.users) == null ? void 0 : k.map((C) => C.id)) ?? []
|
|
2757
2769
|
}, m), l.value = !1;
|
|
2758
2770
|
}
|
|
2759
2771
|
return a({
|
|
@@ -2763,7 +2775,7 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
2763
2775
|
close() {
|
|
2764
2776
|
l.value = !1;
|
|
2765
2777
|
}
|
|
2766
|
-
}), (k, C) => (
|
|
2778
|
+
}), (k, C) => (b(), N(ne, null, [
|
|
2767
2779
|
w(s(st), {
|
|
2768
2780
|
modelValue: l.value,
|
|
2769
2781
|
"onUpdate:modelValue": C[1] || (C[1] = (F) => l.value = F),
|
|
@@ -2782,16 +2794,16 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
2782
2794
|
onClick: P
|
|
2783
2795
|
}, {
|
|
2784
2796
|
default: g(() => C[6] || (C[6] = [
|
|
2785
|
-
|
|
2797
|
+
G("确定 ")
|
|
2786
2798
|
])),
|
|
2787
2799
|
_: 1,
|
|
2788
2800
|
__: [6]
|
|
2789
2801
|
}, 8, ["loading"]),
|
|
2790
|
-
w(s(
|
|
2802
|
+
w(s(fe), {
|
|
2791
2803
|
onClick: C[0] || (C[0] = (F) => l.value = !1)
|
|
2792
2804
|
}, {
|
|
2793
2805
|
default: g(() => C[7] || (C[7] = [
|
|
2794
|
-
|
|
2806
|
+
G("取消")
|
|
2795
2807
|
])),
|
|
2796
2808
|
_: 1,
|
|
2797
2809
|
__: [7]
|
|
@@ -2803,7 +2815,7 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
2803
2815
|
default: g(() => [
|
|
2804
2816
|
w(s(Fe), null, {
|
|
2805
2817
|
default: g(() => C[5] || (C[5] = [
|
|
2806
|
-
|
|
2818
|
+
G("请创建或选择要保存为的自定义组:")
|
|
2807
2819
|
])),
|
|
2808
2820
|
_: 1,
|
|
2809
2821
|
__: [5]
|
|
@@ -2814,7 +2826,7 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
2814
2826
|
tooltip: "添加自定义组",
|
|
2815
2827
|
shortcut: "Alt+G",
|
|
2816
2828
|
size: "small",
|
|
2817
|
-
onClick:
|
|
2829
|
+
onClick: y,
|
|
2818
2830
|
loading: s(r)
|
|
2819
2831
|
}, null, 8, ["icon", "loading"]),
|
|
2820
2832
|
w(s(se), {
|
|
@@ -2834,9 +2846,9 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
2834
2846
|
var F;
|
|
2835
2847
|
return [
|
|
2836
2848
|
w(s(Xe), {
|
|
2837
|
-
data:
|
|
2849
|
+
data: d.value,
|
|
2838
2850
|
"node-key": "id",
|
|
2839
|
-
props:
|
|
2851
|
+
props: u,
|
|
2840
2852
|
"default-expand-all": "",
|
|
2841
2853
|
"expand-on-click-node": !1,
|
|
2842
2854
|
onCurrentChange: I,
|
|
@@ -2867,17 +2879,17 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
2867
2879
|
size: "default"
|
|
2868
2880
|
}, {
|
|
2869
2881
|
default: g(() => C[8] || (C[8] = [
|
|
2870
|
-
|
|
2882
|
+
G(" 确定 ")
|
|
2871
2883
|
])),
|
|
2872
2884
|
_: 1,
|
|
2873
2885
|
__: [8]
|
|
2874
2886
|
}, 8, ["loading"]),
|
|
2875
|
-
w(s(
|
|
2887
|
+
w(s(fe), {
|
|
2876
2888
|
onClick: C[3] || (C[3] = (F) => c.value = !1),
|
|
2877
2889
|
size: "default"
|
|
2878
2890
|
}, {
|
|
2879
2891
|
default: g(() => C[9] || (C[9] = [
|
|
2880
|
-
|
|
2892
|
+
G("取消")
|
|
2881
2893
|
])),
|
|
2882
2894
|
_: 1,
|
|
2883
2895
|
__: [9]
|
|
@@ -2909,7 +2921,7 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
2909
2921
|
}, 8, ["modelValue"])
|
|
2910
2922
|
], 64));
|
|
2911
2923
|
}
|
|
2912
|
-
}), Zn = /* @__PURE__ */ pe(Xn, [["__scopeId", "data-v-
|
|
2924
|
+
}), Zn = /* @__PURE__ */ pe(Xn, [["__scopeId", "data-v-1bab28b9"]]), er = { class: "ja-user-list" }, tr = ["onMouseenter", "onMousedown", "onMouseover"], ar = {
|
|
2913
2925
|
key: 0,
|
|
2914
2926
|
class: "page-indicator"
|
|
2915
2927
|
}, lr = { class: "nb-spinner" }, or = 1, nr = /* @__PURE__ */ z({
|
|
@@ -2934,9 +2946,9 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
2934
2946
|
}),
|
|
2935
2947
|
emits: /* @__PURE__ */ Q(["arrowKeyDown", "itemClicked"], ["update:modelValue", "update:page"]),
|
|
2936
2948
|
setup(e, { expose: a, emit: l }) {
|
|
2937
|
-
const t = e, o = h(0),
|
|
2949
|
+
const t = e, o = h(0), d = h(), u = h(!1), n = ue(e, "modelValue"), c = ue(e, "page"), p = l, i = Je(() => {
|
|
2938
2950
|
var O;
|
|
2939
|
-
const A = (O =
|
|
2951
|
+
const A = (O = d.value) == null ? void 0 : O.wrapRef;
|
|
2940
2952
|
A && A.scrollHeight - A.scrollTop <= A.clientHeight + or && c.value < t.total / t.pageSize && c.value++;
|
|
2941
2953
|
}, 200);
|
|
2942
2954
|
function m(A) {
|
|
@@ -2950,13 +2962,13 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
2950
2962
|
}
|
|
2951
2963
|
let f;
|
|
2952
2964
|
function _(A) {
|
|
2953
|
-
m(A),
|
|
2965
|
+
m(A), u.value = !0, f = A;
|
|
2954
2966
|
}
|
|
2955
2967
|
function I() {
|
|
2956
|
-
|
|
2968
|
+
u.value = !1, p("itemClicked", f), f = void 0;
|
|
2957
2969
|
}
|
|
2958
|
-
function
|
|
2959
|
-
|
|
2970
|
+
function y(A) {
|
|
2971
|
+
u.value && m(A);
|
|
2960
2972
|
}
|
|
2961
2973
|
function v() {
|
|
2962
2974
|
o.value < t.users.length - 1 && o.value++, P();
|
|
@@ -2967,20 +2979,20 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
2967
2979
|
const P = () => {
|
|
2968
2980
|
Ie(() => {
|
|
2969
2981
|
var L, X, ee;
|
|
2970
|
-
const A = (L =
|
|
2982
|
+
const A = (L = d.value) == null ? void 0 : L.$refs.wrapRef, O = A == null ? void 0 : A.querySelectorAll("li")[o.value];
|
|
2971
2983
|
if (O && A) {
|
|
2972
2984
|
const E = O.offsetTop, V = O.offsetTop + O.offsetHeight, D = A.scrollTop, B = A.scrollTop + A.clientHeight;
|
|
2973
|
-
V > B ? (X =
|
|
2985
|
+
V > B ? (X = d.value) == null || X.scrollTo(
|
|
2974
2986
|
0,
|
|
2975
2987
|
V - A.clientHeight + O.offsetHeight - 38
|
|
2976
|
-
) : E < D && ((ee =
|
|
2988
|
+
) : E < D && ((ee = d.value) == null || ee.scrollTo(0, E));
|
|
2977
2989
|
}
|
|
2978
2990
|
});
|
|
2979
2991
|
}, k = Je(v, 100), C = Je(S, 100);
|
|
2980
2992
|
function F(A, O) {
|
|
2981
2993
|
var L;
|
|
2982
|
-
if (o.value = O,
|
|
2983
|
-
const X = (L =
|
|
2994
|
+
if (o.value = O, u.value = A.buttons > 0, u.value) {
|
|
2995
|
+
const X = (L = d.value) == null ? void 0 : L.$refs.wrapRef, ee = A.target;
|
|
2984
2996
|
if (ee && X) {
|
|
2985
2997
|
const E = ee.offsetTop, V = ee.offsetTop + ee.offsetHeight, D = X.scrollTop, B = X.scrollTop + X.clientHeight;
|
|
2986
2998
|
V + 20 > B ? k() : E < D + 20 && C();
|
|
@@ -2988,19 +3000,19 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
2988
3000
|
}
|
|
2989
3001
|
}
|
|
2990
3002
|
function q(A) {
|
|
2991
|
-
return
|
|
3003
|
+
return H.value.some((O) => O.id === A.id);
|
|
2992
3004
|
}
|
|
2993
|
-
const
|
|
3005
|
+
const Z = (A) => H.value.some((O) => O.id === A.id) ? "autumnOrange" : "skyGray", H = ge(() => {
|
|
2994
3006
|
if (t.multiple && Array.isArray(n.value))
|
|
2995
3007
|
return n.value;
|
|
2996
3008
|
if (!t.multiple && !Array.isArray(n.value))
|
|
2997
3009
|
return n.value ? [n.value] : [];
|
|
2998
3010
|
throw new Error("UserPicker组件设置为多选模式(multiple)时,v-model必须绑定UserReference数组");
|
|
2999
3011
|
});
|
|
3000
|
-
function
|
|
3012
|
+
function me(A) {
|
|
3001
3013
|
return A === o.value ? "active" : "";
|
|
3002
3014
|
}
|
|
3003
|
-
const be =
|
|
3015
|
+
const be = ge(() => t.loading && t.users.length == 0);
|
|
3004
3016
|
return a({
|
|
3005
3017
|
scrollUp() {
|
|
3006
3018
|
S();
|
|
@@ -3014,30 +3026,30 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
3014
3026
|
}, {
|
|
3015
3027
|
deep: !1
|
|
3016
3028
|
}), $e(() => {
|
|
3017
|
-
k.cancel(), C.cancel(),
|
|
3018
|
-
}), (A, O) => (
|
|
3019
|
-
Y((
|
|
3029
|
+
k.cancel(), C.cancel(), i.cancel();
|
|
3030
|
+
}), (A, O) => (b(), N("div", er, [
|
|
3031
|
+
Y((b(), $(s(Ce), {
|
|
3020
3032
|
height: A.height,
|
|
3021
3033
|
ref_key: "scrollbar",
|
|
3022
|
-
ref:
|
|
3034
|
+
ref: d,
|
|
3023
3035
|
always: "",
|
|
3024
|
-
onScroll: s(
|
|
3036
|
+
onScroll: s(i)
|
|
3025
3037
|
}, {
|
|
3026
3038
|
default: g(() => [
|
|
3027
|
-
A.users.length > 0 ? (
|
|
3039
|
+
A.users.length > 0 ? (b(), N("ul", {
|
|
3028
3040
|
key: 0,
|
|
3029
3041
|
onMouseup: I
|
|
3030
3042
|
}, [
|
|
3031
|
-
(
|
|
3043
|
+
(b(!0), N(ne, null, W(A.users, (L, X) => (b(), N("li", {
|
|
3032
3044
|
key: L.id,
|
|
3033
|
-
class: He(
|
|
3034
|
-
onMouseenter: (ee) =>
|
|
3045
|
+
class: He(me(X)),
|
|
3046
|
+
onMouseenter: (ee) => u.value && y(L),
|
|
3035
3047
|
onMousedown: (ee) => _(L),
|
|
3036
3048
|
onMouseover: (ee) => F(ee, X)
|
|
3037
3049
|
}, [
|
|
3038
3050
|
w(s(ce), { color: "#0D6A9F" }, {
|
|
3039
3051
|
default: g(() => [
|
|
3040
|
-
q(L) ? (
|
|
3052
|
+
q(L) ? (b(), $(s(aa), { key: 0 })) : de("", !0)
|
|
3041
3053
|
]),
|
|
3042
3054
|
_: 2
|
|
3043
3055
|
}, 1024),
|
|
@@ -3046,10 +3058,10 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
3046
3058
|
"full-name": L.fullName,
|
|
3047
3059
|
"has-avatar": L.hasAvatar,
|
|
3048
3060
|
placement: "left-start",
|
|
3049
|
-
theme:
|
|
3061
|
+
theme: Z(L)
|
|
3050
3062
|
}, null, 8, ["user-id", "full-name", "has-avatar", "theme"])
|
|
3051
3063
|
], 42, tr))), 128))
|
|
3052
|
-
], 32)) : (
|
|
3064
|
+
], 32)) : (b(), $(s(jt), {
|
|
3053
3065
|
key: 1,
|
|
3054
3066
|
description: A.emptyText
|
|
3055
3067
|
}, null, 8, ["description"]))
|
|
@@ -3058,15 +3070,15 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
3058
3070
|
}, 8, ["height", "onScroll"])), [
|
|
3059
3071
|
[s(De), be.value]
|
|
3060
3072
|
]),
|
|
3061
|
-
A.users.length > 0 ? (
|
|
3073
|
+
A.users.length > 0 ? (b(), N("div", ar, [
|
|
3062
3074
|
Y(j("div", lr, null, 512), [
|
|
3063
|
-
[
|
|
3075
|
+
[he, A.loading]
|
|
3064
3076
|
]),
|
|
3065
|
-
|
|
3077
|
+
G(" 已加载 " + ae(c.value) + " /" + ae(Math.ceil(A.total / A.pageSize)) + "页 ", 1)
|
|
3066
3078
|
])) : de("", !0)
|
|
3067
3079
|
]));
|
|
3068
3080
|
}
|
|
3069
|
-
}), Da = /* @__PURE__ */ pe(nr, [["__scopeId", "data-v-
|
|
3081
|
+
}), Da = /* @__PURE__ */ pe(nr, [["__scopeId", "data-v-e4c1ead2"]]), rr = { class: "ja-user-picker__root" }, sr = { class: "ja-user-picker-bookmark__dropdown" }, ur = { style: { width: "100%", display: "flex", "align-content": "center", "justify-content": "end", "margin-bottom": "4px" } }, ir = { style: { color: "var(--el-color-info-light-5)" } }, dr = { class: "dropdown-header" }, cr = {
|
|
3070
3082
|
key: 0,
|
|
3071
3083
|
class: "more-tag"
|
|
3072
3084
|
}, pr = { key: 1 }, Re = 0, mr = /* @__PURE__ */ z({
|
|
@@ -3084,6 +3096,10 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
3084
3096
|
* 是否多选模式
|
|
3085
3097
|
*/
|
|
3086
3098
|
multiple: { type: Boolean, required: !1, default: !1 },
|
|
3099
|
+
/**
|
|
3100
|
+
* 密级过滤
|
|
3101
|
+
*/
|
|
3102
|
+
classificationLevel: { type: Number, required: !1, default: !1 },
|
|
3087
3103
|
/**
|
|
3088
3104
|
* 自定义筛选过滤条件,可以在此回调方法内使用qUser参数构造自定义的查询条件。例如 qUser => qUser.fullName.startWith('王')
|
|
3089
3105
|
*/
|
|
@@ -3121,17 +3137,17 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
3121
3137
|
}
|
|
3122
3138
|
}
|
|
3123
3139
|
t(), T(() => a.realmId, t);
|
|
3124
|
-
const o = le(),
|
|
3125
|
-
() =>
|
|
3140
|
+
const o = le(), d = ht(o), u = Ra([]), n = ue(e, "modelValue"), c = h(), p = h(!1), { queryResult: r, queryParams: i, pageParams: m, loading: f } = va(
|
|
3141
|
+
() => i.value.name != null && i.value.name.length > Re,
|
|
3126
3142
|
a.customFilter,
|
|
3127
3143
|
(V, D) => {
|
|
3128
3144
|
var B, ie;
|
|
3129
|
-
V ? (
|
|
3145
|
+
V ? (u.value = r.value.users, D && ((ie = (B = I.value) == null ? void 0 : B.elScrollbar) == null || ie.scrollTo(0, 0))) : k();
|
|
3130
3146
|
},
|
|
3131
3147
|
!0,
|
|
3132
3148
|
o,
|
|
3133
3149
|
!1
|
|
3134
|
-
), _ = h(), I = h(),
|
|
3150
|
+
), _ = h(), I = h(), y = h(), v = h(), S = h();
|
|
3135
3151
|
function P(V) {
|
|
3136
3152
|
if (a.multiple) {
|
|
3137
3153
|
if (!Array.isArray(n.value))
|
|
@@ -3142,14 +3158,14 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
3142
3158
|
n.value = V;
|
|
3143
3159
|
}
|
|
3144
3160
|
function k() {
|
|
3145
|
-
a.realmId && (
|
|
3161
|
+
a.realmId && (i.value.realmId = a.realmId), i.value.name && i.value.name.length > Re && (i.value.name = void 0);
|
|
3146
3162
|
const V = Wt();
|
|
3147
3163
|
if (a.customFilter) {
|
|
3148
3164
|
const D = V.getQEntity();
|
|
3149
3165
|
V.and(a.customFilter(D));
|
|
3150
3166
|
}
|
|
3151
|
-
|
|
3152
|
-
|
|
3167
|
+
d.getBookmarkedUsers(V.build()).then((D) => {
|
|
3168
|
+
u.value = D;
|
|
3153
3169
|
}), setTimeout(() => {
|
|
3154
3170
|
var D;
|
|
3155
3171
|
(D = c.value) == null || D.focus();
|
|
@@ -3170,24 +3186,24 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
3170
3186
|
} else
|
|
3171
3187
|
n.value = null;
|
|
3172
3188
|
}
|
|
3173
|
-
function
|
|
3189
|
+
function Z() {
|
|
3174
3190
|
var V;
|
|
3175
3191
|
S.value.scrollDown(), (V = c.value) == null || V.focus();
|
|
3176
3192
|
}
|
|
3177
|
-
function
|
|
3193
|
+
function H() {
|
|
3178
3194
|
var V;
|
|
3179
3195
|
S.value.scrollUp(), (V = c.value) == null || V.focus();
|
|
3180
3196
|
}
|
|
3181
|
-
function
|
|
3197
|
+
function me() {
|
|
3182
3198
|
var V;
|
|
3183
|
-
P(
|
|
3199
|
+
P(u.value[(V = S.value) == null ? void 0 : V.activeIndex]);
|
|
3184
3200
|
}
|
|
3185
3201
|
function be() {
|
|
3186
3202
|
p.value = !0;
|
|
3187
3203
|
}
|
|
3188
3204
|
function A() {
|
|
3189
3205
|
const V = n.value;
|
|
3190
|
-
V.push(...
|
|
3206
|
+
V.push(...u.value.filter((D) => !V.some((B) => B.id === D.id)));
|
|
3191
3207
|
}
|
|
3192
3208
|
function O() {
|
|
3193
3209
|
a.multiple ? n.value = [] : n.value = null;
|
|
@@ -3196,7 +3212,7 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
3196
3212
|
var V;
|
|
3197
3213
|
(V = c.value) == null || V.focus();
|
|
3198
3214
|
}
|
|
3199
|
-
const X =
|
|
3215
|
+
const X = ge(() => {
|
|
3200
3216
|
if (a.multiple && Array.isArray(n.value))
|
|
3201
3217
|
return n.value;
|
|
3202
3218
|
if (!a.multiple && !Array.isArray(n.value))
|
|
@@ -3205,16 +3221,18 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
3205
3221
|
});
|
|
3206
3222
|
function ee() {
|
|
3207
3223
|
var V;
|
|
3208
|
-
(V =
|
|
3224
|
+
(V = y.value) == null || V.show(), p.value = !1;
|
|
3209
3225
|
}
|
|
3210
|
-
const E =
|
|
3211
|
-
return (
|
|
3226
|
+
const E = ge(() => X.value.slice(0, a.maxShowCount));
|
|
3227
|
+
return T(() => a.classificationLevel, () => {
|
|
3228
|
+
i.value.classificationLevel = a.classificationLevel;
|
|
3229
|
+
}), (V, D) => (b(), N(ne, null, [
|
|
3212
3230
|
w(s(wa), K({
|
|
3213
3231
|
"max-height": a.maxHeight,
|
|
3214
3232
|
height: a.height
|
|
3215
3233
|
}, V.$attrs, { style: { "overflow-x": "hidden" } }), {
|
|
3216
3234
|
default: g(() => [
|
|
3217
|
-
Y((
|
|
3235
|
+
Y((b(), N("div", rr, [
|
|
3218
3236
|
w(s(Ot), {
|
|
3219
3237
|
ref: "bookmarkDropdown",
|
|
3220
3238
|
onShow: k,
|
|
@@ -3225,7 +3243,7 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
3225
3243
|
"onUpdate:visible": D[4] || (D[4] = (B) => p.value = B)
|
|
3226
3244
|
}, {
|
|
3227
3245
|
reference: g(() => [
|
|
3228
|
-
w(s(
|
|
3246
|
+
w(s(fe), {
|
|
3229
3247
|
circle: "",
|
|
3230
3248
|
icon: s(Ee),
|
|
3231
3249
|
size: "small",
|
|
@@ -3259,7 +3277,7 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
3259
3277
|
tooltip: "清空选择",
|
|
3260
3278
|
shortcut: "Alt+C"
|
|
3261
3279
|
}, null, 8, ["icon"]),
|
|
3262
|
-
a.multiple ? (
|
|
3280
|
+
a.multiple ? (b(), $(s(se), {
|
|
3263
3281
|
key: 0,
|
|
3264
3282
|
circle: "",
|
|
3265
3283
|
size: "small",
|
|
@@ -3285,28 +3303,28 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
3285
3303
|
j("div", ir, " 弹出快捷键:" + ae(a.shortcut), 1)
|
|
3286
3304
|
]),
|
|
3287
3305
|
w(s(we), {
|
|
3288
|
-
modelValue: s(
|
|
3289
|
-
"onUpdate:modelValue": D[1] || (D[1] = (B) => s(
|
|
3306
|
+
modelValue: s(i).name,
|
|
3307
|
+
"onUpdate:modelValue": D[1] || (D[1] = (B) => s(i).name = B),
|
|
3290
3308
|
ref_key: "inputSearchText",
|
|
3291
3309
|
ref: c,
|
|
3292
3310
|
"suffix-icon": s(Et),
|
|
3293
3311
|
placeholder: "请输入拼音名、姓名或手机号查询",
|
|
3294
3312
|
autocomplete: "off",
|
|
3295
3313
|
onKeydown: [
|
|
3296
|
-
Ve(
|
|
3297
|
-
Ve(At(
|
|
3298
|
-
Ve(At(
|
|
3314
|
+
Ve(me, ["enter"]),
|
|
3315
|
+
Ve(At(H, ["stop", "prevent"]), ["up"]),
|
|
3316
|
+
Ve(At(Z, ["stop", "prevent"]), ["down"])
|
|
3299
3317
|
]
|
|
3300
3318
|
}, null, 8, ["modelValue", "suffix-icon", "onKeydown"]),
|
|
3301
3319
|
j("div", dr, [
|
|
3302
3320
|
w(s(Fe), null, {
|
|
3303
3321
|
default: g(() => [
|
|
3304
|
-
s(
|
|
3322
|
+
s(i).name && s(i).name.length > Re ? (b(), $(s(ce), { key: 0 }, {
|
|
3305
3323
|
default: g(() => [
|
|
3306
3324
|
w(s(Et))
|
|
3307
3325
|
]),
|
|
3308
3326
|
_: 1
|
|
3309
|
-
})) : (
|
|
3327
|
+
})) : (b(), $(s(ce), {
|
|
3310
3328
|
key: 1,
|
|
3311
3329
|
color: "#FFBF29"
|
|
3312
3330
|
}, {
|
|
@@ -3315,7 +3333,7 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
3315
3333
|
]),
|
|
3316
3334
|
_: 1
|
|
3317
3335
|
})),
|
|
3318
|
-
|
|
3336
|
+
G(" " + ae(s(i).name && s(i).name.length > Re ? "查询结果" : "常用人员"), 1)
|
|
3319
3337
|
]),
|
|
3320
3338
|
_: 1
|
|
3321
3339
|
})
|
|
@@ -3324,11 +3342,11 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
3324
3342
|
ref_key: "userList",
|
|
3325
3343
|
ref: S,
|
|
3326
3344
|
total: s(r).total,
|
|
3327
|
-
"empty-text": s(
|
|
3345
|
+
"empty-text": s(i).name && s(i).name.length > Re ? void 0 : "无可选常用人员",
|
|
3328
3346
|
multiple: "",
|
|
3329
3347
|
"page-size": s(m).pageSize,
|
|
3330
3348
|
loading: s(f),
|
|
3331
|
-
users:
|
|
3349
|
+
users: u.value,
|
|
3332
3350
|
height: 300,
|
|
3333
3351
|
modelValue: n.value,
|
|
3334
3352
|
"onUpdate:modelValue": D[2] || (D[2] = (B) => n.value = B),
|
|
@@ -3341,7 +3359,7 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
3341
3359
|
]),
|
|
3342
3360
|
_: 1
|
|
3343
3361
|
}, 8, ["visible"]),
|
|
3344
|
-
(
|
|
3362
|
+
(b(!0), N(ne, null, W(E.value, (B) => (b(), $(s(tt), {
|
|
3345
3363
|
key: B.id,
|
|
3346
3364
|
"user-id": B.id,
|
|
3347
3365
|
"full-name": B.fullName,
|
|
@@ -3349,11 +3367,11 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
3349
3367
|
"has-avatar": B.hasAvatar,
|
|
3350
3368
|
onClosed: q
|
|
3351
3369
|
}, null, 8, ["user-id", "full-name", "has-avatar"]))), 128)),
|
|
3352
|
-
X.value.length > a.maxShowCount ? (
|
|
3353
|
-
X.value.length === 0 ? (
|
|
3370
|
+
X.value.length > a.maxShowCount ? (b(), N("div", cr, " +" + ae(X.value.length - a.maxShowCount) + "人 ", 1)) : de("", !0),
|
|
3371
|
+
X.value.length === 0 ? (b(), N("div", pr, [
|
|
3354
3372
|
w(s(Fe), { type: "info" }, {
|
|
3355
3373
|
default: g(() => D[6] || (D[6] = [
|
|
3356
|
-
|
|
3374
|
+
G(" <暂无选中人员>")
|
|
3357
3375
|
])),
|
|
3358
3376
|
_: 1,
|
|
3359
3377
|
__: [6]
|
|
@@ -3361,7 +3379,7 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
3361
3379
|
])) : de("", !0),
|
|
3362
3380
|
w(s(ba), {
|
|
3363
3381
|
ref_key: "dialogUserSelector",
|
|
3364
|
-
ref:
|
|
3382
|
+
ref: y,
|
|
3365
3383
|
multiple: a.multiple,
|
|
3366
3384
|
"realm-id": l.value,
|
|
3367
3385
|
customFilter: a.customFilter,
|
|
@@ -3381,53 +3399,53 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
3381
3399
|
}, null, 8, ["users"])
|
|
3382
3400
|
], 64));
|
|
3383
3401
|
}
|
|
3384
|
-
}), Ea = /* @__PURE__ */ pe(mr, [["__scopeId", "data-v-
|
|
3402
|
+
}), Ea = /* @__PURE__ */ pe(mr, [["__scopeId", "data-v-c3610320"]]), fr = /* @__PURE__ */ z({
|
|
3385
3403
|
__name: "JaUserPicker",
|
|
3386
3404
|
emits: ["change"],
|
|
3387
3405
|
setup(e, { emit: a }) {
|
|
3388
|
-
const l = M("aceFormModel"), t = M("aceFormItemProp"), o = M("aceFormValidator"),
|
|
3389
|
-
function
|
|
3390
|
-
o.removeFieldError(t), re(l.formData, t, n.value),
|
|
3406
|
+
const l = M("aceFormModel"), t = M("aceFormItemProp"), o = M("aceFormValidator"), d = a;
|
|
3407
|
+
function u(c) {
|
|
3408
|
+
o.removeFieldError(t), re(l.formData, t, n.value), d("change", c);
|
|
3391
3409
|
}
|
|
3392
3410
|
const n = h(x(l.formData, t) ?? []);
|
|
3393
3411
|
return T(() => l.formData, () => {
|
|
3394
3412
|
n.value = x(l.formData, t) ?? [];
|
|
3395
3413
|
}, {
|
|
3396
3414
|
deep: !0
|
|
3397
|
-
}), (c, p) => (
|
|
3415
|
+
}), (c, p) => (b(), $(Ea, K({
|
|
3398
3416
|
modelValue: n.value,
|
|
3399
3417
|
"onUpdate:modelValue": p[0] || (p[0] = (r) => n.value = r),
|
|
3400
|
-
onChange:
|
|
3418
|
+
onChange: u
|
|
3401
3419
|
}, c.$attrs), null, 16, ["modelValue"]));
|
|
3402
3420
|
}
|
|
3403
3421
|
}), vr = R(Ea), gr = R(fr), hr = R(Da), yr = /* @__PURE__ */ z({
|
|
3404
3422
|
__name: "JaTimePicker",
|
|
3405
3423
|
emits: ["change"],
|
|
3406
3424
|
setup(e, { expose: a, emit: l }) {
|
|
3407
|
-
const t = h({}), o = M("aceFormModel"),
|
|
3408
|
-
function p(
|
|
3409
|
-
|
|
3425
|
+
const t = h({}), o = M("aceFormModel"), d = M("aceFormItemProp"), u = M("aceFormValidator"), n = l, c = h({});
|
|
3426
|
+
function p(i) {
|
|
3427
|
+
u.removeFieldError(d), re(o.formData, d, r.value), n("change", i);
|
|
3410
3428
|
}
|
|
3411
|
-
const r = h(x(o.formData,
|
|
3429
|
+
const r = h(x(o.formData, d));
|
|
3412
3430
|
return T(() => o.formData, () => {
|
|
3413
|
-
r.value = x(o.formData,
|
|
3431
|
+
r.value = x(o.formData, d);
|
|
3414
3432
|
}, {
|
|
3415
3433
|
deep: !0
|
|
3416
3434
|
}), Qe(() => {
|
|
3417
3435
|
Object.entries(t.value).filter(([m, f]) => f instanceof Function).forEach(([m, f]) => {
|
|
3418
3436
|
c.value[m] = f;
|
|
3419
3437
|
});
|
|
3420
|
-
}), a(c.value), (
|
|
3438
|
+
}), a(c.value), (i, m) => (b(), $(s(Ha), K({
|
|
3421
3439
|
ref_key: "input",
|
|
3422
3440
|
ref: t,
|
|
3423
|
-
modelValue: s(o).formData[s(
|
|
3424
|
-
"onUpdate:modelValue": m[0] || (m[0] = (f) => s(o).formData[s(
|
|
3441
|
+
modelValue: s(o).formData[s(d)],
|
|
3442
|
+
"onUpdate:modelValue": m[0] || (m[0] = (f) => s(o).formData[s(d)] = f),
|
|
3425
3443
|
onChange: p
|
|
3426
|
-
},
|
|
3427
|
-
W(
|
|
3444
|
+
}, i.$attrs), ve({ _: 2 }, [
|
|
3445
|
+
W(i.$slots, (f, _) => ({
|
|
3428
3446
|
name: _,
|
|
3429
3447
|
fn: g(() => [
|
|
3430
|
-
te(
|
|
3448
|
+
te(i.$slots, _)
|
|
3431
3449
|
])
|
|
3432
3450
|
}))
|
|
3433
3451
|
]), 1040, ["modelValue"]));
|
|
@@ -3446,35 +3464,35 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
3446
3464
|
}),
|
|
3447
3465
|
emits: /* @__PURE__ */ Q(["change"], ["update:modelValue"]),
|
|
3448
3466
|
setup(e, { emit: a }) {
|
|
3449
|
-
const l = le(), t = Kt(l), o = e,
|
|
3450
|
-
if (o.multiple && !Array.isArray(
|
|
3467
|
+
const l = le(), t = Kt(l), o = e, d = ue(e, "modelValue"), u = a;
|
|
3468
|
+
if (o.multiple && !Array.isArray(d.value))
|
|
3451
3469
|
throw new Error("用户组选择器设置multiple为true,但是绑定的v-model值是单值");
|
|
3452
|
-
if (!o.multiple && Array.isArray(
|
|
3470
|
+
if (!o.multiple && Array.isArray(d.value))
|
|
3453
3471
|
throw new Error("用户组选择器未设置multiple为true,但是绑定的v-model值是数组");
|
|
3454
3472
|
const n = Oe({
|
|
3455
3473
|
groups: []
|
|
3456
3474
|
}), c = () => {
|
|
3457
3475
|
!o.realmId || !o.appId || t.getByAppIdAndRealm(o.appId, o.realmId ?? "0").then((r) => {
|
|
3458
|
-
n.groups = [...Pe(r, "name")], !
|
|
3476
|
+
n.groups = [...Pe(r, "name")], !d.value && !o.multiple && (d.value = n.groups[0].id);
|
|
3459
3477
|
});
|
|
3460
3478
|
}, p = (r) => {
|
|
3461
|
-
|
|
3479
|
+
u("change", Array.isArray(r) ? n.groups.filter((i) => r.findIndex((m) => i.id === m) >= 0) : n.groups.find((i) => i.id === r));
|
|
3462
3480
|
};
|
|
3463
3481
|
return c(), T(
|
|
3464
3482
|
() => o.realmId,
|
|
3465
3483
|
() => {
|
|
3466
3484
|
c();
|
|
3467
3485
|
}
|
|
3468
|
-
), T(() => o.appId, c), (r,
|
|
3486
|
+
), T(() => o.appId, c), (r, i) => (b(), $(s(gt), K({
|
|
3469
3487
|
style: { width: "100%" },
|
|
3470
3488
|
data: n.groups,
|
|
3471
3489
|
size: o.size,
|
|
3472
3490
|
"node-key": "id",
|
|
3473
3491
|
"check-strictly": "",
|
|
3474
|
-
"current-node-key":
|
|
3492
|
+
"current-node-key": d.value,
|
|
3475
3493
|
"highlight-current": "",
|
|
3476
|
-
modelValue:
|
|
3477
|
-
"onUpdate:modelValue":
|
|
3494
|
+
modelValue: d.value,
|
|
3495
|
+
"onUpdate:modelValue": i[0] || (i[0] = (m) => d.value = m),
|
|
3478
3496
|
multiple: r.multiple,
|
|
3479
3497
|
onChange: p
|
|
3480
3498
|
}, r.$attrs, {
|
|
@@ -3488,24 +3506,24 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
3488
3506
|
__name: "JaAutoComplete",
|
|
3489
3507
|
emits: ["change"],
|
|
3490
3508
|
setup(e, { expose: a, emit: l }) {
|
|
3491
|
-
const t = h(), o = M("aceFormModel"),
|
|
3509
|
+
const t = h(), o = M("aceFormModel"), d = M("aceFormItemProp"), u = M("aceFormValidator"), n = l;
|
|
3492
3510
|
function c(r) {
|
|
3493
|
-
|
|
3511
|
+
u.removeFieldError(d), re(o.formData, d, p.value), n("change", r);
|
|
3494
3512
|
}
|
|
3495
|
-
const p = h(x(o.formData,
|
|
3513
|
+
const p = h(x(o.formData, d));
|
|
3496
3514
|
return T(() => o.formData, () => {
|
|
3497
|
-
p.value = x(o.formData,
|
|
3515
|
+
p.value = x(o.formData, d);
|
|
3498
3516
|
}, {
|
|
3499
3517
|
deep: !0
|
|
3500
3518
|
}), a({
|
|
3501
3519
|
elAutocomplete: t
|
|
3502
|
-
}), (r,
|
|
3520
|
+
}), (r, i) => (b(), $(s(Wa), K({
|
|
3503
3521
|
ref_key: "input",
|
|
3504
3522
|
ref: t,
|
|
3505
3523
|
modelValue: p.value,
|
|
3506
|
-
"onUpdate:modelValue":
|
|
3524
|
+
"onUpdate:modelValue": i[0] || (i[0] = (m) => p.value = m),
|
|
3507
3525
|
onChange: c
|
|
3508
|
-
}, r.$attrs),
|
|
3526
|
+
}, r.$attrs), ve({ _: 2 }, [
|
|
3509
3527
|
W(r.$slots, (m, f) => ({
|
|
3510
3528
|
name: f,
|
|
3511
3529
|
fn: g(() => [
|
|
@@ -3518,26 +3536,26 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
3518
3536
|
__name: "JaRadioGroup",
|
|
3519
3537
|
emits: ["change"],
|
|
3520
3538
|
setup(e, { expose: a, emit: l }) {
|
|
3521
|
-
const t = h({}), o = M("aceFormModel"),
|
|
3539
|
+
const t = h({}), o = M("aceFormModel"), d = M("aceFormItemProp"), u = M("aceFormValidator"), n = l;
|
|
3522
3540
|
function c(r) {
|
|
3523
|
-
|
|
3541
|
+
u.removeFieldError(d), re(o.formData, d, p.value), n("change", r);
|
|
3524
3542
|
}
|
|
3525
|
-
const p = h(x(o.formData,
|
|
3543
|
+
const p = h(x(o.formData, d));
|
|
3526
3544
|
return T(() => o.formData, () => {
|
|
3527
|
-
p.value = x(o.formData,
|
|
3545
|
+
p.value = x(o.formData, d);
|
|
3528
3546
|
}, {
|
|
3529
3547
|
deep: !0
|
|
3530
3548
|
}), a({
|
|
3531
3549
|
focus: () => t.value.focus(),
|
|
3532
3550
|
blur: () => t.value.blur(),
|
|
3533
3551
|
elRadioGroup: t
|
|
3534
|
-
}), (r,
|
|
3552
|
+
}), (r, i) => (b(), $(s(Ka), K({
|
|
3535
3553
|
ref_key: "input",
|
|
3536
3554
|
ref: t,
|
|
3537
3555
|
modelValue: p.value,
|
|
3538
|
-
"onUpdate:modelValue":
|
|
3556
|
+
"onUpdate:modelValue": i[0] || (i[0] = (m) => p.value = m),
|
|
3539
3557
|
onChange: c
|
|
3540
|
-
}, r.$attrs),
|
|
3558
|
+
}, r.$attrs), ve({ _: 2 }, [
|
|
3541
3559
|
W(r.$slots, (m, f) => ({
|
|
3542
3560
|
name: f,
|
|
3543
3561
|
fn: g(() => [
|
|
@@ -3556,24 +3574,24 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
3556
3574
|
}),
|
|
3557
3575
|
emits: /* @__PURE__ */ Q(["change"], ["update:modelValue"]),
|
|
3558
3576
|
setup(e, { expose: a, emit: l }) {
|
|
3559
|
-
const t = le(), o = Qt(t),
|
|
3560
|
-
|
|
3561
|
-
}, r = ue(e, "modelValue"),
|
|
3562
|
-
T(() =>
|
|
3577
|
+
const t = le(), o = Qt(t), d = yt(t), u = e, n = h(), c = h([]), p = async () => {
|
|
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 = l, m = h();
|
|
3580
|
+
T(() => u.appName, p), p();
|
|
3563
3581
|
const f = {
|
|
3564
3582
|
label: (v) => v.caption ? v.caption : v.name,
|
|
3565
3583
|
isLeaf: (v) => !v.hasChildren
|
|
3566
3584
|
}, _ = h();
|
|
3567
3585
|
function I(v) {
|
|
3568
|
-
m.value =
|
|
3586
|
+
m.value = y(v, c.value), i("change", v);
|
|
3569
3587
|
}
|
|
3570
|
-
function
|
|
3588
|
+
function y(v, S) {
|
|
3571
3589
|
for (let P = 0; P < S.length; P++) {
|
|
3572
3590
|
if (S[P].name === v)
|
|
3573
3591
|
return S[P];
|
|
3574
3592
|
const k = S[P].children;
|
|
3575
3593
|
if (k) {
|
|
3576
|
-
const C =
|
|
3594
|
+
const C = y(v, k);
|
|
3577
3595
|
if (C) return C;
|
|
3578
3596
|
}
|
|
3579
3597
|
}
|
|
@@ -3582,7 +3600,7 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
3582
3600
|
loadData: p,
|
|
3583
3601
|
currentRole: m,
|
|
3584
3602
|
elTreeSelect: _
|
|
3585
|
-
}), (v, S) => (
|
|
3603
|
+
}), (v, S) => (b(), $(s(gt), K({
|
|
3586
3604
|
ref_key: "select",
|
|
3587
3605
|
ref: _,
|
|
3588
3606
|
data: c.value,
|
|
@@ -3597,7 +3615,7 @@ const Be = /* @__PURE__ */ new Map(), Vt = {
|
|
|
3597
3615
|
onChange: I,
|
|
3598
3616
|
modelValue: r.value,
|
|
3599
3617
|
"onUpdate:modelValue": S[0] || (S[0] = (P) => r.value = P)
|
|
3600
|
-
}),
|
|
3618
|
+
}), ve({ _: 2 }, [
|
|
3601
3619
|
W(v.$slots, (P, k) => ({
|
|
3602
3620
|
name: k,
|
|
3603
3621
|
fn: g(() => [
|
|
@@ -3631,7 +3649,7 @@ const Ar = /* @__PURE__ */ z({
|
|
|
3631
3649
|
}),
|
|
3632
3650
|
emits: /* @__PURE__ */ Q(["success"], ["update:modelValue"]),
|
|
3633
3651
|
setup(e, { emit: a }) {
|
|
3634
|
-
const l = ue(e, "modelValue"), t = e, o = a,
|
|
3652
|
+
const l = ue(e, "modelValue"), t = e, o = a, d = {
|
|
3635
3653
|
hasChildren: !1,
|
|
3636
3654
|
parentId: "0",
|
|
3637
3655
|
releaseSource: "",
|
|
@@ -3644,19 +3662,19 @@ const Ar = /* @__PURE__ */ z({
|
|
|
3644
3662
|
description: "",
|
|
3645
3663
|
id: "0",
|
|
3646
3664
|
name: ""
|
|
3647
|
-
},
|
|
3648
|
-
formData: { ...
|
|
3649
|
-
}), n = le(), c = gl(Object.keys(
|
|
3665
|
+
}, u = h({
|
|
3666
|
+
formData: { ...d }
|
|
3667
|
+
}), n = le(), c = gl(Object.keys(d), n), p = _e(n), r = Qt(n), i = h(), m = h(), f = h();
|
|
3650
3668
|
async function _() {
|
|
3651
|
-
if (
|
|
3669
|
+
if (u.value.formData = { ...d }, !t.appName)
|
|
3652
3670
|
throw new Error("rolePicker组件的appName属性不能为空");
|
|
3653
3671
|
f.value = await (await It()).getByName(t.appName);
|
|
3654
3672
|
}
|
|
3655
3673
|
async function I() {
|
|
3656
3674
|
var S, P;
|
|
3657
3675
|
if (!t.appName) return;
|
|
3658
|
-
const
|
|
3659
|
-
(P =
|
|
3676
|
+
const y = u.value.formData, v = (S = m.value) == null ? void 0 : S.currentRole;
|
|
3677
|
+
(P = i.value) == null || P.validate(() => r.create({
|
|
3660
3678
|
addTo: v ? {
|
|
3661
3679
|
id: v.id,
|
|
3662
3680
|
name: v.name,
|
|
@@ -3667,16 +3685,16 @@ const Ar = /* @__PURE__ */ z({
|
|
|
3667
3685
|
app: {
|
|
3668
3686
|
id: f.value.id
|
|
3669
3687
|
},
|
|
3670
|
-
description:
|
|
3671
|
-
name:
|
|
3672
|
-
caption:
|
|
3688
|
+
description: y.description,
|
|
3689
|
+
name: y.name,
|
|
3690
|
+
caption: y.caption
|
|
3673
3691
|
}).then((k) => {
|
|
3674
3692
|
o("success", k), l.value = !1;
|
|
3675
3693
|
}));
|
|
3676
3694
|
}
|
|
3677
|
-
return (
|
|
3678
|
-
const S =
|
|
3679
|
-
return
|
|
3695
|
+
return (y, v) => {
|
|
3696
|
+
const S = ye("ja-input-i18n-raw"), P = ye("ja-form");
|
|
3697
|
+
return b(), $(s(xt), {
|
|
3680
3698
|
"destroy-on-close": "",
|
|
3681
3699
|
"append-to-body": "",
|
|
3682
3700
|
title: "新建角色",
|
|
@@ -3693,17 +3711,17 @@ const Ar = /* @__PURE__ */ z({
|
|
|
3693
3711
|
shortcut: "Alt+Enter"
|
|
3694
3712
|
}, {
|
|
3695
3713
|
default: g(() => v[3] || (v[3] = [
|
|
3696
|
-
|
|
3714
|
+
G("确定 ")
|
|
3697
3715
|
])),
|
|
3698
3716
|
_: 1,
|
|
3699
3717
|
__: [3]
|
|
3700
3718
|
}, 8, ["loading"]),
|
|
3701
|
-
w(s(
|
|
3719
|
+
w(s(fe), {
|
|
3702
3720
|
size: "default",
|
|
3703
3721
|
onClick: v[1] || (v[1] = (k) => l.value = !1)
|
|
3704
3722
|
}, {
|
|
3705
3723
|
default: g(() => v[4] || (v[4] = [
|
|
3706
|
-
|
|
3724
|
+
G("取消")
|
|
3707
3725
|
])),
|
|
3708
3726
|
_: 1,
|
|
3709
3727
|
__: [4]
|
|
@@ -3712,8 +3730,8 @@ const Ar = /* @__PURE__ */ z({
|
|
|
3712
3730
|
default: g(() => [
|
|
3713
3731
|
w(P, {
|
|
3714
3732
|
ref_key: "formRef",
|
|
3715
|
-
ref:
|
|
3716
|
-
model:
|
|
3733
|
+
ref: i,
|
|
3734
|
+
model: u.value,
|
|
3717
3735
|
validator: s(c)
|
|
3718
3736
|
}, {
|
|
3719
3737
|
default: g(() => [
|
|
@@ -3754,8 +3772,8 @@ const Ar = /* @__PURE__ */ z({
|
|
|
3754
3772
|
w(S, {
|
|
3755
3773
|
"app-id": (k = f.value) == null ? void 0 : k.id,
|
|
3756
3774
|
size: "small",
|
|
3757
|
-
modelValue:
|
|
3758
|
-
"onUpdate:modelValue": v[0] || (v[0] = (C) =>
|
|
3775
|
+
modelValue: u.value.formData.caption,
|
|
3776
|
+
"onUpdate:modelValue": v[0] || (v[0] = (C) => u.value.formData.caption = C)
|
|
3759
3777
|
}, null, 8, ["app-id", "modelValue"])
|
|
3760
3778
|
];
|
|
3761
3779
|
}),
|
|
@@ -3795,11 +3813,11 @@ const Ar = /* @__PURE__ */ z({
|
|
|
3795
3813
|
var c;
|
|
3796
3814
|
l.value = n.name, (c = o.value) == null || c.loadData();
|
|
3797
3815
|
}
|
|
3798
|
-
const o = h(),
|
|
3799
|
-
function
|
|
3800
|
-
|
|
3816
|
+
const o = h(), d = h(!1);
|
|
3817
|
+
function u() {
|
|
3818
|
+
d.value = !0;
|
|
3801
3819
|
}
|
|
3802
|
-
return (n, c) => (
|
|
3820
|
+
return (n, c) => (b(), N("div", Dr, [
|
|
3803
3821
|
w(s(Ct), K({
|
|
3804
3822
|
ref_key: "picker",
|
|
3805
3823
|
ref: o,
|
|
@@ -3808,7 +3826,7 @@ const Ar = /* @__PURE__ */ z({
|
|
|
3808
3826
|
}, n.$attrs, {
|
|
3809
3827
|
modelValue: l.value,
|
|
3810
3828
|
"onUpdate:modelValue": c[1] || (c[1] = (p) => l.value = p)
|
|
3811
|
-
}),
|
|
3829
|
+
}), ve({
|
|
3812
3830
|
footer: g(() => [
|
|
3813
3831
|
w(s(se), {
|
|
3814
3832
|
link: "",
|
|
@@ -3816,17 +3834,17 @@ const Ar = /* @__PURE__ */ z({
|
|
|
3816
3834
|
icon: s(Ee),
|
|
3817
3835
|
shortcut: "Alt+I",
|
|
3818
3836
|
style: { width: "100%" },
|
|
3819
|
-
onClick:
|
|
3837
|
+
onClick: u
|
|
3820
3838
|
}, {
|
|
3821
3839
|
default: g(() => c[2] || (c[2] = [
|
|
3822
|
-
|
|
3840
|
+
G(" 新建角色(Alt+I) ")
|
|
3823
3841
|
])),
|
|
3824
3842
|
_: 1,
|
|
3825
3843
|
__: [2]
|
|
3826
3844
|
}, 8, ["icon"]),
|
|
3827
3845
|
w(Ar, {
|
|
3828
|
-
modelValue:
|
|
3829
|
-
"onUpdate:modelValue": c[0] || (c[0] = (p) =>
|
|
3846
|
+
modelValue: d.value,
|
|
3847
|
+
"onUpdate:modelValue": c[0] || (c[0] = (p) => d.value = p),
|
|
3830
3848
|
"app-name": a.appName,
|
|
3831
3849
|
onSuccess: t
|
|
3832
3850
|
}, null, 8, ["modelValue", "app-name"])
|
|
@@ -3842,30 +3860,30 @@ const Ar = /* @__PURE__ */ z({
|
|
|
3842
3860
|
]), 1040, ["app-name", "modelValue"])
|
|
3843
3861
|
]));
|
|
3844
3862
|
}
|
|
3845
|
-
}), Sa = /* @__PURE__ */ pe(Er, [["__scopeId", "data-v-
|
|
3863
|
+
}), Sa = /* @__PURE__ */ pe(Er, [["__scopeId", "data-v-dd3083a0"]]), Sr = /* @__PURE__ */ z({
|
|
3846
3864
|
__name: "RolePicker",
|
|
3847
3865
|
props: {
|
|
3848
3866
|
appName: {}
|
|
3849
3867
|
},
|
|
3850
3868
|
emits: ["change"],
|
|
3851
3869
|
setup(e, { emit: a }) {
|
|
3852
|
-
const l = e, t = h(), o = M("aceFormModel"),
|
|
3870
|
+
const l = e, t = h(), o = M("aceFormModel"), d = M("aceFormItemProp"), u = M("aceFormValidator"), n = a;
|
|
3853
3871
|
function c(r) {
|
|
3854
|
-
|
|
3872
|
+
u.removeFieldError(d), re(o.formData, d, p.value), n("change", r);
|
|
3855
3873
|
}
|
|
3856
|
-
const p = h(x(o.formData,
|
|
3874
|
+
const p = h(x(o.formData, d));
|
|
3857
3875
|
return T(() => o.formData, () => {
|
|
3858
|
-
p.value = x(o.formData,
|
|
3876
|
+
p.value = x(o.formData, d);
|
|
3859
3877
|
}, {
|
|
3860
3878
|
deep: !0
|
|
3861
|
-
}), (r,
|
|
3879
|
+
}), (r, i) => (b(), $(Sa, K({
|
|
3862
3880
|
ref_key: "picker",
|
|
3863
3881
|
ref: t,
|
|
3864
3882
|
"app-name": l.appName,
|
|
3865
3883
|
modelValue: p.value,
|
|
3866
|
-
"onUpdate:modelValue":
|
|
3884
|
+
"onUpdate:modelValue": i[0] || (i[0] = (m) => p.value = m),
|
|
3867
3885
|
onChange: c
|
|
3868
|
-
}, r.$attrs),
|
|
3886
|
+
}, r.$attrs), ve({ _: 2 }, [
|
|
3869
3887
|
W(r.$slots, (m, f) => ({
|
|
3870
3888
|
name: f,
|
|
3871
3889
|
fn: g(() => [
|
|
@@ -3886,29 +3904,29 @@ const Ar = /* @__PURE__ */ z({
|
|
|
3886
3904
|
}),
|
|
3887
3905
|
emits: ["update:modelValue"],
|
|
3888
3906
|
setup(e) {
|
|
3889
|
-
const a = le(), l = Xa(a), t = e, o = h(),
|
|
3907
|
+
const a = le(), l = Xa(a), t = e, o = h(), d = h(), u = ue(e, "modelValue");
|
|
3890
3908
|
je(() => {
|
|
3891
3909
|
n();
|
|
3892
3910
|
});
|
|
3893
3911
|
async function n() {
|
|
3894
|
-
console.log("load channels of app " + t.appName), t.appName && (o.value = await l.getAll(t.appName),
|
|
3912
|
+
console.log("load channels of app " + t.appName), t.appName && (o.value = await l.getAll(t.appName), d.value = o.value);
|
|
3895
3913
|
}
|
|
3896
3914
|
function c(p) {
|
|
3897
3915
|
var r;
|
|
3898
|
-
|
|
3916
|
+
d.value = ((r = o.value) == null ? void 0 : r.filter((i) => i.name.indexOf(p) > -1)) ?? [];
|
|
3899
3917
|
}
|
|
3900
|
-
return T(() => t.appName, n), (p, r) => (
|
|
3918
|
+
return T(() => t.appName, n), (p, r) => (b(), $(s(Ae), K({
|
|
3901
3919
|
filterable: "",
|
|
3902
3920
|
"filter-method": c,
|
|
3903
3921
|
"value-key": "id",
|
|
3904
|
-
modelValue:
|
|
3905
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
|
3922
|
+
modelValue: u.value,
|
|
3923
|
+
"onUpdate:modelValue": r[0] || (r[0] = (i) => u.value = i)
|
|
3906
3924
|
}, p.$attrs), {
|
|
3907
3925
|
default: g(() => [
|
|
3908
|
-
(
|
|
3909
|
-
key:
|
|
3910
|
-
label:
|
|
3911
|
-
value:
|
|
3926
|
+
(b(!0), N(ne, null, W(d.value, (i) => (b(), $(s(Ze), {
|
|
3927
|
+
key: i.id,
|
|
3928
|
+
label: i.name,
|
|
3929
|
+
value: i
|
|
3912
3930
|
}, null, 8, ["label", "value"]))), 128))
|
|
3913
3931
|
]),
|
|
3914
3932
|
_: 1
|
|
@@ -3918,19 +3936,19 @@ const Ar = /* @__PURE__ */ z({
|
|
|
3918
3936
|
__name: "JaChannelPicker",
|
|
3919
3937
|
emits: ["change"],
|
|
3920
3938
|
setup(e, { emit: a }) {
|
|
3921
|
-
const l = M("aceFormModel"), t = M("aceFormItemProp"), o = M("aceFormValidator"),
|
|
3922
|
-
function
|
|
3923
|
-
o.removeFieldError(t), re(l.formData, t, n.value),
|
|
3939
|
+
const l = M("aceFormModel"), t = M("aceFormItemProp"), o = M("aceFormValidator"), d = a;
|
|
3940
|
+
function u(c) {
|
|
3941
|
+
o.removeFieldError(t), re(l.formData, t, n.value), d("change", c);
|
|
3924
3942
|
}
|
|
3925
3943
|
const n = h(x(l.formData, t));
|
|
3926
3944
|
return T(() => l.formData, () => {
|
|
3927
3945
|
n.value = x(l.formData, t);
|
|
3928
3946
|
}, {
|
|
3929
3947
|
deep: !0
|
|
3930
|
-
}), (c, p) => (
|
|
3948
|
+
}), (c, p) => (b(), $(Ta, K({
|
|
3931
3949
|
modelValue: n.value,
|
|
3932
3950
|
"onUpdate:modelValue": p[0] || (p[0] = (r) => n.value = r),
|
|
3933
|
-
onChange:
|
|
3951
|
+
onChange: u
|
|
3934
3952
|
}, c.$attrs), null, 16, ["modelValue"]));
|
|
3935
3953
|
}
|
|
3936
3954
|
}), Pr = R(Mr), Ur = R(Ta), zr = { class: "ja-property-picker__dropdown" }, Br = { key: 0 }, Rr = ["onMouseenter", "onClick"], Lr = {
|
|
@@ -3950,12 +3968,12 @@ const Ar = /* @__PURE__ */ z({
|
|
|
3950
3968
|
setup(e) {
|
|
3951
3969
|
const a = e;
|
|
3952
3970
|
let l;
|
|
3953
|
-
const t = ue(e, "modelValue"), o = h([]),
|
|
3954
|
-
let
|
|
3971
|
+
const t = ue(e, "modelValue"), o = h([]), d = le(), u = Za(d), n = h(), c = {}, p = h(0), r = _e(d), i = h(!1), m = h(!1), f = h(), _ = h(), I = h("");
|
|
3972
|
+
let y = h(!1);
|
|
3955
3973
|
async function v() {
|
|
3956
3974
|
if (l || (l = a.entityId), l) {
|
|
3957
3975
|
let E = c[l];
|
|
3958
|
-
E || (E = await
|
|
3976
|
+
E || (E = await u.getProperties(l), c[l] = E), n.value = E;
|
|
3959
3977
|
} else
|
|
3960
3978
|
n.value = [];
|
|
3961
3979
|
}
|
|
@@ -3992,7 +4010,7 @@ const Ar = /* @__PURE__ */ z({
|
|
|
3992
4010
|
var V;
|
|
3993
4011
|
(V = o.value) == null || V.pop();
|
|
3994
4012
|
}
|
|
3995
|
-
function
|
|
4013
|
+
function Z() {
|
|
3996
4014
|
var D;
|
|
3997
4015
|
if (!l) return;
|
|
3998
4016
|
const E = c[l];
|
|
@@ -4000,10 +4018,10 @@ const Ar = /* @__PURE__ */ z({
|
|
|
4000
4018
|
const V = (D = f.value) == null ? void 0 : D.value;
|
|
4001
4019
|
V && V.length > 0 ? n.value = [...E].filter((B) => B.name.toLowerCase().indexOf(V.toLowerCase()) > -1) : n.value = E, X();
|
|
4002
4020
|
}
|
|
4003
|
-
function
|
|
4021
|
+
function H() {
|
|
4004
4022
|
n.value && (p.value < n.value.length - 1 && p.value++, X());
|
|
4005
4023
|
}
|
|
4006
|
-
function
|
|
4024
|
+
function me() {
|
|
4007
4025
|
p.value > 0 && p.value--, X();
|
|
4008
4026
|
}
|
|
4009
4027
|
function be() {
|
|
@@ -4019,9 +4037,9 @@ const Ar = /* @__PURE__ */ z({
|
|
|
4019
4037
|
E && Ie(() => {
|
|
4020
4038
|
var V;
|
|
4021
4039
|
(V = f.value) == null || V.focus();
|
|
4022
|
-
}),
|
|
4040
|
+
}), y.value = E;
|
|
4023
4041
|
}
|
|
4024
|
-
const L =
|
|
4042
|
+
const L = ge(() => {
|
|
4025
4043
|
var E;
|
|
4026
4044
|
return o.value && o.value.length > 0 ? (E = o.value) == null ? void 0 : E.join(".") : "请选择属性";
|
|
4027
4045
|
}), X = () => {
|
|
@@ -4055,21 +4073,21 @@ const Ar = /* @__PURE__ */ z({
|
|
|
4055
4073
|
ee();
|
|
4056
4074
|
}), t.value && t.value.length > 0 ? ee() : v(), T(n, () => {
|
|
4057
4075
|
p.value = 0, X();
|
|
4058
|
-
}), (E, V) => (
|
|
4076
|
+
}), (E, V) => (b(), $(s(Nt), { onVisibleChange: O }, {
|
|
4059
4077
|
dropdown: g(() => [
|
|
4060
4078
|
j("div", zr, [
|
|
4061
4079
|
j("div", {
|
|
4062
|
-
class: He(["el-input-tag el-input-tag--small el-input-tag__wrapper", { "is-hovering":
|
|
4063
|
-
onMouseenter: V[3] || (V[3] = (D) =>
|
|
4064
|
-
onMouseleave: V[4] || (V[4] = (D) =>
|
|
4080
|
+
class: He(["el-input-tag el-input-tag--small el-input-tag__wrapper", { "is-hovering": i.value, "is-focused": m.value }]),
|
|
4081
|
+
onMouseenter: V[3] || (V[3] = (D) => i.value = !0),
|
|
4082
|
+
onMouseleave: V[4] || (V[4] = (D) => i.value = !1)
|
|
4065
4083
|
}, [
|
|
4066
|
-
(
|
|
4084
|
+
(b(!0), N(ne, null, W(o.value, (D) => (b(), $(s(Dt), {
|
|
4067
4085
|
id: D,
|
|
4068
4086
|
onClose: (B) => q(),
|
|
4069
4087
|
closable: ""
|
|
4070
4088
|
}, {
|
|
4071
4089
|
default: g(() => [
|
|
4072
|
-
|
|
4090
|
+
G(ae(D), 1)
|
|
4073
4091
|
]),
|
|
4074
4092
|
_: 2
|
|
4075
4093
|
}, 1032, ["id", "onClose"]))), 256)),
|
|
@@ -4085,16 +4103,16 @@ const Ar = /* @__PURE__ */ z({
|
|
|
4085
4103
|
onBlur: V[2] || (V[2] = (D) => m.value = !1),
|
|
4086
4104
|
onKeydown: [
|
|
4087
4105
|
Ve(A, ["delete"]),
|
|
4088
|
-
Ve(
|
|
4089
|
-
Ve(
|
|
4106
|
+
Ve(H, ["down"]),
|
|
4107
|
+
Ve(me, ["up"]),
|
|
4090
4108
|
Ve(be, ["enter"])
|
|
4091
4109
|
],
|
|
4092
|
-
onInput:
|
|
4110
|
+
onInput: Z
|
|
4093
4111
|
}, null, 544), [
|
|
4094
4112
|
[La, I.value]
|
|
4095
4113
|
])
|
|
4096
4114
|
], 34),
|
|
4097
|
-
Y((
|
|
4115
|
+
Y((b(), $(s(Ce), {
|
|
4098
4116
|
height: "300px",
|
|
4099
4117
|
always: "",
|
|
4100
4118
|
ref_key: "scrollbar",
|
|
@@ -4103,16 +4121,16 @@ const Ar = /* @__PURE__ */ z({
|
|
|
4103
4121
|
default: g(() => {
|
|
4104
4122
|
var D;
|
|
4105
4123
|
return [
|
|
4106
|
-
((D = n.value) == null ? void 0 : D.length) ?? !1 ? (
|
|
4107
|
-
(
|
|
4124
|
+
((D = n.value) == null ? void 0 : D.length) ?? !1 ? (b(), N("ul", Br, [
|
|
4125
|
+
(b(!0), N(ne, null, W(n.value, (B, ie) => (b(), N("li", {
|
|
4108
4126
|
key: B.id,
|
|
4109
4127
|
onMouseenter: (J) => k(ie),
|
|
4110
4128
|
onClick: (J) => F(B),
|
|
4111
4129
|
class: He(C(ie))
|
|
4112
4130
|
}, [
|
|
4113
|
-
B.dataType === "ENTITY" ? (
|
|
4131
|
+
B.dataType === "ENTITY" ? (b(), N("span", Lr, ae(P(B)), 1)) : (b(), N("span", Nr, ae(P(B)), 1))
|
|
4114
4132
|
], 42, Rr))), 128))
|
|
4115
|
-
])) : (
|
|
4133
|
+
])) : (b(), $(s(jt), {
|
|
4116
4134
|
key: 1,
|
|
4117
4135
|
description: "无可选属性"
|
|
4118
4136
|
}))
|
|
@@ -4127,13 +4145,13 @@ const Ar = /* @__PURE__ */ z({
|
|
|
4127
4145
|
default: g(() => [
|
|
4128
4146
|
w(s(Dt), { type: "primary" }, {
|
|
4129
4147
|
default: g(() => [
|
|
4130
|
-
|
|
4131
|
-
s(
|
|
4148
|
+
G(ae(L.value) + " ", 1),
|
|
4149
|
+
s(y) ? (b(), $(s(ce), { key: 0 }, {
|
|
4132
4150
|
default: g(() => [
|
|
4133
4151
|
w(s(il))
|
|
4134
4152
|
]),
|
|
4135
4153
|
_: 1
|
|
4136
|
-
})) : (
|
|
4154
|
+
})) : (b(), $(s(ce), { key: 1 }, {
|
|
4137
4155
|
default: g(() => [
|
|
4138
4156
|
w(s(ea))
|
|
4139
4157
|
]),
|
|
@@ -4146,23 +4164,23 @@ const Ar = /* @__PURE__ */ z({
|
|
|
4146
4164
|
_: 1
|
|
4147
4165
|
}));
|
|
4148
4166
|
}
|
|
4149
|
-
}), Fa = /* @__PURE__ */ pe(Jr, [["__scopeId", "data-v-
|
|
4167
|
+
}), Fa = /* @__PURE__ */ pe(Jr, [["__scopeId", "data-v-f2487dc4"]]), Or = /* @__PURE__ */ z({
|
|
4150
4168
|
__name: "JaPropertyPicker",
|
|
4151
4169
|
emits: ["change"],
|
|
4152
4170
|
setup(e, { emit: a }) {
|
|
4153
|
-
const l = M("aceFormModel"), t = M("aceFormItemProp"), o = M("aceFormValidator"),
|
|
4154
|
-
function
|
|
4155
|
-
o.removeFieldError(t), re(l.formData, t, n.value),
|
|
4171
|
+
const l = M("aceFormModel"), t = M("aceFormItemProp"), o = M("aceFormValidator"), d = a;
|
|
4172
|
+
function u(c) {
|
|
4173
|
+
o.removeFieldError(t), re(l.formData, t, n.value), d("change", c);
|
|
4156
4174
|
}
|
|
4157
4175
|
const n = h(x(l.formData, t) ?? "");
|
|
4158
4176
|
return T(() => l.formData, () => {
|
|
4159
4177
|
n.value = x(l.formData, t) ?? "";
|
|
4160
4178
|
}, {
|
|
4161
4179
|
deep: !0
|
|
4162
|
-
}), (c, p) => (
|
|
4180
|
+
}), (c, p) => (b(), $(Fa, K({
|
|
4163
4181
|
modelValue: n.value,
|
|
4164
4182
|
"onUpdate:modelValue": p[0] || (p[0] = (r) => n.value = r),
|
|
4165
|
-
onChange:
|
|
4183
|
+
onChange: u
|
|
4166
4184
|
}, c.$attrs), null, 16, ["modelValue"]));
|
|
4167
4185
|
}
|
|
4168
4186
|
}), jr = R(Or), xr = R(Fa), qr = /* @__PURE__ */ z({
|
|
@@ -4177,28 +4195,28 @@ const Ar = /* @__PURE__ */ z({
|
|
|
4177
4195
|
emits: /* @__PURE__ */ Q(["success"], ["update:modelValue"]),
|
|
4178
4196
|
async setup(e, { emit: a }) {
|
|
4179
4197
|
let l, t;
|
|
4180
|
-
const o = ue(e, "modelValue"),
|
|
4198
|
+
const o = ue(e, "modelValue"), d = e, u = le(), n = Xt(u), c = h(), p = h(""), r = h({}), i = a, m = ([l, t] = mt(() => It()), l = await l, t(), l);
|
|
4181
4199
|
function f() {
|
|
4182
|
-
I(), p.value =
|
|
4200
|
+
I(), p.value = d.preKey ?? "", r.value = {};
|
|
4183
4201
|
}
|
|
4184
4202
|
async function _() {
|
|
4185
|
-
const
|
|
4203
|
+
const y = {
|
|
4186
4204
|
key: p.value,
|
|
4187
4205
|
messages: r.value,
|
|
4188
4206
|
appInstance: {
|
|
4189
|
-
id:
|
|
4207
|
+
id: d.appId
|
|
4190
4208
|
}
|
|
4191
4209
|
};
|
|
4192
|
-
await n.createBundle(
|
|
4210
|
+
await n.createBundle(y), o.value = !1, i("success", p.value);
|
|
4193
4211
|
}
|
|
4194
4212
|
async function I() {
|
|
4195
|
-
c.value = await m.getById(
|
|
4213
|
+
c.value = await m.getById(d.appId);
|
|
4196
4214
|
}
|
|
4197
|
-
return T(() =>
|
|
4215
|
+
return T(() => d.appId, async () => {
|
|
4198
4216
|
await I();
|
|
4199
|
-
}), (
|
|
4217
|
+
}), (y, v) => {
|
|
4200
4218
|
const S = Lt("focus");
|
|
4201
|
-
return
|
|
4219
|
+
return b(), $(s(xt), {
|
|
4202
4220
|
"destroy-on-close": "",
|
|
4203
4221
|
"append-to-body": "",
|
|
4204
4222
|
modelValue: o.value,
|
|
@@ -4214,18 +4232,18 @@ const Ar = /* @__PURE__ */ z({
|
|
|
4214
4232
|
onClick: _
|
|
4215
4233
|
}, {
|
|
4216
4234
|
default: g(() => v[3] || (v[3] = [
|
|
4217
|
-
|
|
4235
|
+
G("确定 ")
|
|
4218
4236
|
])),
|
|
4219
4237
|
_: 1,
|
|
4220
4238
|
__: [3]
|
|
4221
4239
|
}),
|
|
4222
|
-
w(s(
|
|
4240
|
+
w(s(fe), {
|
|
4223
4241
|
size: "default",
|
|
4224
4242
|
plain: "",
|
|
4225
4243
|
onClick: v[1] || (v[1] = (P) => o.value = !1)
|
|
4226
4244
|
}, {
|
|
4227
4245
|
default: g(() => v[4] || (v[4] = [
|
|
4228
|
-
|
|
4246
|
+
G("取消")
|
|
4229
4247
|
])),
|
|
4230
4248
|
_: 1,
|
|
4231
4249
|
__: [4]
|
|
@@ -4253,7 +4271,7 @@ const Ar = /* @__PURE__ */ z({
|
|
|
4253
4271
|
]),
|
|
4254
4272
|
_: 1
|
|
4255
4273
|
}),
|
|
4256
|
-
(
|
|
4274
|
+
(b(!0), N(ne, null, W((P = c.value) == null ? void 0 : P.supportedLocales, (k) => (b(), $(s(We), {
|
|
4257
4275
|
key: k,
|
|
4258
4276
|
label: k
|
|
4259
4277
|
}, {
|
|
@@ -4292,11 +4310,11 @@ const Ar = /* @__PURE__ */ z({
|
|
|
4292
4310
|
emits: /* @__PURE__ */ Q(["change", "focus", "blur"], ["update:modelValue"]),
|
|
4293
4311
|
async setup(e, { expose: a, emit: l }) {
|
|
4294
4312
|
let t, o;
|
|
4295
|
-
const
|
|
4313
|
+
const d = e, u = ue(e, "modelValue"), n = le(), c = Xt(n), p = qt().locale, r = h(), i = h(!1), m = h(!1), f = h(), _ = h(""), I = ([t, o] = mt(() => It()), t = await t, o(), t), y = h(""), v = h(""), S = h(), P = l, k = wt(F, 500);
|
|
4296
4314
|
let C;
|
|
4297
4315
|
async function F(A) {
|
|
4298
|
-
if (A || (A =
|
|
4299
|
-
const O = await I.getById(
|
|
4316
|
+
if (A || (A = u.value), !d.appId) return;
|
|
4317
|
+
const O = await I.getById(d.appId);
|
|
4300
4318
|
if (_.value = O.name, !A || !_.value) {
|
|
4301
4319
|
v.value = "";
|
|
4302
4320
|
return;
|
|
@@ -4310,30 +4328,30 @@ const Ar = /* @__PURE__ */ z({
|
|
|
4310
4328
|
ee && (v.value = ee.message);
|
|
4311
4329
|
}
|
|
4312
4330
|
async function q(A) {
|
|
4313
|
-
|
|
4331
|
+
y.value = A, r.value = await c.searchKeys(_.value, A);
|
|
4314
4332
|
}
|
|
4315
|
-
async function
|
|
4333
|
+
async function Z() {
|
|
4316
4334
|
var A;
|
|
4317
|
-
|
|
4335
|
+
i.value = !0, await Ie(), P("focus"), (A = f.value) == null || A.focus();
|
|
4318
4336
|
}
|
|
4319
|
-
function
|
|
4337
|
+
function H() {
|
|
4320
4338
|
C = setTimeout(() => {
|
|
4321
|
-
|
|
4339
|
+
i.value = !1;
|
|
4322
4340
|
}, 200), P("blur");
|
|
4323
4341
|
}
|
|
4324
4342
|
$e(() => {
|
|
4325
4343
|
k.cancel(), C && clearTimeout(C);
|
|
4326
|
-
}), T(
|
|
4344
|
+
}), T(u, () => {
|
|
4327
4345
|
k();
|
|
4328
4346
|
}, {
|
|
4329
4347
|
deep: !0,
|
|
4330
4348
|
immediate: !0
|
|
4331
4349
|
});
|
|
4332
|
-
function
|
|
4350
|
+
function me(A) {
|
|
4333
4351
|
P("change", A);
|
|
4334
4352
|
}
|
|
4335
4353
|
async function be(A) {
|
|
4336
|
-
await q(
|
|
4354
|
+
await q(y.value), u.value = "{" + A + "}", S.value.focus;
|
|
4337
4355
|
}
|
|
4338
4356
|
return a({
|
|
4339
4357
|
focus() {
|
|
@@ -4342,18 +4360,18 @@ const Ar = /* @__PURE__ */ z({
|
|
|
4342
4360
|
blur() {
|
|
4343
4361
|
f == null || f.value.blur();
|
|
4344
4362
|
}
|
|
4345
|
-
}), (A, O) => (
|
|
4363
|
+
}), (A, O) => (b(), N(ne, null, [
|
|
4346
4364
|
Y(w(s(we), {
|
|
4347
4365
|
ref_key: "selectI18n",
|
|
4348
4366
|
ref: S,
|
|
4349
|
-
onFocus:
|
|
4367
|
+
onFocus: Z,
|
|
4350
4368
|
modelValue: v.value,
|
|
4351
4369
|
"onUpdate:modelValue": O[0] || (O[0] = (L) => v.value = L),
|
|
4352
4370
|
size: A.size,
|
|
4353
4371
|
disabled: A.disabled,
|
|
4354
4372
|
type: A.textarea ? "textarea" : void 0
|
|
4355
4373
|
}, null, 8, ["modelValue", "size", "disabled", "type"]), [
|
|
4356
|
-
[
|
|
4374
|
+
[he, !i.value]
|
|
4357
4375
|
]),
|
|
4358
4376
|
Y(w(s(Ae), {
|
|
4359
4377
|
ref_key: "select",
|
|
@@ -4364,13 +4382,13 @@ const Ar = /* @__PURE__ */ z({
|
|
|
4364
4382
|
disabled: A.disabled,
|
|
4365
4383
|
"default-first-option": "",
|
|
4366
4384
|
"remote-show-suffix": "",
|
|
4367
|
-
onChange:
|
|
4385
|
+
onChange: me,
|
|
4368
4386
|
size: A.size,
|
|
4369
4387
|
"allow-create": "",
|
|
4370
4388
|
clearable: "",
|
|
4371
|
-
onBlur:
|
|
4372
|
-
modelValue:
|
|
4373
|
-
"onUpdate:modelValue": O[2] || (O[2] = (L) =>
|
|
4389
|
+
onBlur: H,
|
|
4390
|
+
modelValue: u.value,
|
|
4391
|
+
"onUpdate:modelValue": O[2] || (O[2] = (L) => u.value = L)
|
|
4374
4392
|
}, {
|
|
4375
4393
|
footer: g(() => [
|
|
4376
4394
|
w(s(se), {
|
|
@@ -4381,14 +4399,14 @@ const Ar = /* @__PURE__ */ z({
|
|
|
4381
4399
|
shortcut: "Alt+I"
|
|
4382
4400
|
}, {
|
|
4383
4401
|
default: g(() => O[4] || (O[4] = [
|
|
4384
|
-
|
|
4402
|
+
G(" 新建国际化文本(Alt+I) ")
|
|
4385
4403
|
])),
|
|
4386
4404
|
_: 1,
|
|
4387
4405
|
__: [4]
|
|
4388
4406
|
})
|
|
4389
4407
|
]),
|
|
4390
4408
|
default: g(() => [
|
|
4391
|
-
(
|
|
4409
|
+
(b(!0), N(ne, null, W(r.value, (L) => (b(), $(s(Ze), {
|
|
4392
4410
|
key: L,
|
|
4393
4411
|
value: "{" + L + "}",
|
|
4394
4412
|
label: "{" + L + "}"
|
|
@@ -4396,11 +4414,11 @@ const Ar = /* @__PURE__ */ z({
|
|
|
4396
4414
|
]),
|
|
4397
4415
|
_: 1
|
|
4398
4416
|
}, 8, ["disabled", "size", "modelValue"]), [
|
|
4399
|
-
[
|
|
4417
|
+
[he, i.value]
|
|
4400
4418
|
]),
|
|
4401
4419
|
w(qr, {
|
|
4402
4420
|
"app-id": A.appId,
|
|
4403
|
-
"pre-key":
|
|
4421
|
+
"pre-key": y.value,
|
|
4404
4422
|
modelValue: m.value,
|
|
4405
4423
|
"onUpdate:modelValue": O[3] || (O[3] = (L) => m.value = L),
|
|
4406
4424
|
onSuccess: be
|
|
@@ -4411,26 +4429,26 @@ const Ar = /* @__PURE__ */ z({
|
|
|
4411
4429
|
__name: "JaCheckboxGroup",
|
|
4412
4430
|
emits: ["change"],
|
|
4413
4431
|
setup(e, { expose: a, emit: l }) {
|
|
4414
|
-
const t = h({}), o = M("aceFormModel"),
|
|
4432
|
+
const t = h({}), o = M("aceFormModel"), d = M("aceFormItemProp"), u = M("aceFormValidator"), n = l;
|
|
4415
4433
|
function c(r) {
|
|
4416
|
-
|
|
4434
|
+
u.removeFieldError(d), re(o.formData, d, p.value), n("change", r);
|
|
4417
4435
|
}
|
|
4418
|
-
const p = h(x(o.formData,
|
|
4436
|
+
const p = h(x(o.formData, d));
|
|
4419
4437
|
return T(() => o.formData, () => {
|
|
4420
|
-
p.value = x(o.formData,
|
|
4438
|
+
p.value = x(o.formData, d);
|
|
4421
4439
|
}, {
|
|
4422
4440
|
deep: !0
|
|
4423
4441
|
}), a({
|
|
4424
4442
|
focus: () => t.value.focus(),
|
|
4425
4443
|
blur: () => t.value.blur(),
|
|
4426
4444
|
elCheckboxGroup: t
|
|
4427
|
-
}), (r,
|
|
4445
|
+
}), (r, i) => (b(), $(s(Ya), K({
|
|
4428
4446
|
ref_key: "input",
|
|
4429
4447
|
ref: t,
|
|
4430
4448
|
modelValue: p.value,
|
|
4431
|
-
"onUpdate:modelValue":
|
|
4449
|
+
"onUpdate:modelValue": i[0] || (i[0] = (m) => p.value = m),
|
|
4432
4450
|
onChange: c
|
|
4433
|
-
}, r.$attrs),
|
|
4451
|
+
}, r.$attrs), ve({ _: 2 }, [
|
|
4434
4452
|
W(r.$slots, (m, f) => ({
|
|
4435
4453
|
name: f,
|
|
4436
4454
|
fn: g(() => [
|
|
@@ -4456,24 +4474,24 @@ const Ar = /* @__PURE__ */ z({
|
|
|
4456
4474
|
}),
|
|
4457
4475
|
emits: ["update:modelValue"],
|
|
4458
4476
|
setup(e) {
|
|
4459
|
-
const a = e, l = h([]), t = h(!1), o = ue(e, "modelValue"),
|
|
4477
|
+
const a = e, l = h([]), t = h(!1), o = ue(e, "modelValue"), d = le(), u = el(d);
|
|
4460
4478
|
async function n() {
|
|
4461
|
-
!a.name || !a.serviceName || (t.value = !0,
|
|
4479
|
+
!a.name || !a.serviceName || (t.value = !0, u.queryByName(a.serviceName, a.name).then((r) => {
|
|
4462
4480
|
l.value = r.values;
|
|
4463
4481
|
}).finally(() => {
|
|
4464
4482
|
t.value = !1;
|
|
4465
4483
|
}));
|
|
4466
4484
|
}
|
|
4467
|
-
const c =
|
|
4485
|
+
const c = ge(() => a.multiple ? o.value.map((r) => r[a.keyField]) || [] : o.value[0] !== void 0 ? o.value[0][a.keyField] : ""), p = (r) => {
|
|
4468
4486
|
if (typeof r == "string") {
|
|
4469
|
-
const
|
|
4470
|
-
o.value =
|
|
4487
|
+
const i = l.value.find((m) => m[a.keyField] === r);
|
|
4488
|
+
o.value = i ? [i] : [];
|
|
4471
4489
|
} else
|
|
4472
|
-
o.value = l.value.filter((
|
|
4490
|
+
o.value = l.value.filter((i) => r.includes(i[a.keyField]));
|
|
4473
4491
|
};
|
|
4474
|
-
return n(), T(() => a.name, n), T(() => a.serviceName, n), (r,
|
|
4492
|
+
return n(), T(() => a.name, n), T(() => a.serviceName, n), (r, i) => {
|
|
4475
4493
|
const m = Lt("loading");
|
|
4476
|
-
return Y((
|
|
4494
|
+
return Y((b(), $(s(Ae), {
|
|
4477
4495
|
"model-value": c.value,
|
|
4478
4496
|
filterable: a.filterable,
|
|
4479
4497
|
multiple: a.multiple,
|
|
@@ -4481,7 +4499,7 @@ const Ar = /* @__PURE__ */ z({
|
|
|
4481
4499
|
onChange: p
|
|
4482
4500
|
}, {
|
|
4483
4501
|
default: g(() => [
|
|
4484
|
-
(
|
|
4502
|
+
(b(!0), N(ne, null, W(l.value, (f) => (b(), $(s(Ze), {
|
|
4485
4503
|
key: f.id,
|
|
4486
4504
|
value: f[a.keyField],
|
|
4487
4505
|
label: f.text
|
|
@@ -4603,7 +4621,7 @@ function ns(e) {
|
|
|
4603
4621
|
);
|
|
4604
4622
|
if (!window.microApp)
|
|
4605
4623
|
throw new Error("无法获取到window.microApp。");
|
|
4606
|
-
const a = h(/* @__PURE__ */ new Set()), l = (p, r = !0,
|
|
4624
|
+
const a = h(/* @__PURE__ */ new Set()), l = (p, r = !0, i = !0) => {
|
|
4607
4625
|
const m = {
|
|
4608
4626
|
sender: e,
|
|
4609
4627
|
// 将自己的appName填入sender字段
|
|
@@ -4612,17 +4630,17 @@ function ns(e) {
|
|
|
4612
4630
|
};
|
|
4613
4631
|
r ? window.microApp.forceDispatch(m) : window.microApp.dispatch(m, (f) => {
|
|
4614
4632
|
console.log("消息是否有返回值", f);
|
|
4615
|
-
}),
|
|
4633
|
+
}), i && u();
|
|
4616
4634
|
}, t = (p, r = !0) => {
|
|
4617
|
-
const
|
|
4635
|
+
const i = {
|
|
4618
4636
|
sender: "app-demo",
|
|
4619
4637
|
timestamp: Date.now(),
|
|
4620
4638
|
payload: p
|
|
4621
4639
|
};
|
|
4622
|
-
window.microApp.setGlobalData(
|
|
4640
|
+
window.microApp.setGlobalData(i), r && u();
|
|
4623
4641
|
}, o = (p, r = !0) => {
|
|
4624
4642
|
window.microApp.addGlobalDataListener(p, r);
|
|
4625
|
-
},
|
|
4643
|
+
}, d = () => window.microApp.getData(), u = () => {
|
|
4626
4644
|
window.microApp.clearData();
|
|
4627
4645
|
}, n = (p, r = !1) => {
|
|
4628
4646
|
window.microApp.addDataListener(p, r), a.value.add(p);
|
|
@@ -4636,9 +4654,9 @@ function ns(e) {
|
|
|
4636
4654
|
// 发送消息的方法
|
|
4637
4655
|
onMessage: n,
|
|
4638
4656
|
// 监听消息的方法
|
|
4639
|
-
clearCache:
|
|
4657
|
+
clearCache: u,
|
|
4640
4658
|
// 清除缓存
|
|
4641
|
-
getBaseAppData:
|
|
4659
|
+
getBaseAppData: d,
|
|
4642
4660
|
// 获取主应用下发的消息
|
|
4643
4661
|
offMessage: c,
|
|
4644
4662
|
// 移除指定监听函数
|
|
@@ -4712,6 +4730,5 @@ export {
|
|
|
4712
4730
|
It as useAppInstances,
|
|
4713
4731
|
gl as useBackendValidations,
|
|
4714
4732
|
ns as useBridge,
|
|
4715
|
-
_t as useRealms,
|
|
4716
4733
|
Pe as useTreeData
|
|
4717
4734
|
};
|