diff --git a/src/views/sunVillage_info/list_finance_add.vue b/src/views/sunVillage_info/list_finance_add.vue index db9a1f3e..14f5aeba 100644 --- a/src/views/sunVillage_info/list_finance_add.vue +++ b/src/views/sunVillage_info/list_finance_add.vue @@ -50,7 +50,7 @@ - +
@@ -136,35 +136,17 @@ onSubmit(){ console.log(this.openFile) console.log(this.openPic) - this.openFile.map(res=>{ - let params1 = new FormData(); - params1.append("file", res); - commonUpload(params1).then((r1) => { - this.openFile2.push(r1.fileName); - }) - }) - this.openPic.map(res=>{ - console.log(res) - let params1 = new FormData(); - params1.append("file", res); - commonUpload(params1).then((r1) => { - this.openPic2.push(r1.fileName); - }) - }) var that = this; - setTimeout(function(){ - that.form.openFile = that.openFile2.join(',') - that.form.openPic = that.openPic2.join(',') - openAdd(that.form).then((r1) => { - if (r1.code == 200){ - that.$notify({ type: 'success', message: '新增成功' }); - setTimeout(function(){ - history.back(-1); - },2000) - } - }) - },2000); - + that.form.openFile = that.openFile2.join(',') + that.form.openPic = that.openPic2.join(',') + openAdd(that.form).then((r1) => { + if (r1.code == 200){ + that.$notify({ type: 'success', message: '新增成功' }); + setTimeout(function(){ + history.back(-1); + },2000) + } + }) }, onConfirmOpenNy(data){ this.form.openNy = this.format(data,'yyyy-MM'); @@ -178,9 +160,19 @@ 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); + }) }, afterReadOpenFile(file){ console.log(file) + let params1 = new FormData(); + params1.append("file", file.file); + commonUpload(params1).then((r1) => { + this.openFile2.push(r1.fileName); + }) let name = file.file.name; let type = ''; if (name.indexOf('.doc') > -1){ diff --git a/src/views/sunVillage_info/list_finance_edit.vue b/src/views/sunVillage_info/list_finance_edit.vue index 9afc831b..88e26514 100644 --- a/src/views/sunVillage_info/list_finance_edit.vue +++ b/src/views/sunVillage_info/list_finance_edit.vue @@ -1,7 +1,7 @@ - +
@@ -141,37 +141,17 @@ }, methods: { onSubmit(){ - console.log(this.openFile) - console.log(this.openPic) - this.openFile.map(res=>{ - let params1 = new FormData(); - params1.append("file", res); - commonUpload(params1).then((r1) => { - this.openFile2.push(r1.fileName); - }) - }) - this.openPic.map(res=>{ - console.log(res) - let params1 = new FormData(); - params1.append("file", res); - commonUpload(params1).then((r1) => { - this.openPic2.push(r1.fileName); - }) - }) var that = this; - setTimeout(function(){ - that.form.openFile = that.openFile2.join(',') - that.form.openPic = that.openPic2.join(',') - majorEventOpenAdd(that.form).then((r1) => { - if (r1.code == 200){ - that.$notify({ type: 'success', message: '新增成功' }); - setTimeout(function(){ - history.back(-1); - },2000) - } - }) - },2000); - + that.form.openFile = that.openFile2.join(',') + that.form.openPic = that.openPic2.join(',') + majorEventOpenAdd(that.form).then((r1) => { + if (r1.code == 200){ + that.$notify({ type: 'success', message: '新增成功' }); + setTimeout(function(){ + history.back(-1); + },2000) + } + }) }, onConfirmOpenNy(data){ this.form.openNy = this.format(data,'yyyy-MM'); @@ -185,9 +165,19 @@ 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); + }) }, afterReadOpenFile(file){ console.log(file) + let params1 = new FormData(); + params1.append("file", file.file); + commonUpload(params1).then((r1) => { + this.openFile2.push(r1.fileName); + }) let name = file.file.name; let type = ''; if (name.indexOf('.doc') > -1){ diff --git a/src/views/sunVillage_info/list_issues_edit.vue b/src/views/sunVillage_info/list_issues_edit.vue index 846c26ff..84ce7091 100644 --- a/src/views/sunVillage_info/list_issues_edit.vue +++ b/src/views/sunVillage_info/list_issues_edit.vue @@ -170,37 +170,17 @@ }) }, onSubmit(){ - this.openFileList.map(res=>{ - let params1 = new FormData(); - params1.append("file", res); - commonUpload(params1).then((r1) => { - this.openFile2.push(r1.fileName); - }) - }) - this.openPicList.map(res=>{ - console.log(res) - let params1 = new FormData(); - params1.append("file", res); - commonUpload(params1).then((r1) => { - this.openPic2.push(r1.fileName); - }) - }) var that = this; - setTimeout(function(){ - console.log(that.form.openFile) - console.log(that.form.openPic) - that.form.openFile = that.openFile2.join(',') - that.form.openPic = that.openPic2.join(',') - majorEventOpenEdit(that.form).then((r1) => { - if (r1.code == 200){ - that.$notify({ type: 'success', message: '修改成功' }); - setTimeout(function(){ - history.back(-1); - },2000) - } - }) - },2000); - + that.form.openFile = that.openFile2.join(',') + that.form.openPic = that.openPic2.join(',') + majorEventOpenEdit(that.form).then((r1) => { + if (r1.code == 200){ + that.$notify({ type: 'success', message: '修改成功' }); + setTimeout(function(){ + history.back(-1); + },2000) + } + }) }, onConfirmOpenNy(data){ this.form.openNy = this.format(data,'yyyy-MM'); @@ -214,9 +194,18 @@ afterRead(file) { // 此时可以自行将文件上传至服务器 this.openPicList.push(file.file); + let params1 = new FormData(); + params1.append("file", file.file); + commonUpload(params1).then((r1) => { + this.openPic2.push(r1.fileName); + }) }, afterReadOpenFile(file){ - console.log(file) + let params1 = new FormData(); + params1.append("file", file.file); + commonUpload(params1).then((r1) => { + this.openFile2.push(r1.fileName); + }) let name = file.file.name; let type = ''; if (name.indexOf('.doc') > -1){ diff --git a/src/views/sunVillage_info/list_tourists_add.vue b/src/views/sunVillage_info/list_tourists_add.vue index 811b772e..4da0ecfa 100644 --- a/src/views/sunVillage_info/list_tourists_add.vue +++ b/src/views/sunVillage_info/list_tourists_add.vue @@ -50,7 +50,7 @@ - +
@@ -134,37 +134,17 @@ }, methods: { onSubmit(){ - console.log(this.openFile) - console.log(this.openPic) - this.openFile.map(res=>{ - let params1 = new FormData(); - params1.append("file", res); - commonUpload(params1).then((r1) => { - this.openFile2.push(r1.fileName); - }) - }) - this.openPic.map(res=>{ - console.log(res) - let params1 = new FormData(); - params1.append("file", res); - commonUpload(params1).then((r1) => { - this.openPic2.push(r1.fileName); - }) - }) var that = this; - setTimeout(function(){ - that.form.openFile = that.openFile2.join(',') - that.form.openPic = that.openPic2.join(',') - tempWorkerOpenAdd(that.form).then((r1) => { - if (r1.code == 200){ - that.$notify({ type: 'success', message: '新增成功' }); - setTimeout(function(){ - history.back(-1); - },2000) - } - }) - },2000); - + that.form.openFile = that.openFile2.join(',') + that.form.openPic = that.openPic2.join(',') + tempWorkerOpenAdd(that.form).then((r1) => { + if (r1.code == 200){ + that.$notify({ type: 'success', message: '新增成功' }); + setTimeout(function(){ + history.back(-1); + },2000) + } + }) }, onConfirmOpenNy(data){ this.form.openNy = this.format(data,'yyyy-MM'); @@ -178,9 +158,18 @@ 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); + }) }, afterReadOpenFile(file){ - console.log(file) + let params1 = new FormData(); + params1.append("file", file.file); + commonUpload(params1).then((r1) => { + this.openFile2.push(r1.fileName); + }) let name = file.file.name; let type = ''; if (name.indexOf('.doc') > -1){ diff --git a/src/views/sunVillage_info/list_tourists_edit.vue b/src/views/sunVillage_info/list_tourists_edit.vue index 19209088..607239a7 100644 --- a/src/views/sunVillage_info/list_tourists_edit.vue +++ b/src/views/sunVillage_info/list_tourists_edit.vue @@ -164,37 +164,17 @@ }) }, onSubmit(){ - this.openFileList.map(res=>{ - let params1 = new FormData(); - params1.append("file", res); - commonUpload(params1).then((r1) => { - this.openFile2.push(r1.fileName); - }) - }) - this.openPicList.map(res=>{ - console.log(res) - let params1 = new FormData(); - params1.append("file", res); - commonUpload(params1).then((r1) => { - this.openPic2.push(r1.fileName); - }) - }) var that = this; - setTimeout(function(){ - console.log(that.form.openFile) - console.log(that.form.openPic) - that.form.openFile = that.openFile2.join(',') - that.form.openPic = that.openPic2.join(',') - tempWorkerOpenEdit(that.form).then((r1) => { - if (r1.code == 200){ - that.$notify({ type: 'success', message: '修改成功' }); - setTimeout(function(){ - history.back(-1); - },2000) - } - }) - },2000); - + that.form.openFile = that.openFile2.join(',') + that.form.openPic = that.openPic2.join(',') + tempWorkerOpenEdit(that.form).then((r1) => { + if (r1.code == 200){ + that.$notify({ type: 'success', message: '修改成功' }); + setTimeout(function(){ + history.back(-1); + },2000) + } + }) }, onConfirmOpenNy(data){ this.form.openNy = this.format(data,'yyyy-MM'); @@ -208,9 +188,18 @@ afterRead(file) { // 此时可以自行将文件上传至服务器 this.openPicList.push(file.file); + let params1 = new FormData(); + params1.append("file", file.file); + commonUpload(params1).then((r1) => { + this.openPic2.push(r1.fileName); + }) }, afterReadOpenFile(file){ - console.log(file) + let params1 = new FormData(); + params1.append("file", file.file); + commonUpload(params1).then((r1) => { + this.openFile2.push(r1.fileName); + }) let name = file.file.name; let type = ''; if (name.indexOf('.doc') > -1){ diff --git a/src/views/sunVillage_info/list_tourists_ranking.vue b/src/views/sunVillage_info/list_tourists_ranking.vue index 28f22f9d..1bb52777 100644 --- a/src/views/sunVillage_info/list_tourists_ranking.vue +++ b/src/views/sunVillage_info/list_tourists_ranking.vue @@ -52,26 +52,19 @@
- - - - - - - - - - - - - - - - - - - - +
+
+
    +
  • 1移动端
  • +
  • 2可滑动
  • +
  • 3ie8以上
  • +
  • 4
  • +
  • 5
  • +
+
+
+ +
@@ -141,6 +134,28 @@