From 4bc04f431d48cc627dea22bbecb925b6f5968c30 Mon Sep 17 00:00:00 2001 From: aoshiguchen <1052045476@qq.com> Date: Thu, 1 Sep 2022 22:59:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9EDropdownTable=E7=BB=84?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/Dropdown/DropdownTable.vue | 6 ++++++ neutrino-proxy-admin/src/views/proxy/portMapping.vue | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/neutrino-proxy-admin/src/components/Dropdown/DropdownTable.vue b/neutrino-proxy-admin/src/components/Dropdown/DropdownTable.vue index df0de6a2..27201f5c 100644 --- a/neutrino-proxy-admin/src/components/Dropdown/DropdownTable.vue +++ b/neutrino-proxy-admin/src/components/Dropdown/DropdownTable.vue @@ -66,9 +66,15 @@ timer: null } }, + watch: { + name(val) { + console.log(val, this.name) + } + }, methods: { handleRowClick(val) { this.$emit('selectedData', val) + this.name = val.name this.timer = setTimeout(() => { this.popVisible = false }, 200) diff --git a/neutrino-proxy-admin/src/views/proxy/portMapping.vue b/neutrino-proxy-admin/src/views/proxy/portMapping.vue index a785e182..e677e5f2 100644 --- a/neutrino-proxy-admin/src/views/proxy/portMapping.vue +++ b/neutrino-proxy-admin/src/views/proxy/portMapping.vue @@ -81,7 +81,7 @@