refactor(场景自动化): 场景报告跳转到场景列表打开新的tab页

--bug=1016908 --user=陈建星 [接口测试] github#17993测试跟踪,报告,接口用例统计分析,点击报告名称链接会直接跳转到接口用例或者场景用例详情页,需要改成点击链接后新打开一个新tab页 https://www.tapd.cn/55049933/s/1246072
This commit is contained in:
chenjianxing 2022-09-20 14:57:33 +08:00 committed by jianxing
parent a3da8f2f0b
commit c0c5fb5f19
1 changed files with 10 additions and 3 deletions

View File

@ -6,7 +6,10 @@
<el-input v-if="nameIsEdit" size="mini" @blur="handleSave(report.name)" @keyup.enter.native="handleSaveKeyUp"
style="width: 200px" v-model="report.name" maxlength="60" show-word-limit/>
<span v-else>
<el-link v-if="isSingleScenario" @click="redirect">
<el-link v-if="isSingleScenario"
type="primary"
class="report-name"
@click="redirect">
{{ report.name }}
</el-link>
<span v-else>
@ -154,12 +157,12 @@ export default {
redirect() {
let data = this.$router.resolve({
name: this.isUi ? 'uiAutomation' : 'ApiAutomation',
params: {
query: {
redirectID: getUUID(),
dataType: "scenario",
dataSelectRange: 'edit:' + this.scenarioId,
projectId: getCurrentProjectID(),
workspaceId: getCurrentWorkspaceId(),
resourceId: this.scenarioId
}
});
window.open(data.href, '_blank');
@ -237,4 +240,8 @@ export default {
background-color: #F2F9EF;
color: #87C45D;
}
.report-name {
border-bottom: 1px solid var(--primary_color);
}
</style>