| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0b985ba7"],{"09f4":function(e,t,a){"use strict";a.d(t,"a",(function(){return l})),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 i(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function n(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function l(e,t,a){var l=n(),s=e-l,o=20,c=0;t="undefined"===typeof t?500:t;var u=function e(){c+=o;var n=Math.easeInOutQuad(c,l,s,t);i(n),c<t?r(e):a&&"function"===typeof a&&a()};u()}},"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)},i=[],n=(a("c5f6"),a("09f4")),l={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(n["a"])(0,800)},handleCurrentChange:function(e){this.$emit("pagination",{page:e,limit:this.pageSize}),this.autoScroll&&Object(n["a"])(0,800)}}},s=l,o=(a("c0b9"),a("2877")),c=Object(o["a"])(s,r,i,!1,null,"31cb099a",null);t["a"]=c.exports},"3e15":function(e,t,a){"use strict";a.d(t,"c",(function(){return n})),a.d(t,"a",(function(){return l})),a.d(t,"b",(function(){return s}));var r=a("b775"),i=(a("4328"),"/api-web");function n(e){return Object(r["a"])({url:i+"/extracurricularExercises/queryPageList",method:"get",params:e})}function l(e){return Object(r["a"])({url:i+"/extracurricularExercisesReply/queryPageList",method:"get",params:e})}function s(e){return Object(r["a"])({url:i+"/extracurricularExercises/findStudentExtraExerciseDetail",method:"get",params:e})}},"9a41":function(e,t,a){},c0b9:function(e,t,a){"use strict";var r=a("de4e"),i=a.n(r);i.a},c1fb: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",{attrs:{inline:!0,model:e.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",{attrs:{placeholder:"老师姓名",clearable:"",filterable:""},model:{value:e.searchForm.teacherId,callback:function(t){e.$set(e.searchForm,"teacherId",t)},expression:"searchForm.teacherId"}},e._l(e.teacherList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.realName,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",[a("el-date-picker",{staticStyle:{width:"410px"},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","string"===typeof t?t.trim():t)},expression:"searchForm.timer"}})],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.tableList}},[a("el-table-column",{attrs:{align:"center",prop:"createTime",label:"布置时间"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"title",label:"训练标题"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"expireDate",label:"截止时间"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"teacherName",label:"老师姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.teacher?a("div",[e._v("\n "+e._s(t.row.teacher.username)+"\n ")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.lookDetail(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),e._v(" "),a("el-dialog",{attrs:{title:"课外训练详情",visible:e.afterSchoolVisible,width:"600px"},on:{"update:visible":function(t){e.afterSchoolVisible=t}}},[a("el-form",{attrs:{model:e.visibleForm}},[a("el-form-item",{attrs:{label:"布置时间"}},[a("p",{staticClass:"schoolCell"},[e._v(e._s(e.visibleForm.createTime))])]),e._v(" "),a("el-form-item",{attrs:{label:"老师姓名"}},[a("p",{staticClass:"schoolCell"},[e._v(e._s(e.visibleForm.createTime))])]),e._v(" "),a("el-form-item",{attrs:{label:"学生姓名"}},[a("el-popover",{attrs:{placement:"top-start",width:"400",trigger:"hover",content:e.visibleForm.createTime}},[a("p",{staticClass:"schoolCell",attrs:{slot:"reference"},slot:"reference"},[e._v(e._s(e.visibleForm.createTime))])])],1),e._v(" "),a("el-form-item",{attrs:{label:"截止时间"}},[a("p",{staticClass:"schoolCell"},[e._v(e._s(e.visibleForm.createTime))])]),e._v(" "),a("el-form-item",{attrs:{label:"训练标题"}},[a("p",{staticClass:"schoolCell"},[e._v(e._s(e.visibleForm.createTime))])]),e._v(" "),a("el-form-item",{attrs:{label:"训练内容"}},[a("el-input",{staticStyle:{width:"400px"},attrs:{disabled:"",type:"textarea",rows:"5"},model:{value:e.visibleForm.createTime,callback:function(t){e.$set(e.visibleForm,"createTime",t)},expression:"visibleForm.createTime"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"学生上传"}},[a("el-input",{staticStyle:{width:"400px"},attrs:{disabled:""},model:{value:e.visibleForm.createTime,callback:function(t){e.$set(e.visibleForm,"createTime",t)},expression:"visibleForm.createTime"}})],1)],1)],1)],1)},i=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("h2",[a("div",{staticClass:"squrt"}),e._v("课外训练\n ")])}],n=(a("386d"),a("333d")),l=a("3e15"),s=a("1cc7"),o={components:{pagination:n["a"]},data:function(){return{searchForm:{search:null,timer:[],teacherId:null},rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},teacherList:[],tableList:[],visibleForm:{createTime:"啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦"},afterSchoolVisible:!1}},created:function(){},mounted:function(){var e=this;Object(s["jb"])().then((function(t){200==t.code&&(e.teacherList=t.data)})),this.init()},activated:function(){this.init()},methods:{init:function(){var e=new Date,t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())).toISOString().slice(0,10),a=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())).toISOString().slice(0,10);this.searchForm.timer=[],this.searchForm.timer.push(t),this.searchForm.timer.push(a),this.getList()},getList:function(){var e=this,t={};this.searchForm.timer&&this.searchForm.timer.length>0&&(t.assignStartTime=this.searchForm.timer[0],t.assignEndTime=this.searchForm.timer[1]),t.page=this.rules.page,t.rows=this.rules.limit,this.searchForm.teacherId&&(t.teacherId=this.searchForm.teacherId),this.searchForm.search&&(t.title=this.searchForm.search),Object(l["c"])(t).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(){},lookDetail:function(e){console.log(e.id),this.$router.push({path:"/business/afterWorkList",query:{extracurricularExercisesId:e.id}})}}},c=o,u=(a("dcc9"),a("2877")),m=Object(u["a"])(c,r,i,!1,null,"06729c38",null);t["default"]=m.exports},dcc9:function(e,t,a){"use strict";var r=a("9a41"),i=a.n(r);i.a},de4e:function(e,t,a){}}]);
|