From b6d1cb30fa95ed8c291964f606a05a790a8cacdc Mon Sep 17 00:00:00 2001
From: licp <lichunping@guanfang.com.cn>
Date: 星期四, 26 十二月 2024 14:33:10 +0800
Subject: [PATCH] 修改设施和环境
---
static/js/menu.js | 3 ++-
src/components/do/a6-facilities-environment/facilities-environmental-conditions/lightning-protection-detection.vue | 24 +++++-------------------
2 files changed, 7 insertions(+), 20 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)
}
}
}
diff --git a/static/js/menu.js b/static/js/menu.js
index be1a405..7ca7e0d 100644
--- a/static/js/menu.js
+++ b/static/js/menu.js
@@ -335,7 +335,8 @@
{
v: "璁惧",
i: "font icon-erjidaohang",
- u: "a6-device",
+ // u: "a6-device",
+ u:"a6-device-management",
g: "6.4 璁惧",
p: ""
},
--
Gitblit v1.9.3