fix (接口自动化): 场景列表点击ID跳转问题修复

--bug=1008213 --user=赵勇 没有操作的时候也弹了这个框 https://www.tapd.cn/55049933/s/1074849
This commit is contained in:
fit2-zhao 2021-11-25 09:56:26 +08:00 committed by fit2-zhao
parent a1807c0620
commit 37da667c08
2 changed files with 2 additions and 11 deletions

View File

@ -427,7 +427,7 @@ export default {
}
},
editScenario(row) {
const index = this.tabs.find(p => p.currentScenario.id === row.id);
const index = this.tabs.find(p => p.currentScenario.id === row.id && p.currentScenario.copy === row.copy);
if (!index) {
this.addTab({name: 'edit', currentScenario: row});
} else {
@ -486,6 +486,7 @@ export default {
/deep/ .el-tabs__header {
margin: 0 0 0px;
}
/deep/ .el-table__empty-block {
width: 100%;
min-width: 100%;

View File

@ -52,7 +52,6 @@
:fields-width="fieldsWidth"
min-width="120px">
<template slot-scope="scope">
<!--<span style="cursor:pointer" v-if="isReadOnly"> {{ scope.row.num }} </span>-->
<el-tooltip content="编辑">
<a style="cursor:pointer" @click="edit(scope.row)"> {{ scope.row.num }} </a>
</el-tooltip>
@ -66,7 +65,6 @@
:fields-width="fieldsWidth"
min-width="120px">
<template slot-scope="scope">
<!--<span style="cursor:pointer" v-if="isReadOnly"> {{ scope.row.customNum }} </span>-->
<el-tooltip content="编辑">
<a style="cursor:pointer" @click="edit(scope.row)"> {{ scope.row.customNum }} </a>
</el-tooltip>
@ -537,14 +535,6 @@ export default {
};
},
created() {
// if (!hasLicense()) {
// for (let i = 0; i < this.unTrashButtons.length; i++) {
// if (this.unTrashButtons[i].handleClick === this.generateGraph) {
// this.unTrashButtons.splice(i,1);
// break;
// }
// }
// }
scenario.$on('hide', id => {
this.hideStopBtn(id);
});