diff --git a/src/views/modules/result/chart/componments/chart-bar-form/index.vue b/src/views/modules/result/chart/componments/chart-bar-form/index.vue index 5a1eea6..66629a1 100644 --- a/src/views/modules/result/chart/componments/chart-bar-form/index.vue +++ b/src/views/modules/result/chart/componments/chart-bar-form/index.vue @@ -30,6 +30,11 @@ mounted () { this.initChartBar() }, + watch: { // 监听到数据然后赋值 + dataInfo () { + this.initChartBar() + } + }, methods: { initChartBar () { var staffTotal = this.dataInfo.total