...
|
...
|
@@ -148,8 +148,7 @@ var operationEdit={ |
|
|
this.promotionId=config.promotionId
|
|
|
}
|
|
|
_e.init();
|
|
|
this.bindSaveEvent();
|
|
|
this.bindChangeEvent();
|
|
|
this.bindEvent();
|
|
|
},
|
|
|
template:function(_htmlObj,_data){
|
|
|
if(_data&_data.param_list){
|
...
|
...
|
@@ -175,7 +174,7 @@ var operationEdit={ |
|
|
}
|
|
|
}
|
|
|
},
|
|
|
selectOne:function(){
|
|
|
selectOneOption:function(){
|
|
|
var firstGroup=$("#tab_body>.row").find(".form-group:eq(0)");
|
|
|
firstGroup.nextAll().remove();
|
|
|
var selectKey=$("#tab_body>#promotionType").val();
|
...
|
...
|
@@ -215,11 +214,9 @@ var operationEdit={ |
|
|
}
|
|
|
this.template(firstGroup,_selectObj);
|
|
|
},
|
|
|
bindSaveEvent:function(){
|
|
|
$(document).on('click','#save',function(){return this.save()});
|
|
|
},
|
|
|
bindChangeEvent:function(){
|
|
|
$(document).on('change','#promotionType',function(){return this.selectOne()});
|
|
|
bindEvent:function(){
|
|
|
$(document).on('click','#save',function(){return this.save()});
|
|
|
$("#promotionType").change(function(){return this.selectOneOption()});
|
|
|
},
|
|
|
save:function(){
|
|
|
var e=this.edit;
|
...
|
...
|
|