소스 검색

提交相关代码

Lijy 8 달 전
부모
커밋
f5bceca68d
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      fhKeeper/formulahousekeeper/timesheet/src/views/project/cost.vue

+ 4 - 0
fhKeeper/formulahousekeeper/timesheet/src/views/project/cost.vue

@@ -351,6 +351,10 @@
             filterCategory() {
                 this.exportParam.projectId = ''
                 const id = this.exportParam.projectCategoryId
+                if(!id) {
+                    this.projectList = JSON.parse(JSON.stringify(this.newProjectList))
+                    return
+                }
                 const list = JSON.parse(JSON.stringify(this.newProjectList))
                 this.projectList = list.filter(item => item.category == id)
             },