Переглянути джерело

refactor(home-new): 统一将"巡检"改为"巡视检查"并更新相关文案

将组件中所有"巡检"相关文案统一修改为"巡视检查",包括标签、标题和变量名,以保持术语一致性。同时将"查获上报"更新为"查获数据"以更准确描述功能。
huoyi 1 тиждень тому
батько
коміт
35638713c2

+ 1 - 1
src/pages/home-new/components/performanceAnalysis.vue

@@ -20,7 +20,7 @@
20 20
                     </div>
21 21
                     <div class="data-item">
22 22
                         <div class="data-value">{{ item.inspectionPassRate || '0.0' }}</div>
23
-                        <div class="data-label">巡检合格率</div>
23
+                        <div class="data-label">巡合格率</div>
24 24
                     </div>
25 25
                     <div class="data-item">
26 26
                         <div class="data-value">{{ item.trainingScore || '0.0' }}</div>

+ 3 - 3
src/pages/home-new/components/total-detail.vue

@@ -109,7 +109,7 @@ export default {
109 109
                     list: [
110 110
                         { label: '人均查获数量', value: item.seizureCount || 0 },
111 111
                         { label: '人均在岗时长', value: item.workingHours || 0 },
112
-                        { label: '巡检合格率', value: `${((item.checkPassRate * 100) || 0).toFixed(2)}%` },
112
+                        { label: '巡合格率', value: `${((item.checkPassRate * 100) || 0).toFixed(2)}%` },
113 113
                         { label: '抽问抽答正确率', value: `${((item.answersAccuracy * 100) || 0).toFixed(2)}%` },
114 114
                         { label: '培训答题平均分', value: item.learningGrowthScore || 0 }
115 115
                     ]
@@ -217,7 +217,7 @@ export default {
217 217
                 const indicators = [
218 218
                     { name: '查获能力', max: Math.max(...seriesData.map(d => d.value[0])) },
219 219
                     { name: '在岗时长', max: Math.max(...seriesData.map(d => d.value[1])) },
220
-                    { name: '巡检合格率', max: Math.max(...seriesData.map(d => d.value[2])) },
220
+                    { name: '巡合格率', max: Math.max(...seriesData.map(d => d.value[2])) },
221 221
                     { name: '抽问抽答', max: Math.max(...seriesData.map(d => d.value[3])) },
222 222
                     { name: '培训答题', max: Math.max(...seriesData.map(d => d.value[4])) }
223 223
                 ];
@@ -333,7 +333,7 @@ export default {
333 333
 
334 334
         // 显示雷达图数据详情
335 335
         showRadarDataDetail(dataItem) {
336
-            const labels = ['查获数量', '在岗时长', '巡检合格率', '抽问抽答', '培训答题'];
336
+            const labels = ['查获数量', '在岗时长', '巡合格率', '抽问抽答', '培训答题'];
337 337
             const values = [
338 338
                 dataItem.seizureCount || 0,
339 339
                 dataItem.workingHours || 0,

+ 9 - 9
src/pages/home-new/components/type-detail.vue

@@ -33,8 +33,8 @@
33 33
                     </div>
34 34
                 </div>
35 35
 
36
-                <!-- 巡检部分的问题整改区域 -->
37
-                <div v-if="item.title === '巡检'" class="problem-rect-section">
36
+                <!-- 巡部分的问题整改区域 -->
37
+                <div v-if="item.title === '巡'" class="problem-rect-section">
38 38
                     <div class="problem-title">问题整改</div>
39 39
                     <div class="problem-grid">
40 40
                         <!-- 左边:已办结问题 -->
@@ -72,7 +72,7 @@
72 72
 
73 73
                     <!-- 大队合格率排行 -->
74 74
                     <div class="rank-header">
75
-                        <div class="rank-title">{{ item.title === '查获上报' ? '大队查获总数排名' : item.title == '抽问抽答' ? '大队正确率排名'
75
+                        <div class="rank-title">{{ item.title === '查获数据' ? '大队查获总数排名' : item.title == '抽问抽答' ? '大队正确率排名'
76 76
                             :
77 77
                             '大队合格率排名' }}</div>
78 78
                         <div class="sort-buttons">
@@ -90,7 +90,7 @@
90 90
                             <div class="rank-label">{{ brigade.name }}</div>
91 91
                             <div class="rank-progress">
92 92
                                 <h-rank-line
93
-                                    :percentage="item.title !== '查获上报' ? Number(brigade.passRate || 0) : getPercentage(brigade.passRate, item.brigadeRank)"
93
+                                    :percentage="item.title !== '查获数据' ? Number(brigade.passRate || 0) : getPercentage(brigade.passRate, item.brigadeRank)"
94 94
                                     endType="round" :height="10" :color="['#A8E6CF', '#4CAF50']">
95 95
                                     <div class="rank-info"><span style="color: #999999">{{ brigade.passRate || 0
96 96
                                             }}</span>
@@ -105,7 +105,7 @@
105 105
                             <div class="rank-label">{{ brigade.name }}</div>
106 106
                             <div class="rank-progress">
107 107
                                 <h-rank-line
108
-                                    :percentage="item.title !== '查获上报' ? Number(brigade.passRate || 0) : getPercentage(brigade.passRate, item.bottomBrigadeRank)"
108
+                                    :percentage="item.title !== '查获数据' ? Number(brigade.passRate || 0) : getPercentage(brigade.passRate, item.bottomBrigadeRank)"
109 109
                                     endType="round" :height="10" :color="['#A8E6CF', '#4CAF50']">
110 110
                                     <div class="rank-info"><span style="color: #999999">{{ brigade.passRate || 0
111 111
                                             }}</span>
@@ -117,7 +117,7 @@
117 117
 
118 118
                     <!-- 主管合格率排行 -->
119 119
                     <div class="rank-header">
120
-                        <div class="rank-title">{{ item.title === '查获上报' ? '主管查获总数排名' : item.title == '抽问抽答' ? '主管正确率排名'
120
+                        <div class="rank-title">{{ item.title === '查获数据' ? '主管查获总数排名' : item.title == '抽问抽答' ? '主管正确率排名'
121 121
                             :
122 122
                             '主管合格率排名' }}</div>
123 123
                         <div class="sort-buttons">
@@ -135,7 +135,7 @@
135 135
                             <div class="rank-label">{{ dept.name }}</div>
136 136
                             <div class="rank-progress">
137 137
                                 <h-rank-line
138
-                                    :percentage="item.title !== '查获上报' ? Number(dept.passRate || 0) : getPercentage(dept.passRate, item.departmentRank)"
138
+                                    :percentage="item.title !== '查获数据' ? Number(dept.passRate || 0) : getPercentage(dept.passRate, item.departmentRank)"
139 139
                                     endType="round" :height="10" :color="['#F9CA91', '#ED9E3E']">
140 140
                                     <div class="rank-info"><span style="color: #999999">{{ dept.passRate || 0 }}</span>
141 141
                                     </div>
@@ -149,7 +149,7 @@
149 149
                             <div class="rank-label">{{ dept.name }}</div>
150 150
                             <div class="rank-progress">
151 151
                                 <h-rank-line
152
-                                    :percentage="item.title !== '查获上报' ? Number(dept.passRate || 0) : getPercentage(dept.passRate, item.bottomDepartmentRank)"
152
+                                    :percentage="item.title !== '查获数据' ? Number(dept.passRate || 0) : getPercentage(dept.passRate, item.bottomDepartmentRank)"
153 153
                                     endType="round" :height="10" :color="['#F9CA91', '#ED9E3E']">
154 154
                                     <div class="rank-info"><span style="color: #999999">{{ dept.passRate || 0 }}</span>
155 155
                                     </div>
@@ -161,7 +161,7 @@
161 161
                     <!-- 班组合格率排行 -->
162 162
                     <div class="rank-header">
163 163
                         <div class="rank-title">{{ item.title ===
164
-                            '查获上报' ? '班组查获总数排名' : item.title == '抽问抽答' ? '班组正确率排名' : '班组合格率排名' }}</div>
164
+                            '查获数据' ? '班组查获总数排名' : item.title == '抽问抽答' ? '班组正确率排名' : '班组合格率排名' }}</div>
165 165
                         <div class="sort-buttons">
166 166
                             <div :class="['sort-btn', { 'active': item.teamSortType === 'asc' }]"
167 167
                                 @click="$emit('sort-change', item.title, 'team', 'asc')">正序</div>

+ 12 - 12
src/pages/home-new/index.vue

@@ -118,9 +118,9 @@ export default {
118 118
             ],
119 119
             // 排序状态管理
120 120
             sortStates: {
121
-                '查获上报': { teamSortType: 'asc', deptSortType: 'asc', brigadeSortType: 'asc' },
121
+                '查获数据': { teamSortType: 'asc', deptSortType: 'asc', brigadeSortType: 'asc' },
122 122
                 '抽问抽答': { teamSortType: 'asc', deptSortType: 'asc', brigadeSortType: 'asc' },
123
-                '巡检': { teamSortType: 'asc', deptSortType: 'asc', brigadeSortType: 'asc' }
123
+                '巡': { teamSortType: 'asc', deptSortType: 'asc', brigadeSortType: 'asc' }
124 124
             },
125 125
             // 排名数据
126 126
             rankData: {
@@ -205,13 +205,13 @@ export default {
205 205
             console.log('this.seizeData', this.seizeData, this.seizeData.stationMasterData)
206 206
             return [
207 207
                 {
208
-                    title: '查获上报',
208
+                    title: '查获数据',
209 209
                     linkText: this.isZhanZhang ? "" : this.isIndividualView ? (this.seizePendingCount ? `${this.seizePendingCount}条草稿待处理` : '') : (this.seizePendingCount ? `${this.seizePendingCount}条数据待处理` : ''),
210 210
                     link: this.isIndividualView ? '/pages/voiceSubmissionDraft/index' : '/pages/myToDoList/index',
211 211
                     statTitle: '查获数量',
212
-                    teamSortType: this.sortStates['查获上报'].teamSortType,
213
-                    deptSortType: this.sortStates['查获上报'].deptSortType,
214
-                    brigadeSortType: this.sortStates['查获上报'].brigadeSortType,
212
+                    teamSortType: this.sortStates['查获数据'].teamSortType,
213
+                    deptSortType: this.sortStates['查获数据'].deptSortType,
214
+                    brigadeSortType: this.sortStates['查获数据'].brigadeSortType,
215 215
                     dividerIndex: this.isBrigade ? 1 : 0,
216 216
                     dataItems: this.getSeizeDataItems(),
217 217
                     rankList: this.getSeizeRankList(),
@@ -241,13 +241,13 @@ export default {
241 241
                     bottomBrigadeRank: this.accuracyStatistics.brigadeRankingList && [...this.accuracyStatistics.brigadeRankingList].sort((a, b) => (a.accuracy || 0) - (b.accuracy || 0)).slice(0, 5).map(item => ({ ...item, passRate: item.accuracy.toFixed(2), name: item.name })),
242 242
                 },
243 243
                 {
244
-                    title: '巡检',
244
+                    title: '巡',
245 245
                     linkText: this.isZhanZhang ? "" : this.inspectionData.toDoNumber ? `${this.inspectionData.toDoNumber}条待处理任务` : "",
246 246
                     link: '/pages/myToDoList/index',
247 247
                     statTitle: '合格率(%)',
248
-                    teamSortType: this.sortStates['巡检'].teamSortType,
249
-                    deptSortType: this.sortStates['巡检'].deptSortType,
250
-                    brigadeSortType: this.sortStates['巡检'].brigadeSortType,
248
+                    teamSortType: this.sortStates['巡'].teamSortType,
249
+                    deptSortType: this.sortStates['巡'].deptSortType,
250
+                    brigadeSortType: this.sortStates['巡'].brigadeSortType,
251 251
                     dividerIndex: this.isBrigade ? 1 : 0,
252 252
                     dataItems: this.getInspectionDataItems(),
253 253
                     completed: this.inspectionData.doneNumber,
@@ -316,8 +316,8 @@ export default {
316 316
                     { label: firstLabel, value: firstValue },
317 317
                     { label: secondLabel, value: secondValue },
318 318
                     { label: thirdLabel, value: thirdValue, link: thirdLink },
319
-                    { label: '今日查获上报', value: res?.todaySeizureReportCount },
320
-                    { label: '今日巡检问题', value: res?.todayCheckCorrectionCount },
319
+                    { label: '今日查获数量', value: res?.todaySeizureReportCount },
320
+                    { label: '今日巡问题', value: res?.todayCheckCorrectionCount },
321 321
                     { label: '今日抽问抽答', value: `${this.accuracyStatistics?.todayTaskCompletion?.completedCount || 0}/${this.accuracyStatistics?.todayTaskCompletion?.totalCount || 0}` }
322 322
                 ];
323 323
             } else {