From 7a58dddddb9e229b9ad03499a18dcdf07fcee4c5 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期三, 05 三月 2025 10:03:32 +0800
Subject: [PATCH] 文件管理,文件没有清空的问题

---
 src/views/CNAS/systemManagement/documentControl/components/DistributionCollectionRecord.vue |    2 +-
 src/views/CNAS/systemManagement/documentControl/components/FileChangeRequest.vue            |    2 ++
 src/views/CNAS/systemManagement/documentRecords/revisionRecord.vue                          |    5 +++++
 src/views/CNAS/systemManagement/documentControl/components/ControlledFileApplication.vue    |    1 +
 4 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/src/views/CNAS/systemManagement/documentControl/components/ControlledFileApplication.vue b/src/views/CNAS/systemManagement/documentControl/components/ControlledFileApplication.vue
index 85dd9a0..3e54bad 100644
--- a/src/views/CNAS/systemManagement/documentControl/components/ControlledFileApplication.vue
+++ b/src/views/CNAS/systemManagement/documentControl/components/ControlledFileApplication.vue
@@ -433,6 +433,7 @@
     handleUpdate(row) {
       this.title = '鏂囦欢鍙樻洿鐢宠'
       this.addInfo = this.HaveJson(row)
+      this.file = null
       this.addDialogVisible = true
     },
     // 鏌ョ湅闄勪欢
diff --git a/src/views/CNAS/systemManagement/documentControl/components/DistributionCollectionRecord.vue b/src/views/CNAS/systemManagement/documentControl/components/DistributionCollectionRecord.vue
index c12cae4..bcfbfee 100644
--- a/src/views/CNAS/systemManagement/documentControl/components/DistributionCollectionRecord.vue
+++ b/src/views/CNAS/systemManagement/documentControl/components/DistributionCollectionRecord.vue
@@ -18,7 +18,7 @@
       </div>
       <div class="btns" style="padding-left: 30px;">
         <el-button v-if="addPower" size="small" type="primary"
-          @click="addDialogVisible = true, addInfo = {}, radio = '鍙戞斁'">娣诲姞鍙戞斁璁板綍</el-button>
+          @click="addDialogVisible = true, addInfo = {}, radio = '鍙戞斁', file = null">娣诲姞鍙戞斁璁板綍</el-button>
         <el-button v-if="outPower" :loading="outLoading" size="small" type="primary" @click="handleOut">瀵煎嚭</el-button>
       </div>
     </div>
diff --git a/src/views/CNAS/systemManagement/documentControl/components/FileChangeRequest.vue b/src/views/CNAS/systemManagement/documentControl/components/FileChangeRequest.vue
index a4d1cf8..31a410a 100644
--- a/src/views/CNAS/systemManagement/documentControl/components/FileChangeRequest.vue
+++ b/src/views/CNAS/systemManagement/documentControl/components/FileChangeRequest.vue
@@ -557,6 +557,7 @@
       this.addInfo = this.HaveJson(row)
       let alterBeforeCode = this.addInfo.alterBeforeCode
       this.getCurrentFile(alterBeforeCode)
+      this.file = null
       this.addDialogVisible = true
     },
     // 棰勮
@@ -578,6 +579,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 => {
         //
diff --git a/src/views/CNAS/systemManagement/documentRecords/revisionRecord.vue b/src/views/CNAS/systemManagement/documentRecords/revisionRecord.vue
index d18ebfb..a68b966 100644
--- a/src/views/CNAS/systemManagement/documentRecords/revisionRecord.vue
+++ b/src/views/CNAS/systemManagement/documentRecords/revisionRecord.vue
@@ -542,6 +542,7 @@
         method: '淇',
       }
       this.title = '鏂板'
+      this.file = null
       this.addDialogVisible = true;
     },
     // 瀵煎嚭
@@ -680,6 +681,7 @@
     handleEdit(row) {
       this.addInfo = row
       this.title = '淇敼'
+      this.file = null
       this.addDialogVisible = true;
     },
     // 瀹℃壒
@@ -708,16 +710,19 @@
       this.addInfo = row
       this.title = '鐢宠閮ㄩ棬涓荤鎰忚'
       this.addDialogVisible = true;
+      this.file = null
     },
     handlework1(row) {
       this.addInfo = row
       this.title = '鍘熷畾鍒堕儴闂ㄦ剰瑙�'
       this.addDialogVisible = true;
+      this.file = null
     },
     handlework2(row) {
       this.addInfo = row
       this.title = '鍘熷鏍搁儴闂ㄦ剰瑙�'
       this.addDialogVisible = true;
+      this.file = null
     },
     handleLook(row) {
       this.title0 = '鏌ョ湅'

--
Gitblit v1.9.3