refactor: TodayCustomer利用CustomerApi

This commit is contained in:
dhb52 2024-02-16 22:38:06 +08:00
parent a2de0665eb
commit c1c48c20a3

View File

@ -119,7 +119,7 @@
</template> </template>
<script lang="ts" setup name="TodayCustomer"> <script lang="ts" setup name="TodayCustomer">
import * as BacklogApi from '@/api/crm/backlog' import * as CustomerApi from '@/api/crm/customer'
import { DICT_TYPE } from '@/utils/dict' import { DICT_TYPE } from '@/utils/dict'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter } from '@/utils/formatTime'
import { CONTACT_STATUS, SCENE_TYPES } from './common' import { CONTACT_STATUS, SCENE_TYPES } from './common'
@ -133,7 +133,8 @@ const queryParams = ref({
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 10,
contactStatus: 1, contactStatus: 1,
sceneType: 1 sceneType: 1,
pool: null //
}) })
const queryFormRef = ref() // const queryFormRef = ref() //
@ -141,7 +142,7 @@ const queryFormRef = ref() // 搜索的表单
const getList = async () => { const getList = async () => {
loading.value = true loading.value = true
try { try {
const data = await BacklogApi.getTodayCustomerPage(queryParams.value) const data = await CustomerApi.getCustomerPage(queryParams.value)
list.value = data.list list.value = data.list
total.value = data.total total.value = data.total
} finally { } finally {