...
|
...
|
@@ -2,7 +2,8 @@ var $ = require('jquery'), |
|
|
common = require('../../../../common/common');
|
|
|
|
|
|
var promotionEdit={
|
|
|
batchId:[],
|
|
|
batchId:[],
|
|
|
/*
|
|
|
buildCheckboxHtml:function(_class,_data_index,_checked){
|
|
|
var _checkBox="<input type='checkbox'";
|
|
|
var _end="/>";
|
...
|
...
|
@@ -17,7 +18,7 @@ var promotionEdit={ |
|
|
}
|
|
|
_checkBox+=_end;
|
|
|
return _checkBox;
|
|
|
},
|
|
|
},*/
|
|
|
getParam:function(){
|
|
|
var param={
|
|
|
el: '#basicTable_promotion',
|
...
|
...
|
@@ -32,26 +33,25 @@ var promotionEdit={ |
|
|
{
|
|
|
display: '',
|
|
|
type: 'checkbox',
|
|
|
render: function (item) {
|
|
|
/*
|
|
|
render: function (item) {
|
|
|
var htmlContent = "";
|
|
|
var _class="wqt_checkbox";
|
|
|
if(this.batchId.length == 0 ){
|
|
|
//htmlContent = "<input type='checkbox' class='wqt_checkbox' data-index='"+item.__index+"'>";
|
|
|
htmlContent = this.buildCheckboxHtml(_class,item.__index);
|
|
|
htmlContent = "<input type='checkbox' class='wqt_checkbox' data-index='"+item.__index+"'>";
|
|
|
//htmlContent = this.buildCheckboxHtml(_class,item.__index);
|
|
|
}else{
|
|
|
$.each(this.batchId,function(n,value) {
|
|
|
if(item.id == value){
|
|
|
//htmlContent = "<input type='checkbox' checked='checked' class='wqt_checkbox' data-index='"+item.__index+"'>";
|
|
|
htmlContent = this.buildCheckboxHtml(_class,item.__index,"checked");
|
|
|
htmlContent = "<input type='checkbox' checked='checked' class='wqt_checkbox' data-index='"+item.__index+"'>";
|
|
|
//htmlContent = this.buildCheckboxHtml(_class,item.__index,"checked");
|
|
|
return false
|
|
|
}else{
|
|
|
//htmlContent = "<input type='checkbox' class='wqt_checkbox' data-index='"+item.__index+"'>";
|
|
|
htmlContent = this.buildCheckboxHtml(_class,item.__index);
|
|
|
htmlContent = "<input type='checkbox' class='wqt_checkbox' data-index='"+item.__index+"'>";
|
|
|
//htmlContent = this.buildCheckboxHtml(_class,item.__index);
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
return htmlContent;*/
|
|
|
return htmlContent;
|
|
|
}
|
|
|
},{
|
|
|
display: "ID",
|
...
|
...
|
|