PersonRank.vue 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <template>
  2. <div>
  3. <el-table :data="tableData" :showHeader="true" border style="width: 100%">
  4. <el-table-column type="index" width="50" label="排名"></el-table-column>
  5. <el-table-column prop="logo" width="auto" label="头像">
  6. <template slot-scope="scope">
  7. <img class="user-img" :src="scope.row.logo==null?defaultValue.image:scope.row.logo"/>
  8. </template>
  9. </el-table-column>
  10. <el-table-column prop="name" label="用户名">
  11. <template slot-scope="scope"><span class="institution-style" style="font-size: 12px">{{scope.row.name}}</span>
  12. </template>
  13. </el-table-column>
  14. <el-table-column prop="number" label="金额">
  15. <template slot-scope="scope">
  16. <span class="institution-style" style="font-size: 12px">
  17. {{scope.row.allProjectPrice}}
  18. </span>
  19. </template>
  20. </el-table-column>
  21. </el-table>
  22. </div>
  23. </template>
  24. <script>
  25. import {defaultValue} from '@/js/index'
  26. export default {
  27. name: 'PersonRank',
  28. props: {item: {}},
  29. data () {
  30. return {
  31. tableData: this.item,
  32. defaultValue: defaultValue
  33. }
  34. },
  35. watch: {
  36. item () {
  37. this.tableData = this.item
  38. }
  39. }
  40. }
  41. </script>
  42. <style lang="scss" scoped>
  43. .institution-style {
  44. font-size: 16px;
  45. font-weight: 600;
  46. }
  47. </style>