sunlupeng 1 year ago
parent
commit
62925a8e13
1 changed files with 13 additions and 0 deletions
  1. 13 0
      src/views/commendManage/commendList.vue

+ 13 - 0
src/views/commendManage/commendList.vue

@@ -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();
       });