let sortType = 0
if (order === 'descending') {
if (prop === 'thisYearIncome') {
sortType = 1
}
if (prop === 'lastYearIncome') {
sortType = 3
}
if (prop === 'rate') {
sortType = 5
}
} else {
if (prop === 'thisYearIncome') {
sortType = 2
}
if (prop === 'lastYearIncome') {
sortType = 4
}
if (prop === 'rate') {
sortType = 6
}
}
this.fetchData(sortType)
}
谢谢。