字典组织表单跳转问题 #I3B7R0

pull/64/MERGE
fengshuonan 4 years ago
parent 776184c287
commit 06f97ce41a

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

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

@ -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;
});
});
});

@ -21,5 +21,6 @@ layui.use(['form', 'admin', 'HttpRequest'], function () {
});
request.set(data.field);
request.start(true);
return false;
});
});
});

@ -21,7 +21,9 @@ layui.use(['form', 'admin', 'HttpRequest'], function () {
request.set(data.field);
request.start(true);
return false;
});
});
});

Loading…
Cancel
Save