Selaa lähdekoodia

农村事项管理图片上传多选

wulanhaote
庞东旭 2 vuotta sitten
vanhempi
commit
39833f3161
12 muutettua tiedostoa jossa 77 lisäystä ja 61 poistoa
  1. +8
    -6
      src/views/sunVillage_info/list_contract_add.vue
  2. +7
    -5
      src/views/sunVillage_info/list_contract_edit.vue
  3. +1
    -1
      src/views/sunVillage_info/list_finance.vue
  4. +8
    -6
      src/views/sunVillage_info/list_finance_add.vue
  5. +7
    -6
      src/views/sunVillage_info/list_finance_edit.vue
  6. +8
    -6
      src/views/sunVillage_info/list_issues_add.vue
  7. +7
    -6
      src/views/sunVillage_info/list_issues_edit.vue
  8. +8
    -6
      src/views/sunVillage_info/list_photo_add.vue
  9. +7
    -6
      src/views/sunVillage_info/list_photo_edit.vue
  10. +1
    -1
      src/views/sunVillage_info/list_tourists.vue
  11. +8
    -6
      src/views/sunVillage_info/list_tourists_add.vue
  12. +7
    -6
      src/views/sunVillage_info/list_tourists_edit.vue

+ 8
- 6
src/views/sunVillage_info/list_contract_add.vue Näytä tiedosto

@@ -76,7 +76,7 @@
</template>
</van-field>
<!-- @delete="deleteFile1"-->
<van-uploader v-model="fileList" :after-read="afterRead" @delete="deleteFile1" style="margin-top: 10PX" />
<van-uploader v-model="fileList" multiple :after-read="afterRead" @delete="deleteFile1" style="margin-top: 10PX" />

