sprint 5 months ago
parent
commit
b8aa5ea33d
  1. 1
      .gitignore
  2. BIN
      src/assets/favicon.ico
  3. BIN
      src/assets/logo.png
  4. 37
      src/views/assignment/DataIntention.vue
  5. 2
      src/views/login/LoginView.vue

1
.gitignore

@ -28,3 +28,4 @@ coverage
*.sw?
*.tsbuildinfo
dist.zip

BIN
src/assets/favicon.ico

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 17 KiB

BIN
src/assets/logo.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 207 KiB

After

Width:  |  Height:  |  Size: 68 KiB

37
src/views/assignment/DataIntention.vue

@ -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>

2
src/views/login/LoginView.vue

@ -88,7 +88,7 @@ const onSubmit = async () => {
<section class="wrapper">
<header>
<div class="logo">
<img width="200" src="@/assets/logo.png" />
<img width="120" src="@/assets/logo.png" />
</div>
<h1>{{ title }}</h1>
</header>

Loading…
Cancel
Save