财务打款系统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(); $count = $this->model->where("1=1")->count();
$page = set_pagination($count, $row,$params); $page = set_pagination($count, $row,$params);
@ -53,7 +61,6 @@ class BusinessAffairsAwardController extends ThinkController
{ {
if(IS_POST) { if(IS_POST) {
// dump($_POST);die();
if (!$_POST['ratio']) { if (!$_POST['ratio']) {
$this->ajaxReturn(["msg"=>"请填写抽成比例","code"=>0]); $this->ajaxReturn(["msg"=>"请填写抽成比例","code"=>0]);
} }

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

Loading…
Cancel
Save