diff --git a/src/main/webapp/assets/modular/system/dict/dictType_add.js b/src/main/webapp/assets/modular/system/dict/dictType_add.js index c9c89590..c270a119 100644 --- a/src/main/webapp/assets/modular/system/dict/dictType_add.js +++ b/src/main/webapp/assets/modular/system/dict/dictType_add.js @@ -17,8 +17,10 @@ layui.use(['form', 'admin', 'HttpRequest'], function () { request.set(data.field); request.start(true); + + return false; }); - + // 编码类型切换事件 form.on('radio(dictTypeClass)', function (data) { if ($('input[name="dictTypeClass"]:checked').val() === '1') { @@ -30,4 +32,4 @@ layui.use(['form', 'admin', 'HttpRequest'], function () { form.render(); }); -}); \ No newline at end of file +}); diff --git a/src/main/webapp/assets/modular/system/dict/dictType_edit.js b/src/main/webapp/assets/modular/system/dict/dictType_edit.js index 5c5f7082..c087bb91 100644 --- a/src/main/webapp/assets/modular/system/dict/dictType_edit.js +++ b/src/main/webapp/assets/modular/system/dict/dictType_edit.js @@ -24,9 +24,10 @@ layui.use(['form', 'admin', 'HttpRequest'], function () { }); request.set(data.field); request.start(true); - + + return false; }); - + // 编码类型切换事件 form.on('radio(dictTypeClass)', function (data) { if ($('input[name="dictTypeClass"]:checked').val() === '1') { @@ -38,4 +39,4 @@ layui.use(['form', 'admin', 'HttpRequest'], function () { form.render(); }); -}); \ No newline at end of file +}); diff --git a/src/main/webapp/assets/modular/system/dict/dict_add.js b/src/main/webapp/assets/modular/system/dict/dict_add.js index fef5582a..d02aa5e5 100644 --- a/src/main/webapp/assets/modular/system/dict/dict_add.js +++ b/src/main/webapp/assets/modular/system/dict/dict_add.js @@ -11,15 +11,16 @@ layui.use(['form', 'admin', 'HttpRequest'], function () { //表单提交事件 form.on('submit(btnSubmit)', function (data) { - var request = new HttpRequest(Feng.ctxPath + "/dict/add", 'post', function (data) { - admin.closeThisDialog(); - Feng.success("添加成功!"); - admin.putTempData('formOk', true); - }, function (data) { - admin.closeThisDialog(); - Feng.error("添加失败!" + data.message); - }); - request.set(data.field); - request.start(true); + var request = new HttpRequest(Feng.ctxPath + "/dict/add", 'post', function (data) { + admin.closeThisDialog(); + Feng.success("添加成功!"); + admin.putTempData('formOk', true); + }, function (data) { + admin.closeThisDialog(); + Feng.error("添加失败!" + data.message); + }); + request.set(data.field); + request.start(true); + return false; }); -}); \ No newline at end of file +}); diff --git a/src/main/webapp/assets/modular/system/dict/dict_add_config.js b/src/main/webapp/assets/modular/system/dict/dict_add_config.js index 4371cf98..562fd6b5 100644 --- a/src/main/webapp/assets/modular/system/dict/dict_add_config.js +++ b/src/main/webapp/assets/modular/system/dict/dict_add_config.js @@ -21,5 +21,6 @@ layui.use(['form', 'admin', 'HttpRequest'], function () { }); request.set(data.field); request.start(true); + return false; }); -}); \ No newline at end of file +}); diff --git a/src/main/webapp/assets/modular/system/dict/dict_edit.js b/src/main/webapp/assets/modular/system/dict/dict_edit.js index 0be3c2c4..4f3ba5e7 100644 --- a/src/main/webapp/assets/modular/system/dict/dict_edit.js +++ b/src/main/webapp/assets/modular/system/dict/dict_edit.js @@ -21,7 +21,9 @@ layui.use(['form', 'admin', 'HttpRequest'], function () { request.set(data.field); request.start(true); + + return false; }); -}); \ No newline at end of file +});