Переглянути джерело

阳光村务

rongxin_prod
庞东旭 2 роки тому
джерело
коміт
eb04b29442
12 змінених файлів з 102 додано та 1 видалено
  1. +11
    -0
      src/views/sunVillage_info/list_complaint_add.vue
  2. +5
    -0
      src/views/sunVillage_info/list_contract_add.vue
  3. +10
    -0
      src/views/sunVillage_info/list_contract_edit.vue
  4. +6
    -0
      src/views/sunVillage_info/list_finance_add.vue
  5. +5
    -1
      src/views/sunVillage_info/list_finance_edit.vue
  6. +10
    -0
      src/views/sunVillage_info/list_issues_add.vue
  7. +10
    -0
      src/views/sunVillage_info/list_issues_edit.vue
  8. +5
    -0
      src/views/sunVillage_info/list_message_add.vue
  9. +10
    -0
      src/views/sunVillage_info/list_photo_add.vue
  10. +10
    -0
      src/views/sunVillage_info/list_photo_edit.vue
  11. +10
    -0
      src/views/sunVillage_info/list_tourists_add.vue
  12. +10
    -0
      src/views/sunVillage_info/list_tourists_edit.vue

+ 11
- 0
src/views/sunVillage_info/list_complaint_add.vue Переглянути файл

