1
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user