chunk-43645682.91b10886.js 19 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-43645682"],{"09f4":function(e,t,r){"use strict";r.d(t,"a",(function(){return l})),Math.easeInOutQuad=function(e,t,r,a){return e/=a/2,e<1?r/2*e*e+t:(e--,-r/2*(e*(e-2)-1)+t)};var a=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 s(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function l(e,t,r){var l=s(),o=e-l,n=20,c=0;t="undefined"===typeof t?500:t;var u=function e(){c+=n;var s=Math.easeInOutQuad(c,l,o,t);i(s),c<t?a(e):r&&"function"===typeof r&&r()};u()}},"0eae":function(e,t,r){"use strict";var a=r("5dbb"),i=r.n(a);i.a},"207b":function(e,t,r){"use strict";var a=r("97fe"),i=r.n(a);i.a},"333d":function(e,t,r){"use strict";var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"pagination-container",class:{hidden:e.hidden}},[r("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=[],s=(r("c5f6"),r("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(s["a"])(0,800)},handleCurrentChange:function(e){this.$emit("pagination",{page:e,limit:this.pageSize}),this.autoScroll&&Object(s["a"])(0,800)}}},o=l,n=(r("c0b9"),r("2877")),c=Object(n["a"])(o,a,i,!1,null,"31cb099a",null);t["a"]=c.exports},"3e15":function(e,t,r){"use strict";r.d(t,"c",(function(){return s})),r.d(t,"a",(function(){return l})),r.d(t,"b",(function(){return o}));var a=r("b775"),i=(r("4328"),"/api-web");function s(e){return Object(a["a"])({url:i+"/extracurricularExercises/queryPageList",method:"get",params:e})}function l(e){return Object(a["a"])({url:i+"/extracurricularExercisesReply/queryPageList",method:"get",params:e})}function o(e){return Object(a["a"])({url:i+"/extracurricularExercises/findStudentExtraExerciseDetail",method:"get",params:e})}},"4b4d":function(e,t,r){"use strict";var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{},[r("div",{staticClass:"m-core"},[e.extracurricularExercisesId?e._e():r("el-form",{attrs:{inline:!0,model:e.searchForm}},[r("el-form-item",[r("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(" "),r("el-form-item",{attrs:{prop:"organId"}},[r("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 r("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),r("el-form-item",[r("el-select",{attrs:{placeholder:"是否提交",clearable:""},model:{value:e.searchForm.status,callback:function(t){e.$set(e.searchForm,"status",t)},expression:"searchForm.status"}},[r("el-option",{attrs:{label:"是",value:"1"}}),e._v(" "),r("el-option",{attrs:{label:"否",value:"0"}})],1)],1),e._v(" "),r("el-form-item",[r("el-select",{attrs:{placeholder:"是否回复",clearable:""},model:{value:e.searchForm.isReplied,callback:function(t){e.$set(e.searchForm,"isReplied",t)},expression:"searchForm.isReplied"}},[r("el-option",{attrs:{label:"是",value:"1"}}),e._v(" "),r("el-option",{attrs:{label:"否",value:"0"}})],1)],1),e._v(" "),r("el-form-item",[r("el-select",{attrs:{placeholder:"是否查看",clearable:""},model:{value:e.searchForm.isView,callback:function(t){e.$set(e.searchForm,"isView",t)},expression:"searchForm.isView"}},[r("el-option",{attrs:{label:"是",value:"1"}}),e._v(" "),r("el-option",{attrs:{label:"否",value:"0"}})],1)],1),e._v(" "),r("el-form-item",[r("el-date-picker",{staticStyle:{width:"400px"},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(" "),r("el-form-item",[r("el-button",{attrs:{type:"danger"},on:{click:e.search}},[e._v("搜索")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:e.onReSet}},[e._v("重置")])],1)],1),e._v(" "),r("div",{staticClass:"tableWrap"},[r("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[r("el-table-column",{attrs:{align:"center",prop:"createTime",label:"布置时间"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"title",label:"训练标题"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[t.row.extracurricularExercises?r("div",[e._v(e._s(t.row.extracurricularExercises.title))]):e._e()])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"organName",label:"分部"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"createTime",label:"学生姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[t.row.user?r("div",[e._v(e._s(t.row.user.username))]):e._e()])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"提交作业"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v(e._s(t.row.status?"是":"否"))])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"isReplied",label:"是否回复"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v(e._s(t.row.isReplied?"是":"否"))])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"isView",label:"是否查看"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v(e._s(t.row.isView?"是":"否"))])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[r("el-button",{attrs:{type:"text"},on:{click:function(r){return e.lookDetail(t.row)}}},[e._v("查看")])],1)]}}])})],1),e._v(" "),r("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(" "),r("el-dialog",{attrs:{title:"课外训练详情",visible:e.afterSchoolVisible,width:"600px"},on:{"update:visible":function(t){e.afterSchoolVisible=t}}},[r("el-form",{attrs:{model:e.visibleForm}},[r("el-form-item",{attrs:{label:"老师姓名"}},[r("p",{staticClass:"schoolCell"},[e._v(e._s(e.visibleForm.teacherName))])]),e._v(" "),r("el-form-item",{attrs:{label:"学生姓名"}},[r("el-popover",{attrs:{placement:"top-start",width:"400",trigger:"hover",content:e.visibleForm.studentName}},[r("p",{staticClass:"schoolCell",attrs:{slot:"reference"},slot:"reference"},[e._v(e._s(e.visibleForm.studentName))])])],1),e._v(" "),r("el-form-item",{attrs:{label:"截止时间"}},[r("p",{staticClass:"schoolCell"},[e._v(e._s(e.visibleForm.expiryDate))])]),e._v(" "),r("el-form-item",{attrs:{label:"训练标题"}},[r("p",{staticClass:"schoolCell"},[e._v(e._s(e.visibleForm.title))])]),e._v(" "),r("el-form-item",{attrs:{label:"训练内容"}},[r("el-input",{staticStyle:{width:"400px"},attrs:{disabled:"",type:"textarea",rows:"5"},model:{value:e.visibleForm.content,callback:function(t){e.$set(e.visibleForm,"content",t)},expression:"visibleForm.content"}})],1),e._v(" "),e._l(e.visibleForm.attachments,(function(t,a){return r("el-form-item",{key:a,attrs:{label:"学生上传"}},[t?r("p",{staticClass:"schoolCell",on:{click:function(r){return e.lookWork(t)}}},[e._v("点击播放")]):e._e()])}))],2)],1),e._v(" "),r("el-dialog",{attrs:{title:"查看作业",width:"680px","append-to-body":"",visible:e.workVisible},on:{"update:visible":function(t){e.workVisible=t}}},[r("video",{ref:"dialogVideo",staticStyle:{width:"640px"},attrs:{src:e.activeSrc,controls:"controls"}},[e._v("您的浏览器不支持视频播放")])])],1)},i=[],s=(r("28a5"),r("386d"),r("333d")),l=r("3e15"),o=r("1cc7"),n={props:["id"],components:{pagination:s["a"]},data:function(){return{searchForm:{search:null,timer:[],status:null,isReplied:null,isView:null,organId:null},rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},teacherList:[],tableList:[],organList:[],visibleForm:{expiryDate:"啦啦啦啦",teacherName:"",title:"",studentName:"",content:"",attachments:[]},afterSchoolVisible:!1,workVisible:!1,activeSrc:"",extracurricularExercisesId:null}},created:function(){},mounted:function(){var e=this;Object(o["O"])().then((function(t){200==t.code&&(e.organList=t.data)})),this.init()},activated:function(){this.init()},methods:{init:function(){this.extracurricularExercisesId=this.$route.query.extracurricularExercisesId,this.getList()},getList:function(){var e=this,t={};this.searchForm.timer&&this.searchForm.timer.length>0&&(t.submitStartTime=this.searchForm.timer[0],t.submitEndTime=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.search=this.searchForm.search),this.searchForm.status&&(t.status=this.searchForm.status),this.searchForm.isReplied&&(t.isReplied=this.searchForm.isReplied),this.searchForm.isView&&(t.isView=this.searchForm.isView),this.extracurricularExercisesId&&(t.extracurricularExercisesId=this.extracurricularExercisesId),this.searchForm.organId&&(t.organId=this.searchForm.organId),Object(l["a"])(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(){this.searchForm={search:null,timer:[],status:null,isReplied:null,isView:null,organId:null},this.extracurricularExercisesId=null,this.getList()},lookDetail:function(e){var t=this;Object(l["b"])({studentExerciseId:e.id}).then((function(r){200==r.code&&(t.visibleForm={expiryDate:r.data.expiryDate,teacherName:r.data.teacherName,title:e.extracurricularExercises.title,studentName:r.data.studentName,content:r.data.content,attachments:r.data.attachments.split(",")},t.afterSchoolVisible=!0)}))},lookWork:function(e){this.activeSrc=e,this.workVisible=!0}}},c=n,u=(r("0eae"),r("2877")),m=Object(u["a"])(c,a,i,!1,null,"f9a6591e",null);t["a"]=m.exports},"5dbb":function(e,t,r){},"97fe":function(e,t,r){},c0b9:function(e,t,r){"use strict";var a=r("de4e"),i=r.n(a);i.a},de4e:function(e,t,r){},eebe:function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"m-container"},[e._m(0),e._v(" "),r("div",{staticClass:"m-core"},[r("el-tabs",{attrs:{type:"card"},on:{"tab-click":e.handleClick},model:{value:e.activeIndex,callback:function(t){e.activeIndex="string"===typeof t?t.trim():t},expression:"activeIndex"}},[r("el-tab-pane",{attrs:{label:"课外训练",name:"1"}},[1==e.activeIndex?r("afterSchoolList"):e._e()],1),e._v(" "),r("el-tab-pane",{attrs:{label:"课外训练(学员)",name:"2"}},[2==e.activeIndex?r("afterWorkList"):e._e()],1)],1)],1)])},i=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("h2",[r("div",{staticClass:"squrt"}),e._v("课外训练\n ")])}],s=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{},[r("div",{staticClass:"m-core"},[r("el-form",{attrs:{inline:!0,model:e.searchForm}},[r("el-form-item",[r("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(" "),r("el-form-item",[r("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 r("el-option",{key:t,attrs:{label:e.realName,value:e.id}})})),1)],1),e._v(" "),r("el-form-item",{attrs:{prop:"organId"}},[r("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 r("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),r("el-form-item",[r("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(" "),r("el-form-item",[r("el-button",{attrs:{type:"danger"},on:{click:e.search}},[e._v("搜索")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:e.onReSet}},[e._v("重置")])],1)],1),e._v(" "),r("div",{staticClass:"tableWrap"},[r("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[r("el-table-column",{attrs:{align:"center",prop:"createTime",label:"布置时间"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"title",label:"训练标题"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"organName",label:"分部"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"expireDate",label:"截止时间"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"teacherName",label:"老师姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.teacher?r("div",[e._v("\n "+e._s(t.row.teacher.username)+"\n ")]):e._e()]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[r("el-button",{attrs:{type:"text"},on:{click:function(r){return e.lookDetail(t.row)}}},[e._v("查看")])],1)]}}])})],1),e._v(" "),r("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(" "),r("el-dialog",{attrs:{title:"课外训练详情",visible:e.afterSchoolVisible,width:"600px"},on:{"update:visible":function(t){e.afterSchoolVisible=t}}},[r("el-form",{attrs:{model:e.visibleForm}},[r("el-form-item",{attrs:{label:"布置时间"}},[r("p",{staticClass:"schoolCell"},[e._v(e._s(e.visibleForm.createTime))])]),e._v(" "),r("el-form-item",{attrs:{label:"老师姓名"}},[r("p",{staticClass:"schoolCell"},[e._v(e._s(e.visibleForm.createTime))])]),e._v(" "),r("el-form-item",{attrs:{label:"学生姓名"}},[r("el-popover",{attrs:{placement:"top-start",width:"400",trigger:"hover",content:e.visibleForm.createTime}},[r("p",{staticClass:"schoolCell",attrs:{slot:"reference"},slot:"reference"},[e._v(e._s(e.visibleForm.createTime))])])],1),e._v(" "),r("el-form-item",{attrs:{label:"截止时间"}},[r("p",{staticClass:"schoolCell"},[e._v(e._s(e.visibleForm.createTime))])]),e._v(" "),r("el-form-item",{attrs:{label:"训练标题"}},[r("p",{staticClass:"schoolCell"},[e._v(e._s(e.visibleForm.createTime))])]),e._v(" "),r("el-form-item",{attrs:{label:"训练内容"}},[r("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(" "),r("el-form-item",{attrs:{label:"学生上传"}},[r("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)},l=[],o=(r("386d"),r("333d")),n=r("3e15"),c=r("1cc7"),u={components:{pagination:o["a"]},data:function(){return{searchForm:{search:null,timer:[],teacherId:null,organId:null},rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},teacherList:[],tableList:[],organList:[],visibleForm:{createTime:"啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦"},afterSchoolVisible:!1}},created:function(){},mounted:function(){var e=this;Object(c["jb"])().then((function(t){200==t.code&&(e.teacherList=t.data)})),Object(c["O"])().then((function(t){200==t.code&&(e.organList=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),r=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(r),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.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),this.searchForm.organId&&(t.organId=this.searchForm.organId),Object(n["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(){this.searchForm={search:null,timer:[],teacherId:null,organId:null},this.search()},lookDetail:function(e){var t=JSON.stringify(this.rules),r=JSON.stringify(this.searchForm);this.$router.push({path:"/business/afterSchoolDetail",query:{extracurricularExercisesId:e.id,rules:t,searchForm:r,title:e.title}})}}},m=u,d=(r("207b"),r("2877")),h=Object(d["a"])(m,s,l,!1,null,"13f37de1",null),p=h.exports,f=r("4b4d"),v={components:{afterSchoolList:p,afterWorkList:f["a"]},data:function(){return{activeIndex:"1",extracurricularExercisesId:null}},created:function(){},mounted:function(){this.init()},activated:function(){},methods:{init:function(){this.$route.query.activeIndex?this.activeIndex=this.$route.query.activeIndex:this.activeIndex},handleClick:function(){}}},b=v,g=Object(d["a"])(b,a,i,!1,null,"533db5a8",null);t["default"]=g.exports}}]);