|
@@ -8,6 +8,7 @@ import useFetch from '@/hooks/useFetch'
|
|
import useDayList from '@/hooks/useDayList'
|
|
import useDayList from '@/hooks/useDayList'
|
|
import { getTodayByDay } from '@/utils/common'
|
|
import { getTodayByDay } from '@/utils/common'
|
|
import { useRoute } from 'vue-router'
|
|
import { useRoute } from 'vue-router'
|
|
|
|
+import { getUserConfigByType, setUserConfigByType } from '@/utils/common'
|
|
import type { EpFormItem, EpFormRows } from 'global-type'
|
|
import type { EpFormItem, EpFormRows } from 'global-type'
|
|
import type { ExtractApiParams } from '@/api/api'
|
|
import type { ExtractApiParams } from '@/api/api'
|
|
|
|
|
|
@@ -94,6 +95,19 @@ const useStatisticsFilter = () => {
|
|
immediate: true,
|
|
immediate: true,
|
|
}
|
|
}
|
|
)
|
|
)
|
|
|
|
+ watch(
|
|
|
|
+ () => model.expand,
|
|
|
|
+ (val) => {
|
|
|
|
+ setUserConfigByType('expandByPerson', val?.length ? '1' : '0')
|
|
|
|
+ }
|
|
|
|
+ )
|
|
|
|
+ watch(
|
|
|
|
+ () => model.hasGroupLeaderScore,
|
|
|
|
+ (val) => {
|
|
|
|
+ setUserConfigByType('includeLeaderScore', val?.length == 1 ? '1' : '0')
|
|
|
|
+ }
|
|
|
|
+ )
|
|
|
|
+
|
|
// const fetchModel = computed<ExtractApiParams<'getStatisticsByGroup'> & { expand: boolean }>(() => {
|
|
// const fetchModel = computed<ExtractApiParams<'getStatisticsByGroup'> & { expand: boolean }>(() => {
|
|
const fetchModel = computed<any>(() => {
|
|
const fetchModel = computed<any>(() => {
|
|
return Object.assign(omit(model, 'curDay'), {
|
|
return Object.assign(omit(model, 'curDay'), {
|