Commit 0058a16e by 王志慧

commit

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