Commit c269ea6d authored by zhengke's avatar zhengke

修改下载

parent 014f77a8
......@@ -62,7 +62,7 @@
</style>
<template>
<div class="Bus_Content" v-loading="loading">
<div class="Bus_Content">
<div class="BusExportTitle">
{{Year}}{{Month}}月公社车账
<input type="button" style="float:right;" @click="downLoadExcel" class="excelBtn" value="下载excel"/>
......@@ -165,7 +165,7 @@
dataList:[],
TotalJan:'',
TotalCn:'',
loading:false,
downList: "",
}
},
mounted() {
......@@ -182,9 +182,7 @@
},
methods: {
getList(){
this.loading=true;
this.apipost('bus_get_CarfareApportionExport',this.msg, res => {
this.loading=false;
if(res.data.resultCode == 1) {
this.dataList = res.data.data.RObj;
this.msg.CurrName = res.data.data.CurrName;
......@@ -197,15 +195,12 @@
},
//点击下载
downLoadExcel(){
this.loading=true;
this.apipost('bus_get_CarfareApportionExcelExport',this.msg, res => {
this.loading=false;
if(res.data.resultCode == 1) {
this.Success(res.data.message);
}else{
this.Error(res.data.message);
}
}, err => {})
let msg = JSON.parse(JSON.stringify(this.msg));
this.GetLocalFile(
"bus_get_CarfareApportionExcelExport",
msg,
this.Year+'年'+this.Month+'月'+'公社车账.xls'
);
}
},
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment