From 61bc4055eedce3661b33a1bea4d32f761ba90294 Mon Sep 17 00:00:00 2001 From: marvzhang Date: Tue, 10 Mar 2020 16:13:53 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8A=82=E7=82=B9=E8=A1=8C=E5=AF=BC=E8=88=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/Node/NodeInstallationMatrix.vue | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/Node/NodeInstallationMatrix.vue b/frontend/src/components/Node/NodeInstallationMatrix.vue index 127e4262..2aef8339 100644 --- a/frontend/src/components/Node/NodeInstallationMatrix.vue +++ b/frontend/src/components/Node/NodeInstallationMatrix.vue @@ -6,6 +6,7 @@ :data="nodeList" :header-cell-style="{background:'rgb(48, 65, 86)',color:'white',height:'50px'}" border + @row-click="onLangTableRowClick" > {{$t('Not Installed')}} - + {{$t('Install')}} @@ -139,7 +140,8 @@ export default { } } }, - async onInstall (nodeId, langLabel) { + async onInstall (nodeId, langLabel, ev) { + ev.stopPropagation() const lang = this.getLangFromLabel(langLabel) this.$request.post(`/nodes/${nodeId}/langs/install`, { lang: lang.name @@ -159,6 +161,9 @@ export default { setTimeout(() => { this.getData() }, 1000) + }, + onLangTableRowClick (row) { + this.$router.push(`/nodes/${row._id}`) } }, async created () { @@ -184,7 +189,7 @@ export default { } .lang-table >>> .el-table tr { - cursor: initial; + cursor: pointer; } .lang-table >>> .el-table .header-with-action,