diff --git a/Application/Admin/Controller/BusinessAffairsAwardController.class.php b/Application/Admin/Controller/BusinessAffairsAwardController.class.php index 0f3f1af55..10bccd905 100644 --- a/Application/Admin/Controller/BusinessAffairsAwardController.class.php +++ b/Application/Admin/Controller/BusinessAffairsAwardController.class.php @@ -36,6 +36,14 @@ class BusinessAffairsAwardController extends ThinkController } + if(IS_ROOT){ + $this->assign('add_check',true); + }else { + $exportRule = strtolower(MODULE_NAME . '/' . CONTROLLER_NAME . '/' . ACTION_NAME . "_add_check"); + + $this->assign('add_check', $this->checkRule($exportRule, array('in', '1,2'))); + } + $count = $this->model->where("1=1")->count(); $page = set_pagination($count, $row,$params); @@ -53,7 +61,6 @@ class BusinessAffairsAwardController extends ThinkController { if(IS_POST) { -// dump($_POST);die(); if (!$_POST['ratio']) { $this->ajaxReturn(["msg"=>"请填写抽成比例","code"=>0]); } diff --git a/Application/Admin/View/BusinessAffairsAward/lists.html b/Application/Admin/View/BusinessAffairsAward/lists.html index 7adeb0499..a45d39d3b 100644 --- a/Application/Admin/View/BusinessAffairsAward/lists.html +++ b/Application/Admin/View/BusinessAffairsAward/lists.html @@ -38,8 +38,10 @@
@@ -96,8 +98,12 @@