Commit 7b1d5eb4 authored by zhengke's avatar zhengke

修改

parent efa6c6ae
...@@ -49,12 +49,23 @@ ...@@ -49,12 +49,23 @@
.totalTabal td{ .totalTabal td{
height:33px; height:33px;
} }
.excelBtn{
color: #fff;
padding: 0 15px;
height: 30px;
background: #E95252;
border: 1px solid #E95252;
cursor: pointer;
border-radius: 15px;
margin-left: 10px;
}
</style> </style>
<template> <template>
<div class="Bus_Content"> <div class="Bus_Content" v-loading="loading">
<div class="BusExportTitle"> <div class="BusExportTitle">
{{Year}}{{Month}}月公社车账 {{Year}}{{Month}}月公社车账
<input type="button" style="float:right;" @click="downLoadExcel" class="excelBtn" value="下载excel"/>
</div> </div>
<table class="Bus_detailTable"> <table class="Bus_detailTable">
<thead> <thead>
...@@ -154,6 +165,7 @@ ...@@ -154,6 +165,7 @@
dataList:[], dataList:[],
TotalJan:'', TotalJan:'',
TotalCn:'', TotalCn:'',
loading:false,
} }
}, },
mounted() { mounted() {
...@@ -170,7 +182,9 @@ ...@@ -170,7 +182,9 @@
}, },
methods: { methods: {
getList(){ getList(){
this.loading=true;
this.apipost('bus_get_CarfareApportionExport',this.msg, res => { this.apipost('bus_get_CarfareApportionExport',this.msg, res => {
this.loading=false;
if(res.data.resultCode == 1) { if(res.data.resultCode == 1) {
this.dataList = res.data.data.RObj; this.dataList = res.data.data.RObj;
this.msg.CurrName = res.data.data.CurrName; this.msg.CurrName = res.data.data.CurrName;
...@@ -180,6 +194,18 @@ ...@@ -180,6 +194,18 @@
this.Error(res.data.message); this.Error(res.data.message);
} }
}, err => {}) }, err => {})
},
//点击下载
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 => {})
} }
}, },
} }
......
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