Commit 0058a16e by 王志慧

commit

1 parent 288386d2
......@@ -47,6 +47,15 @@ export default {
this.brandName = newVal.brand.name
}
this.getClientData()
},
pieAction(data) {
this.brandList = []
let array = this.distributionRank && this.distributionRank[data.name]
if (array&&array.length > 0) {
for (let i of array) {
this.brandList.push(i && Object.keys(i)[0])
}
}
}
}
}
......@@ -48,6 +48,15 @@ export default {
this.brandName = newVal.brand.name
}
this.getSalesData()
},
pieAction(data) {
this.brandList = []
let array = this.typeRanking && this.typeRanking[data.name]
if (array&&array.length > 0) {
for (let i of array) {
this.brandList.push(i && Object.keys(i)[0])
}
}
}
}
}
......@@ -35,11 +35,6 @@ export default {
id: 'age-pie'
}
}
},
methods: {
pieAction(data) {
this.brandList = this.distributionRank&&this.distributionRank[data.name]&&Object.keys(this.distributionRank[data.name])
}
}
}
</script>
......@@ -35,11 +35,6 @@ export default {
id: 'car-pie'
}
}
},
methods: {
pieAction(data) {
this.brandList = this.distributionRank&&this.distributionRank[data.name]&&Object.keys(this.distributionRank[data.name])
}
}
}
</script>
......@@ -35,15 +35,6 @@ export default {
colors: ['#EB6001', '#BF98FF', '#FF6E76']
}
}
},
methods: {
pieAction(data) {
this.brandList = []
let array = this.distributionRank && this.distributionRank[data.name]
for (let i of array) {
this.brandList.push(Object.keys(i)[0])
}
}
}
}
</script>
......@@ -37,9 +37,11 @@ export default {
}
},
methods: {
pieAction(data) {
this.brandList = this.typeRanking&&this.typeRanking[data.name]&&Object.keys(this.typeRanking[data.name])
}
// pieAction(data) {
// console.log(data,'客户级别')
// console.log(this.typeRanking)
// this.brandList = this.typeRanking&&this.typeRanking[data.name]&&Object.keys(this.typeRanking[data.name])
// }
}
}
</script>
......@@ -37,10 +37,5 @@ export default {
}
}
},
methods: {
pieAction(data) {
this.brandList = this.typeRanking && this.typeRanking[data.name] && Object.keys(this.typeRanking[data.name])
}
}
}
</script>
......@@ -36,10 +36,5 @@ export default {
}
}
},
methods: {
pieAction(data) {
this.brandList = this.typeRanking&&this.typeRanking[data.name]&&Object.keys(this.typeRanking[data.name])
}
}
}
</script>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!