fix:修改asset 详细视图切换时 没有保存分页信息,修改endpoint 搜索部分的数据来源

This commit is contained in:
zhangyu
2021-10-18 14:55:16 +08:00
parent c8ec5b48ea
commit c2267a983d
5 changed files with 109 additions and 38 deletions

View File

@@ -702,6 +702,13 @@ export default {
this.titleSearchList[key].children = statistics[keys].map(d => { return { ...d, value: d.id } })
this.detailSearchList[key].children = statistics[keys].map(d => { return { ...d, value: d.id } })
}
if (this.titleSearchList[key].children.length === 0) {
// delete this.titleSearchList[key]
// delete this.detailSearchList[key]
} else {
this.titleSearchList[key].show = true
this.detailSearchList[key].show = true
}
this.titleSearchList[key].show = true
this.detailSearchList[key].show = true
})