|
@@ -6,7 +6,7 @@
|
|
|
end-placeholder="结束日期" :picker-options="pickerOptions" size="mini"> </el-date-picker>
|
|
end-placeholder="结束日期" :picker-options="pickerOptions" size="mini"> </el-date-picker>
|
|
|
</template>
|
|
</template>
|
|
|
<template #slot-export-due>
|
|
<template #slot-export-due>
|
|
|
- <el-button type="primary" size="mini" style="margin-left:60px;" @click="exportDue()">导出数据</el-button>
|
|
|
|
|
|
|
+ <el-button type="primary" size="mini" style="margin-left:60px;" @click="exportData()">导出数据</el-button>
|
|
|
</template>
|
|
</template>
|
|
|
</x-crud>
|
|
</x-crud>
|
|
|
</div>
|
|
</div>
|
|
@@ -55,7 +55,7 @@ export default {
|
|
|
...mapGetters(['shopInfo']),
|
|
...mapGetters(['shopInfo']),
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
- exportDue(){
|
|
|
|
|
|
|
+ exportData(){
|
|
|
this.$service.stat.getClassProfit({searchTime:this.searchTime,startTime:this.startTime,endTime:this.endTime,export:1}).then(res => {
|
|
this.$service.stat.getClassProfit({searchTime:this.searchTime,startTime:this.startTime,endTime:this.endTime,export:1}).then(res => {
|
|
|
if(res.file){
|
|
if(res.file){
|
|
|
window.location.href = res.file
|
|
window.location.href = res.file
|