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
f5dd8918
authored
Jul 14, 2021
by
panjiangyi
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
格式化create-chat
parent
29d2166f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
create-chat.vue
create-chat.vue
View file @
f5dd8918
...
...
@@ -21,10 +21,11 @@
</el-dialog>
</
template
>
<
script
lang=
"ts"
>
import
type
{
ListEasy
,
}
from
"uniplat-sdk"
;
import
{
Component
,
Vue
}
from
"vue-property-decorator"
;
import
{
ChatStore
,
chatStore
}
from
"@/customer-service/store/model"
;
import
type
{
List
,
ListEasy
,
ListTypes
}
from
"uniplat-sdk"
;
import
chat
from
"@/customer-service/xim/index"
import
chat
from
"@/customer-service/xim/index"
;
type
User
=
{
id
:
string
;
name
:
string
;
...
...
@@ -34,8 +35,10 @@ type ThenArg<T> = T extends PromiseLike<infer U> ? U : T;
export
default
class
ChatCreator
extends
Vue
{
@
chatStore
.
State
(
ChatStore
.
STATE_CHAT_CREATOR_VISIBLE
)
private
readonly
visible
!
:
ChatStore
.
STATE_CHAT_CREATOR_VISIBLE
;
@
chatStore
.
Mutation
(
ChatStore
.
MUTATION_HIDE_CHAT_CREATOR
)
private
readonly
hide
!
:
ChatStore
.
MUTATION_HIDE_CHAT_CREATOR
;
@
chatStore
.
Action
(
ChatStore
.
ACTION_CREATE_NEW_CHAT_BY_SERVICE_MAN
)
private
readonly
_createChat
!
:
ChatStore
.
ACTION_CREATE_NEW_CHAT_BY_SERVICE_MAN
;
...
...
@@ -44,6 +47,7 @@ export default class ChatCreator extends Vue {
id
:
any
;
name
:
any
;
}[]
=
[];
private
getList
!
:
ThenArg
<
ReturnType
<
ListEasy
[
"query"
]
>>
[
"getList"
];
public
async
created
()
{
...
...
@@ -55,6 +59,7 @@ export default class ChatCreator extends Vue {
this
.
getList
=
getList
;
this
.
userList
=
this
.
exactUserList
(
pageData
.
rows
);
}
private
exactUserList
(
rows
:
any
[])
{
return
rows
.
map
((
k
)
=>
{
return
{
...
...
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