|
var params = new biz.Request.ActionParam();
params.setList("tempList", tempList);
biz.Request.sendBizRequest({
"context" : this.getContext(),
"action" : "cable_Upload_Check",
"parameters" : params,
"callback" : function(data) {
var result = JSON.parse(data.response);
console.log("resultMsg --> " + result.code + "," + result.message);
if(result.code == 2){
debugger;
if(window.confirm(result.message)){
/*var self = this;*/
params.setList("tempList", tempList);
params.setString("userCode", this.getContext().getCurrentPersonCode()); //运行到此处报错this.getContext is not a function
biz.Request.sendBizRequest({
"context" : this.getContext(),
"action" : "cable_Upload",
"parameters" : params,
"callback" : function(data) {
var result = JSON.parse(data.response);
console.log("resultMsg --> " + result.code + "," + result.message);
if (result.code1 == 0) {
justep.Util.hint("数据上传成功!");
self.close();
} else {
justep.Util.hint(result.message1);
}
}
});
}
}else {
justep.Util.hint(result.message);
}
}
});
|
|