1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <template>
- <div>
- <el-table :data="tableData" :showHeader="true" border style="width: 100%">
- <el-table-column type="index" width="50" label="排名"></el-table-column>
- <el-table-column prop="logo" width="auto" label="头像">
- <template slot-scope="scope">
- <img class="user-img" :src="scope.row.logo==null?defaultValue.image:scope.row.logo"/>
- </template>
- </el-table-column>
- <el-table-column prop="name" label="用户名">
- <template slot-scope="scope"><span class="institution-style" style="font-size: 12px">{{scope.row.name}}</span>
- </template>
- </el-table-column>
- <el-table-column prop="number" label="金额">
- <template slot-scope="scope">
- <span class="institution-style" style="font-size: 12px">
- {{scope.row.allProjectPrice}}
- </span>
- </template>
- </el-table-column>
- </el-table>
- </div>
- </template>
- <script>
- import {defaultValue} from '@/js/index'
- export default {
- name: 'PersonRank',
- props: {item: {}},
- data () {
- return {
- tableData: this.item,
- defaultValue: defaultValue
- }
- },
- watch: {
- item () {
- this.tableData = this.item
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .institution-style {
- font-size: 16px;
- font-weight: 600;
- }
- </style>
|