@current="handleCurrentConversation" 点击没反应

来源:13-15 前端TS实现IM模块信息区显示业务数据

qq_北辰元凰_0

2024-01-16

<TUIConversation @current=“handleCurrentConversation” />

下面是 script 代码
const handleCurrentConversation = (value : string) => {
console.log(1233)
console.log(value)
console.log(212)
let account = value.substr(3); //获取客户IM账号
let customerId = account.split("_")[1] //获取客户主键值
data.customer.id = customerId
let json = { customerId: customerId }
//查询客户基本信息和订单统计数据
proxy.$http("/mis/customer/searchSummary", “POST”, json, true, function (resp) {
let result = resp.result
data.customer.name = result.name
data.customer.sex = result.sex
data.customer.tel = result.tel
data.customer.createTime = result.createTime
data.customer.photo = result.photo
data.statistic.amount = result.amount
data.statistic.count = result.count
data.statistic.number = result.number
})

//加载订单分页记录
loadOrderList()

};

function sizeChangeHandle(val) {
data.order.pageSize = val;
data.order.pageIndex = 1;
loadOrderList();
}

function currentChangeHandle(val) {
data.order.pageIndex = val;
loadOrderList();
}

写回答

3回答

weixin_慕尼黑5051028

2024-02-27

我用@current也不行,用这个可以

                    <TUIConversation @handleSwitchConversation="handleCurrentConversation"></TUIConversation>


2
0

恒木西逻

2024-02-02

哥们,感谢你前提提供的IM报错解答,本章节你的问题我还是和你一样也存在,我搞了大半天解决了,案例还是发布在本章节13-15,你可以看看

1
0

神思者

2024-01-17

去看浏览器控制台报错信息

0
2
神思者
回复
qq_北辰元凰_0
你调查一下conversationID是怎么回事,好像某个TM用户没创建呢
2024-01-18
共2条回复

SpringBoot+Vue3+MySQL集群 开发大健康体检双系统

SpirngBoot+Vue3+ MySQL集群 开发大健康体检双系统

318 学习 · 213 问题

查看课程