浏览代码

提交相关代码

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)
             },