submitHandler添加回调参数

pull/94/MERGE
RuoYi 2019-06-01 08:20:49 +08:00
parent 54e05bae60
commit 7b36d1f60c
1 changed files with 2 additions and 2 deletions

View File

@ -580,7 +580,7 @@
if ($.common.isEmpty(callback)) { if ($.common.isEmpty(callback)) {
callback = function(index, layero) { callback = function(index, layero) {
var iframeWin = layero.find('iframe')[0]; var iframeWin = layero.find('iframe')[0];
iframeWin.contentWindow.submitHandler(); iframeWin.contentWindow.submitHandler(index, layero);
} }
} }
layer.open({ layer.open({
@ -658,7 +658,7 @@
shadeClose: true, shadeClose: true,
yes: function(index, layero) { yes: function(index, layero) {
var iframeWin = layero.find('iframe')[0]; var iframeWin = layero.find('iframe')[0];
iframeWin.contentWindow.submitHandler(); iframeWin.contentWindow.submitHandler(index, layero);
}, },
cancel: function(index) { cancel: function(index) {
return true; return true;