|
|
@@ -256,7 +256,7 @@
|
|
|
<el-table-column prop="rank" label="排名" width="80" align="center"></el-table-column>
|
|
|
<el-table-column prop="name" label="名字" width="120" align="center">
|
|
|
<template #default="scope">
|
|
|
- <span :style="{ color: scope.row.name === homePageData.nickName ? 'red' : '' }">{{ scope.row.name }}</span>
|
|
|
+ <span :style="{ color: scope.row.name === homePageData.nickName && scope.row.rank === currentSort ? 'red' : '' }">{{ scope.row.name }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="station" label="场站" align="center"></el-table-column>
|
|
|
@@ -323,6 +323,7 @@ export default {
|
|
|
showRankingTable: false, // 控制排名列表卡片显示
|
|
|
currentRankingType: '', // 当前显示的排名类型
|
|
|
currentRankingData: [], // 当前显示的排名数据
|
|
|
+ currentSort: null,
|
|
|
// 定时器
|
|
|
timer: null
|
|
|
}
|
|
|
@@ -351,6 +352,7 @@ export default {
|
|
|
this.showRankingTable = false;
|
|
|
this.currentRankingType = '';
|
|
|
this.currentRankingData = [];
|
|
|
+ this.currentSort = null;
|
|
|
} else {
|
|
|
// 否则显示对应类型的排名列表
|
|
|
this.currentRankingType = type;
|
|
|
@@ -360,9 +362,12 @@ export default {
|
|
|
let rankingData = [];
|
|
|
if (type === 'dept') {
|
|
|
rankingData = [...this.homePageData.scoreDept];
|
|
|
+ this.currentSort = this.homePageData.deptSort;
|
|
|
} else if (type === 'center') {
|
|
|
rankingData = [...this.homePageData.scoreCenter];
|
|
|
+ this.currentSort = this.homePageData.centerSort;
|
|
|
} else if (type === 'company') {
|
|
|
+ this.currentSort = this.homePageData.companySort;
|
|
|
rankingData = [...this.homePageData.scoreCompany];
|
|
|
}
|
|
|
|