1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6f264cdd"],{"07f9":function(e,t,r){},"09f4":function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),Math.easeInOutQuad=function(e,t,r,s){return e/=s/2,e<1?r/2*e*e+t:(e--,-r/2*(e*(e-2)-1)+t)};var s=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 o(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function n(e,t,r){var n=o(),i=e-n,l=20,c=0;t="undefined"===typeof t?500:t;var u=function e(){c+=l;var o=Math.easeInOutQuad(c,n,i,t);a(o),c<t?s(e):r&&"function"===typeof r&&r()};u()}},"3e15":function(e,t,r){"use strict";r.d(t,"d",(function(){return o})),r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return i})),r.d(t,"c",(function(){return l}));var s=r("b775"),a=(r("4328"),"/api-web");function o(e){return Object(s["a"])({url:a+"/extracurricularExercises/queryPageList",method:"get",params:e})}function n(e){return Object(s["a"])({url:a+"/extracurricularExercisesReply/queryPageList",method:"get",params:e})}function i(e){return Object(s["a"])({url:a+"/extracurricularExercises/findStudentExtraExerciseDetail",method:"get",params:e})}function l(e){return Object(s["a"])({url:a+"/exercisesSituation/findStudentExtracurricularExercisesSituations",method:"get",params:e})}},"560f":function(e,t,r){"use strict";var s=r("07f9"),a=r.n(s);a.a},f5ed:function(e,t,r){"use strict";r.r(t);var s=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"m-container"},[r("h2",[e._m(0),e._v(" "),r("el-button",{staticStyle:{color:"red"},attrs:{type:"text",icon:"el-icon-question"},on:{click:e.lookServerDetail}},[e._v("服务指标规则")])],1),e._v(" "),r("div",{staticClass:"m-core"},[r("save-form",{ref:"searchForm",attrs:{inline:!0,model:e.searchForm},on:{submit:e.search,reset:e.onReSet}},[r("el-form-item",[r("remote-search",{attrs:{commit:"setTeachers"},model:{value:e.searchForm.teacherId,callback:function(t){e.$set(e.searchForm,"teacherId",t)},expression:"searchForm.teacherId"}})],1),e._v(" "),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: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:{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:e.isSearch?"primary":"info",icon:"el-icon-circle-plus-outline"},on:{click:function(t){e.showMove=!0}}},[e._v("更多选项")]),e._v(" "),r("el-button",{attrs:{type:"danger","native-type":"submit"}},[e._v("搜索")]),e._v(" "),r("el-button",{attrs:{"native-type":"reset",type:"primary"}},[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:"学员编号"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[r("copy-text",[e._v(e._s(t.row.studentId))])],1)]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"studentName",label:"学生姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[r("copy-text",[e._v(e._s(t.row.studentName))])],1)]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"organName",label:"所属分部"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[r("copy-text",[e._v(e._s(t.row.organName))])],1)]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"groupNames",label:"乐团名称"},scopedSlots:e._u([{key:"default",fn:function(e){return[r("overflow-text",{attrs:{width:"100%",text:e.row.groupNames}})]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"teacherName",label:"指导老师"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[r("copy-text",[e._v(e._s(t.row.teacherName))])],1)]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"educationalTeacherName",label:"乐团主管"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"courseIds",width:"100",label:"服务课程"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("copy-text",[e._v(e._s(t.row.courseIds||"课外训练"))])]}}])}),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("\n 实际训练布置\n "),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",{style:t.row.actualExercisesNum<t.row.expectExercisesNum?"color:red":""},[e._v("\n "+e._s(t.row.actualExercisesNum+"次")+"\n ")])]}}])}),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",{style:t.row.exercisesMessageNum<t.row.exercisesReplyNum?"color:red":""},[e._v("\n "+e._s(t.row.exercisesMessageNum+"次")+"\n ")])]}}])}),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",width:"120",label:"服务周期"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v(e._s(e.dayjs(t.row.monday).format("YYYY-MM-DD")))]),e._v(" "),r("div",[e._v(e._s(e.dayjs(t.row.sunday).format("YYYY-MM-DD")))])]}}])}),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:{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.lookServer},on:{"update:visible":function(t){e.lookServer=t}}},[r("div",{staticClass:"serverInfo"},[r("p",[e._v("训练布置&服务指标优先级:"),r("span",[e._v("声部课>VIP课>合奏课>网管课")])]),e._v(" "),r("p",[e._v("\n 每\n "),r("span",[e._v("周一凌晨")]),e._v(" 系统根据学员的排课情况生成布置训练路径及服务指标\n ")]),e._v(" "),r("p",[r("span",[e._v("多次课程")]),e._v("\n 只布置一次训练、统计一次服务指标(多乐团、多组VIP网管课除外)\n ")]),e._v(" "),r("el-table",{staticStyle:{"margin-top":"30px"},attrs:{border:"",data:e.infoList,"header-cell-style":{background:"#EDEEF0",color:"#444"},"span-method":e.arraySpanMethod}},[r("el-table-column",{attrs:{align:"center",prop:"row1",label:"总体课程情况"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"row2",label:"本周课程情况"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"row3",label:"训练布置路径"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"row4",label:"服务指标统计"}})],1),e._v(" "),r("div",{staticClass:"infoWrap"},[r("h4",[e._v("其他情况:")]),e._v(" "),r("p",[e._v("\n 1.学员在 "),r("span",[e._v("多个乐团时")]),e._v(" ,剩余课程中\n "),r("span",[e._v("本周有声部课")]),e._v(" 的乐团布置训练,\n "),r("span",[e._v("都有")]),e._v(" 则都布置,\n "),r("span",[e._v("都没有")]),e._v(" 则根据表格中的逻辑布置\n ")]),e._v(" "),r("p",[e._v("\n 2.学员存在 "),r("span",[e._v("多组VIP课")]),e._v(" 时,若课程组\n "),r("span",[e._v("老师相同")]),e._v(" ,则仅布置一次训练(网管课同理)\n ")]),e._v(" "),r("p",[e._v("\n 3.学员存在 "),r("span",[e._v("多组VIP课")]),e._v(" 时,若课程组\n "),r("span",[e._v("老师不同,本周有课")]),e._v("\n 的VIP课程组布置训练,多个课程组本周都有课则布置多次(网管课同理)\n ")]),e._v(" "),r("p",[e._v("\n 4.学员存在 "),r("span",[e._v("多组VIP课")]),e._v(" 时,若课程组\n "),r("span",[e._v("老师不同,本周都没有课")]),e._v(" ,则所有VIP老师\n "),r("span",[e._v("都布置")]),e._v(" 课外训练, "),r("span",[e._v("都统计")]),e._v(" 服务指标\n ")])]),e._v(" "),r("div",{staticClass:"infoWrap"},[r("h4",[e._v("课程调整:")]),e._v(" "),r("p",[e._v("\n 本周 "),r("span",[e._v("课程调整时")]),e._v(" ,重新根据该学员的\n "),r("span",[e._v("本周课程情况更新")]),e._v(" 训练布置路径及服务指标\n 则根据表格中的逻辑布置\n ")])]),e._v(" "),r("div",{staticClass:"infoWrap"},[r("h4",[e._v("服务指标:")]),e._v(" "),r("p",[e._v("服务指标按 "),r("span",[e._v("周为单位")]),e._v(" 统计")]),e._v(" "),r("p",[r("span",[e._v("周六周日")]),e._v(" 的服务指标\n "),r("span",[e._v("延迟到下周二更新")]),e._v("\n 实际安排数据(即周日的训练课程,在周二23:59:59时前布置训练都算一次实际安排)\n ")])]),e._v(" "),r("div",{staticClass:"infoWrap"},[r("h4",[e._v("服务指标开启/关闭:")]),e._v(" "),r("p",[e._v("学员新增课程时,自动开启服务指标,")]),e._v(" "),r("p",[e._v("手动关闭服务指标的学员新增课程时,不会自动开启服务指标")]),e._v(" "),r("p",[e._v("\n 学员退团、乐团关闭、VIP课程组结束、网管课课程组结束时,若学员不在任何【进行中】乐团【在读】,且无任何未开始课程(乐团课、VIP课、网管课),则关闭服务指标\n ")])]),e._v(" "),r("div",{staticClass:"infoWrap"},[r("h4",[e._v("服务指标解释:")]),e._v(" "),r("p",[r("span",[e._v("若本周学员有多次服务指标则生成多条数据")])]),e._v(" "),r("p",[e._v("\n 预期训练布置:本周内服务指标次数(即本周应该给该学员布置的训练次数)\n ")]),e._v(" "),r("p",[e._v("\n 实际训练布置:本周通过服务指标训练布置路径给该学员布置训练的次数\n ")]),e._v(" "),r("p",[e._v("提交次数:本周学员按照训练布置路径提交训练的次数")]),e._v(" "),r("p",[e._v("评价次数:本周老师评价通过训练布置路径提交的训练的次数")]),e._v(" "),r("p",[e._v("及时评价次数:学员提交训练后24小时内进行评价的次数")]),e._v(" "),r("p",[e._v("VIP课:本周VIP课程课时数")]),e._v(" "),r("p",[e._v("付费网管课:本周付费网管课课时数")]),e._v(" "),r("p",[e._v("训练提交时间:学员提交训练的时间")]),e._v(" "),r("p",[e._v("服务周期:本服务周期时间段")])])],1)]),e._v(" "),e.showMove?r("el-dialog",{attrs:{title:"更多选项",visible:e.showMove,width:"700px"},on:{"update:visible":function(t){e.showMove=t}}},[r("el-form",{ref:"searchForm2",staticClass:"searchForm",attrs:{inline:!0,model:e.searchForm,"label-width":"120px"},on:{submit:e.search,reset:e.onReSet,"update:model":function(t){e.searchForm=t}}},[r("el-form-item",{attrs:{prop:"organId",label:"分部"}},[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",{attrs:{label:"实际训练布置"}},[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",{attrs:{label:"服务是否异常"}},[r("el-select",{attrs:{placeholder:"服务是否异常",clearable:""},model:{value:e.searchForm.serviceIsError,callback:function(t){e.$set(e.searchForm,"serviceIsError",t)},expression:"searchForm.serviceIsError"}},[r("el-option",{attrs:{label:"是",value:"1"}})],1)],1),e._v(" "),r("el-form-item",{attrs:{label:"提交次数"}},[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",{attrs:{label:"评价次数"}},[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",{attrs:{label:"及时评价"}},[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:"是否有VIP课"}},[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",{attrs:{label:"有付费网管课"}},[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("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)],1),e._v(" "),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.cancleMore}},[e._v("取 消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:e.okMore}},[e._v("确 定")])],1)],1):e._e()],1)},a=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"titleWrap"},[r("div",{staticClass:"squrt"}),e._v("\n 服务指标\n ")])}],o=(r("a481"),r("386d"),r("bc3a")),n=r.n(o),i=r("5f87"),l=r("333d"),c=r("3908"),u=r("5a0c"),m=r.n(u),h=(r("1cc7"),[{row1:"学员有声部课、VIP课、合奏课、网管课",row2:"本周有声部课",row3:"声部课老师课后布置训练",row4:"声部课老师统计服务指标"},{row1:"学员有声部课、VIP课、合奏课、网管课",row2:"本周无声部课",row3:"声部课老师在课外训练布置训练",row4:"声部课老师统计服务指标"},{row1:"学员有VIP课、合奏课、网管课",row2:"本周有VIP课",row3:"VIP课老师课后布置训练",row4:"VIP课老师统计服务指标"},{row1:"学员有VIP课、合奏课、网管课",row2:"本周无VIP课",row3:"VIP课老师布置课外训练",row4:"VIP课老师统计服务指标"},{row1:"学员有合奏课、网管课",row2:"无论本周是否有合奏课",row3:"该乐团声部班老师布置课外训练",row4:"声部班老师统计服务指标"},{row1:"学员有合奏课、网管课",row2:"无论本周是否有合奏课",row3:"该乐团没有声部班则指导老师布置课外训练",row4:"指导老师统计服务指标"},{row1:"学员有网管课",row2:"本周有网管课",row3:"网管课老师课后布置训练",row4:"网管课老师统计服务指标"},{row1:"学员有网管课",row2:"本周无网管课",row3:"网管课老师布置课外训练",row4:"网管课老师统计服务指标"},{row1:"学员没有任何课程但在进行中乐团在读",row2:"无课程",row3:"该乐团声部班老师布置课外训练",row4:"声部班老师统计服务指标"},{row1:"学员没有任何课程但在进行中乐团在读",row2:"无课程",row3:"该乐团没有声部班则指导老师布置课外训练",row4:"指导老师统计服务指标"}]),v=r("3e15"),p=new Date;p=p.getFullYear()+"-"+(p.getMonth()+1)+"-"+p.getDate();var d={components:{pagination:l["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:[],serviceIsError:null},organList:[],teacherList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},lookServer:!1,infoList:h,showMove:!1}},created:function(){this.searchForm.timer=[],this.searchForm.timer.push(this.getNowDateAndMonday(p)),this.searchForm.timer.push(this.getNowDateAndSunday(p))},mounted:function(){this.$store.dispatch("setBranchs"),this.init()},activated:function(){this.init()},methods:{dayjs:m.a,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,serviceIsError:this.searchForm.serviceIsError||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(v["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.searchForm.timer=[],this.searchForm.timer.push(this.getNowDateAndMonday(p)),this.searchForm.timer.push(this.getNowDateAndSunday(p)),this.search()},cancleMore:function(){this.showMove=!1},okMore:function(){this.getList(),this.showMove=!1},onExport:function(){var e=this,t="/api-web/export/exercisesSituations",r=this.getDate(),s={method:"get",headers:{Authorization:Object(i["a"])()},url:t,params:r,responseType:"blob"};this.$confirm("您确定导出列表?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){c["a"].startLoading(),n()(s).then((function(t){var r=new Blob([t.data],{type:"application/vnd.ms-excel;charset=utf-8"}),s=new Response(r).text();s.then((function(t){if(-1!=t.indexOf("code")){var s=JSON.parse(t);e.$message.error(s.msg)}else{var a=URL.createObjectURL(r),o=document.createElement("a"),n=new Date,i=n.getFullYear()+""+(n.getMonth()+1)+n.getDate()+n.getHours()+n.getMinutes(),l=i+"服务指标.xls";o.href=a,o.setAttribute("download",l),document.body.appendChild(o),o.click()}})),c["a"].endLoading()})).catch((function(t){e.$message.error("导出数据失败,请联系管理员"),c["a"].endLoading()}))})).catch((function(){}))},search:function(){this.rules.page=1,this.$refs.searchForm.save(this.searchForm),this.getList()},getNowDateAndMonday:function(e){var t=new Date(e.replace(/-/g,"/")).getTime(),r=new Date(e);0==r.getDay()&&(t-=6048e5);var s=t-24*(r.getDay()-1)*60*60*1e3,a=new Date(s),o=a.getFullYear(),n=a.getMonth()+1<10?"0"+(a.getMonth()+1):a.getMonth()+1,i=a.getDate()<10?"0"+a.getDate():a.getDate(),l=o+"-"+n+"-"+i;return l},getNowDateAndSunday:function(e){var t=new Date(e.replace(/-/g,"/")).getTime(),r=new Date(e),s=7-r.getDay();7==s&&(s=0);var a=t+24*s*60*60*1e3,o=new Date(a),n=o.getFullYear(),i=o.getMonth()+1<10?"0"+(o.getMonth()+1):o.getMonth()+1,l=o.getDate()<10?"0"+o.getDate():o.getDate(),c=n+"-"+i+"-"+l;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]}})},lookServerDetail:function(){this.lookServer=!0},arraySpanMethod:function(e){e.row,e.column;var t=e.rowIndex,r=e.columnIndex;if(0===r)return t%2===0?{rowspan:2,colspan:1}:{rowspan:0,colspan:0}}},computed:{isSearch:function(){var e;return this.searchForm.organIdList||this.searchForm.actualExercisesNumIsAchieve||this.searchForm.exercisesReplyNumIsAchieve||this.searchForm.exercisesMessageNumIsAchieve||this.searchForm.exercisesMessageTimelyNumIsAchieve||this.searchForm.existVipCourse||this.searchForm.existPracticeCourse||(null===(e=this.searchForm.workTimer)||void 0===e?void 0:e.length)>0||this.searchForm.serviceIsError}}},_=d,f=(r("560f"),r("2877")),g=Object(f["a"])(_,s,a,!1,null,"6f6d5d68",null);t["default"]=g.exports}}]);
|