chunk-76f1424b.24af11ce.js 5.8 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-76f1424b"],{a7920:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"m-container"},[e._m(0),e._v(" "),a("div",{staticClass:"m-core"},[a("save-form",{attrs:{inline:!0,model:e.searchForm},on:{submit:e.search,reset:e.onReSet}},[a("el-form-item",[a("el-input",{attrs:{placeholder:"课程编号、名称、乐团名称"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null: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(" "),a("el-form-item",{attrs:{prop:"organId"}},[a("el-select",{staticClass:"multiple",attrs:{filterable:"",clearable:"",placeholder:"请选择分部"},model:{value:e.searchForm.organId,callback:function(t){e.$set(e.searchForm,"organId","string"===typeof t?t.trim():t)},expression:"searchForm.organId"}},e._l(e.organList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",[a("el-select",{staticClass:"organSelect",staticStyle:{"margin-left":"15px",width:"100%"},attrs:{filterable:"",placeholder:"请选择课程类型"},model:{value:e.searchForm.groupType,callback:function(t){e.$set(e.searchForm,"groupType","string"===typeof t?t.trim():t)},expression:"searchForm.groupType"}},e._l(e.courseListType,(function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",[a("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:e.courseTimer,callback:function(t){e.courseTimer="string"===typeof t?t.trim():t},expression:"courseTimer"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{"native-type":"submit",type:"danger"}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{"native-type":"reset",type:"primary"}},[e._v("重置")])],1)],1),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[a("el-table-column",{attrs:{align:"center",prop:"courseScheduleId",label:"课程编号"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"courseScheduleName",label:"课程名称"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"organName",label:"分部"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"groupName",label:"课程组名称"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"布置时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(t.row.createTime?t.row.createTime.substr(0,16):"")+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"actualTeacherName",label:"布置老师"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"expectNum",label:"应交人数"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"completedNum",label:"已交人数"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"repliedNum",label:"已回复数"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studentId",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"studentManage/findStudentCourseHomeworks",expression:"'studentManage/findStudentCourseHomeworks'"}],attrs:{type:"text"},on:{click:function(a){return e.lookDetail(t.row)}}},[e._v("查看")])],1)]}}])})],1),e._v(" "),a("pagination",{attrs:{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}}),e._v(" "),a("el-dialog",{attrs:{title:"作业详情",visible:e.classVisible,width:"1000px"},on:{"update:visible":function(t){e.classVisible=t}}},[e.activeRow?a("studentWork",{attrs:{courseScheduleId:e.activeRow.courseScheduleId}}):e._e()],1)],1)],1)])},l=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("h2",[a("div",{staticClass:"squrt"}),e._v("\n 作业列表\n ")])}],s=(a("386d"),a("bc3a"),a("5f87"),a("333d")),n=(a("3908"),a("92e3")),i=a("1cc7"),o=a("22bb"),c=a("b775"),u=(a("4328"),"/api-web");function p(e){return Object(c["a"])({url:u+"/webCurseHomework/queryHomePage",method:"get",params:e})}var m={components:{pagination:s["a"],studentWork:o["a"]},data:function(){return{courseListType:n["i"],searchForm:{search:null,organId:null,groupType:"MUSIC"},courseTimer:[],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 e=this;Object(i["Y"])().then((function(t){200==t.code&&(e.organList=t.data)})),this.init()},activated:function(){this.init()},methods:{init:function(){this.getList()},getList:function(){var e,t,a,r=this,l=this.searchForm;(null===(e=this.courseTimer)||void 0===e?void 0:e.length)>0?(t=this.courseTimer[0],a=this.courseTimer[1]):(t=null,a=null),l.classStartDate=t,l.classEndDate=a,l.page=this.rules.page,l.rows=this.rules.limit,p(l).then((function(e){200==e.code&&(r.tableList=e.data.rows,r.rules.total=e.data.total)}))},search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.searchForm={search:null,organId:null,groupType:"MUSIC"},this.courseTimer=[],this.search()},lookDetail:function(e){this.activeRow=e,this.classVisible=!0}}},d=m,h=a("2877"),b=Object(h["a"])(d,r,l,!1,null,"148e5de0",null);t["default"]=b.exports}}]);