fix(用例管理): 修复回收站点击模块树父节点不显示子资源的问题
--bug=1039437 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001039437
This commit is contained in:
parent
794008a6a3
commit
b86e967655
|
@ -338,6 +338,7 @@
|
|||
showSetting: true,
|
||||
heightUsed: 380,
|
||||
enableDrag: true,
|
||||
showSubdirectory: true,
|
||||
},
|
||||
(record) => ({
|
||||
...record,
|
||||
|
@ -569,11 +570,15 @@
|
|||
// 用例树节点选中事件
|
||||
const caseNodeSelect = (selectedNodeKeys: (string | number)[] | string[], node: MsTreeNodeData) => {
|
||||
[activeFolder.value] = selectedNodeKeys as string[];
|
||||
console.log('node');
|
||||
console.log(node);
|
||||
offspringIds.value = [];
|
||||
mapTree(node.children || [], (e) => {
|
||||
offspringIds.value.push(e.id);
|
||||
return e;
|
||||
});
|
||||
console.log('offspringIds');
|
||||
console.log(offspringIds);
|
||||
focusNodeKey.value = '';
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue