chunk-1181b23e.83d9e241.js 15 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1181b23e"],{"09f4":function(e,t,r){"use strict";r.d(t,"a",(function(){return l})),Math.easeInOutQuad=function(e,t,r,i){return e/=i/2,e<1?r/2*e*e+t:(e--,-r/2*(e*(e-2)-1)+t)};var i=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function a(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);a(s),c<t?i(e):r&&"function"===typeof r&&r()};u()}},"3e15":function(e,t,r){"use strict";r.d(t,"d",(function(){return s})),r.d(t,"a",(function(){return l})),r.d(t,"b",(function(){return o})),r.d(t,"c",(function(){return n}));var i=r("b775"),a=(r("4328"),"/api-web");function s(e){return Object(i["a"])({url:a+"/extracurricularExercises/queryPageList",method:"get",params:e})}function l(e){return Object(i["a"])({url:a+"/extracurricularExercisesReply/queryPageList",method:"get",params:e})}function o(e){return Object(i["a"])({url:a+"/extracurricularExercises/findStudentExtraExerciseDetail",method:"get",params:e})}function n(e){return Object(i["a"])({url:a+"/exercisesSituation/findStudentExtracurricularExercisesSituations",method:"get",params:e})}},"4b4d":function(e,t,r){"use strict";var i=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{},[r("div",{staticClass:"m-core"},[e.show?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.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 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.isRepliedTimely,callback:function(t){e.$set(e.searchForm,"isRepliedTimely",t)},expression:"searchForm.isRepliedTimely"}},[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:"是否有vip",clearable:""},model:{value:e.searchForm.existVipCourse,callback:function(t){e.$set(e.searchForm,"existVipCourse",t)},expression:"searchForm.existVipCourse"}},[r("el-option",{attrs:{label:"是",value:"1"}}),e._v(" "),r("el-option",{attrs:{label:"否",value:"0"}})],1)],1),e._v(" "),r("br"),e._v(" "),r("el-form-item",{attrs:{label:"布置时间"}},[r("el-date-picker",{staticStyle:{width:"400px"},attrs:{type:"daterange","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"布置开始日期","end-placeholder":"布置结束日期","picker-options":{firstDayOfWeek:1}},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("br"),e._v(" "),r("el-form-item",{attrs:{label:"截止时间"}},[r("el-date-picker",{staticStyle:{width:"400px"},attrs:{type:"daterange","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"截止开始日期","end-placeholder":"截止结束日期","picker-options":{firstDayOfWeek:1}},model:{value:e.searchForm.expireDate,callback:function(t){e.$set(e.searchForm,"expireDate","string"===typeof t?t.trim():t)},expression:"searchForm.expireDate"}})],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("重置")]),e._v(" "),r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"export/extraExercisesReplys",expression:"'export/extraExercisesReplys'"}],staticStyle:{background:"#14928a",border:"1px solid #14928a"},attrs:{type:"primary"},on:{click:e.onExport}},[e._v("导出")])],1)],1):e._e(),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:"布置时间",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("dateForMinFormat")(t.row.createTime)))]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"expireDate",label:"截止时间",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("dateForMinFormat")(t.row.expireDate)))]}}])}),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:"teacherName",label:"老师"}}),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",prop:"userId",label:"学生编号"}}),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:"createTime",label:"提交时间",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("dateForMinFormat")(t.row.submitTime)))]}}])}),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",label:"是否有vip",width:"100",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v(e._s(t.row.existVipCourse?"是":"否"))])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"isRepliedTimely",label:"及时评价",width:"100",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v(e._s(t.row.isRepliedTimely?"是":"否"))])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"操作",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"afterWorkList/look",expression:"'afterWorkList/look'"}],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._f("dateForMinFormat")(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,i){return r("el-form-item",{key:i,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)},a=[],s=(r("28a5"),r("386d"),r("333d")),l=r("3e15"),o=r("1cc7"),n=r("bc3a"),c=r.n(n),u=r("5f87"),m={props:["id"],components:{pagination:s["a"]},data:function(){return{searchForm:{search:null,timer:[],status:null,isRepliedTimely:null,isView:null,organIdList:null,expireDate:[],existVipCourse: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,show:!0}},created:function(){},mounted:function(){var e=this;Object(o["Y"])().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.extracurricularExercisesId&&(this.show=!1),this.searchForm.search=this.$route.query.studentId,this.$route.query.startTime&&this.$route.query.endTime&&(this.searchForm.timer=[this.$route.query.startTime,this.$route.query.endTime]),this.getList()},getList:function(){var e=this,t=this.getDate();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()},onExport:function(){var e="/api-web/export/extraExercisesReplys",t=this.getDate(),r={method:"get",headers:{Authorization:Object(u["a"])()},url:e,params:t,responseType:"blob"};this.$confirm("您确定导出列表?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){c()(r).then((function(e){var t=new Blob([e.data],{type:"application/vnd.ms-excel;charset=utf-8"}),r=URL.createObjectURL(t),i=document.createElement("a"),a=new Date,s=a.getFullYear()+""+(a.getMonth()+1)+a.getDate()+a.getHours()+a.getMinutes(),l=s+"课外训练(学员)";i.href=r,i.setAttribute("download",l),document.body.appendChild(i),i.click()}))})).catch((function(){}))},getDate:function(){var e={};return this.searchForm.timer&&this.searchForm.timer.length>0&&(e.submitStartTime=this.searchForm.timer[0],e.submitEndTime=this.searchForm.timer[1]),this.searchForm.expireDate&&this.searchForm.expireDate.length>0&&(e.expireStartDate=this.searchForm.expireDate[0],e.expireEndDate=this.searchForm.expireDate[1]),e.page=this.rules.page,e.rows=this.rules.limit,this.searchForm.teacherId&&(e.teacherId=this.searchForm.teacherId),this.searchForm.search&&(e.search=this.searchForm.search),this.searchForm.status&&(e.status=this.searchForm.status),this.searchForm.isReplied&&(e.isReplied=this.searchForm.isReplied),this.searchForm.isRepliedTimely&&(e.isRepliedTimely=this.searchForm.isRepliedTimely),this.searchForm.isView&&(e.isView=this.searchForm.isView),this.extracurricularExercisesId&&"yes"!=this.extracurricularExercisesId&&(e.extracurricularExercisesId=this.extracurricularExercisesId),this.searchForm.organIdList&&(e.organIdList=this.searchForm.organIdList),this.searchForm.existVipCourse&&(e.existVipCourse=this.searchForm.existVipCourse),e},onReSet:function(){this.searchForm={search:null,timer:[],status:null,isReplied:null,isView:null,organId:null,expireDate:[],existVipCourse: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}},watch:{workVisible:function(e){e||(this.activeSrc="")}}},d=m,h=(r("85be"),r("2877")),p=Object(h["a"])(d,i,a,!1,null,"4d0e6264",null);t["a"]=p.exports},"4ce1":function(e,t,r){},"85be":function(e,t,r){"use strict";r("4ce1")},cde3:function(e,t,r){"use strict";r.r(t);var i=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)},a=[],s=r("4b4d"),l={components:{afterWorkList:s["a"]},data:function(){return{FsearchForm:null,Frules:null,title:"",id:null}},mounted:function(){this.init()},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}})}}},o=l,n=r("2877"),c=Object(n["a"])(o,i,a,!1,null,"7a32ad6c",null);t["default"]=c.exports}}]);