Merge branch 'dev-zhangzx/IBPGJ9' into 'dev'
角色管理添加人员-按组织结构选人-搜索后无法点击选项 See merge request itc-framework/ma/2024/front!40
This commit is contained in:
@ -85,9 +85,9 @@
|
|||||||
let currentValue = toRaw(state.checkedKeys) as KeyType[];
|
let currentValue = toRaw(state.checkedKeys) as KeyType[];
|
||||||
if (isArray(currentValue) && searchState.startSearch) {
|
if (isArray(currentValue) && searchState.startSearch) {
|
||||||
const { key } = unref(getFieldNames);
|
const { key } = unref(getFieldNames);
|
||||||
currentValue = difference(currentValue, getChildrenKeys(e.node.$attrs.node[key]));
|
currentValue = difference(currentValue, getChildrenKeys(e.node[key]));
|
||||||
if (e.checked) {
|
if (e.checked) {
|
||||||
currentValue.push(e.node.$attrs.node[key]);
|
currentValue.push(e.node[key]);
|
||||||
}
|
}
|
||||||
state.checkedKeys = currentValue;
|
state.checkedKeys = currentValue;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user