Merge pull request '财务打款系统bug修复' (#260) from feature/add_item into release

Reviewed-on: http://8.136.139.249:3000/wmtx/platform/pulls/260
master
郑永星 4 years ago
commit 1239b87ce1

@ -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,8 +38,10 @@
<div class="fl button_list">
<empty name="model.extend">
<div class="tools">
<a class="" href="{:U('add?model='.$model['id'])}"><span class="button_icon button_icon1"></span>新增</a>
</div>
<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