From 6daccfc750009a7fad3c1e5aef9b7f23074b8a2c Mon Sep 17 00:00:00 2001 From: lvjunjie Date: Wed, 22 Jul 2026 16:52:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8B=96=E5=8A=A8=E4=BA=95=E4=BD=8D=E7=BD=AE?= =?UTF-8?q?=E7=AB=8B=E5=8D=B3=E5=88=B7=E6=96=B0=E9=9D=A2=E6=9D=BF=E4=B8=AD?= =?UTF-8?q?=E5=9D=90=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Src/nmNum/nmPlot/nmPlotGraphicBinder.cpp | 6 ++++++ Src/nmNum/nmSubWxs/nmWxParaPropertyPebi.cpp | 3 +++ 2 files changed, 9 insertions(+) diff --git a/Src/nmNum/nmPlot/nmPlotGraphicBinder.cpp b/Src/nmNum/nmPlot/nmPlotGraphicBinder.cpp index 9824adb..92e1986 100644 --- a/Src/nmNum/nmPlot/nmPlotGraphicBinder.cpp +++ b/Src/nmNum/nmPlot/nmPlotGraphicBinder.cpp @@ -16,6 +16,7 @@ #include "nmDataRegion.h" #include "nmObjBase.h" #include "nmDataAnalyzeManager.h" +#include "nmAttrRegistry.h" #include "nmObjPointWell.h" #include "nmDataWellBase.h" #include "nmDataVerticalFracturedWell.h" @@ -1714,6 +1715,11 @@ void nmPlotGraphicBinder::syncWellMoveFromGraphic(nmObjPointWell* pGraphic, pHFWell->setFracs(); } } + + // 本轮移动数据写回完成后,统一刷新参数面板中的已注册属性。 + if (m_pDataMgr != nullptr && m_pDataMgr->getAttrRegistry() != nullptr) { + m_pDataMgr->getAttrRegistry()->refreshAll(); + } } bool nmPlotGraphicBinder::ensureSelectedWellData(nmObjPointWell* pGraphic, diff --git a/Src/nmNum/nmSubWxs/nmWxParaPropertyPebi.cpp b/Src/nmNum/nmSubWxs/nmWxParaPropertyPebi.cpp index 0f30cb0..9b57be7 100644 --- a/Src/nmNum/nmSubWxs/nmWxParaPropertyPebi.cpp +++ b/Src/nmNum/nmSubWxs/nmWxParaPropertyPebi.cpp @@ -288,7 +288,10 @@ bool nmWxParaPropertyPebi::setParaValue(QString sPara, QVariant o) void nmWxParaPropertyPebi::slotSetParaValue(QString sPara, QVariant o) { + // 数据层刷新控件时屏蔽反向通知,避免再次写回数据。 + m_bUnableSP = true; setParaValue(sPara, o); + m_bUnableSP = false; } void nmWxParaPropertyPebi::slotParaCtrlValueChanged(QString sPara, QVariant o)