1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0e234567"],{"9d66":function(t,e,i){"use strict";i("c276")},c276:function(t,e,i){},c85a:function(t,e,i){"use strict";i.r(e);var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"m-container"},[i("h2",[i("el-page-header",{attrs:{content:t.studentName},on:{back:t.goBack}})],1),t._v(" "),t._l(t.dataList,(function(e,s){return i("el-card",{key:s+"index",staticClass:"box-card",staticStyle:{width:"1200px"}},[i("p",{staticClass:"timeTitle"},[t._v(t._s(e.monday)+" - "+t._s(e.sunday))]),t._v(" "),t._l(e.data,(function(e,a){return i("div",{key:a,staticClass:"listWrap"},[i("div",{staticClass:"m-row"},[i("div",{staticClass:"textWrap"},[i("p",{staticClass:"title"},[t._v("类型 :")]),t._v(" "),i("p",{staticClass:"contant"},[t._v("\n "+t._s("HOMEWORK"==e.homeworkType?"课堂训练":"课外训练")+"\n ")])]),t._v(" "),i("div",{staticClass:"textWrap"},[i("p",{staticClass:"title"},[t._v("布置时间 :")]),t._v(" "),e.homeworkCreateTime?i("p",{staticClass:"contant",staticStyle:{width:"150px"}},[t._v("\n "+t._s(t._f("dateForMinFormat")(e.homeworkCreateTime))+"\n ")]):t._e()]),t._v(" "),i("div",{staticClass:"textWrap"},[i("p",{staticClass:"title"},[t._v("是否点评 :")]),t._v(" "),i("p",{staticClass:"contant"},[t._v(t._s(e.isReplied?"是":"否"))])])]),t._v(" "),"HOMEWORK"==e.homeworkType?i("div",{staticClass:"m-row"},[i("div",{staticClass:"textWrap"},[i("p",{staticClass:"title"},[t._v("课程组 :")]),t._v(" "),i("p",{staticClass:"contant"},[t._v(t._s(e.groupName))])]),t._v(" "),i("div",{staticClass:"textWrap"},[i("p",{staticClass:"title"},[t._v("课程编号 :")]),t._v(" "),e.courseScheduleId?i("p",{staticClass:"contant",staticStyle:{width:"150px"}},[t._v("\n "+t._s(e.courseScheduleId)+"\n ")]):t._e()]),t._v(" "),i("div",{staticClass:"textWrap"},[i("p",{staticClass:"title"},[t._v("上课时间 :")]),t._v(" "),e.courseStartTime?i("p",{staticClass:"contant",staticStyle:{width:"150px"}},[t._v("\n "+t._s(t._f("dateForMinFormat")(e.courseStartTime))+"\n ")]):t._e()])]):t._e(),t._v(" "),i("div",{staticClass:"m-row"},[i("div",{staticClass:"textWrap"},[i("p",{staticClass:"title"},[t._v("指导老师 :")]),t._v(" "),i("p",{staticClass:"contant"},[t._v(t._s(e.teacherName))])]),t._v(" "),i("div",{staticClass:"textWrap"},[i("p",{staticClass:"title"},[t._v("提交时间 :")]),t._v(" "),e.submitTime?i("p",{staticClass:"contant",staticStyle:{width:"150px"}},[t._v("\n "+t._s(t._f("dateForMinFormat")(e.submitTime))+"\n ")]):t._e()])]),t._v(" "),i("div",{staticClass:"arrowBox",on:{click:function(i){return t.getComment(e,s,a)}}},[i("div",{staticClass:"border"},[i("i",{class:e.up?"el-icon-arrow-up":"el-icon-arrow-down"})])]),t._v(" "),i("div",{staticStyle:{"margin-top":"20px"}},[i("el-collapse-transition",[i("div",{directives:[{name:"show",rawName:"v-show",value:e.up,expression:"item.up"}]},[i("div",{staticClass:"transition-box"},[i("div",{staticClass:"cell"},[i("p",{staticStyle:{width:"80px","padding-top":"4px"}},[t._v("训练内容:")]),t._v(" "),i("el-input",{staticStyle:{"font-size":"16px"},attrs:{type:"textarea",disabled:!0,rows:3,value:e.content,placeholder:"老师布置的训练"}})],1),t._v(" "),i("div",{staticClass:"cell"},[i("p",{staticStyle:{width:"80px"}},[t._v("查看训练:")]),t._v(" "),t._l(e.homeWork,(function(e,s){return i("div",{key:s},[e?i("p",{staticClass:"homeWork",on:{click:function(i){return t.openVideo(e)}}},[t._v("\n 训练"+t._s(s+1)+"\n ")]):t._e()])}))],2)]),t._v(" "),i("div",{staticClass:"msgWrap"},t._l(t.activeCommit,(function(e,s){return i("div",{key:s,staticClass:"msgLi"},[i("div",{staticClass:"info"},[i("p",[t._v(t._s(e.userName))]),t._v(" "),e.createTime?i("p",{staticStyle:{color:"#999"}},[t._v("\n "+t._s(t._f("dateForMinFormat")(e.createTime))+"\n ")]):t._e()]),t._v(" "),"TXT"==e.msgType?i("p",{staticClass:"contant"},[t._v("\n "+t._s(e.content)+"\n ")]):t._e(),t._v(" "),"IMG"==e.msgType?i("el-image",{staticStyle:{width:"100px",height:"100px"},attrs:{fit:"cover",src:e.content,"preview-src-list":[e.content]}}):t._e(),t._v(" "),"VC"==e.msgType?i("p",{staticClass:"contant",staticStyle:{color:"#1890ff"},on:{click:function(i){return t.openAideo(e.content)}}},[t._v("\n 播放语音\n ")]):t._e()],1)})),0)])])],1),t._v(" "),i("el-divider")],1)}))],2)})),t._v(" "),i("el-dialog",{attrs:{title:"查看训练",width:"360px","append-to-body":"",visible:t.workVisible},on:{"update:visible":function(e){t.workVisible=e}}},[i("video",{ref:"dialogVideo",staticStyle:{width:"320px"},attrs:{id:"video",src:t.activeUrl,controls:"controls"}},[t._v("\n 您的浏览器不支持视频播放\n ")])]),t._v(" "),i("el-dialog",{attrs:{title:"查看评论",width:"680px","append-to-body":"",visible:t.comVisible},on:{"update:visible":function(e){t.comVisible=e}}},[i("audio",{ref:"dialogVideo",staticStyle:{width:"640px"},attrs:{id:"audio",controls:"",src:t.comUrl}},[t._v("\n 您的浏览器不支持视频播放\n ")])])],2)},a=[],n=(i("a481"),i("28a5"),i("386d"),i("dc1e")),o={data:function(){return{studentId:null,monday:null,sunday:null,studentName:null,show3:!1,dataList:[],activeCommit:[],activeUrl:null,workVisible:!1,comUrl:null,comVisible:null,Fsearch:null,Frules:null}},mounted:function(){this.init()},activated:function(){this.init()},methods:{init:function(){var t=this;this.studentId=this.$route.query.studentId,this.studentName=this.$route.query.studentName,this.monday=this.$route.query.startTime,this.sunday=this.$route.query.endTime,this.$route.query.search&&(this.Fsearch=this.$route.query.search),this.$route.query.rules&&(this.Frules=this.$route.query.rules),Object(n["a"])({studentId:this.studentId,monday:this.monday,sunday:this.sunday,rows:9999}).then((function(e){if(200==e.code)for(var i in t.dataList=e.data,t.dataList)t.dataList[i].sunday=t.getNowDateAndSunday(t.dataList[i].monday),t.dataList[i].data=t.dataList[i].data.map((function(t){return t.up=!1,t.homeWork=t.attachments.split(","),t}))}))},goBack:function(){this.$store.dispatch("delVisitedViews",this.$route),this.$router.push({path:"/serverIndexManager/serverIndexList"})},getComment:function(t,e,i){var s,a=this;t.up?(t.up=!1,this.$forceUpdate()):(s="EXTRA"==t.homeworkType?1:0,Object(n["b"])({studentCourseHomeworkId:t.studentHomeworkId,extra:s,rows:9999}).then((function(e){if(200==e.code){for(var i in a.activeCommit=e.data.rows,a.dataList)a.dataList[i].data=a.dataList[i].data.map((function(t){return t.up=!1,t}));t.up=!0}})))},openAideo:function(t){this.comUrl=t,this.comVisible=!0},openVideo:function(t){this.activeUrl=t,this.workVisible=!0},getNowDateAndSunday:function(t){var e=new Date(t.replace(/-/g,"/")).getTime(),i=new Date(t),s=7-i.getDay();7==s&&(s=0);var a=e+24*s*60*60*1e3,n=new Date(a),o=n.getFullYear(),r=n.getMonth()+1<10?"0"+(n.getMonth()+1):n.getMonth()+1,c=n.getDate()<10?"0"+n.getDate():n.getDate(),l=o+"-"+r+"-"+c;return l}},watch:{workVisible:function(t){if(!t){var e=document.querySelector("#video");e.pause(),e.currentTime=0,this.activeUrl=null}},comVisible:function(t){if(!t){var e=document.querySelector("#audio");e.pause(),e.currentTime=0,this.comUrl=null}}}},r=o,c=(i("9d66"),i("2877")),l=Object(c["a"])(r,s,a,!1,null,"f9c1437e",null);e["default"]=l.exports},dc1e:function(t,e,i){"use strict";i.d(e,"c",(function(){return n})),i.d(e,"d",(function(){return o})),i.d(e,"a",(function(){return r})),i.d(e,"b",(function(){return c}));var s=i("b775"),a=(i("4328"),"/api-web");function n(t){return Object(s["a"])({url:a+"/studentManage/getOperatingStudents",method:"GET",params:t})}function o(t){return Object(s["a"])({url:a+"/teacherCourseReward/queryPage",method:"GET",params:t})}function r(t){return Object(s["a"])({url:a+"/exercisesSituation/findServiceStudentDetail",method:"GET",params:t})}function c(t){return Object(s["a"])({url:a+"/exercisesSituation/findStudentHomeworkComments",method:"GET",params:t})}}}]);
|