yuang-framework-ui-pc 1.1.70 → 1.1.72
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-organization-dialog/index.js +1 -13
- 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 +47 -6
- package/es/yu-uims-role-dialog/index.js +11 -9
- 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 +46 -7
- package/es/yu-uims-user-dialog/index.js +14 -10
- package/lib/yu-uims-organization-dialog/index.cjs +0 -12
- package/lib/yu-uims-role-dialog/components/role-dialog.cjs +23 -9
- package/lib/yu-uims-role-dialog/components/role-list.cjs +46 -5
- package/lib/yu-uims-role-dialog/components/role-list.d.ts +10 -36
- package/lib/yu-uims-role-dialog/index.cjs +11 -9
- package/lib/yu-uims-user-dialog/components/user-dialog.cjs +27 -14
- package/lib/yu-uims-user-dialog/components/user-list.cjs +45 -6
- package/lib/yu-uims-user-dialog/components/user-list.d.ts +10 -92
- package/lib/yu-uims-user-dialog/index.cjs +14 -10
- package/package.json +1 -1
|
@@ -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);
|
|
@@ -27,8 +28,11 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
27
28
|
modelValue: modelValue.value,
|
|
28
29
|
isMultiple: true,
|
|
29
30
|
isShowInput: true,
|
|
31
|
+
// 是否禁止选择已存在的角色
|
|
32
|
+
isDisableSelectExistsRole: true,
|
|
30
33
|
...props.param,
|
|
31
|
-
initList: initList.value
|
|
34
|
+
initList: initList.value,
|
|
35
|
+
initSelectionList: initSelectionList.value
|
|
32
36
|
}));
|
|
33
37
|
const init = async () => {
|
|
34
38
|
if (modelValue.value) {
|
|
@@ -65,26 +69,26 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
65
69
|
}
|
|
66
70
|
isShowDialog.value = false;
|
|
67
71
|
};
|
|
68
|
-
const handleChange = (
|
|
69
|
-
console.log("
|
|
72
|
+
const handleChange = (selectionList) => {
|
|
73
|
+
console.log("selectionList", selectionList);
|
|
70
74
|
modelValue.value = "";
|
|
71
75
|
inputValue.value = "";
|
|
72
|
-
if (
|
|
76
|
+
if (selectionList.length > 0) {
|
|
73
77
|
if (!componentParam.value.isMultiple) {
|
|
74
|
-
modelValue.value =
|
|
75
|
-
inputValue.value =
|
|
78
|
+
modelValue.value = selectionList[0].id;
|
|
79
|
+
inputValue.value = selectionList[0].name;
|
|
76
80
|
} else {
|
|
77
81
|
let modelValueValue = "";
|
|
78
82
|
let inputValueValue = "";
|
|
79
|
-
for (let index in
|
|
80
|
-
modelValueValue +=
|
|
81
|
-
inputValueValue +=
|
|
83
|
+
for (let index in selectionList) {
|
|
84
|
+
modelValueValue += selectionList[index].id + "|";
|
|
85
|
+
inputValueValue += selectionList[index].name + "、";
|
|
82
86
|
}
|
|
83
87
|
modelValue.value = "|" + modelValueValue;
|
|
84
88
|
inputValue.value = inputValueValue.substring(0, inputValueValue.length - 1);
|
|
85
89
|
}
|
|
86
90
|
}
|
|
87
|
-
emit("change",
|
|
91
|
+
emit("change", selectionList);
|
|
88
92
|
hideDialog();
|
|
89
93
|
};
|
|
90
94
|
vue.watch(
|