stat_industry.vue 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <template>
  2. <view class="page-box-bg-fff m-t20 r-30 p-30">
  3. <StatisticsTitle :is_right="false" :genre="0" :leftText="'行业占比(金额排行)'" :rightText="'同比环比'">
  4. </StatisticsTitle>
  5. <view class="page-box-bg-fff row-justify-sb center r-30">
  6. <view class="chart_item column-c m-lr20">
  7. <CircleChart :bgColor="'#2B7DFA'"></CircleChart>
  8. </view>
  9. <view class="row industry-box m-l30">
  10. <view class="row-c p-tb10 industry-item" 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>
  16. </view>
  17. </template>
  18. <script>
  19. import CircleChart from "@/common/chart/circle_chart.vue";
  20. import StatisticsTitle from "./statistics_title.vue";
  21. export default {
  22. name: 'stat-industry',
  23. components: {
  24. CircleChart,
  25. StatisticsTitle
  26. },
  27. props: {
  28. 'industryList': {
  29. default: () => {
  30. return {
  31. oneMoney: [],
  32. oneNum: [],
  33. roseData: [],
  34. titles: [],
  35. }
  36. }
  37. }
  38. },
  39. data() {
  40. return {
  41. list: [{
  42. name: '电力',
  43. color: '#2B7DFA'
  44. }, {
  45. name: '信息传媒',
  46. color: '#2B7DFA'
  47. }, {
  48. name: '互联网',
  49. color: '#ED9A2C'
  50. }, {
  51. name: '电力',
  52. color: '#ED9A2C'
  53. }, {
  54. name: '信息传媒',
  55. color: '#00BF8A'
  56. }, {
  57. name: '互联网',
  58. color: '#00BF8A'
  59. }, ]
  60. };
  61. },
  62. methods: {
  63. onChange(e) {
  64. this.current = e
  65. }
  66. }
  67. }
  68. </script>
  69. <style lang="scss" scoped>
  70. .industry-box {
  71. flex-wrap: wrap;
  72. .industry-item {
  73. width: 180rpx;
  74. }
  75. }
  76. </style>