diff --git a/src/views/sunVillage_info/list_tourists_add.vue b/src/views/sunVillage_info/list_tourists_add.vue index 4770b794..17e5ac2e 100644 --- a/src/views/sunVillage_info/list_tourists_add.vue +++ b/src/views/sunVillage_info/list_tourists_add.vue @@ -46,27 +46,11 @@ - - - - - - - - - -
@@ -118,16 +102,11 @@ form:{ openNy:this.format(new Date(),'yyyy-MM'), openPic:'', - openPic2:'', - openPic3:'', openFile:'', openName:this.format(new Date(),'yyyy')+ '年' + (this.format(new Date(),'MM')-1) + '月零工公开' }, openPic:[], fileList:[], - fileList1:[], - fileList2:[], - fileList3:[], openNy:new Date(), type:'', openFile:[], @@ -138,8 +117,6 @@ }, openFile2:[], openPic2:[], - openPic3:[], - openPic4:[], }; }, created() { @@ -161,8 +138,6 @@ var that = this; that.form.openFile = that.openFile2.join(',') that.form.openPic = that.openPic2.join(',') - that.form.openPic2 = that.openPic3.join(',') - that.form.openPic3 = that.openPic4.join(',') tempWorkerOpenAdd(that.form).then((r1) => { if (r1.code == 200){ that.$notify({ type: 'success', message: '新增成功' }); @@ -181,14 +156,6 @@ this.openPic2.splice(detail.index,1) // this.form.openPic.splice(index,1); }, - deleteFile2(detail){ - this.openPic3.splice(detail.index,1) - // this.form.openPic.splice(index,1); - }, - deleteFile3(detail){ - this.openPic4.splice(detail.index,1) - // this.form.openPic.splice(index,1); - }, deleteWord(index){ this.openFileList.splice(index,1); this.openFile2.splice(index,1); @@ -216,52 +183,6 @@ }) } }, - afterRead2(file) { - this.$toast.loading({ - message: "上传中...", - forbidClick: true, - duration: 0, - }); - // 此时可以自行将文件上传至服务器 - if (file instanceof Array){//判断是否为数组,单张图片为array,多张为数组,数组返回true否则为false - file.map(res=>{ - let params1 = new FormData(); - params1.append("file", res.file); - commonUpload(params1).then((r1) => { - this.openPic3.push(r1.fileName); - }) - }) - }else{ - let params1 = new FormData(); - params1.append("file", file.file); - commonUpload(params1).then((r1) => { - this.openPic3.push(r1.fileName); - }) - } - }, - afterRead3(file) { - this.$toast.loading({ - message: "上传中...", - forbidClick: true, - duration: 0, - }); - // 此时可以自行将文件上传至服务器 - if (file instanceof Array){//判断是否为数组,单张图片为array,多张为数组,数组返回true否则为false - file.map(res=>{ - let params1 = new FormData(); - params1.append("file", res.file); - commonUpload(params1).then((r1) => { - this.openPic4.push(r1.fileName); - }) - }) - }else{ - let params1 = new FormData(); - params1.append("file", file.file); - commonUpload(params1).then((r1) => { - this.openPic4.push(r1.fileName); - }) - } - }, afterReadOpenFile(file){ this.$toast.loading({ message: "上传中...", diff --git a/src/views/sunVillage_info/list_tourists_detail.vue b/src/views/sunVillage_info/list_tourists_detail.vue index 2d85901f..a8607721 100644 --- a/src/views/sunVillage_info/list_tourists_detail.vue +++ b/src/views/sunVillage_info/list_tourists_detail.vue @@ -36,28 +36,12 @@ - - - - - - - - - -