Bläddra i källkod

阳光村务

wulanhaote
庞东旭 2 år sedan
förälder
incheckning
1b69ac6500
10 ändrade filer med 122 tillägg och 39 borttagningar
  1. +14
    -6
      src/views/sunVillage_info/list_contract_add.vue
  2. +12
    -5
      src/views/sunVillage_info/list_contract_edit.vue
  3. +13
    -4
      src/views/sunVillage_info/list_finance_add.vue
  4. +11
    -3
      src/views/sunVillage_info/list_finance_edit.vue
  5. +13
    -4
      src/views/sunVillage_info/list_issues_add.vue
  6. +11
    -3
      src/views/sunVillage_info/list_issues_edit.vue
  7. +13
    -4
      src/views/sunVillage_info/list_photo_add.vue
  8. +11
    -3
      src/views/sunVillage_info/list_photo_edit.vue
  9. +13
    -4
      src/views/sunVillage_info/list_tourists_add.vue
  10. +11
    -3
      src/views/sunVillage_info/list_tourists_edit.vue

+ 14
- 6
src/views/sunVillage_info/list_contract_add.vue Visa fil

@@ -205,16 +205,24 @@
this.openFile2.splice(index,1);
},
afterRead(file) {
console.log(file)
// 此时可以自行将文件上传至服务器
file.map(res=>{
this.openPic.push(res.file);
console.log(file instanceof Array)
if (file instanceof Array){//判断是否为数组,单张图片为array,多张为数组,数组返回true否则为false
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);
})
})
}else{
this.openPic.push(file);
let params1 = new FormData();
params1.append("file", res.file);
params1.append("file", file.file);
commonUpload(params1).then((r1) => {
this.openPic2.push(r1.fileName);
})
})
}
},
afterReadOpenFile(file){
let params1 = new FormData();


+ 12
- 5
src/views/sunVillage_info/list_contract_edit.vue Visa fil

@@ -107,7 +107,7 @@
</template>
</van-field>

<vue-html5-editor :content="form.openContent" :height="400" @change="updateData" style="margin-top: 10px;"></vue-html5-editor>
<vue-html5-editor :content="form.openContent==null?'':form.openContent" :height="400" @change="updateData" style="margin-top: 10px;"></vue-html5-editor>

<van-field v-model="form.remark" placeholder="请输入备注" input-align="right" :border="false" >
<template #label>
@@ -232,14 +232,21 @@
},
afterRead(file) {
// 此时可以自行将文件上传至服务器
// this.openPic.push(file.file);
file.forEach(res=> {
if (file instanceof Array){//判断是否为数组,单张图片为array,多张为数组,数组返回true否则为false
file.map(res=>{
let params1 = new FormData();
params1.append("file", res.file);
commonUpload(params1).then((r1) => {
this.openPic2.push(r1.fileName);
})
})
}else{
let params1 = new FormData();
params1.append("file", res.file);
params1.append("file", file.file);
commonUpload(params1).then((r1) => {
this.openPic2.push(r1.fileName);
})
})
}
},
afterReadOpenFile(file){
let params1 = new FormData();


+ 13
- 4
src/views/sunVillage_info/list_finance_add.vue Visa fil

@@ -165,14 +165,23 @@
},
afterRead(file) {
// 此时可以自行将文件上传至服务器
file.map(res=> {
this.openPic.push(res.file);
if (file instanceof Array){//判断是否为数组,单张图片为array,多张为数组,数组返回true否则为false
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);
})
})
}else{
this.openPic.push(file);
let params1 = new FormData();
params1.append("file", res.file);
params1.append("file", file.file);
commonUpload(params1).then((r1) => {
this.openPic2.push(r1.fileName);
})
})
}
},
afterReadOpenFile(file){
console.log(file)


+ 11
- 3
src/views/sunVillage_info/list_finance_edit.vue Visa fil

@@ -192,13 +192,21 @@
},
afterRead(file) {
// 此时可以自行将文件上传至服务器
file.forEach(res=> {
if (file instanceof Array){//判断是否为数组,单张图片为array,多张为数组,数组返回true否则为false
file.map(res=>{
let params1 = new FormData();
params1.append("file", res.file);
commonUpload(params1).then((r1) => {
this.openPic2.push(r1.fileName);
})
})
}else{
let params1 = new FormData();
params1.append("file", res.file);
params1.append("file", file.file);
commonUpload(params1).then((r1) => {
this.openPic2.push(r1.fileName);
})
})
}
},
afterReadOpenFile(file){
console.log(file)


+ 13
- 4
src/views/sunVillage_info/list_issues_add.vue Visa fil

@@ -170,14 +170,23 @@
},
afterRead(file) {
// 此时可以自行将文件上传至服务器
file.map(res=> {
this.openPic.push(res.file);
if (file instanceof Array){//判断是否为数组,单张图片为array,多张为数组,数组返回true否则为false
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);
})
})
}else{
this.openPic.push(file);
let params1 = new FormData();
params1.append("file", res.file);
params1.append("file", file.file);
commonUpload(params1).then((r1) => {
this.openPic2.push(r1.fileName);
})
})
}
},
afterReadOpenFile(file){
console.log(file)


+ 11
- 3
src/views/sunVillage_info/list_issues_edit.vue Visa fil

@@ -200,13 +200,21 @@
},
afterRead(file) {
// 此时可以自行将文件上传至服务器
file.forEach(res=> {
if (file instanceof Array){//判断是否为数组,单张图片为array,多张为数组,数组返回true否则为false
file.map(res=>{
let params1 = new FormData();
params1.append("file", res.file);
commonUpload(params1).then((r1) => {
this.openPic2.push(r1.fileName);
})
})
}else{
let params1 = new FormData();
params1.append("file", res.file);
params1.append("file", file.file);
commonUpload(params1).then((r1) => {
this.openPic2.push(r1.fileName);
})
})
}
},
afterReadOpenFile(file){
let params1 = new FormData();


+ 13
- 4
src/views/sunVillage_info/list_photo_add.vue Visa fil

@@ -189,14 +189,23 @@
},
afterRead(file) {
// 此时可以自行将文件上传至服务器
file.map(res=> {
this.openPic.push(res.file);
if (file instanceof Array){//判断是否为数组,单张图片为array,多张为数组,数组返回true否则为false
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);
})
})
}else{
this.openPic.push(file);
let params1 = new FormData();
params1.append("file", res.file);
params1.append("file", file.file);
commonUpload(params1).then((r1) => {
this.openPic2.push(r1.fileName);
})
})
}
},
afterReadOpenFile(file){
let params1 = new FormData();


+ 11
- 3
src/views/sunVillage_info/list_photo_edit.vue Visa fil

@@ -209,13 +209,21 @@
},
afterRead(file) {
// 此时可以自行将文件上传至服务器
file.forEach(res=> {
if (file instanceof Array){//判断是否为数组,单张图片为array,多张为数组,数组返回true否则为false
file.map(res=>{
let params1 = new FormData();
params1.append("file", res.file);
commonUpload(params1).then((r1) => {
this.openPic2.push(r1.fileName);
})
})
}else{
let params1 = new FormData();
params1.append("file", res.file);
params1.append("file", file.file);
commonUpload(params1).then((r1) => {
this.openPic2.push(r1.fileName);
})
})
}
},
afterReadOpenFile(file){
let params1 = new FormData();


+ 13
- 4
src/views/sunVillage_info/list_tourists_add.vue Visa fil

@@ -163,14 +163,23 @@
},
afterRead(file) {
// 此时可以自行将文件上传至服务器
file.map(res=> {
this.openPic.push(res.file);
if (file instanceof Array){//判断是否为数组,单张图片为array,多张为数组,数组返回true否则为false
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);
})
})
}else{
this.openPic.push(file);
let params1 = new FormData();
params1.append("file", res.file);
params1.append("file", file.file);
commonUpload(params1).then((r1) => {
this.openPic2.push(r1.fileName);
})
})
}
},
afterReadOpenFile(file){
let params1 = new FormData();


+ 11
- 3
src/views/sunVillage_info/list_tourists_edit.vue Visa fil

@@ -192,13 +192,21 @@
},
afterRead(file) {
// 此时可以自行将文件上传至服务器
file.forEach(res=> {
if (file instanceof Array){//判断是否为数组,单张图片为array,多张为数组,数组返回true否则为false
file.map(res=>{
let params1 = new FormData();
params1.append("file", res.file);
commonUpload(params1).then((r1) => {
this.openPic2.push(r1.fileName);
})
})
}else{
let params1 = new FormData();
params1.append("file", res.file);
params1.append("file", file.file);
commonUpload(params1).then((r1) => {
this.openPic2.push(r1.fileName);
})
})
}
},
afterReadOpenFile(file){
let params1 = new FormData();


Laddar…
Avbryt
Spara