1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-647c8411"],{"07db":function(t,e,n){},"09f4":function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),Math.easeInOutQuad=function(t,e,n,l){return t/=l/2,t<1?n/2*t*t+e:(t--,-n/2*(t*(t-2)-1)+e)};var l=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}();function a(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function r(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function o(t,e,n){var o=r(),i=t-o,s=20,c=0;e="undefined"===typeof e?500:e;var u=function t(){c+=s;var r=Math.easeInOutQuad(c,o,i,e);a(r),c<e?l(t):n&&"function"===typeof n&&n()};u()}},"22bb":function(t,e,n){"use strict";var l=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-form",{attrs:{inline:!0}},[n("el-form-item",{attrs:{label:"应交学生数"}},[n("div",{staticClass:"inputStyle"},[t._v(t._s(t.studentNum))])]),t._v(" "),n("el-form-item",{attrs:{label:"已交学生数"}},[n("div",{staticClass:"inputStyle"},[t._v(t._s(t.homeworkNum))])]),t._v(" "),n("el-form-item",{attrs:{label:"已回复数"}},[n("div",{staticClass:"inputStyle"},[t._v(t._s(t.repliedNum))])])],1),t._v(" "),n("p",{staticClass:"work"},[t._v("老师布置的作业:"+t._s(t.content))]),t._v(" "),n("div",{staticClass:"tableWrap"},[n("el-table",{attrs:{data:t.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[n("el-table-column",{attrs:{align:"center",prop:"username",label:"学生姓名"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"username",label:"学生编号"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"phone",label:"手机号"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"subjectName",label:"声部名称"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"createTime",width:"150",label:"交作业时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v(t._s(t._f("dateForMinFormat")(e.row.createTime)))])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"isView",label:"是否交付"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v(t._s(e.row.isView?"是":"否"))])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"isView",label:"是否查看"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v(t._s(e.row.isView?"是":"否"))])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"isReplied",label:"是否回复"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v(t._s(e.row.isReplied?"是":"否"))])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"查看作业",width:"200px"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",t._l(e.row.urlList,(function(e,l){return n("el-button",{key:l,attrs:{type:"text"},on:{click:function(n){return t.lookWork(e)}}},[t._v(t._s("作业"+(l+1)))])})),1)]}}])})],1),t._v(" "),n("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(" "),n("el-dialog",{attrs:{title:"查看作业",width:"680px","append-to-body":"",visible:t.workVisible},on:{close:t.closeWorkVisible,"update:visible":function(e){t.workVisible=e}}},[n("video",{ref:"dialogVideo",staticStyle:{width:"640px"},attrs:{src:t.activeUrl,controls:"controls"}},[t._v("您的浏览器不支持视频播放")])])],1)},a=[],r=(n("28a5"),n("333d")),o=n("1cc7"),i={props:["courseScheduleId"],components:{pagination:r["a"]},data:function(){return{tableList:[],rules:{limit:10,page:1,total:0},workVisible:!1,studentNum:null,homeworkNum:null,repliedNum:null,activeUrl:null,content:null}},mounted:function(){this.init()},activated:function(){this.init()},methods:{init:function(){var t=this;Object(o["mc"])({courseScheduleId:this.courseScheduleId}).then((function(e){200==e.code&&(t.studentNum=e.data.studentNum,t.homeworkNum=e.data.homeworkNum,t.repliedNum=e.data.repliedNum)})),Object(o["S"])({courseScheduleId:this.courseScheduleId}).then((function(e){200==e.code&&(e.data&&(t.content=e.data.content),t.content?t.content:t.content="还未布置作业")})),this.getList()},getList:function(){var t=this;Object(o["G"])({search:this.courseScheduleId}).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(","):[],t})))}))},lookWork:function(t){this.workVisible=!0,this.activeUrl=t},closeWorkVisible:function(){this.activeUrl=""}}},s=i,c=(n("d847"),n("2877")),u=Object(c["a"])(s,l,a,!1,null,"02f956d5",null);e["a"]=u.exports},a792:function(t,e,n){"use strict";n.r(e);var l=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"m-container"},[t._m(0),t._v(" "),n("div",{staticClass:"m-core"},[n("el-form",{attrs:{inline:!0,model:t.searchForm}},[n("el-form-item",[n("el-input",{attrs:{placeholder:"请输入课程编号、名称"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.search(e)}},model:{value:t.searchForm.search,callback:function(e){t.$set(t.searchForm,"search","string"===typeof e?e.trim():e)},expression:"searchForm.search"}})],1),t._v(" "),n("el-form-item",[n("el-input",{attrs:{placeholder:"请输入乐团名称"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.search(e)}},model:{value:t.searchForm.search,callback:function(e){t.$set(t.searchForm,"search","string"===typeof e?e.trim():e)},expression:"searchForm.search"}})],1),t._v(" "),n("el-form-item",{attrs:{prop:"organId"}},[n("el-select",{staticClass:"multiple",attrs:{filterable:"",clearable:"",placeholder:"请选择分部"},model:{value:t.searchForm.organId,callback:function(e){t.$set(t.searchForm,"organId","string"===typeof e?e.trim():e)},expression:"searchForm.organId"}},t._l(t.organList,(function(t,e){return n("el-option",{key:e,attrs:{label:t.name,value:t.id}})})),1)],1),t._v(" "),n("el-form-item",[n("el-date-picker",{staticStyle:{width:"420px"},attrs:{type:"daterange","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"上课开始日期","end-placeholder":"上课结束日期","picker-options":{firstDayOfWeek:1}},model:{value:t.searchForm.courseTimer,callback:function(e){t.$set(t.searchForm,"courseTimer","string"===typeof e?e.trim():e)},expression:"searchForm.courseTimer"}})],1),t._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"danger"},on:{click:t.search}},[t._v("搜索")]),t._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:t.onReSet}},[t._v("重置")])],1)],1),t._v(" "),n("div",{staticClass:"tableWrap"},[n("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:t.tableList}},[n("el-table-column",{attrs:{align:"center",prop:"studentId",label:"课程编号"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"studentId",label:"课程名称"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"studentId",label:"分部"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"studentId",label:"乐团名称"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"studentId",label:"布置时间"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"studentId",label:"布置老师"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"studentId",label:"应交人数"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"studentId",label:"已交人数"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"studentId",label:"已回复数"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"studentId",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.lookDetail(e.row)}}},[t._v("查看")])],1)]}}])})],1),t._v(" "),n("pagination",{attrs:{total:t.rules.total,page:t.rules.page,limit:t.rules.limit,"page-sizes":t.rules.page_size},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}}),t._v(" "),n("el-dialog",{attrs:{title:"作业详情",visible:t.classVisible,width:"1000px"},on:{"update:visible":function(e){t.classVisible=e}}},[n("studentWork",{attrs:{courseScheduleId:t.activeRow.id}})],1)],1)],1)])},a=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("h2",[n("div",{staticClass:"squrt"}),t._v("作业列表\n ")])}],r=(n("386d"),n("bc3a"),n("5f87"),n("333d")),o=(n("3908"),n("1cc7")),i=n("22bb"),s={components:{pagination:r["a"],studentWork:i["a"]},data:function(){return{searchForm:{search:null,organId:null,courseTimer:null},teacherList:[],tableList:[],organList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},activeRow:null,classVisible:!1}},created:function(){},mounted:function(){var t=this;Object(o["ub"])().then((function(e){200==e.code&&(t.teacherList=e.data)})),Object(o["U"])().then((function(e){200==e.code&&(t.organList=e.data)})),this.init()},methods:{init:function(){},getList:function(){},search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.search()},lookDetail:function(t){}}},c=s,u=n("2877"),d=Object(u["a"])(c,l,a,!1,null,"0182c5f1",null);e["default"]=d.exports},d847:function(t,e,n){"use strict";n("07db")}}]);
|