1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7c4cbc6e"],{"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(),n=e-l,o=20,c=0;t="undefined"===typeof t?500:t;var u=function e(){c+=o;var s=Math.easeInOutQuad(c,l,n,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},"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)}}},n=l,o=(r("c0b9"),r("2877")),c=Object(o["a"])(n,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 n}));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 n(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"),n=r("1cc7"),o={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(n["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=o,u=(r("0eae"),r("2877")),d=Object(u["a"])(c,a,i,!1,null,"f9a6591e",null);t["a"]=d.exports},"5dbb":function(e,t,r){},c0b9:function(e,t,r){"use strict";var a=r("de4e"),i=r.n(a);i.a},cde3: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"},[r("h2",[r("el-page-header",{attrs:{content:e.title},on:{back:e.goBack}})],1),e._v(" "),r("afterWorkList")],1)},i=[],s=r("4b4d"),l={components:{afterWorkList:s["a"]},data:function(){return{FsearchForm:null,Frules:null,title:"",id:null}},created:function(){this.init()},mounted:function(){},activated:function(){this.init()},methods:{init:function(){this.$route.query.searchForm&&(this.FsearchForm=this.$route.query.searchForm),this.$route.query.rules&&(this.Frules=this.$route.query.rules),this.title=this.$route.query.title,this.id=this.$route.query.extracurricularExercisesId},goBack:function(){this.$router.push({path:"/business/afterSchoolManager",query:{rules:this.Frules,searchForm:this.FsearchForm}})}}},n=l,o=r("2877"),c=Object(o["a"])(n,a,i,!1,null,"58f07ad8",null);t["default"]=c.exports},de4e:function(e,t,r){}}]);
|