This commit is contained in:
zhoutianchi
2026-02-25 18:19:14 +08:00
parent bfe088591e
commit 5c2d565843
3 changed files with 557 additions and 551 deletions

View File

@@ -923,9 +923,10 @@ const majorChange = (id: string) => {
}
// 退学
const handleUpdate = (id: string, groupId: string, feeAgency: string) => {
messageBox.confirm('是否确认办理退学操作?请谨慎操作').then(() => {
return leaveSchool({ id, groupId, feeAgency })
const handleUpdate = (id: string, groupId: string, feeAgency: string,force:booleam) => {
var str=force?"强制":"";
messageBox.confirm('是否确认'+str+'办理退档操作?请谨慎操作').then(() => {
return leaveSchool({ id, groupId, feeAgency ,force})
}).then(() => {
message.success('操作成功')
getDataList()
@@ -1018,10 +1019,16 @@ const getActionMenuItems = (row: any) => {
},
{
command: 'leaveSchool',
label: '退',
label: '退',
icon: Close,
visible: () => hasAuth('recruit_recruitstudentsignup_leaveSchool') && row.canQuit
},
{
command: 'forceLeaveSchool',
label: '强制退档',
icon: Close,
visible: () => hasAuth('recruit_leaveSchool_force') && row.canQuit
},
// 复学
{
command: 'reEntry',
@@ -1081,7 +1088,10 @@ const handleMoreCommand = (command: string, row: any) => {
addOrUpdateHandle(row.id, 1)
break
case 'leaveSchool':
handleUpdate(row.id, row.groupId, row.feeAgency)
handleUpdate(row.id, row.groupId, row.feeAgency,false)
break
case 'forceLeaveSchool':
handleUpdate(row.id, row.groupId, row.feeAgency, true)
break
case 'reEntry':
reEntry(row.id)