|
@@ -47,7 +47,7 @@
|
|
|
<el-button
|
|
|
icon="Download"
|
|
|
v-power="'downloadBusinessStandingBook'"
|
|
|
- @click="fetchData"
|
|
|
+ @click="downloadClick"
|
|
|
>下载</el-button
|
|
|
>
|
|
|
</div>
|
|
@@ -66,9 +66,10 @@
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
import { ref, reactive, onMounted } from 'vue'
|
|
|
- import { getList } from '@api/dataSource/businessLedger'
|
|
|
+ import { getList, downloadFiles } from '@api/dataSource/businessLedger'
|
|
|
import { useColumns } from './index.columns'
|
|
|
import { useDictStore } from '@/store/modules/dict'
|
|
|
+ import { exportFile } from '@utils'
|
|
|
|
|
|
defineOptions({
|
|
|
name: 'ReceiveLendingLedger'
|
|
@@ -114,6 +115,12 @@
|
|
|
search.rows = pageParams.pageSize
|
|
|
fetchData()
|
|
|
}
|
|
|
+
|
|
|
+ const downloadClick = () => {
|
|
|
+ downloadFiles({ ...search }).then((res) => {
|
|
|
+ exportFile(res)
|
|
|
+ })
|
|
|
+ }
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped></style>
|