|
|
@ -62,7 +62,7 @@ |
|
|
|
<td class="center aligned"><i class="icon" v-bind:class="{pause: job.pause, play: !job.pause, green: !job.pause}"></i></td> |
|
|
|
<td class="center aligned"><i class="icon" v-bind:class="{pause: job.pause, play: !job.pause, green: !job.pause}"></i></td> |
|
|
|
<td>{{job.group}}</td> |
|
|
|
<td>{{job.group}}</td> |
|
|
|
<td>{{job.user && job.user.length > 0 ? job.user : '-'}}</td> |
|
|
|
<td>{{job.user && job.user.length > 0 ? job.user : '-'}}</td> |
|
|
|
<td><router-link :to="toJob(job.group, job.id)">{{job.name}}</router-link></td> |
|
|
|
<td><router-link :to="buildEditJobURL(job.group, job.id)">{{job.name}}</router-link></td> |
|
|
|
<td> |
|
|
|
<td> |
|
|
|
<span v-if="!job.latestStatus">-</span> |
|
|
|
<span v-if="!job.latestStatus">-</span> |
|
|
|
<span v-else>{{formatLatest(job.latestStatus)}}</span> |
|
|
|
<span v-else>{{formatLatest(job.latestStatus)}}</span> |
|
|
@ -166,15 +166,10 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
editJob: function(group, id){ |
|
|
|
editJob: function(group, id){ |
|
|
|
var query = this.buildQuery(); |
|
|
|
this.$router.push( this.buildEditJobURL(group, id) ); |
|
|
|
if(query == ''){ |
|
|
|
|
|
|
|
this.$router.push('/job/edit/'+group+'/'+id) |
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
this.$router.push('/job/edit/'+group+'/'+id + '?'+query) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
toJob: function(group, id){ |
|
|
|
buildEditJobURL: function(group, id){ |
|
|
|
var query = this.buildQuery(); |
|
|
|
var query = this.buildQuery(); |
|
|
|
if(query == ''){ |
|
|
|
if(query == ''){ |
|
|
|
return '/job/edit/'+group+'/'+id; |
|
|
|
return '/job/edit/'+group+'/'+id; |
|
|
|