Skip to content

Commit

Permalink
updated analytics for spider
Browse files Browse the repository at this point in the history
  • Loading branch information
Marvin Zhang committed Apr 28, 2019
1 parent 9bd819c commit 21f7864
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion frontend/src/components/Stats/SpiderStats.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div class="spider-stats">
<div class="spider-stats" v-loading="loading">
<!--overall stats-->
<el-row>
<div class="metric-list">
Expand Down Expand Up @@ -65,6 +65,11 @@ import echarts from 'echarts'
export default {
name: 'SpiderStats',
components: { MetricCard },
data () {
return {
loading: false
}
},
methods: {
renderTaskPieStatus () {
const chart = echarts.init(this.$el.querySelector('#task-pie-status'))
Expand Down Expand Up @@ -188,9 +193,11 @@ export default {
},
update () {
this.loading = true
this.$store.dispatch('spider/getSpiderStats')
.then(() => {
this.render()
this.loading = false
})
},
Expand Down

0 comments on commit 21f7864

Please sign in to comment.