1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-70721e96"],{"0cb3":function(t,e,a){},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"),o=a("4328"),r=a.n(o),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:r.a.stringify(t)})}},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("i",{staticClass:"el-icon-question micon el-tooltip",staticStyle:{"font-size":"18px",color:"#F56C6C"}})])],1)])])},o=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("h2",[a("div",{staticClass:"squrt"}),t._v("报表中心\n ")])}],r=(a("a6e9"),a("bc3a")),i=a.n(r),s=a("5f87"),c=a("3908"),l=a("4328"),u=a.n(l),d={name:"reportForm",data:function(){return{mouth:""}},methods:{exportSalar:function(){var t=this;if(this.mouth){var e="/api-web/export/teacherSalary",a={date:this.mouth},n={method:"POST",headers:{Authorization:Object(s["a"])()},data:u.a.stringify(a),url:e,responseType:"blob"};this.$confirm("您确定导出课酬","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){c["a"].startLoading(),i()(n).then(function(e){var a=new Blob([e.data],{type:"application/vnd.ms-excel;charset=utf-8"}),n=new Response(a).text();n.then(function(e){if(-1!=e.indexOf("code")){var n=JSON.parse(e);t.$message.error(n.msg)}else{var o=URL.createObjectURL(a),r=document.createElement("a"),i=new Date,s=i.getFullYear()+""+(i.getMonth()+1)+i.getDate(),c=s+"课酬";r.href=o,r.setAttribute("download",c),document.body.appendChild(r),r.click()}}),c["a"].endLoading()}).catch(function(e){t.$message.error("导出数据失败,请联系管理员"),c["a"].endLoading()})}).catch(function(){})}else this.$message.error("请选择导出月份")}}},p=d,m=(a("e14f"),a("2877")),f=Object(m["a"])(p,n,o,!1,null,"c124d984",null);e["default"]=f.exports},e14f:function(t,e,a){"use strict";var n=a("0cb3"),o=a.n(n);o.a}}]);
|