|
@@ -21,7 +21,6 @@ Page({
|
|
|
},
|
|
|
dailytasksdeit(){
|
|
|
let employRelationNo = app.globalData.employRelationNo;
|
|
|
-
|
|
|
let servantselectedlist=[];
|
|
|
for(let i=0;i<this.data.servantlist.length;i++){
|
|
|
for(let j=0;j<this.data.servantlist[i].subjectList.length;j++){
|
|
@@ -31,13 +30,15 @@ Page({
|
|
|
answerstr += this.data.servantlist[i].subjectList[j].answer[t].answer+',';
|
|
|
}
|
|
|
}
|
|
|
- console.log(answerstr);
|
|
|
+ //console.log(answerstr);
|
|
|
servantselectedlist.push({answer: [answerstr],customAnswer: this.data.servantlist[i].subjectList[j].subject,subjectId: this.data.servantlist[i].subjectList[j].subjectId});
|
|
|
}
|
|
|
}
|
|
|
- console.log(servantselectedlist);
|
|
|
+ //console.log(servantselectedlist);
|
|
|
request.httpServicePost(apiUrl.insertNewservantappletservicePath,{employRelationNo:employRelationNo,subjectList:servantselectedlist,subjectType:"SN000002"}).then(data=>{
|
|
|
- alert(data);
|
|
|
+ my.alert({
|
|
|
+ title: data,
|
|
|
+ });
|
|
|
});
|
|
|
},
|
|
|
answerselected(e){
|