1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-51b367e4"],{"3af4":function(t,e,a){},"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,a){"use strict";a.d(e,"a",(function(){return s})),a.d(e,"b",(function(){return c}));var n=a("b775"),r=a("4328"),o=a.n(r),i="/api-web";function s(t){return Object(n["a"])({url:i+"/sysConfig/list",method:"get",params:t})}function c(t){return Object(n["a"])({url:i+"/sysConfig/update",method:"post",data:o.a.stringify(t)})}},c127:function(t,e,a){"use strict";var n=a("3af4"),r=a.n(n);r.a},c83a:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"m-container"},[t._m(0),t._v(" "),a("div",{staticClass:"m-core"},[a("div",{staticClass:"m-wrap"},[a("el-date-picker",{attrs:{type:"month",placeholder:"选择月","value-format":"yyyy-MM-dd"},model:{value:t.mouth,callback:function(e){t.mouth=e},expression:"mouth"}}),t._v(" "),a("div",{directives:[{name:"permission",rawName:"v-permission",value:"export/teacherSalary",expression:"'export/teacherSalary'"}],staticClass:"newBand",on:{click:t.exportSalar}},[t._v("导出课酬")]),t._v(" "),a("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[a("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n 将只导出当前选择月份已结算的课程课酬。\n ")]),t._v(" "),a("img",{staticClass:"micon el-tooltip",staticStyle:{width:"8px height:8px"},attrs:{src:t.imageIcon,alt:""}})])],1)])])},r=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("h2",[a("div",{staticClass:"squrt"}),t._v("报表中心\n ")])}],o=(a("a6e9"),a("bc3a")),i=a.n(o),s=a("5f87"),c=a("4328"),l=a.n(c),u={name:"reportForm",data:function(){return{mouth:"",imageIcon:a("44ae")}},methods:{exportSalar:function(){if(this.mouth){var t="/api-web/export/teacherSalary",e={date:this.mouth},a={method:"POST",headers:{Authorization:Object(s["a"])()},data:l.a.stringify(e),url:t,responseType:"blob"};this.$confirm("您确定导出课酬","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){i()(a).then((function(t){var e=new Blob([t.data],{type:"application/vnd.ms-excel;charset=utf-8"}),a=URL.createObjectURL(e),n=document.createElement("a"),r=new Date,o=r.getFullYear()+""+(r.getMonth()+1)+r.getDate(),i=o+"课酬";n.href=a,n.setAttribute("download",i),document.body.appendChild(n),n.click()}))})).catch((function(){}))}else this.$message.error("请选择导出月份")}}},p=u,h=(a("c127"),a("2877")),d=Object(h["a"])(p,n,r,!1,null,"c1fd1100",null);e["default"]=d.exports}}]);
|