财务打款系统bug修复

master
zhengyongxing 4 years ago
parent f675357a2d
commit 860d389700

@ -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]);
}

@ -38,7 +38,9 @@
<div class="fl button_list">
<empty name="model.extend">
<div class="tools">
<if condition="$add_check eq true">
<a class="" href="{:U('add?model='.$model['id'])}"><span class="button_icon button_icon1"></span>新增</a>
</if>
</div>
</empty>
</div>
@ -96,8 +98,12 @@
<td>{$data.start_amount}-{$data.end_amount}</td>
<td>{$data.ratio}%</td>
<td>
<if condition="$add_check eq true">
<a href="{:U('edit',array('id'=>$data['id']))}">编辑</a>
<a href="{:U('del?id='.$data['id'])}" class="ajax-get">删除</a>
<else/>
----
</if>
</td>
</tr>
</volist>

Loading…
Cancel
Save