/** * 培训机构类型删除AJAX方法 * @param string $tit_id_str 形如1,3,4样式的ID列表 */ public function removeTITFunc($tit_id_str) { $resp = new AjaxResponse(); if (!$this->check_power_new('traininginstitution_removetit', false)) { $resp->alert('您没有权限执行该功能'); return $resp; } try { TrainingInstitutionModel::removeTrainingInstitutionType($tit_id_str); admin_log('delete', '', "培训机构类型tit_id: {$tit_id_str}"); $resp->call('location.reload'); } catch (Exception $e) { $resp->alert($e->getMessage()); } return $resp; }