|
@@ -12,12 +12,13 @@
|
|
|
:page_index='page_index'
|
|
|
:total='total'>
|
|
|
<div slot='titleButton'>
|
|
|
+ <Button @click="exportData()" type="primary" style="margin-right: 10px">批量导出</Button>
|
|
|
<Button @click="handleSet('',-1,1)"
|
|
|
type='primary'
|
|
|
style="margin-right:10px;">新增方案</Button>
|
|
|
</div>
|
|
|
<template slot='set'
|
|
|
- slot-scope='{row,index}'>
|
|
|
+ slot-scope='{row,index}'>
|
|
|
<div class="table-set">
|
|
|
<a style="margin:0 5px"
|
|
|
@click="handleSet(row,index,2)">编辑</a>
|
|
@@ -71,6 +72,13 @@ export default {
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
+ async exportData(){
|
|
|
+ const res = await this.axios('/api/overdraft_export')
|
|
|
+ if(res.code == 200){
|
|
|
+ let url = `${this.$store.state.ip}/api/storage/${res.data.file}`
|
|
|
+ location.href = url
|
|
|
+ }
|
|
|
+ },
|
|
|
init (row) {
|
|
|
this.proxyObj = row
|
|
|
this.axios.get('/api/overdraft_list', {
|