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