소스 검색

fix upload

scorpio 2 년 전
부모
커밋
bdc0837a1c
1개의 변경된 파일15개의 추가작업 그리고 11개의 파일을 삭제
  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({