7UQPV1X6D0Z54SW\Administrator 4 年 前
コミット
4208bb8768
1 ファイル変更5 行追加4 行削除
  1. 5 4
      client/pages/servant/servantsettings/servantsettings.js

+ 5 - 4
client/pages/servant/servantsettings/servantsettings.js

@@ -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){