市场专员业绩计算修正

master
zhengyongxing 4 years ago
parent 9a23b5588b
commit 2da9821caf

@ -640,6 +640,7 @@ class AdminController extends Controller {
public function checkListOrCountAuthRestMap(&$map,$checkarr = false,$countfield = "rule_count_check"){ public function checkListOrCountAuthRestMap(&$map,$checkarr = false,$countfield = "rule_count_check"){
//验证count //验证count
if(IS_ROOT){ if(IS_ROOT){
$this->assign('caculate_check',true);
$this->assign('role_export_check',true); $this->assign('role_export_check',true);
$this->assign($countfield,true); $this->assign($countfield,true);
}else{ }else{
@ -651,10 +652,10 @@ class AdminController extends Controller {
$exportRule = strtolower(MODULE_NAME.'/'.CONTROLLER_NAME.'/'.ACTION_NAME."_caculate_check"); $caculateRule = strtolower(MODULE_NAME.'/'.CONTROLLER_NAME.'/'.ACTION_NAME."_caculate_check");
$this->assign('caculate_check',$this->checkRule($exportRule,array('in','1,2')));
$this->assign('caculate_check',$this->checkRule($caculateRule,array('in','1,2')));
// var_dump($caculateRule);die();
$countRule = strtolower(MODULE_NAME.'/'.CONTROLLER_NAME.'/'.ACTION_NAME."_count_check"); $countRule = strtolower(MODULE_NAME.'/'.CONTROLLER_NAME.'/'.ACTION_NAME."_count_check");
$this->assign($countfield,$this->checkRule($countRule,array('in','1,2'))); $this->assign($countfield,$this->checkRule($countRule,array('in','1,2')));

Loading…
Cancel
Save