chunk-20d42954.e58a2834.js 8.7 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-20d42954"],{"09f4":function(e,t,a){"use strict";a.d(t,"a",(function(){return l})),Math.easeInOutQuad=function(e,t,a,r){return e/=r/2,e<1?a/2*e*e+t:(e--,-a/2*(e*(e-2)-1)+t)};var r=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function o(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function n(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function l(e,t,a){var l=n(),s=e-l,i=20,c=0;t="undefined"===typeof t?500:t;var u=function e(){c+=i;var n=Math.easeInOutQuad(c,l,s,t);o(n),c<t?r(e):a&&"function"===typeof a&&a()};u()}},4807:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"m-container"},[e._m(0),e._v(" "),a("div",{staticClass:"m-core"},[a("save-form",{attrs:{inline:!0,model:e.searchForm},on:{submit:e.search,reset:e.onReSet}},[a("el-form-item",[a("el-select",{attrs:{placeholder:"请选择分部",clearable:"",filterable:""},model:{value:e.searchForm.organId,callback:function(t){e.$set(e.searchForm,"organId","string"===typeof t?t.trim():t)},expression:"searchForm.organId"}},e._l(e.selects.branchs,(function(e,t){return a("el-option",{key:t,attrs:{value:e.id,label:e.name}})})),1)],1),e._v(" "),a("el-form-item",[a("remote-search",{attrs:{commit:"setTeachers",isForzenWithQueryCondition:!0},model:{value:e.searchForm.userId,callback:function(t){e.$set(e.searchForm,"userId",t)},expression:"searchForm.userId"}})],1),e._v(" "),a("el-form-item",[a("el-date-picker",{staticStyle:{width:"100% !important"},attrs:{type:"month","value-format":"yyyy-MM",placeholder:"选择月"},model:{value:e.searchForm.monthStr,callback:function(t){e.$set(e.searchForm,"monthStr","string"===typeof t?t.trim():t)},expression:"searchForm.monthStr"}})],1),e._v(" "),a("el-form-item",[a("el-select",{attrs:{placeholder:"请选择是否预警",clearable:"",filterable:""},model:{value:e.searchForm.lowSalary,callback:function(t){e.$set(e.searchForm,"lowSalary","string"===typeof t?t.trim():t)},expression:"searchForm.lowSalary"}},[a("el-option",{attrs:{value:"0",label:"否"}}),e._v(" "),a("el-option",{attrs:{value:"1",label:"是"}})],1)],1),e._v(" "),a("el-form-item",[a("el-input",{attrs:{type:"number",placeholder:"预警课酬大于"},model:{value:e.searchForm.minSalary,callback:function(t){e.$set(e.searchForm,"minSalary",t)},expression:"searchForm.minSalary"}})],1),e._v(" "),a("el-form-item",[a("el-input",{attrs:{type:"number",placeholder:"预警课酬小于"},model:{value:e.searchForm.maxSalary,callback:function(t){e.$set(e.searchForm,"maxSalary",t)},expression:"searchForm.maxSalary"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"danger","native-type":"submit"}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{"native-type":"reset",type:"primary"}},[e._v("重置")]),e._v(" "),a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"export/teacherCourseStatistics",expression:"'export/teacherCourseStatistics'"}],attrs:{type:"primary"},on:{click:e.onExport}},[e._v("导出")])],1)],1),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{align:"center",prop:"monthStr",label:"月份"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"organName",label:"分部"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("copy-text",[e._v(e._s(t.row.organName))])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"realName",label:"老师"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("copy-text",[e._v(e._s(t.row.realName))])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"subjectListStr",label:"专业"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("overflow-text",{attrs:{width:"100%",text:e.row.subjectListStr}})]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"musicCourseNum",label:"乐团节数"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"vipCourseNum",label:"VIP节数"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"practiceCourseNum",label:"网管节数"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"expectMusicCourseSalary",label:"预计乐团课酬"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("moneyFormat")(t.row.expectMusicCourseSalary))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"expectVipCourseSalary",label:"预计VIP课酬"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("moneyFormat")(t.row.expectVipCourseSalary))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"expectPracticeCourseSalary",label:"预计网管课酬"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("moneyFormat")(t.row.expectPracticeCourseSalary))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"预计课酬合计",prop:"expectTotalSalary"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("moneyFormat")(t.row.expectTotalSalary))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"averageClassMinutes",label:"平均上课时长"}})],1),e._v(" "),a("pagination",{attrs:{sync:"",total:e.pageInfo.total,page:e.pageInfo.page,limit:e.pageInfo.limit,"page-sizes":e.pageInfo.page_size},on:{"update:total":function(t){return e.$set(e.pageInfo,"total",t)},"update:page":function(t){return e.$set(e.pageInfo,"page",t)},"update:limit":function(t){return e.$set(e.pageInfo,"limit",t)},pagination:e.getList}})],1)],1)])},o=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("h2",[a("div",{staticClass:"squrt"}),e._v("\n 运营预警\n ")])}],n=a("db72"),l=a("1cc7"),s=a("333d"),i=a("adb21"),c=a("4328"),u=a.n(c),m=new Date,p=m.getFullYear()+"-"+(m.getMonth()+1>=10?m.getMonth()+1:"0"+(m.getMonth()+1)),d={name:"operationalList",components:{pagination:s["a"]},data:function(){return{searchForm:{organId:null,monthStr:p,userId:null,maxSalary:null,lowSalary:null},tableList:[{}],organList:[],teacherList:[],pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},mounted:function(){var e=this.$route.query,t=e.lowSalary,a=e.organId;a&&(this.searchForm.organId=a);var r=1==t||0==t?String(t):"";r&&this.$set(this.searchForm,"lowSalary",r),this.$store.dispatch("setBranchs"),this.getList()},methods:{search:function(){this.pageInfo.page=1,this.getList()},onReSet:function(){this.searchForm={organId:null,monthStr:p,userId:null,maxSalary:null,lowSalary:null},this.getList()},getList:function(){var e=this,t=this.searchForm;Object(l["Rc"])(Object(n["a"])(Object(n["a"])({},t),{},{page:this.pageInfo.page,rows:this.pageInfo.limit})).then((function(t){var a=t.data;200==t.code&&(e.tableList=a.rows,e.pageInfo.total=a.total)}))},onExport:function(){var e=Object.assign({},this.searchForm);Object(i["a"])(this,{url:"/api-web/export/teacherCourseStatistics",fileName:"运营预警.xls",method:"post",params:u.a.stringify(Object(n["a"])({},e))},"您确定导出运营预警?")}}},f=d,h=a("2877"),b=Object(h["a"])(f,r,o,!1,null,"2c1e282c",null);t["default"]=b.exports},adb21:function(e,t,a){"use strict";a.d(t,"a",(function(){return c}));var r=a("bc3a"),o=a.n(r),n=(a("4328"),a("5f87")),l=a("3908"),s=a("e3eb"),i=a.n(s),c=function(e,t,a,r){var s=t.url,c={method:t.method?t.method:"get",headers:{Authorization:Object(n["b"])(),tenantId:Object(n["a"])()},url:s,responseType:"blob"};"post"==c.method?c.data=t.params:c.params=t.params,e.$confirm(a||"您确定下载模板","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){l["a"].startLoading(),o()(i()(c)).then((function(a){var o=new Blob([a.data],{type:"application/vnd.ms-excel;charset=utf-8"}),n=new Response(o).text();n.then((function(a){if(-1!=a.indexOf("code")){var n=JSON.parse(a);if(403==n.code)return e.$message.error("登录过期,请重新登录!"),void setTimeout((function(){e.$store.dispatch("user/resetToken").then((function(){location.reload()}))}),1e3);200==n.code?e.$message.success(n.msg):e.$message.error(n.msg),r&&r()}else{var l=URL.createObjectURL(o),s=document.createElement("a"),i=t.fileName||"导出文件.xls";s.href=l,s.setAttribute("download",i),document.body.appendChild(s),s.click(),r&&r()}})),l["a"].endLoading()})).catch((function(t){console.log(t),e.$message.error("下载失败,请联系管理员"),l["a"].endLoading()}))})).catch((function(){}))}}}]);