Commit 0d1a04d4 authored by agping's avatar agping

优化

parent 22dc7564
...@@ -59,7 +59,7 @@ define(['doT','html2canvas','text!temp/accountingTable_list_template_tpl.html', ...@@ -59,7 +59,7 @@ define(['doT','html2canvas','text!temp/accountingTable_list_template_tpl.html',
//点击详情 //点击详情
$(document).on('click','.checkCost',function(e){//点击审核按钮 调整审核页面 $(document).on('click','.checkCost',function(e){//点击审核按钮 调整审核页面
var id = e.target.dataset.id; var id = e.target.dataset.id;
$(".publicCostDetails").attr('src','/index/publicCostDetails?cost_id='+ id + '&is_self=1') $(".publicCostDetails").attr('src','/index/getDetailCost?cost_id='+ id + '&is_self=1')
}); });
//打印功能 //打印功能
_doc.on('click', '.is-print', function(e) { _doc.on('click', '.is-print', function(e) {
......
...@@ -297,7 +297,7 @@ define(['doT', 'text!temp/cost_check_template_tpl.html', 'css!style/home.css', ' ...@@ -297,7 +297,7 @@ define(['doT', 'text!temp/cost_check_template_tpl.html', 'css!style/home.css', '
}); });
$(document).on('click','.checkCost',function(e){//点击审核按钮 调整审核页面 $(document).on('click','.checkCost',function(e){//点击审核按钮 调整审核页面
var id = e.target.dataset.id; var id = e.target.dataset.id;
$(".publicCostDetails").attr('src','/index/publicCostDetails?cost_id='+ id + '&is_self=0&main_index=' + cost.main_index) $(".publicCostDetails").attr('src','/index/getDetailCost?cost_id='+ id + '&is_self=0&main_index=' + cost.main_index)
}); });
}, },
......
...@@ -36,7 +36,7 @@ define(['doT', 'text!temp/cost_details_template_tpl.html', 'css!style/home.css', ...@@ -36,7 +36,7 @@ define(['doT', 'text!temp/cost_details_template_tpl.html', 'css!style/home.css',
//点击详情 //点击详情
$(document).on('click','.checkCost',function(e){//点击审核按钮 调整审核页面 $(document).on('click','.checkCost',function(e){//点击审核按钮 调整审核页面
var id = e.target.dataset.id; var id = e.target.dataset.id;
$(".publicCostDetails").attr('src','/index/publicCostDetails?cost_id='+ id + '&is_self=1') $(".publicCostDetails").attr('src','/index/getDetailCost?cost_id='+ id + '&is_self=1')
}); });
//费用类型切换 //费用类型切换
$("#cost_type").change(function() { $("#cost_type").change(function() {
......
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
<td>--</td> <td>--</td>
[% } %] [% } %]
<td> <td>
[% if(check_auth('index/getDetailCost') && check_auth('index/publicCostDetails')) { %] [% if(check_auth('index/getDetailCost')) { %]
<a class="btn1 btn-success checkCost" href="#modal-addPic" data-toggle="modal" data-id='[%= it[item]["id"] %]' data-status='[%= it[item]["status"] %]'>审核</a> <a class="btn1 btn-success checkCost" href="#modal-addPic" data-toggle="modal" data-id='[%= it[item]["id"] %]' data-status='[%= it[item]["status"] %]'>审核</a>
......
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