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 d2f0484b
authored
Aug 05, 2021
by
孙喜旺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
会话存档员工检索接口修改
1 parent
74fc57ea
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
214 additions
and
88 deletions
linkwe-ui/.env.development
linkwe-ui/.env.production
linkwe-ui/build/config.gypi
linkwe-ui/src/api/content.js → linkwe-ui/src/api/conversation/content.js
linkwe-ui/src/views/conversation/component/chat.vue
linkwe-ui/src/views/conversation/component/groupList.vue
linkwe-ui/src/views/conversation/component/insideList.vue
linkwe-ui/src/views/conversation/component/list.vue
linkwe-ui/src/views/conversation/page/employeeTest.vue
linkwe-ui/src/views/conversation/page/roleTest.vue
linkwe-ui/src/views/conversation/page/userTest.vue
linkwe-ui/src/views/index.vue
linkwe-ui/.env.development
View file @
d2f0484
...
@@ -6,7 +6,7 @@ VUE_APP_BASE_API = 'http://demo.linkwechat.cn/api'
...
@@ -6,7 +6,7 @@ VUE_APP_BASE_API = 'http://demo.linkwechat.cn/api'
# VUE_APP_BASE_API = 'http://n3rpzt.natappfree.cc'
# VUE_APP_BASE_API = 'http://n3rpzt.natappfree.cc'
# 开发环境IP
# 开发环境IP
VUE_APP_BASE_URL = 'http://
119.45.28.29:8090
'
VUE_APP_BASE_URL = 'http://
demo.linkwechat.cn/api
'
# 路由懒加载
# 路由懒加载
VUE_CLI_BABEL_TRANSPILE_MODULES = true
VUE_CLI_BABEL_TRANSPILE_MODULES = true
linkwe-ui/.env.production
View file @
d2f0484
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
ENV = 'production'
ENV = 'production'
# 仟微管理系统/生产环境api
# 仟微管理系统/生产环境api
VUE_APP_BASE_API = 'http://
119.45.28.29:8090
'
VUE_APP_BASE_API = 'http://
demo.linkwechat.cn/api
'
# 生产环境IP
# 生产环境IP
VUE_APP_BASE_URL = 'http://
119.45.28.29:8090
'
VUE_APP_BASE_URL = 'http://
demo.linkwechat.cn/api
'
linkwe-ui/build/config.gypi
0 → 100644
View file @
d2f0484
# Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": [],
"msbuild_toolset": "v141",
"msvs_windows_target_platform_version": "10.0.17763.0"
},
"variables": {
"asan": 0,
"build_v8_with_gn": "false",
"coverage": "false",
"dcheck_always_on": 0,
"debug_nghttp2": "false",
"debug_node": "false",
"enable_lto": "false",
"enable_pgo_generate": "false",
"enable_pgo_use": "false",
"error_on_warn": "false",
"force_dynamic_crt": 0,
"host_arch": "x64",
"icu_data_in": "..\\..\\deps\\icu-tmp\\icudt67l.dat",
"icu_endianness": "l",
"icu_gyp_path": "tools/icu/icu-generic.gyp",
"icu_path": "deps/icu-small",
"icu_small": "false",
"icu_ver_major": "67",
"is_debug": 0,
"napi_build_version": "7",
"nasm_version": "2.14",
"node_byteorder": "little",
"node_debug_lib": "false",
"node_enable_d8": "false",
"node_install_npm": "true",
"node_module_version": 83,
"node_no_browser_globals": "false",
"node_prefix": "/usr/local",
"node_release_urlbase": "https://nodejs.org/download/release/",
"node_shared": "false",
"node_shared_brotli": "false",
"node_shared_cares": "false",
"node_shared_http_parser": "false",
"node_shared_libuv": "false",
"node_shared_nghttp2": "false",
"node_shared_openssl": "false",
"node_shared_zlib": "false",
"node_tag": "",
"node_target_type": "executable",
"node_use_bundled_v8": "true",
"node_use_dtrace": "false",
"node_use_etw": "true",
"node_use_node_code_cache": "true",
"node_use_node_snapshot": "true",
"node_use_openssl": "true",
"node_use_v8_platform": "true",
"node_with_ltcg": "true",
"node_without_node_options": "false",
"openssl_fips": "",
"openssl_is_fips": "false",
"ossfuzz": "false",
"shlib_suffix": "so.83",
"target_arch": "x64",
"v8_enable_31bit_smis_on_64bit_arch": 0,
"v8_enable_gdbjit": 0,
"v8_enable_i18n_support": 1,
"v8_enable_inspector": 1,
"v8_enable_lite_mode": 0,
"v8_enable_object_print": 1,
"v8_enable_pointer_compression": 0,
"v8_no_strict_aliasing": 1,
"v8_optimized_debug": 1,
"v8_promise_internal_field_count": 1,
"v8_random_seed": 0,
"v8_trace_maps": 0,
"v8_use_siphash": 1,
"want_separate_host_toolset": 0,
"nodedir": "C:\\Users\\77514\\AppData\\Local\\node-gyp\\Cache\\14.15.0",
"standalone_static_library": 1,
"msbuild_path": "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\MSBuild\\15.0\\Bin\\MSBuild.exe"
}
}
linkwe-ui/src/api/content.js
→
linkwe-ui/src/api/con
versation/con
tent.js
View file @
d2f0484
import
request
from
'@/utils/request'
import
request
from
'@/utils/request'
const
get
Tree
=
(
params
)
=>
{
const
get
ExternalChatList
=
(
params
)
=>
{
return
request
({
return
request
({
url
:
'/chat/mapping/list'
,
url
:
'/linkwechat/msg/selectExternalChatList/'
+
params
.
fromId
,
method
:
'get'
,
method
:
'get'
params
,
})
}
const
getInternalChatList
=
(
params
)
=>
{
return
request
({
url
:
'/linkwechat/msg/selectInternalChatList/'
+
params
.
fromId
,
method
:
'get'
})
}
const
getGroupChatList
=
(
params
)
=>
{
return
request
({
url
:
'/linkwechat/msg/selectGroupChatList/'
+
params
.
fromId
,
method
:
'get'
})
})
}
}
const
chatList
=
(
params
)
=>
{
const
chatList
=
(
params
)
=>
{
return
request
({
return
request
({
url
:
'/
wecom/finance/getChatContactL
ist'
,
url
:
'/
linkwechat/msg/l
ist'
,
method
:
'get'
,
method
:
'get'
,
params
,
params
,
})
})
...
@@ -26,7 +39,7 @@ const indexEchart = () => {
...
@@ -26,7 +39,7 @@ const indexEchart = () => {
method
:
'get'
method
:
'get'
})
})
}
}
//
//
const
chatGrounpList
=
(
params
)
=>
{
const
chatGrounpList
=
(
params
)
=>
{
return
request
({
return
request
({
url
:
'/wecom/finance/getChatRoomContactList'
,
url
:
'/wecom/finance/getChatRoomContactList'
,
...
@@ -52,7 +65,9 @@ const getChatAllList = (params) => {
...
@@ -52,7 +65,9 @@ const getChatAllList = (params) => {
export
const
content
=
{
export
const
content
=
{
indexEchart
,
indexEchart
,
indexTable
,
indexTable
,
getTree
,
getExternalChatList
,
getInternalChatList
,
getGroupChatList
,
chatList
,
chatList
,
listByCustomer
,
listByCustomer
,
getChatAllList
,
getChatAllList
,
...
...
linkwe-ui/src/views/conversation/component/chat.vue
View file @
d2f0484
...
@@ -4,40 +4,40 @@
...
@@ -4,40 +4,40 @@
<li
v-for=
"(item, index) in allChat"
:key=
"index"
>
<li
v-for=
"(item, index) in allChat"
:key=
"index"
>
<!--
<span
v-if=
"item.fromInfo.name"
>
{{
item
.
fromInfo
.
name
}}
</span>
-->
<!--
<span
v-if=
"item.fromInfo.name"
>
{{
item
.
fromInfo
.
name
}}
</span>
-->
<div
:style=
"
{ color: item.action == 'send' ? '#199ed8' : '#999' }">
<div
:style=
"
{ color: item.action == 'send' ? '#199ed8' : '#999' }">
<span
v-if=
"item
.fromInfo"
>
{{
item
.
fromInfo
.
name
}}
</span>
<span
v-if=
"item
"
>
{{
item
.
name
}}
</span>
<span
<span
:style=
"
{ color: item.action == 'send' ? '#199ed8' : '#999' }"
:style=
"
{ color: item.action == 'send' ? '#199ed8' : '#999' }"
>
{{
parseTime
(
item
.
msgTime
)
}}
</span
>
{{
item
.
msgTime
}}
</span
>
>
</div>
</div>
<div
v-if=
"item.msgType == 'text'"
class=
"msgtypetext"
>
<div
v-if=
"item.msgType == 'text'"
class=
"msgtypetext"
>
{{
item
.
text
.
content
}}
{{
JSON
.
parse
(
item
.
contact
)
.
content
}}
</div>
</div>
<div
v-else-if=
"item.msgType == 'image'"
class=
"msgtypeimg"
>
<div
v-else-if=
"item.msgType == 'image'"
class=
"msgtypeimg"
>
<img
:src=
"
item.image.attachment"
@
click=
"showImg(item
)"
/>
<img
:src=
"
JSON.parse(item.contact).attachment"
@
click=
"showImg(JSON.parse(item.contact)
)"
/>
</div>
</div>
<div
<div
v-else-if=
"item.msgType == 'file'"
v-else-if=
"item.msgType == 'file'"
class=
"msgtypefile"
class=
"msgtypefile"
@
click=
"down(
item.file
)"
@
click=
"down(
JSON.parse(item.contact)
)"
>
>
{{
item
.
file
.
fileName
}}
{{
JSON
.
parse
(
item
.
contact
)
.
fileName
}}
</div>
</div>
<div
v-else-if=
"item.msgType == 'voice'"
class=
"msgtypevoice"
>
<div
v-else-if=
"item.msgType == 'voice'"
class=
"msgtypevoice"
>
<i
<i
class=
"el-icon-microphone"
class=
"el-icon-microphone"
style=
" font-size: 40px; color: #199ed8;"
style=
" font-size: 40px; color: #199ed8;"
@
click=
"playVideo(
item
)"
@
click=
"playVideo(
JSON.parse(item.contact)
)"
></i>
></i>
</div>
</div>
<div
v-else-if=
"item.msgType == 'emotion'"
class=
"msgtypeimg"
>
<div
v-else-if=
"item.msgType == 'emotion'"
class=
"msgtypeimg"
>
<img
:src=
"
item.emotion
.attachment"
@
click=
"showImg(item)"
/>
<img
:src=
"
JSON.parse(item.contact)
.attachment"
@
click=
"showImg(item)"
/>
</div>
</div>
<div
v-else-if=
"item.msgType == 'video'"
class=
"msgtypevideo"
>
<div
v-else-if=
"item.msgType == 'video'"
class=
"msgtypevideo"
>
<i
<i
class=
"el-icon-video-play"
class=
"el-icon-video-play"
style=
" font-size: 40px; color: #199ed8;"
style=
" font-size: 40px; color: #199ed8;"
@
click=
"play(
item
, 'video')"
@
click=
"play(
JSON.parse(item.contact)
, 'video')"
></i>
></i>
</div>
</div>
<div
v-else-if=
"item.msgType == 'location'"
class=
"msgtypecard"
>
<div
v-else-if=
"item.msgType == 'location'"
class=
"msgtypecard"
>
...
@@ -45,24 +45,24 @@
...
@@ -45,24 +45,24 @@
<el-amap
<el-amap
ref=
"map"
ref=
"map"
vid=
"amapDemo"
vid=
"amapDemo"
:center=
"[
item.location.longitude, item.location
.latitude]"
:center=
"[
JSON.parse(item.contact).longitude, JSON.parse(item.contact)
.latitude]"
:zoom=
"zoom"
:zoom=
"zoom"
class=
"amap-demo"
class=
"amap-demo"
style=
"pointer-events: none;"
style=
"pointer-events: none;"
>
>
<el-amap-marker
<el-amap-marker
:position=
"[
item.location.longitude, item.location
.latitude]"
:position=
"[
JSON.parse(item.contact).longitude, iJSON.parse(item.contact)
.latitude]"
></el-amap-marker>
></el-amap-marker>
</el-amap>
</el-amap>
</div>
</div>
<div
class=
"card_foot"
>
{{
item
.
location
.
address
}}
</div>
<div
class=
"card_foot"
>
{{
JSON
.
parse
(
item
.
contact
)
.
address
}}
</div>
</div>
</div>
<div
v-else-if=
"item.msgType == 'weapp'"
class=
"msgtypecard"
>
<div
v-else-if=
"item.msgType == 'weapp'"
class=
"msgtypecard"
>
<div
class=
"card_name"
>
{{
item
.
weApp
.
title
}}
</div>
<div
class=
"card_name"
>
{{
JSON
.
parse
(
item
.
contact
)
.
title
}}
</div>
<div
class=
"card_foot"
>
小程序
</div>
<div
class=
"card_foot"
>
小程序
</div>
</div>
</div>
<div
v-else-if=
"item.msgType == 'card'"
class=
"msgtypecard "
>
<div
v-else-if=
"item.msgType == 'card'"
class=
"msgtypecard "
>
<div
class=
"card_name"
>
{{
item
.
card
.
corpName
}}
</div>
<div
class=
"card_name"
>
{{
JSON
.
parse
(
item
.
contact
)
.
corpName
}}
</div>
<div
class=
"card_foot"
>
个人名片
</div>
<div
class=
"card_foot"
>
个人名片
</div>
</div>
</div>
</li>
</li>
...
@@ -165,20 +165,20 @@ export default {
...
@@ -165,20 +165,20 @@ export default {
mp3
.
pause
()
mp3
.
pause
()
},
},
playVideo
(
e
)
{
playVideo
(
e
)
{
this
.
vioceSrc
=
[
e
.
voice
.
attachment
]
this
.
vioceSrc
=
[
e
.
attachment
]
this
.
diavioce
=
true
this
.
diavioce
=
true
},
},
onBeforePlay
(
next
)
{
onBeforePlay
(
next
)
{
next
()
// 开始播放
next
()
// 开始播放
},
},
showImg
(
e
)
{
showImg
(
e
)
{
this
.
imgSrc
=
e
.
image
.
attachment
this
.
imgSrc
=
e
.
attachment
this
.
dialogVisible
=
true
this
.
dialogVisible
=
true
},
},
play
(
e
)
{
play
(
e
)
{
this
.
dia
=
true
this
.
dia
=
true
const
player
=
this
.
$refs
.
videoPlayer
.
player
const
player
=
this
.
$refs
.
videoPlayer
.
player
this
.
playerOptions
[
'sources'
][
0
][
'src'
]
=
e
.
video
.
attachment
this
.
playerOptions
[
'sources'
][
0
][
'src'
]
=
e
.
attachment
player
.
play
()
player
.
play
()
},
},
down
(
e
)
{
down
(
e
)
{
...
...
linkwe-ui/src/views/conversation/component/groupList.vue
View file @
d2f0484
...
@@ -7,15 +7,12 @@
...
@@ -7,15 +7,12 @@
:key=
"index"
:key=
"index"
@
click=
"liClick(item)"
@
click=
"liClick(item)"
>
>
<el-row
<el-row
style=
"padding:10px"
v-if=
"item.msgType == 'text'"
>
style=
"padding:10px"
v-if=
"item.finalChatContext.msgtype == 'text'"
>
<span
class=
"fl"
>
<span
class=
"fl"
>
<div
class=
"ninebox"
>
<div
class=
"ninebox"
>
<ul
v-if=
"item.
roomInfo
"
>
<ul
v-if=
"item.
avatar
"
>
<li
<li
v-for=
"(a, i) in item.
roomInfo.
avatar.split(',')"
v-for=
"(a, i) in item.avatar.split(',')"
:key=
"i"
:key=
"i"
>
>
<img
:src=
"a"
/>
<img
:src=
"a"
/>
...
@@ -25,14 +22,14 @@
...
@@ -25,14 +22,14 @@
</span>
</span>
<span
class=
"fl"
style=
"margin-left:8px;line-height:60px"
>
<span
class=
"fl"
style=
"margin-left:8px;line-height:60px"
>
<p>
<p>
{{
item
.
finalChatContext
.
roomInfo
.
name
}}
{{
item
.
name
}}
<span
class=
"fr gray"
>
{{
<span
class=
"fr gray"
>
{{
parseTime
(
item
.
finalChatContext
.
fromInfo
.
updateTime
)
item
.
msgTime
}}
</span>
}}
</span>
</p>
</p>
<p
class=
"gray"
v-if=
"item
.finalChatContext.fromInfo
"
>
<p
class=
"gray"
v-if=
"item"
>
{{
item
.
finalChatContext
.
fromInfo
.
name
}}
:
{{
{{
item
.
name
}}
:
{{
item
.
finalChatContext
.
text
.
content
item
.
content
}}
}}
</p>
</p>
</span>
</span>
...
@@ -43,7 +40,7 @@
...
@@ -43,7 +40,7 @@
<p><span
class=
"fr gray"
>
{{
parseTime
(
item
.
finalChatContext
.
msgtime
)
}}
</span></p>
<p><span
class=
"fr gray"
>
{{
parseTime
(
item
.
finalChatContext
.
msgtime
)
}}
</span></p>
<p
class=
"gray padt10"
>
{{
item
.
finalChatContext
.
from
}}
:
<p
class=
"gray padt10"
>
{{
item
.
finalChatContext
.
from
}}
:
<span
v-if=
"item.finalChatContext.file.fileext=='mp4'"
>
[视频]
</span>
<span
v-if=
"item.finalChatContext.file.fileext=='mp4'"
>
[视频]
</span>
</p>
</p>
</el-col>
</el-col>
</el-row>
-->
</el-row>
-->
</li>
</li>
...
...
linkwe-ui/src/views/conversation/component/insideList.vue
View file @
d2f0484
...
@@ -9,10 +9,10 @@
...
@@ -9,10 +9,10 @@
>
>
<el-row
style=
"padding:10px"
>
<el-row
style=
"padding:10px"
>
<span
class=
"fl"
>
<span
class=
"fl"
>
<img
:src=
"item.
finalChatContext.fromInfo.avatarMediaid
"
<img
:src=
"item.
avatar
"
/></span>
/></span>
<span
class=
"fl"
style=
"margin-left:8px"
>
<span
class=
"fl"
style=
"margin-left:8px"
>
<p>
{{
item
.
finalChatContext
.
fromInfo
.
name
}}
</p>
<p>
{{
item
.
name
}}
</p>
</span>
</span>
</el-row>
</el-row>
</li>
</li>
...
...
linkwe-ui/src/views/conversation/component/list.vue
View file @
d2f0484
...
@@ -8,9 +8,12 @@
...
@@ -8,9 +8,12 @@
@
click=
"liClick(item)"
@
click=
"liClick(item)"
>
>
<el-row
style=
"padding:10px"
>
<el-row
style=
"padding:10px"
>
<span
class=
"fl"
>
<img
:src=
"item.
receiveWeCustomer.
avatar"
/></span>
<span
class=
"fl"
>
<img
:src=
"item.avatar"
/></span>
<span
class=
"fl"
style=
"margin-left:8px"
>
<span
class=
"fl"
style=
"margin-left:8px"
>
<p>
{{
item
.
receiveWeCustomer
.
name
}}
</p>
<p>
{{
item
.
name
}}
</p>
</span>
<span
class=
"fl"
>
<p>
{{
item
.
contact
}}
</p>
</span>
</span>
</el-row>
</el-row>
</li>
</li>
...
@@ -32,7 +35,6 @@ export default {
...
@@ -32,7 +35,6 @@ export default {
defluat
:
false
defluat
:
false
}
}
},
},
data
()
{
data
()
{
return
{
return
{
loadings
:
true
loadings
:
true
...
@@ -42,6 +44,14 @@ export default {
...
@@ -42,6 +44,14 @@ export default {
liClick
(
e
)
{
liClick
(
e
)
{
console
.
log
(
e
,
'liClick'
)
console
.
log
(
e
,
'liClick'
)
this
.
$emit
(
'chatFn'
,
e
)
this
.
$emit
(
'chatFn'
,
e
)
},
msgContentType
(
type
,
msg
){
console
.
log
(
type
,
msg
,
'msgContentType'
)
//消息获取
/*case msg = JSON.parse(msg);
switch (type){
case "text":
}*/
}
}
}
}
}
}
...
...
linkwe-ui/src/views/conversation/page/employeeTest.vue
View file @
d2f0484
...
@@ -227,17 +227,17 @@
...
@@ -227,17 +227,17 @@
>
>
<el-table-column
prop=
"date"
label=
"发起人"
>
<el-table-column
prop=
"date"
label=
"发起人"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
fromInfo
.
name
}}
{{
scope
.
row
.
name
}}
</
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=
"scope"
>
{{
parseTime
(
scope
.
row
.
msgtime
)
}}
{{
scope
.
row
.
msgTime
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"address"
label=
"时长"
>
<el-table-column
prop=
"address"
label=
"时长"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
voice
.
play_length
}}
s
{{
JSON
.
parse
(
scope
.
row
.
contact
)
.
play_length
}}
s
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"address"
label=
"操作"
>
<el-table-column
prop=
"address"
label=
"操作"
>
...
@@ -245,7 +245,7 @@
...
@@ -245,7 +245,7 @@
<el-button
<el-button
type=
"text"
type=
"text"
size=
"small"
size=
"small"
@
click=
"voiceLook(
scope.row.voice
)"
@
click=
"voiceLook(
JSON.parse(scope.row.contact)
)"
>
查看
</el-button
>
查看
</el-button
>
>
</
template
>
</
template
>
...
@@ -265,7 +265,7 @@ import chat from '../component/chat.vue'
...
@@ -265,7 +265,7 @@ 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
api
from
'@/api/organization'
import
{
content
}
from
'@/api/content.js'
import
{
content
}
from
'@/api/con
versation/con
tent.js'
import
{
yearMouthDay
,
parseTime
}
from
'@/utils/common.js'
import
{
yearMouthDay
,
parseTime
}
from
'@/utils/common.js'
export
default
{
export
default
{
...
@@ -278,7 +278,7 @@ export default {
...
@@ -278,7 +278,7 @@ export default {
data
()
{
data
()
{
return
{
return
{
employAmount
:
1
,
employAmount
:
1
,
employ
Id
:
''
,
from
Id
:
''
,
employName
:
''
,
employName
:
''
,
talkName
:
''
,
talkName
:
''
,
treeData
:
[],
treeData
:
[],
...
@@ -362,8 +362,8 @@ export default {
...
@@ -362,8 +362,8 @@ export default {
this
.
activeNameThreeClick
(
true
)
this
.
activeNameThreeClick
(
true
)
},
},
activeNameThreeClick
(
page
,
group
)
{
activeNameThreeClick
(
page
,
group
)
{
console
.
log
(
this
.
chat
.
i
d
,
'this.chat.id'
)
console
.
log
(
this
.
chat
.
receiver
,
this
.
fromI
d
,
'this.chat.id'
)
if
(
!!!
this
.
chat
.
id
)
{
if
(
!!!
this
.
chat
.
receiver
)
{
return
//没有选择人
return
//没有选择人
}
}
if
(
!!!
page
)
{
if
(
!!!
page
)
{
...
@@ -383,31 +383,26 @@ export default {
...
@@ -383,31 +383,26 @@ export default {
msgType
=
'voice'
msgType
=
'voice'
}
}
let
query
=
{
let
query
=
{
fromId
:
this
.
employId
,
fromId
:
this
.
fromId
,
msgType
,
msgType
,
pageSize
:
'10'
,
pageSize
:
'10'
,
pageNum
:
this
.
currentPage
,
pageNum
:
this
.
currentPage
,
orderByColumn
:
"msg_time"
,
isAsc
:
"asc"
,
beginTime
:
this
.
takeTime
?
yearMouthDay
(
this
.
takeTime
[
0
])
:
''
,
beginTime
:
this
.
takeTime
?
yearMouthDay
(
this
.
takeTime
[
0
])
:
''
,
endTime
:
this
.
takeTime
?
yearMouthDay
(
this
.
takeTime
[
1
])
:
''
endTime
:
this
.
takeTime
?
yearMouthDay
(
this
.
takeTime
[
1
])
:
''
}
}
if
(
this
.
activeName
==
'2'
)
{
if
(
this
.
activeName
!=
'2'
)
{
query
.
roomId
=
this
.
chat
.
roomId
query
.
toList
=
this
.
chat
.
receiver
}
else
{
}
else
{
query
.
receiveId
=
this
.
chat
.
receiveId
query
.
roomId
=
this
.
chat
.
receiver
}
if
(
this
.
activeName
==
'2'
)
{
content
.
chatGrounpList
(
query
).
then
((
res
)
=>
{
this
.
total
=
Number
(
res
.
total
)
console
.
log
(
res
,
'this.activeName='
)
this
.
resortData
(
res
)
})
}
else
{
content
.
chatList
(
query
).
then
((
res
)
=>
{
console
.
log
(
res
.
rows
,
'ssss'
)
this
.
total
=
Number
(
res
.
total
)
this
.
resortData
(
res
)
})
}
}
content
.
chatList
(
query
).
then
((
res
)
=>
{
console
.
log
(
res
.
rows
,
'ssss'
)
this
.
total
=
Number
(
res
.
total
)
this
.
resortData
(
res
)
})
}
}
},
},
resortData
(
res
)
{
resortData
(
res
)
{
...
@@ -446,25 +441,50 @@ export default {
...
@@ -446,25 +441,50 @@ export default {
},
},
tabClick
(
flag
)
{
tabClick
(
flag
)
{
this
.
personList
=
[]
this
.
personList
=
[]
if
(
!
this
.
employ
Id
)
{
if
(
!
this
.
from
Id
)
{
return
return
}
}
console
.
log
if
(
flag
)
{
if
(
flag
)
{
this
.
loading
=
true
this
.
loading
=
true
}
}
content
if
(
this
.
activeName
==
0
){
.
getTree
({
content
fromId
:
this
.
employId
,
.
getInternalChatList
({
searchType
:
this
.
activeName
fromId
:
this
.
fromId
})
})
.
then
(({
rows
})
=>
{
.
then
(({
data
})
=>
{
this
.
loading
=
false
this
.
loading
=
false
this
.
personList
=
rows
this
.
personList
=
data
})
})
.
catch
((
err
)
=>
{
.
catch
((
err
)
=>
{
this
.
loading
=
false
this
.
loading
=
false
})
})
}
else
if
(
this
.
activeName
==
1
){
content
.
getExternalChatList
({
fromId
:
this
.
fromId
})
.
then
(({
data
})
=>
{
this
.
loading
=
false
this
.
personList
=
data
})
.
catch
((
err
)
=>
{
this
.
loading
=
false
})
}
else
{
content
.
getGroupChatList
({
fromId
:
this
.
fromId
})
.
then
(({
data
})
=>
{
this
.
loading
=
false
this
.
personList
=
data
})
.
catch
((
err
)
=>
{
this
.
loading
=
false
})
}
},
},
filterNode
(
value
,
data
)
{
filterNode
(
value
,
data
)
{
console
.
log
(
value
,
data
)
console
.
log
(
value
,
data
)
...
@@ -486,7 +506,7 @@ export default {
...
@@ -486,7 +506,7 @@ export default {
})
})
}
else
{
}
else
{
this
.
talkName
=
data
.
name
this
.
talkName
=
data
.
name
this
.
employ
Id
=
data
.
userId
this
.
from
Id
=
data
.
userId
this
.
tabClick
()
this
.
tabClick
()
}
}
}
}
...
...
linkwe-ui/src/views/conversation/page/roleTest.vue
View file @
d2f0484
...
@@ -83,7 +83,7 @@
...
@@ -83,7 +83,7 @@
<
script
>
<
script
>
import
{
import
{
content
content
}
from
'@/api/content.js'
}
from
'@/api/con
versation/con
tent.js'
import
{
import
{
yearMouthDay
,
yearMouthDay
,
parseTime
parseTime
...
...
linkwe-ui/src/views/conversation/page/userTest.vue
View file @
d2f0484
...
@@ -249,7 +249,7 @@ import list from '../component/customerList.vue'
...
@@ -249,7 +249,7 @@ 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/content.js'
import
{
content
}
from
'@/api/con
versation/con
tent.js'
import
{
yearMouthDay
}
from
'@/utils/common.js'
import
{
yearMouthDay
}
from
'@/utils/common.js'
export
default
{
export
default
{
components
:
{
components
:
{
...
...
linkwe-ui/src/views/index.vue
View file @
d2f0484
...
@@ -261,7 +261,7 @@
...
@@ -261,7 +261,7 @@
<
script
>
<
script
>
var
elementResizeDetectorMaker
=
require
(
'element-resize-detector'
)
var
elementResizeDetectorMaker
=
require
(
'element-resize-detector'
)
import
{
arrData
}
from
'@/utils/common.js'
import
{
arrData
}
from
'@/utils/common.js'
import
{
content
}
from
'@/api/content.js'
import
{
content
}
from
'@/api/con
versation/con
tent.js'
import
echarts
from
'echarts'
import
echarts
from
'echarts'
export
default
{
export
default
{
name
:
'Index'
,
name
:
'Index'
,
...
...
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