|
|
|
|
@ -386,11 +386,21 @@ class ProjectController extends CommonController
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public function askSubmitDelete()
|
|
|
|
|
public function delete(Request $request)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
$array = explode('-',$request->id);
|
|
|
|
|
if(count($array) == 2){
|
|
|
|
|
$model = AskSubmit::find($array[1]);
|
|
|
|
|
}else{
|
|
|
|
|
$model = $this->model->find($request->id);
|
|
|
|
|
}
|
|
|
|
|
$model->delete();
|
|
|
|
|
$this->deleted($model);
|
|
|
|
|
return $this->success("删除成功");
|
|
|
|
|
} catch (\Exception $exception) {
|
|
|
|
|
return $this->error("删除失败:" . $exception->getMessage());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|