fix: 将客户查询参数从name改为phone

修改客户聊天和通话记录的查询参数,从使用客户姓名改为使用电话号码,以匹配后端接口的变更需求
This commit is contained in:
2025-10-15 21:38:19 +08:00
parent 57be345996
commit ea32a16e5d
3 changed files with 308 additions and 1544 deletions

View File

@@ -597,7 +597,7 @@ async function getCustomerChat() {
const routeParams = getRequestParams()
const params = {
user_name: routeParams.user_name || userStore.userInfo.username,
customer_name: selectedContact.value.name,
phone: selectedContact.value.phone,
}
try {
const res = await getCustomerChatInfo(params)
@@ -618,7 +618,7 @@ async function getCustomerCall() {
const routeParams = getRequestParams()
const params = {
user_name: routeParams.user_name || userStore.userInfo.username,
customer_name: selectedContact.value.name,
phone: selectedContact.value.phone,
}
try {
const res = await getCustomerCallInfo(params)