1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-68b3a044"],{"1cfc":function(t,e,i){},"20c4":function(t,e,i){},"22bb":function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[t.title||t.content?i("div",{staticClass:"workTitle"},[t._v("\n "+t._s(t.title)+":"),i("span",[t._v(t._s(t.content))])]):i("div",{staticClass:"workTitle"},[t._v("暂未布置作业")]),t._v(" "),i("el-form",{staticClass:"workForm",staticStyle:{padding:"0 25px"},attrs:{inline:!0}},[i("el-form-item",{attrs:{label:"应交学生数"}},[i("div",{staticClass:"inputStyle"},[t._v(t._s(t.homeworkStudentNum))])]),t._v(" "),i("el-form-item",{attrs:{label:"已交学生数"}},[i("div",{staticClass:"inputStyle"},[t._v(t._s(t.homeworkNum))])]),t._v(" "),i("el-form-item",{attrs:{label:"已回复数"}},[i("div",{staticClass:"inputStyle"},[t._v(t._s(t.repliedNum))])])],1),t._v(" "),i("div",{staticClass:"tableWrap"},[i("el-table",{attrs:{data:t.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[i("el-table-column",{attrs:{align:"center",prop:"studentName",width:"160",label:"学生姓名"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",[t._v("\n "+t._s(e.row.studentName)+"\n "),i("span",{staticStyle:{color:"#f56c6c"}},[t._v("("+t._s(e.row.studentId)+")")])])]}}])}),t._v(" "),i("el-table-column",{attrs:{align:"center",prop:"phone",label:"手机号",width:"120"}}),t._v(" "),i("el-table-column",{attrs:{align:"center",prop:"subjectNames",label:"声部名称"}}),t._v(" "),i("el-table-column",{attrs:{align:"center",prop:"submitTime",width:"150",label:"提交训练时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",[t._v(t._s(t._f("dateForMinFormat")(e.row.submitTime)))])]}}])}),t._v(" "),i("el-table-column",{attrs:{align:"center",prop:"isView",label:"是否提交"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",[t._v(t._s(e.row.submitTime?"是":"否"))])]}}])}),t._v(" "),i("el-table-column",{attrs:{align:"center",prop:"isView",label:"是否查看"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",[t._v(t._s(e.row.isView?"是":"否"))])]}}])}),t._v(" "),i("el-table-column",{attrs:{align:"center",prop:"isReplied",label:"是否回复"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",[t._v(t._s(e.row.isReplied?"是":"否"))])]}}])}),t._v(" "),i("el-table-column",{attrs:{align:"center",label:"查看训练",width:"100px"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",[e.row.urlList&&e.row.submitTime?i("el-button",{attrs:{type:"text"},on:{click:function(i){return t.lookWork(e.row)}}},[t._v("查看训练")]):t._e()],1)]}}])})],1),t._v(" "),i("pagination",{attrs:{total:t.rules.total,page:t.rules.page,limit:t.rules.limit},on:{"update:page":function(e){return t.$set(t.rules,"page",e)},"update:limit":function(e){return t.$set(t.rules,"limit",e)},pagination:t.getList}})],1),t._v(" "),t.workVisible?i("el-dialog",{attrs:{title:"查看训练",width:"940px","append-to-body":"",visible:t.workVisible},on:{close:t.closeWorkVisible,"update:visible":function(e){t.workVisible=e}}},[i("div",{staticClass:"sliderWrap"},[i("div",{staticClass:"swiperWrap"},[i("swiper",{ref:"mySwiper",attrs:{options:t.swiperOptions,"auto-update":!0,"auto-destroy":!1,"delete-instance-on-destroy":!1,"cleanup-styles-on-destroy":!1}},[t._l(t.activeRow.urlList,(function(e,n){return i("swiper-slide",{key:n,staticClass:"swiper-no-swiping"},[t.activeIndex==n?i("div",{staticClass:"videoWrap"},[i("video",{ref:"dialogVideo",refInFor:!0,staticStyle:{width:"480px"},attrs:{src:e,controls:"controls"}},[t._v("\n 您的浏览器不支持视频播放\n ")])]):t._e()])})),t._v(" "),i("div",{staticClass:"swiper-pagination",attrs:{slot:"pagination"},slot:"pagination"}),t._v(" "),t.activeRow.urlList.length>1?i("div",{staticClass:"swiper-button-prev swiper-button-white",attrs:{slot:"button-prev"},on:{click:t.prev},slot:"button-prev"}):t._e(),t._v(" "),t.activeRow.urlList.length>1?i("div",{staticClass:"swiper-button-next swiper-button-white",attrs:{slot:"button-next"},on:{click:t.next},slot:"button-next"}):t._e()],2)],1),t._v(" "),i("div",[i("p",{staticClass:"workContainer"},[t._v("训练回复内容:")]),t._v(" "),i("div",{staticClass:"msgWrap"},[t.activeCommit.length>0?i("div",{class:t.activeCommit.length>0?"":"flex"},[t._l(t.activeCommit,(function(t,e){return i("messageBox",{key:e,attrs:{item:t}})})),t._v(" "),t.activeCommit.length<=0?i("p",{staticClass:"nomore"},[t._v("暂无回复内容")]):t._e()],2):t._e()])])])]):t._e()],1)},s=[],r=(i("28a5"),i("ac6a"),i("7212")),a=(i("bbe3"),i("333d")),o=i("1cc7"),c=i("dc1e"),l=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"box",class:{teacher:t.item.isTeacher}},[i("span",{staticClass:"name"},[t._v(t._s(t.item.userName))]),t._v(" "),i("div",{staticClass:"container"},[i("span",{staticClass:"time"},[t._v(t._s(t.item.createTime))]),t._v(" "),"TXT"===t.item.msgType?i("div",{staticClass:"content"},[t._v(t._s(t.item.content))]):t._e(),t._v(" "),"IMG"===t.item.msgType?i("div",{staticClass:"content"},[i("el-image",{staticStyle:{width:"100px",height:"100px"},attrs:{src:t.item.content,fit:"cover","preview-src-list":[t.item.content]}})],1):t._e(),t._v(" "),"VC"===t.item.msgType?i("div",{staticClass:"content"},[i("audio",{ref:"dialogVideo",staticStyle:{width:"240px"},attrs:{controls:"",src:t.item.content}},[t._v("您的浏览器不支持音频播放")])]):t._e()])])},u=[],d={name:"message-box",props:["item"],mounted:function(){}},p=d,m=(i("797d"),i("2877")),v=Object(m["a"])(p,l,u,!1,null,"38aec66e",null),b=v.exports,f={props:["courseScheduleId"],components:{pagination:a["a"],Swiper:r["Swiper"],SwiperSlide:r["SwiperSlide"],messageBox:b},directives:{swiper:r["directive"]},data:function(){var t=this;return{tableList:[],rules:{limit:10,page:1,total:0},workVisible:!1,repliedVisible:!1,studentNum:null,homeworkStudentNum:null,homeworkNum:null,repliedNum:null,activeUrl:null,content:null,title:null,activeRow:null,activeIndex:0,swiperOptions:{noSwiping:!0,observer:!0,observeParents:!0,speed:300,loop:!0,pagination:".swiper-pagination",navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},on:{slideChange:function(e){t.activeIndex=e.realIndex}}},comUrl:"",comVisible:!1,activeCommit:[]}},computed:{swiper:function(){return this.$refs.mySwiper.$swiper}},mounted:function(){this.init()},activated:function(){this.init()},methods:{init:function(){var t=this;Object(o["Oc"])({courseScheduleId:this.courseScheduleId}).then((function(e){200==e.code&&(t.studentNum=e.data.studentNum,t.homeworkStudentNum=e.data.homeworkStudentNum,t.homeworkNum=e.data.homeworkNum,t.repliedNum=e.data.repliedNum)})),Object(o["db"])({courseScheduleId:this.courseScheduleId}).then((function(e){200==e.code&&(e.data&&(t.content=e.data.content,t.title=e.data.title),t.content?t.content:t.content="")})),this.getList()},getList:function(){var t=this;Object(o["O"])({search:this.courseScheduleId,rows:this.rules.limit,page:this.rules.page}).then((function(e){200==e.code&&(t.rules.total=e.data.total,t.tableList=e.data.rows.map((function(t){return t.urlList=[],t.url&&t.url.split(",").forEach((function(e){e&&t.urlList.push(e)})),t})))}))},lookWork:function(t){var e=this;this.activeRow=t,Object(c["b"])({studentCourseHomeworkId:t.studentCourseHomeworkId,rows:9999}).then((function(t){200==t.code&&(e.activeCommit=t.data.rows,e.workVisible=!0)}))},closeWorkVisible:function(){this.activeUrl=""},prev:function(t){var e=this;this.$nextTick((function(){e.$refs.mySwiper.$swiper.slidePrev()}))},next:function(t){var e=this;this.$nextTick((function(){e.$refs.mySwiper.$swiper.slideNext()}))},lookReplied:function(t){},openAideo:function(t){this.comUrl=t,this.comVisible=!0}},watch:{courseScheduleId:function(t){t&&this.init()}}},h=f,_=(i("6038"),Object(m["a"])(h,n,s,!1,null,"4287e3fd",null));e["a"]=_.exports},2487:function(t,e,i){"use strict";i("20c4")},"4f20":function(t,e,i){"use strict";i.d(e,"b",(function(){return r})),i.d(e,"a",(function(){return a})),i.d(e,"c",(function(){return o})),i.d(e,"d",(function(){return c}));var n=i("b775"),s=(i("4328"),"/api-web");function r(t){return Object(n["a"])({url:s+"/webCurseHomework/queryHomePage",method:"get",params:t})}function a(t){return Object(n["a"])({url:s+"/teacher/findCourseHomeworkDetail",method:"get",params:t})}function o(t){return Object(n["a"])({url:s+"/teacher/findCourseStudentsPublic/v2",method:"post",data:t,requestType:"json"})}function c(t){return Object(n["a"])({url:s+"/teacher/findCourseStudentsSubjectPublic/v2",method:"post",data:t,requestType:"json"})}},6038:function(t,e,i){"use strict";i("1cfc")},"797d":function(t,e,i){"use strict";i("b346")},b346:function(t,e,i){},da46:function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("div",[t.subjectList.length>1?i("el-checkbox-group",{staticStyle:{"margin-bottom":"20px"},attrs:{size:"medium"},on:{change:t.checkSubject},model:{value:t.subjectId,callback:function(e){t.subjectId=e},expression:"subjectId"}},t._l(t.subjectList,(function(e,n){return i("el-checkbox-button",{key:n,class:1==t.subjectList.length?"one":"",attrs:{label:e.id}},[t._v(t._s(e.name))])})),1):t._e(),t._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{"max-height":"300px","header-cell-style":{background:"#EDEEF0",color:"#444"},data:t.list}},[i("el-table-column",{attrs:{type:"expand"},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(e.row.studentLessonTrainingDetail,(function(e,n){return i("el-row",{key:n,attrs:{gutter:20}},[i("el-col",{attrs:{span:12}},[i("div",{staticClass:"rowFirst"},[t._v(t._s(e.musicScoreName))])]),t._v(" "),i("el-col",{attrs:{span:6}},[i("div",{staticClass:"rowSecond"},[i("span",[t._v(t._s(e.trainingSpeed))]),t._v(" 速度\n ")])]),t._v(" "),i("el-col",{attrs:{span:6}},[i("div",{staticClass:"rowlast"},[i("span",{class:e.trainingTimes>=e.times?"":"red"},[t._v(t._s(e.trainingTimes))]),t._v("\n / "+t._s(e.times)+" 次\n ")])])],1)}))}}])}),t._v(" "),i("el-table-column",{attrs:{prop:"userName",align:"left",label:"学生姓名"}}),t._v(" "),i("el-table-column",{attrs:{prop:"phone",align:"left",label:"手机号"}}),t._v(" "),i("el-table-column",{attrs:{prop:"subjectName",align:"left",label:"声部名称"}}),t._v(" "),i("el-table-column",{attrs:{prop:"submitTime",align:"left",label:"完成时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",[t._v(t._s(t._f("dateForMinFormat")(e.row.submitTime)))])]}}])}),t._v(" "),i("el-table-column",{attrs:{prop:"finishFlag",align:"right",label:"训练情况"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",[t._v(t._s(e.row.finishFlag?"已完成":"未完成"))])]}}])})],1)],1)])},s=[],r=i("c80c"),a=(i("96cf"),i("3b8d")),o=i("4f20"),c={props:["courseScheduleId"],data:function(){return{subjectId:[],list:[],subjectList:[]}},mounted:function(){console.log(this.courseScheduleId,"mounted"),this.courseScheduleId&&(this.getStudentList(this.courseScheduleId),this.getPublicSubject())},methods:{getStudentList:function(){var t=Object(a["a"])(Object(r["a"])().mark((function t(){var e;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Object(o["c"])({courseScheduleId:this.courseScheduleId,type:"HOMEWORK",subjectId:this.subjectId[0]?this.subjectId[0]:""});case 3:e=t.sent,this.list=e.data,t.next=10;break;case 7:t.prev=7,t.t0=t["catch"](0),console.log(t.t0);case 10:case"end":return t.stop()}}),t,this,[[0,7]])})));function e(){return t.apply(this,arguments)}return e}(),getPublicSubject:function(){var t=Object(a["a"])(Object(r["a"])().mark((function t(){var e;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Object(o["d"])({courseScheduleId:this.courseScheduleId,type:"HOMEWORK"});case 3:e=t.sent,this.subjectList=e.data,t.next=10;break;case 7:t.prev=7,t.t0=t["catch"](0),console.log(t.t0);case 10:case"end":return t.stop()}}),t,this,[[0,7]])})));function e(){return t.apply(this,arguments)}return e}(),checkSubject:function(t){this.subjectId.length>1&&this.subjectId.shift(),this.getStudentList()}}},l=c,u=(i("2487"),i("2877")),d=Object(u["a"])(l,n,s,!1,null,"61797ea7",null);e["a"]=d.exports},dc1e:function(t,e,i){"use strict";i.d(e,"c",(function(){return r})),i.d(e,"d",(function(){return a})),i.d(e,"a",(function(){return o})),i.d(e,"b",(function(){return c}));var n=i("b775"),s=(i("4328"),"/api-web");function r(t){return Object(n["a"])({url:s+"/studentManage/getOperatingStudents",method:"GET",params:t})}function a(t){return Object(n["a"])({url:s+"/teacherCourseReward/queryPage",method:"GET",params:t})}function o(t){return Object(n["a"])({url:s+"/exercisesSituation/findServiceStudentDetail",method:"GET",params:t})}function c(t){return Object(n["a"])({url:s+"/exercisesSituation/findStudentHomeworkComments",method:"GET",params:t})}}}]);
|