|
@@ -13,13 +13,23 @@ import { NetImages } from '../../../core/libs/enums'
|
|
import { getPointsFlow } from '../../../core/libs/agent-requests'
|
|
import { getPointsFlow } from '../../../core/libs/agent-requests'
|
|
import PageHelperEvo from '@/components/page-helper-evo.vue'
|
|
import PageHelperEvo from '@/components/page-helper-evo.vue'
|
|
import { getBroker } from '../../../core/libs/requests'
|
|
import { getBroker } from '../../../core/libs/requests'
|
|
|
|
+import PickerEvo from '@/components/picker-evo.vue'
|
|
|
|
|
|
const userStore = useUserStore()
|
|
const userStore = useUserStore()
|
|
const { userInfo } = storeToRefs(userStore)
|
|
const { userInfo } = storeToRefs(userStore)
|
|
|
|
+const yearState = ref(true)
|
|
|
|
+const year = ref(dayjs().toDate().getTime())
|
|
|
|
+const query = computed(() => ({
|
|
|
|
+ brokerId: userInfo.value.userId,
|
|
|
|
+ year: dayjs(year.value).format('YYYY'),
|
|
|
|
+}))
|
|
|
|
|
|
const { data, run: setData } = useRequest(() =>
|
|
const { data, run: setData } = useRequest(() =>
|
|
getBroker({ brokerId: String(userInfo.value.userId) }),
|
|
getBroker({ brokerId: String(userInfo.value.userId) }),
|
|
)
|
|
)
|
|
|
|
+const handleSelect = () => {
|
|
|
|
+ yearState.value = false
|
|
|
|
+}
|
|
onMounted(async () => {
|
|
onMounted(async () => {
|
|
await setData()
|
|
await setData()
|
|
})
|
|
})
|
|
@@ -53,12 +63,15 @@ onMounted(async () => {
|
|
</div>
|
|
</div>
|
|
<div class="flex-1"></div>
|
|
<div class="flex-1"></div>
|
|
<div></div>
|
|
<div></div>
|
|
- <div class="text-[white] text-sm font-normal font-['PingFang_SC'] leading-relaxed">
|
|
|
|
- 2024
|
|
|
|
- </div>
|
|
|
|
|
|
+ <wd-datetime-picker type="year" v-model="year" use-default-slot>
|
|
|
|
+ <div class="text-[white] text-sm font-normal font-['PingFang_SC'] leading-relaxed">
|
|
|
|
+ {{ dayjs(year).format('YYYY') }}
|
|
|
|
+ <wd-icon name="arrow-down" size="12" class="text-[#ffffff]"></wd-icon>
|
|
|
|
+ </div>
|
|
|
|
+ </wd-datetime-picker>
|
|
</div>
|
|
</div>
|
|
<Card custom-class="relative">
|
|
<Card custom-class="relative">
|
|
- <PageHelperEvo :request="getPointsFlow" :query="{ brokerId: userInfo.userId, year: 2024 }">
|
|
|
|
|
|
+ <PageHelperEvo :request="getPointsFlow" :query="query">
|
|
<template #default="{ source }">
|
|
<template #default="{ source }">
|
|
<div class="flex flex-col gap-4">
|
|
<div class="flex flex-col gap-4">
|
|
<template v-for="(it, i) in source?.list" :key="i">
|
|
<template v-for="(it, i) in source?.list" :key="i">
|