Browse Source

fix upload

scorpio 2 years ago
parent
commit
bdc0837a1c
1 changed files with 15 additions and 11 deletions
  1. 15 11
      src/views/home/component/folder_list.vue

+ 15 - 11
src/views/home/component/folder_list.vue

@@ -305,19 +305,23 @@ export default {
     },
     fileView(item) {
       if (this.type === 0) {
-        console.log(item)
+        const data = {
+          id: item.id,
+          projectId: item.projectId,
+          ownerId: this.ownerId,
+          dictKey: item.dictKey,
+          projectStageId: item.stageId,
+          isAccess: item.isAccess,
+          folderName: item.title,
+          folderNumber: item.fileAmount,
+          dispatchType: this.dispatchParams.dispatchType,
+          type: this.dispatchParams.type,
+          year: this.dispatchParams.year,
+          month: this.dispatchParams.month
+        }
         this.$router.push({
           path: '/home/files',
-          query: {
-            id: item.id,
-            projectId: item.projectId,
-            ownerId: this.ownerId,
-            dictKey: item.dictKey,
-            projectStageId: item.stageId,
-            isAccess: item.isAccess,
-            folderName: item.title,
-            folderNumber: item.fileAmount
-          }
+          query: data
         })
       } else {
         this.$router.push({