From b2d0d640cf48d874fe24816672f1a4c3e57fda36 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期五, 21 三月 2025 14:53:31 +0800
Subject: [PATCH] 修改电路实验问题
---
src/components/do/a6-facilities-environment/facilities-environmental-conditions/lightning-protection-detection.vue | 24 +++++-------------------
1 files changed, 5 insertions(+), 19 deletions(-)
diff --git a/src/components/do/a6-facilities-environment/facilities-environmental-conditions/lightning-protection-detection.vue b/src/components/do/a6-facilities-environment/facilities-environmental-conditions/lightning-protection-detection.vue
index 9401172..90ab5ed 100644
--- a/src/components/do/a6-facilities-environment/facilities-environmental-conditions/lightning-protection-detection.vue
+++ b/src/components/do/a6-facilities-environment/facilities-environmental-conditions/lightning-protection-detection.vue
@@ -96,11 +96,11 @@
class="upload-demo"
drag
action="#"
- :on-remove="handleRemove"
:http-request="httpRequest"
:file-list="form.fileList"
:on-exceed="handleExceed"
:limit="1"
+ :accept="'.jpg,.jpeg,.png'"
multiple>
<i class="el-icon-upload"></i>
<div class="el-upload__text">灏嗘枃浠舵嫋鍒版澶勶紝鎴�<em>鐐瑰嚮涓婁紶</em></div>
@@ -119,7 +119,7 @@
</template>
<script>
-
+import fileDownload from '../../../../util/file'
export default {
data() {
return {
@@ -207,6 +207,7 @@
},
// 瑕嗙洊榛樿鐨勪笂浼犺涓猴紝鍙互鑷畾涔変笂浼犵殑瀹炵幇锛屽皢涓婁紶鐨勬枃浠朵緷娆℃坊鍔犲埌fileList鏁扮粍涓�,鏀寔澶氫釜鏂囦欢
httpRequest(option) {
+ this.form.fileData = []
this.form.fileData.push(option)
},
addImport() {
@@ -254,25 +255,10 @@
})
})
},
- handleRemove(file) {
- this.$axios.delete(this.$api.personnel.deleteCNASFile + "?fileName=" + file.name).then(res => {
- if (res.code === 201) return;
- this.$message.success('鍒犻櫎鎴愬姛锛�')
- let index = this.form.fileList.indexOf(fileName)
- if (index != -1) {
- this.successFileList.splice(index, 1)
- }
- })
- },
download(row) {
let url = '';
-
- // fileDownload.downloadIamge(url, row.fileName)
- url = this.javaApi + 'img/' + row.systemFileName
- const link = document.createElement('a');
- link.href = url;
- link.download = row.fileName;
- link.click();
+ url = this.javaApi + '/img/' + row.systemFileName
+ fileDownload.downloadIamge(url, row.fileName)
}
}
}
--
Gitblit v1.9.3