chunk-de5c2e9a.586b9395.js 7.6 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-de5c2e9a"],{"09f4":function(e,t,a){"use strict";a.d(t,"a",(function(){return o})),Math.easeInOutQuad=function(e,t,a,r){return e/=r/2,e<1?a/2*e*e+t:(e--,-a/2*(e*(e-2)-1)+t)};var r=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function n(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function i(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function o(e,t,a){var o=i(),s=e-o,l=20,u=0;t="undefined"===typeof t?500:t;var c=function e(){u+=l;var i=Math.easeInOutQuad(u,o,s,t);n(i),u<t?r(e):a&&"function"===typeof a&&a()};c()}},"2de7":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("el-form",{staticClass:"searchForm",attrs:{inline:!0},model:{value:e.searchForm,callback:function(t){e.searchForm="string"===typeof t?t.trim():t},expression:"searchForm"}},[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",[a("el-select",{staticClass:"multiple",attrs:{filterable:"",clearable:"",placeholder:"请选择分部"},model:{value:e.searchForm.organIdList,callback:function(t){e.$set(e.searchForm,"organIdList","string"===typeof t?t.trim():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-select",{attrs:{clearable:"",filterable:"",placeholder:"指导老师"},model:{value:e.searchForm.teacherId,callback:function(t){e.$set(e.searchForm,"teacherId","string"===typeof t?t.trim():t)},expression:"searchForm.teacherId"}},e._l(e.teacherList,(function(e,t){return a("el-option",{key:t,attrs:{value:e.id,label:e.realName}})})),1)],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"danger"},on:{click:e.search}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.onReSet}},[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.tableData}},[a("el-table-column",{attrs:{align:"center",prop:"id",label:"课程编号"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"name",label:"课程组名称"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"organName",label:"所属分部"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"teacherName",label:"指导老师"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studentNum",label:"班级人数"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"当前课次"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("p",[e._v(e._s(t.row.currentClassTimes+"/"+t.row.totalClassTimes))])])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"coursesStartDate",label:"开课时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("p",[e._v(e._s(e._f("formatTimer")(t.row.coursesStartDate)))])])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"coursesExpireDate",label:"结束时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("p",[e._v(e._s(e._f("formatTimer")(t.row.coursesExpireDate)))])])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",width:"150px",fixed:"right",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.lookCrouse(t.row)}}},[e._v("查看")])],1)]}}])})],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)])},n=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("h2",[a("div",{staticClass:"squrt"}),e._v("陪练课列表\n ")])}],i=(a("386d"),a("333d")),o=a("1cc7"),s={components:{pagination:i["a"]},data:function(){return{searchForm:{search:null,status:null,teacherId:null,organIdList:null},organList:[],statusList:[],teacherList:[],tableData:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},created:function(){this.$route.query.searchForm&&(this.$route.query.searchForm instanceof Object?this.searchForm=this.$route.query.searchForm:this.searchForm=JSON.parse(this.$route.query.searchForm)),this.$route.query.rules&&(this.$route.query.rules instanceof Object?this.rules=this.$route.query.rules:this.rules=JSON.parse(this.$route.query.rules)),this.init()},mounted:function(){},activated:function(){this.init()},methods:{init:function(){var e=this;Object(o["J"])().then((function(t){200==t.code&&(e.organList=t.data)})),Object(o["X"])().then((function(t){200==t.code&&(e.teacherList=t.data)})),this.getList()},search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.searchForm={search:null,status:null,teacherId:null,organIdList:null},this.search()},getList:function(){var e=this,t={search:this.searchForm.search||null,teacherId:this.searchForm.teacherId||null,organId:this.searchForm.organIdList||null,page:this.rules.page,rows:this.rules.limit};Object(o["qb"])(t).then((function(t){200==t.code&&(e.tableData=t.data.rows,e.rules.total=t.data.total)}))},lookCrouse:function(e){console.log(e);var t=JSON.stringify(this.rules),a=JSON.stringify(this.searchForm);this.$router.push({path:"/business/accompanys",query:{id:e.id,rules:t,searchForm:a}})}}},l=s,u=a("2877"),c=Object(u["a"])(l,r,n,!1,null,null,null);t["default"]=c.exports},"333d":function(e,t,a){"use strict";var r=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)},n=[],i=(a("c5f6"),a("09f4")),o={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(i["a"])(0,800)},handleCurrentChange:function(e){this.$emit("pagination",{page:e,limit:this.pageSize}),this.autoScroll&&Object(i["a"])(0,800)}}},s=o,l=(a("c0b9"),a("2877")),u=Object(l["a"])(s,r,n,!1,null,"31cb099a",null);t["a"]=u.exports},c0b9:function(e,t,a){"use strict";var r=a("de4e"),n=a.n(r);n.a},de4e:function(e,t,a){}}]);