|
@@ -21,17 +21,18 @@ Page({
|
|
|
},
|
|
|
dailytasksdeit(){
|
|
|
let employRelationNo = app.globalData.employRelationNo;
|
|
|
+
|
|
|
let servantselectedlist=[];
|
|
|
- for(let i=0;i<this.servantlist.length;i++){
|
|
|
- for(let j=0;j<this.servantlist[i].subjectList.length;j++){
|
|
|
+ for(let i=0;i<this.data.servantlist.length;i++){
|
|
|
+ for(let j=0;j<this.data.servantlist[i].subjectList.length;j++){
|
|
|
let answerstr='';
|
|
|
- for(let t=0;t<this.servantlist[i].subjectList[j].answer.length;t++){
|
|
|
- if(this.servantlist[i].subjectList[j].answer[t].isChoose){
|
|
|
- answerstr+=this.servantlist[i].subjectList[j].answer[t].answer+',';
|
|
|
+ for(let t=0;t<this.data.servantlist[i].subjectList[j].answer.length;t++){
|
|
|
+ if(this.data.servantlist[i].subjectList[j].answer[t].isChoose){
|
|
|
+ answerstr += this.data.servantlist[i].subjectList[j].answer[t].answer+',';
|
|
|
}
|
|
|
}
|
|
|
console.log(answerstr);
|
|
|
- servantselectedlist.push({answer: [answerstr],customAnswer: this.servantlist[i].subjectList[j].subject,subjectId: this.servantlist[i].subjectList[j].subjectId});
|
|
|
+ servantselectedlist.push({answer: [answerstr],customAnswer: this.data.servantlist[i].subjectList[j].subject,subjectId: this.data.servantlist[i].subjectList[j].subjectId});
|
|
|
}
|
|
|
}
|
|
|
console.log(servantselectedlist);
|
|
@@ -39,6 +40,10 @@ Page({
|
|
|
alert(data);
|
|
|
});
|
|
|
},
|
|
|
+ answerselected(e){
|
|
|
+ let checkeditem=e.detail.value;
|
|
|
+ console.log(checkeditem);
|
|
|
+ },
|
|
|
});
|
|
|
|
|
|
|