1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["CourseEvaluation"],{"4ac8":function(t,e,r){"use strict";r("d8db")},"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",(function(){return[t._v(t._s(t.name?t.name:t.$route.meta.descrition))]}))],2),r("div",{staticClass:"m-nav-bar__right"},[t._t("right")],2)])])},o=[],a={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=a,s=(r("70bb"),r("2877")),u=Object(s["a"])(i,n,o,!1,null,"10a70108",null);e["a"]=u.exports},"70bb":function(t,e,r){"use strict";r("c905")},"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 h})),r.d(e,"k",(function(){return l})),r.d(e,"bb",(function(){return d})),r.d(e,"i",(function(){return f})),r.d(e,"m",(function(){return p})),r.d(e,"P",(function(){return v})),r.d(e,"Q",(function(){return g})),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 S})),r.d(e,"A",(function(){return I})),r.d(e,"c",(function(){return C})),r.d(e,"q",(function(){return x})),r.d(e,"p",(function(){return O})),r.d(e,"e",(function(){return L})),r.d(e,"g",(function(){return _})),r.d(e,"S",(function(){return j})),r.d(e,"T",(function(){return T})),r.d(e,"I",(function(){return G})),r.d(e,"L",(function(){return A})),r.d(e,"v",(function(){return E})),r.d(e,"Y",(function(){return P})),r.d(e,"n",(function(){return m})),r.d(e,"s",(function(){return N})),r.d(e,"y",(function(){return M})),r.d(e,"a",(function(){return B})),r.d(e,"U",(function(){return R})),r.d(e,"l",(function(){return H})),r.d(e,"x",(function(){return $})),r.d(e,"t",(function(){return D})),r.d(e,"b",(function(){return q})),r.d(e,"o",(function(){return F})),r.d(e,"f",(function(){return z})),r.d(e,"X",(function(){return V})),r.d(e,"w",(function(){return W})),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 ot})),r.d(e,"G",(function(){return at})),r.d(e,"D",(function(){return st})),r.d(e,"u",(function(){return it})),r.d(e,"K",(function(){return Y})),r.d(e,"W",(function(){return ut}));var n=r("4328"),o=r.n(n),a=r("981f").default,i="/api-teacher",s=function(t){return a({url:i+"/snaker/task/queryMyCreatedList",method:"get",params:t})},u=function(t){return a({url:i+"/snaker/task/queryWaitList",method:"get",params:t})},c=function(t){return a({url:i+"/snaker/task/queryProcessedList",method:"get",params:t})},l=function(t){return a({url:i+"/subject/findTeacherSubjets",method:"get",params:t})},h=function(t){return a({url:i+"/subject/findSubSubjects",method:"get",params:t})},d=function(t){return a({url:i+"/vipGroupCategory/queryAll",method:"get",params:t})},f=function(t){return a({url:i+"/vipGroupActivity/findByVipGroupCategory",method:"get",params:t})},p=function(t){return a({url:i+"/school/findVipSchoolByTeacher",method:"get",params:t})},m=function(t){return a({url:i+"/school/findVipSchoolByTeacher2",method:"get",params:t})},v=function(t){return a({url:i+"/school/add",method:"post",data:o.a.stringify(t)})},g=function(t){return a({url:i+"/school/del",method:"post",data:o.a.stringify(t)})},y=function(t){return a({url:i+"/school/update",method:"post",data:o.a.stringify(t)})},b=function(t){return a({url:i+"/teacherDefaultVipGroupSalary/findByTeacherAndCategory",method:"get",params:t})},w=function(t){return a({url:i+"/teacherVipGroup/vipGroupApply",method:"post",data:t})},k=function(t){return a({url:i+"/teacherVipGroup/vipGroupApplyForDouble11",method:"post",data:t})},S=function(t){return a({url:i+"/teacherLeaveRecord/queryVipCourseScheduleList",method:"get",params:t})},I=function(t){return a({url:i+"/leaveCategory/queryPage",method:"post",data:t})},C=function(t){return a({url:i+"/teacherLeaveRecord/askForLeave",method:"post",data:o.a.stringify(t)})},x=function(t){return a({url:i+"/teacherCourseSchedule/getCourseSchedulesWithDate",method:"get",params:t})},O=function(t){return a({url:i+"/teacherCourseSchedule/getCourseScheduleDateByMonth",method:"get",params:t})},L=function(t){return a({url:i+"/teacherCourseSchedule/classStartDateAdjust",method:"post",data:o.a.stringify(t)})},_=function(t){return a({url:i+"/teacherCourseSchedule/courseSwap",method:"post",data:o.a.stringify(t)})},j=function(t){return a({url:i+"/teacherCourseSchedule/statisticsInfo",method:"get",params:t})},T=function(t){return a({url:i+"/teacherCourseSchedule/statisticsList",method:"get",params:t})},G=function(t){return a({url:i+"/teacher/queryStudentApply",method:"get",params:t})},A=function(t){return a({url:i+"/teacher/querySubByMusicGroupId",method:"get",params:t})},E=function(t){return a({url:i+"/teacher/getRegisterOrPreList",method:"get",params:t})},P=function(t){return a({url:i+"/studentRegistration/updateSubject",method:"post",data:o.a.stringify(t)})},N=function(){return a({url:"/api-student/studentOrder/getLuckStatis",method:"get"})},M=function(){return a({url:"/api-web/api/practiceSum",method:"get"})},B=function(t){return a({url:"/api-teacher/classGroup/addStudyReport ",method:"post",data:t})},q=function(t){return a({url:"/api-teacher/studyReport/addStudyReport",method:"post",data:t})},R=function(t){return a({url:"/api-teacher/studyReport/info",method:"get",params:t})},$=function(t){return a({url:"/api-teacher/studyReport/getReviewsInfo",method:"get",params:t})},H=function(t){return a({url:"/api-teacher/classGroup/findTeacherClassGroupInfo",method:"get",params:t})},D=function(t){return a({url:"/api-teacher/studyReport/getNeedPost",method:"get",params:t})},F=function(t){return a({url:"/api-teacher/courseReview/getCourseInfoHead",method:"get",params:t})},z=function(t){return a({url:"/api-teacher/courseReview/add",method:"post",data:t})},V=function(t){return a({url:"/api-teacher/courseReview/updateReviewInfo",method:"post",data:o.a.stringify(t)})},W=function(t){return a({url:"/api-teacher/courseReview/getReviewInfo",method:"get",params:t})},J=function(t){return a({url:"/api-teacher/teacherCourseHomeworkReply/checkeIsAssignHomework",method:"get",params:t})},U=function(t){return a({url:"/api-teacher/teacherVipGroup/queryStudentsWithTeacher",method:"get",params:t})},Y=function(t){return a({url:"/api-teacher/teacherVipGroup/queryStudentsWithTeacherByOrganId",method:"get",params:t})},X=function(t){return a({url:"/api-teacher/teacherVipGroup/queryDouble11Students",method:"get",params:t})},K=function(t){return a({url:"/api-teacher/visit/queryPage",method:"get",params:t})},Q=function(t){return a({url:"/api-teacher/visit/add",method:"post",data:o.a.stringify(t)})},Z=function(t){return a({url:"/api-teacher/visit/getInfo",method:"get",params:t})},tt=function(t){return a({url:"/api-teacher/employeePosition/findOrganPosition",method:"get",params:t})},et=function(t){return a({url:"/api-cms/news/query",method:"get",params:t})},rt=function(t){return a({url:"/api-cms/news/list",method:"get",params:t})},nt=function(t){return a({url:"/api-teacher/classGroup/getCourseStudents",method:"get",params:t})},ot=function(t){return a({url:"/api-auth/user/queryUserById/"+t.userId,method:"get"})},at=function(t){return a({url:"/api-teacher/teacherPracticeGroup/queryPracticeGroupSellPrice",method:"get",params:t})},it=function(t){return a({url:"/api-teacher/teacherPracticeGroup/getPracticeGroupCostCount",method:"get",params:t})},st=function(t){return a({url:i+"/teacherPracticeGroup/practiceGroupApply",method:"post",data:t})},ut=function(t){return a({url:i+"/tenantConfig/get",method:"get",params:t})}},c905: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 ")])]),t.enableAssignHomework||1!=t.tenantId?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):t._e(),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)},o=[],a=r("9afb"),i=r("ff51"),s=r("6e6e");function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function c(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 l(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?c(Object(r),!0).forEach((function(e){h(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):c(Object(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 d(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */d=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",a=n.asyncIterator||"@@asyncIterator",i=n.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(_){s=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var o=e&&e.prototype instanceof f?e:f,a=Object.create(o.prototype),i=new x(n||[]);return a._invoke=function(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return L()}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var s=S(i,r);if(s){if(s===h)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=l(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}(t,r,i),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(_){return{type:"throw",arg:_}}}t.wrap=c;var h={};function f(){}function p(){}function m(){}var v={};s(v,o,(function(){return this}));var g=Object.getPrototypeOf,y=g&&g(g(O([])));y&&y!==e&&r.call(y,o)&&(v=y);var b=m.prototype=f.prototype=Object.create(v);function w(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function n(o,a,i,s){var c=l(t[o],t,a);if("throw"!==c.type){var h=c.arg,d=h.value;return d&&"object"==u(d)&&r.call(d,"__await")?e.resolve(d.__await).then((function(t){n("next",t,i,s)}),(function(t){n("throw",t,i,s)})):e.resolve(d).then((function(t){h.value=t,i(h)}),(function(t){return n("throw",t,i,s)}))}s(c.arg)}var o;this._invoke=function(t,r){function a(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(a,a):a()}}function S(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,S(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=l(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,h;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function I(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(I,this),this.reset(!0)}function O(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,a=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return a.next=a}}return{next:L}}function L(){return{value:void 0,done:!0}}return p.prototype=m,s(b,"constructor",m),s(m,"constructor",p),p.displayName=s(m,i,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,s(t,i,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},w(k.prototype),s(k.prototype,a,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new k(c(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},w(b),s(b,i,"Generator"),s(b,o,(function(){return this})),s(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=O,x.prototype={constructor:x,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),C(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function f(t,e,r,n,o,a,i){try{var s=t[a](i),u=s.value}catch(c){return void r(c)}s.done?e(u):Promise.resolve(u).then(n,o)}function p(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function i(t){f(a,n,o,i,s,"next",t)}function s(t){f(a,n,o,i,s,"throw",t)}i(void 0)}))}}var m={name:"teacherList",components:{MHeader:s["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=p(d().mark((function t(){var e,r,n=this;return d().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(i["b"])().android||Object(i["b"])().iPhone)&&(this.headerStatus=!1),this.$toast.loading({message:"加载中...",duration:1e4,forbidClick:!0,loadingType:"spinner"}),t.next=10,Object(a["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 o=r.memberNum,a=r.courseStudentNum;a==o&&(n.memberStatus=1)}else n.$toast(e.msg)}));case 10:if(!this.reviewId){t.next=15;break}return t.next=13,Object(a["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 o=e.courseScheduleReview;n.teachingMaterial=o.teachingMaterial,n.song=o.song,n.pronunciation=o.pronunciation,n.tempo=o.tempo,n.musicTheory=o.musicTheory,n.memo=o.memo,n.homeWork=o.homeWork,n.hasLiaison=o.hasLiaison.toString()}}));case 13:t.next=21;break;case 15:return t.next=17,Object(a["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(a["X"])(e).then((function(e){t.$toast("修改成功"),setTimeout((function(e){t.isInside&&1==t.tenantId?t.$router.replace({path:"/manageEvaluation"}):t.onAppBack()}),1e3)}))):Object(a["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:l({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(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()}},v=m,g=(r("4ac8"),r("2877")),y=Object(g["a"])(v,n,o,!1,null,"dfbc77a0",null);e["default"]=y.exports},d8db:function(t,e,r){}}]);
|