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
7ec5eceb
authored
Jul 17, 2021
by
panjiangyi
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
回复最新一条消息功能
parent
38c4ddaf
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
chat-list.vue
xim/models/chat.ts
chat-list.vue
View file @
7ec5eceb
...
@@ -235,7 +235,8 @@ export default class ChatList extends Vue {
...
@@ -235,7 +235,8 @@ export default class ChatList extends Vue {
}
}
private
parseMesage
(
data
:
ChatType
)
{
private
parseMesage
(
data
:
ChatType
)
{
return
parserMessage
(
data
.
msg_type
,
data
.
msg
);
if
(
data
.
last_msg_content
===
""
)
return
"[暂无消息]"
;
return
parserMessage
(
data
.
last_msg_type
,
data
.
last_msg_content
);
}
}
private
formatTimestamp
(
v
:
number
)
{
private
formatTimestamp
(
v
:
number
)
{
...
@@ -243,12 +244,9 @@ export default class ChatList extends Vue {
...
@@ -243,12 +244,9 @@ export default class ChatList extends Vue {
}
}
private
goToDetail
(
model_name
:
string
,
keyvalue
:
string
)
{
private
goToDetail
(
model_name
:
string
,
keyvalue
:
string
)
{
// console.log("fuck", model_name, keyvalue, {
this
.
$router
.
push
(
// ...this.$route.params,
`/
${
this
.
$route
.
params
.
project
}
/
${
this
.
$route
.
params
.
entrance
}
/detail/
${
model_name
}
/key/
${
keyvalue
}
`
// model_name,
);
// keyvalue,
// });
this
.
$router
.
push
(
`/
${
this
.
$route
.
params
.
project
}
/
${
this
.
$route
.
params
.
entrance
}
/detail/
${
model_name
}
/key/
${
keyvalue
}
`
);
}
}
}
}
</
script
>
</
script
>
...
...
xim/models/chat.ts
View file @
7ec5eceb
...
@@ -18,6 +18,8 @@ export interface Chat {
...
@@ -18,6 +18,8 @@ export interface Chat {
join_msg_id
:
number
;
join_msg_id
:
number
;
last_read_msg_id
:
number
;
last_read_msg_id
:
number
;
biz_id
:
string
;
biz_id
:
string
;
last_msg_content
:
string
;
last_msg_type
:
string
;
business_data
:
{
business_data
:
{
model_name
:
string
;
model_name
:
string
;
obj_id
:
string
;
obj_id
:
string
;
...
...
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