刘洋 1 年之前
父節點
當前提交
a3cd14338d
共有 2 個文件被更改,包括 6 次插入4 次删除
  1. 3 3
      src/hooks/useOptions.ts
  2. 3 1
      src/modules/admin-data/task-setting/index.vue

+ 3 - 3
src/hooks/useOptions.ts

@@ -27,7 +27,7 @@ const useOptions = (
   subjectEnable: boolean | null = true,
   multGroup = false,
   isAiCheck = false,
-  notShowAllLabel = true
+  showAllLabel = true
 ) => {
   const mainStore = useMainStore()
   const isChooseAllOptionMap = reactive<any>({
@@ -148,7 +148,7 @@ const useOptions = (
   const groupListWithAll = computed(() => {
     return groupList.value?.length &&
       (isAdmin.value || isChief.value || isExpert.value || isLeader.value) &&
-      !notShowAllLabel
+      showAllLabel
       ? [{ label: '全部', value: void 0 } as unknown as Group].concat(groupList.value)
       : groupList.value
   })
@@ -206,7 +206,7 @@ const useOptions = (
           //   changeModelValue('group')(res[0])
           // }
           changeModelValue('group')(
-            multGroup && !notShowAllLabel
+            multGroup && showAllLabel
               ? groupList.value?.length && (isAdmin.value || isChief.value || isExpert.value || isLeader.value)
                 ? [void 0]
                 : []

+ 3 - 1
src/modules/admin-data/task-setting/index.vue

@@ -55,7 +55,9 @@ const { subjectList, mainQuestionList, groupList, groupListWithAll, changeModelV
   undefined,
   true,
   true,
-  true
+  true,
+  false,
+  false
 )
 
 const { formRef, elFormRef, defineColumn, _ } = useForm()