yangjie #41

Merged
yangqiang merged 20 commits from yangjie into master 2024-12-11 14:52:08 +08:00
1 changed files with 39 additions and 20 deletions
Showing only changes of commit cb1593a76f - Show all commits

View File

@ -435,27 +435,31 @@ const Meeting: React.FC = () => {
if (!data) { if (!data) {
setIsScreenCapture(bool => { setIsScreenCapture(bool => {
if (!bool) { if (!bool) {
confirm({ if (role.ID.includes(userInfo.roleId)) {
title: '提示', confirm({
icon: <ExclamationCircleFilled />, title: '提示',
content: `是否录制本次会议?`, icon: <ExclamationCircleFilled />,
centered: true, content: `是否录制本次会议?`,
okText: '确定', centered: true,
cancelText: '取消', okText: '确定',
async onOk() { cancelText: '取消',
if (stateInfo) { async onOk() {
changeStatusList({ if (stateInfo) {
title: '录制' changeStatusList({
}, 1, 3) title: '录制'
} else { }, 1, 3)
message.error('当前不在会议室!') } else {
message.error('当前不在会议室!')
}
showSingIn()
},
onCancel() {
showSingIn()
} }
showSingIn() })
}, } else {
onCancel() { showSingIn()
showSingIn() }
}
})
} }
return bool return bool
}) })
@ -2851,6 +2855,21 @@ const Meeting: React.FC = () => {
</label> </label>
<span>{row.title}</span> <span>{row.title}</span>
</div> </div>
case '录制':
case '录制中':
if (role.ID.includes(user.roleId)) {
return <div
className='drag'
onClick={() => changeStatusList(row, itemIndex, rowIndex)}
onMouseDown={() => changeFooterListSelect(row, itemIndex, rowIndex, true)}
onMouseUp={() => changeFooterListSelect(row, itemIndex, rowIndex, false)}
onMouseLeave={() => changeFooterListSelect(row, itemIndex, rowIndex, false)}
key={rowIndex}>
{row.select ? <img src={row.iconSelect} alt="" /> : <img src={row.active ? row.iconActive : row.icon} alt="" />}
<span>{row.title}</span>
</div>
}
return null
default: default:
return <div return <div
className='drag' className='drag'