From cd9c4784108bc80f66e9a046bde9b5ff731e9c08 Mon Sep 17 00:00:00 2001 From: song-cc-rock Date: Tue, 23 Aug 2022 16:02:45 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E7=94=A8=E4=BE=8B=E5=88=97=E8=A1=A8=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1016091 --user=宋昌昌 【测试跟踪】github#17096,功能用例列表想要复制用例的名称信息,即使是鼠标长按选中用例名称也判定为点击事件了,接口测试列表中并没有这个问题。 https://www.tapd.cn/55049933/s/1231169 --- .../track/case/components/TestCaseList.vue | 38 ++++++++++++------- 1 file changed, 24 insertions(+), 14 deletions(-) diff --git a/frontend/src/business/components/track/case/components/TestCaseList.vue b/frontend/src/business/components/track/case/components/TestCaseList.vue index 9772f2821c..dd2ffa76f8 100644 --- a/frontend/src/business/components/track/case/components/TestCaseList.vue +++ b/frontend/src/business/components/track/case/components/TestCaseList.vue @@ -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"> + + + 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) {