文件上传

master
lion 3 years ago
parent 0d288606dd
commit 781c77fa51

@ -340,17 +340,6 @@
},
submitForm(formName) {
var that = this;
let listUrl = [];
for (var m of that.fileList) {
if (m.response)
listUrl.push({
"upload_id": m.response.id
});
else
listUrl.push({
"upload_id": m.upload_id
});
}
that.form.files_list = listUrl;
this.$refs[formName].validate((valid) => {
if (valid) {

@ -316,19 +316,7 @@
this.dialogFormVisible = true;
},
submitForm(formName) {
var that = this;
let listUrl = [];
for (var m of that.fileList) {
if (m.response)
listUrl.push({
"upload_id": m.response.id
});
else
listUrl.push({
"upload_id": m.upload_id
});
}
that.form.files_list = listUrl;
var that = this;
this.$refs[formName].validate((valid) => {
if (valid) {
if (that.form.id) {
@ -410,7 +398,9 @@
return this.$confirm(`确定移除 ${ file.name }`);
},
handlesuccess(response, file, fileList) {
let listUrl = [];
let listUrl = [];
console.log("fileList",fileList);
console.log("aafileList",this.fileList);
for (var m of fileList) {
if (m.response)
listUrl.push({

@ -363,20 +363,6 @@
},
submitForm(formName) {
var that = this;
let listUrl = [];
for (var m of that.fileList) {
if (m.response)
listUrl.push({
"upload_id": m.response.id
});
else
listUrl.push({
"upload_id": m.upload_id
});
}
that.form.files_list = listUrl;
console.log(this.fileList);
console.log(that.form);
this.$refs[formName].validate((valid) => {
if (valid) {

Loading…
Cancel
Save