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 = {
|
tempMinderParams.value = {
|
||||||
projectId: appStore.currentProjectId,
|
projectId: appStore.currentProjectId,
|
||||||
versionId: '',
|
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 true;
|
||||||
});
|
});
|
||||||
return tempMinderParams.value;
|
return tempMinderParams.value;
|
||||||
|
@ -831,7 +835,7 @@
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
console.log(error);
|
console.log(error);
|
||||||
resetMinderParams(true);
|
resetMinderParams(false);
|
||||||
} finally {
|
} finally {
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -77,7 +77,11 @@
|
||||||
if (!isHasChildren.value) {
|
if (!isHasChildren.value) {
|
||||||
return (
|
return (
|
||||||
(props.selectedKeys.size > 0 && selectAllStatus.value === SelectAllEnum.ALL) ||
|
(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全选条件
|
// 含有子级 children全选条件
|
||||||
|
|
Loading…
Reference in New Issue