Merge pull request #7947 from dataease/pr@dev@fix_clear_linkage_clear_highlight

fix(视图): 修复视图清除联动后未清除高亮效果
This commit is contained in:
wisonic-s 2024-01-31 17:22:50 +08:00 committed by GitHub
commit 99a520ec5a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 2 deletions

View File

@ -852,10 +852,9 @@ export default {
param.viewId && param.viewId === this.element.propValue.viewId && this.getDataEdit(param)
},
clearPanelLinkage(param) {
console.log('clear linkage')
if (param.viewId === 'all' || param.viewId === this.element.propValue.viewId) {
try {
// do nothing
this.$refs[this.element.propValue.id]?.clearLinkage?.()
} catch (e) {
console.error('reDrawView-error', this.element.propValue.id)
}

View File

@ -224,6 +224,11 @@ export default {
}
})
},
clearLinkage() {
this.linkageActiveHistory = false
this.myChart?.setState('active', () => true, false)
this.myChart?.setState('inactive', () => true, false)
},
checkSelected(param) {
return (this.linkageActiveParam.name === param.name || (this.linkageActiveParam.name === 'NO_DATA' && !param.name)) &&
(this.linkageActiveParam.category === param.category)