chunk-4b958f9f.69fa5ed7.js 33 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4b958f9f"],{"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 s(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 l(e,t,r){var l=i(),o=e-l,n=20,c=0;t="undefined"===typeof t?500:t;var u=function e(){c+=n;var i=Math.easeInOutQuad(c,l,o,t);s(i),c<t?a(e):r&&"function"===typeof r&&r()};u()}},"275e":function(e,t,r){"use strict";var a=r("ded6"),s=r.n(a);s.a},"3e15":function(e,t,r){"use strict";r.d(t,"d",function(){return i}),r.d(t,"a",function(){return l}),r.d(t,"b",function(){return o}),r.d(t,"c",function(){return n});var a=r("b775"),s=(r("4328"),"/api-web");function i(e){return Object(a["a"])({url:s+"/extracurricularExercises/queryPageList",method:"get",params:e})}function l(e){return Object(a["a"])({url:s+"/extracurricularExercisesReply/queryPageList",method:"get",params:e})}function o(e){return Object(a["a"])({url:s+"/extracurricularExercises/findStudentExtraExerciseDetail",method:"get",params:e})}function n(e){return Object(a["a"])({url:s+"/exercisesSituation/findStudentExtracurricularExercisesSituations",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.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,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)},s=[],i=(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:i["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["U"])().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),a=document.createElement("a"),s=new Date,i=s.getFullYear()+""+(s.getMonth()+1)+s.getDate()+s.getHours()+s.getMinutes(),l=i+"课外训练(学员)";a.href=r,a.setAttribute("download",l),document.body.appendChild(a),a.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="")}}},h=m,d=(r("ac7b"),r("2877")),p=Object(d["a"])(h,a,s,!1,null,"c4590f1e",null);t["a"]=p.exports},"5c41":function(e,t,r){},ac7b:function(e,t,r){"use strict";var a=r("5c41"),s=r.n(a);s.a},ded6: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"}},[e.activeStatus[0]?r("afterSchoolList"):e._e()],1),e._v(" "),r("el-tab-pane",{attrs:{label:"课外训练(学员)",name:"2"}},[e.activeStatus[1]?r("afterWorkList"):e._e()],1)],1)],1)])},s=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("h2",[r("div",{staticClass:"squrt"}),e._v("课外训练\n ")])}],i=(r("7f7f"),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.listSearch,callback:function(t){e.$set(e.searchForm,"listSearch","string"===typeof t?t.trim():t)},expression:"searchForm.listSearch"}})],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:"organIdList"}},[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-date-picker",{staticStyle:{width:"410px"},attrs:{type:"daterange","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"分配开始日期","end-placeholder":"分配结束日期","picker-options":{firstDayOfWeek:1}},model:{value:e.searchForm.listTimer,callback:function(t){e.$set(e.searchForm,"listTimer","string"===typeof t?t.trim():t)},expression:"searchForm.listTimer"}})],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:"布置时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("dateForMinFormat")(t.row.createTime))+"\n ")]}}])}),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:"截止时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("dateForMinFormat")(t.row.expireDate))+"\n ")]}}])}),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",{directives:[{name:"permission",rawName:"v-permission",value:"afterSchollList/look",expression:"'afterSchollList/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.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:{listSearch:null,listTimer:[],teacherId:null,organIdList: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["ub"])().then(function(t){200==t.code&&(e.teacherList=t.data)}),Object(c["U"])().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.listTimer=[],this.searchForm.listTimer.push(t),this.searchForm.listTimer.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.listTimer&&this.searchForm.listTimer.length>0&&(t.assignStartTime=this.searchForm.listTimer[0],t.assignEndTime=this.searchForm.listTimer[1]),t.page=this.rules.page,t.rows=this.rules.limit,this.searchForm.teacherId&&(t.teacherId=this.searchForm.teacherId),this.searchForm.listSearch&&(t.title=this.searchForm.listSearch),this.searchForm.organIdList&&(t.organIdList=this.searchForm.organIdList),Object(n["d"])(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={listSearch:null,listTimer:[],teacherId:null,organIdList: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,h=(r("275e"),r("2877")),d=Object(h["a"])(m,i,l,!1,null,"552407ec",null),p=d.exports,v=r("4b4d"),f=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"m-core"},[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.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.actualExercisesNumIsAchieve,callback:function(t){e.$set(e.searchForm,"actualExercisesNumIsAchieve",t)},expression:"searchForm.actualExercisesNumIsAchieve"}},[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.exercisesReplyNumIsAchieve,callback:function(t){e.$set(e.searchForm,"exercisesReplyNumIsAchieve",t)},expression:"searchForm.exercisesReplyNumIsAchieve"}},[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.exercisesMessageNumIsAchieve,callback:function(t){e.$set(e.searchForm,"exercisesMessageNumIsAchieve",t)},expression:"searchForm.exercisesMessageNumIsAchieve"}},[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.exercisesMessageTimelyNumIsAchieve,callback:function(t){e.$set(e.searchForm,"exercisesMessageTimelyNumIsAchieve",t)},expression:"searchForm.exercisesMessageTimelyNumIsAchieve"}},[r("el-option",{attrs:{label:"符合预期",value:"1"}}),e._v(" "),r("el-option",{attrs:{label:"不符合预期",value:"0"}})],1)],1),e._v(" "),r("el-form-item",{attrs:{label:"周次选择"}},[r("el-date-picker",{staticStyle:{width:"400px"},attrs:{type:"daterange","picker-options":{firstDayOfWeek:1},"value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.getWeekTime},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("重置")]),e._v(" "),r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"export/exercisesSituations",expression:"'export/exercisesSituations'"}],staticStyle:{background:"#14928a",border:"1px solid #14928a"},attrs:{type:"primary"},on:{click:e.onExport}},[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:"studentId",label:"学员编号"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"studentName",label:"学生姓名"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"organName",label:"所属分部"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"teacherName",label:"指导老师"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"",label:"预期安排"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v(e._s(t.row.expectExercisesNum+"次"))])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"",label:"实际安排"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v(e._s(t.row.actualExercisesNum+"次"))])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"",label:"提交次数"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v(e._s(t.row.exercisesReplyNum+"次"))])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"",label:"评价次数"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v(e._s(t.row.exercisesMessageNum+"次"))])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"",label:"及时评价次数"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v(e._s(t.row.exercisesMessageTimelyNum+"次"))])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.actualExercisesNum>0?r("div",[r("el-button",{attrs:{type:"text"},on:{click:function(r){return e.lookDetail(t.row)}}},[e._v("查看")])],1):e._e()]}}])})],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)])},b=[],g=(r("a481"),r("bc3a")),_=r.n(g),x=r("5f87"),y=r("3908"),F=new Date;F=F.getFullYear()+"-"+(F.getMonth()+1)+"-"+F.getDate();var k={components:{pagination:o["a"]},data:function(){return{tableList:[],searchForm:{timer:[],search:null,organIdList:null,actualExercisesNumIsAchieve:null,exercisesMessageNumIsAchieve:null,exercisesMessageTimelyNumIsAchieve:null,exercisesReplyNumIsAchieve:null,teacherId:null,existVipCourse:null},organList:[],teacherList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},created:function(){},mounted:function(){var e=this;this.searchForm.timer=[],this.searchForm.timer.push(this.getNowDateAndMonday(F)),this.searchForm.timer.push(this.getNowDateAndSunday(F)),Object(c["ub"])().then(function(t){200==t.code&&(e.teacherList=t.data)}),Object(c["U"])().then(function(t){200==t.code&&(e.organList=t.data)}),this.init()},activated:function(){this.init()},methods:{init:function(){this.$route.query.teacherId&&(this.searchForm.teacherId=1*this.$route.query.teacherId),this.getList()},getDate:function(){var e={search:this.searchForm.search||null,actualExercisesNumIsAchieve:this.searchForm.actualExercisesNumIsAchieve||null,exercisesMessageNumIsAchieve:this.searchForm.exercisesMessageNumIsAchieve||null,exercisesMessageTimelyNumIsAchieve:this.searchForm.exercisesMessageTimelyNumIsAchieve||null,exercisesReplyNumIsAchieve:this.searchForm.exercisesReplyNumIsAchieve||null,organIdList:this.searchForm.organIdList||null,teacherId:this.searchForm.teacherId,page:this.rules.page,rows:this.rules.limit,existVipCourse:this.searchForm.existVipCourse||null};return this.searchForm.timer&&this.searchForm.timer.length>0?(e.monday=this.searchForm.timer[0],e.sunday=this.searchForm.timer[1],e):(this.$message.error("请选择时间段"),!1)},getList:function(){var e=this,t=this.getDate();t&&Object(n["c"])(t).then(function(t){200==t.code&&(e.tableList=t.data.rows,e.rules.total=t.data.total)})},onReSet:function(){this.searchForm={timer:[],search:null,actualExercisesNumIsAchieve:null,exercisesMessageNumIsAchieve:null,exercisesMessageTimelyNumIsAchieve:null,exercisesReplyNumIsAchieve:null,teacherId:null,existVipCourse:null},this.search()},onExport:function(){var e=this,t="/api-web/export/exercisesSituations",r=this.getDate(),a={method:"get",headers:{Authorization:Object(x["a"])()},url:t,params:r,responseType:"blob"};this.$confirm("您确定导出列表?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){y["a"].startLoading(),_()(a).then(function(t){var r=new Blob([t.data],{type:"application/vnd.ms-excel;charset=utf-8"}),a=new Response(r).text();a.then(function(t){if(-1!=t.indexOf("code")){var a=JSON.parse(t);e.$message.error(a.msg)}else{var s=URL.createObjectURL(r),i=document.createElement("a"),l=new Date,o=l.getFullYear()+""+(l.getMonth()+1)+l.getDate()+l.getHours()+l.getMinutes(),n=o+"课外训练(教学)";i.href=s,i.setAttribute("download",n),document.body.appendChild(i),i.click()}}),y["a"].endLoading()}).catch(function(t){e.$message.error("导出数据失败,请联系管理员"),y["a"].endLoading()})}).catch(function(){})},search:function(){this.rules.page=1,this.getList()},getNowDateAndMonday:function(e){var t=new Date(e.replace(/-/g,"/")).getTime(),r=new Date(e);0==r.getDay()&&(t-=6048e5);var a=t-24*(r.getDay()-1)*60*60*1e3,s=new Date(a),i=s.getFullYear(),l=s.getMonth()+1<10?"0"+(s.getMonth()+1):s.getMonth()+1,o=s.getDate()<10?"0"+s.getDate():s.getDate(),n=i+"-"+l+"-"+o;return n},getNowDateAndSunday:function(e){var t=new Date(e.replace(/-/g,"/")).getTime(),r=new Date(e),a=7-r.getDay();7==a&&(a=0);var s=t+24*a*60*60*1e3,i=new Date(s),l=i.getFullYear(),o=i.getMonth()+1<10?"0"+(i.getMonth()+1):i.getMonth()+1,n=i.getDate()<10?"0"+i.getDate():i.getDate(),c=l+"-"+o+"-"+n;return c},getWeekTime:function(e){if(e&&e.length>0){var t=this.getNowDateAndMonday(e[0]),r=this.getNowDateAndSunday(e[1]);this.searchForm.timer.splice(0,1,t),this.searchForm.timer.splice(1,1,r)}},lookDetail:function(e){var t=JSON.stringify(this.rules),r=JSON.stringify(this.searchForm);this.$router.push({path:"/business/afterSchoolDetail",query:{studentId:e.studentId,rules:t,searchForm:r,title:e.studentName,extracurricularExercisesId:"yes",startTime:this.searchForm.timer[0],endTime:this.searchForm.timer[1]}})}}},w=k,I=Object(h["a"])(w,f,b,!1,null,"740222d6",null),S=I.exports,T={components:{afterSchoolList:p,afterWorkList:v["a"],afterSchoolTeach:S},data:function(){return{activeIndex:"1",extracurricularExercisesId:null,activeStatus:[!0,!1]}},created:function(){},mounted:function(){this.init()},activated:function(){this.init()},methods:{init:function(){this.$route.query.activeIndex?this.activeIndex=this.$route.query.activeIndex:this.activeIndex},handleClick:function(e,t){this.activeIndex=e.name,this.activeStatus[e.name-1]=!0}}},L=T,D=Object(h["a"])(L,a,s,!1,null,"74cbdec7",null);t["default"]=D.exports}}]);