|
@@ -5,10 +5,11 @@
|
|
|
</template>
|
|
|
<hc-new-card v-show="!isCarrySpotChecksDrawer" title="已形成的案卷">
|
|
|
<template #extra>
|
|
|
- <el-button hc-btn :disabled="!searchForm.nodeIds" :loading="downLoading" type="primary" @click="downloadArchiveAutoExcelClick">
|
|
|
- <HcIcon name="download" />
|
|
|
- 下载案卷目录
|
|
|
- </el-button>
|
|
|
+ <HcTooltip keys="archives_inspects_btn_download">
|
|
|
+ <el-button hc-btn :disabled="!searchForm.nodeIds" :loading="downLoading" type="primary" @click="downloadArchiveAutoExcelClick">
|
|
|
+ 下载案卷目录
|
|
|
+ </el-button>
|
|
|
+ </HcTooltip>
|
|
|
</template>
|
|
|
<HcTable ref="tableRef" :column="tableColumn" :datas="tableData" :loading="tableLoading" is-new :index-style="{ width: 60 }" @row-click="tableRowClick">
|
|
|
<template #name="{ row }">
|
|
@@ -668,6 +669,8 @@ const downloadArchiveAutoExcelClick = async () => {
|
|
|
if (res) {
|
|
|
downloadBlob(res, headers['content-disposition'], 'application/zip')
|
|
|
window.$message.success('下载成功')
|
|
|
+ } else {
|
|
|
+ window.$message.error(msg || '下载失败')
|
|
|
}
|
|
|
|
|
|
}
|