Przeglądaj źródła

refactor(数据大屏): 统一查获和巡检相关字段命名

将"查获上报"统一改为"查获数据","巡检"改为"巡视检查",保持整个系统中相关术语的一致性
huoyi 1 tydzień temu
rodzic
commit
c367fbae05

+ 6 - 6
src/views/dataBigScreen/dashboard/components/pageItems/HomePageStats.vue

@@ -26,7 +26,7 @@
26 26
             </div>
27 27
 
28 28
             <!-- 巡检部分的问题整改区域 -->
29
-            <div v-if="item.title === '巡检'" class="problem-rect-section">
29
+            <div v-if="item.title === '巡'" class="problem-rect-section">
30 30
               <div class="problem-title">问题整改</div>
31 31
               <div class="problem-grid">
32 32
                 <!-- 左边:已办结问题 -->
@@ -65,13 +65,13 @@
65 65
             <div class="department-rank-container">
66 66
               <div class="custom-title">
67 67
                 <div class="arrow-icon"></div>
68
-                <span>{{ item.title === '查获上报' ? '大队查获总数排名' : item.title == '抽问抽答' ? '大队正确率排名' : '大队合格率排名' }}</span>
68
+                <span>{{ item.title === '查获数据' ? '大队查获总数排名' : item.title == '抽问抽答' ? '大队正确率排名' : '大队合格率排名' }}</span>
69 69
               </div>
70 70
               <div v-for="(dept, index) in item.departmentRank" :key="'dept-' + index" class="rank-item">
71 71
                 <div class="rank-label">{{ dept.name }}</div>
72 72
                 <div class="rank-progress">
73 73
                   <el-progress
74
-                    :percentage="item.title !== '查获上报' ? Number(dept.passRate || 0) : getPercentage(dept.passRate, item.departmentRank)"
74
+                    :percentage="item.title !== '查获数据' ? Number(dept.passRate || 0) : getPercentage(dept.passRate, item.departmentRank)"
75 75
                     :show-text="false" :stroke-width="10" color="#F9B83A" />
76 76
                   <div class="rank-info">
77 77
                     <span style="color: #999999">{{ dept.passRate || 0 }}</span>
@@ -85,7 +85,7 @@
85 85
               <div class="rank-header">
86 86
                 <div class="rank-header-title">
87 87
                   <div class="arrow-icon"></div>
88
-                  <div class="rank-title">{{ item.title === '查获上报' ? '班组查获总数排名' : item.title == '抽问抽答' ? '班组正确率排名' :
88
+                  <div class="rank-title">{{ item.title === '查获数据' ? '班组查获总数排名' : item.title == '抽问抽答' ? '班组正确率排名' :
89 89
                     '班组合格率排名' }}</div>
90 90
                 </div>
91 91
                 <div class="sort-buttons">
@@ -103,7 +103,7 @@
103 103
                     <div class="rank-label">{{ team.name }}</div>
104 104
                     <div class="rank-progress">
105 105
                       <el-progress
106
-                        :percentage="item.title !== '查获上报' ? Number(team.passRate || 0) : getPercentage(team.passRate, item.teamRank)"
106
+                        :percentage="item.title !== '查获数据' ? Number(team.passRate || 0) : getPercentage(team.passRate, item.teamRank)"
107 107
                         :show-text="false" :stroke-width="10" color="#A7C8FF" />
108 108
                       <div class="rank-info">
109 109
                         <span style="color: #999999">{{ team.passRate || 0 }}</span>
@@ -117,7 +117,7 @@
117 117
                     <div class="rank-label">{{ team.name }}</div>
118 118
                     <div class="rank-progress">
119 119
                       <el-progress
120
-                        :percentage="item.title !== '查获上报' ? Number(team.passRate || 0) : getPercentage(team.passRate, item.bottomTeamRank)"
120
+                        :percentage="item.title !== '查获数据' ? Number(team.passRate || 0) : getPercentage(team.passRate, item.bottomTeamRank)"
121 121
                         :show-text="false" :stroke-width="10" color="#A7C8FF" />
122 122
                       <div class="rank-info">
123 123
                         <span style="color: #999999">{{ team.passRate || 0 }}</span>

+ 1 - 1
src/views/dataBigScreen/dashboard/components/pageItems/HomePageSystemStatus.vue

@@ -123,7 +123,7 @@ const attendanceItems = computed(() => {
123 123
       { id: 1, label: `在岗大队`, value: res?.dutyDeptName, unit: '' },
124 124
       { id: 2, label: '在岗班组', value: res?.onDutyTeamCount, unit: '' },
125 125
       { id: 3, label: '在岗人员', value: res?.onDutyPersonnelCount, unit: '' },
126
-      { id: 4, label: '今日查获上报', value: res?.todaySeizureReportCount, unit: '' },
126
+      { id: 4, label: '今日查获数量', value: res?.todaySeizureReportCount, unit: '' },
127 127
       { id: 5, label: '今日巡检问题', value: res?.todayCheckCorrectionCount, unit: '' },
128 128
       { id: 6, label: '今日抽问抽答', value: `${accuracyStatistics.value?.todayTaskCompletion?.completedCount || 0}/${accuracyStatistics.value?.todayTaskCompletion?.totalCount || 0}`, unit: '' }
129 129
     ]

+ 8 - 8
src/views/dataBigScreen/dashboard/components/pageView/HomePage.vue

@@ -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
   ]