|
楼主 |
发表于 2017-7-23 23:23:43
|
显示全部楼层
Model.prototype.deleteBtnClick = function(event){
var self = this;
var id = self.comp("mainData").getCurrentRowID();
if(!!id){
var params = new biz.Request.ActionParam();
params.setString("ksql","DELETE FROM sys_dict t where t.ID='" + id + "' OR t.PID='" + id + "'");
params.setString("dataModel","/test/common/data");
justep.Util.confirm("是否确定删除数据?", biz.Request.sendBizRequest({
"context" : self.getContext(),
"action" : "deleteDataAction",
"parameters" : params,
"callback" : function(data) {
if (data.state) {
self.comp("mainData").refreshData();
}
}
}));
}
};
修改为后台操作了,数据能删除,前台报错,
|
|