Sfoglia il codice sorgente

Merge branch 'ai' into dev

huoyi 2 giorni fa
parent
commit
896c54124a

+ 4 - 4
src/views/assistant/components/dutyOrganization.vue

@@ -214,7 +214,7 @@ const qualificationPieDescriptionPart1 = computed(() => {
214
   // 1. 找出占比最高的等级
214
   // 1. 找出占比最高的等级
215
   const highestLevel = pieData.reduce((max, item) => {
215
   const highestLevel = pieData.reduce((max, item) => {
216
     return (item.count || 0) > (max.count || 0) ? item : max
216
     return (item.count || 0) > (max.count || 0) ? item : max
217
-  }, { levelName: '级', count: 0 })
217
+  }, { levelName: '级', count: 0 })
218
 
218
 
219
   // 2. 计算总人数
219
   // 2. 计算总人数
220
   const totalCount = pieData.reduce((sum, item) => sum + (item.count || 0), 0)
220
   const totalCount = pieData.reduce((sum, item) => sum + (item.count || 0), 0)
@@ -224,7 +224,7 @@ const qualificationPieDescriptionPart1 = computed(() => {
224
   let deptName = attendanceData.value && attendanceData.value.length > 0 ? attendanceData.value[attendanceData.value.length -
224
   let deptName = attendanceData.value && attendanceData.value.length > 0 ? attendanceData.value[attendanceData.value.length -
225
     1]?.deptName : ''
225
     1]?.deptName : ''
226
   // 4. 生成第一部分描述文字
226
   // 4. 生成第一部分描述文字
227
-  return `${deptName}资质等级以"${highestLevel.levelName || '级'}"为主(占比为${highestPercentage}%)`
227
+  return `${deptName}资质等级以"${highestLevel.levelName || '级'}"为主(占比为${highestPercentage}%)`
228
 })
228
 })
229
 
229
 
230
 // 计算属性:动态生成资质等级分布描述第二部分(句号后)
230
 // 计算属性:动态生成资质等级分布描述第二部分(句号后)
@@ -268,7 +268,7 @@ const qualificationPieDescriptionPart2 = computed(() => {
268
   }
268
   }
269
 
269
 
270
   // 生成第二部分描述文字
270
   // 生成第二部分描述文字
271
-  return `全站资质等级为"级"的人员集中在${topDeptForLevel1}(${level1Count}人)${topDeptForLevel1}的人员规模(共${totalDeptCount}人)高于${allDeptNames.filter(name => name !== topDeptForLevel1).join(', ')}`
271
+  return `全站资质等级为"级"的人员集中在${topDeptForLevel1}(${level1Count}人)${topDeptForLevel1}的人员规模(共${totalDeptCount}人)高于${allDeptNames.filter(name => name !== topDeptForLevel1).join(', ')}`
272
 })
272
 })
273
 
273
 
274
 
274
 
@@ -336,7 +336,7 @@ const fetchDutyOrganizationData = async (queryParams) => {
336
     // 获取资质等级分布饼图数据(如果部门类型不是STATION)
336
     // 获取资质等级分布饼图数据(如果部门类型不是STATION)
337
     if (isNotUserType.value) {
337
     if (isNotUserType.value) {
338
       const pieResponse = await getQualificationPieChart({ ...processedParams, ...calculateParams })
338
       const pieResponse = await getQualificationPieChart({ ...processedParams, ...calculateParams })
339
-      console.log('资质等级分布饼图数据:', pieResponse)
339
+    
340
       qualificationPieData.value = pieResponse.data || []
340
       qualificationPieData.value = pieResponse.data || []
341
     } else {
341
     } else {
342
       qualificationPieData.value = []
342
       qualificationPieData.value = []

+ 1 - 1
src/views/assistant/components/riskHazard.vue

@@ -195,7 +195,7 @@
195
         </div>
195
         </div>
196
 
196
 
197
         <!-- 第九个:可能异常查获数据 -->
197
         <!-- 第九个:可能异常查获数据 -->
198
-        <div class="panel-item" v-show="!isTeamsType && !isUserType">
198
+        <div class="panel-item" v-show="!isTeamsType && !isUserType && !isDepartmentType">
199
           <div class="panel-header">
199
           <div class="panel-header">
200
             <h3>可能异常查获数据</h3>
200
             <h3>可能异常查获数据</h3>
201
           </div>
201
           </div>