<el-table
:header-cell-style="{ background: '#eef1f6', color: '#606266' }"
class="table"
align="center"
:data="tableData"
stripe
border
style="width: 95%; margin-left: 2.5%"
@sort-change="rankSort"
>
<el-table-column
align="center"
sortable="custom"
prop="workOrderNum"
label="接单量"
show-overflow-tooltip
min-width="180"
>
<template slot-scope="scope">
<span v-if="!scope.row.workOrderNum">-</span>
<span v-if="scope.row.workOrderNum">{{ scope.row.workOrderNum }}</span>
</template>
</el-table-column>
rankSort(column, prop, order) {
console.log(column, 'column')
this.choose = column.prop
if (column.order === 'ascending') {
this.order = 'asc'
}
if (column.order == null) {
this.order = 'asc'
this.choose = 'rank'
}
if (column.order === 'descending') {
this.order = 'desc'
}
this.getinfo()
},