|
|
@@ -177,7 +177,7 @@ export default {
|
|
177
|
177
|
},
|
|
178
|
178
|
// TypeDetail组件数据
|
|
179
|
179
|
typeDetailData() {
|
|
180
|
|
- console.log('this.seizeData', this.seizeData)
|
|
|
180
|
+ console.log('this.seizeData', this.seizeData,this.seizeData.stationMasterData)
|
|
181
|
181
|
return [
|
|
182
|
182
|
{
|
|
183
|
183
|
title: '查获上报',
|
|
|
@@ -186,14 +186,13 @@ export default {
|
|
186
|
186
|
statTitle: '查获数量',
|
|
187
|
187
|
teamSortType: this.sortStates['查获上报'].teamSortType,
|
|
188
|
188
|
deptSortType: this.sortStates['查获上报'].deptSortType,
|
|
189
|
|
-
|
|
190
|
|
- dividerIndex: this.role.includes('kezhang') ? 1 : 0,
|
|
|
189
|
+ dividerIndex: this.isBrigade ? 1 : 0,
|
|
191
|
190
|
dataItems: this.getSeizeDataItems(),
|
|
192
|
191
|
rankList: this.getSeizeRankList(),
|
|
193
|
|
- departmentRank: this.seizeData.stationMasterData && this.seizeData.stationMasterData.departmentRankings.map(item => ({ ...item, passRate: item.seizureCount.toFixed(2), name: item.departmentName })),
|
|
194
|
|
- bottomDepartmentRank: this.seizeData.stationMasterData && this.seizeData.stationMasterData.departmentRankings && [...this.seizeData.stationMasterData.departmentRankings].sort((a, b) => (a.seizureCount || 0) - (b.seizureCount || 0)).slice(0, 5).map(item => ({ ...item, passRate: item.seizureCount.toFixed(2), name: item.departmentName })),
|
|
195
|
|
- teamRank: this.seizeData.stationMasterData && this.seizeData.stationMasterData.topFiveTeamRankings.map(item => ({ ...item, passRate: item.seizureCount.toFixed(2), name: item.teamName })),
|
|
196
|
|
- bottomTeamRank: this.seizeData.stationMasterData && this.seizeData.stationMasterData.botomFiveTeamRankings.map(item => ({ ...item, passRate: item.seizureCount.toFixed(2), name: item.teamName })),
|
|
|
192
|
+ departmentRank: this.seizeData.stationMasterData && this.seizeData.stationMasterData.topThreeDepartmentRankings ? this.seizeData.stationMasterData.topThreeDepartmentRankings.map(item => ({ ...item, passRate: item.seizureCount.toFixed(2), name: item.departmentName })) : [],
|
|
|
193
|
+ bottomDepartmentRank: this.seizeData.stationMasterData && this.seizeData.stationMasterData.botomThreeDepartmentRankings && this.seizeData.stationMasterData.departmentRankings ? [...this.seizeData.stationMasterData.departmentRankings].sort((a, b) => (a.seizureCount || 0) - (b.seizureCount || 0)).slice(0, 3).map(item => ({ ...item, passRate: item.seizureCount.toFixed(2), name: item.departmentName })) : [],
|
|
|
194
|
+ teamRank: this.seizeData.stationMasterData && this.seizeData.stationMasterData.topThreeTeamRankings ? this.seizeData.stationMasterData.topThreeTeamRankings.map(item => ({ ...item, passRate: item.seizureCount.toFixed(2), name: item.teamName })) : [],
|
|
|
195
|
+ bottomTeamRank: this.seizeData.stationMasterData && this.seizeData.stationMasterData.botomThreeTeamRankings ? this.seizeData.stationMasterData.botomThreeTeamRankings.map(item => ({ ...item, passRate: item.seizureCount.toFixed(2), name: item.teamName })) : [],
|
|
197
|
196
|
},
|
|
198
|
197
|
{
|
|
199
|
198
|
title: '抽问抽答',
|
|
|
@@ -202,8 +201,7 @@ export default {
|
|
202
|
201
|
statTitle: '正确率(%)',
|
|
203
|
202
|
teamSortType: this.sortStates['抽问抽答'].teamSortType,
|
|
204
|
203
|
deptSortType: this.sortStates['抽问抽答'].deptSortType,
|
|
205
|
|
-
|
|
206
|
|
- dividerIndex: this.role.includes('kezhang') ? 1 : 0,
|
|
|
204
|
+ dividerIndex: this.isBrigade ? 1 : 0,
|
|
207
|
205
|
dataItems: this.getQuestionDataItems(),
|
|
208
|
206
|
rankList: this.getQuestionRankList(),
|
|
209
|
207
|
departmentRank: this.accuracyStatistics.topDepts && this.accuracyStatistics.topDepts.map(item => ({ ...item, passRate: item.accuracy.toFixed(2), name: item.deptName })),
|
|
|
@@ -218,14 +216,13 @@ export default {
|
|
218
|
216
|
statTitle: '合格率(%)',
|
|
219
|
217
|
teamSortType: this.sortStates['巡检'].teamSortType,
|
|
220
|
218
|
deptSortType: this.sortStates['巡检'].deptSortType,
|
|
221
|
|
-
|
|
222
|
|
- dividerIndex: this.role.includes('kezhang') ? 1 : 0,
|
|
|
219
|
+ dividerIndex: this.isBrigade ? 1 : 0,
|
|
223
|
220
|
dataItems: this.getInspectionDataItems(),
|
|
224
|
221
|
completed: this.inspectionData.doneNumber,
|
|
225
|
222
|
pending: this.inspectionData.doingNumber,
|
|
226
|
223
|
rankList: this.getRankList(),
|
|
227
|
224
|
departmentRank: this.inspectionData.departmentRankingList && this.inspectionData.departmentRankingList.map(item => ({ ...item, passRate: (item.passRate * 100).toFixed(2) })),
|
|
228
|
|
- bottomDepartmentRank: this.inspectionData.departmentRankingList && [...this.inspectionData.departmentRankingList].sort((a, b) => (a.passRate || 0) - (b.passRate || 0)).slice(0, 5).map(item => ({ ...item, passRate: (item.passRate * 100).toFixed(2) })),
|
|
|
225
|
+ bottomDepartmentRank: this.inspectionData.reverseDepartmentRankingList && [...this.inspectionData.reverseDepartmentRankingList].sort((a, b) => (a.passRate || 0) - (b.passRate || 0)).slice(0, 5).map(item => ({ ...item, passRate: (item.passRate * 100).toFixed(2) })),
|
|
229
|
226
|
teamRank: this.inspectionData.teamRankingList && this.inspectionData.teamRankingList.map(item => ({ ...item, passRate: (item.passRate * 100).toFixed(2) })),
|
|
230
|
227
|
bottomTeamRank: this.inspectionData.reverseTeamRankingList && this.inspectionData.reverseTeamRankingList.map(item => ({ ...item, passRate: (item.passRate * 100).toFixed(2) })),
|
|
231
|
228
|
}
|
|
|
@@ -257,7 +254,7 @@ export default {
|
|
257
|
254
|
attendanceItems() {
|
|
258
|
255
|
let res = {};
|
|
259
|
256
|
|
|
260
|
|
- if (this.role.includes('kezhang') || this.isZhanZhang) {
|
|
|
257
|
+ if (this.role.includes('kezhang') || this.isZhanZhang || this.isBrigade) {
|
|
261
|
258
|
// 班组长选择班组视图
|
|
262
|
259
|
if (this.isZhanZhang) {
|
|
263
|
260
|
res = this.attendanceStats.stationLeaderStats
|
|
|
@@ -834,7 +831,7 @@ export default {
|
|
834
|
831
|
|
|
835
|
832
|
// 根据角色获取巡检数据项数组
|
|
836
|
833
|
getInspectionDataItems() {
|
|
837
|
|
- const { personalPassRate, teamPassRate, departmentPassRate, stationPassRate, teamRankingList, departmentRankingList,brigadeRankingList,brigadePassRate } = this.inspectionData;
|
|
|
834
|
+ const { personalPassRate, teamPassRate, departmentPassRate, stationPassRate, teamRankingList, departmentRankingList, brigadeRankingList, brigadePassRate } = this.inspectionData;
|
|
838
|
835
|
if (this.isIndividualView) {
|
|
839
|
836
|
// SecurityCheck角色:本人、班平均、主管平均、站平均
|
|
840
|
837
|
return [
|
|
|
@@ -849,33 +846,33 @@ export default {
|
|
849
|
846
|
return [
|
|
850
|
847
|
{ label: '班组', value: ((teamPassRate || 0) * 100).toFixed(2), isImage: false },
|
|
851
|
848
|
{ label: '主管平均', value: ((departmentPassRate || 0) * 100).toFixed(2), isImage: false, color: departmentPassRate < teamPassRate ? '#00AE41' : '#F96060' },
|
|
|
849
|
+ { label: '大队平均', value: ((brigadePassRate || 0) * 100).toFixed(2), isImage: false, color: brigadePassRate < personalPassRate ? '#00AE41' : '#F96060' },
|
|
852
|
850
|
{ label: '站平均', value: ((stationPassRate || 0) * 100).toFixed(2), isImage: false, color: stationPassRate < teamPassRate ? '#00AE41' : '#F96060' }
|
|
853
|
851
|
];
|
|
854
|
852
|
} else if (this.role.includes('kezhang')) {
|
|
855
|
853
|
// kezhang角色:主管、站平均、前三名班组(isImage: true)
|
|
856
|
854
|
return [
|
|
857
|
855
|
{ label: '主管', value: ((departmentPassRate || 0) * 100).toFixed(2), isImage: false },
|
|
|
856
|
+ { label: '大队平均', value: ((brigadePassRate || 0) * 100).toFixed(2), isImage: false, color: brigadePassRate < personalPassRate ? '#00AE41' : '#F96060' },
|
|
858
|
857
|
{ label: '站平均', value: ((stationPassRate || 0) * 100).toFixed(2), isImage: false, color: stationPassRate < departmentPassRate ? '#00AE41' : '#F96060' },
|
|
859
|
|
- { label: this.getObjByRank(teamRankingList, 1).name, value: '/static/images/icon/one.png', isImage: true },
|
|
860
|
|
- { label: this.getObjByRank(teamRankingList, 2).name, value: '/static/images/icon/two.png', isImage: true },
|
|
861
|
|
- { label: this.getObjByRank(teamRankingList, 3).name, value: '/static/images/icon/three.png', isImage: true }
|
|
|
858
|
+
|
|
862
|
859
|
];
|
|
863
|
860
|
} else if (this.isBrigade) {
|
|
864
|
861
|
// brigade角色:主管、站平均、前三名班组(isImage: true)
|
|
865
|
862
|
return [
|
|
866
|
|
- { label: '主管', value: ((departmentPassRate || 0) * 100).toFixed(2), isImage: false },
|
|
867
|
|
- { label: '大队平均', value: ((brigadePassRate || 0) * 100).toFixed(2), isImage: false, color: brigadePassRate < departmentPassRate ? '#00AE41' : '#F96060' },
|
|
868
|
|
- { label: this.getObjByRank(teamRankingList, 1).name, value: '/static/images/icon/one.png', isImage: true },
|
|
869
|
|
- { label: this.getObjByRank(teamRankingList, 2).name, value: '/static/images/icon/two.png', isImage: true },
|
|
870
|
|
- { label: this.getObjByRank(teamRankingList, 3).name, value: '/static/images/icon/three.png', isImage: true }
|
|
|
863
|
+ { label: '大队', value: ((brigadePassRate || 0) * 100).toFixed(2), isImage: false },
|
|
|
864
|
+ { label: '站平均', value: ((stationPassRate || 0) * 100).toFixed(2), isImage: false, color: stationPassRate < brigadePassRate ? '#00AE41' : '#F96060' },
|
|
|
865
|
+ { label: this.getObjByRank(departmentRankingList, 1).name, value: '/static/images/icon/one.png', isImage: true },
|
|
|
866
|
+ { label: this.getObjByRank(departmentRankingList, 2).name, value: '/static/images/icon/two.png', isImage: true },
|
|
|
867
|
+ { label: this.getObjByRank(departmentRankingList, 3).name, value: '/static/images/icon/three.png', isImage: true }
|
|
871
|
868
|
];
|
|
872
|
869
|
} else if (this.isZhanZhang) {
|
|
873
|
870
|
// test/zhijianke角色:全站、前三名的科室(isImage: true)
|
|
874
|
871
|
return [
|
|
875
|
872
|
{ label: '全站', value: ((stationPassRate || 0) * 100).toFixed(2), isImage: false },
|
|
876
|
|
- { label: this.getObjByRank(departmentRankingList, 1).name, value: '/static/images/icon/one.png', isImage: true },
|
|
877
|
|
- { label: this.getObjByRank(departmentRankingList, 2).name, value: '/static/images/icon/two.png', isImage: true },
|
|
878
|
|
- { label: this.getObjByRank(departmentRankingList, 3).name, value: '/static/images/icon/three.png', isImage: true }
|
|
|
873
|
+ { label: this.getObjByRank(brigadeRankingList, 1).name, value: '/static/images/icon/one.png', isImage: true },
|
|
|
874
|
+ { label: this.getObjByRank(brigadeRankingList, 2).name, value: '/static/images/icon/two.png', isImage: true },
|
|
|
875
|
+ { label: this.getObjByRank(brigadeRankingList, 3).name, value: '/static/images/icon/three.png', isImage: true }
|
|
879
|
876
|
];
|
|
880
|
877
|
} else {
|
|
881
|
878
|
// 默认角色:检查项、完成率
|
|
|
@@ -923,6 +920,7 @@ export default {
|
|
923
|
920
|
{ label: this.getObjByRank(topTeamsInDept, 3).teamName, value: '/static/images/icon/three.png', isImage: true }
|
|
924
|
921
|
];
|
|
925
|
922
|
} else if (this.isZhanZhang) {
|
|
|
923
|
+
|
|
926
|
924
|
// test/zhijianke角色:全站、前三名的科室(isImage: true)
|
|
927
|
925
|
return [
|
|
928
|
926
|
{ label: '全站', value: (siteAvgAccuracy || 0), isImage: false },
|
|
|
@@ -940,8 +938,6 @@ export default {
|
|
940
|
938
|
},
|
|
941
|
939
|
//根据角色获取查获数据项目组
|
|
942
|
940
|
getSeizeDataItems() {
|
|
943
|
|
-
|
|
944
|
|
-
|
|
945
|
941
|
if (this.isIndividualView) {
|
|
946
|
942
|
// SecurityCheck角色:从securityCheckerData解构
|
|
947
|
943
|
const { securityCheckerData } = this.seizeData;
|
|
|
@@ -969,50 +965,49 @@ export default {
|
|
969
|
965
|
} else if (this.role.includes('kezhang')) {
|
|
970
|
966
|
// kezhang角色:从securityCheckerData解构
|
|
971
|
967
|
const { sectionMasterData } = this.seizeData;
|
|
972
|
|
- const { teamAverage, brigadeAverage, departmentAverage,stationAverage } = sectionMasterData || {}
|
|
|
968
|
+ const { brigadeAverage, departmentAverage, stationAverage } = sectionMasterData || {}
|
|
973
|
969
|
|
|
974
|
970
|
// kezhang角色:主管、站平均、前三名班组(isImage: true)
|
|
975
|
971
|
return [
|
|
976
|
972
|
{ label: '主管', value: departmentAverage || 0, isImage: false },
|
|
977
|
|
- { label: '主管平均', value: departmentAverage || 0, isImage: false, color: departmentAverage < teamAverage ? '#00AE41' : '#F96060' },
|
|
978
|
|
- { label: '大队平均', value: brigadeAverage || 0, isImage: false, color: brigadeAverage < teamAverage ? '#00AE41' : '#F96060' },
|
|
979
|
|
- { label: '站平均', value: (stationAverage && stationAverage.toFixed(2)) || 0, isImage: false, color: stationAverage < teamAverage ? '#00AE41' : '#F96060' }
|
|
|
973
|
+ { label: '大队平均', value: brigadeAverage || 0, isImage: false, color: brigadeAverage < departmentAverage ? '#00AE41' : '#F96060' },
|
|
|
974
|
+ { label: '站平均', value: (stationAverage && stationAverage.toFixed(2)) || 0, isImage: false, color: stationAverage < departmentAverage ? '#00AE41' : '#F96060' }
|
|
980
|
975
|
// { label: this.getObjByRank(topThreeTeams, 1).teamName, value: '/static/images/icon/one.png', isImage: true },
|
|
981
|
976
|
// { label: this.getObjByRank(topThreeTeams, 2).teamName, value: '/static/images/icon/two.png', isImage: true },
|
|
982
|
977
|
// { label: this.getObjByRank(topThreeTeams, 3).teamName, value: '/static/images/icon/three.png', isImage: true }
|
|
983
|
978
|
];
|
|
984
|
979
|
} else if (this.isBrigade) {
|
|
985
|
980
|
// brigade角色:从securityCheckerData解构
|
|
986
|
|
- const { sectionMasterData } = this.seizeData;
|
|
987
|
|
- const { stationAverage, topThreeTeams, departmentAverage } = sectionMasterData || {}
|
|
|
981
|
+ const { brigadeMasterData } = this.seizeData;
|
|
|
982
|
+ const { stationAverage, topThreeDepartment, brigadeAverage } = brigadeMasterData || {}
|
|
988
|
983
|
|
|
989
|
984
|
// brigade角色:主管、站平均、前三名班组(isImage: true)
|
|
990
|
985
|
return [
|
|
991
|
|
- { label: '主管', value: departmentAverage || 0, isImage: false },
|
|
992
|
|
- { label: '大队平均', value: stationAverage?.toFixed(2) || 0, isImage: false, color: stationAverage?.toFixed(2) < departmentAverage ? '#00AE41' : '#F96060' },
|
|
993
|
|
- { label: this.getObjByRank(topThreeTeams, 1).teamName, value: '/static/images/icon/one.png', isImage: true },
|
|
994
|
|
- { label: this.getObjByRank(topThreeTeams, 2).teamName, value: '/static/images/icon/two.png', isImage: true },
|
|
995
|
|
- { label: this.getObjByRank(topThreeTeams, 3).teamName, value: '/static/images/icon/three.png', isImage: true }
|
|
|
986
|
+ { label: '大队', value: brigadeAverage || 0, isImage: false },
|
|
|
987
|
+ { label: '站平均', value: (stationAverage && stationAverage.toFixed(2)) || 0, isImage: false, color: stationAverage < brigadeAverage ? '#00AE41' : '#F96060' },
|
|
|
988
|
+ { label: this.getObjByRank(topThreeDepartment, 1).departmentName, value: '/static/images/icon/one.png', isImage: true },
|
|
|
989
|
+ { label: this.getObjByRank(topThreeDepartment, 2).departmentName, value: '/static/images/icon/two.png', isImage: true },
|
|
|
990
|
+ { label: this.getObjByRank(topThreeDepartment, 3).departmentName, value: '/static/images/icon/three.png', isImage: true }
|
|
996
|
991
|
];
|
|
997
|
992
|
} else if (this.isZhanZhang) {
|
|
998
|
993
|
// test/zhijianke角色:从securityCheckerData解构
|
|
999
|
994
|
const { stationMasterData } = this.seizeData;
|
|
1000
|
|
- const { totalStationSeizure, departmentRankings } = stationMasterData || {}
|
|
|
995
|
+ const { totalStationSeizure, brigadeRankings } = stationMasterData || {}
|
|
1001
|
996
|
|
|
1002
|
997
|
// 对departmentRankings数组按照seizureCount由大到小排序
|
|
1003
|
|
- const sortedDepartmentRankings = Array.isArray(departmentRankings)
|
|
1004
|
|
- ? [...departmentRankings].sort((a, b) => (b.seizureCount || 0) - (a.seizureCount || 0))
|
|
|
998
|
+ const sortedBrigadeRankings = Array.isArray(brigadeRankings)
|
|
|
999
|
+ ? [...brigadeRankings].sort((a, b) => (b.seizureCount || 0) - (a.seizureCount || 0))
|
|
1005
|
1000
|
: [];
|
|
1006
|
1001
|
|
|
1007
|
|
- if (sortedDepartmentRankings.length == 0) {
|
|
|
1002
|
+ if (sortedBrigadeRankings.length == 0) {
|
|
1008
|
1003
|
return []
|
|
1009
|
1004
|
}
|
|
1010
|
1005
|
// test/zhijianke角色:全站、前三名的科室(isImage: true)
|
|
1011
|
1006
|
return [
|
|
1012
|
1007
|
{ label: '全站', value: totalStationSeizure || 0, isImage: false },
|
|
1013
|
|
- { label: sortedDepartmentRankings[0].departmentName, value: '/static/images/icon/one.png', isImage: true },
|
|
1014
|
|
- { label: sortedDepartmentRankings[1].departmentName, value: '/static/images/icon/two.png', isImage: true },
|
|
1015
|
|
- { label: sortedDepartmentRankings[2].departmentName, value: '/static/images/icon/three.png', isImage: true }
|
|
|
1008
|
+ { label: sortedBrigadeRankings[0].brigadeName, value: '/static/images/icon/one.png', isImage: true },
|
|
|
1009
|
+ { label: sortedBrigadeRankings[1].brigadeName, value: '/static/images/icon/two.png', isImage: true },
|
|
|
1010
|
+ { label: sortedBrigadeRankings[2].brigadeName, value: '/static/images/icon/three.png', isImage: true }
|
|
1016
|
1011
|
];
|
|
1017
|
1012
|
} else {
|
|
1018
|
1013
|
// 默认角色:检查项、完成率
|
|
|
@@ -1030,7 +1025,7 @@ export default {
|
|
1030
|
1025
|
|
|
1031
|
1026
|
// 根据角色获取巡检排名列表
|
|
1032
|
1027
|
getRankList() {
|
|
1033
|
|
- const { teamRanking, teamTotal, departmentRanking, departmentTotal, stationRanking, stationTotal,brigadeTotal,brigadeRanking } = this.inspectionData;
|
|
|
1028
|
+ const { teamRanking, teamTotal, departmentRanking, departmentTotal, stationRanking, stationTotal, brigadeTotal, brigadeRanking } = this.inspectionData;
|
|
1034
|
1029
|
// 根据角色返回不同的排名数据
|
|
1035
|
1030
|
if (this.isIndividualView) {
|
|
1036
|
1031
|
// 科长、SecurityCheck角色:显示班组、科级和站级排名
|
|
|
@@ -1042,11 +1037,12 @@ export default {
|
|
1042
|
1037
|
];
|
|
1043
|
1038
|
} else if (this.role.includes('kezhang')) {
|
|
1044
|
1039
|
return [
|
|
|
1040
|
+ { label: '大队排名', current: departmentRanking || 0, total: departmentTotal || 0, percentage: departmentTotal ? ((departmentRanking || 0) / departmentTotal) * 100 : 0 },
|
|
1045
|
1041
|
{ label: '站级排名', current: stationRanking || 0, total: stationTotal || 0, percentage: stationTotal ? ((stationRanking || 0) / stationTotal) * 100 : 0, type: 'station' }
|
|
1046
|
1042
|
];
|
|
1047
|
1043
|
} else if (this.isBrigade) {
|
|
1048
|
1044
|
return [
|
|
1049
|
|
- { label: '大队排名', current: departmentRanking || 0, total: departmentTotal || 0, percentage: departmentTotal ? ((departmentRanking || 0) / departmentTotal) * 100 : 0 },
|
|
|
1045
|
+
|
|
1050
|
1046
|
{ label: '站级排名', current: stationRanking || 0, total: stationTotal || 0, percentage: stationTotal ? ((stationRanking || 0) / stationTotal) * 100 : 0, type: 'station' }
|
|
1051
|
1047
|
];
|
|
1052
|
1048
|
} else if (this.isTeamView) {
|
|
|
@@ -1102,7 +1098,7 @@ export default {
|
|
1102
|
1098
|
// 根据角色返回不同的排名数据
|
|
1103
|
1099
|
if (this.isIndividualView) {
|
|
1104
|
1100
|
const { securityCheckerData } = this.seizeData;
|
|
1105
|
|
- const { teamRanking, departmentRanking, stationRanking,brigadeRanking } = securityCheckerData || {}
|
|
|
1101
|
+ const { teamRanking, departmentRanking, stationRanking, brigadeRanking } = securityCheckerData || {}
|
|
1106
|
1102
|
// 科长、SecurityCheck角色:显示班组、科级和站级排名
|
|
1107
|
1103
|
return [
|
|
1108
|
1104
|
{ label: '班组排名', current: teamRanking?.currentRank || 0, total: teamRanking?.totalItems || 0, percentage: teamRanking?.totalItems ? ((teamRanking.currentRank || 0) / teamRanking.totalItems) * 100 : 0 },
|
|
|
@@ -1112,7 +1108,7 @@ export default {
|
|
1112
|
1108
|
];
|
|
1113
|
1109
|
} else if (this.role.includes('kezhang')) {
|
|
1114
|
1110
|
const { sectionMasterData } = this.seizeData;
|
|
1115
|
|
- const { stationRanking, departmentRanking,brigadeRanking } = sectionMasterData || {};
|
|
|
1111
|
+ const { stationRanking, departmentRanking, brigadeRanking } = sectionMasterData || {};
|
|
1116
|
1112
|
// 科长、SecurityCheck角色:显示班组、科级和站级排名
|
|
1117
|
1113
|
return [
|
|
1118
|
1114
|
{ label: '大队排名', current: brigadeRanking?.currentRank || 0, total: brigadeRanking?.totalItems || 0, percentage: brigadeRanking?.totalItems ? ((brigadeRanking.currentRank || 0) / brigadeRanking.totalItems) * 100 : 0 },
|
|
|
@@ -1128,7 +1124,7 @@ export default {
|
|
1128
|
1124
|
];
|
|
1129
|
1125
|
} else if (this.isTeamView) {
|
|
1130
|
1126
|
const { teamLeaderData } = this.seizeData;
|
|
1131
|
|
- const { departmentRanking, stationRanking,brigadeRanking } = teamLeaderData || {}
|
|
|
1127
|
+ const { departmentRanking, stationRanking, brigadeRanking } = teamLeaderData || {}
|
|
1132
|
1128
|
// 班组长角色:显示科级和站级排名
|
|
1133
|
1129
|
return [
|
|
1134
|
1130
|
{ label: '主管排名', current: departmentRanking?.currentRank || 0, total: departmentRanking?.totalItems || 0, percentage: departmentRanking?.totalItems ? ((departmentRanking.currentRank || 0) / departmentRanking.totalItems) * 100 : 0 },
|