|
楼主 |
发表于 2017-5-25 10:16:33
|
显示全部楼层
Model.prototype.button4Click = function(event){
var onlyname=this.comp('output1').value;
var row = this.comp('friendData').find(['fName'],[onlyname]);
var fID = this.comp('friendData').val('fID', row[0]);
var rows = this.comp('friendIDData').find(['friendid'],[fID]);
this.comp("friendIDData").deleteData(rows,{
// "confirm" : false
});
this.comp("friendIDData").saveData({
"async" : false,
"onSuccess" : function(){
// event.source.refreshData({
// "async" : false
// });
}
});
this.comp("friendIDData").refreshData();
this.comp('friendwindowDialog').open({
params : {
operator : 'edit',
rowdata: 3
}
});
};
想问下,跳转问题解决了,但是本来是删除数据后跳转,现在直接跳转了,数据没有删除,请问要怎么处理 |
|