From c4cfd5c566d137fb60781b8b2e0057d11cf4b051 Mon Sep 17 00:00:00 2001
From: chenrui <1187576398@qq.com>
Date: 星期四, 13 三月 2025 17:33:06 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/dev' into dev
---
src/views/business/inspectionReview/index.vue | 60 +++++++++++++++++++++++++++++++-----------------------------
1 files changed, 31 insertions(+), 29 deletions(-)
diff --git a/src/views/business/inspectionReview/index.vue b/src/views/business/inspectionReview/index.vue
index c724ca4..a2f5cfb 100644
--- a/src/views/business/inspectionReview/index.vue
+++ b/src/views/business/inspectionReview/index.vue
@@ -343,14 +343,14 @@
},
})
},
- // 涓婁紶鎶ュ憡
- handleUpload(row) {
-
- },
// 涓嬭浇鎶ュ憡
download(row) {
- let url = this.javaApi + '/word/' + (row.urlS === null || row.urlS === '') ? row.url : row.urlS
- this.$download.saveAs(url, row.fileName);
+ let url = (row.urlS===null||row.urlS==='')?row.url:row.urlS
+ const link = document.createElement('a');
+ link.href = this.javaApi + url;
+ link.target = '_blank';
+ document.body.appendChild(link);
+ link.click();
},
// 杩樺師鎿嶄綔
handleRestore(row) {
@@ -370,30 +370,32 @@
},
// 鏌ョ湅鎶ュ憡
handleIssued(row) {
- if (!row.tempUrlPdf) return this.$message.warning('鏂囦欢鏈笂浼�')
+ // todo: 鏌ョ湅鎶ュ憡缁勪欢
+/* if (!row.tempUrlPdf) return this.$message.warning('鏂囦欢鏈笂浼�')
this.currentInfo = row
- this.lookDialogVisible = true
- // this.currentInfo = row;
- // let fileName = row.url
- // let fileType = "docx"
- // if (row.tempUrlPdf != null || row.tempUrlPdf === '') {
- // fileName = row.tempUrlPdf
- // fileType = "pdf"
- // }
- // fileName = fileName.replace('/word/','')
- // const userName = this.nickName
- // this.option = {
- // url: this.javaApi + "/word/" + fileName,
- // isEdit: false,
- // fileType: fileType,
- // title: fileName,
- // lang: 'zh-CN',
- // isPrint: false,
- // user_id: 1,
- // user_name: userName,
- // editUrl: this.javaApi + "/insReport/onlyOffice/save?fileName=" + fileName
- // }
- // this.issuedVisible = true;
+ this.lookDialogVisible = true*/
+ console.log(this.javaApi)
+ this.currentInfo = row;
+ let fileName = row.url
+ let fileType = "docx"
+ if (row.tempUrlPdf != null || row.tempUrlPdf === '') {
+ fileName = row.tempUrlPdf
+ fileType = "pdf"
+ }
+ fileName = fileName.replace('/word/','')
+ const userName = this.nickName
+ this.option = {
+ url: this.javaApi + "/word/" + fileName,
+ isEdit: false,
+ fileType: fileType,
+ title: fileName,
+ lang: 'zh-CN',
+ isPrint: false,
+ user_id: 1,
+ user_name: userName,
+ editUrl: this.javaApi + "/insReport/onlyOffice/save?fileName=" + fileName
+ }
+ this.issuedVisible = true;
},
getAuthorizedPerson() {
selectUserCondition({ type: 1 }).then((res) => {
--
Gitblit v1.9.3