|
@@ -30,6 +30,7 @@ export default {
|
|
|
methods: {
|
|
methods: {
|
|
|
getData() {
|
|
getData() {
|
|
|
this.$http.post('/statistic/getDemand', { type: this.recentDays }).then(res => {
|
|
this.$http.post('/statistic/getDemand', { type: this.recentDays }).then(res => {
|
|
|
|
|
+ console.log(res);
|
|
|
this.loading = true;
|
|
this.loading = true;
|
|
|
var chartDom = document.getElementById('demand');
|
|
var chartDom = document.getElementById('demand');
|
|
|
var myChart = echarts.init(chartDom);
|
|
var myChart = echarts.init(chartDom);
|
|
@@ -69,9 +70,21 @@ export default {
|
|
|
{ value: res.COPY, name: '版权' },
|
|
{ value: res.COPY, name: '版权' },
|
|
|
{ value: res.SOFT, name: '软著' },
|
|
{ value: res.SOFT, name: '软著' },
|
|
|
{ value: res.TECHNOLOGY, name: '技术' },
|
|
{ value: res.TECHNOLOGY, name: '技术' },
|
|
|
- { value: res.PRODUCT, name: '产品' }
|
|
|
|
|
|
|
+ { value: res.PRODUCT, name: '产品' },
|
|
|
|
|
+ { value: res.SERVICE, name: '服务' },
|
|
|
|
|
+ { value: res.FUNDING, name: '资金' }
|
|
|
|
|
+ ],
|
|
|
|
|
+ color: [
|
|
|
|
|
+ '#EE6767',
|
|
|
|
|
+ '#73A0FA',
|
|
|
|
|
+ '#73DEB3',
|
|
|
|
|
+ '#3BA271',
|
|
|
|
|
+ '#9B60B4',
|
|
|
|
|
+ '#7585A2',
|
|
|
|
|
+ '#F7C739',
|
|
|
|
|
+ '#FF9246',
|
|
|
|
|
+ '#C985FF'
|
|
|
],
|
|
],
|
|
|
- color: ['#EE6767', '#73A0FA', '#73DEB3', '#3BA271', '#9B60B4', '#7585A2', '#F7C739'],
|
|
|
|
|
emphasis: {
|
|
emphasis: {
|
|
|
itemStyle: {
|
|
itemStyle: {
|
|
|
shadowBlur: 10,
|
|
shadowBlur: 10,
|