CourseEvaluation.f95eabc0.js 17 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["CourseEvaluation"],{"6c16":function(t,e,r){"use strict";var n=r("e63a"),a=r.n(n);a.a},"6e6e":function(t,e,r){"use strict";var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"mheader"},[r("header",{staticClass:"m-nav-header",class:[t.isFixed?"fixed":""]},[r("div",{directives:[{name:"show",rawName:"v-show",value:t.isBack,expression:"isBack"}],staticClass:"m-nav-bar__left",on:{click:t.goBack}},[r("van-icon",{staticClass:"arrow-left",attrs:{name:"arrow-left"}})],1),r("div",{staticClass:"m-nav-bar__title"},[t._t("default",[t._v(t._s(t.name?t.name:this.$route.meta.descrition))])],2),r("div",{staticClass:"m-nav-bar__right"},[t._t("right")],2)])])},a=[],i={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)}}},o=i,s=(r("d133"),r("2877")),u=Object(s["a"])(o,n,a,!1,null,"0e835508",null);e["a"]=u.exports},"9afb":function(t,e,r){"use strict";r.d(e,"F",function(){return s}),r.d(e,"O",function(){return u}),r.d(e,"H",function(){return c}),r.d(e,"V",function(){return d}),r.d(e,"k",function(){return l}),r.d(e,"bb",function(){return h}),r.d(e,"i",function(){return p}),r.d(e,"m",function(){return m}),r.d(e,"P",function(){return g}),r.d(e,"Q",function(){return v}),r.d(e,"R",function(){return y}),r.d(e,"h",function(){return b}),r.d(e,"Z",function(){return w}),r.d(e,"ab",function(){return k}),r.d(e,"N",function(){return I}),r.d(e,"A",function(){return C}),r.d(e,"c",function(){return S}),r.d(e,"q",function(){return T}),r.d(e,"p",function(){return O}),r.d(e,"e",function(){return j}),r.d(e,"g",function(){return _}),r.d(e,"S",function(){return x}),r.d(e,"T",function(){return A}),r.d(e,"I",function(){return G}),r.d(e,"L",function(){return M}),r.d(e,"v",function(){return P}),r.d(e,"Y",function(){return L}),r.d(e,"n",function(){return f}),r.d(e,"s",function(){return B}),r.d(e,"y",function(){return N}),r.d(e,"a",function(){return q}),r.d(e,"U",function(){return $}),r.d(e,"l",function(){return D}),r.d(e,"x",function(){return H}),r.d(e,"t",function(){return E}),r.d(e,"b",function(){return R}),r.d(e,"o",function(){return z}),r.d(e,"f",function(){return V}),r.d(e,"X",function(){return W}),r.d(e,"w",function(){return F}),r.d(e,"d",function(){return J}),r.d(e,"J",function(){return U}),r.d(e,"z",function(){return K}),r.d(e,"cb",function(){return Q}),r.d(e,"db",function(){return Z}),r.d(e,"j",function(){return tt}),r.d(e,"E",function(){return X}),r.d(e,"C",function(){return et}),r.d(e,"B",function(){return rt}),r.d(e,"r",function(){return nt}),r.d(e,"M",function(){return at}),r.d(e,"G",function(){return it}),r.d(e,"D",function(){return st}),r.d(e,"u",function(){return ot}),r.d(e,"K",function(){return Y}),r.d(e,"W",function(){return ut});var n=r("4328"),a=r.n(n),i=r("981f").default,o="/api-teacher",s=function(t){return i({url:o+"/snaker/task/queryMyCreatedList",method:"get",params:t})},u=function(t){return i({url:o+"/snaker/task/queryWaitList",method:"get",params:t})},c=function(t){return i({url:o+"/snaker/task/queryProcessedList",method:"get",params:t})},l=function(t){return i({url:o+"/subject/findTeacherSubjets",method:"get",params:t})},d=function(t){return i({url:o+"/subject/findSubSubjects",method:"get",params:t})},h=function(t){return i({url:o+"/vipGroupCategory/queryAll",method:"get",params:t})},p=function(t){return i({url:o+"/vipGroupActivity/findByVipGroupCategory",method:"get",params:t})},m=function(t){return i({url:o+"/school/findVipSchoolByTeacher",method:"get",params:t})},f=function(t){return i({url:o+"/school/findVipSchoolByTeacher2",method:"get",params:t})},g=function(t){return i({url:o+"/school/add",method:"post",data:a.a.stringify(t)})},v=function(t){return i({url:o+"/school/del",method:"post",data:a.a.stringify(t)})},y=function(t){return i({url:o+"/school/update",method:"post",data:a.a.stringify(t)})},b=function(t){return i({url:o+"/teacherDefaultVipGroupSalary/findByTeacherAndCategory",method:"get",params:t})},w=function(t){return i({url:o+"/teacherVipGroup/vipGroupApply",method:"post",data:t})},k=function(t){return i({url:o+"/teacherVipGroup/vipGroupApplyForDouble11",method:"post",data:t})},I=function(t){return i({url:o+"/teacherLeaveRecord/queryVipCourseScheduleList",method:"get",params:t})},C=function(t){return i({url:o+"/leaveCategory/queryPage",method:"post",data:t})},S=function(t){return i({url:o+"/teacherLeaveRecord/askForLeave",method:"post",data:a.a.stringify(t)})},T=function(t){return i({url:o+"/teacherCourseSchedule/getCourseSchedulesWithDate",method:"get",params:t})},O=function(t){return i({url:o+"/teacherCourseSchedule/getCourseScheduleDateByMonth",method:"get",params:t})},j=function(t){return i({url:o+"/teacherCourseSchedule/classStartDateAdjust",method:"post",data:a.a.stringify(t)})},_=function(t){return i({url:o+"/teacherCourseSchedule/courseSwap",method:"post",data:a.a.stringify(t)})},x=function(t){return i({url:o+"/teacherCourseSchedule/statisticsInfo",method:"get",params:t})},A=function(t){return i({url:o+"/teacherCourseSchedule/statisticsList",method:"get",params:t})},G=function(t){return i({url:o+"/teacher/queryStudentApply",method:"get",params:t})},M=function(t){return i({url:o+"/teacher/querySubByMusicGroupId",method:"get",params:t})},P=function(t){return i({url:o+"/teacher/getRegisterOrPreList",method:"get",params:t})},L=function(t){return i({url:o+"/studentRegistration/updateSubject",method:"post",data:a.a.stringify(t)})},B=function(){return i({url:"/api-student/studentOrder/getLuckStatis",method:"get"})},N=function(){return i({url:"/api-web/api/practiceSum",method:"get"})},q=function(t){return i({url:"/api-teacher/classGroup/addStudyReport ",method:"post",data:t})},R=function(t){return i({url:"/api-teacher/studyReport/addStudyReport",method:"post",data:t})},$=function(t){return i({url:"/api-teacher/studyReport/info",method:"get",params:t})},H=function(t){return i({url:"/api-teacher/studyReport/getReviewsInfo",method:"get",params:t})},D=function(t){return i({url:"/api-teacher/classGroup/findTeacherClassGroupInfo",method:"get",params:t})},E=function(t){return i({url:"/api-teacher/studyReport/getNeedPost",method:"get",params:t})},z=function(t){return i({url:"/api-teacher/courseReview/getCourseInfoHead",method:"get",params:t})},V=function(t){return i({url:"/api-teacher/courseReview/add",method:"post",data:a.a.stringify(t)})},W=function(t){return i({url:"/api-teacher/courseReview/updateReviewInfo",method:"post",data:a.a.stringify(t)})},F=function(t){return i({url:"/api-teacher/courseReview/getReviewInfo",method:"get",params:t})},J=function(t){return i({url:"/api-teacher/teacherCourseHomeworkReply/checkeIsAssignHomework",method:"get",params:t})},U=function(t){return i({url:"/api-teacher/teacherVipGroup/queryStudentsWithTeacher",method:"get",params:t})},Y=function(t){return i({url:"/api-teacher/teacherVipGroup/queryStudentsWithTeacherByOrganId",method:"get",params:t})},X=function(t){return i({url:"/api-teacher/teacherVipGroup/queryDouble11Students",method:"get",params:t})},K=function(t){return i({url:"/api-teacher/visit/queryPage",method:"get",params:t})},Q=function(t){return i({url:"/api-teacher/visit/add",method:"post",data:a.a.stringify(t)})},Z=function(t){return i({url:"/api-teacher/visit/getInfo",method:"get",params:t})},tt=function(t){return i({url:"/api-teacher/employeePosition/findOrganPosition",method:"get",params:t})},et=function(t){return i({url:"/api-cms/news/query",method:"get",params:t})},rt=function(t){return i({url:"/api-cms/news/list",method:"get",params:t})},nt=function(t){return i({url:"/api-teacher/classGroup/getCourseStudents",method:"get",params:t})},at=function(t){return i({url:"/api-auth/user/queryUserById/"+t.userId,method:"get"})},it=function(t){return i({url:"/api-teacher/teacherPracticeGroup/queryPracticeGroupSellPrice",method:"get",params:t})},ot=function(t){return i({url:"/api-teacher/teacherPracticeGroup/getPracticeGroupCostCount",method:"get",params:t})},st=function(t){return i({url:o+"/teacherPracticeGroup/practiceGroupApply",method:"post",data:t})},ut=function(t){return i({url:o+"/tenantConfig/get",method:"get",params:t})}},bb2c:function(t,e,r){},d0e1:function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticStyle:{overflow:"hidden"}},[t.headerStatus?r("m-header"):t._e(),r("div",{staticClass:"course-header"},[r("div",{staticClass:"title-info"},[t.teachMode?r("span",{staticClass:"teachMode"},[t._v("\n "+t._s("ONLINE"==t.teachMode?"线上":null)+"\n "+t._s("OFFLINE"==t.teachMode?"线下":null)+"\n ")]):t._e(),r("span",{class:["courseType",t.classType]},[t._v(t._s(t._f("coursesType")(t.classType)))]),r("span",{staticStyle:{"font-size":".18rem","font-weight":"500",color:"#333","line-height":"18px","vertical-align":"middle"}},[t._v(t._s(t.classGroupName))])]),r("div",{staticClass:"title-time"},[t._v("\n "+t._s(t.classTimer)+"\n ")])]),r("van-cell-group",[r("div",{staticClass:"dot"}),r("van-cell",{staticClass:"input",attrs:{"is-link":!t.isAssignHomework,title:"课后训练",value:t.isAssignHomework?"已布置":"未布置"},on:{click:function(e){return t.onWork()}}})],1),r("van-cell-group",[r("div",{staticClass:"dot"}),r("van-field",{staticClass:"textarea",attrs:{required:"",rows:"3",maxlength:"255",autosize:"",label:"教材内容",type:"textarea",placeholder:"请输入本课程学习内容","show-word-limit":""},model:{value:t.teachingMaterial,callback:function(e){t.teachingMaterial=e},expression:"teachingMaterial"}})],1),r("van-cell-group",[r("div",{staticClass:"dot"}),r("van-field",{staticClass:"textarea",attrs:{required:"",rows:"1",label:"曲目",type:"textarea",placeholder:"请输入曲目名"},model:{value:t.song,callback:function(e){t.song=e},expression:"song"}})],1),r("van-cell-group",[r("div",{staticClass:"dot"}),r("p",{staticClass:"evTitle"},[t._v("评价")]),r("van-cell",{staticClass:"start"},[r("template",{slot:"title"},[r("div",{staticClass:"title-item"},[r("span",{staticClass:"text"},[t._v("发音")]),r("van-rate",{attrs:{size:25,color:"#F7B500","void-color":"#eee","void-icon":"star"},model:{value:t.pronunciation,callback:function(e){t.pronunciation=e},expression:"pronunciation"}})],1),r("div",{staticClass:"title-item"},[r("span",{staticClass:"text"},[t._v("节奏")]),r("van-rate",{attrs:{size:25,color:"#F7B500","void-color":"#eee","void-icon":"star"},model:{value:t.tempo,callback:function(e){t.tempo=e},expression:"tempo"}})],1),r("div",{staticClass:"title-item"},[r("span",{staticClass:"text"},[t._v("乐理")]),r("van-rate",{attrs:{size:25,color:"#F7B500","void-color":"#eee","void-icon":"star"},model:{value:t.musicTheory,callback:function(e){t.musicTheory=e},expression:"musicTheory"}})],1)])],2),r("van-field",{staticClass:"textarea",attrs:{rows:"3",required:"",maxlength:"255",autosize:"",type:"textarea",placeholder:"请输入本课程学习内容","show-word-limit":""},model:{value:t.memo,callback:function(e){t.memo=e},expression:"memo"}})],1),"VIP"!=t.classType?r("van-cell-group",[r("div",{staticClass:"dot"}),r("van-cell",{staticClass:"talk",attrs:{title:"是否完成双向沟通","value-class":"twoConnect"}},[r("template",{slot:"default"},[r("van-radio-group",{attrs:{required:"",direction:"horizontal"},model:{value:t.hasLiaison,callback:function(e){t.hasLiaison=e},expression:"hasLiaison"}},[r("van-radio",{attrs:{name:"1"}},[t._v("是")]),r("van-radio",{attrs:{name:"0"}},[t._v("否")])],1)],1)],2)],1):t._e(),r("div",{staticClass:"button-group"},[r("van-button",{attrs:{type:"primary",round:"",size:"large"},on:{click:t.submitReview}},[t._v("\n "+t._s(t.reviewId?"修改评价":"提交评价")+"\n ")])],1)],1)},a=[],i=r("a34a"),o=r.n(i),s=r("9afb"),u=r("ff51"),c=r("6e6e");function l(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function d(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?l(r,!0).forEach(function(e){h(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):l(r).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function h(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function p(t,e,r,n,a,i,o){try{var s=t[i](o),u=s.value}catch(c){return void r(c)}s.done?e(u):Promise.resolve(u).then(n,a)}function m(t){return function(){var e=this,r=arguments;return new Promise(function(n,a){var i=t.apply(e,r);function o(t){p(i,n,a,o,s,"next",t)}function s(t){p(i,n,a,o,s,"throw",t)}o(void 0)})}}var f={name:"teacherList",components:{MHeader:c["a"]},data:function(){return{headerStatus:!0,radio:1,voice:0,courseId:null,reviewId:null,classTimer:null,classGroupName:null,teachMode:null,classType:null,teachingMaterial:"",song:null,pronunciation:null,tempo:null,musicTheory:null,memo:"",homeWork:null,hasLiaison:null,subjectNames:null,isInside:!1,tenantId:null,isAssignHomework:0,enableAssignHomework:0,memberStatus:0}},created:function(){this.tenantId=sessionStorage.getItem("tenantId")||null},mounted:function(){var t=m(o.a.mark(function t(){var e,r,n=this;return o.a.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return e=this.$route.query,e.Authorization&&(localStorage.setItem("Authorization",decodeURI(e.Authorization)),localStorage.setItem("userInfo",decodeURI(e.Authorization))),this.courseId=e.id,this.reviewId=parseInt(e.reviewId),this.isInside=e.isInside,this.courseId||this.$toast("课程信息错误"),(Object(u["b"])().android||Object(u["b"])().iPhone)&&(this.headerStatus=!1),this.$toast.loading({message:"加载中...",duration:1e4,forbidClick:!0,loadingType:"spinner"}),t.next=10,Object(s["d"])({courseScheduleId:this.courseId}).then(function(t){var e=t.data;if(200==e.code){var r=e.data||{};n.isAssignHomework=r.isAssignHomework,n.enableAssignHomework=r.enableAssignHomework;var a=r.memberNum,i=r.courseStudentNum;i==a&&(n.memberStatus=1)}else n.$toast(e.msg)});case 10:if(!this.reviewId){t.next=15;break}return t.next=13,Object(s["w"])({id:this.reviewId}).then(function(t){if(200==t.data.code){var e=t.data.data,r=e.teacherClassHeadInfo;n.classTimer=r.classDate+r.startClassTime+"-"+r.endClassTime,n.subjectNames=r.subjectNames,n.classGroupName=r.classGroupName,n.teachMode=r.teachMode,n.classType=r.courseScheduleType;var a=e.courseScheduleReview;n.teachingMaterial=a.teachingMaterial,n.song=a.song,n.pronunciation=a.pronunciation,n.tempo=a.tempo,n.musicTheory=a.musicTheory,n.memo=a.memo,n.homeWork=a.homeWork,n.hasLiaison=a.hasLiaison.toString()}});case 13:t.next=21;break;case 15:return t.next=17,Object(s["o"])({courseId:this.courseId}).then(function(t){if(200==t.data.code){var e=t.data.data;n.classTimer=e.classDate+e.startClassTime+"-"+e.endClassTime,n.subjectNames=e.subjectNames,n.classGroupName=e.classGroupName,n.teachMode=e.teachMode,n.classType=e.courseScheduleType}});case 17:r=sessionStorage.getItem("courseEvaluationObj"),r=r?JSON.parse(r):null,sessionStorage.removeItem("courseEvaluationObj"),r&&(this.teachingMaterial=r.teachingMaterial,this.song=r.song,this.pronunciation=r.pronunciation,this.tempo=r.tempo,this.musicTheory=r.musicTheory,this.memo=r.memo,this.hasLiaison=r.hasLiaison,this.courseId=r.courseScheduleId);case 21:this.$toast.clear();case 22:case"end":return t.stop()}},t,this)}));function e(){return t.apply(this,arguments)}return e}(),methods:{submitReview:function(){var t=this;if(this.isAssignHomework||!this.enableAssignHomework||1!=this.tenantId)if(this.teachingMaterial)if(this.song)if(this.memo)if(this.hasLiaison||"VIP"==this.classType){var e={teachingMaterial:this.teachingMaterial,song:this.song,pronunciation:this.pronunciation,tempo:this.tempo,musicTheory:this.musicTheory,memo:this.memo,hasLiaison:this.hasLiaison,courseScheduleId:this.courseId};this.reviewId?(e.id=this.reviewId,Object(s["X"])(e).then(function(e){t.$toast("修改成功"),setTimeout(function(e){t.isInside&&1==t.tenantId?t.$router.replace({path:"/manageEvaluation"}):t.onAppBack()},1e3)})):Object(s["f"])(e).then(function(e){200==e.data.code?(t.$toast("提交成功"),setTimeout(function(e){t.isInside&&1==t.tenantId?t.$router.push({path:"/manageEvaluation"}):t.onAppBack()},1e3)):t.$toast(e.data.msg)})}else this.$toast("请勾选双向沟通");else this.$toast("请输入本课程学习内容");else this.$toast("请填写曲目");else this.$toast("请填写教材");else this.$toast("请布置课后训练")},onWork:function(){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};1!=this.isAssignHomework&&(sessionStorage.setItem("courseEvaluationObj",JSON.stringify(t)),this.$router.push({path:"/arrangeWork",query:d({courseId:this.courseId,memberNum:this.memberStatus,classGroupName:this.classGroupName},this.$route.query)}))},onClose:function(){this.isInside&&1==this.tenantId?this.$router.replace({path:"/manageEvaluation"}):this.onAppBack()},onAppBack:function(){Object(u["b"])().android?DAYA.postMessage(JSON.stringify({api:"back"})):Object(u["b"])().iPhone&&window.webkit.messageHandlers.DAYA.postMessage(JSON.stringify({api:"back"}))}},destroyed:function(){this.$toast.clear()}},g=f,v=(r("6c16"),r("2877")),y=Object(v["a"])(g,n,a,!1,null,"79473f54",null);e["default"]=y.exports},d133:function(t,e,r){"use strict";var n=r("bb2c"),a=r.n(n);a.a},e63a:function(t,e,r){}}]);