From d594e88870e29f5a11fbd57ae3ca2f2e32036ec7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=85=B5=E5=85=B5?= Date: Wed, 28 Nov 2018 16:30:03 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E5=91=BD=E5=90=8D=E5=87=BD=E6=95=B0?= =?UTF-8?q?=EF=BC=8C=E5=A4=8D=E7=94=A8=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/ui/src/components/Job.vue | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/web/ui/src/components/Job.vue b/web/ui/src/components/Job.vue index e175073..1966298 100644 --- a/web/ui/src/components/Job.vue +++ b/web/ui/src/components/Job.vue @@ -62,7 +62,7 @@ {{job.group}} {{job.user && job.user.length > 0 ? job.user : '-'}} - {{job.name}} + {{job.name}} - {{formatLatest(job.latestStatus)}} @@ -166,15 +166,10 @@ export default { }, editJob: function(group, id){ - var query = this.buildQuery(); - if(query == ''){ - this.$router.push('/job/edit/'+group+'/'+id) - }else{ - this.$router.push('/job/edit/'+group+'/'+id + '?'+query) - } + this.$router.push( this.buildEditJobURL(group, id) ); }, - toJob: function(group, id){ + buildEditJobURL: function(group, id){ var query = this.buildQuery(); if(query == ''){ return '/job/edit/'+group+'/'+id;