_to_data : 1
},
success : function(res) {
- _this.form.setValues(res.data);
+
+ _this.data = res.data;
+
+ _this.form.setValues(_this.data);
+
return;
},
failure: function(res) {
}
if (action.type == 'load') {
+ if(_this.data.status * 1 == 0){
+ _this.form.findField('status').reset();
+ }
+
return;
}
if (action.type =='submit') {