From c29293b2804dca038a97b6e50deebb9db1c15a37 Mon Sep 17 00:00:00 2001 From: Guo XIn <371864209@qq.com> Date: Fri, 21 Jul 2023 15:02:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=EF=BC=9A=E5=9F=BA=E7=A1=80?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E8=A1=A8=E5=8D=95=E4=BF=9D=E5=AD=98=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/view/dynamicForm/designForm.html | 2 +- .../src/main/resources/view/dynamicForm/formList.html | 8 ++++++++ .../shandan/control/config/DynamicFormListener.java | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/shandan-basedata/src/main/resources/view/dynamicForm/designForm.html b/shandan-basedata/src/main/resources/view/dynamicForm/designForm.html index d1a2786..37d9da7 100644 --- a/shandan-basedata/src/main/resources/view/dynamicForm/designForm.html +++ b/shandan-basedata/src/main/resources/view/dynamicForm/designForm.html @@ -62,7 +62,7 @@ postRequest(`${ctx}/dynamic-form/api/form/save`, params).then(res => { if (res.flag) { temp_data = params; - showOkMsg('保存成功'); + saveCallback && saveCallback(); } else { showErrorMsg(res.msg) } diff --git a/shandan-basedata/src/main/resources/view/dynamicForm/formList.html b/shandan-basedata/src/main/resources/view/dynamicForm/formList.html index 448b1bf..42890ac 100644 --- a/shandan-basedata/src/main/resources/view/dynamicForm/formList.html +++ b/shandan-basedata/src/main/resources/view/dynamicForm/formList.html @@ -99,6 +99,14 @@ */ function openFormDesignPage(id) { openMaxLayer(`${ctx}/dynamic-form/view/form/design?formId=${id}`, { + success: function(layero, index){ + let iframeWin = window[layero.find('iframe')[0]['name']]; + iframeWin.saveCallback = function(){ + formListTable.reload(); + showOkMsg('保存成功'); + layer.closeAll(); + } + }, cancel: function (index, layerObj) { let iframeWin = window[layerObj.find('iframe')[0]['name']]; if (iframeWin.isChange()) { diff --git a/shandan-control/src/main/java/com/keyware/shandan/control/config/DynamicFormListener.java b/shandan-control/src/main/java/com/keyware/shandan/control/config/DynamicFormListener.java index e494ccd..7b36259 100644 --- a/shandan-control/src/main/java/com/keyware/shandan/control/config/DynamicFormListener.java +++ b/shandan-control/src/main/java/com/keyware/shandan/control/config/DynamicFormListener.java @@ -24,7 +24,7 @@ public class DynamicFormListener implements DynamicFormEventListener { menu.setMenuId(form.getId().toString()); menu.setParentMenu(parentMenu); menu.setMenuParentId(parentMenu.getMenuId()); - menu.setMenuName(form.getFormName() + "管理"); + menu.setMenuName(form.getFormName()); menu.setMenuPath("/dynamic-data/view/data/list/" + form.getId()); menu.setSystem(parentMenu.getSystem()); menu.setMenuParentName(parentMenu.getMenuName());