From b34c4bfb96b9517ca489982e94abf66e3d7c4b66 Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期一, 17 三月 2025 11:14:32 +0800
Subject: [PATCH] 检验任务代码迁移

---
 src/views/CNAS/systemManagement/documentControl/components/FileChangeRequest.vue |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/views/CNAS/systemManagement/documentControl/components/FileChangeRequest.vue b/src/views/CNAS/systemManagement/documentControl/components/FileChangeRequest.vue
index e61df1a..451a392 100644
--- a/src/views/CNAS/systemManagement/documentControl/components/FileChangeRequest.vue
+++ b/src/views/CNAS/systemManagement/documentControl/components/FileChangeRequest.vue
@@ -13,7 +13,7 @@
       </div>
       <div class="btns">
         <el-button size="small" type="primary"
-          @click="addDialogVisible = true, addInfo = {}, currentFile = {}, title = '鏂囦欢鍙樻洿鐢宠'">鏂囦欢鍙樻洿鐢宠</el-button>
+          @click="addDialogVisible = true, addInfo = {}, currentFile = {}, title = '鏂囦欢鍙樻洿鐢宠', file = null">鏂囦欢鍙樻洿鐢宠</el-button>
         <el-button :loading="outLoading" size="small" type="primary" @click="handleOut">瀵煎嚭</el-button>
       </div>
     </div>
@@ -557,6 +557,7 @@
       this.addInfo = this.HaveJson(row)
       let alterBeforeCode = this.addInfo.alterBeforeCode
       this.getCurrentFile(alterBeforeCode)
+      this.file = null
       this.addDialogVisible = true
     },
     // 棰勮
@@ -566,9 +567,7 @@
     },
     // 涓嬭浇闄勪欢
     handleDown(row) {
-      if (!row.alterAfterUrl) return this.$message.warning('鏂囦欢鏈笂浼�')
-      let url = this.javaApi + '/word/' + row.alterAfterUrl
-      this.$download.saveAs(url, row.alterAfterUrl)
+      this.$download.saveAs(row.alterAfterUrl, row.alterAfterUrl)
     },
     // 鎵撳紑瀹℃牳寮规
     handleCheck(row) {
@@ -578,6 +577,7 @@
       this.addInfo = this.HaveJson(row)
       let alterBeforeCode = this.addInfo.alterBeforeCode
       this.getCurrentFile(alterBeforeCode)
+      this.file = null
       this.addDialogVisible = true
       checkManageDocumentAlterPdf({ id: row.id }).then(res => {
         //

--
Gitblit v1.9.3