From 560f0e034ced7fdeface5325da49029d196e4f4a Mon Sep 17 00:00:00 2001 From: jiangyinzhi <4617248933@YFZMY.COM> Date: Tue, 13 Aug 2024 14:48:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BE=E7=89=87=E4=B8=8A=E4=BC=A0=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/facilityManage/common-vue/uploader.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/views/facilityManage/common-vue/uploader.vue b/src/views/facilityManage/common-vue/uploader.vue index 45e0b7b..dd50918 100644 --- a/src/views/facilityManage/common-vue/uploader.vue +++ b/src/views/facilityManage/common-vue/uploader.vue @@ -3,6 +3,7 @@ -
+
@@ -39,6 +40,7 @@ export default { data() { return { + disableImg: false, fileList: this.value, activTimer: null, } @@ -92,6 +94,7 @@ export default { }, async afterRead(file) { console.log('--------afterRead---', file) + this.disableImg = true let params = new FormData() params.append('file', file.file) console.log(file.file) @@ -99,7 +102,10 @@ export default { // console.log(decryptParseToJSON(a),77777777); const res = await uploadFile(params) if (res.code == 0) { + this.disableImg = false this.$emit('afterRead', res.data, this.type) + }else{ + this.disableImg = false } return true },