master
ELF 4 years ago
parent 0169d8a2db
commit 95248d3582

@ -9,6 +9,16 @@ use Base\Service\PromoteGradeService;
class PromoteGradeController extends BaseController
{
protected function _initialize()
{
C(api('Config/lists'));
if((C('APP_ENV') == 'dev' || $loginer['company_id'] == 334) && $loginer['level'] <= 2) {
} else {
return $this->error('您没有权限');
}
}
public function index($p = 1)
{
$month = I('month', date('Y-m'));

@ -210,6 +210,10 @@
layer.msg('玩家角色达标等级不能超过10000');
return false;
}
if (level < 0) {
layer.msg('玩家角色不能小于0');
return false;
}
if (defaultGradeName == '') {
layer.msg('默认等级名称不能为空');
return false;
@ -225,6 +229,10 @@
layer.msg('请输入系数值');
return false;
}
if (grades[i].value < 0) {
layer.msg('系数值不能小于0');
return false;
}
/* var numReg = /([+]\d+[.]\d+|[-]\d+[.]\d+|\d+[.]\d+|[+]\d+|[-]\d+|\d+)/ig;
if(!numReg.test(grades[i].value)){

@ -119,13 +119,13 @@
<a href="{:U('TestingResource/batches')}" class="<if condition='CONTROLLER_NAME eq TestingResource and ACTION_NAME eq batches '>active</if> ">测试资源申请记录</a>
</div>
<?php endif;?>
<?php if((C('APP_ENV') == 'dev' || $loginer['company_id'] == 334) && $loginer['level'] <= 2):?>
<div class="subNav jssubNav"><i class="prev_icon icon_fenbao"></i><span>评级管理</span><i class="arrow_icon"></i></div>
<div class="navContent jsnavContent">
<?php if($loginer['level'] <= 1):?>
<a href="{:U('PromoteGrade/settings')}" class="<if condition='CONTROLLER_NAME eq PromoteGrade and (ACTION_NAME eq settings or ACTION_NAME eq setting) '>active</if> ">评级设定</a>
<?php endif;?>
<a href="{:U('PromoteGrade/index')}" class="<if condition='CONTROLLER_NAME eq PromoteGrade and ACTION_NAME eq index '>active</if> ">团队评级</a>
</div>
<?php endif;?>
<!--<eq name="parent_id" value="0">
<div class="subNav jssubNav"><i class="prev_icon icon_fenbao"></i><span>扶持管理</span><i class="arrow_icon"></i></div>
<div class="navContent jsnavContent">

Loading…
Cancel
Save