fix(测试跟踪): 用例列表点击行进入编辑

--story=1011487 --user=宋昌昌 【Bug转需求】【测试跟踪】功能用例-设计验收问题汇总 https://www.tapd.cn/55049933/s/1353075
This commit is contained in:
song-cc-rock 2023-03-21 10:25:52 +08:00 committed by fit2-zhao
parent 91373a5927
commit e891f31070
1 changed files with 7 additions and 7 deletions

View File

@ -46,6 +46,7 @@
:highlight-current-row="true" :highlight-current-row="true"
:refresh-by-search.sync="refreshBySearch" :refresh-by-search.sync="refreshBySearch"
@handlePageChange="initTableData" @handlePageChange="initTableData"
@handleRowClick="intoEdit"
@order="initTableData" @order="initTableData"
@filter="search" @filter="search"
@callBackSelect="callBackSelect" @callBackSelect="callBackSelect"
@ -84,7 +85,7 @@
:label="$t('commons.id')" :label="$t('commons.id')"
min-width="80"> min-width="80">
<template v-slot:default="scope"> <template v-slot:default="scope">
<a style="cursor:pointer" class="hover-enter" @click="handleEdit(scope.row)"> {{ scope.row.num }} </a> <a style="cursor:pointer" @click="handleEdit(scope.row)"> {{ scope.row.num }} </a>
</template> </template>
</ms-table-column> </ms-table-column>
@ -97,7 +98,7 @@
:label="$t('commons.id')" :label="$t('commons.id')"
min-width="80"> min-width="80">
<template v-slot:default="scope"> <template v-slot:default="scope">
<a style="cursor:pointer" class="hover-enter" @click="handleEdit(scope.row)"> {{ scope.row.customNum }} </a> <a style="cursor:pointer" @click="handleEdit(scope.row)"> {{ scope.row.customNum }} </a>
</template> </template>
</ms-table-column> </ms-table-column>
@ -109,7 +110,7 @@
:label="$t('test_track.case.name')" :label="$t('test_track.case.name')"
min-width="120"> min-width="120">
<template v-slot:default="scope"> <template v-slot:default="scope">
<a style="cursor:pointer" class="hover-enter" @click="handleEdit(scope.row)"> {{ scope.row.name }} </a> <a style="cursor:pointer" @click="handleEdit(scope.row)"> {{ scope.row.name }} </a>
</template> </template>
</ms-table-column> </ms-table-column>
@ -857,6 +858,9 @@ export default {
reloadTable() { reloadTable() {
this.$refs.table.resetHeader(); this.$refs.table.resetHeader();
}, },
intoEdit(row) {
this.handleEdit(row);
},
handleEdit(testCase) { handleEdit(testCase) {
openCaseEdit({caseId: testCase.id}, this); openCaseEdit({caseId: testCase.id}, this);
}, },
@ -1286,8 +1290,4 @@ span.version-select {
color: #783887; color: #783887;
border: 1px solid #783887; border: 1px solid #783887;
} }
.hover-enter:hover{
color: #783887;
}
</style> </style>