no message

main
HUOJIN\92525 2026-01-23 18:05:06 +08:00
parent d1ee99a823
commit 4b3fe01799
1 changed files with 16 additions and 2 deletions

View File

@ -50,7 +50,7 @@
<!--插槽:table标题-->
<template #tableTitle>
<a-button type="primary" v-auth="'inventory:data_inventory:add'" @click="handleAdd" preIcon="ant-design:plus-outlined"> </a-button>
<a-button type="primary" v-auth="'inventory:data_inventory:exportXls'" preIcon="ant-design:export-outlined" @click="onExportXls">
<a-button type="primary" v-auth="'inventory:data_inventory:exportXls'" preIcon="ant-design:export-outlined" :loading="exportLoading" @click="handleExport">
导出
</a-button>
<j-upload-button type="primary" v-auth="'inventory:data_inventory:importExcel'" preIcon="ant-design:import-outlined" @click="onImportXls"
@ -127,7 +127,7 @@
},
},
exportConfig: {
name: '库存',
name: '库存信息',
url: getExportUrl,
params: queryParam,
},
@ -244,6 +244,20 @@
//
reload();
}
//
const exportLoading = ref(false);
//
async function handleExport() {
exportLoading.value = true;
try {
// tableContext onExportXls
// handleExportXls
await onExportXls();
} finally {
exportLoading.value = false;
}
}
</script>
<style lang="less" scoped>