|
@@ -18,7 +18,7 @@ import {
|
|
|
getTodos,
|
|
|
scanCodeCheckPaper,
|
|
|
} from '../../core/libs/requests'
|
|
|
-import SectionHeading from '@designer-hub/app/src/components/section-heading.vue'
|
|
|
+import SectionHeading from '@/components/section-heading.vue'
|
|
|
import Card from '@designer-hub/app/src/components/card.vue'
|
|
|
import { merchantPageHeaderBg, scanIcon, bookIcon } from '@designer-hub/assets/src/svgs'
|
|
|
import { useUserStore } from '../../store'
|
|
@@ -39,14 +39,14 @@ const { isLogined, userInfo, isAgent, isMerchant } = storeToRefs(userStore)
|
|
|
const orderAmount = ref()
|
|
|
const pointsAmount = computed(() => orderAmount.value * 10)
|
|
|
const todosQuery = computed(() => ({
|
|
|
- brokerId: userInfo.value.userId.toString(),
|
|
|
+ brokerId: String(userInfo.value.userId),
|
|
|
executionTime: [
|
|
|
dayjs().startOf('days').format('YYYY-MM-DD HH:mm:ss'),
|
|
|
dayjs().endOf('days').format('YYYY-MM-DD HH:mm:ss'),
|
|
|
].join(','),
|
|
|
}))
|
|
|
const designerPointsActivitiesQuery = computed(() => ({
|
|
|
- brokerId: userInfo.value.userId.toString(),
|
|
|
+ brokerId: String(userInfo.value.userId),
|
|
|
}))
|
|
|
const { data: tasks, run: setTasks } = useRequest(
|
|
|
() => getTasks({ brokerId: userInfo.value.userId }),
|
|
@@ -142,7 +142,7 @@ onShareAppMessage(() => ({}))
|
|
|
<div>
|
|
|
<SectionHeading
|
|
|
title="任务"
|
|
|
- path="/pages/home/tasks/index"
|
|
|
+ path="/pages/agent/tasks/index"
|
|
|
end-text="查看全部"
|
|
|
custom-class="mb-5"
|
|
|
></SectionHeading>
|
|
@@ -165,42 +165,42 @@ onShareAppMessage(() => ({}))
|
|
|
{
|
|
|
label: '关系报备',
|
|
|
color: 'white',
|
|
|
- path: '/pages/home/agent/report-infos/index',
|
|
|
+ path: '/pages/agent/report-infos/index',
|
|
|
},
|
|
|
{
|
|
|
label: '全部设计师',
|
|
|
color: '#7199FF',
|
|
|
- path: '/pages/designer/index?title=全部设计师',
|
|
|
+ path: '/pages/agent/designer/index?title=全部设计师',
|
|
|
},
|
|
|
{
|
|
|
label: '重点跟进设计师',
|
|
|
color: '#FF523F',
|
|
|
- path: '/pages/designer/index?title=重点跟进设计师&tags=1',
|
|
|
+ path: '/pages/agent/designer/index?title=重点跟进设计师&tags=1',
|
|
|
},
|
|
|
{
|
|
|
label: '本月新增设计师',
|
|
|
color: '#FFE786',
|
|
|
- path: '/pages/designer/index?title=本月新增设计师&tags=2',
|
|
|
+ path: '/pages/agent/designer/index?title=本月新增设计师&tags=2',
|
|
|
},
|
|
|
{
|
|
|
label: '超过30天未跟进',
|
|
|
color: '#89F4E3',
|
|
|
- path: '/pages/designer/index?title=超过30天未跟进&tags=3',
|
|
|
+ path: '/pages/agent/designer/index?title=超过30天未跟进&tags=3',
|
|
|
},
|
|
|
{
|
|
|
label: '超过60天未产生积分设计师',
|
|
|
color: '#FFBA6A',
|
|
|
- path: '/pages/designer/index?title=超过60天未产生积分设计师&tags=4',
|
|
|
+ path: '/pages/agent/designer/index?title=超过60天未产生积分设计师&tags=4',
|
|
|
},
|
|
|
{
|
|
|
label: '超过60天未消耗积分设计师',
|
|
|
color: '#C494FF',
|
|
|
- path: '/pages/designer/index?title=超过60天未消耗积分设计师&tags=5',
|
|
|
+ path: '/pages/agent/designer/index?title=超过60天未消耗积分设计师&tags=5',
|
|
|
},
|
|
|
{
|
|
|
label: '未成交过设计师',
|
|
|
color: '#FF9EE2',
|
|
|
- path: '/pages/designer/index?title=未成交过设计师&tags=6',
|
|
|
+ path: '/pages/agent/designer/index?title=未成交过设计师&tags=6',
|
|
|
},
|
|
|
]"
|
|
|
:key="label"
|
|
@@ -225,7 +225,7 @@ onShareAppMessage(() => ({}))
|
|
|
>
|
|
|
<template #default="{ source }">
|
|
|
<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">
|
|
|
<Card>
|
|
|
<div
|
|
|
class="text-black/90 text-sm font-normal font-['PingFang_SC'] leading-none"
|