优化申请发言弹窗改成独立窗体
This commit is contained in:
parent
a80ee1efab
commit
1ec1c1f12f
|
|
@ -823,73 +823,14 @@ const Meeting: React.FC = () => {
|
|||
break;
|
||||
// 申请发言
|
||||
case 'ApplyToSpeak':
|
||||
setIsScreenCapture(bool => {
|
||||
if (bool) {
|
||||
window.electron.setChildWindowShow({
|
||||
key: 'noticeWindow',
|
||||
bool: true
|
||||
})
|
||||
channel.postMessage({
|
||||
type: 'noticeItem',
|
||||
noticeItem: item
|
||||
});
|
||||
} else {
|
||||
api.open({
|
||||
message: '',
|
||||
description: <div>
|
||||
<span style={{ fontSize: '16px' }}>{item.uname}申请发言</span>
|
||||
<div style={{ display: 'flex', justifyContent: 'flex-end' }} className='drag'>
|
||||
<Button
|
||||
type="primary"
|
||||
className='m-ant-btn'
|
||||
onClick={async (e: any) => {
|
||||
let i = e.nativeEvent.path;
|
||||
if (i) {
|
||||
i.forEach((i: any) => {
|
||||
if (i.className === 'ant-notification-notice ant-notification-notice-closable') {
|
||||
i.childNodes.forEach((row: any) => {
|
||||
if (row.className === 'ant-notification-notice-close') {
|
||||
row.click()
|
||||
postRoomManager({
|
||||
roomId: state.roomId,
|
||||
roomNum: state.channelId,
|
||||
userId: item.uid
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
}}
|
||||
>接受</Button>
|
||||
<Button
|
||||
type="primary"
|
||||
onClick={(e: any) => {
|
||||
let item = e.nativeEvent.path;
|
||||
if (item) {
|
||||
item.forEach((item: any) => {
|
||||
if (item.className === 'ant-notification-notice ant-notification-notice-closable') {
|
||||
item.childNodes.forEach((row: any) => {
|
||||
if (row.className === 'ant-notification-notice-close') {
|
||||
row.click()
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
}}
|
||||
style={{ backgroundColor: '#EC3C3C', marginLeft: '14px' }}
|
||||
>拒绝</Button>
|
||||
</div>
|
||||
</div>,
|
||||
duration: 10,
|
||||
placement: 'bottomRight',
|
||||
showProgress: true,
|
||||
pauseOnHover: false,
|
||||
});
|
||||
}
|
||||
return bool
|
||||
window.electron.setChildWindowShow({
|
||||
key: 'noticeWindow',
|
||||
bool: true
|
||||
})
|
||||
channel.postMessage({
|
||||
type: 'noticeItem',
|
||||
noticeItem: item
|
||||
});
|
||||
break;
|
||||
// 管理员查看随机用户
|
||||
case 'Watch':
|
||||
|
|
|
|||
Loading…
Reference in New Issue