From 06f97ce41a0435ae62a011614821af5fa8c135c9 Mon Sep 17 00:00:00 2001 From: fengshuonan Date: Sat, 13 Mar 2021 19:08:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=97=E5=85=B8=E7=BB=84=E7=BB=87=E8=A1=A8?= =?UTF-8?q?=E5=8D=95=E8=B7=B3=E8=BD=AC=E9=97=AE=E9=A2=98=20#I3B7R0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modular/system/dict/dictType_add.js | 6 +++-- .../modular/system/dict/dictType_edit.js | 7 +++--- .../assets/modular/system/dict/dict_add.js | 23 ++++++++++--------- .../modular/system/dict/dict_add_config.js | 3 ++- .../assets/modular/system/dict/dict_edit.js | 4 +++- 5 files changed, 25 insertions(+), 18 deletions(-) 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 +});