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
2424c045
Commit
2424c045
authored
Nov 08, 2023
by
以墨为白
🎧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
聊天背景色
parent
25ba2cf4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
16 deletions
+24
-16
src/view/ddkz/components/chatRoomDialog.vue
src/view/ddkz/components/chatRoomDialog.vue
+3
-3
src/view/ddkz/components/chatRoomInfo.vue
src/view/ddkz/components/chatRoomInfo.vue
+10
-7
src/view/ddkz/components/chatRoomPeople.vue
src/view/ddkz/components/chatRoomPeople.vue
+2
-2
src/view/ddkz/components/noticeDialog.vue
src/view/ddkz/components/noticeDialog.vue
+9
-4
No files found.
src/view/ddkz/components/chatRoomDialog.vue
View file @
2424c045
...
...
@@ -148,7 +148,7 @@ export default {
keepBottom
()
{
this
.
$refs
.
chatContent
.
scrollTop
=
this
.
$refs
.
chatContent
.
scrollHeight
;
},
listChatroom
(
item
)
{
subscribe
(
item
)
{
//取消群聊的订阅
for
(
const
sub
in
this
.
stompClient
.
subscriptions
)
{
if
(
sub
.
startsWith
(
"
multicastTeam
"
))
{
...
...
@@ -178,10 +178,10 @@ export default {
handleDialogOpen
()
{
// this.analogDataList = this.$props.analogData;
this
.
currentChatRoom
=
this
.
$props
.
currentChatRoomInfo
;
this
.
title
=
this
.
currentChatRoom
.
teamInfo
.
teamName
;
this
.
title
=
this
.
currentChatRoom
.
teamInfo
.
teamName
+
"
的聊天室
"
;
this
.
myStompClient
=
this
.
$props
.
stompClient
;
//订阅
this
.
listChatroom
(
this
.
currentChatRoom
);
this
.
subscribe
(
this
.
currentChatRoom
);
this
.
getCurrentMessageList
(
this
.
$props
.
currentChatRoomInfo
);
},
// 监听输入框内容
...
...
src/view/ddkz/components/chatRoomInfo.vue
View file @
2424c045
...
...
@@ -36,13 +36,16 @@
<div
class=
"everyDayNew"
>
<div
class=
"everyTemplate"
>
<div
v-for=
"(item1, index1) in item.news"
:class=
"['everyDayNewCard', 'cardType' + item1.teamInfo.
teamType
]"
>
:class=
"['everyDayNewCard', 'cardType' + item1.teamInfo.
id % 3
]"
>
<div
class=
"everyDayNewCardTitle"
v-text=
"item1.title"
></div>
<div
class=
"everyDayNewCardContent"
>
<div
class=
"left-everyDayNew"
:style=
"
{ width: item1.attachment ? '50%' : '100%' }">
<div
class=
"everyDayNewCardInfo"
>
<span
v-text=
"item1.time"
></span>
 
来源:
<span
class=
"newsSource"
v-text=
"item1.from"
></span>
</div>
<div
class=
"everyDayNewCardInfo"
>
来自于组:
<span
class=
"newsSource"
v-text=
"item1.teamInfo.teamName"
></span>
,
成员:
<span
class=
"newsSource"
v-text=
"item1.from"
></span>
</div>
<div
class=
"everyDayNewCardText"
v-text=
"item1.content"
></div>
</div>
...
...
@@ -134,7 +137,7 @@ export default {
goBackFn
()
{
this
.
$router
.
push
({
name
:
'
导调控制模块
'
});
},
listChatroom
(
item
)
{
subscribe
(
item
)
{
//取消大群聊的订阅和导演部的订阅
for
(
const
sub
in
this
.
stompClient
.
subscriptions
)
{
if
(
sub
.
startsWith
(
"
multicastMeeting
"
)
||
sub
.
startsWith
(
"
multicastApproveNotice
"
))
{
...
...
@@ -336,7 +339,7 @@ export default {
this
.
currentChatRoomInfo
=
this
.
$route
.
params
.
data
;
this
.
stompClient
=
this
.
$route
.
params
.
client
;
// this.status = this.stompClient.connected;
this
.
listChatroom
(
this
.
currentChatRoomInfo
);
this
.
subscribe
(
this
.
currentChatRoomInfo
);
//获取当前组成员
// this.getCurrentTeamPeople(this.currentChatRoomInfo);
//获取当前公告列表
...
...
@@ -531,17 +534,17 @@ export default {
}
.cardType
DIRECTOR
{
.cardType
0
{
background-image
:
url(@/assets/img/ddkz/new3.png)
;
background-size
:
100%
100%
;
}
.cardType
BLUE
{
.cardType
1
{
background-image
:
url(@/assets/img/ddkz/new1.png)
;
background-size
:
100%
100%
;
}
.cardType
RED
{
.cardType
2
{
background-image
:
url(@/assets/img/ddkz/new2.png)
;
background-size
:
100%
100%
;
}
...
...
src/view/ddkz/components/chatRoomPeople.vue
View file @
2424c045
<
template
>
<el-dialog
v-el-drag-dialog
title=
"
人员情况
"
:visible.sync=
"dialogVisible"
width=
"40%"
:before-close=
"handleClose"
<el-dialog
v-el-drag-dialog
title=
"
成员列表
"
:visible.sync=
"dialogVisible"
width=
"40%"
:before-close=
"handleClose"
@
open=
"handleDialogOpen"
>
<div
class=
"info-personInfo"
>
<div
class=
"personInfo-content"
>
...
...
@@ -114,7 +114,7 @@ export default {
.teamInfo
{
width
:
100%
;
height
:
30px
;
text-align
:
center
;
//
text-align: center;
&
>
span
{
margin-left
:
20px
;
...
...
src/view/ddkz/components/noticeDialog.vue
View file @
2424c045
<
template
>
<el-dialog
v-el-drag-dialog
title=
"发送公告
"
:visible.sync=
"dialogVisible"
width=
"30%"
:before-close=
"handleClose"
<el-dialog
v-el-drag-dialog
:title=
"title
"
:visible.sync=
"dialogVisible"
width=
"30%"
:before-close=
"handleClose"
@
open=
"handleDialogOpen"
>
<div
class=
"notice"
>
<el-form
ref=
"form"
:model=
"form"
label-width=
"80px"
>
...
...
@@ -39,13 +39,14 @@ export default {
title
:
''
,
content
:
''
,
attachment
:
''
,
remark
:
''
,
remark
:
''
,
messageForm
:
null
},
formatFile
:
format_file
(),
myStompClient
:
null
,
currentChatRoom
:
{},
analogDataList
:
[],
title
:
"
发送公告
"
}
},
directives
:
{
...
...
@@ -84,8 +85,11 @@ export default {
this
.
form
.
fileList
=
[];
},
sendNotice
()
{
// this.myStompClient.send(`/app/sendToChatRoom/${this.currentChatRoom.id}/${this.currentChatRoom.teamId}`, {}, JSON.stringify(this.form));
this
.
myStompClient
.
send
(
`/app/sendToApprovalPending/
${
this
.
currentChatRoom
.
id
}
/
${
this
.
currentChatRoom
.
teamId
}
`
,
{},
JSON
.
stringify
(
this
.
form
));
if
(
this
.
currentChatRoom
.
teamInfo
.
teamType
==
"
DIRECTOR
"
)
{
this
.
myStompClient
.
send
(
`/app/sendToChatRoom/
${
this
.
currentChatRoom
.
id
}
/
${
this
.
currentChatRoom
.
teamId
}
`
,
{},
JSON
.
stringify
(
this
.
form
));
}
else
{
this
.
myStompClient
.
send
(
`/app/sendToApprovalPending/
${
this
.
currentChatRoom
.
id
}
/
${
this
.
currentChatRoom
.
teamId
}
`
,
{},
JSON
.
stringify
(
this
.
form
));
}
this
.
form
=
{
title
:
''
,
content
:
''
,
...
...
@@ -98,6 +102,7 @@ export default {
handleDialogOpen
()
{
this
.
myStompClient
=
this
.
$props
.
stompClient
;
this
.
currentChatRoom
=
this
.
$props
.
currentChatRoomInfo
;
this
.
title
=
this
.
currentChatRoom
.
teamInfo
.
teamName
+
"
正在发送公告
"
;
}
}
}
...
...
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