refactor(仪表板): 联动设置时,点击仪表板空白区域保持原选中视图的状态

This commit is contained in:
Wangjiahao
2023-06-21 08:05:09 +08:00
parent 3f902ce5ac
commit a2637e3cfd
2 changed files with 2 additions and 2 deletions

View File

@@ -223,6 +223,7 @@ export default {
'curComponent',
'componentGap',
'isClickComponent',
'linkageSettingStatus',
'pcMatrixCount',
'pcTabMatrixCount',
'dragComponentInfo',
@@ -282,7 +283,7 @@ export default {
},
deselectCurComponent(e) {
if (!this.isClickComponent) {
if (!this.isClickComponent && !this.linkageSettingStatus) {
this.$store.commit('setCurComponent', { component: null, index: null })
}

View File

@@ -374,7 +374,6 @@ export default {
watch: {
linkageAreaShow: {
handler(val) {
console.log("linkageAreaShow、、、、")
// 1.当前正在进行联动设置val 2.当前视图联动未启用!this.linkageInfo.linkageActive
// 3.当前视图没有设置过当前目标联动!this.linkageInfo.sourceViewId
// 4.数据集相同 this.linkageInfo.tableId === this.targetLinkageInfo[this.curLinkageView.propValue.viewId].tableId)