Merge pull request #6781 from ulleo/dev-v2

fix: 编辑页面下,新添加图表后,设置图表导致联动、跳转,导致原有图表的联动、跳转标识丢失
This commit is contained in:
ulleo 2023-11-21 16:16:49 +08:00 committed by GitHub
commit ad0cad2a2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
} }