Explorar o código

fix(home-new): 修正科长角色下主管标签显示为"主管平均"

统一科长角色下各统计项的标签命名,将"主管"改为"主管平均"以保持一致性
huoyi hai 1 mes
pai
achega
0cec1cc46f
Modificáronse 1 ficheiros con 4 adicións e 3 borrados
  1. 4 3
      src/pages/home-new/index.vue

+ 4 - 3
src/pages/home-new/index.vue

@@ -304,6 +304,7 @@ export default {
304 304
                 const { pendingCount } = securityCheckerData || {};
305 305
                 return pendingCount;
306 306
             } else if (this.role.includes('kezhang')) {
307
+                
307 308
                 const { sectionMasterData } = this.seizeData;
308 309
                 const { pendingCount } = sectionMasterData || {};
309 310
                 // 科长、SecurityCheck角色:显示班组、科级和站级排名
@@ -855,7 +856,7 @@ export default {
855 856
             } else if (this.role.includes('kezhang')) {
856 857
                 // kezhang角色:主管、站平均、前三名班组(isImage: true)
857 858
                 return [
858
-                    { label: '主管', value: ((departmentPassRate || 0) * 100).toFixed(2), isImage: false },
859
+                    { label: '主管平均', value: ((departmentPassRate || 0) * 100).toFixed(2), isImage: false },
859 860
                     { label: '大队平均', value: ((brigadePassRate || 0) * 100).toFixed(2), isImage: false, color: brigadePassRate < personalPassRate ? '#00AE41' : '#F96060' },
860 861
                     { label: '站平均', value: ((stationPassRate || 0) * 100).toFixed(2), isImage: false, color: stationPassRate < departmentPassRate ? '#00AE41' : '#F96060' },
861 862
 
@@ -908,7 +909,7 @@ export default {
908 909
             } else if (this.role.includes('kezhang')) {
909 910
                 // kezhang角色:主管、站平均、前三名班组(isImage: true)
910 911
                 return [
911
-                    { label: '主管', value: (deptAvgAccuracy || 0), isImage: false, },
912
+                    { label: '主管平均', value: (deptAvgAccuracy || 0), isImage: false, },
912 913
                     { label: '大队平均', value: (brigadeAvgAccuracy || 0), isImage: false, color: brigadeAvgAccuracy < deptAvgAccuracy ? '#00AE41' : '#F96060' },
913 914
                     { label: '站平均', value: (siteAvgAccuracy || 0), isImage: false, color: siteAvgAccuracy < deptAvgAccuracy ? '#00AE41' : '#F96060' },
914 915
 
@@ -972,7 +973,7 @@ export default {
972 973
 
973 974
                 // kezhang角色:主管、站平均、前三名班组(isImage: true)
974 975
                 return [
975
-                    { label: '主管', value: departmentAverage || 0, isImage: false },
976
+                    { label: '主管平均', value: departmentAverage || 0, isImage: false },
976 977
                     { label: '大队平均', value: brigadeAverage || 0, isImage: false, color: brigadeAverage < departmentAverage ? '#00AE41' : '#F96060' },
977 978
                     { label: '站平均', value: (stationAverage && stationAverage.toFixed(2)) || 0, isImage: false, color: stationAverage < departmentAverage ? '#00AE41' : '#F96060' }
978 979
                     // { label: this.getObjByRank(topThreeTeams, 1).teamName, value: '/static/images/icon/one.png', isImage: true },