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:{clearable:"",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.selects.branchs,(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.searchForm.courseTimer,callback:function(t){e.$set(e.searchForm,"courseTimer","string"===typeof t?t.trim():t)},expression:"searchForm.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("5530")),n=a("15fd"),i=(a("bc3a"),a("5f87"),a("333d")),o=(a("3908"),a("92e3")),c=(a("1cc7"),a("22bb")),u=a("b775"),p=(a("4328"),"/api-web");function m(e){return Object(u["a"])({url:p+"/webCurseHomework/queryHomePage",method:"get",params:e})}var d=a("ed08"),b={components:{pagination:i["a"],studentWork:c["a"]},data:function(){return{courseListType:o["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(){this.$store.dispatch("setBranchs"),this.init()},activated:function(){this.init()},methods:{init:function(){this.getList()},getList:function(){var e=this,t=this.searchForm,a=t.courseTimer,r=Object(n["a"])(t,["courseTimer"]),l=Object(s["a"])(Object(s["a"])({},r),{},{page:this.rules.page,rows:this.rules.limit},Object(d["a"])(a,["classStartDate","classEndDate"]));m(l).then((function(t){200==t.code&&(e.tableList=t.data.rows,e.rules.total=t.data.total)}))},search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.searchForm={search:null,organId:null,groupType:"MUSIC",courseTimer:[]},this.search()},lookDetail:function(e){this.activeRow=e,this.classVisible=!0}}},h=b,f=a("2877"),g=Object(f["a"])(h,r,l,!1,null,"5010899b",null);t["default"]=g.exports}}]);
|