fix(测试跟踪): 用例评审页面点击用例标题跳转

This commit is contained in:
shiziyuan9527 2022-02-10 14:55:40 +08:00 committed by 刘瑞斌
parent 2e7dda3c3c
commit 86d72b85d6
1 changed files with 9 additions and 1 deletions

View File

@ -58,7 +58,9 @@
<el-row style="margin-top: 0;">
<el-col>
<el-divider content-position="left">{{ testCase.name }}</el-divider>
<el-divider content-position="left">
<el-button class="test-case-name" type="text" @click="openTestTestCase(testCase)">{{ testCase.name }}</el-button>
</el-divider>
</el-col>
</el-row>
@ -420,6 +422,12 @@ export default {
})
},
openTestTestCase(item) {
let testCaseData = this.$router.resolve(
{path: '/track/case/all', query: {redirectID: getUUID(), dataType: "testCase", dataSelectRange: item.caseId}}
);
window.open(testCaseData.href, '_blank');
},
getRelatedTest() {
if (this.testCase.method === 'auto' && this.testCase.testId && this.testCase.testId !== 'other') {
this.$get('/' + this.testCase.type + '/get/' + this.testCase.testId, response => {