From 347c16a73014b46d5a16a78e93ecca2e682b81e0 Mon Sep 17 00:00:00 2001 From: yhy <1791226930@qq.com> Date: Thu, 23 Jan 2025 10:04:58 +0000 Subject: [PATCH] =?UTF-8?q?datadict=E4=BA=8C=E7=BA=A7=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=9B=A0=E6=B2=A1=E6=9C=89=E5=A4=96=E9=94=AE=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E6=AD=A3=E7=A1=AE=E4=BF=9D=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: yhy <1791226930@qq.com> --- src/main/resources/templates/sysdict/list.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/resources/templates/sysdict/list.html b/src/main/resources/templates/sysdict/list.html index 5307e40e..62a2db1e 100644 --- a/src/main/resources/templates/sysdict/list.html +++ b/src/main/resources/templates/sysdict/list.html @@ -418,6 +418,8 @@ //详情监听保存 form.on('submit(submitDetail)', function (data) { + // 修复:二级数据因没有外键导致无法正确保存 + data.field.dictId = selectDictId if (data.field.id === undefined || data.field.id === null || data.field.id === "") { CoreUtil.sendPost(ctx + "sysDictDetail/add", data.field, function (res) { $(".table_div").show(); -- Gitee