12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <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="机构logo">
- <template slot-scope="scope" >
- <img class="logo-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-name" style="font-size: 12px">{{scope.row.name}}</span></template>
- </el-table-column>
- <el-table-column prop="name" label="金额">
- <template slot-scope="scope">
- <span class="institution-name" style="font-size: 12px">
- {{scope.row.allTaskPrice}}
- </span>
- </template>
- </el-table-column>
- </el-table>
- </div>
- </template>
- <script>
- import {defaultValue} from '@/js/index'
- export default {
- name: 'InstitutionRank',
- props: {item: {}},
- data () {
- return {
- tableData: this.item,
- defaultValue: defaultValue
- }
- },
- watch: {
- item () {
- this.tableData = this.item
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .logo-img {
- height: 50px;
- width: 100px;
- object-fit: contain;
- }
- .institution-name {
- font-size: 16px;
- font-weight: 600;
- }
- </style>
|