chunk-5077f997.3129a7eb.js 8.7 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5077f997"],{"09f4":function(e,t,a){"use strict";a.d(t,"a",(function(){return s})),Math.easeInOutQuad=function(e,t,a,n){return e/=n/2,e<1?a/2*e*e+t:(e--,-a/2*(e*(e-2)-1)+t)};var n=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function l(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function r(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function s(e,t,a){var s=r(),o=e-s,i=20,u=0;t="undefined"===typeof t?500:t;var c=function e(){u+=i;var r=Math.easeInOutQuad(u,s,o,t);l(r),u<t?n(e):a&&"function"===typeof a&&a()};c()}},"333d":function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"pagination-container",class:{hidden:e.hidden}},[a("el-pagination",e._b({attrs:{"current-page":e.currentPage,"page-size":e.pageSize,layout:e.layout,"page-sizes":e.pageSizes,total:e.total},on:{"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"update:pageSize":function(t){e.pageSize=t},"update:page-size":function(t){e.pageSize=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}},"el-pagination",e.$attrs,!1))],1)},l=[],r=(a("c5f6"),a("09f4")),s={name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:1},limit:{type:Number,default:10},pageSizes:{type:Array,default:function(){return[10,20,30,50]}},layout:{type:String,default:"total,sizes,prev, pager, next, jumper"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{currentPage:{get:function(){return this.page},set:function(e){this.$emit("update:page",e)}},pageSize:{get:function(){return this.limit},set:function(e){this.$emit("update:limit",e)}}},methods:{handleSizeChange:function(e){this.$emit("pagination",{page:this.currentPage,limit:e}),this.autoScroll&&Object(r["a"])(0,800)},handleCurrentChange:function(e){this.$emit("pagination",{page:e,limit:this.pageSize}),this.autoScroll&&Object(r["a"])(0,800)}}},o=s,i=(a("c0b9"),a("2877")),u=Object(i["a"])(o,n,l,!1,null,"31cb099a",null);t["a"]=u.exports},4063:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"m-container"},[a("div",{staticClass:"m-core"},[a("el-form",{staticClass:"searchForm",attrs:{inline:!0},model:{value:e.searchForm,callback:function(t){e.searchForm=t},expression:"searchForm"}},[a("el-form-item",[a("el-select",{staticClass:"multiple",attrs:{filterable:"",clearable:"",placeholder:"请选择分部"},model:{value:e.searchForm.organIdList,callback:function(t){e.$set(e.searchForm,"organIdList",t)},expression:"searchForm.organIdList"}},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-input",{attrs:{placeholder:"乐团名或VIP课名"},model:{value:e.searchForm.search,callback:function(t){e.$set(e.searchForm,"search",t)},expression:"searchForm.search"}})],1),e._v(" "),a("el-form-item",[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"课程类型"},model:{value:e.searchForm.courseType,callback:function(t){e.$set(e.searchForm,"courseType",t)},expression:"searchForm.courseType"}},[a("el-option",{attrs:{label:"基础技能课",value:"HIGH"}}),e._v(" "),a("el-option",{attrs:{label:"综合课",value:"COMPREHENSIVE"}}),e._v(" "),a("el-option",{attrs:{label:"课堂课",value:"CLASSROOM"}}),e._v(" "),a("el-option",{attrs:{label:"合奏课",value:"MIX"}}),e._v(" "),a("el-option",{attrs:{label:"集训合奏课",value:"TRAINING_MIX"}}),e._v(" "),a("el-option",{attrs:{label:"集训单技课",value:"TRAINING_SINGLE"}}),e._v(" "),a("el-option",{attrs:{label:"单技课",value:"SINGLE"}})],1)],1),e._v(" "),a("el-form-item",[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"课程状态"},model:{value:e.searchForm.courseStatus,callback:function(t){e.$set(e.searchForm,"courseStatus",t)},expression:"searchForm.courseStatus"}},[a("el-option",{attrs:{label:"未开始",value:"NOT_START"}}),e._v(" "),a("el-option",{attrs:{label:"进行中",value:"UNDERWAY"}}),e._v(" "),a("el-option",{attrs:{label:"已结束",value:"OVER"}})],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":"结束日期"},model:{value:e.searchForm.timer,callback:function(t){e.$set(e.searchForm,"timer",t)},expression:"searchForm.timer"}})],1),e._v(" "),a("el-form-item",[a("div",{staticClass:"searchBtn",on:{click:e.search}},[e._v("搜索")])])],1),e._v(" "),a("div",{staticClass:"btnWraps"}),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{align:"center",width:"200px",label:"时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.startClassTime?t.row.startClassTime.substr(0,16):"")+"-"+e._s(t.row.endClassTime?t.row.endClassTime.substr(11,5):"")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"classGroupName",label:"班级名称"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"name",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(e._f("coursesType")(t.row.type))+"\n ")])]}}])}),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(e._f("teachMode")(t.row.teachMode))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"schoolName",label:"教学点"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"courseScheduleStatus",label:"课程状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("coursesStatus")(t.row.status))+"\n ")])]}}])}),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(e._f("attendanceType")(t.row.isSignIn))+"\n ")])]}}])}),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(e._f("attendanceOutType")(t.row.isSignOut))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"isCallNames",label:"是否点名"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.isCallNames?"是":"否")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"teacherName",label:"指导老师"}})],1),e._v(" "),a("pagination",{attrs:{total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"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}})],1)],1)])},l=[],r=(a("386d"),a("333d")),s=a("1cc7"),o=new Date;o=o.getFullYear()+"-"+(o.getMonth()+1)+"-"+o.getDate();var i={data:function(){return{timerVisible:!1,courseVisible:!1,searchForm:{organIdList:null,courseStatus:null,courseType:null,timer:[o,o],class:null,search:null},tableList:[],searchLsit:[],organList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},teacherList:[]}},components:{pagination:r["a"]},mounted:function(){var e=this;this.getList(),Object(s["T"])().then((function(t){200==t.code&&(e.teacherList=t.data)})),Object(s["F"])().then((function(t){200==t.code&&(e.organList=t.data)}))},methods:{search:function(){this.rules.page=1,this.getList()},getList:function(){var e=this,t=this.searchForm;t.timer||(t.timer=[]);var a={courseStatus:t.courseStatus||null,courseType:t.courseType||null,startTime:t.timer[0]||null,endTime:t.timer[1]||null,page:this.rules.page,rows:this.rules.limit,classGroupId:t.class||null,organIdList:t.organIdList||null,search:t.search||null};Object(s["xb"])(a).then((function(t){200==t.code&&(e.tableList=t.data.rows,e.rules.total=t.data.total)}))}}},u=i,c=(a("ad40"),a("2877")),p=Object(c["a"])(u,n,l,!1,null,null,null);t["default"]=p.exports},"85d0":function(e,t,a){},ad40:function(e,t,a){"use strict";var n=a("85d0"),l=a.n(n);l.a},c0b9:function(e,t,a){"use strict";var n=a("de4e"),l=a.n(n);l.a},de4e:function(e,t,a){}}]);