Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
X
xxx_phase2_web
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏敏伟
xxx_phase2_web
Commits
e07fed51
Commit
e07fed51
authored
Dec 11, 2023
by
以墨为白
🎧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化 聊天大群
parent
8501ff17
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
1 deletion
+33
-1
src/view/ddkz/components/chatRoomInfo.vue
src/view/ddkz/components/chatRoomInfo.vue
+33
-1
No files found.
src/view/ddkz/components/chatRoomInfo.vue
View file @
e07fed51
...
@@ -152,7 +152,28 @@ export default {
...
@@ -152,7 +152,28 @@ export default {
//取消导演部审批
//取消导演部审批
//订阅大群主题,订阅功能中设置ID:
//订阅大群主题,订阅功能中设置ID:
this
.
stompClient
.
subscribe
(
item
.
address
,
res
=>
{
this
.
stompClient
.
subscribe
(
item
.
address
,
res
=>
{
this
.
getRecordsByPagingFn
(
item
);
// this.getRecordsByPagingFn(item);
let
body
=
JSON
.
parse
(
res
.
body
);
this
.
publicNoticeList
.
push
({
attachment
:
body
.
attachment
,
content
:
body
.
content
,
destId
:
res
.
headers
.
chatRoomId
,
fromUserId
:
res
.
headers
.
fromUserId
,
messageForm
:
body
.
messageForm
,
remark
:
body
.
remark
,
teamId
:
body
.
teamInfo
.
id
,
teamInfo
:
body
.
teamInfo
,
title
:
body
.
title
,
createTime
:
body
.
createTime
});
this
.
publicNoticeList
=
this
.
publicNoticeList
.
sort
(
this
.
compare
);
this
.
dataOrderByParams
(
5
,
null
);
this
.
optionsFrom
=
[];
this
.
publicNoticeList
.
forEach
(
item
=>
{
if
(
this
.
optionsFrom
.
indexOf
(
item
.
fromUserId
)
==
-
1
)
{
this
.
optionsFrom
.
push
(
item
.
fromUserId
);
}
});
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
$refs
.
myNotice
.
handleClose
();
this
.
$refs
.
myNotice
.
handleClose
();
})
})
...
@@ -330,6 +351,17 @@ export default {
...
@@ -330,6 +351,17 @@ export default {
},
},
handleChangeTimeFrame
(
val
)
{
handleChangeTimeFrame
(
val
)
{
this
.
dataOrderByParams
(
val
,
this
.
formInfo
.
fromUser
);
this
.
dataOrderByParams
(
val
,
this
.
formInfo
.
fromUser
);
},
compare
(
obj1
,
obj2
)
{
var
val1
=
obj1
.
createTime
;
var
val2
=
obj2
.
createTime
;
if
(
val1
>
val2
)
{
return
-
1
;
}
else
if
(
val1
<
val2
)
{
return
1
;
}
else
{
return
0
;
}
}
}
},
},
computed
:
{
computed
:
{
...
...
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