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