1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["CourseEvaluation"],{3354:function(t,e,a){},5115:function(t,e,a){"use strict";var r=a("3354"),n=a.n(r);n.a},"52ef":function(t,e,a){"use strict";var r=a("ad70"),n=a.n(r);n.a},"6e6e":function(t,e,a){"use strict";var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"mheader"},[a("header",{staticClass:"m-nav-header",class:[t.isFixed?"fixed":""]},[a("div",{directives:[{name:"show",rawName:"v-show",value:t.isBack,expression:"isBack"}],staticClass:"m-nav-bar__left",on:{click:t.goBack}},[a("van-icon",{staticClass:"arrow-left",attrs:{name:"arrow-left"}})],1),a("div",{staticClass:"m-nav-bar__title"},[t._t("default",[t._v(t._s(t.name?t.name:this.$route.meta.descrition))])],2),a("div",{staticClass:"m-nav-bar__right"},[t._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 t=this.backUrl;"function"==typeof t.callBack?t.callBack():t.path?this.$router.push({path:t.path,query:t.params}):history.go(-1)}}},i=o,s=(a("5115"),a("2877")),u=Object(s["a"])(i,r,n,!1,null,"61d0e2e4",null);e["a"]=u.exports},"9afb":function(t,e,a){"use strict";a.d(e,"v",function(){return s}),a.d(e,"A",function(){return u}),a.d(e,"w",function(){return c}),a.d(e,"H",function(){return d}),a.d(e,"i",function(){return l}),a.d(e,"L",function(){return h}),a.d(e,"h",function(){return p}),a.d(e,"k",function(){return m}),a.d(e,"B",function(){return v}),a.d(e,"C",function(){return g}),a.d(e,"D",function(){return y}),a.d(e,"g",function(){return b}),a.d(e,"K",function(){return k}),a.d(e,"z",function(){return w}),a.d(e,"u",function(){return C}),a.d(e,"c",function(){return I}),a.d(e,"o",function(){return S}),a.d(e,"n",function(){return _}),a.d(e,"d",function(){return j}),a.d(e,"f",function(){return x}),a.d(e,"E",function(){return R}),a.d(e,"F",function(){return T}),a.d(e,"x",function(){return A}),a.d(e,"y",function(){return q}),a.d(e,"J",function(){return B}),a.d(e,"l",function(){return f}),a.d(e,"p",function(){return L}),a.d(e,"t",function(){return $}),a.d(e,"a",function(){return G}),a.d(e,"G",function(){return N}),a.d(e,"j",function(){return M}),a.d(e,"s",function(){return W}),a.d(e,"q",function(){return O}),a.d(e,"b",function(){return z}),a.d(e,"m",function(){return H}),a.d(e,"e",function(){return D}),a.d(e,"I",function(){return E}),a.d(e,"r",function(){return U});var r=a("4328"),n=a.n(r),o=a("981f").default,i="/api-teacher",s=function(t){return o({url:i+"/snaker/task/queryMyCreatedList",method:"get",params:t})},u=function(t){return o({url:i+"/snaker/task/queryWaitList",method:"get",params:t})},c=function(t){return o({url:i+"/snaker/task/queryProcessedList",method:"get",params:t})},l=function(t){return o({url:i+"/subject/findTeacherSubjets",method:"get",params:t})},d=function(t){return o({url:i+"/subject/findSubSubjects",method:"get",params:t})},h=function(t){return o({url:i+"/vipGroupCategory/queryAll",method:"get",params:t})},p=function(t){return o({url:i+"/vipGroupActivity/findByVipGroupCategory",method:"get",params:t})},m=function(t){return o({url:i+"/school/findVipSchoolByTeacher",method:"get",params:t})},f=function(t){return o({url:i+"/school/findVipSchoolByTeacher2",method:"get",params:t})},v=function(t){return o({url:i+"/school/add",method:"post",data:n.a.stringify(t)})},g=function(t){return o({url:i+"/school/del",method:"post",data:n.a.stringify(t)})},y=function(t){return o({url:i+"/school/update",method:"post",data:n.a.stringify(t)})},b=function(t){return o({url:i+"/teacherDefaultVipGroupSalary/findByTeacherAndCategory",method:"get",params:t})},k=function(t){return o({url:i+"/teacherVipGroup/vipGroupApply",method:"post",data:t})},w=function(t){return o({url:i+"/teacherLeaveRecord/queryVipCourseScheduleList",method:"get",params:t})},C=function(t){return o({url:i+"/leaveCategory/queryPage",method:"post",data:t})},I=function(t){return o({url:i+"/teacherLeaveRecord/askForLeave",method:"post",data:n.a.stringify(t)})},S=function(t){return o({url:i+"/teacherCourseSchedule/getCourseSchedulesWithDate",method:"get",params:t})},_=function(t){return o({url:i+"/teacherCourseSchedule/getCourseScheduleDateByMonth",method:"get",params:t})},j=function(t){return o({url:i+"/teacherCourseSchedule/classStartDateAdjust",method:"post",data:n.a.stringify(t)})},x=function(t){return o({url:i+"/teacherCourseSchedule/courseSwap",method:"post",data:n.a.stringify(t)})},R=function(t){return o({url:i+"/teacherCourseSchedule/statisticsInfo",method:"get",params:t})},T=function(t){return o({url:i+"/teacherCourseSchedule/statisticsList",method:"get",params:t})},A=function(t){return o({url:i+"/teacher/queryStudentApply",method:"get",params:t})},q=function(t){return o({url:i+"/teacher/querySubByMusicGroupId",method:"get",params:t})},B=function(t){return o({url:i+"/studentRegistration/updateSubject",method:"post",data:n.a.stringify(t)})},L=function(){return o({url:"/api-student/studentOrder/getLuckStatis",method:"get"})},$=function(){return o({url:"/api-web/api/practiceSum",method:"get"})},G=function(t){return o({url:"/api-teacher/classGroup/addStudyReport ",method:"post",data:t})},z=function(t){return o({url:"/api-teacher/studyReport/addStudyReport",method:"post",data:t})},N=function(t){return o({url:"/api-teacher/studyReport/info",method:"get",params:t})},W=function(t){return o({url:"/api-teacher/studyReport/getReviewsInfo",method:"get",params:t})},M=function(t){return o({url:"/api-teacher/classGroup/findTeacherClassGroupInfo",method:"get",params:t})},O=function(t){return o({url:"/api-teacher/studyReport/getNeedPost",method:"get",params:t})},H=function(t){return o({url:"/api-teacher/courseReview/getCourseInfoHead",method:"get",params:t})},D=function(t){return o({url:"/api-teacher/courseReview/add",method:"post",data:n.a.stringify(t)})},E=function(t){return o({url:"/api-teacher/courseReview/updateReviewInfo",method:"post",data:n.a.stringify(t)})},U=function(t){return o({url:"/api-teacher/courseReview/getReviewInfo",method:"get",params:t})}},ad70:function(t,e,a){},d0e1:function(t,e,a){"use strict";a.r(e);var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t.headerStatus?a("m-header"):t._e(),a("van-cell-group",[a("van-cell",{attrs:{title:"课程班名称",value:t.classGroupName}})],1),a("van-cell-group",[a("van-cell",{attrs:{title:"上课时间",value:t.classTimer}})],1),a("van-cell-group",[a("van-cell",{attrs:{title:"乐器",value:t.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:t.teachingMaterial,callback:function(e){t.teachingMaterial=e},expression:"teachingMaterial"}})],1),a("van-cell-group",[a("van-field",{attrs:{required:"",label:"曲目","input-align":"right",placeholder:"请输入曲目名"},model:{value:t.song,callback:function(e){t.song=e},expression:"song"}})],1),a("van-cell-group",[a("van-cell",[a("template",{slot:"title"},[a("div",{staticClass:"title-item"},[a("span",{staticClass:"text"},[t._v("发音")]),a("van-rate",{attrs:{size:25,"void-color":"#eee","void-icon":"star"},model:{value:t.pronunciation,callback:function(e){t.pronunciation=e},expression:"pronunciation"}})],1),a("div",{staticClass:"title-item"},[a("span",{staticClass:"text"},[t._v("节奏")]),a("van-rate",{attrs:{size:25,"void-color":"#eee","void-icon":"star"},model:{value:t.tempo,callback:function(e){t.tempo=e},expression:"tempo"}})],1),a("div",{staticClass:"title-item"},[a("span",{staticClass:"text"},[t._v("乐理")]),a("van-rate",{attrs:{size:25,"void-color":"#eee","void-icon":"star"},model:{value:t.musicTheory,callback:function(e){t.musicTheory=e},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:t.memo,callback:function(e){t.memo=e},expression:"memo"}})],1),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:t.hasLiaison,callback:function(e){t.hasLiaison=e},expression:"hasLiaison"}},[a("van-radio",{attrs:{name:"1"}},[t._v("是")]),a("van-radio",{attrs:{name:"0"}},[t._v("否")])],1)],1)],2)],1),t.reviewId?t._e():a("div",{staticClass:"button-group"},[a("van-button",{attrs:{type:"primary",round:"",size:"large"},on:{click:t.submitReview}},[t._v("提交评价")])],1),t.reviewId?a("div",{staticClass:"button-group btn-operation"},[a("van-button",{attrs:{type:"primary",disabled:!!t.homeWork,round:""},on:{click:t.onWork}},[t._v(t._s(t.homeWork?"已布置作业":"布置作业"))]),a("van-button",{staticClass:"btn-plain",attrs:{type:"primary",round:""},on:{click:t.submitReview}},[t._v("修改评价")])],1):t._e(),a("van-popup",{model:{value:t.showWork,callback:function(e){t.showWork=e},expression:"showWork"}},[a("van-icon",{staticClass:"closeable",attrs:{name:"cross"},on:{click:t.onClose}}),a("div",{staticClass:"popup_container"},[a("p",{staticClass:"content"},[t._v("评价成功"),a("br"),t._v("是否布置作业?")]),a("div",{staticClass:"btn_group"},[a("span",{on:{click:t.onClose}},[t._v("取消")]),a("span",{on:{click:t.onWork}},[t._v("布置作业")])])])],1)],1)},n=[],o=a("9afb"),i=a("ff51"),s=a("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,teachingMaterial:null,song:null,pronunciation:null,tempo:null,musicTheory:null,memo:null,homeWork:null,handHomework:null,hasLiaison:null,subjectNames:null,isInside:!1}},created:function(){var t=this.$route.query;t.Authorization&&(localStorage.setItem("Authorization",decodeURI(t.Authorization)),localStorage.setItem("userInfo",decodeURI(t.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 t=this,e=this.$route.query;e.Authorization&&(localStorage.setItem("Authorization",decodeURI(e.Authorization)),localStorage.setItem("userInfo",decodeURI(e.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["r"])({id:this.reviewId}).then(function(e){if(t.$toast.clear(),200==e.data.code){var a=e.data.data,r=a.teacherClassHeadInfo;t.classTimer=r.classDate+r.startClassTime+"-"+r.endClassTime,t.subjectNames=r.subjectNames,t.classGroupName=r.classGroupName;var n=a.courseScheduleReview;t.teachingMaterial=n.teachingMaterial,t.song=n.song,t.pronunciation=n.pronunciation,t.tempo=n.tempo,t.musicTheory=n.musicTheory,t.memo=n.memo,t.homeWork=n.homeWork,t.hasLiaison=n.hasLiaison.toString(),t.handHomework=n.handHomework.toString()}})):Object(o["m"])({courseId:this.courseId}).then(function(e){if(200==e.data.code){var a=e.data.data;t.classTimer=a.classDate+a.startClassTime+"-"+a.endClassTime,t.subjectNames=a.subjectNames,t.classGroupName=a.classGroupName}})},methods:{submitReview:function(){var t=this;if(this.teachingMaterial)if(this.song)if(this.memo)if(this.hasLiaison){var e={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?(e.id=this.reviewId,Object(o["I"])(e).then(function(e){t.$toast("修改成功"),setTimeout(function(e){t.isInside?t.$router.push({path:"/manageEvaluation"}):t.onAppBack()},1e3)})):Object(o["e"])(e).then(function(e){200==e.data.code&&(t.showWork=!0)})}else this.$toast("请勾选双向沟通");else this.$toast("请输入备注");else this.$toast("请填写曲目");else this.$toast("请填写教材")},onWork:function(){this.$router.replace({path:"/arrangeWork",query:{courseId:this.courseId}})},onClose:function(){this.isInside?this.$router.push({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"}))}}},c=u,l=(a("52ef"),a("2877")),d=Object(l["a"])(c,r,n,!1,null,"58f416b3",null);e["default"]=d.exports}}]);
|