讲师管理bug

This commit is contained in:
zhangsir
2024-12-24 17:16:49 +08:00
parent b9419dc7e3
commit 463eefc864

View File

@@ -588,7 +588,11 @@ const getTableDate = (obj) => {
content: `是否确认${!status?'启用':'停用'}该培训发生组织?`,
ok: () => {
lecturer.isEnable({id:record.id,status}).then(res=>{
message.success("操作成功")
if(typeof (res.data.data) != 'object'){
message.error(res.data.data)
return
}
message.success(`${!status?'启用':'停用'}成功`)
searchSubmit();
}).catch(err=>{
message.destroy()