diff --git a/src/views/DialogTabs/component/GongDanPaiFa.vue b/src/views/DialogTabs/component/GongDanPaiFa.vue index 48ac857..f45fdee 100644 --- a/src/views/DialogTabs/component/GongDanPaiFa.vue +++ b/src/views/DialogTabs/component/GongDanPaiFa.vue @@ -131,7 +131,7 @@ bus.emit('publicDialog_Close'); // 关闭 当前预警点 - bus.emit('changeOnePointShow', orderForm.value); + bus.emit('changeOnePointShow', form.value.warnId); }) .catch(err => { console.log('🚀 ~ alarmWorkOrderAdd ~ err:', err); diff --git a/src/views/DialogTabs/component/GongDanPaiFa.vue b/src/views/DialogTabs/component/GongDanPaiFa.vue index 48ac857..f45fdee 100644 --- a/src/views/DialogTabs/component/GongDanPaiFa.vue +++ b/src/views/DialogTabs/component/GongDanPaiFa.vue @@ -131,7 +131,7 @@ bus.emit('publicDialog_Close'); // 关闭 当前预警点 - bus.emit('changeOnePointShow', orderForm.value); + bus.emit('changeOnePointShow', form.value.warnId); }) .catch(err => { console.log('🚀 ~ alarmWorkOrderAdd ~ err:', err); diff --git a/src/views/oneMap/index.vue b/src/views/oneMap/index.vue index abaa0db..5d9165c 100644 --- a/src/views/oneMap/index.vue +++ b/src/views/oneMap/index.vue @@ -332,16 +332,15 @@ } }; -const changeOnePoint = data => { +const changeOnePoint = id => { // 改变当前点位展示状态 warningFeatures.value.forEach(item => { - if (item.id === data.id) { + if (item.id === id) { item.is_alarmOrder = true; } }); // 更新地图渲染 - }; const useDialogTabs = dialogTabsStore();