@@ -189,11 +189,13 @@
},
afterRead(file) {
// 此时可以自行将文件上传至服务器
- this.openPic.push(file.file);
- let params1 = new FormData();
- params1.append("file", file.file);
- commonUpload(params1).then((r1) => {
- this.openPic2.push(r1.fileName);
+ file.map(res=> {
+ this.openPic.push(res.file);
+ let params1 = new FormData();
+ params1.append("file", res.file);
+ commonUpload(params1).then((r1) => {
+ this.openPic2.push(r1.fileName);
+ })
})
},
afterReadOpenFile(file){
diff --git a/src/views/sunVillage_info/list_photo_edit.vue b/src/views/sunVillage_info/list_photo_edit.vue
index c64579d5..17edadf0 100644
--- a/src/views/sunVillage_info/list_photo_edit.vue
+++ b/src/views/sunVillage_info/list_photo_edit.vue
@@ -71,7 +71,7 @@
-
+
@@ -209,11 +209,12 @@
},
afterRead(file) {
// 此时可以自行将文件上传至服务器
- // this.openPic.push(file.file);
- let params1 = new FormData();
- params1.append("file", file.file);
- commonUpload(params1).then((r1) => {
- this.openPic2.push(r1.fileName);
+ file.forEach(res=> {
+ let params1 = new FormData();
+ params1.append("file", res.file);
+ commonUpload(params1).then((r1) => {
+ this.openPic2.push(r1.fileName);
+ })
})
},
afterReadOpenFile(file){
diff --git a/src/views/sunVillage_info/list_tourists.vue b/src/views/sunVillage_info/list_tourists.vue
index f5b538f9..1b2cc13c 100644
--- a/src/views/sunVillage_info/list_tourists.vue
+++ b/src/views/sunVillage_info/list_tourists.vue
@@ -35,7 +35,7 @@
{{item.openNy}}