fix(测试跟踪): 功能用例列表点击的问题
--bug=1016091 --user=宋昌昌 【测试跟踪】github#17096,功能用例列表想要复制用例的名称信息,即使是鼠标长按选中用例名称也判定为点击事件了,接口测试列表中并没有这个问题。 https://www.tapd.cn/55049933/s/1231169
This commit is contained in:
parent
70b789024f
commit
eb82a33e88
|
@ -25,7 +25,6 @@
|
|||
:field-key="tableHeaderKey"
|
||||
:custom-fields="testCaseTemplate.customFields"
|
||||
@handlePageChange="initTableData"
|
||||
@handleRowClick="handleEdit"
|
||||
@order="initTableData"
|
||||
@filter="search"
|
||||
ref="table">
|
||||
|
@ -66,15 +65,28 @@
|
|||
prop="num"
|
||||
sortable
|
||||
:label="$t('commons.id')"
|
||||
min-width="80"/>
|
||||
min-width="80">
|
||||
<template v-slot:default="scope">
|
||||
<el-tooltip :content="$t('commons.edit')">
|
||||
<a style="cursor:pointer" @click="handleEdit(scope.row)"> {{ scope.row.num }} </a>
|
||||
</el-tooltip>
|
||||
</template>
|
||||
</ms-table-column>
|
||||
|
||||
<ms-table-column
|
||||
v-if="item.id === 'num' && customNum"
|
||||
:field="item"
|
||||
:fields-width="fieldsWidth"
|
||||
prop="customNum"
|
||||
sortable
|
||||
:label="$t('commons.id')"
|
||||
min-width="80"/>
|
||||
min-width="80">
|
||||
<template v-slot:default="scope">
|
||||
<el-tooltip :content="$t('commons.edit')">
|
||||
<a style="cursor:pointer" @click="handleEdit(scope.row)"> {{ scope.row.num }} </a>
|
||||
</el-tooltip>
|
||||
</template>
|
||||
</ms-table-column>
|
||||
|
||||
<ms-table-column
|
||||
prop="name"
|
||||
|
@ -866,8 +878,7 @@ export default {
|
|||
testCaseCreate() {
|
||||
this.$emit('testCaseEdit');
|
||||
},
|
||||
handleEdit(testCase, column) {
|
||||
if (column.label !== this.$t('test_track.case.case_desc')) {
|
||||
handleEdit(testCase) {
|
||||
if (this.publicEnable) {
|
||||
return;
|
||||
} else {
|
||||
|
@ -877,7 +888,6 @@ export default {
|
|||
this.$emit('testCaseEdit', testCase);
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
handleEditPublic(testCase, column) {
|
||||
if (column.label !== this.$t('test_track.case.case_desc')) {
|
||||
|
|
Loading…
Reference in New Issue