fix: 脑图部分缺陷不显示

--bug=1008207 --user=陈建星 【测试跟踪】脑图创建缺陷,local、jira平台看不到已关联的缺陷 https://www.tapd.cn/55049933/s/10722999
This commit is contained in:
chenjianxing 2021-11-22 20:38:22 +08:00 committed by jianxing
parent 096fc3e935
commit 4698eecac0
2 changed files with 2 additions and 1 deletions

View File

@ -22,7 +22,7 @@
inner join test_case_issues
on test_case_issues.issues_id = issues.id
where test_case_id in
<foreach collection="caseIds" open="(" close=")" item="item">
<foreach collection="caseIds" open="(" close=")" item="item" separator=",">
#{item}
</foreach>
and (issues.platform_status != 'delete' or issues.platform_status is NULL)

View File

@ -330,6 +330,7 @@ name: "TestCaseMinder",
if (node.children) {
node.children.forEach((childNode) => {
let childData = childNode.data;
if (childData.type === 'issue') return;
if (childData.resource && childData.resource.indexOf(this.$t('test_track.case.prerequisite')) > -1) {
testCase.prerequisite = childData.text;
} else if (childData.resource && childData.resource.indexOf(this.$t('commons.remark')) > -1) {