Browse Source

提交相关代码

Lijy 8 months ago
parent
commit
f5bceca68d

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

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