stat_industry.vue 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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 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. props: {
  34. 'industryList': {
  35. default: () => {
  36. return {
  37. oneMoney: [],
  38. oneNum: [],
  39. roseData: [],
  40. titles: [],
  41. }
  42. }
  43. }
  44. },
  45. data() {
  46. return {
  47. list: [{
  48. name: '电力',
  49. color: '#2B7DFA'
  50. }, {
  51. name: '信息传媒',
  52. color: '#00BF8A'
  53. }, {
  54. name: '互联网',
  55. color: '#ED9A2C'
  56. }, ]
  57. };
  58. },
  59. methods: {
  60. onChange(e) {
  61. this.current = e
  62. }
  63. }
  64. }
  65. </script>
  66. <style lang="scss" scoped>
  67. </style>