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