@@ -232,6 +232,12 @@
})
},
afterRead(file) {

this.$toast.loading({
message: "上传中...",
forbidClick: true,
duration: 0,
});
console.log(file instanceof Array)
if (file instanceof Array){//判断是否为数组,单张图片为array,多张为数组,数组返回true否则为false
file.map(res=>{
@@ -260,6 +266,11 @@
// this.form.openPic.splice(index,1);
},
afterReadVideo(file){
this.$toast.loading({
message: "上传中...",
forbidClick: true,
duration: 0,
});
const that = this;
let formData = new FormData(); // 为上传文件定义一个formData对象
formData.append("file", file.file);


+ 5
- 0
src/views/sunVillage_info/list_contract_add.vue Переглянути файл

@@ -204,6 +204,11 @@
this.openFile2.splice(index,1);
},
afterRead(file) {
this.$toast.loading({
message: "上传中...",
forbidClick: true,
duration: 0,
});
console.log(file instanceof Array)
if (file instanceof Array){//判断是否为数组,单张图片为array,多张为数组,数组返回true否则为false
file.map(res=>{


+ 10
- 0
src/views/sunVillage_info/list_contract_edit.vue Переглянути файл

@@ -231,6 +231,11 @@
this.openFile2.splice(index,1);
},
afterRead(file) {
this.$toast.loading({
message: "上传中...",
forbidClick: true,
duration: 0,
});
// 此时可以自行将文件上传至服务器
if (file instanceof Array){//判断是否为数组,单张图片为array,多张为数组,数组返回true否则为false
file.map(res=>{
@@ -249,6 +254,11 @@
}
},
afterReadOpenFile(file){
this.$toast.loading({
message: "上传中...",
forbidClick: true,
duration: 0,
});
let params1 = new FormData();
params1.append("file", file.file);
commonUpload(params1).then((r1) => {


+ 6
- 0
src/views/sunVillage_info/list_finance_add.vue Переглянути файл

@@ -164,6 +164,12 @@
this.openFile2.splice(index,1);
},
afterRead(file) {

this.$toast.loading({
message: "上传中...",
forbidClick: true,
duration: 0,
});
// 此时可以自行将文件上传至服务器
if (file instanceof Array){//判断是否为数组,单张图片为array,多张为数组,数组返回true否则为false
file.map(res=>{


+ 5
- 1
src/views/sunVillage_info/list_finance_edit.vue Переглянути файл

@@ -191,7 +191,11 @@
this.openFile2.splice(index,1);
},
afterRead(file) {
// 此时可以自行将文件上传至服务器
this.$toast.loading({
message: "上传中...",
forbidClick: true,
duration: 0,
});
if (file instanceof Array){//判断是否为数组,单张图片为array,多张为数组,数组返回true否则为false
file.map(res=>{
let params1 = new FormData();


+ 10
- 0
src/views/sunVillage_info/list_issues_add.vue Переглянути файл

@@ -169,6 +169,11 @@
this.openFile2.splice(index,1);
},
afterRead(file) {
this.$toast.loading({
message: "上传中...",
forbidClick: true,
duration: 0,
});
// 此时可以自行将文件上传至服务器
if (file instanceof Array){//判断是否为数组,单张图片为array,多张为数组,数组返回true否则为false
file.map(res=>{
@@ -189,6 +194,11 @@
}
},
afterReadOpenFile(file){
this.$toast.loading({
message: "上传中...",
forbidClick: true,
duration: 0,
});
console.log(file)
let params1 = new FormData();
params1.append("file", file.file);


+ 10
- 0
src/views/sunVillage_info/list_issues_edit.vue Переглянути файл

@@ -199,6 +199,11 @@
this.openFile2.splice(index,1);
},
afterRead(file) {
this.$toast.loading({
message: "上传中...",
forbidClick: true,
duration: 0,
});
// 此时可以自行将文件上传至服务器
if (file instanceof Array){//判断是否为数组,单张图片为array,多张为数组,数组返回true否则为false
file.map(res=>{
@@ -217,6 +222,11 @@
}
},
afterReadOpenFile(file){
this.$toast.loading({
message: "上传中...",
forbidClick: true,
duration: 0,
});
let params1 = new FormData();
params1.append("file", file.file);
commonUpload(params1).then((r1) => {


+ 5
- 0
src/views/sunVillage_info/list_message_add.vue Переглянути файл

@@ -111,6 +111,11 @@
// this.form.openPic.splice(index,1);
},
afterRead(file) {
this.$toast.loading({
message: "上传中...",
forbidClick: true,
duration: 0,
});
// 此时可以自行将文件上传至服务器
if (file instanceof Array){//判断是否为数组,单张图片为array,多张为数组,数组返回true否则为false
file.map(res=>{


+ 10
- 0
src/views/sunVillage_info/list_photo_add.vue Переглянути файл

@@ -188,6 +188,11 @@
this.openFile2.splice(index,1);
},
afterRead(file) {
this.$toast.loading({
message: "上传中...",
forbidClick: true,
duration: 0,
});
// 此时可以自行将文件上传至服务器
if (file instanceof Array){//判断是否为数组,单张图片为array,多张为数组,数组返回true否则为false
file.map(res=>{
@@ -208,6 +213,11 @@
}
},
afterReadOpenFile(file){
this.$toast.loading({
message: "上传中...",
forbidClick: true,
duration: 0,
});
let params1 = new FormData();
params1.append("file", file.file);
commonUpload(params1).then((r1) => {


+ 10
- 0
src/views/sunVillage_info/list_photo_edit.vue Переглянути файл

@@ -208,6 +208,11 @@
this.openFile2.splice(index,1);
},
afterRead(file) {
this.$toast.loading({
message: "上传中...",
forbidClick: true,
duration: 0,
});
// 此时可以自行将文件上传至服务器
if (file instanceof Array){//判断是否为数组,单张图片为array,多张为数组,数组返回true否则为false
file.map(res=>{
@@ -226,6 +231,11 @@
}
},
afterReadOpenFile(file){
this.$toast.loading({
message: "上传中...",
forbidClick: true,
duration: 0,
});
let params1 = new FormData();
params1.append("file", file.file);
commonUpload(params1).then((r1) => {


+ 10
- 0
src/views/sunVillage_info/list_tourists_add.vue Переглянути файл

@@ -162,6 +162,11 @@
this.openFile2.splice(index,1);
},
afterRead(file) {
this.$toast.loading({
message: "上传中...",
forbidClick: true,
duration: 0,
});
// 此时可以自行将文件上传至服务器
if (file instanceof Array){//判断是否为数组,单张图片为array,多张为数组,数组返回true否则为false
file.map(res=>{
@@ -182,6 +187,11 @@
}
},
afterReadOpenFile(file){
this.$toast.loading({
message: "上传中...",
forbidClick: true,
duration: 0,
});
let params1 = new FormData();
params1.append("file", file.file);
commonUpload(params1).then((r1) => {


+ 10
- 0
src/views/sunVillage_info/list_tourists_edit.vue Переглянути файл

@@ -191,6 +191,11 @@
this.openFile2.splice(index,1);
},
afterRead(file) {
this.$toast.loading({
message: "上传中...",
forbidClick: true,
duration: 0,
});
// 此时可以自行将文件上传至服务器
if (file instanceof Array){//判断是否为数组,单张图片为array,多张为数组,数组返回true否则为false
file.map(res=>{
@@ -209,6 +214,11 @@
}
},
afterReadOpenFile(file){
this.$toast.loading({
message: "上传中...",
forbidClick: true,
duration: 0,
});
let params1 = new FormData();
params1.append("file", file.file);
commonUpload(params1).then((r1) => {


Завантаження…
Відмінити
Зберегти