|
|
@@ -71,9 +71,9 @@ const rankData = ref({
|
|
71
|
71
|
|
|
72
|
72
|
// 排序状态管理
|
|
73
|
73
|
const sortStates = ref({
|
|
74
|
|
- '查获上报': { teamSortType: 'asc', deptSortType: 'asc' },
|
|
|
74
|
+ '查获数据': { teamSortType: 'asc', deptSortType: 'asc' },
|
|
75
|
75
|
'抽问抽答': { teamSortType: 'asc', deptSortType: 'asc' },
|
|
76
|
|
- '巡检': { teamSortType: 'asc', deptSortType: 'asc' }
|
|
|
76
|
+ '巡视检查': { teamSortType: 'asc', deptSortType: 'asc' }
|
|
77
|
77
|
})
|
|
78
|
78
|
|
|
79
|
79
|
// 角色判断逻辑(移植自home-new页面)
|
|
|
@@ -100,7 +100,7 @@ const isTestRole = computed(() => {
|
|
100
|
100
|
const typeDetailData = computed(() => {
|
|
101
|
101
|
return [
|
|
102
|
102
|
{
|
|
103
|
|
- title: '查获上报',
|
|
|
103
|
+ title: '查获数据',
|
|
104
|
104
|
linkText: isTestRole.value ? "" : seizePendingCount.value ? `${seizePendingCount.value}条数据待处理` : '',
|
|
105
|
105
|
// link: isTeamView.value || isKezhang.value ? '/pages/myToDoList/index' : '/pages/voiceSubmissionDraft/index',
|
|
106
|
106
|
statTitle: '查获数量',
|
|
|
@@ -110,8 +110,8 @@ const typeDetailData = computed(() => {
|
|
110
|
110
|
departmentRank: seizeData.value.stationMasterData && seizeData.value.stationMasterData.brigadeRankings?.map(item => ({ ...item,passRate: item.seizureCount?.toFixed(2), name: item.brigadeName })) || [],
|
|
111
|
111
|
teamRank: seizeData.value.stationMasterData && seizeData.value.stationMasterData.topThreeTeamRankings?.map(item => ({ ...item, passRate: item.seizureCount?.toFixed(2), name: item.teamName })) || [],
|
|
112
|
112
|
bottomTeamRank: [{ passRate: 0, name: '无' }],
|
|
113
|
|
- teamSortType: sortStates.value['查获上报'].teamSortType,
|
|
114
|
|
- deptSortType: sortStates.value['查获上报'].deptSortType,
|
|
|
113
|
+ teamSortType: sortStates.value['查获数据'].teamSortType,
|
|
|
114
|
+ deptSortType: sortStates.value['查获数据'].deptSortType,
|
|
115
|
115
|
bottomTeamRank: seizeData.value.stationMasterData && seizeData.value.stationMasterData.botomThreeTeamRankings.map(item => ({ ...item, passRate: item.seizureCount.toFixed(2), name: item.teamName })),
|
|
116
|
116
|
},
|
|
117
|
117
|
{
|
|
|
@@ -129,7 +129,7 @@ const typeDetailData = computed(() => {
|
|
129
|
129
|
deptSortType: sortStates.value['抽问抽答'].deptSortType
|
|
130
|
130
|
},
|
|
131
|
131
|
{
|
|
132
|
|
- title: '巡检',
|
|
|
132
|
+ title: '巡视检查',
|
|
133
|
133
|
linkText: isTestRole.value ? "" : inspectionData.value.toDoNumber ? `${inspectionData.value.toDoNumber}条待处理任务` : "",
|
|
134
|
134
|
// link: '/pages/myToDoList/index',
|
|
135
|
135
|
statTitle: '合格率',
|
|
|
@@ -141,8 +141,8 @@ const typeDetailData = computed(() => {
|
|
141
|
141
|
departmentRank: inspectionData.value.brigadeRankingList && inspectionData.value.brigadeRankingList?.map(item => ({ ...item, passRate: (item.passRate * 100)?.toFixed(2) })) || [],
|
|
142
|
142
|
teamRank: inspectionData.value.teamRankingList && inspectionData.value.teamRankingList?.map(item => ({ ...item, passRate: (item.passRate * 100)?.toFixed(2) })) || [],
|
|
143
|
143
|
bottomTeamRank: [{ passRate: 0, name: '无' }],
|
|
144
|
|
- teamSortType: sortStates.value['巡检'].teamSortType,
|
|
145
|
|
- deptSortType: sortStates.value['巡检'].deptSortType,
|
|
|
144
|
+ teamSortType: sortStates.value['巡视检查'].teamSortType,
|
|
|
145
|
+ deptSortType: sortStates.value['巡视检查'].deptSortType,
|
|
146
|
146
|
bottomTeamRank: inspectionData.value.reverseTeamRankingList && inspectionData.value.reverseTeamRankingList.map(item => ({ ...item, passRate: (item.passRate * 100).toFixed(2) })),
|
|
147
|
147
|
}
|
|
148
|
148
|
]
|