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 66629a1..a321d77 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 @@ -1,7 +1,7 @@ @@ -25,17 +25,25 @@ }, data () { return { + clickAble: true } }, mounted () { this.initChartBar() }, - watch: { // 监听到数据然后赋值 + watch: { dataInfo () { this.initChartBar() } }, methods: { + jump: function (e) { + if (this.clickAble) { + console.log('跳转') + } else { + this.clickAble = true + } + }, initChartBar () { var staffTotal = this.dataInfo.total var option = { @@ -56,9 +64,9 @@ } }, // 图例 - legend: { + /* legend: { data: ['人数'] - }, + }, */ // x轴 xAxis: { name: '等级', @@ -95,6 +103,10 @@ var echarts = require('echarts') this.chartBar = echarts.init(document.getElementById(this.aId)) this.chartBar.setOption(option) + this.chartBar.on('click', function (param) { + this.clickAble = false + console.log(param) + }.bind(this)) window.addEventListener('resize', () => { this.chartBar.resize() }) diff --git a/src/views/modules/result/report/componments/chart-form/index.vue b/src/views/modules/result/report/componments/chart-form/index.vue deleted file mode 100644 index bca9343..0000000 --- a/src/views/modules/result/report/componments/chart-form/index.vue +++ /dev/null @@ -1,115 +0,0 @@ - - - - - - diff --git a/src/views/modules/result/report/componments/query-form/index.vue b/src/views/modules/result/report/componments/query-form/index.vue deleted file mode 100644 index 20b8ac6..0000000 --- a/src/views/modules/result/report/componments/query-form/index.vue +++ /dev/null @@ -1,170 +0,0 @@ - - - - - - diff --git a/src/views/modules/result/report/own.vue b/src/views/modules/result/report/own.vue deleted file mode 100644 index 701484f..0000000 --- a/src/views/modules/result/report/own.vue +++ /dev/null @@ -1,90 +0,0 @@ - - - - - - - -