Advertisement
Guest User

Untitled

a guest
Feb 19th, 2020
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <template>
  2.   <div>
  3.     <product-min :car="car" class="product-min--fixed-height-product-title" />
  4.     <div class="statistics-item__table table-dashed">
  5.       <table>
  6.         <tbody>
  7.           <tr>
  8.             <td>{{ $t('statistics.count-phone-opened') }}</td>
  9.             <td>{{ statistic.phoneTotal }}</td>
  10.           </tr>
  11.           <tr>
  12.             <td>{{ $t('statistics.count-appeal') }}</td>
  13.             <td>{{ statistic.uniqueViews }}</td>
  14.           </tr>
  15.           <tr>
  16.             <td>{{ $t('statistics.count-opened-map') }}</td>
  17.             <td>{{ statistic.mapTotal }}</td>
  18.           </tr>
  19.           <tr>
  20.             <td>{{ $t('statistics.count-added-compare') }}</td>
  21.             <td>{{ statistic.comparsionTotal }}</td>
  22.           </tr>
  23.           <tr>
  24.             <td>{{ $t('statistics.count-added-favorites') }}</td>
  25.             <td>{{ statistic.favoriteTotal }}</td>
  26.           </tr>
  27.           <tr>
  28.             <td>{{ $t('statistics.position-on-page') }}</td>
  29.             <td>2</td>
  30.           </tr>
  31.         </tbody>
  32.       </table>
  33.     </div>
  34.   </div>
  35. </template>
  36.  
  37. <script lang="ts">
  38.   import { Component, Prop, Vue } from 'vue-property-decorator'
  39.   import { CarDto } from '~/types/client'
  40.   import ProductMin from '~/components/client/product/product-min.vue'
  41.   import { emptyStatisticDto, StatisticDto } from '~/types/client/profile/statistic.dto'
  42.  
  43.   @Component({
  44.     components: {
  45.       ProductMin,
  46.     },
  47.   })
  48.   export default class StatisticsItem extends Vue {
  49.     @Prop({ required: true })
  50.     readonly car!: CarDto
  51.  
  52.     statistic: StatisticDto = this.car.statistic || emptyStatisticDto()
  53.   }
  54. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement