Commit d1220128 authored by agping's avatar agping

取消全选

parent 4ff76352
...@@ -122,11 +122,11 @@ ...@@ -122,11 +122,11 @@
<div class="btn-group"> <div class="btn-group">
<button type="button" class="choose_btn btn btn-info choose_btn1 no_all_btn" data-value="/index/getCostListSix/5" style="margin-left: 20px;">行政审核</button> <button type="button" class="choose_btn btn btn-info choose_btn1 no_all_btn" data-value="/index/getCostListSix/5" style="margin-left: 20px;">行政审核</button>
<button type="button" class="choose_btn btn btn-default choose_btn2 no_all_btn" data-value="/index/getCostListTwo/1">财务一审</button> <button type="button" class="choose_btn btn btn-default choose_btn2 no_all_btn" data-value="/index/getCostListTwo/1">财务一审</button>
<button type="button" class="choose_btn btn btn-default choose_btn2 no_all_btn" data-value="/index/getCostListThree/2">财务二审</button> <button type="button" class="choose_btn btn btn-default choose_btn3 no_all_btn" data-value="/index/getCostListThree/2">财务二审</button>
<button type="button" class="choose_btn btn btn-default choose_btn2 no_all_btn" data-value="/index/getCostListFour/3">出纳审核</button> <button type="button" class="choose_btn btn btn-default choose_btn4 no_all_btn" data-value="/index/getCostListFour/3">出纳审核</button>
<button type="button" class="choose_btn btn btn-default choose_btn3 no_all_btn" data-value="/index/getCostListFive/4">已出款</button> <button type="button" class="choose_btn btn btn-default choose_btn5 no_all_btn" data-value="/index/getCostListFive/4">已出款</button>
<button type="button" class="choose_btn btn btn-default choose_btn4 no_all_btn" data-value="/index/getCostListOne/0">总监审核</button> <button type="button" class="choose_btn btn btn-default choose_btn6 no_all_btn" data-value="/index/getCostListOne/0">总监审核</button>
<button type="button" class="choose_btn btn btn-default choose_btn5 no_all_btn" data-value="/index/getCostList">全部</button> <button type="button" class="choose_btn btn btn-default choose_btn7 no_all_btn" data-value="/index/getCostList">全部</button>
</div> </div>
<div class="pull-right"> <div class="pull-right">
<ul class="bread_btn"> <ul class="bread_btn">
......
...@@ -20,46 +20,61 @@ define(['doT', 'text!temp/cost_check_template_tpl.html', 'css!style/home.css', ' ...@@ -20,46 +20,61 @@ define(['doT', 'text!temp/cost_check_template_tpl.html', 'css!style/home.css', '
//初始化dot //初始化dot
$(document.body).append(template); $(document.body).append(template);
//列表权限
//判断权限 总监 //判断权限 行政
if(check_auth('index/getCostListTwo/1')){ if(check_auth('index/getCostListSix/5')){
$('.choose_btn1').show(); $('.choose_btn1').show();
$(".batchCheckHide").show();
cost.batchCheckHide = 1;
}else{ }else{
$('.choose_btn1').hide(); $('.choose_btn1').hide();
$(".batchCheckHide").hide();
cost.batchCheckHide = 0;
}; };
//判断权限 财务一 //判断权限 财务一
if(check_auth('index/getCostListThree/2')){ if(check_auth('index/getCostListTwo/1')){
$('.choose_btn2').show(); $('.choose_btn2').show();
$(".batchCheckHide").show();
cost.batchCheckHide = 1;
}else{ }else{
$('.choose_btn2').hide(); $('.choose_btn2').hide();
$(".batchCheckHide").hide();
cost.batchCheckHide = 0;
}; };
//判断权限 财务二 //判断权限 财务二
if(check_auth('index/getCostListFour/3')){ if(check_auth('index/getCostListThree/2')){
$('.choose_btn3').show(); $('.choose_btn3').show();
$(".batchCheckHide").show();
cost.batchCheckHide = 1;
}else{ }else{
$('.choose_btn3').hide(); $('.choose_btn3').hide();
$(".batchCheckHide").hide();
cost.batchCheckHide = 0;
}; };
//判断权限 财务三级 //判断权限 出纳审核
if(check_auth('index/getCostListFive/4')){ if(check_auth('index/getCostListFour/3')){
$('.choose_btn4').show(); $('.choose_btn4').show();
}else{ }else{
$('.choose_btn4').hide(); $('.choose_btn4').hide();
}; };
//判断权限 未审核 //判断权限 已出款
if(check_auth('index/getCostListOne/0')){ if(check_auth('index/getCostListFive/4')){
$('.choose_btn5').show(); $('.choose_btn5').show();
}else{ }else{
$('.choose_btn5').hide(); $('.choose_btn5').hide();
}; };
//判断权限 全部 //判断权限 总监审核
if(check_auth('index/getCostList')){ if(check_auth('/index/getCostListOne/0')){
$('.choose_btn6').show(); $('.choose_btn6').show();
}else{ }else{
$('.choose_btn6').hide(); $('.choose_btn6').hide();
}; };
//判断权限 全部
if(check_auth('index/getCostList')){
$('.choose_btn7').show();
}else{
$('.choose_btn7').hide();
};
cost.url=$('.btn-group .choose_btn:nth-of-type(1)').attr('data-value'); cost.url=$('.btn-group .choose_btn:nth-of-type(1)').attr('data-value');
cost.getList(1); cost.getList(1);
...@@ -873,6 +888,7 @@ define(['doT', 'text!temp/cost_check_template_tpl.html', 'css!style/home.css', ' ...@@ -873,6 +888,7 @@ define(['doT', 'text!temp/cost_check_template_tpl.html', 'css!style/home.css', '
$.get(cost.url,params,function(data){ $.get(cost.url,params,function(data){
if(typeof data === 'object') { if(typeof data === 'object') {
if(data.code == 200) { if(data.code == 200) {
$('.chooseAll').prop("checked",'');//取消全选
that.listData = data.data.list; that.listData = data.data.list;
var temp = document.getElementById('cost_check_template_tpl').innerHTML; var temp = document.getElementById('cost_check_template_tpl').innerHTML;
var doTtmpl = doT.template(temp); var doTtmpl = doT.template(temp);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment