顺序优化

This commit is contained in:
yj 2024-09-10 14:04:12 +08:00
parent 7875e37bd1
commit ac689b9548
1 changed files with 25 additions and 25 deletions

View File

@ -1565,6 +1565,14 @@ const Meeting: React.FC = () => {
postOpenCamera(!item.enableCamera, item.uid) postOpenCamera(!item.enableCamera, item.uid)
}} }}
>{item.enableCamera ? '关闭视频' : '打开视频'}</Button> : null} >{item.enableCamera ? '关闭视频' : '打开视频'}</Button> : null}
{item.uid !== user.uid ? <Button
type="primary"
className='m-ant-btn'
size={'small'}
onClick={() => {
equipmentManagement(item.uid, item.userName)
}}
></Button> : null}
{item.uid !== user.uid ? <Button {item.uid !== user.uid ? <Button
type="primary" type="primary"
style={{ backgroundColor: '#EC3C3C' }} style={{ backgroundColor: '#EC3C3C' }}
@ -1574,14 +1582,6 @@ const Meeting: React.FC = () => {
getRoomKickout(state.channelId, item.uid, item.userName) getRoomKickout(state.channelId, item.uid, item.userName)
}} }}
></Button> : null} ></Button> : null}
{item.uid !== user.uid ? <Button
type="primary"
className='m-ant-btn'
size={'small'}
onClick={() => {
equipmentManagement(item.uid, item.userName)
}}
></Button> : null}
</div> </div>
}> }>
<div className={styles.meetingContentOperation}> <div className={styles.meetingContentOperation}>
@ -1747,23 +1747,23 @@ const Meeting: React.FC = () => {
} }
}} }}
>{item.isRoomManager ? '取消发言人' : '设为发言人'}</Button> : null} >{item.isRoomManager ? '取消发言人' : '设为发言人'}</Button> : null}
<Button
type="primary"
style={{ backgroundColor: '#EC3C3C', width: '100%' }}
size={'small'}
onClick={() => {
getRoomKickout(state.channelId, item.uid, item.userName)
}}
></Button>
<Button <Button
type="primary" type="primary"
className='m-ant-btn' className='m-ant-btn'
style={{ marginTop: '10px', width: '100%' }} style={{ width: '100%' }}
size={'small'} size={'small'}
onClick={() => { onClick={() => {
equipmentManagement(item.uid, item.userName) equipmentManagement(item.uid, item.userName)
}} }}
></Button> ></Button>
<Button
type="primary"
style={{ backgroundColor: '#EC3C3C', width: '100%', marginTop: '10px' }}
size={'small'}
onClick={() => {
getRoomKickout(state.channelId, item.uid, item.userName)
}}
></Button>
</div> </div>
}> }>
<EllipsisOutlined style={{ <EllipsisOutlined style={{
@ -1887,6 +1887,14 @@ const Meeting: React.FC = () => {
}) })
}} }}
>{roomUserItem.enableCamera ? '关闭视频' : '打开视频'}</Button> : null} >{roomUserItem.enableCamera ? '关闭视频' : '打开视频'}</Button> : null}
{roomUserItem.uid !== user.uid ? <Button
type="primary"
className='m-ant-btn'
size={'small'}
onClick={() => {
equipmentManagement(roomUserItem.uid, roomUserItem.userName)
}}
></Button> : null}
{roomUserItem.uid !== user.uid ? <Button {roomUserItem.uid !== user.uid ? <Button
type="primary" type="primary"
style={{ backgroundColor: '#EC3C3C' }} style={{ backgroundColor: '#EC3C3C' }}
@ -1896,14 +1904,6 @@ const Meeting: React.FC = () => {
getRoomKickout(state.channelId, roomUserItem.uid, roomUserItem.userName) getRoomKickout(state.channelId, roomUserItem.uid, roomUserItem.userName)
}} }}
></Button> : null} ></Button> : null}
{roomUserItem.uid !== user.uid ? <Button
type="primary"
className='m-ant-btn'
size={'small'}
onClick={() => {
equipmentManagement(roomUserItem.uid, roomUserItem.userName)
}}
></Button> : null}
</div> : <div style={{ color: 'white' }}></div> </div> : <div style={{ color: 'white' }}></div>
}> }>
<div> <div>