chunk-3bfcc028.5de2efd0.js 2.8 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3bfcc028"],{"3b16":function(t,e,n){},"44ae":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAATxJREFUOBGVkz1uwkAQhWdMlAoq+nQUSZRLUFjkCtSJUDrkhtYtBYiGpAj3iGSJiDNESho6roCrRGTz3pqfXWeN5JVW9ns733hnx6tSGmY0upXd7gF2LMZc2WXVDZ4Z9KtOJl8uogdh0vRSttupqD4hMDr43lP1F/pZOp1EB4MfrtkEFs7zN4BdD6gSqu9I0mOS4kv8cgju90U4y4Ox6/WUtu5r/ghuezgs0NmsnAIkyjHmLrIHVlXzf+zkkFF9ZAnxya39FkfYRtGq2iwAsOF21UjGOjY14v1QsBdwMswbf2Wvlsug7ZhZJI3GwrbEcY+v7bYIZ2iwjWAjHY8/cRgvoZizHhiyLEGk1Uokz6+RqOtBq5Unj4K/crOZUNsuaJp+w7iHnleWw+jiMs0Zaxla9N1x9jqjZluyA/wBLtdwS4NqPJUAAAAASUVORK5CYII="},a6e9:function(t,e,n){"use strict";n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){return u}));var a=n("b775"),o=n("4328"),r=n.n(o),i="/api-web";function s(t){return Object(a["a"])({url:i+"/sysConfig/list",method:"get",params:t})}function c(t){return Object(a["a"])({url:i+"/sysConfig/update",method:"post",data:r.a.stringify(t)})}function u(t){return Object(a["a"])({url:i+"/export/teacherSalary",method:"post",data:r.a.stringify(t)})}},c83a:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"m-container"},[t._m(0),t._v(" "),n("div",{staticClass:"m-core"},[n("div",{staticClass:"m-wrap"},[n("el-date-picker",{attrs:{type:"month",placeholder:"选择月"},model:{value:t.mouth,callback:function(e){t.mouth=e},expression:"mouth"}}),t._v(" "),n("div",{staticClass:"newBand",on:{click:t.exportSalar}},[t._v("导出课酬")]),t._v(" "),n("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n 将只导出当前选择月份已结算的课程课酬。\n ")]),t._v(" "),n("img",{staticClass:"micon el-tooltip",staticStyle:{width:"8px height:8px"},attrs:{src:t.imageIcon,alt:""}})])],1)])])},o=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("h2",[n("div",{staticClass:"squrt"}),t._v("报表中心\n ")])}],r=n("a6e9"),i={name:"reportForm",data:function(){return{mouth:"",imageIcon:n("44ae")}},methods:{exportSalar:function(){this.mouth?Object(r["a"])({date:this.mouth}).then((function(t){if(200==t.code){var e=new Blob([t.data],{type:"application/vnd.ms-excel;charset=utf-8"}),n=URL.createObjectURL(e),a=document.createElement("a"),o=new Date,r=(o.getFullYear(),o.getMonth(),o.getDate(),o.getHours(),o.getMinutes(),"课酬导出"+(new Date).getTime());a.href=n,a.setAttribute("download",r),document.body.appendChild(a),a.click()}})):this.$message.error("请选择导出月份")}}},s=i,c=(n("f845"),n("2877")),u=Object(c["a"])(s,a,o,!1,null,"22c6fd96",null);e["default"]=u.exports},f845:function(t,e,n){"use strict";var a=n("3b16"),o=n.n(a);o.a}}]);