Selaa lähdekoodia

教育培训文件上传组件 获取文件名方法抽取

jingyuanchao 2 vuotta sitten
vanhempi
commit
759f4bc649
1 muutettua tiedostoa jossa 0 lisäystä ja 6 poistoa
  1. 0 6
      src/views/core/materials/index.vue

+ 0 - 6
src/views/core/materials/index.vue

@@ -275,7 +275,6 @@ export default {
         label: "未公开",
         value: 0
       }],
-      fileList: []
     };
   },
   watch: {
@@ -430,9 +429,6 @@ export default {
       this.reset();
       const id = row.id || this.ids
       getMaterials(id).then(response => {
-        let fileList = response.data.fileList;
-        this.form.fileList = JSON.parse(fileList);
-        this.$emit("input", this.listToString(this.form.fileList));
         this.form = response.data;
         this.open = true;
         this.title = "修改学习资料";
@@ -443,8 +439,6 @@ export default {
 
       this.$refs["form"].validate(valid => {
         if (valid) {
-          this.form.fileList = this.fileList;
-          console.log('55555', this.form.fileList)
           if (this.form.id != null) {
             updateMaterials(this.form).then(response => {
               this.$modal.msgSuccess("修改成功");