chunk-4fb1b1d5.86b41d91.js 27 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4fb1b1d5"],{"09f4":function(e,t,i){"use strict";i.d(t,"a",(function(){return n})),Math.easeInOutQuad=function(e,t,i,s){return e/=s/2,e<1?i/2*e*e+t:(e--,-i/2*(e*(e-2)-1)+t)};var s=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function a(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function r(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function n(e,t,i){var n=r(),l=e-n,o=20,c=0;t="undefined"===typeof t?500:t;var u=function e(){c+=o;var r=Math.easeInOutQuad(c,n,l,t);a(r),c<t?s(e):i&&"function"===typeof i&&i()};u()}},"0b68":function(e,t,i){"use strict";var s=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{staticClass:"teacherWrap"},[i("div",{staticClass:"teacherHeader"},[i("el-image",{staticStyle:{width:"50px",height:"50px"},attrs:{src:e.courseDetail.teacherImg?e.courseDetail.teacherImg:e.tetacherIcon}})],1),e._v(" "),i("div",{staticClass:"courseInfo"},[i("h4",[e._v("\n "+e._s(e.courseDetail.courseScheduleName)+"\n ")]),e._v(" "),i("span",[e._v(e._s(e.courseDetail.teacherName))])])]),e._v(" "),i("el-descriptions",{staticClass:"margin-top",attrs:{column:3,direction:"vertical"}},[e.showGroup?i("el-descriptions-item",{attrs:{label:"乐团","label-class-name":"my-label","content-class-name":"my-content"}},[e._v(e._s(e.courseDetail.musicGroupName))]):e._e(),e._v(" "),i("el-descriptions-item",{attrs:{label:"布置时间","label-class-name":"my-label","content-class-name":"my-content"}},[e._v(e._s(e.courseDetail.assignTime))]),e._v(" "),i("el-descriptions-item",{attrs:{label:"截止时间","label-class-name":"my-label","content-class-name":"my-content"}},[e._v(e._s(e.courseDetail.expiryDate))]),e._v(" "),i("el-descriptions-item",{attrs:{label:"完成情况","label-class-name":"my-label","content-class-name":"my-content"}},[e._v(e._s(e.courseDetail.finishNum)+" /\n "+e._s(e.courseDetail.studentNum))])],1),e._v(" "),i("el-tabs",{model:{value:e.activeName,callback:function(t){e.activeName="string"===typeof t?t.trim():t},expression:"activeName"}},[e.permission("/teamCourseListDetailStudnetList")?i("el-tab-pane",{attrs:{label:"学员列表",name:"first"}},["first"==e.activeName?i("div",[i("studentWroks",{ref:"studentWroksRef",attrs:{courseScheduleId:e.studentExerciseId,type:e.courseDetail.type}})],1):e._e()]):e._e(),e._v(" "),e.permission("/teamCourseListDetailStudnetList")?i("el-tab-pane",{attrs:{label:"练习内容",name:"second"}},["second"==e.activeName?i("div",[i("textConment",{attrs:{trainingDetailList:e.trainingGroupList,courseScheduleId:e.studentExerciseId,type:e.courseDetail.type}})],1):e._e()]):e._e()],1)],1)},a=[],r=i("c7eb"),n=i("5530"),l=(i("96cf"),i("1da1")),o=i("7c28"),c=i.n(o),u=i("ec8a"),d=i("d814"),m=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",e._l(e.fitterTraining,(function(t,s){return i("div",{key:s},[i("el-alert",{attrs:{title:"练习组"+(s+1),closable:!1}},[e._v("\n "+e._s(t.subjectName)+"\n ")]),e._v(" "),t.trainingVideoAndMusic.length>0?[i("div",{staticStyle:{padding:"8px 16px 8px"}},[e._v("练习说明:"+e._s(t.memo))]),e._v(" "),i("el-table",{staticStyle:{width:"100%","margin-bottom":"12px"},attrs:{data:t.trainingVideoAndMusic,"show-header":!0,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[i("el-table-column",{attrs:{label:"名称",prop:"musicScoreName"}}),e._v(" "),i("el-table-column",{attrs:{label:"类型",prop:"type"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s("MUSIC_SCORE"===t.row.homeworkType?"曲目":"视频"))]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{label:"速度",prop:"trainingSpeed"},scopedSlots:e._u([{key:"default",fn:function(t){return["MUSIC_SCORE"===t.row.homeworkType?i("span",[e._v("\n "+e._s(t.row.trainingSpeed)+"速度\n ")]):i("span",[e._v("--")])]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"times",label:"总计"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.times)+"次")]}}],null,!0)})],1)]:e._e(),e._v(" "),t.trainingTxt.length>0?[i("el-table",{staticStyle:{width:"100%","margin-bottom":"12px"},attrs:{data:t.trainingTxt,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[i("el-table-column",{attrs:{prop:"desc",label:"练习内容"}})],1)]:e._e()],2)})),0)},p=[],h=(i("ac6a"),{props:["trainingDetailList","courseScheduleId","type"],data:function(){return{subjectId:[],list:[],subjectList:[],fitterTraining:[]}},mounted:function(){var e=this.trainingDetailList,t=[];e.forEach((function(e){var i=e.trainingDetailList||[],s=[],a=[];i.forEach((function(e){"DESCRIPTION"===e.homeworkType?a.push(e):s.push(e)})),t.push(Object(n["a"])(Object(n["a"])({},e),{},{trainingVideoAndMusic:s,trainingTxt:a}))})),this.fitterTraining=t.map((function(e){return e}))},methods:{getPublicSubject:function(){var e=Object(l["a"])(Object(r["a"])().mark((function e(){var t;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(d["d"])({courseScheduleId:this.courseScheduleId,type:this.type});case 3:t=e.sent,this.subjectList=t.data,e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](0),console.log(e.t0);case 10:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(){return e.apply(this,arguments)}return t}(),checkSubject:function(e){var t=this;console.log(e[0],this.trainingDetailList),this.subjectId.length>1&&this.subjectId.shift(),e[0]?this.fitterTraining=this.trainingDetailList.filter((function(e){return e.subjectId==t.subjectId[0]})):this.fitterTraining=this.trainingDetailList.map((function(e){return e}))}}}),b=h,f=(i("44e1"),i("2877")),v=Object(f["a"])(b,m,p,!1,null,"35f3e0cd",null),g=v.exports,_=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",[e.subjectList.length>1?i("el-checkbox-group",{staticStyle:{"margin-bottom":"20px"},attrs:{size:"medium"},on:{change:e.checkSubject},model:{value:e.subjectId,callback:function(t){e.subjectId=t},expression:"subjectId"}},e._l(e.subjectList,(function(t,s){return i("el-checkbox-button",{key:s,class:1==e.subjectList.length?"one":"",attrs:{label:t.id}},[e._v(e._s(t.name))])})),1):e._e(),e._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{"max-height":"300px","header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.list}},[i("el-table-column",{attrs:{prop:"userName",align:"left",label:"学生姓名"}}),e._v(" "),i("el-table-column",{attrs:{prop:"phone",align:"left",label:"手机号"}}),e._v(" "),i("el-table-column",{attrs:{prop:"subjectName",align:"left",label:"声部名称"}}),e._v(" "),i("el-table-column",{attrs:{prop:"submitTime",align:"left",label:"完成时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",[e._v(e._s(e._f("dateForMinFormat")(t.row.submitTime)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"finishFlag",align:"left",label:"练习情况"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",[e._v(e._s(t.row.finishFlag?"已完成":"未完成"))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"finishFlag",align:"right",label:"练习内容"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.onDetail(t.row)}}},[e._v("查看详情")])]}}])})],1),e._v(" "),e.classVisible?i("el-dialog",{attrs:{title:e.userName+"练习详情",visible:e.classVisible,width:"800px","append-to-body":""},on:{"update:visible":function(t){e.classVisible=t}}},[i("homeworkDetail",{attrs:{list:e.selectItem}})],1):e._e()],1)])},y=[],x=i("6df2"),w={props:["courseScheduleId","type"],components:{homeworkDetail:x["a"]},data:function(){return{subjectId:[],list:[],subjectList:[],classVisible:!1,username:"",selectItem:[]}},mounted:function(){this.courseScheduleId&&(this.getStudentList(this.courseScheduleId),console.log(this.type,"type"),this.getPublicSubject())},methods:{onDetail:function(e){this.userName=e.userName,this.selectItem=e.studentLessonTrainingDetail||[],this.classVisible=!0},getStudentList:function(){var e=Object(l["a"])(Object(r["a"])().mark((function e(){var t;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(d["c"])({courseScheduleId:this.courseScheduleId,type:this.type,subjectId:this.subjectId[0]?this.subjectId[0]:""});case 3:t=e.sent,this.list=t.data,e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](0),console.log(e.t0);case 10:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(){return e.apply(this,arguments)}return t}(),getPublicSubject:function(){var e=Object(l["a"])(Object(r["a"])().mark((function e(){var t;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(d["d"])({courseScheduleId:this.courseScheduleId,type:this.type});case 3:t=e.sent,this.subjectList=t.data,e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](0),console.log(e.t0);case 10:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(){return e.apply(this,arguments)}return t}(),checkSubject:function(e){console.log(e,"checkSubject",this.subjectId),this.subjectId.length>1&&this.subjectId.shift(),this.getStudentList()}}},k=w,S=(i("f0d6"),Object(f["a"])(k,_,y,!1,null,"6772f5cb",null)),I=S.exports,F={props:["studentExerciseId","showGroup"],components:{studentWroks:I,textConment:g},data:function(){return{tetacherIcon:c.a,activeName:"",courseDetail:{assignTime:"",classDate:"",startTime:"",endTime:"",classGroupName:"",courseScheduleName:"",musicGroupName:"",expiryDate:"",subjectName:"",teacherName:"",teacherImg:"",courseScheduleId:"",finishNum:"",studentNum:"",type:""},trainingDetailList:[],trainingGroupList:[]}},mounted:function(){this.getWorkerDetail()},methods:{getWorkerDetail:function(){var e=Object(l["a"])(Object(r["a"])().mark((function e(){var t;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(d["a"])({studentExerciseId:this.studentExerciseId});case 3:t=e.sent,this.courseDetail=Object(n["a"])({},t.data),this.trainingDetailList=t.data.trainingDetailList,this.trainingGroupList=t.data.trainingGroupList||[],this.activeName="first",e.next=13;break;case 10:e.prev=10,e.t0=e["catch"](0),console.log(e.t0);case 13:case"end":return e.stop()}}),e,this,[[0,10]])})));function t(){return e.apply(this,arguments)}return t}(),permission:function(e,t){return Object(u["a"])(e,t)}}},j=F,E=(i("3a3d"),Object(f["a"])(j,s,a,!1,null,"76230715",null));t["a"]=E.exports},"177a":function(e,t,i){},"25ef":function(e,t,i){},"36e1":function(e,t,i){},"3a3d":function(e,t,i){"use strict";i("bca7")},"3e15":function(e,t,i){"use strict";i.d(t,"d",(function(){return r})),i.d(t,"a",(function(){return n})),i.d(t,"b",(function(){return l})),i.d(t,"c",(function(){return o}));var s=i("b775"),a=(i("4328"),"/api-web");function r(e){return Object(s["a"])({url:a+"/extracurricularExercises/queryPageList/v2",method:"get",params:e})}function n(e){return Object(s["a"])({url:a+"/extracurricularExercisesReply/queryPageList",method:"get",params:e})}function l(e){return Object(s["a"])({url:a+"/extracurricularExercises/findStudentExtraExerciseDetail",method:"get",params:e})}function o(e){return Object(s["a"])({url:a+"/exercisesSituation/findStudentExtracurricularExercisesSituations",method:"get",params:e})}},"44e1":function(e,t,i){"use strict";i("ab23")},"4b4d":function(e,t,i){"use strict";var s=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{},[i("div",[e.show?i("save-form",{ref:"saveForm",attrs:{inline:!0,model:e.searchForm,saveKey:e.formSaveKey},on:{submit:e.search,reset:e.onReSet}},[i("el-form-item",[i("el-input",{attrs:{clearable:"",placeholder:"老师"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:function(t){t.target.blur(),e.$refs.saveForm.save(),e.search()}(t)}},model:{value:e.searchForm.search,callback:function(t){e.$set(e.searchForm,"search","string"===typeof t?t.trim():t)},expression:"searchForm.search"}})],1),e._v(" "),i("el-form-item",{attrs:{prop:"organId"}},[i("el-select",{staticClass:"multiple",attrs:{filterable:"",clearable:"",placeholder:"请选择分部"},model:{value:e.searchForm.organIdList,callback:function(t){e.$set(e.searchForm,"organIdList","string"===typeof t?t.trim():t)},expression:"searchForm.organIdList"}},e._l(e.selects.branchs,(function(e,t){return i("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),i("el-form-item",[i("el-select",{staticClass:"organSelect",attrs:{filterable:"",clearable:"",placeholder:"请选择类型"},model:{value:e.searchForm.type,callback:function(t){e.$set(e.searchForm,"type","string"===typeof t?t.trim():t)},expression:"searchForm.type"}},[i("el-option",{attrs:{label:"课外练习",value:"EXTRACURRICULAR"}}),e._v(" "),i("el-option",{attrs:{label:"额外练习",value:"EXTRA"}})],1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"danger","native-type":"submit"}},[e._v("搜索")]),e._v(" "),i("el-button",{attrs:{type:"primary","native-type":"reset"}},[e._v("重置")])],1)],1):e._e(),e._v(" "),i("div",{staticClass:"tableWrap"},[i("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[i("el-table-column",{attrs:{align:"center",prop:"organName",label:"分部"}}),e._v(" "),i("el-table-column",{attrs:{align:"center",prop:"createTime",label:"布置时间",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("dateForMinFormat")(t.row.createTime)))]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",prop:"createTime",label:"练习类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s("EXTRACURRICULAR"==t.row.type?"课后练习":"额外练习")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",prop:"teacherName",label:"布置老师"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.teacher?i("copy-text",[e._v("\n "+e._s(t.row.teacher.username)+"\n ")]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",prop:"expireDate",label:"截止时间",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("dateForMinFormat")(t.row.expireDate)))]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",prop:"title",label:"应交人数"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.expectNum||0)+"人\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",prop:"actualTeacherName",label:"完成人数"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",[e._v(e._s(t.row.completedNum||0)+"人")])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"操作",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",[i("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"afterWorkList/look",expression:"'afterWorkList/look'"}],attrs:{type:"text"},on:{click:function(i){return e.lookDetail(t.row)}}},[e._v("查看")])],1)]}}])})],1),e._v(" "),i("pagination",{attrs:{saveKey:e.formSaveKey,sync:"",total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:total":function(t){return e.$set(e.rules,"total",t)},"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.getList}})],1),e._v(" "),e.classVisible?i("el-dialog",{attrs:{title:"详情",visible:e.classVisible,width:"1000px"},on:{"update:visible":function(t){e.classVisible=t}}},[i("courseWorkeDetail",{attrs:{studentExerciseId:e.activeRow.id,showGroup:!1}})],1):e._e()],1),e._v(" "),i("el-dialog",{attrs:{title:"课外练习详情",visible:e.afterSchoolVisible,width:"600px"},on:{"update:visible":function(t){e.afterSchoolVisible=t}}},[i("el-form",{attrs:{model:e.visibleForm,"label-width":"100px"}},[i("el-form-item",{attrs:{label:"老师姓名"}},[i("el-input",{attrs:{disabled:""},model:{value:e.visibleForm.teacherName,callback:function(t){e.$set(e.visibleForm,"teacherName",t)},expression:"visibleForm.teacherName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"学生姓名"}},[i("el-input",{attrs:{disabled:""},model:{value:e.visibleForm.studentName,callback:function(t){e.$set(e.visibleForm,"studentName",t)},expression:"visibleForm.studentName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"截止时间"}},[i("el-input",{attrs:{disabled:""},model:{value:e.visibleForm.expiryDate,callback:function(t){e.$set(e.visibleForm,"expiryDate",t)},expression:"visibleForm.expiryDate"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"练习标题"}},[i("el-input",{attrs:{disabled:""},model:{value:e.visibleForm.title,callback:function(t){e.$set(e.visibleForm,"title",t)},expression:"visibleForm.title"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"练习内容"}},[i("el-input",{attrs:{type:"textarea",rows:"5",disabled:""},model:{value:e.visibleForm.content,callback:function(t){e.$set(e.visibleForm,"content",t)},expression:"visibleForm.content"}})],1),e._v(" "),e._l(e.visibleForm.attachments,(function(t,s){return i("el-form-item",{key:s,attrs:{label:"学生上传"}},[t?i("p",{staticClass:"schoolCell",on:{click:function(i){return e.lookWork(t)}}},[e._v("点击播放")]):e._e()])}))],2)],1),e._v(" "),i("el-dialog",{attrs:{title:"查看练习",width:"680px","append-to-body":"",visible:e.workVisible},on:{"update:visible":function(t){e.workVisible=t}}},[i("video",{ref:"dialogVideo",staticStyle:{width:"640px"},attrs:{src:e.activeSrc,controls:"controls"}},[e._v("\n 您的浏览器不支持视频播放\n ")])])],1)},a=[],r=(i("386d"),i("333d")),n=i("3e15"),l=(i("1cc7"),i("adb21"),i("bc3a"),i("5f87"),i("0b68")),o={props:["id","saveKey"],components:{pagination:r["a"],courseWorkeDetail:l["a"]},data:function(){var e=this;return{formSaveKey:e.saveKey||"afterWorkList",searchForm:{search:null,type:null,organIdList:""},rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},teacherList:[],tableList:[],organList:[],visibleForm:{expiryDate:"",teacherName:"",title:"",studentName:"",content:"",attachments:[]},afterSchoolVisible:!1,workVisible:!1,activeSrc:"",extracurricularExercisesId:null,show:!0,classVisible:!1,activeRow:null}},created:function(){},mounted:function(){this.$store.dispatch("setBranchs"),this.init()},methods:{init:function(){this.getList()},getList:function(){var e=this,t=this.getDate();t.studentAssignFlag=!0,Object(n["d"])(t).then((function(t){200==t.code&&(e.tableList=t.data.rows,e.rules.total=t.data.total)}))},search:function(){this.rules.page=1,this.getList()},getDate:function(){var e={};return e.page=this.rules.page,e.rows=this.rules.limit,this.searchForm.teacherId&&(e.teacherId=this.searchForm.teacherId),this.searchForm.search&&(e.search=this.searchForm.search),this.searchForm.status&&(e.status=this.searchForm.status),this.searchForm.isReplied&&(e.isReplied=this.searchForm.isReplied),this.searchForm.isRepliedTimely&&(e.isRepliedTimely=this.searchForm.isRepliedTimely),this.searchForm.isView&&(e.isView=this.searchForm.isView),this.extracurricularExercisesId&&"yes"!=this.extracurricularExercisesId&&(e.extracurricularExercisesId=this.extracurricularExercisesId),this.searchForm.organIdList&&(e.organIdList=this.searchForm.organIdList),this.searchForm.existVipCourse&&(e.existVipCourse=this.searchForm.existVipCourse),e.cloudHomeworkFlag=this.searchForm.cloudHomeworkFlag,e.type=this.searchForm.type?this.searchForm.type:null,e},onReSet:function(){this.searchForm={search:null,timer:[],status:null,isReplied:null,isRepliedTimely:null,isView:null,organId:null,expireDate:[],existVipCourse:null,cloudHomeworkFlag:null,type:null},this.extracurricularExercisesId=null,this.getList()},lookDetail:function(e){this.activeRow=e,console.log(e.versionTag,"-======>"),"v1"==e.versionTag?this.$router.push({path:"/business/afterSchoolDetailold",query:{extracurricularExercisesId:e.id,title:e.title,activeIndex:2}}):this.classVisible=!0},lookWork:function(e){this.activeSrc=e,this.workVisible=!0}},watch:{workVisible:function(e){e||(this.activeSrc="")}}},c=o,u=(i("a541"),i("2877")),d=Object(u["a"])(c,s,a,!1,null,"2d879cb4",null);t["a"]=d.exports},"65b2":function(e,t,i){"use strict";i("36e1")},"6df2":function(e,t,i){"use strict";var s=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"studentWroks"},[e.listMusic.length>0?[i("el-alert",{staticStyle:{width:"99%","margin-bottom":"8px"},attrs:{title:"练习曲目",closable:!1}}),e._v(" "),i("el-table",{staticStyle:{"margin-bottom":"20px"},attrs:{"max-height":"300px","header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.listMusic}},[i("el-table-column",{attrs:{prop:"musicScoreName",width:"260px",align:"left",label:"名称"}}),e._v(" "),i("el-table-column",{attrs:{prop:"subjectName",align:"left",label:"练习"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",[e._v(e._s(t.row.start)+"-"+e._s(t.row.end))])]}}],null,!1,769662622)}),e._v(" "),i("el-table-column",{attrs:{prop:"trainingSpeed",align:"left",label:"速度"}}),e._v(" "),i("el-table-column",{attrs:{prop:"finishFlag",align:"left",label:"次数"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.trainingTimes)+"/"+e._s(t.row.times)+"次")]}}],null,!1,431224949)}),e._v(" "),i("el-table-column",{attrs:{prop:"finishFlag",align:"right",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.fileJson&&t.row.fileJson.length>0?i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.onDetail(t.row)}}},[e._v("查看详情")]):e._e()]}}],null,!1,2387529103)})],1)]:e._e(),e._v(" "),e.listVideo.length>0?[i("el-alert",{staticStyle:{width:"99%","margin-bottom":"8px"},attrs:{title:"练习视频",closable:!1}}),e._v(" "),i("el-table",{attrs:{"max-height":"300px","header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.listVideo}},[i("el-table-column",{attrs:{prop:"musicScoreName",align:"left",label:"名称"}}),e._v(" "),i("el-table-column",{attrs:{prop:"finishFlag",align:"left",label:"次数"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.trainingTimes)+"/"+e._s(t.row.times)+"次")]}}],null,!1,431224949)}),e._v(" "),i("el-table-column",{attrs:{prop:"finishFlag",align:"right",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.fileJson&&t.row.fileJson.length>0?i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.onDetail(t.row)}}},[e._v("查看详情")]):e._e()]}}],null,!1,2387529103)})],1)]:e._e(),e._v(" "),e.listTxt.length>0?[i("el-alert",{staticStyle:{width:"99%","margin-bottom":"8px"},attrs:{title:"练习",closable:!1}}),e._v(" "),i("el-table",{attrs:{"max-height":"300px","header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.listTxt}},[i("el-table-column",{attrs:{prop:"desc",align:"left",label:"练习内容"}}),e._v(" "),i("el-table-column",{attrs:{prop:"finishFlag",align:"right",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.fileJson&&t.row.fileJson.length>0?i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.onDetail(t.row)}}},[e._v("查看详情")]):e._e()]}}],null,!1,2387529103)})],1)]:e._e(),e._v(" "),e.videoVisible?i("el-dialog",{attrs:{title:"查看",width:"680px","append-to-body":"",visible:e.videoVisible},on:{"update:visible":function(t){e.videoVisible=t}}},[i("div",{staticClass:"activeVideoWrap"},["VIDEO"===e.selectItem.fileType?i("videoTcplayer",{staticClass:"ql-video",attrs:{src:e.selectItem.filePath}}):e._e(),e._v(" "),"SOUND"===e.selectItem.fileType?i("audio",{staticStyle:{width:"100%"},attrs:{id:"audio",controls:"",src:e.selectItem.filePath}},[e._v("\n 您的浏览器不支持视频播放\n ")]):e._e(),e._v(" "),"IMG"===e.selectItem.fileType?i("el-image",{staticStyle:{width:"100%",height:"350px"},attrs:{fit:"contain",src:e.selectItem.filePath,"preview-src-list":[e.selectItem.filePath]}}):e._e()],1)]):e._e()],2)},a=[],r=(i("ac6a"),i("8793")),n={props:["list","groupType"],components:{videoTcplayer:r["a"]},data:function(){return{videoVisible:!1,listMusic:[],listVideo:[],listTxt:[],selectItem:{}}},mounted:function(){this.__init()},methods:{__init:function(){var e=this.list||[],t=[],i=[],s=[];e.forEach((function(e){"MUSIC_SCORE"===e.homeworkType?t.push(e):"VIDEO"===e.homeworkType?i.push(e):s.push(e)})),this.listMusic=t,this.listVideo=i,this.listTxt=s},onDetail:function(e){this.selectItem=e.fileJson&&e.fileJson.length>0?e.fileJson[0]:{},console.log(this.selectItem,"this.selectItem"),this.selectItem.expireFlag?this.$message.error("文件已过期"):this.videoVisible=!0}}},l=n,o=(i("65b2"),i("2877")),c=Object(o["a"])(l,s,a,!1,null,"30e6f016",null);t["a"]=c.exports},"7c28":function(e,t,i){e.exports=i.p+"static/img/woman.9995a81d.png"},a541:function(e,t,i){"use strict";i("25ef")},ab23:function(e,t,i){},adb21:function(e,t,i){"use strict";i.d(t,"a",(function(){return c}));var s=i("bc3a"),a=i.n(s),r=(i("4328"),i("5f87")),n=i("3908"),l=i("e3eb"),o=i.n(l),c=function(e,t,i,s){var l=t.url,c={method:t.method?t.method:"get",headers:{Authorization:Object(r["b"])(),tenantId:Object(r["a"])()},url:l,responseType:"blob"};"post"==c.method?c.data=t.params:c.params=t.params,e.$confirm(i||"您确定下载模板","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){n["a"].startLoading(),a()(o()(c)).then((function(i){var a=new Blob([i.data],{type:"application/vnd.ms-excel;charset=utf-8"}),r=new Response(a).text();r.then((function(i){if(-1!=i.indexOf("code")){var r=JSON.parse(i);if(403==r.code)return e.$message.error("登录过期,请重新登录!"),void setTimeout((function(){e.$store.dispatch("user/resetToken").then((function(){location.reload()}))}),1e3);200==r.code?e.$message.success(r.msg):e.$message.error(r.msg),s&&s()}else{var n=URL.createObjectURL(a),l=document.createElement("a"),o=t.fileName||"导出文件.xls";l.href=n,l.setAttribute("download",o),document.body.appendChild(l),l.click(),s&&s()}})),n["a"].endLoading()})).catch((function(t){console.log(t),e.$message.error("下载失败,请联系管理员"),n["a"].endLoading()}))})).catch((function(){}))}},bca7:function(e,t,i){},d814:function(e,t,i){"use strict";i.d(t,"a",(function(){return r})),i.d(t,"c",(function(){return n})),i.d(t,"d",(function(){return l})),i.d(t,"b",(function(){return o})),i.d(t,"e",(function(){return c})),i.d(t,"f",(function(){return u}));var s=i("829b"),a=(i("4328"),"/api-web");function r(e){return Object(s["a"])({url:a+"/extracurricularExercises/findStudentExtraExerciseDetail/v2",method:"get",params:e})}function n(e){return Object(s["a"])({url:a+"/teacher/findCourseStudentsPublic/v2",method:"post",data:e,requestType:"json"})}function l(e){return Object(s["a"])({url:a+"/teacher/findCourseStudentsSubjectPublic/v2",method:"post",data:e,requestType:"json"})}function o(e){return Object(s["a"])({url:a+"/lessonExamination/querySubject",method:"get",params:e})}function c(e){return Object(s["a"])({url:a+"/lessonExamination/queryPage",method:"post",data:e,requestType:"json"})}function u(e){return Object(s["a"])({url:a+"/lessonExamination/queryStudentPage",method:"post",data:e,requestType:"form"})}},f0d6:function(e,t,i){"use strict";i("177a")}}]);