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 86ac7d93
authored
Oct 11, 2021
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
会话员工检索数据问题
1 parent
c8501828
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
26 deletions
linkwe-ui/src/views/conversation/content/employee.vue
linkwe-ui/src/views/conversation/content/employee.vue
View file @
86ac7d9
...
...
@@ -28,22 +28,10 @@
<div
class=
"name pd15"
>
{{
talkName
}}
</div>
<el-tabs
v-model=
"activeName"
@
tab-click=
"tabClick(true)"
>
<el-tab-pane
label=
"内部联系人"
name=
"0"
>
<userList
v-if=
"activeName == 0"
:personList=
"personList"
:loading=
"loading"
@
chatFn=
"chatFn"
>
</userList>
<userList
v-if=
"activeName == 0"
:personList=
"personList"
:loading=
"loading"
@
chatFn=
"chatFn"
>
</userList>
</el-tab-pane>
<el-tab-pane
label=
"外部联系人"
name=
"1"
>
<userList
v-if=
"activeName == 1"
:personList=
"personList"
:loading=
"loading"
@
chatFn=
"chatFn"
>
</userList>
<userList
v-if=
"activeName == 1"
:personList=
"personList"
:loading=
"loading"
@
chatFn=
"chatFn"
>
</userList>
</el-tab-pane>
<el-tab-pane
label=
"群聊"
name=
"2"
>
<grouplist
...
...
@@ -61,16 +49,9 @@
<el-empty
v-else
:image-size=
"100"
description=
"请选择员工"
></el-empty>
</el-col>
<el-col
:span=
"12"
>
<chatListClass
v-show=
"queryChat.receiveName"
:queryChat=
"queryChat"
></chatListClass>
<chatListClass
v-show=
"queryChat.receiveName"
:queryChat=
"queryChat"
></chatListClass>
<el-empty
v-if=
"!queryChat.receiveName"
description=
"请选择联系人"
:image-size=
"100"
></el-empty>
<el-empty
v-if=
"!queryChat.receiveName"
description=
"请选择联系人"
:image-size=
"100"
></el-empty>
</el-col>
</el-row>
</div>
...
...
@@ -134,7 +115,7 @@ export default {
getTree
()
{
apiOrg
.
getTree
().
then
(({
data
})
=>
{
this
.
treeData
=
this
.
handleTree
(
data
)
this
.
handleNodeClick
(
this
.
treeData
[
0
],
true
)
//
this.handleNodeClick(this.treeData[0], true)
})
},
tabClick
(
flag
)
{
...
...
@@ -184,6 +165,7 @@ export default {
},
handleNodeClick
(
data
,
add
)
{
debugger
if
(
!
data
.
userId
)
{
let
querys
=
{
pageNum
:
'1'
,
...
...
@@ -191,9 +173,11 @@ export default {
department
:
data
.
id
}
apiOrg
.
getList
(
querys
).
then
(({
rows
})
=>
{
this
.
$set
(
data
,
'children'
,
[])
if
(
!
data
.
children
)
{
this
.
$set
(
data
,
'children'
,
[])
}
data
.
children
=
rows
data
.
children
.
push
(...
rows
)
})
}
else
{
this
.
talkName
=
data
.
name
...
...
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