|
|
|
|
@ -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({
|
|
|
|
|
|