1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["CourseEvaluation"],{"35ff":function(e,t,a){"use strict";var r=a("c436"),n=a.n(r);n.a},"9afb":function(e,t,a){"use strict";a.d(t,"w",function(){return u}),a.d(t,"B",function(){return s}),a.d(t,"x",function(){return c}),a.d(t,"I",function(){return l}),a.d(t,"i",function(){return d}),a.d(t,"M",function(){return h}),a.d(t,"h",function(){return m}),a.d(t,"k",function(){return p}),a.d(t,"C",function(){return v}),a.d(t,"D",function(){return g}),a.d(t,"E",function(){return y}),a.d(t,"g",function(){return w}),a.d(t,"L",function(){return b}),a.d(t,"A",function(){return k}),a.d(t,"v",function(){return C}),a.d(t,"c",function(){return S}),a.d(t,"o",function(){return R}),a.d(t,"n",function(){return I}),a.d(t,"d",function(){return x}),a.d(t,"f",function(){return T}),a.d(t,"F",function(){return j}),a.d(t,"G",function(){return L}),a.d(t,"y",function(){return q}),a.d(t,"z",function(){return G}),a.d(t,"K",function(){return H}),a.d(t,"l",function(){return f}),a.d(t,"p",function(){return M}),a.d(t,"u",function(){return N}),a.d(t,"a",function(){return _}),a.d(t,"H",function(){return $}),a.d(t,"j",function(){return z}),a.d(t,"t",function(){return W}),a.d(t,"q",function(){return B}),a.d(t,"b",function(){return A}),a.d(t,"r",function(){return O}),a.d(t,"m",function(){return D}),a.d(t,"e",function(){return J}),a.d(t,"J",function(){return V}),a.d(t,"s",function(){return E});var r=a("4328"),n=a.n(r),o=a("981f").default,i="/api-teacher",u=function(e){return o({url:i+"/snaker/task/queryMyCreatedList",method:"get",params:e})},s=function(e){return o({url:i+"/snaker/task/queryWaitList",method:"get",params:e})},c=function(e){return o({url:i+"/snaker/task/queryProcessedList",method:"get",params:e})},d=function(e){return o({url:i+"/subject/findTeacherSubjets",method:"get",params:e})},l=function(e){return o({url:i+"/subject/findSubSubjects",method:"get",params:e})},h=function(e){return o({url:i+"/vipGroupCategory/queryAll",method:"get",params:e})},m=function(e){return o({url:i+"/vipGroupActivity/findByVipGroupCategory",method:"get",params:e})},p=function(e){return o({url:i+"/school/findVipSchoolByTeacher",method:"get",params:e})},f=function(e){return o({url:i+"/school/findVipSchoolByTeacher2",method:"get",params:e})},v=function(e){return o({url:i+"/school/add",method:"post",data:n.a.stringify(e)})},g=function(e){return o({url:i+"/school/del",method:"post",data:n.a.stringify(e)})},y=function(e){return o({url:i+"/school/update",method:"post",data:n.a.stringify(e)})},w=function(e){return o({url:i+"/teacherDefaultVipGroupSalary/findByTeacherAndCategory",method:"get",params:e})},b=function(e){return o({url:i+"/teacherVipGroup/vipGroupApply",method:"post",data:e})},k=function(e){return o({url:i+"/teacherLeaveRecord/queryVipCourseScheduleList",method:"get",params:e})},C=function(e){return o({url:i+"/leaveCategory/queryPage",method:"post",data:e})},S=function(e){return o({url:i+"/teacherLeaveRecord/askForLeave",method:"post",data:n.a.stringify(e)})},R=function(e){return o({url:i+"/teacherCourseSchedule/getCourseSchedulesWithDate",method:"get",params:e})},I=function(e){return o({url:i+"/teacherCourseSchedule/getCourseScheduleDateByMonth",method:"get",params:e})},x=function(e){return o({url:i+"/teacherCourseSchedule/classStartDateAdjust",method:"post",data:n.a.stringify(e)})},T=function(e){return o({url:i+"/teacherCourseSchedule/courseSwap",method:"post",data:n.a.stringify(e)})},j=function(e){return o({url:i+"/teacherCourseSchedule/statisticsInfo",method:"get",params:e})},L=function(e){return o({url:i+"/teacherCourseSchedule/statisticsList",method:"get",params:e})},q=function(e){return o({url:i+"/teacher/queryStudentApply",method:"get",params:e})},G=function(e){return o({url:i+"/teacher/querySubByMusicGroupId",method:"get",params:e})},H=function(e){return o({url:i+"/studentRegistration/updateSubject",method:"post",data:n.a.stringify(e)})},M=function(){return o({url:"/api-student/studentOrder/getLuckStatis",method:"get"})},N=function(){return o({url:"/api-web/api/practiceSum",method:"get"})},_=function(e){return o({url:"/api-teacher/classGroup/addStudyReport ",method:"post",data:e})},A=function(e){return o({url:"/api-teacher/studyReport/addStudyReport",method:"post",data:e})},$=function(e){return o({url:"/api-teacher/studyReport/info",method:"get",params:e})},W=function(e){return o({url:"/api-teacher/studyReport/getReviewsInfo",method:"get",params:e})},z=function(e){return o({url:"/api-teacher/classGroup/findTeacherClassGroupInfo",method:"get",params:e})},B=function(e){return o({url:"/api-teacher/studyReport/getNeedPost",method:"get",params:e})},O=function(e){return o({url:"/api-teacher/courseReview/getPracticeGroup",method:"get",params:e})},D=function(e){return o({url:"/api-teacher/courseReview/getCourseInfoHead",method:"get",params:e})},J=function(e){return o({url:"/api-teacher/courseReview/add",method:"post",data:n.a.stringify(e)})},V=function(e){return o({url:"/api-teacher/courseReview/updateReviewInfo",method:"post",data:n.a.stringify(e)})},E=function(e){return o({url:"/api-teacher/courseReview/getReviewInfo",method:"get",params:e})}},c436:function(e,t,a){},d0e1:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("van-cell-group",[a("van-cell",{attrs:{title:"课程班名称",value:e.classGroupName}})],1),a("van-cell-group",[a("van-cell",{attrs:{title:"上课时间",value:e.classTimer}})],1),a("van-cell-group",[a("van-cell",{attrs:{title:"乐器",value:e.subjectNames}})],1),a("van-cell-group",[a("van-field",{staticClass:"textarea",attrs:{required:"",rows:"4",maxlength:"255",autosize:"",label:" 教材内容",type:"textarea",placeholder:"请输入(1-255字)"},model:{value:e.teachingMaterial,callback:function(t){e.teachingMaterial=t},expression:"teachingMaterial"}})],1),a("van-cell-group",[a("van-field",{attrs:{required:"",label:"曲目","input-align":"right",placeholder:"请输入曲目名"},model:{value:e.song,callback:function(t){e.song=t},expression:"song"}})],1),a("van-cell-group",[a("van-cell",[a("template",{slot:"title"},[a("div",{staticClass:"title-item"},[a("span",{staticClass:"text"},[e._v("发音")]),a("van-rate",{attrs:{size:25,"void-color":"#eee","void-icon":"star"},model:{value:e.pronunciation,callback:function(t){e.pronunciation=t},expression:"pronunciation"}})],1),a("div",{staticClass:"title-item"},[a("span",{staticClass:"text"},[e._v("节奏")]),a("van-rate",{attrs:{size:25,"void-color":"#eee","void-icon":"star"},model:{value:e.tempo,callback:function(t){e.tempo=t},expression:"tempo"}})],1),a("div",{staticClass:"title-item"},[a("span",{staticClass:"text"},[e._v("乐理")]),a("van-rate",{attrs:{size:25,"void-color":"#eee","void-icon":"star"},model:{value:e.musicTheory,callback:function(t){e.musicTheory=t},expression:"musicTheory"}})],1)])],2)],1),a("van-cell-group",[a("van-field",{staticClass:"textarea",attrs:{rows:"4",required:"",maxlength:"255",autosize:"",label:"评价备注",type:"textarea",placeholder:"请输入(1-255字)"},model:{value:e.memo,callback:function(t){e.memo=t},expression:"memo"}})],1),!e.isReset||e.isReset&&e.homeWork?a("van-cell-group",[a("van-field",{staticClass:"textarea",attrs:{required:"",rows:"4",disabled:e.isReset,maxlength:"255",autosize:"",label:"布置作业",type:"textarea",placeholder:"请输入(1-255字)"},model:{value:e.homeWork,callback:function(t){e.homeWork=t},expression:"homeWork"}})],1):e._e(),a("van-cell-group",[a("van-cell",{attrs:{title:"是否完成双向沟通","value-class":"twoConnect"}},[a("template",{slot:"default"},[a("van-radio-group",{attrs:{required:"",direction:"horizontal"},model:{value:e.hasLiaison,callback:function(t){e.hasLiaison=t},expression:"hasLiaison"}},[a("van-radio",{attrs:{name:"1"}},[e._v("是")]),a("van-radio",{attrs:{name:"0"}},[e._v("否")])],1)],1)],2)],1),e.isReset&&!e.homeWork?a("van-cell-group",[a("van-cell",{attrs:{title:"是否完成作业","value-class":"twoConnect"}},[a("template",{slot:"default"},[a("van-radio-group",{attrs:{required:"",direction:"horizontal"},model:{value:e.handHomework,callback:function(t){e.handHomework=t},expression:"handHomework"}},[a("van-radio",{attrs:{name:"1"}},[e._v("是")]),a("van-radio",{attrs:{name:"0"}},[e._v("否")])],1)],1)],2)],1):e._e(),a("div",{staticClass:"button-group"},[e.reviewId?e._e():a("van-button",{attrs:{type:"primary",round:"",size:"large"},on:{click:e.submitReview}},[e._v("提交评价")]),e.reviewId?a("van-button",{attrs:{type:"primary",round:"",size:"large"},on:{click:e.submitReview}},[e._v("修改评价")]):e._e()],1)],1)},n=[],o=(a("6b54"),a("9afb")),i=a("ff51"),u={name:"teacherList",data:function(){return{radio:1,voice:0,courseId:null,reviewId:null,classTimer:null,classGroupName:null,teachingMaterial:null,song:null,pronunciation:null,tempo:null,musicTheory:null,memo:null,homeWork:null,handHomework:null,hasLiaison:null,subjectNames:null,isReset:!1,isInside:!1}},created:function(){this.courseId=this.$route.query.id,this.reviewId=parseInt(this.$route.query.reviewId),this.isInside=this.$route.query.isInside,this.courseId||this.$toast("课程信息错误")},mounted:function(){var e=this;this.reviewId?(this.isReset=!0,Object(o["s"])({id:this.reviewId}).then(function(t){200==t.data.code&&(e.classTimer=t.data.data.teacherClassHeadInfo.classDate+t.data.data.teacherClassHeadInfo.startClassTime+"-"+t.data.data.teacherClassHeadInfo.endClassTime,e.subjectNames=t.data.data.teacherClassHeadInfo.subjectNames,e.classGroupName=t.data.data.teacherClassHeadInfo.classGroupName,e.teachingMaterial=t.data.data.courseScheduleReview.teachingMaterial,e.song=t.data.data.courseScheduleReview.song,e.pronunciation=t.data.data.courseScheduleReview.pronunciation,e.tempo=t.data.data.courseScheduleReview.tempo,e.musicTheory=t.data.data.courseScheduleReview.musicTheory,e.memo=t.data.data.courseScheduleReview.memo,e.homeWork=t.data.data.courseScheduleReview.homeWork,e.hasLiaison=t.data.data.courseScheduleReview.hasLiaison.toString(),e.handHomework=t.data.data.courseScheduleReview.handHomework.toString())})):Object(o["m"])({courseId:this.courseId}).then(function(t){200==t.data.code&&(e.classTimer=t.data.data.classDate+t.data.data.startClassTime+"-"+t.data.data.endClassTime,e.subjectNames=t.data.data.subjectNames,e.classGroupName=t.data.data.classGroupName)})},methods:{submitReview:function(){var e=this;if(this.teachingMaterial)if(this.song)if(this.memo)if(this.isReset||this.homeWork)if(this.hasLiaison){var t={teachingMaterial:this.teachingMaterial,song:this.song,pronunciation:this.pronunciation,tempo:this.tempo,musicTheory:this.musicTheory,memo:this.memo,homeWork:this.homeWork,hasLiaison:this.hasLiaison,handHomework:this.handHomework,courseScheduleId:this.courseId};this.reviewId?(t.id=this.reviewId,Object(o["J"])(t).then(function(t){e.$toast("修改成功"),setTimeout(function(t){e.isInside?e.$router.push({path:"/manageEvaluation"}):e.onAppBack()},1e3)})):Object(o["e"])(t).then(function(t){200==t.data.code&&(e.$toast("提交成功"),setTimeout(function(t){e.isInside?e.$router.push({path:"/manageEvaluation"}):e.onAppBack()},1e3))})}else this.$toast("请勾选双向沟通");else this.$toast("请布置作业");else this.$toast("请输入备注");else this.$toast("请填写曲目");else this.$toast("请填写教材")},onAppBack:function(){Object(i["a"])().android?DAYA.postMessage(JSON.stringify({api:"back"})):Object(i["a"])().iPhone&&window.webkit.messageHandlers.DAYA.postMessage(JSON.stringify({api:"back"}))}}},s=u,c=(a("35ff"),a("2877")),d=Object(c["a"])(s,r,n,!1,null,"9da5925e",null);t["default"]=d.exports}}]);
|