会议监控&发言权限控制
This commit is contained in:
parent
24ac5ecad4
commit
65712e46c1
|
|
@ -1558,9 +1558,9 @@ const Meeting: React.FC = () => {
|
|||
return (
|
||||
<div key={itemIndex}>
|
||||
{item.map((row, rowIndex) => {
|
||||
return (
|
||||
row.title === '结束' ?
|
||||
<Popover key={rowIndex}
|
||||
switch (row.title) {
|
||||
case '结束':
|
||||
return <Popover key={rowIndex}
|
||||
content={
|
||||
<div className='meetingContentFooterPopover'>
|
||||
{user.roleId === '1' ?
|
||||
|
|
@ -1594,8 +1594,26 @@ const Meeting: React.FC = () => {
|
|||
<img src={row.active ? row.iconActive : row.icon} alt="" />
|
||||
<span>{row.title}</span>
|
||||
</div>
|
||||
</Popover> :
|
||||
<div className='drag' onClick={() => changeStatusList(row, itemIndex, rowIndex)} key={rowIndex}>
|
||||
</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="" />
|
||||
<span>{row.title}</span>
|
||||
</div>
|
||||
}
|
||||
return null
|
||||
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="" />
|
||||
<span>{row.title}</span>
|
||||
</div>
|
||||
}
|
||||
return null
|
||||
default:
|
||||
return <div className='drag' onClick={() => changeStatusList(row, itemIndex, rowIndex)} key={rowIndex}>
|
||||
<img src={row.active ? row.iconActive : row.icon} alt="" />
|
||||
<span>{row.title}</span>
|
||||
{row.title === '成员列表' ? <div>{roomUserList.filter((item: any) => item.isRoom).length}</div> : null}
|
||||
|
|
@ -1606,7 +1624,7 @@ const Meeting: React.FC = () => {
|
|||
}}
|
||||
>{noViewChatList}</div> : null}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
})}
|
||||
</div>
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue