NEZ-1868 feat:panel starred功能开发

This commit is contained in:
18317449825
2022-05-26 10:39:06 +08:00
parent 6ec9fe61a3
commit 2b034e839e
2 changed files with 13 additions and 4 deletions

View File

@@ -302,8 +302,13 @@ export default {
refreshStarred (value) {
// 重新赋值,否则树形菜单不更新
this.panelData = JSON.parse(JSON.stringify(value))
this.$nextTick(() => {
this.$refs.selectPanel.$refs.starredTree.filter(this.filterPanel)
this.$refs.selectPanel.$refs.panelTree.filter(this.filterPanel)
this.$refs.selectPanel.$refs.panelTree.setCurrentKey(this.showPanel)
})
// // 判断当前页面收藏状态
const starredArr = this.$refs.selectPanel.tempArr
// 判断当前页面收藏状态
this.showPanel.starred = starredArr.some(item => item.id === this.showPanel.id)
},
// 新增收藏