stat_industry.vue 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <template>
  2. <view class="page-box-bg-fff m-t20 r-30 p-30">
  3. <StatisticsTitle :is_right="false" :genre="0" :leftText="'行业占比(金额排行)'" :rightText="'同比环比'" @onHandle="onHandle">
  4. </StatisticsTitle>
  5. <view class="page-box-bg-fff row-justify-sb center r-30 p-r60">
  6. <view class="chart_item column-c m-lr20">
  7. <CircleChart :bgColor="'#2B7DFA'"></CircleChart>
  8. </view>
  9. <view class="">
  10. <view class="row-c p-tb10" v-for="(item,index) in list" :key="index">
  11. <view class="wh-14 m-r10" :style="{background:item.color}"></view>
  12. <text class="size-24 text-color-576">{{item.name}}</text>
  13. </view>
  14. </view>
  15. <view class="">
  16. <view class="row-c p-tb10" v-for="(item,index) in list" :key="index">
  17. <view class="wh-14 m-r10" :style="{background:item.color}"></view>
  18. <text class="size-24 text-color-576">{{item.name}}</text>
  19. </view>
  20. </view>
  21. </view>
  22. </view>
  23. </template>
  24. <script>
  25. import CircleChart from "@/common/chart/circle_chart.vue";
  26. import StatisticsTitle from "./statistics_title.vue";
  27. export default {
  28. name: 'stat_industry',
  29. components: {
  30. CircleChart,
  31. StatisticsTitle
  32. },
  33. data() {
  34. return {
  35. list: [{
  36. name: '电力',
  37. color: '#2B7DFA'
  38. }, {
  39. name: '信息传媒',
  40. color: '#00BF8A'
  41. }, {
  42. name: '互联网',
  43. color: '#ED9A2C'
  44. }, ]
  45. };
  46. },
  47. methods: {
  48. onChange(e) {
  49. this.current = e
  50. }
  51. }
  52. }
  53. </script>
  54. <style lang="scss" scoped>
  55. </style>