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