src/views/business/materialOrderComponents/materialOrder/downFileDialog.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/business/reportPreparation/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/views/business/materialOrderComponents/materialOrder/downFileDialog.vue
@@ -46,13 +46,27 @@ methods: { // 进厂检验报告下载 downLoad0 () { let url = this.javaApi+'/word/' + this.downLoadInfo.enterUrlS ? this.downLoadInfo.enterUrlS : this.downLoadInfo.enterUrl this.$download.saveAs(url, this.downLoadInfo.fileName); let url = this.downLoadInfo.enterUrlS ? this.downLoadInfo.enterUrlS : this.downLoadInfo.enterUrl if(url){ url = url.split('.')[0]+'.pdf' const link = document.createElement('a'); link.href = this.javaApi + url; link.target = '_blank'; document.body.appendChild(link); link.click(); } }, // 季度检验报告下载 downLoad1 () { let url = this.javaApi+'/word/' + this.downLoadInfo.quarterUrlS ? this.downLoadInfo.quarterUrlS : this.downLoadInfo.quarterUrl this.$download.saveAs(url, this.downLoadInfo.fileName); let url = this.downLoadInfo.quarterUrlS ? this.downLoadInfo.quarterUrlS : this.downLoadInfo.quarterUrl if(url){ url = url.split('.')[0]+'.pdf' const link = document.createElement('a'); link.href = this.javaApi + url; link.target = '_blank'; document.body.appendChild(link); link.click(); } } }, } src/views/business/reportPreparation/index.vue
@@ -85,7 +85,7 @@ @click="fullscreen = true;"></i> <img v-else alt="" src="@/assets/images/no-full.svg" style="cursor: pointer;" @click="fullscreen = false;"> </div> <div v-if="issuedVisible" style="height: 80vh;"> <div v-if="issuedVisible" style="height: 70vh;"> <onlyoffice ref="onlyoffice" :options="option" style="width: 100%;height: 100%;" /> </div> <span slot="footer" class="dialog-footer"> @@ -110,7 +110,7 @@ @click="fullscreen = true;"></i> <img v-else alt="" src="@/assets/images/no-full.svg" style="cursor: pointer;" @click="fullscreen = false;"> </div> <div v-if="approveVisible" style="height: 80vh;"> <div v-if="approveVisible" style="height: 70vh;"> <onlyoffice ref="onlyoffice" :options="option" style="width: 100%;height: 100%;" /> </div> <span slot="footer" class="dialog-footer"> @@ -871,6 +871,8 @@ this.refreshTable('page') this.currentInfo = null; this.approveVisible = false; }).catch(() => { this.loadingApprove = false; }) }, handle(row) {