|
@@ -146,6 +146,7 @@ import {
|
|
import {listCollection,exportCollection} from "@/api/business/financial/collectDetail"
|
|
import {listCollection,exportCollection} from "@/api/business/financial/collectDetail"
|
|
import {onMounted} from "@vue/runtime-core";
|
|
import {onMounted} from "@vue/runtime-core";
|
|
import integer from "async-validator/dist-types/validator/integer";
|
|
import integer from "async-validator/dist-types/validator/integer";
|
|
|
|
+import {ElLoading} from "element-plus";
|
|
|
|
|
|
const { proxy } = getCurrentInstance();
|
|
const { proxy } = getCurrentInstance();
|
|
interface ICollectionDetail {
|
|
interface ICollectionDetail {
|
|
@@ -254,7 +255,13 @@ function resetQuery() {
|
|
handleQuery();
|
|
handleQuery();
|
|
}
|
|
}
|
|
const handleExport = () =>{
|
|
const handleExport = () =>{
|
|
- exportCollection(queryParams.value,'收款明细导出.xlsx');
|
|
|
|
|
|
+ let downloadLoadingInstance = ElLoading.service({
|
|
|
|
+ text: "正在下载数据,请稍候",
|
|
|
|
+ background: "rgba(0, 0, 0, 0.7)",
|
|
|
|
+ });
|
|
|
|
+ exportCollection(queryParams.value,'收款明细导出.xlsx').then(()=>{
|
|
|
|
+ downloadLoadingInstance.close();
|
|
|
|
+ });
|
|
}
|
|
}
|
|
//组件激活时调用
|
|
//组件激活时调用
|
|
onMounted(() => {
|
|
onMounted(() => {
|