From 4d45a722432c89dd1bf3d92e82a02f22943f6c0f Mon Sep 17 00:00:00 2001 From: tk Date: Fri, 20 Dec 2024 10:34:53 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=94=A8=20=E8=A1=A8=E6=A0=BC?= =?UTF-8?q?=E8=A1=8C=E5=8F=8C=E5=87=BB=E6=9F=A5=E7=9C=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [skip ci] --- build/code.quality.props | 4 ++-- src/frontend/admin/src/components/scTable/index.vue | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/build/code.quality.props b/build/code.quality.props index f3982d49..36771df7 100644 --- a/build/code.quality.props +++ b/build/code.quality.props @@ -19,11 +19,11 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/frontend/admin/src/components/scTable/index.vue b/src/frontend/admin/src/components/scTable/index.vue index 2148d0eb..5a7bab3c 100644 --- a/src/frontend/admin/src/components/scTable/index.vue +++ b/src/frontend/admin/src/components/scTable/index.vue @@ -16,6 +16,7 @@ @cell-click="cellClickMethod" @filter-change="filterChange" @row-contextmenu="rowContextmenu" + @row-dblclick="dbClick" @sort-change="sortChange" ref="scTable" tooltip-effect="light"> @@ -361,6 +362,11 @@ export default { this.isActivate = false }, methods: { + dbClick(row) { + if (this.vue.dialog) { + this.vue.dialog.save = { mode: 'view', row: { id: row.id } } + } + }, async contextMenuCommand(command) { if (typeof command === 'object') { return command.action(this.vue, this.current.row)