You've already forked qlg.tsgz.moe
							
							TradeRule后台完成
This commit is contained in:
		| @@ -21,6 +21,21 @@ class TradeRule extends Base | ||||
|         return WSTGrid($rs); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 跳去新增/编辑页面 | ||||
|      */ | ||||
|     public function toEdit(){ | ||||
|         $id = Input("get.id/d",0); | ||||
|         $m = new M(); | ||||
|         if($id>0){ | ||||
|             $object = $m->getById($id); | ||||
|         }else{ | ||||
|             $object = $m->getEModel('trade_rule'); | ||||
|         } | ||||
|         $this->assign('object',$object); | ||||
|         return $this->fetch("edit"); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 获取文章 | ||||
|      */ | ||||
| @@ -65,5 +80,13 @@ class TradeRule extends Base | ||||
|         $rs = $m->delByBatch(); | ||||
|         return $rs; | ||||
|     } | ||||
|     /** | ||||
|      * 设置是否显示/隐藏 | ||||
|      */ | ||||
|     public function editiIsShow(){ | ||||
|         $m = new M(); | ||||
|         $rs = $m->editiIsShow(); | ||||
|         return $rs; | ||||
|     } | ||||
|  | ||||
| } | ||||
		Reference in New Issue
	
	Block a user