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 a062dfb6
authored
Aug 13, 2021
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'front_end_dev_1.5'
2 parents
783da596
adeb3a49
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
708 additions
and
579 deletions
linkwe-ui/src/api/conversation/content.js
linkwe-ui/src/components/ChatContent.vue
linkwe-ui/src/views/conversation/component/chat.vue
linkwe-ui/src/views/conversation/content/component/chat.vue
linkwe-ui/src/views/conversation/component/curList.vue → linkwe-ui/src/views/conversation/content/component/curList.vue
linkwe-ui/src/views/conversation/component/cusChat.vue → linkwe-ui/src/views/conversation/content/component/cusChat.vue
linkwe-ui/src/views/conversation/component/customerList.vue → linkwe-ui/src/views/conversation/content/component/customerList.vue
linkwe-ui/src/views/conversation/component/groupList.vue → linkwe-ui/src/views/conversation/content/component/groupList.vue
linkwe-ui/src/views/conversation/component/insideList.vue → linkwe-ui/src/views/conversation/content/component/insideList.vue
linkwe-ui/src/views/conversation/component/list.vue → linkwe-ui/src/views/conversation/content/component/list.vue
linkwe-ui/src/views/conversation/page/employeeTest.vue → linkwe-ui/src/views/conversation/content/employeeTest.vue
linkwe-ui/src/views/conversation/content.vue → linkwe-ui/src/views/conversation/content/index.vue
linkwe-ui/src/views/conversation/page/roleTest.vue → linkwe-ui/src/views/conversation/content/roleTest.vue
linkwe-ui/src/views/conversation/page/userTest.vue → linkwe-ui/src/views/conversation/content/userTest.vue
linkwe-ui/src/views/conversation/securityPage/alarmingSensitive.vue → linkwe-ui/src/views/conversation/security/alarmingSensitive.vue
linkwe-ui/src/views/conversation/security.vue → linkwe-ui/src/views/conversation/security/index.vue
linkwe-ui/src/views/conversation/securityPage/sensitiveList.vue → linkwe-ui/src/views/conversation/security/sensitiveList.vue
linkwe-ui/src/views/conversation/securityPage/setSensitiveWord.vue → linkwe-ui/src/views/conversation/security/setSensitiveWord.vue
linkwe-ui/src/api/conversation/content.js
View file @
a062dfb
import
request
from
'@/utils/request'
import
request
from
'@/utils/request'
const
getExternalChatList
=
(
params
)
=>
{
// 外部联系人 会话列表
const
getExternalChatList
=
(
fromId
)
=>
{
return
request
({
return
request
({
url
:
'/chat/msg/selectExternalChatList/'
+
params
.
fromId
,
url
:
'/chat/msg/selectExternalChatList/'
+
fromId
,
method
:
'get'
method
:
'get'
})
})
}
}
// 单聊 会话列表
const
selectAloneChatList
=
(
params
)
=>
{
const
selectAloneChatList
=
(
params
)
=>
{
return
request
({
return
request
({
url
:
'/chat/msg/selectAloneChatList
\n/
'
,
url
:
'/chat/msg/selectAloneChatList'
,
method
:
'get'
,
method
:
'get'
,
params
params
})
})
}
}
// 内部联系人列表
const
getInternalChatList
=
(
params
)
=>
{
const
getInternalChatList
=
(
fromId
)
=>
{
return
request
({
return
request
({
url
:
'/chat/msg/selectInternalChatList/'
+
params
.
fromId
,
url
:
'/chat/msg/selectInternalChatList/'
+
fromId
,
method
:
'get'
method
:
'get'
})
})
}
}
const
getGroupChatList
=
(
params
)
=>
{
const
getGroupChatList
=
(
fromId
)
=>
{
return
request
({
return
request
({
url
:
'/chat/msg/selectGroupChatList/'
+
params
.
fromId
,
url
:
'/chat/msg/selectGroupChatList/'
+
fromId
,
method
:
'get'
method
:
'get'
})
})
}
}
const
chatList
=
(
params
)
=>
{
// const chatList = (params) => {
return
request
({
// return request({
url
:
'/chat/msg/list'
,
// url: '/chat/msg/list',
method
:
'get'
,
// method: 'get',
params
,
// params
})
// })
}
// }
const
indexTable
=
()
=>
{
const
indexTable
=
()
=>
{
return
request
({
return
request
({
url
:
'/wecom/page/getCorpBasicData'
,
url
:
'/wecom/page/getCorpBasicData'
,
...
@@ -49,18 +53,22 @@ const indexEchart = () => {
...
@@ -49,18 +53,22 @@ const indexEchart = () => {
})
})
}
}
const
listByCustomer
=
(
params
)
=>
{
// 全文检索 会话列表
export
const
getChatList
=
(
params
)
=>
{
return
request
({
return
request
({
url
:
'/
wecom/customer/l
ist'
,
url
:
'/
chat/msg/selectFullSearchChatL
ist'
,
method
:
'get'
,
method
:
'get'
,
params
,
params
})
})
}
}
const
getFullSearchChatList
=
(
params
)
=>
{
// 全文检索 导出列表
export
const
exportList
=
(
params
)
=>
{
return
request
({
return
request
({
url
:
'/chat/msg/selectFullSearchChatList'
,
url
:
'/chat/msg/selectFullSearchChatList
/export
'
,
method
:
'get'
,
method
:
'get'
,
params
,
params
// responseType: 'blob'
})
})
}
}
//
//
...
@@ -71,7 +79,8 @@ export const content = {
...
@@ -71,7 +79,8 @@ export const content = {
selectAloneChatList
,
selectAloneChatList
,
getInternalChatList
,
getInternalChatList
,
getGroupChatList
,
getGroupChatList
,
chatList
,
// chatList,
listByCustomer
,
getChatList
getFullSearchChatList
}
}
export
default
content
linkwe-ui/src/components/ChatContent.vue
0 → 100644
View file @
a062dfb
<
script
>
// import { AMapManager } from 'vue-amap'
// import Video from 'video.js'
export
default
{
name
:
'ChatContent'
,
props
:
{
message
:
{
type
:
Object
,
default
:
()
=>
({})
}
},
components
:
{},
data
()
{
return
{
dialogVisible
:
false
,
audioSrc
:
[]
}
},
computed
:
{
content
()
{
let
typeDict
=
{
text
:
'content'
,
image
:
'attachment'
,
emotion
:
'attachment'
,
file
:
'filename'
,
docmsg
:
'title'
,
video
:
'attachment'
,
voice
:
'attachment'
,
location
:
'address'
,
weapp
:
'title'
,
card
:
'corpname'
}
return
JSON
.
parse
(
this
.
message
.
contact
)[
typeDict
[
this
.
message
.
msgType
]]
}
},
watch
:
{},
created
()
{},
mounted
()
{},
methods
:
{
close
()
{
this
.
dialogVisible
=
false
const
mp3
=
this
.
$refs
.
AudioPlayer
mp3
.
pause
()
},
playAudio
(
type
)
{
this
.
audioSrc
=
[
JSON
.
parse
(
this
.
message
.
contact
)[
type
]]
this
.
dialogVisible
=
true
},
onBeforePlay
(
next
)
{
next
()
// 开始播放
},
play
(
e
)
{
this
.
dia
=
true
const
player
=
this
.
$refs
.
videoPlayer
.
player
this
.
playerOptions
[
'sources'
][
0
][
'src'
]
=
e
.
attachment
player
.
play
()
},
down
(
type
)
{
let
contact
=
JSON
.
parse
(
this
.
message
.
contact
)
const
url
=
window
.
URL
.
createObjectURL
(
new
Blob
([
contact
[
type
]],
{
type
:
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8'
})
)
const
link
=
document
.
createElement
(
'a'
)
link
.
href
=
url
link
.
setAttribute
(
'download'
,
this
.
content
)
// 下载文件的名称及文件类型后缀
document
.
body
.
appendChild
(
link
)
link
.
click
()
document
.
body
.
removeChild
(
link
)
// 下载完成移除元素
window
.
URL
.
revokeObjectURL
(
url
)
// 释放掉blob对象
}
}
}
</
script
>
<
template
>
<div>
<div
v-if=
"message.msgType === 'text'"
class=
"msgtypetext"
>
{{
content
}}
</div>
<div
v-else-if=
"'image,emotion'.includes(message.msgType)"
class=
"msgtypeimg"
>
<el-image
style=
"width: 100px; height: 100px"
:src=
"content"
fit=
"fit"
:preview-src-list=
"[content]"
>
</el-image>
</div>
<a
v-else-if=
"'file'.includes(message.msgType)"
class=
"msgtypefile"
:href=
"JSON.parse(this.message.contact).attachment"
target=
"balnk"
>
{{
content
}}
</a>
<a
v-else-if=
"'docmsg'.includes(message.msgType)"
class=
"msgtypefile"
:href=
"JSON.parse(this.message.contact).link_url"
target=
"balnk"
>
{{
content
}}
</a>
<div
v-else-if=
"message.msgType === 'voice'"
class=
"msgtypevoice"
>
<i
class=
"el-icon-microphone"
style=
" font-size: 40px; color: #199ed8;"
@
click=
"playAudio('attachment')"
></i>
</div>
<template
v-else-if=
"message.msgType === 'video'"
>
<video
id=
"video"
class=
"video-js vjs-default-skin vjs-big-play-centered"
controls
webkit-playsinline=
"true"
playsinline=
"true"
:autoplay=
"false"
preload=
"none"
>
<source
:src=
"content"
type=
"video/mp4"
/>
</video>
<!--
<video-player
class=
"video-player vjs-custom-skin"
ref=
"videoPlayer"
style=
"width: 150px;"
:playsinline=
"true"
:options=
"
{
playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
autoplay: false, //如果true,浏览器准备好时开始回放。
controls: true, //控制条
preload: 'none', //视频预加载
muted: false, //默认情况下将会消除任何音频。
loop: false, //导致视频一结束就重新开始。
language: 'zh-CN',
aspectRatio: '16:9', // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(
fluid: true,
sources: [
{
type: 'video/mp4',
src: content
}
],
poster: '',
width: '175',
height: '75',
notSupportedMessage: '此视频暂无法播放,请稍后再试'
}"
>
</video-player>
-->
</
template
>
<div
v-else-if=
"message.msgType === 'location'"
class=
"msgtypecard"
>
<div
class=
"card_name"
>
<el-amap
ref=
"map"
vid=
"amapDemo"
:center=
"[
JSON.parse(message.contact).longitude,
JSON.parse(message.contact).latitude
]"
:zoom=
"15"
class=
"amap-demo"
style=
"pointer-events: none;"
>
<el-amap-marker
:position=
"[
JSON.parse(message.contact).longitude,
JSON.parse(message.contact).latitude
]"
></el-amap-marker>
</el-amap>
</div>
<div
class=
"card_foot"
>
{{ content }}
</div>
</div>
<div
v-else-if=
"message.msgType === 'weapp'"
class=
"msgtypecard"
>
<div
class=
"card_name"
>
{{ content }}
</div>
<div
class=
"card_foot"
>
小程序
</div>
</div>
<div
v-else-if=
"message.msgType === 'card'"
class=
"msgtypecard "
>
<div
class=
"card_name"
>
{{ content }}
</div>
<div
class=
"card_foot"
>
个人名片
</div>
</div>
<el-dialog
v-if=
"audioSrc[0]"
:visible
.
sync=
"dialogVisible"
width=
"30%"
@
close=
"close"
>
<div
class=
"shabowboxvidoe shabowboxaudio"
>
<AudioPlayer
:audio-list=
"audioSrc"
ref=
"AudioPlayer"
:before-play=
"onBeforePlay"
/>
<!-- <audio controls>
<source :src="audioSrc[0]" type="audio/mpeg" />
</audio> -->
</div>
<span
slot=
"footer"
class=
"dialog-footer"
>
</span>
</el-dialog>
</div>
</template>
<
style
lang=
"scss"
scoped
>
.msgtypefile
{
margin
:
5px
;
width
:
200px
;
display
:
inline-block
;
line-height
:
30px
;
cursor
:
pointer
;
color
:
#199ed8
;
//
text-indent
:
10px
;
//
box-shadow
:
0
1px
4px
0
rgba
(
0
,
0
,
0
,
0.2
),
0
1px
4px
0
rgba
(
0
,
0
,
0
,
0.19
);
}
.msgtypecard
{
width
:
320px
;
height
:
140px
;
margin
:
10px
5px
;
border-radius
:
8px
;
-webkit-box-shadow
:
0
4px
8px
0
rgba
(
0
,
0
,
0
,
0.2
),
0
6px
8px
0
rgba
(
0
,
0
,
0
,
0.19
);
box-shadow
:
0
4px
8px
0
rgba
(
0
,
0
,
0
,
0.2
),
0
6px
8px
0
rgba
(
0
,
0
,
0
,
0.19
);
position
:
relative
;
.card_name
{
width
:
320px
;
height
:
105px
;
line-height
:
80px
;
text-indent
:
10px
;
}
.card_foot
{
position
:
absolute
;
height
:
20px
;
border-top
:
1px
solid
#efefef
;
text-align
:
left
;
bottom
:
15px
;
padding
:
10px
;
color
:
#333
;
font-weight
:
bold
;
width
:
100%
;
}
}
</
style
>
linkwe-ui/src/views/conversation/component/chat.vue
deleted
100644 → 0
View file @
783da59
<
template
>
<div
class=
"takecontent"
>
<ul>
<li
v-for=
"(item, index) in allChat"
:key=
"index"
>
<!--
<span
v-if=
"item.fromInfo.name"
>
{{
item
.
fromInfo
.
name
}}
</span>
-->
<div
:style=
"
{ color: item.action == 'send' ? '#199ed8' : '#999' }">
<span
v-if=
"item"
>
{{
item
.
name
}}
</span>
<span
:style=
"
{ color: item.action == 'send' ? '#199ed8' : '#999' }"
>
{{
item
.
msgTime
}}
</span
>
</div>
<div
v-if=
"item.msgType == 'text'"
class=
"msgtypetext"
>
{{
JSON
.
parse
(
item
.
contact
).
content
}}
</div>
<div
v-else-if=
"item.msgType == 'image'"
class=
"msgtypeimg"
>
<img
:src=
"JSON.parse(item.contact).attachment"
@
click=
"showImg(JSON.parse(item.contact))"
/>
</div>
<div
v-else-if=
"item.msgType == 'file'"
class=
"msgtypefile"
@
click=
"down(JSON.parse(item.contact))"
>
{{
JSON
.
parse
(
item
.
contact
).
fileName
}}
</div>
<div
v-else-if=
"item.msgType == 'voice'"
class=
"msgtypevoice"
>
<i
class=
"el-icon-microphone"
style=
" font-size: 40px; color: #199ed8;"
@
click=
"playVideo(JSON.parse(item.contact))"
></i>
</div>
<div
v-else-if=
"item.msgType == 'emotion'"
class=
"msgtypeimg"
>
<img
:src=
"JSON.parse(item.contact).attachment"
@
click=
"showImg(item)"
/>
</div>
<div
v-else-if=
"item.msgType == 'video'"
class=
"msgtypevideo"
>
<i
class=
"el-icon-video-play"
style=
" font-size: 40px; color: #199ed8;"
@
click=
"play(JSON.parse(item.contact), 'video')"
></i>
</div>
<div
v-else-if=
"item.msgType == 'location'"
class=
"msgtypecard"
>
<div
class=
"card_name"
>
<el-amap
ref=
"map"
vid=
"amapDemo"
:center=
"[JSON.parse(item.contact).longitude, JSON.parse(item.contact).latitude]"
:zoom=
"zoom"
class=
"amap-demo"
style=
"pointer-events: none;"
>
<el-amap-marker
:position=
"[JSON.parse(item.contact).longitude, iJSON.parse(item.contact).latitude]"
></el-amap-marker>
</el-amap>
</div>
<div
class=
"card_foot"
>
{{
JSON
.
parse
(
item
.
contact
).
address
}}
</div>
</div>
<div
v-else-if=
"item.msgType == 'weapp'"
class=
"msgtypecard"
>
<div
class=
"card_name"
>
{{
JSON
.
parse
(
item
.
contact
).
title
}}
</div>
<div
class=
"card_foot"
>
小程序
</div>
</div>
<div
v-else-if=
"item.msgType == 'card'"
class=
"msgtypecard "
>
<div
class=
"card_name"
>
{{
JSON
.
parse
(
item
.
contact
).
corpName
}}
</div>
<div
class=
"card_foot"
>
个人名片
</div>
</div>
</li>
</ul>
<div
class=
"shabowbox"
v-show=
"dia"
>
<div
class=
"close"
@
click=
"dia = false"
>
<i
class=
"el-icon-circle-close"
></i>
</div>
<div
class=
"shabowboxvidoe"
>
<video-player
class=
"video-player vjs-custom-skin"
ref=
"videoPlayer"
id=
"videoPlayer"
:playsinline=
"true"
:options=
"playerOptions"
></video-player>
</div>
</div>
<div
class=
"shabowbox"
v-show=
"diavioce"
>
<div
class=
"close"
@
click=
"vioceClose"
>
<i
class=
"el-icon-circle-close"
></i>
</div>
<div
class=
"shabowboxvidoe shabowboxaudio"
>
<AudioPlayer
:audio-list=
"vioceSrc"
ref=
"AudioPlayer"
:before-play=
"onBeforePlay"
/>
</div>
</div>
<el-dialog
:visible
.
sync=
"dialogVisible"
width=
"30%"
>
<img
:src=
"imgSrc"
style=
"width:100%;max-height:600px"
/>
<span
slot=
"footer"
class=
"dialog-footer"
>
</span>
</el-dialog>
</div>
</
template
>
<
script
>
import
{
AMapManager
}
from
'vue-amap'
import
'video.js/dist/video-js.css'
import
'vue-video-player/src/custom-theme.css'
import
{
parseTime
,
yearMouthDay
}
from
'@/utils/common.js'
export
default
{
components
:
{
AMapManager
},
props
:
{
allChat
:
{
type
:
Array
,
defluat
:
()
=>
[]
}
},
mounted
()
{},
data
()
{
return
{
dia
:
false
,
diavioce
:
false
,
dialogVisible
:
false
,
imgSrc
:
''
,
vioceSrc
:
[],
playerOptions
:
{
playbackRates
:
[
0.7
,
1.0
,
1.5
,
2.0
],
//播放速度
autoplay
:
false
,
//如果true,浏览器准备好时开始回放。
controls
:
true
,
//控制条
preload
:
'auto'
,
//视频预加载
muted
:
false
,
//默认情况下将会消除任何音频。
loop
:
false
,
//导致视频一结束就重新开始。
language
:
'zh-CN'
,
aspectRatio
:
'16:9'
,
// 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
fluid
:
true
,
// 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
sources
:
[
{
type
:
'video/mp4'
,
src
:
'https://v-cdn.zjol.com.cn/280443.mp4'
//你所放置的视频的地址,最好是放在服务器上
}
],
poster
:
''
,
//你的封面地址(覆盖在视频上面的图片)
width
:
document
.
documentElement
.
clientWidth
,
height
:
'475'
,
notSupportedMessage
:
'此视频暂无法播放,请稍后再试'
//允许覆盖Video.js无法播放媒体源时显示的默认信息。
},
zoom
:
15
,
center
:
[
117.148118
,
36.660223
],
markers
:
[
{
position
:
[
117.148118
,
36.660223
],
visible
:
false
,
draggable
:
false
}
]
}
},
methods
:
{
vioceClose
()
{
this
.
diavioce
=
false
const
mp3
=
this
.
$refs
.
AudioPlayer
mp3
.
pause
()
},
playVideo
(
e
)
{
this
.
vioceSrc
=
[
e
.
attachment
]
this
.
diavioce
=
true
},
onBeforePlay
(
next
)
{
next
()
// 开始播放
},
showImg
(
e
)
{
this
.
imgSrc
=
e
.
attachment
this
.
dialogVisible
=
true
},
play
(
e
)
{
this
.
dia
=
true
const
player
=
this
.
$refs
.
videoPlayer
.
player
this
.
playerOptions
[
'sources'
][
0
][
'src'
]
=
e
.
attachment
player
.
play
()
},
down
(
e
)
{
const
url
=
window
.
URL
.
createObjectURL
(
new
Blob
([
e
.
attachment
],
{
type
:
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8'
})
)
const
link
=
document
.
createElement
(
'a'
)
link
.
href
=
url
link
.
setAttribute
(
'download'
,
e
.
filename
)
// 下载文件的名称及文件类型后缀
document
.
body
.
appendChild
(
link
)
link
.
click
()
document
.
body
.
removeChild
(
link
)
// 下载完成移除元素
window
.
URL
.
revokeObjectURL
(
url
)
// 释放掉blob对象
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
#videoPlayer
/
deep
/
.vjs-tech
{
height
:
450px
;
}
.shabowbox
{
position
:
fixed
;
width
:
100%
;
height
:
100%
;
background
:
rgba
(
0
,
0
,
0
,
0.4
);
left
:
0
;
top
:
0
;
z-index
:
2000
;
}
.shabowboxvidoe
{
position
:
fixed
;
width
:
800px
;
height
:
475px
;
left
:
50%
;
margin-left
:
-400px
;
top
:
50%
;
margin-top
:
-235px
;
z-index
:
2001
;
background
:
#fff
;
}
.shabowboxaudio
{
height
:
125px
;
padding
:
12px
;
}
.close
{
position
:
fixed
;
width
:
50px
;
height
:
50px
;
right
:
10px
;
z-index
:
2012
;
top
:
10px
;
text-align
:
center
;
line-height
:
50px
;
font-size
:
20px
;
color
:
#fff
;
cursor
:
pointer
;
font-size
:
43px
;
}
.takecontent
{
text-align
:
left
;
width
:
100%
;
height
:
600px
;
overflow-y
:
scroll
;
::-webkit-scrollbar
{
display
:
none
;
}
ul
li
{
padding
:
8px
;
}
.msgtypetext
{
padding
:
10px
0
;
}
.msgtypevoice
{
margin
:
10px
;
}
.msgtypefile
{
margin
:
10px
;
width
:
200px
;
height
:
40px
;
line-height
:
40px
;
cursor
:
pointer
;
color
:
#199ed8
;
text-indent
:
10px
;
box-shadow
:
0
1px
4px
0
rgba
(
0
,
0
,
0
,
0.2
),
0
1px
4px
0
rgba
(
0
,
0
,
0
,
0.19
);
}
.card_name
{
width
:
320px
;
height
:
105px
;
line-height
:
80px
;
text-indent
:
10px
;
}
.msgtypevideo
{
margin
:
10px
;
cursor
:
pointer
;
border-radius
:
8px
;
}
.msgtypeimg
{
width
:
100px
;
height
:
80px
;
margin
:
10px
;
img
{
width
:
100px
;
height
:
80px
;
}
}
.msgtypecard
{
width
:
320px
;
height
:
140px
;
margin
:
10px
;
border-radius
:
8px
;
-webkit-box-shadow
:
0
4px
8px
0
rgba
(
0
,
0
,
0
,
0.2
),
0
6px
8px
0
rgba
(
0
,
0
,
0
,
0.19
);
box-shadow
:
0
4px
8px
0
rgba
(
0
,
0
,
0
,
0.2
),
0
6px
8px
0
rgba
(
0
,
0
,
0
,
0.19
);
position
:
relative
;
.card_foot
{
position
:
absolute
;
height
:
20px
;
border-top
:
1px
solid
#efefef
;
text-align
:
left
;
bottom
:
15px
;
padding
:
10px
;
color
:
#333
;
font-weight
:
bold
;
width
:
100%
;
}
}
}
</
style
>
linkwe-ui/src/views/conversation/content/component/chat.vue
0 → 100644
View file @
a062dfb
<
template
>
<div
class=
"takecontent"
>
<ul>
<li
v-for=
"(item, index) in allChat"
:key=
"index"
>
<!--
<span
v-if=
"item.fromInfo.name"
>
{{
item
.
fromInfo
.
name
}}
</span>
-->
<div
class=
"mb15"
>
<span
class=
"mr20"
>
{{
item
.
fromId
}}
</span>
<span
:style=
"
{ color: item.action == 'send' ? '#199ed8' : '#999' }"
>
{{
item
.
msgTime
}}
</span
>
</div>
<ChatContent
:message=
"item"
></ChatContent>
</li>
</ul>
</div>
</
template
>
<
script
>
import
ChatContent
from
'@/components/ChatContent'
export
default
{
components
:
{
ChatContent
},
props
:
{
allChat
:
{
type
:
Array
,
defluat
:
()
=>
[]
}
},
mounted
()
{},
data
()
{
return
{}
},
methods
:
{}
}
</
script
>
<
style
lang=
"scss"
scoped
>
#videoPlayer
/
deep
/
.vjs-tech
{
height
:
450px
;
}
.shabowbox
{
position
:
fixed
;
width
:
100%
;
height
:
100%
;
background
:
rgba
(
0
,
0
,
0
,
0.4
);
left
:
0
;
top
:
0
;
z-index
:
2000
;
}
.shabowboxvidoe
{
position
:
fixed
;
width
:
800px
;
height
:
475px
;
left
:
50%
;
margin-left
:
-400px
;
top
:
50%
;
margin-top
:
-235px
;
z-index
:
2001
;
background
:
#fff
;
}
.shabowboxaudio
{
height
:
125px
;
padding
:
12px
;
}
.close
{
position
:
fixed
;
width
:
50px
;
height
:
50px
;
right
:
10px
;
z-index
:
2012
;
top
:
10px
;
text-align
:
center
;
line-height
:
50px
;
font-size
:
20px
;
color
:
#fff
;
cursor
:
pointer
;
font-size
:
43px
;
}
.takecontent
{
text-align
:
left
;
width
:
100%
;
height
:
600px
;
overflow-y
:
scroll
;
::-webkit-scrollbar
{
display
:
none
;
}
ul
li
{
padding
:
10px
;
}
.msgtypetext
{
padding
:
10px
0
;
}
.msgtypevoice
{
margin
:
10px
;
}
.msgtypefile
{
margin
:
10px
;
width
:
200px
;
height
:
40px
;
line-height
:
40px
;
cursor
:
pointer
;
color
:
#199ed8
;
text-indent
:
10px
;
box-shadow
:
0
1px
4px
0
rgba
(
0
,
0
,
0
,
0.2
),
0
1px
4px
0
rgba
(
0
,
0
,
0
,
0.19
);
}
.card_name
{
width
:
320px
;
height
:
105px
;
line-height
:
80px
;
text-indent
:
10px
;
}
.msgtypevideo
{
margin
:
10px
;
cursor
:
pointer
;
border-radius
:
8px
;
}
.msgtypeimg
{
width
:
100px
;
height
:
80px
;
margin
:
10px
;
img
{
width
:
100px
;
height
:
80px
;
}
}
.msgtypecard
{
width
:
320px
;
height
:
140px
;
margin
:
10px
;
border-radius
:
8px
;
-webkit-box-shadow
:
0
4px
8px
0
rgba
(
0
,
0
,
0
,
0.2
),
0
6px
8px
0
rgba
(
0
,
0
,
0
,
0.19
);
box-shadow
:
0
4px
8px
0
rgba
(
0
,
0
,
0
,
0.2
),
0
6px
8px
0
rgba
(
0
,
0
,
0
,
0.19
);
position
:
relative
;
.card_foot
{
position
:
absolute
;
height
:
20px
;
border-top
:
1px
solid
#efefef
;
text-align
:
left
;
bottom
:
15px
;
padding
:
10px
;
color
:
#333
;
font-weight
:
bold
;
width
:
100%
;
}
}
}
</
style
>
linkwe-ui/src/views/conversation/component/curList.vue
→
linkwe-ui/src/views/conversation/co
ntent/co
mponent/curList.vue
View file @
a062dfb
File moved
linkwe-ui/src/views/conversation/component/cusChat.vue
→
linkwe-ui/src/views/conversation/co
ntent/co
mponent/cusChat.vue
View file @
a062dfb
File moved
linkwe-ui/src/views/conversation/component/customerList.vue
→
linkwe-ui/src/views/conversation/co
ntent/co
mponent/customerList.vue
View file @
a062dfb
File moved
linkwe-ui/src/views/conversation/component/groupList.vue
→
linkwe-ui/src/views/conversation/co
ntent/co
mponent/groupList.vue
View file @
a062dfb
File moved
linkwe-ui/src/views/conversation/component/insideList.vue
→
linkwe-ui/src/views/conversation/co
ntent/co
mponent/insideList.vue
View file @
a062dfb
File moved
linkwe-ui/src/views/conversation/component/list.vue
→
linkwe-ui/src/views/conversation/co
ntent/co
mponent/list.vue
View file @
a062dfb
File moved
linkwe-ui/src/views/conversation/
page
/employeeTest.vue
→
linkwe-ui/src/views/conversation/
content
/employeeTest.vue
View file @
a062dfb
...
@@ -70,7 +70,7 @@
...
@@ -70,7 +70,7 @@
<span
v-if=
"chat.receiveWeCustomer"
>
<span
v-if=
"chat.receiveWeCustomer"
>
与
{{
chat
.
receiveWeCustomer
.
name
}}
的聊天
</span
与
{{
chat
.
receiveWeCustomer
.
name
}}
的聊天
</span
>
>
<span
class=
"fr hd_nameRi"
>
下载会话
</span>
<span
class=
"fr hd_nameRi"
@
click=
"exportList()"
>
下载会话
</span>
</div>
</div>
</div>
</div>
<div
class=
" hd_tabthree"
>
<div
class=
" hd_tabthree"
>
...
@@ -78,21 +78,22 @@
...
@@ -78,21 +78,22 @@
v-model=
"activeNameThree"
v-model=
"activeNameThree"
@
tab-click=
"activeNameThreeClick()"
@
tab-click=
"activeNameThreeClick()"
>
>
<div
class=
"date-range"
>
<el-date-picker
v-model=
"dateRange"
type=
"daterange"
format=
"yyyy-MM-dd"
value-format=
"yyyy-MM-dd"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
align=
"right"
@
change=
"activeNameThreeClick"
>
</el-date-picker>
</div>
<el-tab-pane
label=
"全部"
name=
"0"
>
<el-tab-pane
label=
"全部"
name=
"0"
>
<div
class=
"ct_box"
>
<div
class=
"ct_box"
>
<div
class=
"hds_time"
>
<el-date-picker
v-model=
"takeTime"
type=
"datetimerange"
format=
"yyyy-MM-dd"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
align=
"right"
@
change=
"activeNameThreeClick"
>
</el-date-picker>
</div>
<chat
<chat
:allChat=
"allChat"
:allChat=
"allChat"
v-if=
"allChat && allChat.length >= 1"
v-if=
"allChat && allChat.length >= 1"
...
@@ -111,19 +112,6 @@
...
@@ -111,19 +112,6 @@
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
label=
"图片及视频"
name=
"1"
>
<el-tab-pane
label=
"图片及视频"
name=
"1"
>
<div
class=
"ct_box"
>
<div
class=
"ct_box"
>
<div
class=
"hds_time"
>
<el-date-picker
v-model=
"takeTime"
type=
"datetimerange"
format=
"yyyy-MM-dd"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
align=
"right"
@
change=
"activeNameThreeClick"
>
</el-date-picker>
</div>
<chat
<chat
:allChat=
"allChatImg"
:allChat=
"allChatImg"
v-if=
"allChatImg && allChatImg.length >= 1"
v-if=
"allChatImg && allChatImg.length >= 1"
...
@@ -135,26 +123,13 @@
...
@@ -135,26 +123,13 @@
layout=
"prev, pager, next"
layout=
"prev, pager, next"
:total=
"total"
:total=
"total"
@
current-change=
"currentChange"
@
current-change=
"currentChange"
:current-page=
"currentPage"
:current-page
.
sync
=
"currentPage"
>
>
</el-pagination>
</el-pagination>
</div>
</div>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
label=
"文件"
name=
"2"
>
<el-tab-pane
label=
"文件"
name=
"2"
>
<div
class=
"ct_box"
>
<div
class=
"ct_box"
>
<div
class=
"hds_time"
>
<el-date-picker
v-model=
"takeTime"
type=
"datetimerange"
format=
"yyyy-MM-dd"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
align=
"right"
@
change=
"activeNameThreeClick"
>
</el-date-picker>
</div>
<el-table
<el-table
:data=
"allFile"
:data=
"allFile"
stripe
stripe
...
@@ -192,37 +167,10 @@
...
@@ -192,37 +167,10 @@
</div>
</div>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
label=
"链接"
name=
"3"
>
<el-tab-pane
label=
"链接"
name=
"3"
>
<div
class=
"ct_box"
>
<div
class=
"ct_box"
></div>
<div
class=
"hds_time"
>
<el-date-picker
v-model=
"takeTime"
type=
"datetimerange"
format=
"yyyy-MM-dd"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
align=
"right"
@
change=
"activeNameThreeClick"
>
</el-date-picker>
</div>
</div>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
label=
"语音通话"
name=
"4"
>
<el-tab-pane
label=
"语音通话"
name=
"4"
>
<div
class=
"ct_box"
>
<div
class=
"ct_box"
>
<div
class=
"hds_time"
>
<el-date-picker
v-model=
"takeTime"
type=
"datetimerange"
format=
"yyyy-MM-dd"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
align=
"right"
@
change=
"activeNameThreeClick"
>
</el-date-picker>
</div>
<el-table
<el-table
:data=
"allVoice"
:data=
"allVoice"
stripe
stripe
...
@@ -265,13 +213,12 @@
...
@@ -265,13 +213,12 @@
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
list
from
'../component/list.vue'
import
list
from
'./component/list.vue'
import
chat
from
'../component/chat.vue'
import
chat
from
'./component/chat.vue'
import
insideList
from
'../component/insideList.vue'
import
insideList
from
'./component/insideList.vue'
import
grouplist
from
'../component/groupList.vue'
import
grouplist
from
'./component/groupList.vue'
import
*
as
api
from
'@/api/organization'
import
*
as
apiOrg
from
'@/api/organization'
import
{
content
}
from
'@/api/conversation/content.js'
import
api
from
'@/api/conversation/content.js'
import
{
yearMouthDay
,
parseTime
}
from
'@/utils/common.js'
export
default
{
export
default
{
components
:
{
components
:
{
...
@@ -293,7 +240,7 @@ export default {
...
@@ -293,7 +240,7 @@ export default {
},
},
activeName
:
'0'
,
activeName
:
'0'
,
activeNameThree
:
'0'
,
activeNameThree
:
'0'
,
takeTime
:
''
,
dateRange
:
[]
,
fileData
:
[],
fileData
:
[],
chat
:
{},
chat
:
{},
...
@@ -367,7 +314,7 @@ export default {
...
@@ -367,7 +314,7 @@ export default {
this
.
activeNameThreeClick
(
true
)
this
.
activeNameThreeClick
(
true
)
},
},
activeNameThreeClick
(
page
,
group
)
{
activeNameThreeClick
(
page
,
group
)
{
console
.
log
(
this
.
chat
.
receiver
,
this
.
fromId
,
'this.chat.id'
)
//
console.log(this.chat.receiver, this.fromId, 'this.chat.id')
if
(
!!!
this
.
chat
.
receiver
)
{
if
(
!!!
this
.
chat
.
receiver
)
{
return
//没有选择人
return
//没有选择人
}
}
...
@@ -390,11 +337,16 @@ export default {
...
@@ -390,11 +337,16 @@ export default {
let
query
=
{
let
query
=
{
msgType
,
msgType
,
pageSize
:
'10'
,
pageSize
:
'10'
,
pageNum
:
this
.
currentPage
,
pageNum
:
this
.
currentPage
orderByColumn
:
'msg_time'
,
// orderByColumn: 'msg_time',
isAsc
:
'asc'
,
// isAsc: 'asc'
beginTime
:
this
.
takeTime
?
yearMouthDay
(
this
.
takeTime
[
0
])
:
''
,
}
endTime
:
this
.
takeTime
?
yearMouthDay
(
this
.
takeTime
[
1
])
:
''
if
(
this
.
dateRange
)
{
query
.
beginTime
=
this
.
dateRange
[
0
]
query
.
endTime
=
this
.
dateRange
[
1
]
}
else
{
query
.
beginTime
=
''
query
.
endTime
=
''
}
}
if
(
this
.
activeName
!=
'2'
)
{
if
(
this
.
activeName
!=
'2'
)
{
query
.
fromId
=
this
.
fromId
query
.
fromId
=
this
.
fromId
...
@@ -402,9 +354,10 @@ export default {
...
@@ -402,9 +354,10 @@ export default {
}
else
{
}
else
{
query
.
roomId
=
this
.
chat
.
receiver
query
.
roomId
=
this
.
chat
.
receiver
}
}
content
.
chatList
(
query
).
then
((
res
)
=>
{
this
.
query
=
query
api
.
getChatList
(
query
).
then
((
res
)
=>
{
console
.
log
(
res
.
rows
,
'ssss'
)
console
.
log
(
res
.
rows
,
'ssss'
)
this
.
total
=
Number
(
res
.
total
)
this
.
total
=
~~
res
.
total
this
.
resortData
(
res
)
this
.
resortData
(
res
)
})
})
}
}
...
@@ -438,7 +391,7 @@ export default {
...
@@ -438,7 +391,7 @@ export default {
this
.
activeNameThreeClick
(
''
,
true
)
this
.
activeNameThreeClick
(
''
,
true
)
},
},
getTree
()
{
getTree
()
{
api
.
getTree
().
then
(({
data
})
=>
{
api
Org
.
getTree
().
then
(({
data
})
=>
{
this
.
treeData
=
this
.
handleTree
(
data
)
this
.
treeData
=
this
.
handleTree
(
data
)
this
.
handleNodeClick
(
this
.
treeData
[
0
],
true
)
this
.
handleNodeClick
(
this
.
treeData
[
0
],
true
)
})
})
...
@@ -452,10 +405,8 @@ export default {
...
@@ -452,10 +405,8 @@ export default {
this
.
loading
=
true
this
.
loading
=
true
}
}
if
(
this
.
activeName
==
0
)
{
if
(
this
.
activeName
==
0
)
{
content
api
.
getInternalChatList
({
.
getInternalChatList
(
this
.
fromId
)
fromId
:
this
.
fromId
})
.
then
(({
data
})
=>
{
.
then
(({
data
})
=>
{
this
.
loading
=
false
this
.
loading
=
false
this
.
personList
=
data
this
.
personList
=
data
...
@@ -464,10 +415,8 @@ export default {
...
@@ -464,10 +415,8 @@ export default {
this
.
loading
=
false
this
.
loading
=
false
})
})
}
else
if
(
this
.
activeName
==
1
)
{
}
else
if
(
this
.
activeName
==
1
)
{
content
api
.
getExternalChatList
({
.
getExternalChatList
(
this
.
fromId
)
fromId
:
this
.
fromId
})
.
then
(({
data
})
=>
{
.
then
(({
data
})
=>
{
this
.
loading
=
false
this
.
loading
=
false
this
.
personList
=
data
this
.
personList
=
data
...
@@ -476,10 +425,8 @@ export default {
...
@@ -476,10 +425,8 @@ export default {
this
.
loading
=
false
this
.
loading
=
false
})
})
}
else
{
}
else
{
content
api
.
getGroupChatList
({
.
getGroupChatList
(
this
.
fromId
)
fromId
:
this
.
fromId
})
.
then
(({
data
})
=>
{
.
then
(({
data
})
=>
{
this
.
loading
=
false
this
.
loading
=
false
this
.
personList
=
data
this
.
personList
=
data
...
@@ -502,7 +449,7 @@ export default {
...
@@ -502,7 +449,7 @@ export default {
pageSize
:
'999'
,
pageSize
:
'999'
,
department
:
data
.
id
department
:
data
.
id
}
}
api
.
getList
(
querys
).
then
(({
rows
})
=>
{
api
Org
.
getList
(
querys
).
then
(({
rows
})
=>
{
this
.
$set
(
data
,
'children'
,
[])
this
.
$set
(
data
,
'children'
,
[])
data
.
children
=
rows
data
.
children
=
rows
...
@@ -512,6 +459,20 @@ export default {
...
@@ -512,6 +459,20 @@ export default {
this
.
fromId
=
data
.
userId
this
.
fromId
=
data
.
userId
this
.
tabClick
()
this
.
tabClick
()
}
}
},
exportList
()
{
this
.
$confirm
(
'是否确认导出所有数据项?'
,
'警告'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
})
.
then
(()
=>
{
return
api
.
exportList
(
this
.
query
)
})
.
then
((
response
)
=>
{
this
.
download
(
response
.
msg
)
})
.
catch
(
function
()
{})
}
}
}
}
}
}
...
@@ -577,15 +538,12 @@ export default {
...
@@ -577,15 +538,12 @@ export default {
::-webkit-scrollbar
{
::-webkit-scrollbar
{
display
:
none
;
display
:
none
;
}
}
.hds_time
{
text-align
:
left
;
width
:
100%
;
padding
:
10px
0
;
}
}
}
}
}
.date-range
{
padding
:
10px
;
background
:
#fff
;
}
.pagination
{
.pagination
{
padding
:
10px
0
;
padding
:
10px
0
;
height
:
30px
;
height
:
30px
;
...
...
linkwe-ui/src/views/conversation/content.vue
→
linkwe-ui/src/views/conversation/content
/index
.vue
View file @
a062dfb
...
@@ -14,9 +14,9 @@
...
@@ -14,9 +14,9 @@
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
employee
from
'./
page/
employeeTest.vue'
import
employee
from
'./employeeTest.vue'
import
user
from
'./
page/
userTest.vue'
import
user
from
'./userTest.vue'
import
role
from
'./
page/
roleTest.vue'
import
role
from
'./roleTest.vue'
export
default
{
export
default
{
components
:
{
employee
,
user
,
role
},
components
:
{
employee
,
user
,
role
},
data
()
{
data
()
{
...
...
linkwe-ui/src/views/conversation/
page
/roleTest.vue
→
linkwe-ui/src/views/conversation/
content
/roleTest.vue
View file @
a062dfb
<
template
>
<
template
>
<div>
<div>
<el-form
:inline=
"true"
:model=
"
form
"
class=
"top-serach"
>
<el-form
:inline=
"true"
:model=
"
query
"
class=
"top-serach"
>
<el-form-item
label=
"员工名称"
>
<el-form-item
label=
"员工名称"
>
<el-input
v-model=
"form.Ename"
placeholder=
"客户名称"
></el-input>
<el-input
v-model=
"query.userName"
clearable
placeholder=
"客户名称"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"客户名称"
>
<el-form-item
label=
"客户名称"
>
<el-input
v-model=
"form.Cname"
placeholder=
"客户名称"
></el-input>
<el-input
v-model=
"query.customerName"
clearable
placeholder=
"客户名称"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"查找内容"
>
<el-form-item
label=
"查找内容"
>
<el-input
v-model=
"form.Scontent"
placeholder=
"查找内容"
></el-input>
<el-input
v-model=
"query.contact"
clearable
placeholder=
"查找内容"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"时间范围"
>
<el-form-item
label=
"时间范围"
>
<el-date-picker
<el-date-picker
v-model=
"
form.Stim
e"
v-model=
"
dateRang
e"
type=
"date
time
range"
type=
"daterange"
format=
"yyyy-MM-dd"
format=
"yyyy-MM-dd"
value-format=
"yyyy-MM-dd"
range-separator=
"至"
range-separator=
"至"
start-placeholder=
"开始日期"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
end-placeholder=
"结束日期"
align=
"right"
align=
"right"
:picker-options=
"pickerOptions"
>
>
</el-date-picker>
</el-date-picker>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
@
click=
"
init
"
>
查询
</el-button>
<el-button
type=
"primary"
@
click=
"
getList(1)
"
>
查询
</el-button>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button>
导出列表
</el-button>
<el-button
@
click=
"exportList()"
>
导出列表
</el-button>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<div>
<div>
<el-table
<el-table
v-loading=
"loading"
:data=
"fileData"
:data=
"fileData"
stripe
style=
"width: 100%"
:header-cell-style=
"
{ background: '#fff' }"
:header-cell-style=
"
{ background: '#fff' }"
>
>
<el-table-column
prop=
"date"
label=
"发送者"
width=
"180"
>
<el-table-column
prop=
"date"
label=
"发送者"
width=
"180"
>
...
@@ -43,15 +56,8 @@
...
@@ -43,15 +56,8 @@
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"name"
label=
" 内容"
>
<el-table-column
prop=
"name"
label=
" 内容"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"{ row }"
>
<p
<ChatContent
:message=
"row"
></ChatContent>
v-if=
"!!scope.row.contact"
class=
"emcode"
v-html=
"scope.row.contact"
></p>
<p
v-else-if=
"!!!scope.row.contact && scope.row.text"
>
{{
JSON
.
parse
(
scope
.
row
.
contact
).
content
}}
</p>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"消息状态"
width=
"200"
>
<el-table-column
label=
"消息状态"
width=
"200"
>
...
@@ -101,26 +107,30 @@
...
@@ -101,26 +107,30 @@
class=
"pagination"
class=
"pagination"
layout=
"prev, pager, next"
layout=
"prev, pager, next"
:total=
"total"
:total=
"total"
@
current-change=
"
currentChange
"
@
current-change=
"
getList
"
:current-page
=
"currentPage
"
:current-page
.
sync=
"query.pageNum
"
>
>
</el-pagination>
</el-pagination>
</div>
</div>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
{
conten
t
}
from
'@/api/conversation/content.js'
import
{
getChatList
,
exportLis
t
}
from
'@/api/conversation/content.js'
import
{
yearMouthDay
,
parseTime
}
from
'@/utils/common.js
'
import
ChatContent
from
'@/components/ChatContent
'
export
default
{
export
default
{
components
:
{
ChatContent
},
data
()
{
data
()
{
return
{
return
{
form
:
{
query
:
{
Ename
:
''
,
userName
:
''
,
Cname
:
''
,
customerName
:
''
,
Scontent
:
''
,
contact
:
''
,
Stime
:
''
beginTime
:
''
,
endTime
:
''
,
pageNum
:
1
,
pageSize
:
10
},
},
currentPage
:
1
,
dateRange
:
[]
,
total
:
0
,
total
:
0
,
ac
:
''
,
ac
:
''
,
fileData
:
[],
fileData
:
[],
...
@@ -142,36 +152,46 @@ export default {
...
@@ -142,36 +152,46 @@ export default {
value
:
'switch'
,
value
:
'switch'
,
label
:
'切回企业日志'
label
:
'切回企业日志'
}
}
]
],
loading
:
false
}
}
},
},
moun
ted
()
{
crea
ted
()
{
this
.
ini
t
()
this
.
getLis
t
()
},
},
methods
:
{
methods
:
{
currentChange
(
e
)
{
getList
(
page
)
{
this
.
currentPage
=
e
if
(
this
.
dateRange
)
{
this
.
init
(
true
)
this
.
query
.
beginTime
=
this
.
dateRange
[
0
]
},
this
.
query
.
endTime
=
this
.
dateRange
[
1
]
init
(
flag
)
{
}
else
{
if
(
!!!
flag
)
{
this
.
query
.
beginTime
=
''
this
.
currentPage
=
1
this
.
query
.
endTime
=
''
}
let
query
=
{
name
:
this
.
form
.
Ename
,
customerName
:
this
.
form
.
Cname
,
contact
:
this
.
form
.
Scontent
,
beginTime
:
this
.
form
.
Stime
?
yearMouthDay
(
this
.
form
.
Stime
[
0
])
:
''
,
endTime
:
this
.
form
.
Stime
?
yearMouthDay
(
this
.
form
.
Stime
[
1
])
:
''
,
pageNum
:
this
.
currentPage
,
action
:
this
.
ac
,
orderByColumn
:
'msg_time'
,
isAsc
:
'desc'
}
}
content
.
getFullSearchChatList
(
query
).
then
((
res
)
=>
{
page
&&
(
this
.
query
.
pageNum
=
page
)
this
.
fileData
=
res
.
rows
this
.
loading
=
true
this
.
total
=
Number
(
res
.
total
)
// let query = {
})
// name: this.form.userName,
// customerName: this.form.customerName,
// contact: this.form.contact,
// beginTime: this.form.Stime ? yearMouthDay(this.form.Stime[0]) : '',
// endTime: this.form.Stime ? yearMouthDay(this.form.Stime[1]) : '',
// pageNum: this.query.pageNum,
// pageSize: 10,
// action: this.ac,
// orderByColumn: 'msg_time',
// isAsc: 'desc'
// }
getChatList
(
this
.
query
)
.
then
((
res
)
=>
{
this
.
fileData
=
res
.
rows
this
.
total
=
~~
res
.
total
this
.
loading
=
false
})
.
catch
(()
=>
{
this
.
loading
=
false
})
},
},
chechName
(
e
)
{
chechName
(
e
)
{
if
(
e
==
''
)
{
if
(
e
==
''
)
{
...
@@ -188,7 +208,30 @@ export default {
...
@@ -188,7 +208,30 @@ export default {
this
.
ac
=
'switch'
this
.
ac
=
'switch'
}
}
console
.
log
(
e
,
this
.
ac
)
console
.
log
(
e
,
this
.
ac
)
this
.
init
()
this
.
getList
()
},
parseMesContent
(
data
,
type
)
{
let
contact
=
JSON
.
parse
(
data
)
let
typeDict
=
{
text
:
'content'
,
image
:
'attachment'
,
text
:
'content'
}
return
contact
[
type
]
},
exportList
()
{
this
.
$confirm
(
'是否确认导出所有数据项?'
,
'警告'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
})
.
then
(()
=>
{
return
exportList
(
this
.
query
)
})
.
then
((
response
)
=>
{
this
.
download
(
response
.
msg
)
})
.
catch
(
function
()
{})
}
}
}
}
}
}
...
...
linkwe-ui/src/views/conversation/
page
/userTest.vue
→
linkwe-ui/src/views/conversation/
content
/userTest.vue
View file @
a062dfb
...
@@ -3,34 +3,49 @@
...
@@ -3,34 +3,49 @@
<el-row>
<el-row>
<el-col
:span=
"6"
class=
"borderR"
>
<el-col
:span=
"6"
class=
"borderR"
>
<div
class=
"hd_box"
>
<div
class=
"hd_box"
>
<div
class=
"hd_name"
>
客户列表(
{{
employAmount
}}
)
</div>
<div
class=
"hd_name"
>
客户列表(
{{
customerTotal
}}
)
</div>
<div
class=
"paddingT10"
>
<div
class=
"paddingT10"
>
<el-input
<el-input
placeholder=
"搜索客户"
placeholder=
"搜索客户"
prefix-icon=
"el-icon-search"
prefix-icon=
"el-icon-search"
v-model=
"
employN
ame"
v-model=
"
customerQuery.n
ame"
@
keyup
.
enter
.
native=
"
customerList
"
@
keyup
.
enter
.
native=
"
getCustomerList(1)
"
>
>
</el-input>
</el-input>
</div>
</div>
</div>
</div>
<div
class=
"ct_box ct_boxFirst"
style=
"height: calc(100vh - 288px)
"
>
<div
v-loading=
"customerLoading"
class=
"ct_box
"
>
<ul>
<ul
v-infinite-scroll=
"getCustomerList"
class=
"customer-wrap"
>
<
li
<
el-row
v-for=
"(i
, t) in C
List"
v-for=
"(i
tem, t) in customer
List"
:key=
"t"
:key=
"t"
@
click=
"personCheck(i, t)"
tag=
"li"
@
click
.
native=
"personCheck(item, t)"
class=
"customer-li"
:class=
"
{ liActive: t == personIndex }"
:class=
"
{ liActive: t == personIndex }"
:gutter="20"
type="flex"
align="middle"
>
>
<el-row
:gutter=
"20"
style=
" padding: 10px 0;margin:0"
>
<el-col
:span=
"4"
>
<el-col
:span=
"4"
>
<img
v-if=
"item.avatar"
:src=
"item.avatar"
alt=
"头像"
/>
<img
v-if=
"i.avatar"
:src=
"i.avatar"
alt=
"头像"
/>
</el-col>
</el-col>
<el-col
:span=
"10"
v-if=
"item"
class=
"toe"
>
<el-col
:span=
"20"
v-if=
"i"
<span
style=
"line-height:40px"
>
{{
item
.
name
}}
</span>
><span
style=
"line-height:40px"
>
{{
i
.
name
}}
</span></el-col
</el-col>
>
<el-col
:span=
"10"
class=
"ar"
>
</el-row>
<span
</li>
:style=
"
{ color: item.type === 1 ? '#4bde03' : '#f9a90b' }"
>
{{
{
1
:
'@微信'
,
2
:
'@企业微信'
}
[
item
.
type
]
}}
<
/span
>
<
i
:
class
=
"
[
'el-icon-s-custom'
,
{
1
:
'man'
,
2
:
'woman'
}
[
item
.
gender
]
]
"
></i>
</el-col>
</el-row>
</ul>
</ul>
</div>
</div>
</el-col>
</el-col>
...
@@ -246,11 +261,12 @@
...
@@ -246,11 +261,12 @@
<
/div
>
<
/div
>
<
/template
>
<
/template
>
<
script
>
<
script
>
import
list
from
'.
.
/component/customerList.vue'
import
list
from
'./component/customerList.vue'
import
chats
from
'.
.
/component/chat.vue'
import
chats
from
'./component/chat.vue'
import
grouplist
from
'../component/groupList.vue'
import
grouplist
from
'./component/groupList.vue'
import
{
content
}
from
'@/api/conversation/content.js'
import
api
from
'@/api/conversation/content.js'
import
*
as
apiCustomer
from
'@/api/customer/index'
import
{
yearMouthDay
}
from
'@/utils/common.js'
import
{
yearMouthDay
}
from
'@/utils/common.js'
export
default
{
export
default
{
components
:
{
components
:
{
...
@@ -260,8 +276,14 @@ export default {
...
@@ -260,8 +276,14 @@ export default {
}
,
}
,
data
()
{
data
()
{
return
{
return
{
employAmount
:
1
,
customerLoading
:
false
,
employName
:
''
,
customerQuery
:
{
pageNum
:
1
,
pageSize
:
10
,
name
:
''
}
,
customerList
:
[],
customerTotal
:
0
,
talkName
:
''
,
talkName
:
''
,
chatContent
:
''
,
chatContent
:
''
,
personIndex
:
'-1'
,
personIndex
:
'-1'
,
...
@@ -269,7 +291,6 @@ export default {
...
@@ -269,7 +291,6 @@ export default {
activeNameThree
:
'0'
,
activeNameThree
:
'0'
,
takeTime
:
''
,
takeTime
:
''
,
fileData
:
[],
fileData
:
[],
CList
:
[],
personList
:
[],
personList
:
[],
loading
:
false
,
loading
:
false
,
fromId
:
''
,
fromId
:
''
,
...
@@ -285,7 +306,9 @@ export default {
...
@@ -285,7 +306,9 @@ export default {
total
:
0
total
:
0
}
}
}
,
}
,
created
()
{
// this.customerList()
}
,
methods
:
{
methods
:
{
chatFn
(
data
)
{
chatFn
(
data
)
{
this
.
chatData
=
data
this
.
chatData
=
data
...
@@ -318,7 +341,7 @@ export default {
...
@@ -318,7 +341,7 @@ export default {
}
}
this
.
personList
=
[]
this
.
personList
=
[]
if
(
this
.
activeName
==
'0'
)
{
if
(
this
.
activeName
==
'0'
)
{
content
api
.
selectAloneChatList
({
.
selectAloneChatList
({
fromId
:
this
.
fromId
,
fromId
:
this
.
fromId
,
contact
:
this
.
chatContent
contact
:
this
.
chatContent
...
@@ -331,7 +354,7 @@ export default {
...
@@ -331,7 +354,7 @@ export default {
this
.
loading
=
false
this
.
loading
=
false
}
)
}
)
}
else
{
}
else
{
content
api
.
getGroupChatList
({
.
getGroupChatList
({
fromId
:
this
.
fromId
fromId
:
this
.
fromId
}
)
}
)
...
@@ -375,12 +398,12 @@ export default {
...
@@ -375,12 +398,12 @@ export default {
query
.
toList
=
this
.
chatData
.
receiver
query
.
toList
=
this
.
chatData
.
receiver
}
}
if
(
group
)
{
if
(
group
)
{
content
.
c
hatList
(
query
).
then
((
res
)
=>
{
api
.
getC
hatList
(
query
).
then
((
res
)
=>
{
this
.
total
=
Number
(
res
.
total
)
this
.
total
=
Number
(
res
.
total
)
this
.
resortData
(
res
)
this
.
resortData
(
res
)
}
)
}
)
}
else
{
}
else
{
content
.
c
hatList
(
query
).
then
((
res
)
=>
{
api
.
getC
hatList
(
query
).
then
((
res
)
=>
{
this
.
total
=
Number
(
res
.
total
)
this
.
total
=
Number
(
res
.
total
)
this
.
resortData
(
res
)
this
.
resortData
(
res
)
}
)
}
)
...
@@ -403,25 +426,23 @@ export default {
...
@@ -403,25 +426,23 @@ export default {
return
(
this
.
allVoice
=
res
.
rows
)
return
(
this
.
allVoice
=
res
.
rows
)
}
}
}
,
}
,
customerList
()
{
getCustomerList
(
page
)
{
let
querys
=
{
this
.
customerLoading
=
true
pageNum
:
1
,
if
(
page
)
{
pageSize
:
999
,
this
.
customerQuery
.
pageNum
=
page
name
:
this
.
employName
,
this
.
customerList
=
[]
isOpenChat
:
'1'
}
}
content
.
listByCustomer
(
querys
).
then
((
res
)
=>
{
page
&&
(
this
.
customerQuery
.
pageNum
=
page
)
console
.
log
(
res
,
'rows'
)
apiCustomer
.
getList
(
this
.
customerQuery
).
then
((
res
)
=>
{
this
.
CList
=
res
.
rows
this
.
customerList
.
push
(...
res
.
rows
)
this
.
employAmount
=
res
.
total
this
.
customerTotal
=
~~
res
.
total
this
.
customerQuery
.
pageNum
++
this
.
customerLoading
=
false
}
)
}
)
}
,
}
,
chatMsgList
()
{
chatMsgList
()
{
this
.
getChatList
()
this
.
getChatList
()
}
}
},
mounted
()
{
this
.
customerList
()
}
}
}
}
<
/script
>
<
/script
>
...
@@ -469,32 +490,30 @@ export default {
...
@@ -469,32 +490,30 @@ export default {
cursor
:
pointer
;
cursor
:
pointer
;
}
}
.ct_boxFirst
{
.
customer
-
wrap
{
}
position
:
relative
;
height
:
calc
(
100
vh
-
288
px
);
.ct_box
{
background
:
white
;
background
:
white
;
border
-
bottom
:
1
px
solid
#
efefef
;
border
-
bottom
:
1
px
solid
#
efefef
;
padding
:
10px
;
overflow
-
y
:
scroll
;
overflow
-
y
:
scroll
;
color
:
#
999
;
color
:
#
999
;
text
-
align
:
center
;
text
-
align
:
center
;
.
customer
-
li
{
::-webkit-scrollbar
{
padding
:
10
px
;
display
:
none
;
}
}
}
ul
{
.
ct_box
{
margin
:
0
;
// ::-webkit-scrollbar
{
padding
:
0
;
// display: none
;
}
//
}
ul
li
{
ul
li
{
text
-
align
:
left
;
text
-
align
:
left
;
cursor
:
pointer
;
cursor
:
pointer
;
border
-
bottom
:
1
px
solid
#
efefef
;
border
-
bottom
:
1
px
solid
#
efefef
;
:hover
{
&
:
hover
{
background
:
#
efefef
;
background
:
#
efefef
;
}
}
...
@@ -504,8 +523,8 @@ export default {
...
@@ -504,8 +523,8 @@ export default {
}
}
.
liActive
{
.
liActive
{
background
:
lightblue
!important
;
background
:
#
e2e2e2
!
important
;
color
:
#199ed8
;
// color: #fff
;
}
}
.
hds_time
{
.
hds_time
{
...
@@ -521,4 +540,16 @@ export default {
...
@@ -521,4 +540,16 @@ export default {
height
:
30
px
;
height
:
30
px
;
float
:
left
;
float
:
left
;
}
}
.
el
-
icon
-
s
-
custom
{
font
-
size
:
16
px
;
margin
-
left
:
4
px
;
color
:
#
999
;
&
.
man
{
color
:
#
13
a2e8
;
}
&
.
woman
{
color
:
#
f753b2
;
}
}
<
/style
>
<
/style
>
linkwe-ui/src/views/conversation/security
Page
/alarmingSensitive.vue
→
linkwe-ui/src/views/conversation/security/alarmingSensitive.vue
View file @
a062dfb
File moved
linkwe-ui/src/views/conversation/security.vue
→
linkwe-ui/src/views/conversation/security
/index
.vue
View file @
a062dfb
...
@@ -14,9 +14,9 @@
...
@@ -14,9 +14,9 @@
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
alarmingSensitive
from
'./
securityPage/
alarmingSensitive.vue'
import
alarmingSensitive
from
'./alarmingSensitive.vue'
import
sensitiveList
from
'./se
curityPage/se
nsitiveList.vue'
import
sensitiveList
from
'./sensitiveList.vue'
import
setSensitiveWord
from
'./se
curityPage/se
tSensitiveWord'
import
setSensitiveWord
from
'./setSensitiveWord'
export
default
{
export
default
{
components
:
{
components
:
{
sensitiveList
,
sensitiveList
,
...
...
linkwe-ui/src/views/conversation/security
Page
/sensitiveList.vue
→
linkwe-ui/src/views/conversation/security/sensitiveList.vue
View file @
a062dfb
File moved
linkwe-ui/src/views/conversation/security
Page
/setSensitiveWord.vue
→
linkwe-ui/src/views/conversation/security/setSensitiveWord.vue
View file @
a062dfb
File moved
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