|
@@ -26,7 +26,7 @@
|
|
|
<el-button v-if="tagData.status === 30" type="text" @click="jump('report_home_viewReport', '/monthlyReport/edit', { pageType: 'readAll', reportId: reportStatus.id })"> 查看完整报告</el-button>
|
|
|
<!-- @click="downloadMonthlyReportFn" -->
|
|
|
<!-- <a target="blank" :href="`${projectManagementUrl}/monthlyReport/downloadMonthlyReport?id=${reportValue}&refrash=true`" :download="`${reportName}.pdf`" style="margin-left: 10px;display: inline-block"><svg-icon icon-class="monthlyReport下载" class="icon" /></a> -->
|
|
|
- <a v-show="isShowPdfPushDow() && tagData.status === 20" @click="downloadFile" style="margin-left: 10px;display: inline-block"><svg-icon icon-class="monthlyReport下载" class="icon" /></a>
|
|
|
+ <a v-show="isShowPdfPushDow() && tagData.status === 20" @click="downloadFile(true)" style="margin-left: 10px;display: inline-block"><svg-icon icon-class="monthlyReport下载" class="icon" /></a>
|
|
|
<a v-show="isShowPdfDow()" target="blank" @click="downloadFile" style="margin-left: 10px;display: inline-block"><svg-icon icon-class="monthlyReport下载" class="icon" /></a>
|
|
|
<el-button v-if="tagData.status === 0" type="text" @click="sendConfirm(reportData)"> 发送确认</el-button>
|
|
|
</div>
|
|
@@ -226,7 +226,7 @@ export default {
|
|
|
this.reportValue = e.id
|
|
|
this.reportStatus = e
|
|
|
},
|
|
|
- downloadFile () {
|
|
|
+ downloadFile ( refrash = false ) {
|
|
|
console.log(this.projectManagementUrl)
|
|
|
// fetch(`${this.projectManagementUrl}/monthlyReport/downloadMonthlyReport?id=${this.reportValue}&refrash=true`, {
|
|
|
// method: 'POST',
|
|
@@ -237,7 +237,7 @@ export default {
|
|
|
// })
|
|
|
downloadMonthlyReport({
|
|
|
id: this.reportValue,
|
|
|
- refrash: false
|
|
|
+ refrash
|
|
|
}).then((res) => {
|
|
|
this.convertRes2Blob(res)
|
|
|
// console.log(blob)
|