yuang-framework-ui-pc 1.1.71 → 1.1.73
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/es/yu-uims-role-dialog/components/role-dialog.js +24 -10
- package/es/yu-uims-role-dialog/components/role-list.d.ts +10 -36
- package/es/yu-uims-role-dialog/components/role-list.js +41 -7
- package/es/yu-uims-role-dialog/index.d.ts +1 -1
- package/es/yu-uims-role-dialog/index.js +12 -10
- package/es/yu-uims-user-dialog/components/user-dialog.js +28 -15
- package/es/yu-uims-user-dialog/components/user-list.d.ts +10 -92
- package/es/yu-uims-user-dialog/components/user-list.js +39 -7
- package/es/yu-uims-user-dialog/index.d.ts +1 -1
- package/es/yu-uims-user-dialog/index.js +15 -11
- package/lib/yu-uims-role-dialog/components/role-dialog.cjs +23 -9
- package/lib/yu-uims-role-dialog/components/role-list.cjs +40 -6
- package/lib/yu-uims-role-dialog/components/role-list.d.ts +10 -36
- package/lib/yu-uims-role-dialog/index.cjs +12 -10
- package/lib/yu-uims-role-dialog/index.d.ts +1 -1
- package/lib/yu-uims-user-dialog/components/user-dialog.cjs +27 -14
- package/lib/yu-uims-user-dialog/components/user-list.cjs +38 -6
- package/lib/yu-uims-user-dialog/components/user-list.d.ts +10 -92
- package/lib/yu-uims-user-dialog/index.cjs +15 -11
- package/lib/yu-uims-user-dialog/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -4,100 +4,18 @@ import { UimsOrganization } from 'yuang-framework-ui-common/lib/interface/uims/u
|
|
|
4
4
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
5
5
|
param: any;
|
|
6
6
|
/** 机构 */
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
gender?: string | undefined;
|
|
13
|
-
status?: number | undefined;
|
|
14
|
-
organizationId?: string | undefined;
|
|
15
|
-
isRecursiveOrganization?: {
|
|
16
|
-
valueOf: () => boolean;
|
|
17
|
-
} | undefined;
|
|
18
|
-
mobile?: string | undefined;
|
|
19
|
-
email?: string | undefined;
|
|
20
|
-
birthday?: string | undefined;
|
|
21
|
-
idCard?: string | undefined;
|
|
22
|
-
address?: string | undefined;
|
|
23
|
-
avatarCode?: string | undefined;
|
|
24
|
-
avatarUrl?: string | undefined;
|
|
25
|
-
ssoUser?: {
|
|
26
|
-
password?: string | undefined;
|
|
27
|
-
surePassword?: string | undefined;
|
|
28
|
-
rsaAesKey?: string | undefined;
|
|
29
|
-
id?: string | undefined;
|
|
30
|
-
parentId?: string | undefined;
|
|
31
|
-
uimsApplicationId?: string | undefined;
|
|
32
|
-
sequence?: number | undefined;
|
|
33
|
-
remark?: string | undefined;
|
|
34
|
-
createUserAccount?: string | undefined;
|
|
35
|
-
createUserName?: string | undefined;
|
|
36
|
-
createTime?: string | undefined;
|
|
37
|
-
lastUpdateUserAccount?: string | undefined;
|
|
38
|
-
lastUpdateUserName?: string | undefined;
|
|
39
|
-
lastUpdateTime?: Date | undefined;
|
|
40
|
-
} | undefined;
|
|
41
|
-
id?: string | undefined;
|
|
42
|
-
parentId?: string | undefined;
|
|
43
|
-
uimsApplicationId?: string | undefined;
|
|
44
|
-
sequence?: number | undefined;
|
|
45
|
-
remark?: string | undefined;
|
|
46
|
-
createUserAccount?: string | undefined;
|
|
47
|
-
createUserName?: string | undefined;
|
|
48
|
-
createTime?: string | undefined;
|
|
49
|
-
lastUpdateUserAccount?: string | undefined;
|
|
50
|
-
lastUpdateUserName?: string | undefined;
|
|
51
|
-
lastUpdateTime?: Date | undefined;
|
|
52
|
-
}[], UimsUser[] | {
|
|
53
|
-
account?: string | undefined;
|
|
54
|
-
name?: string | undefined;
|
|
55
|
-
gender?: string | undefined;
|
|
56
|
-
status?: number | undefined;
|
|
57
|
-
organizationId?: string | undefined;
|
|
58
|
-
isRecursiveOrganization?: {
|
|
59
|
-
valueOf: () => boolean;
|
|
60
|
-
} | undefined;
|
|
61
|
-
mobile?: string | undefined;
|
|
62
|
-
email?: string | undefined;
|
|
63
|
-
birthday?: string | undefined;
|
|
64
|
-
idCard?: string | undefined;
|
|
65
|
-
address?: string | undefined;
|
|
66
|
-
avatarCode?: string | undefined;
|
|
67
|
-
avatarUrl?: string | undefined;
|
|
68
|
-
ssoUser?: {
|
|
69
|
-
password?: string | undefined;
|
|
70
|
-
surePassword?: string | undefined;
|
|
71
|
-
rsaAesKey?: string | undefined;
|
|
72
|
-
id?: string | undefined;
|
|
73
|
-
parentId?: string | undefined;
|
|
74
|
-
uimsApplicationId?: string | undefined;
|
|
75
|
-
sequence?: number | undefined;
|
|
76
|
-
remark?: string | undefined;
|
|
77
|
-
createUserAccount?: string | undefined;
|
|
78
|
-
createUserName?: string | undefined;
|
|
79
|
-
createTime?: string | undefined;
|
|
80
|
-
lastUpdateUserAccount?: string | undefined;
|
|
81
|
-
lastUpdateUserName?: string | undefined;
|
|
82
|
-
lastUpdateTime?: Date | undefined;
|
|
83
|
-
} | undefined;
|
|
84
|
-
id?: string | undefined;
|
|
85
|
-
parentId?: string | undefined;
|
|
86
|
-
uimsApplicationId?: string | undefined;
|
|
87
|
-
sequence?: number | undefined;
|
|
88
|
-
remark?: string | undefined;
|
|
89
|
-
createUserAccount?: string | undefined;
|
|
90
|
-
createUserName?: string | undefined;
|
|
91
|
-
createTime?: string | undefined;
|
|
92
|
-
lastUpdateUserAccount?: string | undefined;
|
|
93
|
-
lastUpdateUserName?: string | undefined;
|
|
94
|
-
lastUpdateTime?: Date | undefined;
|
|
95
|
-
}[]>;
|
|
96
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
7
|
+
uimsOrganization: UimsOrganization;
|
|
8
|
+
selectionList: UimsUser[];
|
|
9
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
|
+
"update:selectionList": (changeList: UimsUser[]) => void;
|
|
11
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
97
12
|
param: any;
|
|
98
13
|
/** 机构 */
|
|
99
|
-
|
|
100
|
-
|
|
14
|
+
uimsOrganization: UimsOrganization;
|
|
15
|
+
selectionList: UimsUser[];
|
|
16
|
+
}>>> & Readonly<{
|
|
17
|
+
"onUpdate:selectionList"?: ((changeList: UimsUser[]) => any) | undefined;
|
|
18
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
101
19
|
export default _default;
|
|
102
20
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
103
21
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -20,6 +20,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
20
20
|
const emit = __emit;
|
|
21
21
|
const modelValue = vue.useModel(__props, "modelValue");
|
|
22
22
|
const initList = vue.ref([]);
|
|
23
|
+
const initSelectionList = vue.ref([]);
|
|
23
24
|
const inputValue = vue.ref("");
|
|
24
25
|
const isShowDialog = vue.ref(false);
|
|
25
26
|
const isInitSuccess = vue.ref(false);
|
|
@@ -30,9 +31,11 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
30
31
|
// 是否禁止选择已存在的角色
|
|
31
32
|
isDisableSelectExistsRole: true,
|
|
32
33
|
...props.param,
|
|
33
|
-
initList: initList.value
|
|
34
|
+
initList: initList.value,
|
|
35
|
+
initSelectionList: initSelectionList.value
|
|
34
36
|
}));
|
|
35
37
|
const init = async () => {
|
|
38
|
+
initList.value = [];
|
|
36
39
|
if (modelValue.value) {
|
|
37
40
|
if (!componentParam.value.isMultiple) {
|
|
38
41
|
if (modelValue.value != "0") {
|
|
@@ -57,7 +60,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
57
60
|
}
|
|
58
61
|
isInitSuccess.value = true;
|
|
59
62
|
};
|
|
60
|
-
const showDialog = () => {
|
|
63
|
+
const showDialog = async () => {
|
|
64
|
+
await init();
|
|
61
65
|
isShowDialog.value = true;
|
|
62
66
|
};
|
|
63
67
|
const hideDialog = () => {
|
|
@@ -67,26 +71,26 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
67
71
|
}
|
|
68
72
|
isShowDialog.value = false;
|
|
69
73
|
};
|
|
70
|
-
const handleChange = (
|
|
71
|
-
console.log("
|
|
74
|
+
const handleChange = (selectionList) => {
|
|
75
|
+
console.log("selectionList", selectionList);
|
|
72
76
|
modelValue.value = "";
|
|
73
77
|
inputValue.value = "";
|
|
74
|
-
if (
|
|
78
|
+
if (selectionList.length > 0) {
|
|
75
79
|
if (!componentParam.value.isMultiple) {
|
|
76
|
-
modelValue.value =
|
|
77
|
-
inputValue.value =
|
|
80
|
+
modelValue.value = selectionList[0].id;
|
|
81
|
+
inputValue.value = selectionList[0].name;
|
|
78
82
|
} else {
|
|
79
83
|
let modelValueValue = "";
|
|
80
84
|
let inputValueValue = "";
|
|
81
|
-
for (let index in
|
|
82
|
-
modelValueValue +=
|
|
83
|
-
inputValueValue +=
|
|
85
|
+
for (let index in selectionList) {
|
|
86
|
+
modelValueValue += selectionList[index].id + "|";
|
|
87
|
+
inputValueValue += selectionList[index].name + "、";
|
|
84
88
|
}
|
|
85
89
|
modelValue.value = "|" + modelValueValue;
|
|
86
90
|
inputValue.value = inputValueValue.substring(0, inputValueValue.length - 1);
|
|
87
91
|
}
|
|
88
92
|
}
|
|
89
|
-
emit("change",
|
|
93
|
+
emit("change", selectionList);
|
|
90
94
|
hideDialog();
|
|
91
95
|
};
|
|
92
96
|
vue.watch(
|
|
@@ -10,7 +10,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
10
10
|
default: any;
|
|
11
11
|
};
|
|
12
12
|
}>, {
|
|
13
|
-
showDialog: () => void
|
|
13
|
+
showDialog: () => Promise<void>;
|
|
14
14
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
15
15
|
change: (uimsUserList: UimsUser[]) => void;
|
|
16
16
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|