...
|
...
|
@@ -174,10 +174,10 @@ var operationEdit={ |
|
|
}
|
|
|
}
|
|
|
},
|
|
|
selectOneOption:function(){
|
|
|
selectOneOption:function(_sel){
|
|
|
var firstGroup=$("#tab_body>.row").find(".form-group:eq(0)");
|
|
|
firstGroup.nextAll().remove();
|
|
|
var selectKey=$("#tab_body>#promotionType").val();
|
|
|
var selectKey=_sel.val();
|
|
|
var _html;
|
|
|
var _selectObj;
|
|
|
switch(selectKey){
|
...
|
...
|
@@ -217,7 +217,7 @@ var operationEdit={ |
|
|
bindEvent:function(){
|
|
|
var _g=this;
|
|
|
$(document).on('click','#save',function(){return this.save()});
|
|
|
$("#promotionType").change(function(){return _g.selectOneOption()});
|
|
|
$("#promotionType").change(function(){return _g.selectOneOption(this)});
|
|
|
},
|
|
|
save:function(){
|
|
|
var e=this.edit;
|
...
|
...
|
|