|
楼主 |
发表于 2016-2-22 15:58:34
|
显示全部楼层
页面报错,这是源码
var self = this;
biz.Request.sendBizRequest({
"context" : this.getContext(),
"action" : "uniqueygAction",
"directExecute" : true,
"parameters" : params,
callback : function(result) {
if (result.state) {
if (result.response > 0) {
alert("员工卡号重复!请重新输入!");
event.cancel = true;
return;
}
else {
biz.Request.sendBizRequest({
"context" : this.getContext(),
"action" : "uniqueghAction",
"directExecute" : true,
"parameters" : ghparams,
callback : function(result) {
if (result.state) {
if (result.response > 0) {
alert("内部工号重复!请重新输入!");
event.cancel = true;
return;
} else {
self.comp("ryData").saveData();
self.comp('msg').show({message : '保存成功!'});
}
}
}
});
}
}
}
});
|
|