Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit dfcddb1e
authored
Jan 21, 2021
by
qiyeqing
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
客户聊天!
1 parent
6c2a7ef0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
20 deletions
linkwe-ui/src/views/conversation/component/chat.vue
linkwe-ui/src/views/conversation/component/customerList.vue
linkwe-ui/src/views/conversation/page/userTest.vue
linkwe-ui/src/views/conversation/component/chat.vue
View file @
dfcddb1
...
...
@@ -9,14 +9,12 @@
</div>
<div
v-else-if=
"item.msgtype=='image'"
class=
"msgtypeimg"
>
<img
src=
"http://146.56.222.200/api/profile/upload/2021/01/14/544c8259-b3b6-4a49-8a53-b5eeac476384.png"
>
<!-- http://146.56.222.200:8080 -->
</div>
<div
v-else-if=
"item.msgtype=='file'"
class=
"msgtypefile"
@
click=
"down(item.file)"
>
{{
item
.
file
.
filename
}}
</div>
<!--
<div
v-else-if=
"item.msgtype=='link'&&item.text"
class=
"msgtypelink"
>
{{
item
.
text
.
content
}}
</div>
-->
<div
v-else-if=
"item.msgtype=='voice'"
class=
"msgtypevoice"
>
<i
class=
"el-icon-video-play"
@
click=
"play(item,'voice')"
></i>
</div>
...
...
linkwe-ui/src/views/conversation/component/customerList.vue
View file @
dfcddb1
...
...
@@ -5,8 +5,7 @@
<li
v-for=
"(item,index) in personList"
:key=
"index"
@
click=
"liClick(item)"
>
<el-row
style=
"padding:10px"
>
<el-col
:span=
"3"
><img
:src=
"item.receiveWeUser.avatarMediaid"
></el-col>
<el-col
:span=
"21"
>
<el-col
:span=
"21"
>
<p>
{{
item
.
receiveWeUser
.
name
}}
<span
class=
"fr gray"
>
{{
parseTime
(
item
.
finalChatContext
.
msgtime
)
}}
</span></p>
<p
class=
"gray padt10"
v-if=
"item.finalChatContext.text"
>
{{
item
.
finalChatContext
.
text
.
content
}}
</p>
</el-col>
...
...
@@ -48,7 +47,7 @@
margin
:
0
;}
.list
{
overflow-y
:
scroll
;
height
:
708
px
;
height
:
651
px
;
::-webkit-scrollbar
{
display
:
none
;
}
...
...
linkwe-ui/src/views/conversation/page/userTest.vue
View file @
dfcddb1
...
...
@@ -37,7 +37,7 @@
<el-tabs
v-model=
"activeName"
@
tab-click=
"getChatList()"
>
<el-tab-pane
label=
"单聊"
name=
"0"
>
<div
class=
"hd_tabs_content"
>
<list
v-if=
"activeName==0"
:personList=
"personList"
:loading=
"loading"
>
<list
v-if=
"activeName==0"
:personList=
"personList"
:loading=
"loading"
@
chatFn=
"chatFn"
>
</list>
</div>
</el-tab-pane>
...
...
@@ -50,7 +50,7 @@
</el-col>
<el-col
:span=
"12"
>
<div
class=
"hd_box"
>
<div
class=
"hd_name"
><span
v-if=
"chatData&&chatData.finalChatContext"
>
与
{{
chatData
.
finalChatContext
.
ro
omInfo
.
name
}}
的聊天
</span>
<div
class=
"hd_name"
><span
v-if=
"chatData&&chatData.finalChatContext"
>
与
{{
chatData
.
finalChatContext
.
fr
omInfo
.
name
}}
的聊天
</span>
<span
class=
"fr hd_nameRi"
>
下载会话
</span></div>
</div>
<div
class=
" hd_tabthree"
>
...
...
@@ -62,8 +62,8 @@
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
align=
"right"
@
change=
"activeNameThreeClick"
>
</el-date-picker>
</div>
<chat
:allChat=
"allChat"
v-if=
"allChat.length>=1"
></chat
>
</div>
~
<chat
s
:allChat=
"allChat"
v-if=
"allChat.length>=1"
></chats
>
<el-pagination
background
v-if=
"allChat.length>=1"
layout=
"prev, pager, next"
class=
"pagination"
:current-page=
"currentPage"
@
current-change=
"currentChange"
:total=
"total"
>
...
...
@@ -78,7 +78,7 @@
align=
"right"
@
change=
"activeNameThreeClick"
>
</el-date-picker>
</div>
<
chat
:allChat=
"allChatImg"
v-if=
"allChatImg.length>=1"
></chat
>
<
!--
<chat
:allChat=
"allChatImg"
v-if=
"allChatImg.length>=1"
></chat>
--
>
<el-pagination
background
v-if=
"allChatImg.length>=1"
class=
"pagination"
layout=
"prev, pager, next"
:total=
"total"
@
current-change=
"currentChange"
:current-page=
"currentPage"
>
...
...
@@ -161,7 +161,7 @@
</template>
<
script
>
import
list
from
'../component/customerList.vue'
import
chat
from
'../component/chat.vue'
import
chat
s
from
'../component/chat.vue'
import
grouplist
from
'../component/groupList.vue'
import
{
...
...
@@ -172,7 +172,7 @@ import {
}
from
'@/utils/common.js'
export
default
{
components
:{
list
,
chat
,
grouplist
list
,
chat
s
,
grouplist
},
data
()
{
return
{
...
...
@@ -180,7 +180,7 @@ import {
employName
:
''
,
talkName
:
''
,
personIndex
:
'-1'
,
activeName
:
"
2
"
,
activeName
:
"
0
"
,
activeNameThree
:
'0'
,
takeTime
:
''
,
fileData
:
[],
...
...
@@ -205,9 +205,8 @@ import {
methods
:
{
chatFn
(
data
){
this
.
chatData
=
data
if
(
data
.
fromId
)
{
this
.
activeNameThreeClick
()
}
console
.
log
(
data
)
this
.
activeNameThreeClick
()
},
currentChange
(){
this
.
currentPage
=
e
...
...
@@ -257,7 +256,7 @@ import {
}
let
query
=
{
fromId
:
this
.
chatData
.
fromId
,
receiveId
:
this
.
chatData
.
r
oom
Id
,
receiveId
:
this
.
chatData
.
r
eceive
Id
,
msgType
,
pageSize
:
'10'
,
pageNum
:
this
.
currentPage
,
...
...
@@ -266,8 +265,9 @@ import {
}
content
.
chatList
(
query
).
then
(
res
=>
{
this
.
total
=
Number
(
res
.
total
)
console
.
log
(
res
,
'chatData
'
)
console
.
log
(
res
,
this
.
activeNameThree
,
'resresresresres
'
)
if
(
this
.
activeNameThree
==
0
)
{
console
.
log
(
'cahar'
)
return
this
.
allChat
=
res
.
rows
}
if
(
this
.
activeNameThree
==
1
)
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment