|
|
@ -82,7 +82,7 @@ const updataTableColumns = (val) => { |
|
|
|
} |
|
|
|
|
|
|
|
const { tableObject, tableMethods } = useTable({ |
|
|
|
getListApi: SupplierApi.getSupplierPage // 分页接口 |
|
|
|
getListApi: routeName.value.includes('SCP')?SupplierApi.getSupplierPageSCP:SupplierApi.getSupplierPage // 分页接口 |
|
|
|
}) |
|
|
|
|
|
|
|
// 获得表格的各种操作 |
|
|
@ -220,8 +220,13 @@ const handleExport = async () => { |
|
|
|
await message.exportConfirm() |
|
|
|
// 发起导出 |
|
|
|
exportLoading.value = true |
|
|
|
const data = await SupplierApi.exportSupplier(tableObject.params) |
|
|
|
download.excel(data, `${t('ts.供应商')}.xlsx`) |
|
|
|
if(routeName.value.includes('SCP')){ |
|
|
|
const data = await SupplierApi.exportSupplier(tableObject.params) |
|
|
|
download.excel(data, `${t('ts.供应商')}.xlsx`) |
|
|
|
}else{ |
|
|
|
const data = await SupplierApi.exportSupplierSCP(tableObject.params) |
|
|
|
download.excel(data, `${t('ts.供应商')}.xlsx`) |
|
|
|
} |
|
|
|
} catch { |
|
|
|
} finally { |
|
|
|
exportLoading.value = false |
|
|
|