@@ -17,7 +17,8 @@
name: 'camera',
data() {
return {
- count: 0
+ count: 0,
+ data_sbfb:[]
}
},
mounted() {
@@ -31,7 +32,7 @@
sbfb(){
let that = this
getSbfb().then(resp =>{
- console.log("bbbbb",resp);
+ that.data_sbfb = resp.data
that.myEcharts2()
})
@@ -162,15 +163,7 @@
const dfColor = ['#92E1FF', '#0097FB', '#30ECA6', '#FFC227', '#FF4848'];
option = {
dataset: {
- source: [
- ["类型1", 1200],
- ["类型2", 1000],
- ["类型3", 746],
- ["类型4", 636],
- ["类型5", 581],
- ["类型6", 426],
- ["类型7", 326]
- ],
+ source: that.data_sbfb,
tooltip: {
trigger: 'item',