stat_age_chart.vue 925 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <template>
  2. <view class="page-box-bg-fff m-t20 r-30 p-b30">
  3. <view class="p-lr30 p-t30">
  4. <StatisticsTitle :is_right="false" is_age :genre="0" :leftText="'年龄分部'" :rightText="'同比环比'">
  5. </StatisticsTitle>
  6. </view>
  7. <MixtureChart ref="mixtureChart"></MixtureChart>
  8. </view>
  9. </template>
  10. <script>
  11. import MixtureChart from "@/common/chart/mixture_chart.vue";
  12. import StatisticsTitle from "./statistics_title.vue";
  13. export default {
  14. name: 'stat-age-chart',
  15. components: {
  16. MixtureChart,
  17. StatisticsTitle
  18. },
  19. data() {
  20. return {
  21. list: [{
  22. name: '电力',
  23. color: '#2B7DFA'
  24. }, {
  25. name: '信息传媒',
  26. color: '#00BF8A'
  27. }, {
  28. name: '互联网',
  29. color: '#ED9A2C'
  30. }, ]
  31. };
  32. },
  33. methods: {
  34. setData(data){
  35. console.log(data)
  36. this.$refs.mixtureChart.setServerData(data)
  37. }
  38. },
  39. }
  40. </script>
  41. <style lang="scss" scoped>
  42. </style>