소스 검색

feat: 人员数据统计选择小组增加全部

chenhao 2 년 전
부모
커밋
39c9ef7dea
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      src/hooks/useOptions.ts
  2. 1 1
      src/modules/analysis/personnel-statistics/hooks/useStatisticsFilter.ts

+ 1 - 1
src/hooks/useOptions.ts

@@ -78,7 +78,7 @@ const useOptions = (types: (keyof DataModel)[], initModel?: DataModel | Ref<Data
       ? Array.from({ length: mainQuestionInfo.value.groupNumber }).map((_, i) => {
           return {
             value: i + 1,
-            label: `第${numberToChinese(i + 1)}组`,
+            label: `第${i + 1}组`,
           }
         })
       : []

+ 1 - 1
src/modules/analysis/personnel-statistics/hooks/useStatisticsFilter.ts

@@ -86,7 +86,7 @@ const useStatisticsFilter = () => {
       label: '小组',
       slotType: 'select',
       slot: {
-        options: groupList.value,
+        options: groupList.value.concat({ label: '全部', value: '' }),
         onChange: changeModelValue('group'),
       },
     }),