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());