diff --git a/Application/Admin/Controller/ToolController.class.php b/Application/Admin/Controller/ToolController.class.php index 3db426ed9..1fd9cfc1a 100644 --- a/Application/Admin/Controller/ToolController.class.php +++ b/Application/Admin/Controller/ToolController.class.php @@ -1504,8 +1504,16 @@ class ToolController extends ThinkController { $this->assign('_page', $page); } $this->display(); - - + } + public function cmdTasksDel() + { + $id = $_REQUEST['id']; + $res = M("cmd_tasks","tab_")->where("id = {$id}")->delete(); + if($res !== false){ + $this->ajaxReturn(array("success"=>"ok","code"=>0)); + }else{ + $this->ajaxReturn(array("error"=>"database error","code"=>2000)); + } } diff --git a/Application/Admin/View/Tool/cmdTasksList.html b/Application/Admin/View/Tool/cmdTasksList.html index 42721bbda..26d7de428 100644 --- a/Application/Admin/View/Tool/cmdTasksList.html +++ b/Application/Admin/View/Tool/cmdTasksList.html @@ -128,6 +128,7 @@