From dc3e687df3ba49f48f542c9c3088ce3bbc4318cd Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期三, 05 三月 2025 09:40:55 +0800
Subject: [PATCH] 解决上传文件需要认证的问题
---
src/views/CNAS/systemManagement/documentControl/components/DistributionCollectionRecord.vue | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/src/views/CNAS/systemManagement/documentControl/components/DistributionCollectionRecord.vue b/src/views/CNAS/systemManagement/documentControl/components/DistributionCollectionRecord.vue
index 887fbfb..c12cae4 100644
--- a/src/views/CNAS/systemManagement/documentControl/components/DistributionCollectionRecord.vue
+++ b/src/views/CNAS/systemManagement/documentControl/components/DistributionCollectionRecord.vue
@@ -152,7 +152,7 @@
<div class="search_thing">
<div class="search_label">涓婁紶闄勪欢锛�</div>
<div class="search_input"><el-upload :auto-upload="false" :multiple="false" :on-change="handleChangeUpload"
- accept='.pdf,.doc,.docx,.xls,.xlsx' action="#" style="margin: 8px 0 0px 50px;">
+ accept='.pdf,.doc,.docx,.xls,.xlsx' action="#" style="margin: 8px 0 0px 50px;" ref="upload">
<el-button size="small" type="primary">涓婁紶闄勪欢</el-button>
</el-upload></div>
</div>
@@ -245,7 +245,7 @@
clickFun: (row) => {
this.handleDelete(row);
},
- disabFun: (row, index) => {
+ disabled: (row, index) => {
return row.documentState == '閫氳繃'
}
},
@@ -255,7 +255,7 @@
clickFun: (row) => {
this.handleLook(row);
},
- disabFun: (row, index) => {
+ disabled: (row, index) => {
return !row.url
}
},
@@ -265,7 +265,7 @@
clickFun: (row) => {
this.handleCheck(row);
},
- disabFun: (row, index) => {
+ disabled: (row, index) => {
return row.receiveUser != this.userId || row.documentState == '閫氳繃'
}
},
@@ -480,6 +480,8 @@
this.addInfo = this.HaveJson(row)
this.radio = '鍥炴敹'
this.addDialogVisible = true
+ this.file = null
+ this.$refs.upload.clearFiles()
},
// 瀹℃牳
handleCheck(row) {
--
Gitblit v1.9.3