fix(测试跟踪): 功能用例列表点击的问题
--bug=1016091 --user=宋昌昌 【测试跟踪】github#17096,功能用例列表想要复制用例的名称信息,即使是鼠标长按选中用例名称也判定为点击事件了,接口测试列表中并没有这个问题。 https://www.tapd.cn/55049933/s/1231169
This commit is contained in:
parent
3e4b4488f0
commit
cd9c478410
|
@ -24,7 +24,6 @@
|
|||
:row-order-group-id="projectId"
|
||||
:row-order-func="editTestCaseOrder"
|
||||
@handlePageChange="initTableData"
|
||||
@handleRowClick="handleEdit"
|
||||
:fields.sync="fields"
|
||||
:field-key="tableHeaderKey"
|
||||
@filter="search"
|
||||
|
@ -80,15 +79,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"
|
||||
|
@ -823,17 +835,15 @@ export default {
|
|||
testCaseCreate() {
|
||||
this.$emit('testCaseEdit');
|
||||
},
|
||||
handleEdit(testCase, column) {
|
||||
if (column.label !== this.$t('test_track.case.case_desc')) {
|
||||
if (this.publicEnable) {
|
||||
return;
|
||||
} else {
|
||||
this.$get('test/case/get/' + testCase.id, response => {
|
||||
let testCase = response.data;
|
||||
testCase.trashEnable = this.trashEnable;
|
||||
this.$emit('testCaseEdit', testCase);
|
||||
});
|
||||
}
|
||||
handleEdit(testCase) {
|
||||
if (this.publicEnable) {
|
||||
return;
|
||||
} else {
|
||||
this.$get('test/case/get/' + testCase.id, response => {
|
||||
let testCase = response.data;
|
||||
testCase.trashEnable = this.trashEnable;
|
||||
this.$emit('testCaseEdit', testCase);
|
||||
});
|
||||
}
|
||||
},
|
||||
handleEditPublic(testCase, column) {
|
||||
|
|
Loading…
Reference in New Issue