|
@@ -337,6 +337,19 @@ export default {
|
|
|
}
|
|
|
this.dialogStatus = "update";
|
|
|
this.dialogFormVisible = true;
|
|
|
+ if (this.dataForm.files) {
|
|
|
+ let files = this.dataForm.files;
|
|
|
+ this.dataForm.files = [];
|
|
|
+ for (let i in files) {
|
|
|
+ let fileUrl = files[i].url;
|
|
|
+ let fileName = files[i].name;
|
|
|
+ this.dataForm.files.push({
|
|
|
+ name: fileName,
|
|
|
+ url: fileUrl,
|
|
|
+ response: { error: "0", data: files[i] },
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
this.$nextTick(() => {
|
|
|
this.$refs["dataForm"].clearValidate();
|
|
|
});
|