36.71828b57bcc3cfa60f53.js 4.45 KB
webpackJsonp([36],{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 r=a("CCn6"),n={name:"index",data:function(){return{activeName:"first",firstList:[],secondList:[],searchFirstFrom:{dateValue:[]},searchSecondFrom:{dateValue:[]}}},mounted:function(){this.searchFirstPage()},methods:{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(r._51)(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(r._48)(t).then(function(t){e.secondList=t})}}},l=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:{prop:"teacher_name",label:"班主任名字"}}),e._v(" "),a("el-table-column",{attrs:{prop:"total_money",label:"销售额"}}),e._v(" "),a("el-table-column",{attrs:{prop:"three_month",label:"季课"}}),e._v(" "),a("el-table-column",{attrs:{prop:"one_year",label:"年课"}}),e._v(" "),a("el-table-column",{attrs:{prop:"two_year",label:"2年课"}})],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:"时间"}}),e._v(" "),a("el-table-column",{attrs:{prop:"teacher_name",label:"班主任名字"}}),e._v(" "),a("el-table-column",{attrs:{prop:"total_money",label:"销售额"}}),e._v(" "),a("el-table-column",{attrs:{prop:"three_month",label:"季课"}}),e._v(" "),a("el-table-column",{attrs:{prop:"one_year",label:"年课"}}),e._v(" "),a("el-table-column",{attrs:{prop:"two_year",label:"2年课"}})],1)],1)],1)],1)};l._withStripped=!0;var s={render:l,staticRenderFns:[]},o=s;var c=!1;var i=a("VU/8")(n,o,!1,function(e){c||a("Pq+S")},"data-v-394351a5",null);i.options.__file="src\\components\\achievement\\index.vue";t.default=i.exports},"Pq+S":function(e,t,a){var r=a("BrLh");"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);a("rjj0")("5bcb7c41",r,!1,{})}});