1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["CourseEvaluation"],{"2ccc":function(e,t,r){"use strict";var a=r("440d"),n=r.n(a);n.a},3354:function(e,t,r){},"440d":function(e,t,r){},5115:function(e,t,r){"use strict";var a=r("3354"),n=r.n(a);n.a},"6e6e":function(e,t,r){"use strict";var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"mheader"},[r("header",{staticClass:"m-nav-header",class:[e.isFixed?"fixed":""]},[r("div",{directives:[{name:"show",rawName:"v-show",value:e.isBack,expression:"isBack"}],staticClass:"m-nav-bar__left",on:{click:e.goBack}},[r("van-icon",{staticClass:"arrow-left",attrs:{name:"arrow-left"}})],1),r("div",{staticClass:"m-nav-bar__title"},[e._t("default",[e._v(e._s(e.name?e.name:this.$route.meta.descrition))])],2),r("div",{staticClass:"m-nav-bar__right"},[e._t("right")],2)])])},n=[],o={name:"mheader",props:{name:String,isBack:{type:Boolean,default:!0},isFixed:{type:Boolean,default:!0},backUrl:{type:Object,default:function(){return{callBack:null,path:"",params:{}}}}},methods:{goBack:function(){var e=this.backUrl;"function"==typeof e.callBack?e.callBack():e.path?this.$router.push({path:e.path,query:e.params}):history.go(-1)}}},i=o,s=(r("5115"),r("2877")),u=Object(s["a"])(i,a,n,!1,null,"61d0e2e4",null);t["a"]=u.exports},"9afb":function(e,t,r){"use strict";r.d(t,"w",function(){return s}),r.d(t,"B",function(){return u}),r.d(t,"x",function(){return c}),r.d(t,"I",function(){return d}),r.d(t,"j",function(){return l}),r.d(t,"M",function(){return h}),r.d(t,"i",function(){return p}),r.d(t,"l",function(){return m}),r.d(t,"C",function(){return v}),r.d(t,"D",function(){return g}),r.d(t,"E",function(){return y}),r.d(t,"h",function(){return k}),r.d(t,"L",function(){return b}),r.d(t,"A",function(){return w}),r.d(t,"v",function(){return C}),r.d(t,"c",function(){return I}),r.d(t,"p",function(){return S}),r.d(t,"o",function(){return _}),r.d(t,"e",function(){return T}),r.d(t,"g",function(){return A}),r.d(t,"F",function(){return x}),r.d(t,"G",function(){return j}),r.d(t,"y",function(){return R}),r.d(t,"z",function(){return $}),r.d(t,"K",function(){return q}),r.d(t,"m",function(){return f}),r.d(t,"q",function(){return B}),r.d(t,"u",function(){return L}),r.d(t,"a",function(){return G}),r.d(t,"H",function(){return W}),r.d(t,"k",function(){return M}),r.d(t,"t",function(){return z}),r.d(t,"r",function(){return N}),r.d(t,"b",function(){return H}),r.d(t,"n",function(){return O}),r.d(t,"f",function(){return D}),r.d(t,"J",function(){return V}),r.d(t,"s",function(){return P}),r.d(t,"d",function(){return E});var a=r("4328"),n=r.n(a),o=r("981f").default,i="/api-teacher",s=function(e){return o({url:i+"/snaker/task/queryMyCreatedList",method:"get",params:e})},u=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})},l=function(e){return o({url:i+"/subject/findTeacherSubjets",method:"get",params:e})},d=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})},p=function(e){return o({url:i+"/vipGroupActivity/findByVipGroupCategory",method:"get",params:e})},m=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)})},k=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})},w=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})},I=function(e){return o({url:i+"/teacherLeaveRecord/askForLeave",method:"post",data:n.a.stringify(e)})},S=function(e){return o({url:i+"/teacherCourseSchedule/getCourseSchedulesWithDate",method:"get",params:e})},_=function(e){return o({url:i+"/teacherCourseSchedule/getCourseScheduleDateByMonth",method:"get",params:e})},T=function(e){return o({url:i+"/teacherCourseSchedule/classStartDateAdjust",method:"post",data:n.a.stringify(e)})},A=function(e){return o({url:i+"/teacherCourseSchedule/courseSwap",method:"post",data:n.a.stringify(e)})},x=function(e){return o({url:i+"/teacherCourseSchedule/statisticsInfo",method:"get",params:e})},j=function(e){return o({url:i+"/teacherCourseSchedule/statisticsList",method:"get",params:e})},R=function(e){return o({url:i+"/teacher/queryStudentApply",method:"get",params:e})},$=function(e){return o({url:i+"/teacher/querySubByMusicGroupId",method:"get",params:e})},q=function(e){return o({url:i+"/studentRegistration/updateSubject",method:"post",data:n.a.stringify(e)})},B=function(){return o({url:"/api-student/studentOrder/getLuckStatis",method:"get"})},L=function(){return o({url:"/api-web/api/practiceSum",method:"get"})},G=function(e){return o({url:"/api-teacher/classGroup/addStudyReport ",method:"post",data:e})},H=function(e){return o({url:"/api-teacher/studyReport/addStudyReport",method:"post",data:e})},W=function(e){return o({url:"/api-teacher/studyReport/info",method:"get",params:e})},z=function(e){return o({url:"/api-teacher/studyReport/getReviewsInfo",method:"get",params:e})},M=function(e){return o({url:"/api-teacher/classGroup/findTeacherClassGroupInfo",method:"get",params:e})},N=function(e){return o({url:"/api-teacher/studyReport/getNeedPost",method:"get",params:e})},O=function(e){return o({url:"/api-teacher/courseReview/getCourseInfoHead",method:"get",params:e})},D=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)})},P=function(e){return o({url:"/api-teacher/courseReview/getReviewInfo",method:"get",params:e})},E=function(e){return o({url:"/api-teacher/teacherCourseHomeworkReply/checkeIsAssignHomework",method:"get",params:e})}},d0e1:function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[e.headerStatus?r("m-header"):e._e(),r("van-cell-group",[r("van-cell",{attrs:{title:"课程班名称",value:e.classGroupName}})],1),r("van-cell-group",[r("van-cell",{attrs:{title:"课程类型"},scopedSlots:e._u([{key:"default",fn:function(){return[e._v("\n "+e._s(e._f("coursesType")(e.classType))+"\n ")]},proxy:!0}])})],1),r("van-cell-group",[r("van-cell",{attrs:{title:"上课时间",value:e.classTimer}})],1),r("van-cell-group",[r("van-cell",{attrs:{title:"乐器",value:e.subjectNames}})],1),r("van-cell-group",[r("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),r("van-cell-group",[r("van-field",{attrs:{required:"",label:"曲目","input-align":"right",placeholder:"请输入曲目名"},model:{value:e.song,callback:function(t){e.song=t},expression:"song"}})],1),r("van-cell-group",[r("van-cell",[r("template",{slot:"title"},[r("div",{staticClass:"title-item"},[r("span",{staticClass:"text"},[e._v("发音")]),r("van-rate",{attrs:{size:25,"void-color":"#eee","void-icon":"star"},model:{value:e.pronunciation,callback:function(t){e.pronunciation=t},expression:"pronunciation"}})],1),r("div",{staticClass:"title-item"},[r("span",{staticClass:"text"},[e._v("节奏")]),r("van-rate",{attrs:{size:25,"void-color":"#eee","void-icon":"star"},model:{value:e.tempo,callback:function(t){e.tempo=t},expression:"tempo"}})],1),r("div",{staticClass:"title-item"},[r("span",{staticClass:"text"},[e._v("乐理")]),r("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),r("van-cell-group",[r("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),"VIP"!=e.classType?r("van-cell-group",[r("van-cell",{attrs:{title:"是否完成双向沟通","value-class":"twoConnect"}},[r("template",{slot:"default"},[r("van-radio-group",{attrs:{required:"",direction:"horizontal"},model:{value:e.hasLiaison,callback:function(t){e.hasLiaison=t},expression:"hasLiaison"}},[r("van-radio",{attrs:{name:"1"}},[e._v("是")]),r("van-radio",{attrs:{name:"0"}},[e._v("否")])],1)],1)],2)],1):e._e(),e.reviewId?e._e():r("div",{staticClass:"button-group"},[r("van-button",{attrs:{type:"primary",round:"",size:"large"},on:{click:e.submitReview}},[e._v("提交评价")])],1),e.reviewId?r("div",{staticClass:"button-group btn-operation"},[r("van-button",{attrs:{type:"primary",disabled:!!e.homeWork,round:""},on:{click:function(t){return e.onWork(e.isAssignHomework)}}},[e._v(e._s(e.homeWork?"已布置作业":"布置作业"))]),r("van-button",{staticClass:"btn-plain",attrs:{type:"primary",round:""},on:{click:e.submitReview}},[e._v("修改评价")])],1):e._e(),r("van-popup",{model:{value:e.showWork,callback:function(t){e.showWork=t},expression:"showWork"}},[r("van-icon",{staticClass:"closeable",attrs:{name:"cross"},on:{click:e.onClose}}),r("div",{staticClass:"popup_container"},[r("p",{staticClass:"content"},[e._v("评价成功"),r("br"),e._v(e._s(e.isAssignHomework?"您课程所在周已经布置作业,是否继续布置?":"是否布置作业?"))]),r("div",{staticClass:"btn_group"},[r("span",{on:{click:e.onClose}},[e._v("取消")]),r("span",{on:{click:function(t){return e.onWork(0)}}},[e._v("布置作业")])])])],1)],1)},n=[],o=r("9afb"),i=r("ff51"),s=r("6e6e"),u={name:"teacherList",components:{MHeader:s["a"]},data:function(){return{headerStatus:!0,showWork:!1,radio:1,voice:0,courseId:null,reviewId:null,classTimer:null,classGroupName:null,classType:null,teachingMaterial:null,song:null,pronunciation:null,tempo:null,musicTheory:null,memo:null,homeWork:null,handHomework:null,hasLiaison:null,subjectNames:null,isInside:!1,isAssignHomework:0}},created:function(){var e=this.$route.query;e.Authorization&&(localStorage.setItem("Authorization",decodeURI(e.Authorization)),localStorage.setItem("userInfo",decodeURI(e.Authorization))),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,t=this.$route.query;t.Authorization&&(localStorage.setItem("Authorization",decodeURI(t.Authorization)),localStorage.setItem("userInfo",decodeURI(t.Authorization))),(Object(i["b"])().android||Object(i["b"])().iPhone)&&(this.headerStatus=!1),this.reviewId?(this.$toast.loading({message:"加载中...",duration:1e4,forbidClick:!0,loadingType:"spinner"}),Object(o["s"])({id:this.reviewId}).then(function(t){if(e.$toast.clear(),200==t.data.code){var r=t.data.data,a=r.teacherClassHeadInfo;e.classTimer=a.classDate+a.startClassTime+"-"+a.endClassTime,e.subjectNames=a.subjectNames,e.classGroupName=a.classGroupName,e.classType=a.courseScheduleType;var n=r.courseScheduleReview;e.teachingMaterial=n.teachingMaterial,e.song=n.song,e.pronunciation=n.pronunciation,e.tempo=n.tempo,e.musicTheory=n.musicTheory,e.memo=n.memo,e.homeWork=n.homeWork,e.hasLiaison=n.hasLiaison.toString(),e.handHomework=n.handHomework.toString()}})):Object(o["n"])({courseId:this.courseId}).then(function(t){if(200==t.data.code){var r=t.data.data;e.classTimer=r.classDate+r.startClassTime+"-"+r.endClassTime,e.subjectNames=r.subjectNames,e.classGroupName=r.classGroupName,e.classType=r.courseScheduleType}}),Object(o["d"])({courseScheduleId:this.courseId}).then(function(t){var r=t.data;200==r.code?e.isAssignHomework=r.data.isAssignHomework:e.$toast(r.msg)})},methods:{submitReview:function(){var e=this;if(this.teachingMaterial)if(this.song)if(this.memo)if(this.hasLiaison||"VIP"==this.classType){var t={teachingMaterial:this.teachingMaterial,song:this.song,pronunciation:this.pronunciation,tempo:this.tempo,musicTheory:this.musicTheory,memo:this.memo,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.replace({path:"/manageEvaluation"}):e.onAppBack()},1e3)})):Object(o["f"])(t).then(function(t){200==t.data.code&&(e.showWork=!0)})}else this.$toast("请勾选双向沟通");else this.$toast("请输入备注");else this.$toast("请填写曲目");else this.$toast("请填写教材")},onWork:function(e){var t=this;1==e?this.$dialog.confirm({message:"您课程所在周已经布置作业,是否继续布置?",confirmButtonText:"布置作业"}).then(function(){t.$router.replace({path:"/arrangeWork",query:{courseId:t.courseId}})}).catch(function(){}):this.$router.replace({path:"/arrangeWork",query:{courseId:this.courseId}})},onClose:function(){this.isInside?this.$router.replace({path:"/manageEvaluation"}):this.onAppBack()},onAppBack:function(){Object(i["b"])().android?DAYA.postMessage(JSON.stringify({api:"back"})):Object(i["b"])().iPhone&&window.webkit.messageHandlers.DAYA.postMessage(JSON.stringify({api:"back"}))}},destroyed:function(){this.$toast.clear()}},c=u,l=(r("2ccc"),r("2877")),d=Object(l["a"])(c,a,n,!1,null,"008b023e",null);t["default"]=d.exports}}]);
|