fix(测试跟踪): 脑图一键展开没有展开临时节点
--bug=1015426 --user=陈建星 【测试跟踪】github#15841,未设置标签,点击保存后,用例全没了 https://www.tapd.cn/55049933/s/1215543
This commit is contained in:
parent
02a1439aec
commit
0e1255fbe6
|
@ -214,7 +214,7 @@ name: "TestCaseMinder",
|
||||||
listenBeforeExecCommand((even) => {
|
listenBeforeExecCommand((even) => {
|
||||||
if (even.commandName === 'expandtolevel') {
|
if (even.commandName === 'expandtolevel') {
|
||||||
let level = Number.parseInt(even.commandArgs);
|
let level = Number.parseInt(even.commandArgs);
|
||||||
handleExpandToLevel(level, even.minder.getRoot(), this.getParam(), getTestCasesForMinder);
|
handleExpandToLevel(level, even.minder.getRoot(), this.getParam(), getTestCasesForMinder, null, getMinderExtraNode);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (handleMinderIssueDelete(even.commandName)) return; // 删除缺陷不算有编辑脑图信息
|
if (handleMinderIssueDelete(even.commandName)) return; // 删除缺陷不算有编辑脑图信息
|
||||||
|
|
|
@ -107,14 +107,13 @@ export function loadSelectNodes(param, getCaseFuc, setParamCallback, getExtraNod
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function handleExpandToLevel(level, node, param, getCaseFuc, setParamCallback, getExtraNodeFuc) {
|
||||||
export function handleExpandToLevel(level, node, param, getCaseFuc, setParamCallback) {
|
loadNode(node, param, getCaseFuc, setParamCallback, getExtraNodeFuc);
|
||||||
loadNode(node, param, getCaseFuc, setParamCallback);
|
|
||||||
level--;
|
level--;
|
||||||
if (level > 0) {
|
if (level > 0) {
|
||||||
if (node.children) {
|
if (node.children) {
|
||||||
node.children.forEach(item => {
|
node.children.forEach(item => {
|
||||||
handleExpandToLevel(level, item, param, getCaseFuc, setParamCallback);
|
handleExpandToLevel(level, item, param, getCaseFuc, setParamCallback, getExtraNodeFuc);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue