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

@@ -4664,7 +4664,7 @@
}, },
"node_modules/markdown-it": { "node_modules/markdown-it": {
"version": "14.1.0", "version": "14.1.0",
"resolved": "https://registry.npmmirror.com/markdown-it/-/markdown-it-14.1.0.tgz", "resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-14.1.0.tgz",
"integrity": "sha512-a54IwgWPaeBCAAsv13YgmALOF1elABB08FxO9i+r4VFk5Vl4pKokRPeX8u5TCgSsPi6ec1otfLjdOpVcgbpshg==", "integrity": "sha512-a54IwgWPaeBCAAsv13YgmALOF1elABB08FxO9i+r4VFk5Vl4pKokRPeX8u5TCgSsPi6ec1otfLjdOpVcgbpshg==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {

View File

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