25.da3657c24cca6bf3abc3.js 6.22 KB
webpackJsonp([25],{BrLh:function(e,t,a){(e.exports=a("FZ+f")(!0)).push([e.i,"\n.title[data-v-394351a5] {\n  font-size: 26px;\n  font-weight: 400;\n  line-height: 1;\n  margin: 40px;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/achievement/index.vue"],names:[],mappings:";AACA;EACE,gBAAgB;EAChB,iBAAiB;EACjB,eAAe;EACf,aAAa;CACd",file:"index.vue",sourcesContent:["\n.title[data-v-394351a5] {\n  font-size: 26px;\n  font-weight: 400;\n  line-height: 1;\n  margin: 40px;\n}\n"],sourceRoot:""}])},Fmgy:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("CCn6"),r={props:["dialogObj"],data:function(){return{}},methods:{initPage:function(){console.log(this.dialogObj)}},watch:{"dialogObj.show":function(e){e&&this.initPage()}}},l=function(){var e=this,t=e.$createElement;return(e._self._c||t)("el-dialog",{attrs:{title:e.dialogObj.title,visible:e.dialogObj.show},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}})};l._withStripped=!0;var o={render:l,staticRenderFns:[]},s=o;var i=!1;var c=a("VU/8")(r,s,!1,function(e){i||a("vtn1")},"data-v-72b08405",null);c.options.__file="src\\components\\achievement\\dialog.vue";var d={name:"index",data:function(){return{activeName:"first",firstList:[],secondList:[],searchFirstFrom:{dateValue:[]},searchSecondFrom:{dateValue:[]},dialogObj:{show:!1,title:"售卖课程",teacher_id:"",timeValue:""}}},components:{classDialog:c.exports},mounted:function(){this.defaultTime(),this.searchFirstPage()},methods:{a:function(e,t){return e-t},handleClick:function(e){"first"===e.name?this.searchFirstPage():this.searchSecondPage()},searchFirstPage:function(){var e=this,t={};this.searchFirstFrom.dateValue&&(t={start_at:this.searchFirstFrom.dateValue[0],end_at:this.searchFirstFrom.dateValue[1]}),Object(n._54)(t).then(function(t){e.firstList=t})},searchSecondPage:function(){var e=this,t={};this.searchSecondFrom.dateValue&&(t={start_at:this.searchSecondFrom.dateValue[0],end_at:this.searchSecondFrom.dateValue[1]}),Object(n._51)(t).then(function(t){e.secondList=t})},defaultTime:function(){var e=new Date,t=e.getFullYear(),a=e.getMonth()+1;a<10&&(a="0"+a);var n=e.getDate();n<10&&(n="0"+n);var r=t+"-"+a+"-01",l=t+"-"+a+"-"+n;this.searchFirstFrom.dateValue=[r,l],this.searchSecondFrom.dateValue=[r,l]},nameClick:function(e){this.dialogObj.teacher_id=e.tid,e.cur_date&&(this.dialogObj.timeValue=e.cur_date),this.dialogObj.show=!0}}},u=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("h2",{staticClass:"title"},[e._v("班主任业绩排行")]),e._v(" "),a("el-tabs",{attrs:{type:"card"},on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"业绩总排行",name:"first"}},[a("el-form",{ref:"searchFirstFrom",attrs:{inline:"",model:e.searchFirstFrom,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"起止日期"}},[a("el-date-picker",{attrs:{"unlink-panels":"",type:"daterange","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.searchFirstPage},model:{value:e.searchFirstFrom.dateValue,callback:function(t){e.$set(e.searchFirstFrom,"dateValue",t)},expression:"searchFirstFrom.dateValue"}})],1),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.searchFirstPage()}}},[e._v("\n            搜索\n          ")])],1)],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.firstList}},[a("el-table-column",{attrs:{label:"班主任名字"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n            "+e._s(t.row.teacher_name)+"\n            ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"total_money",label:"销售额",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{prop:"three_month",label:"季课",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{prop:"one_year",label:"年课",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{prop:"two_year",label:"2年课",sortable:""}})],1)],1),e._v(" "),a("el-tab-pane",{attrs:{label:"业绩按天排行",name:"second"}},[a("el-form",{ref:"searchSecondFrom",attrs:{inline:"",model:e.searchSecondFrom,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"起止日期"}},[a("el-date-picker",{attrs:{"unlink-panels":"",type:"daterange","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.searchSecondPage},model:{value:e.searchSecondFrom.dateValue,callback:function(t){e.$set(e.searchSecondFrom,"dateValue",t)},expression:"searchSecondFrom.dateValue"}})],1),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.searchSecondPage()}}},[e._v("\n            搜索\n          ")])],1)],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.secondList}},[a("el-table-column",{attrs:{prop:"cur_date",label:"时间",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{label:"班主任名字"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n            "+e._s(t.row.teacher_name)+"\n            ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"total_money",label:"销售额",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{prop:"three_month",label:"季课",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{prop:"one_year",label:"年课",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{prop:"two_year",label:"2年课",sortable:""}})],1)],1)],1),e._v(" "),a("class-dialog",{attrs:{dialogObj:e.dialogObj}})],1)};u._withStripped=!0;var h={render:u,staticRenderFns:[]},m=h;var p=!1;var b=a("VU/8")(d,m,!1,function(e){p||a("Pq+S")},"data-v-394351a5",null);b.options.__file="src\\components\\achievement\\index.vue";t.default=b.exports},"Pq+S":function(e,t,a){var n=a("BrLh");"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);a("rjj0")("5bcb7c41",n,!1,{})},vtn1:function(e,t,a){var n=a("w+Do");"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);a("rjj0")("2243677e",n,!1,{})},"w+Do":function(e,t,a){(e.exports=a("FZ+f")(!0)).push([e.i,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","",{version:3,sources:[],names:[],mappings:"",file:"dialog.vue",sourceRoot:""}])}});