|
@@ -15,7 +15,8 @@
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
count: 0,
|
|
count: 0,
|
|
- source: [],
|
|
|
|
|
|
+ data_name: [],
|
|
|
|
+ data_value: [],
|
|
}
|
|
}
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
@@ -28,8 +29,8 @@
|
|
get6().then(resp =>{
|
|
get6().then(resp =>{
|
|
console.log("水利事件分析", resp.data)
|
|
console.log("水利事件分析", resp.data)
|
|
that.source = resp.data
|
|
that.source = resp.data
|
|
- // that.data_name = resp.data.name
|
|
|
|
- // that.data_value = resp.data.value
|
|
|
|
|
|
+ that.data_name = resp.data.eventtype
|
|
|
|
+ that.data_value = resp.data.num
|
|
that.myEcharts()
|
|
that.myEcharts()
|
|
})
|
|
})
|
|
},
|
|
},
|
|
@@ -69,35 +70,36 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
nameGap: '2',
|
|
nameGap: '2',
|
|
- indicator: [{ //[4300, 10000, 28000, 35000, 50000, 19000, 21000]
|
|
|
|
- name: '型号1',
|
|
|
|
- max: 6500
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- name: '型号2',
|
|
|
|
- max: 16000
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- name: '型号3',
|
|
|
|
- max: 30000
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- name: '型号4',
|
|
|
|
- max: 38000
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- name: '型号5',
|
|
|
|
- max: 52000
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- name: '型号6',
|
|
|
|
- max: 25000
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- name: '型号7',
|
|
|
|
- max: 25000
|
|
|
|
- }
|
|
|
|
- ],
|
|
|
|
|
|
+ indicator: that.data_name,
|
|
|
|
+ // indicator: [{ //[4300, 10000, 28000, 35000, 50000, 19000, 21000]
|
|
|
|
+ // name: '型号1',
|
|
|
|
+ // max: 6500
|
|
|
|
+ // },
|
|
|
|
+ // {
|
|
|
|
+ // name: '型号2',
|
|
|
|
+ // max: 16000
|
|
|
|
+ // },
|
|
|
|
+ // {
|
|
|
|
+ // name: '型号3',
|
|
|
|
+ // max: 30000
|
|
|
|
+ // },
|
|
|
|
+ // {
|
|
|
|
+ // name: '型号4',
|
|
|
|
+ // max: 38000
|
|
|
|
+ // },
|
|
|
|
+ // {
|
|
|
|
+ // name: '型号5',
|
|
|
|
+ // max: 52000
|
|
|
|
+ // },
|
|
|
|
+ // {
|
|
|
|
+ // name: '型号6',
|
|
|
|
+ // max: 25000
|
|
|
|
+ // },
|
|
|
|
+ // {
|
|
|
|
+ // name: '型号7',
|
|
|
|
+ // max: 25000
|
|
|
|
+ // }
|
|
|
|
+ // ],
|
|
splitArea: {
|
|
splitArea: {
|
|
areaStyle: {
|
|
areaStyle: {
|
|
color: [
|
|
color: [
|
|
@@ -145,7 +147,8 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
data: [{
|
|
data: [{
|
|
- value: [4300, 10000, 28000, 35000, 50000, 19000, 21000],
|
|
|
|
|
|
+ value: that.data_value,
|
|
|
|
+ // value: [4300, 10000, 28000, 35000, 50000, 19000, 21000],
|
|
name: '型号统计',
|
|
name: '型号统计',
|
|
|
|
|
|
|
|
|