fix (接口自动化): 场景列表点击ID跳转问题修复
--bug=1008213 --user=赵勇 没有操作的时候也弹了这个框 https://www.tapd.cn/55049933/s/1074849
This commit is contained in:
parent
a1807c0620
commit
37da667c08
|
@ -427,7 +427,7 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
editScenario(row) {
|
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) {
|
if (!index) {
|
||||||
this.addTab({name: 'edit', currentScenario: row});
|
this.addTab({name: 'edit', currentScenario: row});
|
||||||
} else {
|
} else {
|
||||||
|
@ -486,6 +486,7 @@ export default {
|
||||||
/deep/ .el-tabs__header {
|
/deep/ .el-tabs__header {
|
||||||
margin: 0 0 0px;
|
margin: 0 0 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/deep/ .el-table__empty-block {
|
/deep/ .el-table__empty-block {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
min-width: 100%;
|
min-width: 100%;
|
||||||
|
|
|
@ -52,7 +52,6 @@
|
||||||
:fields-width="fieldsWidth"
|
:fields-width="fieldsWidth"
|
||||||
min-width="120px">
|
min-width="120px">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<!--<span style="cursor:pointer" v-if="isReadOnly"> {{ scope.row.num }} </span>-->
|
|
||||||
<el-tooltip content="编辑">
|
<el-tooltip content="编辑">
|
||||||
<a style="cursor:pointer" @click="edit(scope.row)"> {{ scope.row.num }} </a>
|
<a style="cursor:pointer" @click="edit(scope.row)"> {{ scope.row.num }} </a>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
|
@ -66,7 +65,6 @@
|
||||||
:fields-width="fieldsWidth"
|
:fields-width="fieldsWidth"
|
||||||
min-width="120px">
|
min-width="120px">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<!--<span style="cursor:pointer" v-if="isReadOnly"> {{ scope.row.customNum }} </span>-->
|
|
||||||
<el-tooltip content="编辑">
|
<el-tooltip content="编辑">
|
||||||
<a style="cursor:pointer" @click="edit(scope.row)"> {{ scope.row.customNum }} </a>
|
<a style="cursor:pointer" @click="edit(scope.row)"> {{ scope.row.customNum }} </a>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
|
@ -537,14 +535,6 @@ export default {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
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 => {
|
scenario.$on('hide', id => {
|
||||||
this.hideStopBtn(id);
|
this.hideStopBtn(id);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue