mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-02 12:09:13 +08:00
fix(测试跟踪): 用例评审页面点击用例标题跳转
This commit is contained in:
parent
2890679f26
commit
a7b72ce55f
@ -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 => {
|
||||
|
Loading…
Reference in New Issue
Block a user