结束发言二次提醒

This commit is contained in:
yj 2024-08-22 17:49:53 +08:00
parent 411608ce20
commit beb847d262
1 changed files with 23 additions and 9 deletions

View File

@ -426,7 +426,7 @@ const Meeting: React.FC = () => {
></Button>
</div>
</div>,
duration: 3,
duration: 10,
placement: 'bottomRight',
showProgress: true,
pauseOnHover: false,
@ -853,13 +853,6 @@ const Meeting: React.FC = () => {
case '申请发言':
GetApplySpeak(state.channelId)
break;
case '结束发言':
DeleteRoomManager({
roomId: state.roomId,
roomNum: state.channelId,
userId: userInfo.uid
})
break;
case '会议监控':
window.electron.oepnWindow({
url: location.origin + '/#/userVideo'
@ -1702,7 +1695,6 @@ const Meeting: React.FC = () => {
</div>
</Popover>
case '申请发言':
case '结束发言':
if (user.roleId !== '1') {
return <div className='drag' onClick={() => changeStatusList(row, itemIndex, rowIndex)} key={rowIndex}>
<img src={row.active ? row.iconActive : row.icon} alt="" />
@ -1710,6 +1702,28 @@ const Meeting: React.FC = () => {
</div>
}
return null
case '结束发言':
if (user.roleId !== '1') {
return <Popconfirm
title="提示"
description="确定要结束发言吗?"
onConfirm={() => {
DeleteRoomManager({
roomId: state.roomId,
roomNum: state.channelId,
userId: userInfo.uid
})
}}
okText="确定"
cancelText="取消"
>
<div className='drag' key={rowIndex}>
<img src={row.active ? row.iconActive : row.icon} alt="" />
<span>{row.title}</span>
</div>
</Popconfirm>
}
return null
case '会议监控':
if (user.roleId === '1') {
return <div className='drag' onClick={() => changeStatusList(row, itemIndex, rowIndex)} key={rowIndex}>