fix(全局): bugFix
This commit is contained in:
parent
8c4543caf4
commit
04ebd8118b
|
@ -751,7 +751,7 @@
|
|||
};
|
||||
}
|
||||
|
||||
function resetMinderParams(clearDeleteResource = false) {
|
||||
function resetMinderParams(clearDeleteResource = true) {
|
||||
tempMinderParams.value = {
|
||||
projectId: appStore.currentProjectId,
|
||||
versionId: '',
|
||||
|
@ -808,7 +808,11 @@
|
|||
});
|
||||
}
|
||||
}
|
||||
|
||||
const minderNode: MinderJsonNode = window.minder.getNodeById(node.data.id);
|
||||
if (minderNode.data) {
|
||||
minderNode.data.isNew = false;
|
||||
minderNode.data.changed = false;
|
||||
}
|
||||
return true;
|
||||
});
|
||||
return tempMinderParams.value;
|
||||
|
@ -831,7 +835,7 @@
|
|||
} catch (error) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.log(error);
|
||||
resetMinderParams(true);
|
||||
resetMinderParams(false);
|
||||
} finally {
|
||||
loading.value = false;
|
||||
}
|
||||
|
|
|
@ -77,7 +77,11 @@
|
|||
if (!isHasChildren.value) {
|
||||
return (
|
||||
(props.selectedKeys.size > 0 && selectAllStatus.value === SelectAllEnum.ALL) ||
|
||||
(props.selectedKeys.size > 0 && props.selectedKeys.size === props.total)
|
||||
(props.selectedKeys.size > 0 && props.selectedKeys.size === props.total) ||
|
||||
(props.selectedKeys.size > 0 &&
|
||||
props.selectedKeys.size > props.total &&
|
||||
props.currentData.length === props.total &&
|
||||
props.currentData.every((e) => props.selectedKeys.has(e[props.rowKey])))
|
||||
);
|
||||
}
|
||||
// 含有子级 children全选条件
|
||||
|
|
Loading…
Reference in New Issue