From 38da6da80d8190d392885ead9be6729a1cffcf41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=90=8D=E9=94=90?= <1565842059@qq.com> Date: Thu, 27 Aug 2026 11:14:55 +0800 Subject: [PATCH] =?UTF-8?q?feat(underlying):=20EQD-7180=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E9=99=A4=E6=9D=83=E4=BF=A1=E6=81=AF=E7=BC=96=E8=BE=91=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E7=9A=84=E6=81=A2=E5=A4=8D=E5=9B=9E=E8=B0=83=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 实现了 afterrestorefunc 回调函数来处理编辑状态的恢复 - 在恢复操作后显示编辑按钮并隐藏新增按钮 - 确保用户界面状态在保存或取消操作后正确更新 --- .../wwwroot/Scripts/app/underlying/underlyingDividendInfo.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/YLErpWeb/wwwroot/Scripts/app/underlying/underlyingDividendInfo.js b/YLErpWeb/wwwroot/Scripts/app/underlying/underlyingDividendInfo.js index 65c9cbb2..325fb99f 100644 --- a/YLErpWeb/wwwroot/Scripts/app/underlying/underlyingDividendInfo.js +++ b/YLErpWeb/wwwroot/Scripts/app/underlying/underlyingDividendInfo.js @@ -41,6 +41,10 @@ function saveInfo(dataId, rowId) { "url": "/ex_dividend_info/SaveDividend", "extraparam": data, "restoreAfterError": true, + "afterrestorefunc": function (rid) { + $("#edit_" + rid).show(); + $("#add_" + rid).hide(); + }, "mtype": "POST" }); $.jgrid.ajaxOptions = ajaxOptions;