<div style="border-top: 1px solid #ededed;margin-top: 10PX;">
<van-field readonly input-align="right" :border="false" >
@@ -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){


+ 7
- 5
src/views/sunVillage_info/list_contract_edit.vue Näytä tiedosto

@@ -77,7 +77,7 @@
</template>
</van-field>
<!-- @delete="deleteFile1"-->
<van-uploader v-model="openPic" :after-read="afterRead" @delete="deleteFile1" style="margin-top: 10PX" />
<van-uploader v-model="openPic" multiple :after-read="afterRead" @delete="deleteFile1" style="margin-top: 10PX" />

<div style="border-top: 1px solid #ededed;margin-top: 10PX;">
<van-field readonly input-align="right" :border="false" >
@@ -217,10 +217,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){


+ 1
- 1
src/views/sunVillage_info/list_finance.vue Näytä tiedosto

@@ -35,7 +35,7 @@
{{item.openNy}}
</div>
</div>
<div class="operation" v-show="false">
<div class="operation" v-show="showBtn">
<!-- delete 删除 edit编辑 view查看 -->
<div class="opera_btn list" @click="goRanking(item.id,item.openNy)">
<i class="icon "></i>


+ 8
- 6
src/views/sunVillage_info/list_finance_add.vue Näytä tiedosto

@@ -50,7 +50,7 @@
</template>
</van-field>
<!-- @delete="deleteFile1"-->
<van-uploader v-model="fileList" :after-read="afterRead" @delete="deleteFile1" style="margin-top: 10PX" />
<van-uploader v-model="fileList" multiple :after-read="afterRead" @delete="deleteFile1" style="margin-top: 10PX" />

<div style="border-top: 1px solid #ededed;margin-top: 10PX;">
<van-field readonly input-align="right" :border="false" >
@@ -165,11 +165,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){


+ 7
- 6
src/views/sunVillage_info/list_finance_edit.vue Näytä tiedosto

@@ -50,7 +50,7 @@
</template>
</van-field>
<!-- @delete="deleteFile1"-->
<van-uploader v-model="openPic" :after-read="afterRead" @delete="deleteFile1" style="margin-top: 10PX" />
<van-uploader v-model="openPic" multiple :after-read="afterRead" @delete="deleteFile1" style="margin-top: 10PX" />

<div style="border-top: 1px solid #ededed;margin-top: 10PX;">
<van-field readonly input-align="right" :border="false" >
@@ -192,11 +192,12 @@
},
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);
file.forEach(res=> {
let params1 = new FormData();
params1.append("file", res.file);
commonUpload(params1).then((r1) => {
this.openPic2.push(r1.fileName);
})
})
},
afterReadOpenFile(file){


+ 8
- 6
src/views/sunVillage_info/list_issues_add.vue Näytä tiedosto

@@ -50,7 +50,7 @@
</template>
</van-field>
<!-- @delete="deleteFile1"-->
<van-uploader v-model="fileList" :after-read="afterRead" @delete="deleteFile1" style="margin-top: 10PX" />
<van-uploader v-model="fileList" multiple :after-read="afterRead" @delete="deleteFile1" style="margin-top: 10PX" />

<div style="border-top: 1px solid #ededed;margin-top: 10PX;">
<van-field readonly input-align="right" :border="false" >
@@ -170,11 +170,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){


+ 7
- 6
src/views/sunVillage_info/list_issues_edit.vue Näytä tiedosto

@@ -50,7 +50,7 @@
</template>
</van-field>
<!-- @delete="deleteFile1"-->
<van-uploader v-model="openPic" :after-read="afterRead" @delete="deleteFile1" style="margin-top: 10PX" />
<van-uploader v-model="openPic" multiple :after-read="afterRead" @delete="deleteFile1" style="margin-top: 10PX" />

<div style="border-top: 1px solid #ededed;margin-top: 10PX;">
<van-field readonly input-align="right" :border="false" >
@@ -200,11 +200,12 @@
},
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);
file.forEach(res=> {
let params1 = new FormData();
params1.append("file", res.file);
commonUpload(params1).then((r1) => {
this.openPic2.push(r1.fileName);
})
})
},
afterReadOpenFile(file){


+ 8
- 6
src/views/sunVillage_info/list_photo_add.vue Näytä tiedosto

@@ -71,7 +71,7 @@
</template>
</van-field>
<!-- @delete="deleteFile1"-->
<van-uploader v-model="fileList" :after-read="afterRead" @delete="deleteFile1" style="margin-top: 10PX" />
<van-uploader v-model="fileList" multiple :after-read="afterRead" @delete="deleteFile1" style="margin-top: 10PX" />

<div style="border-top: 1px solid #ededed;margin-top: 10PX;">
<van-field readonly input-align="right" :border="false" >
@@ -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){


+ 7
- 6
src/views/sunVillage_info/list_photo_edit.vue Näytä tiedosto

@@ -71,7 +71,7 @@
</template>
</van-field>
<!-- @delete="deleteFile1"-->
<van-uploader v-model="openPic" :after-read="afterRead" @delete="deleteFile1" style="margin-top: 10PX" />
<van-uploader v-model="openPic" multiple :after-read="afterRead" @delete="deleteFile1" style="margin-top: 10PX" />

<div style="border-top: 1px solid #ededed;margin-top: 10PX;">
<van-field readonly input-align="right" :border="false" >
@@ -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){


+ 1
- 1
src/views/sunVillage_info/list_tourists.vue Näytä tiedosto

@@ -35,7 +35,7 @@
{{item.openNy}}
</div>
</div>
<div class="operation">
<div class="operation" v-show="showBtn">
<!-- delete 删除 edit编辑 view查看 list榜单 -->
<div class="opera_btn list" @click="goRanking(item.id,item.openNy)">
<i class="icon "></i>


+ 8
- 6
src/views/sunVillage_info/list_tourists_add.vue Näytä tiedosto

@@ -50,7 +50,7 @@
</template>
</van-field>
<!-- @delete="deleteFile1"-->
<van-uploader v-model="fileList" :after-read="afterRead" @delete="deleteFile1" style="margin-top: 10PX" />
<van-uploader v-model="fileList" multiple :after-read="afterRead" @delete="deleteFile1" style="margin-top: 10PX" />

<div style="border-top: 1px solid #ededed;margin-top: 10PX;">
<van-field readonly input-align="right" :border="false" >
@@ -163,11 +163,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){


+ 7
- 6
src/views/sunVillage_info/list_tourists_edit.vue Näytä tiedosto

@@ -50,7 +50,7 @@
</template>
</van-field>
<!-- @delete="deleteFile1"-->
<van-uploader v-model="openPic" :after-read="afterRead" @delete="deleteFile1" style="margin-top: 10PX" />
<van-uploader v-model="openPic" multiple :after-read="afterRead" @delete="deleteFile1" style="margin-top: 10PX" />

<div style="border-top: 1px solid #ededed;margin-top: 10PX;">
<van-field readonly input-align="right" :border="false" >
@@ -192,11 +192,12 @@
},
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);
file.forEach(res=> {
let params1 = new FormData();
params1.append("file", res.file);
commonUpload(params1).then((r1) => {
this.openPic2.push(r1.fileName);
})
})
},
afterReadOpenFile(file){


Ladataan…
Peruuta
Tallenna