forked from github/dataease
Merge pull request #6781 from ulleo/dev-v2
fix: 编辑页面下,新添加图表后,设置图表导致联动、跳转,导致原有图表的联动、跳转标识丢失
This commit is contained in:
commit
ad0cad2a2d
@ -18,9 +18,8 @@ import { storeToRefs } from 'pinia'
|
|||||||
import { BASE_VIEW_CONFIG } from '../util/chart'
|
import { BASE_VIEW_CONFIG } from '../util/chart'
|
||||||
import { cloneDeep, defaultsDeep } from 'lodash-es'
|
import { cloneDeep, defaultsDeep } from 'lodash-es'
|
||||||
const dvMainStore = dvMainStoreWithOut()
|
const dvMainStore = dvMainStoreWithOut()
|
||||||
const { dvInfo } = storeToRefs(dvMainStore)
|
|
||||||
|
|
||||||
const { nowPanelTrackInfo, nowPanelJumpInfo } = storeToRefs(dvMainStore)
|
const { nowPanelTrackInfo, nowPanelJumpInfo, dvInfo } = storeToRefs(dvMainStore)
|
||||||
|
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
const linkJumpRef = ref(null)
|
const linkJumpRef = ref(null)
|
||||||
@ -154,7 +153,7 @@ const noSenior = computed(() => {
|
|||||||
const linkJumpActiveChange = () => {
|
const linkJumpActiveChange = () => {
|
||||||
// 直接触发刷新
|
// 直接触发刷新
|
||||||
const params = {
|
const params = {
|
||||||
sourceDvId: chart.value.sceneId,
|
sourceDvId: dvInfo.value.id,
|
||||||
sourceViewId: chart.value.id,
|
sourceViewId: chart.value.id,
|
||||||
activeStatus: chart.value.jumpActive
|
activeStatus: chart.value.jumpActive
|
||||||
}
|
}
|
||||||
@ -164,7 +163,7 @@ const linkJumpActiveChange = () => {
|
|||||||
}
|
}
|
||||||
const linkageActiveChange = () => {
|
const linkageActiveChange = () => {
|
||||||
const params = {
|
const params = {
|
||||||
dvId: chart.value.sceneId,
|
dvId: dvInfo.value.id,
|
||||||
sourceViewId: chart.value.id,
|
sourceViewId: chart.value.id,
|
||||||
activeStatus: chart.value.linkageActive
|
activeStatus: chart.value.linkageActive
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user