Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
foreign
/
customer-service
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
803da04e
authored
Jul 16, 2021
by
panjiangyi
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
工作流
parent
73f1b850
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
14 deletions
chat.vue
store/index.ts
chat.vue
View file @
803da04e
...
@@ -12,15 +12,19 @@
...
@@ -12,15 +12,19 @@
>
添加成员
</el-button
>
添加成员
</el-button
>
>
</div>
-->
</div>
-->
<el-tabs
v-model=
"currentTab"
>
<el-tabs
v-model=
"currentTab"
>
<el-tab-pane
label=
"数据"
name=
"one"
>
model的数据,可配置。
</el-tab-pane>
<el-tab-pane
label=
"数据"
name=
"one"
<el-tab-pane
:label=
"`成员$
{chatMembers.length}人`" name="two">
>
model的数据,可配置。
</el-tab-pane
<ChatMembers
/>
>
</el-tab-pane>
<el-tab-pane
:label=
"`成员$
{chatMembers.length}人`" name="two">
<el-tab-pane
label=
"工作流"
name=
"three"
>
工作流
</el-tab-pane>
<ChatMembers
/>
<el-tab-pane
label=
"备注"
name=
"four"
>
备注
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
label=
"回复"
name=
"five"
>
回复
</el-tab-pane>
<el-tab-pane
label=
"工作流"
name=
"three"
>
工作流
</el-tab-pane>
</el-tabs>
<el-tab-pane
label=
"备注"
name=
"four"
>
<remarkList
modelName=
"user"
/>
</el-tab-pane>
<el-tab-pane
label=
"回复"
name=
"five"
>
回复
</el-tab-pane>
</el-tabs>
</div>
</div>
<ChatCreator
<ChatCreator
v-if=
"visible"
v-if=
"visible"
...
@@ -33,6 +37,8 @@
...
@@ -33,6 +37,8 @@
<
script
lang=
"ts"
>
<
script
lang=
"ts"
>
import
{
Component
,
Vue
}
from
"vue-property-decorator"
;
import
{
Component
,
Vue
}
from
"vue-property-decorator"
;
import
remarkList
from
"../components/common/remarkList.vue"
;
import
ChatRoom
from
"./chat-room.vue"
;
import
ChatRoom
from
"./chat-room.vue"
;
import
ChatMembers
from
"./components/chat-members.vue"
;
import
ChatMembers
from
"./components/chat-members.vue"
;
import
MessageList
from
"./message-list.vue"
;
import
MessageList
from
"./message-list.vue"
;
...
@@ -41,7 +47,9 @@ import buttonThrottle from "./utils/button-throttle";
...
@@ -41,7 +47,9 @@ import buttonThrottle from "./utils/button-throttle";
import
ChatCreator
from
"@/customer-service/create-chat.vue"
;
import
ChatCreator
from
"@/customer-service/create-chat.vue"
;
import
{
ChatStore
,
chatStore
}
from
"@/customer-service/store/model"
;
import
{
ChatStore
,
chatStore
}
from
"@/customer-service/store/model"
;
@
Component
({
components
:
{
MessageList
,
ChatRoom
,
ChatCreator
,
ChatMembers
}
})
@
Component
({
components
:
{
MessageList
,
ChatRoom
,
ChatCreator
,
ChatMembers
,
remarkList
},
})
export
default
class
Chat
extends
Vue
{
export
default
class
Chat
extends
Vue
{
@
chatStore
.
Getter
(
ChatStore
.
GETTER_CURRENT_CHAT_PRESENT_MEMBERS
)
@
chatStore
.
Getter
(
ChatStore
.
GETTER_CURRENT_CHAT_PRESENT_MEMBERS
)
private
readonly
chatMembers
!
:
ChatStore
.
GETTER_CURRENT_CHAT_PRESENT_MEMBERS
;
private
readonly
chatMembers
!
:
ChatStore
.
GETTER_CURRENT_CHAT_PRESENT_MEMBERS
;
...
@@ -58,10 +66,10 @@ export default class Chat extends Vue {
...
@@ -58,10 +66,10 @@ export default class Chat extends Vue {
@
chatStore
.
Action
(
ChatStore
.
ACTION_CHAT_ADD_MEMBERS
)
@
chatStore
.
Action
(
ChatStore
.
ACTION_CHAT_ADD_MEMBERS
)
private
readonly
_addMember
!
:
ChatStore
.
ACTION_CHAT_ADD_MEMBERS
;
private
readonly
_addMember
!
:
ChatStore
.
ACTION_CHAT_ADD_MEMBERS
;
private
currentTab
=
"one"
private
currentTab
=
"one"
;
private
get
chatMembersId
()
{
private
get
chatMembersId
()
{
return
this
.
chatMembers
.
map
(
k
=>
+
k
.
eid
);
return
this
.
chatMembers
.
map
(
(
k
)
=>
+
k
.
eid
);
}
}
private
visible
=
false
;
private
visible
=
false
;
...
@@ -88,7 +96,7 @@ export default class Chat extends Vue {
...
@@ -88,7 +96,7 @@ export default class Chat extends Vue {
.chat-con
{
.chat-con
{
--chat-panel-width
:
350px
;
--chat-panel-width
:
350px
;
font-size
:
13px
;
font-size
:
13px
;
color
:
black
;
color
:
black
;
}
}
.chat-area
,
.chat-area
,
.chat-panel
{
.chat-panel
{
...
@@ -97,7 +105,7 @@ export default class Chat extends Vue {
...
@@ -97,7 +105,7 @@ export default class Chat extends Vue {
}
}
.chat-area
{
.chat-area
{
width
:
calc
(
100%
-
var
(
--chat-panel-width
)
-
2px
);
width
:
calc
(
100%
-
var
(
--chat-panel-width
)
-
2px
);
}
}
.chat-panel
{
.chat-panel
{
position
:
relative
;
position
:
relative
;
...
...
store/index.ts
View file @
803da04e
...
@@ -283,6 +283,8 @@ export default {
...
@@ -283,6 +283,8 @@ export default {
async
[
ChatStore
.
ACTION_GET_MY_CHAT_LIST
]({
async
[
ChatStore
.
ACTION_GET_MY_CHAT_LIST
]({
commit
,
commit
,
})
/* ...params: Parameters<ChatStore.ACTION_GET_MY_CHAT_LIST> */
{
})
/* ...params: Parameters<ChatStore.ACTION_GET_MY_CHAT_LIST> */
{
const
data
=
await
xim
.
fetchChatList
();
console
.
log
(
"debugg"
,
data
);
const
{
pageData
}
=
await
model
().
list
().
query
({
const
{
pageData
}
=
await
model
().
list
().
query
({
pageIndex
:
1
,
pageIndex
:
1
,
item_size
:
50
,
item_size
:
50
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment