|
|
@@ -109,11 +109,11 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</template>
|
|
|
- <el-table-column label="合同附件" align="center" show-overflow-tooltip>
|
|
|
+ <!-- <el-table-column label="合同附件" align="center" show-overflow-tooltip>
|
|
|
<template #default="scope_c">
|
|
|
<el-button :loading="downloadLoading" text @click="downloadFile(scope_c.row)">{{ scope_c.row.fileName }}</el-button>
|
|
|
</template>
|
|
|
- </el-table-column>
|
|
|
+ </el-table-column> -->
|
|
|
</el-table>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
@@ -295,19 +295,19 @@ export default {
|
|
|
exportExcel(header, data, merges, "招标台账.xlsx");
|
|
|
},
|
|
|
|
|
|
- async downloadFile({ objectId, fileName }) {
|
|
|
- try {
|
|
|
- this.downloadLoading = true;
|
|
|
- const res = await this.$API.procurement.contract.download({ objectId, fileName });
|
|
|
- this.downloadLoading = false;
|
|
|
- const a = document.createElement("a");
|
|
|
- a.href = URL.createObjectURL(res);
|
|
|
- a.download = fileName;
|
|
|
- a.click();
|
|
|
- } catch (error) {
|
|
|
- this.downloadLoading = false;
|
|
|
- }
|
|
|
- }
|
|
|
+ // async downloadFile({ objectId, fileName }) {
|
|
|
+ // try {
|
|
|
+ // this.downloadLoading = true;
|
|
|
+ // const res = await this.$API.procurement.contract.download({ objectId, fileName });
|
|
|
+ // this.downloadLoading = false;
|
|
|
+ // const a = document.createElement("a");
|
|
|
+ // a.href = URL.createObjectURL(res);
|
|
|
+ // a.download = fileName;
|
|
|
+ // a.click();
|
|
|
+ // } catch (error) {
|
|
|
+ // this.downloadLoading = false;
|
|
|
+ // }
|
|
|
+ // }
|
|
|
}
|
|
|
}
|
|
|
</script>
|