|
@@ -73,6 +73,7 @@ import { cloneDeep } from 'lodash-es'
|
|
|
import { useIntervalFn } from '@vueuse/core'
|
|
|
import { getTodayByDay } from '@/utils/common'
|
|
|
import { useRoute } from 'vue-router'
|
|
|
+import { getUserConfigByType, setUserConfigByType } from '@/utils/common'
|
|
|
import type { ExtractApiResponse } from '@/api/api'
|
|
|
const route = useRoute()
|
|
|
console.log('route', route)
|
|
@@ -138,9 +139,15 @@ watch(groupListWithAll, () => {
|
|
|
})
|
|
|
|
|
|
onMounted(() => {
|
|
|
- if (mainStore.myUserInfo && mainStore.myUserInfo.role === 'DEPUTY') {
|
|
|
+ if (
|
|
|
+ (mainStore.myUserInfo && mainStore.myUserInfo.role === 'DEPUTY') ||
|
|
|
+ getUserConfigByType('expandByPerson') == '1'
|
|
|
+ ) {
|
|
|
model.expand = ['按人员展开']
|
|
|
}
|
|
|
+ if (getUserConfigByType('includeLeaderScore') == '1') {
|
|
|
+ model.hasGroupLeaderScore = ['true']
|
|
|
+ }
|
|
|
})
|
|
|
|
|
|
const { fetch, result: allResult, loading } = useFetch('getStatisticsByGroup')
|