...
|
...
|
@@ -103,7 +103,7 @@ exports.init = function() { |
|
|
},
|
|
|
columns:[
|
|
|
{display:"批次号", name:"batchNo", render: function(item) {
|
|
|
return '<a href="/couponinfo/' + item.id + '">' + item.batchNo + '</a>';
|
|
|
return '<a href="/coupon/info/' + item.id + '">' + item.batchNo + '</a>';
|
|
|
}},
|
|
|
{display:"基本信息",name:"name", render: function(item) {
|
|
|
return '<p>名称:' + item.name + '</p><p>次数' + item.limitTimes + '</p><p>部门:' + item.reqDepartment + '</p>';
|
...
|
...
|
@@ -124,7 +124,7 @@ exports.init = function() { |
|
|
console.log(this);
|
|
|
var HtmArr=[];
|
|
|
if(btnAuthority.look){
|
|
|
HtmArr.push('<a href="/couponinfo/'+ items.id+'" class="btn btn-info btn-xs">查看详情</a>');
|
|
|
HtmArr.push('<a href="/coupon/info/'+ items.id+'" class="btn btn-info btn-xs">查看详情</a>');
|
|
|
}
|
|
|
if(items.status == 0){
|
|
|
HtmArr.push('<a class="btn btn-primary btn-xs apply-success" data-id="'+ items.id+'" href="javascript:;">通过</a>');
|
...
|
...
|
@@ -135,7 +135,7 @@ exports.init = function() { |
|
|
HtmArr.push('<a class="btn btn-danger btn-xs apply-cancel" data-id="'+ items.id+'" href="javascript:;">作废</a>');
|
|
|
}
|
|
|
if(items.status == 2){
|
|
|
HtmArr.push('<a class="btn btn-info btn-xs apply-modify" data-id="'+ items.id+'" href="/couponupdate/'+ items.id+'">修改</a>');
|
|
|
HtmArr.push('<a class="btn btn-info btn-xs apply-modify" data-id="'+ items.id+'" href="/coupon/update/'+ items.id+'">修改</a>');
|
|
|
}
|
|
|
return HtmArr.join('');
|
|
|
}}
|
...
|
...
|
|