|
本帖最后由 tj_lixiang 于 2017-11-2 19:07 编辑
data.saveData方法保存不成功
var newData = me.comp("data4").newData({
defaultValues : [ {
id : 0,
name : $(this.getElementByXid("select3")).find("option:selected").text(),
type : me.comp("select1").val(),
shuLiang : me.comp("input2").val(),
jiaGe1 : me.comp("input6").val(),
jiaGe2 : me.comp("input7").val(),
diqu : me.comp("select2").val(),
state : 1
} ]
});
debugger;
me.comp("data4").saveData(newData, {
onSuccess : function() {
}
});
|
|