chunk-29ffaadc.b90b2606.js 7.9 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-29ffaadc"],{"352b":function(t,e,i){"use strict";i("ce08")},c85a:function(t,e,i){"use strict";i.r(e);var a=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,a){return i("el-card",{key:a+"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,s){return i("div",{key:s,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,a,s)}}},[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,a){return i("div",{key:a},[e?i("p",{staticClass:"homeWork",on:{click:function(i){return t.openVideo(e)}}},[t._v("\n 练习"+t._s(a+1)+"\n ")]):t._e()])}))],2)]),t._v(" "),i("div",{staticClass:"msgWrap"},t._l(t.activeCommit,(function(e,a){return i("div",{key:a,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)},s=[],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 a,s=this;t.up?(t.up=!1,this.$forceUpdate()):(a="EXTRA"==t.homeworkType?1:0,Object(n["b"])({studentCourseHomeworkId:t.studentHomeworkId,extra:a,rows:9999}).then((function(e){if(200==e.code){for(var i in s.activeCommit=e.data.rows,s.dataList)s.dataList[i].data=s.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),a=7-i.getDay();7==a&&(a=0);var s=e+24*a*60*60*1e3,n=new Date(s),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("352b"),i("2877")),l=Object(c["a"])(r,a,s,!1,null,"f8a9a50c",null);e["default"]=l.exports},ce08:function(t,e,i){},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 a=i("b775"),s=(i("4328"),"/api-web");function n(t){return Object(a["a"])({url:s+"/studentManage/getOperatingStudents",method:"GET",params:t})}function o(t){return Object(a["a"])({url:s+"/teacherCourseReward/queryPage",method:"GET",params:t})}function r(t){return Object(a["a"])({url:s+"/exercisesSituation/findServiceStudentDetail",method:"GET",params:t})}function c(t){return Object(a["a"])({url:s+"/exercisesSituation/findStudentHomeworkComments",method:"GET",params:t})}}}]);