From 868b4ed12ad8ef812737dc718615e4de7340faf6 Mon Sep 17 00:00:00 2001 From: ouqiang Date: Tue, 26 Jun 2018 20:38:38 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8A=82=E7=82=B9=E5=88=97=E8=A1=A8=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E5=88=B0=E4=BB=BB=E5=8A=A1=E5=88=97=E8=A1=A8=E7=9A=84?= =?UTF-8?q?=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/vue/src/pages/host/list.vue | 14 ++++++++++++++ web/vue/src/pages/task/list.vue | 5 +++++ 2 files changed, 19 insertions(+) diff --git a/web/vue/src/pages/host/list.vue b/web/vue/src/pages/host/list.vue index 5333dbf..6c5e1c4 100644 --- a/web/vue/src/pages/host/list.vue +++ b/web/vue/src/pages/host/list.vue @@ -53,6 +53,11 @@ prop="port" label="端口"> + + + @@ -134,6 +139,15 @@ export default { this.search(() => { this.$message.success('刷新成功') }) + }, + toTasks (item) { + this.$router.push( + { + path: '/task', + query: { + host_id: item.id + } + }) } } } diff --git a/web/vue/src/pages/task/list.vue b/web/vue/src/pages/task/list.vue index 81174a0..474fb0e 100644 --- a/web/vue/src/pages/task/list.vue +++ b/web/vue/src/pages/task/list.vue @@ -230,6 +230,11 @@ export default { }, components: {taskSidebar}, created () { + const hostId = this.$route.query.host_id + if (hostId) { + this.searchParams.host_id = hostId + } + this.search() }, filters: {