refactor(场景自动化): 场景报告跳转到场景列表打开新的tab页
--bug=1016908 --user=陈建星 [接口测试] github#17993测试跟踪,报告,接口用例统计分析,点击报告名称链接会直接跳转到接口用例或者场景用例详情页,需要改成点击链接后新打开一个新tab页 https://www.tapd.cn/55049933/s/1246072
This commit is contained in:
parent
a3da8f2f0b
commit
c0c5fb5f19
|
@ -6,7 +6,10 @@
|
||||||
<el-input v-if="nameIsEdit" size="mini" @blur="handleSave(report.name)" @keyup.enter.native="handleSaveKeyUp"
|
<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/>
|
style="width: 200px" v-model="report.name" maxlength="60" show-word-limit/>
|
||||||
<span v-else>
|
<span v-else>
|
||||||
<el-link v-if="isSingleScenario" @click="redirect">
|
<el-link v-if="isSingleScenario"
|
||||||
|
type="primary"
|
||||||
|
class="report-name"
|
||||||
|
@click="redirect">
|
||||||
{{ report.name }}
|
{{ report.name }}
|
||||||
</el-link>
|
</el-link>
|
||||||
<span v-else>
|
<span v-else>
|
||||||
|
@ -154,12 +157,12 @@ export default {
|
||||||
redirect() {
|
redirect() {
|
||||||
let data = this.$router.resolve({
|
let data = this.$router.resolve({
|
||||||
name: this.isUi ? 'uiAutomation' : 'ApiAutomation',
|
name: this.isUi ? 'uiAutomation' : 'ApiAutomation',
|
||||||
params: {
|
query: {
|
||||||
redirectID: getUUID(),
|
redirectID: getUUID(),
|
||||||
dataType: "scenario",
|
dataType: "scenario",
|
||||||
dataSelectRange: 'edit:' + this.scenarioId,
|
|
||||||
projectId: getCurrentProjectID(),
|
projectId: getCurrentProjectID(),
|
||||||
workspaceId: getCurrentWorkspaceId(),
|
workspaceId: getCurrentWorkspaceId(),
|
||||||
|
resourceId: this.scenarioId
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
window.open(data.href, '_blank');
|
window.open(data.href, '_blank');
|
||||||
|
@ -237,4 +240,8 @@ export default {
|
||||||
background-color: #F2F9EF;
|
background-color: #F2F9EF;
|
||||||
color: #87C45D;
|
color: #87C45D;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.report-name {
|
||||||
|
border-bottom: 1px solid var(--primary_color);
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue