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 },