|
|
@@ -21,7 +21,20 @@ export default {
|
|
|
bodyStyle: {
|
|
|
display: 'flex'
|
|
|
},
|
|
|
- types: [],
|
|
|
+ types: [
|
|
|
+ { name: '南京艺术学院', complain: 20, unitType: 'ORGANIZATION' },
|
|
|
+ { name: '江苏省朗诵协会', complain: 10, unitType: 'ORGANIZATION' },
|
|
|
+ { name: '江苏省文化馆', complain: 13, unitType: 'ORGANIZATION' },
|
|
|
+ { name: '江苏省演艺集团', complain: 12, unitType: 'ORGANIZATION' },
|
|
|
+ { name: '江苏省戏剧学校', complain: 20, unitType: 'ORGANIZATION' },
|
|
|
+ { name: '江苏省音乐家协会', complain: 18, unitType: 'ORGANIZATION' },
|
|
|
+ { name: '中国艺术科技研究所', complain: 19, unitType: 'ORGANIZATION' },
|
|
|
+ { name: '北京迷笛演出有限公司', complain: 15, unitType: 'ORGANIZATION' },
|
|
|
+ { name: '北京舞蹈学院', complain: 8, unitType: 'ORGANIZATION' },
|
|
|
+ { name: '国家京剧院', complain: 6, unitType: 'ORGANIZATION' },
|
|
|
+ { name: '山东省中联舞蹈艺术研究院', complain: 9, unitType: 'ORGANIZATION' },
|
|
|
+ { name: '上海金口才朗诵演讲团', complain: 14, unitType: 'ORGANIZATION' }
|
|
|
+ ],
|
|
|
chooseYear: '2021'
|
|
|
};
|
|
|
},
|
|
|
@@ -31,6 +44,10 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
+ setTimeout(() => {
|
|
|
+ this.myChart = echarts.init(this.$refs.chart);
|
|
|
+ this.setChart();
|
|
|
+ });
|
|
|
// this.$http.post('/reportStatistic/all', { sort: 'complain,desc', size: 20 }, { body: 'json' }).then(res => {
|
|
|
// this.types = res.content;
|
|
|
// this.myChart = echarts.init(this.$refs.chart);
|
|
|
@@ -40,7 +57,7 @@ export default {
|
|
|
methods: {
|
|
|
setChart() {
|
|
|
let res = [...this.types];
|
|
|
- // console.log(res);
|
|
|
+
|
|
|
let data = [];
|
|
|
let data2 = [];
|
|
|
|
|
|
@@ -57,42 +74,6 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
- // let total = { ...this.allData }[year].dengji;
|
|
|
-
|
|
|
- // let allNum = res.reduce((pre, cur) => {
|
|
|
- // return pre + (cur.children.length || 1);
|
|
|
- // }, 0);
|
|
|
-
|
|
|
- // let num = 0;
|
|
|
-
|
|
|
- // res.forEach((item, index) => {
|
|
|
- // let _nums = 0;
|
|
|
- // if (item.children.length > 0) {
|
|
|
- // item.children.forEach((child, childIndex) => {
|
|
|
- // let _childVal = this.getRandomMoney(allNum - num, total);
|
|
|
- // num++;
|
|
|
- // total -= _childVal;
|
|
|
- // _nums += _childVal;
|
|
|
- // data2.push({
|
|
|
- // name: child.name,
|
|
|
- // value: _childVal
|
|
|
- // });
|
|
|
- // });
|
|
|
- // } else {
|
|
|
- // let _childVal = this.getRandomMoney(allNum - num, total);
|
|
|
- // num++;
|
|
|
- // total -= _childVal;
|
|
|
- // _nums += _childVal;
|
|
|
- // data2.push({
|
|
|
- // name: item.name,
|
|
|
- // value: _childVal
|
|
|
- // });
|
|
|
- // }
|
|
|
- // data.push({
|
|
|
- // name: item.name,
|
|
|
- // value: _nums
|
|
|
- // });
|
|
|
- // });
|
|
|
|
|
|
let option = {
|
|
|
tooltip: {
|