From 0e1255fbe6c5cc04e8a59666629df5cc2d5195fe Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Fri, 29 Jul 2022 16:06:01 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E8=84=91=E5=9B=BE=E4=B8=80=E9=94=AE=E5=B1=95=E5=BC=80=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E5=B1=95=E5=BC=80=E4=B8=B4=E6=97=B6=E8=8A=82=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1015426 --user=陈建星 【测试跟踪】github#15841,未设置标签,点击保存后,用例全没了 https://www.tapd.cn/55049933/s/1215543 --- .../components/track/common/minder/TestCaseMinder.vue | 2 +- .../business/components/track/common/minder/minderUtils.js | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/frontend/src/business/components/track/common/minder/TestCaseMinder.vue b/frontend/src/business/components/track/common/minder/TestCaseMinder.vue index 0523361826..7c15a8ad22 100644 --- a/frontend/src/business/components/track/common/minder/TestCaseMinder.vue +++ b/frontend/src/business/components/track/common/minder/TestCaseMinder.vue @@ -214,7 +214,7 @@ name: "TestCaseMinder", listenBeforeExecCommand((even) => { if (even.commandName === 'expandtolevel') { 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; // 删除缺陷不算有编辑脑图信息 diff --git a/frontend/src/business/components/track/common/minder/minderUtils.js b/frontend/src/business/components/track/common/minder/minderUtils.js index a769fcc62e..ffbca5301f 100644 --- a/frontend/src/business/components/track/common/minder/minderUtils.js +++ b/frontend/src/business/components/track/common/minder/minderUtils.js @@ -107,14 +107,13 @@ export function loadSelectNodes(param, getCaseFuc, setParamCallback, getExtraNod }); } - -export function handleExpandToLevel(level, node, param, getCaseFuc, setParamCallback) { - loadNode(node, param, getCaseFuc, setParamCallback); +export function handleExpandToLevel(level, node, param, getCaseFuc, setParamCallback, getExtraNodeFuc) { + loadNode(node, param, getCaseFuc, setParamCallback, getExtraNodeFuc); level--; if (level > 0) { if (node.children) { node.children.forEach(item => { - handleExpandToLevel(level, item, param, getCaseFuc, setParamCallback); + handleExpandToLevel(level, item, param, getCaseFuc, setParamCallback, getExtraNodeFuc); }); } }