diff --git a/frontend/src/business/components/track/case/components/TestCaseList.vue b/frontend/src/business/components/track/case/components/TestCaseList.vue index 630d8c58ee..0c49061640 100644 --- a/frontend/src/business/components/track/case/components/TestCaseList.vue +++ b/frontend/src/business/components/track/case/components/TestCaseList.vue @@ -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"> + + + min-width="80"> + + { - 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) {