NEZ-1088 fix:Project页面点击Alert字段不能跳转到Alert message页面

This commit is contained in:
zhangyu
2021-10-27 10:49:53 +08:00
parent 4a4106d9ec
commit ffb6cb23ea
4 changed files with 61 additions and 12 deletions

View File

@@ -352,6 +352,19 @@ export default {
}
}
},
created () {
if (localStorage.getItem('alertMessageProjectId')) {
this.selectValue.projectIds = [Number(localStorage.getItem('alertMessageProjectId'))]
this.searchCheckBox.projectIds = this.selectValue.projectIds.join(',')
}
},
mounted () {
if (localStorage.getItem('alertMessageProjectId')) {
this.selectValue.projectIds = [Number(localStorage.getItem('alertMessageProjectId'))]
// this.$refs.clickSearch.selectValueOut.projectIds = [localStorage.getItem('endpointProjectId')]
}
// this.getTitleSearch()
},
methods: {
labelsSort (obj) {
const buildIn = ['asset', 'endpoint', 'module', 'cpu', 'project', 'datacenter', 'parent_asset', 'user']
@@ -990,6 +1003,9 @@ export default {
}
},
deleteMessage () {}
},
destroyed () {
localStorage.removeItem('endpointProjectId')
}
}
</script>