Commit 69a82bef by qiyeqing

客户群聊记录

1 parent dfcddb1e
...@@ -245,29 +245,20 @@ ...@@ -245,29 +245,20 @@
} }
if (group) { if (group) {
console.log(query)
content.chatGrounpList(query).then(res => { content.chatGrounpList(query).then(res => {
this.total = Number(res.total) this.total = Number(res.total)
if (this.activeNameThree == 0) { this.resortData(res)
return this.allChat = res.rows
}
if (this.activeNameThree == 1) {
return this.allChatImg = res.rows
}
if (this.activeNameThree == 2) {
return this.allFile = res.rows
}
if (this.activeNameThree == 3) {
return this.allLInk = res.rows
}
if (this.activeNameThree == 4) {
return this.allVoice = res.rows
}
}) })
} else { } else {
content.chatList(query).then(res => { content.chatList(query).then(res => {
this.total = Number(res.total) this.total = Number(res.total)
if (this.activeNameThree == 0) { this.resortData(res)
})
}
}
},
resortData(res){
if (this.activeNameThree == 0) {
return this.allChat = res.rows return this.allChat = res.rows
} }
if (this.activeNameThree == 1) { if (this.activeNameThree == 1) {
...@@ -282,9 +273,6 @@ ...@@ -282,9 +273,6 @@
if (this.activeNameThree == 4) { if (this.activeNameThree == 4) {
return this.allVoice = res.rows return this.allVoice = res.rows
} }
})
}
}
}, },
chatFn(data) { chatFn(data) {
this.chat = data; this.chat = data;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!