chunk-0325b8cc.33d3c733.js 17 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0325b8cc"],{"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()}},1806:function(e,t,r){},"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 a=r("b775"),i=(r("4328"),"/api-web");function s(e){return Object(a["a"])({url:i+"/extracurricularExercises/queryPageList/v2",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})}function n(e){return Object(a["a"])({url:i+"/exercisesSituation/findStudentExtracurricularExercisesSituations",method:"get",params:e})}},"77b9":function(e,t,r){"use strict";r("1806")},adb21:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var a=r("bc3a"),i=r.n(a),s=(r("4328"),r("5f87")),l=r("3908"),o=r("e3eb"),n=r.n(o),c=function(e,t,r,a){var o=t.url,c={method:t.method?t.method:"get",headers:{Authorization:Object(s["b"])(),tenantId:Object(s["a"])()},url:o,responseType:"blob"};"post"==c.method?c.data=t.params:c.params=t.params,e.$confirm(r||"您确定下载模板","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){l["a"].startLoading(),i()(n()(c)).then((function(r){var i=new Blob([r.data],{type:"application/vnd.ms-excel;charset=utf-8"}),s=new Response(i).text();s.then((function(r){if(-1!=r.indexOf("code")){var s=JSON.parse(r);if(403==s.code)return e.$message.error("登录过期,请重新登录!"),void setTimeout((function(){e.$store.dispatch("user/resetToken").then((function(){location.reload()}))}),1e3);200==s.code?e.$message.success(s.msg):e.$message.error(s.msg),a&&a()}else{var l=URL.createObjectURL(i),o=document.createElement("a"),n=t.fileName||"导出文件.xls";o.href=l,o.setAttribute("download",n),document.body.appendChild(o),o.click(),a&&a()}})),l["a"].endLoading()})).catch((function(t){console.log(t),e.$message.error("下载失败,请联系管理员"),l["a"].endLoading()}))})).catch((function(){}))}},be3c: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("div",{staticClass:"m-core"},[r("afterWorkList",{attrs:{saveKey:"afterSchoolDetail"}})],1)])},i=[],s=r("d8ef"),l={components:{afterWorkList:s["a"]},data:function(){return{title:"",id:null,activeIndex:""}},mounted:function(){this.init()},methods:{init:function(){this.title=this.$route.query.title,this.id=this.$route.query.extracurricularExercisesId,this.activeIndex=this.$route.query.activeIndex},goBack:function(){this.$store.dispatch("delVisitedViews",this.$route),this.$router.push({path:"/afterSchoolManager",query:{tabrouter:this.activeIndex}})}}},o=l,n=r("2877"),c=Object(n["a"])(o,a,i,!1,null,"26d1e8e0",null);t["default"]=c.exports},d8ef: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",[e.show?r("save-form",{ref:"saveForm",attrs:{inline:!0,model:e.searchForm,saveKey:e.formSaveKey},on:{submit:e.search,reset:e.onReSet}},[r("el-form-item",[r("el-input",{attrs:{clearable:"",placeholder:"请输入标题 学生姓名"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:function(t){t.target.blur(),e.$refs.saveForm.save(),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.selects.branchs,(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",{staticClass:"organSelect",attrs:{filterable:"",clearable:"",placeholder:"是否学练宝布置"},model:{value:e.searchForm.cloudHomeworkFlag,callback:function(t){e.$set(e.searchForm,"cloudHomeworkFlag","string"===typeof t?t.trim():t)},expression:"searchForm.cloudHomeworkFlag"}},[r("el-option",{attrs:{label:"是",value:!0}}),e._v(" "),r("el-option",{attrs:{label:"否",value:!1}})],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("el-form-item",[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("el-form-item",[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","native-type":"submit"}},[e._v("搜索")]),e._v(" "),r("el-button",{attrs:{type:"primary","native-type":"reset"}},[e._v("重置")]),e._v(" "),r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"export/extraExercisesReplys",expression:"'export/extraExercisesReplys'"}],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("\n "+e._s(t.row.extracurricularExercises.title)+"\n ")]):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",prop:"actualTeacherName",label:"是否学练宝布置"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v("\n "+e._s(t.row.musicScoreId?"是":"否")+"\n ")])]}}])}),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:{saveKey:e.formSaveKey,sync:"",total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:total":function(t){return e.$set(e.rules,"total",t)},"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,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"老师姓名"}},[r("el-input",{attrs:{disabled:""},model:{value:e.visibleForm.teacherName,callback:function(t){e.$set(e.visibleForm,"teacherName",t)},expression:"visibleForm.teacherName"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"学生姓名"}},[r("el-input",{attrs:{disabled:""},model:{value:e.visibleForm.studentName,callback:function(t){e.$set(e.visibleForm,"studentName",t)},expression:"visibleForm.studentName"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"截止时间"}},[r("el-input",{attrs:{disabled:""},model:{value:e.visibleForm.expiryDate,callback:function(t){e.$set(e.visibleForm,"expiryDate",t)},expression:"visibleForm.expiryDate"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"练习标题"}},[r("el-input",{attrs:{disabled:""},model:{value:e.visibleForm.title,callback:function(t){e.$set(e.visibleForm,"title",t)},expression:"visibleForm.title"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"练习内容"}},[r("el-input",{attrs:{type:"textarea",rows:"5",disabled:""},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("\n 您的浏览器不支持视频播放\n ")])])],1)},i=[],s=(r("28a5"),r("386d"),r("c7eb")),l=(r("96cf"),r("1da1")),o=r("333d"),n=r("3e15"),c=(r("1cc7"),r("adb21")),u=(r("bc3a"),r("5f87"),{props:["id","saveKey"],components:{pagination:o["a"]},data:function(){var e=this;return{formSaveKey:e.saveKey||"afterWorkList",searchForm:{search:null,timer:[],status:null,isReplied:null,isRepliedTimely:null,isView:null,organIdList:null,expireDate:[],existVipCourse:null,cloudHomeworkFlag: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(){this.$store.dispatch("setBranchs"),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(n["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=Object(l["a"])(Object(s["a"])().mark((function e(){var t;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this.getDate(),e.next=3,Object(c["a"])(this,{url:"/api-web/export/extraExercisesReplys",fileName:"课外练习(学员).xls",method:"get",params:t},"您确定导出列表?");case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),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.cloudHomeworkFlag=this.searchForm.cloudHomeworkFlag,e},onReSet:function(){this.searchForm={search:null,timer:[],status:null,isReplied:null,isRepliedTimely:null,isView:null,organId:null,expireDate:[],existVipCourse:null,cloudHomeworkFlag:null},this.extracurricularExercisesId=null,this.getList()},lookDetail:function(e){var t=this;Object(n["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="")}}}),m=u,d=(r("77b9"),r("2877")),p=Object(d["a"])(m,a,i,!1,null,"327d0382",null);t["a"]=p.exports}}]);