diff --git a/src/views/sunVillage_info/list_complaint_add.vue b/src/views/sunVillage_info/list_complaint_add.vue index 53e566f6..6dcf2f71 100644 --- a/src/views/sunVillage_info/list_complaint_add.vue +++ b/src/views/sunVillage_info/list_complaint_add.vue @@ -232,6 +232,12 @@ }) }, afterRead(file) { + + this.$toast.loading({ + message: "上传中...", + forbidClick: true, + duration: 0, + }); console.log(file instanceof Array) if (file instanceof Array){//判断是否为数组,单张图片为array,多张为数组,数组返回true否则为false file.map(res=>{ @@ -260,6 +266,11 @@ // this.form.openPic.splice(index,1); }, afterReadVideo(file){ + this.$toast.loading({ + message: "上传中...", + forbidClick: true, + duration: 0, + }); const that = this; let formData = new FormData(); // 为上传文件定义一个formData对象 formData.append("file", file.file); diff --git a/src/views/sunVillage_info/list_contract_add.vue b/src/views/sunVillage_info/list_contract_add.vue index 00277afa..d7d229c8 100644 --- a/src/views/sunVillage_info/list_contract_add.vue +++ b/src/views/sunVillage_info/list_contract_add.vue @@ -204,6 +204,11 @@ this.openFile2.splice(index,1); }, afterRead(file) { + this.$toast.loading({ + message: "上传中...", + forbidClick: true, + duration: 0, + }); console.log(file instanceof Array) if (file instanceof Array){//判断是否为数组,单张图片为array,多张为数组,数组返回true否则为false file.map(res=>{ diff --git a/src/views/sunVillage_info/list_contract_edit.vue b/src/views/sunVillage_info/list_contract_edit.vue index c8ee6e32..8cef023b 100644 --- a/src/views/sunVillage_info/list_contract_edit.vue +++ b/src/views/sunVillage_info/list_contract_edit.vue @@ -231,6 +231,11 @@ this.openFile2.splice(index,1); }, afterRead(file) { + this.$toast.loading({ + message: "上传中...", + forbidClick: true, + duration: 0, + }); // 此时可以自行将文件上传至服务器 if (file instanceof Array){//判断是否为数组,单张图片为array,多张为数组,数组返回true否则为false file.map(res=>{ @@ -249,6 +254,11 @@ } }, afterReadOpenFile(file){ + this.$toast.loading({ + message: "上传中...", + forbidClick: true, + duration: 0, + }); let params1 = new FormData(); params1.append("file", file.file); commonUpload(params1).then((r1) => { diff --git a/src/views/sunVillage_info/list_finance_add.vue b/src/views/sunVillage_info/list_finance_add.vue index 7bd6edfb..ba4b4b23 100644 --- a/src/views/sunVillage_info/list_finance_add.vue +++ b/src/views/sunVillage_info/list_finance_add.vue @@ -164,6 +164,12 @@ this.openFile2.splice(index,1); }, afterRead(file) { + + this.$toast.loading({ + message: "上传中...", + forbidClick: true, + duration: 0, + }); // 此时可以自行将文件上传至服务器 if (file instanceof Array){//判断是否为数组,单张图片为array,多张为数组,数组返回true否则为false file.map(res=>{ diff --git a/src/views/sunVillage_info/list_finance_edit.vue b/src/views/sunVillage_info/list_finance_edit.vue index b68308e3..5ce7f31a 100644 --- a/src/views/sunVillage_info/list_finance_edit.vue +++ b/src/views/sunVillage_info/list_finance_edit.vue @@ -191,7 +191,11 @@ this.openFile2.splice(index,1); }, afterRead(file) { - // 此时可以自行将文件上传至服务器 + this.$toast.loading({ + message: "上传中...", + forbidClick: true, + duration: 0, + }); if (file instanceof Array){//判断是否为数组,单张图片为array,多张为数组,数组返回true否则为false file.map(res=>{ let params1 = new FormData(); diff --git a/src/views/sunVillage_info/list_issues_add.vue b/src/views/sunVillage_info/list_issues_add.vue index ea0159c0..fcedc896 100644 --- a/src/views/sunVillage_info/list_issues_add.vue +++ b/src/views/sunVillage_info/list_issues_add.vue @@ -169,6 +169,11 @@ this.openFile2.splice(index,1); }, afterRead(file) { + this.$toast.loading({ + message: "上传中...", + forbidClick: true, + duration: 0, + }); // 此时可以自行将文件上传至服务器 if (file instanceof Array){//判断是否为数组,单张图片为array,多张为数组,数组返回true否则为false file.map(res=>{ @@ -189,6 +194,11 @@ } }, afterReadOpenFile(file){ + this.$toast.loading({ + message: "上传中...", + forbidClick: true, + duration: 0, + }); console.log(file) let params1 = new FormData(); params1.append("file", file.file); diff --git a/src/views/sunVillage_info/list_issues_edit.vue b/src/views/sunVillage_info/list_issues_edit.vue index eef9e003..f843a871 100644 --- a/src/views/sunVillage_info/list_issues_edit.vue +++ b/src/views/sunVillage_info/list_issues_edit.vue @@ -199,6 +199,11 @@ this.openFile2.splice(index,1); }, afterRead(file) { + this.$toast.loading({ + message: "上传中...", + forbidClick: true, + duration: 0, + }); // 此时可以自行将文件上传至服务器 if (file instanceof Array){//判断是否为数组,单张图片为array,多张为数组,数组返回true否则为false file.map(res=>{ @@ -217,6 +222,11 @@ } }, afterReadOpenFile(file){ + this.$toast.loading({ + message: "上传中...", + forbidClick: true, + duration: 0, + }); let params1 = new FormData(); params1.append("file", file.file); commonUpload(params1).then((r1) => { diff --git a/src/views/sunVillage_info/list_message_add.vue b/src/views/sunVillage_info/list_message_add.vue index 24ffad41..a4a55d4a 100644 --- a/src/views/sunVillage_info/list_message_add.vue +++ b/src/views/sunVillage_info/list_message_add.vue @@ -111,6 +111,11 @@ // this.form.openPic.splice(index,1); }, afterRead(file) { + this.$toast.loading({ + message: "上传中...", + forbidClick: true, + duration: 0, + }); // 此时可以自行将文件上传至服务器 if (file instanceof Array){//判断是否为数组,单张图片为array,多张为数组,数组返回true否则为false file.map(res=>{ diff --git a/src/views/sunVillage_info/list_photo_add.vue b/src/views/sunVillage_info/list_photo_add.vue index ebd1e98c..812a284a 100644 --- a/src/views/sunVillage_info/list_photo_add.vue +++ b/src/views/sunVillage_info/list_photo_add.vue @@ -188,6 +188,11 @@ this.openFile2.splice(index,1); }, afterRead(file) { + this.$toast.loading({ + message: "上传中...", + forbidClick: true, + duration: 0, + }); // 此时可以自行将文件上传至服务器 if (file instanceof Array){//判断是否为数组,单张图片为array,多张为数组,数组返回true否则为false file.map(res=>{ @@ -208,6 +213,11 @@ } }, afterReadOpenFile(file){ + this.$toast.loading({ + message: "上传中...", + forbidClick: true, + duration: 0, + }); let params1 = new FormData(); params1.append("file", file.file); commonUpload(params1).then((r1) => { diff --git a/src/views/sunVillage_info/list_photo_edit.vue b/src/views/sunVillage_info/list_photo_edit.vue index 6af450a3..58f49da9 100644 --- a/src/views/sunVillage_info/list_photo_edit.vue +++ b/src/views/sunVillage_info/list_photo_edit.vue @@ -208,6 +208,11 @@ this.openFile2.splice(index,1); }, afterRead(file) { + this.$toast.loading({ + message: "上传中...", + forbidClick: true, + duration: 0, + }); // 此时可以自行将文件上传至服务器 if (file instanceof Array){//判断是否为数组,单张图片为array,多张为数组,数组返回true否则为false file.map(res=>{ @@ -226,6 +231,11 @@ } }, afterReadOpenFile(file){ + this.$toast.loading({ + message: "上传中...", + forbidClick: true, + duration: 0, + }); let params1 = new FormData(); params1.append("file", file.file); commonUpload(params1).then((r1) => { diff --git a/src/views/sunVillage_info/list_tourists_add.vue b/src/views/sunVillage_info/list_tourists_add.vue index 0567ce21..5656082f 100644 --- a/src/views/sunVillage_info/list_tourists_add.vue +++ b/src/views/sunVillage_info/list_tourists_add.vue @@ -162,6 +162,11 @@ this.openFile2.splice(index,1); }, afterRead(file) { + this.$toast.loading({ + message: "上传中...", + forbidClick: true, + duration: 0, + }); // 此时可以自行将文件上传至服务器 if (file instanceof Array){//判断是否为数组,单张图片为array,多张为数组,数组返回true否则为false file.map(res=>{ @@ -182,6 +187,11 @@ } }, afterReadOpenFile(file){ + this.$toast.loading({ + message: "上传中...", + forbidClick: true, + duration: 0, + }); let params1 = new FormData(); params1.append("file", file.file); commonUpload(params1).then((r1) => { diff --git a/src/views/sunVillage_info/list_tourists_edit.vue b/src/views/sunVillage_info/list_tourists_edit.vue index dc658c2e..6344b23c 100644 --- a/src/views/sunVillage_info/list_tourists_edit.vue +++ b/src/views/sunVillage_info/list_tourists_edit.vue @@ -191,6 +191,11 @@ this.openFile2.splice(index,1); }, afterRead(file) { + this.$toast.loading({ + message: "上传中...", + forbidClick: true, + duration: 0, + }); // 此时可以自行将文件上传至服务器 if (file instanceof Array){//判断是否为数组,单张图片为array,多张为数组,数组返回true否则为false file.map(res=>{ @@ -209,6 +214,11 @@ } }, afterReadOpenFile(file){ + this.$toast.loading({ + message: "上传中...", + forbidClick: true, + duration: 0, + }); let params1 = new FormData(); params1.append("file", file.file); commonUpload(params1).then((r1) => {