chunk-90bfaebc.b5bd96af.js 15 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-90bfaebc"],{"09f2":function(e,t,r){"use strict";var a=r("3bb0"),s=r.n(a);s.a},"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()}},"3bb0":function(e,t,r){},"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})}},f5ed: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-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",[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-select",{attrs:{placeholder:"是否有付费网管课",clearable:""},model:{value:e.searchForm.existPracticeCourse,callback:function(t){e.$set(e.searchForm,"existPracticeCourse",t)},expression:"searchForm.existPracticeCourse"}},[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","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",{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":"提交结束日期"},model:{value:e.searchForm.workTimer,callback:function(t){e.$set(e.searchForm,"workTimer","string"===typeof t?t.trim():t)},expression:"searchForm.workTimer"}})],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:"educationalTeacherName",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.expectExercisesNum+"次"))])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",width:"120",prop:""},scopedSlots:e._u([{key:"header",fn:function(t){return[r("p",{staticStyle:{position:"relative"}},[e._v(" 实际安排 "),r("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[r("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n 以周为单位,实际发生一次课外训练或网管课作业布置,记一次,一周只统计一次\n ")]),e._v(" "),r("i",{staticClass:"el-icon-question",staticStyle:{"font-size":"18px",color:"#F56C6C"}})])],1)]}},{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:"VIP课"},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",label:"付费网管课"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v(e._s(t.row.existPracticeCourse+"节"))])]}}])}),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.lastSubmitTime))])]}}])}),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)])},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("a481"),r("386d"),r("bc3a")),l=r.n(i),o=r("5f87"),n=r("333d"),c=r("3908"),u=r("1cc7"),m=r("3e15"),h=new Date;h=h.getFullYear()+"-"+(h.getMonth()+1)+"-"+h.getDate();var d={components:{pagination:n["a"]},data:function(){return{tableList:[],searchForm:{timer:[],search:null,organIdList:null,actualExercisesNumIsAchieve:null,exercisesMessageNumIsAchieve:null,exercisesMessageTimelyNumIsAchieve:null,exercisesReplyNumIsAchieve:null,teacherId:null,existVipCourse:null,existPracticeCourse:null,workTimer:[]},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(h)),this.searchForm.timer.push(this.getNowDateAndSunday(h)),Object(u["ub"])().then(function(t){200==t.code&&(e.teacherList=t.data)}),Object(u["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.$route.query.search&&(this.$route.query.search instanceof Object?this.topForm=this.$route.query.search:this.topForm=JSON.parse(this.$route.query.search)),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()},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,existPracticeCourse:this.searchForm.existPracticeCourse||null};return this.searchForm.timer&&this.searchForm.timer.length>0?(e.monday=this.searchForm.timer[0],e.sunday=this.searchForm.timer[1],this.searchForm.workTimer&&this.searchForm.workTimer.length>0&&(e.submitStartDate=this.searchForm.workTimer[0],e.submitEndDate=this.searchForm.workTimer[1]),e):(this.$message.error("请选择时间段"),!1)},getList:function(){var e=this,t=this.getDate();t&&Object(m["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(o["a"])()},url:t,params:r,responseType:"blob"};this.$confirm("您确定导出列表?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){c["a"].startLoading(),l()(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()}}),c["a"].endLoading()}).catch(function(t){e.$message.error("导出数据失败,请联系管理员"),c["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:"/operateManager/serverIndexDetail",query:{studentId:e.studentId,studentName:e.studentName,rules:t,searchForm:r,title:e.studentName,extracurricularExercisesId:"yes",startTime:this.searchForm.timer[0],endTime:this.searchForm.timer[1]}})}}},p=d,v=(r("09f2"),r("2877")),f=Object(v["a"])(p,a,s,!1,null,"7f7d0f80",null);t["default"]=f.exports}}]);