|
|
@ -10,14 +10,14 @@ import type { CustomResponse } from '@/common/interface' |
|
|
|
const data = reactive({ |
|
|
|
desserts: [], |
|
|
|
headers: [ |
|
|
|
{ title: '来源归属', key: '', width: '100' }, |
|
|
|
{ title: '是否安装', key: '', width: '100' }, |
|
|
|
{ title: '活跃分类', key: '', width: '100' }, |
|
|
|
{ title: '充值分类', key: '', width: '100' }, |
|
|
|
{ title: '初始等级', key: '', width: '100' }, |
|
|
|
{ title: '号码价值积分', key: '', width: '100' }, |
|
|
|
{ title: '来源归属', key: 'phone_origin', width: '100' }, |
|
|
|
{ title: '是否安装', key: 'install_type', width: '100' }, |
|
|
|
{ title: '活跃分类', key: 'active_type', width: '100' }, |
|
|
|
{ title: '充值分类', key: 'deposit_type', width: '100' }, |
|
|
|
{ title: '初始等级', key: 'assign_level', width: '100' }, |
|
|
|
{ title: '号码价值积分', key: 'score', width: '100' }, |
|
|
|
{ title: '分配数量', key: '', width: '100' }, |
|
|
|
{ title: '分配占比', key: '', width: '100' }, |
|
|
|
{ title: '分配占比', key: 'assign_rate', width: '100' }, |
|
|
|
{ title: '初始总充值', key: '', width: '100' }, |
|
|
|
{ title: '首跟总充值', key: '', width: '100' }, |
|
|
|
{ title: '累计-总充值', key: '', width: '100' }, |
|
|
@ -34,7 +34,6 @@ const data = reactive({ |
|
|
|
{ title: '新代理充值', key: '' }, |
|
|
|
{ title: '代理收益', key: '' }, |
|
|
|
] as any, |
|
|
|
assignDesserts: [], |
|
|
|
search: { |
|
|
|
username: '', |
|
|
|
group_id: 0, |
|
|
@ -77,7 +76,7 @@ const getItems = async () => { |
|
|
|
search_start_time: search_time[0], |
|
|
|
search_end_time: search_time[1], |
|
|
|
} |
|
|
|
const response: CustomResponse = (await instance.post('/assignment/intention/list', params)).data |
|
|
|
const response: CustomResponse = (await instance.post('/assignment/intentionList', params)).data |
|
|
|
|
|
|
|
if (!response.code) { |
|
|
|
data.snackbar.show = true |
|
|
@ -85,8 +84,7 @@ const getItems = async () => { |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
data.assignDesserts = response.data.data |
|
|
|
data.paginate.last_page = response.data.last_page |
|
|
|
data.desserts = response.data.data |
|
|
|
} |
|
|
|
|
|
|
|
//获取组信息 |
|
|
@ -170,13 +168,20 @@ onMounted(() => { |
|
|
|
:size="data.paginate.last_page" |
|
|
|
@get-items="getItems" |
|
|
|
> |
|
|
|
<template #item.first_intention="{ value }"> |
|
|
|
<span v-for="v in data.options.intention" :key="v.value"> |
|
|
|
<v-btn v-if="v.value == value" size="small" variant="text">{{ v.title }}</v-btn> |
|
|
|
</span> |
|
|
|
<template #item.phone_origin="{ value }"> |
|
|
|
{{ value ? '外部号码' : '内部号码' }} |
|
|
|
</template> |
|
|
|
<template #item.install_type="{ value }"> |
|
|
|
{{ value ? '是' : '否' }} |
|
|
|
</template> |
|
|
|
<template #item.active_type="{ value }"> |
|
|
|
{{ value ? '是' : '否' }} |
|
|
|
</template> |
|
|
|
<template #item.deposit_type="{ value }"> |
|
|
|
{{ value ? '是' : '否' }} |
|
|
|
</template> |
|
|
|
|
|
|
|
<template #item.agent_rate="{ value }"> |
|
|
|
<template #item.assign_rate="{ value }"> |
|
|
|
{{ `${value}%` }} |
|
|
|
</template> |
|
|
|
</DataTable> |
|
|
|