scorpioyq vor 3 Jahren
Ursprung
Commit
b3991fa50b
1 geänderte Dateien mit 14 neuen und 14 gelöschten Zeilen
  1. 14 14
      src/views/home/component/folder_info.vue

+ 14 - 14
src/views/home/component/folder_info.vue

@@ -95,7 +95,7 @@ import permissionStore from '@/store/permission.js'
 
 export default {
   name: 'right2',
-  components: {baseButton, folderList},
+  components: { baseButton, folderList },
   props: {
     data: {
       type: Object,
@@ -141,10 +141,10 @@ export default {
         current: 1,
         size: 10
       },
-      findData: [],
+      findData: []
     }
   },
-  created() {
+  created () {
     this.getFolderList()
   },
   methods: {
@@ -178,18 +178,18 @@ export default {
         }
       })
     },
-    remoteMethod(query) {
+    remoteMethod (query) {
       if (query !== '') {
-        this.loading = true;
+        this.loading = true
         setTimeout(() => {
           const data = {
             projectId: this.id,
-            keyWord: this.keyWords,
+            keyWord: this.keyWords
           }
           this.$api.project.findFiles(Object.assign(data, this.page)).then(res => {
             if (res.code === 200) {
               this.findData = res.data.records.map(sub => {
-                let dataItem = {}
+                const dataItem = {}
                 dataItem.label = sub.title
                 if (['png', 'jpg', 'jpeg'].includes(sub.suffix)) {
                   dataItem.value = sub.url
@@ -199,14 +199,14 @@ export default {
                 return dataItem
               })
             }
-            this.loading = false;
-          });
-        }, 200);
+            this.loading = false
+          })
+        }, 200)
       } else {
-        this.findData = [];
+        this.findData = []
       }
     },
-    result(res) {
+    result (res) {
       if (res.indexOf('http') > -1) {
         this.showImage = true
         this.imgList.push(res)
@@ -214,11 +214,11 @@ export default {
         this.$router.push('/home/file_detail?id=' + res)
       }
     },
-    viewerClose() {
+    viewerClose () {
       this.showImage = false
       this.imgList = []
     },
-    folderAdd() {
+    folderAdd () {
       this.folderInfo.projectId = this.id
       this.folderInfo.projectStageId = this.projectStageId
       this.folderInfo.dictKey = this.dictKey